"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(g){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=g||[]};
(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 gum,ufF,QmF,LJF,EuZ,Phq,uh,smh,pSJ,Eb,JTh,yq,jmf,fkb,HS,AT,MKq,tKF,eFK,Im,ih,RFF,wSK,CZ,ATS,iZh,d3q,m3b,XSf,rTq,Ybu,hFq,WJJ,x3M,nuk,kMF,ouu,E0,s0,Jb,uWq,jX,wa,q0M,c5,iZ,L8u,EiS,V$,XW,viq,fHM,MXJ,O0,G2k,$xf,RnT,z2,w5J,cbS,AbJ,HoJ,Zof,SX,tXK,ux,lHf,CZf,aHK,RH,VXu,X5f,Gh,dx3,f9,F8K,mxq,K8b,xxq,Ba3,znZ,niZ,k2b,IH,Uxq,oih,gLS,utu,qZZ,Lz3,ELf,sHf,yhT,pnh,jHT,Mf3,RKb,chT,wnu,Wn,H9m,CxF,Th,b9u,Fzq,Xnm,abJ,rhF,VfT,OZ,QHf,xL,Bn,zh,WzM,kL,YZk,TCq,hKq,qk,O9q,Kzm,BCk,nLT,zKM,khJ,SZb,oLm,oH,gVf,qTJ,LGk,POZ,
DO,s3Z,DkS,Je,j3q,tOS,vVu,eem,$kM,Ref,IOb,Hvk,COq,dkZ,FGh,aOk,VOq,T0K,hem,KGZ,B0q,ks3,oVu,Ukq,urq,Quq,EAm,yBq,fK3,VB,txq,GFm,$aq,Kv,xV,zs,u8,QT,EP,IKu,pa,C8M,Fsf,aKK,VxM,XxZ,GF,rBq,Ru,cx,Hx,AB,TtT,hmJ,YPF,OaZ,KsM,Bt3,zmq,nAh,kFb,oAZ,i8,Iu,Uaf,gBq,u4M,QWF,q7M,LeK,EBm,P7b,hB,YA,OP,Ka,Bx,sWM,zF,vBu,fih,kA,MgF,tgf,esq,UP,GWM,$Sm,Rsh,gj,HOq,qS,liS,IiM,Q3,C7F,iOk,bOm,dSZ,Feh,mS3,NS,aiF,Vg3,s7,Xqu,r1q,y3,vq,Di,pO,Wek,hsb,Tjm,J1,OOZ,Kem,xSK,fO,t1,eg,GW,$B,RW,BjK,zsk,kWk,S7q,USf,uoS,g$J,qUh,QGS,LvF,E$F,P0Z,
Hq,N6b,sGT,v$f,Dih,p8b,Jkm,jGS,fWF,Mpm,i7,CO,tpM,dj,aW,evZ,RvS,w8m,ckq,AkF,ZHM,lWZ,bHT,diK,Fvh,mik,aWq,Vpm,X8u,hvq,rj,YUq,OHb,Kvh,B6f,n$F,Bq,SUm,o$K,Uib,qHk,EFM,PvF,NcF,s2b,y5Z,DV3,c5S,Hhb,A5h,I1T,ihm,Ni,Cvh,FR3,ViM,XD3,r5h,WRh,TcT,hU3,YH3,Ohq,xVT,Bck,mVJ,zUf,nFJ,kQb,SH3,oFS,UVm,gGq,uPq,q9k,PXb,LVf,yfZ,NBf,sYK,pLq,JfM,jYk,vGK,MRZ,DQF,eLf,H8,G9b,Ak,l0,$Qh,wLK,cfm,Z2b,VRq,I6S,l6m,CXf,dQS,i2f,Y9J,WVq,O2Z,KVq,xQb,BBZ,zLS,k9T,nGJ,S9M,oGb,UQ3,gvb,q_u,LWu,Evm,PLq,s4Z,NiJ,$qK,d6,RIF,cMk,HSm,AMh,ZSM,lYf,iST,
CL3,bSJ,W8,T$,dqZ,Y$,rMk,KH,Tiu,x$,KWK,Biq,Q0J,k$,PSu,Num,Duf,yiZ,vQm,qV,pWF,JiS,fQf,MjS,tjK,eY3,G8f,$uf,RYb,ciK,sH,H0T,yx,ph,IQk,MV,F9K,duh,VjZ,GQ,HD,riM,W9S,Tuk,hYS,zYT,Buq,lv,nQb,iv,bv,oQu,Uuf,gOm,qrb,Lkm,QIJ,EOf,h5,DTu,Kh,GXK,Mab,$TM,kF,HBb,Si,o2,A6q,ZBq,iBJ,dTh,Fkq,UH,avS,mTm,hM3,Yrq,KkT,nOF,SrJ,oOh,UTb,g1k,qzf,QoF,E1q,PD3,N9m,Qa,y_q,s9,D_b,p6F,J_u,ffK,v1J,soM,joT,E9,tQT,RAJ,GpM,HwM,A_q,ZwM,IfK,iwJ,CDq,bwm,tf,d_F,m_T,FnS,afZ,Etq,$G,NUK,yjq,cL,Af,HL,jKk,Jju,sKT,G3m,AjF,IFb,lFq,bfh,iX,F6f,mwq,
XoM,rjq,FP,TUK,aY,Va,OfZ,BUq,ntu,k3q,UwM,gCT,uwF,qAZ,rB,LLu,ECh,P6J,NVk,ygb,vCJ,DMq,pUq,hf,K2,fMk,MZk,tZF,$MM,Rtf,wUF,idZ,C6K,Zdq,dMZ,FLK,mMT,gi,uL,qq,Q1,rgK,WLq,E_,TVf,htT,YAk,Odk,xMK,BVK,zth,nCb,KLS,kBf,s_,oCu,Qrf,DY,qgb,Lgb,SAk,EJF,JM,Nwq,sru,yJJ,vJm,pXq,DKq,JJk,M_b,jru,t_f,cJS,AJT,l4q,C1S,iVu,I4J,bV3,dKM,mKF,V_u,a4q,XXf,ck,Wgu,Tw3,hfm,Ygq,OVh,xKk,Kgh,Bwm,zfT,UKh,Sgu,oJK,uSZ,qRq,QpK,E6T,L7T,PHq,NFK,ytf,DfJ,jpT,MFh,f0F,KS,tFh,v6J,HWZ,ZWJ,l0f,kv,iWJ,bWS,mfJ,XCJ,VFJ,hNZ,YRb,OWZ,K73,BFZ,o6b,zNM,kzT,
SRZ,UfS,gZq,q3S,uJq,LcZ,Q7u,Nu,EZq,Nrf,s7q,pcq,f0,Mu,ti,JDK,j7q,ej,tbS,cW,HW,Ai,RhF,ZQ,HUT,iS,ADm,ZUq,lsZ,Isq,m9,iUZ,CRT,bUK,FcM,asS,rDS,Trb,K0,hhM,Y3m,OUf,Kcf,xZq,Brf,zhT,nZf,z8,oZf,UZm,g_f,uTT,qxf,QEb,LCb,E_K,PdS,N$b,sES,yRk,v_k,qT,w9q,cRM,QI,LB,Er,H6Z,ARF,Z6q,lqZ,Iqq,i6f,Cdq,aqu,VhK,X9K,rRT,WCk,yI,Dv,pB,J6,MT,t6,ea,h5q,$O,O6h,RI,KCk,xRJ,wN,B$h,z5u,n_q,LXq,PUT,Dmm,f3b,j53,E9M,MPb,Geu,dmf,ArM,X$u,l3u,a3b,rrS,II,TOb,bt,Yiq,OEq,xmu,BOq,zqb,keh,aI,o9q,Umh,gHZ,uhf,qEh,QTf,LyT,Sif,NLZ,sTM,yoZ,X7,faT,
Myh,jTJ,eE3,GyZ,RET,w1J,$Yq,irK,Fyf,aah,Bv,YEq,TLb,hEJ,zEM,kyK,SEb,oHS,UYf,gqS,u0Z,q_,vqZ,peK,s9m,Nvk,DyT,Q9M,j9m,A9J,tTb,eGh,Gcm,acm,Xeq,myF,Ypb,FHb,qpm,hGb,MTh,HeK,VTm,J9M,Eqf,LHq,Pah,y9Z,dy3,w9,QsJ,Eyu,P2Z,Nyk,ssm,tJJ,wYS,c7q,d9,A7h,I7u,d0M,bnu,m0F,a7Z,XYf,r7f,WlZ,Tyb,YIk,hzq,Tp,kkb,nyb,zzT,gbK,SIS,uaK,U0S,qfJ,Q1b,N_f,Ebu,PbK,yZf,DWM,pbF,feM,MVf,tVF,e2h,$Wk,R2b,wbJ,zp,H3m,nw,AZS,Ieb,Z3T,i3S,FZk,mWq,Xbf,WZF,qw,Q8,O3F,KZb,Lf,EY,xW3,sY,y8,B_m,vo,z2F,DF,nbh,kxf,Jj,Sfq,obh,UWf,gSb,uiq,QOh,qcK,ESq,sOF,
NTZ,yLk,vSZ,L3h,DB3,jOT,JLb,PAF,fgS,MU3,e7,tUf,GKZ,eBZ,$BT,RBM,cL3,wKq,HTS,$t,ZTK,lgM,ALm,iTh,CAM,bTb,agu,rLb,OTM,zBZ,RK,ScZ,oSf,wU,UBM,ZF,lP,E0f,Ho,Cf,P$m,NmZ,y2M,v0k,pMh,j6h,fPF,M$S,t$M,$$u,A2q,c2K,GwK,ZpZ,lPm,V8,HpT,IPu,Wo,ipq,C$b,bpF,d$J,V$q,FES,aPT,Tmq,hdk,Bmq,x$S,kwb,qQq,QAK,E2K,NXf,sAk,v2m,DHZ,pHq,jAJ,fXu,M0k,G0q,cyS,HNS,$HZ,ZNK,IXk,lXq,AyS,iNh,bNK,dHq,FbM,mHk,aXm,XHb,V0K,WbF,Kbb,hxb,TXF,BXZ,oK,UY,gV,zxJ,n2b,k0q,SQF,sA,uy3,qO3,QVf,yZ,pd,NJT,yzM,vkb,pl3,fBK,jZ,fd,MkF,MM,GAJ,$Pq,RyT,eZ,ZYm,CJT,
dPh,F2S,mPu,Vkb,Xlb,rzb,hyT,$C,YOh,xPu,RM,BJZ,SOu,wV,gof,HU,l6,IM,uvF,QQT,qGK,Eo3,PEZ,N2J,sQF,Lpq,J$K,jQM,Msm,ekZ,wtM,RkS,c$Z,A$3,Zjf,l93,I9u,ijm,CEF,bjq,m6b,d6q,Fw,Vsm,mL,XtK,Xw,rV,r$h,Wph,T2q,hku,YGu,WU,OjT,KpT,x6b,B2q,noq,kGf,SGk,ooh,U6m,ukf,gxZ,TB,Qhb,ExT,Pum,NGb,shS,Dck,JHq,Kd,frm,t2f,eJf,Gnb,$ch,RJm,wjF,cHq,HAZ,pjS,jhF,AHJ,ZAf,Cub,bAm,dcZ,F$h,nx3,oxf,UcT,gIu,SFk,Pgh,ym3,NdJ,vIM,Jmh,fSk,teS,RgK,$IF,AmZ,u1,Z8k,lST,qK,ISu,QD,i8K,CgZ,b8M,FmJ,dIh,mIM,aSF,Veb,XNT,Kmk,BdZ,nIK,zgu,hgJ,WmJ,StF,UIS,Ldh,
Efb,sBh,jBT,Mnf,NK,tnq,GoF,$sm,wIk,ZJ3,iJm,dsq,FdS,msS,a8u,T5q,Vn3,Kdu,xsf,B5J,nfh,D4,koq,ofJ,UsJ,glf,uuM,qwZ,Qnf,LBK,Pkm,NSF,fV,snm,ynq,D4T,tJ,vlq,JnJ,tWb,$J,e9Z,GZh,$43,cnu,Hqf,R9Z,ZqJ,Ckh,bqK,d4f,AJ,FBK,XFZ,rnb,i1,h9u,WBq,TSb,KBF,x4q,BSk,z9f,rw,olb,U4h,gau,uCJ,q1K,Pof,y4u,scq,NEq,vau,pdb,J4q,eP3,jcT,GLZ,RPT,$Gk,lVb,CoT,dGZ,mGS,Y1K,Jt,K_u,naq,S1F,D0,Rp,Qg3,Ngb,Pwh,yaq,vKM,p2q,D8u,JaT,jgf,wF,p$K,L5J,sgb,EKm,Gz,t3m,e8b,GTJ,$8h,dF,R8m,w2u,caZ,HKT,Aau,VX,ZKS,iKK,bKS,d8T,W5k,h8F,YvZ,OKZ,x8q,Bgq,zz,nK3,
kTM,SvS,oK3,U8S,g3K,q6h,L4S,PTh,Nxh,JXJ,DJb,jzS,tCf,eVK,uR,GRm,$JT,RVJ,HFS,ZFZ,AXh,ICf,CTb,E3,dJK,F4M,bFq,mJM,aCq,XOM,W4K,rXm,TxZ,VCu,hVm,Y6u,OFm,K4T,xJM,BxK,zV3,n3u,kRJ,UJ3,o3M,gef,qMF,uqZ,Pc,Q_k,Ppk,ve3,Lfh,JFS,j_K,fhS,MBb,GuS,Z1q,lhq,i1T,CpF,GN,m5q,rFZ,hOZ,$Z,x5q,YMh,O1T,KfF,BoZ,APu,Hc,ZlT,l5K,ilT,Cqf,blS,dpq,mpq,a5q,KA3,TZq,YCb,BZf,xpb,z6b,nsM,SCK,UpS,uYh,Qw3,LwS,PYK,MvJ,GbT,RCK,wpk,cWq,HGZ,AWf,lmK,Im3,bGm,dUq,FwK,mUb,amq,VvZ,Xpf,rWJ,hCh,Kwb,Vv,XJ,rr,xUq,B7M,hD,n4Z,LF3,vrJ,sdT,Zmf,lGb,IGb,SmF,
QdJ,grm,C5q,bmf,d2f,FF3,P5h,m23,VmZ,rVb,hDk,Yy3,o7,orq,gDh,q$u,QC3,EDq,LSk,sCf,vDk,tEh,fyK,p4T,MEb,JAb,e_b,w4q,f6,MR,CBJ,lyu,d7h,FSu,ayS,VEu,eh,X4S,Tfm,h_h,Y$m,OyS,S$f,k7q,ld,QkM,d$,EzT,P3k,NbM,skb,ywJ,vzh,Dbq,pVF,Jw3,jkf,fIZ,mC,MGJ,tGZ,e4b,GJ3,$bS,R43,wVS,cwS,VY,HbJ,AwK,Zbf,lIM,IIM,ibK,C3q,bbS,dbJ,FMb,mbF,aIS,VGf,r$,rwm,Tb3,YJM,xbq,nzM,kJ3,SJS,UbJ,u2S,qSb,QvT,B9,svu,Pik,yKm,vdM,Dou,jvF,ftS,Mcm,ewZ,Ei,$oZ,Qs,wEF,cKF,P$,HPM,AKq,ZPq,ltM,si,bPJ,FDM,rKq,XEM,TWu,hwb,Mm,YSM,OPu,xoJ,zwF,ndF,SSf,odS,BWq,
Uo3,L0T,sSb,y8b,tr,vEf,DNk,Mum,pQq,jSS,fdM,wQq,eiZ,c8J,A8K,ldM,Idu,iXJ,CCF,bXZ,dNf,mNq,adk,VuM,XQh,r8Z,T4u,YWm,xNZ,kIZ,UNf,uHF,LKK,H$,E7m,PlM,NnT,sNS,yQk,DFh,pRZ,JQk,jNq,fwq,MzT,tzZ,eTf,GHZ,$Fu,RTf,cQf,wRF,Zih,Iwh,iU,iih,dFq,biK,awJ,VzJ,XRJ,Tn3,Oih,YnF,WKb,Bnu,xFh,o7f,zTq,a5,kHq,EYk,uFu,qe3,QDJ,LiK,PWk,sDT,NAu,Vs,XI,f_h,vYq,jDu,J0m,DrS,piS,eaK,$rF,wiu,RaJ,c0M,l_S,Zz3,izJ,drF,mrq,bzZ,a_q,XiT,VdZ,WiS,YeT,Y9,OzT,Kiq,xrZ,kjF,qLb,KE,LTM,Pfu,SP,ypM,NKh,sUJ,k9,JpK,vpq,Dju,jUK,MYF,fUM,G6u,$jS,whK,cpZ,H_K,
Apq,Z_m,IUb,i_M,sE,b_m,mjZ,aUF,pr,VYh,rpZ,zQJ,to,YLq,BKm,O_q,KT3,opK,SLq,qBT,Ujb,QJb,Lx3,$H,Enu,Pym,Nzq,c1,sJf,RT,DXu,puq,JqS,jJS,f$q,t4F,RpK,wuh,Aqk,ZtS,I$b,btJ,ith,CyS,dXF,mXM,a$3,V43,Xuq,rqS,Tzq,YB3,Ot3,xXm,KxK,BzT,zpT,kCh,SBu,PrT,L1M,ysh,vwF,MIh,tIZ,eZZ,GYk,$eK,RZf,HQb,AsK,ZQZ,llq,iQu,CrM,bQ3,deh,F1b,meK,VIq,XJT,OE,hZq,TPK,W1T,rsb,OQm,BPJ,K1K,nwq,kYq,owq,Ueq,gMh,uXM,q8m,Nhk,QqF,Luk,EMF,sqK,yuT,vMJ,PKu,zy,Juh,fRu,jqS,kH,Mr3,eXS,G4J,$zu,trm,RXq,wrJ,cuh,HgS,AuJ,lRm,IRk,igZ,CKK,FuF,dzT,ru3,bg3,oT,
WuS,mzM,Xrm,hXb,Y8u,Ogu,Kuq,xzq,zXf,nMb,k4u,oMf,Uzh,u5Z,Qah,saT,PQq,NQT,EcF,LjK,yGm,y0,vcJ,ve,DlK,pZb,toS,GiF,$lq,R1S,wZm,cGF,H$f,My,t9,i$J,Z$T,AGf,lEM,h1h,rGu,IEF,XZh,z1Z,ncq,kib,Suh,ocK,upu,Qlb,EhF,NHm,slu,yYk,JYM,p3F,jlZ,MHS,X0,GdS,$nM,R3M,w33,cY3,Hsf,AYh,We,Tc,luk,Ium,CNh,Foh,Wof,KoK,OsT,xnq,z3Z,nhK,kdK,SVk,ohM,Unf,Be,g8K,N1M,s8q,LOK,Q8h,PeF,E8M,JEM,j8u,fzm,MAF,tAm,erk,RrT,$Dk,GSb,CeK,IzM,b4Z,FOZ,dDM,azm,rEJ,T1S,VAJ,XBb,n8u,S4m,UDu,uQf,Qe3,E5K,ydM,v53,DO3,jeh,JdM,pGk,f2q,Mlf,tlk,ecq,Gt3,$OS,RcT,
wGk,cdh,HuM,ZuZ,l2q,I2S,iuM,C4b,buq,Fh3,mOZ,a2u,VlK,XGK,rdq,YKq,Ouq,xOT,zcF,B3h,n5q,PY,ktK,SKm,o5b,UOT,qXJ,ujh,QXJ,LYu,ENh,Pnk,Neu,sXb,y3q,vNZ,DvT,psq,J3T,jXm,foT,MLM,tLh,G5f,eRS,$vk,RRq,wsT,c3f,H7q,A3q,Z7K,loq,M0,i7m,Cn3,b73,dv3,FYm,aoK,VLF,Xs3,r3S,WYf,TeM,hRq,O7k,KYh,BeJ,$y,k5S,uLu,Uvu,oN3,SXb,ggk,LQu,EgM,PzJ,Nlf,yvJ,vgb,Dhh,JvS,pAZ,jiK,fZM,MSF,GqF,$hf,Rbh,wA3,cvf,Hxq,lZT,IZM,Cn,FQM,mhb,VSf,WQk,rvf,TlT,hbq,b2,Fg,OxM,V4,Xg,zbq,KQu,xhM,SlF,ogu,Uhq,gWZ,LPS,PIm,NDJ,s$u,ylT,vWk,pfm,Jlm,j$h,fjf,MqF,tqZ,
eok,Tk,GDM,$CT,Yy,RoJ,wfu,clq,HLb,AlS,ZLq,Kn,xy,ljf,IjT,BY,iLh,CIS,bLJ,dCm,mC3,ajF,XfJ,YDS,hoM,TDk,OLZ,KPb,oWu,zoK,nWu,kD3,BDq,SDJ,UCZ,gjk,q2m,QFb,nn,PjK,Npq,sFF,yxf,vjb,pzf,jFF,tMf,RuZ,GlZ,ky,euu,AxK,lNh,SJ,INJ,icq,Cju,bcJ,ddJ,mdb,aNS,Xzf,rxu,TpM,hub,xdf,zuh,klM,njk,ojb,Udm,gXK,ucm,QZf,Lah,EXf,Pcq,NYu,sZh,ycu,vXq,Dtm,JcM,jZq,GaK,$tF,RHT,wPk,ccS,Hkm,NW,lJu,ikS,Ccf,bkT,dtk,FaF,aJb,V1K,XPT,rcu,TYT,hHJ,YNS,vb,OkK,Kau,zHT,nXm,De,p3,oXf,kaT,UtF,qsK,gmu,Qfk,Emh,MW,PmK,NMK,sfu,D9b,JUF,tZ,fnq,MDq,tDF,ejb,
GEu,$9q,RjK,w0M,cUM,lnZ,Inm,d9Z,i5f,b5Z,FqF,m9h,an3,rUh,Wqh,TMm,YsF,O5Z,kET,nmf,ubT,Ltb,ib,EPm,PVb,wkZ,C3,NsM,sjJ,vPq,JNh,jjh,R7K,wgF,cNM,HDf,ANm,ZDF,iDJ,CVS,dLT,mLu,bDm,Ftf,VwF,aAb,rNh,h7u,Wtq,YjS,ODh,Kth,xLZ,BsZ,z7K,k1T,nPK,gUq,QtM,u3h,LIm,EUJ,P_T,Wb,NkJ,sth,hZ,vUk,yIq,D1Z,JIM,p7u,tNq,eWb,$1m,xb,w7q,cIq,HMZ,AIF,IDf,C_k,FIk,d1u,m1K,aDK,VNS,Tkb,SoJ,KIk,U13,gTm,qhJ,QLT,ETq,P9K,N8S,sLM,yCf,vTS,JCf,jLq,fpT,M6K,GOM,R$m,wmq,$gm,HCu,cCJ,iCq,C9h,bC3,dgb,FNh,mgf,aph,XmZ,T8f,h$J,Yh3,xgS,KNZ,nTb,ShK,oTq,Ugu,
gRM,u$q,QyK,qqS,ERJ,vRb,JSq,paF,jyM,fTZ,M53,elq,Dg,$AZ,jU,waJ,HRq,ASh,Csm,dAf,V5f,rSf,WUS,hlT,Yqq,ORK,xAT,zlq,nRZ,SqF,guR,UAf,oRZ,GK,qbR,ufn,Qmn,LJn,Euo,Ph$,NqR,smZ,yTi,D3H,pS8,JTZ,jmW,fk0,MK$,tKn,eFX,GMo,$3Z,wSX,cTi,HZW,AT5,ZZa,Iki,iZZ,ChH,FJ0,Zg,Tq5,m30,Ybi,KJZ,x32,Bqa,zFb,nuH,IO,QRn,OH,iA,bA,L8i,Ei5,sRX,via,yb0,Fi,Dx8,p50,JbZ,jR5;gum=function(){var g,u;return typeof CSS!=="undefined"&&((u=(g=CSS).supports)==null?void 0:u.call(g,"selector(:has(*))"))};
ufF=function(g){return g.visibility!=="hidden"&&g.display!=="none"};
QmF=function(g){if(gum()||g.tagName!=="DETAILS"?!g.matches(qbm):g.querySelector("summary")!==null)return-1;g=g.getAttribute("tabindex")||"0";return Number(g)};
LJF=function(g){return g.some(function(u){return QmF(u)>0})};
EuZ=function(g){if(g.textContent||g.ariaLabel)return!0;if(g instanceof HTMLInputElement){if(!g.labels)return!1;g=_.N(g.labels);for(var u=g.next();!u.done;u=g.next())if(u.value.textContent)return!0}return!1};
Phq=function(g){return g.sort(function(u,q){return QmF(q)-QmF(u)})};
_.Nqm=function(g){g=Array.from(g.querySelectorAll(qbm)).filter(function(u){return(ufF(u.style)?ufF(window.getComputedStyle(u)):!1)&&EuZ(u)});
return LJF(g)?Phq(g):g};
_.gq=function(g,u){if(Error.captureStackTrace)Error.captureStackTrace(this,_.gq);else{var q=Error().stack;q&&(this.stack=q)}g&&(this.message=String(g));u!==void 0&&(this.cause=u)};
uh=function(){throw Error("F");};
smh=function(g,u){u=String.fromCharCode.apply(null,u);return g==null?u:g+u};
pSJ=function(g){var u=!1;u=u===void 0?!1:u;if(yTu){if(u&&(vuF?!g.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(g)))throw Error("G");g=(D3k||(D3k=new TextEncoder)).encode(g)}else{for(var q=0,Q=new Uint8Array(3*g.length),L=0;L<g.length;L++){var E=g.charCodeAt(L);if(E<128)Q[q++]=E;else{if(E<2048)Q[q++]=E>>6|192;else{if(E>=55296&&E<=57343){if(E<=56319&&L<g.length){var y=g.charCodeAt(++L);if(y>=56320&&y<=57343){E=(E-55296)*1024+y-56320+65536;Q[q++]=E>>18|
240;Q[q++]=E>>12&63|128;Q[q++]=E>>6&63|128;Q[q++]=E&63|128;continue}else L--}if(u)throw Error("G");E=65533}Q[q++]=E>>12|224;Q[q++]=E>>6&63|128}Q[q++]=E&63|128}}g=q===Q.length?Q:Q.subarray(0,q)}return g};
Eb=function(g){_.Qq.setTimeout(function(){throw g;},0)};
_.PS=function(g){for(var u=[],q=0,Q=0;Q<g.length;Q++){var L=g.charCodeAt(Q);L<128?u[q++]=L:(L<2048?u[q++]=L>>6|192:((L&64512)==55296&&Q+1<g.length&&(g.charCodeAt(Q+1)&64512)==56320?(L=65536+((L&1023)<<10)+(g.charCodeAt(++Q)&1023),u[q++]=L>>18|240,u[q++]=L>>12&63|128):u[q++]=L>>12|224,u[q++]=L>>6&63|128),u[q++]=L&63|128)}return u};
JTh=function(g){for(var u=[],q=0,Q=0;q<g.length;){var L=g[q++];if(L<128)u[Q++]=String.fromCharCode(L);else if(L>191&&L<224){var E=g[q++];u[Q++]=String.fromCharCode((L&31)<<6|E&63)}else if(L>239&&L<365){E=g[q++];var y=g[q++],v=g[q++];L=((L&7)<<18|(E&63)<<12|(y&63)<<6|v&63)-65536;u[Q++]=String.fromCharCode(55296+(L>>10));u[Q++]=String.fromCharCode(56320+(L&1023))}else E=g[q++],y=g[q++],u[Q++]=String.fromCharCode((L&15)<<12|(E&63)<<6|y&63)}return u.join("")};
_.N3=function(g,u){return g.lastIndexOf(u,0)==0};
yq=function(g,u){var q=g.length-u.length;return q>=0&&g.indexOf(u,q)==q};
_.vS=function(g){return/^[\s\xa0]*$/.test(g)};
_.pZ=function(g,u){return g.indexOf(u)!=-1};
_.JT=function(g,u){return _.pZ(g.toLowerCase(),u.toLowerCase())};
_.eK=function(g,u){var q=0;g=jK(String(g)).split(".");u=jK(String(u)).split(".");for(var Q=Math.max(g.length,u.length),L=0;q==0&&L<Q;L++){var E=g[L]||"",y=u[L]||"";do{E=/(\d*)(\D*)(.*)/.exec(E)||["","","",""];y=/(\d*)(\D*)(.*)/.exec(y)||["","","",""];if(E[0].length==0&&y[0].length==0)break;q=jmf(E[1].length==0?0:parseInt(E[1],10),y[1].length==0?0:parseInt(y[1],10))||jmf(E[2].length==0,y[2].length==0)||jmf(E[2],y[2]);E=E[3];y=y[3]}while(q==0)}return q};
jmf=function(g,u){return g<u?-1:g>u?1:0};
_.GM=function(){var g=_.Qq.navigator;return g&&(g=g.userAgent)?g:""};
fkb=function(g){if(!wq||!cS)return!1;for(var u=0;u<cS.brands.length;u++){var q=cS.brands[u].brand;if(q&&_.pZ(q,g))return!0}return!1};
HS=function(g){return _.pZ(_.GM(),g)};
AT=function(){return wq?!!cS&&cS.brands.length>0:!1};
MKq=function(){return AT()?!1:HS("Opera")};
tKF=function(){return AT()?!1:HS("Trident")||HS("MSIE")};
eFK=function(){return AT()?fkb("Microsoft Edge"):HS("Edg/")};
Im=function(){return HS("Firefox")||HS("FxiOS")};
_.GMZ=function(){return HS("Safari")&&!(ih()||(AT()?0:HS("Coast"))||MKq()||(AT()?0:HS("Edge"))||eFK()||(AT()?fkb("Opera"):HS("OPR"))||Im()||HS("Silk")||HS("Android"))};
ih=function(){return AT()?fkb("Chromium"):(HS("Chrome")||HS("CriOS"))&&!(AT()?0:HS("Edge"))||HS("Silk")};
_.$3h=function(){return HS("Android")&&!(ih()||Im()||MKq()||HS("Silk"))};
RFF=function(g){var u={};g.forEach(function(q){u[q[0]]=q[1]});
return function(q){return u[q.find(function(Q){return Q in u})]||""}};
wSK=function(g){var u=_.GM();if(g==="Internet Explorer"){if(tKF())if((g=/rv: *([\d\.]*)/.exec(u))&&g[1])u=g[1];else{g="";var q=/MSIE +([\d\.]+)/.exec(u);if(q&&q[1])if(u=/Trident\/(\d.\d)/.exec(u),q[1]=="7.0")if(u&&u[1])switch(u[1]){case "4.0":g="8.0";break;case "5.0":g="9.0";break;case "6.0":g="10.0";break;case "7.0":g="11.0"}else g="7.0";else g=q[1];u=g}else u="";return u}var Q=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");q=[];for(var L;L=Q.exec(u);)q.push([L[1],L[2],L[3]||void 0]);
u=RFF(q);switch(g){case "Opera":if(MKq())return u(["Version","Opera"]);if(AT()?fkb("Opera"):HS("OPR"))return u(["OPR"]);break;case "Microsoft Edge":if(AT()?0:HS("Edge"))return u(["Edge"]);if(eFK())return u(["Edg"]);break;case "Chromium":if(ih())return u(["Chrome","CriOS","HeadlessChrome"])}return g==="Firefox"&&Im()||g==="Safari"&&_.GMZ()||g==="Android Browser"&&_.$3h()||g==="Silk"&&HS("Silk")?(u=q[2])&&u[1]||"":""};
_.cTu=function(g){if(AT()&&g!=="Silk"){var u=cS.brands.find(function(q){return q.brand===g});
if(!u||!u.version)return NaN;u=u.version.split(".")}else{u=wSK(g);if(u==="")return NaN;u=u.split(".")}return u.length===0?NaN:Number(u[0])};
CZ=function(){return wq?!!cS&&!!cS.platform:!1};
_.HZf=function(){return CZ()?cS.platform==="Android":HS("Android")};
ATS=function(){return HS("iPhone")&&!HS("iPod")&&!HS("iPad")};
_.bh=function(){return ATS()||HS("iPad")||HS("iPod")};
_.ZZq=function(){return CZ()?cS.platform==="macOS":HS("Macintosh")};
_.lku=function(){return CZ()?cS.platform==="Windows":HS("Windows")};
_.Iku=function(){return CZ()?cS.platform==="Chrome OS":HS("CrOS")};
_.dq=function(g){return g[g.length-1]};
iZh=function(g){for(var u=_.am,q=typeof g==="string"?g.split(""):g,Q=g.length-1;Q>=0;Q--)if(Q in q&&u.call(void 0,q[Q],Q,g))return Q;return-1};
_.WS=function(g,u){return _.Vq(g,u)>=0};
_.Chk=function(g,u){_.WS(g,u)||g.push(u)};
_.TM=function(g,u){u=_.Vq(g,u);var q;(q=u>=0)&&_.bZb(g,u);return q};
_.bZb=function(g,u){Array.prototype.splice.call(g,u,1)};
_.Ob=function(g){var u=g.length;if(u>0){for(var q=Array(u),Q=0;Q<u;Q++)q[Q]=g[Q];return q}return[]};
_.BS=function(g,u){for(var q=1;q<arguments.length;q++){var Q=arguments[q];if(_.xu(Q)){var L=g.length||0,E=Q.length||0;g.length=L+E;for(var y=0;y<E;y++)g[L+y]=Q[y]}else g.push(Q)}};
_.FJb=function(g,u,q,Q){Array.prototype.splice.apply(g,d3q(arguments,1))};
d3q=function(g,u,q){return arguments.length<=2?Array.prototype.slice.call(g,u):Array.prototype.slice.call(g,u,q)};
m3b=function(g,u){u=u||g;for(var q=0,Q=0,L={};Q<g.length;){var E=g[Q++],y=_.zM(E)?"o"+_.ku(E):(typeof E).charAt(0)+E;Object.prototype.hasOwnProperty.call(L,y)||(L[y]=!0,u[q++]=E)}u.length=q};
_.VKq=function(g,u,q){q=q||_.akq;for(var Q=0,L=g.length,E;Q<L;){var y=Q+(L-Q>>>1);var v=q(u,g[y]);v>0?Q=y+1:(L=y,E=!v)}return E?Q:-Q-1};
_.SK=function(g,u,q){if(!_.xu(g)||!_.xu(u)||g.length!=u.length)return!1;var Q=g.length;q=q||XSf;for(var L=0;L<Q;L++)if(!q(g[L],u[L]))return!1;return!0};
_.akq=function(g,u){return g>u?1:g<u?-1:0};
XSf=function(g,u){return g===u};
rTq=function(g,u,q){u=Array.prototype.splice.call(g,u,1);Array.prototype.splice.call(g,q,0,u[0])};
_.om=function(g,u){u===void 0&&(u=0);WJJ();u=TqS[u];for(var q=Array(Math.floor(g.length/3)),Q=u[64]||"",L=0,E=0;L<g.length-2;L+=3){var y=g[L],v=g[L+1],J=g[L+2],f=u[y>>2];y=u[(y&3)<<4|v>>4];v=u[(v&15)<<2|J>>6];J=u[J&63];q[E++]=f+y+v+J}f=0;J=Q;switch(g.length-L){case 2:f=g[L+1],J=u[(f&15)<<2]||Q;case 1:g=g[L],q[E]=u[g>>2]+u[(g&3)<<4|f>>4]+J+Q}return q.join("")};
Ybu=function(g){var u="";hFq(g,function(q){u+=String.fromCharCode(q)});
return u};
_.OZq=function(g){var u=[];hFq(g,function(q){u.push(q)});
return u};
_.Ub=function(g){var u=g.length,q=u*3/4;q%3?q=Math.floor(q):_.pZ("=.",g[u-1])&&(q=_.pZ("=.",g[u-2])?q-2:q-1);var Q=new Uint8Array(q),L=0;hFq(g,function(E){Q[L++]=E});
return L!==q?Q.subarray(0,L):Q};
hFq=function(g,u){function q(J){for(;Q<g.length;){var f=g.charAt(Q++),t=qx[f];if(t!=null)return t;if(!_.vS(f))throw Error("I`"+f);}return J}
WJJ();for(var Q=0;;){var L=q(-1),E=q(0),y=q(64),v=q(64);if(v===64&&L===-1)break;u(L<<2|E>>4);y!=64&&(u(E<<4&240|y>>2),v!=64&&u(y<<6&192|v))}};
WJJ=function(){if(!qx){qx={};for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),u=["+/=","+/","-_=","-_.","-_"],q=0;q<5;q++){var Q=g.concat(u[q].split(""));TqS[q]=Q;for(var L=0;L<Q.length;L++){var E=Q[L];qx[E]===void 0&&(qx[E]=L)}}}};
x3M=function(g){return KJh[g]||""};
nuk=function(g){if(!Bqq)return _.Ub(g);g=zFT.test(g)?g.replace(zFT,x3M):g;g=atob(g);for(var u=new Uint8Array(g.length),q=0;q<g.length;q++)u[q]=g.charCodeAt(q);return u};
kMF=function(g,u){g.__closure__error__context__984382||(g.__closure__error__context__984382={});g.__closure__error__context__984382.severity=u};
_.Q$=function(g){g=Error(g);kMF(g,"warning");return g};
ouu=function(g,u){if(g!=null){var q;var Q=(q=Sbk)!=null?q:Sbk={};q=Q[g]||0;q>=u||(Q[g]=q+1,g=Error(),kMF(g,"incident"),Eb(g))}};
E0=function(g,u,q){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(q===void 0?0:q)&&Symbol.for&&g?Symbol.for(g):g!=null?Symbol(g):Symbol():u};
s0=function(g,u){P5||_.Nx in g||U3Z(g,giZ);g[_.Nx]|=u};
Jb=function(g,u){P5||_.Nx in g||U3Z(g,giZ);g[_.Nx]=u};
uWq=function(g){if(4&g)return 512&g?512:1024&g?1024:0};
jX=function(g){s0(g,34);return g};
wa=function(g){s0(g,8192);return g};
q0M=function(g){s0(g,32);return g};
c5=function(){return typeof BigInt==="function"};
iZ=function(g,u){return u===void 0?g.copyOnWrite!==IR&&!!(2&(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Nx]|0)):!!(2&u)&&g.copyOnWrite!==IR};
_.m8=function(g,u){if(g!=null)if(typeof g==="string")g=g?new bZ(g,da):_.FW();else if(g.constructor!==bZ)if(QRF&&g!=null&&g instanceof Uint8Array)g=g.length?new bZ(new Uint8Array(g),da):_.FW();else{if(!u)throw Error();g=void 0}return g};
L8u=function(g,u){if(typeof u!=="number"||u<0||u>=g.length)throw Error();};
EiS=function(g,u,q){var Q=u&128?0:-1,L=g.length,E;if(E=!!L)E=g[L-1],E=E!=null&&typeof E==="object"&&E.constructor===Object;var y=L+(E?-1:0);for(u=u&128?1:0;u<y;u++)q(u-Q,g[u]);if(E){g=g[L-1];for(var v in g)!isNaN(v)&&q(+v,g[v])}};
V$=function(g){return g&128?aR:void 0};
_.sRK=function(g){var u=PZf;if(!NaM(g)){var q,Q;u=(Q=(q=typeof u==="function"?u():u)==null?void 0:q.concat("\n"))!=null?Q:"";throw Error("L`"+u+"`"+String(g));}};
XW=function(g){g.isGuard_doNotManuallySetPrettyPlease=!0;return g};
viq=function(){var g=ybb;return XW(function(u){for(var q in g)if(u===g[q]&&!/^[0-9]+$/.test(q))return!0;return!1})};
_.W5=function(g){var u=g;if(DxJ(u)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(u))throw Error(String(u));}else if(p5b(u)&&!Number.isSafeInteger(u))throw Error(String(u));return Jbh?BigInt(g):g=jRS(g)?g?"1":"0":DxJ(g)?g.trim()||"0":String(g)};
fHM=function(g,u){if(g.length>u.length)return!1;if(g.length<u.length||g===u)return!0;for(var q=0;q<g.length;q++){var Q=g[q],L=u[q];if(Q>L)return!1;if(Q<L)return!0}};
MXJ=function(g){var u=g>>>0;T2=u;Yi=(g-u)/4294967296>>>0};
O0=function(g){if(g<0){MXJ(-g);var u=_.N(tXK(T2,Yi));g=u.next().value;u=u.next().value;T2=g>>>0;Yi=u>>>0}else MXJ(g)};
G2k=function(g){var u=enT||(enT=new DataView(new ArrayBuffer(8)));u.setFloat32(0,+g,!0);Yi=0;T2=u.getUint32(0,!0)};
$xf=function(g,u){var q=u*4294967296+(g>>>0);return Number.isSafeInteger(q)?q:_.xi(g,u)};
RnT=function(g,u){return _.W5(c5()?BigInt.asUintN(64,(BigInt(u>>>0)<<BigInt(32))+BigInt(g>>>0)):_.xi(g,u))};
z2=function(g,u){var q=u&2147483648;q&&(g=~g+1>>>0,u=~u>>>0,g==0&&(u=u+1>>>0));g=$xf(g,u);return typeof g==="number"?q?-g:g:q?"-"+g:g};
w5J=function(g,u){return c5()?_.W5(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(u))<<BigInt(32))+BigInt.asUintN(32,BigInt(g)))):_.W5(_.ki(g,u))};
cbS=function(g){var u=T2,q=Yi,Q=q>>31;q=(q<<1|u>>>31)^Q;g(u<<1^Q,q)};
AbJ=function(g,u){return HoJ(g,u,z2)};
HoJ=function(g,u,q){var Q=-(g&1);g=(g>>>1|u<<31)^Q;u=u>>>1^Q;return q(g,u)};
_.xi=function(g,u){u>>>=0;g>>>=0;if(u<=2097151)var q=""+(4294967296*u+g);else c5()?q=""+(BigInt(u)<<BigInt(32)|BigInt(g)):(q=(g>>>24|u<<8)&16777215,u=u>>16&65535,g=(g&16777215)+q*6777216+u*6710656,q+=u*8147497,u*=2,g>=1E7&&(q+=g/1E7>>>0,g%=1E7),q>=1E7&&(u+=q/1E7>>>0,q%=1E7),q=u+Zof(q)+Zof(g));return q};
Zof=function(g){g=String(g);return"0000000".slice(g.length)+g};
_.ki=function(g,u){u&2147483648?c5()?g=""+(BigInt(u|0)<<BigInt(32)|BigInt(g>>>0)):(u=_.N(tXK(g,u)),g=u.next().value,u=u.next().value,g="-"+_.xi(g,u)):g=_.xi(g,u);return g};
SX=function(g){if(g.length<16)O0(Number(g));else if(c5())g=BigInt(g),T2=Number(g&BigInt(4294967295))>>>0,Yi=Number(g>>BigInt(32)&BigInt(4294967295));else{var u=+(g[0]==="-");Yi=T2=0;for(var q=g.length,Q=u,L=(q-u)%6+u;L<=q;Q=L,L+=6)Q=Number(g.slice(Q,L)),Yi*=1E6,T2=T2*1E6+Q,T2>=4294967296&&(Yi+=Math.trunc(T2/4294967296),Yi>>>=0,T2>>>=0);u&&(u=_.N(tXK(T2,Yi)),g=u.next().value,u=u.next().value,T2=g,Yi=u)}};
tXK=function(g,u){u=~u;g?g=~g+1:u+=1;return[g,u]};
ux=function(g){return Array.prototype.slice.call(g)};
_.qE=function(g,u){throw Error(u===void 0?"unexpected value "+g+"!":u);};
_.Qp=function(g){if(g!=null&&typeof g!=="number")throw Error("M`"+typeof g+"`"+g);return g};
_.L9=function(g){if(g==null||typeof g==="number")return g;if(g==="NaN"||g==="Infinity"||g==="-Infinity")return Number(g)};
lHf=function(g){if(g!=null&&typeof g!=="boolean")throw Error("N`"+_.EZ(g)+"`"+g);return g};
_.IHT=function(g){if(g==null||typeof g==="boolean")return g;if(typeof g==="number")return!!g};
_.sZ=function(g){switch(typeof g){case "bigint":return!0;case "number":return Pn(g);case "string":return ioF.test(g);default:return!1}};
_.vn=function(g){if(!Pn(g))throw _.Q$("enum");return g|0};
_.Db=function(g){return g==null?g:Pn(g)?g|0:void 0};
CZf=function(g){if(typeof g!=="number")throw _.Q$("int32");if(!Pn(g))throw _.Q$("int32");return g|0};
_.p9=function(g){return g==null?g:CZf(g)};
_.Jh=function(g){if(g==null)return g;if(typeof g==="string"&&g)g=+g;else if(typeof g!=="number")return;return Pn(g)?g|0:void 0};
_.bof=function(g){if(g==null)return g;if(typeof g==="string"&&g)g=+g;else if(typeof g!=="number")return;return Pn(g)?g>>>0:void 0};
aHK=function(g){var u=0;u=u===void 0?0:u;if(!_.sZ(g))throw _.Q$("int64");var q=typeof g;switch(u){case 512:switch(q){case "string":return f9(g);case "bigint":return String(ef(64,g));default:return dx3(g)}case 1024:switch(q){case "string":return F8K(g);case "bigint":return _.W5(ef(64,g));default:return mxq(g)}case 0:switch(q){case "string":return f9(g);case "bigint":return _.W5(ef(64,g));default:return Gh(g)}default:return _.qE(u,"Unknown format requested type for int64")}};
RH=function(g){return g==null?g:aHK(g)};
VXu=function(g){var u=g.length;if(g[0]==="-"?u<20||u===20&&g<="-9223372036854775808":u<19||u===19&&g<="9223372036854775807")return g;SX(g);return _.ki(T2,Yi)};
X5f=function(g){if(g[0]==="-")var u=!1;else u=g.length,u=u<20?!0:u===20&&g<="18446744073709551615";if(u)return g;SX(g);return _.xi(T2,Yi)};
Gh=function(g){g=wC(g);cn(g)||(O0(g),g=z2(T2,Yi));return g};
_.rb3=function(g){g=wC(g);g>=0&&cn(g)||(O0(g),g=$xf(T2,Yi));return g};
dx3=function(g){g=wC(g);cn(g)?g=String(g):(O0(g),g=_.ki(T2,Yi));return g};
_.W8q=function(g){g=wC(g);g>=0&&cn(g)?g=String(g):(O0(g),g=_.xi(T2,Yi));return g};
f9=function(g){var u=wC(Number(g));if(cn(u))return String(u);u=g.indexOf(".");u!==-1&&(g=g.substring(0,u));return VXu(g)};
F8K=function(g){var u=wC(Number(g));if(cn(u))return _.W5(u);u=g.indexOf(".");u!==-1&&(g=g.substring(0,u));return c5()?_.W5(ef(64,BigInt(g))):_.W5(VXu(g))};
mxq=function(g){return cn(g)?_.W5(Gh(g)):_.W5(dx3(g))};
_.Tah=function(g){return cn(g)?_.W5(_.rb3(g)):_.W5(_.W8q(g))};
_.hnK=function(g){var u=wC(Number(g));if(cn(u)&&u>=0)return String(u);u=g.indexOf(".");u!==-1&&(g=g.substring(0,u));return X5f(g)};
_.Y0K=function(g){var u=wC(Number(g));if(cn(u)&&u>=0)return _.W5(u);u=g.indexOf(".");u!==-1&&(g=g.substring(0,u));return c5()?_.W5((0,_.Ah)(64,BigInt(g))):_.W5(X5f(g))};
K8b=function(g){if(g==null)return g;if(typeof g==="bigint")return Oom(g)?g=Number(g):(g=ef(64,g),g=Oom(g)?Number(g):String(g)),g;if(_.sZ(g))return typeof g==="number"?Gh(g):f9(g)};
xxq=function(g,u){u=u===void 0?!1:u;var q=typeof g;if(g==null)return g;if(q==="bigint")return String(ef(64,g));if(_.sZ(g))return q==="string"?f9(g):u?dx3(g):Gh(g)};
Ba3=function(g){var u=typeof g;if(g==null)return g;if(u==="bigint")return _.W5(ef(64,g));if(_.sZ(g))return u==="string"?F8K(g):mxq(g)};
znZ=function(g){var u=typeof g;if(g==null)return g;if(u==="bigint")return _.W5((0,_.Ah)(64,g));if(_.sZ(g))return u==="string"?_.Y0K(g):_.Tah(g)};
niZ=function(g){if(g==null)return g;var u=typeof g;if(u==="bigint")return String(ef(64,g));if(_.sZ(g)){if(u==="string")return f9(g);if(u==="number")return Gh(g)}};
k2b=function(g){if(g==null)return g;var u=typeof g;if(u==="bigint")return String((0,_.Ah)(64,g));if(_.sZ(g)){if(u==="string")return _.hnK(g);if(u==="number")return _.rb3(g)}};
_.Zb=function(g){if(typeof g!=="string")throw Error();return g};
IH=function(g){if(g!=null&&typeof g!=="string")throw Error();return g};
_.C9=function(g){return g==null||typeof g==="string"?g:void 0};
Uxq=function(g,u,q,Q){if(g!=null&&g[bx]===Ft)return g;if(!Array.isArray(g))return q?Q&2?u[S0b]||(u[S0b]=oih(u)):new u:void 0;q=g[_.Nx]|0;Q=q|Q&32|Q&2;Q!==q&&Jb(g,Q);return new u(g)};
oih=function(g){g=new g;jX(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return g};
gLS=function(g,u,q){g=u?CZf(g):_.Jh(g);return g==null?q?0:void 0:g|0};
utu=function(g){return g};
qZZ=function(g){return g};
Lz3=function(g,u,q,Q,L,E){g=Uxq(g,Q,q,E);L&&(g=QHf(g));return g};
ELf=function(g){return[g,this.get(g)]};
sHf=function(){return PxJ||(PxJ=new mz(jX([]),void 0,void 0,void 0,NCZ))};
yhT=function(g){var u=aH(rC);return u?g[u]:void 0};
pnh=function(g,u){var q=q===void 0?!1:q;if(aH(vLJ)&&aH(rC)&&void 0===vLJ){var Q=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=Q[rC];if(!L)return;if(L=L.reviveUnknownFields)try{L(Q,u,DEh);return}catch(E){Eb(E)}}q&&(g=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(q=aH(rC))&&q in g&&(g=g[q])&&delete g[u])};
jHT=function(g,u){var q=aH(rC),Q;P5&&q&&((Q=g[q])==null?void 0:Q[u])!=null&&ouu(Jhq,3)};
Mf3=function(g,u){u<100||ouu(fbb,1)};
RKb=function(g,u,q,Q){var L=Q!==void 0;Q=!!Q;var E=aH(rC),y;!L&&P5&&E&&(y=g[E])&&tf3(y,Mf3);E=[];var v=g.length;y=4294967295;var J=!1,f=!!(u&64),t=f?u&128?0:-1:void 0;if(!(u&1)){var e=v&&g[v-1];e!=null&&typeof e==="object"&&e.constructor===Object?(v--,y=v):e=void 0;if(f&&!(u&128)&&!L){J=!0;var G;y=((G=eKF)!=null?G:utu)(y-t,t,g,e,void 0)+t}}u=void 0;for(G=0;G<v;G++){var R=g[G];if(R!=null&&(R=q(R,Q))!=null)if(f&&G>=y){var H=G-t,l=void 0;((l=u)!=null?l:u={})[H]=R}else E[G]=R}if(e)for(var d in e)v=e[d],
v!=null&&(v=q(v,Q))!=null&&(G=+d,R=void 0,f&&!Number.isNaN(G)&&(R=G+t)<y?E[R]=v:(G=void 0,((G=u)!=null?G:u={})[d]=v));u&&(J?E.push(u):E[y]=u);L&&aH(rC)&&(g=yhT(g))&&g instanceof Gh3&&(E[rC]=$EZ(g));return E};
chT=function(g){g[0]=wnu(g[0]);g[1]=wnu(g[1]);return g};
wnu=function(g){switch(typeof g){case "number":return Number.isFinite(g)?g:""+g;case "bigint":return Oom(g)?Number(g):""+g;case "boolean":return g?1:0;case "object":if(Array.isArray(g)){var u=g[_.Nx]|0;return g.length===0&&u&1?void 0:RKb(g,u,wnu)}if(g!=null&&g[bx]===Ft)return H9m(g);if(g instanceof bZ){u=g.JSC$9127_value_;if(u==null)g="";else if(typeof u==="string")g=u;else{if(Bqq){for(var q="",Q=0,L=u.length-10240;Q<L;)q+=String.fromCharCode.apply(null,u.subarray(Q,Q+=10240));q+=String.fromCharCode.apply(null,
Q?u.subarray(Q):u);u=btoa(q)}else u=_.om(u);g=g.JSC$9127_value_=u}return g}if(g instanceof mz)return g=g.size!==0?Ahq(g,chT):void 0,g;return}return g};
Wn=function(g,u){if(u){eKF=u==null||u===utu||u[Z9J]!==lbJ?utu:u;try{return H9m(g)}finally{eKF=void 0}}return H9m(g)};
H9m=function(g){g=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return RKb(g,g[_.Nx]|0,wnu)};
CxF=function(g){switch(typeof g){case "boolean":return IbZ||(IbZ=[0,void 0,!0]);case "number":return g>0?void 0:g===0?i9h||(i9h=[0,void 0]):[-g,void 0];case "string":return[0,g];case "object":return g}};
Th=function(g,u){return b9u(g,u[0],u[1])};
_.YL=function(g,u,q){return b9u(g,u,q,2048)};
b9u=function(g,u,q,Q){Q=Q===void 0?0:Q;if(g==null){var L=32;q?(g=[q],L|=128):g=[];u&&(L=L&-16760833|(u&1023)<<14)}else{if(!Array.isArray(g))throw Error("P");L=g[_.Nx]|0;if(dEu&&1&L)throw Error("Q");2048&L&&!(2&L)&&Fzq();if(L&256)throw Error("R");if(L&64)return(L|Q)!==L&&Jb(g,L|Q),g;if(q&&(L|=128,q!==g[0]))throw Error("S");a:{q=g;L|=64;var E=q.length;if(E){var y=E-1,v=q[y];if(v!=null&&typeof v==="object"&&v.constructor===Object){u=L&128?0:-1;y-=u;if(y>=1024)throw Error("U");for(var J in v)E=+J,E<y&&
(q[E+u]=v[J],delete v[J]);L=L&-16760833|(y&1023)<<14;break a}}if(u){J=Math.max(u,E-(L&128?0:-1));if(J>1024)throw Error("V");L=L&-16760833|(J&1023)<<14}}}Jb(g,L|64|Q);return g};
Fzq=function(){if(dEu)throw Error("T");ouu(mEb,5)};
Xnm=function(g,u){if(typeof g!=="object")return g;if(Array.isArray(g)){var q=g[_.Nx]|0;return g.length===0&&q&1?void 0:abJ(g,q,u)}if(g!=null&&g[bx]===Ft)return VfT(g);if(g instanceof mz){u=g.arrayState;if(u&2)return g;if(!g.size)return;q=jX(Ahq(g));if(g.valueCtor)for(g=0;g<q.length;g++){var Q=q[g],L=Q[1];L==null||typeof L!=="object"?L=void 0:L!=null&&L[bx]===Ft?L=VfT(L):Array.isArray(L)?L=abJ(L,L[_.Nx]|0,!!(u&32)):L=void 0;Q[1]=L}return q}if(g instanceof bZ)return g};
abJ=function(g,u,q){if(u&2)return g;!q||4096&u||16&u?g=OZ(g,u,!1,q&&!(u&16)):(s0(g,34),u&4&&Object.freeze(g));return g};
rhF=function(g,u,q){g=new g.constructor(u);q&&(g.copyOnWrite=IR);g.noLegacyNull=IR;return g};
VfT=function(g){var u=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=u[_.Nx]|0;return iZ(g,q)?g:WzM(g,u,q)?rhF(g,u):OZ(u,q)};
OZ=function(g,u,q,Q){Q!=null||(Q=!!(34&u));g=RKb(g,u,Xnm,Q);Q=32;q&&(Q|=2);u=u&16769217|Q;Jb(g,u);return g};
QHf=function(g){var u=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=u[_.Nx]|0;return iZ(g,q)?WzM(g,u,q)?rhF(g,u,!0):new g.constructor(OZ(u,q,!1)):g};
xL=function(g){if(g.copyOnWrite!==IR)return!1;var u=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;u=OZ(u,u[_.Nx]|0);s0(u,2048);g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=u;g.copyOnWrite=void 0;g.noLegacyNull=void 0;return!0};
Bn=function(g){if(!xL(g)&&iZ(g,g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Nx]|0))throw Error();};
zh=function(g,u){u===void 0&&(u=g[_.Nx]|0);u&32&&!(u&4096)&&Jb(g,u|4096)};
WzM=function(g,u,q){return q&2?!0:q&32&&!(q&4096)?(Jb(u,q|2),g.copyOnWrite=IR,!0):!1};
kL=function(g,u,q,Q,L){var E=q+(L?0:-1),y=g.length-1;if(y>=1+(L?0:-1)&&E>=y){var v=g[y];if(v!=null&&typeof v==="object"&&v.constructor===Object)return v[q]=Q,u}if(E<=y)return g[E]=Q,u;if(Q!==void 0){var J;y=((J=u)!=null?J:u=g[_.Nx]|0)>>14&1023||536870912;q>=y?Q!=null&&(E={},g[y+(L?0:-1)]=(E[q]=Q,E)):g[E]=Q}return u};
_.uO=function(g,u,q,Q,L){var E=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=E[_.Nx]|0;Q=iZ(g,y)?1:Q;L=!!L||Q===3;Q===2&&xL(g)&&(E=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=E[_.Nx]|0);g=TCq(E,u);var v=g===Sf?7:g[_.Nx]|0,J=hKq(v,y);var f=4&J?!1:!0;if(f){4&J&&(g=ux(g),v=0,J=oH(J,y),y=kL(E,y,u,g));for(var t=0,e=0;t<g.length;t++){var G=q(g[t]);G!=null&&(g[e++]=G)}e<t&&(g.length=e);q=(J|4)&-513;J=q&=-1025;J&=-4097}J!==v&&(Jb(g,J),2&J&&Object.freeze(g));return g=YZk(g,J,E,
y,u,Q,f,L)};
YZk=function(g,u,q,Q,L,E,y,v){var J=u;E===1||(E!==4?0:2&u||!(16&u)&&32&Q)?qk(u)||(u|=!g.length||y&&!(4096&u)||32&Q&&!(4096&u||16&u)?2:256,u!==J&&Jb(g,u),Object.freeze(g)):(E===2&&qk(u)&&(g=ux(g),J=0,u=oH(u,Q),Q=kL(q,Q,L,g)),qk(u)||(v||(u|=16),u!==J&&Jb(g,u)));2&u||!(4096&u||16&u)||zh(q,Q);return g};
TCq=function(g,u,q){g=QB(g,u,q);return Array.isArray(g)?g:Sf};
hKq=function(g,u){2&u&&(g|=2);return g|1};
qk=function(g){return!!(2&g)&&!!(4&g)||!!(256&g)};
O9q=function(g){return _.m8(g,!0)};
Kzm=function(g){g=ux(g);for(var u=0;u<g.length;u++){var q=g[u]=ux(g[u]);Array.isArray(q[1])&&(q[1]=jX(q[1]))}return wa(g)};
_.xEb=function(g,u,q,Q,L){var E=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=E[_.Nx]|0;var v=iZ(g,y);a:{!v&&xL(g)&&(E=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=E[_.Nx]|0);var J=QB(E,u);g=!1;if(J==null){if(v){u=sHf();break a}J=[]}else if(J.constructor===mz)if(J.arrayState&2&&!v)J=Ahq(J);else{u=J;break a}else Array.isArray(J)?g=!!((J[_.Nx]|0)&2):J=[];if(v){if(!J.length){u=sHf();break a}g||(g=!0,jX(J))}else g&&(g=!1,wa(J),J=Kzm(J));!g&&y&32&&q0M(J);Q=new mz(J,q,Q,L);y=
kL(E,y,u,Q);g||zh(E,y);u=Q}!v&&q&&(u.callToMutableOnAccess=!0);return u};
_.Lv=function(g,u,q,Q){Bn(g);var L=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=L[_.Nx]|0;if(q==null)return kL(L,E,u),g;var y=q===Sf?7:q[_.Nx]|0,v=y,J=qk(y),f=J||Object.isFrozen(q);J||(y=0);f||(q=ux(q),v=0,y=oH(y,E),f=!1);y|=5;var t;J=(t=uWq(y))!=null?t:0;for(t=0;t<q.length;t++){var e=q[t],G=Q(e,J);Object.is(e,G)||(f&&(q=ux(q),v=0,y=oH(y,E),f=!1),q[t]=G)}y!==v&&(f&&(q=ux(q),y=oH(y,E)),Jb(q,y));kL(L,E,u,q);return g};
_.PT=function(g,u,q,Q,L){Bn(g);var E=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;kL(E,E[_.Nx]|0,u,(Q==="0"?Number(q)===0:q===Q)?void 0:q,L);return g};
_.sT=function(g,u,q){if(u&2)throw Error();var Q=V$(u),L=TCq(g,q,Q),E=L===Sf?7:L[_.Nx]|0,y=hKq(E,u);if(2&y||qk(y)||16&y)y===E||qk(y)||Jb(L,y),L=ux(L),E=0,y=oH(y,u),kL(g,u,q,L,Q);y&=-13;y!==E&&Jb(L,y);return L};
BCk=function(g){if(P5){var u;return(u=g[yB])!=null?u:g[yB]=new Map}if(yB in g)return g[yB];u=new Map;Object.defineProperty(g,yB,{value:u});return u};
nLT=function(g,u,q,Q,L){var E=BCk(g),y=zKM(E,g,u,q,L);y!==Q&&(y&&(u=kL(g,u,y,void 0,L)),E.set(q,Q));return u};
zKM=function(g,u,q,Q,L){var E=g.get(Q);if(E!=null)return E;for(var y=E=0;y<Q.length;y++){var v=Q[y];QB(u,v,L)!=null&&(E!==0&&(q=kL(u,q,E,void 0,L)),E=v)}g.set(Q,E);return E};
khJ=function(g,u,q,Q,L){var E=!1;Q=QB(g,Q,L,function(y){var v=Uxq(y,q,!1,u);E=v!==y&&v!=null;return v});
if(Q!=null)return E&&!iZ(Q)&&zh(g,u),Q};
SZb=function(g,u,q,Q,L,E,y,v){var J=iZ(g,q);E=J?1:E;y=!!y||E===3;J=v&&!J;(E===2||J)&&xL(g)&&(u=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=u[_.Nx]|0);g=TCq(u,L);var f=g===Sf?7:g[_.Nx]|0,t=hKq(f,q);if(v=!(4&t)){var e=g,G=q,R=!!(2&t);R&&(G|=2);for(var H=!R,l=!0,d=0,F=0;d<e.length;d++){var V=Uxq(e[d],Q,!1,G);if(V instanceof Q){if(!R){var z=iZ(V);H&&(H=!z);l&&(l=z)}e[F++]=V}}F<d&&(e.length=F);t|=4;t=l?t&-4097:t|4096;t=H?t|8:t&-9}t!==f&&(Jb(g,t),2&t&&Object.freeze(g));if(J&&!(8&t||!g.length&&
(E===1||(E!==4?0:2&t||!(16&t)&&32&q)))){qk(t)&&(g=ux(g),t=oH(t,q),q=kL(u,q,L,g));Q=g;J=t;for(f=0;f<Q.length;f++)e=Q[f],t=QHf(e),e!==t&&(Q[f]=t);J|=8;t=J=Q.length?J|4096:J&-4097;Jb(g,t)}return g=YZk(g,t,u,q,L,E,v,y)};
oLm=function(g){g==null&&(g=void 0);return g};
oH=function(g,u){return g=(2&u?g|2:g&-3)&-273};
_.UEb=function(g,u,q,Q,L){Bn(g);u=_.uO(g,u,L,2,!0);var E;L=(E=uWq(u===Sf?7:u[_.Nx]|0))!=null?E:0;u.push(q(Q,L));return g};
gVf=function(g,u,q,Q,L,E,y){Bn(g);var v=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=SZb(g,v,v[_.Nx]|0,q,u,2,!0);if(E&&y)L!=null||(L=g.length-1),L8u(g,L),g.splice(L,E),g.length||(g[_.Nx]&=-4097);else{if(E){if(typeof L!=="number"||L<0||L>g.length)throw Error();}else Q=Q!=null?Q:new q;L!=void 0?g.splice(L,E,Q):g.push(Q);L=q=g===Sf?7:g[_.Nx]|0;(Q=iZ(Q))?(q&=-9,g.length===1&&(q&=-4097)):q|=4096;q!==L&&Jb(g,q);Q||zh(v)}};
qTJ=function(g,u){if(typeof g==="string")return new vT(nuk(g),u);if(Array.isArray(g))return new vT(new Uint8Array(g),u);if(g.constructor===Uint8Array)return new vT(g,!1);if(g.constructor===ArrayBuffer)return g=new Uint8Array(g),new vT(g,!1);if(g.constructor===bZ)return u=uVq(g)||new Uint8Array(0),new vT(u,!0,g);if(g instanceof Uint8Array)return g=g.constructor===Uint8Array?g:new Uint8Array(g.buffer,g.byteOffset,g.byteLength),new vT(g,!1);throw Error();};
LGk=function(g){switch(typeof g){case "string":Q3k(g)}};
POZ=function(g){switch(typeof g){case "string":EVM(g)}};
DO=function(){var g=function(){throw Error();};
Object.setPrototypeOf(g,g.prototype);return g};
s3Z=function(g,u){var q=q===void 0?N0J:q;return new pv(g,u,q)};
DkS=function(g,u,q,Q,L){yeT(g,q,vVu(u,Q),L)};
Je=function(g,u,q,Q){var L=Q[g];if(L)return L;L={};L.binaryFields=Q;L.messageMetadata=CxF(Q[0]);var E=Q[1],y=1;E&&E.constructor===Object&&(L.extensions=E,E=Q[++y],typeof E==="function"&&(L.isMessageSet=!0,pTf!=null||(pTf=E),Jek!=null||(Jek=Q[y+1]),E=Q[y+=2]));for(var v={};E&&j3q(E);){for(var J=0;J<E.length;J++)v[E[J]]=E;E=Q[++y]}for(J=1;E!==void 0;){typeof E==="number"&&(J+=E,E=Q[++y]);var f=void 0;if(E instanceof pv)var t=E;else t=fOu,y--;E=void 0;if((E=t)==null?0:E.$$isMsg){E=Q[++y];f=Q;var e=y;
typeof E==="function"&&(E=E(),f[e]=E);f=E}E=Q[++y];e=J+1;typeof E==="number"&&E<0&&(e-=E,E=Q[++y]);for(;J<e;J++){var G=v[J];f?q(L,J,t,f,G):u(L,J,t,G)}}return Q[g]=L};
j3q=function(g){return Array.isArray(g)&&!!g.length&&typeof g[0]==="number"&&g[0]>0};
tOS=function(g){return Array.isArray(g)?g[0]instanceof pv?g:[MO3,g]:[g,void 0]};
vVu=function(g,u){if(g instanceof _.fv)return g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(g))return Th(g,u)};
eem=function(g,u,q,Q){var L=q.$$binaryReaderFn;g[u]=Q?function(E,y,v){return L(E,y,v,Q)}:L};
$kM=function(g,u,q,Q,L){var E=q.$$binaryReaderFn,y,v;g[u]=function(J,f,t){return E(J,f,t,v||(v=Je(GsK,eem,$kM,Q).messageMetadata),y||(y=Ref(Q)),L)}};
Ref=function(g){var u=g[wTh];if(u!=null)return u;var q=Je(GsK,eem,$kM,g);u=q.isMessageSet?function(Q,L){return pTf(Q,L,q)}:function(Q,L){for(;ceM(L)&&L.nextWireType_!=4;){var E=L.nextField_,y=q[E];
if(y==null){var v=q.extensions;v&&(v=v[E])&&(v=Hvk(v),v!=null&&(y=q[E]=v))}if(y==null||!y(L,Q,E)){v=L;y=v.fieldCursor_;AeZ(v);if(v.discardUnknownFields)var J=void 0;else{var f=v.decoder_.cursor_-y;v.decoder_.cursor_=y;J=Zvf(v.decoder_,f)}f=v=y=void 0;var t=Q;J&&((y=(v=(f=t[rC])!=null?f:t[rC]=new Gh3)[E])!=null?y:v[E]=[]).push(J)}}if(Q=yhT(Q))Q.reviveUnknownFields=q.binaryFields[lOF];return!0};
g[wTh]=u;g[lOF]=IOb.bind(g);return u};
IOb=function(g,u,q,Q){var L=this[GsK],E=this[wTh],y=Th(void 0,L.messageMetadata),v=yhT(g);if(v){var J=!1,f=L.extensions;if(f){L=function(H,l,d){if(d.length!==0)if(f[l])for(H=_.N(d),l=H.next();!l.done;l=H.next()){l=ivk(l.value);try{J=!0,E(y,l)}finally{l.free()}}else Q==null||Q(g,l,d)};
if(u==null)tf3(v,L);else if(v!=null){var t=v[u];t&&L(v,u,t)}if(J){var e=g[_.Nx]|0;if(e&2&&e&2048&&(q==null||!q.reviveIntoImmutable))throw Error();var G=V$(e),R=function(H,l){if(QB(g,H,G)!=null)switch(q==null?void 0:q.resolutionBehavior){case 1:return;default:throw Error();}l!=null&&(e=kL(g,e,H,l,G));delete v[H]};
u==null?EiS(y,y[_.Nx]|0,function(H,l){R(H,l)}):R(u,QB(y,u,G))}}}};
Hvk=function(g){g=tOS(g);var u=g[0].$$binaryReaderFn;if(g=g[1]){var q=Ref(g),Q=Je(GsK,eem,$kM,g).messageMetadata;return function(L,E,y){return u(L,E,y,Q,q)}}return u};
COq=function(g,u,q){g[u]=q.$$binaryWriterFn};
dkZ=function(g,u,q,Q){var L,E,y=q.$$binaryWriterFn;g[u]=function(v,J,f){return y(v,J,f,E||(E=Je(bvq,COq,dkZ,Q).messageMetadata),L||(L=FGh(Q)))}};
FGh=function(g){var u=g[mkf];if(!u){var q=Je(bvq,COq,dkZ,g);u=function(Q,L){return aOk(Q,L,q)};
g[mkf]=u}return u};
aOk=function(g,u,q){EiS(g,g[_.Nx]|0,function(Q,L){if(L!=null){var E=VOq(q,Q);E?E(u,L,Q):Q<500||ouu(XTu,3)}});
(g=yhT(g))&&tf3(g,function(Q,L,E){Mk(u,u.encoder_.end());for(Q=0;Q<E.length;Q++)Mk(u,uVq(E[Q])||new Uint8Array(0))})};
VOq=function(g,u){var q=g[u];if(q)return q;if(q=g.extensions)if(q=q[u]){q=tOS(q);var Q=q[0].$$binaryWriterFn;if(q=q[1]){var L=FGh(q),E=Je(bvq,COq,dkZ,q).messageMetadata;q=g.isMessageSet?Jek(E,L):function(y,v,J){return Q(y,v,J,E,L)}}else q=Q;
return g[u]=q}};
_.reJ=function(g,u,q){if(Array.isArray(u)){var Q=u[_.Nx]|0;if(Q&4)return u;for(var L=0,E=0;L<u.length;L++){var y=g(u[L]);y!=null&&(u[E++]=y)}E<L&&(u.length=E);g=Q|1;q&&(g=(g|4)&-1537);g!==Q&&Jb(u,g);q&&g&2&&Object.freeze(u);return u}};
_.te=function(g,u,q){return new pv(g,u,q)};
_.WGT=function(g,u,q){return new pv(g,u,q)};
_.eO=function(g,u,q){kL(g,g[_.Nx]|0,u,q,V$(g[_.Nx]|0))};
T0K=function(g,u,q){u=_.L9(u);u!=null&&(_.Gs(g,q,1),g=g.encoder_,q=enT||(enT=new DataView(new ArrayBuffer(8))),q.setFloat64(0,+u,!0),T2=q.getUint32(0,!0),Yi=q.getUint32(4,!0),_.$V(g,T2),_.$V(g,Yi))};
hem=function(g,u,q){u=_.L9(u);u!=null&&(_.Gs(g,q,5),g=g.encoder_,G2k(u),_.$V(g,T2))};
_.w0=function(g,u,q){u=niZ(u);if(u!=null&&(LGk(u),u!=null))switch(_.Gs(g,q,0),typeof u){case "number":g=g.encoder_;O0(u);R3(g,T2,Yi);break;case "bigint":q=BigInt.asUintN(64,u);q=new YTK(Number(q&BigInt(4294967295)),Number(q>>BigInt(32)));R3(g.encoder_,q.JSC$9170_lo,q.JSC$9170_hi);break;default:q=Q3k(u),R3(g.encoder_,q.JSC$9170_lo,q.JSC$9170_hi)}};
KGZ=function(g,u,q){u=k2b(u);if(u!=null&&(POZ(u),u!=null))switch(_.Gs(g,q,0),typeof u){case "number":g=g.encoder_;O0(u);R3(g,T2,Yi);break;case "bigint":q=Ovq(u);R3(g.encoder_,q.JSC$9168_lo,q.JSC$9168_hi);break;default:q=EVM(u),R3(g.encoder_,q.JSC$9168_lo,q.JSC$9168_hi)}};
B0q=function(g,u,q){u=_.Jh(u);u!=null&&u!=null&&(_.Gs(g,q,0),_.xkZ(g.encoder_,u))};
_.nVq=function(g,u,q){zeh(g,q,k2b(u))};
ks3=function(g,u,q){u=_.IHT(u);u!=null&&(_.Gs(g,q,0),g.encoder_.JSC$9172_buffer_.push(u?1:0))};
oVu=function(g,u,q){u=_.C9(u);u!=null&&STq(g,q,pSJ(u))};
Ukq=function(g,u,q,Q,L){yeT(g,q,vVu(u,Q),L)};
_.gA3=function(g,u,q){u=u==null||typeof u=="string"||u instanceof bZ?u:void 0;u!=null&&STq(g,q,qTJ(u,!0).buffer)};
urq=function(g,u,q){u=_.bof(u);u!=null&&u!=null&&(_.Gs(g,q,0),cT(g.encoder_,u))};
_.qP3=function(g,u,q){u=_.Jh(u);u!=null&&(u=parseInt(u,10),_.Gs(g,q,0),_.xkZ(g.encoder_,u))};
Quq=function(g,u,q){if(g.nextWireType_!==0)return!1;_.eO(u,q,_.Ae(g.decoder_,w5J));return!0};
_.Lsf=function(g,u,q,Q){if(g.nextWireType_!==0)return!1;_.ZO(u,q,Q,_.Ae(g.decoder_,w5J));return!0};
EAm=function(g,u,q){if(g.nextWireType_!==0)return!1;_.eO(u,q,_.Ae(g.decoder_,RnT));return!0};
_.NtF=function(g,u,q){if(g.nextWireType_!==1)return!1;_.eO(u,q,P8b(g.decoder_));return!0};
_.lO=function(g,u){return function(q,Q){var L={treatNewDataAsImmutable:!0};Q&&Object.assign(L,Q);q=ivk(q,void 0,void 0,L);try{var E=new g,y=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Ref(u)(y,q);var v=E}finally{q.free()}return v}};
_.iO=function(g){return function(u){return sum(u,g)}};
yBq=function(g){return function(){return sum(this,g)}};
_.vAq=function(g){return XW(function(u){return u instanceof g&&!iZ(u)})};
_.bO=function(g){return function(u){return Daq(g,u)}};
fK3=function(g,u){return px3({child:g,origin:u||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:JBZ,getPayloadCase:function(q){return q.getPayloadCase()},
createInitMessage:function(q){var Q=new d0,L=new juJ;q=_.FV(L,1,q);return _.mG(Q,5,a3,q)}})};
VB=function(g){return{valueOf:g}.valueOf()};
txq=function(){var g=null;if(!MxJ)return g;try{var u=function(q){return q};
g=MxJ.createPolicy("goog#html",{createHTML:u,createScript:u,createScriptURL:u})}catch(q){}return g};
GFm=function(){emJ===void 0&&(emJ=txq());return emJ};
_.r0=function(g){var u=GFm();g=u?u.createScriptURL(g):g;return new XV(g)};
_.WT=function(g){if(g instanceof XV)return g.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("$");};
_.Ts=function(g){return Object.isFrozen(g)&&Object.isFrozen(g.raw)};
$aq=function(g){return g.toString().indexOf("`")===-1};
Kv=function(g){return new _.he(Rmq,g)};
xV=function(g){return g instanceof _.he};
_.BT=function(g){if(xV(g))return g.privateDoNotAccessOrElseWrappedUrl;throw Error("$");};
zs=function(g){return new wxS(function(u){return u.substr(0,g.length+1).toLowerCase()===g+":"})};
_.nv=function(g,u){u=u===void 0?cB3:u;if(xV(g))return g;for(var q=0;q<u.length;++q){var Q=u[q];if(Q instanceof wxS&&Q.isValid(g))return Kv(g)}};
_.SO=function(g,u){u=u===void 0?cB3:u;return _.nv(g,u)||kV};
_.o3=function(g){var u=window;if(typeof MediaSource!=="undefined"&&g instanceof MediaSource||typeof u.ManagedMediaSource!=="undefined"&&g instanceof u.ManagedMediaSource)return Kv(URL.createObjectURL(g));u=g.type;u.toLowerCase()==="application/octet-stream"?u=!0:(u=u.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),u=(u==null?void 0:u.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(u[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(u[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(u[1])||/^font\/[\w-]+$/i.test(u[1])));if(!u)throw Error("$");return Kv(URL.createObjectURL(g))};
_.Hah=function(g){for(var u=_.UT.apply(1,arguments),q=[g[0]],Q=0;Q<u.length;Q++)q.push(String(u[Q])),q.push(g[Q+1]);return Kv(q.join(""))};
_.Zaq=function(g){if(!ABM){a:{var u=document.createElement("a");try{u.href=g}catch(q){g=void 0;break a}g=u.protocol;g=g===":"||g===""?"https:":g}return g}try{u=new URL(g)}catch(q){return"https:"}return u.protocol};
_.gt=function(g){g instanceof _.he?g=_.BT(g):g=lKq.test(g)?g:void 0;return g};
u8=function(g,u){u=_.gt(u);u!==void 0&&(g.href=u)};
QT=function(g){var u=GFm();g=u?u.createHTML(g):g;return new qa(g)};
EP=function(g){if(g instanceof qa)return g.privateDoNotAccessOrElseWrappedHtml;throw Error("$");};
_.Px=function(g,u){g.src=_.WT(u).toString()};
IKu=function(g,u){g.setAttribute("sandbox","");for(var q=0;q<u.length;q++)g.sandbox.supports&&!g.sandbox.supports(u[q])||g.sandbox.add(u[q])};
_.Na=function(g,u,q){g.removeAttribute("srcdoc");switch(u){case 0:if(q instanceof XV)throw new iaq("TrustedResourceUrl",0);IKu(g,[]);u=_.gt(q);u!==void 0&&(g.src=u);break;case 1:if(!(q instanceof XV))throw new iaq(typeof q,1);IKu(g,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Px(g,q);break;case 2:if(q instanceof XV)throw new iaq("TrustedResourceUrl",2);IKu(g,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
u=_.gt(q);u!==void 0&&(g.src=u);break;default:_.qE(u)}};
_.sP=function(g,u,q,Q){u=_.gt(u);return u!==void 0?g.open(u,q,Q):null};
_.yT=function(g){g=g===void 0?document:g;var u,q;g=(q=(u=g).querySelector)==null?void 0:q.call(u,"script[nonce]");return g==null?"":g.nonce||g.getAttribute("nonce")||""};
_.DK=function(g){var u=GFm();g=u?u.createScript(g):g;return new _.vx(g)};
pa=function(g){if(g instanceof _.vx)return g.privateDoNotAccessOrElseWrappedScript;throw Error("$");};
C8M=function(g){var u=_.yT(g.ownerDocument);u&&g.setAttribute("nonce",u)};
_.JB=function(g,u){g.textContent=pa(u);C8M(g)};
_.jx=function(g,u){g.src=_.WT(u);C8M(g)};
_.fa=function(g,u){if(g.nodeType===1&&/^(script|style)$/i.test(g.tagName))throw Error("$");g.innerHTML=EP(u)};
_.Ma=function(g,u,q,Q){if(g.length===0)throw Error("$");g=g.map(function(E){if(E instanceof baJ)E=E.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("$");return E});
var L=q.toLowerCase();if(g.every(function(E){return L.indexOf(E)!==0}))throw Error("ba`"+q);
u.setAttribute(q,Q)};
_.tB=function(g,u,q){if(u instanceof XV)g.href=_.WT(u).toString(),g.rel=q;else{if(daZ.indexOf(q)===-1)throw Error("ca`"+q);u=_.gt(u);u!==void 0&&(g.href=u,g.rel=q)}};
Fsf=function(g){if(g instanceof ex)return g.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("$");};
_.maK=function(g,u){u=_.gt(u);u!==void 0&&(g.href=u)};
aKK=function(g){return new Worker(_.WT(g),void 0)};
VxM=function(g){return _.r0(g)};
XxZ=function(g,u){g&&(u=g.indexOf(u),0<=u&&g.splice(u,1))};
GF=function(g){return typeof g==="function"};
rBq=function(g){return g instanceof $A||g&&"closed"in g&&GF(g.remove)&&GF(g.add)&&GF(g.unsubscribe)};
Ru=function(){};
cx=function(g){WsJ(function(){throw g;})};
Hx=function(g){return g};
AB=function(){return TtT(_.UT.apply(0,arguments))};
TtT=function(g){return g.length===0?Hx:g.length===1?g[0]:function(u){return g.reduce(function(q,Q){return Q(q)},u)}};
hmJ=function(g){var u;return(u=g!=null?g:void 0)!=null?u:Promise};
YPF=function(g,u){return new ZK(function(q){var Q=0;return u.schedule(function(){Q===g.length?q.complete():(q.next(g[Q++]),q.closed||this.schedule())})})};
OaZ=function(g,u){if(!g)throw Error("da");return new ZK(function(q){var Q=new $A;Q.add(u.schedule(function(){var L=g[Symbol.asyncIterator]();Q.add(u.schedule(function(){var E=this;L.next().then(function(y){y.done?q.complete():(q.next(y.value),E.schedule())})}))}));
return Q})};
KsM=function(g,u,q){u=u.schedule(function(){try{q.call(this)}catch(Q){g.error(Q)}},0);
g.add(u)};
Bt3=function(g,u){return new ZK(function(q){var Q;q.add(u.schedule(function(){Q=g[xaT]();KsM(q,u,function(){var L=Q.next(),E=L.value;L.done?q.complete():(q.next(E),this.schedule())})}));
return function(){var L;return GF((L=Q)==null?void 0:L.return)&&Q.return()}})};
zmq=function(g,u){return new ZK(function(q){var Q=new $A;Q.add(u.schedule(function(){var L=g[l8]();Q.add(L.subscribe({next:function(E){Q.add(u.schedule(function(){return q.next(E)}))},
error:function(E){Q.add(u.schedule(function(){return q.error(E)}))},
complete:function(){Q.add(u.schedule(function(){return q.complete()}))}}))}));
return Q})};
nAh=function(g,u){return new ZK(function(q){return u.schedule(function(){return g.then(function(Q){q.add(u.schedule(function(){q.next(Q);q.add(u.schedule(function(){return q.complete()}))}))},function(Q){q.add(u.schedule(function(){return q.error(Q)}))})})})};
kFb=function(g){return new TypeError("ea`"+(g!==null&&typeof g==="object"?"an invalid object":"'"+g+"'"))};
oAZ=function(g,u){if(g!=null){if(GF(g[l8]))return zmq(g,u);if(SPF(g))return YPF(g,u);if(GF(g==null?void 0:g.then))return nAh(g,u);if(Symbol.asyncIterator&&GF(g==null?void 0:g[Symbol.asyncIterator]))return OaZ(g,u);if(GF(g==null?void 0:g[xaT]))return Bt3(g,u)}throw kFb(g);};
i8=function(g,u){return u?oAZ(g,u):Iu(g)};
Iu=function(g){if(g instanceof ZK)return g;if(g!=null){if(GF(g[l8]))return Uaf(g);if(SPF(g))return gBq(g);if(GF(g==null?void 0:g.then))return u4M(g);if(Symbol.asyncIterator&&GF(g==null?void 0:g[Symbol.asyncIterator]))return q7M(g);if(GF(g==null?void 0:g[xaT]))return QWF(g)}throw kFb(g);};
Uaf=function(g){return new ZK(function(u){var q=g[l8]();if(GF(q.subscribe))return q.subscribe(u);throw new TypeError("fa");})};
gBq=function(g){return new ZK(function(u){for(var q=0;q<g.length&&!u.closed;q++)u.next(g[q]);u.complete()})};
u4M=function(g){return new ZK(function(u){g.then(function(q){u.closed||(u.next(q),u.complete())},function(q){return u.error(q)}).then(null,cx)})};
QWF=function(g){return new ZK(function(u){for(var q=g[xaT]();!u.closed;){var Q=q.next(),L=Q.value;Q.done?u.complete():u.next(L)}return function(){return GF(q==null?void 0:q.return)&&q.return()}})};
q7M=function(g){return new ZK(function(u){LeK(g,u).catch(function(q){return u.error(q)})})};
LeK=function(g,u){var q,Q,L,E,y,v;return _.D(function(J){switch(J.nextAddress){case 1:_.b8(J,2,3),E=_.dt(g);case 5:return J.yield(E.next(),8);case 8:Q=J.yieldResult;if(Q.done){J.jumpTo(3);break}y=Q.value;u.next(y);J.jumpTo(5);break;case 3:_.Fr(J);_.ms(J,9);if(!Q||Q.done||!(L=E.return)){J.jumpTo(9);break}return J.yield(L.call(E),9);case 9:_.Fr(J,0,0,1);if(q)throw q.error;_.Xr(J,10,1);break;case 10:_.Xr(J,4);break;case 2:v=_.rt(J);q={error:v};J.jumpTo(3);break;case 4:u.complete(),_.Wx(J)}})};
EBm=function(g,u){return u?YPF(g,u):gBq(g)};
P7b=function(g){return GF(g[g.length-1])?g.pop():void 0};
hB=function(g){var u=g[g.length-1];return u&&GF(u.schedule)?g.pop():void 0};
YA=function(){var g=_.UT.apply(0,arguments),u=hB(g);return u?YPF(g,u):EBm(g)};
OP=function(g){var u=GF(g)?g:function(){return g};
return new ZK(function(q){return q.error(u())})};
Ka=function(g){return function(u){if(GF(u==null?void 0:u.lift))return u.lift(function(q){try{return g(q,this)}catch(Q){this.error(Q)}});
throw new TypeError("ga");}};
Bx=function(){return Ka(function(g,u){var q=null;g._refCount++;var Q=new xA(u,void 0,void 0,void 0,function(){if(!g||g._refCount<=0||0<--g._refCount)q=null;else{var L=g._connection,E=q;q=null;!L||E&&L!==E||L.unsubscribe();u.unsubscribe()}});
g.subscribe(Q);Q.closed||(q=g.connect())})};
sWM=function(){var g=NjZ;var u=u===void 0?0:u;return Ka(function(q,Q){Q.add(g.schedule(function(){return q.subscribe(Q)},u))})};
zF=function(g){return Ka(function(u,q){var Q=0;u.subscribe(new xA(q,function(L){q.next(g.call(void 0,L,Q++))}))})};
vBu=function(g){return zF(function(u){return y1f(u)?g.apply(null,_.na(u)):g(u)})};
fih=function(g){if(g.length===1){var u=g[0];if(DS3(u))return{args:u,keys:null};if(u&&typeof u==="object"&&pqZ(u)===J1S)return g=jWJ(u),{args:g.map(function(q){return u[q]}),
keys:g}}return{args:g,keys:null}};
kA=function(){var g=_.UT.apply(0,arguments),u=hB(g),q=P7b(g);g=fih(g);var Q=g.args,L=g.keys;if(Q.length===0)return i8([],u);u=new ZK(MgF(Q,u,L?function(E){for(var y={},v=0;v<E.length;v++)y[L[v]]=E[v];return y}:Hx));
return q?u.pipe(vBu(q)):u};
MgF=function(g,u,q){q=q===void 0?Hx:q;return function(Q){tgf(u,function(){for(var L=g.length,E=Array(L),y=L,v=g.map(function(){return!1}),J=!0,f={i$jscomp$220:0};f.i$jscomp$220<L;f={i$jscomp$220:f.i$jscomp$220},f.i$jscomp$220++)tgf(u,function(t){return function(){i8(g[t.i$jscomp$220],u).subscribe(new ou(Q,function(e){E[t.i$jscomp$220]=e;
J&&(v[t.i$jscomp$220]=!0,J=!v.every(Hx));J||Q.next(q(E.slice()))},function(){return--y===0}))}}(f),Q)},Q)}};
tgf=function(g,u,q){g?q.add(g.schedule(u)):u()};
esq=function(g,u,q,Q){var L=[],E=0,y=0,v=!1,J=function(f){E++;Iu(q(f,y++)).subscribe(new xA(u,function(t){u.next(t)},void 0,function(){E--;
for(var t={};L.length&&E<Q;t={bufferedValue:void 0})t.bufferedValue=L.shift(),J(t.bufferedValue);!v||L.length||E||u.complete()}))};
g.subscribe(new xA(u,function(f){return E<Q?J(f):L.push(f)},void 0,function(){v=!0;
!v||L.length||E||u.complete()}));
return function(){L=null}};
UP=function(g,u){var q=q===void 0?Infinity:q;if(GF(u))return UP(function(Q,L){return zF(function(E,y){return u(Q,E,L,y)})(Iu(g(Q,L)))},q);
typeof u==="number"&&(q=u);return Ka(function(Q,L){return esq(Q,L,g,q)})};
GWM=function(g){g=g===void 0?Infinity:g;return UP(Hx,g)};
$Sm=function(){var g=_.UT.apply(0,arguments);return GWM(1)(EBm(g,hB(g)))};
Rsh=function(g){return new ZK(function(u){Iu(g()).subscribe(u)})};
gj=function(g,u,q){if(GF(q)){var Q=q;q=void 0}if(Q)return gj(g,u,q).pipe(vBu(Q));Q=_.N(GF(g.addEventListener)&&GF(g.removeEventListener)?wqh.map(function(y){return function(v){return g[y](u,v,q)}}):GF(g.addListener)&&GF(g.removeListener)?c1m.map(HOq(g,u)):GF(g.on)&&GF(g.off)?A1k.map(HOq(g,u)):[]);
var L=Q.next().value,E=Q.next().value;return!L&&SPF(g)?UP(function(y){return gj(y,u,q)})(EBm(g)):new ZK(function(y){if(!L)throw new TypeError("ha");
var v=function(){var J=_.UT.apply(0,arguments);return y.next(1<J.length?J:J[0])};
L(v);return function(){return E(v)}})};
HOq=function(g,u){return function(q){return function(Q){return g[q](u,Q)}}};
qS=function(){var g=_.UT.apply(0,arguments),u=hB(g);var q=typeof g[g.length-1]==="number"?g.pop():Infinity;return g.length?g.length===1?Iu(g[0]):GWM(q)(EBm(g,u)):u7};
liS=function(g){return g.length===1&&ZOk(g[0])?g[0]:g};
IiM=function(){var g=liS(_.UT.apply(0,arguments));return Ka(function(u,q){var Q=[u].concat(_.na(g)),L=function(){if(!q.closed)if(Q.length>0){try{var E=Iu(Q.shift())}catch(v){L();return}var y=new xA(q,void 0,Ru,Ru);q.add(E.subscribe(y));y.add(L)}else q.complete()};
L()})};
Q3=function(g){return Ka(function(u,q){var Q=0;u.subscribe(new xA(q,function(L){return g.call(void 0,L,Q++)&&q.next(L)}))})};
C7F=function(){var g=_.UT.apply(0,arguments);g=liS(g);return g.length===1?Iu(g[0]):new ZK(iOk(g))};
iOk=function(g){return function(u){for(var q=[],Q={i$jscomp$223:0};q&&!u.closed&&Q.i$jscomp$223<g.length;Q={i$jscomp$223:Q.i$jscomp$223},Q.i$jscomp$223++)q.push(Iu(g[Q.i$jscomp$223]).subscribe(new xA(u,function(L){return function(E){if(q){for(var y=0;y<q.length;y++)y!==L.i$jscomp$223&&q[y].unsubscribe();q=null}u.next(E)}}(Q))))}};
bOm=function(){var g=_.UT.apply(0,arguments),u=P7b(g),q=liS(g);return q.length?new ZK(function(Q){var L=q.map(function(){return[]}),E=q.map(function(){return!1});
Q.add(function(){L=E=null});
for(var y={sourceIndex$jscomp$1:0};!Q.closed&&y.sourceIndex$jscomp$1<q.length;y={sourceIndex$jscomp$1:y.sourceIndex$jscomp$1},y.sourceIndex$jscomp$1++)Iu(q[y.sourceIndex$jscomp$1]).subscribe(new xA(Q,function(v){return function(J){L[v.sourceIndex$jscomp$1].push(J);L.every(function(f){return f.length})&&(J=L.map(function(f){return f.shift()}),Q.next(u?u.apply(null,_.na(J)):J),L.some(function(f,t){return!f.length&&E[t]})&&Q.complete())}}(y),void 0,function(v){return function(){E[v.sourceIndex$jscomp$1]=
!0;
!L[v.sourceIndex$jscomp$1].length&&Q.complete()}}(y)));
return function(){L=E=null}}):u7};
dSZ=function(g){var u,q,Q;return!!g&&typeof g.active==="boolean"&&typeof((u=g.clock)==null?void 0:u.now)==="function"&&((q=g.clock)==null?void 0:q.timeline)!==void 0&&!((Q=g.lastMeasurement)==null||!Q.timestamp)&&typeof g.equivalentTo==="function"&&typeof g.extrapolateToNow==="function"&&typeof g.extrapolateToTime==="function"&&typeof g.map==="function"&&typeof g.joinWith==="function"};
Feh=function(g){function u(q){return typeof q==="boolean"||typeof q==="string"||typeof q==="number"||q===void 0||q===null}
return u(g)?!0:Array.isArray(g)?g.every(u):typeof g==="object"?Object.keys(g).every(function(q){return typeof q==="string"})&&Object.values(g).every(function(q){return Array.isArray(q)?q.every(u):u(q)}):!1};
mS3=function(g){if(Feh(g))return g;if(dSZ(g))return{lastMeasurement:{value:mS3(g.lastMeasurement.value),timestamp:LO(g.lastMeasurement.timestamp,new E7(0,g.lastMeasurement.timestamp.timeline))},active:g.active};try{return JSON.parse(JSON.stringify(g))}catch(u){}return String(g)};
NS=function(g,u){return function(q){return new ZK(function(Q){return q.subscribe(function(L){g.timeExecution(u,function(){Q.next(L)})()},function(L){g.timeExecution(u,function(){Q.error(L)})()},function(){g.timeExecution(u,function(){Q.complete()})()})})}};
aiF=function(g,u){var q=!1;return new ZK(function(Q){var L=g.setTimeout(function(){q=!0;Q.next(!0);Q.complete()},u);
return function(){q||g.clearTimeout(L)}})};
Vg3=function(g){g=g.global;if(g.fetchLater)return g.fetchLater.bind(g)};
s7=function(g){return Ka(function(u,q){var Q=null,L=!1,E;Q=u.subscribe(new xA(q,void 0,function(y){E=Iu(g(y,s7(g)(u)));Q?(Q.unsubscribe(),Q=null,E.subscribe(q)):L=!0}));
L&&(Q.unsubscribe(),Q=null,E.subscribe(q))})};
Xqu=function(g,u,q){return function(Q,L){var E=q,y=u,v=0;Q.subscribe(new xA(L,function(J){var f=v++;y=E?g(y,J,f):(E=!0,J);L.next(y)},void 0,void 0))}};
r1q=function(g){g=g===void 0?null:g;return Ka(function(u,q){var Q=!1;u.subscribe(new xA(q,function(L){Q=!0;q.next(L)},void 0,function(){Q||q.next(g);
q.complete()}))})};
y3=function(){return Ka(function(g,u){g.subscribe(new xA(u,Ru))})};
vq=function(g){return Ka(function(u,q){u.subscribe(new xA(q,function(){return q.next(g)}))})};
Di=function(g){return g<=0?function(){return u7}:Ka(function(u,q){var Q=0;
u.subscribe(new xA(q,function(L){++Q<=g&&(q.next(L),g<=Q&&q.complete())}))})};
pO=function(g){var u=u===void 0?Hx:u;var q;g=(q=g)!=null?q:Wek;return Ka(function(Q,L){var E,y=!0;Q.subscribe(new xA(L,function(v){var J=u(v);if(y||!g(E,J))y=!1,E=J,L.next(v)}))})};
Wek=function(g,u){return g===u};
hsb=function(g){g=g===void 0?Tjm:g;return Ka(function(u,q){var Q=!1;u.subscribe(new xA(q,function(L){Q=!0;q.next(L)},void 0,function(){return Q?q.complete():q.error(g())}))})};
Tjm=function(){return new Y73};
J1=function(){var g=_.UT.apply(0,arguments);return function(u){return $Sm(u,YA.apply(null,_.na(g)))}};
OOZ=function(g){return Ka(function(u,q){var Q=0;u.subscribe(new xA(q,function(L){g.call(void 0,L,Q++,u)||(q.next(!1),q.complete())},void 0,function(){q.next(!0);
q.complete()}))})};
Kem=function(){return Ka(function(g,u){var q=[];g.subscribe(new xA(u,function(Q){q.push(Q);1<q.length&&q.shift()},void 0,function(){for(var Q=_.N(q),L=Q.next();!L.done;L=Q.next())u.next(L.value);
u.complete()},function(){q=null}))})};
xSK=function(g,u){var q=arguments.length>=2;return function(Q){return Q.pipe(g?Q3(function(L,E){return g(L,E,Q)}):Hx,Kem(),q?r1q(u):hsb(function(){return new Y73}))}};
fO=function(g){var u=GF(g)?g:function(){return g};
return GF()?Ka(function(q,Q){var L=u();(void 0)(L).subscribe(Q).add(q.subscribe(L))}):function(q){var Q=new jg(q,u);
GF(q==null?void 0:q.lift)&&(Q.lift=q.lift);Q.source=q;Q.subjectFactory=u;return Q}};
t1=function(g){var u=new MS(g,void 0,void 0);return function(q){return fO(function(){return u})(q)}};
eg=function(g,u){return Ka(Xqu(g,u,arguments.length>=2))};
GW=function(){var g=_.UT.apply(0,arguments),u=hB(g);return Ka(function(q,Q){(u?$Sm(g,q,u):$Sm(g,q)).subscribe(Q)})};
$B=function(g){return Ka(function(u,q){var Q=null,L=0,E=!1;u.subscribe(new xA(q,function(y){var v;(v=Q)==null||v.unsubscribe();v=L++;Iu(g(y,v)).subscribe(Q=new xA(q,function(J){return q.next(J)},void 0,function(){Q=null;
E&&!Q&&q.complete()}))},void 0,function(){(E=!0,!Q)&&q.complete()}))})};
RW=function(g,u){u=u===void 0?!1:u;return Ka(function(q,Q){var L=0;q.subscribe(new xA(Q,function(E){var y=g(E,L++);(y||u)&&Q.next(E);!y&&Q.complete()}))})};
BjK=function(g,u,q){var Q=GF(g)||u||q?{next:g,error:u,complete:q}:g;return Q?Ka(function(L,E){L.subscribe(new xA(E,function(y){var v;(v=Q.next)==null||v.call(Q,y);E.next(y)},function(y){var v;
(v=Q.error)==null||v.call(Q,y);E.error(y)},function(){var y;
(y=Q.complete)==null||y.call(Q);E.complete()}))}):Hx};
zsk=function(){var g=_.UT.apply(0,arguments),u=P7b(g);return Ka(function(q,Q){for(var L=g.length,E=Array(L),y=g.map(function(){return!1}),v=!1,J={i$jscomp$233:0};J.i$jscomp$233<L;J={i$jscomp$233:J.i$jscomp$233},J.i$jscomp$233++)Iu(g[J.i$jscomp$233]).subscribe(new xA(Q,function(f){return function(t){E[f.i$jscomp$233]=t;
v||y[f.i$jscomp$233]||(y[f.i$jscomp$233]=!0,(v=y.every(Hx))&&(y=null))}}(J),void 0,Ru));
q.subscribe(new xA(Q,function(f){v&&(f=[f].concat(_.na(E)),Q.next(u?u.apply(null,_.na(f)):f))}))})};
kWk=function(g){var u=nBm;if(u)for(var q in u)Object.prototype.hasOwnProperty.call(u,q)&&g(u[q],q,u)};
S7q=function(){var g=[];kWk(function(u){g.push(u)});
return g};
USf=function(g){try{return!!g&&g.location.href!=null&&oBq(g,"foo")}catch(u){return!1}};
uoS=function(){return wq&&cS?cS.mobile:!g$J()&&(HS("iPod")||HS("iPhone")||HS("Android")||HS("IEMobile"))};
g$J=function(){return wq&&cS?!cS.mobile&&(HS("iPad")||HS("Android")||HS("Silk")):HS("iPad")||HS("Android")&&!HS("Mobile")||HS("Silk")};
_.cq=function(g){return new baJ(g[0].toLowerCase())};
qUh=function(g){for(var u=_.UT.apply(1,arguments),q=g[0],Q=0;Q<g.length-1;Q++)q+=String(u[Q]),q+=g[Q+1];u=document.implementation.createHTMLDocument("");Q=u.createElement("style");u.head.appendChild(Q);u=Q.sheet;u.insertRule(q,0);if(u.cssRules.length===1&&(q=u.cssRules[0],q instanceof CSSStyleRule))return new ex(q.cssText.replace(/</g,"\\3C "))};
QGS=function(g){try{return new URL(g,window.document.baseURI)}catch(u){return new URL("about:invalid")}};
LvF=function(g,u){var q=u.createRange();q.selectNode(u.body);g=QT(g);return q.createContextualFragment(EP(g))};
E$F=function(g){g=g.nodeName;return typeof g==="string"?g:"FORM"};
P0Z=function(g){g=g.nodeType;return g===1||typeof g!=="number"};
Hq=function(g,u,q){g.setAttribute(u,q)};
N6b=function(g){return g.parts.map(function(u){var q=u.descriptor;return""+u.url+(q?" "+q:"")}).join(" , ")};
_.A1=function(g){var u=_.UT.apply(1,arguments);if(u.length===0)return _.r0(g[0]);for(var q=g[0],Q=0;Q<u.length;Q++)q+=encodeURIComponent(u[Q])+g[Q+1];return _.r0(q)};
_.Zi=function(g,u){g=_.WT(g).toString();var q=g.split(/[?#]/),Q=/[?]/.test(g)?"?"+q[1]:"";return sGT(q[0],Q,/[#]/.test(g)?"#"+(Q?q[2]:q[1]):"",u)};
sGT=function(g,u,q,Q){function L(y,v){y!=null&&(Array.isArray(y)?y.forEach(function(J){return L(J,v)}):(u+=E+encodeURIComponent(v)+"="+encodeURIComponent(y),E="&"))}
var E=u.length?"&":"?";Q.constructor===Object&&(Q=Object.entries(Q));Array.isArray(Q)?Q.forEach(function(y){return L(y[1],y[0])}):Q.forEach(L);
return _.r0(g+u+q)};
v$f=function(){var g=pa(ykq).toString();return _.r0(URL.createObjectURL(new Blob([g],{type:"text/javascript"})))};
_.l7=function(g,u){this.x=g!==void 0?g:0;this.y=u!==void 0?u:0};
_.IW=function(g,u){this.width=g;this.height=u};
Dih=function(g){var u=[],q=0,Q;for(Q in g)u[q++]=Q;return u};
p8b=function(g,u){for(var q in g)if(g[q]==u)return!0;return!1};
Jkm=function(g,u,q){for(var Q in g)if(u.call(q,g[Q],Q,g))return Q};
jGS=function(g){if(!g||typeof g!=="object")return g;if(typeof g.clone==="function")return g.clone();if(typeof Map!=="undefined"&&g instanceof Map)return new Map(g);if(typeof Set!=="undefined"&&g instanceof Set)return new Set(g);if(g instanceof Date)return new Date(g.getTime());var u=Array.isArray(g)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(g)||g instanceof DataView?{}:new g.constructor(g.length),q;for(q in g)u[q]=jGS(g[q]);return u};
fWF=function(g){var u=arguments.length;if(u==1&&Array.isArray(arguments[0]))return fWF.apply(null,arguments[0]);if(u%2)throw Error("na");for(var q={},Q=0;Q<u;Q+=2)q[arguments[Q]]=arguments[Q+1];return q};
Mpm=function(g){var u=arguments.length;if(u==1&&Array.isArray(arguments[0]))return Mpm.apply(null,arguments[0]);for(var q={},Q=0;Q<u;Q++)q[arguments[Q]]=!0;return q};
i7=function(g,u,q,Q){this.top=g;this.right=u;this.bottom=q;this.left=Q};
CO=function(g,u,q,Q){this.left=g;this.top=u;this.width=q;this.height=Q};
tpM=function(g){g=g.global;if(g.PendingGetBeacon)return g.PendingGetBeacon};
dj=function(g){return function(u){return u.pipe(evZ(g,fO(new b7)))}};
aW=function(g){return function(u){return u.pipe(evZ(g,t1(1)))}};
evZ=function(g,u){function q(Q){return new ZK(function(L){return Q.subscribe(function(E){V3(g,function(){return void L.next(E)},3)},function(E){V3(g,function(){return void L.error(E)},3)},function(){V3(g,function(){return void L.complete()},3)})})}
return AB(q,sWM(),u,Bx(),q)};
RvS=function(g){var u=G$q(g);return u===null?new X4(null):u.pipe(zF(function(q){q=q.serialize();if($ih)q=_.Qq.btoa(q);else{for(var Q=[],L=0,E=0;E<q.length;E++){var y=q.charCodeAt(E);y>255&&(Q[L++]=y&255,y>>=8);Q[L++]=y}q=_.om(Q)}return q}),Di(1),aW(g.queue))};
w8m=function(g){var u=u===void 0?{}:u;if(typeof Event==="function")return new Event(g,u);if(typeof document!=="undefined"){var q=document.createEvent("CustomEvent");q.initCustomEvent(g,u.bubbles||!1,u.cancelable||!1,u.detail);return q}throw Error();};
ckq=function(g){return typeof g==="string"?document.getElementById(g):g};
AkF=function(g){var u=!1;u=u===void 0?!1:u;if(g.tagName==="IMG"){if(g.complete&&(!g.naturalWidth||!g.naturalHeight))return!0;var q;if(u&&((q=g.style)==null?void 0:q.display)==="none")return!0}var Q,L;return HHM.test((Q=g.getAttribute("width"))!=null?Q:"")&&HHM.test((L=g.getAttribute("height"))!=null?L:"")};
ZHM=function(g,u){if(g.tagName==="IMG")return g.naturalWidth&&g.naturalHeight?!0:!1;try{if(g.readyState)var q=g.readyState;else{var Q,L;q=(Q=g.contentWindow)==null?void 0:(L=Q.document)==null?void 0:L.readyState}return q==="complete"}catch(E){return u===void 0?!1:u}};
lWZ=function(g){g||(g=function(u,q,Q){u.addEventListener(q,Q)});
return g};
bHT=function(g,u){var q=IWk();q=q===void 0?new iHT:q;if(g=ckq(g)){var Q=lWZ(Q);for(var L=!1,E=function(d){L||(L=!0,u(d))},y,v=2,J=0;J<C0h.length;++J)if(C0h[J]===g.tagName){v=3;
y=[g];break}y||(y=g.querySelectorAll(C0h.join(",")));var f=0,t=0,e=!0,G=g=!1;J={};for(var R=0;R<y.length;J={isImg:void 0},R++){var H=y[R];if(!AkF(H))if(J.isImg=H.tagName==="IMG",ZHM(H,q.crossDomainLoadedDefault))g=!0,J.isImg&&(e=!0);else{f++;var l=function(d){return function(F){f--;!f&&e&&E(v);d.isImg&&(F=F&&F.type==="error",t--,F||(e=!0),!t&&G&&e&&E(v))}}(J);
Q(H,"load",l);J.isImg&&(t++,Q(H,"error",l))}}t===0&&(e=!0);y=null;y=_.Qq.document.readyState==="complete";if(f===0&&!g&&y)v=5;else if(f||!g){Q(_.Qq,"load",function(){!q.pendingImagesBlockLoad||!t&&e?E(4):G=!0});
return}E(v)}};
diK=function(g,u,q){if(g)for(var Q=0;g!=null&&Q<500&&!q(g);++Q)g=u(g)};
Fvh=function(g,u){diK(g,function(q){try{return q===q.parent?null:q.parent}catch(Q){}return null},u)};
mik=function(g,u){if(g.tagName=="IFRAME")u(g);else{g=g.querySelectorAll("IFRAME");for(var q=0;q<g.length&&!u(g[q]);++q);}};
aWq=function(g){return(g=g.ownerDocument)&&(g.parentWindow||g.defaultView)||null};
Vpm=function(g,u,q){try{var Q=JSON.parse(q.data)}catch(y){}if(typeof Q==="object"&&Q&&Q.type==="creativeLoad"){var L=aWq(g);if(q.source&&L){var E;Fvh(q.source,function(y){try{if(y.parent===L)return E=y,!0}catch(v){}});
E&&mik(g,function(y){if(y.contentWindow===E)return u(Q),!0})}}};
X8u=function(g){return typeof g==="string"?document.getElementById(g):g};
hvq=function(){var g={};return g[0]=_.A1(rkq,"current"),g[1]=_.A1(Wvq),g[2]=_.A1(T6k),g};
rj=function(g,u){return g.left===u.left&&g.top===u.top&&g.width===u.width&&g.height===u.height};
YUq=function(g,u){return{left:Math.max(g.left,u.left),top:Math.max(g.top,u.top),width:Math.max(0,Math.min(g.left+g.width,u.left+u.width)-Math.max(g.left,u.left)),height:Math.max(0,Math.min(g.top+g.height,u.top+u.height)-Math.max(g.top,u.top))}};
OHb=function(g,u){return{left:Math.round(g.left+u.x),top:Math.round(g.top+u.y),width:g.width,height:g.height}};
Kvh=function(g,u,q,Q,L,E,y){var v="";g&&(v+=g+":");q&&(v+="//",u&&(v+=u+"@"),v+=q,Q&&(v+=":"+Q));L&&(v+=L);E&&(v+="?"+E);y&&(v+="#"+y);return v};
_.Wq=function(g){return g.match(xiF)};
_.TW=function(g,u){return g?u?decodeURI(g):decodeURIComponent(g):g};
B6f=function(g){g=_.Wq(g)[1]||null;!g&&_.Qq.self&&_.Qq.self.location&&(g=_.Qq.self.location.protocol.slice(0,-1));return g?g.toLowerCase():""};
_.h1=function(g){return _.TW(_.Wq(g)[3]||null,!0)};
_.YB=function(g){return _.TW(_.Wq(g)[5]||null,!0)};
_.zvu=function(g){var u=g.indexOf("#");return u<0?null:g.slice(u+1)};
n$F=function(g){g=_.Wq(g);return Kvh(g[1],g[2],g[3],g[4])};
_.k$M=function(g){g=_.Wq(g);return Kvh(g[1],null,g[3],g[4])};
_.KO=function(g){g=_.Wq(g);return Kvh(null,null,null,null,g[5],g[6],g[7])};
_.xB=function(g){var u=g.indexOf("#");return u<0?g:g.slice(0,u)};
Bq=function(g,u){g=_.Wq(g);u=_.Wq(u);return g[3]==u[3]&&g[1]==u[1]&&g[4]==u[4]};
SUm=function(g,u){if(g){g=g.split("&");for(var q=0;q<g.length;q++){var Q=g[q].indexOf("="),L=null;if(Q>=0){var E=g[q].substring(0,Q);L=g[q].substring(Q+1)}else E=g[q];u(E,L?zW(L):"")}}};
o$K=function(g){var u=g.indexOf("#");u<0&&(u=g.length);var q=g.indexOf("?");if(q<0||q>u){q=u;var Q=""}else Q=g.substring(q+1,u);return[g.slice(0,q),Q,g.slice(u)]};
Uib=function(g,u){return u?g?g+"&"+u:u:g};
_.gFk=function(g,u){if(!u)return g;g=o$K(g);g[1]=Uib(g[1],u);return g[0]+(g[1]?"?"+g[1]:"")+g[2]};
_.u_Z=function(g,u,q){if(Array.isArray(u))for(var Q=0;Q<u.length;Q++)_.u_Z(g,String(u[Q]),q);else u!=null&&q.push(g+(u===""?"":"="+_.nO(u)))};
_.kB=function(g){var u=[],q;for(q in g)_.u_Z(q,g[q],u);return u.join("&")};
_.Sg=function(g,u){u=_.kB(u);return _.gFk(g,u)};
_.oW=function(g,u,q){q=q!=null?"="+_.nO(q):"";return _.gFk(g,u+q)};
qHk=function(g,u,q,Q){for(var L=q.length;(u=g.indexOf(q,u))>=0&&u<Q;){var E=g.charCodeAt(u-1);if(E==38||E==63)if(E=g.charCodeAt(u+L),!E||E==61||E==38||E==35)return u;u+=L+1}return-1};
_.U7=function(g,u){var q=g.search(Q2T),Q=qHk(g,0,u,q);if(Q<0)return null;var L=g.indexOf("&",Q);if(L<0||L>q)L=q;Q+=u.length+1;return zW(g.slice(Q,L!==-1?L:0))};
_.g6=function(g,u){for(var q=g.search(Q2T),Q=0,L,E=[];(L=qHk(g,Q,u,q))>=0;)E.push(g.substring(Q,L)),Q=Math.min(g.indexOf("&",L)+1||q,q);E.push(g.slice(Q));return E.join("").replace(LRu,"$1")};
_.u0=function(g,u,q){return _.oW(_.g6(g,u),u,q)};
EFM=function(g){var u=o$K(window.location.href),q=u[1],Q=[];q&&q.split("&").forEach(function(L){var E=L.indexOf("=");E=E>=0?L.slice(0,E):L;g.hasOwnProperty(E)||Q.push(L)});
u[1]=Uib(Q.join("&"),_.kB(g));return u[0]+(u[1]?"?"+u[1]:"")+u[2]};
PvF=function(g,u,q){if(g&&u!==null&&u!=u.top){if(!u.top)return new _.IW(-12245933,-12245933);u=u.top}try{return(q===void 0?0:q)?(new _.IW(u.innerWidth,u.innerHeight)).round():_.qi(u).round()}catch(Q){return new _.IW(-12245933,-12245933)}};
NcF=function(g,u,q){try{if(g){if(!u.top)return new i7(-12245933,-12245933,-12245933,-12245933);u=u.top}var Q=PvF(g,u,q),L=Q.height,E=Q.width;if(E===-12245933)return new i7(E,E,E,E);var y=Qu(LH(u.document)),v=y.x,J=y.y;return new i7(J,v+E,J+L,v)}catch(f){return new i7(-12245933,-12245933,-12245933,-12245933)}};
s2b=function(g){var u;return(u=g.google_tag_data)!=null?u:g.google_tag_data={}};
y5Z=function(g){var u,q;return typeof((u=g.navigator)==null?void 0:(q=u.userAgentData)==null?void 0:q.getHighEntropyValues)==="function"};
DV3=function(g){if(!y5Z(g))return null;var u=s2b(g);if(u.uach_promise)return u.uach_promise;g=g.navigator.userAgentData.getHighEntropyValues(vFF).then(function(q){u.uach!=null||(u.uach=q);return q});
return u.uach_promise=g};
c5S=function(g){var u;return pDq(J5M(j2S(f1J(Mi3(tiJ(eUK(GQM($VF(new RUT,g.architecture||""),g.bitness||""),g.mobile||!1),g.model||""),g.platform||""),g.platformVersion||""),g.uaFullVersion||""),((u=g.fullVersionList)==null?void 0:u.map(function(q){var Q=new wD3;Q=_.EU(Q,1,q.brand);return _.EU(Q,2,q.version)}))||[]),g.wow64||!1)};
Hhb=function(g){var u,q;return(q=(u=DV3(g))==null?void 0:u.then(function(Q){return c5S(Q)}))!=null?q:null};
A5h=function(g,u){return new ZK(function(q){var Q=!1,L=Array(u.length);L.fill(void 0);var E=new Set,y=new Set,v=function(e,G){g.running?(L[G]=e,E.add(G),Q||(Q=!0,V3(g,function(){Q=!1;q.next(_.Ob(L))},1))):q.error(new P8(G))},J=function(e,G){y.add(G);
E.add(G);V3(g,function(){q.error(e)},1)},f=function(e){y.add(e);
V3(g,function(){y.size===u.length&&q.complete()},1)},t=u.map(function(e,G){return e.subscribe(function(R){return void v(R,G)},function(R){return void J(R,G)},function(){return void f(G)})});
return function(){t.forEach(function(e){return void e.unsubscribe()})}})};
I1T=function(g,u,q){function Q(){if(u.debugChannel){var d=u.debugChannel,F=d.next;var V={creativeId:u.debugNames.getName(q),requiredSignals:L,signals:Object.assign({},E),hasPrematurelyCompleted:y,errorMessage:v,erroredSignalKey:J};V={specMajor:2,specMinor:0,specPatch:0,timestamp:LO(u.timeProvider.now(),new E7(0,u.timeProvider.timeline)),instanceId:u.debugNames.getName(u.symbol),creativeState:V};F.call(d,V)}}
for(var L=Object.keys(g),E={},y=!1,v=null,J=null,f={},t=new Set,e=[],G=[],R=_.N(L),H=R.next(),l={};!H.done;l={key$jscomp$396:void 0},H=R.next())l.key$jscomp$396=H.value,H=g[l.key$jscomp$396],H instanceof X4?(f[l.key$jscomp$396]=H.value,t.add(l.key$jscomp$396),u.debugChannel&&(E[String(l.key$jscomp$396)]=mS3(H.value))):(H=H.pipe(pO(function(d,F){return dSZ(d)||dSZ(F)?!1:d===F}),zF(function(d){return function(F){u.debugChannel&&(E[String(d.key$jscomp$396)]=mS3(F),Q());
var V={};return V[d.key$jscomp$396]=F,V}}(l)),s7(function(d){return function(F){if(F instanceof P8)throw new ZhZ(String(d.key$jscomp$396));
throw F;}}(l)),BjK(function(d){return function(){t.add(d.key$jscomp$396)}}(l),function(d){return function(F){J=String(d.key$jscomp$396);
v=String(F);Q()}}(l),function(d){return function(){t.has(d.key$jscomp$396)||(y=!0,Q())}}(l))),G.push(l.key$jscomp$396),e.push(H));
(g=Object.keys(E).length>0)&&Q();R=A5h(u.queue,e).pipe(s7(function(d){if(d instanceof P8)throw new l1u(String(G[d.inputObservableIndex]));throw d;}),zF(function(d){return Object.freeze(Object.assign.apply(Object,[{},
f].concat(_.na(d))))}));
return(e=e.length>0)&&g?qS(YA(Object.freeze(f)),R):e?R:YA(Object.freeze(f))};
ihm=function(g,u,q,Q,L){return g.performanceMonitor.timeExecution.bind(g.performanceMonitor)(733,function(){var E={};try{return u.pipe(s7(function(y){Q(Object.assign({},E,{error:y}));return u7}),UP(function(y){try{var v=q(g,y)}catch(f){return Q(Object.assign({},E,{error:f instanceof Error?f:String(f)})),u7}var J={};
return I1T(v,g,y.symbol).pipe(BjK(function(f){J=f}),t1(1),Bx()).pipe(L,s7(function(f){Q(Object.assign({},J,{error:f}));
return u7}),J1(void 0),zF(function(){return!0}))})).pipe(eg(function(y){return y+1},0),s7(function(y){Q(Object.assign({},E,{error:y}));
return u7}))}catch(y){return Q(Object.assign({},E,{error:y})),u7}})()};
Ni=function(g){var u=new Map;if(typeof g!=="object"||g===null)return u;Object.values(g).forEach(function(q){q&&typeof q.extrapolateToNow==="function"&&(u.has(q.clock.timeline)||u.set(q.clock.timeline,q.clock.now()))});
return u};
Cvh=function(g,u){return typeof g==="string"?encodeURIComponent(g):typeof g==="number"?String(g):Array.isArray(g)?g.map(function(q){return Cvh(q,u)}).join(","):g instanceof E7?g.toString():g&&typeof g.extrapolateToNow==="function"?Cvh(g.extrapolateUsingTimestampMap(u).value,u):g===!0?"1":g===!1?"0":g===void 0||g===null?null:g instanceof bhk?dVJ(g):[g.top,
g.left,g.top+g.height,g.left+g.width].join()};
FR3=function(g,u){g=Object.entries(g).map(function(q){var Q=_.N(q);q=Q.next().value;Q=Q.next().value;Q=Cvh(Q,u);return Q===null?"":q+"="+Q}).filter(function(q){return q!==""});
return g.length?g.join("&"):""};
ViM=function(g,u){var q=mVJ,Q=a1K;u=u===void 0?.01:u;return function(L){u>0&&Math.random()<=u&&(g.global.HTMLFencedFrameElement&&g.global.fence&&typeof g.global.fence.reportEvent==="function"&&g.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),L=Object.assign({},L,{errorMessage:L.error instanceof Error&&L.error.message?L.error.message:String(L.error),errorStack:L.error instanceof Error&&L.error.stack?String(L.error.stack):null,errorName:L.error instanceof
Error&&L.error.name?String(L.error.name):null,errorContext:String(g.performanceMonitor.timedFunctionContext),errorEscapedQueryId:L.escapedQueryId}),q(Object.assign({},L,{payloadMapper:function(){return function(E){try{return Q(Object.assign({},E))}catch(y){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Ni(L)).forEach(function(E){g.beaconFactory.makeBeacon(E).sendNow()}))}};
XD3=function(){var g=_.UT.apply(0,arguments);return function(u){var q=u.pipe(t1(1),Bx());u=g.map(function(Q){return q.pipe(Q,J1(!0))});
return kA(u).pipe(Di(1),y3())}};
r5h=function(){var g=_.UT.apply(0,arguments);return function(u){var q=u.pipe(t1(1),Bx());u=g.map(function(Q){return q.pipe(Q,J1(!0))});
return qS.apply(null,_.na(u)).pipe(Di(1),y3())}};
WRh=function(g,u){return function(q){var Q=q.pipe(t1(1),Bx());q=Q.pipe(g,J1(!0));Q=Q.pipe(AB(u,t1(),Bx()),J1(!0));q=kA([q,Q]);return C7F(q,Q).pipe(Di(1),y3())}};
TcT=function(g,u,q){q(!0)};
hU3=function(g,u){return AB($B(function(q){var Q=g(q),L=u(q),E={};return Q&&L&&E?new ZK(function(y){L(Q,E,function(v){y.next(Object.assign({},q,{canEmit:v}));y.complete()});
return function(){}}):sU}),Q3(function(q){return q.canEmit}))};
YH3=function(g){var u={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(q){return q.pipe($B(function(Q){return new ZK(function(L){function E(){v.disconnect();J.unsubscribe()}
var y=g.MutationObserver;if(y&&Q.ref!==void 0){var v=new y(function(f){L.next(f)});
v.observe(Q.ref,u);var J=Q.JSC$9667_released.subscribe(E);return E}})}))}};
Ohq=function(g){if(g.measurementDeferralState===3)return null;if(g.timeOnScreenReason!==void 0){var u=g.creativeFound===!1?"n":null;if(u!==null)return u}return g.geometricMeasurementErrors instanceof yu?"msf":g.contextValidationErrors instanceof DW?"c":g.contextVisibilityKnown===!1?"pv":g.geometricMeasurementErrors||g.contextValidationErrors?"x":null};
xVT=function(g,u){return g.replace(KRm,function(q,Q){try{var L=_.pH.get(u,Q);if(L==null||L.toString()==null)return q;L=L.toString();if(L==""||!_.vS(L==null?"":String(L)))return encodeURIComponent(L).replace(/%2C/g,",")}catch(E){}return q})};
Bck=function(g,u){var q=Object.assign({},g),Q=g.userAgentClientHints;q=(delete q.userAgentClientHints,q);q=g.payloadMapper(q);var L=FR3(q,u);return _.Jk(g.urlPrefixes,function(E){var y="";typeof Q==="string"&&(y="&"+FR3({uach:Q},u));var v={};return xVT(E,(v.VIEWABILITY=L,v))+y})};
mVJ=function(g,u){var q=g.payloadMapper(g),Q=FR3(q,u);return Q?_.Jk(g.urlPrefixes,function(L){L=L.indexOf("?")>=0?L:L+"?";L="?&".indexOf(L.slice(-1))>=0?L:L+"&";return L+Q}):g.urlPrefixes};
zUf=function(){return AB(Q3(function(g){return g!==void 0}),zF(function(g){return g}))};
nFJ=function(g){return AB(zF(function(){return!0}),GW(!1),aW(g))};
kQb=function(g){return g.length<=0?u7:kA(g.map(function(u){var q=0;return u.pipe(zF(function(Q){return{index:q++,value:Q}}))})).pipe(Q3(function(u){return u.every(function(q){return q.index===u[0].index})}),zF(function(u){return u.map(function(q){return q.value})}))};
SH3=function(g,u){g.currentState&&(g.previousState=g.currentState);g.currentState=u;g.previousState&&g.previousState.value?(u=Math.max(0,LO(u.timestamp,g.previousState.timestamp)),g.totalTime+=u,g.consecutiveTime+=u):g.consecutiveTime=0;return g};
oFS=function(){return AB(eg(SH3,{totalTime:0,consecutiveTime:0}),zF(function(g){return g.totalTime}))};
UVm=function(){return AB(eg(SH3,{totalTime:0,consecutiveTime:0}),zF(function(g){return g.consecutiveTime}))};
gGq=function(g,u){return function(q){return kQb(u.map(function(Q){return q.pipe(g(Q))}))}};
uPq=function(){var g;return AB(BjK(function(u){return void(g=u.timestamp)}),UVm(),zF(function(u){return{timestamp:g,
value:Math.round(u)}}))};
q9k=function(g,u){return rj(g.topWindowViewportExternalGeometry,u.topWindowViewportExternalGeometry)&&rj(g.elementGeometry,u.elementGeometry)&&rj(g.exposedViewportLocalGeometry,u.exposedViewportLocalGeometry)&&rj(g.intersectionGeometry,u.intersectionGeometry)&&g.elementGeometrySourceName===u.elementGeometrySourceName&&g.measurementRequests===u.measurementRequests&&g.viewportGeometrySourceName===u.viewportGeometrySourceName&&g.viewportLocalAppOffset.x===u.viewportLocalAppOffset.x&&g.viewportLocalAppOffset.y===
u.viewportLocalAppOffset.y};
PXb=function(g,u){return function(q){return function(Q){var L=Q.pipe(fO(new b7),Bx());Q=q.element.pipe(pO());L=L.pipe(zF(function(E){return E.value}));
return kA([Q,L,u]).pipe(zF(function(E){var y=_.N(E);E=y.next().value;var v=y.next().value;y=y.next().value;if(E.ref===void 0)var J={top:0,left:0,width:0,height:0};else{J=E.ref.getBoundingClientRect();var f=E.ref,t=g.global,e=new _.l7(0,0),G=jp(_.fH(f));if(oBq(G,"parent")){do{if(G==t)var R=_.Mi(f);else R=QYF(f),R=new _.l7(R.left,R.top);e.x+=R.x;e.y+=R.y}while(G&&G!=t&&G!=G.parent&&(f=G.frameElement)&&(G=G.parent))}J={top:e.y,left:e.x,width:J.width,height:J.height}}J=OHb(J,v.viewportLocalAppOffset);
t=YUq(J,v.exposedViewportLocalGeometry);e=g.timeProvider.now();G=Object;f=G.assign;if(y!==2||g.inCrossDomainIframe||t.width<=0||t.height<=0)var H=!1;else try{var l=g.document.elementFromPoint(t.left+t.width/2,t.top+t.height/2);H=l?!LVf(l,E):!1}catch(d){H=!1}return{timestamp:e,value:f.call(G,{},v,{elementGeometrySourceName:"geo",intersectionGeometry:H?EGm.intersectionGeometry:t,elementGeometry:J})}}),dj(g.queue))}}};
LVf=function(g,u,q){q=q===void 0?0:q;return g.ref===void 0||u.ref===void 0?!1:g.ref===u.ref||_.ep(u.ref,function(Q){return Q===g.ref})?!0:u.ref.ownerDocument&&u.ref.ownerDocument.defaultView&&u.ref.ownerDocument.defaultView===u.ref.ownerDocument.defaultView.top?!1:q<10&&u.ref.ownerDocument&&u.ref.ownerDocument.defaultView&&u.ref.ownerDocument.defaultView.frameElement?LVf(g,new G$(u.ref.ownerDocument.defaultView.frameElement),q+1):!0};
yfZ=function(g){return function(u){return u.pipe(g.ResizeObserver?NBf(g):sYK(g),t1(1),Bx())}};
NBf=function(g){return function(u){return u.pipe($B(function(q){var Q=g.ResizeObserver;if(!Q||q.ref===void 0)return YA(EGm.elementGeometry);var L=(new ZK(function(E){function y(){q.ref!==void 0&&v.unobserve(q.ref);v.disconnect();J.unsubscribe()}
if(q.ref===void 0)return E.complete(),function(){};
var v=new Q(function(f){f.forEach(function(t){E.next(t)})});
v.observe(q.ref);var J=q.JSC$9667_released.subscribe(y);return y})).pipe(NS(g.performanceMonitor,736),zF(function(E){return E.contentRect}));
return qS(YA(q.ref.getBoundingClientRect()),L)}),pO(rj))}};
sYK=function(g){return function(u){var q=u.pipe(YH3(g)),Q=g.onResize;q=qS(u.pipe(zF(function(){return w8m("resize")})),q,Q);
return kA(u,q).pipe(NS(g.performanceMonitor,737),zF(function(L){L=_.N(L).next().value;return L.ref===void 0?void 0:L.ref.getBoundingClientRect()}),zUf(),pO(rj))}};
pLq=function(g,u){var q=vGK(g,u).pipe(t1(1),Bx());return function(Q){return function(L){L=L.pipe($B(function(E){return E.element}),pO());
return kA([q,L]).pipe($B(function(E){var y=_.N(E);E=y.next().value;y=y.next().value;return DQF(g,E.intersectionObserver,yfZ(g),E.observations,Q,E.flushRecords,y)}),dj(g.queue))}}};
JfM=function(g){return zF(function(u){return u.value.viewportGeometrySourceName!=="nio"?u:Object.assign({},u,{value:Object.assign({},u.value,{exposedViewportLocalGeometry:$$(g,!0),topWindowViewportExternalGeometry:$$(g,!0)})})})};
jYk=function(g,u){return YA(u).pipe(g,zF(function(){return u}))};
vGK=function(g,u){return g.timeProvider.timeline!==f6f?OP(new yu(2)):g.MutationObserver?typeof IntersectionObserver==="undefined"?OP(new yu(0)):(new ZK(function(q){var Q=new b7,L=new RG(Q.next.bind(Q),{threshold:[].concat(_.na(u))});q.next({observations:Q.pipe(NS(g.performanceMonitor,735)),intersectionObserver:L,flushRecords:function(E){E=L.takeRecords(E);E.length>0&&Q.next(E)}})})).pipe(Di(1),t1(1),Bx()):OP(new yu(1))};
MRZ=function(g){return oAZ(g.sort(function(u,q){return u.time-q.time}),NjZ)};
DQF=function(g,u,q,Q,L,E,y){return new ZK(function(v){function J(){H||(H=!0,y.ref!==void 0&&u.unobserve(L,y.ref),t.unsubscribe(),R.unsubscribe(),G.unsubscribe(),l.unsubscribe())}
if(y.ref!==void 0){tRM(u,L);u.observe(L,y.ref);var f=new w6({timestamp:g.timeProvider.now(),value:Object.assign({},EGm,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),t=Q.pipe(UP(function(d){return MRZ(d)}),Q3(function(d){return d.target===y.ref}),zF(function(d){return{timestamp:new E7(d.time,f6f),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:d.rootBounds||c8,topWindowViewportExternalGeometry:d.rootBounds||$$(g,!0),measurementRequests:e,elementGeometrySourceName:"nio",intersectionGeometry:d.intersectionRect,elementGeometry:d.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:d.isIntersecting,isV2Visible:d.isVisible}}}),fO(f),Bx()).subscribe(v),e=new b7,G=e.subscribe(function(){E(L);
v.next({timestamp:g.timeProvider.now(),value:f.value.value});y.ref!==void 0&&(u.unobserve(L,y.ref),u.observe(L,y.ref))}),R=jYk(q,y).subscribe(function(){e.next()}),H=!1,l=y.JSC$9667_released.subscribe(function(){return J()});
return J}})};
eLf=function(g,u){var q=g.getOnBackgrounded().pipe(zF(function(){return"b"}));
return C7F(u,q).pipe(Di(1),aW(g.queue))};
H8=function(g){return function(u){var q;return u.pipe(BjK(function(Q){return void(q=Q.timestamp)}),zF(function(Q){return Q.value}),g,zF(function(Q){return{timestamp:q,
value:Q}}))}};
G9b=function(g){return g.intersectionGeometry.width*g.intersectionGeometry.height/(g.elementGeometry.width*g.elementGeometry.height)};
Ak=function(g,u,q){q=q===void 0?function(Q,L){return Q===L}:q;
return g.timestamp.equals(u.timestamp)&&q(g.value,u.value)};
l0=function(g,u){return u.pipe(zF(function(q){return new ZW(g.timeProvider,{timestamp:g.timeProvider.now(),value:q})}))};
$Qh=function(g){return function(u){return u.pipe(zsk(g),zF(function(q){var Q=_.N(q);q=Q.next().value;Q=Q.next().value;var L=q.value;return{timestamp:q.timestamp,value:L>=1?!0:L<=0?!1:L>=Q}}))}};
wLK=function(){return AB(Q3(function(g,u){return u>0}),RLZ,GW(-1),pO())};
cfm=function(g,u,q){return g?kA([u,q]).pipe(Q3(function(Q){var L=_.N(Q);Q=L.next().value;L=L.next().value;return Q.timestamp.equals(L.timestamp)}),zF(function(Q){var L=_.N(Q);
Q=L.next().value;L=L.next().value;return Q.value>L.value?Q:L})):u};
Z2b=function(g){return function(u){var q=u.pipe(H2q),Q=u.pipe(AfJ);return g instanceof ZK?g.pipe($B(function(L){return cfm(L,q,Q)})):cfm(g.value,q,Q)}};
VRq=function(g,u,q,Q){var L=Q.geometryIsOccluded,E=Q.exposureThreshold,y=Q.wasLargeAdAtRender,v=Q.allowLargeAdThreshold,J=Q.largeAdExposureThreshold,f=Q.mayUseViewportShareExposure,t=Q.hasMeasurementStarted;Q=Q.useIntersectionObserverV2;u=l6m(g,q,u);q=I6S(g,q);Q=i2f(u,Q);var e=CXf(g,L,f,u),G=e.pipe(zF(function(W){return W.value}),pO(),aW(g),eg(function(W,x){return Math.max(W,x)},0)),R=e.pipe(zF(function(W){return W.value}),wLK(),aW(g)),H=u.pipe(b2T,zF(function(W){return W.value}),Di(2),pO(),aW(g));
y=dQS(g,u,y,v);var l=y.pipe(GW(!1),pO(),zF(function(W){return W?J:E}));
v=e.pipe($Qh(l),pO(),aW(g));var d=kA([v,u]).pipe(Q3(function(W){var x=_.N(W);W=x.next().value;x=x.next().value;return W.timestamp.equals(x.timestamp)}),zF(function(W){var x=_.N(W);
W=x.next().value;x=x.next().value;return{visible:W.value,geometry:x.value.elementGeometry}}),eg(function(W,x){return!x.visible&&W.visible?W:x},{visible:!1,
geometry:c8}),zF(function(W){return W.geometry}),GW(c8),aW(g),pO(rj));
f=f instanceof ZK?f.pipe(pO(),vq()):sU;l=kA([f,l]).pipe(vq());var F=u.pipe(Q3(function(W){return W.value.viewportGeometrySourceName!=="ns"&&W.value.elementGeometrySourceName!=="ns"}),eg(function(W){return W+1},0),GW(0),aW(g)),V=q.pipe(vq(!0),GW(!1),aW(g));
V=kA([t,V]).pipe(zF(function(W){var x=_.N(W);W=x.next().value;x=x.next().value;return W&&!x}),aW(g));
var z=u.pipe(FVK,pO()),O=z.pipe(zF(function(W){return W.value}),eg(function(W,x){return Math.max(W,x)},0),pO(),aW(g));
g=z.pipe(zF(function(W){return W.value}),wLK(),aW(g));
return{shouldResetExposureSignals:f,shouldResetViewabilitySignals:l,geometrySignals:{readyGeometryWithDefault:u,measurementStrategy:u.pipe(mQJ),creativePosition:d.pipe(pO(rj)),visible:v.pipe(pO(Ak)),timestampedExposure:e.pipe(pO(Ak)),maximumExposure:G,minimumExposure:R,browserSize:u.pipe(a6b,pO(_.SK)),timestampedScreenShare:z,maxScreenShare:O,minScreenShare:g,geometricMeasurementErrors:q,measurementRequests:u.pipe(zF(function(W){return W.value.measurementRequests})),
isLargeAd:y,geometryIsOccluded:L,hasMeasurementStarted:t,geometryMeasurable:V,validMeasurementCount:F,loadTimeExposure:H,v2VisibilityBitVector:Q}}};
I6S=function(g,u){return u.pipe(Q3(function(){return!1}),zF(function(q){return q}),s7(function(q){return IG(new X4(q),g)}))};
l6m=function(g,u,q){return u.pipe(IiM(sU),aW(g)).pipe(pO(function(Q,L){return Ak(Q,L,q9k)}),GW({timestamp:q.now(),
value:EGm}),aW(g))};
CXf=function(g,u,q,Q){q=Q.pipe(Z2b(q),H8(zF(function(L){return Math.round(L*100)/100})),aW(g));
return u instanceof X4?q:kA([q,u]).pipe(zF(function(L){var E=_.N(L);L=E.next().value;E=E.next().value;return{timestamp:E.timestamp.maximum(L.timestamp),value:E.value?0:L.value}}),pO(Ak),aW(g))};
dQS=function(g,u,q,Q){u=[u.pipe(zF(function(L){return L.value.elementGeometry.width*L.value.elementGeometry.height>=242500}))];
q instanceof ZK&&u.push(q.pipe(zF(function(L){return!!L})));
q=kA(u);return Q?q.pipe(zF(function(L){return L.some(function(E){return E})}),GW(!1),pO(),aW(g)):IG(new X4(!1),g)};
i2f=function(g,u){g=kA([g,u]).pipe(zF(function(L){var E=_.N(L);L=E.next().value;if(E.next().value&&L.value.isIntersecting)return L.value.isV2Visible}),pO());
var q=g.pipe(zF(function(L){return L===void 0?!0:L}),eg(function(L,E){return L||!E},!1)),Q=g.pipe(eg(function(L,E){return E===void 0?L:E?!1:L!=null?L:!0},void 0),zF(function(L){return!!L}));
return kA([u,bOm(g,q,Q)]).pipe(zF(function(L){var E=_.N(L);L=E.next().value;var y=_.N(E.next().value);E=y.next().value;var v=y.next().value;y=y.next().value;var J=0;if(!L)return 0;if(E===void 0)return 16;E&&(J|=1);E||(J|=2);v&&(J|=4);y&&(J|=8);return J}))};
Y9J=function(g,u,q,Q,L){var E=XLJ.timeThresholdMs;var y=y===void 0?new rfh(u,Q):y;return(new ZK(function(v){var J=q.pipe(GW(void 0),$B(function(){return WVq(L)})).pipe(zF(function(f){var t=f.value;
f=f.timestamp;var e=t.visible;t=t.consecutiveViewTime;var G=t>=E;G||!e?TBh(y):(f=Math.max(0,LO(u.now(),f)),hLS(y,Math.max(0,E-t-f)));return G}),eg(function(f,t){return t||f},!1),pO()).subscribe(v);
return function(){y.dispose();J.unsubscribe()}})).pipe(RW(function(v){return!v},!0),aW(g))};
WVq=function(g){return kQb([g,g.pipe(uPq())]).pipe(zF(function(u){var q=_.N(u);u=q.next().value;q=q.next().value;return{timestamp:u.timestamp,value:{visible:u.value,consecutiveViewTime:q.value}}}),pO(function(u,q){return Ak(u,q,function(Q,L){return Q.consecutiveViewTime===L.consecutiveViewTime&&Q.visible===L.visible})}))};
O2Z=function(){return AB(UVm(),eg(function(g,u){return Math.max(g,u)},0),zF(function(g){return Math.round(g)}))};
KVq=function(g){return AB($Qh(YA(g)),O2Z())};
xQb=function(g,u){return u instanceof ZK?u.pipe($B(function(q){return(q=q?15:null)?OP(new yu(q)):g})):(u=u.value?15:null)?OP(new yu(u)):g};
BBZ=function(g){var u=new yu(13);if(g.length<1)return{chain:u7,capturedErrors:u7};var q=new b7,Q=g[0];return{chain:g.slice(1).reduce(function(L,E){return L.pipe(s7(function(y){q.next(y);return E}))},Q).pipe(s7(function(L){q.next(L);
return OP(u)}),fO(new b7),Bx()),
capturedErrors:q}};
zLS=function(g,u){var q=g.pipe(fO(new b7),Bx());return $B(function(Q){return q.pipe(u(Q))})};
k9T=function(g,u){if(g.inCrossDomainIframe)return OP(new yu(6));var q=new b7;return qS(YA({}),u,q).pipe(zF(function(){return{timestamp:g.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:nGJ(g),topWindowViewportExternalGeometry:$$(g,!0),measurementRequests:q,viewportLocalAppOffset:{x:0,y:0}}}}),dj(g.queue))};
nGJ=function(g){var u=$$(g,!1);if(!g.inIframe||!USf(g.global.parent)||g.global.parent===g.global)return u;var q=new i0(g.global.parent,g.debugChannel);q.beaconFactory=g.beaconFactory;q=nGJ(q);g=g.global.frameElement.getBoundingClientRect();return YUq(OHb(YUq(q,g),{x:u.left-g.left,y:u.top-g.top}),u)};
S9M=function(g){if(g.prerendering)return 3;var u;return(u={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[g.visibilityState||g.webkitVisibilityState||g.mozVisibilityState||""])!=null?u:0};
oGb=function(g){return g.document.JSC$9678_onVisibilityChange.pipe(zF(function(u){return u==="visible"}),pO(),aW(g.queue))};
UQ3=function(g,u,q){var Q;return u.pipe(pO(),$B(function(L){return q.pipe(zF(function(){if(!Q){Q=!0;try{L.next()}finally{Q=!1}}return!0}))}),GW(!1),aW(g.queue))};
gvb=function(g){return AB(H8(zF(function(u){return u>=1?!0:u<=0?!1:u>=g})),oFS(),zF(function(u){return Math.round(u)}))};
q_u=function(g,u,q,Q,L){var E=uRq;if(E.length>1)for(var y=0;y<E.length-1;y++)if(E[y]<E[y+1])throw Error();y=L.pipe(GW(void 0),$B(function(){return q.pipe(uPq())}),pO(),aW(g));
L=L.pipe(GW(void 0),$B(function(){return q.pipe(O2Z())}),pO(),aW(g));
return{totalMeasurementTime:Q.pipe(GW(void 0),$B(function(){return u.pipe(zF(function(v){return{timestamp:v.timestamp,value:!0}}),oFS())}),pO(),aW(g)),
totalUnviewedTime:Q.pipe(GW(void 0),$B(function(){return u.pipe(zF(function(v){return{timestamp:v.timestamp,value:v.value===0}}),oFS())}),pO(),aW(g)),
maxTimeOnScreen:Q.pipe(GW(void 0),$B(function(){return u.pipe(gGq(KVq,E))}),pO(_.SK),aW(g)),
timeOnScreen:Q.pipe(GW(void 0),$B(function(){return u.pipe(gGq(gvb,E),zF(function(v){return v.map(function(J,f){return f>0?J-v[f-1]:J})}))}),pO(_.SK),aW(g)),
maxConsecutiveViewTime:L,consecutiveViewTime:y.pipe(pO(Ak),aW(g))}};
LWu=function(g){var u=!0;u=u===void 0?!1:u;return AB($B(function(q){return Q4q(g.document,q,u)}),aW(g.queue))};
Evm=function(g,u,q){var Q=q.pipe(zF(function(L){return{value:L,timestamp:g.timeProvider.now()}}),pO(Ak));
return u instanceof ZK?u.pipe(pO(),$B(function(L){return L?IG(new X4({value:!1,timestamp:g.timeProvider.now()}),g.queue):Q})):u.value===!1?Q:new X4(!1)};
PLq=function(g,u,q,Q,L,E,y){var v=XLJ;u=u instanceof ZK?u.pipe(GW(!1),pO()):u;var J=!g.isMobile();q=Evm(g,q,Q);g=y.measurableCreative.pipe(nFJ(g.queue));return Object.assign({},v,{geometryIsOccluded:q,wasLargeAdAtRender:L,allowLargeAdThreshold:J,mayUseViewportShareExposure:u,hasMeasurementStarted:g,useIntersectionObserverV2:E})};
s4Z=function(g,u,q,Q,L,E){var y=1;E=E===void 0?!0:E;y=y===void 0?.01:y;var v=v===void 0?g.timeProvider.intervalObservable(100).pipe(aW(g.queue)):v;return g.performanceMonitor.timeExecution(916,function(){return NiJ(g,u.pipe(dj(g.queue)),q.pipe(dj(g.queue)),Q,L,E,y,v)})()};
NiJ=function(g,u,q,Q,L,E,y,v){var J=oGb(g).pipe(zF(function(t){return!t})),f=new yMJ(g,[new vvT(g,uRq),
new Dqm(g,v)]);v=XD3(pkf,JMu);return ihm(g,u,function(t,e){var G=IG(new X4(e.element),t.queue).pipe(LWu(t),aW(t.queue)),R={loadedElement:G,shouldMeasure:G.pipe(vq(!0)),measurableCreative:G.pipe(zF(function(W){var x=x===void 0?Symbol():x;return Object.freeze({symbol:x,element:IG(new X4(W),t.queue)})})),
creativeSearchResult:IG(new X4("mue"),t.queue)},H=new X4(!1),l=new X4(!1),d=new X4(17),F=new X4(!1),V=new X4(!1),z=IG(b0,t.queue);H=f.buildGeometrySource(R,{inApp:H,useV2:!1,requestSource:IG(d,t.queue)}).geometrySource;R=PLq(t,F,l,J,V,z,R);l=VRq(t.queue,t.timeProvider,H,R);R=l.geometrySignals;F=l.shouldResetViewabilitySignals;l=q_u(t.queue,R.timestampedExposure,R.visible,l.shouldResetExposureSignals,F);F=Y9J(t.queue,t.timeProvider,F,R.measurementRequests,R.visible);V=q.pipe(Q3(function(W){return W===
e.element.ref}),zF(function(){return"ur"}));
z=aiF(t.timeProvider,L).pipe(vq("t"));V=eLf(t,qS(V,z));z=UQ3(t,R.measurementRequests,V.pipe(Q3(function(W){return W!==null})));
H=V.pipe(Q3(function(W){return W!==null}),zF(function(){return S9M(t.global.document)===1}));
var O=j4S(t.document);return Object.assign({},{beaconFactory:new X4(t.beaconFactory),context:new X4(t),inferredPingId:new X4("lidar2"),timeOnScreenPingId:new X4("lidartos"),binaryContext:new X4(17),binaryVersion:new X4(Q),requestSource:d,contextValidationErrors:new X4(t.validate()?null:new DW),contextVisibilityKnown:new X4(O),payloadMapper:new X4(a1K),endOfSessionReason:V,timeOnScreenReason:V,requestMeasurementOnEndOfSession:z,hasImpressionFired:fYf,crossDomainIframeState:new X4(t.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:b0,inFetchLaterBeaconExperiment:b0,isTurtlex:b0,turtlexReportEventData:new X4(""),reportFencedFrameEvent:sU,isViewableAttributionEnabled:b0,inViewableAttributionExperiment:new X4(0),fetchBeaconFactory:sU,supportsPendingBeacon:b0,supportsFetchLater:b0,emit:new X4(TcT),beginToRenderEvent:new X4(Symbol()),activeViewUnmeasurableEvent:new X4(Symbol()),activeViewViewableEvent:new X4(Symbol()),creativeFound:fYf,immediateUrlPrefixes:new X4(e.immediateUrls),timeOnScreenUrlPrefixes:new X4(e.timeOnScreenUrls),
cpmavUrls:sU,viewableRelayUrls:sU,measurementDeferralState:new X4(2),urlSerializer:new X4(Bck),viewUrlSerializer:new X4(M8b),isCreativeLoaded:G.pipe(nFJ(t.queue)),pageVisible:J.pipe(zF(function(W){return!W})),
eosPageVisible:H,timestampedExposureHistory:R.timestampedExposure.pipe(eg(function(W,x){W.push(x);return W},[]))},R,{viewable:l0(t,F),
maxTimeOnScreen:l0(t,l.maxTimeOnScreen),timeOnScreen:l0(t,l.timeOnScreen),maxConsecutiveViewTime:l0(t,l.maxConsecutiveViewTime),consecutiveViewTime:l.consecutiveViewTime.pipe(zF(function(W){return new ZW(t.timeProvider,W)})),
totalMeasurementTime:l0(t,l.totalMeasurementTime),totalUnviewedTime:l0(t,l.totalUnviewedTime),userAgentClientHints:RvS(t),clientOrderPingCounter:new X4(new bhk)})},ViM(g,y),r5h(E?WRh(v,t8f):WRh(v,eIZ),GvK))};
$qK=function(g){var u=_.UT.apply(1,arguments).filter(Boolean).join("&");if(!u)return g;var q=g.match(/[?&]adurl=/);return q?g.slice(0,q.index+1)+u+"&"+g.slice(q.index+1):g+(g.indexOf("?")<0?"?":"&")+u};
d6=function(g,u){return u?"&"+g+"="+encodeURIComponent(u):""};
RIF=function(){try{var g,u;return!!((g=window)==null?0:(u=g.top)==null?0:u.location.href)&&!1}catch(q){return!0}};
_.Fo=function(g){g&&typeof g.dispose=="function"&&g.dispose()};
_.mv=function(g){for(var u=0,q=arguments.length;u<q;++u){var Q=arguments[u];_.xu(Q)?_.mv.apply(null,Q):_.Fo(Q)}};
cMk=function(){var g=wkZ();g=g===void 0?"bevasrsg":g;return new Promise(function(u){var q=window===window.top?window:RIF()?window:window.top,Q=q[g],L;((L=Q)==null?0:L.bevasrs)?u(new aG(Q.bevasrs)):(Q||(Q={},Q=(Q.nqfbel=[],Q),q[g]=Q),Q.nqfbel.push(function(E){u(new aG(E))}))})};
HSm=function(g){var u={c:g.rI,e:g.xMB,mc:g.w28,me:g.gGY};g.c6&&(u.co={c:g.c6.ySY,a:g.c6.nAB,s:g.c6.zQz});return u};
AMh=function(g){var u,q,Q={rI:g.c,xMB:g.e,w28:(u=g.mc)!=null?u:!1,gGY:(q=g.me)!=null?q:!1};g.co&&(Q.c6={ySY:g.co.c,nAB:g.co.a,zQz:g.co.s});return Q};
ZSM=function(g){return function(){var u;return _.D(function(q){if(q.nextAddress==1)return q.yield(g(),2);u=q.yieldResult;return q.return({f:function(){return u.pD7()},
c:function(Q){return u.tRA(Q)},
m:function(Q){return u.uk(AMh(Q))},
mws:function(Q){return u.rYn(AMh(Q))}})})}};
lYf=function(g,u){var q=wkZ();q=q===void 0?"bevasrsg":q;u={s:function(E){var y;return g.snapshot(Object.assign({},E.c&&{rI:E.c},E.s&&{plB:E.s},{cwY:(y=E.p)!=null?y:!0}))},
e:function(E){var y;return void((y=g.wfI)==null?void 0:y.call(g,E))},
c:function(E,y){return g.eaB(E,y)},
p:g.exH,l:function(){return g.ayz()},
wpc:u?ZSM(u):void 0};var Q=window===window.top?window:RIF()?window:window.top,L=Q[q];if(L){L.bevasrs=u;if(L.nqfbel!==void 0)for(q=_.N(L.nqfbel),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q(u);L.nqfbel=void 0}else L={},L=(L.bevasrs=u,L.nqfbel=void 0,L),Q[q]=L};
iST=function(g){var u=u===void 0?53:u;var q=[];_.Vu(g,IYT,6,_.Xo()).forEach(function(Q){_.r6(Q,2)<=u&&q.push(_.r6(Q,1))});
return q};
CL3=function(g){var u=u===void 0?53:u;var q=[];_.Vu(g,IYT,6,_.Xo()).forEach(function(Q){_.r6(Q,2)>u&&q.push(_.r6(Q,1))});
return q};
bSJ=function(g){g.then(function(){},function(){})};
W8=function(g){return{fieldType:1,fieldName:g}};
T$=function(g){return{fieldType:2,fieldName:g}};
_.hk=function(g){return{fieldType:3,fieldName:g}};
dqZ=function(){function g(){L[0]=1732584193;L[1]=4023233417;L[2]=2562383102;L[3]=271733878;L[4]=3285377520;t=f=0}
function u(e){for(var G=y,R=0;R<64;R+=4)G[R/4]=e[R]<<24|e[R+1]<<16|e[R+2]<<8|e[R+3];for(R=16;R<80;R++)e=G[R-3]^G[R-8]^G[R-14]^G[R-16],G[R]=(e<<1|e>>>31)&4294967295;e=L[0];var H=L[1],l=L[2],d=L[3],F=L[4];for(R=0;R<80;R++){if(R<40)if(R<20){var V=d^H&(l^d);var z=1518500249}else V=H^l^d,z=1859775393;else R<60?(V=H&l|d&(H|l),z=2400959708):(V=H^l^d,z=3395469782);V=((e<<5|e>>>27)&4294967295)+V+F+z+G[R]&4294967295;F=d;d=l;l=(H<<30|H>>>2)&4294967295;H=e;e=V}L[0]=L[0]+e&4294967295;L[1]=L[1]+H&4294967295;L[2]=
L[2]+l&4294967295;L[3]=L[3]+d&4294967295;L[4]=L[4]+F&4294967295}
function q(e,G){if(typeof e==="string"){e=unescape(encodeURIComponent(e));for(var R=[],H=0,l=e.length;H<l;++H)R.push(e.charCodeAt(H));e=R}G||(G=e.length);R=0;if(f==0)for(;R+64<G;)u(e.slice(R,R+64)),R+=64,t+=64;for(;R<G;)if(E[f++]=e[R++],t++,f==64)for(f=0,u(E);R+64<G;)u(e.slice(R,R+64)),R+=64,t+=64}
function Q(){var e=[],G=t*8;f<56?q(v,56-f):q(v,64-(f-56));for(var R=63;R>=56;R--)E[R]=G&255,G>>>=8;u(E);for(R=G=0;R<5;R++)for(var H=24;H>=0;H-=8)e[G++]=L[R]>>H&255;return e}
for(var L=[],E=[],y=[],v=[128],J=1;J<64;++J)v[J]=0;var f,t;g();return{reset:g,update:q,digest:Q,digestString:function(){for(var e=Q(),G="",R=0;R<e.length;R++)G+="0123456789ABCDEF".charAt(Math.floor(e[R]/16))+"0123456789ABCDEF".charAt(e[R]%16);return G}}};
Y$=function(g){this.JSC$9925_document_=g||{cookie:""}};
rMk=function(g,u){u=u===void 0?FWS:u;if(!mqu){var q;g=(q=g.navigator)==null?void 0:q.userAgentData;if(!g||typeof g.getHighEntropyValues!=="function"||g.brands&&typeof g.brands.map!=="function")return Promise.reject(Error("va"));aYh((g.brands||[]).map(function(L){var E=new V8J;E=_.EU(E,1,L.brand);return _.EU(E,2,L.version)}));
typeof g.mobile==="boolean"&&_.OU(XkM,2,g.mobile);mqu=g.getHighEntropyValues(u)}var Q=new Set(u);return mqu.then(function(L){var E=XkM.clone();Q.has("platform")&&_.EU(E,3,L.platform);Q.has("platformVersion")&&_.EU(E,4,L.platformVersion);Q.has("architecture")&&_.EU(E,5,L.architecture);Q.has("model")&&_.EU(E,6,L.model);Q.has("uaFullVersion")&&_.EU(E,7,L.uaFullVersion);return E.serialize()}).catch(function(){return XkM.serialize()})};
KH=function(g,u,q,Q){this.initialValue_=g;this.maxValue_=u;this.currBaseValue_=this.currValue_=g;this.randomFactor_=q||0;this.backoffFactor_=Q||2};
Tiu=function(g,u,q,Q,L){this.listener=g;this.proxy=null;this.src=u;this.type=q;this.capture=!!Q;this.handler=L;this.key=++WWq;this.removed=this.callOnce=!1};
x$=function(g){this.src=g;this.listeners={};this.typeCount_=0};
KWK=function(){for(var g;g=hIh.remove();){try{g.fn.call(g.scope)}catch(u){Eb(u)}Y_q.put(g)}OSb=!1};
_.xqT=function(g){switch(g){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}};
Biq=function(g){switch(g){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""}};
_.zI3=function(){};
Q0J=function(g,u,q,Q){g=nvu(kvF(S_S(new _.B8(1828,"0"),g),new ovZ)).disableWithCredentials();u.length&&UqT(g,gQb(new uxm,u));Q!==void 0&&(g.destinationUrl=Q);var L=new qkq(1828,"","",!1,"",g.build());_.z$(L,g);var E=new nH({flush:function(y){try{L.flush(y)}catch(v){q(v)}}});
E.addOnDisposeCallback(function(){setTimeout(function(){try{E.snapshotAndFlush()}finally{L.dispose()}})});
E.invocationLimit=1E5;E.flushInterval=3E4;E.JSC$10094_flushTimer.setInterval(3E4);return E};
k$=function(){var g,u,q;return(q=(g=globalThis.performance)==null?void 0:(u=g.now)==null?void 0:u.call(g))!=null?q:Date.now()};
PSu=function(g,u){if(g.disable)return new L9h;u=u?iST(u):[];g={yr:g.yr,oaN:g.ods,z7c:g.l1L,destinationUrl:g.destinationUrl,cFz:g.cFz,rwq:g.rwq};u=u===void 0?[]:u;return new EQF(g,u)};
Num=function(g){if(!g)return null;g=_.Sp(g,2);return g===null||g===void 0?null:QT(g)};
_.s0q=function(g){if(!g)return null;g=_.Sp(g,4);return g===null||g===void 0?null:_.r0(g)};
Duf=function(g,u){return u?yiZ(u):g?vQm(g):Promise.resolve()};
yiZ=function(g){return new Promise(function(u,q){var Q=_.oG("SCRIPT"),L=_.s0q(g);_.jx(Q,L);Q.onload=function(){_.UU(Q);u()};
Q.onerror=function(){_.UU(Q);q(Error("Ga"))};
(uv("HEAD")[0]||document.documentElement).appendChild(Q)})};
vQm=function(g){return new Promise(function(u){var q=_.oG("SCRIPT");if(g){var Q=_.Sp(g,6);Q=Q===null||Q===void 0?null:_.DK(Q)}else Q=null;_.JB(q,Q);(uv("HEAD")[0]||document.documentElement).appendChild(q);_.UU(q);u()})};
qV=function(g,u,q){var Q,L=new Promise(function(E){Q=setTimeout(E,u)});
return Promise.race([g.finally(function(){return void clearTimeout(Q)}),
L.then(q)])};
pWF=function(g,u){try{return globalThis.sessionStorage.setItem(g,u),!0}catch(q){return!1}};
JiS=function(g,u,q,Q){u=u===void 0?0:u;q=q===void 0?g.length:q;var L=0;for(Q&&(L=JiS(Q));u<q;u++)Q=typeof g==="string"?g.charCodeAt(u):g[u],L=j0h(31,L)+Q|0;return L};
fQf=function(g,u){return[JiS(g,0,g.length>>1,u),JiS(g,g.length>>1)]};
MjS=function(g){var u=_.N(fQf(g,Qx));g=u.next().value;u=u.next().value;return g.toString(16)+u.toString(16)};
tjK=function(g,u){var q=fQf(u);g=new Uint32Array(g.buffer);u=g[0];var Q=_.N(q);q=Q.next().value;Q=Q.next().value;for(var L=1;L<g.length;L+=2){for(var E=u,y=L,v=q,J=Q,f=0;f<22;f++)y=y>>>8|y<<24,y+=E|0,y^=v+38293,E=E<<3|E>>>29,E^=y,J=J>>>8|J<<24,J+=v|0,J^=f+38293,v=v<<3|v>>>29,v^=J;E=[E,y];g[L]^=E[0];L+1<g.length&&(g[L+1]^=E[1])}};
eY3=function(g,u,q,Q,L){var E=(4-(Qx.length+q.length)%4)%4,y=new Uint8Array(4+E+Qx.length+4+q.length),v=new DataView(y.buffer),J=0;v.setUint32(J,Math.random()*4294967295);J=J+4+E;y.set(Qx,J);J+=Qx.length;v.setUint32(J,L);y.set(q,J+4);tjK(y,Q);return g.insert(u,function(f){return void globalThis.sessionStorage.removeItem(f)})?pWF(u,_.om(y))?"s":"t":"i"};
G8f=function(g,u){var q=globalThis.sessionStorage.getItem(g);if(!q)return["m"];try{var Q=_.Ub(q);tjK(Q,u)}catch(L){return globalThis.sessionStorage.removeItem(g),["c"]}for(u=4;u<7&&Q[u]===0;)u++;for(q=0;q<Qx.length;q++)if(Q[u++]!==Qx[q])return globalThis.sessionStorage.removeItem(g),["d"];q=(new DataView(Q.buffer)).getUint32(u);return Math.floor(Date.now()/1E3)>=q?(globalThis.sessionStorage.removeItem(g),["e"]):["a",new Uint8Array(Q.buffer,u+4)]};
$uf=function(g){return globalThis.TextEncoder?(new TextEncoder).encode(g):_.PS(g)};
RYb=function(g){var u=g,q;return function(){if(u){var Q=u;u=void 0;q=Q.apply(this,arguments)}return q}};
ciK=function(g){return XW(function(u){if(u instanceof g)return!0;var q,Q,L=u==null?void 0:(q=u.ownerDocument)==null?void 0:(Q=q.defaultView)==null?void 0:Q[g.name];return wWq(L)&&u instanceof L})};
_.PD=function(g,u,q){_.Lh.call(this);this.JSC$10308_listener_=g;this.JSC$10308_interval_=u||0;this.handler_=q;this.callback_=(0,_.EH)(this.JSC$10310_doAction_,this)};
_.NV=function(g){_.Lh.call(this);this.handler_=g;this.JSC$10311_keys_={}};
sH=function(){_.Lh.call(this);this.services_={}};
H0T=function(){for(var g=10,u="";g-- >0;)u+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return u};
yx=function(g){_.Lh.call(this);this.JSC$10331_domHelper_=g||LH()};
ph=function(g,u,q,Q,L){yx.call(this,q);this.JSC$10334_channel_=g;this.protocolVersion_=L||2;this.peerHostname_=u||"*";this.JSC$10334_eventHandler_=new _.NV(this);this.maybeAttemptToConnectTimer_=new _.vD(100,this.getWindow());this.oneSidedHandshake_=!!Q;this.setupAckReceived_=new D1;this.setupAckSent_=new D1;this.JSC$10334_connected_=new D1;this.endpointId_=H0T();this.peerEndpointId_=null;this.oneSidedHandshake_?Aiq(this.JSC$10334_channel_)==1?Z0b(this.JSC$10334_connected_,this.setupAckReceived_):
Z0b(this.JSC$10334_connected_,this.setupAckSent_):(Z0b(this.JSC$10334_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Z0b(this.JSC$10334_connected_,this.setupAckSent_));lQf(this.JSC$10334_connected_,this.notifyConnected_,this);this.JSC$10334_connected_.callback(!0);this.JSC$10334_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.J5=function(g){g=IQk(g);return _.r0(g)};
IQk=function(g){return g===null?"null":g===void 0?"undefined":g};
MV=function(g,u){sH.call(this);for(var q=0,Q;Q=i0M[q];q++)if(Q in g&&!/^https?:\/\//.test(g[Q]))throw Error("Sa`"+g[Q]+"`"+Q);this.cfg_=g;this.name=this.cfg_.cn||H0T();this.JSC$10335_domHelper_=u||LH();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.NV(this);g.lpu=g.lpu||n$F(this.JSC$10335_domHelper_.getWindow().location.href)+"/robots.txt";g.ppu=g.ppu||n$F(g.pu||"")+"/robots.txt";ji[this.name]=this;CSq(window,"unload",b0h)||fh(window,"unload",b0h)};
F9K=function(g){if(g&&g.focus)if(g!==document.activeElement)g.focus();else return duh(function(){return _.D(function(u){document.activeElement&&document.activeElement.blur();return u.return(duh(function(){g.focus()}))})})};
_.mum=function(g){var u=u===void 0?5:u;setTimeout(function(){var q;return _.D(function(Q){Q.nextAddress==1&&(q=document.activeElement);if(Q.nextAddress!=5)return(document.activeElement===q||document.activeElement===document.body)&&u>=0&&g?Q.yield(F9K(g),5):Q.jumpTo(0);if(document.activeElement===g)return Q.return();g=g.parentElement;--u;return Q.jumpTo(2)})},15)};
duh=function(g){return new Promise(function(u){requestAnimationFrame(function(){u(g())})})};
VjZ=function(g){if(_.t5)g(_.t5);else{var u;((u=aQJ)!=null?u:aQJ=[]).push(g)}};
GQ=function(){!_.t5&&_.ei&&_.XWq(_.ei());return _.t5};
_.XWq=function(g){_.t5=g;var u;(u=aQJ)==null||u.forEach(VjZ);aQJ=void 0};
_.wc=function(g){_.t5&&_.t5.beforeLoadModuleCode(g)};
_.cD=function(){_.t5&&_.t5.JSC$11368_setLoaded()};
HD=function(g){return Oom(g)?Number(g):String(g)};
riM=function(g){this.action=g;this.wfv=!1};
W9S=function(){};
Tuk=function(g,u){riM.call(this,"set-drive-options");this.appId=g;this.appOrigin=u};
hYS=function(g){riM.call(this,"visibility");this.visible=g};
zYT=function(g,u){var q=YkJ++,Q={measureTask:{id:q,fn:g.measure,context:u},mutateTask:{id:q,fn:g.mutate,context:u},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(Q.args||(Q.args=[]),Q.args.length=0,Q.args.push.apply(Q.args,arguments),Q.args.push(Q.state)):Q.args&&Q.args.length!=0?(Q.args[0]=Q.state,Q.args.length=1):Q.args=[Q.state];Q.isScheduled||(Q.isScheduled=!0,O0T[K9q].push(Q));xu3||(xu3=!0,window.requestAnimationFrame(Buq))}};
Buq=function(){xu3=!1;var g=O0T[K9q],u=g.length;K9q=(K9q+1)%2;for(var q,Q=0;Q<u;++Q){q=g[Q];var L=q.measureTask;q.isScheduled=!1;L.fn&&L.fn.apply(L.context,q.args)}for(Q=0;Q<u;++Q)q=g[Q],L=q.mutateTask,q.isScheduled=!1,L.fn&&L.fn.apply(L.context,q.args),q.state={};g.length=0};
lv=function(g){_.A5.call(this);this.JSC$10467_element_=g;this.listenKeyIn_=_.Z1(this.JSC$10467_element_,"focus",this,!0);this.listenKeyOut_=_.Z1(this.JSC$10467_element_,"blur",this,!0)};
nQb=function(g,u){this.JSC$10470_element_=g;this.JSC$10470_dom_=u};
iv=function(g,u){I2.call(this,u);this.useIframeMask_=!!g;this.lastFocus_=null;this.resizeBackgroundTask_=zYT({mutate:this.resizeBackground_},this);zYT({mutate:this.updateModalAndBackground_},this)};
bv=function(g,u,q){iv.call(this,u,q);this.JSC$10480_class_=g||"modal-dialog";this.buttons_=(new Ch).addButton(k83,!0).addButton(SkZ,!1,!0)};
oQu=function(g,u,q){bv.call(this,g,u,q)};
Uuf=function(g){dc.call(this,g)};
gOm=function(g){g=g&&g.getWindow()||window;return g.gadgets&&g.gadgets.rpc};
qrb=function(g,u){var q=u&&u.getWindow()||window;if(gOm(u))g();else if(u7Z)u7Z.push(g);else var Q=u7Z=[g],L=q.setInterval(function(){if(gOm(u)){q.clearInterval(L);for(var E=0;E<Q.length;E++)Q[E]();u7Z=null}},100)};
Lkm=function(g,u){var q=new F_(g);_.z$(u,q);var Q={passive:!1};u.listen(q,"mousewheel",function(L){return void QIJ(g,L)},Q).listen(g,"scroll",function(L){return void QIJ(g,L)},Q)};
QIJ=function(g,u){var q;a:{for(q=u.target;q;){if(q.nodeType==1){var Q=_.mR(q,"overflowY");if(Q=="auto"||Q=="scroll")break a}q=q.parentNode}q=null}if(!q||!_.a2(g,q)||q.scrollHeight==q.clientHeight||u.deltaY>0&&Math.abs(q.scrollTop-(q.scrollHeight-q.clientHeight))<=1||u.deltaY<0&&q.scrollTop==0)u.preventDefault(),u.stopPropagation()};
EOf=function(){var g;if(g=g===void 0?window:g)return g!==g.parent&&g.hasOwnProperty("pangolinIframeGlobals");var u=Error("gb");setTimeout(function(){throw u;},1);
return!1};
h5=function(g,u,q,Q,L,E,y,v,J,f){v=v===void 0?!1:v;J=J===void 0?!1:J;f=f===void 0?!1:f;bv.call(this,void 0,void 0,void 0);bv.call(this,E?E+" picker modal-dialog":"picker modal-dialog",!0,q);_.U7(g,"protocol");this.iframeManager_=new PtJ;this.targetId_=Vx();this.rpcToken_=Vx();g=_.X_(g);_.rc(g,"hostId");this.useGapi_=!J&&!EOf();v&&_.WD(g,"fv2","true");this.setUrl(g.toString());this.preferredDialogWidth_=Q;this.preferredDialogHeight_=L;Q!==void 0||L!==void 0?Q=!0:(Q=_.rc(_.X_(g.toString()),"hostId"),
NNb||(NNb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),Q=!NNb.has(Q));this.autoSizeDialog_=Q;this.JSC$10498_gadgetsDomHelper_=y||this.JSC$10449_dom_;this.JSC$10498_enablePopover_=f;u&&(y=this.JSC$10498_gadgetsDomHelper_,u=_.rc(_.X_(this.JSC$10500_url_),"grugl")=="true"?sIF:y6S,gOm(y)||(y=y||LH(document),f=y.createElement("SCRIPT"),_.jx(f,u),f.type="text/javascript",y.JSC$9633_document_.body.appendChild(f)));
g=g.toString();u=null;y=g.indexOf("/picker?");y>-1?u=g.substring(0,y+8-1):yq(g,"/picker")&&(u=g);u&&this.setRelayUrl(u+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(g=this.buttons_,g.JSC$10483_element_=this.buttonEl_,g.render()):_.fa(this.buttonEl_,vOu),_.TQ(this.buttonEl_,!!this.buttons_))};
DTu=function(g,u){_.YF.call(this,g.type,u);this.event_=g};
_.fvT=function(g){var u=u===void 0?pv3:u;var q=_.ku(g),Q=function(E){E=_.N(E);E.next();E=OH(E);return u(q,E)},L=function(E){var y=_.N(E);
E=y.next().value;y=OH(y);return g.apply(E,y)};
return function(){var E=_.UT.apply(0,arguments),y=this||_.Qq,v=J6q.get(y);v||(v={},J6q.set(y,v));return jIq(v,[this].concat(_.na(E)),L,Q)}};
Kh=function(g){var u={};g=g.replace(/\r/g,"").split("\n");for(var q=0;q<g.length;q++){var Q=g[q],L=Q.indexOf(":");L<0||(u[Q.substring(0,L)]=Q.substring(L+2,Q.length))}return u};
GXK=function(g,u){u.id||(u.id="ow"+_.ku(u));g.setAttribute("jsowner",u.id);g.__owner=u;var q=_.ep(u,Mab);q&&(tam.has(q)||tam.set(q,[]),tam.get(q).push(g));(q=eMq.get(u))||eMq.set(u,q=[]);q.includes(g)||q.push(g);u.setAttribute("__IS_OWNER",!0)};
Mab=function(g){return _.BD(g)?g.getAttribute("jsname")==="coFSxe":!1};
$TM=function(g,u,q){q=q===void 0?function(){}:q;
return g?u():q()};
_.wvf=function(g){var u;return((u=RMM.documentOverride)!=null?u:g).__wizdispatcher};
kF=function(g){var u=nh;nh=g;return u};
HBb=function(g){return g===c6S||(g==null?void 0:g.name)==="\u0275NotFound"};
Si=function(g,u){var q;if((q=g)==null?0:q.isDisposed)throw Error("lb`"+String(g.debugName));for(;g!==void 0;){q=g;if(q.retrieve)return q.retrieve(u,{optional:!0});g=g.parent}return c6S};
o2=function(g){return{"\u0275prov":{providedIn:"root",token:Symbol(g),factory:void 0,value:void 0}}};
A6q=function(g){var u=nh;if(!u){switch(g===void 0?3:g){case 0:g=Error("kb");break;case 1:g=Error("mb");break;case 2:g=Error("nb");break;default:g=Error("ob")}throw g;}return u};
ZBq=function(g){var u=kF(g);g={};return g[Symbol.dispose]=function(){kF(u)},g};
iBJ=function(){var g=A6q(1),u=Si(g,lvb);if(!HBb(u))return u;g=Si(g,Ivf);if(!HBb(g))return g.getOptionalAppContext()};
dTh=function(){var g=A6q(1);g=Si(g,Ctq);if(!(HBb(g)||g[bBh]&&!g.__hasBeenSet))return g.value};
Fkq=function(g,u){g.disposables||(g.disposables=[]);g.disposables.push(u)};
UH=function(g){var u=nh;u&&!u.isDisposed&&(Fkq(u,g),g.parent=u)};
avS=function(g){if(g.disposables){for(var u=_.N(g.disposables),q=u.next();!q.done;q=u.next())q=q.value,typeof q==="function"?q():mTm(q);g.disposables.length=0}};
mTm=function(g){if(!g.isDisposed){g.isDisposed=!0;var u;(u=g[Symbol.dispose])==null||u.call(g);delete g.parent;avS(g)}};
hM3=function(g){var u={retrieve:function(q){switch(q.\u0275prov.token){case Vah.\u0275prov.token:var Q=g.asyncDeps;break;case Ctq.\u0275prov.token:Q=g.rootElement;break;case XvF.\u0275prov.token:Q=g.modelRootElement;break;case lvb.\u0275prov.token:Q=g.appContext;break;case r6b.\u0275prov.token:Q=g.rendererData;break;case WkZ.\u0275prov.token:Q=g.injectingConstructor;break;case Ivf.\u0275prov.token:Q=g.dispatcher}if(Q)q=Q;else a:{for(Q=u.parent;Q;){var L=Q;if(L.retrieve){q=L.retrieve(q);break a}Q=
Q.parent}Q=q.\u0275prov.token;L=TNm[Q];L!==void 0?q=L:(L=q.\u0275prov.providedIn,q.\u0275prov.factory?(q=q.\u0275prov.factory(),Q&&L==="root"&&(TNm[Q]=q)):q=c6S)}return q}};
UH(u);return u};
Yrq=function(g){if(typeof document!=="undefined"&&document&&document.getElementById&&(g=document.getElementById(g))){var u=g.tagName.toUpperCase();if(u=="SCRIPT"||u=="LINK")return g}return null};
KkT=function(g,u){if((g=g===void 0?"":g)&&u)throw Error("ub");var q="";var Q=_.Qq._F_jsUrl;(g=u||Yrq(g))&&(q=g.src?g.src:g.getAttribute("href"));if(Q&&q){if(Q!=q)throw Error("vb`"+Q+"`"+q);q=Q}else q=Q||q;if(!OBF(q))throw Error("wb");return q};
nOF=function(){if(!xTq){xTq=!0;try{var g=KkT(_.Qq._F_jsUrl?"":"base-js")}catch(Q){return}var u=BNM(zMu(g)),q=Object.keys(u);q.length!==0&&VjZ(function(Q){for(var L=_.N(q),E=L.next();!E.done;E=L.next()){E=E.value;for(var y=_.N(Object.keys(u[E])),v=y.next();!v.done;v=y.next())Q.addExtraEdge(E,v.value)}})}};
SrJ=function(){var g=Object.assign({},kXS);Object.getOwnPropertyNames(kXS).forEach(function(u){gB[u]!==void 0&&(g[u]=gB[u])});
return g};
oOh=function(g,u){if(gB.enablePerformanceTiming){var q,Q;(Q=(q=performance).mark)==null||Q.call(q,g+"Start__"+u)}};
UTb=function(g,u){if(gB.enablePerformanceTiming){var q,Q;(Q=(q=performance).measure)==null||Q.call(q,g+"__"+u,g+"Start__"+u)}};
g1k=function(g,u,q){var Q;return g&&u?g+"__"+u:(Q=g!=null?g:u)!=null?Q:q};
qzf=function(g){var u=Object.create(uU3);u.debugName=g;!nh||UH(u);return u};
QoF=function(g,u){var q=qzf(u);u=kF(q);try{g(q)}finally{kF(u)}return function(){return void mTm(q)}};
E1q=function(g){return uX(g)&&Ln3 in g};
PD3=function(g){for(g=g===void 0?nh:g;g;){if(E1q(g))return g;var u=void 0;g=(u=g.parent)!=null?u:null}return null};
N9m=function(g,u){return Object.is(g,u)};
Qa=function(g){var u=qQ;qQ=g;return u};
y_q=function(g){if(L2)throw Error("$");if(qQ!==null){var u=qQ.producersTail;if(u===void 0||u.producer!==g){var q=void 0,Q=qQ.recomputing;if(Q&&(q=u!==void 0?u.nextProducer:qQ.producers,q!==void 0&&q.producer===g)){qQ.producersTail=q;q.lastReadVersion=g.version;return}var L=g.consumersTail,E;if(!(E=L===void 0||L.consumer!==qQ)){if(Q){a:{E=qQ;Q=E.producersTail;if(Q!==void 0){E=E.producers;do{if(E===L){Q=!0;break a}if(E===Q)break;E=E.nextProducer}while(E!==void 0)}Q=!1}Q=!Q}E=Q}E&&(Q=E9(qQ),q={producer:g,
consumer:qQ,nextProducer:q,prevConsumer:L,lastReadVersion:g.version,nextConsumer:void 0},qQ.producersTail=q,u!==void 0?u.nextProducer=q:qQ.producers=q,Q&&soM(g,q))}}};
s9=function(g){if(!E9(g)||g.dirty)if(g.dirty||g.lastCleanEpoch!==PL)(g.producerMustRecompute(g)||v1J(g))&&g.producerRecomputeValue(g),g.dirty=!1,g.lastCleanEpoch=PL};
D_b=function(g){if(g.consumers!==void 0){var u=L2;L2=!0;try{for(var q=g.consumers;q!==void 0;q=q.nextConsumer){var Q=q.consumer;Q.dirty||(g=void 0,Q.dirty=!0,D_b(Q),(g=Q.consumerMarkedDirty)==null||g.call(Q,Q))}}finally{L2=u}}};
p6F=function(){var g;return((g=qQ)==null?void 0:g.consumerAllowSignalWrites)!==!1};
J_u=function(g){g&&(g.producersTail=void 0,g.recomputing=!0);return Qa(g)};
ffK=function(g){g.recomputing=!1;var u=g.producersTail,q=u!==void 0?u.nextProducer:g.producers;if(q!==void 0){if(E9(g)){do q=joT(q);while(q!==void 0)}u!==void 0?u.nextProducer=void 0:g.producers=void 0}};
v1J=function(g){for(g=g.producers;g!==void 0;g=g.nextProducer){var u=g.producer,q=g.lastReadVersion;if(q!==u.version)return!0;s9(u);if(q!==u.version)return!0}return!1};
soM=function(g,u){var q=g.consumersTail,Q=E9(g);q!==void 0?(u.nextConsumer=q.nextConsumer,q.nextConsumer=u):(u.nextConsumer=void 0,g.consumers=u);u.prevConsumer=q;g.consumersTail=u;if(!Q)for(g=g.producers;g!==void 0;g=g.nextProducer)soM(g.producer,g)};
joT=function(g){var u=g.producer,q=g.nextProducer,Q=g.nextConsumer,L=g.prevConsumer;g.nextConsumer=void 0;g.prevConsumer=void 0;Q!==void 0?Q.prevConsumer=L:u.consumersTail=L;if(L!==void 0)L.nextConsumer=Q;else if(u.consumers=Q,!E9(u))for(g=u.producers;g!==void 0;)g=joT(g);return q};
E9=function(g){return g.consumerIsAlwaysLive||g.consumers!==void 0};
tQT=function(g){var u=Object.create(MQb);u.computation=g;g=function(){s9(u);y_q(u);if(u.value===ya)throw u.error;return u.value};
g[vL]=u;return g};
RAJ=function(g,u){var q=Object.create(eAS);q.value=g;u!==void 0&&(q.equal=u);g=function(){y_q(q);return q.value};
g[vL]=q;return[g,function(Q){return GpM(q,Q)},
function(Q){p6F()||$_F(q);GpM(q,Q(q.value))}]};
GpM=function(g,u){p6F()||$_F(g);if(!g.equal(g.value,u)){g.value=u;g.version++;PL++;D_b(g);var q;(q=w6Z)==null||q(g)}};
HwM=function(g,u,q){var Q=Object.create(c_S);Q.source=g;Q.computation=u;q!=void 0&&(Q.equal=q);g=function(){s9(Q);y_q(Q);if(Q.value===ya)throw Q.error;return Q.value};
g[vL]=Q;return g};
_.D6=function(g){var u=Qa(null);try{return g()}finally{Qa(u)}};
A_q=function(g,u){oOh("signalSet",u.debugName);try{g()}finally{UTb("signalSet",u.debugName)}};
ZwM=function(g,u,q){g=RAJ(g,u.equals);var Q=g[0],L=Q[vL];L.debugName=g1k(u.debugName,q,"[signal]");if(!gB.enablePerformanceTiming)return g;var E=g[1],y=g[2];return[Q,function(v){A_q(function(){return void E(v)},L)},
function(v){A_q(function(){return void y(v)},L)}]};
_.jR=function(g,u,q){return ZwM(g,u!=null?u:{},q===void 0?"":q)};
IfK=function(g,u){var q=_.N(_.jR(g,void 0,"cPpJzc"));g=q.next().value;q=q.next().value;g[lfu]=q;g[f2]=u;return g};
iwJ=function(g){return!!g&&typeof g==="object"&&Object.getPrototypeOf(g)===Object.prototype};
CDq=function(g){return typeof g==="function"&&lfu in g&&typeof g[lfu]==="function"};
bwm=function(g,u){Object.defineProperty(g,f2,{get:function(){return u}})};
tf=function(g,u){if(MQ(g)){var q=g.map(function(E){return tf(E,u)});
bwm(q,u);return q}if(iwJ(g)){q={};g=_.N(Object.entries(g));for(var Q=g.next();!Q.done;Q=g.next()){var L=_.N(Q.value);Q=L.next().value;L=L.next().value;q[Q]=tf(L,u)}bwm(q,u);return q}return IfK(g,u)};
d_F=function(g){if(MQ(g))return g.map(function(L){return d_F(L)});
if(iwJ(g)){var u={};g=_.N(Object.entries(g));for(var q=g.next();!q.done;q=g.next()){var Q=_.N(q.value);q=Q.next().value;Q=Q.next().value;u[q]=d_F(Q)}return u}return CDq(g)?g():g};
m_T=function(){var g={height:0,width:0};if(!iwJ(g))throw Error("Lb");var u=Symbol("Mb");return[tf(g,u),function(q,Q){if(q[f2]===u)if(typeof Q==="function"){var L=[].concat(_.na(d_F(q)));Q=Q(L)||L;FnS(q,[].concat(_.na(Q)))}else FnS(q,Q);else throw Error("Nb");}]};
FnS=function(g,u){if(CDq(g))g[lfu](u);else if(MQ(g)&&MQ(u))u=tf(u,g[f2]),g.length=0,g.push.apply(g,_.na(u));else if((iwJ(g)||MQ(g))&&(MQ(u)||typeof u==="object"&&u!==null)){u=_.N(Object.entries(u));for(var q=u.next();!q.done;q=u.next()){var Q=_.N(q.value);q=Q.next().value;Q=Q.next().value;var L=g,E=L[q];Object.hasOwn(g,q)?FnS(E,Q):L[q]=tf(Q,g[f2])}}else throw Error("Ob");};
afZ=function(g){return Object.create(Object.assign({},eR,g))};
Etq=function(){var g;return(g=VQS)!=null?g:VQS=afZ({consumerAllowSignalWrites:!0})};
_.G9=function(g,u,q){q=q===void 0?"":q;g=tQT(g);var Q=g[vL];Q.debugName=g1k(u==null?void 0:u.debugName,q,"[computed]");(u==null?void 0:u.equals)!=null&&(Q.equal=u.equals);return g};
$G=function(g){var u=Qa(PPk);try{g()}finally{Qa(u)}};
NUK=function(g){return uX(g)&&g.name!==void 0&&g.isReactive!==void 0&&g.parent!==void 0};
yjq=function(g,u,q){var Q=sKT(g);RY={name:q?Q+" ("+q+")":Q,isReactive:g.componentType!==wB,parent:RY};g=u();RY=RY.parent;return g};
cL=function(){var g=RY;return g?g.isReactive:!1};
Af=function(g,u,q){var Q=RY;u&&(RY=u);try{return q==null?g():g.call(q)}catch(E){g=E;HL(g,RY);if(g!==vtm){DwK=RY;u=[];for(q=nh;q;){var L=void 0;u.push((L=q.debugName)!=null?L:"[context]");L=void 0;q=(L=q.parent)!=null?L:null}po3=u.reverse()}vtm=g;throw g;}finally{RY=Q}};
HL=function(g,u){try{var q=Jju(u);if(q&&!g.componentStack&&(g.componentStack=q,gB.enableComponentStacksInErrorMessages)){var Q=g.message+"\n\nComponent stack: "+q;g.stack&&(g.stack=g.stack.replace(g.message,Q));g.message=Q}}catch(L){}};
jKk=function(g){for(var u=0,q="";u<20&&g;)q+="$$XID:"+g.name+"$$ > ",g=g.parent,u++;return q.slice(0,-3)};
Jju=function(g){return NUK(g)||g===null?jKk(g):gB.enableContextBasedComponentStacks?PD3(g).getComponentStack().slice(0,20).map(function(u){return"$$XID:"+u+"$$"}).join(" > "):""};
sKT=function(g){return g.debugName||g.name||"[component]"};
G3m=function(g){switch(g.onInitType){case fF3:M7Z.schedule(g);break;case t7J:gB.enableQueueEffectAndOnInitInitialRuns?eSq.enqueue(g):eSq.schedule(g);break;default:_.qE(g.onInitType)}};
AjF=function(g){if(!g.isDisposed)switch(g.effectType){case Z6:$wq.schedule(g);break;case RSm:woq.schedule(g);break;case cjh:gB.enableQueueEffectAndOnInitInitialRuns||g.version!==0?Hfh.enqueue(g):Hfh.schedule(g);break;default:_.qE(g.effectType)}};
IFb=function(){if(lX>0)gB.flushRenderEffectsDuringRender&&$wq.flush();else{for(var g=_.N(Zfb),u=g.next();!u.done;u=g.next())u.value.flush();lFq()}};
lFq=function(){_.D(function(g){if(g.nextAddress==1)return g.yield(Promise.resolve(),2);for(var u=_.N(ifm),q=u.next();!q.done;q=u.next())q.value.flush();_.Wx(g)})};
bfh=function(g){IY=!0;try{for(var u=_.N(g),q=u.next();!q.done;q=u.next()){for(var Q=q.value,L=[Q],E=Q;E.parent!==void 0;)E=E.parent,CPb(E)&&g.has(E)&&L.push(E);for(;L.length>0;){var y=L.pop();g.delete(y);y.run()}}}finally{IY=!1}};
iX=function(g){lX--;if(g){g=_.N(dwZ);for(var u=g.next();!u.done;u=g.next())u.value.clear()}else lX>0||IY&&!gB.flushRenderEffectsDuringRender||IFb()};
F6f=function(g,u,q){g=Object.create(g);u&&(g.fn=u);q&&(g.debugName=q);UH(g);g.componentStack=RY;return g};
mwq=function(g){if(!g.isDisposed){if(L2)throw Error("Sb");var u=kF(g);oOh("effectRun",g.debugName);try{Af(function(){g.dirty=!1;if(!(g.version>0)||v1J(g)){g.version++;var q=J_u(g);try{g.cleanup(),g.fn()}finally{Qa(q),g&&ffK(g)}}},g.componentStack,g)}catch(q){throw gB.enableContextBasedComponentStacks&&HL(q),q;
}finally{UTb("effectRun",g.debugName),kF(u)}}};
_.C2=function(g,u){g=F6f(aFM,g,u);AjF(g)};
_.bX=function(g,u){g=F6f(V7J,g,u);AjF(g)};
XoM=function(g){return g};
rjq=function(g,u,q){function Q(){return L()}
q=q===void 0?"":q;var L=typeof g==="function"?HwM(g,XoM,u==null?void 0:u.equals):HwM(g.source,g.computation,u==null?void 0:u.equals);var E=L[vL];E.debugName=g1k(u==null?void 0:u.debugName,q,"[linkedSignal]");Q[vL]=E;return[Q,function(y){A_q(function(){s9(E);GpM(E,y);E.dirty=!1;E.lastCleanEpoch=PL},E)},
function(y){A_q(function(){s9(E);p6F()||$_F(E);GpM(E,y(E.value));E.dirty=!1;E.lastCleanEpoch=PL},E)}]};
_.dB=function(g){var u=nh;if(u){var q=RY;Fkq(u,function(){var Q=Qa(Etq());try{Af(function(){return void g()},q)}catch(L){throw gB.enableContextBasedComponentStacks&&HL(L),L;
}finally{Qa(Q)}})}};
FP=function(g,u){var q={};(u===void 0||u)&&UH(q);u=kF(q);try{g(q)}finally{kF(u)}return function(){return void mTm(q)}};
_.mV=function(g){return typeof g==="function"?g():(g==null?0:g[W6Z])?g.get():g};
TUK=function(g){if(nh)throw Error("pb");FP(g,!1)};
aY=function(g,u){g=kF(g);try{return _.D6(u)}finally{kF(g)}};
Va=function(g,u){var q=Jju(DwK),Q,L;var E=(L=(Q=po3)==null?void 0:Q.slice())!=null?L:[];u={componentStack:q,contextTrace:E,errorSeverity:3,featureFlags:SrJ(),tagName:u};return[g,u]};
OfZ=function(g,u,q){if(Object.hasOwnProperty.call(hSk,g)&&(g=hSk[g],Object.hasOwnProperty.call(g,u)&&(g=g[u],g instanceof Array))){for(var Q=null,L=!1,E=0,y=g.length;E<y;++E){var v=g[E],J=v.contingentAttribute;if(!J)return v.contract;Q===null&&(Q={});J=Object.hasOwnProperty.call(Q,J)?Q[J]:Q[J]=q(J);if(J===v.requiredValue)return v.contract;J==null&&(L=!0)}if(L)return null}u=YYq[u];return typeof u==="number"?u:null};
BUq=function(g,u,q){var Q=null;(g=K6f[g])&&(Q=g[u]);return typeof Q!=="number"&&((g=K6f["*"])&&(Q=g[u]),typeof Q!=="number")?!1:!0===xwu[Q][String(q).toLowerCase()]};
ntu=function(g,u){u=OfZ(g.toLowerCase(),u,function(){var Q;(Q=gB.handleError)==null||Q.call.apply(Q,[gB].concat(_.na(Va(Error("Vb"),g.toLowerCase()))))});
if(u===null)return null;var q;return(q=zSu[u])!=null?q:null};
k3q=function(g,u,q){if(q===null||q===void 0)return q;u=u.toLowerCase();g=ntu(g,u);return g===null?q:g(u,q)};
UwM=function(g){var u=SYb,q=g,Q="",L="",E=1;g<0&&(g=-g);if(g===Infinity)g=(Infinity*Math.sign(q)).toString();else{for(var y=0;y<otZ.length;y++){var v=otZ[y];E=u[v];if(g>=E||E<=1&&g>.1*E){Q=v;break}}Q?(Q+="B",L=" "):E=1;g=Math.round(q/E*10)/10+L+Q}return g};
gCT=function(){};
uwF=function(g,u){for(;g.length>u;)g.pop()};
qAZ=function(g){g=Array(g);uwF(g,0);return g};
rB=function(g,u,q){if(q==null)g.removeAttribute(u);else{var Q;(Q=u.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":u.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?g.setAttributeNS(Q,u,q):g.setAttribute(u,q)}};
LLu=function(g,u,q){g=g.style;if(typeof q==="string")g.cssText=q;else{g.cssText="";for(var Q in q)if(QMK.call(q,Q)){u=g;var L=Q,E=q[Q];L.indexOf("-")>=0?u.setProperty(L,E):u[L]=E}}};
ECh=function(g,u,q){var Q=typeof q;Q==="object"||Q==="function"?g[u]=q:rB(g,u,q)};
P6J=function(){var g=new gCT;g[WL.default]=ECh;g.style=LLu;return g};
NVk=function(g,u,q,Q){(Q[u]||Q[WL.default])(g,u,q)};
ygb=function(g,u,q){u=new sMu(u,q);return g.__incrementalDOMData=u};
vCJ=function(g,u){if(g.__incrementalDOMData)return g.__incrementalDOMData;var q=g.nodeType===1?g.localName:g.nodeName,Q=g.nodeType===1?g.getAttribute("key"):null;u=ygb(g,q,g.nodeType===1?Q||u:null);if(g.nodeType===1&&(g=g.attributes,q=g.length)){Q=u._attrsArr||(u._attrsArr=qAZ(q*2));for(var L=0,E=0;L<q;L+=1,E+=2){var y=g[L],v=y.value;Q[E]=y.name;Q[E+1]=v}}return u};
DMq=function(g,u,q,Q,L){return u==q&&Q==L};
pUq=function(g){for(var u=T9,q=hf();q!==g;){var Q=q.nextSibling;u.removeChild(q);YG.deleted.push(q);q=Q}};
hf=function(){return O9?O9.nextSibling:T9.firstChild};
K2=function(){O9=hf()};
fMk=function(g,u){K2();var q;a:{if(q=O9){do{var Q=q,L=g,E=u,y=vCJ(Q,E);if(Jgb(Q,L,y.nameOrCtor,E,y.key))break a}while(u&&(q=q.nextSibling))}q=null}q||(g==="#text"?(g=xG.createTextNode(""),ygb(g,"#text",null)):(q=xG,Q=T9,typeof g==="function"?q=new g:q=(Q=g==="svg"?"http://www.w3.org/2000/svg":g==="math"?"http://www.w3.org/1998/Math/MathML":Q==null||vCJ(Q).nameOrCtor==="foreignObject"?null:Q.namespaceURI)?q.createElementNS(Q,g):q.createElement(g),ygb(q,g,u),g=q),YG.created.push(g),q=g);g=q;if(g!==
O9){if(jMf.indexOf(g)>=0)for(u=T9,q=g.nextSibling,Q=O9;Q!==null&&Q!==g;)L=Q.nextSibling,u.insertBefore(Q,q),Q=L;else T9.insertBefore(g,O9);O9=g}};
MZk=function(g,u){fMk(g,u);T9=O9;O9=null;return T9};
tZF=function(){pUq(null);O9=T9;T9=T9.parentNode};
$MM=function(g,u){u=u===void 0?{}:u;var q=u.matches===void 0?DMq:u.matches;return function(Q,L,E){var y=YG,v=xG,J=jMf,f=BL,t=O9,e=T9,G=Jgb;xG=Q.ownerDocument;YG=new etu(Q);Jgb=q;BL=[];O9=null;var R=T9=Q.parentNode,H,l=GBM.call(Q);if((H=l.nodeType===11||l.nodeType===9?l.activeElement:null)&&Q.contains(H)){for(l=[];H!==R;)l.push(H),H=H.parentNode||(R?H.host:null);R=l}else R=[];jMf=R;try{return g(Q,L,E)}finally{Q=YG,z9&&Q.deleted.length>0&&z9(Q.deleted),xG=v,YG=y,Jgb=G,BL=f,O9=t,T9=e,jMf=J}}};
Rtf=function(g,u,q,Q){n2.push(NVk);n2.push(g);n2.push(u);n2.push(q);n2.push(Q)};
wUF=function(g){fMk("#text",null);var u=O9;var q=vCJ(u);if(q.text!==g){q=q.text=g;for(var Q=1;Q<arguments.length;Q+=1)q=(0,arguments[Q])(q);u.data!==q&&(u.data=q)}};
idZ=function(g,u,q){if(q===!1&&cgf.has(u))rB(g,u,null);else if(u!=="idomKey"&&u!=="skip"&&u!=="skipchildren"&&u!=="children"&&u!=="el")if(u.startsWith("on")){if(u[2]!==":")throw Error("Ub`"+u);if(q===void 0||q===null){var Q;(Q=gB.handleError)==null||Q.call.apply(Q,[gB].concat(_.na(Va(Error("Zb`"+u),g.tagName))));g[u]=void 0}else{var L=u.slice(3);Q=cL();if(L==="jsaction"){q=Array.isArray(q)?q:[q];q=_.N(q);for(var E=q.next();!E.done;E=q.next()){E=E.value;if(typeof E!=="object"||E===null||typeof E.selfReg!==
"function")throw Error("bc`"+u);E.selfReg(0,g,Q?_.dB:function(){})}}else{if(typeof q!=="object"||q===null)throw Error("$b`"+u+"`"+typeof q);
if(typeof q.getFn!=="function")throw Error("ac`"+u+"`"+Object.keys(q));if(q.selfReg)q.selfReg(0,g,L,Q?_.dB:function(){});
else if(Q&&g["on"+L]===void 0){var y=q.getFn(0);g.addEventListener(L,y);_.dB(function(){return void g.removeEventListener(L,y)})}else if(Q||!Hdh.includes(L))g["on"+L]=q.getFn(0)}}}else{if(u.startsWith("data-")&&typeof q==="string")try{q=Agm(q)}catch(v){q="zSoyz"}typeof q!=="function"||g._disposeEffects!=null?((Q=u.startsWith("prop:"))&&(u=u.slice(5)),gB.enableAttributeSanitization&&(Q&&Zdq(g.tagName)||(q=k3q(g.tagName,u,q))),u==="style"?("function"==typeof _.kG&&q instanceof _.kG&&(q=q.toString()),
lMK(g,u,q)):Q?g[u]=q:IMu(g,u,q)):(g._signalProps||(g._signalProps=[]),g._signalValues||(g._signalValues=[]),g._signalProps.push(u))}};
C6K=function(g,u,q){q=(q===void 0?{}:q).isReactive;if(u==null?0:u.el){var Q=u.el,L;(L=Q.onRender)==null||L.call(Q,g);g._disposeRef||(g._disposeRef=function(){var E;(E=Q.onUnmount)==null||E.call(Q);delete g._disposeRef},q&&_.dB(function(){var E;
(E=g._disposeRef)==null||E.call(g)}))}};
Zdq=function(g){return g.length>0&&g.includes("-")&&!bdq.includes(g.toLowerCase())};
dMZ=function(g){return uX(g)&&SR in g};
FLK=function(g){return dMZ(g)?g[SR].flattened:g};
mMT=function(g,u){var q=_.UT.apply(2,arguments),Q;u=(Q=u)!=null?Q:{};Q={};return Q.type=g,Q.props=u,Q.children=q,Q[oY]=!0,Q};
_.U9=function(g){return g.children};
gi=function(g){var u=aMK!==mMT;aMK=g?VZT:mMT;return u};
uL=function(g){return _.zM(g)?"nodeType"in g:!1};
qq=function(){return document.createTextNode("")};
Q1=function(g){g=document.createTextNode(String(g));g._isSignalTextNode=!0;return g};
rgK=function(g){return g!=null&&g.contentKind===LS||g instanceof qa||XUJ(g)};
WLq=function(g){var u=document.createElement("div");if(XUJ(g)&&Num(g))_.fa(u,Num(g));else if(g instanceof qa)_.fa(u,g);else if(g!=null&&g.contentKind===LS){if(g.contentKind!==LS)throw Error("Yb");g=QT(g.toString());_.fa(u,g)}g=_.N(u.childNodes);for(var q=g.next();!q.done;q=g.next())q.value._isSafeOrSanitizedHtmlNode=!0;return u};
E_=function(g){g=typeof g;return g==="string"||g==="number"||g==="boolean"};
TVf=function(g){return g instanceof XV||xV(g)||g instanceof ex||"function"==typeof _.kG&&g instanceof _.kG};
htT=function(g,u){var q=g.parentElement;if(!q)return u;q.replaceChild(u,g);return u};
YAk=function(g,u){var q=g[0].parentElement;if(q)if(g[0].previousSibling||g[g.length-1].nextSibling){q.insertBefore(u,g[0]);for(var Q=g.length-1;Q>=0;Q--)q.removeChild(g[Q])}else q.textContent="",q.appendChild(u);return u};
Odk=function(g,u){if(g[0].parentElement)for(var q=g[0].parentElement,Q=u.length,L=g.length,E=Q,y=0,v=0,J=g[L-1].nextSibling,f=null;y<L||v<E;)if(g[y]===u[v])y++,v++;else{for(;g[L-1]===u[E-1];)L--,E--;if(L===y)for(var t=E<Q?v?u[v-1].nextSibling:u[E-v]:J;v<E;){var e=u[v++];q.insertBefore(e,t)}else if(E===v)for(;y<L;)t=g[y],f&&f.has(t)||q.removeChild(t),y++;else if(g[y]===u[E-1]&&u[v]===g[L-1])t=g[--L].nextSibling,q.insertBefore(u[v++],g[y++].nextSibling),q.insertBefore(u[--E],t),g[L]=u[E];else{if(!f)for(f=
new Map,t=v;t<E;)f.set(u[t],t++);t=f.get(g[y]);if(t==null)q.removeChild(g[y]),y++;else if(v<t&&t<E){e=y;for(var G=1,R=void 0;++e<L&&e<E&&(R=f.get(g[e]))!=null&&R===t+G;)G++;if(G>t-v)for(e=g[y];v<t;)q.insertBefore(u[v++],e);else q.replaceChild(u[v++],g[y++])}else y++}}return u};
xMK=function(g){if(Array.isArray(g)){if(g.length>1)throw Error("lc`"+g.length+"`"+g.map(KLS).join(", "));g=g[0]}if(g==null)return null;if(!(g instanceof _.vx)){var u,q;if((u=window)==null?0:(q=u.trustedTypes)==null?0:q.isScript(g))throw Error("kc");if(String(g).trim().length===0)return null;throw Error("mc`"+KLS(g));}return g};
BVK=function(g,u){u=xMK(u);u!==null&&_.JB(g,u)};
zth=function(g){if(Array.isArray(g)){if(g.length>1)throw Error("nc`"+g.length+"`"+g.map(KLS).join(", "));g=g[0]}if(g==null)return null;if(!(g instanceof ex)){if(String(g).trim().length===0)return null;throw Error("oc`"+KLS(g));}return g};
nCb=function(g,u){u=zth(u);u!==null&&(g.textContent=Fsf(u))};
KLS=function(g){return"("+typeof g+") "+(g!=null&&typeof g==="object"?g.constructor.name:typeof g)+" "+g};
kBf=function(){};
s_=function(g,u){u=u===void 0?{}:u;var q=SAk(),Q=!0,L,E=!!gB.legacyTriggerSoyRendererEvents;E&&(L=iBJ());_.C2(function(){var y=!Q&&u.isControlFlowComponent&&E,v=y?q[SR].flattened[0].parentElement:void 0;Q=!1;Pk.setUp();u.isControlFlowComponent&&lX++;var J=q[0],f=q[SR].flattened,t=gi(!0);try{var e=g(),G=oCu(J,e,q);Array.isArray(G)||(q[SR].flattened=[G]);var R=q[SR].flattened;if(f&&(!Array.isArray(f)||f.length!==0)){var H=Array.isArray(f)?f[0]:f,l=H[Nq],d=H._disposeEffects;H._disposeEffects=void 0;
H=Array.isArray(R)?R[0]:R;H[Nq]=l;H[Nq]&&(H[Nq].numNodes=H===R?1:R.length);H._disposeEffects=d}q[0]=G;u.isControlFlowComponent&&iX(!1)}catch(F){throw u.isControlFlowComponent&&iX(!0),F;}finally{gi(t),Pk.tearDown()}y&&(y=L,y!=null||(y=_.wvf(document).getAppContext()),y.get(UMb).JSC$30109_getEventTarget().dispatchEvent(new gJk(u1q,v,LS)))},u.debugName);
return q};
oCu=function(g,u,q){for(;typeof u==="function";)u=u();if(u!=null&&u[oY]){var Q,L,E;(E=gB.handleError)==null||E.call.apply(E,[gB].concat(_.na(Va(Error("pc`"+((Q=u.type)==null?void 0:Q.TAG_NAME)),(L=u.type)==null?void 0:L.TAG_NAME))))}if(g==null)return u==null?qq():E_(u)?Q1(u):TVf(u)?Q1(u.toString()):uL(u)?u:u.length===0?qq():qgb(u,q);if(uL(g)){if(u==null)return htT(g,qq());if(E_(u))return Qrf(g,u);if(TVf(u))return Qrf(g,u.toString());if(uL(u))return htT(g,u);if(u.length===0)return htT(g,qq());u=qgb(u,
q);Odk([g],q[SR].flattened);return u}g=DY(g);if(u==null)return YAk(g,qq());if(E_(u))return YAk(g,Q1(u));if(TVf(u))return YAk(g,Q1(u.toString()));if(uL(u))return Odk(g,[u])[0];if(u.length===0)return YAk(g,qq());u=qgb(u,q);Odk(g,q[SR].flattened);return u};
Qrf=function(g,u){g.nodeType===Node.TEXT_NODE?g.textContent!==String(u)&&(g.textContent=String(u)):g=htT(g,Q1(u));return g};
DY=function(g,u,q){return Lgb(g,u!=null?u:[],q===void 0?!1:q)};
qgb=function(g,u){var q=DY(g,void 0,!0);if(q.length===0)return qq();u[SR].flattened=q;return g};
Lgb=function(g,u,q,Q,L){u=u===void 0?[]:u;q=q===void 0?!1:q;L=L===void 0?-1:L;if(g==null)return u;if(g instanceof pS){var E=g.render();return Lgb(E,u,q,Q,L)}if(uL(u)&&u.nodeType===Node.ELEMENT_NODE)switch(u.tagName){case "SCRIPT":BVK(u,g);return;case "STYLE":nCb(u,g);return}E_(g)&&(g=Q1(g),Q&&q&&(Q[L]=g));if(rgK(g)){q=WLq(g);q=Array.from(q.childNodes);q=_.N(q);for(E=q.next();!E.done;E=q.next())EJF(u,E.value);return u}TVf(g)&&(g=Q1(g.toString()),Q&&q&&(Q[L]=g));if(uL(g))return EJF(u,g);if(Array.isArray(g)){for(E=
0;E<g.length;E++)Lgb(g[E],u,q,g,E);return u}if(typeof g==="function"){E=s_(function(){var v=g();return v!=null&&!E_(v)&&rgK(v)?(v=WLq(v),Array.from(v.childNodes)):v},{debugName:"qmF2ne",
debugFn:g})[0];if(Array.isArray(E)){q=_.N(E);for(E=q.next();!E.done;E=q.next())EJF(u,E.value);return u}Q&&q&&(Q[L]=E);return EJF(u,E)}if(g!=null&&g[oY]){Q=g;L=gi(!0);var y=aMK;try{E=y.apply(null,[Q.type,Q.props].concat(_.na(Q.children)))}finally{gi(L)}return Lgb(E,u,q)}(y=gB.handleError)==null||y.call.apply(y,[gB].concat(_.na(Va(Error("qc")))));return u};
SAk=function(g){var u={};u=Object.assign([],(u[SR]={flattened:[]},u));if(!g)return u;u[0]=qgb(g,u);return u};
EJF=function(g,u){Array.isArray(g)?g.push(u):g.appendChild(u);return g};
JM=function(g){if(!gB.enableLazyTsx)return g;if(Array.isArray(g)){for(var u=0;u<g.length;u++)g[u]=JM(g[u]);return g}return g instanceof pS?(g=g.render(),JM(g)):g};
Nwq=function(g,u){var q,Q,L=sKT(g),E=function(R){Q=R;R=gi(!0);var H=Qa(j8);oOh("render",L);try{q=JM(g(u))}finally{UTb("render",L),Qa(H),gi(R)}};
E=gB.enableContextPerComponent?QoF(E,L):FP(E,gB.alwaysTrackContexts||!!nh);E1q(Q);if(!u.renderedFromIdom){var y=kF(Q);try{return P1h(g,u,q),q}finally{kF(y)}}!dMZ(q)&&Array.isArray(q)&&(q=SAk(q));var v=FLK(q);y=Array.isArray(v)?v[0]:v;var J=!1;if(y){var f,t=(f=u==null?void 0:u.idomKey)!=null?f:g;f=v!==y;y._disposeEffects=E;var e=y[Nq]||{},G=dMZ(q)?q:e.sourceDynamicRange;Object.assign(e,{key:t,numNodes:f?v.length:1,context:Q,higherOrder:!!y[Nq],sourceDynamicRange:G});y[Nq]=e}else J=!0;(function(){var R=
kF(Q);try{P1h(g,u,v)}finally{kF(R)}})();
J&&E();return q};
sru=function(g){var u={},q;for(q in g)u={prev$jscomp$24:void 0,next$jscomp$33:void 0},u.prev$jscomp$24=fS[q],u.next$jscomp$33=g[q],fS[q]=function(Q){return function(){var L=_.UT.apply(0,arguments);Q.prev$jscomp$24.apply(null,_.na(L));Q.next$jscomp$33.apply(null,_.na(L))}}(u)};
yJJ=function(){if(cL())throw Error("rc");return Mq};
vJm=function(g,u){if(!g.__unmounted&&u){g.__unmounted=!0;try{g.didUnmount()}catch(L){var q,Q;(Q=gB.handleError)==null||Q.call.apply(Q,[gB].concat(_.na(Va(L,(q=g.__type)==null?void 0:q.TAG_NAME))))}fS.didUnmount(g);g.el=null;u.__instance&&delete u.__instance}};
pXq=function(g,u,q){g._signalProps!=null&&g._disposeEffects==null&&((q===void 0?0:q)?g._disposeEffects=FP(function(){return void DKq(g,u)},gB.alwaysTrackContexts||!!nh):DKq(g,u))};
DKq=function(g,u){_.C2(function(){for(var q=g._signalProps,Q=g._signalValues,L=0;L<q.length;L++){var E=q[L],y=u[E]();Q[L]!==y&&(Q[L]=y,idZ(g,E,y))}},"e3YVbb")};
JJk=function(g,u,q){var Q,L=[];g._disposeEffects=FP(function(){_.C2(function(){var E=q();if(E===null||E===void 0)E="";if(E_(E)||E===null)Q!=null||(Q=document.createTextNode("")),Q.parentNode!==g&&(Q._isSignalTextNode=!0,g.insertBefore(Q,u)),Q.textContent=String(E);else if(rgK(E)){for(var y=L.length>0?L[L.length-1].nextSibling:u,v=_.N(L),J=v.next();!J.done;J=v.next())g.removeChild(J.value);E=WLq(E);L=Array.from(E.childNodes);E=_.N(L);for(v=E.next();!v.done;v=E.next())g.insertBefore(v.value,y)}else throw J=
(v=(y=RY)==null?void 0:y.name)!=null?v:"unknown",Error("gc`"+J+"`"+typeof E);},"VvDgC")},gB.alwaysTrackContexts||!!nh)};
M_b=function(g,u){var q=_.UT.apply(2,arguments);u!=null||(u={});return!gB.enableLazyTsx||RY!=null&&!cL()?jru(g,u,q):new f4u(g,u,q)};
jru=function(g,u,q){if(g===_.U9)return q;if(typeof g==="function")return RY&&!cL()&&(u.renderedFromIdom=!0),yjq(g,function(){q.length>0&&(u.children=q.length===1?q[0]:q);if(g.componentType===wB){var E;QoF(function(){var y=u;if(g.componentType!==wB)E=!1;else{y||(y={});var v=new tM(y,g),J=Qa(j8);try{var f=v.render(y)}finally{Qa(J)}f instanceof HTMLElement?(f.__instance=v,v.el=f,v.__type=g,g.TAG_NAME=f.tagName.toLowerCase(),fS.didPatch(v),E=f):E=f}},g.name);
if(E)return E}return Nwq(g,u)},u.debugInstance);
var Q=t_f(g,u),L;for(L in u)idZ(Q,L,u[L]);pXq(Q,u);DY(q,Q);C6K(Q,u,{isReactive:!0});efT(Q,u);return Q};
t_f=function(g,u){g=(GgF.has(g.toLowerCase())?0:$Ku.has(g.startsWith("svg:")?g.replace("svg:",""):g))?document.createElementNS("http://www.w3.org/2000/svg",g.startsWith("svg:")?g.replace("svg:",""):g):Rfm(g,u)||document.createElement(g);g[wXF]=!0;return g};
cJS=function(g){if(g){var u;(u=g._disposeRef)==null||u.call(g);var q;(q=g._disposeEffects)==null||q.call(g);g.__instance&&g.__instance instanceof e8&&(u=g.__instance,vJm(u,g),u instanceof tM&&u.disposeEffects());for(u=0;u<g.childNodes.length;u++)cJS(g.childNodes[u])}};
AJT=function(g){HVh.push(g)===1&&requestAnimationFrame(function(){setTimeout(function(){var u=[].concat(_.na(HVh));HVh=[];u=_.N(u);for(var q=u.next();!q.done;q=u.next()){q=q.value;try{for(var Q=0;Q<q.length;Q++)cJS(q[Q])}catch(L){Q=q=void 0,(Q=(q=gB).handleError)==null||Q.call.apply(Q,[q].concat(_.na(Va(L))))}}})})};
_.p=function(g,u){return aMK.apply(null,[g,u].concat(_.na(_.UT.apply(2,arguments))))};
_.Gv=function(g){return g};
_.$v=function(g){return{isDefault:!0,children:g.children}};
_.M=function(g){var u=g.cond;if(u===void 0)return g.else&&g.else();var q=_.G9(function(){return!!u()},void 0,"JHVi8"),Q=function(){var E=u();
if(!E){var y;(y=gB.handleError)==null||y.call.apply(y,[gB].concat(_.na(Va(ZVT.nonNullableCondIsNull()))))}return E},L;
return s_(function(){var E=q(),y;FP(function(){var v=Qa(j8);try{y=JM(E?g.then(Q):g.else&&g.else())}finally{Qa(v)}},!0);
return y},{debugName:(L=g.debugInstance)!=null?L:"RlDudd",
debugFn:g.then,isControlFlowComponent:!0})};
l4q=function(g){return _.M(g)};
_.R4=function(g){return g.keyBy==="INDEX"?I4J(g):iVu(g)};
C1S=function(g){g=_.N(g);for(var u=g.next();!u.done;u=g.next()){var q=void 0;(q=u.value)==null||q()}};
iVu=function(g){var u=g.keyBy===void 0||g.keyBy==="REFERENCE",q=u?function(e){return e}:g.keyBy,Q=[],L=[],E=[],y=[],v=[],J=[],f=!0;
_.dB(function(){C1S(y)});
var t;return s_(function(){var e=bV3(g),G=e.length;if(G===0){if(Q.length===0&&!f)return E;C1S(y);Q=e;L=[];for(e=0;e<Q.length;e++)L.push(q(Q[e]));E=[];y=[];v=[];J=[];g.fallback&&(y[0]=dKM(function(){E[0]=JM(g.fallback())}));
f=!1;return E}for(var R=new FgM,H=Q.length-1;H>=0;H--)R.push(L[H],H);H=Array(G);for(var l=Array(G),d=Array(G),F=Array(G),V=Array(u?0:G),z={i$jscomp$453:0};z.i$jscomp$453<G;z={i$jscomp$453:z.i$jscomp$453,item$jscomp$104:void 0,key$jscomp$565:void 0},z.i$jscomp$453++){z.item$jscomp$104=e[z.i$jscomp$453];z.key$jscomp$565=q(z.item$jscomp$104);var O=R.pop(z.key$jscomp$565);O!=null?(d[z.i$jscomp$453]=E[O],l[z.i$jscomp$453]=L[O],H[z.i$jscomp$453]=y[O],F[z.i$jscomp$453]=v[O],u||(V[z.i$jscomp$453]=J[O]),$G(function(W){return function(){F[W.i$jscomp$453](W.i$jscomp$453);
if(!u)V[W.i$jscomp$453](W.item$jscomp$104)}}(z)),delete y[O]):H[z.i$jscomp$453]=dKM(function(W){return function(){var x=_.N(_.jR(W.i$jscomp$453,void 0,"Fqk1zd")),k=x.next().value;
x=x.next().value;F[W.i$jscomp$453]=x;l[W.i$jscomp$453]=W.key$jscomp$565;if(u)d[W.i$jscomp$453]=JM(g.children(W.item$jscomp$104,k));else{var LZ=_.N(_.jR(W.item$jscomp$104,void 0,"GBj5de"));x=LZ.next().value;LZ=LZ.next().value;V[W.i$jscomp$453]=LZ;d[W.i$jscomp$453]=JM(g.children(x,k))}}}(z))}C1S(y);
Q=e;L=l;E=d;y=H;v=F;J=V;f=!1;return d},{debugName:(t=g.debugInstance)!=null?t:"nsTGHd",
debugFn:g.each,isControlFlowComponent:!0})};
I4J=function(g){var u=[],q=[],Q=[],L=[],E=!1;_.dB(function(){C1S(L)});
var y;return s_(function(){var v=bV3(g);E&&v.length>0&&(L.pop()(),u.pop(),E=!1);for(var J=Array(v.length),f={i$jscomp$454:0};f.i$jscomp$454<v.length;f={i$jscomp$454:f.i$jscomp$454},f.i$jscomp$454++)if(f.i$jscomp$454<u.length)u[f.i$jscomp$454]!==v[f.i$jscomp$454]&&($G(function(e){return function(){return void q[e.i$jscomp$454](v[e.i$jscomp$454])}}(f)),u[f.i$jscomp$454]=v[f.i$jscomp$454]),J[f.i$jscomp$454]=Q[f.i$jscomp$454];
else{var t=dKM(function(e){return function(){u[e.i$jscomp$454]=v[e.i$jscomp$454];var G=_.N(_.jR(v[e.i$jscomp$454],void 0,"JMMLmd")),R=G.next().value;G=G.next().value;q[e.i$jscomp$454]=G;J[e.i$jscomp$454]=JM(g.children(R,e.i$jscomp$454))}}(f));
L[f.i$jscomp$454]=t}for(;u.length>v.length;)u.pop(),L.pop()(),q.pop();v.length===0&&!E&&g.fallback&&(f=dKM(function(){J[0]=JM(g.fallback())}),L[0]=f,E=!0);
return Q=J},{debugName:(y=g.debugInstance)!=null?y:"nsTGHd",
isControlFlowComponent:!0})};
bV3=function(g){g=g.each();return Array.isArray(g)?g:Array.from(g)};
dKM=function(g){var u=nh;return FP(function(q){var Q=Qa(j8);try{q.parent=u,g(q)}finally{Qa(Q)}},!1)};
_.wi=function(g){var u=mKF(g),q=_.G9(function(){return a4q(u)},void 0,"F1PF4"),Q;
return s_(function(){var L=q(),E;FP(function(){var y=Qa(j8);try{E=JM(L())}finally{Qa(y)}});
return E},{debugName:(Q=g.debugInstance)!=null?Q:"vI1rtf",
isControlFlowComponent:!0})};
mKF=function(g){g=g.children;return Array.isArray(g)?g:[g]};
V_u=function(g){var u=g.props;g=g.getChildren()[0];return u.when?{when:u.when,children:g}:{isDefault:!0,children:g}};
a4q=function(g){var u=function(){return null};
g=_.N(g);for(var q=g.next();!q.done;q=g.next())if(q=q.value,q!=null&&q[oY]&&(q=q.type===_.$v?{isDefault:!0,children:q.children[0]}:{when:q.props.when,children:q.children[0]}),q instanceof pS&&(q=V_u(q)),q.isDefault)u=q.children;else if(q.when())return q.children;return u};
XXf=function(g){var u=null,q,Q={get value(){var E,y;(y=(E=L).validateGetValue)==null||y.call(E);return L.__value},set value(E){var y,v;(v=(y=L).validateSetValue)==null||v.call(y,E);L.__value=E;L.__hasBeenSet=!0}},L=(Q.__value=null,Q.__hasBeenSet=!1,Q.__hasErrored=!1,Q.onRender=function(E){if(q&&E!==q){q._disposeRef=void 0;var y;(y=u)==null||y()}q=E;u=g(E)||null},Q.onUnmount=function(){var E;
(E=u)==null||E();u=L.value=null},Q[bBh]=!0,Q);
return L};
ck=function(g){return typeof g==="symbol"};
Wgu=function(g){var u=yJJ();if(u==null)throw rJM.PRIMITIVE_INVALID_HOOK_CALL();var q=u.hookCounter++;u.hooks||(u.hooks=[]);var Q=u.hooks;Q[q]||(Q[q]={key:g,host:u});if(g!==Q[q].key){if(u.__type){var L;g=(L=u.__type)==null?void 0:L.name}else g=u instanceof tM?sKT(u.functionComponent):"<"+u.el.tagName.toLowerCase()+">";throw rJM.OUT_OF_ORDER_HOOK_CALL(g);}return Q[q]};
Tw3=function(g,u){return!g||g.length!==(u==null?void 0:u.length)||g.some(function(q,Q){return q!==u[Q]})};
hfm=function(g,u){if(cL())return g();var q=Wgu("useMemoInternal");Tw3(q.deps,u)&&(q.deps=u,q.value=g());return q.value};
Ygq=function(g,u){return hfm(g,u)};
_.Hk=function(g,u){return OVh(g,!1,u)};
_.AM=function(g,u){return OVh(g,!0,u)};
OVh=function(g,u,q){return cL()?Kgh(g,u,q):xKk(g,u,q)};
xKk=function(g,u,q){return hfm(function(){return Kgh(g,u,q)},[])};
Kgh=function(g,u,q){var Q=XXf(function(L){Q.value=L;var E=function(){var y=Qa(null);try{return q==null?void 0:q(L)}finally{Qa(y)}}();
return function(){E==null||E()}});
Q.__expectedTagName=g;Q.__optional=u;Q.isIdom=!cL();return Q};
Bwm=function(g,u){var q;u=FP(function(){var Q=gi(!0);lX++;try{q=DY(g()),iX(!1)}catch(L){throw iX(!0),L;}finally{gi(Q)}},u===void 0?!1:u);
return[q,u]};
_.ZY=function(g,u,q){q!=null||(q={});q=q.appContext;var Q=!!gB.legacyTriggerSoyRendererEvents;Pk.setUp();try{var L=zfT(g,u,q);Q&&(u=q,u!=null||(u=_.wvf(document).getAppContext()),u.get(UMb).JSC$30109_getEventTarget().dispatchEvent(new gJk(nJT,g,LS)));Pk.log(g);return L}finally{Pk.tearDown()}};
zfT=function(g,u,q){var Q=Af(function(){var L=Qa(j8);try{return FP(function(){var E=_.wvf(_.fH(g)),y;var v=hM3({rootElement:{value:g},appContext:q||(E==null?void 0:(y=E.getOptionalAppContext)==null?void 0:y.call(E)),dispatcher:E});E=kF(v);v=gi(!0);lX++;try{DY(u(),g),iX(!1)}catch(J){throw iX(!0),J;}finally{gi(v),kF(E)}},!1)}catch(E){throw gB.enableContextBasedComponentStacks&&HL(E),E;
}finally{Qa(L)}});
g[kgM]=!0;return function(){g.textContent="";Q();g[kgM]=!1}};
_.lL=function(g){if(CPb(qQ)){var u;(u=gB.handleError)==null||u.call.apply(u,[gB].concat(_.na(Va(Error("fc")))))}var q=nh,Q=RY;G3m({onInitType:t7J,run:function(){if(q&&!q.isDisposed){var L=kF(q);try{Af(function(){return void g()},Q)}catch(E){throw gB.enableContextBasedComponentStacks&&HL(E),E;
}finally{kF(L)}}}})};
UKh=function(g){var u=A6q(2),q=new Set;_.dB(function(){return void q.forEach(function(Q){return void Q()})});
return function(Q){var L=kF(u);try{var E=Sgu(oJK(g),Q);q.add(E);return function(){E();q.delete(E)}}finally{kF(L)}}};
_.g6K=function(g){var u=g.children;var q=g.root;_.lL(function(){var Q=UKh(q)(u);_.dB(Q)});
return document.createTextNode("")};
Sgu=function(g,u){var q=uSZ(g);(g=dTh())&&GXK(q,g);Pk.setUp();u=_.N(Bwm(u,!0));g=u.next().value;var Q=u.next().value;u=_.N(g);for(g=u.next();!g.done;g=u.next())q.appendChild(g.value);Pk.log(q);Pk.tearDown();return function(){Q();q.remove()}};
oJK=function(g){if(typeof g==="string")return g=document.querySelector(g),_.sRK(g),g;if(uL(g)&&g.nodeType===Node.ELEMENT_NODE)return g;if(!g.__value&&!g.__optional){var u=rJM.USE_ELEMENT_NOT_ASSIGNED(g.__expectedTagName);g.__hasErrored=!0;throw u;}return g.value};
uSZ=function(g){var u=document.createElementNS(g.namespaceURI,g.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return g.appendChild(u)};
qRq=function(g,u){var q=Wgu("onChange"),Q=yJJ();Tw3(q.deps,u)&&(q.deps=u,q.pendingEffect=g,Q.__syncEffects||(Q.__syncEffects=[]),Q.__syncEffects.push(q))};
QpK=function(g,u){qRq(function(){return _.D6(g)},u)};
_.I4=function(g){cL()?_.lL(function(){_.D6(g)}):qRq(function(){return _.D6(g)},[])};
E6T=function(g){var u=[].concat(_.na(g));g.length=0;g=_.N(u);for(u=g.next();!u.done;u=g.next()){u=u.value;L7T(u);var q=u.pendingEffect;u.pendingEffect=null;if(q=q==null?void 0:q())u.pendingCleanup=q}};
L7T=function(g){var u=g.pendingCleanup;g.pendingCleanup=null;u==null||u()};
PHq=function(g){return hfm(function(){return{value:g}},[])};
_.iL=function(g,u){if(!g)return null;g=Object.keys(g);g=_.N(g);for(var q=g.next();!q.done;q=g.next()){q=q.value;var Q=q.toLowerCase();if(Q.indexOf(u,Q.length-u.length)>-1)return q}return null};
_.di=function(){var g=arguments,u=_.bL;g.length>1?u[g[0]]=g[1]:g.length===1&&Object.assign(u,g[0])};
_.FR=function(g,u){return g in _.bL?_.bL[g]:u};
_.mW=function(g,u){return!!_.FR(g,u)};
NFK=function(g){var u=_.bL.EXPERIMENT_FLAGS;return u?u[g]:void 0};
ytf=function(g){spK.forEach(function(u){return u(g)})};
_.V1=function(g){return g&&window.yterr?function(){try{return g.apply(this,arguments)}catch(u){_.a4(u)}}:g};
_.a4=function(g){var u=_.ri("yt.logging.errors.log");u?u(g,"ERROR",void 0,void 0,void 0,void 0,void 0):(u=_.FR("ERRORS",[]),u.push([g,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.di("ERRORS",u));ytf(g)};
_.Wk=function(g,u,q,Q,L){var E=_.ri("yt.logging.errors.log");E?E(g,"WARNING",u,q,Q,void 0,L):(E=_.FR("ERRORS",[]),E.push([g,"WARNING",u,q,Q,void 0,L]),_.di("ERRORS",E))};
DfJ=function(g,u){u=g.split(u);for(var q={},Q=0,L=u.length;Q<L;Q++){var E=u[Q].split("=");if(E.length===1&&E[0]||E.length===2)try{var y=v6J(E[0]||""),v=v6J(E[1]||"");if(y in q){var J=q[y];Array.isArray(J)?_.BS(J,v):q[y]=[J,v]}else q[y]=v}catch(G){var f=G,t=E[0],e=String(DfJ);f.args=[{key:t,value:E[1],query:g,method:pCM===e?"unchanged":e}];Jtq.hasOwnProperty(t)||_.Wk(f)}}return q};
jpT=function(g){var u=[];_.pH.forEach(g,function(q,Q){var L=_.nO(Q);q=Array.isArray(q)?q:[q];_.Tv(q,function(E){E==""?u.push(L):u.push(L+"="+_.nO(E))})});
return u.join("&")};
_.hM=function(g){g.charAt(0)==="?"&&(g=g.substring(1));return DfJ(g,"&")};
_.Yv=function(g){return g.indexOf("?")!==-1?(g=(g||"").split("#")[0],g=g.split("?",2),_.hM(g.length>1?g[1]:g[0])):{}};
_.O_=function(g,u){return f0F(g,u||{},!0)};
MFh=function(g,u){return f0F(g,u||{},!1)};
f0F=function(g,u,q){var Q=g.split("#",2);g=Q[0];Q=Q.length>1?"#"+Q[1]:"";var L=g.split("?",2);g=L[0];L=_.hM(L[1]||"");for(var E in u)if(q||!_.pH.containsKey(L,E))L[E]=u[E];return _.Sg(g,L)+Q};
KS=function(g){if(!u)var u=window.location.href;var q=_.Wq(g)[1]||null,Q=_.h1(g);return q&&Q?Bq(g,u):Q?_.h1(u)===Q&&(Number(_.Wq(u)[4]||null)||null)===(Number(_.Wq(g)[4]||null)||null):!0};
_.eNZ=function(g){g=tFh(g);return g===null?!1:g[0]==="com"&&g[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
tFh=function(g){g=_.h1(g);return g!==null?g.split(".").reverse():null};
v6J=function(g){return g&&g.match(Gzf)?g:zW(g)};
_.xv=function(g){return new $fT(g)};
_.Bk=function(){RNM||(RNM=new wCT);return RNM};
HWZ=function(){var g=ctS;return function(){var u=_.Bk();if(!u.resolve(_.xv(g))){var q={};u.addProvider((q.provide=g,q.useClass=g,q[zv]=void 0,q))}return u.resolve(g)}};
_.nS=function(g,u){var q,Q;_.D(function(L){q=_.Bk();return(Q=q.resolve(_.xv(g)))?(u(Q),L.return(Promise.resolve(Q))):L.return(q.resolve(new AtF(g)).then(function(E){u(E);return E}))})};
_.w=function(g){g=kv(g);return typeof g==="string"&&g==="false"?!1:!!g};
_.S8=function(g,u){g=kv(g);return g===void 0&&u!==void 0?u:Number(g||0)};
ZWJ=function(g){g=kv(g);return Array.isArray(g)?_.Jk(g,function(u){return Number(u||0)}):[Number(g||0)]};
_.o4=function(g){g=kv(g);return g!==void 0?String(g):""};
_.U_=function(g){g=kv(g);return Array.isArray(g)?_.Jk(g,function(u){return String(u||"")}):[String(g||"")]};
l0f=function(){return _.FR("EXPERIMENTS_TOKEN","")};
kv=function(g){if(g!==I0K)return _.FR("EXPERIMENT_FLAGS",{})[g]};
iWJ=function(){for(var g=[],u=_.FR("EXPERIMENTS_FORCED_FLAGS",{}),q=_.N(Object.keys(u)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,g.push({key:Q,value:String(u[Q])});q=_.FR("EXPERIMENT_FLAGS",{});Q=_.N(Object.keys(q));for(var L=Q.next();!L.done;L=Q.next())L=L.value,L.startsWith("force_")&&u[L]===void 0&&g.push({key:L,value:String(q[L])});return g};
bWS=function(){if(!CHf)return null;var g=CHf();return"open"in g?g:null};
_.dfu=function(g){switch(_.gu(g)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.gu=function(g){return g&&"status"in g?g.status:-1};
_.uS=function(g,u){typeof g==="function"&&(g=_.V1(g));return window.setTimeout(g,u)};
_.qu=function(g,u){typeof g==="function"&&(g=_.V1(g));return window.setInterval(g,u)};
_.L0=function(g){window.clearTimeout(g)};
mfJ=function(g){g=_.Yv(g);for(var u=_.N(F73),q=u.next();!q.done;q=u.next())if(g[q.value]!==void 0)return!0;return!1};
XCJ=function(g,u,q,Q,L,E,y,v,J){q=q===void 0?"GET":q;Q=Q===void 0?"":Q;v=v===void 0?!1:v;var f=bWS();if(!f)return null;var t=function(){(f&&"readyState"in f?f.readyState:0)===4&&u&&_.V1(u)(f)};
"onloadend"in f?f.addEventListener("loadend",t,!1):f.onreadystatechange=t;_.w("debug_forward_web_query_parameters")&&(g=a0b(g,window.location.search));f.open(q,g,!0);E&&(f.responseType=E);y&&(f.withCredentials=!0);q=q==="POST"&&(window.FormData===void 0||!(Q instanceof FormData));if(L=VFJ(g,L))for(var e in L)f.setRequestHeader(e,L[e]),"content-type"===e.toLowerCase()&&(q=!1);q&&f.setRequestHeader("Content-Type","application/x-www-form-urlencoded");J&&"onprogress"in f&&(f.onprogress=function(){J(f.responseText)});
if(v&&"setAttributionReporting"in XMLHttpRequest.prototype){g={eventSourceEligible:!0,triggerEligible:!1};try{f.setAttributionReporting(g)}catch(G){_.Wk(G)}}f.send(Q);return f};
VFJ=function(g,u){u=u===void 0?{}:u;var q=KS(g),Q=_.FR("INNERTUBE_CLIENT_NAME"),L=_.w("web_ajax_ignore_global_headers_if_set"),E;for(E in rtK){var y=_.FR(rtK[E]),v=E==="X-Goog-AuthUser"||E==="X-Goog-PageId";E!=="X-Goog-Visitor-Id"||y||(y=_.FR("VISITOR_DATA"));var J;if(!(J=!y)){if(!(J=q||(_.h1(g)?!1:!0))){J=g;var f;if(f=_.w("add_auth_headers_to_remarketing_google_dot_com_ping")&&E==="Authorization"&&(Q==="TVHTML5"||Q==="TVHTML5_UNPLUGGED"||Q==="TVHTML5_SIMPLY"))f=tFh(J),f=f===null?!1:f[1]==="google"?
!0:f[2]==="google"?f[0]==="au"&&f[1]==="com"?!0:f[0]==="uk"&&f[1]==="co"?!0:!1:!1;f&&(J=_.YB(J)||"",J=J.split("/"),J="/"+(J.length>1?J[1]:""),f=J==="/pagead");J=f?!0:!1}J=!J}J||L&&u[E]!==void 0||Q==="TVHTML5_UNPLUGGED"&&v||(u[E]=y)}"X-Goog-EOM-Visitor-Id"in u&&"X-Goog-Visitor-Id"in u&&delete u["X-Goog-Visitor-Id"];if(q||!_.h1(g))u["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(q||!_.h1(g)){try{var t=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(e){}t&&(u["X-YouTube-Time-Zone"]=
t)}document.location.hostname.endsWith("youtubeeducation.com")||!q&&_.h1(g)||(u["X-YouTube-Ad-Signals"]=jpT(W7K()));return u};
_.TFq=function(g,u){var q=_.h1(g);_.w("debug_handle_relative_url_for_query_forward_killswitch")||!q&&KS(g)&&(q=document.location.hostname);var Q=_.YB(g);Q=(q=q&&(q.endsWith("youtube.com")||q.endsWith("youtube-nocookie.com")))&&Q&&Q.startsWith("/api/");if(!q||Q)return g;var L=_.hM(u),E={};_.Tv(F73,function(y){L[y]&&(E[y]=L[y])});
return MFh(g,E)};
hNZ=function(g,u){u.method="POST";u.postParams||(u.postParams={});return _.Ek(g,u)};
YRb=function(g,u){var q=_.FR("XSRF_FIELD_NAME"),Q;u.headers&&(Q=u.headers["Content-Type"]);return!u.excludeXsrf&&(!_.h1(g)||u.withCredentials||_.h1(g)===document.location.hostname)&&u.method==="POST"&&(!Q||Q==="application/x-www-form-urlencoded")&&!(u.postParams&&u.postParams[q])};
_.Ek=function(g,u){var q=u.format||"JSON";g=OWZ(g,u);var Q=K73(g,u),L=!1,E=xfJ(g,function(J){if(!L){L=!0;v&&_.L0(v);var f=_.dfu(J),t=null,e=400<=J.status&&J.status<500,G=500<=J.status&&J.status<600;if(f||e||G)t=BFZ(g,q,J,u.convertToSafeHtml);f&&(f=zNM(q,J,t));t=t||{};e=u.context||_.Qq;f?u.onSuccess&&u.onSuccess.call(e,J,t):u.onError&&u.onError.call(e,J,t);u.onFinish&&u.onFinish.call(e,J,t)}},u.method,Q,u.headers,u.responseType,u.withCredentials,!1,u.onProgress);
Q=u.timeout||0;if(u.onTimeout&&Q>0){var y=u.onTimeout;var v=_.uS(function(){L||(L=!0,E.abort(),_.L0(v),y.call(u.context||_.Qq,E))},Q)}return E};
OWZ=function(g,u){u.includeDomain&&(g=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+g);var q=_.FR("XSRF_FIELD_NAME");if(u=u.urlParams)u[q]&&delete u[q],g=_.O_(g,u);return g};
K73=function(g,u){var q=_.FR("XSRF_FIELD_NAME"),Q=_.FR("XSRF_TOKEN"),L=u.postBody||"",E=u.postParams;YRb(g,u)&&(E||(E={}),E[q]=Q);(_.w("ajax_parse_query_data_only_when_filled")&&E&&Object.keys(E).length>0||E)&&typeof L==="string"&&(L=_.hM(L),_.pH.extend(L,E),L=u.postBodyFormat&&u.postBodyFormat==="JSON"?JSON.stringify(L):_.kB(L));E=L||E&&!_.pH.isEmpty(E);!n6f&&E&&u.method!=="POST"&&(n6f=!0,_.a4(Error("Mc")));return L};
BFZ=function(g,u,q,Q){var L=null;switch(u){case "JSON":try{var E=q.responseText}catch(y){throw Q=Error("Nc"),Q.params=g,_.Wk(Q),y;}g=q.getResponseHeader("Content-Type")||"";E&&g.indexOf("json")>=0&&(E.substring(0,5)===")]}'\n"&&(E=E.substring(5)),L=JSON.parse(E));break;case "XML":if(g=(g=q.responseXML)?kzT(g):null)L={},_.Tv(g.getElementsByTagName("*"),function(y){L[y.tagName]=SRZ(y)})}Q&&o6b(L);
return L};
o6b=function(g){if(_.zM(g))for(var u in g)u==="html_content"||yq(u,"_html")?g[u]=QT(g[u]):o6b(g[u])};
zNM=function(g,u,q){if(u&&u.status===204)return!0;switch(g){case "JSON":return!!q;case "XML":return Number(q&&q.return_code)===0;case "RAW":return!0;default:return!!q}};
kzT=function(g){return g?(g=("responseXML"in g?g.responseXML:g).getElementsByTagName("root"))&&g.length>0?g[0]:null:null};
SRZ=function(g){var u="";_.Tv(g.childNodes,function(q){u+=q.nodeValue});
return u};
UfS=function(g){if(g.name==="JavaException")return!0;g=g.stack;return g.includes("chrome://")||g.includes("-extension://")||g.includes("webkit-masked-url://")};
gZq=function(g){if(!g.stack)return!0;var u=!g.stack.includes("\n");return u&&g.stack.includes("ErrorType: ")||u&&g.stack.includes("Anonymous function (Unknown script")||g.stack.toLowerCase()==="not available"||g.fileName==="user-script"||g.fileName.startsWith("user-script:")?!0:!1};
_.PW=function(g){_.Lh.call(this);this.JSC$10833_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!g};
q3S=function(g,u){var q=g.length,Q=0,L=function(){return g.charCodeAt(Q++)};
do{var E=uJq(L);if(E===Infinity)break;var y=E>>3;switch(E&7){case 0:E=uJq(L);if(y===u)return E;break;case 1:if(y===u)return;Q+=8;break;case 2:E=uJq(L);if(y===u)return g.substr(Q,E);Q+=E;break;case 5:if(y===u)return;Q+=4;break;default:return}}while(Q<q)};
uJq=function(g){var u=g(),q=u&127;if(u<128)return q;u=g();q|=(u&127)<<7;if(u<128)return q;u=g();q|=(u&127)<<14;if(u<128)return q;u=g();return u<128?q|(u&127)<<21:Infinity};
LcZ=function(g,u,q,Q){if(g)if(Array.isArray(g)){var L=Q;for(Q=0;Q<g.length&&!(g[Q]&&(L+=Q7u(Q,g[Q],u,q),L>500));Q++);Q=L}else if(typeof g==="object")for(L in g){if(g[L]){var E=L;var y=g[L],v=u,J=q;E=typeof y!=="string"||E!=="clickTrackingParams"&&E!=="trackingParams"?0:(y=q3S(atob(y.replace(/-/g,"+").replace(/_/g,"/")),2))?Q7u(E+".ve",y,v,J):0;Q+=E;Q+=Q7u(L,g[L],u,q);if(Q>500)break}}else q[u]=Nu(g),Q+=q[u].length;else q[u]=Nu(g),Q+=q[u].length;return Q};
Q7u=function(g,u,q,Q){q+="."+g;g=Nu(u);Q[q]=g;return q.length+g.length};
Nu=function(g){try{return(typeof g==="string"?g:String(JSON.stringify(g))).substr(0,500)}catch(u){return"unable to serialize "+typeof g+" ("+u.message+")"}};
EZq=function(g){switch(g){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}};
_.yW=function(g,u,q,Q,L){_.sk.set(g,u,{maxAge:q,path:"/",domain:Q===void 0?"youtube.com":Q,secure:L===void 0?!1:L})};
_.PRM=function(g,u,q){_.sk.remove(g,u===void 0?"/":u,q===void 0?"youtube.com":q)};
_.vW=function(){if(_.w("embeds_web_enable_cookie_detection_fix")){if(!_.Qq.navigator.cookieEnabled)return!1}else if(!_.sk.isEnabled())return!1;if(!_.sk.isEmpty())return!0;_.w("embeds_web_enable_cookie_detection_fix")?_.sk.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.sk.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.sk.get("TESTCOOKIESENABLED")!=="1")return!1;_.sk.remove("TESTCOOKIESENABLED");return!0};
Nrf=function(){var g=_.Qq.navigator;return g?g.connection:void 0};
s7q=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(g){}};
_.vZF=function(){var g=Nrf();if(g){var u=yDZ[g.type||"unknown"]||"CONN_UNKNOWN";g=yDZ[g.effectiveType||"unknown"]||"CONN_UNKNOWN";u==="CONN_CELLULAR_UNKNOWN"&&g!=="CONN_UNKNOWN"&&(u=g);if(u!=="CONN_UNKNOWN")return u;if(g!=="CONN_UNKNOWN")return g}};
pcq=function(){var g=Nrf();if(g!=null&&g.effectiveType)return DZm.hasOwnProperty(g.effectiveType)?DZm[g.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.p0=function(){try{return _.DQ(),!0}catch(g){return!1}};
_.DQ=function(g){if(_.FR("DATASYNC_ID")!==void 0)return _.FR("DATASYNC_ID");throw new _.Ji("Datasync ID not set",g===void 0?"unknown":g);};
_.jj=function(g){this.mechanism=g};
f0=function(g){this.mechanism=g};
Mu=function(g){this.mechanism=g};
ti=function(g){this.storage_=g;this.cachedIsStorageAvailable_=null};
JDK=function(){var g=null;try{g=_.Qq.localStorage||null}catch(u){}ti.call(this,g)};
j7q=function(){var g=null;try{g=_.Qq.sessionStorage||null}catch(u){}ti.call(this,g)};
ej=function(g,u){this.mechanism_=g;this.JSC$10935_prefix_=u+"::"};
_.G8=function(g){var u=new JDK;return u.isAvailable()?g?new ej(u,g):u:null};
_.fsb=function(g){var u=new j7q;return u.isAvailable()?g?new ej(u,g):u:null};
tbS=function(){var g;return(g=MbK())==null?void 0:g.get("LAST_RESULT_ENTRY_KEY",!0)};
_.wu=function(g){eh3||(_.$Q?_.$Q.logError(g):(_.R0.push({type:"ERROR",payload:g}),_.R0.length>10&&_.R0.shift()))};
cW=function(g,u){eh3||(_.$Q?_.$Q.logEvent(g,u):(_.R0.push({type:"EVENT",eventType:g,payload:u}),_.R0.length>10&&_.R0.shift()))};
HW=function(g){if(g.indexOf(":")>=0)throw Error("Uc");};
Ai=function(g){return g.substr(0,g.indexOf(":"))||g};
RhF=function(){return(GNf||$ZF)&&ZQ("applewebkit")&&!ZQ("version")&&(!ZQ("safari")||ZQ("gsa/"))};
ZQ=function(g){var u=_.GM();return u?u.toLowerCase().indexOf(g)>=0:!1};
HUT=function(g,u,q,Q){u=Ai(u);var L=g instanceof Error?g:Error("Vc`"+g);if(L instanceof lS)return L;g={objectStoreNames:q,dbName:u,dbVersion:Q};if(L.name==="QuotaExceededError")return new lS("QUOTA_EXCEEDED",g);if(_.I0&&L.name==="UnknownError")return new lS("QUOTA_MAYBE_EXCEEDED",g);if(L instanceof wcm)return new lS("MISSING_INDEX",Object.assign({},g,{objectStore:L.objectStore,index:L.index}));if(L.name==="InvalidStateError"&&cDb.some(function(E){return L.message.includes(E)}))return new lS("EXECUTE_TRANSACTION_ON_CLOSED_DB",
g);
if(L.name==="AbortError")return new lS("UNKNOWN_ABORT",g,L.message);L.args=[Object.assign({},g,{name:"IdbError",originalName:L.name})];L.level="WARNING";return L};
iS=function(g,u,q){var Q=tbS();return new lS("IDB_NOT_SUPPORTED",{context:{caller:g,publicName:u,version:q,hasSucceededOnce:Q==null?void 0:Q.hasSucceededOnce}})};
ADm=function(g){if(!g)throw Error();throw g;};
ZUq=function(g){return g};
lsZ=function(g,u,q){var Q=function(){try{g.removeEventListener("success",L),g.removeEventListener("error",E)}catch(y){}},L=function(){u(g.result);
Q()},E=function(){q(g.error);
Q()};
g.addEventListener("success",L);g.addEventListener("error",E)};
Isq=function(g){return new Promise(function(u,q){lsZ(g,u,q)})};
m9=function(g){return new C0(new bS(function(u,q){lsZ(g,u,q)}))};
iUZ=function(g,u){return new C0(new bS(function(q,Q){var L=function(){var E=g?u(g):null;E?E.then(function(y){g=y;L()},Q):q()};
L()}))};
CRT=function(g,u,q){return new Promise(function(Q,L){var E=u!==void 0?self.indexedDB.open(g,u):self.indexedDB.open(g);var y=q.blocked,v=q.blocking,J=q.terminated,f=q.upgrade,t=q.closed,e,G=function(){e||(e=new a0(E.result,{closed:t}));return e};
E.addEventListener("upgradeneeded",function(R){try{if(R.newVersion===null)throw Error("$c");if(E.transaction===null)throw Error("ad");R.dataLoss&&R.dataLoss!=="none"&&cW("IDB_DATA_CORRUPTED",{reason:R.dataLossMessage||"unknown reason",dbName:Ai(g)});var H=G(),l=new VW(E.transaction);f&&f(H,function(d){return R.oldVersion<d&&R.newVersion>=d},l);
l.done.catch(function(d){L(d)})}catch(d){L(d)}});
E.addEventListener("success",function(){var R=E.result;v&&R.addEventListener("versionchange",function(){v(G())});
R.addEventListener("close",function(){cW("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ai(g),dbVersion:R.version});J&&J()});
Q(G())});
E.addEventListener("error",function(){L(E.error)});
y&&E.addEventListener("blocked",function(){y()})})};
bUK=function(g,u,q){q=q===void 0?{}:q;return CRT(g,u,q)};
_.ru=function(g,u){u=u===void 0?{}:u;var q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return _.b8(y,2),q=self.indexedDB.deleteDatabase(g),Q=u,(L=Q.blocked)&&q.addEventListener("blocked",function(){L()}),y.yield(Isq(q),4);
if(y.nextAddress!=2)return _.Xx(y,0);E=_.rt(y);throw HUT(E,g,"",-1);})};
FcM=function(g,u){var q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.WW(dZk,u),2);q=Q.yieldResult;return Q.return(_.T8(q,["databases"],{enableRetries:!0,mode:"readwrite"},function(L){var E=L.objectStore("databases");return E.get(g.actualName).then(function(y){if(y?g.actualName!==y.actualName||g.publicName!==y.publicName||g.userIdentifier!==y.userIdentifier:1)return E.put(g).then(function(){})})}))})};
_.hi=function(g,u){var q;return _.D(function(Q){if(Q.nextAddress==1)return g?Q.yield(_.WW(dZk,u),2):Q.return();q=Q.yieldResult;return Q.return(q.delete("databases",g))})};
_.mZM=function(g,u){var q,Q;return _.D(function(L){return L.nextAddress==1?(q=[],L.yield(_.WW(dZk,u),2)):L.nextAddress!=3?(Q=L.yieldResult,L.yield(_.T8(Q,["databases"],{enableRetries:!0,mode:"readonly"},function(E){q.length=0;return YQ(E.objectStore("databases"),{},function(y){g(y.getValue())&&q.push(y.getValue());return y.continue()})}),3)):L.return(q)})};
asS=function(g,u){return _.mZM(function(q){return q.publicName===g&&q.userIdentifier!==void 0},u)};
rDS=function(){var g,u,q,Q;return _.D(function(L){switch(L.nextAddress){case 1:g=tbS();if((u=g)==null?0:u.hasSucceededOnce)return L.return(!0);var E;if(E=Vbf)E=/WebKit\/([0-9]+)/.exec(_.GM()),E=!!(E&&parseInt(E[1],10)>=600);E&&(E=/WebKit\/([0-9]+)/.exec(_.GM()),E=!(E&&parseInt(E[1],10)>=602));if(E||Ok)return L.return(!1);try{if(q=self,!(q.indexedDB&&q.IDBIndex&&q.IDBKeyRange&&q.IDBObjectStore))return L.return(!1)}catch(y){return L.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return L.return(!1);
_.b8(L,2);Q={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return L.yield(FcM(Q,XcF),4);case 4:return L.yield(_.hi("yt-idb-test-do-not-use",XcF),5);case 5:return L.return(!0);case 2:return _.rt(L),L.return(!1)}})};
Trb=function(){if(Wcq!==void 0)return Wcq;eh3=!0;return Wcq=rDS().then(function(g){eh3=!1;var u;if((u=MbK())!=null&&u.hasLocalStorage()){var q;u={hasSucceededOnce:((q=tbS())==null?void 0:q.hasSucceededOnce)||g};var Q;(Q=MbK())==null||Q.set("LAST_RESULT_ENTRY_KEY",u,2592E3,!0)}return g})};
K0=function(){return _.ri("ytglobal.idbToken_")||void 0};
_.BW=function(){var g=K0();return g?Promise.resolve(g):Trb().then(function(u){(u=u?XcF:void 0)&&_.xQ("ytglobal.idbToken_",u);return u})};
hhM=function(g){if(!_.p0())throw g=new lS("AUTH_INVALID",{dbName:g}),_.wu(g),g;var u=_.DQ();return{actualName:g+":"+u,publicName:g,userIdentifier:u}};
Y3m=function(g,u,q,Q){var L,E,y,v,J,f;return _.D(function(t){switch(t.nextAddress){case 1:return E=(L=Error().stack)!=null?L:"",t.yield(_.BW(),2);case 2:y=t.yieldResult;if(!y)throw v=iS("openDbImpl",g,u),_.w("ytidb_async_stack_killswitch")||(v.stack=v.stack+"\n"+E.substring(E.indexOf("\n")+1)),_.wu(v),v;HW(g);J=q?{actualName:g,publicName:g,userIdentifier:void 0}:hhM(g);_.b8(t,3);return t.yield(FcM(J,y),5);case 5:return t.yield(bUK(J.actualName,u,Q),6);case 6:return t.return(t.yieldResult);case 3:return f=
_.rt(t),_.b8(t,7),t.yield(_.hi(J.actualName,y),9);case 9:_.Xx(t,8);break;case 7:_.rt(t);case 8:throw f;}})};
OUf=function(g,u,q){q=q===void 0?{}:q;return Y3m(g,u,!1,q)};
Kcf=function(g,u,q){q=q===void 0?{}:q;return Y3m(g,u,!0,q)};
xZq=function(g,u){u=u===void 0?{}:u;var q,Q;return _.D(function(L){if(L.nextAddress==1)return L.yield(_.BW(),2);if(L.nextAddress!=3){q=L.yieldResult;if(!q)return L.return();HW(g);Q=hhM(g);return L.yield(_.ru(Q.actualName,u),3)}return L.yield(_.hi(Q.actualName,q),0)})};
Brf=function(g,u,q){g=g.map(function(Q){return _.D(function(L){return L.nextAddress==1?L.yield(_.ru(Q.actualName,u),2):L.yield(_.hi(Q.actualName,q),0)})});
return Promise.all(g).then(function(){})};
zhT=function(g){var u=u===void 0?{}:u;var q,Q;return _.D(function(L){if(L.nextAddress==1)return L.yield(_.BW(),2);if(L.nextAddress!=3){q=L.yieldResult;if(!q)return L.return();HW(g);return L.yield(asS(g,q),3)}Q=L.yieldResult;return L.yield(Brf(Q,u,q),0)})};
nZf=function(g,u){u=u===void 0?{}:u;var q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.BW(),2);if(Q.nextAddress!=3){q=Q.yieldResult;if(!q)return Q.return();HW(g);return Q.yield(_.ru(g,u),3)}return Q.yield(_.hi(g,q),0)})};
z8=function(g,u){return kNq(g,u)};
oZf=function(g){return _.WW(S3k(),g)};
UZm=function(g,u,q,Q){var L,E,y;return _.D(function(v){switch(v.nextAddress){case 1:return L={config:g,hashData:u,timestamp:Q!==void 0?Q:(0,_.n0)()},v.yield(oZf(q),2);case 2:return E=v.yieldResult,v.yield(E.clear("hotConfigStore"),3);case 3:return v.yield(E.put("hotConfigStore",L),4);case 4:return y=v.yieldResult,v.return(y)}})};
g_f=function(g,u,q,Q,L){var E,y,v;return _.D(function(J){switch(J.nextAddress){case 1:return E={config:g,hashData:u,configData:q,timestamp:L!==void 0?L:(0,_.n0)()},J.yield(oZf(Q),2);case 2:return y=J.yieldResult,J.yield(y.clear("coldConfigStore"),3);case 3:return J.yield(y.put("coldConfigStore",E),4);case 4:return v=J.yieldResult,J.return(v)}})};
uTT=function(g){var u,q;return _.D(function(Q){return Q.nextAddress==1?Q.yield(oZf(g),2):Q.nextAddress!=3?(u=Q.yieldResult,q=void 0,Q.yield(_.T8(u,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(L){return _.kQ(L.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(E){q=E.getValue()})}),3)):Q.return(q)})};
qxf=function(g){var u,q;return _.D(function(Q){return Q.nextAddress==1?Q.yield(oZf(g),2):Q.nextAddress!=3?(u=Q.yieldResult,q=void 0,Q.yield(_.T8(u,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(L){return _.kQ(L.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(E){q=E.getValue()})}),3)):Q.return(q)})};
QEb=function(){return _.D(function(g){return g.yield(zhT("ytGcfConfig"),0)})};
LCb=function(){return"INNERTUBE_API_KEY"in _.bL&&"INNERTUBE_API_VERSION"in _.bL};
_.Sj=function(){return{innertubeApiKey:_.FR("INNERTUBE_API_KEY"),innertubeApiVersion:_.FR("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.FR("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.FR("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.FR("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.FR("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.FR("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.FR("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.FR("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.mW("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.mW("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.FR("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.DRS=function(g){var u={client:{hl:g.innertubeContextHostLanguage,gl:g.innertubeContextGeoLocation,clientName:g.innertubeContextClientName,clientVersion:g.innertubeContextClientVersion,configInfo:g.innertubeContextClientConfigInfo}};navigator.userAgent&&(u.client.userAgent=String(navigator.userAgent));var q=_.Qq.devicePixelRatio;q&&q!=1&&(u.client.screenDensityFloat=String(q));q=l0f();q!==""&&(u.client.experimentsToken=q);q=iWJ();q.length>0&&(u.request={internalExperimentFlags:q});E_K(g,void 0,u);
PdS(void 0,u);N$b(void 0,u);sES(g,void 0,u);yRk(void 0,u);_.w("start_client_gcf")&&v_k(void 0,u);_.FR("DELEGATED_SESSION_ID")&&!_.w("pageid_as_header_web")&&(u.user={onBehalfOfUser:_.FR("DELEGATED_SESSION_ID")});!_.w("fill_delegate_context_in_gel_killswitch")&&(g=_.FR("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(u.user=Object.assign({},u.user,{serializedDelegationContext:g}));g=_.FR("INNERTUBE_CONTEXT");var Q;if(_.w("enable_persistent_device_token")&&(g==null?0:(Q=g.client)==null?0:Q.rolloutToken)){var L;
u.client.rolloutToken=g==null?void 0:(L=g.client)==null?void 0:L.rolloutToken}Q=Object;L=Q.assign;g=u.client;q={};for(var E=_.N(Object.entries(_.hM(_.FR("DEVICE","")))),y=E.next();!y.done;y=E.next()){var v=_.N(y.value);y=v.next().value;v=v.next().value;y==="cbrand"?q.deviceMake=v:y==="cmodel"?q.deviceModel=v:y==="cbr"?q.browserName=v:y==="cbrver"?q.browserVersion=v:y==="cos"?q.osName=v:y==="cosver"?q.osVersion=v:y==="cplatform"&&(q.platform=v)}u.client=L.call(Q,g,q);return u};
E_K=function(g,u,q){g=g.innertubeContextClientName;if(g==="WEB"||g==="MWEB"||g===1||g===2)if(u){q=_.o0(u,p9h,96)||new p9h;var Q=JRk();Q=Object.keys(jEZ).indexOf(Q);Q=Q===-1?null:Q;Q!==null&&_.Uk(q,3,Q);_.FV(u,96,q)}else q&&(q.client.mainAppWebInfo=(Q=q.client.mainAppWebInfo)!=null?Q:{},q.client.mainAppWebInfo.webDisplayMode=JRk())};
PdS=function(g,u){var q=_.ri("yt.embedded_player.embed_url");q&&(g?(u=_.o0(g,fqb,7)||new fqb,_.EU(u,4,q),_.FV(g,7,u)):u&&(u.thirdParty={embedUrl:q}))};
N$b=function(g,u){var q;if(_.w("web_log_memory_total_kbytes")&&((q=_.Qq.navigator)==null?0:q.deviceMemory)){var Q;q=(Q=_.Qq.navigator)==null?void 0:Q.deviceMemory;g?_.gN(g,95,RH(q*1E6)):u&&(u.client.memoryTotalKbytes=""+q*1E6)}};
sES=function(g,u,q){if(g.appInstallData)if(u){var Q;q=(Q=_.o0(u,ut,62))!=null?Q:new ut;_.EU(q,6,g.appInstallData);_.FV(u,62,q)}else q&&(q.client.configInfo=q.client.configInfo||{},q.client.configInfo.appInstallData=g.appInstallData)};
yRk=function(g,u){var q=_.vZF();q&&(g?_.Uk(g,61,Mhm[q]):u&&(u.client.connectionType=q));_.w("web_log_effective_connection_type")&&(q=pcq())&&(g?_.Uk(g,94,thF[q]):u&&(u.client.effectiveConnectionType=q))};
_.$RT=function(g,u,q){q=q===void 0?{}:q;var Q={};_.FR("EOM_VISITOR_DATA")?Q={"X-Goog-EOM-Visitor-Id":_.FR("EOM_VISITOR_DATA")}:Q={"X-Goog-Visitor-Id":q.visitorData||_.FR("VISITOR_DATA","")};if(u&&u.includes("www.youtube-nocookie.com"))return Q;u=q.authorization||_.FR("AUTHORIZATION");u||(g?u="Bearer "+_.ri("gapi.auth.getToken")().access_token:(e5m.instance||(e5m.instance=new e5m),g=Grk(),_.w("pageid_as_header_web")||delete g["X-Goog-PageId"],Q=Object.assign({},Q,g)));u&&(Q.Authorization=u);return Q};
v_k=function(g,u){var q=R5q();if(q){var Q=q.coldConfigData,L=q.coldHashData;q=q.hotHashData;if(g){var E;u=(E=_.o0(g,ut,62))!=null?E:new ut;Q=_.EU(u,1,Q);_.EU(Q,3,L).setHotHashData(q);_.FV(g,62,u)}else u&&(u.client.configInfo=u.client.configInfo||{},Q&&(u.client.configInfo.coldConfigData=Q),L&&(u.client.configInfo.coldHashData=L),q&&(u.client.configInfo.hotHashData=q))}};
qT=function(g){for(var u=g.length;--u>=0;)g[u]=0};
w9q=function(g,u,q,Q,L){this.static_tree=g;this.extra_bits=u;this.extra_base=q;this.elems=Q;this.max_length=L;this.has_stree=g&&g.length};
cRM=function(g,u){this.dyn_tree=g;this.max_code=0;this.stat_desc=u};
QI=function(g,u){g.pending_buf[g.pending++]=u&255;g.pending_buf[g.pending++]=u>>>8&255};
LB=function(g,u,q){g.bi_valid>16-q?(g.bi_buf|=u<<g.bi_valid&65535,QI(g,g.bi_buf),g.bi_buf=u>>16-g.bi_valid,g.bi_valid+=q-16):(g.bi_buf|=u<<g.bi_valid&65535,g.bi_valid+=q)};
Er=function(g,u,q){LB(g,q[u*2],q[u*2+1])};
H6Z=function(g,u){var q=0;do q|=g&1,g>>>=1,q<<=1;while(--u>0);return q>>>1};
ARF=function(g,u,q){var Q=Array(16),L=0,E;for(E=1;E<=15;E++)Q[E]=L=L+q[E-1]<<1;for(q=0;q<=u;q++)L=g[q*2+1],L!==0&&(g[q*2]=H6Z(Q[L]++,L))};
Z6q=function(g){var u;for(u=0;u<286;u++)g.dyn_ltree[u*2]=0;for(u=0;u<30;u++)g.dyn_dtree[u*2]=0;for(u=0;u<19;u++)g.bl_tree[u*2]=0;g.dyn_ltree[512]=1;g.opt_len=g.static_len=0;g.last_lit=g.matches=0};
lqZ=function(g){g.bi_valid>8?QI(g,g.bi_buf):g.bi_valid>0&&(g.pending_buf[g.pending++]=g.bi_buf);g.bi_buf=0;g.bi_valid=0};
Iqq=function(g,u,q){lqZ(g);QI(g,q);QI(g,~q);Pv.arraySet(g.pending_buf,g.window,u,q,g.pending);g.pending+=q};
i6f=function(g,u,q,Q){var L=u*2,E=q*2;return g[L]<g[E]||g[L]===g[E]&&Q[u]<=Q[q]};
Cdq=function(g,u,q){for(var Q=g.heap[q],L=q<<1;L<=g.heap_len;){L<g.heap_len&&i6f(u,g.heap[L+1],g.heap[L],g.depth)&&L++;if(i6f(u,Q,g.heap[L],g.depth))break;g.heap[q]=g.heap[L];q=L;L<<=1}g.heap[q]=Q};
aqu=function(g,u,q){var Q=0;if(g.last_lit!==0){do{var L=g.pending_buf[g.d_buf+Q*2]<<8|g.pending_buf[g.d_buf+Q*2+1];var E=g.pending_buf[g.l_buf+Q];Q++;if(L===0)Er(g,E,u);else{var y=NT[E];Er(g,y+256+1,u);var v=b6S[y];v!==0&&(E-=dRq[y],LB(g,E,v));L--;y=L<256?sr[L]:sr[256+(L>>>7)];Er(g,y,q);v=FC3[y];v!==0&&(L-=mRq[y],LB(g,L,v))}}while(Q<g.last_lit)}Er(g,256,u)};
VhK=function(g,u){var q=u.dyn_tree,Q=u.stat_desc.static_tree,L=u.stat_desc.has_stree,E=u.stat_desc.elems,y,v=-1;g.heap_len=0;g.heap_max=573;for(y=0;y<E;y++)q[y*2]!==0?(g.heap[++g.heap_len]=v=y,g.depth[y]=0):q[y*2+1]=0;for(;g.heap_len<2;){var J=g.heap[++g.heap_len]=v<2?++v:0;q[J*2]=1;g.depth[J]=0;g.opt_len--;L&&(g.static_len-=Q[J*2+1])}u.max_code=v;for(y=g.heap_len>>1;y>=1;y--)Cdq(g,q,y);J=E;do y=g.heap[1],g.heap[1]=g.heap[g.heap_len--],Cdq(g,q,1),Q=g.heap[1],g.heap[--g.heap_max]=y,g.heap[--g.heap_max]=
Q,q[J*2]=q[y*2]+q[Q*2],g.depth[J]=(g.depth[y]>=g.depth[Q]?g.depth[y]:g.depth[Q])+1,q[y*2+1]=q[Q*2+1]=J,g.heap[1]=J++,Cdq(g,q,1);while(g.heap_len>=2);g.heap[--g.heap_max]=g.heap[1];y=u.dyn_tree;J=u.max_code;Q=u.stat_desc.static_tree;L=u.stat_desc.has_stree;E=u.stat_desc.extra_bits;var f=u.stat_desc.extra_base,t=u.stat_desc.max_length,e,G=0;for(e=0;e<=15;e++)g.bl_count[e]=0;y[g.heap[g.heap_max]*2+1]=0;for(u=g.heap_max+1;u<573;u++){var R=g.heap[u];e=y[y[R*2+1]*2+1]+1;e>t&&(e=t,G++);y[R*2+1]=e;if(!(R>
J)){g.bl_count[e]++;var H=0;R>=f&&(H=E[R-f]);var l=y[R*2];g.opt_len+=l*(e+H);L&&(g.static_len+=l*(Q[R*2+1]+H))}}if(G!==0){do{for(e=t-1;g.bl_count[e]===0;)e--;g.bl_count[e]--;g.bl_count[e+1]+=2;g.bl_count[t]--;G-=2}while(G>0);for(e=t;e!==0;e--)for(R=g.bl_count[e];R!==0;)Q=g.heap[--u],Q>J||(y[Q*2+1]!==e&&(g.opt_len+=(e-y[Q*2+1])*y[Q*2],y[Q*2+1]=e),R--)}ARF(q,v,g.bl_count)};
X9K=function(g,u,q){var Q,L=-1,E=u[1],y=0,v=7,J=4;E===0&&(v=138,J=3);u[(q+1)*2+1]=65535;for(Q=0;Q<=q;Q++){var f=E;E=u[(Q+1)*2+1];++y<v&&f===E||(y<J?g.bl_tree[f*2]+=y:f!==0?(f!==L&&g.bl_tree[f*2]++,g.bl_tree[32]++):y<=10?g.bl_tree[34]++:g.bl_tree[36]++,y=0,L=f,E===0?(v=138,J=3):f===E?(v=6,J=3):(v=7,J=4))}};
rRT=function(g,u,q){var Q,L=-1,E=u[1],y=0,v=7,J=4;E===0&&(v=138,J=3);for(Q=0;Q<=q;Q++){var f=E;E=u[(Q+1)*2+1];if(!(++y<v&&f===E)){if(y<J){do Er(g,f,g.bl_tree);while(--y!==0)}else f!==0?(f!==L&&(Er(g,f,g.bl_tree),y--),Er(g,16,g.bl_tree),LB(g,y-3,2)):y<=10?(Er(g,17,g.bl_tree),LB(g,y-3,3)):(Er(g,18,g.bl_tree),LB(g,y-11,7));y=0;L=f;E===0?(v=138,J=3):f===E?(v=6,J=3):(v=7,J=4)}}};
WCk=function(g){var u=4093624447,q;for(q=0;q<=31;q++,u>>>=1)if(u&1&&g.dyn_ltree[q*2]!==0)return 0;if(g.dyn_ltree[18]!==0||g.dyn_ltree[20]!==0||g.dyn_ltree[26]!==0)return 1;for(q=32;q<256;q++)if(g.dyn_ltree[q*2]!==0)return 1;return 0};
yI=function(g,u,q){g.pending_buf[g.d_buf+g.last_lit*2]=u>>>8&255;g.pending_buf[g.d_buf+g.last_lit*2+1]=u&255;g.pending_buf[g.l_buf+g.last_lit]=q&255;g.last_lit++;u===0?g.dyn_ltree[q*2]++:(g.matches++,u--,g.dyn_ltree[(NT[q]+256+1)*2]++,g.dyn_dtree[(u<256?sr[u]:sr[256+(u>>>7)])*2]++);return g.last_lit===g.lit_bufsize-1};
Dv=function(g,u){g.msg=vv[u];return u};
pB=function(g){for(var u=g.length;--u>=0;)g[u]=0};
J6=function(g){var u=g.state,q=u.pending;q>g.avail_out&&(q=g.avail_out);q!==0&&(Pv.arraySet(g.output,u.pending_buf,u.pending_out,q,g.next_out),g.next_out+=q,u.pending_out+=q,g.total_out+=q,g.avail_out-=q,u.pending-=q,u.pending===0&&(u.pending_out=0))};
MT=function(g,u){var q=g.block_start>=0?g.block_start:-1,Q=g.strstart-g.block_start,L=0;if(g.level>0){g.strm.data_type===2&&(g.strm.data_type=WCk(g));VhK(g,g.l_desc);VhK(g,g.d_desc);X9K(g,g.dyn_ltree,g.l_desc.max_code);X9K(g,g.dyn_dtree,g.d_desc.max_code);VhK(g,g.bl_desc);for(L=18;L>=3&&g.bl_tree[T$M[L]*2+1]===0;L--);g.opt_len+=3*(L+1)+5+5+4;var E=g.opt_len+3+7>>>3;var y=g.static_len+3+7>>>3;y<=E&&(E=y)}else E=y=Q+5;if(Q+4<=E&&q!==-1)LB(g,u?1:0,3),Iqq(g,q,Q);else if(g.strategy===4||y===E)LB(g,2+(u?
1:0),3),aqu(g,ja,fB);else{LB(g,4+(u?1:0),3);q=g.l_desc.max_code+1;Q=g.d_desc.max_code+1;L+=1;LB(g,q-257,5);LB(g,Q-1,5);LB(g,L-4,4);for(E=0;E<L;E++)LB(g,g.bl_tree[T$M[E]*2+1],3);rRT(g,g.dyn_ltree,q-1);rRT(g,g.dyn_dtree,Q-1);aqu(g,g.dyn_ltree,g.dyn_dtree)}Z6q(g);u&&lqZ(g);g.block_start=g.strstart;J6(g.strm)};
t6=function(g,u){g.pending_buf[g.pending++]=u};
ea=function(g,u){g.pending_buf[g.pending++]=u>>>8&255;g.pending_buf[g.pending++]=u&255};
h5q=function(g,u){var q=g.max_chain_length,Q=g.strstart,L=g.prev_length,E=g.nice_match,y=g.strstart>g.w_size-262?g.strstart-(g.w_size-262):0,v=g.window,J=g.w_mask,f=g.prev,t=g.strstart+258,e=v[Q+L-1],G=v[Q+L];g.prev_length>=g.good_match&&(q>>=2);E>g.lookahead&&(E=g.lookahead);do{var R=u;if(v[R+L]===G&&v[R+L-1]===e&&v[R]===v[Q]&&v[++R]===v[Q+1]){Q+=2;for(R++;v[++Q]===v[++R]&&v[++Q]===v[++R]&&v[++Q]===v[++R]&&v[++Q]===v[++R]&&v[++Q]===v[++R]&&v[++Q]===v[++R]&&v[++Q]===v[++R]&&v[++Q]===v[++R]&&Q<t;);
R=258-(t-Q);Q=t-258;if(R>L){g.match_start=u;L=R;if(R>=E)break;e=v[Q+L-1];G=v[Q+L]}}}while((u=f[u&J])>y&&--q!==0);return L<=g.lookahead?L:g.lookahead};
$O=function(g){var u=g.w_size,q;do{var Q=g.window_size-g.lookahead-g.strstart;if(g.strstart>=u+(u-262)){Pv.arraySet(g.window,g.window,u,u,0);g.match_start-=u;g.strstart-=u;g.block_start-=u;var L=q=g.hash_size;do{var E=g.head[--L];g.head[L]=E>=u?E-u:0}while(--q);L=q=u;do E=g.prev[--L],g.prev[L]=E>=u?E-u:0;while(--q);Q+=u}if(g.strm.avail_in===0)break;L=g.strm;q=g.window;E=g.strstart+g.lookahead;var y=L.avail_in;y>Q&&(y=Q);y===0?q=0:(L.avail_in-=y,Pv.arraySet(q,L.input,L.next_in,y,E),L.state.wrap===
1?L.adler=Yxq(L.adler,q,y,E):L.state.wrap===2&&(L.adler=GX(L.adler,q,y,E)),L.next_in+=y,L.total_in+=y,q=y);g.lookahead+=q;if(g.lookahead+g.insert>=3)for(Q=g.strstart-g.insert,g.ins_h=g.window[Q],g.ins_h=(g.ins_h<<g.hash_shift^g.window[Q+1])&g.hash_mask;g.insert&&!(g.ins_h=(g.ins_h<<g.hash_shift^g.window[Q+3-1])&g.hash_mask,g.prev[Q&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=Q,Q++,g.insert--,g.lookahead+g.insert<3););}while(g.lookahead<262&&g.strm.avail_in!==0)};
O6h=function(g,u){for(var q;;){if(g.lookahead<262){$O(g);if(g.lookahead<262&&u===0)return 1;if(g.lookahead===0)break}q=0;g.lookahead>=3&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+3-1])&g.hash_mask,q=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);q!==0&&g.strstart-q<=g.w_size-262&&(g.match_length=h5q(g,q));if(g.match_length>=3)if(q=yI(g,g.strstart-g.match_start,g.match_length-3),g.lookahead-=g.match_length,g.match_length<=g.max_lazy_match&&g.lookahead>=3){g.match_length--;
do g.strstart++,g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+3-1])&g.hash_mask,g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart;while(--g.match_length!==0);g.strstart++}else g.strstart+=g.match_length,g.match_length=0,g.ins_h=g.window[g.strstart],g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+1])&g.hash_mask;else q=yI(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++;if(q&&(MT(g,!1),g.strm.avail_out===0))return 1}g.insert=g.strstart<2?g.strstart:2;return u===4?(MT(g,
!0),g.strm.avail_out===0?3:4):g.last_lit&&(MT(g,!1),g.strm.avail_out===0)?1:2};
RI=function(g,u){for(var q,Q;;){if(g.lookahead<262){$O(g);if(g.lookahead<262&&u===0)return 1;if(g.lookahead===0)break}q=0;g.lookahead>=3&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+3-1])&g.hash_mask,q=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);g.prev_length=g.match_length;g.prev_match=g.match_start;g.match_length=2;q!==0&&g.prev_length<g.max_lazy_match&&g.strstart-q<=g.w_size-262&&(g.match_length=h5q(g,q),g.match_length<=5&&(g.strategy===1||g.match_length===3&&
g.strstart-g.match_start>4096)&&(g.match_length=2));if(g.prev_length>=3&&g.match_length<=g.prev_length){Q=g.strstart+g.lookahead-3;q=yI(g,g.strstart-1-g.prev_match,g.prev_length-3);g.lookahead-=g.prev_length-1;g.prev_length-=2;do++g.strstart<=Q&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+3-1])&g.hash_mask,g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);while(--g.prev_length!==0);g.match_available=0;g.match_length=2;g.strstart++;if(q&&(MT(g,!1),g.strm.avail_out===0))return 1}else if(g.match_available){if((q=
yI(g,0,g.window[g.strstart-1]))&&MT(g,!1),g.strstart++,g.lookahead--,g.strm.avail_out===0)return 1}else g.match_available=1,g.strstart++,g.lookahead--}g.match_available&&(yI(g,0,g.window[g.strstart-1]),g.match_available=0);g.insert=g.strstart<2?g.strstart:2;return u===4?(MT(g,!0),g.strm.avail_out===0?3:4):g.last_lit&&(MT(g,!1),g.strm.avail_out===0)?1:2};
KCk=function(g,u){for(var q,Q,L,E=g.window;;){if(g.lookahead<=258){$O(g);if(g.lookahead<=258&&u===0)return 1;if(g.lookahead===0)break}g.match_length=0;if(g.lookahead>=3&&g.strstart>0&&(Q=g.strstart-1,q=E[Q],q===E[++Q]&&q===E[++Q]&&q===E[++Q])){for(L=g.strstart+258;q===E[++Q]&&q===E[++Q]&&q===E[++Q]&&q===E[++Q]&&q===E[++Q]&&q===E[++Q]&&q===E[++Q]&&q===E[++Q]&&Q<L;);g.match_length=258-(L-Q);g.match_length>g.lookahead&&(g.match_length=g.lookahead)}g.match_length>=3?(q=yI(g,1,g.match_length-3),g.lookahead-=
g.match_length,g.strstart+=g.match_length,g.match_length=0):(q=yI(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++);if(q&&(MT(g,!1),g.strm.avail_out===0))return 1}g.insert=0;return u===4?(MT(g,!0),g.strm.avail_out===0?3:4):g.last_lit&&(MT(g,!1),g.strm.avail_out===0)?1:2};
xRJ=function(g,u){for(var q;;){if(g.lookahead===0&&($O(g),g.lookahead===0)){if(u===0)return 1;break}g.match_length=0;q=yI(g,0,g.window[g.strstart]);g.lookahead--;g.strstart++;if(q&&(MT(g,!1),g.strm.avail_out===0))return 1}g.insert=0;return u===4?(MT(g,!0),g.strm.avail_out===0?3:4):g.last_lit&&(MT(g,!1),g.strm.avail_out===0)?1:2};
wN=function(g,u,q,Q,L){this.good_length=g;this.max_lazy=u;this.nice_length=q;this.max_chain=Q;this.func=L};
B$h=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 Pv.Buf16(1146);this.dyn_dtree=new Pv.Buf16(122);this.bl_tree=new Pv.Buf16(78);pB(this.dyn_ltree);pB(this.dyn_dtree);pB(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Pv.Buf16(16);this.heap=new Pv.Buf16(573);pB(this.heap);this.heap_max=this.heap_len=0;this.depth=new Pv.Buf16(573);pB(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};
z5u=function(g,u){if(!g||!g.state||u>5||u<0)return g?Dv(g,-2):-2;var q=g.state;if(!g.output||!g.input&&g.avail_in!==0||q.status===666&&u!==4)return Dv(g,g.avail_out===0?-5:-2);q.strm=g;var Q=q.last_flush;q.last_flush=u;if(q.status===42)if(q.wrap===2)g.adler=0,t6(q,31),t6(q,139),t6(q,8),q.gzhead?(t6(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(q.gzhead.extra?4:0)+(q.gzhead.name?8:0)+(q.gzhead.comment?16:0)),t6(q,q.gzhead.time&255),t6(q,q.gzhead.time>>8&255),t6(q,q.gzhead.time>>16&255),t6(q,q.gzhead.time>>
24&255),t6(q,q.level===9?2:q.strategy>=2||q.level<2?4:0),t6(q,q.gzhead.os&255),q.gzhead.extra&&q.gzhead.extra.length&&(t6(q,q.gzhead.extra.length&255),t6(q,q.gzhead.extra.length>>8&255)),q.gzhead.hcrc&&(g.adler=GX(g.adler,q.pending_buf,q.pending,0)),q.gzindex=0,q.status=69):(t6(q,0),t6(q,0),t6(q,0),t6(q,0),t6(q,0),t6(q,q.level===9?2:q.strategy>=2||q.level<2?4:0),t6(q,3),q.status=113);else{var L=8+(q.w_bits-8<<4)<<8;L|=(q.strategy>=2||q.level<2?0:q.level<6?1:q.level===6?2:3)<<6;q.strstart!==0&&(L|=
32);q.status=113;ea(q,L+(31-L%31));q.strstart!==0&&(ea(q,g.adler>>>16),ea(q,g.adler&65535));g.adler=1}if(q.status===69)if(q.gzhead.extra){for(L=q.pending;q.gzindex<(q.gzhead.extra.length&65535)&&(q.pending!==q.pending_buf_size||(q.gzhead.hcrc&&q.pending>L&&(g.adler=GX(g.adler,q.pending_buf,q.pending-L,L)),J6(g),L=q.pending,q.pending!==q.pending_buf_size));)t6(q,q.gzhead.extra[q.gzindex]&255),q.gzindex++;q.gzhead.hcrc&&q.pending>L&&(g.adler=GX(g.adler,q.pending_buf,q.pending-L,L));q.gzindex===q.gzhead.extra.length&&
(q.gzindex=0,q.status=73)}else q.status=73;if(q.status===73)if(q.gzhead.name){L=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>L&&(g.adler=GX(g.adler,q.pending_buf,q.pending-L,L)),J6(g),L=q.pending,q.pending===q.pending_buf_size)){var E=1;break}E=q.gzindex<q.gzhead.name.length?q.gzhead.name.charCodeAt(q.gzindex++)&255:0;t6(q,E)}while(E!==0);q.gzhead.hcrc&&q.pending>L&&(g.adler=GX(g.adler,q.pending_buf,q.pending-L,L));E===0&&(q.gzindex=0,q.status=91)}else q.status=91;if(q.status===
91)if(q.gzhead.comment){L=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>L&&(g.adler=GX(g.adler,q.pending_buf,q.pending-L,L)),J6(g),L=q.pending,q.pending===q.pending_buf_size)){E=1;break}E=q.gzindex<q.gzhead.comment.length?q.gzhead.comment.charCodeAt(q.gzindex++)&255:0;t6(q,E)}while(E!==0);q.gzhead.hcrc&&q.pending>L&&(g.adler=GX(g.adler,q.pending_buf,q.pending-L,L));E===0&&(q.status=103)}else q.status=103;q.status===103&&(q.gzhead.hcrc?(q.pending+2>q.pending_buf_size&&J6(g),
q.pending+2<=q.pending_buf_size&&(t6(q,g.adler&255),t6(q,g.adler>>8&255),g.adler=0,q.status=113)):q.status=113);if(q.pending!==0){if(J6(g),g.avail_out===0)return q.last_flush=-1,0}else if(g.avail_in===0&&(u<<1)-(u>4?9:0)<=(Q<<1)-(Q>4?9:0)&&u!==4)return Dv(g,-5);if(q.status===666&&g.avail_in!==0)return Dv(g,-5);if(g.avail_in!==0||q.lookahead!==0||u!==0&&q.status!==666){Q=q.strategy===2?xRJ(q,u):q.strategy===3?KCk(q,u):cv[q.level].func(q,u);if(Q===3||Q===4)q.status=666;if(Q===1||Q===3)return g.avail_out===
0&&(q.last_flush=-1),0;if(Q===2&&(u===1?(LB(q,2,3),Er(q,256,ja),q.bi_valid===16?(QI(q,q.bi_buf),q.bi_buf=0,q.bi_valid=0):q.bi_valid>=8&&(q.pending_buf[q.pending++]=q.bi_buf&255,q.bi_buf>>=8,q.bi_valid-=8)):u!==5&&(LB(q,0,3),Iqq(q,0,0),u===3&&(pB(q.head),q.lookahead===0&&(q.strstart=0,q.block_start=0,q.insert=0))),J6(g),g.avail_out===0))return q.last_flush=-1,0}if(u!==4)return 0;if(q.wrap<=0)return 1;q.wrap===2?(t6(q,g.adler&255),t6(q,g.adler>>8&255),t6(q,g.adler>>16&255),t6(q,g.adler>>24&255),t6(q,
g.total_in&255),t6(q,g.total_in>>8&255),t6(q,g.total_in>>16&255),t6(q,g.total_in>>24&255)):(ea(q,g.adler>>>16),ea(q,g.adler&65535));J6(g);q.wrap>0&&(q.wrap=-q.wrap);return q.pending!==0?0:1};
n_q=function(g){if(!(this instanceof n_q))return new n_q(g);g=this.options=Pv.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},g||{});g.raw&&g.windowBits>0?g.windowBits=-g.windowBits:g.gzip&&g.windowBits>0&&g.windowBits<16&&(g.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new krS;this.strm.avail_out=0;var u=this.strm;var q=g.level,Q=g.method,L=g.windowBits,E=g.memLevel,y=g.strategy;if(u){var v=1;q===-1&&(q=6);L<0?(v=0,L=-L):L>15&&
(v=2,L-=16);if(E<1||E>9||Q!==8||L<8||L>15||q<0||q>9||y<0||y>4)u=Dv(u,-2);else{L===8&&(L=9);var J=new B$h;u.state=J;J.strm=u;J.wrap=v;J.gzhead=null;J.w_bits=L;J.w_size=1<<J.w_bits;J.w_mask=J.w_size-1;J.hash_bits=E+7;J.hash_size=1<<J.hash_bits;J.hash_mask=J.hash_size-1;J.hash_shift=~~((J.hash_bits+3-1)/3);J.window=new Pv.Buf8(J.w_size*2);J.head=new Pv.Buf16(J.hash_size);J.prev=new Pv.Buf16(J.w_size);J.lit_bufsize=1<<E+6;J.pending_buf_size=J.lit_bufsize*4;J.pending_buf=new Pv.Buf8(J.pending_buf_size);
J.d_buf=J.lit_bufsize;J.l_buf=3*J.lit_bufsize;J.level=q;J.strategy=y;J.method=Q;if(u&&u.state){u.total_in=u.total_out=0;u.data_type=2;q=u.state;q.pending=0;q.pending_out=0;q.wrap<0&&(q.wrap=-q.wrap);q.status=q.wrap?42:113;u.adler=q.wrap===2?0:1;q.last_flush=0;if(!Sx3){Q=Array(16);for(E=y=0;E<28;E++)for(dRq[E]=y,L=0;L<1<<b6S[E];L++)NT[y++]=E;NT[y-1]=E;for(E=y=0;E<16;E++)for(mRq[E]=y,L=0;L<1<<FC3[E];L++)sr[y++]=E;for(y>>=7;E<30;E++)for(mRq[E]=y<<7,L=0;L<1<<FC3[E]-7;L++)sr[256+y++]=E;for(L=0;L<=15;L++)Q[L]=
0;for(L=0;L<=143;)ja[L*2+1]=8,L++,Q[8]++;for(;L<=255;)ja[L*2+1]=9,L++,Q[9]++;for(;L<=279;)ja[L*2+1]=7,L++,Q[7]++;for(;L<=287;)ja[L*2+1]=8,L++,Q[8]++;ARF(ja,287,Q);for(L=0;L<30;L++)fB[L*2+1]=5,fB[L*2]=H6Z(L,5);o_f=new w9q(ja,b6S,257,286,15);URS=new w9q(fB,FC3,0,30,15);g9T=new w9q([],uIf,0,19,7);Sx3=!0}q.l_desc=new cRM(q.dyn_ltree,o_f);q.d_desc=new cRM(q.dyn_dtree,URS);q.bl_desc=new cRM(q.bl_tree,g9T);q.bi_buf=0;q.bi_valid=0;Z6q(q);q=0}else q=Dv(u,-2);q===0&&(u=u.state,u.window_size=2*u.w_size,pB(u.head),
u.max_lazy_match=cv[u.level].max_lazy,u.good_match=cv[u.level].good_length,u.nice_match=cv[u.level].nice_length,u.max_chain_length=cv[u.level].max_chain,u.strstart=0,u.block_start=0,u.lookahead=0,u.insert=0,u.match_length=u.prev_length=2,u.match_available=0,u.ins_h=0);u=q}}else u=-2;if(u!==0)throw Error(vv[u]);g.header&&(u=this.strm)&&u.state&&u.state.wrap===2&&(u.state.gzhead=g.header);if(g.dictionary){var f;typeof g.dictionary==="string"?f=qih(g.dictionary):Q5q.call(g.dictionary)==="[object ArrayBuffer]"?
f=new Uint8Array(g.dictionary):f=g.dictionary;g=this.strm;E=f;y=E.length;if(g&&g.state)if(f=g.state,u=f.wrap,u===2||u===1&&f.status!==42||f.lookahead)u=-2;else{u===1&&(g.adler=Yxq(g.adler,E,y,0));f.wrap=0;y>=f.w_size&&(u===0&&(pB(f.head),f.strstart=0,f.block_start=0,f.insert=0),q=new Pv.Buf8(f.w_size),Pv.arraySet(q,E,y-f.w_size,f.w_size,0),E=q,y=f.w_size);q=g.avail_in;Q=g.next_in;L=g.input;g.avail_in=y;g.next_in=0;g.input=E;for($O(f);f.lookahead>=3;){E=f.strstart;y=f.lookahead-2;do f.ins_h=(f.ins_h<<
f.hash_shift^f.window[E+3-1])&f.hash_mask,f.prev[E&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=E,E++;while(--y);f.strstart=E;f.lookahead=2;$O(f)}f.strstart+=f.lookahead;f.block_start=f.strstart;f.insert=f.lookahead;f.lookahead=0;f.match_length=f.prev_length=2;f.match_available=0;g.next_in=Q;g.input=L;g.avail_in=q;f.wrap=u;u=0}else u=-2;if(u!==0)throw Error(vv[u]);this._dict_set=!0}};
LXq=function(g,u){u=u||{};u.gzip=!0;u=new n_q(u);u.push(g,!0);if(u.err)throw u.msg||vv[u.err];return u.result};
PUT=function(g,u){var q=E9M();q&&q.publish.call(q,g.toString(),g,u)};
Dmm=function(g,u,q){var Q=E9M();if(!Q)return 0;var L=Q.subscribe(g.toString(),function(E,y){var v=_.ri("ytPubsub2Pubsub2SkipSubKey");v&&v==L||(v=function(){if(NOu[L])try{if(y&&g instanceof s5K&&g!=E)try{var J=g.dataClass,f=y;if(!f.args||!f.version)throw Error("cd");try{if(!J.version_){var t=new J;J.version_=t.version}var e=J.version_}catch(G){}if(!e||f.version!=e)throw Error("dd");try{y=Reflect.construct(J,_.Ob(f.args))}catch(G){throw G.message="yt.pubsub2.Data.deserialize(): "+G.message,G;}}catch(G){throw G.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+g.toString()+": "+G.message,G;}u.call(q||window,y)}catch(G){_.a4(G)}},yrf[g.toString()]?_.ri("yt.scheduler.instance")?_.Hv.addLowPriorityJob(v):_.uS(v,0):v())});
NOu[L]=!0;v9u[g.toString()]||(v9u[g.toString()]=[]);v9u[g.toString()].push(L);return L};
f3b=function(){var g=p$K,u=Dmm(Jrb,function(q){g.apply(void 0,arguments);j53(u)});
return u};
j53=function(g){var u=E9M();u&&(typeof g==="number"&&(g=[g]),_.Tv(g,function(q){u.unsubscribeByKey(q);delete NOu[q]}))};
E9M=function(){return _.ri("ytPubsub2Pubsub2Instance")};
MPb=function(g,u,q){q=q===void 0?{sampleRate:.1}:q;Math.random()<Math.min(.02,q.sampleRate/100)&&PUT("meta_logging_csi_event",{timerName:g,timelineData:u})};
_.tPK=function(g){return g?(g=g.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.DK(g):null:null};
_.A6=function(g){return g?(g=g.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.r0(g):null:null};
Geu=function(){eqk||(eqk=_.A6(_.FR("WORKER_SERIALIZATION_URL")));return eqk||void 0};
_.Rqu=function(){var g=Geu();$mk||g===void 0||($mk=aKK(g));return $mk};
_.w$M=function(){return typeof Worker==="function"&&Geu()?!0:!1};
_.ZEk=function(){if(_.w$M()&&!crf){var g=function(q){q=q.data;if(q.op==="gzippedGelBatch"){var Q=HEq.get(q.key);Q&&(ArM(q.gzippedBatch,Q.latencyPayload,Q.url,Q.options,Q.sendFn),HEq.delete(q.key))}},u=_.Rqu();
u&&(u.addEventListener("message",g),u.onerror=function(){HEq.clear()},crf=!0)}};
dmf=function(g,u,q,Q,L){L=L===void 0?!1:L;var E={startTime:(0,_.n0)(),ticks:{},infos:{}};if(Zv)try{var y=l3u(u);if(y!=null&&(y>I3q||y<iEm))Q(g,q);else{if(_.w("gzip_gel_with_worker")){crf||_.ZEk();var v=_.Rqu();if(v&&!L){HEq.set(CUu,{latencyPayload:E,url:g,options:q,sendFn:Q});v.postMessage({op:"gelBatchToGzip",serializedBatch:u,key:CUu});CUu++;return}}var J=LXq(bEk(u));ArM(J,E,g,q,Q)}}catch(f){_.Wk(f),Q(g,q)}else Q(g,q)};
ArM=function(g,u,q,Q,L){var E=(0,_.n0)();u.ticks.gelc=E;lt++;_.w("disable_compression_due_to_performance_degredation")&&E-u.startTime>=FXu&&(mmK++,Zv=!1);a3b(u);Q.headers||(Q.headers={});Q.headers["Content-Encoding"]="gzip";Q.postBody=g;Q.postParams=void 0;L(q,Q)};
X$u=function(g){var u=u===void 0?!1:u;var q=q===void 0?!1:q;var Q=(0,_.n0)(),L={startTime:Q,ticks:{},infos:{}},E=u?_.ri("yt.logging.gzipForFetch",!1):!0;if(Zv&&E){if(!g.body)return g;try{var y=q?g.body:typeof g.body==="string"?g.body:JSON.stringify(g.body);E=y;if(!q&&typeof y==="string"){var v=l3u(y);if(v!=null&&(v>I3q||v<iEm))return g;q=u?{level:1}:void 0;E=LXq(bEk(y),q);var J=(0,_.n0)();L.ticks.gelc=J;if(u){lt++;if((_.w("disable_compression_due_to_performance_degredation")||_.w("disable_compression_due_to_performance_degradation_lr"))&&
J-Q>=FXu)if(mmK++,_.w("abandon_compression_after_N_slow_zips_lr")){u=mmK/lt;var f=VPK/_.S8("compression_disable_point");lt>0&&lt%_.S8("compression_disable_point")===0&&u>=f&&(Zv=!1)}else Zv=!1;a3b(L)}}g.headers=Object.assign({},{"Content-Encoding":"gzip"},g.headers||{});g.body=E;return g}catch(t){return _.Wk(t),g}}else return g};
l3u=function(g){try{return(new Blob(g.split(""))).size}catch(u){return _.Wk(u),null}};
a3b=function(g){_.w("gel_compression_csi_killswitch")||!_.w("log_gel_compression_latency")&&!_.w("log_gel_compression_latency_lr")||MPb("gel_compression",g,{sampleRate:.1})};
rrS=function(){this.blockSize=-1};
II=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var g=1;g<this.blockSize;++g)this.pad_[g]=0;this.total_=this.inbuf_=0;this.reset()};
TOb=function(g){g=Object.assign({},g);delete g.Authorization;var u=_.WXf();if(u){var q=new II;q.update(_.FR("INNERTUBE_API_KEY"));q.update(u);g.hash=_.om(q.digest(),3)}return g};
bt=function(){hqf||(hqf=new _.CB("yt.innertube"));return hqf};
Yiq=function(g,u,q,Q){if(Q)return null;Q=bt().get("nextId",!0)||1;var L=bt().get("requests",!0)||{};L[Q]={method:g,request:u,authState:TOb(q),requestTime:Math.round((0,_.n0)())};bt().set("nextId",Q+1,86400,!0);bt().set("requests",L,86400,!0);return Q};
OEq=function(g){var u=bt().get("requests",!0)||{};delete u[g];bt().set("requests",u,86400,!0)};
xmu=function(g){var u=bt().get("requests",!0);if(u){for(var q in u){var Q=u[q];if(!(Math.round((0,_.n0)())-Q.requestTime<6E4)){var L=Q.authState,E=TOb(_.$RT(!1));_.pH.equals(L,E)&&(L=Q.request,"requestTimeMs"in L&&(L.requestTimeMs=Math.round((0,_.n0)())),KXS(g,Q.method,L,{}));delete u[q]}}bt().set("requests",u,86400,!0)}};
BOq=function(g){var u;return(g=g==null?void 0:(u=g.error)==null?void 0:u.code)&&g>=400&&g<=599?!1:!0};
zqb=function(g){var u;g=g==null?void 0:(u=g.error)==null?void 0:u.code;return!(g!==400&&g!==415)};
keh=function(){if(n9b)return n9b();var g={};n9b=z8("LogsDatabaseV2",{objectStores:(g.LogsRequestsStore={addedAtVersion:2},g),shared:!1,upgrade:function(u,q,Q){q(2)&&dN(u,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});q(3);q(5)&&(Q=Q.objectStore("LogsRequestsStore"),Q.JSC$10994_wrapped.indexNames.contains("newRequest")&&Q.JSC$10994_wrapped.deleteIndex("newRequest"),F7(Q,"newRequestV2",["status","interface","timestamp"]));q(7)&&u.JSC$10979_wrapped.objectStoreNames.contains("sapisid")&&u.JSC$10979_wrapped.deleteObjectStore("sapisid");
q(9)&&u.JSC$10979_wrapped.objectStoreNames.contains("SWHealthLog")&&u.JSC$10979_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return n9b()};
aI=function(g){return _.WW(keh(),g)};
o9q=function(g,u){var q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return q={startTime:(0,_.n0)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},y.yield(aI(u),2);if(y.nextAddress!=3)return Q=y.yieldResult,L=Object.assign({},g,{options:JSON.parse(JSON.stringify(g.options)),interface:_.FR("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),y.yield(Q.put("LogsRequestsStore",L),3);E=y.yieldResult;q.ticks.tc=(0,_.n0)();Sif(q);return y.return(E)})};
Umh=function(g,u){var q,Q,L,E,y,v,J,f,t;return _.D(function(e){if(e.nextAddress==1)return q={startTime:(0,_.n0)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},e.yield(aI(u),2);if(e.nextAddress!=3)return Q=e.yieldResult,L=_.FR("INNERTUBE_CONTEXT_CLIENT_NAME",0),E=[g,L,0],y=[g,L,(0,_.n0)()],v=IDBKeyRange.bound(E,y),J="prev",_.w("use_fifo_for_networkless")&&(J="next"),f=void 0,t=g==="NEW"?"readwrite":"readonly",_.w("use_readonly_for_get_most_recent_by_status_killswitch")&&(t="readwrite"),
e.yield(_.T8(Q,["LogsRequestsStore"],{mode:t,enableRetries:!0},function(G){return _.kQ(G.objectStore("LogsRequestsStore").index("newRequestV2"),{query:v,direction:J},function(R){R.getValue()&&(f=R.getValue(),g==="NEW"&&(f.status="QUEUED",R.update(f)))})}),3);
q.ticks.tc=(0,_.n0)();Sif(q);return e.return(f)})};
gHZ=function(g,u){var q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(aI(u),2);q=Q.yieldResult;return Q.return(_.T8(q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(L){var E=L.objectStore("LogsRequestsStore");return E.get(g).then(function(y){if(y)return y.status="QUEUED",E.put(y).then(function(){return y})})}))})};
uhf=function(g,u,q,Q){q=q===void 0?!0:q;var L;return _.D(function(E){if(E.nextAddress==1)return E.yield(aI(u),2);L=E.yieldResult;return E.return(_.T8(L,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(y){var v=y.objectStore("LogsRequestsStore");return v.get(g).then(function(J){return J?(J.status="NEW",q&&(J.sendCount+=1),Q!==void 0&&(J.options.compress=Q),v.put(J).then(function(){return J})):C0.resolve(void 0)})}))})};
qEh=function(g,u){var q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(aI(u),2);q=Q.yieldResult;return Q.return(q.delete("LogsRequestsStore",g))})};
QTf=function(g){var u,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(aI(g),2);u=Q.yieldResult;q=(0,_.n0)()-2592E6;return Q.yield(_.T8(u,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(L){return YQ(L.objectStore("LogsRequestsStore"),{},function(E){if(E.getValue().timestamp<=q)return E.delete().then(function(){return E.continue()})})}),0)})};
LyT=function(){_.D(function(g){return g.yield(zhT("LogsDatabaseV2"),0)})};
Sif=function(g){_.w("nwl_csi_killswitch")||MPb("networkless_performance",g,{sampleRate:1})};
_.PFf=function(g){return _.WW(EHf(),g)};
NLZ=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.PFf(g),2);u=Q.yieldResult;q=(0,_.n0)()-2592E6;return Q.yield(_.T8(u,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(L){return YQ(L.objectStore("SWHealthLog"),{},function(E){if(E.getValue().timestamp<=q)return E.delete().then(function(){return E.continue()})})}),0)})};
sTM=function(g){var u;return _.D(function(q){if(q.nextAddress==1)return q.yield(_.PFf(g),2);u=q.yieldResult;return q.yield(u.clear("SWHealthLog"),0)})};
_.VI=function(g,u,q,Q,L,E,y){L=L===void 0?"":L;E=E===void 0?!1:E;y=y===void 0?!1:y;if(g)if(q&&!ZQ("cobalt"))_.Wk(new _.Ji("Legacy referrer-scrubbed ping detected")),g&&yoZ(g,void 0,{scrubReferrer:!0});else if(L)XCJ(g,u,"POST",L,Q);else if(_.FR("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Q||y)XCJ(g,u,"GET","",Q,void 0,E,y);else{b:{try{c:{var v=new vHM({url:g});if(v.urlParamValues_.dsh==="1")var J=null;else{var f=v.urlParamValues_.ae;if(f==="1"){var t=v.urlParamValues_.adurl;if(t)try{J={version:3,directUrl:decodeURIComponent(t),
asyncUrl:$qK(v.JSC$9783_url_,"act=1","ri=1",DYq(v))};break c}catch(H){}}J=f==="2"?{version:4,directUrl:$qK(v.JSC$9783_url_,"dct=1","suid="+v.suid_,"ri=1"),asyncUrl:$qK(v.JSC$9783_url_,"act=1","ri=1","suid="+v.suid_)}:null}}if(J){var e=_.YB(g);var G=!(!e||!e.endsWith("/aclk")||_.U7(g,"ri")!=="1");break b}}catch(H){}G=!1}if(G){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(g,"")){var R=!0;break b}}catch(H){}R=!1}R?(u&&u(),q=!0):q=!1}else q=!1;q||yoZ(g,u)}};
yoZ=function(g,u,q){q=q===void 0?{}:q;var Q=new Image,L=""+p13++;Jok[L]=Q;Q.onload=Q.onerror=function(){u&&Jok[L]&&u();delete Jok[L]};
q.scrubReferrer&&(Q.referrerPolicy="no-referrer");Q.src=g};
X7=function(g,u){jTJ(g,u==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
faT=function(g){var u;return((u=document.featurePolicy)==null?0:u.allowedFeatures().includes("attribution-reporting"))?g+"&nis=6":g+"&nis=5"};
Myh=function(g){if(!g)return!1;try{var u;if(((u=_.hM(g))==null?void 0:u.asm)==="4")return!0}catch(q){_.a4(q)}return!1};
jTJ=function(g,u){u?(g=faT(g),_.VI(g,void 0,void 0,void 0,"",!0,!0)):_.VI(g)};
eE3=function(){tyu||(tyu=new _.CB("yt.offline"));return tyu};
GyZ=function(g){if(_.w("offline_error_handling")){var u=eE3().get("errors",!0)||{};u[g.message]={name:g.name,stack:g.stack};g.level&&(u[g.message].level=g.level);eE3().set("errors",u,2592E3,!0)}};
RET=function(g,u,q,Q){Q=Q===void 0?!1:Q;u=_.w("web_fp_via_jspb")?Object.assign({},u):u;_.w("use_cfr_monitor")&&$Yq(g,u);if(_.w("use_request_time_ms_header"))u.headers&&KS(g)&&(u.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.n0)())));else{var L;if((L=u.postParams)==null?0:L.requestTimeMs)u.postParams.requestTimeMs=Math.round((0,_.n0)())}q&&Object.keys(u).length===0?_.VI(g):u.compress?u.postBody?(typeof u.postBody!=="string"&&(u.postBody=JSON.stringify(u.postBody)),dmf(g,u.postBody,
u,_.Ek,Q)):dmf(g,JSON.stringify(u.postParams),u,hNZ,Q):_.Ek(g,u)};
w1J=function(g,u){_.w("use_event_time_ms_header")&&KS(g)&&(u.headers||(u.headers={}),u.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.n0)())));return u};
_.Hrq=function(){coS||(coS=new _.rN({logOfflineErrors:!0,enablePolling:!0}));return coS};
$Yq=function(g,u){var q=u.onError?u.onError:function(){};
u.onError=function(L,E){Wv().requestComplete(g,!1);q(L,E)};
var Q=u.onSuccess?u.onSuccess:function(){};
u.onSuccess=function(L,E){Wv().requestComplete(g,!0);Q(L,E)}};
_.AoZ=function(){return _.h1(document.location.toString())!=="www.youtube-nocookie.com"};
_.Iau=function(){return _.ri("ytNetworklessLoggingInitializationOptions")?_.ZrJ.isNwlInitialized:_.laJ};
irK=function(g,u){if(_.w("polymer_on_demand_shady_dom")){var q;var Q=(q=g.__shady_native_firstElementChild)!=null?q:g.firstElementChild}else Q=g.firstElementChild;for(;Q;){if(g=u(Q)?Q:irK(Q,u))return g;Q=Q.nextElementSibling}return null};
_.brF=function(){var g=document;if("visibilityState"in g)return g.visibilityState;var u=CFS+"VisibilityState";if(u in g)return g[u]};
_.dYF=function(g,u){var q;TX(g,function(Q){q=u[Q];return!!q});
return q};
_.YO=function(g){var u=Fyf(g);u?u.focus(void 0):_.h6(g)};
Fyf=function(g){return(g=irK(g,function(u){return _.BD(u)?mYb(u)&&!!u.offsetParent:!1}))?g:null};
_.h6=function(g,u){g.hasAttribute("tabindex")||g.setAttribute("tabindex","-1");g.focus(u)};
aah=function(g,u,q,Q){Q=Q===void 0?{}:Q;g.addEventListener&&(u!="mouseenter"||"onmouseenter"in document?u!="mouseleave"||"onmouseenter"in document?u=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(u="MozMousePixelScroll"):u="mouseout":u="mouseover");return _.pH.findKey(Or,function(L){var E=typeof L[4]==="boolean"&&L[4]==!!Q,y=_.zM(L[4])&&_.zM(Q)&&_.pH.equals(L[4],Q);return!!L.length&&L[0]==g&&L[1]==u&&L[2]==q&&(E||y)})};
_.xO=function(g,u,q,Q){Q=Q===void 0?{}:Q;if(!g||!g.addEventListener&&!g.attachEvent)return"";var L=aah(g,u,q,Q);if(L)return L;L=++VyK.count+"";var E=!(u!="mouseenter"&&u!="mouseleave"||!g.addEventListener||"onmouseenter"in document);var y=E?function(v){v=new KB(v);if(!_.ep(v.relatedTarget,function(J){return J==g},!0))return v.currentTarget=g,v.type=u,q.call(g,v)}:function(v){v=new KB(v);
v.currentTarget=g;return q.call(g,v)};
y=_.V1(y);g.addEventListener?(u=="mouseenter"&&E?u="mouseover":u=="mouseleave"&&E?u="mouseout":u=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(u="MozMousePixelScroll"),X13()||typeof Q==="boolean"?g.addEventListener(u,y,Q):g.addEventListener(u,y,!!Q.capture)):g.attachEvent("on"+u,y);Or[L]=[g,u,q,y,Q];return L};
_.Wyq=function(g,u,q){var Q=Q===void 0?{}:Q;var L=_.xO(g,u,function(){_.roq(L);q.apply(g,arguments)},Q)};
_.roq=function(g){g&&(typeof g=="string"&&(g=[g]),_.Tv(g,function(u){if(u in Or){var q=Or[u],Q=q[0],L=q[1],E=q[3];q=q[4];Q.removeEventListener?X13()||typeof q==="boolean"?Q.removeEventListener(L,E,q):Q.removeEventListener(L,E,!!q.capture):Q.detachEvent&&Q.detachEvent("on"+L,E);delete Or[u]}}))};
Bv=function(g){this.callback_=g;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(g=0;g<4;g++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.xO(window,"mousemove",(0,_.EH)(this.onMouseMove_,this));this.timerId_=_.qu((0,_.EH)(this.checkPosition_,this),25)};
YEq=function(){var g={};var u=g.preferMobileEvents===void 0?!1:g.preferMobileEvents;g=g.enableScrollEventListener===void 0?!0:g.enableScrollEventListener;if(_.ri("_lact",window)==null){var q=parseInt(_.FR("LACT"),10);q=isFinite(q)?Date.now()-Math.max(q,0):-1;_.xQ("_lact",q,window);_.xQ("_fact",q,window);q==-1&&_.zX();TLb(window,u,g);new Bv(function(){hEJ("mouse",100)})}};
TLb=function(g,u,q){u=u===void 0?!1:u;q=q===void 0?!0:q;_.xO(g.document,"keydown",_.zX);_.xO(g.document,"keyup",_.zX);_.xO(g.document,"mousedown",_.zX);_.xO(g.document,"mouseup",_.zX);u?_.xO(g,"touchmove",function(){hEJ("touchmove",200)},{passive:!0}):(_.xO(g,"resize",function(){hEJ("resize",200)}),q&&_.xO(g,"scroll",function(){hEJ("scroll",200)}));
_.xO(g.document,"touchstart",_.zX,{passive:!0});_.xO(g.document,"touchend",_.zX,{passive:!0})};
hEJ=function(g,u){Orh[g]||(Orh[g]=!0,_.Hv.addLowPriorityJob(function(){_.zX();Orh[g]=!1},u))};
_.zX=function(){_.ri("_lact",window)==null&&YEq();var g=Date.now();_.xQ("_lact",g,window);_.ri("_fact",window)==-1&&_.xQ("_fact",g,window);(g=_.ri("ytglobal.ytUtilActivityCallback_"))&&g()};
_.nB=function(){var g=_.ri("_lact",window);return g==null?-1:Math.max(Date.now()-g,0)};
_.Ur=function(g,u,q){var Q=_.kO();if(Q&&u){var L=Q.subscribe(g,function(){var E=arguments,y=function(){Sa[L]&&u.apply&&typeof u.apply=="function"&&u.apply(q||window,E)};
try{_.Kyq[g]?y():_.uS(y,0)}catch(v){_.a4(v)}},q);
Sa[L]=!0;oI[g]||(oI[g]=[]);oI[g].push(L);return L}return 0};
_.xYM=function(g){var u=_.kO();u&&(typeof g==="number"?g=[g]:typeof g==="string"&&(g=[parseInt(g,10)]),_.Tv(g,function(q){u.unsubscribeByKey(q);delete Sa[q]}))};
_.BLS=function(g,u){var q=_.kO();q&&q.publish.apply(q,arguments)};
_.nHh=function(g){var u=_.kO();if(u)if(u.clear(g),g)zEM(g);else for(var q in oI)zEM(q)};
_.kO=function(){return _.Qq.ytPubsubPubsubInstance};
zEM=function(g){oI[g]&&(g=oI[g],_.Tv(g,function(u){Sa[u]&&delete Sa[u]}),g.length=0)};
kyK=function(){var g,u;return"h5vcc"in g9&&((g=g9.h5vcc.traceEvent)==null?0:g.traceBegin)&&((u=g9.h5vcc.traceEvent)==null?0:u.traceEnd)?1:"performance"in g9&&g9.performance.mark&&g9.performance.measure?2:0};
SEb=function(g){var u=kyK();switch(u){case 1:g9.h5vcc.traceEvent.traceBegin("YTLR",g);break;case 2:g9.performance.mark(g+"-start");break;case 0:break;default:_.qE(u,"unknown trace type")}};
oHS=function(g){var u=kyK();switch(u){case 1:g9.h5vcc.traceEvent.traceEnd("YTLR",g);break;case 2:u=g+"-start";var q=g+"-end";g9.performance.mark(q);g9.performance.measure(g,u,q);break;case 0:break;default:_.qE(u,"unknown trace type")}};
UYf=function(g){var u,q;(q=(u=window).onerror)==null||q.call(u,g.message,"",0,0,g)};
gqS=function(g){if(_.w("web_lifecycle_error_handling_killswitch"))return g();try{return g()}catch(u){UYf(u)}};
u0Z=function(g){return[g.auth===void 0?"undefined":g.auth,g.isJspb===void 0?"undefined":g.isJspb,g.cttAuthInfo===void 0?"undefined":g.cttAuthInfo,g.tier===void 0?"undefined":g.tier].join("/")};
_.c=function(g,u){if(g)return g[u.name]};
q_=function(){var g=_.ri("yt.logging.ims");g||(g=new uD,_.xQ("yt.logging.ims",g));return g};
vqZ=function(g,u){if(g.endpoint==="log_event"){qpm(g);var q=Q9M(g),Q=LHq(g.payload)||"",L=Eqf(Q),E=200;if(L){if(L.enabled===!1&&!_.w("web_payload_policy_disabled_killswitch"))return;E=Pah(L.tier);if(E===400){Nvk(g,u);return}}QC[q]=!0;q={cttAuthInfo:q,isJspb:!1,tier:E};q_().storePayload(q,g.payload);s9m(u,!1,q,y9Z(Q))}};
peK=function(g,u,q){if(u.endpoint==="log_event"){qpm(void 0,u);var Q=Q9M(u,!0),L=Eqf(g),E=200;if(L){if(L.enabled===!1&&!_.w("web_payload_policy_disabled_killswitch"))return;E=Pah(L.tier);if(E===400){DyT(g,u,q);return}}QC[Q]=!0;Q={cttAuthInfo:Q,isJspb:!0,tier:E};q_().storePayload(Q,Wn(u.payload));s9m(q,!0,Q,y9Z(g))}};
s9m=function(g,u,q,Q){u=u===void 0?!1:u;Q=Q===void 0?!1:Q;g&&(Lw=new g);g=_.S8("tvhtml5_logging_max_batch_ads_fork")||_.S8("tvhtml5_logging_max_batch")||_.S8("web_logging_max_batch")||100;var L=(0,_.n0)(),E=J9M(u,q.tier),y=E.lastDebounceQueueFromLogTimeMs;Q&&(E.useVideoStatsEndPoint=!0);Q=0;q&&(Q=q_().getSequenceCount(q));var v=function(){j9m({writeThenSend:!0},u,q.tier)};
Q>=1E3?v():Q>=g?fcZ||(fcZ=MTh(function(){v();fcZ=void 0},0)):L-y>=10&&(tTb(u,q.tier),E.lastDebounceQueueFromLogTimeMs=L)};
Nvk=function(g,u){if(g.endpoint==="log_event"){_.w("more_accurate_gel_parser")&&q_().storePayload({isJspb:!1},g.payload);qpm(g);var q=Q9M(g),Q=new Map;Q.set(q,[g.payload]);var L=LHq(g.payload)||"";u&&(Lw=new u);return new _.Ez(function(E,y){Lw&&Lw.isReady()?eGh(Q,Lw,E,y,{bypassNetworkless:!0},!0,y9Z(L)):E()})}};
DyT=function(g,u,q){if(u.endpoint==="log_event"){qpm(void 0,u);var Q=Q9M(u,!0),L=new Map;L.set(Q,[Wn(u.payload)]);q&&(Lw=new q);return new _.Ez(function(E){Lw&&Lw.isReady()?Gcm(L,Lw,E,{bypassNetworkless:!0},!0,y9Z(g)):E()})}};
Q9M=function(g,u){var q="";if(g.dangerousLogToVisitorSession)q="visitorOnlyApprovedKey";else if(g.cttAuthInfo){if(u===void 0?0:u){u=g.cttAuthInfo.token;q=g.cttAuthInfo;var Q=new $yJ;q.videoId?Q.setVideoId(q.videoId):q.playlistId&&P6(Q,2,RGK,IH(q.playlistId));weK[u]=Q}else u=g.cttAuthInfo,q={},u.videoId?q.videoId=u.videoId:u.playlistId&&(q.playlistId=u.playlistId),c9F[g.cttAuthInfo.token]=q;q=g.cttAuthInfo.token}return q};
j9m=function(g,u,q){g=g===void 0?{}:g;u=u===void 0?!1:u;new _.Ez(function(Q,L){var E=J9M(u,q),y=E.useVideoStatsEndPoint;E.useVideoStatsEndPoint=!1;HeK(E.queueTimer);HeK(E.queueMaxTimer);E.queueMaxTimer=0;Lw&&Lw.isReady()?q===void 0&&_.w("enable_web_tiered_gel")?A9J(Q,L,g,u,300,y):A9J(Q,L,g,u,q,y):(tTb(u,q),Q())})};
A9J=function(g,u,q,Q,L,E){var y=Lw;q=q===void 0?{}:q;Q=Q===void 0?!1:Q;L=L===void 0?200:L;E=E===void 0?!1:E;var v=new Map,J=new Map,f={isJspb:Q,cttAuthInfo:void 0,tier:L},t={isJspb:Q,cttAuthInfo:void 0};if(Q){u=_.N(Object.keys(QC));for(L=u.next();!L.done;L=u.next())L=L.value,J=_.w("enable_web_tiered_gel")?q_().smartExtractMatchingEntries({keys:[f,t],sizeLimit:1E3}):q_().extractMatchingEntries({isJspb:!0,cttAuthInfo:L}),J.length>0&&v.set(L,J),(_.w("web_fp_via_jspb_and_json")&&q.writeThenSend||!_.w("web_fp_via_jspb_and_json"))&&
delete QC[L];Gcm(v,y,g,q,!1,E)}else{v=_.N(Object.keys(QC));for(f=v.next();!f.done;f=v.next())f=f.value,t=_.w("enable_web_tiered_gel")?q_().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:f,tier:L},{isJspb:!1,cttAuthInfo:f}],sizeLimit:1E3}):q_().extractMatchingEntries({isJspb:!1,cttAuthInfo:f}),t.length>0&&J.set(f,t),(_.w("web_fp_via_jspb_and_json")&&q.writeThenSend||!_.w("web_fp_via_jspb_and_json"))&&delete QC[f];eGh(J,y,g,u,q,!1,E)}};
tTb=function(g,u){g=g===void 0?!1:g;u=u===void 0?200:u;var q=function(){j9m({writeThenSend:!0},g,u)},Q=J9M(g,u),L=Q===Zeb||Q===lcq?5E3:IcT;
_.w("web_gel_timeout_cap")&&!Q.queueMaxTimer&&(L=MTh(function(){q()},L),Q.queueMaxTimer=L);
HeK(Q.queueTimer);L=_.FR("LOGGING_BATCH_TIMEOUT",_.S8("web_gel_debounce_ms",1E4));_.w("shorten_initial_gel_batch_timeout")&&ie3&&(L=CaK);L=MTh(function(){_.S8("gel_min_batch_size")>0?q_().getSequenceCount({cttAuthInfo:void 0,isJspb:g,tier:u})>=beq&&q():q()},L);
Q.queueTimer=L};
eGh=function(g,u,q,Q,L,E,y){L=L===void 0?{}:L;var v=Math.round((0,_.n0)()),J=g.size,f=dy3(y);g=_.N(g);var t=g.next();for(y={};!t.done;y={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},t=g.next()){var e=_.N(t.value);t=e.next().value;e=e.next().value;y.batchRequest=_.pH.unsafeClone({context:_.DRS(u.config_||_.Sj())});if(!_.xu(e)&&!_.w("throw_err_when_logevent_malformed_killswitch")){Q();break}y.batchRequest.events=e;
(e=c9F[t])&&FHb(y.batchRequest,t,e);delete c9F[t];y.dangerousLogToVisitorSession=t==="visitorOnlyApprovedKey";myF(y.batchRequest,v,y.dangerousLogToVisitorSession);acm(L);y.onSuccess$jscomp$3=function(G){_.w("start_client_gcf")&&_.Hv.addLowPriorityJob(function(){return _.D(function(R){return R.yield(VTm(G),0)})});
J--;J||q()};
y.networkFailures=0;y.onError$jscomp$5=function(G){return function(){G.networkFailures++;if(L.bypassNetworkless&&G.networkFailures===1)try{KXS(u,f,G.batchRequest,Xeq({writeThenSend:!0},G.dangerousLogToVisitorSession,G.onSuccess$jscomp$3,G.onError$jscomp$5,E)),ie3=!1}catch(R){_.a4(R),Q()}J--;J||q()}}(y);
try{KXS(u,f,y.batchRequest,Xeq(L,y.dangerousLogToVisitorSession,y.onSuccess$jscomp$3,y.onError$jscomp$5,E)),ie3=!1}catch(G){_.a4(G),Q()}}};
Gcm=function(g,u,q,Q,L,E){Q=Q===void 0?{}:Q;var y=Math.round((0,_.n0)()),v={value:g.size},J=new Map([].concat(_.na(g)));J=_.N(J);for(var f=J.next();!f.done;f=J.next()){var t=_.N(f.value).next().value,e=g.get(t);f=new N_;var G=u.config_||_.Sj(),R=new sz,H=new r9J;_.EU(H,1,G.innertubeContextHostLanguage);_.EU(H,2,G.innertubeContextGeoLocation);_.Uk(H,16,G.innertubeContextClientNameFieldNumber);_.EU(H,17,G.innertubeContextClientVersion);if(G.innertubeContextClientConfigInfo){var l=G.innertubeContextClientConfigInfo,
d=new ut;l.coldConfigData&&_.EU(d,1,l.coldConfigData);l.appInstallData&&_.EU(d,6,l.appInstallData);l.coldHashData&&_.EU(d,3,l.coldHashData);l.hotHashData&&d.setHotHashData(l.hotHashData);_.FV(H,62,d)}(l=_.Qq.devicePixelRatio)&&l!=1&&_.gN(H,65,_.Qp(l));l=l0f();l!==""&&_.EU(H,54,l);l=iWJ();if(l.length>0){d=new WHJ;for(var F=0;F<l.length;F++){var V=new yC;V.setKey(l[F].key);P6(V,2,Tvh,IH(l[F].value));v6(d,15,yC,V)}_.FV(R,5,d)}E_K(G,H);PdS(R);N$b(H);sES(G,H);yRk(H);_.w("start_client_gcf")&&v_k(H);_.FR("DELEGATED_SESSION_ID")&&
!_.w("pageid_as_header_web")&&(G=new Df,_.EU(G,3,_.FR("DELEGATED_SESSION_ID")));!_.w("fill_delegate_context_in_gel_killswitch")&&(l=_.FR("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(d=_.o0(R,Df,3)||new Df,G=R,l=_.EU(d,18,l),_.FV(G,3,l));G=H;l=_.N(Object.entries(_.hM(_.FR("DEVICE",""))));for(d=l.next();!d.done;d=l.next())F=_.N(d.value),d=F.next().value,F=F.next().value,d==="cbrand"?_.EU(G,12,F):d==="cmodel"?_.EU(G,13,F):d==="cbr"?_.EU(G,87,F):d==="cbrver"?_.EU(G,88,F):d==="cos"?_.EU(G,18,
F):d==="cosver"?_.EU(G,19,F):d==="cplatform"&&_.Uk(G,42,EZq(F));R.setClient(H);_.FV(f,1,R);if(H=weK[t])a:{if(_.Sp(H,pw(H,RGK,1)))R=1;else if(H.getPlaylistId())R=2;else break a;_.FV(f,4,H);H=f.getContext()||new sz;G=_.o0(H,Df,3)||new Df;l=new J_;l.setToken(t);_.Uk(l,1,R);v6(G,12,J_,l);_.FV(H,3,G)}delete weK[t];t=t==="visitorOnlyApprovedKey";hGb()||_.jQ(f,2,y);!t&&(R=_.FR("EVENT_ID"))&&(H=Ypb(),G=new Oe3,_.EU(G,1,R),_.jQ(G,2,H),_.FV(f,5,G));acm(Q);if(_.w("jspb_serialize_with_worker")&&(R=_.Rqu())&&
Q.writeThenSend){_.KHJ.set(xym,{client:u,resolve:q,networklessOptions:Q,isIsolated:L,useVSSEndpoint:E,dangerousLogToVisitorSession:t,requestsOutstanding:v});R.postMessage({op:"gelBatchToSerialize",batchRequest:Wn(f),clientEvents:e,key:xym});xym++;break}if(e){R=[];for(H=0;H<e.length;H++)try{R.push(new fw(e[H]))}catch(z){_.a4(new _.Ji("Transport failed to deserialize "+String(e[H])))}e=R}else e=[];e=_.N(e);for(R=e.next();!R.done;R=e.next())v6(f,3,fw,R.value);e={startTime:(0,_.n0)(),ticks:{},infos:{}};
f=f.serialize();e.ticks.geljspc=(0,_.n0)();_.w("log_jspb_serialize_latency")&&MPb("gel_jspb_serialize",e,{sampleRate:.1});_.BvZ(f,u,q,Q,L,E,t,v)}};
_.BvZ=function(g,u,q,Q,L,E,y,v){Q=Q===void 0?{}:Q;v=v===void 0?{value:0}:v;E=dy3(E);Q=Xeq(Q,y,function(J){_.w("start_client_gcf")&&_.Hv.addLowPriorityJob(function(){return _.D(function(f){return f.yield(VTm(J),0)})});
v.value--;v.value||q()},function(){v.value--;
v.value||q()},L);
Q.headers["Content-Type"]="application/json+protobuf";Q.postBodyFormat="JSPB";Q.postBody=g;KXS(u,E,"",Q);ie3=!1};
acm=function(g){_.w("always_send_and_write")&&(g.writeThenSend=!1)};
Xeq=function(g,u,q,Q,L){g={retry:!0,onSuccess:q,onError:Q,networklessOptions:g,dangerousLogToVisitorSession:u,bypassMonitoring:!!L,headers:{},postBodyFormat:"",postBody:"",compress:_.w("compress_gel")||_.w("compress_gel_lr")};hGb()&&(g.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.n0)())));return g};
myF=function(g,u,q){hGb()||(g.requestTimeMs=String(u));_.w("unsplit_gel_payloads_in_logs")&&(g.unsplitGelPayloadsInLogs=!0);!q&&(u=_.FR("EVENT_ID"))&&(q=Ypb(),g.serializedClientEventId={serializedEventId:u,clientCounter:String(q)})};
Ypb=function(){var g=_.FR("BATCH_CLIENT_COUNTER")||0;g||(g=Math.floor(Math.random()*65535/2));g++;g>65535&&(g=1);_.di("BATCH_CLIENT_COUNTER",g);return g};
FHb=function(g,u,q){if(q.videoId)var Q="VIDEO";else if(q.playlistId)Q="PLAYLIST";else return;g.credentialTransferTokenTargetId=q;g.context=g.context||{};g.context.user=g.context.user||{};g.context.user.credentialTransferTokens=[{token:u,scope:Q}]};
qpm=function(g,u){var q=_.o4("il_payload_scraping")==="enable_il_payload_scraping";if(!_.ri("yt.logging.transport.enableScrapingForTest"))if(q)zGS=[],_.xQ("yt.logging.transport.enableScrapingForTest",!0),_.xQ("yt.logging.transport.scrapedPayloadsForTesting",zGS),_.xQ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.xQ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.xQ("yt.logging.transport.scrapeClientEvent",!0);else return;q=_.ri("yt.logging.transport.scrapedPayloadsForTesting");var Q=_.ri("yt.logging.transport.payloadToScrape");u&&(u=_.ri("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(u.payload)())&&q.push(u);u=_.ri("yt.logging.transport.scrapeClientEvent");if(Q&&Q.length>=1)for(var L=0;L<Q.length;L++)if(g&&g.payload[Q[L]])if(u)q.push(g.payload);else{var E=void 0;q.push(((E=g)==null?void 0:E.payload)[Q[L]])}_.xQ("yt.logging.transport.scrapedPayloadsForTesting",
q)};
hGb=function(){return _.w("use_request_time_ms_header")||_.w("lr_use_request_time_ms_header")};
MTh=function(g,u){return _.w("transport_use_scheduler")===!1?_.uS(g,u):_.w("logging_avoid_blocking_during_navigation")||_.w("lr_logging_avoid_blocking_during_navigation")?_.M_(_.Hv,function(){if(_.nqF().currentState==="none")g();else{var q={};_.nqF().install((q.none={callback:g},q))}},u):_.M_(_.Hv,g,u)};
HeK=function(g){_.w("transport_use_scheduler")?_.Hv.cancelJob(g):_.L0(g)};
VTm=function(g){var u,q,Q,L,E,y,v,J,f,t;return _.D(function(e){return e.nextAddress==1?(Q=(u=g)==null?void 0:(q=u.responseContext)==null?void 0:q.globalConfigGroup,L=_.c(Q,kcf),y=(E=Q)==null?void 0:E.hotHashData,v=_.c(Q,Spq),f=(J=Q)==null?void 0:J.coldHashData,(t=_.Bk().resolve(_.xv(t_)))?y?L?e.yield(oqk(t,y,L),2):e.yield(oqk(t,y),2):e.jumpTo(2):e.return()):f?v?e.yield(UyM(t,f,v),0):e.yield(UyM(t,f),0):e.jumpTo(0)})};
J9M=function(g,u){u=u===void 0?200:u;return g?u===300?Zeb:gyk:u===300?lcq:ugF};
Eqf=function(g){if(_.w("enable_web_tiered_gel")){g=qIb[g||""];var u,q,Q,L=_.Bk().resolve(_.xv(t_))==null?void 0:(u=eQ())==null?void 0:(q=u.loggingHotConfig)==null?void 0:(Q=q.eventLoggingConfig)==null?void 0:Q.payloadPolicies;if(L)for(u=0;u<L.length;u++)if(L[u].payloadNumber===g)return L[u]}};
LHq=function(g){g=Object.keys(g);g=_.N(g);for(var u=g.next();!u.done;u=g.next())if(u=u.value,qIb[u])return u};
Pah=function(g){switch(g){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}};
y9Z=function(g){return g==="gelDebuggingEvent"};
dy3=function(g){return(g===void 0?0:g)&&_.w("vss_through_gel_video_stats")?"video_stats":"log_event"};
w9=function(g,u,q,Q){Q=Q===void 0?{}:Q;var L={},E=Math.round(Q.timestamp||(0,_.n0)());L.eventTimeMs=E<Number.MAX_SAFE_INTEGER?E:0;L[g]=u;g=_.nB();L.context={lastActivityMs:String(Q.timestamp||!isFinite(g)?-1:g)};Q.sequenceGroup&&!_.w("web_gel_sequence_info_killswitch")&&(g=L.context,u=Q.sequenceGroup,u={index:QsJ(u),groupKey:u},g.sequence=u,Q.endOfSequence&&delete Ro[Q.sequenceGroup]);_.w("web_tag_automated_log_events")&&(L.context.automatedLogEventSource=Q.automatedLogEventSource);(Q.sendIsolatedPayload?
Nvk:vqZ)({endpoint:"log_event",payload:L,cttAuthInfo:Q.cttAuthInfo,dangerousLogToVisitorSession:Q.dangerousLogToVisitorSession},q)};
QsJ=function(g){Ro[g]=g in Ro?Ro[g]+1:0;return Ro[g]};
_.H6=function(g,u,q){q=q===void 0?{}:q;var Q=c6;_.mW("ytLoggingEventsDefaultDisabled",!1)&&c6===c6&&(Q=null);w9(g,u,Q,q)};
_.A_=function(){if(_.w("web_fp_via_jspb")){var g=!0;g=g===void 0?!1:g;var u=Llu;Llu=[];if(u){u=_.N(u);for(var q=u.next();!q.done;q=u.next())q=q.value,g?w9(q.payloadName,q.payload,c6,q.options):_.H6(q.payloadName,q.payload,q.options)}j9m(void 0,!0);if(!_.w("web_fp_via_jspb_and_json"))return}j9m(void 0,!1)};
Eyu=function(g,u){var q;if((q=u)==null?0:q.componentStack)return u;if(g=g.componentStack)u||(u={}),u.componentStack=g;return u};
P2Z=function(){_.Tv(_.FR("ERRORS")||[],function(g){_.Zf.apply(null,g)});
_.di("ERRORS",[])};
_.lD=function(g){_.Zf(g)};
_.Io=function(g){_.Zf(g,"WARNING")};
Nyk=function(g){g instanceof Error?_.Zf(g):(g=_.zM(g)?JSON.stringify(g):String(g),g=new _.Ji(g),g.name="RejectedPromiseError",_.Io(g))};
ssm=function(g,u,q,Q,L,E){u=u===void 0?"Unknown file":u;q=q===void 0?0:q;var y=!1,v=NFK("log_window_onerror_fraction");if(v&&Math.random()<v)y=!0;else{v=document.getElementsByTagName("script");for(var J=0,f=v.length;J<f;J++)if(v[J].src.indexOf("/debug-")>0){y=!0;break}}y&&(y=!1,L?y=!0:(typeof g==="string"?v=g:ErrorEvent&&g instanceof ErrorEvent?(y=!0,v=g.message,u=g.filename,q=g.lineno,Q=g.colno):(v="Unknown error",u="Unknown file",q=0),L=new _.Ji(v),L.name="UnhandledWindowError",L.message=v,L.fileName=
u,L.lineNumber=q,isNaN(Q)?delete L.columnNumber:L.columnNumber=Q),_.w("wiz_enable_component_stack_propagation_killswitch")||(E=Eyu(L,E)),E&&_.iD(L,E),y?_.Zf(L):_.Io(L))};
_.Zf=function(g,u,q,Q,L,E,y,v){E=E===void 0?{}:E;E.name=q||_.FR("INNERTUBE_CONTEXT_CLIENT_NAME",1);E.version=Q||_.FR("INNERTUBE_CONTEXT_CLIENT_VERSION");q=E;u=u===void 0?"ERROR":u;y=y===void 0?!1:y;u=u===void 0?"ERROR":u;y=y===void 0?!1:y;if(g&&(g.hasOwnProperty("level")&&g.level&&(u=g.level),_.w("console_log_js_exceptions")&&(Q=[],Q.push("Name: "+g.name),Q.push("Message: "+g.message),g.hasOwnProperty("params")&&Q.push("Error Params: "+JSON.stringify(g.params)),g.hasOwnProperty("args")&&Q.push("Error args: "+
JSON.stringify(g.args)),Q.push("File name: "+g.fileName),Q.push("Stacktrace: "+g.stack),Q=Q.join("\n"),window.console.log(Q,g)),!(y7T>=5))){Q=[];L=_.N(vyF);for(E=L.next();!E.done;E=L.next()){E=E.value;try{E()&&Q.push(E())}catch(d){}}Q=[].concat(_.na(D0q),_.na(Q));var J=pYS(g);L=J.message||"Unknown Error";E=J.name||"UnknownError";var f=J.stack||g.stacktrace||"Not available";if(f.startsWith(E+": "+L)){var t=f.split("\n");t.shift();f=t.join("\n")}t=J.lineNumber||"Not available";J=J.fileName||"Not available";
var e=0;if(g.hasOwnProperty("args")&&g.args&&g.args.length)for(var G=0;G<g.args.length&&!(e=LcZ(g.args[G],"params."+G,q,e),e>=500);G++);else if(g.hasOwnProperty("params")&&g.params){var R=g.params;if(typeof g.params==="object")for(G in R){if(R[G]){var H="params."+G,l=Nu(R[G]);q[H]=l;e+=H.length+l.length;if(e>500)break}}else q.params=Nu(R)}if(Q.length)for(G=0;G<Q.length&&!(e=LcZ(Q[G],"params.context."+G,q,e),e>=500);G++);navigator.vendor&&!q.hasOwnProperty("vendor")&&(q["device.vendor"]=navigator.vendor);
G={message:L,name:E,lineNumber:t,fileName:J,stack:f,params:q,sampleWeight:1};q=Number(g.columnNumber);isNaN(q)||(G.lineNumber=G.lineNumber+":"+q);if(g.level==="IGNORED")g=0;else a:{g=J73();q=_.N(g.messageWeights);for(Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,G.message&&G.message.match(Q.messageRegExp)){g=Q.weight;break a}g=_.N(g.callbackWeights);for(q=g.next();!q.done;q=g.next())if(q=q.value,q.callback(G)){g=q.weight;break a}g=1}G.sampleWeight=g;g=_.N(jsS);for(q=g.next();!q.done;q=g.next())if(q=
q.value,q.patternsForType[G.name])for(L=_.N(q.patternsForType[G.name]),Q=L.next();!Q.done;Q=L.next())if(E=Q.value,Q=G.message.match(E.regexp)){G.params["params.error.original"]=Q[0];L=E.groups;E={};for(t=0;t<L.length;t++)E[L[t]]=Q[t+1],G.params["params.error."+L[t]]=Q[t+1];G.message=q.messageFn(E);break}G.params||(G.params={});g=J73();G.params["params.errorServiceSignature"]="msg="+g.messageWeights.length+"&cb="+g.callbackWeights.length;G.params["params.serviceWorker"]="false";_.Qq.document&&_.Qq.document.querySelectorAll&&
(G.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Cw(f7h,"sample")).constructor!==Cw&&(G.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(G);if(G.sampleWeight!==0&&!MJ3.has(G.message)){if(y)tJJ(u===void 0?"ERROR":u,G);else{u=u===void 0?"ERROR":u;u==="ERROR"?(bD.publish("handleError",G),_.w("record_app_crashed_web")&&ezb===0&&G.sampleWeight===1&&(ezb++,y={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.w("report_client_error_with_app_crash_ks")||
(y.systemHealth={crashData:{clientError:{logMessage:{message:G.message}}}}),_.H6("appCrashed",y)),Gk3++):u==="WARNING"&&bD.publish("handleWarning",G);if(_.w("kevlar_gel_error_routing")){y=u;v=v===void 0?{}:v;b:{g=_.N($0M);for(q=g.next();!q.done;q=g.next())if(ZQ(q.value.toLowerCase())){g=!0;break b}g=!1}if(g)v=void 0;else{q={stackTrace:G.stack};G.fileName&&(q.filename=G.fileName);g=G.lineNumber&&G.lineNumber.split?G.lineNumber.split(":"):[];g.length!==0&&(g.length!==1||isNaN(Number(g[0]))?g.length!==
2||isNaN(Number(g[0]))||isNaN(Number(g[1]))||(q.lineNumber=Number(g[0]),q.columnNumber=Number(g[1])):q.lineNumber=Number(g[0]));g={level:"ERROR_LEVEL_UNKNOWN",message:G.message,errorClassName:G.name,sampleWeight:G.sampleWeight};y==="ERROR"?g.level="ERROR_LEVEL_ERROR":y==="WARNING"&&(g.level="ERROR_LEVEL_WARNNING");q={isObfuscated:!0,browserStackInfo:q};v.pageUrl=window.location.href;v.kvPairs=[];_.FR("FEXP_EXPERIMENTS")&&(v.experimentIds=_.FR("FEXP_EXPERIMENTS"));Q=_.FR("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!NFK("web_disable_gel_stp_ecatcher_killswitch")&&Q)for(L=_.N(Object.keys(Q)),E=L.next();!E.done;E=L.next())E=E.value,v.kvPairs.push({key:E,value:String(Q[E])});if(Q=G.params)for(L=_.N(Object.keys(Q)),E=L.next();!E.done;E=L.next())E=E.value,v.kvPairs.push({key:"client."+E,value:String(Q[E])});Q=_.FR("SERVER_NAME");L=_.FR("SERVER_VERSION");Q&&L&&(v.kvPairs.push({key:"server.name",value:Q}),v.kvPairs.push({key:"server.version",value:L}));v={errorMetadata:v,stackTrace:q,logMessage:g}}v&&(_.H6("clientError",
v),(y==="ERROR"||_.w("errors_flush_gel_always_killswitch"))&&_.A_())}_.w("suppress_error_204_logging")||tJJ(u,G)}try{MJ3.add(G.message)}catch(d){}y7T++}}};
tJJ=function(g,u){var q=u.params||{};g={urlParams:{a:"logerror",t:"jserror",type:u.name,msg:u.message.substr(0,250),line:u.lineNumber,level:g,"client.name":q.name},postParams:{url:_.FR("PAGE_NAME",window.location.href),file:u.fileName},method:"POST"};q.version&&(g["client.version"]=q.version);if(g.postParams){u.stack&&(g.postParams.stack=u.stack);u=_.N(Object.keys(q));for(var Q=u.next();!Q.done;Q=u.next())Q=Q.value,g.postParams["client."+Q]=q[Q];if(q=_.FR("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(u=
_.N(Object.keys(q)),Q=u.next();!Q.done;Q=u.next())Q=Q.value,g.postParams[Q]=q[Q];(q=_.FR("LAVA_VERSION"))&&(g.postParams["lava.version"]=q);q=_.FR("SERVER_NAME");u=_.FR("SERVER_VERSION");q&&u&&(g.postParams["server.name"]=q,g.postParams["server.version"]=u)}_.Ek(_.FR("ECATCHER_REPORT_HOST","")+"/error_204",g)};
_.Rzb=function(g,u){u=u===void 0?"ERROR":u;var q=q===void 0?{}:q;var Q=_.ri("ytbin.polymer.shared.lib.tampering.info");Q&&(Q=Q())&&(q["params.tamperingInfo"]=Q.sort().join(","));_.Zf(g,u,void 0,void 0,!0,q)};
_.iD=function(g){var u=_.UT.apply(1,arguments);g.args||(g.args=[]);Array.isArray(g.args)&&g.args.push.apply(g.args,_.na(u))};
wYS=function(g){g.level="IGNORED"};
c7q=function(g,u){D0q.push(g);u();D0q.pop()};
d9=function(g,u){for(var q in u)u.hasOwnProperty(q)&&(g=_.u0(g,q,u[q]));return g};
_.Hnq=function(g,u,q){q=q===void 0?!1:q;if(!g)return null;if(g.adInfoDialogEndpoint||g.backstageImageUploadEndpoint||g.confirmDialogEndpoint||g.clientActionEndpoint||g.createBackstagePostDialogEndpoint||g.createCommentReplyDialogEndpoint||g.flowEndpoint||g.guideBuilderEndpoint||g.liveChatDialogEndpoint||g.modalEndpoint||g.openPopupAction||g.shareEndpoint||g.shareEntityEndpoint||g.showLiveChatItemEndpoint||g.subscriptionManagerEndpoint||g.unlimitedCreateFamilyEndpoint||g.unlimitedFamilyFlowEndpoint||
g.updateCommentDialogEndpoint||g.updateCommentReplyDialogEndpoint||g.userFeedbackEndpoint||g.videoEditorEndpoint||g.ypcCancelSurveyEndpoint)return u=_.S8("polymer_report_client_url_requested_rate"),!q&&Math.random()<u&&_.Io(new _.Ji("urlForEndpoint used on client endpoint",g)),null;var Q=_.S8("polymer_report_missing_web_navigation_endpoint_rate");if(g.liveChatEndpoint||g.liveChatReplayEndpoint)Q=0;if(!g.commandMetadata&&!g.clickTrackingParams&&Math.random()<Q){var L={},E;for(E in g)L[E]="1";_.Io(new _.Ji("Missing navigation data",
L))}L="";if(g.commandMetadata&&g.commandMetadata.webCommandMetadata&&g.commandMetadata.webCommandMetadata.url)L=g.commandMetadata.webCommandMetadata.url;else if(g.searchEndpoint)Math.random()<Q&&_.Io(new _.Ji("Should not manually handle search",g)),L="/results?search_query="+encodeURIComponent(g.searchEndpoint.query).replace(/%20/g,"+"),g.searchEndpoint.params&&(L+="&sp="+g.searchEndpoint.params);else if(g.watchEndpoint)Math.random()<Q&&_.Io(new _.Ji("Should not manually handle watch",g)),L="/watch?v="+
g.watchEndpoint.videoId,g.watchEndpoint.playlistId&&(L+="&list="+g.watchEndpoint.playlistId),g.watchEndpoint.index&&(L+="&index="+g.watchEndpoint.index),g.watchEndpoint.startTimeSeconds&&(L+="&t="+g.watchEndpoint.startTimeSeconds);else if(g.browseEndpoint)Q=g.browseEndpoint.browseId,(E=g.browseEndpoint.canonicalBaseUrl)?L=E:Q&&(L=Q.substr(0,2),L=L==="FE"?Q==="FEwhat_to_watch"?"/":Q==="FEmy_videos"?"/my_videos":"/feed/"+Q.substr(2):L==="VL"?"/playlist?list="+Q.substr(2):"/channel/"+Q),L&&g.browseEndpoint.query&&
(L=d9(L+"/search",{query:g.browseEndpoint.query})),L&&g.browseEndpoint.params&&(L=d9(L,{params:g.browseEndpoint.params}));else{if(g.urlEndpoint)return g.urlEndpoint.url;g.signInEndpoint?(L="https://accounts.google.com/ServiceLogin",Q={},_.pH.extend(Q,u||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),u=Q):g.uploadEndpoint?L="//www.youtube.com/upload":g.liveChatEndpoint?(L=g.liveChatEndpoint,Q=_.pH.clone(L),_.zM(L.continuation)&&(E=Object.keys(L.continuation)[0],
Q.continuation=L.continuation[E].continuation),L=d9("/youtubei/v1/live_chat/get_live_chat",Q)):g.liveChatReplayEndpoint?(L=_.pH.clone(g.liveChatReplayEndpoint),L.currentPlayerState&&(_.pH.extend(L,L.currentPlayerState),delete L.currentPlayerState),L=d9("/youtubei/v1/live_chat/get_live_chat_replay",L)):g.liveChatItemContextMenuEndpoint?L=d9("/youtubei/v1/live_chat/get_item_context_menu",g.liveChatItemContextMenuEndpoint):g.liveChatPurchaseMessageEndpoint?L=d9("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
g.liveChatPurchaseMessageEndpoint):g.openSuperStickerBuyFlowCommand?L=d9("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",g.openSuperStickerBuyFlowCommand):g.videoEditEndpoint?L=d9("/edit",{video_id:g.videoEditEndpoint.videoId}):g.liveDashboardEndpoint?L=g.liveDashboardEndpoint.videoId?d9("/live_dashboard",{v:g.liveDashboardEndpoint.videoId}):"/live_dashboard":g.signalNavigationEndpoint&&g.signalNavigationEndpoint.signal&&g.signalNavigationEndpoint.signal==="WEBCAM"?L="/webcam":g.getPdgBuyFlowCommand&&
(L=d9(g.getPdgBuyFlowCommand.buyflowApiPath,{params:g.getPdgBuyFlowCommand.params}))}return L||q?d9(L,u||{}):(_.Io(new _.Ji("Error: Can't construct url for endpoint","keys:"+Object.keys(g).sort().join(","),g)),null)};
A7h=function(g){if(g){if(g.browseEndpoint)return!!g.browseEndpoint.nofollow;if(g.watchEndpoint)return!!g.watchEndpoint.nofollow;if(g.urlEndpoint)return!!g.urlEndpoint.nofollow}return!1};
_.l7q=function(g,u){var q=u+g,Q=Zn3.get(q);if(Q)return Q;g=u+"-"+g.replace(/([A-Z])/g,"-$1").toLowerCase();Zn3.set(q,g);return g};
I7u=function(g){var u=_.iL(g,"action")||_.iL(g,"command")||_.iL(g,"endpoint");if(!u)return null;u=_.l7q(u,"yt");_.c(g,_.FU)&&(u+="-"+_.c(g,_.FU).signal.toLowerCase().replace(/_/g,"-"));return u};
d0M=function(g){try{var u=Object.keys(g)}catch(L){return[]}for(var q=0;q<u.length;q++){var Q=u[q];if(inb.test(Q)||C2k.test(Q))return bnu(g[Q])}return[]};
bnu=function(g){return g.command?[g.command]:g.onExecutionAction?[g.onExecutionAction]:g.onResponseReceivedCommand?[g.onResponseReceivedCommand]:g.updateFlowCommand?[g.updateFlowCommand]:g.clientActions?g.clientActions:g.action?[g.action]:g.actions||g.commands||g.onResponseReceivedActions||g.onResponseReceivedCommands||g.onResponseReceivedEndpoints||[]};
m0F=function(g,u){u=u===void 0?!1:u;var q=_.Bk().resolve(_.xv(mn));q||(q=new Flh,_.Bk().addProvider({provide:mn,useValue:q}));return q&&g&&!_.pH.isEmpty(g)?q.getUrl(g,u):""};
a7Z=function(g,u,q){q=q===void 0?"":q;if(u){g.data=u;var Q=m0F(u);Q?(u8(g,Q),A7h(u)||!KS(Q)?g.rel="nofollow":g.removeAttribute("rel"),_.c(u,_.ao)&&_.c(u,_.ao).target==="TARGET_NEW_WINDOW"?g.target="_blank":q?g.target=q:g.removeAttribute("target")):(g.removeAttribute("href"),g.removeAttribute("rel"),g.removeAttribute("target"))}};
_.W6=function(g,u){var q=nh;if(cL())VJ3(g,function(){var E=_.UT.apply(0,arguments);aY(q,function(){u.apply(null,_.na(E))})});
else{var Q=_.VC.getInstance(),L=PHq(u);qRq(function(){L.value=u});
_.I4(function(){var E={},y=_.XU(Q,(E[g]=function(){var v=_.UT.apply(0,arguments);aY(q,function(){L.value.apply(L,_.na(v))})},E));
return function(){var v={};_.r9(Q,(v[g]="",v),y)}})}};
XYf=function(g){var u=nh,q=RY;return{getFn:function(){return function(Q){if(!u.isDisposed){var L=function(){return g(Q)};
Af(function(){return _.D6(L)},q)!==!0&&Q.stopPropagation()}}}}};
r7f=function(g){if(typeof g.children==="function")return g.children(),null;g=_.N(g.children);for(var u=g.next();!u.done;u=g.next())u=u.value,u();return null};
WlZ=function(g){var u;return((u=g.prototype)==null?void 0:u.render)===void 0};
Tyb=function(g){var u=Array.isArray(g.items)?g.items:Array.from(g.items);g=g.children;return(Array.isArray(u)?u:Array.from(u)).map(g)};
YIk=function(g,u,q){q=q===void 0?!1:q;Af(function(){return hzq(g,u,q)})};
hzq=function(g,u,q){var Q=null;lX++;q=(q===void 0?0:q)?OnZ:KlT;try{Q=q(g,function(){Tp(u)}),iX(!1)}catch(L){throw iX(!0),L;
}return Q===null?g:Q};
Tp=function(g){if(g!==void 0&&g!==null)if(g instanceof pS)for(var u=T9;hf()!=null&&wXF in hf()&&u.contains(hf());)K2();else if(Array.isArray(g))for(u=_.N(g),g=u.next();!g.done;g=u.next())Tp(g.value);else if(g instanceof XV||g instanceof ex||"function"==typeof _.kG&&g instanceof _.kG)wUF(g.toString());else if(uL(g)){if(hf()!==g){var q,Q;u=(Q=(q=RY)==null?void 0:q.name)!=null?Q:"unknown";throw Error("jc`"+g.tagName+"`"+u);}K2()}else if(g!=null&&g.contentKind===LS||g instanceof qa||XUJ(g))for(u=WLq(g),
u=Array.from(u.childNodes),u=_.N(u),g=u.next();!g.done;g=u.next())T9.appendChild(g.value),K2();else if(xV(g)&&(g=g.toString()),q=typeof g,q==="boolean"||q==="number"||q==="string")wUF(g);else if(typeof g==="function"){u=T9;var L=hf();L&&(L._isSignalTextNode||L._isSafeOrSanitizedHtmlNode)||JJk(u,L,g);K2()}else if(g.type===Tyb)Tp(g.type(Object.assign({},g.props,{children:g.children[0]})));else{if(typeof g.type==="string"){a:{g.__open||MZk(g.type,g.props.idomKey);L=T9;for(var E in g.props)if(g.props[E]!==
x0m){var y=g.props[E];q=BL;q.push(E);q.push(y)}E=gB.attributes;E=E===void 0?h_:E;y=T9;Q=vCJ(y);q=E;E=BL;Q=Q._attrsArr||(Q._attrsArr=qAZ(E.length));for(var v=!Q.length||!1,J=0;J<E.length;J+=2){var f=E[J];if(v)Q[J]=f;else if(Q[J]!==f)break;var t=E[J+1];if(v||Q[J+1]!==t)Q[J+1]=t,Rtf(y,f,t,q)}if(J<E.length||J<Q.length){for(J=v=J;J<Q.length;J+=2)Y1[Q[J]]=Q[J+1];for(J=v;J<E.length;J+=2)v=E[J],f=E[J+1],Y1[v]!==f&&Rtf(y,v,f,q),Q[J]=v,Q[J+1]=f,delete Y1[v];uwF(Q,E.length);for(u in Y1)Rtf(y,u,void 0,q),delete Y1[u]}u=
ByT;ByT=y=n2.length;for(q=u;q<y;q+=5)(0,n2[q])(n2[q+1],n2[q+2],n2[q+3],n2[q+4]);ByT=u;uwF(n2,u);uwF(E,0);pXq(L,g.props,!0);if((g.props.skip||g.props.skipchildren)&&T9.hasChildNodes())O9=T9.lastChild;else{if(g.type==="style"&&zth(g.children)===null){O9=T9.lastChild;u=void 0;break a}Tp(g.children)}tZF();g.__open&&(g.__open=!1);C6K(L,g.props);u=L}return u}if(g.type===_.U9)Tp(g.children);else if(!zzT(g)){u=g;try{nyb(u)}catch(e){g=e,(y=gB.handleError)==null||y.call.apply(y,[gB].concat(_.na(Va(g,(L=u.type)==
null?void 0:L.TAG_NAME))))}u.__open&&(tZF(),u.__open=!1)}}};
kkb=function(g,u){var q;WlZ(g)?q=new tM(u,g):q=new g(u);q.__type=g;q.__updateContext={nextState:q.state,isForced:!1};return q};
nyb=function(g){var u=g.type,q=u.TAG_NAME;if(u===r7f)g.props.children=g.children,u(g.props);else{g.children.length>0&&(g.props.children=g.children);var Q;(Q=g.props).idomKey||(Q.idomKey=u);if(q){var L=MZk(q,g.props.idomKey);g.__open=!0;var E=L.__instance}E||(E=kkb(u,g.props),E.props=null,L&&(L.__instance=E,E.el=L));var y;q=((y=E.__updateContext)!=null?y:{nextState:E.state,isForced:!1}).nextState;E.__updateContext=void 0;u.getDerivedStateFromProps&&(q=u.getDerivedStateFromProps(g.props,q));E.props=
g.props;E.state=q;y=function(){var v=E;fS.beforeRender(v);var J=v.render(v.props);J?(v.props.idomKey&&(J.props.idomKey=v.props.idomKey),v=J):v=void 0;if(J=v)if(J.__open=g.__open,v=Tp(J),g.__open=J.__open,!u.TAG_NAME)if(v)u.TAG_NAME=v.tagName.toLowerCase(),v.__instance=E,E.el=v;else{var f;if((f=E.hooks)==null?0:f.length){var t;(t=gB.handleError)==null||t.call.apply(t,[gB].concat(_.na(Va(Error("qd")))))}}E.didPatch();fS.didPatch(E)};
(q=E.functionComponent)?yjq(q,y,E.props.debugInstance):y()}};
zzT=function(g){var u=g.type;if(!WlZ(u)||u===r7f||u.componentType===wB)return!1;g.props.children=g.children.length>1?g.children:g.children[0];var q,Q=(q=g.props.idomKey)!=null?q:g.type,L;if(hf()&&((L=hf()[Nq])==null?void 0:L.key)===Q){var E=hf(),y=E[Nq];if(!y)throw Error("ic`"+E.tagName);var v;(v=y.updateSignalsFromIdomProps)==null||v.call(y,g.props);SIS(y);return!0}if(oyf.has(u.name))throw v=u.name,u=(y=(E=RY)==null?void 0:E.name)!=null?y:"unknown",Error("hc`"+v+"`"+u);g.props.renderedFromIdom=!0;
(v=yjq(g.type,function(){return Nwq(g.type,g.props)},g.props.debugInstance))&&U0S(v);
return!0};
gbK=function(g){for(var u=0;u<DY(g).length;u++)K2()};
SIS=function(g){var u=uaK();if(u)gbK(u);else for(var q=0;q<g.numNodes;q++)(u=uaK())?gbK(u):K2()};
uaK=function(){var g;return(g=hf()[Nq])==null?void 0:g.sourceDynamicRange};
U0S=function(g){g=FLK(g);g=Array.isArray(g)?g:[g];g=_.N(g);for(var u=g.next();!u.done;u=g.next())T9.insertBefore(u.value,hf()),K2()};
qfJ=function(){var g=yJJ(),u=hfm(function(){return{value:0}},[]);
return[u.value,function(q){if(Mq!==null){var Q;(Q=gB.handleError)==null||Q.call.apply(Q,[gB].concat(_.na(Va(Error("rd")))))}u.value=typeof q==="function"?q(u.value):q;g.__updateContext={nextState:g.state,isForced:!0};q=kF(g.effectContext);Q=gi(!1);try{if(g.el){var L,E={},y=(E.props=g.props,E.type=g.__type,E.children=(L=g.props.children)!=null?L:[],E[oY]=!0,E);try{YIk(g.el,y,!0)}catch(f){var v,J;(J=gB.handleError)==null||J.call.apply(J,[gB].concat(_.na(Va(f,(v=g.__type)==null?void 0:v.TAG_NAME))))}}}finally{gi(Q),
kF(q)}}]};
_.Oz=function(g,u){var q=nh,Q=function(L){aY(q,function(){u(L)})};
window.addEventListener(g,Q,void 0);_.dB(function(){window.removeEventListener(g,Q,void 0)})};
_.x1=function(g){var u=nh;return function(q){var Q,L=(Q=g.observer)!=null?Q:_.Bk().resolve(Kw);Q=Q1b(q);var E=[];g.showOption&&E.push(L.observe(q,function(){aY(u,function(){g.visibilityCallback(!0,q)})},g.showOption));
g.hideOption&&E.push(L.observe(q,function(){aY(u,function(){g.visibilityCallback(!1,q)})},g.hideOption));
g.prescanOption&&g.prescanCallback&&E.push(L.observe(q,function(){aY(u,function(){g.prescanCallback()})},g.prescanOption));
var y;Q.visibilityMonitorKeys=((y=Q.visibilityMonitorKeys)!=null?y:[]).concat(E)}};
Q1b=function(g){var u;return(u=g.polymerController)!=null?u:g};
N_f=function(g,u){var q=LZM;return _.p(_.U9,null,$TM(gB.enableLazyTsx,function(){return _.p(Ebu,{id:q,value:g,children:u})},function(){var Q=PbK(q,g);
UH(Q);Q=kF(Q);try{return u()}finally{kF(Q)}}))};
Ebu=function(g){var u=g.children;g=PbK(g.id,g.value);UH(g);g=kF(g);try{return _.p(_.U9,null,JM(u()))}finally{kF(g)}};
PbK=function(g,u){return Object.assign(Object.create(s1q),{id:g,contextValue:u})};
yZf=function(g){var u,q=nh;_.C2(function(){var Q=kF(q),L=gi(!u);try{if(u)YIk(u,g.children(),!0);else if(u=JM(g.children()),!(u instanceof Element))throw Error("sd");}finally{gi(L),kF(Q)}},"i");
return u};
DWM=function(g){var u=new vbT;u.abort(g);return u.signal};
pbF=function(){if(this.aborted){var g;throw(g=this.reason)!=null?g:new DOMException("signal is aborted without reason","AbortError");}};
feM=function(g){var u=new vbT;g=_.N(g);for(var q=g.next();!q.done;q=g.next())if(q=q.value,q.aborted){u.abort(q.reason);break}else JZq.set(u.signal,u),j1T.add(q,u.signal);return u.signal};
MVf=function(){for(var g=_.N(j1T.get(this)),u=g.next();!u.done;u=g.next())JZq.get(u.value).abort(this.reason)};
tVF=function(g){var u=new vbT;setTimeout(function(){u.abort(new DOMException("signal timed out","TimeoutError"))},g);
return u.signal};
e2h=function(){var g,u;return{promise:new Promise(function(q,Q){g=q;u=Q}),
resolve:g,reject:u}};
$Wk=function(g){var u=e2h(),q=u.promise;GxZ.set(g,{promise:q,resolve:u.resolve,reject:u.reject});B6||(B6=[],queueMicrotask(function(){var Q=[].concat(_.na(B6));B6=null;var L=GQ().loadMultiple(Q);Q=_.N(Q);for(var E=Q.next();!E.done;E=Q.next())E=E.value,L[E].then(GxZ.get(E).resolve,GxZ.get(E).reject)}));
B6.push(g);return q};
R2b=function(){_.Lh.call(this)};
wbJ=function(g,u){this.fn_=g;this.handler_=u};
zp=function(g,u){_.Lh.call(this);this.deps_=g;this.JSC$11355_id_=u;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
H3m=function(g){g=g.buf.charCodeAt(g.pos++);return cZJ[g]};
nw=function(g){var u=0,q=0;do{var Q=H3m(g);u|=(Q&31)<<q;q+=5}while(Q&32);return u<0?u+4294967296:u};
AZS=function(g,u,q,Q){var L=!0;L=L===void 0?!1:L;u=u===void 0?!1:u;Q=Q===void 0?{}:Q;var E=Q.cssRowKey||"",y=Q.combinedSignature||"";!E&&window&&window._F_cssRowKey&&(E=window._F_cssRowKey,!y&&window._F_combinedSignature&&(y=window._F_combinedSignature));if(E&&typeof window._F_installCss!=="function")throw Error("Cd");var v=Q.loaderClass||_.k1;g=Yrq(g===void 0?"base-js":g);u=new v(VxM(KkT("",g)),E,y,L,u);L=Q.useCors||g&&g.hasAttribute("crossorigin");g=Q.corsMode||g&&g.getAttribute("crossorigin");
L&&(u.useCors_=L);g&&(u.corsMode_=g);Q.urlMaxLength&&(u.urlMaxLength=Q.urlMaxLength);q&&(u.insertPos=q);Q.fetchPriority&&(u.fetchPriority=Q.fetchPriority);var J=GQ();J.JSC$10361_loader_=u;J.setBatchModeEnabled(!0);_.SQ=Q.batchingStrategy==="BATCH"?$Wk:function(f){return Promise.resolve(J.load(f))}};
Ieb=function(g,u,q){Z3T(g,u);g[u][leJ].unshift(q)};
Z3T=function(g,u){if(!g[u]||!g[u][leJ]){var q=g[u],Q=q?[q]:[];g[u]=function(){for(var L=_.N(Q),E=L.next();!E.done;E=L.next())E.value.apply(this,arguments)};
g[u][leJ]=Q}};
i3S=function(g){if(!g)return[];var u=[];g=_.N(g);for(var q=g.next();!q.done;q=g.next())q=q.value,Array.isArray(q)?u.push.apply(u,_.na(i3S(q))):u.push(q);return u};
_.gU=function(g,u){if(g&&CbZ.test(g)||g==="//")return g;if(b3F===void 0){b3F=!1;try{var q=new URL("b","http://a");q.pathname="c%20d";b3F=q.href==="http://a/c%20d"}catch(Q){}}u||(u=document.baseURI||window.location.href);if(b3F)try{return(new URL(g,u)).href}catch(Q){return g}oo||(oo=document.implementation.createHTMLDocument("temp"),oo.base=oo.createElement("base"),oo.head.appendChild(oo.base),oo.anchor=oo.createElement("a"),oo.body.appendChild(oo.anchor));oo.base.href=u;oo.anchor.href=g;return oo.anchor.href||
g};
FZk=function(g,u){return g.replace(dWF,function(q,Q,L,E){return Q+"'"+_.gU(L.replace(/["']/g,""),u)+"'"+E})};
mWq=function(g){return g.substring(0,g.lastIndexOf("/")+1)};
Xbf=function(){aef=!1;for(var g=uP.length,u=0;u<g;u++){var q=uP[u];if(q)try{q()}catch(Q){setTimeout(function(){throw Q;})}}uP.splice(0,g);
VVf+=g};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(g){console.log("["+g.is+"]: registered")};
WZF=function(g){rZf.push(g)};
qw=function(g){return T_m[g]||(T_m[g]=g.indexOf("-")<0?g:g.replace(h2J,function(u){return u[1].toUpperCase()}))};
Q8=function(g){return T_m[g]||(T_m[g]=g.replace(YfT,"-$1").toLowerCase())};
O3F=function(g,u){var q=u.parentInfo&&O3F(g,u.parentInfo);if(q)for(g=q.firstChild,q=0;g;g=g.nextSibling){if(u.parentIndex===q++)return g}else return g};
KZb=function(g,u){g=g._methodHost||g;return function(q){if(g[u])g[u](q,q.detail);else console.warn("listener method `"+u+"` not defined")}};
Lf=function(g){return g.indexOf(".")>=0};
EY=function(g){var u=g.indexOf(".");return u===-1?g:g.slice(0,u)};
xW3=function(g,u){return g.indexOf(u+".")===0};
sY=function(g,u){return u.indexOf(g+".")===0};
y8=function(g,u,q){return u+q.slice(g.length)};
B_m=function(g,u){return g===u||xW3(g,u)||sY(g,u)};
vo=function(g){if(Array.isArray(g)){for(var u=[],q=0;q<g.length;q++)for(var Q=g[q].toString().split("."),L=0;L<Q.length;L++)u.push(Q[L]);return u.join(".")}return g};
z2F=function(g){return Array.isArray(g)?vo(g).split("."):g.toString().split(".")};
DF=function(g,u,q){u=z2F(u);for(var Q=0;Q<u.length;Q++){if(!g)return;g=g[u[Q]]}q&&(q.path=u.join("."));return g};
nbh=function(g,u,q){var Q=z2F(u),L=Q[Q.length-1];if(Q.length>1){for(u=0;u<Q.length-1;u++)if(g=g[Q[u]],!g)return;g[L]=q}else g[u]=q;return Q.join(".")};
kxf=function(g,u,q){var Q=g[u];if(!Q)Q=g[u]={};else if(!g.hasOwnProperty(u)&&(Q=g[u]=Object.create(g[u]),q))for(var L in Q)for(g=Q[L],u=Q[L]=Array(g.length),q=0;q<g.length;q++)u[q]=g[q];return Q};
Jj=function(g,u,q,Q,L,E){if(u){var y=!1,v=pf++,J;for(J in q){var f=L?EY(J):J;if(f=u[f])for(var t=0,e=f.length,G=void 0;t<e&&(G=f[t]);t++)G.info&&G.info.lastRun===v||L&&!Sfq(J,G.trigger)||(G.info&&(G.info.lastRun=v),G.fn(g,J,q,Q,G.info,L,E),y=!0)}return y}return!1};
Sfq=function(g,u){if(u){var q=u.name;return q==g||!(!u.structured||!xW3(q,g))||!(!u.wildcard||!sY(q,g))}return!0};
obh=function(g,u,q,Q,L){u=typeof L.method==="string"?g[L.method]:L.method;q=L.property;u?u.call(g,g.__data[q],Q[q]):L.dynamicFn||console.warn("observer method `"+L.method+"` not defined")};
UWf=function(g,u,q,Q){q={value:q,queueProperty:!0};Q&&(q.path=Q);(0,_.j7)(g).dispatchEvent(new CustomEvent(u,{detail:q}))};
gSb=function(g,u,q,Q,L,E){E=(Q=(E?EY(u):u)!=u?u:null)?DF(g,Q):g.__data[u];Q&&E===void 0&&(E=q[u]);UWf(g,L.eventName,E,Q)};
uiq=function(g,u,q,Q,L){q=g.__data[u];ff&&(q=ff(q,L.attrName,"attribute",g));g._propertyToAttribute(u,L.attrName,q)};
QOh=function(g){var u=g.constructor.__orderedComputedDeps;if(!u){u=new Map;for(var q=g.__computeEffects,Q=qcK(g),L=Q.counts,E=Q.ready,y=Q.total;Q=E.shift();)u.set(Q,u.size),(Q=q[Q])&&Q.forEach(function(v){v=v.info.methodInfo;--y;--L[v]===0&&E.push(v)});
y!==0&&console.warn("Computed graph for "+g.localName+" incomplete; circular?");g.constructor.__orderedComputedDeps=u}return u};
qcK=function(g){var u=g.__computeInfo,q={};g=g.__computeEffects;var Q=[],L=0,E;for(E in u){var y=u[E];L+=q[E]=y.args.filter(function(J){return!J.literal}).length+(y.dynamicFn?1:0)}for(var v in g)u[v]||Q.push(v);
return{counts:q,ready:Q,total:L}};
ESq=function(g,u,q,Q,L){u=L3h(g,u,q,Q,L);if(u===Mw)return!1;L=L.methodInfo;if(g.__dataHasAccessor&&g.__dataHasAccessor[L])return g._setPendingProperty(L,u,!0);g[L]=u;return!1};
sOF=function(g,u,q,Q,L,E,y){q.bindings=q.bindings||[];Q={kind:Q,target:L,parts:E,literal:y,isCompound:E.length!==1};q.bindings.push(Q);Q.target&&Q.kind!="attribute"&&Q.kind!="text"&&!Q.isCompound&&Q.parts[0].mode==="{"&&(q=Q.parts[0],E=q.negate,Q.listenerEvent=q.event||Q8(L)+"-changed",Q.listenerNegate=E);L=u.nodeInfoList.length;for(q=0;q<Q.parts.length;q++){var v=Q.parts[q];v.compoundIndex=q;E=g;y=u;var J=Q,f=v,t=L;if(!f.literal)if(J.kind==="attribute"&&J.target[0]==="-")console.warn("Cannot set attribute "+
J.target+' because "-" is not a valid attribute starting character');else for(v=f.dependencies,J={index:t,binding:J,part:f,evaluator:E},f=0;f<v.length;f++)t=v[f],typeof t=="string"&&(t=PAF(t),t.wildcard=!0),E._addTemplatePropertyEffect(y,t.rootProperty,{fn:NTZ,info:J,trigger:t})}};
NTZ=function(g,u,q,Q,L,E,y){y=y[L.index];var v=L.binding,J=L.part;E&&J.source&&u.length>J.source.length&&v.kind=="property"&&!v.isCompound&&y.__isPropertyEffectsClient&&y.__dataHasAccessor&&y.__dataHasAccessor[v.target]?(q=q[u],u=y8(J.source,v.target,u),y._setPendingPropertyOrPath(u,q,!1,!0)&&g._enqueueClient(y)):(u=L.evaluator._evaluateBinding(g,J,u,q,Q,E),u!==Mw&&(v.isCompound&&(q=y.__dataCompoundStorage[v.target],q[J.compoundIndex]=u,u=q.join("")),v.kind==="attribute"||v.target!=="textContent"&&
(v.target!=="value"||y.localName!=="input"&&y.localName!=="textarea")||(u=u==void 0?"":u),J=u,ff&&(J=ff(J,v.target,v.kind,y)),v.kind=="attribute"?g._valueToNodeAttribute(y,J,v.target):(v=v.target,y.__isPropertyEffectsClient&&y.__dataHasAccessor&&y.__dataHasAccessor[v]?y.__readOnly&&y.__readOnly[v]||y._setPendingProperty(v,J)&&g._enqueueClient(y):g._setUnmanagedPropertyToNode(y,v,J))))};
yLk=function(g,u,q){if(q.listenerEvent){var Q=q.parts[0];g.addEventListener(q.listenerEvent,function(L){var E=q.target,y=Q.source,v=Q.negate,J=L.detail,f=J&&J.path;f?(y=y8(E,y,f),L=J&&J.value):L=L.currentTarget[E];u.__readOnly&&u.__readOnly[y]||!u._setPendingPropertyOrPath(y,v?!L:L,!0,!!f)||J&&J.queueProperty||u._invalidateProperties()})}};
vSZ=function(g,u,q,Q,L,E){E=u.static||E&&(typeof E!=="object"||E[u.methodName]);L={methodName:u.methodName,args:u.args,methodInfo:L,dynamicFn:E};for(var y=0,v=void 0;y<u.args.length&&(v=u.args[y]);y++)v.literal||g._addPropertyEffect(v.rootProperty,q,{fn:Q,info:L,trigger:v});E&&g._addPropertyEffect(u.methodName,q,{fn:Q,info:L});return L};
L3h=function(g,u,q,Q,L){Q=g._methodHost||g;var E=Q[L.methodName];if(E)return g=g._marshalArgs(L.args,u,q),g===Mw?Mw:E.apply(Q,g);L.dynamicFn||console.warn("method `"+L.methodName+"` not defined")};
DB3=function(g){for(var u="",q=0;q<g.length;q++)u+=g[q].literal||"";return u};
jOT=function(g){if(g=g.match(/([^\s]+?)\(([\s\S]*)\)/)){var u={methodName:g[1],static:!0,args:pKq};return g[2].trim()?JLb(g[2].replace(/\\,/g,"&comma;").split(","),u):u}return null};
JLb=function(g,u){u.args=g.map(function(q){q=PAF(q);q.literal||(u.static=!1);return q},this);
return u};
PAF=function(g){g=g.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var u={name:g,value:"",literal:!1},q=g[0];q==="-"&&(q=g[1]);q>="0"&&q<="9"&&(q="#");switch(q){case "'":case '"':u.value=g.slice(1,-1);u.literal=!0;break;case "#":u.value=Number(g),u.literal=!0}u.literal||(u.rootProperty=EY(g),u.structured=Lf(g),u.structured&&(u.wildcard=g.slice(-2)==".*",u.wildcard&&(u.name=g.slice(0,-2))));return u};
fgS=function(g,u,q){g=DF(g,q);g===void 0&&(g=u[q]);return g};
MU3=function(g,u,q,Q){Q={indexSplices:Q};tj&&!g._overrideLegacyUndefined&&(u.splices=Q);g.notifyPath(q+".splices",Q);g.notifyPath(q+".length",u.length);tj&&!g._overrideLegacyUndefined&&(Q.indexSplices=[])};
e7=function(g,u,q,Q,L,E){MU3(g,u,q,[{index:Q,addedCount:L,removed:E,object:u,type:"splice"}])};
tUf=function(g){g=FZk((g.body?g.body:g).textContent,g.baseURI);var u=document.createElement("style");u.textContent=g;return u};
GKZ=function(g){g=g.trim().split(/\s+/);for(var u=[],q=0;q<g.length;q++)u.push.apply(u,_.na(eBZ(g[q])));return u};
eBZ=function(g){var u=G3.import(g);if(!u)return console.warn("Could not find style data in module named",g),[];if(u._styles===void 0){g=[];g.push.apply(g,_.na(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(u)));var q=u.querySelector("template");q&&g.push.apply(g,_.na($BT(q,u.assetpath)));u._styles=g}return u._styles};
$BT=function(g,u){if(!g._styles){for(var q=[],Q=g.content.querySelectorAll("style"),L=0;L<Q.length;L++){var E=Q[L],y=E.getAttribute("include");y&&q.push.apply(q,_.na(GKZ(y).filter(function(v,J,f){return f.indexOf(v)===J})));
u&&(E.textContent=FZk(E.textContent,u));q.push(E)}g._styles=q}return g._styles};
RBM=function(g){return(g=G3.import(g))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(g):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(g){var u=[];g=g.querySelectorAll("link[rel=import][type~=css]");for(var q=0;q<g.length;q++){var Q=g[q];if(Q.import){var L=Q.import;if((Q=Q.hasAttribute("shady-unscoped"))&&!L._unscopedStyle){var E=tUf(L);E.setAttribute("shady-unscoped","");L._unscopedStyle=E}else L._style||(L._style=tUf(L));u.push(Q?L._unscopedStyle:L._style)}}return u};
cL3=function(g){g=g.trim().split(/\s+/);for(var u="",q=0;q<g.length;q++)u+=wKq(g[q]);return u};
wKq=function(g){var u=G3.import(g);if(u&&u._cssText===void 0){var q=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(u),Q=u.querySelector("template");Q&&(q+=HTS(Q,u.assetpath));u._cssText=q||null}u||console.warn("Could not find style data in module named",g);return u&&u._cssText||""};
HTS=function(g,u){var q="";g=$BT(g,u);for(u=0;u<g.length;u++){var Q=g[u];Q.parentNode&&Q.parentNode.removeChild(Q);q+=Q.textContent}return q};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(g){var u="";g=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(g);for(var q=0;q<g.length;q++)u+=g[q].textContent;return u};
$t=function(g,u){return{index:g,removed:[],addedCount:u}};
ZTK=function(g,u,q,Q){var L=0,E=0,y=0,v=0,J=Math.min(u-L,Q-E);if(L==0&&E==0)a:{for(y=0;y<J;y++)if(g[y]!==q[y])break a;y=J}if(u==g.length&&Q==q.length){v=g.length;for(var f=q.length,t=0;t<J-y&&ALm(g[--v],q[--f]);)t++;v=t}L+=y;E+=y;u-=v;Q-=v;if(u-L==0&&Q-E==0)return[];if(L==u){for(u=$t(L,0);E<Q;)u.removed.push(q[E++]);return[u]}if(E==Q)return[$t(L,u-L)];J=L;y=E;Q=Q-y+1;v=u-J+1;u=Array(Q);for(f=0;f<Q;f++)u[f]=Array(v),u[f][0]=f;for(f=0;f<v;f++)u[0][f]=f;for(f=1;f<Q;f++)for(t=1;t<v;t++)if(g[J+t-1]===
q[y+f-1])u[f][t]=u[f-1][t-1];else{var e=u[f-1][t]+1,G=u[f][t-1]+1;u[f][t]=e<G?e:G}J=u.length-1;y=u[0].length-1;Q=u[J][y];for(g=[];J>0||y>0;)J==0?(g.push(2),y--):y==0?(g.push(3),J--):(v=u[J-1][y-1],f=u[J-1][y],t=u[J][y-1],e=f<t?f<v?f:v:t<v?t:v,e==v?(v==Q?g.push(0):(g.push(1),Q=v),J--,y--):e==f?(g.push(3),J--,Q=f):(g.push(2),y--,Q=t));g.reverse();u=void 0;J=[];for(y=0;y<g.length;y++)switch(g[y]){case 0:u&&(J.push(u),u=void 0);L++;E++;break;case 1:u||(u=$t(L,0));u.addedCount++;L++;u.removed.push(q[E]);
E++;break;case 2:u||(u=$t(L,0));u.addedCount++;L++;break;case 3:u||(u=$t(L,0)),u.removed.push(q[E]),E++}u&&J.push(u);return J};
lgM=function(g,u){return ZTK(g,g.length,u,u.length)};
ALm=function(g,u){return g===u};
iTh=function(g){if(g instanceof Igk)return g.value;throw Error("Kd`"+g);};
CAM=function(g,u){for(var q in u)q===null?g.style.removeProperty(q):g.style.setProperty(q,u[q])};
bTb=function(g,u){return(g=window.getComputedStyle(g).getPropertyValue(u))?g.trim():""};
agu=function(g){requestAnimationFrame(function(){dBf?dBf(g):(F3M||(F3M=new Promise(function(u){mBM=u}),document.readyState==="complete"?mBM():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&mBM()})),F3M.then(function(){g&&g()}))})};
rLb=function(g){VUJ=g&&g.shimcssproperties?!1:XKu||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
OTM=function(g){if(!(W3S.indexOf(g)>-1)&&g!=="touchend"&&TTq&&hBJ&&Yck)return{passive:!0}};
zBZ=function(g){for(var u=K3K?["click"]:W3S,q=0,Q;q<u.length;q++)Q=u[q],g?(xBf.length=0,document.addEventListener(Q,BTZ,!0)):document.removeEventListener(Q,BTZ,!0)};
RK=function(g){var u=g.type;return W3S.indexOf(u)>-1?u==="mousemove"?(u=g.buttons===void 0?1:g.buttons,g instanceof window.MouseEvent&&!nSq&&(u=kKh[g.which]||0),!!(u&1)):(g.button===void 0?0:g.button)===0:!1};
ScZ=function(g){if(g.type==="click"){if(g.detail===0)return!0;var u=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g);if(!u.nodeType||u.nodeType!==Node.ELEMENT_NODE)return!0;u=u.getBoundingClientRect();var q=g.pageX;g=g.pageY;return!(q>=u.left&&q<=u.right&&g>=u.top&&g<=u.bottom)}return!1};
oSf=function(g,u,q){g.movefn=u;g.upfn=q;document.addEventListener("mousemove",u);document.addEventListener("mouseup",q)};
wU=function(g){document.removeEventListener("mousemove",g.movefn);document.removeEventListener("mouseup",g.upfn);g.movefn=null;g.upfn=null};
UBM=function(g,u){for(var q=document.elementFromPoint(g,u),Q=q;Q&&Q.shadowRoot&&!window.ShadyDOM;){var L=Q;Q=Q.shadowRoot.elementFromPoint(g,u);if(L===Q)break;Q&&(q=Q)}return q};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g){var u=g0f(g);return u.length>0?u[0]:g.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g){var u=g.type,q=g.currentTarget.__polymerGestures;if(q&&(q=q[u])){if(!g.__polymerGesturesHandled&&(g.__polymerGesturesHandled={},u.slice(0,5)==="touch")){var Q=g.changedTouches[0];u==="touchstart"&&g.touches.length===1&&(uEb=Q.identifier);if(uEb!==Q.identifier)return;TTq||(u==="touchstart"||u==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g)}Q=
g.__polymerGesturesHandled;if(!Q.skip){for(var L=0,E;L<co.length;L++)E=co[L],q[E.name]&&!Q[E.name]&&E.flow&&E.flow.start.indexOf(g.type)>-1&&E.reset&&E.reset();for(L=0;L<co.length;L++)E=co[L],q[E.name]&&!Q[E.name]&&(Q[E.name]=!0,E[u](g))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g){var u=g.changedTouches[0],q=g.type;if(q==="touchstart")qaK=u.clientX,Q6J=u.clientY,LEq=!1;else if(q==="touchmove"&&!LEq){LEq=!0;q="auto";for(var Q=g0f(g),L=0,E;L<Q.length;L++)if(E=Q[L],E.__polymerGesturesTouchAction){q=E.__polymerGesturesTouchAction;break}Q=!1;L=Math.abs(qaK-u.clientX);u=Math.abs(Q6J-u.clientY);g.cancelable&&(q==="none"?Q=!0:q==="pan-x"?Q=u>L:q==="pan-y"&&(Q=L>u));Q?g.preventDefault():
Ho("track")}};
ZF=function(g,u,q){return Aj[u]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,u,q),!0):!1};
lP=function(g,u,q){return Aj[u]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,u,q),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g,u,q){var Q=Aj[u],L=Q.deps,E=Q.name,y=g.__polymerGestures;y||(g.__polymerGestures=y={});for(var v=0,J,f;v<L.length;v++)J=L[v],K3K&&W3S.indexOf(J)>-1&&J!=="click"||((f=y[J])||(y[J]=f={_count:0}),f._count===0&&g.addEventListener(J,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,OTM(J)),f[E]=(f[E]||0)+1,f._count=(f._count||0)+1);g.addEventListener(u,q);Q.touchAction&&_.IK(g,Q.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g,u,q){var Q=Aj[u],L=Q.deps;Q=Q.name;var E=g.__polymerGestures;if(E)for(var y=0,v,J;y<L.length;y++)v=L[y],(J=E[v])&&J[Q]&&(J[Q]=(J[Q]||1)-1,J._count=(J._count||1)-1,J._count===0&&g.removeEventListener(v,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,OTM(v)));g.removeEventListener(u,q)};
E0f=function(g){co.push(g);for(var u=0;u<g.emits.length;u++)Aj[g.emits[u]]=g};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g){for(var u=0,q;u<co.length;u++){q=co[u];for(var Q=0,L;Q<q.emits.length;Q++)if(L=q.emits[Q],L===g)return q}return null};
_.IK=function(g,u){TTq&&g instanceof HTMLElement&&iP.run(function(){g.style.touchAction=u});
g.__polymerGesturesTouchAction=u};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g,u,q){u=new Event(u,{bubbles:!0,cancelable:!0,composed:!0});u.detail=q;(0,_.j7)(g).dispatchEvent(u);u.defaultPrevented&&(g=q.preventer||q.sourceEvent)&&g.preventDefault&&g.preventDefault()};
Ho=function(g){g=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g);g.info&&(g.info.prevent=!0)};
Cf=function(g,u,q,Q){u&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u,g,{x:q.clientX,y:q.clientY,sourceEvent:q,preventer:Q,prevent:function(L){return Ho(L)}})};
P$m=function(g,u,q){if(g.prevent)return!1;if(g.started)return!0;q=Math.abs(g.y-q);return Math.abs(g.x-u)>=5||q>=5};
NmZ=function(g,u,q){if(u){var Q=g.moves[g.moves.length-2],L=g.moves[g.moves.length-1],E=L.x-g.x,y=L.y-g.y,v=0;if(Q){var J=L.x-Q.x;v=L.y-Q.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u,"track",{state:g.state,x:q.clientX,y:q.clientY,dx:E,dy:y,ddx:J,ddy:v,sourceEvent:q,hover:function(){return UBM(q.clientX,q.clientY)}})}};
y2M=function(g,u,q){var Q=Math.abs(u.clientX-g.x),L=Math.abs(u.clientY-g.y),E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q||u);!E||s6u[E.localName]&&E.hasAttribute("disabled")||!(isNaN(Q)||isNaN(L)||Q<=25&&L<=25||ScZ(u))||g.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,"tap",{x:u.clientX,y:u.clientY,sourceEvent:u,preventer:q})};
v0k=function(g,u,q,Q,L){var E;L&&(E=typeof q==="object"&&q!==null)&&(Q=g.__dataTemp[u]);Q=Q!==q&&(Q===Q||q===q);E&&Q&&(g.__dataTemp[u]=q);return Q};
pMh=function(){if(Fz&&!m6){if(!D$q){D$q=!0;var g=document.createElement("style");g.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(g)}return!0}return!1};
j6h=function(){return J2b};
fPF=function(g,u){J2b=g;Object.setPrototypeOf(g,u.prototype);new u;J2b=null};
M$S=function(g,u){for(var q=0;q<u.length;q++){var Q=u[q];if(!!g!=!!Q.__hideTemplateChildren__)if(Q.nodeType===Node.TEXT_NODE)g?(Q.__polymerTextContent__=Q.textContent,Q.textContent=""):Q.textContent=Q.__polymerTextContent__;else if(Q.localName==="slot")if(g)Q.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.j7)((0,_.j7)(Q).parentNode).replaceChild(Q.__polymerReplaced__,Q);else{var L=Q.__polymerReplaced__;L&&(0,_.j7)((0,_.j7)(L).parentNode).replaceChild(Q,L)}else Q.style&&(g?(Q.__polymerDisplay__=
Q.style.display,Q.style.display="none"):Q.style.display=Q.__polymerDisplay__);Q.__hideTemplateChildren__=g;Q._showHideChildren&&Q._showHideChildren(g)}};
t$M=function(g){return(g=g.__dataHost)&&g._methodHost||g};
$$u=function(g,u,q){var Q=q.mutableData?edJ:aK;V8.mixin&&(Q=V8.mixin(Q));var L=function(){return Q.apply(this,arguments)||this};
_.A(L,Q);L.prototype.__templatizeOptions=q;L.prototype._bindTemplate(g);GwK(L,g,u,q);return L};
A2q=function(g,u,q,Q){var L=q.forwardHostProp;if(L&&u.hasHostProps){var E=g.localName=="template",y=u.templatizeTemplateClass;if(!y){if(E){var v=q.mutableData?RdM:wMJ;y=function(){return v.apply(this,arguments)||this};
_.A(y,v);y=u.templatizeTemplateClass=y}else{var J=g.constructor;y=function(){return J.apply(this,arguments)||this};
_.A(y,J);y=u.templatizeTemplateClass=y}var f=u.hostProps,t;for(t in f)y.prototype._addPropertyEffect("_host_"+t,y.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:c2K(L)}),y.prototype._createNotifyingProperty("_host_"+t);Xz&&Q&&HpT(u,q,Q)}g.__dataProto&&Object.assign(g.__data,g.__dataProto);if(E)fPF(g,y),g.__dataTemp={},g.__dataPending=null,g.__dataOld=null,g._enableProperties();else{Object.setPrototypeOf(g,y.prototype);u=u.hostProps;for(var e in u)e="_host_"+e,e in g&&(u=g[e],delete g[e],g.__data[e]=
u)}}};
c2K=function(g){return function(u,q,Q){g.call(u.__templatizeOwner,q.substring(6),Q[q])}};
GwK=function(g,u,q,Q){var L=q.hostProps||{},E;for(E in Q.instanceProps){delete L[E];var y=Q.notifyInstanceProp;y&&g.prototype._addPropertyEffect(E,g.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ZpZ(y)})}if(Q.forwardHostProp&&u.__dataHost)for(var v in L)q.hasHostProps||(q.hasHostProps=!0),g.prototype._addPropertyEffect(v,g.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:lPm()})};
ZpZ=function(g){return function(u,q,Q){g.call(u.__templatizeOwner,u,q,Q[q])}};
lPm=function(){return function(g,u,q){g.__dataHost._setPendingPropertyOrPath("_host_"+u,q[u],!0,!0)}};
V8=function(g,u,q){if(rU&&!t$M(g))throw Error("Qd");q=q||{};if(g.__templatizeOwner)throw Error("Rd");g.__templatizeOwner=u;var Q=(u?u.constructor:aK)._parseTemplate(g),L=Q.templatizeInstanceClass;L||(L=$$u(g,Q,q),Q.templatizeInstanceClass=L);var E=t$M(g);A2q(g,Q,q,E);q=function(){return L.apply(this,arguments)||this};
_.A(q,L);q.prototype._methodHost=E;q.prototype.__dataHost=g;q.prototype.__templatizeOwner=u;q.prototype.__hostProps=Q.hostProps;return q};
HpT=function(g,u,q){q=q.constructor._properties;g=g.propertyEffects;u=u.instanceProps;for(var Q in g)if(!(q[Q]||u&&u[Q]))for(var L=g[Q],E=0;E<L.length;E++){var y=L[E].info.part;if(!y.signature||!y.signature.static){console.warn("Property '"+Q+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
IPu=function(g,u){for(var q;u;)if(q=u.__dataHost?u:u.__templatizeInstance)if(q.__dataHost!=g)u=q.__dataHost;else return q;else u=(0,_.j7)(u).parentNode;return null};
Wo=function(g){return g.localName==="slot"};
ipq=function(){for(var g=T3.prototype,u="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),q={},Q=0;Q<u.length;q={method$jscomp$33:void 0},Q++)q.method$jscomp$33=u[Q],g[q.method$jscomp$33]=function(L){return function(){return this.node[L.method$jscomp$33].apply(this.node,arguments)}}(q)};
C$b=function(g,u){for(var q={},Q=0;Q<u.length;q={name$jscomp$450:void 0},Q++)q.name$jscomp$450=u[Q],Object.defineProperty(g,q.name$jscomp$450,{get:function(L){return function(){return this.node[L.name$jscomp$450]}}(q),
configurable:!0})};
bpF=function(){for(var g=T3.prototype,u=["textContent","innerHTML","className"],q={},Q=0;Q<u.length;q={name$jscomp$451:void 0},Q++)q.name$jscomp$451=u[Q],Object.defineProperty(g,q.name$jscomp$451,{get:function(L){return function(){return this.node[L.name$jscomp$451]}}(q),
set:function(L){return function(E){this.node[L.name$jscomp$451]=E}}(q),
configurable:!0})};
d$J=function(){hj=document.documentElement.getAttribute("dir");hj=document.documentElement.getAttribute("dir");for(var g=0;g<Yt.length;g++){var u=Yt[g];u.__autoDirOptOut||u.setAttribute("dir",hj)}};
V$q=function(){OY=!0;requestAnimationFrame(function(){OY=!1;FES(m$J);setTimeout(function(){for(var g=0,u=Kf.length;g<u;g++)aPT(Kf.shift())})})};
FES=function(g){for(;g.length;)aPT(g.shift())};
aPT=function(g){var u=g[0],q=g[1];g=g[2];try{q.apply(u,g)}catch(Q){setTimeout(function(){throw Q;})}};
_.XMT=function(g,u,q){OY||V$q();m$J.push([g,u,q])};
_.xt=function(g,u,q){OY||V$q();Kf.push([g,u,q])};
Tmq=function(g,u){u=u===void 0?!1:u;if(!r2h||!WE3||!r2h.handlesDynamicScoping)return null;var q=WE3.ScopingShim;if(!q)return null;var Q=q.scopeForNode(g),L=(0,_.j7)(g).getRootNode(),E=function(y){if((0,_.j7)(y).getRootNode()===L){var v=Array.from(r2h.nativeMethods.querySelectorAll.call(y,"*"));v.push(y);for(y=0;y<v.length;y++){var J=v[y];if((0,_.j7)(J).getRootNode()===L){var f=q.currentScopeForNode(J);f!==Q&&(f!==""&&q.unscopeNode(J,f),q.scopeNode(J,Q))}}}};
E(g);return u?(u=new MutationObserver(function(y){for(var v=0;v<y.length;v++)for(var J=y[v],f=0;f<J.addedNodes.length;f++){var t=J.addedNodes[f];t.nodeType===Node.ELEMENT_NODE&&E(t)}}),u.observe(g,{childList:!0,
subtree:!0}),u):null};
hdk=function(){document.body.removeAttribute("unresolved")};
Bmq=function(g){var u=g=g.replace(YaK,"").replace(Op3,""),q=new KEf;q.start=0;q.end=u.length;for(var Q=q,L=0,E=u.length;L<E;L++)if(u[L]==="{"){Q.rules||(Q.rules=[]);var y=Q,v=y.rules[y.rules.length-1]||null;Q=new KEf;Q.start=L+1;Q.parent=y;Q.previous=v;y.rules.push(Q)}else u[L]==="}"&&(Q.end=L+1,Q=Q.parent||q);return x$S(q,g)};
x$S=function(g,u){var q=u.substring(g.start,g.end-1);g.parsedCssText=g.cssText=q.trim();g.parent&&(q=u.substring(g.previous?g.previous.end:g.parent.start,g.start-1),q=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(q),q=q.replace(zdK," "),q=q.substring(q.lastIndexOf(";")+1),q=g.parsedSelector=g.selector=q.trim(),g.atRule=q.indexOf("@")===0,g.atRule?q.indexOf("@media")===0?g.type=4:q.match(n0h)&&(g.type=7,g.keyframesName=g.selector.split(zdK).pop()):q.indexOf("--")===
0?g.type=1E3:g.type=1);if(q=g.rules)for(var Q=0,L=q.length,E=void 0;Q<L&&(E=q[Q]);Q++)x$S(E,u);return g};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(g){return g.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var u=arguments[1],q=6-u.length;q--;)u="0"+u;return"\\"+u})};
kwb=function(g,u,q){q=q===void 0?"":q;var Q="";if(g.cssText||g.rules){var L=g.rules;if(L&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(L))for(var E=0,y=L.length,v=void 0;E<y&&(v=L[E]);E++)Q=kwb(v,u,Q);else u?u=g.cssText:(u=g.cssText,u=u.replace(SaF,"").replace(o0T,""),u=u.replace(U$K,"").replace(g2q,"")),(Q=u.trim())&&(Q="  "+Q+"\n")}Q&&(g.selector&&(q+=g.selector+" {\n"),q+=Q,g.selector&&(q+="}\n\n"));return q};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(g){g=g[0];return!!g&&!!g.selector&&g.selector.indexOf("--")===0};
qQq=function(g){if(g=uAZ[g])g._applyShimCurrentVersion=g._applyShimCurrentVersion||0,g._applyShimValidatingVersion=g._applyShimValidatingVersion||0,g._applyShimNextVersion=(g._applyShimNextVersion||0)+1};
QAK=function(g){return g._applyShimCurrentVersion===g._applyShimNextVersion};
E2K=function(g){g._applyShimValidatingVersion=g._applyShimNextVersion;g._validating||(g._validating=!0,Lbb.then(function(){g._applyShimCurrentVersion=g._applyShimNextVersion;g._validating=!1}))};
NXf=function(g){if(!g)return"";typeof g==="string"&&(g=Bmq(g));return kwb(g,PMq)};
sAk=function(g){!g.__cssRules&&g.textContent&&(g.__cssRules=Bmq(g.textContent));return g.__cssRules||null};
v2m=function(g,u,q,Q){if(g){var L=!1,E=g.type;if(Q&&E===4){var y=g.selector.match(yyh);y&&(window.matchMedia(y[1]).matches||(L=!0))}E===1?u(g):q&&E===7?q(g):E===1E3&&(L=!0);if((g=g.rules)&&!L)for(L=0,E=g.length,y=void 0;L<E&&(y=g[L]);L++)v2m(y,u,q,Q)}};
DHZ=function(g,u){var q=g.indexOf("var(");if(q===-1)return u(g,"","","");a:{var Q=0;var L=q+3;for(var E=g.length;L<E;L++)if(g[L]==="(")Q++;else if(g[L]===")"&&--Q===0)break a;L=-1}Q=g.substring(q+4,L);q=g.substring(0,q);g=DHZ(g.substring(L+1),u);E=Q.indexOf(",");if(E===-1)return u(q,Q.trim(),"",g);L=Q.substring(0,E).trim();Q=Q.substring(E+1).trim();return u(q,L,Q,g)};
pHq=function(g){if(Bo!==void 0)return Bo;if(g.__cssBuild===void 0){var u=g.getAttribute("css-build");if(u)g.__cssBuild=u;else{a:{u=g.localName==="template"?g.content.firstChild:g.firstChild;if(u instanceof Comment&&(u=u.textContent.trim().split(":"),u[0]==="css-build")){u=u[1];break a}u=""}if(u!==""){var q=g.localName==="template"?g.content.firstChild:g.firstChild;q.parentNode.removeChild(q)}g.__cssBuild=u}}return g.__cssBuild||""};
jAJ=function(g,u,q,Q){for(var L=u._noAccessors,E=Object.getOwnPropertyNames(u),y=0;y<E.length;y++){var v=E[y];if(!(v in Q))if(L)g[v]=u[v];else{var J=Object.getOwnPropertyDescriptor(u,v);J&&(J.configurable=!0,Object.defineProperty(g,v,J))}}for(var f in Jy3)u[f]&&(q[f]=q[f]||[],q[f].push(u[f]))};
fXu=function(g,u,q){u=u||[];for(var Q=g.length-1;Q>=0;Q--){var L=g[Q];L?Array.isArray(L)?fXu(L,u):u.indexOf(L)<0&&(!q||q.indexOf(L)<0)&&u.unshift(L):console.warn("behavior is null, check for missing or 404 import")}return u};
M0k=function(g,u){for(var q in u){var Q=g[q],L=u[q];g[q]=!("value"in L)&&Q&&"value"in Q?Object.assign({value:Q.value},L):L}};
G0q=function(g,u,q){var Q={},L=function(){return u.apply(this,arguments)||this};
_.A(L,u);L._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(y)for(var J=0,f;J<y.length;J++)f=y[J],f.properties&&this.createProperties(f.properties),f.observers&&this.createObservers(f.observers,f.properties);g.properties&&this.createProperties(g.properties);g.observers&&this.createObservers(g.observers,g.properties);this._prepareTemplate()}else u._finalizeClass.call(this)};
L.prototype.created=function(){u.prototype.created.call(this);var J=Q.created;if(J)for(var f=0;f<J.length;f++)J[f].call(this)};
L.prototype._registered=function(){var J=L.prototype;if(!J.hasOwnProperty("__hasRegisterFinished")){J.__hasRegisterFinished=!0;u.prototype._registered.call(this);Fz&&v(J);J=Object.getPrototypeOf(this);var f=Q.beforeRegister;if(f)for(var t=0;t<f.length;t++)f[t].call(J);if(f=Q.registered)for(t=0;t<f.length;t++)f[t].call(J)}};
L.prototype._applyListeners=function(){u.prototype._applyListeners.call(this);var J=Q.listeners;if(J)for(var f=0;f<J.length;f++){var t=J[f];if(t)for(var e in t)this._addMethodEventListenerToNode(this,e,t[e])}};
L.prototype._ensureAttributes=function(){var J=Q.hostAttributes;if(J)for(var f=J.length-1;f>=0;f--){var t=J[f],e;for(e in t)this._ensureAttribute(e,t[e])}u.prototype._ensureAttributes.call(this)};
L.prototype.ready=function(){u.prototype.ready.call(this);var J=Q.ready;if(J)for(var f=0;f<J.length;f++)J[f].call(this)};
L.prototype.attached=function(){u.prototype.attached.call(this);var J=Q.attached;if(J)for(var f=0;f<J.length;f++)J[f].call(this)};
L.prototype.detached=function(){u.prototype.detached.call(this);var J=Q.detached;if(J)for(var f=0;f<J.length;f++)J[f].call(this)};
L.prototype.attributeChanged=function(J,f,t){u.prototype.attributeChanged.call(this);var e=Q.attributeChanged;if(e)for(var G=0;G<e.length;G++)e[G].call(this,J,f,t)};
_.z3.Object.defineProperties(L,{properties:{configurable:!0,enumerable:!0,get:function(){var J={};if(y)for(var f=0;f<y.length;f++)M0k(J,y[f].properties);M0k(J,g.properties);return J}},
observers:{configurable:!0,enumerable:!0,get:function(){var J=[];if(y)for(var f=0,t;f<y.length;f++)t=y[f],t.observers&&(J=J.concat(t.observers));g.observers&&(J=J.concat(g.observers));return J}}});
if(q){Array.isArray(q)||(q=[q]);var E=u.prototype.behaviors;var y=fXu(q,null,E);L.prototype.behaviors=E?E.concat(q):y}var v=function(J){if(y)for(var f=y,t=0;t<f.length;t++)jAJ(J,f[t],Q,t0J);jAJ(J,g,Q,exh)};
Fz||v(L.prototype);L.generatedFrom=g;return L};
cyS=function(g){var u=typeof g!=="string"?g:{is:g,notifyObserversOnUndefined:!0};u.fastInit===void 0&&(u.fastInit=!0);return function(q){if(!u.disableInheritanceCheck&&Object.getPrototypeOf(q.prototype).constructor!==_.nf)throw Error("Vd");var Q=q.prototype;Q.is=u.is;Ieb(Q,"created",function(){this.hostElement=this;this.polymerController=this});
$HZ(Q,q,u.fastInit);u.notifyObserversOnUndefined&&(Q._overrideLegacyUndefined=!0);if(Rxq)for(var L=_.N(Object.getOwnPropertyNames(Q)),E=L.next();!E.done;E=L.next()){E=E.value;var y=Object.getOwnPropertyDescriptor(Q,E);y.enumerable===!1&&(y.enumerable=!0,Object.defineProperty(Q,E,y))}if("template"in q)var v=function(){return q.template};
else u.template!==void 0&&(v=u.template);if(v!==void 0){var J;Object.defineProperty(Q,"_template",{get:function(){J===void 0&&(J=v());return J},
set:function(f){J=f},
configurable:!0,enumerable:!0})}Polymer(Q);q[wHm]=Q}};
HNS=function(g){g=g===void 0?{}:g;g.fastInit===void 0&&(g.fastInit=!0);return function(u){if(!g.disableInheritanceCheck&&Object.getPrototypeOf(u.prototype).constructor!==kt)throw Error("Wd");$HZ(u.prototype,u,g.fastInit)}};
$HZ=function(g,u,q){q=q===void 0?!1:q;AyS(u);q?Ieb(g,"created",function(){this.disableEnforceFastDefaultValuesCheck||ZNK(u,this)}):Ieb(g,"ready",function(){for(var Q={},L=_.N(i3S(this.behaviors)),E=L.next();!E.done;E=L.next())E=E.value,E.properties&&Object.assign(Q,lXq(this,E.properties));
Object.assign(Q,lXq(this,this.properties));ZNK(u,this);L=_.N(Object.keys(Q));for(E=L.next();!E.done;E=L.next())E=E.value,this[E]=Q[E]})};
ZNK=function(g,u){if(Rxq){g=new g;for(var q=_.N(Object.getOwnPropertyNames(g)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,u[Q]=g[Q];for(q=u;q&&q!==Object.prototype;q=Object.getPrototypeOf(q)){Q=_.N(Object.getOwnPropertyNames(q));for(var L=Q.next();!L.done;L=Q.next())L=L.value,g.hasOwnProperty(L)||Object.defineProperty(g,L,IXk(u,L))}}else g.apply(u)};
IXk=function(g,u){return{get:function(){var q=g[u];return q instanceof Function?q.bind(g):q},
set:function(q){g[u]=q}}};
lXq=function(g,u){if(!u)return{};for(var q={},Q=_.N(Object.keys(u)),L=Q.next();!L.done;L=Q.next())if(L=L.value,!u[L].readOnly){var E=g[L];E!==void 0&&(q[L]=E)}return q};
AyS=function(g){var u=new g;g=g.prototype.properties||{};for(var q=_.N(Object.keys(g)),Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,u.hasOwnProperty(Q)){var L=g[Q];typeof L==="function"&&(g[Q]=L={type:L});u[Q]!=null&&L.type===Object&&(L.type=iNh(u[Q].constructor))}};
iNh=function(g){for(var u=_.N(CMh),q=u.next();!q.done;q=u.next())if(q=q.value,g===q)return q;return Object};
bNK=function(g){return function(u,q){u.behaviors=u.behaviors||[];u.behaviors.push(g||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",u,q).prototype:void 0));Object.defineProperty(u,q,{get:function(){return this},
enumerable:!0,configurable:!0})}};
dHq=function(g){g=g===void 0?{}:g;return function(u,q){u.properties=u.properties||{};g.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?g.type=iNh(Reflect.getMetadata("design:type",u,q)):g.type=String);var Q=g,L=u.properties[q];u.properties[q]=L?Object.assign({},L,Q):Q}};
FbM=function(g){return function(u,q){u.listeners=u.listeners||{};u.listeners[g]=q}};
mHk=function(){var g=_.UT.apply(0,arguments);if(g.length===0)throw Error("Xd");return function(u,q){u.observers=u.observers||[];u.observers.push(q+"("+g.join(",")+")")}};
aXm=function(){var g=_.UT.apply(0,arguments);return function(u,q,Q){var L=Object.getOwnPropertyDescriptor(u,q).get,E="__compute__"+q;Object.defineProperty(u,E,{value:L,enumerable:!0});u.properties=u.properties||{};L=u.properties[q];L||(L={},u.properties[q]=L);L.computed=E+"("+g.join(",")+")";Q.get=void 0}};
_.S7=function(g,u,q){_.Lh.call(this);this.JSC$11624_id_=null;this.usingListeners_=!1;this.JSC$11624_listener_=g;this.handler_=q;this.JSC$11624_win_=u||window;this.callback_=(0,_.EH)(this.JSC$11626_doAction_,this)};
XHb=function(g){var u=V0K(g);if(!u)throw Error("Yd`"+g);return u};
V0K=function(g){var u={};g=String(g);var q=g.charAt(0)=="#"?g:"#"+g;if(rym.test(q))return u.hex=WbF(q),u.type="hex",u;q=TXF(g);return q.length?(u.hex=hxb(q[0],q[1],q[2]),u.type="rgb",u):YQq&&(g=YQq[g.toLowerCase()])?(u.hex=g,u.type="named",u):null};
WbF=function(g){if(!rym.test(g))throw Error("$d`"+g);g.length==4&&(g=g.replace(ONK,"#$1$1$2$2$3$3"));return g.toLowerCase()};
Kbb=function(g){g=WbF(g);g=parseInt(g.slice(1),16);return[g>>16,g>>8&255,g&255]};
hxb=function(g,u,q){g=Number(g);u=Number(u);q=Number(q);if(g!=(g&255)||u!=(u&255)||q!=(q&255))throw Error("ae`"+g+"`"+u+"`"+q);u=g<<16|u<<8|q;return g<16?"#"+(16777216|u).toString(16).slice(1):"#"+u.toString(16)};
TXF=function(g){var u=g.match(xHF);if(u){g=Number(u[1]);var q=Number(u[2]);u=Number(u[3]);if(g>=0&&g<=255&&q>=0&&q<=255&&u>=0&&u<=255)return[g,q,u]}return[]};
BXZ=function(){};
oK=function(g){this.range_=g};
UY=function(g){this.range_=g};
gV=function(g){this.range_=g};
zxJ=function(g){return _.u6?new gV(g):_.qM?new UY(g):new oK(g)};
n2b=function(){var g=LH().JSC$9633_document_;return!!(g.webkitIsFullScreen||g.mozFullScreen||g.msFullscreenElement||g.fullscreenElement)};
_.QZ=function(){var g=window.getSelection();return g&&k0q(g)};
k0q=function(g){var u=!1;if(g.createRange)try{var q=g.createRange()}catch(L){return null}else if(g.rangeCount){if(g.rangeCount>1){q=new Ld;u=g.rangeCount;for(var Q=0;Q<u;Q++)q.browserRanges_.push(g.getRangeAt(Q));return q}q=g.getRangeAt(0);u=SQF(g.anchorNode,g.anchorOffset,g.focusNode,g.focusOffset)}else return null;return o2q(zxJ(q),u)};
_.PU=function(g,u){return _.EA(g,u,g,u)};
_.NM=function(g,u,q,Q){return _.EA(g,u,q,Q)};
SQF=function(g,u,q,Q){if(g==q)return Q<u;var L;if(g.nodeType==1&&u)if(L=g.childNodes[u])g=L,u=0;else if(_.a2(g,q))return!0;if(q.nodeType==1&&Q)if(L=q.childNodes[Q])q=L,Q=0;else if(_.a2(q,g))return!1;return(UHF(g,q)||u-Q)>0};
sA=function(g,u,q){_.Lh.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=g;this.scrollTimer_=new _.vD(50);this.JSC$11703_eventHandler_=new _.NV(this);this.scrollDelta_=new _.l7;this.containerIsActuallyContent_=g.tagName==="BODY"||g.tagName==="HTML";this.containerBounds_=gkF(g);this.containerIsActuallyContent_&&(g=_.qi(),this.containerBounds_.height=g.height,this.containerBounds_.width=g.width);this.margin_=u||0;if(u){if(u=this.containerBounds_.clone(),g=this.margin_){var Q=
Math.min(g,u.height*.25);u.top+=Q;u.height-=2*Q;g=Math.min(g,u.width*.25);u.left+=g;u.width-=2*g}}else u=this.containerBounds_;this.scrollBounds_=u;q||this.JSC$11703_eventHandler_.listen(_.fH(this.containerNode_),"mousemove",this.JSC$11705_onMouseMove);this.JSC$11703_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11705_onTick_)};
uy3=function(){};
qO3=function(g){return g%10==1&&g%100!=11?"one":g%10==2&&g%100!=12?"two":g%10==3&&g%100!=13?"few":"other"};
QVf=function(g,u,q,Q,L,E,y,v){this.x0=g;this.y0=u;this.x1=q;this.y1=Q;this.x2=L;this.y2=E;this.x3=y;this.y3=v};
yZ=function(){_.A5.call(this);this.JSC$11788_name_="closure_frame"+L2F++;this.iframesForDisposal_=[];EkZ[this.JSC$11788_name_]=this};
_.vU=function(g){this.errorMessage_=null;this.result_=[];this.JSC$11792_buffer_="";this.stack_=[];this.JSC$11792_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!g||!g.deliverMessageAsRawString)};
_.DM=function(g){this.mechanism=g};
pd=function(g,u){this.JSC$11799_key_=g;this.JSC$11799_value_=u};
_.Jg=function(g,u){this.JSC$11805_map_={};this.JSC$11805_keys_=[];this.version_=this.size=0;var q=arguments.length;if(q>1){if(q%2)throw Error("na");for(var Q=0;Q<q;Q+=2)this.set(arguments[Q],arguments[Q+1])}else g&&this.addAll(g)};
NJT=function(){this.JSC$11808_map_=new _.Jg;this.JSC$11808_head_=new PJF("");this.JSC$11808_head_.next=this.JSC$11808_head_.prev=this.JSC$11808_head_};
yzM=function(g){if(g>=55296&&g<=57343||g>1114111)return"\ufffd";g in sVS&&(g=sVS[g]);var u="";g>65535&&(g-=65536,u+=String.fromCharCode(g>>>10&1023|55296),g=56320|g&1023);return u+=String.fromCharCode(g)};
vkb=function(g,u){return g<u?1:-1};
pl3=function(){return function(g){return g.charAt(1)==="#"?g.charAt(2)==="X"||g.charAt(2)==="x"?yzM(parseInt(g.substr(3),16)):yzM(parseInt(g.substr(2),10)):DPk[g.slice(1,-1)]}};
fBK=function(g){return g.slice(1,g.length-1).trim().replace(Jzm,function(u){return jVk[u]||" "})};
jZ=function(g){return g===32||g===9};
fd=function(g,u){return u<g.length?g.charCodeAt(u):-1};
MkF=function(g){for(;g;){if(g._lastLineBlank)return!0;var u=g.type;if(u==="list"||u==="item")g=g._lastChild;else break}return!1};
MM=function(g){if(tkk.test(g)){var u=1,q=0,Q=0;for(g[q]=="|"&&q++;q<g.length;){switch(g[q]){case "|":Q=1;break;case " ":break;case "\t":break;default:Q&&(Q=0,u++)}q++}return eyq.test(g)?-u:u}return 0};
GAJ=function(g){return g=="table"||g=="row"||g=="cell"};
$Pq=function(){return new tg("document",[[1,1],[0,0]])};
RyT=function(){};
eZ=function(){var g={safe:!1};g=g||{};g.softbreak=g.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=g};
ZYm=function(g,u){var q="";if(g)if(g=g.toLowerCase(),g===" "||wlF.test(g))q="space";else if(czh.test(g))q="esc";else if(g.length==1){if(!u||HYh.test(g))q=g}else q=AzJ.test(g)?g.replace("arrow",""):g=="multiply"?"*":g;return q};
CJT=function(g,u){var q=g.hasModifiers;if(u.key)q=ZYm(u.key,q);else if(u.detail&&u.detail.key)q=ZYm(u.detail.key,q);else{q=u.keyIdentifier;var Q="";q&&(q in lBq?Q=lBq[q]:IB3.test(q)?(q=parseInt(q.replace("U+","0x"),16),Q=String.fromCharCode(q).toLowerCase()):Q=q.toLowerCase());(q=Q)||(q=u.keyCode,Q="",Number(q)&&(q>=65&&q<=90?Q=String.fromCharCode(32+q):q>=112&&q<=123?Q="f"+(q-112+1):q>=48&&q<=57?Q=String(q-48):q>=96&&q<=105?Q=String(q-96):Q=iYS[q]),q=Q);q=q||""}return q===g.key&&(!g.hasModifiers||
!!u.shiftKey===!!g.shiftKey&&!!u.ctrlKey===!!g.ctrlKey&&!!u.altKey===!!g.altKey&&!!u.metaKey===!!g.metaKey)};
dPh=function(g){return g.length===1?{combo:g,key:g,event:"keydown"}:g.split("+").reduce(function(u,q){var Q=q.split(":");q=Q[0];Q=Q[1];q in bYq?(u[bYq[q]]=!0,u.hasModifiers=!0):(u.key=q,u.event=Q||"keydown");return u},{combo:g.split(":").shift()})};
F2S=function(g){return g.trim().split(" ").map(function(u){return dPh(u)})};
mPu=function(g,u){if(g&&g.fn){var q=g.fn;g.fn=function(){try{q.apply(this,arguments)}catch(Q){if(Q instanceof GB)console.warn("Argument '"+Q.arg+"'"+(u?" for method '"+u+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw Q;}}}return g};
Vkb=function(){var g=[],u;var q=q||_.aBJ.length;for(u=0;u<8;u++)g[u]=_.aBJ[0|Math.random()*q];return g.join("")};
Xlb=function(){var g=_.UT.apply(0,arguments);return g.length===0?function(u){return u}:g.length===1?g[0]:g.reduce(function(u,q){return function(){return u(q.apply(null,_.na(_.UT.apply(0,arguments))))}})};
rzb=function(){var g=_.UT.apply(0,arguments);return function(u){return function(q,Q){q=u(q,Q);var L=function(){throw Error("He");},E={getState:q.getState,
dispatch:function(y){return L.apply(null,[y].concat(_.na(_.UT.apply(1,arguments))))}};
Q=g.map(function(y){return y(E)});
L=Xlb.apply(null,_.na(Q))(q.dispatch);return Object.assign({},q,{dispatch:L})}}};
hyT=function(g){Object.keys(g).forEach(function(u){var q=g[u];if(typeof q(void 0,{type:W2b})==="undefined")throw Error("Ie`"+u);if(typeof q(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+TJM()})==="undefined")throw Error("Je`"+u+"`"+W2b);})};
$C=function(g){for(var u=Object.keys(g),q={},Q=0;Q<u.length;Q++){var L=u[Q];typeof g[L]==="function"&&(q[L]=g[L])}var E=Object.keys(q);try{hyT(q)}catch(v){var y=v}return function(v,J){v=v===void 0?{}:v;if(y)throw y;for(var f=!1,t={},e=0;e<E.length;e++){var G=E[e],R=v[G],H=(0,q[G])(R,J);if(typeof H==="undefined")throw v=J&&J.type,Error("Ke`"+(v?'"'+String(v)+'"':"(unknown type)")+"`"+G);t[G]=H;f=f||H!==R}return(f=f||E.length!==Object.keys(v).length)?t:v}};
YOh=function(g,u,q){function Q(){if(t)throw Error("Le");return v}
function L(R){if(typeof R!=="function")throw Error("Me`"+typeof R);if(t)throw Error("Ne");var H=!0;f===J&&(f=J.slice());f.push(R);return function(){if(H){if(t)throw Error("Oe");H=!1;f===J&&(f=J.slice());var l=f.indexOf(R);f.splice(l,1);J=null}}}
function E(R){if(typeof R!=="object"||R===null)var H=!1;else{for(H=R;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);H=Object.getPrototypeOf(R)===H}if(!H)throw Error("Pe`"+typeof R);if(typeof R.type==="undefined")throw Error("Qe");if(t)throw Error("Re");try{t=!0,v=y(v,R)}finally{t=!1}H=J=f;for(var l=0;l<H.length;l++)(0,H[l])();return R}
if(typeof u==="function"&&typeof q==="function"||typeof q==="function"&&typeof arguments[3]==="function")throw Error("Se");typeof u==="function"&&typeof q==="undefined"&&(q=u,u=void 0);if(typeof q!=="undefined"){if(typeof q!=="function")throw Error("Te`"+typeof q);return q(YOh)(g,u)}if(typeof g!=="function")throw Error("Ue`"+typeof g);var y=g,v=u,J=[],f=J,t=!1;E({type:W2b});var e={},G=(e.dispatch=E,e.subscribe=L,e.getState=Q,e.replaceReducer=function(R){if(typeof R!=="function")throw Error("Ve`"+
typeof R);y=R;E({type:OYq});return G},e[K2K]=function(){var R={};
return R.subscribe=function(H){function l(){H.next&&H.next(Q())}
if(typeof H!=="object"||H===null)throw new TypeError("We`"+typeof H);l();return{unsubscribe:L(l)}},R[K2K]=function(){return this},R},e);
return G};
xPu=function(g){function u(){L&&(L=!1,g());E&&Q()}
function q(){requestAnimationFrame(u)}
function Q(){var v=Date.now();if(L){if(v-y<2)return;E=!0}else L=!0,E=!1,setTimeout(q,20);y=v}
var L=!1,E=!1,y=0;return Q};
RM=function(g){return typeof g==="number"?g:parseFloat(g)||0};
BJZ=function(g){return _.UT.apply(1,arguments).reduce(function(u,q){return u+RM(g["border-"+q+"-width"])},0)};
SOu=function(g){if(zyk[g])return zyk[g];var u=globalThis[g],q=u.prototype,Q=g in nkq?nkq[g]:void 0;Q=!(!Q||!Q.every(function(J){var f,t;return!!((f=Object.getOwnPropertyDescriptor(q,J))==null?0:(t=f.get)==null?0:t.toString().includes("[native code]"))}));
var L=g in kAq?kAq[g]:void 0;L=!(!L||!L.every(function(J){var f;return typeof q[J]==="function"&&((f=q[J])==null?void 0:f.toString().includes("[native code]"))}));
if(Q&&L&&!globalThis.Zone)return zyk[g]=u.prototype;try{var E=document.createElement("iframe");document.body.appendChild(E);var y=E.contentWindow;if(!y)return u.prototype;var v=y[g].prototype;document.body.removeChild(E);return v?zyk[g]=v:q}catch(J){return q}};
wV=function(g,u,q){var Q=g+"."+String(q);if(oku[Q])return oku[Q].call(u);g=SOu(g);var L;g=(L=Object.getOwnPropertyDescriptor(g,q))==null?void 0:L.get;if(!g)return u[q];oku[Q]=g;return g.call(u)};
gof=function(g,u){var q="Node."+String(u);if(UPS[q])return UPS[q].bind(g);var Q=SOu("Node")[u];if(typeof Q!=="function")return g[u];UPS[q]=Q;return Q.bind(g)};
HU=function(g,u,q){try{if(!(u in g))return function(){};
var Q=g[u],L=q(Q);typeof L==="function"&&(L.prototype=L.prototype||{},Object.defineProperties(L,{__rrweb_original__:{enumerable:!1,value:Q}}));g[u]=L;return function(){g[u]=Q}}catch(E){return function(){}}};
l6=function(g){var u=g&&"host"in g&&"mode"in g&&Ag(g)||null;return!!(u&&"shadowRoot"in u&&ZM(u)===g)};
IM=function(g){return Object.prototype.toString.call(g)==="[object ShadowRoot]"};
uvF=function(g){g.includes(" background-clip: text;")&&!g.includes(" -webkit-background-clip: text;")&&(g=g.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return g};
QQT=function(g){try{var u=g.rules||g.cssRules;if(!u)return null;var q=g.href;!q&&g.ownerNode&&(q=g.ownerNode.baseURI);var Q=Array.from(u,function(L){return qGK(L,q)}).join("");
return uvF(Q)}catch(L){return null}};
qGK=function(g,u){if("styleSheet"in g){try{var q;if(!(q=QQT(g.styleSheet))){var Q=g.cssText;if(Q.split('"').length<3)q=Q;else{var L=["@import","url("+JSON.stringify(g.href)+")"];g.layerName===""?L.push("layer"):g.layerName&&L.push("layer("+g.layerName+")");g.supportsText&&L.push("supports("+g.supportsText+")");g.media.length&&L.push(g.media.mediaText);q=L.join(" ")+";"}}var E=q}catch(y){E=g.cssText}return g.styleSheet.href?Lpq(E,g.styleSheet.href):E}E=g.cssText;"selectorText"in g&&g.selectorText.includes(":")&&
(E=E.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return u?Lpq(E,u):E};
Eo3=function(g){var u=g.element;var q=g.maskInputOptions;var Q=g.tagName;var L=g.type;var E=g.value;g=g.maskInputFn;E=E||"";L=L&&L.toLowerCase();if(q[Q.toLowerCase()]||L&&q[L])E=g?g(E,u):"*".repeat(E.length);return E};
PEZ=function(g){var u=g.getContext("2d");if(!u)return!0;for(var q=0;q<g.width;q+=50)for(var Q=0;Q<g.height;Q+=50){var L=u.getImageData;if((new Uint32Array(("__rrweb_original__"in L?L.__rrweb_original__:L).call(u,q,Q,Math.min(50,g.width-q),Math.min(50,g.height-Q)).data.buffer)).some(function(E){return E!==0}))return!1}return!0};
N2J=function(g){var u=g.type;return g.hasAttribute("data-rr-is-password")?"password":u?u.toLowerCase():null};
sQF=function(g){try{var u=new URL(g,window.location.href)}catch(L){return null}var q,Q;return(Q=(q=u.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:q[1])!=null?Q:null};
Lpq=function(g,u){return(g||"").replace(y$q,function(q,Q,L,E,y,v){L=L||y||v;Q=Q||E||"";if(!L)return q;if(voq.test(L)||D6h.test(L)||ptu.test(L))return"url("+Q+L+Q+")";if(L[0]==="/")return q=u.indexOf("//")>-1?u.split("/").slice(0,3).join("/"):u.split("/")[0],q=q.split("?")[0],"url("+Q+(q+L)+Q+")";q=u.split("/");E=L.split("/");q.pop();E=_.N(E);for(L=E.next();!L.done;L=E.next())L=L.value,L!=="."&&(L===".."?q.pop():q.push(L));return"url("+Q+q.join("/")+Q+")"})};
J$K=function(g,u){return(u=u===void 0?!1:u)?g.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):g.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
jQM=function(g,u){var q=q===void 0?!1:q;u=Array.from(u.childNodes);var Q=[],L=0;if(u.length>1&&g&&typeof g==="string")for(var E=J$K(g,q),y=E.length/g.length,v=1;v<u.length;v++)if(u[v].textContent&&typeof u[v].textContent==="string"){for(var J=J$K(u[v].textContent,q),f=3;f<J.length&&(J[f].match(/[a-zA-Z0-9]/)||J.indexOf(J.substring(0,f),1)!==-1);f++);for(;f<J.length;f++){var t=J.substring(0,f),e=E.split(t),G=-1;if(e.length===2)G=e[0].length;else if(e.length>2&&e[0]===""&&u[v-1].textContent!=="")G=
E.indexOf(t,1);else if(e.length===1){t=t.substring(0,t.length-1);e=E.split(t);if(e.length<=1)return Q.push(g),Q;f=101}else f===J.length-1&&(G=E.indexOf(t));if(e.length>=2&&f>100){var R=u[v-1].textContent;R&&typeof R==="string"&&(G=E.indexOf(t,J$K(R).length));G===-1&&(G=e[0].length)}if(G!==-1){for(J=Math.floor(G/y);J>0&&J<g.length;){L+=1;if(L>50*u.length)return Q.push(g),Q;f=J$K(g.substring(0,J),q);if(f.length===G){Q.push(g.substring(0,J));g=g.substring(J);E=E.substring(G);break}else J=f.length<G?
J+Math.max(1,Math.floor((G-f.length)/y)):J-Math.max(1,Math.floor((f.length-G)*y))}break}}}Q.push(g);return Q};
Msm=function(){return f9T++};
ekZ=function(g){if(g instanceof HTMLFormElement)return"form";g=g.tagName.toLowerCase();return tsF.test(g)?"div":g};
wtM=function(g,u){function q(f){return(f=f.exec(u.substring(Q)))?(f=f[0],Q+=f.length,f):""}
if(u.trim()==="")return u;for(var Q=0,L=[];;){q(GGh);if(Q>=u.length)break;var E=q($6f);if(E.slice(-1)===",")E=RkS(g,E.substring(0,E.length-1)),L.push(E);else{var y="";E=RkS(g,E);for(var v=!1;;){var J=u.charAt(Q);if(J===""){L.push((E+y).trim());break}else if(v)J===")"&&(v=!1);else if(J===","){Q+=1;L.push((E+y).trim());break}else J==="("&&(v=!0);y+=J;Q+=1}}}return L.join(", ")};
RkS=function(g,u){return u&&u.trim()!==""?c$Z(g,u):u};
c$Z=function(g,u){var q=HjT.get(g);q||(q=g.createElement("a"),HjT.set(g,q));if(!u)u="";else if(u.startsWith("blob:")||u.startsWith("data:"))return u;u8(q,u);return q.href};
A$3=function(g,u,q,Q){return Q?q==="src"||q==="href"&&(u!=="use"||Q[0]!=="#")||q==="xlink:href"&&Q[0]!=="#"||q==="background"&&(u==="table"||u==="td"||u==="th")?RkS(g,Q):q==="srcset"?wtM(g,Q):q==="style"?Lpq(Q,c$Z(g)):u==="object"&&q==="data"?RkS(g,Q):Q:Q};
Zjf=function(g,u){return(g==="video"||g==="audio")&&u==="autoplay"};
l93=function(g,u,q){try{if(typeof u==="string"){if(g.classList.contains(u))return!0}else for(var Q=g.classList.length;Q--;)if(u.test(g.classList[Q]))return!0;if(q)return g.matches(q)}catch(L){}return!1};
I9u=function(g,u,q){if(!g)return!1;if(g.nodeType!==g.ELEMENT_NODE)return q?I9u(i6(g),u,q):!1;for(var Q=g.classList.length;Q--;)if(u.test(g.classList[Q]))return!0;return q?I9u(i6(g),u,q):!1};
ijm=function(g,u,q,Q){if(g.nodeType===g.ELEMENT_NODE){if(!Cd(g).length)return!1}else{if(b6(g)===null)return!1;g=b6(g)}try{if(typeof u==="string")if(Q){if(g.closest("."+u))return!0}else{if(g.classList.contains(u))return!0}else if(I9u(g,u,Q))return!0;if(q)if(Q){if(g.closest(q))return!0}else if(g.matches(q))return!0}catch(L){}return!1};
CEF=function(g,u,q){var Q=g.contentWindow;if(Q){var L=!1;try{var E=Q.document.readyState}catch(v){return}if(E!=="complete"){var y=setTimeout(function(){L||(u(),L=!0)},q);
g.addEventListener("load",function(){clearTimeout(y);L=!0;u()})}else Q.location.href==="about:blank"&&g.src!=="about:blank"&&g.src!==""||setTimeout(u,0),g.addEventListener("load",u)}};
bjq=function(g,u,q){var Q=!1;try{var L=g.sheet}catch(y){return}if(!L){var E=setTimeout(function(){Q||(u(),Q=!0)},q);
g.addEventListener("load",function(){clearTimeout(E);Q=!0;u()})}};
m6b=function(g,u){var q=u.doc,Q=u.blockClass,L=u.blockSelector,E=u.needsMask,y=u.inlineStylesheet,v=u.maskInputOptions===void 0?{}:u.maskInputOptions,J=u.maskTextFn,f=u.maskInputFn,t=u.dataURLOptions===void 0?{}:u.dataURLOptions,e=u.inlineImages,G=u.recordCanvas,R=u.keepIframeSrcFn,H=u.newlyAddedElement===void 0?!1:u.newlyAddedElement,l=u.cssCaptured===void 0?!1:u.cssCaptured;u=u.mirror;u.nodeMetaMap.has(q)?(u=u.getId(q),u=u===1?void 0:u):u=void 0;switch(g.nodeType){case g.DOCUMENT_NODE:return g.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:g.compatMode}:{type:0,childNodes:[]};case g.DOCUMENT_TYPE_NODE:return{type:1,name:g.name,publicId:g.publicId,systemId:g.systemId,rootId:u};case g.ELEMENT_NODE:return d6q(g,{doc:q,blockClass:Q,blockSelector:L,inlineStylesheet:y,maskInputOptions:v,maskInputFn:f,dataURLOptions:t,inlineImages:e,recordCanvas:G,keepIframeSrcFn:R,newlyAddedElement:H,rootId:u});case g.TEXT_NODE:return y=(Q=i6(g))&&Q.tagName,Q="",L=y==="STYLE"?!0:void 0,(y=y==="SCRIPT"?!0:void 0)?
Q="SCRIPT_PLACEHOLDER":l||(Q=Fpf(g),L&&Q&&(Q=Lpq(Q,c$Z(q)))),!L&&!y&&Q&&E&&(Q=J?J(Q,b6(g)):Q.replace(/[\S]/g,"*")),{type:3,textContent:Q||"",rootId:u};case g.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:u};case g.COMMENT_NODE:return{type:5,textContent:Fpf(g)||"",rootId:u};default:return!1}};
d6q=function(g,u){var q=u.doc,Q=u.inlineStylesheet,L=u.maskInputOptions===void 0?{}:u.maskInputOptions,E=u.maskInputFn,y=u.dataURLOptions===void 0?{}:u.dataURLOptions,v=u.inlineImages,J=u.recordCanvas,f=u.keepIframeSrcFn,t=u.newlyAddedElement===void 0?!1:u.newlyAddedElement,e=u.rootId;u=l93(g,u.blockClass,u.blockSelector);for(var G=ekZ(g),R={},H=g.attributes.length,l=0;l<H;l++){var d=g.attributes[l];Zjf(G,d.name)||(R[d.name]=A$3(q,G,d.name.toLowerCase(),d.value))}G==="link"&&Q&&(Q=Array.from(q.styleSheets).find(function(W){return W.href===
g.href}),H=null,Q&&(H=QQT(Q)),H&&(delete R.rel,delete R.href,R._cssText=H));
G==="style"&&g.sheet&&(Q=QQT(g.sheet))&&(g.childNodes.length>1&&(Q=jQM(Q,g).join("/* rr_split */")),R._cssText=Q);if(G==="input"||G==="textarea"||G==="select")Q=g.value,H=g.checked,R.type!=="radio"&&R.type!=="checkbox"&&R.type!=="submit"&&R.type!=="button"&&Q?R.value=Eo3({element:g,type:N2J(g),tagName:G,value:Q,maskInputOptions:L,maskInputFn:E}):H&&(R.checked=H);G==="option"&&(g.selected&&!L.select?R.selected=!0:delete R.selected);G==="dialog"&&g.open&&(R.rr_open_mode=g.matches("dialog:modal")?"modal":
"non-modal");G==="canvas"&&J&&(g.__context==="2d"?PEZ(g)||(R.rr_dataURL=g.toDataURL(y.type,y.quality)):"__context"in g||(L=g.toDataURL(y.type,y.quality),E=q.createElement("canvas"),E.width=g.width,E.height=g.height,E=E.toDataURL(y.type,y.quality),L!==E&&(R.rr_dataURL=L)));if(G==="img"&&v){dV||(dV=q.createElement("canvas"),a9q=dV.getContext("2d"));var F=g.currentSrc||g.getAttribute("src")||"<unknown-src>",V=g.crossOrigin,z=function(){g.removeEventListener("load",z);try{dV.width=g.naturalWidth,dV.height=
g.naturalHeight,a9q.drawImage(g,0,0),R.rr_dataURL=dV.toDataURL(y.type,y.quality)}catch(W){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous";g.complete&&g.naturalWidth!==0?z():g.addEventListener("load",z);return}console.warn("Cannot inline img src="+F+"! Error: "+W)}g.crossOrigin==="anonymous"&&(V?R.crossOrigin=V:g.removeAttribute("crossorigin"))};
g.complete&&g.naturalWidth!==0?z():g.addEventListener("load",z)}if(G==="audio"||G==="video")q=R,q.rr_mediaState=g.paused?"paused":"played",q.rr_mediaCurrentTime=g.currentTime,q.rr_mediaPlaybackRate=g.playbackRate,q.rr_mediaMuted=g.muted,q.rr_mediaLoop=g.loop,q.rr_mediaVolume=g.volume;t||(g.scrollLeft&&(R.rr_scrollLeft=g.scrollLeft),g.scrollTop&&(R.rr_scrollTop=g.scrollTop));u&&(t=g.getBoundingClientRect(),R={class:R.class,rr_width:t.width+"px",rr_height:t.height+"px"});G!=="iframe"||f(R.src)||(g.contentDocument||
(R.rr_src=R.src),delete R.src);var O;try{customElements.get(G)&&(O=!0)}catch(W){}return{type:2,tagName:G,attributes:R,childNodes:[],isSVG:!(g.tagName!=="svg"&&!g.ownerSVGElement)||void 0,needBlock:u,rootId:e,isCustom:O}};
Fw=function(g){return g===void 0||g===null?"":g.toLowerCase()};
Vsm=function(g,u){return u.comment&&g.type===5||g.type===2&&(u.script&&(g.tagName==="script"||g.tagName==="link"&&(g.attributes.rel==="preload"&&g.attributes.as==="script"||g.attributes.rel==="modulepreload")||g.tagName==="link"&&g.attributes.rel==="prefetch"&&typeof g.attributes.href==="string"&&sQF(g.attributes.href)==="js")||u.headFavicon&&(g.tagName==="link"&&g.attributes.rel==="shortcut icon"||g.tagName==="meta"&&(Fw(g.attributes.name).match(/^msapplication-tile(image|color)$/)||Fw(g.attributes.name)===
"application-name"||Fw(g.attributes.rel)==="icon"||Fw(g.attributes.rel)==="apple-touch-icon"||Fw(g.attributes.rel)==="shortcut icon"))||g.tagName==="meta"&&(u.headMetaDescKeywords&&Fw(g.attributes.name).match(/^description|keywords$/)||u.headMetaSocial&&(Fw(g.attributes.property).match(/^(og|twitter|fb):/)||Fw(g.attributes.name).match(/^(og|twitter):/)||Fw(g.attributes.name)==="pinterest")||u.headMetaRobots&&(Fw(g.attributes.name)==="robots"||Fw(g.attributes.name)==="googlebot"||Fw(g.attributes.name)===
"bingbot")||u.headMetaHttpEquiv&&g.attributes["http-equiv"]!==void 0||u.headMetaAuthorship&&(Fw(g.attributes.name)==="author"||Fw(g.attributes.name)==="generator"||Fw(g.attributes.name)==="framework"||Fw(g.attributes.name)==="publisher"||Fw(g.attributes.name)==="progid"||Fw(g.attributes.property).match(/^article:/)||Fw(g.attributes.property).match(/^product:/))||u.headMetaVerification&&(Fw(g.attributes.name)==="google-site-verification"||Fw(g.attributes.name)==="yandex-verification"||Fw(g.attributes.name)===
"csrf-token"||Fw(g.attributes.name)==="p:domain_verify"||Fw(g.attributes.name)==="verify-v1"||Fw(g.attributes.name)==="verification"||Fw(g.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
mL=function(g,u){var q=u.doc,Q=u.mirror,L=u.blockClass,E=u.blockSelector,y=u.maskTextClass,v=u.maskTextSelector,J=u.skipChild===void 0?!1:u.skipChild,f=u.inlineStylesheet===void 0?!0:u.inlineStylesheet,t=u.maskInputOptions===void 0?{}:u.maskInputOptions,e=u.maskTextFn,G=u.maskInputFn,R=u.slimDOMOptions,H=u.dataURLOptions===void 0?{}:u.dataURLOptions,l=u.inlineImages===void 0?!1:u.inlineImages,d=u.recordCanvas===void 0?!1:u.recordCanvas,F=u.onSerialize,V=u.onIframeLoad,z=u.iframeLoadTimeout===void 0?
5E3:u.iframeLoadTimeout,O=u.onStylesheetLoad,W=u.stylesheetLoadTimeout===void 0?5E3:u.stylesheetLoadTimeout,x=u.keepIframeSrcFn===void 0?function(){return!1}:u.keepIframeSrcFn,k=u.newlyAddedElement===void 0?!1:u.newlyAddedElement,LZ=u.cssCaptured===void 0?!1:u.cssCaptured,sb=u.needsMask,Rm=u.preserveWhiteSpace===void 0?!0:u.preserveWhiteSpace;
sb||(sb=ijm(g,y,v,sb===void 0));var M3=m6b(g,{doc:q,mirror:Q,blockClass:L,blockSelector:E,needsMask:sb,inlineStylesheet:f,maskInputOptions:t,maskTextFn:e,maskInputFn:G,dataURLOptions:H,inlineImages:l,recordCanvas:d,keepIframeSrcFn:x,newlyAddedElement:k,cssCaptured:LZ});if(!M3)return console.warn(g,"not serialized"),null;k=Q.nodeMetaMap.has(g)?Q.getId(g):Vsm(M3,R)||!Rm&&M3.type===3&&!M3.textContent.replace(/^\s+|\s+$/gm,"").length?-2:f9T++;u=Object.assign(M3,{id:k});Q.add(g,u);if(k===-2)return null;
F&&F(g);k=!J;u.type===2&&(k=k&&!u.needBlock,delete u.needBlock,(LZ=ZM(g))&&IM(LZ)&&(u.isShadowHost=!0));if((u.type===0||u.type===2)&&k){R.headWhitespace&&u.type===2&&u.tagName==="head"&&(Rm=!1);J={doc:q,mirror:Q,blockClass:L,blockSelector:E,needsMask:sb,maskTextClass:y,maskTextSelector:v,skipChild:J,inlineStylesheet:f,maskInputOptions:t,maskTextFn:e,maskInputFn:G,slimDOMOptions:R,dataURLOptions:H,inlineImages:l,recordCanvas:d,preserveWhiteSpace:Rm,onSerialize:F,onIframeLoad:V,iframeLoadTimeout:z,
onStylesheetLoad:O,stylesheetLoadTimeout:W,keepIframeSrcFn:x,cssCaptured:!1};if(u.type!==2||u.tagName!=="textarea"||u.attributes.value===void 0)for(u.type===2&&u.attributes._cssText!==void 0&&typeof u.attributes._cssText==="string"&&(J.cssCaptured=!0),k=_.N(Array.from(Cd(g))),LZ=k.next();!LZ.done;LZ=k.next())(LZ=mL(LZ.value,J))&&u.childNodes.push(LZ);k=null;if(g.nodeType===g.ELEMENT_NODE&&(k=ZM(g))){LZ=_.N(Array.from(Cd(k)));for(var tT=LZ.next();!tT.done;tT=LZ.next())if(tT=mL(tT.value,J))IM(k)&&(tT.isShadow=
!0),u.childNodes.push(tT)}}(J=i6(g))&&l6(J)&&IM(J)&&(u.isShadow=!0);u.type===2&&u.tagName==="iframe"&&CEF(g,function(){var mJ=g.contentDocument;mJ&&V&&(mJ=mL(mJ,{doc:mJ,mirror:Q,blockClass:L,blockSelector:E,needsMask:sb,maskTextClass:y,maskTextSelector:v,skipChild:!1,inlineStylesheet:f,maskInputOptions:t,maskTextFn:e,maskInputFn:G,slimDOMOptions:R,dataURLOptions:H,inlineImages:l,recordCanvas:d,preserveWhiteSpace:Rm,onSerialize:F,onIframeLoad:V,iframeLoadTimeout:z,onStylesheetLoad:O,stylesheetLoadTimeout:W,
keepIframeSrcFn:x}))&&V(g,mJ)},z);
u.type===2&&u.tagName==="link"&&typeof u.attributes.rel==="string"&&(u.attributes.rel==="stylesheet"||u.attributes.rel==="preload"&&typeof u.attributes.href==="string"&&sQF(u.attributes.href)==="css")&&bjq(g,function(){if(O){var mJ=mL(g,{doc:q,mirror:Q,blockClass:L,blockSelector:E,needsMask:sb,maskTextClass:y,maskTextSelector:v,skipChild:!1,inlineStylesheet:f,maskInputOptions:t,maskTextFn:e,maskInputFn:G,slimDOMOptions:R,dataURLOptions:H,inlineImages:l,recordCanvas:d,preserveWhiteSpace:Rm,onSerialize:F,
onIframeLoad:V,iframeLoadTimeout:z,onStylesheetLoad:O,stylesheetLoadTimeout:W,keepIframeSrcFn:x});mJ&&O(g,mJ)}},W);
return u};
XtK=function(g){var u=document;g=g||{};var q=g.maskAllInputs===void 0?!1:g.maskAllInputs,Q=g.slimDOM===void 0?!1:g.slimDOM;return mL(u,{doc:u,mirror:g.mirror===void 0?new VZ:g.mirror,blockClass:g.blockClass===void 0?"rr-block":g.blockClass,blockSelector:g.blockSelector===void 0?null:g.blockSelector,maskTextClass:g.maskTextClass===void 0?"rr-mask":g.maskTextClass,maskTextSelector:g.maskTextSelector===void 0?null:g.maskTextSelector,skipChild:!1,inlineStylesheet:g.inlineStylesheet===void 0?!0:g.inlineStylesheet,
maskInputOptions:q===!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}:q===!1?{password:!0}:q,maskTextFn:g.maskTextFn,maskInputFn:g.maskInputFn,slimDOMOptions:Q===!0||Q==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:Q==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:Q===!1?{}:Q,dataURLOptions:g.dataURLOptions,
inlineImages:g.inlineImages===void 0?!1:g.inlineImages,recordCanvas:g.recordCanvas===void 0?!1:g.recordCanvas,preserveWhiteSpace:g.preserveWhiteSpace,onSerialize:g.onSerialize,onIframeLoad:g.onIframeLoad,iframeLoadTimeout:g.iframeLoadTimeout,onStylesheetLoad:g.onStylesheetLoad,stylesheetLoadTimeout:g.stylesheetLoadTimeout,keepIframeSrcFn:g.keepIframeSrcFn===void 0?function(){return!1}:g.keepIframeSrcFn,
newlyAddedElement:!1})};
Xw=function(g,u,q){q=q===void 0?document:q;var Q={capture:!0,passive:!0};q.addEventListener(g,u,Q);return function(){return q.removeEventListener(g,u,Q)}};
rV=function(g,u,q){q=q===void 0?{}:q;var Q=null,L=0;return function(){var E=_.UT.apply(0,arguments),y=Date.now();L||q.leading!==!1||(L=y);var v=u-(y-L),J=this;v<=0||v>u?(Q&&(clearTimeout(Q),Q=null),L=y,g.apply(J,E)):Q||q.trailing===!1||(Q=setTimeout(function(){L=q.leading===!1?0:Date.now();Q=null;g.apply(J,E)},v))}};
r$h=function(g,u,q,Q,L){L=L===void 0?window:L;var E=L.Object.getOwnPropertyDescriptor(g,u);L.Object.defineProperty(g,u,Q?q:{set:function(y){var v=this;setTimeout(function(){q.set.call(v,y)},0);
E&&E.set&&E.set.call(this,y)}});
return function(){return r$h(g,u,E||{},!0)}};
Wph=function(g){var u=g.document,q,Q,L,E;return{left:u.scrollingElement?u.scrollingElement.scrollLeft:g.pageXOffset!==void 0?g.pageXOffset:u.documentElement.scrollLeft||(u==null?void 0:u.body)&&((q=b6(u.body))==null?void 0:q.scrollLeft)||(u==null?void 0:(Q=u.body)==null?void 0:Q.scrollLeft)||0,top:u.scrollingElement?u.scrollingElement.scrollTop:g.pageYOffset!==void 0?g.pageYOffset:(u==null?void 0:u.documentElement.scrollTop)||(u==null?void 0:u.body)&&((L=b6(u.body))==null?void 0:L.scrollTop)||(u==
null?void 0:(E=u.body)==null?void 0:E.scrollTop)||0}};
T2q=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
hku=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
YGu=function(g){return g?g.nodeType===g.ELEMENT_NODE?g:b6(g):null};
WU=function(g,u,q,Q){if(!g)return!1;g=YGu(g);if(!g)return!1;try{if(typeof u==="string"){if(g.classList.contains(u)||Q&&g.closest("."+u)!==null)return!0}else if(I9u(g,u,Q))return!0}catch(L){}return q&&(g.matches(q)||Q&&g.closest(q)!==null)?!0:!1};
OjT=function(g,u,q){return g.tagName==="TITLE"&&q.headTitleMutations?!0:u.getId(g)===-2};
KpT=function(g,u){if(l6(g))return!1;var q=u.getId(g);return u.has(q)?(q=i6(g))&&q.nodeType===g.DOCUMENT_NODE?!1:q?KpT(q,u):!0:!0};
x6b=function(){var g=g===void 0?window:g;"NodeList"in g&&!g.NodeList.prototype.forEach&&(g.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in g&&!g.DOMTokenList.prototype.forEach&&(g.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
B2q=function(g,u){return!(g.nodeName!=="LINK"||g.nodeType!==g.ELEMENT_NODE||!g.getAttribute||g.getAttribute("rel")!=="stylesheet"||!u.nodeMetaMap.get(g))};
noq=function(g){var u=null,q;"getRootNode"in g&&((q=zkK(g))==null?void 0:q.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Ag(zkK(g))&&(u=Ag(zkK(g)));return u};
kGf=function(g){var u=g.ownerDocument;if(u){if(!(u=gof(u,"contains")(g)))if(u=g.ownerDocument){for(var q;q=noq(g);)g=q;u=gof(u,"contains")(g)}else u=!1}else u=!1;return u};
SGk=function(g,u){g.delete(u);Cd(u).forEach(function(q){return SGk(g,q)})};
ooh=function(g,u){for(var q=[g];q.length;)g=q.pop(),u.has(g)||(u.add(g),Cd(g).forEach(function(Q){return q.push(Q)}))};
U6m=function(g,u){g.size===0?g=!1:g=(u=i6(u))?g.has(u):!1;return g};
ukf=function(g,u){return g.size===0?!1:gxZ(g,u)};
gxZ=function(g,u){return(u=i6(u))?g.has(u)?!0:gxZ(g,u):!1};
TB=function(g){try{if("composedPath"in g){var u=g.composedPath();if(u.length)return u[0]}else if("path"in g&&g.path.length)return g.path[0]}catch(q){}return g&&g.target};
Qhb=function(g,u){var q=new qF3;hg.push(q);q.init(g);g=new (SOu("MutationObserver").constructor)(YC(q.processMutations.bind(q)));g.observe(u,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return g};
ExT=function(g){var u=g.mousemoveCb;var q=g.sampling;var Q=g.doc;var L=g.mirror;if(q.mousemove===!1)return function(){};
var E=[],y,v=rV(YC(function(f){var t=Date.now()-y;u(E.map(function(e){e.timeOffset-=t;return e}),f);
E=[];y=null}),typeof q.mousemoveCallback==="number"?q.mousemoveCallback:500);
g=YC(rV(YC(function(f){var t=TB(f),e=f.changedTouches?f.changedTouches[0]:f,G=e.clientX;e=e.clientY;y||(y=L$u());E.push({x:G,y:e,id:L.getId(t),timeOffset:L$u()-y});v(typeof DragEvent!=="undefined"&&f instanceof DragEvent?12:f instanceof MouseEvent?1:6)}),typeof q.mousemove==="number"?q.mousemove:50,{trailing:!1}));
var J=[Xw("mousemove",g,Q),Xw("touchmove",g,Q),Xw("drag",g,Q)];return YC(function(){J.forEach(function(f){return f()})})};
Pum=function(g){var u=g.mouseInteractionCb;var q=g.doc;var Q=g.mirror;var L=g.blockClass;var E=g.blockSelector;g=g.sampling;if(g.mouseInteraction===!1)return function(){};
var y=g.mouseInteraction===!0||g.mouseInteraction===void 0?{}:g.mouseInteraction,v=[],J=null,f=function(t){return function(e){var G=TB(e);if(!WU(G,L,E,!0)){var R=null,H=t;if("pointerType"in e){switch(e.pointerType){case "mouse":R=0;break;case "touch":R=2;break;case "pen":R=1}R===2&&(OA[t]===1?H="TouchStart":OA[t]===0&&(H="TouchEnd"))}else e.changedTouches&&(R=2);if(R!==null){if(J=R,H.startsWith("Touch")&&R===2||H.startsWith("Mouse")&&R===0)R=null}else OA[t]===2&&(R=J,J=null);if(e=e.changedTouches?
e.changedTouches[0]:e)G=Q.getId(G),YC(u)(Object.assign({},{type:OA[H],id:G,x:e.clientX,y:e.clientY},R!==null&&{pointerType:R}))}}};
Object.keys(OA).filter(function(t){return Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&y[t]!==!1}).forEach(function(t){var e=t.toLowerCase(),G=f(t);
if(window.PointerEvent)switch(OA[t]){case 1:case 0:e=e.replace("mouse","pointer");break;case 7:case 9:return}v.push(Xw(e,G,q))});
return YC(function(){v.forEach(function(t){return t()})})};
NGb=function(g){var u=g.scrollCb;var q=g.doc;var Q=g.mirror;var L=g.blockClass;var E=g.blockSelector;return Xw("scroll",YC(rV(YC(function(y){var v=TB(y);v&&!WU(v,L,E,!0)&&(y=Q.getId(v),v===q&&q.defaultView?(v=Wph(q.defaultView),u({id:y,x:v.left,y:v.top})):u({id:y,x:v.scrollLeft,y:v.scrollTop}))}),g.sampling.scroll||100)),q)};
shS=function(g,u){var q=g.viewportResizeCb;var Q=-1,L=-1;return Xw("resize",YC(rV(YC(function(){var E=T2q(),y=hku();if(Q!==E||L!==y)q({width:Number(y),height:Number(E)}),Q=E,L=y}),200)),u.win)};
Dck=function(g){function u(d){var F=TB(d),V=d.isTrusted,z=F&&F.tagName;F&&z==="OPTION"&&(F=b6(F));if(!(!F||!z||yHq.indexOf(z)<0||WU(F,y,v,!0)||F.classList.contains(J)||f&&F.matches(f))){var O=F.value,W=!1;d=N2J(F)||"";if(d==="radio"||d==="checkbox")W=F.checked;else if(t[z.toLowerCase()]||t[d])O=Eo3({element:F,maskInputOptions:t,tagName:z,type:d,value:O,maskInputFn:e});q(F,R?{text:O,isChecked:W,userTriggered:V}:{text:O,isChecked:W});V=F.name;d==="radio"&&V&&W&&L.querySelectorAll('input[type="radio"][name="'+
V+'"]').forEach(function(x){if(x!==F){var k=x.value;q(x,R?{text:k,isChecked:!W,userTriggered:!1}:{text:k,isChecked:!W})}})}}
function q(d,F){var V=vxh.get(d);V&&V.text===F.text&&V.isChecked===F.isChecked||(vxh.set(d,F),d=E.getId(d),YC(Q)(Object.assign({},F,{id:d})))}
var Q=g.inputCb;var L=g.doc;var E=g.mirror;var y=g.blockClass;var v=g.blockSelector;var J=g.ignoreClass;var f=g.ignoreSelector;var t=g.maskInputOptions;var e=g.maskInputFn;var G=g.sampling;var R=g.userTriggeredOnInput;var H=(G.input==="last"?["change"]:["input","change"]).map(function(d){return Xw(d,YC(u),L)}),l=L.defaultView;
if(!l)return function(){H.forEach(function(d){return d()})};
g=l.Object.getOwnPropertyDescriptor(l.HTMLInputElement.prototype,"value");G=[[l.HTMLInputElement.prototype,"value"],[l.HTMLInputElement.prototype,"checked"],[l.HTMLSelectElement.prototype,"value"],[l.HTMLTextAreaElement.prototype,"value"],[l.HTMLSelectElement.prototype,"selectedIndex"],[l.HTMLOptionElement.prototype,"selected"]];g&&g.set&&H.push.apply(H,_.na(G.map(function(d){return r$h(d[0],d[1],{set:function(){YC(u)({target:this,isTrusted:!1})}},!1,l)})));
return YC(function(){H.forEach(function(d){return d()})})};
JHq=function(g){var u=[],q,Q,L,E;pjS("CSSGroupingRule")&&((q=g.parentRule)==null?void 0:(Q=q.constructor)==null?void 0:Q.name)==="CSSGroupingRule"||pjS("CSSMediaRule")&&g.parentRule instanceof CSSMediaRule||pjS("CSSSupportsRule")&&g.parentRule instanceof CSSSupportsRule||pjS("CSSConditionRule")&&((L=g.parentRule)==null?void 0:(E=L.constructor)==null?void 0:E.name)==="CSSConditionRule"?(g=Array.from(g.parentRule.cssRules).indexOf(g),u.unshift(g)):g.parentStyleSheet&&(g=Array.from(g.parentStyleSheet.cssRules).indexOf(g),
u.unshift(g));return u};
Kd=function(g,u,q){var Q,L;if(!g)return{};g.ownerNode?Q=u.getId(g.ownerNode):L=q.getId(g);return{styleId:L,id:Q}};
frm=function(g,u){var q=g.styleSheetRuleCb;var Q=g.mirror;var L=g.stylesheetManager;var E=u.win;if(!E.CSSStyleSheet||!E.CSSStyleSheet.prototype)return function(){};
var y=E.CSSStyleSheet.prototype.insertRule;E.CSSStyleSheet.prototype.insertRule=new xC(y,{apply:YC(function(G,R,H){var l=_.N(H),d=l.next().value;l=l.next().value;var F=Kd(R,Q,L.styleMirror),V=F.id;F=F.styleId;(V&&V!==-1||F&&F!==-1)&&q({id:V,styleId:F,adds:[{rule:d,index:l}]});return G.apply(R,H)})});
E.CSSStyleSheet.prototype.addRule=function(G,R,H){H=H===void 0?this.cssRules.length:H;return E.CSSStyleSheet.prototype.insertRule.apply(this,[G+" { "+R+" }",H])};
var v=E.CSSStyleSheet.prototype.deleteRule;E.CSSStyleSheet.prototype.deleteRule=new xC(v,{apply:YC(function(G,R,H){var l=_.N(H).next().value,d=Kd(R,Q,L.styleMirror),F=d.id;d=d.styleId;(F&&F!==-1||d&&d!==-1)&&q({id:F,styleId:d,removes:[{index:l}]});return G.apply(R,H)})});
E.CSSStyleSheet.prototype.removeRule=function(G){return E.CSSStyleSheet.prototype.deleteRule.apply(this,[G])};
if(E.CSSStyleSheet.prototype.replace){var J=E.CSSStyleSheet.prototype.replace;E.CSSStyleSheet.prototype.replace=new xC(J,{apply:YC(function(G,R,H){var l=_.N(H).next().value,d=Kd(R,Q,L.styleMirror),F=d.id;d=d.styleId;(F&&F!==-1||d&&d!==-1)&&q({id:F,styleId:d,replace:l});return G.apply(R,H)})})}if(E.CSSStyleSheet.prototype.replaceSync){var f=E.CSSStyleSheet.prototype.replaceSync;
E.CSSStyleSheet.prototype.replaceSync=new xC(f,{apply:YC(function(G,R,H){var l=_.N(H).next().value,d=Kd(R,Q,L.styleMirror),F=d.id;d=d.styleId;(F&&F!==-1||d&&d!==-1)&&q({id:F,styleId:d,replaceSync:l});return G.apply(R,H)})})}var t={};
jhF("CSSGroupingRule")?t.CSSGroupingRule=E.CSSGroupingRule:(jhF("CSSMediaRule")&&(t.CSSMediaRule=E.CSSMediaRule),jhF("CSSConditionRule")&&(t.CSSConditionRule=E.CSSConditionRule),jhF("CSSSupportsRule")&&(t.CSSSupportsRule=E.CSSSupportsRule));var e={};Object.entries(t).forEach(function(G){var R=_.N(G);G=R.next().value;R=R.next().value;e[G]={insertRule:R.prototype.insertRule,deleteRule:R.prototype.deleteRule};R.prototype.insertRule=new xC(e[G].insertRule,{apply:YC(function(H,l,d){var F=_.N(d),V=F.next().value;
F=F.next().value;var z=Kd(l.parentStyleSheet,Q,L.styleMirror),O=z.id;z=z.styleId;(O&&O!==-1||z&&z!==-1)&&q({id:O,styleId:z,adds:[{rule:V,index:[].concat(_.na(JHq(l)),[F||0])}]});return H.apply(l,d)})});
R.prototype.deleteRule=new xC(e[G].deleteRule,{apply:YC(function(H,l,d){var F=_.N(d).next().value,V=Kd(l.parentStyleSheet,Q,L.styleMirror),z=V.id;V=V.styleId;(z&&z!==-1||V&&V!==-1)&&q({id:z,styleId:V,removes:[{index:[].concat(_.na(JHq(l)),[F])}]});return H.apply(l,d)})})});
return YC(function(){E.CSSStyleSheet.prototype.insertRule=y;E.CSSStyleSheet.prototype.deleteRule=v;J&&(E.CSSStyleSheet.prototype.replace=J);f&&(E.CSSStyleSheet.prototype.replaceSync=f);Object.entries(t).forEach(function(G){var R=_.N(G);G=R.next().value;R=R.next().value;R.prototype.insertRule=e[G].insertRule;R.prototype.deleteRule=e[G].deleteRule})})};
t2f=function(g,u){var q=g.mirror;var Q=g.stylesheetManager;var L=null;L=u.nodeName==="#document"?q.getId(u):q.getId(Ag(u));var E,y,v;g=u.nodeName==="#document"?(E=u.defaultView)==null?void 0:E.Document:(y=u.ownerDocument)==null?void 0:(v=y.defaultView)==null?void 0:v.ShadowRoot;var J=(g==null?0:g.prototype)?Object.getOwnPropertyDescriptor(g==null?void 0:g.prototype,"adoptedStyleSheets"):void 0;if(L===null||L===-1||!g||!J)return function(){};
Object.defineProperty(u,"adoptedStyleSheets",{configurable:J.configurable,enumerable:J.enumerable,get:function(){var f;return(f=J.get)==null?void 0:f.call(this)},
set:function(f){var t,e=(t=J.set)==null?void 0:t.call(this,f);if(L!==null&&L!==-1)try{M2J(Q,f,L)}catch(G){}return e}});
return YC(function(){Object.defineProperty(u,"adoptedStyleSheets",{configurable:J.configurable,enumerable:J.enumerable,get:J.get,set:J.set})})};
eJf=function(g,u){var q=g.styleDeclarationCb;var Q=g.mirror;var L=g.ignoreCSSAttributes;var E=g.stylesheetManager;var y=u.win;var v=y.CSSStyleDeclaration.prototype.setProperty;y.CSSStyleDeclaration.prototype.setProperty=new xC(v,{apply:YC(function(f,t,e){var G=_.N(e),R=G.next().value,H=G.next().value;G=G.next().value;if(L.has(R))return v.apply(t,[R,H,G]);var l,d=Kd((l=t.parentRule)==null?void 0:l.parentStyleSheet,Q,E.styleMirror);l=d.id;d=d.styleId;(l&&l!==-1||d&&d!==-1)&&q({id:l,styleId:d,set:{property:R,
value:H,priority:G},index:JHq(t.parentRule)});return f.apply(t,e)})});
var J=y.CSSStyleDeclaration.prototype.removeProperty;y.CSSStyleDeclaration.prototype.removeProperty=new xC(J,{apply:YC(function(f,t,e){var G=_.N(e).next().value;if(L.has(G))return J.apply(t,[G]);var R,H=Kd((R=t.parentRule)==null?void 0:R.parentStyleSheet,Q,E.styleMirror);R=H.id;H=H.styleId;(R&&R!==-1||H&&H!==-1)&&q({id:R,styleId:H,remove:{property:G},index:JHq(t.parentRule)});return f.apply(t,e)})});
return YC(function(){y.CSSStyleDeclaration.prototype.setProperty=v;y.CSSStyleDeclaration.prototype.removeProperty=J})};
Gnb=function(g){var u=g.mediaInteractionCb;var q=g.blockClass;var Q=g.blockSelector;var L=g.mirror;var E=g.sampling;g=g.doc;var y=YC(function(J){return rV(YC(function(f){if((f=TB(f))&&!WU(f,q,Q,!0)){var t=f.currentTime,e=f.volume,G=f.muted,R=f.playbackRate,H=f.loop;u({type:J,id:L.getId(f),currentTime:t,volume:e,muted:G,playbackRate:R,loop:H})}}),E.media||500)}),v=[Xw("play",y(0),g),
Xw("pause",y(1),g),Xw("seeked",y(2),g),Xw("volumechange",y(3),g),Xw("ratechange",y(4),g)];return YC(function(){v.forEach(function(J){return J()})})};
$ch=function(g){var u=g.fontCb;g=g.doc;var q=g.defaultView;if(!q)return function(){};
var Q=[],L=new WeakMap,E=q.FontFace;q.FontFace=function(y,v,J){var f=new E(y,v,J);L.set(f,{family:y,buffer:typeof v!=="string",descriptors:J,fontSource:typeof v==="string"?v:JSON.stringify(Array.from(new Uint8Array(v)))});return f};
g=HU(g.fonts,"add",function(y){return function(v){setTimeout(YC(function(){var J=L.get(v);J&&(u(J),L.delete(v))}),0);
return y.apply(this,[v])}});
Q.push(function(){q.FontFace=E});
Q.push(g);return YC(function(){Q.forEach(function(y){return y()})})};
RJm=function(g){var u=g.doc,q=g.mirror,Q=g.blockClass,L=g.blockSelector,E=g.selectionCb,y=!0;g=YC(function(){var v=u.getSelection();if(v&&!(y&&(v==null?0:v.isCollapsed))){y=v.isCollapsed||!1;for(var J=[],f=v.rangeCount||0,t=0;t<f;t++){var e=v.getRangeAt(t),G=e.startContainer,R=e.startOffset,H=e.endContainer;e=e.endOffset;WU(G,Q,L,!0)||WU(H,Q,L,!0)||J.push({start:q.getId(G),startOffset:R,end:q.getId(H),endOffset:e})}E({ranges:J})}});
g();return Xw("selectionchange",g)};
wjF=function(g){var u=g.doc;var q=g.customElementCb;return(g=u.defaultView)&&g.customElements?HU(g.customElements,"define",function(Q){return function(L,E,y){try{q({define:{name:L}})}catch(v){console.warn("Custom element callback failed for "+L)}return Q.apply(this,[L,E,y])}}):function(){}};
cHq=function(g,u){var q=g.mutationCb,Q=g.mousemoveCb,L=g.mouseInteractionCb,E=g.scrollCb,y=g.viewportResizeCb,v=g.inputCb,J=g.mediaInteractionCb,f=g.styleSheetRuleCb,t=g.styleDeclarationCb,e=g.canvasMutationCb,G=g.fontCb,R=g.selectionCb,H=g.customElementCb;g.mutationCb=function(){var l=_.UT.apply(0,arguments);u.mutation&&u.mutation.apply(u,_.na(l));q.apply(null,_.na(l))};
g.mousemoveCb=function(){var l=_.UT.apply(0,arguments);u.mousemove&&u.mousemove.apply(u,_.na(l));Q.apply(null,_.na(l))};
g.mouseInteractionCb=function(){var l=_.UT.apply(0,arguments);u.mouseInteraction&&u.mouseInteraction.apply(u,_.na(l));L.apply(null,_.na(l))};
g.scrollCb=function(){var l=_.UT.apply(0,arguments);u.scroll&&u.scroll.apply(u,_.na(l));E.apply(null,_.na(l))};
g.viewportResizeCb=function(){var l=_.UT.apply(0,arguments);u.viewportResize&&u.viewportResize.apply(u,_.na(l));y.apply(null,_.na(l))};
g.inputCb=function(){var l=_.UT.apply(0,arguments);u.input&&u.input.apply(u,_.na(l));v.apply(null,_.na(l))};
g.mediaInteractionCb=function(){var l=_.UT.apply(0,arguments);u.mediaInteaction&&u.mediaInteaction.apply(u,_.na(l));J.apply(null,_.na(l))};
g.styleSheetRuleCb=function(){var l=_.UT.apply(0,arguments);u.styleSheetRule&&u.styleSheetRule.apply(u,_.na(l));f.apply(null,_.na(l))};
g.styleDeclarationCb=function(){var l=_.UT.apply(0,arguments);u.styleDeclaration&&u.styleDeclaration.apply(u,_.na(l));t.apply(null,_.na(l))};
g.canvasMutationCb=function(){var l=_.UT.apply(0,arguments);u.canvasMutation&&u.canvasMutation.apply(u,_.na(l));e.apply(null,_.na(l))};
g.fontCb=function(){var l=_.UT.apply(0,arguments);u.font&&u.font.apply(u,_.na(l));G.apply(null,_.na(l))};
g.selectionCb=function(){var l=_.UT.apply(0,arguments);u.selection&&u.selection.apply(u,_.na(l));R.apply(null,_.na(l))};
g.customElementCb=function(){var l=_.UT.apply(0,arguments);u.customElement&&u.customElement.apply(u,_.na(l));H.apply(null,_.na(l))}};
HAZ=function(g,u){u=u===void 0?{}:u;var q=g.doc.defaultView;if(!q)return function(){};
cHq(g,u);var Q;g.recordDOM&&(Q=Qhb(g,g.doc));var L=ExT(g),E=Pum(g),y=NGb(g),v=shS(g,{win:q}),J=Dck(g),f=Gnb(g),t=function(){},e=function(){},G=function(){},R=function(){};
g.recordDOM&&(t=frm(g,{win:q}),e=t2f(g,g.doc),G=eJf(g,{win:q}),g.collectFonts&&(R=$ch(g)));var H=RJm(g),l=wjF(g),d=[];g=_.N(g.plugins);for(u=g.next();!u.done;u=g.next())u=u.value,d.push(u.observer(u.callback,q,u.options));return YC(function(){hg.forEach(function(V){return V.reset()});
var F;(F=Q)==null||F.disconnect();L();E();y();v();J();f();t();e();G();R();H();l();d.forEach(function(V){return V()})})};
pjS=function(g){return typeof window[g]!=="undefined"};
jhF=function(g){return!!(typeof window[g]!=="undefined"&&window[g].prototype&&"insertRule"in window[g].prototype&&"deleteRule"in window[g].prototype)};
AHJ=function(g){g=new Uint8Array(g);for(var u="",q=0;q<g.byteLength;q++)u+=String.fromCharCode(g[q]);return btoa(u)};
ZAf=function(g,u,q){if(g instanceof Array)return g.map(function(L){return ZAf(L,u,q)});
if(g!==null){if(g instanceof Float32Array||g instanceof Float64Array||g instanceof Int32Array||g instanceof Uint32Array||g instanceof Uint8Array||g instanceof Uint16Array||g instanceof Int16Array||g instanceof Int8Array||g instanceof Uint8ClampedArray)return{rr_type:g.constructor.name,args:[Object.values(g)]};if(g instanceof ArrayBuffer){var Q=g.constructor.name;g=AHJ(g);return{rr_type:Q,base64:g}}if(g instanceof DataView)return{rr_type:g.constructor.name,args:[ZAf(g.buffer,u,q),g.byteOffset,g.byteLength]};
if(g instanceof HTMLImageElement)return{rr_type:g.constructor.name,src:g.src};if(g instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:g.toDataURL()};if(g instanceof ImageData)return{rr_type:g.constructor.name,args:[ZAf(g.data,u,q),g.width,g.height]};if(lru(g,u)||typeof g==="object")return Q=g.constructor.name,g=IrM(g,u,q),{rr_type:Q,index:g}}return g};
Cub=function(g,u,q,Q){for(var L=[],E=_.N(Object.getOwnPropertyNames(u.CanvasRenderingContext2D.prototype)),y=E.next(),v={};!y.done;v={prop$jscomp$58:void 0},y=E.next()){v.prop$jscomp$58=y.value;try{if(typeof u.CanvasRenderingContext2D.prototype[v.prop$jscomp$58]==="function"){var J=HU(u.CanvasRenderingContext2D.prototype,v.prop$jscomp$58,function(f){return function(t){return function(){var e=_.UT.apply(0,arguments),G=this;WU(this.canvas,q,Q,!0)||setTimeout(function(){var R=iAb(e,u,G);g(G.canvas,{type:BU["2D"],
property:f.prop$jscomp$58,args:R})},0);
return t.apply(this,e)}}}(v));
L.push(J)}}catch(f){y=r$h(u.CanvasRenderingContext2D.prototype,v.prop$jscomp$58,{set:function(t){return function(e){g(this.canvas,{type:BU["2D"],property:t.prop$jscomp$58,args:[e],setter:!0})}}(v)}),L.push(y)}}return function(){L.forEach(function(f){return f()})}};
bAm=function(g,u,q,Q){var L=[];try{var E=HU(g.HTMLCanvasElement.prototype,"getContext",function(y){return function(v){var J=_.UT.apply(1,arguments);if(!WU(this,u,q,!0)){var f=v==="experimental-webgl"?"webgl":v;"__context"in this||(this.__context=f);Q&&["webgl","webgl2"].includes(f)&&(J[0]&&typeof J[0]==="object"?(f=J[0],f.preserveDrawingBuffer||(f.preserveDrawingBuffer=!0)):J.splice(0,1,{preserveDrawingBuffer:!0}))}return y.apply(this,[v].concat(_.na(J)))}});
L.push(E)}catch(y){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){L.forEach(function(y){return y()})}};
dcZ=function(g,u,q,Q,L,E){for(var y=[],v=_.N(Object.getOwnPropertyNames(g)),J=v.next(),f={};!J.done;f={prop$jscomp$59:void 0},J=v.next())if(f.prop$jscomp$59=J.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f.prop$jscomp$59))try{if(typeof g[f.prop$jscomp$59]==="function"){var t=HU(g,f.prop$jscomp$59,function(e){return function(G){return function(){var R=_.UT.apply(0,arguments),H=G.apply(this,R);IrM(H,E,this);"tagName"in this.canvas&&!WU(this.canvas,Q,L,!0)&&(R=
iAb(R,E,this),q(this.canvas,{type:u,property:e.prop$jscomp$59,args:R}));return H}}}(f));
y.push(t)}}catch(e){J=r$h(g,f.prop$jscomp$59,{set:function(G){return function(R){q(this.canvas,{type:u,property:G.prop$jscomp$59,args:[R],setter:!0})}}(f)}),y.push(J)}return y};
F$h=function(g,u,q,Q){var L=[];L.push.apply(L,_.na(dcZ(u.WebGLRenderingContext.prototype,1,g,q,Q,u)));typeof u.WebGL2RenderingContext!=="undefined"&&L.push.apply(L,_.na(dcZ(u.WebGL2RenderingContext.prototype,2,g,q,Q,u)));return function(){L.forEach(function(E){return E()})}};
nx3=function(g){var u=g=g===void 0?{}:g,q=u.emit,Q=u.checkoutEveryNms,L=u.checkoutEveryNth,E=u.blockClass===void 0?"rr-block":u.blockClass,y=u.blockSelector===void 0?null:u.blockSelector,v=u.ignoreClass===void 0?"rr-ignore":u.ignoreClass,J=u.ignoreSelector===void 0?null:u.ignoreSelector,f=u.maskTextClass===void 0?"rr-mask":u.maskTextClass,t=u.maskTextSelector===void 0?null:u.maskTextSelector,e=u.inlineStylesheet===void 0?!0:u.inlineStylesheet,G=u.maskAllInputs,R=u.maskInputOptions,H=u.slimDOMOptions,
l=u.maskInputFn,d=u.maskTextFn,F=u.hooks,V=u.packFn,z=u.sampling===void 0?{}:u.sampling,O=u.dataURLOptions===void 0?{}:u.dataURLOptions,W=u.mousemoveWait,x=u.recordDOM===void 0?!0:u.recordDOM,k=u.recordCanvas===void 0?!1:u.recordCanvas,LZ=u.recordCrossOriginIframes===void 0?!1:u.recordCrossOriginIframes,sb=u.recordAfter===void 0?g.recordAfter==="DOMContentLoaded"?g.recordAfter:"load":u.recordAfter,Rm=u.userTriggeredOnInput===void 0?!1:u.userTriggeredOnInput,M3=u.collectFonts===void 0?!1:u.collectFonts,
tT=u.inlineImages===void 0?!1:u.inlineImages,mJ=u.plugins,hT=u.keepIframeSrcFn===void 0?function(){return!1}:u.keepIframeSrcFn,Yu=u.ignoreCSSAttributes===void 0?new Set([]):u.ignoreCSSAttributes;
zB=u.errorHandler;var Mx=LZ?window.parent===window:!0,po=!1;if(!Mx)try{window.parent.document&&(po=!1)}catch(Ko){po=!0}if(Mx&&!q)throw Error("bf");if(!Mx&&!po)return function(){};
W!==void 0&&z.mousemove===void 0&&(z.mousemove=W);nd.reset();var KZ=G===!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}:R!==void 0?R:{password:!0},G2=H===!0||H==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:H==="all",headMetaDescKeywords:H==="all",headTitleMutations:H==="all"}:
H?H:{};x6b();var Ab,tb=0,lx=function(Ko){for(var K9=_.N(mJ||[]),v5=K9.next();!v5.done;v5=K9.next())v5=v5.value,v5.eventProcessor&&(Ko=v5.eventProcessor(Ko));V&&!po&&(Ko=V(Ko));return Ko};
kC=function(Ko,K9){Ko.timestamp=L$u();var v5;((v5=hg[0])==null?0:v5.isFrozen())&&Ko.type!==2&&(Ko.type!==3||Ko.data.source!==0)&&hg.forEach(function(ME){return ME.unfreeze()});
Mx?q==null||q(lx(Ko),K9):po&&(K9={type:"rrweb",event:lx(Ko),origin:window.location.origin,isCheckout:K9},window.parent.postMessage(K9,"*"));Ko.type===2?(Ab=Ko,tb=0):Ko.type!==3||Ko.data.source===0&&Ko.data.isAttachIframe||(tb++,Ko=Q&&Ko.timestamp-Ab.timestamp>Q,(L&&tb>=L||Ko)&&mcq(!0))};
var NE=function(Ko){kC({type:3,data:Object.assign({},{source:0},Ko)})},fZ=function(Ko){return kC({type:3,
data:Object.assign({},{source:3},Ko)})},Xf=function(Ko){return kC({type:3,
data:Object.assign({},{source:9},Ko)})},eX=new arh({mutationCb:NE,
adoptedStyleSheetCb:function(Ko){return kC({type:3,data:Object.assign({},{source:15},Ko)})}}),no=new V2h({mirror:nd,
mutationCb:NE,stylesheetManager:eX,recordCrossOriginIframes:LZ,wrappedEmit:kC});g=_.N(mJ||[]);for(u=g.next();!u.done;u=g.next())u=u.value,u.getMirror&&u.getMirror({nodeMirror:nd,crossOriginIframeMirror:no.crossOriginIframeMirror,crossOriginIframeStyleMirror:no.crossOriginIframeStyleMirror});var Co=new Xjh;rHT=new W$q({recordCanvas:k,mutationCb:Xf,win:window,blockClass:E,blockSelector:y,mirror:nd,sampling:z.canvas,dataURLOptions:O});var gC=new TGf({mutationCb:NE,scrollCb:fZ,bypassOptions:{blockClass:E,
blockSelector:y,maskTextClass:f,maskTextSelector:t,inlineStylesheet:e,maskInputOptions:KZ,dataURLOptions:O,maskTextFn:d,maskInputFn:l,recordCanvas:k,inlineImages:tT,sampling:z,slimDOMOptions:G2,iframeManager:no,stylesheetManager:eX,canvasManager:rHT,keepIframeSrcFn:hT,processedNodeManager:Co},mirror:nd});mcq=function(Ko){Ko=Ko===void 0?!1:Ko;if(x){kC({type:4,data:{href:window.location.href,width:hku(),height:T2q()}},Ko);eX.reset();gC.init();hg.forEach(function(v5){return v5.lock()});
var K9=XtK({mirror:nd,blockClass:E,blockSelector:y,maskTextClass:f,maskTextSelector:t,inlineStylesheet:e,maskAllInputs:KZ,maskTextFn:d,maskInputFn:l,slimDOM:G2,dataURLOptions:O,recordCanvas:k,inlineImages:tT,onSerialize:function(v5){v5.nodeName==="IFRAME"&&nd.nodeMetaMap.get(v5)&&hJZ(no,v5);B2q(v5,nd)&&YFK(eX,v5);v5&&ZM(v5)&&OAq(gC,ZM(v5),document)},
onIframeLoad:function(v5,ME){K$q(no,v5,ME);v5.contentWindow&&v5.contentDocument&&xcM(gC,v5.contentWindow.Element,v5.contentDocument)},
onStylesheetLoad:function(v5,ME){BGF(eX,v5,ME)},
keepIframeSrcFn:hT});K9?(kC({type:2,data:{node:K9,initialOffset:Wph(window)}},Ko),hg.forEach(function(v5){return v5.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&M2J(eX,document.adoptedStyleSheets,nd.getId(document))):console.warn("Failed to snapshot the document")}};
try{var Ca=[],oR=function(Ko){var K9;return YC(HAZ)({mutationCb:NE,mousemoveCb:function(v5,ME){return kC({type:3,data:{source:ME,positions:v5}})},
mouseInteractionCb:function(v5){return kC({type:3,data:Object.assign({},{source:2},v5)})},
scrollCb:fZ,viewportResizeCb:function(v5){return kC({type:3,data:Object.assign({},{source:4},v5)})},
inputCb:function(v5){return kC({type:3,data:Object.assign({},{source:5},v5)})},
mediaInteractionCb:function(v5){return kC({type:3,data:Object.assign({},{source:7},v5)})},
styleSheetRuleCb:function(v5){return kC({type:3,data:Object.assign({},{source:8},v5)})},
styleDeclarationCb:function(v5){return kC({type:3,data:Object.assign({},{source:13},v5)})},
canvasMutationCb:Xf,fontCb:function(v5){return kC({type:3,data:Object.assign({},{source:10},v5)})},
selectionCb:function(v5){kC({type:3,data:Object.assign({},{source:14},v5)})},
customElementCb:function(v5){kC({type:3,data:Object.assign({},{source:16},v5)})},
blockClass:E,ignoreClass:v,ignoreSelector:J,maskTextClass:f,maskTextSelector:t,maskInputOptions:KZ,inlineStylesheet:e,sampling:z,recordDOM:x,recordCanvas:k,inlineImages:tT,userTriggeredOnInput:Rm,collectFonts:M3,doc:Ko,maskInputFn:l,maskTextFn:d,keepIframeSrcFn:hT,blockSelector:y,slimDOMOptions:G2,dataURLOptions:O,mirror:nd,iframeManager:no,stylesheetManager:eX,shadowDomManager:gC,processedNodeManager:Co,canvasManager:rHT,ignoreCSSAttributes:Yu,plugins:(mJ==null?void 0:(K9=mJ.filter(function(v5){return v5.observer}))==
null?void 0:K9.map(function(v5){return{observer:v5.observer,
options:v5.options,callback:function(ME){return kC({type:6,data:{plugin:v5.name,payload:ME}})}}}))||[]},F)};
zJM(no,function(Ko){try{Ca.push(oR(Ko.contentDocument))}catch(K9){console.warn(K9)}});
var jf=function(){mcq();Ca.push(oR(document))};
document.readyState==="interactive"||document.readyState==="complete"?jf():(Ca.push(Xw("DOMContentLoaded",function(){kC({type:0,data:{}});sb==="DOMContentLoaded"&&jf()})),Ca.push(Xw("load",function(){kC({type:1,
data:{}});sb==="load"&&jf()},window)));
return function(){Ca.forEach(function(Ko){try{Ko()}catch(K9){String(K9).toLowerCase().includes("cross-origin")||console.warn(K9)}});
Co.destroy();zB=void 0}}catch(Ko){console.warn(Ko)}};
_.Z=function(g,u){u=EP(QT(u));g.innerHTML=u};
oxf=function(g){var u=knq;u||(u=SFk(),u=knq=_.pH.transpose(u));u=u[g];return typeof u==="string"?u:_.SZ(g)};
UcT=function(g){g=String(g).toLowerCase();var u=SFk()[g];return typeof u==="string"?u:_.oM(g)};
gIu=function(g){g=g.toLowerCase();g=SFk()[g];return typeof g==="string"?g:null};
SFk=function(){if(!u9K){for(var g=Object.assign({},qtM),u=_.N(QxF),q=u.next();!q.done;q=u.next())q=q.value,g[q.toLowerCase()]=q;u9K=g}return u9K};
Pgh=function(g,u){var q=window.customElements;return q&&q.get(g)||LmF[g]===!0?2:u.name==="HTMLUnknownElement"?1:u.name==="HTMLElement"&&EIb.test(g)?3:0};
ym3=function(g,u){switch(u){case "innerHTML":return NdJ(g)===1?2:null;case "textContent":return g=NdJ(g),g===1||g===6?1:null;default:var q,Q;return(Q=(q=sxq[g.localName])==null?void 0:q[u])!=null?Q:null}};
NdJ=function(g){var u=g.localName,q=Pgh(u,g.constructor);switch(q){case 0:case 1:return vIM(u,g);case 3:case 2:return 1;default:_.qE(q,"got an unknown element classification")}};
vIM=function(g,u){var q=Object.hasOwnProperty.call(DIk,g)?DIk[g]:null;return q!==null?q:Object.hasOwnProperty.call(pNZ,g)&&u instanceof SVGElement?pNZ[g]:null};
Jmh=function(g,u){return u};
fSk=function(g){return(g=g.split(jxJ,2))?{url:g[0],metadata:g[1]}:null};
teS=function(g){var u=String(g.url).replace(MeK,encodeURIComponent);if(g=g.metadata){MeK.lastIndex=0;if(MeK.test(g))return null;u+=" "+g}return u};
RgK=function(g){function u(f){var t=f.localName;if(!f.getAttribute("is")&&Pgh(t,f.constructor)===2){var e;return(e=J)!=null?e:J=document.createElement("polyresinuncustomized")}(f=v[t])||(f=v[t]=document.createElement(t));return f}
var q=g.reportHandler||void 0,Q=g.safeTypesBridge||egk,L=/^$/;if(g=g.allowedIdentifierPrefixes){g=_.N(g);for(var E=g.next();!E.done;E=g.next())L=new RegExp(L.source+"|^"+_.GPF(E.value))}q&&q(!1,"initResin",null);var y=$IF(L,Q,q),v={},J=null;return function(f,t,e){var G=f.nodeType;if(G!==Node.ELEMENT_NODE){if(G===Node.TEXT_NODE){t=f.parentElement;e=!t;if(t&&t.nodeType===Node.ELEMENT_NODE){G=t.localName;var R=Pgh(G,t.constructor);switch(R){case 0:case 1:t=vIM(G,t);e=t===1||t===6;break;case 3:case 2:e=
!0;break;default:_.qE(R,"got an unknown element classification")}}if(e)return function(F){return""+Q(F,"STRING",F)}}return function(F){if(!F&&F!==document.all)return F;
q&&q(!0,"Failed to sanitize "+(f.parentElement&&f.parentElement.nodeName)+" #text node to value "+F,f.parentElement);return UA}}var H=f.localName;
G=u(f);var l=null;switch(e){case "attribute":if(UcT(t)in G)break;return function(F){return F};
case "property":if(t in G){l=ym3(G,t);break}if((R=gIu(t))&&R in G)break;return function(F){return F};
default:_.qE(e,"got an unknown resin type, expected either 'property' or 'attribute'")}var d=e==="attribute"?t.toLowerCase():oxf(t);l||(l=OfZ(H,d,function(F){var V=f.getAttribute(F);return!V||/[\[\{]/.test(F)?null:V}));
return function(F){var V=gw,z=null;if(!F&&F!==document.all)return F;if(l!=null){var O=y[l],W=O.safeType;z=O.safeReplacement;W&&(V=Q(F,W,gw));V===gw&&(O.filterString?(V=String(Q(F,"STRING",F)),V=O.filterString(H,d,V)):O.filterRaw&&(V=O.filterRaw(H,d,F,f)),V===z&&(V=gw))}V===gw&&(V=z||UA,q&&q(!0,"Failed to sanitize attribute of <"+H+">: <"+H+" "+d+'="'+F+'">',f));return V}}};
$IF=function(g,u,q){return[,{filterRaw:function(Q,L,E){return E},
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:wNu,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:wNu,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:UA,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:cmM,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(Q,L,E){E=
String(E).toLowerCase();return BUq(Q,L,E)?E:UA},
safeReplacement:UA,safeType:void 0},,{filterRaw:void 0,filterString:function(Q,L,E){return g.test(E)?E:UA},
safeReplacement:UA,safeType:"CONSTANT"},{filterRaw:function(Q,L,E,y){if(typeof E==="string")var v=(v=E.match(H8q))?v.map(fSk).filter(Boolean):[];else if(Array.isArray(E))v=E;else return wNu;var J=v;v=[];var f=[],t={};if(Array.isArray(J))for(var e=0,G=J.length;e<G;++e){var R=J[e],H=R&&R.url;if(H){var l=u(H,"URL",t);if(l){var d=l!==t;(d?v:f).push({url:d?l:H,metadata:R.metadata})}}}else f.push(J);J=f.length?JSON.stringify(f):null;f=gw;if(v.length){if(!Array.isArray(v))throw Error();f=v.map(teS).filter(Boolean).join(" , ")||
gw}J&&q&&q(!0,"Failed to sanitize attribute value of <"+Q+">: <"+Q+" "+L+'="'+E+'">: '+J,y);return f===gw?wNu:f},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
AmZ=function(g){var u=RgK(g);return function(q,Q,L,E){return E||E===document.all?u(q,Q,L)(E):E}};
u1=function(g,u){function q(){function L(v,J,f){for(J=Reflect.getMetadata("parameters",v)||[];J.length<=f;)J.push(null);J[f]=J[f]||[];J[f].push(y);Reflect.defineMetadata(J,v);return v}
var E=_.UT.apply(0,arguments);if(this instanceof q)return Q.apply(this,E),this;var y=new (Function.prototype.bind.apply(q,[null].concat(_.na(E))));L.annotation=y;return L}
var Q=Z8k(u);q.prototype.toString=function(){return"@"+g};
return q.annotationCls=q};
Z8k=function(g){return function(){var u=_.UT.apply(0,arguments),q=this;g.forEach(function(Q,L){L=u[L];if(Array.isArray(Q))q[Q[0]]=L&&L!==void 0?L:Q[1];else for(var E in Q)q[E]=L&&L[E]!==void 0?L[E]:Q[E]})}};
lST=function(g){return g!==void 0&&g!==null};
qK=function(g){if(typeof g==="string")return g;if(g===void 0||g===null)return""+g;if(g.overriddenName)return g.overriddenName;if(g.name)return g.name;g=g.toString();var u=g.indexOf("\n");return u===-1?g:g.substring(0,u)};
ISu=function(g){g.__forward_ref__=ISu;g.toString=function(){return qK(this())};
return g};
QD=function(g){return typeof g==="function"&&g.hasOwnProperty("__forward_ref__")&&g.__forward_ref__===ISu?g():g};
i8K=function(g){return g?g.map(function(u){return new (Function.prototype.bind.apply(u.type.annotationCls,[null].concat(_.na(u.args?u.args:[]))))}):[]};
CgZ=function(g){for(var u=[],q=0;q<g.length;++q){if(u.indexOf(g[q])>-1){u.push(g[q]);break}u.push(g[q])}return u};
b8M=function(g){return g.length>1?" ("+CgZ(g.slice().reverse()).map(function(u){return qK(u.token)}).join(" -> ")+")":""};
FmJ=function(g,u,q,Q){if(Q){var L=Error("ef``"+(Q instanceof Error?Q.message:Q));L.ngOriginalError=Q}else L=Error();L.addKey=dIh;L.keys=[u];L.injectors=[g];L.constructResolvingMessage=q;L.message=L.constructResolvingMessage();L.ngOriginalError=Q;return L};
dIh=function(g,u){this.injectors.push(g);this.keys.push(u);this.message=this.constructResolvingMessage()};
mIM=function(g,u){return FmJ(g,u,function(){return"No provider for "+qK(this.keys[0].token)+"!"+b8M(this.keys)})};
aSF=function(g,u){return FmJ(g,u,function(){return"Cannot instantiate cyclic dependency!"+b8M(this.keys)})};
Veb=function(g,u,q){return FmJ(g,q,function(){var Q=qK(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+Q+"!"+b8M(this.keys)+"."},u)};
XNT=function(g,u){for(var q=[],Q=0,L=u.length;Q<L;Q++){var E=u[Q];E&&E.length!=0?q.push(E.map(qK).join(" ")):q.push("?")}return Error("jf`"+qK(g)+"`"+q.join(", ")+"`"+qK(g))};
Kmk=function(g){var u=void 0,q=void 0;if(g&&g.useClass!==void 0){u=g.useClass;var Q=QD(g.useClass);var L=rmF.factory(Q);Q=WmJ(Q)}else g&&g.useExisting!==void 0?(L=function(E){return E},Q=[Tdq(LV.get(QD(g.useExisting)))]):g&&g.useFactory!==void 0?(L=g.useFactory,Q=hgJ(g.useFactory,g.deps)):(q=g.useValue,L=function(){return g.useValue},Q=Ytq);
return new O8F(L,Q,u,q)};
BdZ=function(g){return new xIS(LV.get(QD(g.provide)),[Kmk(g)],g.multi)};
nIK=function(g){g=zgu(g,[]).map(BdZ);for(var u=new Map,q=0;q<g.length;q++){var Q=g[q],L=u.get(Q.key.id);if(L){if(Q.multiProvider!==L.multiProvider)throw Error("lf`"+L+"`"+Q);if(Q.multiProvider)for(var E=0;E<Q.resolvedFactories.length;E++)L.resolvedFactories.push(Q.resolvedFactories[E]);else u.set(Q.key.id,Q)}else L=void 0,Q.multiProvider?L=new xIS(Q.key,Q.resolvedFactories.slice(),Q.multiProvider):L=Q,u.set(Q.key.id,L)}return Array.from(u.values())};
zgu=function(g,u){g.forEach(function(q){if(q instanceof kPq)u.push({provide:q,useClass:q});else if(q&&typeof q=="object"&&q.provide!==void 0)u.push(q);else if(q instanceof Array)zgu(q,u);else throw Error("hf`"+q);});
return u};
hgJ=function(g,u){if(u){var q=u.map(function(Q){return[Q]});
return u.map(function(Q){return StF(g,Q,q)})}return WmJ(g)};
WmJ=function(g){var u=rmF.parameters(g);if(!u)return[];if(u.some(function(q){return q==null}))throw XNT(g,u);
return u.map(function(q){return StF(g,q,u)})};
StF=function(g,u,q){var Q=null,L=!1;if(!Array.isArray(u))return u instanceof oIh?UIS(u.token,L,null):UIS(u,L,null);for(var E=null,y=0;y<u.length;++y){var v=u[y];if(v instanceof kPq)Q=v;else if(v instanceof oIh)Q=v.token;else if(v instanceof gfS)L=!0;else if(v instanceof uMS||v instanceof qdm)E=v}Q=QD(Q);if(Q!=null)return UIS(Q,L,E);throw XNT(g,q);};
UIS=function(g,u,q){return new QBq(LV.get(QD(g)),u,q)};
Ldh=function(g,u){for(var q=Array(g.providers.length),Q=0;Q<g.providers.length;++Q){var L=Q;if(Q<0||Q>=g.providers.length)throw Error("kf`"+Q);q[L]=u(g.providers[Q])}return q};
Efb=function(g){return typeof g==="function"&&rmF.parameters(g).every(function(u){return!!u})};
sBh=function(g){var u=PGh;N5m.get(g)||N5m.set(g,new u);return N5m.get(g)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(g)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(g)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g,u){var q,Q;if(g.contains(u))return!0;g=_.Eg(g).querySelectorAll("content,slot");for(q=0;q<g.length;++q){var L=_.Eg(g[q]).getDistributedNodes();for(Q=0;Q<L.length;++Q)if(L[Q].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(L[Q],u))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){g.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(g)&&g.preventDefault();g.targetTouches&&(g=g.targetTouches[0],yOS=g.pageX,vfZ=g.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 g=0,u=PX.length;g<u;g++)document.addEventListener(PX[g],_._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 g=0,u=PX.length;g<u;g++)document.removeEventListener(PX[g],_._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(g){var u=_.Eg(g).rootTarget;g.type!=="touchmove"&&Dsq!==u&&(Dsq=u,pIu=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Eg(g).path));if(!pIu.length)return!0;if(g.type==="touchstart")return!1;g=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(g);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(pIu,g.deltaX,g.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){for(var u=[],q=g.indexOf(JOb),Q=0;Q<=q;Q++)if(g[Q].nodeType===Node.ELEMENT_NODE){var L=g[Q],E=L.style;E.overflow!=="scroll"&&E.overflow!=="auto"&&(E=window.getComputedStyle(L));E.overflow!=="scroll"&&E.overflow!=="auto"||u.push(L)}return u};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g,u,q){if(u||q)for(var Q=Math.abs(q)>=Math.abs(u),L=0;L<g.length;L++){var E=g[L];if(Q?q<0?E.scrollTop>0:E.scrollTop<E.scrollHeight-E.clientHeight:u<0?E.scrollLeft>0:E.scrollLeft<E.scrollWidth-E.clientWidth)return E}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){var u={deltaX:g.deltaX,deltaY:g.deltaY};"deltaX"in g||("wheelDeltaX"in g&&"wheelDeltaY"in g?(u.deltaX=-g.wheelDeltaX,u.deltaY=-g.wheelDeltaY):"wheelDelta"in g?(u.deltaX=0,u.deltaY=-g.wheelDelta):"axis"in g?(u.deltaX=g.axis===1?g.detail:0,u.deltaY=g.axis===2?g.detail:0):g.targetTouches&&(g=g.targetTouches[0],u.deltaX=yOS-g.pageX,u.deltaY=vfZ-g.pageY));return u};
jBT=function(g){this.element=g;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Mnf=function(g){this.element=g;this.color=window.getComputedStyle(g).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");_.Eg(this.waveContainer).appendChild(this.wave);f8m(this)};
NK=function(g,u){for(var q in g)if(q.toLowerCase()===u.toLowerCase())return g[q]};
tnq=function(g,u){for(var q in g)if(q.toLowerCase()===u.toLowerCase()){delete g[q];break}};
GoF=function(g){g=_.pH.clone(g);for(var u=0;u<e0m.length;++u){var q=e0m[u],Q=NK(g,q);Q&&(g["X-Goog-Upload-Header-"+q]=Q,tnq(g,q))}return g};
$sm=function(g){g=_.pH.clone(g);tnq(g,"X-Goog-Upload-Status")};
wIk=function(g){return R03.some(function(u){return u.test(g)})};
ZJ3=function(g,u){var q;var Q=(q=g.formContent)==null?void 0:q.locale;q=Q==null?void 0:Q.split("-")[0];Q=Q&&cOb.includes(Q)?Q:q&&cOb.includes(q)?q:void 0;Q=(Q!=null?Q:"en").replaceAll("-","_").toLowerCase();var L;g=((L=g.initializationData)==null?0:L.useNightlyRelease)?"nightly":"live";var E;return(u==null?0:(E=u.getEnableAlohaBinarySplit)==null?0:E.call(u))?_.A1(HJS,g):_.A1(AOF,g,Q)};
iJm=function(g,u,q,Q){if(l8Z&&I8q===u)return l8Z;I8q=u;var L=ZJ3(g,Q);return l8Z=u.feedbackV2GlobalObject?Promise.resolve(u.feedbackV2GlobalObject):new Promise(function(E,y){var v=_.oG("SCRIPT");_.jx(v,L);v.onload=function(){u.feedbackV2GlobalObject?E(u.feedbackV2GlobalObject):y(Error("of"))};
v.onerror=function(){y(Error("pf`"+L.toString()))};
q.body.appendChild(v)})};
dsq=function(g,u,q,Q){if(CGM&&bJq===u)return CGM;bJq=u;var L=ZJ3(g,Q);return CGM=u.feedbackV2GlobalObject?Promise.resolve(u.feedbackV2GlobalObject):new Promise(function(E,y){var v=_.oG("SCRIPT");_.jx(v,L);v.onload=function(){u.feedbackV2GlobalObject?E(u.feedbackV2GlobalObject):y(Error("of"))};
v.onerror=function(){y(Error("pf`"+L.toString()))};
q.body.appendChild(v)})};
FdS=function(g,u,q,Q,L){L=L===void 0?!0:L;var E,y,v,J,f;return _.D(function(t){switch(t.nextAddress){case 1:return E=Date.now(),t.yield(iJm(g,q,Q,u),2);case 2:y=t.yieldResult;if(!(L||((J=g.initializationData)==null?0:J.useNightlyRelease)||((f=g.initializationData)==null?0:f.isLocalServer))){v=y.initializeFeedbackClient(g,E,u);t.jumpTo(3);break}return t.yield(y.initializeFeedbackClientAsync(g,E,u),4);case 4:v=t.yieldResult;case 3:return v.initiateAloha(),t.return(v)}})};
msS=function(g,u,q,Q){var L,E,y;return _.D(function(v){if(v.nextAddress==1)return L=Date.now(),v.yield(dsq(g,q,Q.document,u),2);if(v.nextAddress!=3)return E=v.yieldResult,v.yield(E.initializeFeedbackClientAsync(g,L,u,Q),3);y=v.yieldResult;y.initiateAloha();return v.return(y)})};
a8u=function(g,u,q){var Q=!0;Q=Q===void 0?!0:Q;var L,E,y,v,J,f,t,e;return _.D(function(G){L=q||_.Qq;if((E=u)==null?0:(v=(y=E).getEnableAlohaBinarySplit)==null?0:v.call(y)){J=L;if(J.isFormOpened)throw new sg;J.isFormOpened=!0;g.callbacks=g.callbacks||{};f=g.callbacks.onClose||function(){};
g.callbacks.onClose=function(R){J.isFormOpened=!1;f(R)};
try{return G.return(msS(g,u,J,L))}catch(R){throw J.isFormOpened=!1,R;}}else{t=L;if(t.isFormOpened)throw new sg;t.isFormOpened=!0;g.callbacks=g.callbacks||{};e=g.callbacks.onClose||function(){};
g.callbacks.onClose=function(R){t.isFormOpened=!1;e(R)};
try{return G.return(FdS(g,u,t,L.document,Q))}catch(R){throw t.isFormOpened=!1,R;}}_.Wx(G)})};
T5q=function(g,u){return _.D(function(q){return q.return(new Promise(function(Q,L){Number.isInteger(Number(g))&&Number(g)>0?(L=Vn3(u!=null?u:"")+"/aloha_form_properties?productId="+g,XIS(L,function(E){E=E.target;var y=null;try{var v=JSON,J=v.stringify;if(E.JSC$10103_xhr_){var f=E.JSC$10103_xhr_.responseText;f.indexOf(")]}'\n")==0&&(f=f.substring(5));var t=_.yD(f)}else t=void 0;y=Daq(rOf,J.call(v,t))}catch(e){J=new rOf,t=WdT(),t=_.vX(t,13,!1),t=_.vX(t,14,!0),t=_.vX(t,15,!0),t=_.vX(t,20,!1),y=_.FV(J,
1,t)}Q(y)},"GET","",{},2E3,!0)):L(Error("qf`"+g))}))})};
Vn3=function(g){return wIk(g)?g:"https://www.google.com/tools/feedback"};
Kdu=function(g){g=g.match(new RegExp(h0S,"gi"))||[];g=_.N(g);for(var u=g.next();!u.done;u=g.next()){u=u.value;a:{var q=_.N(Ydb);for(var Q=q.next();!Q.done;Q=q.next())if(Q.value.test(u)){q=!1;break a}q=!0}if(!q)a:{q=_.N(OJu);for(Q=q.next();!Q.done;Q=q.next())if(Q.value.test(u)){q=!0;break a}q=!1}if(q)return!0}return!1};
xsf=function(g,u){var q={},Q=Object.keys(g);Q=_.N(Q);for(var L=Q.next();!L.done;L=Q.next())L=L.value,q[L]=u(L,g[L]);return q};
B5J=function(g){switch(g){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"}};
nfh=function(g){if(window.crypto&&window.crypto.getRandomValues)try{var u=Array(g),q=new Uint8Array(g);window.crypto.getRandomValues(q);for(var Q=0;Q<u.length;Q++)u[Q]=q[Q];return u}catch(E){}u=Array(g);for(q=0;q<g;q++){Q=Date.now();for(var L=0;L<Q%23;L++)u[q]=Math.random();u[q]=Math.floor(Math.random()*256)}if(z03)for(q=1,Q=0;Q<z03.length;Q++)u[q%g]^=u[(q-1)%g]/4^z03.charCodeAt(Q),q++;return u};
D4=function(g){g=nfh(g);for(var u=[],q=0;q<g.length;q++)u.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(g[q]&63));return u.join("")};
koq=function(){var g=_.Qq.ytLoggingDocDocumentNonce_;g||(g=D4(16),_.xQ("ytLoggingDocDocumentNonce_",g));return g};
ofJ=function(g){g&&_.H6("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Sdq,clientScreenNonce:g})};
UsJ=function(g){return _.FR("client-screen-nonce-store",{})[g===void 0?0:g]};
glf=function(g,u){u=u===void 0?0:u;var q=_.FR("client-screen-nonce-store");q||(q={},_.di("client-screen-nonce-store",q));q[u]=g};
uuM=function(g){g=g===void 0?0:g;return g===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+g};
qwZ=function(g){return _.FR(uuM(g===void 0?0:g))};
_.JJ=function(g){return(g=qwZ(g===void 0?0:g))?new _.pV({veType:g,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Qnf=function(){var g=_.FR("csn-to-ctt-auth-info");g||(g={},_.di("csn-to-ctt-auth-info",g));return g};
LBK=function(){return Object.values(_.FR("client-screen-nonce-store",{})).filter(function(g){return g!==void 0})};
_.j_=function(g){g=UsJ(g===void 0?0:g);if(!g&&!_.mW("USE_CSN_FALLBACK",!0))return null;g||(g="UNDEFINED_CSN");return g?g:null};
Pkm=function(g){for(var u=_.N(Object.values(ElT)),q=u.next();!q.done;q=u.next())if(_.j_(q.value)===g)return!0;return!1};
NSF=function(g,u,q){var Q=Qnf();(q=_.j_(q))&&delete Q[q];u&&(Q[g]=u)};
fV=function(g){return Qnf()[g]};
_.MK=function(g,u,q,Q){q=q===void 0?0:q;if(g!==UsJ(q)||u!==_.FR(uuM(q)))if(NSF(g,Q,q),glf(g,q),_.di(uuM(q),u),u=function(){setTimeout(function(){ofJ(g)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(u)}catch(L){u()}else u()};
snm=function(g,u){u=u===void 0?"":u;var q=[],Q;for(Q in g)if(g.hasOwnProperty(Q)){var L=u!==""?u+"."+Q:Q;typeof g[Q]==="object"?q.push.apply(q,_.na(snm(g[Q],L))):q.push([L,g[Q]])}q.sort();return q};
_.e_=function(g){var u=_.UT.apply(1,arguments);if(!tJ(g)||u.some(function(Q){return!tJ(Q)}))throw Error("rf");
u=_.N(u);for(var q=u.next();!q.done;q=u.next())ynq(g,q.value)};
ynq=function(g,u){for(var q in u)if(tJ(u[q])){if(q in g&&!tJ(g[q]))throw Error("sf");q in g||(g[q]={});ynq(g[q],u[q])}else if(vlq(u[q])){if(q in g&&!vlq(g[q]))throw Error("tf");q in g||(g[q]=[]);D4T(g[q],u[q])}else g[q]=u[q];return g};
D4T=function(g,u){u=_.N(u);for(var q=u.next();!q.done;q=u.next())q=q.value,tJ(q)?g.push(ynq({},q)):vlq(q)?g.push(D4T([],q)):g.push(q);return g};
tJ=function(g){return typeof g==="object"&&!Array.isArray(g)};
vlq=function(g){return typeof g==="object"&&Array.isArray(g)};
JnJ=function(g){for(var u=_.N(Object.entries(pFT)),q=u.next();!q.done;q=u.next())if(q=_.N(q.value),q.next(),q=q.next().value,q==="SLI_STATUS_"+g)return q;return"SLI_STATUS_UNKNOWN"};
_.Gg=function(g,u,q,Q){return jnq(g,u,function(){return new _.fLF(g,u,q,Q)})};
_.MWb=function(){return _.Gg("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
tWb=function(){return _.Gg("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
$J=function(){return _.Gg("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
e9Z=function(){return _.Gg("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
GZh=function(){return _.Gg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
$43=function(){return _.Gg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
cnu=function(g){g&&(g.dataset?g.dataset[R9Z()]="true":_.Ma([_.cq(wFS)],g,"data-loaded","true".toString()))};
Hqf=function(g){return g?g.dataset?g.dataset[R9Z()]:g.getAttribute("data-loaded"):null};
R9Z=function(){return Anq.loaded||(Anq.loaded="loaded".replace(/\-([a-z])/g,function(g,u){return u.toUpperCase()}))};
_.Rr=function(g,u,q){ZqJ(g,u,q===void 0?null:q)};
_.IL3=function(g,u){g&&u&&(g=""+_.ku(u),(g=lLf[g])&&_.xYM(g))};
ZqJ=function(g,u,q){q=q===void 0?null:q;var Q=_.iqZ(typeof g==="string"?g:g.toString()),L=document.getElementById(Q),E=L&&Hqf(L),y=L&&!E;E?u&&u():(u&&(E=_.Ur(Q,u),u=""+_.ku(u),lLf[u]=E),y||(L=Ckh(g,Q,function(){Hqf(L)||(cnu(L),_.BLS(Q),_.uS(function(){_.nHh(Q)},0))},q)))};
Ckh=function(g,u,q,Q){Q=Q===void 0?null:Q;var L=_.oG("SCRIPT");L.id=u;L.onload=function(){q&&setTimeout(q,0)};
L.onreadystatechange=function(){switch(L.readyState){case "loaded":case "complete":L.onload()}};
Q&&L.setAttribute("nonce",Q);_.jx(L,typeof g==="string"?_.J5(g):g);g=document.getElementsByTagName("head")[0]||document.body;g.insertBefore(L,g.firstChild);return L};
_.iqZ=function(g){var u=document.createElement("a");u8(u,g);return"js-"+ww(u.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
bqK=function(g){var u=_.FR("INNERTUBE_HOST_OVERRIDE");u&&(g=String(u)+String(_.KO(g)));return g};
d4f=function(g){var u={};_.w("json_condensed_response")&&(u.prettyPrint="false");return g=MFh(g,u)};
_.cX=function(g){return KS(g)?"same-origin":"include"};
_.HX=function(g){return KS(g)?"same-origin":"cors"};
AJ=function(g,u,q){q=q===void 0?{}:q;g={method:u===void 0?"POST":u,mode:_.HX(g),credentials:_.cX(g)};u={};for(var Q=_.N(Object.keys(q)),L=Q.next();!L.done;L=Q.next())L=L.value,q[L]&&(u[L]=q[L]);Object.keys(u).length>0&&(g.headers=u);return g};
_.Z4=function(g,u){u=u===void 0?{}:u;return"service:"+g+"/"+Object.keys(u).sort().map(function(q){return q+":"+u[q]}).join("/")};
FBK=function(g){var u,q,Q,L;g=(u=_.c(g,_.l1))==null?void 0:(q=u.watchEndpointSupportedOnesieConfig)==null?void 0:(Q=q.html5PlaybackOnesieConfig)==null?void 0:(L=Q.commonConfig)==null?void 0:L.url;if(!g)return[];u=new _.Ir(g);return u.JSC$10339_domain_?["https://"+u.JSC$10339_domain_+"/generate_204"]:[]};
_.VWh=function(){return m4S()||RhF()||aLJ&&ZQ("version/")?!0:_.FR("EOM_VISITOR_DATA")?!1:!0};
XFZ=function(g){var u=g.docid||g.video_id||g.videoId||g.id;if(u)return u;u=g.raw_player_response;u||(g=g.player_response)&&(u=JSON.parse(g));return u&&u.videoDetails&&u.videoDetails.videoId||null};
rnb=function(g){return g.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
i1=function(g){return!isNaN(Number(g))&&!_.vS(g)};
_.CV=function(g,u,q,Q){Q=Q===void 0?!0:Q;var L=_.FR("VALID_SESSION_TEMPDATA_DOMAINS",[]),E=_.h1(window.location.href);E&&L.push(E);E=_.h1(g);if(_.WS(L,E)||!E&&_.N3(g,"/"))if(L=document.createElement("a"),u8(L,g),g=L.href)if(g=_.KO(g),g=_.xB(g))Q&&!u.csn&&(u.itct||u.ved)&&(u=Object.assign({csn:_.j_()},u)),q?(q=parseInt(q,10),isFinite(q)&&q>0&&WBq(g,u,q)):WBq(g,u)};
h9u=function(g){var u=_.FR("VALID_SESSION_TEMPDATA_DOMAINS",[]),q=_.h1(window.location.href);q&&u.push(q);q=_.h1(g);if(!(_.WS(u,q)||!q&&_.N3(g,"/")))return null;g=_.KO(g);(g=_.xB(g))?(g=TSb(g),g=(g=_.sk.get(g,void 0)||null)?_.hM(g):{}):g=null;return g};
WBq=function(g,u,q){g=TSb(g);u=u?_.kB(u):"";q=q||5;_.VWh()&&_.yW(g,u,q)};
TSb=function(g){for(var u=_.N(Yw3),q=u.next();!q.done;q=u.next())g=_.g6(g,q.value);return"ST-"+ww(g).toString(36)};
_.Oqh=function(g){if(g.requestFullscreen)g=g.requestFullscreen(void 0);else if(g.webkitRequestFullscreen)g=g.webkitRequestFullscreen();else if(g.mozRequestFullScreen)g=g.mozRequestFullScreen();else if(g.msRequestFullscreen)g=g.msRequestFullscreen();else if(g.webkitEnterFullscreen)g=g.webkitEnterFullscreen();else return Promise.reject(Error("Cf"));return g instanceof Promise?g:Promise.resolve()};
_.dw=function(g){var u;_.dYF(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.b1()==g&&(u=document):u=g;if(u&&(g=_.dYF(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],u))){g.call(u)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.b1=function(){var g=g===void 0?!1:g;var u=_.dYF(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(g)for(;u&&u.shadowRoot;)u=u.shadowRoot.fullscreenElement;return u?u:null};
_.ar=function(g,u){u=u===void 0?!0:u;g.addEventListener("wheel",KBF);g.overscrollConfig={cooldown:u}};
_.VD=function(g){g.overscrollConfig=void 0;g.removeEventListener("wheel",KBF)};
KBF=function(g){var u=g.deltaY,q=g.target,Q=null;if(window.Polymer&&window.Polymer.Element){if(q=g.path||g.composedPath&&g.composedPath()){q=_.N(q);for(var L=q.next();!L.done&&(L=L.value,!x4q(L,u));L=q.next())if(L.overscrollConfig){Q=L;break}}}else for(;q&&!x4q(q,u);){if(q.overscrollConfig){Q=q;break}q=q.parentElement}Q&&(u=Q.overscrollConfig,u.cooldown?(Q=g.deltaY,q=u.lastDeltaY||0,u.lastDeltaY=Q,L=u.lastStopped||0,q&&L&&q>0==Q>0?Math.abs(q)>=Math.abs(Q)?(Q=L+1200,q=!1):(Q=L+600,q=!0):(Q=Date.now()+
600,q=!0),Q>Date.now()&&(g.preventDefault(),q&&(u.lastStopped=Date.now()))):g.preventDefault())};
x4q=function(g,u){return u<0&&g.scrollTop>0||u>0&&g.scrollTop<g.scrollHeight-g.clientHeight-1?(g=getComputedStyle(g).overflowY,g=="auto"||g=="scroll"):!1};
BSk=function(g){X1.initialized=!0;X1.sessionId=g.sessionId||"";X1.enabledSpans=g.enabledSpans;g.shouldSampleFn!=null&&(X1.shouldSampleFn=g.shouldSampleFn)};
z9f=function(g){X1.processors.push(g)};
rw=function(g){return X1.initialized?X1.enabledSpans?X1.enabledSpans[g]:!0:!1};
olb=function(g,u,q){return rw(g)&&X1.shouldSampleFn(g,u,nlk)?new kZq(g,u,q):Swf};
_.WX=function(g,u,q){if(typeof q==="function"){var Q=q;q=void 0}var L=olb(g,u,q),E;if(((E=q)==null?void 0:E.endTime)!=null)return Q&&_.Io(Error("Ef")),L;var y;L!==Swf&&((y=q)==null?void 0:y.active)!==!1&&X1.stack.push(L);if(!Q)return L;if(L===Swf)return Q(L);try{var v=Q(L);if(v instanceof Promise)return v.then(function(J){L.end();return J},function(J){L.end("SPAN_STATUS_ERROR");
throw J;});
L.end();return v}catch(J){throw L.end("SPAN_STATUS_ERROR"),J;}};
U4h=function(){bD.subscribe("handleError",function(g){try{for(var u in Tg)try{var q=Tg[u];typeof Tg[u]==="function"&&(q=q());g.params[u]=typeof Tg[u]==="object"?JSON.stringify(q):String(q)}catch(Q){_.Io(Q)}}catch(Q){_.Io(Q)}})};
gau=function(){};
uCJ=function(g){var u=g.nodeName;if(g.id)return u+="#"+g.id;if(g.classList)for(var q=_.N(g.classList),Q=q.next();!Q.done;Q=q.next())u+="."+Q.value;g.parentElement&&(u=uCJ(g.parentElement)+" > "+u);return u};
_.hJ=function(g,u,q,Q){Q||(Q={bubbles:!0,cancelable:!1,composed:!0});q!==null&&q!==void 0&&(Q.detail=q);var L=new CustomEvent(u,Q);_.w("untrack_fire_custom_event_killswitch")?g.dispatchEvent(L):_.D6(function(){return void g.dispatchEvent(L)});
return L};
q1K=function(g){var u=window,q=function(Q){u.removeEventListener("yt-navigate-start",q);return g.call(u,Q)};
u.addEventListener("yt-navigate-start",q,void 0)};
_.YJ=function(g,u,q,Q){Q=Q===void 0?!1:Q;return _.WX("ytAction",{name:u,nodepath:uCJ(g)},function(){var L=new QcM(u,!!Q,q);_.hJ(g,"yt-action",L);return L.returnValue})};
_.Og=function(g,u,q){return _.YJ(g,u,q,!0)};
_.xJ=function(g,u,q,Q){u&&u.length&&u.forEach(function(L){var E=I7u(L);E&&(_.w("handle_service_request_actions")&&L.commandMetadata&&L.commandMetadata.webCommandMetadata&&L.commandMetadata.webCommandMetadata.sendPost?_.KV(q?q:g,[L]):_.Og(g,E,[L,q,Q]))})};
_.KV=function(g,u){var q=[g];u&&q.push.apply(q,u);u=_.YJ(g,"yt-service-request",q);return u.length>0&&(u=u[0],_.hJ(g,"yt-service-request-sent",u),u&&u.ajaxPromise)?(u.ajaxPromise.then(function(Q){_.hJ(g,"yt-service-request-completed",Q)},function(Q){_.hJ(g,"yt-service-request-error",{error:Q,
params:q})},g),u.ajaxPromise):_.BX()};
_.nV=function(g,u){if(_.w("handle_service_request_actions"))_.xJ(u,g,u);else{g=_.N(g);for(var q=g.next();!q.done;q=g.next()){q=q.value;var Q=void 0;((Q=_.c(q,_.zg))==null?0:Q.commands)?_.nV(_.c(q,_.zg).commands,u):(Q=void 0,((Q=_.c(q,_.kJ))==null?0:Q.actions)?_.nV(_.c(q,_.kJ).actions,u):(Q=void 0,((Q=_.c(q.commandMetadata,_.S_))==null?0:Q.sendPost)?_.KV(u,[q]):_.xJ(u,[q],u)))}}};
_.EaZ=function(g,u,q){u=u===void 0?{}:u;typeof u==="function"&&(u={callback:u});q||u._c&&u._c.jsl&&u._c.jsl.h||_.pH.extend(u,{_c:{jsl:{h:_.FR("GAPI_HINT_PARAMS")}}});(u.gapiHintOverride||_.FR("GAPI_HINT_OVERRIDE"))&&(q=_.Yv(document.location.href).gapi_jsh)&&_.pH.extend(u,{_c:{jsl:{h:q}}});L_3(g,u)};
_.Ug=function(g,u,q){u=u===void 0?{}:u;g=(g=g in or?or[g]:q)||"";q={};for(var Q in u){q={key$jscomp$855:q.key$jscomp$855};q.key$jscomp$855=Q;var L=function(E){return function(){return String(u[E.key$jscomp$855])}}(q);
g=g.replace(new RegExp("\\$\\{"+q.key$jscomp$855+"\\}","gi"),L);g=g.replace(new RegExp("\\$"+q.key$jscomp$855,"gi"),L)}return g};
_.gF=function(g,u){return Pof(g in or?or[g]:{},u)};
Pof=function(g,u){var q=_.FR("I18N_PLURAL_RULES");q||(q=function(Q){return Q==1?"one":"other"});
return(g=g["case"+u]||g[q(u)])?g.replace("#",u.toString()):u+""};
y4u=function(g){var u=NEq(g),q=document.getElementById(u),Q=q&&Hqf(q);Q||q&&!Q||(q=scq(g,u,function(){if(!Hqf(q)){cnu(q);_.BLS(u);var L=_.uH(_.nHh,u);_.uS(L,0)}}))};
scq=function(g,u,q){var Q=document.createElement("link");Q.id=u;Q.onload=function(){q&&setTimeout(q,0)};
g=_.J5(g);_.tB(Q,g,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(Q);return Q};
NEq=function(g){var u=_.oG("A");u8(u,Kv(g));return"css-"+ww(u.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.DGJ=function(g){var u=vau();g!==u&&(u=_.qf(),!_.w("web_autonav_allow_off_by_default")&&g||_.QX(0,141,!0),_.QX(0,140,!g),u.save())};
vau=function(){var g=_.qf();return _.w("web_autonav_allow_off_by_default")&&!g.getFlag(141)&&_.FR("AUTONAV_OFF_BY_DEFAULT")?!1:!g.getFlag(140)};
pdb=function(g,u){var q,Q;g=((q=g.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Q=q.videoAuthorizationToken)==null?void 0:Q.credentialTransferTokens)||[];for(q=0;q<g.length;++q)if(g[q].scope===u)return g[q].token||void 0};
J4q=function(g){for(var u=0,q=0;q<g.length;q++)u=u*31+g.charCodeAt(q),q<g.length-1&&(u%=0x800000000000);return u%1E5};
_.LW=function(g){return _.ri("ytcsi."+(g||"")+"data_")||jcT(g)};
_.fVF=function(g){g=_.LW(g);g.metadata||(g.metadata={});return g.metadata};
_.M9M=function(g){g=_.LW(g);g.tick||(g.tick={});return g.tick};
_.ER=function(g){g=_.LW(g);if(g.gel){var u=g.gel;u.gelInfos||(u.gelInfos={});u.gelTicks||(u.gelTicks={})}else g.gel={gelTicks:{},gelInfos:{}};return g.gel};
_.t9f=function(g){g=_.ER(g);g.gelInfos||(g.gelInfos={});return g.gelInfos};
eP3=function(g){var u=_.LW(g).nonce;u||(u=D4(16),_.LW(g).nonce=u);return u};
jcT=function(g){var u={tick:{},info:{}};_.xQ("ytcsi."+(g||"")+"data_",u);return u};
GLZ=function(){var g=_.ri("ytcsi.debug");g||(g=[],_.xQ("ytcsi.debug",g),_.xQ("ytcsi.reference",{}));return g};
_.PC=function(g){g=g||"";var u=$Gk();if(u[g])return u[g];var q=GLZ(),Q={timerName:g,info:{},tick:{},span:{},jspbInfo:[]};q.push(Q);return u[g]=Q};
RPT=function(g){g=g||"";var u=$Gk();u[g]&&delete u[g];var q=GLZ(),Q={timerName:g,info:{},tick:{},span:{},jspbInfo:[]};q.push(Q);u[g]=Q};
$Gk=function(){var g=_.ri("ytcsi.reference");if(g)return g;GLZ();return _.ri("ytcsi.reference")};
_.c4K=function(g){return wdk[g]||"LATENCY_ACTION_UNKNOWN"};
lVb=function(g,u,q){q=q===void 0?{}:q;var Q=!1;_.mW("ytLoggingEventsDefaultDisabled",!1)&&(Q=!0);Q=Q?null:c6;q=q===void 0?{}:q;var L=Math.round(q.timestamp||(0,_.n0)());_.jQ(u,1,L<Number.MAX_SAFE_INTEGER?L:0);L=new HIJ;if(q.lact)_.jQ(L,1,isFinite(q.lact)?q.lact:-1);else if(q.timestamp)_.jQ(L,1,-1);else{var E=_.nB();_.jQ(L,1,isFinite(E)?E:-1)}if(q.sequenceGroup&&!_.w("web_gel_sequence_info_killswitch")){E=q.sequenceGroup;var y=QsJ(E),v=new A4h;_.jQ(v,2,y);_.EU(v,1,E);_.FV(L,3,v);q.endOfSequence&&delete ZIS[q.sequenceGroup]}_.FV(u,
33,L);(q.sendIsolatedPayload?DyT:peK)(g,{endpoint:"log_event",payload:u,cttAuthInfo:q.cttAuthInfo,dangerousLogToVisitorSession:q.dangerousLogToVisitorSession},Q)};
_.IVb=function(g,u){_.Nf("_start",g,u)};
_.sR=function(g,u){if(!_.w("web_csi_action_sampling_enabled")||!_.LW(u).actionDisabled){var q=_.PC(u||"");_.e_(q.info,g);g.loadType&&(q=g.loadType,_.fVF(u).loadType=q);_.e_(_.t9f(u),g);q=eP3(u);u=_.LW(u).cttAuthInfo;iIZ().info(g,q,u)}};
CoT=function(){var g,u,q,Q;return((Q=_.Bk().resolve(_.xv(t_))==null?void 0:(g=eQ())==null?void 0:(u=g.loggingHotConfig)==null?void 0:(q=u.csiConfig)==null?void 0:q.debugTicks)!=null?Q:[]).map(function(L){return Object.values(L)[0]})};
_.Nf=function(g,u,q){if(!_.w("web_csi_action_sampling_enabled")||!_.LW(q).actionDisabled){var Q=eP3(q),L;if(L=_.w("web_csi_debug_sample_enabled")&&Q){(_.Bk().resolve(_.xv(t_))==null?0:eQ())&&!bIK&&(bIK=!0,_.Nf("gcfl",(0,_.n0)(),q));var E,y,v;L=(_.Bk().resolve(_.xv(t_))==null?void 0:(E=eQ())==null?void 0:(y=E.loggingHotConfig)==null?void 0:(v=y.csiConfig)==null?void 0:v.debugSampleWeight)||0;if(E=L!==0)b:{E=CoT();if(E.length>0)for(y=0;y<E.length;y++)if(g===E[y]){E=!0;break b}E=!1}E?(L=J4q(Q)%L!==0,
_.LW(q).debugTicksExcludedLogged||(E={},E.debugTicksExcluded=L,_.sR(E,q)),_.LW(q).debugTicksExcludedLogged=!0):L=!1}if(!L){g[0]!=="_"&&dGZ(g,q,u);L=_.PC(q||"");L.tick[g]=u||(0,_.n0)();if(L.callback&&L.callback[g])for(L=_.N(L.callback[g]),E=L.next();!E.done;E=L.next())E=E.value,E();L=_.ER(q);L.gelTicks&&(L.gelTicks[g]=!0);E=_.M9M(q);L=u||(0,_.n0)();E[g]=L;E=_.LW(q).cttAuthInfo;g==="_start"?iIZ().baseline(Q,u,E):iIZ().tick(g,Q,u,E);_.F_K(q);return L}}};
dGZ=function(g,u,q){if(_.yX.mark)if(g.startsWith("mark_")||(g="mark_"+g),u&&(g+=" ("+u+")"),q===void 0||_.w("web_csi_disable_alt_time_performance_mark"))_.yX.mark(g);else{q=_.w("csi_use_performance_navigation_timing")?q-_.yX.timeOrigin:q-(_.yX.timeOrigin||_.yX.timing.navigationStart);try{_.yX.mark(g,{startTime:q})}catch(Q){}}};
mGS=function(){var g,u=(g=_.yX.getEntriesByType)==null?void 0:g.call(_.yX,"mark");u&&u.forEach(function(q){if(q.name.startsWith("mark_")){var Q;(Q=_.yX.clearMarks)==null||Q.call(_.yX,q.name)}})};
_.aVF=function(g){var u={},q=function(E,y,v){y=y.match("_rid")?y.split("_rid")[0]:y;typeof v==="number"&&(v=JSON.stringify(v));E.requestIds?E.requestIds.push({endpoint:y,id:v}):E.requestIds=[{endpoint:y,id:v}]};
g=_.N(Object.entries(g));for(var Q=g.next();!Q.done;Q=g.next()){var L=_.N(Q.value);Q=L.next().value;L=L.next().value;switch(Q){case "GetBrowse_rid":q(u,Q,L);break;case "GetGuide_rid":q(u,Q,L);break;case "GetHome_rid":q(u,Q,L);break;case "GetPlayer_rid":q(u,Q,L);break;case "GetSearch_rid":q(u,Q,L);break;case "GetSettings_rid":q(u,Q,L);break;case "GetTrending_rid":q(u,Q,L);break;case "GetWatchNext_rid":q(u,Q,L);break;case "yt_red":u.isRedSubscriber=!!L;break;case "yt_ad":u.isMonetized=!!L}}return u};
_.V9T=function(g){var u=_.vC("aft",g);if(u)return u;u=_.FR((g||"")+"TIMING_AFT_KEYS",["ol"]);for(var q=u.length,Q=0;Q<q;Q++){var L=_.vC(u[Q],g);if(L)return L}return NaN};
_.Xdu=function(g,u){_.xQ("ytglobal.timing"+(u||"")+"ready_",g)};
_.vC=function(g,u){if(g=_.M9M(u)[g])return typeof g==="number"?g:g[g.length-1]};
_.F_K=function(g){var u=_.vC("_start",g),q=_.V9T(g),Q=!r4u;u&&q&&Q&&(PUT(W_m,new TEu(Math.round(q-u),g)),r4u=!0)};
Y1K=function(g){jcT(g);hPq();mGS();g||(_.FR("TIMING_ACTION")&&_.di("PREVIOUS_ACTION",_.FR("TIMING_ACTION")),_.di("TIMING_ACTION",""))};
_.OIq=function(g){g=g===void 0?{}:g;_.V1(function(){D0();RPT();Y1K();_.Xdu(!1);g.cttAuthInfo&&(_.LW().cttAuthInfo=g.cttAuthInfo);_.di("TIMING_AFT_KEYS",[]);g.isHot?_.pW({loadType:"hot"}):_.pW({loadType:"warm"});_.di("TIMING_ACTION","");delete _.FR("TIMING_INFO",{}).yt_lt;_.V1(_.IVb)(g.startTime,void 0)})()};
_.jF=function(g,u,q,Q){u=u===void 0?{}:u;_.V1(function(){var L=q?q:g;Jt(L);var E=u.sampleRate;if(!_.w("web_csi_action_sampling_enabled")||E===void 0||E<=1)E=!1;else{var y=eP3(L);E=J4q(y)%E!==0}E&&(_.LW(L).actionDisabled=!0);_.PC(L||"").info.actionType=g;u.cttAuthInfo&&(_.LW(L).cttAuthInfo=u.cttAuthInfo);_.di(L+"TIMING_ACTION",g);_.V1(_.IVb)(u.startTime,L);E={actionType:Q||_.c4K(g)};u.logPreviousAction&&(E.previousAction=_.c4K(_.FR("TIMING_ACTION")));(y=_.j_())&&y!=="UNDEFINED_CSN"&&(E.clientScreenNonce=
y);_.pW(E,L);_.Xdu(!0,L)})()};
Jt=function(g){_.V1(function(){D0(g);RPT(g);Y1K(g)})()};
K_u=function(){_.V1(function(){var g=[],u;for(u in _.ri("ytcsi.".slice(0,-1)))u.endsWith("data_")&&g.push(u.slice(0,-5));g=_.N(g);for(u=g.next();!u.done;u=g.next())Jt(u.value);D0()})()};
_.BEM=function(g){return _.V1(function(){return _.xGq("_start",g)})()};
_.pW=function(g,u,q){_.V1(_.sR)(g,u,q===void 0?!1:q)};
_.fW=function(g,u,q){return _.V1(_.Nf)(g,u,q)};
_.xGq=function(g,u){return _.V1(function(){var q=_.M9M(u);return g in q})()};
naq=function(g){if(!_.w("universal_csi_network_ticks"))return"";g=_.YB(g)||"";for(var u=Object.keys(zPK),q=0;q<u.length;q++){var Q=u[q];if(g.includes(Q))return Q}return""};
S1F=function(g){if(!_.w("universal_csi_network_ticks"))return function(){};
var u=zPK[g];return u?(_.Mf(u),function(){var q=_.w("universal_csi_network_ticks")?(q=kLm[g])?_.Mf(q):!1:!1;return q}):function(){}};
_.Mf=function(g,u,q){return _.V1(function(){if(_.xGq(g,q))return!1;_.fW(g,u,q);return!0})()};
_.tt=function(g,u,q){_.V1(function(){if(!_.BEM(q)||_.xGq(g,q))return!1;_.fW(g,u,q);return!0})()};
_.eF=function(g){return _.V1(_.vC)(g,void 0)};
D0=function(g){_.BEM(g)&&_.fW("aa",void 0,g)};
_.qvm=function(g,u,q,Q,L,E,y,v,J,f){var t=oaZ();E=new _.pV({veType:u,youtubeData:E,jspbYoutubeData:v});f=Gz({automatedLogEventSource:f},t);L&&(f.cttAuthInfo=L);L={csn:t,pageVe:E.getAsJson()};_.w("expectation_logging")&&J&&J.screenCreatedLoggingExpectations&&(L.screenCreatedLoggingExpectations=J.screenCreatedLoggingExpectations);q&&q.visualElement?(L.implicitGesture={parentCsn:q.clientScreenNonce,gesturedVe:q.visualElement.getAsJson()},y&&(L.implicitGesture.gestureType=y)):q&&_.Io(new _.Ji("newScreen() parent element does not have a VE - rootVe",
u));Q&&(L.cloneCsn=Q);g?w9("screenCreated",L,g,f):_.H6("screenCreated",L,f);PUT(Jrb,new UGm(t));$6.clear();gKZ.clear();uKT.clear();return t};
Rp=function(g,u,q,Q,L,E){E=E===void 0?{}:E;Qg3(g,u,q,[Q],L===void 0?!1:L,E)};
Qg3=function(g,u,q,Q,L,E){L=L===void 0?!1:L;E=E===void 0?{}:E;Object.assign(E,Gz({cttAuthInfo:fV(u)||void 0},u));for(var y=_.N(Q),v=y.next();!v.done;v=y.next()){v=v.value;var J=v.getAsJson();(_.pH.isEmpty(J)||!J.trackingParams&&!J.veType)&&_.Io(Error("Gf"));if(_.w("no_client_ve_attach_unless_shown")){var f=L5J(v,u);if(J.veType&&!gKZ.has(f)&&!uKT.has(f)&&!L){if(!_.w("il_attach_cache_limit")||$6.size<1E3){$6.set(f,[g,u,q,v]);return}_.w("il_attach_cache_limit")&&$6.size>1E3&&_.Io(new _.Ji("IL Attach cache exceeded limit"))}v=
L5J(q,u);$6.has(v)?EKm(q,u):uKT.set(v,!0)}}Q=Q.filter(function(t){t.csn!==u?(t.csn=u,t=!0):t=!1;return t});
q={csn:u,parentVe:q.getAsJson(),childVes:_.Jk(Q,function(t){return t.getAsJson()})};
u==="UNDEFINED_CSN"?wF("visualElementAttached",E,q):g?w9("visualElementAttached",q,g,E):_.H6("visualElementAttached",q,E)};
Ngb=function(g,u,q,Q,L,E,y){Pwh(g,u,q,L,y)};
Pwh=function(g,u,q,Q,L){sgb(q,u);L=Gz({cttAuthInfo:fV(u)||void 0,automatedLogEventSource:L},u);q={csn:u,ve:q.getAsJson(),eventType:1};Q&&(q.clientData=Q);u==="UNDEFINED_CSN"?wF("visualElementShown",L,q):g?w9("visualElementShown",q,g,L):_.H6("visualElementShown",q,L)};
yaq=function(g,u,q,Q){sgb(q,u);var L=Gz({cttAuthInfo:fV(u)||void 0,automatedLogEventSource:void 0},u);q={csn:u,ve:q.getAsJson(),eventType:4};Q&&(q.clientData=Q);u==="UNDEFINED_CSN"?wF("visualElementShown",L,q):g?w9("visualElementShown",q,g,L):_.H6("visualElementShown",q,L)};
vKM=function(g,u,q,Q,L,E){var y=(Q=Q===void 0?!1:Q)?16:8;Q=Gz({cttAuthInfo:fV(u)||void 0,endOfSequence:Q,automatedLogEventSource:E},u);q={csn:u,ve:q.getAsJson(),eventType:y};L&&(q.clientData=L);u==="UNDEFINED_CSN"?wF("visualElementHidden",Q,q):g?w9("visualElementHidden",q,g,Q):_.H6("visualElementHidden",q,Q)};
p2q=function(g,u,q,Q,L,E){D8u(g,u,q,void 0,Q,L,E)};
D8u=function(g,u,q,Q,L,E,y){sgb(q,u);Q=Q||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";E=Gz({cttAuthInfo:fV(u)||void 0,automatedLogEventSource:y},u);q={csn:u,ve:q.getAsJson(),gestureType:Q};L&&(q.clientData=L);u==="UNDEFINED_CSN"?wF("visualElementGestured",E,q):g?w9("visualElementGestured",q,g,E):_.H6("visualElementGestured",q,E)};
JaT=function(g,u,q,Q){var L=Gz({cttAuthInfo:fV(u)||void 0},u);q={csn:u,ve:q.getAsJson(),clientData:Q};u==="UNDEFINED_CSN"?wF("visualElementStateChanged",L,q):g?w9("visualElementStateChanged",q,g,L):_.H6("visualElementStateChanged",q,L)};
jgf=function(){var g=nfh(16);for(var u=[],q=0;q<g.length;q++)u.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(g[q]&63));return u.join("")};
wF=function(g,u,q){fxf.push({payloadName:g,payload:q,jspbPayload:void 0,options:u});M3h||(M3h=f3b())};
p$K=function(g){if(fxf){for(var u=_.N(fxf),q=u.next();!q.done;q=u.next())q=q.value,q.payload&&(q.payload.csn=g.csn,_.H6(q.payloadName,q.payload,q.options));fxf.length=0}M3h=0};
L5J=function(g,u){return""+g.getAsJson().veType+g.getAsJson().veCounter+u};
sgb=function(g,u){if(_.w("no_client_ve_attach_unless_shown")){var q=L5J(g,u);gKZ.set(q,!0);EKm(g,u)}};
EKm=function(g,u){g=L5J(g,u);$6.has(g)&&(u=$6.get(g)||[],Rp(u[0],u[1],u[2],u[3],!0),$6.delete(g))};
Gz=function(g,u){_.w("log_sequence_info_on_gel_web")&&(g.sequenceGroup=u);return g};
_.cC=function(g,u,q){_.V1(Rp)(void 0,g,u,q)};
_.HC=function(g,u,q){_.V1(Qg3)(void 0,g,u,q)};
_.At=function(g,u){_.V1(Ngb)(void 0,g,u,void 0,void 0,void 0)};
_.Z0=function(g,u,q){_.V1(function(){_.Tv(u,function(Q){yaq(void 0,g,Q,q)})})()};
_.lH=function(g,u,q,Q){_.V1(function(){_.Tv(u,function(L){vKM(void 0,g,L,q,Q)})})()};
_.Ip=function(g,u,q){_.V1(p2q)(void 0,g,u,q,void 0)};
_.iH=function(g,u,q,Q){_.V1(D8u)(void 0,g,u,q,Q,void 0)};
_.CW=function(g,u,q){_.V1(JaT)(void 0,g,u,q,void 0)};
t3m=function(g,u){bH.set(g,u)};
e8b=function(g,u){var q=Object.keys(g);g=new _.Ji("[Command Handler] "+u,{filteredCommandNames:q,originalCommand:g});_.Zf(g)};
GTJ=function(g,u){e8b(g,u+" was called but not set")};
$8h=function(g){return function(){return new g}};
dF=function(g){return function(){return _.Bk().resolve(g)}};
R8m=function(g,u){var q=_.c(g,_.FU);if(q&&(q=u[q.signal]))return q();g=_.N(Object.keys(g));for(q=g.next();!q.done;q=g.next())if(q=q.value,u[q]&&(q=u[q]))return q()};
_.FS=function(g,u,q,Q){return{browseEndpoint:{browseId:g},commandMetadata:{webCommandMetadata:{url:u,rootVe:q,webPageType:Q===void 0?"WEB_PAGE_TYPE_BROWSE":Q}}}};
w2u=function(g,u,q){var Q=u=u===void 0?0:u;q=q===void 0?0:q;var L=q-Q;return _.m7(g,"PPSV",void 0,void 0,(L>600?0:L<60||q<=0||Q/q>.9)?0:u)};
_.m7=function(g,u,q,Q,L){var E="/watch?v="+g;g={videoId:g};u&&(g.playlistId=u,E+="&list="+u);Q&&(E+="&pp="+Q);L&&(g.startTimeSeconds=L,E+="&t="+L+"s");u={watchEndpoint:g,commandMetadata:{webCommandMetadata:{url:E,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};q&&(u.clickTrackingParams=q);Q&&(_.c(u,_.l1).playerParams=Q);return u};
caZ=function(g){return{browseEndpoint:{browseId:"VL"+g},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+g,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
HKT=function(g){if(g){var u;if(g){var q=(u=_.c(g.commandMetadata,_.S_))==null?void 0:u.url;u=!(!q||q==="/service_ajax")}else u=!1;if(u)return g;var Q;if(g=(Q=_.c(g,_.zg))==null?void 0:Q.commands)for(Q=_.N(g),g=Q.next();!g.done;g=Q.next())if(g=HKT(g.value))return g}};
_.ap=function(g){return{runs:[{text:g}]}};
Aau=function(g,u){return g&&u?{runs:[{text:g,navigationEndpoint:u}]}:void 0};
VX=function(g){return g?_.ap(g):void 0};
_.XS=function(g){return g?{simpleText:g}:void 0};
_.rF=function(g){var u=g.type;g=g.payload;u={type:u};g!==void 0&&(u.payload=g);return u};
ZKS=function(g,u,q){for(var Q=Object.assign({},g),L=_.N(Object.keys(u)),E=L.next();!E.done;E=L.next()){E=E.value;var y=g[E],v=u[E];if(v===void 0)delete Q[E];else if(y===void 0)Q[E]=v;else if(Array.isArray(v)&&Array.isArray(y))Q[E]=q?[].concat(_.na(y),_.na(v)):v;else if(!Array.isArray(v)&&_.zM(v)&&!Array.isArray(y)&&_.zM(y))Q[E]=ZKS(y,v,q);else if(typeof v===typeof y)Q[E]=v;else return u=new _.Ji("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:E,originalValue:y,updateValue:v}),
_.Zf(u),g}return Q};
iKK=function(g){if(!g.length)return"";try{if(lxq)return lxq.decode(g);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(g)}catch(y){}for(var u=0,q=[],Q=g.length;u<Q;){for(var L=0;L<1024&&u<Q;){var E=g[u++];if(E<128)Ixu[L++]=E;else{if(E<224)E=(E&31)<<6|g[u++]&63;else if(E<240)E=(E&15)<<12|(g[u++]&63)<<6|g[u++]&63;else{if(L+1===1024){--u;break}E=(E&7)<<18|(g[u++]&63)<<12|(g[u++]&63)<<6|g[u++]&63;E-=65536;Ixu[L++]=55296|E>>10;E=56320|E&1023}Ixu[L++]=E}}E=String.fromCharCode.apply(String,
Ixu);L<1024&&(E=E.substring(0,L));q.push(E)}return q.join("")};
bKS=function(g,u){var q;if((q=CwK)==null?0:q.encodeInto)return u=CwK.encodeInto(g,u),u.read<g.length?g.length*4:u.written;for(var Q=q=0;Q<g.length;Q++){var L=g.charCodeAt(Q);L<128?u[q++]=L:(L<2048?u[q++]=L>>6|192:((L&64512)===55296&&Q+1<g.length&&(g.charCodeAt(Q+1)&64512)===56320?(L=65536+((L&1023)<<10)+(g.charCodeAt(++Q)&1023),u[q++]=L>>18|240,u[q++]=L>>12&63|128):u[q++]=L>>12|224,u[q++]=L>>6&63|128),u[q++]=L&63|128)}return q};
d8T=function(g,u,q){if(u&&q&&q.buffer===u.exports.memory.buffer){var Q=u.realloc(q.byteOffset,g);if(Q)return new Uint8Array(u.exports.memory.buffer,Q,g)}g=u?new Uint8Array(u.exports.memory.buffer,u.malloc(g),g):new Uint8Array(g);q&&g.set(q);return g};
_.Tz=function(g){g=new F5T(new m8Z([_.Ub(decodeURIComponent(g))]));if(axq(g,2)){var u=WC(g);var q=g.pos;var Q=g.arrayView;q=q===void 0?0:q;var L=u===void 0?-1:u;q=q===void 0?0:q;L=L===void 0?-1:L;if(Q.totalLength&&L){L<0&&(L=Q.totalLength-q);Q.focus(q);if(!(q-Q.arrayPos+L<=Q.arrays[Q.arrayIdx].length)){var E=Q.arrayIdx,y=Q.arrayPos;Q.focus(q+L-1);y=new Uint8Array(Q.arrayPos+Q.arrays[Q.arrayIdx].length-y);for(var v=0,J=E;J<=Q.arrayIdx;J++)y.set(Q.arrays[J],v),v+=Q.arrays[J].length;Q.arrays.splice(E,
Q.arrayIdx-E+1,y);Q.arrayIdx=0;Q.arrayPos=0;Q.focus(q)}E=Q.arrays[Q.arrayIdx];Q=new DataView(E.buffer,E.byteOffset+q-Q.arrayPos,L)}else Q=new DataView(new ArrayBuffer(0));Q=new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength);g.pos+=u;u=Q}else u=void 0;u=u?iKK(u):void 0;g=axq(g,4)?WC(g):void 0;Q=V3q[g];if(typeof Q==="undefined")throw g=new _.Ji("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:g}),_.Zf(g),g;return{entityTypeFieldNumber:g,entityType:Q,entityId:u}};
_.x6=function(g,u,q){q=q===void 0?0:q;var Q=new X2q;if(CwK)g=CwK.encode(g);else{var L=new Uint8Array(Math.ceil(g.length*1.2)),E=bKS(g,L);L.length<E&&(L=new Uint8Array(E),E=bKS(g,L));L.length>E&&(L=L.subarray(0,E));g=L}g!==void 0&&(ht(Q,18),L=g.length,ht(Q,L),KW(Q,L),Q.buf.set(g,Q.pos),Q.pos+=L);g=raK[u];if(typeof g==="undefined")throw q=new _.Ji("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:u}),_.Zf(q),q;g!==void 0&&(ht(Q,32),ht(Q,g));ht(Q,40);ht(Q,1);u=new Uint8Array(Q.buf.buffer,
Q.buf.byteOffset,Q.pos);return encodeURIComponent(_.om(u,q))};
W5k=function(g){g=g.key||g.id;if(!g)throw Error("Jf");return g};
h8F=function(g,u){g=g===void 0?{}:g;return TgT(g,u)};
YvZ=function(g,u,q,Q){if(Q===void 0)return Q=Object.assign({},g[u]||{}),q=(delete Q[q],Q),Q={},Object.assign({},g,(Q[u]=q,Q));var L={},E={};return Object.assign({},g,(E[u]=Object.assign({},g[u],(L[q]=Q,L)),E))};
OKZ=function(g,u,q,Q,L){var E=g[u];if(E==null||!E[q])return g;Q=ZKS(E[q],Q,L==="REPEATED_FIELDS_MERGE_OPTION_APPEND");L={};E={};return Object.assign({},g,(E[u]=Object.assign({},g[u],(L[q]=Q,L)),E))};
_.BC=function(g,u,q){return g[u]?g[u][q]||null:null};
x8q=function(){if(K5K)return K5K();var g={};K5K=z8("PersistentEntityStoreDb",{objectStores:(g.EntityStore={addedAtVersion:1},g.EntityAssociationStore={addedAtVersion:2},g),shared:!1,upgrade:function(u,q){q(1)&&F7(dN(u,"EntityStore",{keyPath:"key"}),"entityType","entityType");q(2)&&(u=dN(u,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),F7(u,"byParentEntityKey","parentEntityKey"),F7(u,"byChildEntityKey","childEntityKey"))},
version:3});return K5K()};
Bgq=function(g){return _.WW(x8q(),g)};
zz=function(g){return window.Int32Array?new Int32Array(g):Array(g)};
nK3=function(g){return _.WW(z8u(),g)};
kTM=function(g){return new nW("WRONG_DATA_TYPE",{encoderVersion:g})};
SvS=function(g){return g instanceof Error?new nW("UNKNOWN_ENCODE_ERROR",{originalMessage:g.message}):new nW("UNKNOWN_ENCODE_ERROR")};
oK3=function(g){return g instanceof Error?new nW("UNKNOWN_DECODE_ERROR",{originalMessage:g.message}):new nW("UNKNOWN_DECODE_ERROR")};
U8S=function(g,u){g=g instanceof nW?g:u(g);_.Zf(g);throw g;};
g3K=function(g){g=(new TextEncoder).encode(g).subarray(0,16);var u=new Uint8Array(16);u.set(g);return u};
q6h=function(g){var u=u6J[g];if(u)return u;_.Io(new _.Ji("Entity model not found.",{entityType:g}))};
_.k6=function(){Qzk||(Qzk=L4S());return Qzk};
L4S=function(){var g,u,q;return _.D(function(Q){if(Q.nextAddress==1)return _.b8(Q,2),Q.yield(_.BW(),4);if(Q.nextAddress!=2){g=Q.yieldResult;if(!g||!_.p0()||typeof _.Qq.BroadcastChannel==="undefined")return Q.return();u=new E3Z;return Q.return(new SF(g,u))}q=_.rt(Q);q instanceof Error&&_.Zf(q);return Q.return()})};
_.op=function(g,u){var q;return _.D(function(Q){if(Q.nextAddress==1){q=g.mutations;if(!q||q.length<=0)return Q.return();u&&u.dispatch(_.rF({type:"ENTITY_LOADED",payload:q}));return Q.yield(PTh(q),2)}q.length=0;_.Wx(Q)})};
PTh=function(g){var u;return _.D(function(q){return q.nextAddress==1?q.yield(_.k6(),2):(u=q.yieldResult)?q.yield(_.UR(u,"readwrite",function(Q){for(var L={},E=_.N(g),y=E.next(),v={};!y.done;v={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},y=E.next())v.mutation$jscomp$8=y.value,v.mutation$jscomp$8.entityKey&&Nxh(v.mutation$jscomp$8)&&(v.mutationEntityType$jscomp$3=(0,_.pH.getAnyKey)(v.mutation$jscomp$8.payload),y=void 0,v.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(y=function(J){return function(){return _.szJ(Q,
J.mutation$jscomp$8.payload[J.mutationEntityType$jscomp$3],J.mutationEntityType$jscomp$3)}}(v)),v.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(y=function(J){return function(){return yXF(Q,J.mutation$jscomp$8.entityKey)}}(v)),v.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(y=function(J){return function(){return v3T(Q,J.mutation$jscomp$8.entityKey,J.mutation$jscomp$8.payload[J.mutationEntityType$jscomp$3],J.mutationEntityType$jscomp$3)}}(v)),y&&(L[v.mutation$jscomp$8.entityKey]=
L[v.mutation$jscomp$8.entityKey]?L[v.mutation$jscomp$8.entityKey].then(y):y()));
return C0.all(Object.values(L))}),0):q.return()})};
Nxh=function(g){var u;g=(u=g.options)==null?void 0:u.persistenceOption;return g==="ENTITY_PERSISTENCE_OPTION_PERSIST"||g==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
JXJ=function(g,u){var q,Q;_.D(function(L){if(L.nextAddress==1)return L.yield(_.k6(),2);if(L.nextAddress!=3)return(q=L.yieldResult)?L.yield(_.UR(q,"readonly",function(E){var y={},v=Object.keys(u).map(function(J){var f=u[J]?[].concat(_.na(u[J])):[];return DJb(E,J,f,y)});
return C0.all(v).then(function(){return y})}),3):L.return();
Q=L.yieldResult;Object.keys(Q).length>0&&g.dispatch(pO3(Q));_.Wx(L)})};
DJb=function(g,u,q,Q){return gr(g,u,q).then(function(L){Q[u]=jzS(q,L)})};
jzS=function(g,u){if(u.length!==g.length)throw Error("Mf");return u.reduce(function(q,Q,L){q[g[L]]=Q;return q},{})};
tCf=function(g){var u=g.filter(function(L){var E;return(L==null?void 0:(E=L.transferEntity)==null?void 0:E.transferState)==="TRANSFER_STATE_COMPLETE"}).length,q=g.filter(function(L){var E;
return(L==null?void 0:(E=L.transferEntity)==null?void 0:E.transferState)==="TRANSFER_STATE_FAILED"}).length,Q=g.filter(function(L){var E;
return(L==null?void 0:(E=L.transferEntity)==null?void 0:E.transferState)&&fCb.includes(L.transferEntity.transferState)});
if(!(u||Q!=null&&Q.length))return 0;u=_.MCM(Q)+u;g=g.length-q;return g===0?0:Math.round(u*100/g)/100};
_.MCM=function(g){var u=[];u=u.concat.apply(u,_.na(g.filter(function(E){return E.streamEntity}).map(function(E){var y=Object.assign({},E.streamEntity),v,J=(v=E.transferEntity)==null?void 0:v.transferState;
y.streamsProgress=y.streamsProgress||[];y.streamsProgress=y.streamsProgress.map(function(f){var t=Object.assign({},f);t.numBytesDownloaded=J==="TRANSFER_STATE_COMPLETE"?f.numTotalBytes:f.numBytesDownloaded;return t});
return y}).map(function(E){return E.streamsProgress})));
var q=g=0;u=_.N(u);for(var Q=u.next();!Q.done;Q=u.next()){var L=Q.value;Q=Number(L.numBytesDownloaded);L=Number(L.numTotalBytes);q+=isNaN(Q)?0:Q;g+=isNaN(L)?0:L}return g===0?0:Math.round(q*100/g)/100};
eVK=function(g){if(!g||!g.expirationTimestamp||!g.action)return!1;var u=(0,_.n0)()/1E3;return Number(g.expirationTimestamp)>=u};
uR=function(g){return g&&g.expirationTimestamp&&g.action?eVK(g)&&g.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.qZ=function(g){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(g||"TRANSFER_STATE_UNKNOWN")};
GRm=function(g){var u=new X2q;if(g!==void 0){var q=Math.ceil(Math.log2(g.length*4+2)/7);q=q===void 0?2:q;ht(u,10);u.submessagePosStack.push(u.pos);u.submessagePosStack.push(q);u.pos+=q;KW(u,g.length*1.2);q=bKS(g,u.buf.subarray(u.pos));u.pos+q>u.buf.length&&(KW(u,q),q=bKS(g,u.buf.subarray(u.pos)));u.pos+=q;g=u.submessagePosStack.pop();q=u.submessagePosStack.pop();for(var Q=u.pos-q-g;g--;){var L=g?128:0;u.view.setUint8(q++,Q&127|L);Q>>=7}}u=new Uint8Array(u.buf.buffer,u.buf.byteOffset,u.pos);return(new TextDecoder("utf-8")).decode(u)};
_.Qv=function(g){var u=0;g=_.N(g);for(var q=g.next(),Q={};!q.done;Q={transferState$jscomp$3:void 0},q=g.next()){var L=q.value,E=void 0;q=(E=L.streamEntity)!=null?E:{};E=void 0;Q.transferState$jscomp$3=(E=L.transferEntity)==null?void 0:E.transferState;E=L=void 0;((L=q)==null?0:(E=L.streamsProgress)==null?0:E.length)&&q.streamsProgress.forEach(function(y){return function(v){v=Number(y.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?v.numTotalBytes:v.numBytesDownloaded);isFinite(v)&&(u+=v)}}(Q))}return u};
$JT=function(g){return g.some(function(u){var q;if(!(u==null?0:(q=u.transferEntity)==null?0:q.transferState)){var Q;return!(u==null?0:(Q=u.policyEntity)==null?0:Q.action)||u.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return fCb.includes(u.transferEntity.transferState)})};
RVJ=function(g,u){if(!u)return!1;if(_.w("of_pb_en_po_ks"))return!0;var q;g=(q=_.BC(g,"offlineVideoPolicy",_.x6(u,"offlineVideoPolicy")))!=null?q:void 0;return!!g&&uR(g)};
_.cXm=function(g){var u=["TRANSFER_STATE_COMPLETE"];u=u===void 0?wOS:u;return g.filter(function(q){var Q,L;return u.includes((L=(Q=q.transferEntity)==null?void 0:Q.transferState)!=null?L:"TRANSFER_STATE_UNKNOWN")})};
HFS=function(g,u){if(u){var q,Q=(q=_.BC(g,"playbackData",_.x6(u,"playbackData")))!=null?q:null,L;q=(L=_.BC(g,"transfer",_.x6(u,"transfer")))!=null?L:null;var E;L=(E=_.BC(g,"offlineVideoStreams",_.x6(u,"offlineVideoStreams")))!=null?E:null;var y;g=(y=_.BC(g,"offlineVideoPolicy",_.x6(u,"offlineVideoPolicy")))!=null?y:null;if(Q||q||L||g)return{playbackDataEntity:Q,transferEntity:q,streamEntity:L,policyEntity:g}}};
_.LU=function(g){var u=g.playbackData;if(!u)return[];var q=[];u=_.N(Object.keys(u));for(var Q=u.next();!Q.done;Q=u.next()){var L=Q.value;if(!AXh(g,_.Tz(L).entityId)&&(Q=HFS(g,_.Tz(L).entityId))){var E=void 0,y=void 0;L=(y=Number((E=_.BC(g,"playbackData",L))==null?void 0:E.streamDownloadTimestampSeconds))!=null?y:(0,_.n0)();q.push({entity:Q,streamDownloadTimestamp:L})}}return q.sort(function(v,J){var f=v.streamDownloadTimestamp,t=J.streamDownloadTimestamp;return t===f?v.entity.streamEntity&&!J.entity.streamEntity?
1:-1:t-f}).map(function(v){return v.entity})};
ZFZ=function(g){return _.cXm(_.LU(g))};
_.lCK=function(g){return _.LU(g).filter(function(u){var q;if(((q=u.policyEntity)==null?0:q.action)&&u.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var Q;if((Q=u.transferEntity)==null?0:Q.transferState){var L;return fCb.includes((L=u.transferEntity)==null?void 0:L.transferState)}return!0})};
AXh=function(g,u){var q;return((q=_.BC(g,"downloadStatusEntity",_.x6(u,"downloadStatusEntity")))==null?void 0:q.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
ICf=function(g){var u;if(g==null?0:(u=g.playbackDataEntity)==null?0:u.key)return _.Tz(g.playbackDataEntity.key).entityId;var q;if(g==null?0:(q=g.transferEntity)==null?0:q.key)return _.Tz(g.transferEntity.key).entityId;var Q;if(g==null?0:(Q=g.streamEntity)==null?0:Q.key)return _.Tz(g.streamEntity.key).entityId;var L;if(g==null?0:(L=g.policyEntity)==null?0:L.key)return _.Tz(g.policyEntity.key).entityId};
CTb=function(g){var u=new Set,q;g=(q=g.mainDownloadsListEntity)==null?void 0:q[iFK];var Q;if(!(g==null?0:(Q=g.downloads)==null?0:Q.length))return u;var L;g==null||(L=g.downloads)==null||L.forEach(function(E){(E==null?0:E.videoItem)&&u.add(E.videoItem)});
return u};
E3=function(g,u){if(u){var q=_.BC(g,"mainVideoEntity",_.x6(u,"mainVideoEntity")),Q=_.BC(g,"downloadStatusEntity",_.x6(u,"downloadStatusEntity")),L=_.BC(g,"ytMainChannelEntity",_.x6(u,"ytMainChannelEntity")),E={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};g=HFS(g,u);Q=(Q==null?void 0:Q.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.w("woffle_render_failed_download_state_ks")&&(Q==null?void 0:Q.downloadState)==="DOWNLOAD_STATE_FAILED";!g&&Q&&(g=E);if(g&&q&&
L)return Object.assign({},{videoEntity:q,channelEntity:L},g)}};
dJK=function(g,u){return bFq(g,u)==="TRANSFER_STATE_COMPLETE"&&RVJ(g,u)};
F4M=function(g,u){if(!u)return!1;var q;g=(q=_.BC(g,"playbackData",_.x6(u,"playbackData")))!=null?q:void 0;return!!g&&!!g.playerResponseJson};
bFq=function(g,u){if(!u)return"TRANSFER_STATE_UNKNOWN";var q=_.BC(g,"transfer",_.x6(u,"transfer"));if(q){var Q;return(Q=q.transferState)!=null?Q:"TRANSFER_STATE_UNKNOWN"}q=_.BC(g,"offlineOrchestrationActionWrapperEntity",_.x6(u,"offlineOrchestrationActionWrapperEntity"));g=_.BC(g,"mainVideoEntity",_.x6(u,"mainVideoEntity"));return q||g?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
mJM=function(g,u){if(!u)return"TRANSFER_STATE_UNKNOWN";if(g=_.BC(g,"transfer",_.x6(u,"transfer"))){var q;return(q=g.transferState)!=null?q:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
aCq=function(g,u){return u&&(g=_.BC(g,"videoPlaybackPositionEntity",_.x6(u,"videoPlaybackPositionEntity")),g==null?0:g.lastPlaybackPositionSeconds)?Number(g.lastPlaybackPositionSeconds):0};
XOM=function(g,u){return VCu(g).some(function(q){var Q;return(q==null?void 0:(Q=q.mainPlaylistEntity)==null?void 0:Q.playlistId)===u})};
W4K=function(g,u,q){var Q=rXm(g,u);if(!Q.length)return[];u=[];Q=_.N(Q);for(var L=Q.next();!L.done;L=Q.next()){L=L.value;var E=E3(g,L);q&&bFq(g,L)!=="TRANSFER_STATE_COMPLETE"||E&&u.push(E)}return u};
rXm=function(g,u){if(!u)return[];var q=_.x6(u,"mainPlaylistEntity"),Q;u=(Q=g.mainPlaylistEntity)==null?void 0:Q[q];Q=[];if(u==null||!u.videos)return Q;u=_.N(u.videos);for(q=u.next();!q.done;q=u.next()){q=q.value;var L=void 0,E=void 0,y=void 0,v=(L=g)==null?void 0:(E=L.mainPlaylistVideoEntity)==null?void 0:(y=E[q])==null?void 0:y.video;v&&(q=_.Tz(v).entityId)&&Q.push(q)}return Q};
TxZ=function(g,u){if(u){var q=_.BC(g,"mainPlaylistEntity",_.x6(u,"mainPlaylistEntity")),Q=_.BC(g,"mainPlaylistDownloadStateEntity",_.x6(u,"mainPlaylistDownloadStateEntity"));g=_.BC(g,"ytMainChannelEntity",_.x6(u,"ytMainChannelEntity"));if(Q&&q)return Object.assign({},{mainPlaylistEntity:q,mainPlaylistDownloadStateEntity:Q},!!g&&{channelEntity:g})}};
VCu=function(g){return hVm(g).sort(function(u,q){return q.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return u.downloadedPlaylistEntities})};
hVm=function(g){var u=g.mainPlaylistDownloadStateEntity,q=[];if(!u)return q;for(var Q=_.N(Object.keys(u)),L=Q.next();!L.done;L=Q.next()){var E=L.value;L=TxZ(g,_.Tz(E).entityId);var y=void 0;E=Number((y=u[E])==null?void 0:y.addedTimestampMillis);y=isNaN(E)?(0,_.n0)():E;L!==void 0&&q.push({downloadedPlaylistEntities:L,addedTimestampMillis:y})}return q};
Y6u=function(g){var u,q=(u=g.mainPlaylistVideoEntity)!=null?u:{};return new Set(VCu(g).reduce(function(Q,L){Q=Q===void 0?[]:Q;var E,y;L==null||(E=L.mainPlaylistEntity)==null||(y=E.videos)==null||y.forEach(function(v){var J;(v=(J=q[v])==null?void 0:J.video)&&Q.push(v)});
return Q},[]))};
OFm=function(g){return"downloadedMusicPlaylistEntities"in g};
K4T=function(g){return"mainPlaylistEntity"in g&&"mainPlaylistDownloadStateEntity"in g};
xJM=function(g){return"videoEntity"in g&&"channelEntity"in g};
BxK=function(g){var u=g.musicPlaylistDownloadMetadataEntity,q=[];if(!u)return q;for(var Q=_.N(Object.keys(u)),L=Q.next();!L.done;L=Q.next()){L=L.value;a:{var E=g,y=_.Tz(L).entityId;if(y){var v=_.BC(E,"musicPlaylist",_.x6(y,"musicPlaylist"));E=_.BC(E,"musicPlaylistDownloadMetadataEntity",_.x6(y,"musicPlaylistDownloadMetadataEntity"));if(v&&E){v={musicPlaylistEntity:v,musicPlaylistDownloadStateEntity:E};break a}}v=void 0}E=void 0;L=Number((E=u[L])==null?void 0:E.addedTimestampMillis);L=isNaN(L)?(0,_.n0)():
L;v!==void 0&&q.push({downloadedMusicPlaylistEntities:v,addedTimestampMillis:L})}return q};
zV3=function(g){var u=new Set;g=_.N(g);for(var q=g.next();!q.done;q=g.next())if(q=q.value,"musicPlaylistEntity"in q&&"musicPlaylistDownloadStateEntity"in q){q=_.N(q.musicPlaylistEntity.tracks);for(var Q=q.next();!Q.done;Q=q.next())u.add(Q.value)}return u};
n3u=function(g,u){if(u){var q=_.BC(g,"musicTrack",_.x6(u,"musicTrack")),Q=_.BC(g,"musicArtist",_.x6(u,"musicArtist"))||{};if((g=HFS(g,u))&&q&&Q)return Object.assign({},{musicTrackEntity:q,musicArtistEntity:Q},g)}};
kRJ=function(g){var u=g.musicTrackDownloadMetadataEntity,q=[];if(!u)return[];u=_.N(Object.keys(u));for(var Q=u.next();!Q.done;Q=u.next()){var L=Q.value;Q=n3u(g,_.Tz(L).entityId);var E=void 0;L=Number((E=_.BC(g,"musicTrackDownloadMetadataEntity",L))==null?void 0:E.addedTimestampMillis);E=isNaN(L)?(0,_.n0)():L;Q!==void 0&&q.push({downloadedMusicEntities:Q,addedTimestampMillis:E})}return q};
UJ3=function(g,u){if(!u)return[];if(Object.values(S6K).includes(u))return o3M(g,u);u=_.x6(u,"musicPlaylist");var q;g=(q=g.musicPlaylist)==null?void 0:q[u];q=[];if(g==null||!g.tracks)return q;g=_.N(g.tracks);for(u=g.next();!u.done;u=g.next())(u=_.Tz(u.value).entityId)&&q.push(u);return q};
o3M=function(g,u){var q=new Set,Q=BxK(g).map(function(E){return E.downloadedMusicPlaylistEntities});
Q=zV3(Q);Q=_.N(Q);for(var L=Q.next();!L.done;L=Q.next())(L=_.Tz(L.value).entityId)&&q.add(L);return gef(g).downloadedMusicEntities.filter(function(E){var y;if((y=E.musicTrackEntity)!=null&&y.videoId){E=E.musicTrackEntity;if(y=u==="PPOM"?!0:!q.has(E.videoId))b:switch(E=E.musicVideoType,u){case "PPSE":y=E==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:y=E!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}E=y}else E=!1;return E}).map(function(E){var y;
return(y=E.musicTrackEntity)==null?void 0:y.videoId})};
gef=function(g){var u=kRJ(g).sort(function(q,Q){return Q.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return"downloadedMusicEntities"in q?q.downloadedMusicEntities:OFm(q)?q.downloadedMusicPlaylistEntities:{}});
g=BxK(g).sort(function(q,Q){return Q.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return"downloadedMusicEntities"in q?q.downloadedMusicEntities:OFm(q)?q.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:u,downloadedMusicPlaylistEntities:g}};
qMF=function(g,u){u=_.FR("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?UJ3(g,u):rXm(g,u);if(!u.length)return"TRANSFER_STATE_UNKNOWN";u=u.map(function(q){return mJM(g,q)});
return uqZ(u)};
uqZ=function(g){var u=new Set(g);if(u.has("TRANSFER_STATE_FAILED")&&u.size===1)return"TRANSFER_STATE_FAILED";u.delete("TRANSFER_STATE_FAILED");if(u.has("TRANSFER_STATE_UNKNOWN")&&u.size===1)return"TRANSFER_STATE_PRE_TRANSFER";u.delete("TRANSFER_STATE_UNKNOWN");if(u.has("TRANSFER_STATE_PRE_TRANSFER")&&u.size===1||u.size===0)return"TRANSFER_STATE_PRE_TRANSFER";g=u.has("TRANSFER_STATE_TRANSFERRING");u=u.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return g||u?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Pc=function(g){var u=g.mainVideoDownloadStateEntity,q=[];if(!u)return[];u=_.N(Object.keys(u));for(var Q=u.next();!Q.done;Q=u.next()){var L=Q.value;if(!AXh(g,_.Tz(L).entityId)){Q=E3(g,_.Tz(L).entityId);var E=void 0,y=void 0;L=(y=Number((E=_.BC(g,"mainVideoDownloadStateEntity",L))==null?void 0:E.addedTimestampMillis))!=null?y:(0,_.n0)();Q!==void 0&&q.push({downloadedVideoEntities:Q,addedTimestampMillis:L})}}return q};
Q_k=function(g){return Pc(g).sort(function(u,q){return q.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return u.downloadedVideoEntities})};
_.EeT=function(g){var u=Y6u(g),q=_.NZ(g),Q=CTb(g),L=Pc(g).filter(function(y){var v,J;if((y==null?void 0:(v=y.downloadedVideoEntities)==null?void 0:(J=v.transferEntity)==null?void 0:J.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var f,t;y=y==null?void 0:(f=y.downloadedVideoEntities)==null?void 0:(t=f.videoEntity)==null?void 0:t.key;return _.w("kevlar_use_library_entity")?y&&(Q.has(y)||q[y]):y&&!u.has(y)}),E=hVm(g).filter(function(y){return qMF(g,y.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.na(L),_.na(E)).sort(function(y,v){return v.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return Lfh(y)})};
Ppk=function(g,u){if(u&&RVJ(g,u)){var q,Q,L=(Q=(q=_.BC(g,"playbackData",_.x6(u,"playbackData")))!=null?q:void 0)==null?void 0:Q.playerResponseJson;if(L){try{var E=JSON.parse(L);var y=_.BC(g,"transfer",_.x6(u,"transfer")),v=aCq(g,u);v&&(E=Object.assign({},E,{playerConfig:Object.assign({},E.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+v*1E3}}})}));E.cotn=y==null?void 0:y.cotn}catch(J){}return E}}};
_.s_u=function(g){var u,q,Q;g=(Q=(q=((u=g.downloadsPageViewConfigurationEntity)!=null?u:{})[_.s3])==null?void 0:q.smartDownloadsOptInBannerVisibility)!=null?Q:{};var L;return(L=_.c(g,Nom))!=null?L:{}};
_.NZ=function(g){var u,q,Q;g=(Q=(q=((u=g.mainDownloadsListEntity)!=null?u:{})[_.yFS])==null?void 0:q.downloads)!=null?Q:[];u={};q=_.N(g);for(Q=q.next();!Q.done;Q=q.next())g=void 0,u[(g=Q.value.videoItem)!=null?g:""]=!0;return u};
ve3=function(g){var u=_.NZ(g);if(Object.keys(u).length===0)return!1;var q=g.mainVideoEntity;if(!q)return!0;q=_.N(Object.keys(q));for(var Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var L=_.Tz(Q).entityId;if(u[Q]&&!AXh(g,L))return!1}return!0};
_.yv=function(g){var u=_.NZ(g);return Pc(g).sort(function(q,Q){return q.addedTimestampMillis-Q.addedTimestampMillis}).map(function(q){return q.downloadedVideoEntities}).filter(function(q){var Q;
return(q=q==null?void 0:(Q=q.videoEntity)==null?void 0:Q.key)&&!!u[q]})};
_.p_q=function(g){var u,q,Q;g=(Q=(q=((u=g.downloadsPageViewConfigurationEntity)!=null?u:{})[_.s3])==null?void 0:q.downloadsUpsellBannerVisibility)!=null?Q:{};var L;return(L=_.c(g,D5K))!=null?L:{}};
Lfh=function(g){return"downloadedVideoEntities"in g?g.downloadedVideoEntities:"downloadedPlaylistEntities"in g?g.downloadedPlaylistEntities:{}};
JFS=function(g){var u=_.NZ(g),q=Y6u(g),Q=Pc(g).filter(function(L){var E,y;return(L=L==null?void 0:(E=L.downloadedVideoEntities)==null?void 0:(y=E.videoEntity)==null?void 0:y.key)&&!u[L]&&!q.has(L)});
g=hVm(g);return[].concat(_.na(Q),_.na(g)).sort(function(L,E){return E.addedTimestampMillis-L.addedTimestampMillis}).map(function(L){return Lfh(L)})};
_.vc=function(g){if(!_.w("kevlar_use_library_entity"))return JFS(g);var u=Pc(g).filter(function(Q){var L,E;if(L=Q=Q==null?void 0:(L=Q.downloadedVideoEntities)==null?void 0:(E=L.videoEntity)==null?void 0:E.key){var y,v,J;L=((v=(y=g.mainDownloadsListEntity)==null?void 0:y[iFK])==null?0:(J=v.downloads)==null?0:J.length)?CTb(g).has(Q):!1}return L}),q=hVm(g);
return[].concat(_.na(u),_.na(q)).sort(function(Q,L){return L.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return Lfh(Q)})};
j_K=function(g){var u=_.NZ(g),q=Y6u(g);return Q_k(g).filter(function(Q){var L;return(Q=Q==null?void 0:(L=Q.videoEntity)==null?void 0:L.key)&&!u[Q]&&!q.has(Q)})};
fhS=function(g){if(!_.w("kevlar_use_library_entity"))return j_K(g);var u=_.NZ(g),q=CTb(g);return Q_k(g).filter(function(Q){var L;return(Q=Q==null?void 0:(L=Q.videoEntity)==null?void 0:L.key)&&!u[Q]&&q.has(Q)})};
MBb=function(g,u){u=_.x6(u,"settingEntity");var q,Q,L;return!!((L=(Q=((q=g.settingEntity)!=null?q:{})[u])==null?void 0:Q.settingOptionValue)!=null?L:{}).boolValue};
_.Ds=function(g){var u=_.yv(g);if($JT(u))return 0;var q=[];u=_.N(u);for(var Q=u.next();!Q.done;Q=u.next()){Q=Q.value;var L=void 0,E=void 0;if((L=Q)==null?0:(E=L.videoEntity)==null?0:E.key)L=_.Tz(Q.videoEntity.key).entityId,Q=g,L=_.x6(L,"mainVideoDownloadStateEntity"),Q=_.BC(Q,"mainVideoDownloadStateEntity",L),(Q=Number(Q==null?void 0:Q.addedTimestampMillis))&&q.push(Q)}return Math.max.apply(Math,_.na(q))};
_.pU=function(g){return g.ui.richGridMiniMode};
_.JD=function(g){return g.ui.richGridItemsPerRow};
_.tBq=function(g){return g.ui.richGridSlimItemsPerRow};
_.eOq=function(g){return g.ui.guideIsExpanded};
_.jb=function(g){return g.ui.miniplayerIsActive};
GuS=function(g){return g.ui.singleOptionSurveyIsActive};
_.fU=function(g){var u;return((u=g.ui)==null?void 0:u.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.$5q=function(g){return _.fU(g)==="WEB_PAGE_TYPE_WATCH"};
_.ROk=function(g){return _.fU(g)==="WEB_PAGE_TYPE_SHORTS"};
_.w_F=function(g){return g.ui.inlinePreviewIsActive};
_.cFS=function(g){return g.ui.inlinePreviewIsEnabled};
_.H1m=function(g){return g.ui.miniplayerPlaybackState};
_.MZ=function(g){return g.ui.isOnline};
_.AFS=function(g){return g.ui.frostedGlassMode};
_.tD=function(g,u){return bFq(g.entities,u)};
_.eb=function(g,u){return qMF(g.entities,u)};
Z1q=function(g,u){var q;if(u){var Q;g=(Q=_.BC(g.entities,"offlineVideoPolicy",_.x6(u,"offlineVideoPolicy")))==null?void 0:Q.action}else g=void 0;return(q=g)!=null?q:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
lhq=function(g,u){var q;u?(g=_.BC(g.entities,"offlineVideoPolicy",_.x6(u,"offlineVideoPolicy")),g=Number(g==null?void 0:g.expirationTimestamp)):g=void 0;return(q=g)!=null?q:0};
_.IhJ=function(g){return _.LU(g.entities).length};
i1T=function(g,u){return E3(g.entities,u)};
CpF=function(g,u){return TxZ(g.entities,u)};
GN=function(g,u){return(g=E3(g.entities,u))?_.MCM([g]):0};
_.b1M=function(g,u){var q=_.FR("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(q){var Q=g.entities;var L=UJ3(Q,u);if(L.length){var E=[];L=_.N(L);for(var y=L.next();!y.done;y=L.next())(y=n3u(Q,y.value))&&E.push(y);Q=E}else Q=[]}else Q=W4K(g.entities,u);var v;if(q){var J=g.entities;u?(u=_.x6(u,"musicPlaylist"),J=(v=J.musicPlaylist)==null?void 0:v[u],v=J!=null&&J.tracks?J.tracks.length:0):v=0}else v=g.entities,u?(u=_.x6(u,"mainPlaylistEntity"),v=(J=v.mainPlaylistEntity)==null?void 0:J[u],v=v!=null&&v.videos?
v.videos.length:0):v=0;return Q.length!==v?0:Q?tCf(Q):0};
_.d5b=function(g){return g.download.isLeaderTab};
_.Ffm=function(g,u,q){if(!u&&q){var Q=g.entities;if(q){var L=GRm(q),E,y;u=(y=(E=_.BC(Q,"offlineabilityEntity",_.x6(L,"offlineabilityEntity")))==null?void 0:E.addToOfflineButtonState)!=null?y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else u="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else E=g.entities,u?(y=GRm(u),u=(L=(Q=_.BC(E,"offlineabilityEntity",_.x6(y,"offlineabilityEntity")))==null?void 0:Q.addToOfflineButtonState)!=null?L:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):u="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return u};
m5q=function(g,u){g=g.entities;if(u){u=GRm(u);var q,Q;u=(Q=(q=_.BC(g,"offlineabilityEntity",_.x6(u,"offlineabilityEntity")))==null?void 0:q.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else u="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return u};
_.ahu=function(g){var u=g.entities;g=_.MZ(g);var q=MBb(u,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.w("kevlar_modern_downloads_page")&&q)var Q=!1;else{var L,E;u=(E=(L=((Q=u.downloadsPageViewConfigurationEntity)!=null?Q:{})[_.s3])==null?void 0:L.smartDownloadsOptInBannerVisibility)!=null?E:{};Q=g?!!u.visibleWithConnection:!!u.visibleWithoutConnection}return Q};
_.VBq=function(g){return MBb(g.entities,"SMART_DOWNLOADS_ENABLED")};
_.X_J=function(g){return ve3(g.entities)};
rFZ=function(g){return _.yv(g.entities).every(function(u){var q;return(u==null?void 0:(q=u.transferEntity)==null?void 0:q.transferState)&&!fCb.includes(u.transferEntity.transferState)})};
_.WfJ=function(g){var u,q,Q,L=(Q=(q=((u=g.entities.downloadsPageViewConfigurationEntity)!=null?u:{})[_.s3])==null?void 0:q.downloadsUpsellBannerVisibility)!=null?Q:{};return _.MZ(g)?!!L.visibleWithConnection:!!L.visibleWithoutConnection};
_.ToT=function(g,u){return AXh(g.entities,u)};
hOZ=function(g,u){if(u){var q,Q;g=(Q=(q=_.BC(g.entities,"downloadStatusEntity",_.x6(u,"downloadStatusEntity")))==null?void 0:q.downloadState)!=null?Q:"DOWNLOAD_STATE_UNKNOWN"}else g="DOWNLOAD_STATE_UNKNOWN";return g};
$Z=function(g,u){return aCq(g.entities,u)};
x5q=function(g){g=YMh(g);var u=g.hours===void 0?0:g.hours,q=g.minutes===void 0?0:g.minutes,Q=g.seconds===void 0?0:g.seconds,L=u>0;g=[];L&&(u=O1T(u),g.push(u));u=L;u=u===void 0?!1:u;q=(["af","be","lt"].includes(R7)||u)&&q<10?KfF().format(q):(new Intl.NumberFormat("en-u-nu-latn")).format(q);g.push(q);q=KfF().format(Q);g.push(q);q=":";"da fi id si sr sr-Latn".split(" ").includes(R7)&&(q=".");return g.join(q)};
_.zOb=function(g){g=YMh(g);var u=g.hours===void 0?0:g.hours,q=g.minutes===void 0?0:g.minutes,Q=g.seconds===void 0?0:g.seconds;g=[];if(u>0){var L=BoZ().format({hours:u});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(R7)||u>9999)L=L.replace(u.toString(),O1T(u)),R7==="km"&&(L=L.replace(".",","));g.push(L)}q>0&&g.push(BoZ().format({minutes:q}));Q>0&&g.push(BoZ().format({seconds:Q}));u="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");q=R7=="am"?"{0}\u1363 ":R7=="fa"?"{0}\u060c\u200f ":
R7=="my"?"{0} - ":R7=="th"?"{0} ":R7=="ur"?"{0}\u060c ":R7=="ar"||R7=="ar-XB"?"{0} \u0648":R7=="ja"||R7=="zh-CN"||R7=="zh-HK"||R7=="zh-TW"?"{0}\u3001":"{0}, ";Q=R7=="am"?"\u1363 ":R7=="fa"?"\u060c\u200f ":R7=="my"?" - ":R7=="th"?" ":R7=="ur"?"\u060c ":R7=="ar"||R7=="ar-XB"?" \u0648":R7=="ja"||R7=="zh-CN"||R7=="zh-HK"||R7=="zh-TW"?"\u3001":", ";L=R7=="am"?" \u12a5\u1293 {0}":R7=="as"?" \u0986\u09f0\u09c1 {0}":R7=="az"?" v\u0259 {0}":R7=="bn"?" \u098f\u09ac\u0982 {0}":R7=="cs"?" a\u00a0{0}":R7=="de"?
" und {0}":R7=="el"?" \u03ba\u03b1\u03b9 {0}":R7=="eu"?" eta {0}":R7=="fa"?"\u060c \u0648 {0}":R7=="fil"?", at {0}":R7=="gu"?" \u0a85\u0aa8\u0ac7 {0}":R7=="hi"?", \u0914\u0930 {0}":R7=="hu"?" \u00e9s {0}":R7=="hy"?" \u0587 {0}":R7=="id"?", dan {0}":R7=="iw"?" \u05d5-{0}":R7=="ja"?"\u3001{0}":R7=="ka"?" \u10d3\u10d0 {0}":R7=="km"?" \u1793\u17b7\u1784 {0}":R7=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":R7=="ko"?" \ubc0f {0}":R7=="ky"?" \u0436\u0430\u043d\u0430 {0}":R7=="lt"?" ir {0}":R7=="lv"?" un {0}":
R7=="mr"?" \u0906\u0923\u093f {0}":R7=="ms"?" dan {0}":R7=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":R7=="ne"?" \u0930 {0}":R7=="or"?", \u0b13 {0}":R7=="pa"?" \u0a05\u0a24\u0a47 {0}":R7=="ro"?" \u0219i {0}":R7=="si"?", \u0dc3\u0dc4 {0}":R7=="sk"?" a {0}":R7=="sl"?" in {0}":R7=="sq"?" dhe {0}":R7=="sv"?" och {0}":R7=="sw"?" na {0}":R7=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":R7=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":R7=="th"?" \u0e41\u0e25\u0e30{0}":R7=="tr"?" ve {0}":R7=="ur"?
"\u060c \u0627\u0648\u0631 {0}":R7=="uz"?" va {0}":R7=="vi"?" v\u00e0 {0}":R7=="zh-HK"?"\u53ca{0}":R7=="zu"?", ne-{0}":R7=="af"||R7=="nl"?" en {0}":R7=="ar"||R7=="ar-XB"?" \u0648{0}":R7=="be"||R7=="uk"?" \u0456 {0}":R7=="en-GB"||R7=="en-IN"?" and {0}":R7=="en"||R7=="en-XA"?", and {0}":R7=="et"||R7=="fi"?" ja {0}":R7=="fr"||R7=="fr-CA"?" et {0}":R7=="zh-CN"||R7=="zh-TW"?"\u548c{0}":R7=="da"||R7=="is"||R7=="no"?" og {0}":R7=="es"||R7=="es-419"||R7=="es-US"?" y {0}":R7=="bg"||R7=="mk"||R7=="ru"||R7==
"sr"?" \u0438 {0}":R7=="gl"||R7=="it"||R7=="pt-BR"||R7=="pt-PT"?" e {0}":R7=="kk"||R7=="lo"||R7=="ml"||R7=="mn"?", {0}":" i {0}";var E=R7=="am"?"{0} \u12a5\u1293 {1}":R7=="as"?"{0} \u0986\u09f0\u09c1 {1}":R7=="az"?"{0} v\u0259 {1}":R7=="bn"?"{0} \u098f\u09ac\u0982 {1}":R7=="de"?"{0} und {1}":R7=="el"?"{0} \u03ba\u03b1\u03b9 {1}":R7=="eu"?"{0} eta {1}":R7=="fa"?"{0} \u0648 {1}":R7=="fil"?"{0} at {1}":R7=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":R7=="hi"?"{0} \u0914\u0930 {1}":R7=="hu"?"{0} \u00e9s {1}":R7==
"hy"?"{0} \u0587 {1}":R7=="iw"?"{0} \u05d5-{1}":R7=="ja"?"{0}\u3001{1}":R7=="ka"?"{0} \u10d3\u10d0 {1}":R7=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":R7=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":R7=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":R7=="ko"?"{0} \ubc0f {1}":R7=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":R7=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":R7=="lt"?"{0} ir {1}":R7=="lv"?"{0} un {1}":R7=="mr"?"{0} \u0906\u0923\u093f {1}":R7=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":R7=="ne"?"{0} \u0930 {1}":
R7=="or"?"{0} \u0b13 {1}":R7=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":R7=="ro"?"{0} \u0219i {1}":R7=="si"?"{0} \u0dc3\u0dc4 {1}":R7=="sl"?"{0} in {1}":R7=="sq"?"{0} dhe {1}":R7=="sv"?"{0} och {1}":R7=="sw"?"{0} na {1}":R7=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":R7=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":R7=="th"?"{0}\u0e41\u0e25\u0e30{1}":R7=="tr"?"{0} ve {1}":R7=="ur"?"{0} \u0627\u0648\u0631 {1}":R7=="uz"?"{0} va {1}":R7=="vi"?"{0} v\u00e0 {1}":R7=="zh-HK"?"{0}\u53ca{1}":R7==
"zu"?"{0} ne-{1}":R7=="af"||R7=="nl"?"{0} en {1}":R7=="ar"||R7=="ar-XB"?"{0} \u0648{1}":R7=="be"||R7=="uk"?"{0} \u0456 {1}":R7=="cs"||R7=="sk"?"{0} a\u00a0{1}":R7=="et"||R7=="fi"?"{0} ja {1}":R7=="fr"||R7=="fr-CA"?"{0} et {1}":R7=="id"||R7=="ms"?"{0} dan {1}":R7=="ml"||R7=="mn"?"{0}, {1}":R7=="zh-CN"||R7=="zh-TW"?"{0}\u548c{1}":R7=="da"||R7=="is"||R7=="no"?"{0} og {1}":R7=="es"||R7=="es-419"||R7=="es-US"?"{0} y {1}":R7=="bg"||R7=="mk"||R7=="ru"||R7=="sr"?"{0} \u0438 {1}":R7=="en"||R7=="en-GB"||R7==
"en-IN"||R7=="en-XA"?"{0} and {1}":R7=="gl"||R7=="it"||R7=="pt-BR"||R7=="pt-PT"?"{0} e {1}":"{0} i {1}";R7==="sq"?(L=L.replace("dhe","e"),E=E.replace("dhe","e")):R7==="th"?(Q=Q.replace("{0}"," {0}"),E=E.replace("{0}","{0} "),E=E.replace("{1}"," {1}")):R7==="ne"?Q=",":R7==="zh-CN"?Q="":u.includes(R7)&&(Q=" ");return g.length<2?g.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(R7)?
g.length===2?E.replace("{0}",g[0]).replace("{1}",g[1]):q.replace("{0}",g[0])+g.slice(1,-1).join(Q)+L.replace("{0}",g[g.length-1]):g.join(Q)};
YMh=function(g){var u=g.hours||0,q=g.minutes||0,Q=g.seconds||0;u=Q+q*60+u*3600+(g.days||0)*86400+(g.weeks||0)*604800+(g.months||0)*2629800+(g.years||0)*31557600;if(u<=0)return{hours:0,minutes:0,seconds:0};g=u;u=Math.floor(g/3600);g%=3600;q=Math.floor(g/60);Q=Math.floor(g%60);return{hours:u,minutes:q,seconds:Q}};
O1T=function(g){g=(new Intl.NumberFormat("en-u-nu-latn")).format(g);var u=["fr"],q="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(R7)?g.replace(",","\u00a0"):u.includes(R7)?g.replace(",","\u202f"):q.includes(R7)?g.replace(",","."):g};
KfF=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
BoZ=function(){neJ||(wr=kuh,neJ=new SMJ);return neJ};
APu=function(g){try{return(new _.cc(5)).format(g)}catch(u){}};
Hc=function(g){return{thumbnailOverlayDownloadingRenderer:{state:g}}};
ZlT=function(){var g=_.Ug("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.ap(g),icon:{iconType:"PLAY_ALL"}}}};
l5K=function(g){g=_.AD(g,2);return R7!=="ru"&&R7!=="es_419"&&R7!=="es-419"&&R7!=="es"&&R7!=="es_US"&&R7!=="es-US"&&R7!=="fr"&&R7!=="pl"&&R7!=="it"&&R7!=="nl"&&R7!=="uk"&&R7!=="fr_CA"&&R7!=="fr-CA"||g===""?g:g[0].toLocaleUpperCase()+g.substring(1)};
ilT=function(g){return function(u){var q=g(),Q=_.AD(u,q.dateFormat);u=_.AD(u,q.timeFormat);var L=I5u.DATETIMEFORMATS[q.joinerStyle];L=L.replace(/'(?!')/g,"");L=L.replace("{0}",u);L=L.replace("{1}",Q);return q.capitalize(L)}};
Cqf=function(g){return g?typeof g.seconds==="string"&&(g.nanos===void 0||typeof g.nanos==="number"):!1};
blS=function(g){return new Date(Number(g.seconds)*1E3+(g.nanos||0)*1E-6)};
_.AD=function(g,u){if(typeof g.getTime==="function")g={date:g};else if(Cqf(g))g={date:blS(g)};else if(typeof Cqf(g.timestamp)&&typeof g.i18nInternalSecondsEastOfUtc==="number")g={date:blS(g.timestamp),timeZone:Zs(-g.i18nInternalSecondsEastOfUtc/60)};else throw Error("Nf`"+JSON.stringify(g));var q=g;g=q.date;q=q.timeZone;u=dpq(u).format(g,q);R7==="zh-TW"&&(g=q?Number(dpq("H").format(g,q)):g.getHours(),u=g<5?u.replace("\u4e0a\u5348","\u51cc\u6668"):g<8?u.replace("\u4e0a\u5348","\u65e9\u4e0a"):g<12?
u.replace("\u4e0a\u5348","\u4e0a\u5348"):g<13?u.replace("\u4e0b\u5348","\u4e2d\u5348"):g<19?u.replace("\u4e0b\u5348","\u4e0b\u5348"):u.replace("\u4e0b\u5348","\u665a\u4e0a"));return u};
dpq=function(g){if(FAb.has(g))return FAb.get(g);var u=mpq(g);u=a5q(u);Vt3!==!0&&(Vt3=!0);XyK=!0;XyK=!1;u=new lR(u,I5u);FAb.set(g,u);return u};
mpq=function(g){return(new lR(g,I5u)).patternParts_.map(function(u){return u.type===0?"'"+u.text+"'":u.text}).join("")};
a5q=function(g){return R7==="en"||R7==="es_US"||R7==="es-US"?g:g.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(u,q,Q){return"H".repeat(q.length)+Q})};
KA3=function(g,u){rPf||(wr=kuh,rPf=new WAM);var q=rPf;a:if(g=TZq(g),u=TZq(u||new Date),g>u)q=g.getTime()-u.getTime()>6048E5?_.AD(g,1):h6h(g);else{for(var Q=0;YCb(g,12*(Q+1))<u;)++Q;if(Q>0)q=q.format(-Q,0);else{for(Q=0;YCb(g,Q+1)<u;)++Q;if(Q>0)q=q.format(-Q,2);else{g=u.getTime()-g.getTime();u=_.N(OlF);for(Q=u.next();!Q.done;Q=u.next()){Q=Q.value;var L=Q.unit,E=Math.floor(g/Q.unitDuration);if(E>=(Q.threshold===void 0?1:Q.threshold)){q=q.format(-E,L);break a}}q=q.format(-0,7)}}}return q};
TZq=function(g){if(typeof g.getTime==="function")return g;if(Cqf(g))return blS(g);throw Error("Of`"+JSON.stringify(g));};
YCb=function(g,u){for(var q=0,Q;;++q)if(Q=new Date(g.getFullYear(),g.getMonth()+u,g.getDate()-q,g.getHours(),g.getMinutes(),g.getSeconds()),Q.getMonth()===(g.getMonth()+u)%12)return Q};
_.I7=function(g){return{runs:[{text:g}]}};
_.iR=function(g){if(g&&g.simpleText)return g.simpleText;var u="";if(g&&g.runs)for(var q=0;q<g.runs.length;q++)g.runs[q].text&&(u+=g.runs[q].text);return u};
BZf=function(g,u,q,Q){return g.videoEntity&&!g.policyEntity&&q!=="DOWNLOAD_STATE_FAILED"?[Hc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:uR(g.policyEntity)&&u!=="TRANSFER_STATE_FAILED"&&u!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?u==="TRANSFER_STATE_PAUSED_BY_USER"?[Hc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.qZ(u)?[Hc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:g.videoEntity.lengthSeconds?xpb(g.videoEntity.lengthSeconds,Q):[]:
[Hc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
xpb=function(g,u){var q=[{thumbnailOverlayTimeStatusRenderer:{text:_.ap(x5q({seconds:g})),style:"DEFAULT"}}];u&&(g=u<=0||g<=0?0:u>=g?100:Math.ceil(u*100/g),g>0&&q.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:g}}));return q};
z6b=function(g,u,q,Q,L){if(u==="TRANSFER_STATE_UNKNOWN"||!g)return{};if(_.qZ(u)||u==="TRANSFER_STATE_PRE_TRANSFER")var E=[Hc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var y,v;if(u==="TRANSFER_STATE_COMPLETE"&&((y=g.mainPlaylistEntity)==null?0:(v=y.videos)==null?0:v.length)){var J;g=(E=g.mainPlaylistEntity)==null?void 0:(J=E.videos)==null?void 0:J.length;E=(E=APu(g))?{thumbnailOverlayBottomPanelRenderer:{text:_.ap(E),icon:{iconType:"PLAYLISTS"}}}:void 0;E=[ZlT(),Object.assign({},
E!=null?E:{})]}else E=[]}a:if(u==="TRANSFER_STATE_PRE_TRANSFER")q=VX(_.Ug("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(u==="TRANSFER_STATE_TRANSFER_IN_QUEUE")q=VX(_.Ug("WAITING_TO_DOWNLOAD"));else if(_.qZ(u))q=Math.floor(q*100).toString(),q=VX(_.Ug("DOWNLOADING_PERCENT",{percent:q},"Downloading... "+q+"%"));else{if(Q&&(_.w("playlist_is_offline_selector_killswitch")&&(L=_.Bk().resolve(_.rN).isNetworkAvailable()),L)){q=Aau(_.Ug("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
caZ(Q));break a}q=void 0}u=u==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Ug("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},E.length?{thumbnailOverlays:E}:{},q?{viewPlaylistText:q}:{viewPlaylistText:_.I7("")},u.length?{badges:u}:{})};
nsM=function(g,u,q,Q,L,E){if(u==="TRANSFER_STATE_UNKNOWN"||!g)return{};if(Q==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var y=BZf(g,u,Q);if(g.videoEntity&&!g.policyEntity&&Q!=="DOWNLOAD_STATE_FAILED"){var v=_.Ug("WAITING_TO_DOWNLOAD");if(v)return{shortViewCountText:_.I7(v),publishedTimeText:void 0,thumbnailOverlays:y}}if(!uR(g.policyEntity)){E=g.policyEntity&&!eVK(g.policyEntity)?_.Ug("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Ug("TRANSFER_FAILED",{},"Download failed");var J;if((J=g.policyEntity)==null?0:J.shortMessageForDisabledAction)E=g.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:VX(E),publishedTimeText:void 0,thumbnailOverlays:y}}if(u==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.I7(_.Ug("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:y};if(u==="TRANSFER_STATE_FAILED"||u==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.I7(_.Ug("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:y};if(u==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(J=_.Ug("WAITING_TO_DOWNLOAD"),Q==="DOWNLOAD_STATE_PAUSED"&&(J=_.Ug("DOWNLOAD_PAUSED",{},"Download paused")),J))return{shortViewCountText:_.I7(J),publishedTimeText:void 0,thumbnailOverlays:y};if(_.qZ(u))return g=Math.floor(q*100).toString(),{shortViewCountText:_.I7(_.Ug("DOWNLOADING_PERCENT",{percent:g},"Downloading... "+g+"%")),publishedTimeText:void 0,thumbnailOverlays:y};u=void 0;g.videoEntity.publishedTimestampMillis&&
(u=new Date,L&&(u=new Date(L)),u=VX(KA3(new Date(Number(g.videoEntity.publishedTimestampMillis)),u)));L=[];_.w("kevlar_woffle_badge_killswitch")||(L=[{metadataBadgeRenderer:{label:_.Ug("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var f;g=VX((f=g.videoEntity.localizedStrings)==null?void 0:f.viewCount);return Object.assign({},E?{shortViewCountText:void 0}:{shortViewCountText:g},E?{}:{publishedTimeText:u},{badges:L,thumbnailOverlays:y})};
SCK=function(g,u){g=g===void 0?kfb:g;switch(u.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:u.payload.playlistId,inviteLinkURL:u.payload.inviteLinkUrl};default:return g}};
UpS=function(g,u){g=g===void 0?osT:g;switch(u.type){case "SET_CURRENT_FORM_ID":return u=u.payload.formId,g.currentFormId===u?g:{currentFormId:u,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var q=u.payload;u=q.groupId;q=q.command;if(g.currentFormId){var Q=Object.assign({},g.commandsMap);Q[u]=q;g=Object.assign({},g,{commandsMap:Q})}return g;case "RESET_COMMAND_MAP":return Object.assign({},g,{commandsMap:{}});default:return g}};
uYh=function(g,u){g=g===void 0?g4q:g;switch(u.type){case "UPDATE_CANVAS_MODE":return Object.assign({},g,{currentMode:u.payload.currentMode});default:return g}};
Qw3=function(g,u){g=g===void 0?qmq:g;switch(u.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},g,{guideIsExpanded:u.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},g,{scrollAtTop:u.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},g,{guideIsVisibleButNotPersistent:u.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},g,{miniplayerIsActive:u.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},g,{singleOptionSurveyIsActive:u.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},g,{slimlineSurveyRatingSelectedIndex:u.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},g,{richGridMiniMode:u.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},g,{richGridItemsPerRow:u.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},g,{richGridSlimItemsPerRow:u.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},g,{richGridContainerWidth:u.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},g,{richGridStyle:u.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},g,{currentPageType:u.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},g,{inlinePreviewIsActive:u.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},g,{inlinePreviewIsEnabled:u.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},g,{darkModeIsEnabled:u.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
g,{miniplayerPlaybackState:u.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},g,{tabGesturesIsActive:u.payload});case "SET_ONLINE_STATUS":return Object.assign({},g,{isOnline:u.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},g,{chipBarIsSticky:u.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},g,{frostedGlassMode:u.payload});default:return g}};
LwS=function(){return _.w("kevlar_disable_theater_mode_persistence")?!1:_.mW("START_IN_THEATER_MODE")};
PYK=function(g,u){g=g===void 0?E4M:g;switch(u.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},g,{transcription:u.payload});case "SET_OVERLAY_STATE":return Object.assign({},g,{overlay:u.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return g}};
MvJ=function(){return $C(Object.assign({},{continuation:N7J,download:sw3,canvas:uYh,reportChannelAbuse:yWF,share:v4h,talkToRecs:DUT,ui:Qw3,voiceSearch:PYK,watch:ppJ,ypc:JW3,shorts:jwq,radioButtonGroup:UpS,collabInviteLink:SCK},fmh))};
GbT=function(){return _.w("web_player_entities_middleware")?new CU(MvJ(),[tvT,eCK]):new CU(MvJ(),[tvT])};
_.bR=function(){$UF||($UF=GbT());return $UF};
RCK=function(g,u,q){if(g.length)return{titleText:_.ap(u!=null?u:_.Ug("DOWNLOADS",void 0,"Downloads")),contents:g.map(function(Q){var L=Q.videoEntity;Q={videoId:L.videoId,title:VX(L.title),shortBylineText:VX(Q.channelEntity.title),thumbnail:L.thumbnail};var E=L.videoId?$Z(_.bR().getState(),L.videoId):0;L.videoId&&q?Q.navigationEndpoint=_.m7(L.videoId,q,void 0,void 0,E):L.videoId&&(Q.navigationEndpoint=w2u(L.videoId,E,L.lengthSeconds));L.lengthSeconds&&(Q.thumbnailOverlays=xpb(L.lengthSeconds,E));return{playlistPanelVideoRenderer:Q}}),
totalVideos:g.length}};
wpk=function(g){return(g=(0,_.pH.getValueByKeys)(g,"playlistId"))?{playlistId:g}:null};
cWq=function(){return{}};
HGZ=function(g,u){return new _.Ez(function(q,Q){g.then(function(L){if(L){if(L=u(L))return q(L);Q()}},Q)})};
AWf=function(g){var u,q,Q,L=(u=g.contents)==null?void 0:(q=u.twoColumnWatchNextResults)==null?void 0:(Q=q.autoplay)==null?void 0:Q.autoplay,E,y,v;u=(E=g.contents)==null?void 0:(y=E.twoColumnWatchNextResults)==null?void 0:(v=y.playlist)==null?void 0:v.playlist;return L&&u&&u.playlistId?{rawResponse:g,autoplayRenderer:L,playlistPanelRenderer:u,playlistId:u.playlistId}:null};
lmK=function(g){var u=u===void 0?"UNKNOWN_INTERFACE":u;if(g.length===1)return g[0];var q=ZGS[u];if(q){q=new RegExp(q);for(var Q=_.N(g),L=Q.next();!L.done;L=Q.next())if(L=L.value,q.exec(L))return L}var E=[];Object.entries(ZGS).forEach(function(y){var v=_.N(y);y=v.next().value;v=v.next().value;u!==y&&E.push(v)});
q=new RegExp(E.join("|"));g.sort(function(y,v){return y.length-v.length});
Q=_.N(g);for(L=Q.next();!L.done;L=Q.next())if(L=L.value,!q.exec(L))return L;return g[0]};
_.dr=function(g){return"/youtubei/v1/"+lmK(g)};
_.FJ=function(g,u){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:g}}},u!==void 0?{durationHintMs:u}:{})}};
_.mc=function(g,u){return _.FJ(_.I7(g),u)};
Im3=function(g,u){var q={mode:"NORMAL"};g&&(q.autoplayVideo=g.navigationEndpoint,q.nextButtonVideo=g.navigationEndpoint);u&&(q.previousButtonVideo=u.navigationEndpoint);return q};
bGm=function(g,u,q){if(!q||!q.sets)return{sets:[Im3(g,u)]};var Q=q.sets.find(function(y){return y.mode==="NORMAL"}),L=(0,_.pH.unsafeClone)(q);
if(!Q)return L.sets.push(Im3(g,u)),L;if(!g)return q;Q=_.pH.getValueByKeys.apply(null,[Q].concat(_.na(iGq)));var E=_.pH.getValueByKeys.apply(null,[g].concat(_.na(CYT)));if(Q===E)return q;L.sets=L.sets.filter(function(y){return y.mode!=="NORMAL"});
L.sets.push(Im3(g,u));return L};
dUq=function(g){return!!g.playlistPanelVideoRenderer&&!g.playlistPanelVideoRenderer.unplayableText};
FwK=function(g){return!!g.playlistPanelVideoRenderer&&!!g.playlistPanelVideoRenderer.title};
mUb=function(g,u){if(u.contents&&!(g>=u.contents.length)&&(g=u.contents.slice(g).find(dUq)))return g.playlistPanelVideoRenderer};
amq=function(g,u){if(u.contents)return(u=u.contents.find(function(q){return!!q.playlistPanelVideoRenderer&&q.playlistPanelVideoRenderer.videoId===g}))?u.playlistPanelVideoRenderer:void 0};
VvZ=function(g,u){return u.contents?u.contents.findIndex(function(q){return!!q.playlistPanelVideoRenderer&&q.playlistPanelVideoRenderer.videoId===g}):-1};
Xpf=function(g,u){return u.contents?u.contents.findIndex(function(q){return!!q.playlistPanelVideoRenderer&&q.playlistPanelVideoRenderer.playlistSetVideoId===g}):-1};
rWJ=function(g,u){g.contents&&u!==-1&&g.contents.splice(u,1).length===1&&g.totalVideos!==void 0&&(--g.totalVideos,delete g.videoCountText)};
_.Wwk=function(g){var u=[];if(!g||!g.contents)return u;g=_.N(g.contents);for(var q=g.next();!q.done;q=g.next())q=q.value,q.playlistPanelVideoRenderer&&q.playlistPanelVideoRenderer.videoId&&u.push(q.playlistPanelVideoRenderer.videoId);return u};
_.T7M=function(g){if(g&&g.contents)return(g=g.contents.find(function(u){return!!u.playlistPanelVideoRenderer&&!!u.playlistPanelVideoRenderer.selected})||g.contents[g.currentIndex])?g.playlistPanelVideoRenderer:void 0};
hCh=function(g,u,q,Q,L,E,y){L=L===void 0?!1:L;E=E===void 0?!1:E;y=y===void 0?!1:y;if(g.contents&&g.contents.length!==0){Q&&(g.contents=g.contents.filter(Q));Q=g.contents.length;for(var v=0;v<Q;v++){var J=g.contents[v].playlistPanelVideoRenderer;J&&(v===u?(E&&delete J.menu,J.indexText=_.I7("\u25b6")):L||g.isInfinite||J.indexText===void 0?delete J.indexText:J.indexText=_.I7((v+1+q).toString()))}g.currentIndex=u+q;y&&(delete g.videoCountText,g.totalVideos=Q)}};
_.a7=function(g){g=Ybu(g);if(g){var u=g.length;var q=-53%u;q<0&&(q=u+q);g=g.slice(u-q)+g.slice(0,u-q)}else g="";q="";for(u=0;u<g.length&&g[u]!==Ymm;u++)q+=g[u];return q};
_.OGh=function(g,u){var q=document.body;u=u===void 0?function(v){return v}:u;
var Q,L=null;g=_.N(g);for(Q=g.next();!Q.done;Q=g.next()){var E=Q.value;Q="div";E[2]&&(Q=u(E[2]));Q=document.createElement(Q);L||(L=Q);var y=E[0];E=E[1];y&&(Q.id=u(y));if(E)for(E=_.N(E),y=E.next();!y.done;y=E.next())Q.classList.add(u(y.value));q.appendChild(Q);q=Q}return[L,q]};
Kwb=function(g,u){for(var q="",Q=0;Q<u;Q++)q+=g.charAt(Math.floor(Math.random()*g.length));return q};
Vv=function(g){return Kwb("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",g)};
XJ=function(g){return Kwb("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",g)};
rr=function(g){return Kwb("0123456789",g)};
xUq=function(){var g=performance.now(),u=new Date;var q="2."+u.getFullYear()+String(u.getMonth()+1).padStart(2,"0")+String(u.getDate()).padStart(2,"0");for(var Q,L=Math.floor(Math.random()*11)+15,E=[],y=0;y<L;y++)E.push(Math.floor(Math.random()*26476865)+24547720);Q=E.join(",");var v=Vv(10),J=Vv(100),f=Vv(102),t=Vv(106),e=Vv(108),G=Vv(11),R=Vv(1140),H=Vv(123),l=Vv(14),d=Vv(16),F=Vv(1900),V=Vv(23),z=Vv(26),O=Vv(34),W=Vv(397),x=Vv(44),k=Vv(5),LZ=Vv(72),sb=Vv(74),Rm=Vv(75),M3=Vv(88),tT=Vv(91),mJ="rr2---sn-ntq7yney rr4---sn-q4fl6nd6 rr1---sn-q4fzene7 rr2---sn-5hnekn7l rr5---sn-q4fl6nd6 rr2---sn-q4flrne7 rr3---sn-5hnekn7k rr5---sn-hgn7rn7r rr3---sn-q4fl6nds rr3---sn-q4fl6ndl rr4---sn-q4fl6n6z rr1---sn-q4fl6nds rr3---sn-q4flrnes rr3---sn-ntqe6n76 rr2---sn-aigl6ney rr1---sn-q4fl6nsy rr4---sn-q4fl6nds rr3---sn-q4fzen7l rr3---sn-q4flrnsd rr5---sn-ntq7yney".split(" ");
var hT=mJ[Math.floor(Math.random()*mJ.length)];var Yu=(new Date("2010-01-01")).getTime();var Mx=(new Date(Yu+Math.random()*((new Date).getTime()-Yu))).toISOString().split("T")[0];for(var po,KZ=[],G2=0;G2<4;G2++)KZ.push(Math.floor(Math.random()*100));po=KZ.join(".");var Ab=Number(rr(5)),tb=Number(rr(6)),lx=Number(rr(7)),NE=Number(rr(9)),fZ=rr(1),Xf=rr(10),eX=rr(16),no=rr(19),Co=rr(2),gC=rr(20),Ca=rr(21),oR=rr(3),jf=rr(4),Ko=rr(5),K9=rr(6),v5=rr(7),ME=rr(8),fo=rr(9);var B5=Kwb("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var ra=[XJ(5),XJ(5),XJ(5)].join("%2C"),yp=[rr(3),rr(5),rr(5)].join("%2C"),YV=XJ(0),hb=XJ(1),$L=XJ(10),UZ=XJ(108),ET=XJ(11),$F=XJ(12),Pq=XJ(13),du=XJ(14),xF=XJ(15),TF=XJ(16),bP=XJ(17),lh=XJ(18),rq=XJ(19),nZ=XJ(2),H5=XJ(20),Hn=XJ(22),I3=XJ(23),ix=XJ(24),lZ=XJ(266),ZH=XJ(3),hh=XJ(30),Nk=XJ(34),$i=XJ(35),F4=XJ(36),R2=XJ(4),OT=XJ(40),tk=XJ(43),QW=XJ(47),NQ=XJ(5),me=XJ(6),cU=XJ(7),P2=XJ(75),Fx=XJ(8),ee=XJ(80),dU=XJ(9),wt="https://www."+XJ(12)+".com",LY={},lU={},I5={},Ep={},u$={},EO={},GP={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:Q}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:q},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+XJ(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:q},{key:"client.name",value:"WEB"},{key:"client.fexp",value:Q}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Ca+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+XJ(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:OT,ypcGetOfflineUpsellEndpoint:{params:ee}},trackingParams:$i+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&cnr="+Co+"&ratebypass=yes&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&c=WEB&txp="+v5+"&n="+d+"&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:tb,width:640,height:360,lastModified:eX,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:v5,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+yp+"&mn="+
ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&cnr="+Co+"&ratebypass=yes&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&c=WEB&txp="+v5+"&n="+d+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+UZ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:tb,width:1280,
height:720,lastModified:eX,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:v5,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+yp+"&mn="+ra+"&ms="+
ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+fo+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:lx,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:fo,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:lx,approxDurationMs:v5},{itag:248,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+yp+"&mn="+ra+"&ms="+ra+"&mv="+
hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fwebm&ns="+ix+"&gir="+ZH+"&clen="+fo+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:lx,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:fo,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:lx,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:399,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+fo+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:lx,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:fo,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:lx,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:136,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+fo+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:lx,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:fo,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:tb,approxDurationMs:v5},{itag:247,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+yp+"&mn="+
ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fwebm&ns="+ix+"&gir="+ZH+"&clen="+fo+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:lx,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:fo,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:398,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+fo+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:lx,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:fo,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:135,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:tb,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:tb,approxDurationMs:v5},{itag:244,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+yp+"&mn="+
ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fwebm&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+UZ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:tb,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:397,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:tb,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:134,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:tb,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:tb,highReplication:!0,approxDurationMs:v5},{itag:243,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fwebm&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:tb,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:396,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:tb,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:133,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:tb,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:tb,approxDurationMs:v5},{itag:242,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+yp+"&mn="+
ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fwebm&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:tb,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:395,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:tb,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:160,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:tb,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ab,approxDurationMs:v5},{itag:278,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+yp+"&mn="+
ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fwebm&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&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:tb,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ab,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:394,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&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="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=video%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Ab,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ab,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v5},{itag:140,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=audio%2Fmp4&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:tb,
initRange:{start:"0",end:"631"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:tb,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:v5,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+
Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=audio%2Fwebm&ns="+ix+"&gir="+ZH+"&clen="+v5+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/webm; codecs="opus"',bitrate:Ab,initRange:{start:"0",end:"265"},indexRange:{start:oR,
end:jf},lastModified:eX,contentLength:v5,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ab,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:v5,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=audio%2Fwebm&ns="+
ix+"&gir="+ZH+"&clen="+v5+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/webm; codecs="opus"',bitrate:Ab,initRange:{start:"0",end:"265"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:v5,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ab,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:v5,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+hT+".googlevideo.com/videoplayback?expire="+Xf+"&ei="+V+"&ip="+po+"&id=o-AF"+tk+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+yp+"&mn="+ra+"&ms="+ra+"&mv="+hb+"&mvi="+fZ+"&pl="+Co+"&initcwndbps="+v5+"&siu="+fZ+"&spc="+x+"&vprv="+fZ+"&svpuc="+fZ+"&mime=audio%2Fwebm&ns="+ix+"&gir="+ZH+"&clen="+ME+"&dur="+ME+"&lmt="+eX+"&mt="+Xf+"&fvip=3&keepalive="+ZH+"&c=WEB&txp="+
v5+"&n="+TF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/webm; codecs="opus"',bitrate:tb,initRange:{start:"0",end:"265"},indexRange:{start:oR,end:jf},lastModified:eX,contentLength:ME,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:tb,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:v5,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="+fo+"&docid="+G+"&ei="+V+"&feature="+v+"&fexp="+YV+"&ns="+nZ+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+hb+"&el="+$L+"&len="+jf+"&of="+Hn+
"&uga="+Co+"&vm="+lZ},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+fo+"&docid="+G+"&ei="+V+"&feature="+v+"&fexp="+YV+"&ns="+nZ+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+hb+"&el="+$L+"&len="+jf+"&of="+Hn+"&uga="+Co+"&vm="+lZ},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+fo+"&docid="+G+"&ei="+V+"&feature="+v+"&fexp="+YV+"&ns="+nZ+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
hb+"&el="+$L+"&len="+jf+"&of="+Hn+"&uga="+Co+"&vm="+lZ},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+V+"&m="+M3+"&oid="+Hn+"&plid="+d+"&pltype="+cU+"&ptchn="+Hn+"&ptk="+l+"&video_id="+G},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+fo+"&docid="+G+"&ei="+V+"&event="+du+"&feature="+v+"&fexp="+YV+"&ns="+nZ+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+hb},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
TF+"&ver=2&cmt=1."+oR+"&fmt="+oR+"&fs=0&rt="+Ko+"&euri&lact="+oR+"&cl="+fo+"&mos="+fZ+"&volume=100&cbrand="+NQ+"&cbr="+me+"&cbrver="+po+"&c=WEB&cver="+q+"&cplayer=UNIPLAYER&cos="+dU+"&cosver="+v5+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+Co+"&len="+ME+"&fexp="+ra+"&feature=g-high-rec&afmt="+oR+"&muted=0&conn=1&docid="+G+"&ei="+V+"&plid="+d+"&vm="+XJ(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
G+"&caps="+ZH+"&opi="+fo+"&xoaf="+fZ+"&hl="+nZ+"&ip="+po+"&ipbits="+fZ+"&expire="+Xf+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+po+"&key="+ZH+"&lang="+k,name:{simpleText:me},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+G+"&caps="+ZH+"&opi="+fo+"&xoaf="+fZ+"&hl="+nZ+"&ip="+po+"&ipbits="+fZ+"&expire="+Xf+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+po+"&key="+ZH+"&kind="+ZH+"&lang="+nZ,name:{simpleText:ET},
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:ET,title:H5,lengthSeconds:"1155",keywords:[TF,cU,NQ,NQ],channelId:ix,isOwnerViewing:!1,shortDescription:du,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+F4+"G&rs="+Nk,width:168,height:94},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+F4+
"G&rs="+Nk,width:196,height:110},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+F4+"G&rs="+O,width:246,height:138},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+F4+"G&rs="+O,width:336,height:188},{url:"https://i.ytimg.com/vi/"+G+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:v5,author:Pq,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:v5,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
Hn+"/featured_channel.jpg?v="+Fx,width:40,height:40}]},trackingParams:$i+"=",navigationEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"/channel/"+ix,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ix}},channelName:Pq,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:bP}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ix,showPreferences:!1,subscribedButtonText:{runs:[{text:rq}]},unsubscribedButtonText:{runs:[{text:xF}]},
trackingParams:$i+"=",unsubscribeButtonText:{runs:[{text:R2}]},serviceEndpoints:[{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ix],params:Fx}},{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:OT,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:$i+"=",dialogMessages:[{runs:[{text:H5},
{text:H5},{text:ET}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:me}]},serviceEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ix],params:Fx}},accessibility:{label:R2},trackingParams:$i+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:$F}]},accessibility:{label:lh},
trackingParams:$i+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:dU}},unsubscribeAccessibility:{accessibilityData:{label:dU}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:ME},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ix],
params:Fx}},unsubscribeCommand:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ix],params:Fx}},addToWatchLaterCommand:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:ET,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:ET}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+G+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+F4+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+G+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+ET,width:1280,
height:720},title:{simpleText:NQ},description:{simpleText:xF},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+xF,externalChannelId:ix,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:v5,category:"Travel & Events",publishDate:Mx,ownerChannelName:Pq,uploadDate:Mx}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Fx},trackingParams:$i+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:OT,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:$i+"="}}],headerText:{simpleText:dU},icon:{infoCardIconRenderer:{trackingParams:$i+"="}},closeButton:{infoCardIconRenderer:{trackingParams:$i+"="}},trackingParams:$i+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:$i+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+ET+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:B5,interpreterSafeUrl:(LY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+hh+".js",LY),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:du},{text:TF,bold:!0}]},endpoint:{clickTrackingParams:OT,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:$i+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:$F}]},actionButton:{buttonRenderer:{text:{runs:[{text:rq}]},navigationEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+G,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
G,target:"TARGET_NEW_WINDOW"}},trackingParams:$i+"="}},trackingParams:$i+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+LZ+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+LZ+"=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:v5,endMs:v5,title:{accessibility:{accessibilityData:{label:R2}},simpleText:bP},metadata:{simpleText:NQ},callToAction:{simpleText:$L},dismiss:{simpleText:NQ},endpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"/channel/"+ix,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ix}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:me}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ix,showPreferences:!1,
subscribedButtonText:{runs:[{text:Pq}]},unsubscribedButtonText:{runs:[{text:me}]},trackingParams:$i+"=",unsubscribeButtonText:{runs:[{text:me}]},serviceEndpoints:[{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ix],params:Fx}},{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:OT,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:$i+
"=",dialogMessages:[{runs:[{text:Fx},{text:cU},{text:lh}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dU}]},serviceEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ix],params:Fx}},accessibility:{label:me},trackingParams:$i+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:NQ}]},
accessibility:{label:bP},trackingParams:$i+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Fx}},unsubscribeAccessibility:{accessibilityData:{label:$F}}}},trackingParams:$i+"=",isSubscribe:!0,id:gC}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+F4+"G&rs="+O,width:168,height:94},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+F4+"G&rs="+Nk,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+F4+"G&rs="+O,width:246,height:138},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+F4+"G&rs="+O,width:336,height:188},{url:"https://i.ytimg.com/vi/"+G+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:v5,endMs:v5,title:{accessibility:{accessibilityData:{label:Pq}},simpleText:NQ},metadata:{simpleText:ET},endpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
ET,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:ET,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+hT+".googlevideo.com/videoplayback?source=youtube&oeis="+fZ+"&c=WEB&oad="+jf+"&ovd="+jf+"&oaad="+Ko+"&oavd="+Ko+"&ocs="+oR+"&oewis="+fZ+"&oputc="+fZ+"&ofpcc="+fZ+"&siu="+fZ+"&msp="+fZ+"&odepv="+fZ+
"&id=o-AF"+tk+"&ip="+po+"&initcwndbps="+v5+"&mt="+Xf+"&oweuc="+YV}}}}},trackingParams:$i+"=",id:gC,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:lh}},simpleText:R2},style:"DEFAULT"}}]}}],startMs:v5,trackingParams:$i+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:fZ,offsetEndMilliseconds:Ko},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fo+";dc_trk_cid="+fo+";dc_dbm_token="+e+";ord="+Xf+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";dc_rui="+fZ+";dc_exteid="+gC+";dc_av="+oR+";dc_sk="+fZ+";dc_ctype="+Co+";dc_ref=http://www.youtube.com/video/"+ET+";dc_pubid="+fZ+";dc_btype=23?gclid="+tT+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+fZ+"&ns="+fZ+"&event="+fZ+"&device="+fZ+"&content_v="+G+"&el="+$L+"&ei="+V+"&devicever="+q+"&bti="+v5+"&format="+K9+"&break_type="+fZ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+fZ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+po+"&slot_pos="+fZ+"&slot_len="+fZ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+yp+"&ad_len="+Ko+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
ET+"&aqi="+V+"&ad_rmp="+fZ+"&sli="+fZ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+
";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+K9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+v5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&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"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&ctype="+oR+"&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"+
R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_engaged_view&ctype="+oR+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+K9+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
fo+";dc_trk_cid="+fo+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";ord="+fo+";dc_rui="+fZ+";dc_exteid="+no+";dc_av="+fZ+";dc_sk="+fZ+";dc_ctype="+Co+";dc_pubid="+fZ+";dc_btype=3?gclid="+tT+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+f+"&sig="+I3+"&ad_cpn=[AD_CPN]&id="+me+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+me+"&dc_pubid="+fZ+"&dc_exteid="+gC+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+f+"&sig="+I3+"&ad_cpn=[AD_CPN]&id="+me+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+fZ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+me+"&avm="+fZ+"&dc_pubid="+fZ+"&dc_exteid="+
gC+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&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="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
f+"&sig="+I3+"&ad_cpn=[AD_CPN]&id="+me+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+fZ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+me+"&dc_pubid="+fZ+"&dc_exteid="+gC+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+K9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+K9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:OT,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+
oR+"&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/"+G+"/mqdefault.jpg",width:320,height:180}]},trackingParams:$i+"="},trackingParams:$i+
"=",templatedCountdown:{templatedAdText:{text:Fx,isTemplated:!0,trackingParams:$i+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:$L,isTemplated:!1,trackingParams:$i+"="},trackingParams:$i+"="}},trackingParams:$i+"=",skipOffsetMilliseconds:5E3}},trackingParams:$i+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:rq},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$i+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:cU,isTemplated:!1,trackingParams:$i+"="},trackingParams:$i+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:rq,isTemplated:!0,trackingParams:$i+"="}},trackingParams:$i+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:OT,openPopupAction:{popup:{aboutThisAdRenderer:{url:(lU.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+R2,lU),trackingParams:$i+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:$i+"="}},hoverText:{runs:[{text:dU}]},trackingParams:$i+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+QW+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:$i+"="},headline:{text:lh,isTemplated:!1,trackingParams:$i+"="},description:{text:bP,
trackingParams:$i+"="},actionButton:{buttonRenderer:{text:{simpleText:me},navigationEndpoint:{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fo+";dc_trk_cid="+fo+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";ord="+fo+";dc_rui="+fZ+";dc_exteid="+gC+";dc_av="+fZ+";dc_sk="+fZ+";dc_ctype="+Co+";dc_pubid="+fZ+";dc_btype=3?gclid="+tT+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$i+"="}},startMs:fZ,trackingParams:$i+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Pq},elementId:lh}},elementId:lh,trackingParams:$i+"=",legacyInfoCardVastExtension:H5,sodarExtensionData:{siub:Fx,bgub:R2,scs:me,bgp:dU},externalVideoId:ET,adLayoutLoggingData:{serializedAdServingDataEntry:cU},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+QW+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:$i+"="},
headline:{text:TF,isTemplated:!1,trackingParams:$i+"="},description:{text:TF,isTemplated:!1,trackingParams:$i+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:dU},navigationEndpoint:{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fo+";dc_trk_cid="+fo+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";ord="+fo+";dc_rui="+fZ+";dc_exteid="+
gC+";dc_av="+fZ+";dc_sk="+fZ+";dc_ctype="+Co+";dc_pubid="+fZ+";dc_btype=3?gclid="+tT+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+
fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$i+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:$i+"="}},navigationEndpoint:{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fo+";dc_trk_cid="+
fo+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";ord="+fo+";dc_rui="+fZ+";dc_exteid="+gC+";dc_av="+fZ+";dc_sk="+fZ+";dc_ctype="+Co+";dc_pubid="+fZ+";dc_btype=3?gclid="+tT+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+
H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$i+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:$i+"="},abandonCommands:{commands:[{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&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="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+
fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:OT,commandExecutorCommand:{commands:[{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:cU,isTemplated:!1,trackingParams:$i+
"="},trackingParams:$i+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:me},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+v5+";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="+fo+";dc_trk_cid="+fo+";ord="+Xf+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";dc_rui="+fZ+";dc_exteid="+gC+";dc_av="+oR+";dc_sk="+fZ+";dc_ctype="+Co+";dc_ref=http://www.youtube.com/video/"+ET+";dc_pubid="+fZ+";dc_btype=23?gclid="+tT+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+fZ+"&ns="+fZ+"&event="+fZ+"&device="+fZ+"&content_v="+G+"&el="+$L+"&ei="+V+"&devicever="+q+"&bti="+v5+"&format="+K9+"&break_type="+fZ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+fZ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+po+"&slot_pos="+fZ+"&slot_len="+fZ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
yp+"&ad_len="+Ko+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+ET+"&aqi="+V+"&ad_rmp="+fZ+"&sli="+fZ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+K9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+
z+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+v5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&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"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&ctype="+oR+"&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"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_engaged_view&ctype="+oR+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+K9+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+f+"&sig="+I3+"&ad_cpn=[AD_CPN]&id="+
me+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+me+"&dc_pubid="+fZ+"&dc_exteid="+gC+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+f+
"&sig="+I3+"&ad_cpn=[AD_CPN]&id="+me+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+fZ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+me+"&avm="+fZ+"&dc_pubid="+fZ+"&dc_exteid="+gC+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&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="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+f+"&sig="+I3+"&ad_cpn=[AD_CPN]&id="+me+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+fZ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+me+"&dc_pubid="+fZ+"&dc_exteid="+gC+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+K9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+K9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+
oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&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/"+G+"/mqdefault.jpg",width:320,height:180}]},trackingParams:$i+"="},trackingParams:$i+"=",templatedCountdown:{templatedAdText:{text:Fx,isTemplated:!0,trackingParams:$i+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:dU,isTemplated:!1,trackingParams:$i+"="},trackingParams:$i+"="}},
trackingParams:$i+"=",skipOffsetMilliseconds:5E3}},trackingParams:$i+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:$L},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$i+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:$F,isTemplated:!1,trackingParams:$i+"="},trackingParams:$i+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Fx,
isTemplated:!0,trackingParams:$i+"="}},trackingParams:$i+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:OT,openPopupAction:{popup:{aboutThisAdRenderer:{url:(I5.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+R2,I5),trackingParams:$i+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:$i+"="}},hoverText:{runs:[{text:cU}]},trackingParams:$i+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sb+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:$i+"="},headline:{text:lh,isTemplated:!1,trackingParams:$i+"="},description:{text:Pq,trackingParams:$i+"="},actionButton:{buttonRenderer:{text:{simpleText:NQ},navigationEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$i+"="}},startMs:fZ,trackingParams:$i+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:lh},elementId:xF}},elementId:cU,trackingParams:$i+"=",legacyInfoCardVastExtension:cU,sodarExtensionData:{siub:me,bgub:NQ,scs:me,bgp:$F},externalVideoId:ET,adLayoutLoggingData:{serializedAdServingDataEntry:Pq},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sb+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:$i+"="},headline:{text:H5,
isTemplated:!1,trackingParams:$i+"="},description:{text:du,isTemplated:!1,trackingParams:$i+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:H5},navigationEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$i+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:$i+"="}},navigationEndpoint:{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+
fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$i+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:$i+"="},abandonCommands:{commands:[{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&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="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+Co+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:OT,commandExecutorCommand:{commands:[{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:ET,isTemplated:!1,trackingParams:$i+"="},trackingParams:$i+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:lh},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+fZ+";dc_exteid="+gC+";met="+fZ+";ecn"+fZ+"="+fZ+";etm1="+fZ+";eid1="+
v5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:ET}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ko,offsetEndMilliseconds:K9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+Co+"&token=ALHj"+W+"&index="+fZ+"&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="+q+"&m_pos_ms="+Ko}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$F}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:K9,offsetEndMilliseconds:K9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+oR+"&token=ALHj"+W+"&index="+fZ+"&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="+
q+"&m_pos_ms="+K9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Fx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:K9,offsetEndMilliseconds:K9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+oR+"&token=ALHj"+W+"&index="+fZ+"&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="+
q+"&m_pos_ms="+K9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:H5}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:K9,offsetEndMilliseconds:K9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+oR+"&token=ALHj"+W+"&index="+fZ+"&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="+
q+"&m_pos_ms="+K9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$F}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:K9,offsetEndMilliseconds:Co},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+oR+"&token=ALHj"+W+"&index="+fZ+"&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="+
q+"&m_pos_ms="+K9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ET}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Co,offsetEndMilliseconds:Co},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+Co+"&token=ALHj"+W+"&index="+fZ+"&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="+
q+"&m_pos_ms="+Co}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xF}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:R2,isTemplated:!1,trackingParams:$i+"="},description:{text:me,isTemplated:!1,trackingParams:$i+"="},actionButton:{buttonRenderer:{text:{simpleText:dU},navigationEndpoint:{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
fo+";dc_trk_cid="+fo+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";ord="+fo+";dc_rui="+fZ+";dc_exteid="+gC+";dc_av="+fZ+";dc_sk="+fZ+";dc_ctype="+Co+";dc_pubid="+fZ+";dc_btype=3?gclid="+tT+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$i+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+QW+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:$i+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Rm+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:$i+"="},navigationEndpoint:{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fo+";dc_trk_cid="+fo+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";ord="+fo+
";dc_rui="+fZ+";dc_exteid="+gC+";dc_av="+fZ+";dc_sk="+fZ+";dc_ctype="+Co+";dc_pubid="+fZ+";dc_btype=3?gclid="+tT+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$i+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:OT,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ep.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+R2,Ep),trackingParams:$i+"="}},popupType:"DIALOG"}},trackingParams:$i+"="}},hoverText:{runs:[{text:xF}]},trackingParams:$i+"="}},adVideoId:ET,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Fx},associatedCompositePlayerBytesLayoutId:TF}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Fx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:me,isTemplated:!1,trackingParams:$i+"="},description:{text:Fx,isTemplated:!1,trackingParams:$i+"="},actionButton:{buttonRenderer:{text:{simpleText:me},navigationEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+
H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$i+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sb+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:$i+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+P2+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:$i+"="},navigationEndpoint:{clickTrackingParams:OT,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+
fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$i+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:OT,openPopupAction:{popup:{aboutThisAdRenderer:{url:(u$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+R2,u$),trackingParams:$i+"="}},popupType:"DIALOG"}},trackingParams:$i+"="}},
hoverText:{runs:[{text:cU}]},trackingParams:$i+"="}},adVideoId:ET,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+ET+"&cid="+z+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:cU},associatedCompositePlayerBytesLayoutId:TF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Pq,
isTemplated:!1,trackingParams:$i+"="},description:{text:TF,isTemplated:!1,trackingParams:$i+"="},actionButton:{buttonRenderer:{text:{simpleText:du},navigationEndpoint:{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fo+";dc_trk_cid="+fo+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";ord="+fo+";dc_rui="+fZ+";dc_exteid="+gC+";dc_av="+fZ+";dc_sk="+fZ+";dc_ctype="+
Co+";dc_pubid="+fZ+";dc_btype=3?gclid="+tT+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+
O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$i+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+QW+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:$i+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Rm+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:$i+
"="},navigationEndpoint:{clickTrackingParams:OT,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fo+";dc_trk_cid="+fo+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+fZ+";ord="+fo+";dc_rui="+fZ+";dc_exteid="+gC+";dc_av="+fZ+";dc_sk="+fZ+";dc_ctype="+Co+";dc_pubid="+fZ+";dc_btype=3?gclid="+tT+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+H+"AxAA&ase=2&num="+fZ+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+O+"&adurl="+wt+"&label=video_click_to_advertiser_site&ctype="+oR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$i+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:OT,openPopupAction:{popup:{aboutThisAdRenderer:{url:(EO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+R2,EO),trackingParams:$i+"="}},popupType:"DIALOG"}},trackingParams:$i+
"="}},hoverText:{runs:[{text:R2}]},trackingParams:$i+"="}},adVideoId:ET,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+H+"AxAA&sigh="+G+"&cid="+z+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:lh},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:TF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ET}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:hh,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:hh,command:{innertubeCommand:{clickTrackingParams:OT,ypcGetOfflineUpsellEndpoint:{params:ee}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:$i+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Xf,nanos:NE}}}},Uz=JSON.stringify(GP),q$=performance.now()-g;return{objectRepresentation:GP,jsonRepresentation:Uz,generationTime:q$}};
B7M=function(g,u){if(g===u)return!0;if(!g||!u||typeof g!==typeof u)return!1;if(g instanceof Array&&u instanceof Array){if(g.length!==u.length)return!1;for(var q=0;q<g.length;q++)if(!B7M(g[q],u[q]))return!1;return!0}if(typeof g==="object"&&typeof u==="object"&&g&&u){for(q in g)if(!(q in u&&B7M(g[q],u[q])))return!1;for(var Q in u)if(!(Q in g))return!1;return!0}return!1};
_.TN=function(){if(!Wc){Wc=new nH(new zCb);var g=_.S8("client_streamz_web_flush_count",-1);g!==-1&&(Wc.invocationLimit=g)}return Wc};
hD=function(g,u,q,Q){if(g===u)return!0;if(Array.isArray(g)&&Array.isArray(u)){if(g.length!==u.length)return!1;for(var L=0;L<g.length;L++)if(!hD(g[L],u[L],q,Q))return!1;return!0}if(g instanceof Set||u instanceof Set){if(g instanceof Set&&u instanceof Set){if(g.size!==u.size)return!1;Q=_.N(g.values());for(L=Q.next();!L.done;L=Q.next())if(!u.has(L.value))return!1;return!0}return!1}if(g instanceof Function){if(Q)return!0;g.name===""&&_.Zf(Error("Sf"),"ERROR");return!1}if(g instanceof Date&&u instanceof
Date)return g.getTime()===u.getTime();if(g instanceof Object&&u instanceof Object){if(n4Z(g)&&n4Z(u))try{return g.equals(u)}catch(y){_.Zf(Error("Tf`"+y),"ERROR")}L=Object.getOwnPropertyNames(g).filter(function(y){return q?g[y]!==void 0:!0});
var E=Object.getOwnPropertyNames(u).filter(function(y){return q?u[y]!==void 0:!0});
if(L.length!==E.length)return!1;L=_.N(L);for(E=L.next();!E.done;E=L.next())if(E=E.value,!hD(g[E],u[E],q,Q))return!1;return!0}return!1};
n4Z=function(g){g=Object.getPrototypeOf(g).equals;return g instanceof Function&&g.length===1};
_.o4J=function(){return _.D(function(g){if(g.nextAddress==1)return kbZ!==2?g.jumpTo(2):g.yield(SmF(),3);g.nextAddress!=2&&(kbZ=g.yieldResult);return g.return(kbZ)})};
_.usJ=function(){return _.D(function(g){if(g.nextAddress==1)return _.w("ab_pl_man")?UUM!==2?g.jumpTo(2):g.yield(grm(),3):g.return(1);g.nextAddress!=2&&(UUM=g.yieldResult);return g.return(UUM)})};
LF3=function(){return _.D(function(g){if(g.nextAddress==1)return _.w("ab_fk_sk_cl")?qyq!==2?g.jumpTo(2):g.yield(QdJ(),3):g.return(1);g.nextAddress!=2&&(qyq=g.yieldResult);return g.return(qyq)})};
_.NRk=function(){return _.D(function(g){if(g.nextAddress==1)return _.w("ab_det_apb_b")?ErT!==2?g.jumpTo(2):g.yield(P5h(),3):g.return(1);g.nextAddress!=2&&(ErT=g.yieldResult);return g.return(ErT)})};
vrJ=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield(Promise.all([_.o4J(),_.NRk(),_.usJ(),LF3()]),2);if(u.nextAddress!=3)return sdT()?u.return(!0):u.yield(_.yVZ(),3);g=u.yieldResult;return u.return(g===0)})};
sdT=function(){var g=!1,u=function(q,Q){D2S.increment(Q,q);q===0&&(g=!0)};
u(_.pwm(),"j.s_");u(kbZ,"f.i_");u(ErT,"a.b_");u(UUM,"p.m_");u(qyq,"i.f_");JVb===2&&(JVb=_.jdh(fGJ));u(JVb,"e.h_");_.w("ks_det_gpbl")||u(_.Mmm(),"p.i_");_.w("ks_get_o_pp")||u(_.tmF(),"g.o_");_.w("ab_deg_unex_thr")||u(_.eDM(),"a.o_");u(GV3,"s.t_");_.w("ab_det_sc_inj_enf")&&u(_.$2T(),"s.i_");u(RDq,"d.p_");u(_.wwJ(_.YZ),"o.p_");u(_.cVq()===0?0:_.HmJ(),"o.a_");return _.w("debug_sk_em_precheck")?!0:g};
Zmf=function(){var g=[].concat(_.na(AVM));try{var u=xUq();g.push({jsonRepresentation:u.jsonRepresentation,objectRepresentation:u.objectRepresentation})}catch(q){g=[].concat(_.na(AVM))}return g};
lGb=function(){var g=["adPlacements","adSlots"];try{return g.filter(function(){return!0}).length!==g.length?0:1}catch(u){return 0}};
_.tmF=function(){if(lGb()===0)return 0;var g=xUq(),u=g.objectRepresentation,q=(0,_.pH.unsafeClone)(u),Q=[];if(u&&typeof u==="object")for(var L in u)Q.push(L);else return 4;g=g.objectRepresentation.adPlacements;if(!(g&&g.length>0))return 4;try{if(!B7M(Q,Object.getOwnPropertyNames(u)))return 0}catch(E){return 0}return B7M(q,u)?1:0};
_.wwJ=function(g){if(!g||!g.length||typeof g==="string")return 0;for(var u=Object.getOwnPropertyNames(Object.prototype),q=0;q<g.length;q++)for(var Q=_.a7(g[q]),L=_.N(u),E=L.next();!E.done;E=L.next())if(Q===E.value)return 0;return 1};
IGb=function(g){var u=_.a7(g[1]);if(g[0]===null)return u;g=g[0];for(var q={},Q=0;Q<g.length;Q++){var L=_.a7(g[Q]);if(Q===0)q[L]=u;else{var E={};E[L]=q;q=E}}return q};
_.cVq=function(){for(var g=_.O3,u=0;u<g.length;u++){var q=IGb(g[u]),Q=[];Q.push(q);if(Q.length===0)return 0}return 1};
_.HmJ=function(){for(var g=_.O3,u={},q=0;q<g.length;u={mGz:void 0},q++){var Q=[IGb(g[q])];u.mGz=[];Q.forEach(function(L){return function(E){L.mGz[L.mGz.length]=E}}(u));
if(u.mGz.length===0)return 0}return 1};
_.pwm=function(){for(var g=_.N(Zmf()),u=g.next();!u.done;u=g.next()){var q=u.value;u=q.jsonRepresentation;q=q.objectRepresentation;try{var Q=JSON.parse(u);if(!hD(Q,q,!1,!1))return 0}catch(L){return 0}}return 1};
_.$2T=function(){try{var g=_.U_("ab_det_sc_inj_val");g.length===1&&g[0]===""&&(g=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var u=document.querySelectorAll("script"),q=_.N(u),Q=q.next();!Q.done;Q=q.next())for(var L=Q.value,E=_.N(g),y=E.next();!y.done;y=E.next()){var v=y.value;u=void 0;if((u=L.textContent)==null?0:u.includes(v))return 0}}catch(J){return 4}return 1};
_.yVZ=function(){var g,u,q,Q,L,E,y;return _.D(function(v){switch(v.nextAddress){case 1:_.b8(v,2),g=_.N(AVM),u=g.next();case 4:if(u.done)return v.return(1);Q=q=u.value;L=Q.jsonRepresentation;E=Q.objectRepresentation;return v.yield((new Response(L,{status:200})).json(),7);case 7:y=v.yieldResult;if(!hD(y,E,!1,!1))return v.return(0);u=g.next();v.jumpTo(4);break;case 2:return _.rt(v),v.return(4)}})};
_.eDM=function(){try{btoa("abc")}catch(g){return 0}return 1};
SmF=function(){var g,u,q,Q,L,E,y,v,J,f,t;return _.D(function(e){switch(e.nextAddress){case 1:_.b8(e,2),g=_.N(Zmf()),u=g.next();case 4:if(u.done)return e.return(1);Q=q=u.value;L=Q.jsonRepresentation;E=Q.objectRepresentation;y=btoa(L);v="data:application/json;base64,"+y;J=new Request(v);Object.defineProperty(J,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(J,"method",{get:function(){return"POST"}});
Object.defineProperty(J,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(J,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(J,"body",{get:function(){return new ReadableStream}});
return e.yield(fetch(J),7);case 7:return f=e.yieldResult,e.yield(f.json(),8);case 8:t=e.yieldResult;if(!hD(t,E,!1,!1))return e.return(0);u=g.next();e.jumpTo(4);break;case 2:return _.rt(e),e.return(4)}})};
_.jdh=function(g){if(!g||!g.length||typeof g==="string")return 0;for(var u=function(L){return _.a7(L)},q=2,Q=0;Q<g.length&&(q=_.imq(_.OGh(g[Q],u)),q!==0);Q++);
return q};
_.imq=function(g){var u=_.N(g);g=u.next().value;u=u.next().value;try{var q=document.createElement("div");document.body.appendChild(q);var Q=getComputedStyle(q).display;document.body.removeChild(q);if(Q==="none")return 4;var L=getComputedStyle(u).display==="none"?0:1;document.body.removeChild(g);return L}catch(E){return 4}};
QdJ=function(){var g,u,q;return _.D(function(Q){g=new _.KU;u=document.createElement("button");u.classList.add("ytp-ad-skip-button");u.style.opacity="0";u.style.height="0px";u.style.width="0px";u.style.padding="0px";u.style.border="none";q=function(){u.parentElement&&u.parentElement.removeChild(u)};
u.onclick=function(){g.resolve(0);q()};
document.body.appendChild(u);setTimeout(function(){q();g.resolve(1)},50);
return Q.return(g.promise)})};
grm=function(){var g,u,q,Q,L,E,y;return _.D(function(v){g=new _.KU;u=document.createElement("ytd-player");try{document.body.prepend(u)}catch(J){return v.return(4)}q=function(){u.parentElement&&u.parentElement.removeChild(u)};
u.getElementsByTagName("div").length>0?Q=u.getElementsByTagName("div")[0]:(Q=document.createElement("div"),u.appendChild(Q));L=document.createElement("div");Q.appendChild(L);E=document.createElement("video");y=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"});E.src=_.BT(_.o3(y));E.ontimeupdate=function(){q();g.resolve(0)};
L.appendChild(E);E.classList.add("html5-main-video");setTimeout(function(){L.classList.add("ad-interrupting")},200);
setTimeout(function(){q();g.resolve(1)},5E3);
return v.return(g.promise)})};
C5q=function(g){var u=xUq().objectRepresentation.playbackTracking;if(u){var q=[],Q;q.push(u==null?void 0:(Q=u.videostatsPlaybackUrl)==null?void 0:Q.baseUrl);var L;q.push(u==null?void 0:(L=u.videostatsDelayplayUrl)==null?void 0:L.baseUrl);var E;q.push(u==null?void 0:(E=u.videostatsWatchtimeUrl)==null?void 0:E.baseUrl);var y;q.push(u==null?void 0:(y=u.ptrackingUrl)==null?void 0:y.baseUrl);var v;q.push(u==null?void 0:(v=u.qoeUrl)==null?void 0:v.baseUrl);var J;q.push(u==null?void 0:(J=u.atrUrl)==null?
void 0:J.baseUrl);u=_.N(q);for(q=u.next();!q.done;q=u.next())if((q=q.value)&&g.test(q))return q.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
bmf=function(g,u){var q,Q;return _.D(function(L){switch(L.nextAddress){case 1:q=[],Q=0;case 2:if(!(Q<3)){L.jumpTo(4);break}return L.yield(fetch(g,{cache:"no-store",method:u}).then(function(E){q.push(E.status)}).catch(function(){q.push(-1)}),3);
case 3:Q++;L.jumpTo(2);break;case 4:return L.return(q)}})};
d2f=function(g){return g.domainLookupStart===0&&g.domainLookupEnd===0&&g.connectStart===0&&g.connectEnd===0||g.duration===0};
FF3=function(g,u,q){q=q===void 0?"GET":q;var Q,L,E,y,v,J,f,t,e,G;return _.D(function(R){if(R.nextAddress==1)return R.yield(Promise.all([bmf(g,q),bmf(u,q)]),2);Q=R.yieldResult;L=_.N(Q);E=L.next().value;y=L.next().value;v=E;J=y;if(Math.min.apply(Math,_.na(J))!==Math.max.apply(Math,_.na(J))||Math.min.apply(Math,_.na(v))!==Math.max.apply(Math,_.na(v)))return R.return(2);if(Math.min.apply(Math,_.na(J))===Math.min.apply(Math,_.na(v)))return R.return(1);t=(f=performance.getEntriesByName(g))==null?void 0:
f[0];G=(e=performance.getEntriesByName(u))==null?void 0:e[0];return t&&G?d2f(G)?R.return(1):d2f(t)?R.return(0):R.return(1):R.return(2)})};
P5h=function(){var g;return _.D(function(u){var q=[];var Q;var L,E,y;(L=Q=(L=xUq().objectRepresentation.streamingData)==null?void 0:(E=L.formats)==null?void 0:(y=E[0])==null?void 0:y.url)&&L&&!Q.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(L=L.replace("initcwndbps","ctier=L&initcwndbps"),L=L.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),Q={testUrl:L,baseUrl:Q,method:"GET"}):Q=void 0;Q&&q.push(Q);_.w("ab_net_tp_e")&&q.push({testUrl:_.Qq.location.origin+"/ad_companion",baseUrl:_.Qq.location.origin+
"/generate_204",method:"OPTIONS"});_.w("ab_fix_creator_view_cnt")&&(q.length=0,(Q=C5q(/api\/stats\/atr/))&&q.push({testUrl:_.Qq.location.origin+Q,baseUrl:_.Qq.location.origin+"/generate_204",method:"POST"}));_.w("ad_net_pb_pbp")&&(Q=C5q(/api\/stats\/qoe/))&&q.push({testUrl:_.Qq.location.origin+Q,baseUrl:_.Qq.location.origin+"/feed/download",method:"GET"});q=q.length!==0?q[Math.floor(Math.random()*q.length)]:void 0;return(g=q)?u.return(FF3(g.testUrl,g.baseUrl,g.method)):u.return(4)})};
_.Mmm=function(){if(_.Qq.hAr===void 0||_.Qq.hAr===null||typeof _.Qq.hAr!=="function")return 2;try{return _.Qq.hAr()===!0?0:1}catch(g){return 0}};
m23=function(g){switch(g){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.qE(g,"unknown result type")}};
_.aGk=function(g,u){var q=Number(_.FR("CATSTAT",0));if(u.rBn===void 0)return q;u=u.rBn;g=m23(g);return q&~(3<<u)|g<<u};
VmZ=function(g){var u,q;if((g=(u=g.auxiliaryUi)==null?void 0:(q=u.messageRenderers)==null?void 0:q.bkaEnforcementMessageViewModel)&&g.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return g};
rVb=function(){for(var g=_.N(Object.values(_.XwK)),u=g.next();!u.done;u=g.next())u=u.value,u.uF1&&u.rBn&&_.di("CATSTAT",_.aGk(2,u))};
_.zN=function(g,u){g=_.xZ("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",g);(u===void 0?0:u)?_.WFJ(g,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Bc().logFlowEvent(g,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
hDk=function(){if(!TRZ){if(Polymer.Base){var g=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{g.apply(this,arguments)}catch(e){_.a4(e)}};
var u=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{u.apply(this,arguments)}catch(e){_.a4(e)}};
var q=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{q.apply(this,arguments)}catch(e){_.a4(e)}};
var Q=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{Q.apply(this,arguments)}catch(e){_.a4(e)}};
var L=Polymer.Base._listen,E=new WeakMap;Polymer.Base._listen=function(e,G,R){var H=function(){try{R.apply(this,arguments)}catch(l){_.a4(l)}};
E.set(R,H);L.call(this,e,G,H)};
var y=Polymer.Base._unlisten;Polymer.Base._unlisten=function(e,G,R){y.call(this,e,G,E.get(R))}}if(Polymer.Async){var v=Polymer.Async,J=v._atEndOfMicrotask;
v._atEndOfMicrotask=function(){try{J.apply(v,arguments)}catch(e){_.a4(e)}}}if(Polymer.RenderStatus){var f=Polymer.RenderStatus,t=f.afterNextRender;
f.afterNextRender=function(e,G,R){t.call(f,e,function(){try{G.apply(this,arguments)}catch(H){_.a4(H)}},R)}}TRZ=!0}};
_.Omu=function(g){var u=g?_.YB(g):"";if(u){if(u.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(u.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(u.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(u.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(u.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.w("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(u.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";u=u.toLowerCase();if(u==="/")return"home";if(u==="/channel_memberships")return"channel-memberships-shopfront";if(u.indexOf("/feed/trending")===0)return"trending";if(u.indexOf("/feed/explore")===0)return"explore";if(u.indexOf("/live")===0)return"live";if(u.indexOf("/results")===0)return"search";if(u.indexOf("/sports")===0)return"sports";if(u.indexOf("/fashion")===0||u.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(u))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(u))return _.w("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(u.indexOf("/channel/")===0||u.indexOf("/user/")===0||u.indexOf("/gaming")===0||u.indexOf("/post/")===0)return"channel";if(Yy3(g))return"show";if(u==="/playlist"||u.indexOf("/playlist/")===0||u==="/view_play_list"||u.indexOf("/view_play_list/")===0||u.indexOf("/show/")===0)return"playlist";if(u==="/companion_canvas")return"companion-canvas";if(u==="/feed/history"||
u.indexOf("/feed/history/")===0)return"history";if(u==="/new")return"labs";if(u==="/feed/subscriptions")return"subscriptions";if(u.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(u==="/history_controls")return"standalone";if(u.indexOf("/account")===0||u==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(u.indexOf("/paid_memberships")===0||u.indexOf("/refund")===0||u.indexOf("/purchases")===0||u.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(u.indexOf("/product")===
0)return"yts-products";if(u.indexOf("/premium")===0||u.indexOf("/musicpremium")===0)return u.indexOf("/premium/offers")===0||u.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(u==="/cart/checkout"||u==="/cart")return"ypc-checkout";if(u.indexOf("/reporthistory")===0)return _.w("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(u.indexOf("/feed/downloads")===0||u.indexOf("/redeem")===0)return"browse";if(u.indexOf("/hashtag")===0)return"hashtag-landing-page";if(u.indexOf("/handle")===
0)return"handle";if(u.indexOf("/source")===0)return"audio-pivot";if(u.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(u.indexOf("/playables")===0)return"playables";if(u.indexOf("/create/live/join")===0)return"open-in-app";if(u.indexOf("/shorts")===0)return"shorts";if(u.indexOf("/feed/channels")===0)return"subscriptions-channels";var q=g?_.YB(g):"";q&&q.indexOf("/watch")===0&&_.w("web_watch_enable_learning_journey")?(g=_.Yv(g),g=!!g.list&&g.list.indexOf("LJPP")===0):g=!1;if(g)return"learning_journey_watch";
if(_.w("enable_new_page_subtypes_for_ai_companion")&&u==="/feed/courses")return"your-courses"}};
_.nU=function(g){var u,q;(g=(q=_.c(g==null?void 0:g.commandMetadata,_.S_))==null?void 0:q.url)&&(u=_.Omu(g));return u};
Yy3=function(g){var u=g?_.YB(g):"";if(!u)return!1;u=u.toLowerCase();return u.indexOf("/show/")===0||u.indexOf("/playlist")===0&&(g=_.Yv(g),g.list&&g.list.indexOf("EL")===0)?!0:!1};
o7=function(g){var u="unknown",q;var Q=((q=_.c(g==null?void 0:g.commandMetadata,_.S_))==null?void 0:q.webPageType)||"";Q?(q=Q.toLowerCase(),q.startsWith("web_page_type_")&&(q=q.slice(14))):q=Q;q&&KFq[q.toUpperCase()]?u=KFq[q.toUpperCase()]:_.c(g,_.kZ)||_.c(g,x2b)?u="browse":_.c(g,_.Sb)?u="search":_.c(g,_.l1)&&(u="watch");u==="watch"&&_.nU(g||null)==="learning_journey_watch"&&(u="learning_journey_watch");u==="unknown"&&_.Io(Error("Vf`"+JSON.stringify({clickTrackingParams:g==null?void 0:g.clickTrackingParams,
commandMetadata:g==null?void 0:g.commandMetadata,allEndpointKeys:Object.keys(g||[])})));return u};
_.U3=function(g){if(!_.BR3||g)_.BR3=_.qi();return _.BR3};
_.zDS=function(g){return!!_.c(g,_.l1)||!!_.c(g,_.g$)&&_.w("kevlar_enable_shorts_prefetch")};
_.nrm=function(g,u){g=_.c(g,_.l1)||_.c(g,_.g$);return"v"+g.videoId+(g.playlistId?"-pl"+g.playlistId:"")+(u?"-an1":"")+(g.params?"-pr"+g.params:"")};
_.kVf=function(g){var u=new ud(_.FR("ONE_PICK_URL",""));u.urlParamMap_.set("hostId",g);(g=_.FR("GAPI_LOCALE"))&&u.urlParamMap_.set("hl",g);(g=_.FR("SESSION_INDEX"))&&u.urlParamMap_.set("authuser",g);(g=_.FR("DELEGATED_SESSION_ID"))&&u.urlParamMap_.set("groupId",g);return u};
orq=function(){var g=_.Bk(),u=g.resolve(_.qR);g=g.resolve(_.QY);return new Syq(u,g)};
gDh=function(g){if(window.IntersectionObserver)return new U23(g,400);throw new TypeError("Xf");};
q$u=function(){var g=Hammer.TouchAction,u=g.prototype.preventDefaults;g.prototype.preventDefaults=function(q){var Q=this.actions.indexOf("pan-down")>-1;if(!Q)return u.call(this,q);if(!u8M){var L=q.srcEvent;q=q.direction;var E;if((E=this.manager)==null?0:E.session.prevented)L.preventDefault();else if(Q&&q&Hammer.DIRECTION_DOWN)return this.preventSrc(L)}}};
QC3=function(g){if(!g||g.size===0)return Hammer.DIRECTION_ALL;if(g.size===2){if(g.has("up")&&g.has("down"))return Hammer.DIRECTION_VERTICAL;if(g.has("right")&&g.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(g.size===1){if(g.has("up"))return Hammer.DIRECTION_UP;if(g.has("down"))return Hammer.DIRECTION_DOWN;if(g.has("right"))return Hammer.DIRECTION_RIGHT;if(g.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Ex=function(g,u,q){var Q=q&&q>0?q:0;q=Q?Date.now()+Q*1E3:0;if((Q=Q?_.L6.getLocalStorage():_.L6.getSessionStorage())&&window.JSON){typeof u!=="string"&&(u=JSON.stringify(u,void 0));try{Q.set(g,u,q)}catch(L){Q.remove(g)}}};
_.P9=function(g){var u=_.L6.getSessionStorage(),q=_.L6.getLocalStorage();if(!u&&!q||!window.JSON)return null;try{var Q=u.get(g)}catch(L){}if(typeof Q!=="string")try{Q=q.get(g)}catch(L){}if(typeof Q!=="string")return null;try{Q=JSON.parse(Q,void 0)}catch(L){}return Q};
_.yY=function(g){try{var u=_.L6.getSessionStorage(),q=_.L6.getLocalStorage();u&&u.remove(g);q&&q.remove(g)}catch(Q){}};
EDq=function(g){var u=LSk(),q;return _.D(function(Q){switch(Q.nextAddress){case 1:return _.b8(Q,2),Q.yield(g.match(u,{cacheName:"yt-appshell-assets"}),4);case 4:q=Q.yieldResult;_.Xx(Q,3);break;case 2:_.rt(Q);case 3:return Q.return(q)}})};
LSk=function(){var g=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?PBJ.registration.scope:NfT;g.endsWith("/")&&(g=g.slice(0,-1));return g+"/app_shell_home"};
sCf=function(g){g.map(function(u){return u.source}).join("|")};
_.yAk=function(g){return _.D(function(u){return u.return(EDq(g))})};
vDk=function(){var g=window.caches,u;return _.D(function(q){if(q.nextAddress==1)return q.yield(_.yAk(g),2);u=q.yieldResult;return q.return(!!u)})};
tEh=function(){_.D(function(g){if(g.nextAddress==1){if(D73)return g.jumpTo(0);D73=!0;if(_.w("enable_system_health_primes_monitoring"))return _.qu(p4T,3E4),JAb(),g.return();if(!(Math.random()<_.S8("web_system_health_fraction")))return g.jumpTo(0);jCf={heightPixels:screen.height,widthPixels:screen.width};v9&&!isNaN(v9.jsHeapSizeLimit)&&(jCf.memoryTotalKbytes=String(Math.round(v9.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(jCf.devicePixelRatio=window.devicePixelRatio);return g.yield(fyK(),4)}_.qu(p4T,
3E4);return g.yield(MEb(),0)})};
fyK=function(){return _.D(function(g){if(g.nextAddress==1)return Dq.intersectionObserverPresent="IntersectionObserver"in window,Dq.serviceWorkerPresent="serviceWorker"in navigator,Dq.webSharePresent="share"in navigator,Dq.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Dq.cacheStoragePresent="caches"in window,Dq.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Dq.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Dq.webkitTemporaryStoragePresent="webkitTemporaryStorage"in p6&&p6.webkitTemporaryStorage&&"queryUsageAndQuota"in p6.webkitTemporaryStorage,Dq.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",g.yield(Trb(),2);Dq.indexedDbPresent=g.yieldResult;Dq.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Dq.broadcastChannelPresent="BroadcastChannel"in window;Dq.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Dq.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Dq.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Wx(g)})};
p4T=function(){var g=9E4+Math.random()*2E3;_.nB()>g||(_.w("enable_system_health_primes_monitoring")?JAb():MEb())};
MEb=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield(e_b(),2);g=u.yieldResult;_.H6("systemHealthCaptured",g);_.Wx(u)})};
JAb=function(){var g={metric:{}},u=G7K();u.networkEvents.length&&(g.metric.networkEvents=$73(u));_.H6("systemHealthCaptured",g)};
e_b=function(){var g,u,q,Q,L,E,y,v,J,f;return _.D(function(t){switch(t.nextAddress){case 1:g={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)};u=window.screen;_.w("enable_is_extended_monitoring")&&u&&"isExtended"in u&&(g.isExtended=!!u.isExtended);q={metric:{staticContext:jCf,dynamicContext:g,webMetric:R_F,webApiSupport:Dq}};
if(Q=_.j_())q.csn=Q;v9&&(q.metric.webMetric.currentHeapKbytes=Math.round(v9.usedJSHeapSize/1E3));window.matchMedia&&(q.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,q.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,q.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in p6&&typeof p6.getBattery==="function")){t.jumpTo(2);break}return t.yield(p6.getBattery(),3);case 3:if(L=
t.yieldResult)q.metric.dynamicContext.chargingStatus=L.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(q.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Dq.storageEstimatePresent)return t.yield(navigator.storage.estimate(),8);if(!Dq.webkitTemporaryStoragePresent){t.jumpTo(5);break}return t.yield(w4q(),7);case 7:E=t.yieldResult;t.jumpTo(5);break;case 8:E=t.yieldResult;case 5:return q.metric.dynamicContext.deviceStorageQuotaMbytes=((y=E)==null?0:y.quota)?String(Math.round(E.quota/
1048576/10)*10):"-1",q.metric.dynamicContext.deviceStorageUsageMbytes=((v=E)==null?0:v.usage)?String(Math.round(E.usage/1048576/10)*10):"-1",J=q.metric.dynamicContext,t.yield(vDk(),9);case 9:return J.hasAppShell=t.yieldResult,f=G7K(),f.networkEvents.length&&(q.metric.networkEvents=$73(f)),t.return(q)}})};
w4q=function(){return new Promise(function(g){var u;Dq.webkitTemporaryStoragePresent&&(u=p6.webkitTemporaryStorage)!=null&&u.queryUsageAndQuota?p6.webkitTemporaryStorage.queryUsageAndQuota(function(q,Q){g({usage:q,quota:Q})}):g(void 0)})};
_.JR=function(g){g&=16777215;g=[(g&16711680)>>16,(g&65280)>>8,g&255];return hxb(g[0],g[1],g[2])};
_.jh=function(g){g=[(g&16711680)>>>16,(g&65280)>>>8,g&255,(g&4278190080)>>>24];if(!_.cAK(g,function(u){return u===(u&255)}))throw Error("Yf`"+g.join(","));
return"rgba("+g[0]+","+g[1]+","+g[2]+","+(g[3]/255).toFixed(3)+")"};
_.HyK=function(g){return[(g&16711680)>>>16,(g&65280)>>>8,g&255]};
_.AAJ=function(g){g=g.map(function(u){u/=255;return u<=.03928?u/12.92:Math.pow((u+.05)/1.05,2.4)});
return g[0]*.2126+g[1]*.7152+g[2]*.0722};
f6=function(g,u){g=_.HyK(g);return"rgba("+g[0]+", "+g[1]+", "+g[2]+", "+u+")"};
MR=function(g){return(g&4278190080)>>>24===0?f6(g,"1"):_.jh(g)};
_.ZyJ=function(){try{return!!self.localStorage}catch(g){return!1}};
CBJ=function(){if(lyu())_.Io(Error("Zf"));else{var g=document.createElement("iframe");g.style.display="none";var u=u===void 0?window.location.href:u;var q=_.A6(_.FR("PERSIST_IDENTITY_IFRAME_URL"));u=q?q:(new URL(u)).host.indexOf("studio")===0?_.A1(Iyb,"persist_identity"):_.A1(iy3,"persist_identity");_.Na(g,1,u);g.id="persist_identity";var Q;(Q=document.body)==null||Q.appendChild(g)}};
lyu=function(){var g=byS;g||(g=document.querySelector("#persist_identity"));return g};
d7h=function(){var g=!1;try{g=!!window.sessionStorage.getItem("session_logininfo")}catch(u){g=!0}return(_.FR("INNERTUBE_CLIENT_NAME")==="WEB"||_.FR("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&g};
FSu=function(g,u){if(!d7h())return!1;u||(u=_.FR("LOGIN_INFO"));return u?(g.session_logininfo=u,!0):!1};
ayS=function(g,u){g=g===void 0?!1:g;if((u===void 0||!u)&&m7m!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.mW("LOG_STICKINESS",!1)){u=_.j_();var q=_.JJ(),Q={identityStickinessData:{initialState:m7m}};u&&q&&_.CW(u,q,Q)}if(u=lyu())if(q=u.src?(new URL(u.src)).origin:"*",g){var L;(L=u.contentWindow)==null||L.postMessage({action:"clear"},q)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(g=window.sessionStorage.getItem("session_logininfo"))){var E;(E=u.contentWindow)==null||E.postMessage({loginInfo:g},q)}};
_.tR=function(g){g=g===void 0?!0:g;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.di("LOGIN_INFO",""),g&&window.sessionStorage.setItem("from_switch_account","1"),ayS(!0,g)}catch(u){}};
VEu=function(g){g&&(g.startsWith("https://accounts.google.com/AddSession")?_.tR():g.startsWith("https://accounts.google.com/ServiceLogin")?_.tR():g.startsWith("https://myaccount.google.com")&&_.X_(g).getPath().endsWith("/youtubeoptions")&&_.tR())};
eh=function(g,u){VEu(g);if(_.mW("LOGGED_IN",!0)&&d7h()){var q=h9u(g);q==null&&(q={});FSu(q,u)&&_.CV(g,q)}};
X4S=function(){function g(u){for(u=u.target;u&&u.nodeName!=="A";)if(u=u.parentNode,!(u&&u instanceof HTMLElement))return;if(u&&!u.hasAttribute("download")&&u.getAttribute("rel")!=="external"&&u.href)return u.href}
document.addEventListener("mousedown",function(u){u.button!==0&&(u=g(u))&&eh(u)});
document.addEventListener("click",function(u){(u=g(u))&&eh(u)})};
Tfm=function(){var g=new rAM;try{if(_.mW("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(v){g.increment(5,!1);return}if(_.FR("LOGIN_INFO")){var u=WSm?WSm:window.location;_.FR("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&CBJ();var q=h9u(u.href);q==null&&(q={});var Q=q.session_logininfo,L=Number(window.sessionStorage.getItem("stickiness_reload")),E=Q===_.FR("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
L>=2||E)L>=2?g.increment(2,E):E?g.increment(7,E):window.sessionStorage.getItem("session_logininfo")||(g.increment(3,E),m7m="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.FR("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.FR("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))g.increment(4,E),window.sessionStorage.removeItem("stickiness_reload");
else if(L<2){window.sessionStorage.setItem("stickiness_reload",String(L+1));var y=u.href;y=_.g6(y,"sttick");eh(y,window.sessionStorage.getItem("session_logininfo"));y=_.O_(y,{sttick:L});g.increment(L,E);_.maK(u,y)}}else g.increment(6,!1)}else _.tR(!1)}catch(v){}};
_.Gr=function(g,u,q,Q,L){u=u===void 0?{}:u;q=q===void 0?"":q;Q=Q===void 0?window:Q;g=_.Sg(g,u);eh(g);q=_.SO(g+q,L);_.maK(Q.location,q)};
h_h=function(g){if(g.urlEndpoint){if(g=_.Yv(g.urlEndpoint.url),g.adurl)return zW(g.adurl)}else if(g.watchEndpoint)return"//www.youtube.com/watch?v="+g.watchEndpoint.videoId;return null};
Y$m=function(g){if(!g||!g.reportingPings)return null;var u={};g.reportingPings.forEach(function(q){q.pingType in u?u[q.pingType].push(q.url):u[q.pingType]=[q.url]});
return{adpings:jpT(u)}};
_.RE=function(g){g=g===void 0?!1:g;var u=_.qf(),q="USER_INTERFACE_THEME_LIGHT";u.getFlag(165)?q="USER_INTERFACE_THEME_DARK":u.getFlag(174)?q="USER_INTERFACE_THEME_LIGHT":_.$_()&&(q="USER_INTERFACE_THEME_DARK");return g?q:OyS()||q};
_.KSk=function(){return!_.w("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.$_=function(){return _.KSk()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.w$=function(){var g=_.qf();return _.KSk()&&!g.getFlag(165)&&!g.getFlag(174)};
OyS=function(){var g=g===void 0?window.location.href:g;if(_.w("kevlar_disable_theme_param"))return null;var u=_.YB(g);if(_.x7Z(u))return"USER_INTERFACE_THEME_DARK";try{var q=_.Yv(g).theme;return Bfu.get(q)||null}catch(Q){}return null};
_.x7Z=function(g){return _.w("enable_dark_theme_only_on_shorts")?!(g==null||!g.startsWith("/shorts/")):!1};
_.AR=function(g,u,q,Q,L){u=u===void 0?!1:u;q=q===void 0?!1:q;var E=_.FR("INNERTUBE_CONTEXT");if(!E)return _.Zf(Error("cg")),{};E=(0,_.pH.unsafeClone)(E);_.w("web_no_tracking_params_in_shell_killswitch")||delete E.clickTracking;E.client||(E.client={});var y=E.client;y.clientName==="MWEB"&&y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(y.clientFormFactor=_.FR("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");y.screenWidthPoints=window.innerWidth;y.screenHeightPoints=window.innerHeight;y.screenPixelDensity=
Math.round(window.devicePixelRatio||1);y.screenDensityFloat=window.devicePixelRatio||1;y.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());y.userInterfaceTheme=_.RE();if(!u){var v=_.vZF();v&&(y.connectionType=v);_.w("web_log_effective_connection_type")&&(v=pcq())&&(E.client.effectiveConnectionType=v)}var J;if(_.w("web_log_memory_total_kbytes")&&((J=_.Qq.navigator)==null?0:J.deviceMemory)){var f;J=(f=_.Qq.navigator)==null?void 0:f.deviceMemory;E.client.memoryTotalKbytes=""+J*1E6}u&&Q&&!_.w("web_it_context_set_original_url_ks")&&
(y.originalUrl=z_Z(_.Qq.location.href,Q).toString());_.w("web_gcf_hashes_innertube")&&(v=R5q())&&(f=v.coldConfigData,J=v.coldHashData,v=v.hotHashData,E.client.configInfo=E.client.configInfo||{},f&&(E.client.configInfo.coldConfigData=f),J&&(E.client.configInfo.coldHashData=J),v&&(E.client.configInfo.hotHashData=v));f=_.Yv(_.Qq.location.href);!_.w("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(y.internalGeo=f.internalcountrycode);!_.w("web_populate_client_screen_killswitch")&&L&&(y.clientScreen=
L);y.clientName==="MWEB"||y.clientName==="WEB"?(y.mainAppWebInfo||(y.mainAppWebInfo={}),y.mainAppWebInfo.graftUrl=Q||_.Qq.location.href,_.w("kevlar_woffle")&&_.c9.instance&&(Q=_.c9.instance,y.mainAppWebInfo.pwaInstallabilityStatus=!Q.appInstalledEventFired&&Q.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),y.mainAppWebInfo.webDisplayMode=JRk(),y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):y.clientName==="TVHTML5"&&
(!_.w("web_lr_app_quality_killswitch")&&(Q=_.FR("LIVING_ROOM_APP_QUALITY"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{appQuality:Q})),Q=_.FR("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{certificationScope:Q}));!_.w("web_populate_time_zone_itc_killswitch")&&(Q=s7q())&&(y.timeZone=Q);(Q=l0f())?y.experimentsToken=Q:delete y.experimentsToken;y=iWJ();Q=_.nDq();Q=(0,_.pH.getValues)(Q.tokenJars);E.request=Object.assign({},E.request,{internalExperimentFlags:y,consistencyTokenJars:Q});
!_.w("web_prequest_context_killswitch")&&(y=_.FR("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(E.request.externalPrequestContext=y);Q=_.qf();y=Q.getFlag(58);Q=Q.get("gsml","");E.user=Object.assign({},E.user);y&&(E.user.enableSafetyMode=y);Q&&(E.user.lockedSafetyMode=!0);_.w("warm_op_csn_cleanup")?q&&(u=_.j_())&&(E.clientScreenNonce=u):!u&&(u=_.j_())&&(E.clientScreenNonce=u);g&&(E.clickTracking={clickTrackingParams:g});if(g=_.ri("yt.mdx.remote.remoteClient_"))E.remoteClient=g;_.H9.getInstance().setLocationOnInnerTubeContext(E);
try{var t=W7K(),e=t.bid;delete t.bid;E.adSignalsInfo={params:[],bid:e};for(var G=_.N(Object.entries(t)),R=G.next();!R.done;R=G.next()){var H=_.N(R.value),l=H.next().value,d=H.next().value;t=l;e=d;g=void 0;(g=E.adSignalsInfo.params)==null||g.push({key:t,value:""+e})}var F,V;if(((F=E.client)==null?void 0:F.clientName)==="TVHTML5"||((V=E.client)==null?void 0:V.clientName)==="TVHTML5_UNPLUGGED"){var z=_.FR("INNERTUBE_CONTEXT");z.adSignalsInfo&&(E.adSignalsInfo.advertisingId=z.adSignalsInfo.advertisingId,
E.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",E.adSignalsInfo.limitAdTracking=z.adSignalsInfo.limitAdTracking)}}catch(O){_.Zf(O)}return E};
_.Zq=function(){return{isShellLoad:_.mW("IS_SHELL_LOAD",!1)}};
S$f=function(){navigator.serviceWorker.getRegistrations().then(function(g){g.forEach(k7q)})};
k7q=function(g){g&&_.oDM(U7J,g.scope)};
_.oDM=function(g,u){u={scope:u||_.o4("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.WT(g),u)};
ld=function(g,u,q,Q){if(u&&u.serializedYpcCujLoggingParams){if(q){var L={};L.transactionErrorType=q;Q&&(L.errorMessage=Q);u.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:L}}}q={};q.ypcCujContext=u;g=_.xZ("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",g,q);_.Bc().logFlowEvent(g,"FLOW_TYPE_YPC_ACQUISITION")}};
_.gzF=function(g,u,q,Q){var L={};L.serializedTransactionFlowLoggingParams=u;q&&(L.errorType=q);Q&&(L.errorMessage=Q);_.H6(g,L);_.A_()};
_.udS=function(g){g&&_.gzF("transactionFlowStarted",g)};
_.qJu=function(g){g&&_.gzF("transactionFlowCancelled",g)};
_.IE=function(g,u,q){u&&_.gzF("transactionFlowFailed",u,g,q)};
QkM=function(g){var u=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");u&&(u.inert=g)};
_.id=function(){this.megabloxUrl_=null};
_.C6=function(g){try{var u=LMb==null?void 0:LMb.composedPath(g)}catch(q){u=g.composedPath?g.composedPath():[]}return u&&u.length>0?u:g.composedPath?g.composedPath():[]};
_.bd=function(g){return _.C6(g)[0]};
d$=function(g){return g instanceof ShadowRoot?ShadowRoot:g instanceof DocumentFragment?DocumentFragment:g instanceof Document?Document:HTMLElement};
EzT=function(g){if(g instanceof Element)return Element.prototype;if(g instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("gg`"+g);};
P3k=function(g,u){return _.w("sunnydom_native_scoped_query_selectors")?EzT(g).querySelector.call(g,u):d$(g).prototype.querySelector.call(g,u)};
NbM=function(g,u){return _.w("sunnydom_native_scoped_query_selectors")?EzT(g).querySelectorAll.call(g,u):d$(g).prototype.querySelectorAll.call(g,u)};
skb=function(g){var u,q,Q;return(Q=(q=(u=g.parentElement)!=null?u:g.__shady_native_parentElement)!=null?q:g.__shady_parentElement)!=null?Q:null};
ywJ=function(g){var u,q,Q;return(Q=(q=(u=g.parentNode)!=null?u:g.__shady_native_parentNode)!=null?q:g.__shady_parentNode)!=null?Q:null};
vzh=function(g){var u,q,Q;return(Q=(q=(u=g.nextSibling)!=null?u:g.__shady_native_nextSibling)!=null?q:g.__shady_nextSibling)!=null?Q:null};
Dbq=function(g){var u,q,Q;return(Q=(q=(u=g.previousSibling)!=null?u:g.__shady_native_previousSibling)!=null?q:g.__shady_previousSibling)!=null?Q:null};
pVF=function(g){var u,q,Q;return(Q=(q=(u=g.nextElementSibling)!=null?u:g.__shady_native_nextElementSibling)!=null?q:g.__shady_nextElementSibling)!=null?Q:null};
Jw3=function(g){var u,q,Q;return(Q=(q=(u=g.previousElementSibling)!=null?u:g.__shady_native_previousElementSibling)!=null?q:g.__shady_previousElementSibling)!=null?Q:null};
jkf=function(g){var u,q,Q;return new Set([].concat(_.na((u=g.children)!=null?u:[]),_.na((q=g.__shady_native_children)!=null?q:[]),_.na((Q=g.__shady_children)!=null?Q:[])))};
fIZ=function(g){var u,q,Q;return new Set([].concat(_.na((u=g.childNodes)!=null?u:[]),_.na((q=g.__shady_native_childNodes)!=null?q:[]),_.na((Q=g.__shady_childNodes)!=null?Q:[])))};
_.FT=function(g){if(!(g instanceof Element))return null;g=g.classList?Array.from(g.classList):void 0;if(!g)return null;var u=g.indexOf("style-scope");return u>-1&&u+1<g.length?g[u+1]:null};
mC=function(g){if(!(g instanceof HTMLElement))return null;var u=g&&(g.$$||g.polymerController)?g.tagName.toLowerCase():null;return u?u:_.FT(g)};
MGJ=function(g,u){return _.w("sunnydom_native_scoped_query_selectors")?g+".style-scope."+u:g.replace(/[^a-z]*[^\s]+/g,function(q){return q+".style-scope."+u})};
tGZ=function(g,u){return u?g.split(",").map(function(q){return MGJ(q.trim(),u)}).join(", "):g};
_.aE=function(g){var u,q,Q,L;return(L=(Q=(q=(u=g.root)!=null?u:g.shadowRoot)!=null?q:g.__shady_native_shadowRoot)!=null?Q:g.__shady_shadowRoot)!=null?L:g};
e4b=function(g){var u,q,Q;return(Q=(q=(u=g.__shady_parentNode)!=null?u:g.__shady_native_parentNode)!=null?q:g.parentNode)!=null?Q:null};
GJ3=function(g){var u,q;return(q=(u=ywJ(g))!=null?u:g.host)!=null?q:null};
$bS=function(g){for(;g&&!(g instanceof HTMLElement);)g=GJ3(g);return g};
R43=function(g){var u=$bS(g);return g===u?_.FT(g):u?mC(u):null};
wVS=function(g){return(g=$bS(g))?mC(g):null};
cwS=function(g){if(g instanceof Comment)return!1;if(g instanceof Text){var u,q;if(((q=(u=g.textContent)==null?void 0:u.trim())!=null?q:"")==="")return!1}return!0};
VY=function(g,u,q){var Q=u(g);for(q=q===void 0?wVS(g):q;Q&&(R43(Q)!==q||!cwS(Q));)g=Q,Q=u(g);return Q};
HbJ=function(g,u,q){if(!u)return null;g=wVS(g);return R43(u)===g&&cwS(u)?u:VY(u,q,g)};
AwK=function(g){return VY(g,e4b,_.FT(g))};
Zbf=function(g){return VY(g,pVF)};
lIM=function(g){return VY(g,vzh)};
IIM=function(g){return VY(g,Jw3)};
ibK=function(g){return VY(g,Dbq)};
C3q=function(g){return HbJ(g,g.firstChild||null,vzh)};
bbS=function(g){var u,q,Q;var L=(Q=(q=(u=g.firstElementChild)!=null?u:g.__shady_native_firstElementChild)!=null?q:g.__shady_firstElementChild)!=null?Q:null;return HbJ(g,L,pVF)};
dbJ=function(g){var u,q,Q;var L=(Q=(q=(u=g.lastChild)!=null?u:g.__shady_native_lastChild)!=null?q:g.__shady_lastChild)!=null?Q:null;return HbJ(g,L,Dbq)};
FMb=function(g){var u,q,Q;var L=(Q=(q=(u=g.lastElementChild)!=null?u:g.__shady_native_lastElementChild)!=null?q:g.__shady_lastElementChild)!=null?Q:null;return HbJ(g,L,Jw3)};
mbF=function(g){var u=wVS(g);return Array.from(fIZ(g)).filter(function(q){return R43(q)===u})};
aIS=function(g){var u=mC(g);return Array.from(jkf(g)).filter(function(q){return _.FT(q)===u})};
VGf=function(g){if(!g)return null;var u=_.FT(g);if(!u){var q;return(q=Node.prototype.getRootNode)==null?void 0:q.call(g)}u=u.toUpperCase();for(g=skb(g);g&&g.tagName!==u;)g=skb(g);return g?_.aE(g):null};
_.XT=function(g,u,q){if(g instanceof HTMLElement&&_.FT(g)===q){var Q=Array.from(g.classList).indexOf("style-scope");if(Q===-1)g.classList.add("style-scope"),g.classList.add(u);else if(!(Q+1>=g.classList.length)){Q=g.classList[Q+1];var L,E;g==null||(L=g.classList)==null||(E=L.replace)==null||E.call(L,Q,u)}}if(g instanceof HTMLElement||g instanceof DocumentFragment)for(L=_.N(jkf(g)),E=L.next();!E.done;E=L.next())_.XT(E.value,u,q);return g};
r$=function(g,u){if(g instanceof HTMLElement&&_.FT(g)===u){var q=Array.from(g.classList).indexOf("style-scope");q===-1||q+1>=g.classList.length||g.classList.remove("style-scope",g.classList[q+1])}if(g instanceof HTMLElement||g instanceof DocumentFragment){q=_.N(g.children);for(var Q=q.next();!Q.done;Q=q.next())r$(Q.value,u)}return g};
_.XVk=function(g,u){return d$(g).prototype.appendChild.call(g,u)};
rwm=function(g,u){if(g===u)return!0;g=fIZ(g);return Array.from(g).some(function(q){return rwm(q,u)})};
_.Tr=function(g,u){if(g instanceof W9)return g;(u==null?0:u.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(g,"ownerDocument")&&Object.defineProperty(g,"ownerDocument",{get:function(){return window.document}});
return new W9(g)};
Tb3=function(){var g=W9.prototype,u=[].concat(_.na(WMS?[]:["getRootNode"]),["setAttribute","removeAttribute"]);u=_.N(u);for(var q=u.next(),Q={};!q.done;Q={method$jscomp$53:void 0},q=u.next())Q.method$jscomp$53=q.value,g[Q.method$jscomp$53]=function(L){return function(){return this.host[L.method$jscomp$53].apply(this.host,arguments)}}(Q)};
YJM=function(){var g=W9.prototype,u=[].concat(_.na(WMS?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.na(h4q?[]:["querySelector","querySelectorAll"]));u=_.N(u);for(var q=u.next(),Q={};!q.done;Q={method$jscomp$54:void 0},q=u.next())Q.method$jscomp$54=q.value,g[Q.method$jscomp$54]=function(L){return function(){return this.root[L.method$jscomp$54].apply(this.root,arguments)}}(Q)};
xbq=function(){var g=W9.prototype,u=[].concat(_.na(Obk?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.na(KMb?[]:["parentNode"]));u=_.N(u);for(var q=u.next(),Q={};!q.done;Q={prop$jscomp$67:void 0},q=u.next())Q.prop$jscomp$67=q.value,Object.defineProperty(g,Q.prop$jscomp$67,{get:function(L){return function(){return this.host[L.prop$jscomp$67]}}(Q),
configurable:!0})};
nzM=function(){var g=W9.prototype,u=["activeElement"].concat(_.na(Obk?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.na(Bbf?[]:["children"]),_.na(z4b?[]:["lastChild"]));u=_.N(u);for(var q=u.next(),Q={};!q.done;Q={prop$jscomp$68:void 0},q=u.next())Q.prop$jscomp$68=q.value,Object.defineProperty(g,Q.prop$jscomp$68,{get:function(L){return function(){return this.root[L.prop$jscomp$68]}}(Q),
configurable:!0})};
kJ3=function(){for(var g=W9.prototype,u=_.N(["innerHTML","textContent"]),q=u.next(),Q={};!q.done;Q={prop$jscomp$69:void 0},q=u.next())Q.prop$jscomp$69=q.value,Object.defineProperty(g,Q.prop$jscomp$69,{get:function(L){return function(){return this.root[L.prop$jscomp$69]}}(Q),
set:function(L){return function(E){this.root[L.prop$jscomp$69]=E}}(Q),
configurable:!0})};
SJS=function(g){var u=W9.prototype;g=_.N(Object.entries(g));for(var q=g.next(),Q={};!q.done;Q={fn$jscomp$401:void 0},q=g.next()){var L=_.N(q.value);q=L.next().value;L=L.next().value;Q.fn$jscomp$401=L;u[q]=function(E){return function(){return E.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.na(arguments)))}}(Q)}};
UbJ=function(){for(var g=W9.prototype,u=_.N(Object.entries(ozF)),q=u.next(),Q={};!q.done;Q={fn$jscomp$402:void 0},q=u.next()){var L=_.N(q.value);q=L.next().value;L=L.next().value;Q.fn$jscomp$402=L;Object.defineProperty(g,q,{get:function(E){return function(){return E.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.na(arguments)))}}(Q),
configurable:!0})}};
_.hR=function(g){return g instanceof gdZ||g instanceof Document?g:new gdZ(g)};
u2S=function(){for(var g=gdZ.prototype,u=_.N("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),q=u.next(),Q={};!q.done;Q={method$jscomp$55:void 0},q=u.next())Q.method$jscomp$55=q.value,g[Q.method$jscomp$55]=function(L){return function(){return HTMLElement.prototype[L.method$jscomp$55].call.apply(HTMLElement.prototype[L.method$jscomp$55],[this.node].concat(_.na(arguments)))}}(Q)};
qSb=function(){for(var g=gdZ.prototype,u=_.N("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),q=u.next(),Q={};!q.done;Q={prop$jscomp$70:void 0},q=u.next())Q.prop$jscomp$70=q.value,Object.defineProperty(g,Q.prop$jscomp$70,{get:function(L){return function(){var E;return(E=this.node["__shady_native_"+L.prop$jscomp$70])!=null?E:this.node[L.prop$jscomp$70]}}(Q),
configurable:!0})};
_.Y_=function(g,u,q){q===void 0&&(q=!g.classList.contains(u));q?g.classList.add(u):g.classList.remove(u)};
_.Ox=function(g,u,q){q===void 0&&(q=!g.hasAttribute(u));if(u==="class")throw Error("hg");q?_.hR(g).setAttribute(u,""):_.hR(g).removeAttribute(u)};
QvT=function(g){return(g.localName!=="slot"?[]:(0,_.K6)(g).assignedNodes({flatten:!0})).filter(function(u){return u.nodeType===Node.ELEMENT_NODE})};
_.LDS=function(g){return(g=_.Tr(g).querySelector("slot"))&&g.localName==="slot"?QvT(g):[]};
_.x_=function(g,u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(g,u)};
B9=function(g,u){var q=u.bind(g);return function(Q){q(Q,Q.detail)}};
_.zr=function(g,u){var q=EdT.get(g);q||(q=new WeakMap,EdT.set(g,q));if(q.has(u))return q.get(u);if(_.w("web_fi_listen_disable_bound_fn_helper")){var Q=u.bind(g);g=function(L){Q(L,L==null?void 0:L.detail)}}else g=B9(g,u);
q.set(u,g);return g};
svu=function(g,u){Pik(g);g.created[NWf].push(u)};
Pik=function(g){if(!g.created||!g.created[NWf]){var u=g.created,q=u?[u]:[];g.created=function(){for(var Q=_.N(q),L=Q.next();!L.done;L=Q.next())L.value.apply(this)};
g.created[NWf]=q}};
yKm=function(g){return function(){var u=_.UT.apply(0,arguments);return function(q,Q,L){g.apply(null,_.na(u))(q,Q,L)}}};
vdM=function(){return function(){var g=_.UT.apply(0,arguments);return function(u,q,Q){bNK.apply(null,_.na(g))(u,q,Q)}}};
_.I=function(g){return vdM()(g)};
_.C=function(){return yKm(aXm).apply(null,_.na(_.UT.apply(0,arguments)))};
_.n6=function(g){return _.w("pbcm_fi_listen_decorators")?Dou(g):yKm(FbM)(g)};
Dou=function(g){return function(u,q){svu(u,function(){var Q=this[q],L=_.w("web_fi_listen_disable_bound_fn_helper")?function(E){Q(E,E.detail)}.bind(this):B9(this,Q);
pEm.has(g)?ZF(this.hostElement,g,L):this.hostElement.addEventListener(g,L)})}};
_.k_=function(){return yKm(mHk).apply(null,_.na(_.UT.apply(0,arguments)))};
_.a=function(g){g=g===void 0?{}:g;return yKm(dHq)(g)};
_.Sh=function(g){if(g.hostElement&&g!==g.hostElement){var u=_.Eg(g.hostElement);u=g.renderIdom?u:u.shadowRoot}u||(g=g.root,u=g instanceof Node?_.Eg(g):null);return u};
_.oE=function(g){return JKq?jvF(g):function(u,q){Object.defineProperty(u,q,{get:function(){var Q;return(Q=_.Sh(this))==null?void 0:Q.querySelector(g)},
enumerable:!0,configurable:!0})}};
jvF=function(g){return function(u,q){Object.defineProperty(u,q,{get:function(){var Q,L=(Q=_.Tr(this.hostElement))==null?void 0:Q.querySelector(g);if(L)return L;var E;return(E=_.Sh(this))==null?void 0:E.querySelector(g)},
enumerable:!0,configurable:!0})}};
_.Ux=function(g){return JKq?ftS(g):function(u,q){Object.defineProperty(u,q,{get:function(){var Q;return(Q=_.Sh(this))==null?void 0:Q.querySelectorAll(g)},
enumerable:!0,configurable:!0})}};
ftS=function(g){return function(u,q){Object.defineProperty(u,q,{get:function(){var Q,L=(Q=_.Tr(this.hostElement))==null?void 0:Q.querySelectorAll(g);if(L==null?0:L.length)return L;var E;return(E=_.Sh(this))==null?void 0:E.querySelectorAll(g)},
enumerable:!0,configurable:!0})}};
Mcm=function(g){return function(u){if(![_.nf,_.X].includes(Object.getPrototypeOf(u.prototype).constructor))throw Error("ig");cyS(Object.assign({},typeof g!=="string"?g:{is:g,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(u)}};
_.uU=function(){var g=g===void 0?{}:g;return function(u){if(![kt,_.gO].includes(Object.getPrototypeOf(u.prototype).constructor))throw Error("jg");HNS(Object.assign({},g,{disableInheritanceCheck:!0}))(u)}};
ewZ=function(g,u){tcT[g]!=null||(tcT[g]=new Set);tcT[g].add(u)};
_.qm=function(){var g=_.k_.apply(null,_.na(_.UT.apply(0,arguments)));return function(u,q){ewZ(u.is,q);g(u,q)}};
Ei=function(g,u,q){if(Qs(g)&&!G_q.has(u)){u=u.replace(/^JSC\$[\d]+_/,"");u=u.replace(/\.\d+(\.|$)/g,function(E,y){return".#"+y});
LE[g]!=null||(LE[g]={});var Q,L;(Q=LE[g])[L=u]!=null||(Q[L]=new Set);LE[g][u].has(q)||(LE[g][u].add(q),_.H6("polymerPropertyAccessEvent",{componentName:g,propertyName:u,accessType:q}))}};
$oZ=function(){return _.w("polymer_property_access_logging_debug")||_.w("polymer_enable_property_access_logging")};
Qs=function(g){if(_.w("polymer_property_access_logging_debug"))return!0;if(!_.w("polymer_enable_property_access_logging"))return!1;Rw3||(Rw3=Date.now());return(ww(g)+Rw3)%100<_.S8("polymer_property_access_logging_percent")};
wEF=function(g,u){return Qs(u)&&g.hostElement.loggingStatus?new Proxy(g,{get:function(q,Q,L){if(q.hostElement.loggingStatus.bypassProxyController)return q[Q];q.hostElement.loggingStatus.isExternalGet=!0;var E=q[Q];q.hostElement.loggingStatus.isExternalGet=!1;if(E instanceof Function)return function(){var y=_.UT.apply(0,arguments);try{return q.hostElement.loggingStatus.currentExternalCall=Q,Ei(u,Q,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),E.apply(this===L?q:this,y)}finally{q.hostElement.loggingStatus.currentExternalCall=
void 0}};
Ei(u,Q,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return E},
set:function(q,Q,L){if(q.hostElement.loggingStatus.bypassProxyController)return q[Q]=L,!0;q.hostElement.loggingStatus.isRendererStamper?Ei(u,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):q.hostElement.loggingStatus.isDeclarativeExternal||Ei(u,Q,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{q.hostElement.loggingStatus.currentExternalSet=Q,q[Q]=L}finally{q.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):g};
cKF=function(g,u){g&&g.loggingStatus&&!g.loggingStatus.isDeclarativeExternal&&!g.loggingStatus.isExternalGet&&g.loggingStatus.currentExternalSet!==u&&Ei(g.tagName.toLowerCase(),u,"PROPERTY_ACCESS_GET_INTERNAL")};
P$=function(g,u,q){g&&(q||g.loggingStatus&&!g.loggingStatus.isInitializing&&!g.loggingStatus.isDefiningPropertyAccessor&&g.loggingStatus.currentExternalSet!==u)&&Ei(g.tagName.toLowerCase(),u,"PROPERTY_ACCESS_SET_INTERNAL")};
HPM=function(){return{_definePropertyAccessor:function(g,u){var q=this,Q=q.hostElement.loggingStatus;Q&&(Q.isDefiningPropertyAccessor=!0);var L=q[g];L!==void 0&&(q.__data?q._setPendingProperty(g,L):(q.__dataProto!=null||(q.__dataProto={}),q.__dataProto[g]=L));Q&&(Q.isDefiningPropertyAccessor=!1);Object.defineProperty(this,g,{get:function(){cKF(q.hostElement,g);return this.__data[g]},
set:function(E){u||this._setPendingProperty(g,E,!0)&&this._invalidateProperties()}})},
created:function(){var g=this._setPendingProperty.bind(this);this._setPendingProperty=function(u,q,Q){P$(this.hostElement,u);return g.apply(this,[u,q,Q])}}}};
AKq=function(g){$oZ()&&_.I(Nm.prototype)(g.prototype,"__templateBindingLoggingBehavior")};
ZPq=function(g,u){if(u.resolvedFactories.length!==g.resolvedFactories.length)return!0;u=_.N(u.resolvedFactories.entries());for(var q=u.next();!q.done;q=u.next()){var Q=_.N(q.value);q=Q.next().value;Q=Q.next().value;if(Q.providerClass){if(Q.providerClass!==g.resolvedFactories[q].providerClass)return!0}else if(Q.providerValue){if(Q.providerValue!==g.resolvedFactories[q].providerValue)return!0}else if(Q.factory!==g.resolvedFactories[q].factory)return!0}return!1};
ltM=function(g,u){g=_.N(g);for(var q=g.next();!q.done;q=g.next())if(q=q.value,q.constructor===Array)ltM(q,u);else{var Q=u;Q.has(q)||(q.inject&&Q.add(q),q.behaviors&&ltM(q.behaviors,Q))}};
si=function(g,u){var q=g[u];g[u]=function(){var Q=_.UT.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(q)return q.apply(this,Q)}};
bPJ=function(){_.ys.Class=function(q,Q){q=It3(q,Q);si(q.prototype,"created");return q};
si(v$.prototype,"_initializeProperties");si(_.D3.prototype,"_initializeProperties");if(iPJ)si(CiM,"created");else{var g=function(){si(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))g();else{var u=customElements.define;customElements.define=function(q,Q,L){u.call(customElements,q,Q,L);q==="tp-yt-iron-list"&&(g(),customElements.define=u)}}}};
FDM=function(g,u){g.prototype.behaviors=g.prototype.behaviors||[];g.prototype.behaviors.unshift(doM.InjectBehavior);g.prototype.provide=u};
_.jP=function(g){return function(u){if(!g.disableElementRegistration){g.noInjection||FDM(u,g.providers);var q=u.prototype;q.__templateHelpers||bNK(pE.prototype)(q,"__templateHelpers");q=g.is;mom||(mom=Date.now());(ww(q)+mom)%100<_.S8("polymer_log_prop_change_observer_percent")&&bNK(Jr.prototype)(u.prototype,"__propertyObserverObserver");u.prototype.behaviors=u.prototype.behaviors||[];u.prototype.behaviors.unshift(_.atZ.YtHostElementBehavior);AKq(u);Mcm({is:g.is,notifyObserversOnUndefined:g.notifyObserversOnUndefined!==
!1,fastInit:g.fastInit,template:g.template,disableEnforceFastDefaultValuesCheck:!0})(u)}}};
_.fE=function(g){return _.jP({is:g.is,template:g.template,disableElementRegistration:g.disableElementRegistration,cssBuildOptOut:g.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
rKq=function(g,u){if(Vck){g=new g;for(var q=_.N(Object.getOwnPropertyNames(g)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,u[Q]=g[Q];for(q=u;q&&q!==Object.prototype;q=Object.getPrototypeOf(q)){Q=_.N(Object.getOwnPropertyNames(q));for(var L=Q.next();!L.done;L=Q.next())L=L.value,g.hasOwnProperty(L)||Object.defineProperty(g,L,XEM(u,L))}}else g.apply(u)};
XEM=function(g,u){return{get:function(){var q=g[u];return q instanceof Function?q.bind(g):q},
set:function(q){g[u]=q}}};
TWu=function(g,u){for(var q=g._noAccessors,Q=_.N(Object.getOwnPropertyNames(g)),L=Q.next();!L.done;L=Q.next())if(L=L.value,!WDm.has(L))if(q)u[L]=g[L];else{var E=Object.getOwnPropertyDescriptor(g,L);E&&(E.configurable=!0,Object.defineProperty(u,L,E))}};
hwb=function(g,u,q){return function(Q){if(q){var L=q();Q.model=L}if(g[u])g[u](Q,Q.detail)}};
Mm=function(g){var u=[];if(typeof g==="string")g.length>0&&u.push.apply(u,_.na(g.split(".")));else{g=_.N(g);for(var q=g.next();!q.done;q=g.next())q=q.value,typeof q==="string"?u.push.apply(u,_.na(q.split("."))):u.push(q)}return u};
YSM=function(g,u){if(u[u.length-1]!=="*"&&u[u.length-1]!=="splices"){for(var q=0;q<u.length;q++){if(!g)return;g=g[u[q]]}return g}};
OPu=function(g,u){if(g.length>u.length)return!1;for(var q=0;q<g.length;q++)if(g[q]!==u[q])return!1;return!0};
xoJ=function(g,u,q){if(u.type==="compute"){var Q=u.getter.bind(q);var L=u.args}else Q=function(){return q[u.method.methodName].apply(q,_.na(_.UT.apply(0,arguments)))},L=u.method.args;
KDk(g,u.propertyKey,Q,L,u.value)};
zwF=function(g,u){if(u.readOnly){var q=Object.getOwnPropertyDescriptor(g.model,u.propertyKey);Object.defineProperty(g.model,u.propertyKey,{get:q.get,set:function(){}});
g.model[BWq(u.propertyKey)]=q.set}};
ndF=function(g,u,q){if(q){var Q=u.propertyKey,L=u.selector;u=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.na(u.selectorArgs.map(function(E){return{type:"path",path:E}})));
KDk(g,Q,function(E){var y=_.UT.apply(1,arguments);return L.apply(null,[q.getState()].concat(_.na(y)))},u)}};
SSf=function(g,u,q){var Q=_.SZ(u.propertyKey)+"-changed";k_T(g,function(L){var E={value:L.value,queueProperty:!0};L.path.split(".").length>1&&(E.path=L.path);q.dispatchEvent(new CustomEvent(Q,{detail:E}))},[{type:"wildcard",
path:u.propertyKey}])};
odS=function(g,u,q){k_T(g,function(){q[u.method.methodName].apply(q,_.na(_.UT.apply(0,arguments)))},u.method.args)};
BWq=function(g){return"_set"+(g.charAt(0).toUpperCase()+g.slice(1))};
Uo3=function(){var g,u=FP(function(q){g=q},!1);
return[g,u]};
L0T=function(g){g=g.trim().replace(gEb,",").replace(uGM,"$1");var u=g[0];u==="-"&&(u=g[1]);if(u>="0"&&u<="9")return{type:"literal",value:Number(g)};if(u==="'"||u==='"')return{type:"literal",value:g.slice(1,-1)};if(u=g.match(qWK)){u=u[1];var q=QSh[u];if(q)return{type:q,path:g.slice(0,-(u.length+1))}}return{type:"path",path:g}};
sSb=function(g){var u=g.match(EES);if(u)return g={methodName:u[1],args:PCu},u[2].trim()&&(u=u[2].replace(N4f,"&comma;").split(","),g.args=u.map(L0T)),g};
y8b=function(g,u,q,Q){Q=Q===void 0?!1:Q;u=_.SZ(u);var L=ff;L&&(q=L(q,u,"attribute",g));tr(g,q,u,Q)};
tr=function(g,u,q,Q){u=vEf(u,Q===void 0?!1:Q);u===void 0?g.removeAttribute(q):g.setAttribute(q,u)};
vEf=function(g,u){switch(typeof g){case "object":case "function":if(g instanceof Date)return g.toString();if(g){if((u===void 0?0:u)&&!_.w("polymer_reflect_objects_as_boolean_killswitch"))return g?"":void 0;u=window.trustedTypes?window.trustedTypes.isHTML(g)||window.trustedTypes.isScript(g)||window.trustedTypes.isScriptURL(g):void 0;if(u)return g;try{return JSON.stringify(g)}catch(q){_.Io(Error("Fg`"+g))}}break;case "boolean":return g?"":void 0;default:return g!==null&&g!==void 0?g.toString():void 0}};
DNk=function(g){if(g===void 0)throw Error("Gg");return g};
Mum=function(g,u,q,Q){var L=pQq(Q);if(L.length){Q=q;var E="property";J8q.test(q)?E="attribute":q[q.length-1]==="$"&&(q=q.slice(0,-1),E="attribute");var y=jSS(L);y&&E==="attribute"&&(q==="class"&&g.hasAttribute("class")&&(y+=" "+g.getAttribute(q)),tr(g,y,q));E==="attribute"&&Q==="disable-upgrade$"&&g.setAttribute("disable-upgrade","");g.localName==="input"&&Q==="value"&&g.setAttribute("value","");g.removeAttribute(Q);E==="property"&&(q=_.oM(q));u=DNk(u);fdM(u,E,q,L);return!0}return q.slice(0,3)===
"on-"?(g.removeAttribute(q),(E=u).events!=null||(E.events=[]),u.events.push({name:q.slice(3),value:Q}),!0):q==="id"?(u.id=Q,!0):!1};
pQq=function(g){for(var u=[],q=0,Q;(Q=tuk.exec(g))!==null;){Q.index>q&&u.push({type:"literal",value:g.slice(q,Q.index)});var L=Q[1][0];q=!!Q[2];Q=Q[3].trim();if(L==="{")throw Error("Hg");(L=sSb(Q))?u.push({type:"method",negate:q,signature:L}):u.push({type:"path",negate:q,path:Q});q=tuk.lastIndex}q&&q<g.length&&(g=g.substring(q))&&u.push({type:"literal",value:g});return u};
jSS=function(g){for(var u="",q=0;q<g.length;q++){var Q=g[q];Q.type==="literal"&&(u+=Q.value)}return u};
fdM=function(g,u,q,Q){g.bindings!=null||(g.bindings=[]);g.bindings.push({kind:u,target:q,parts:Q})};
wQq=function(g,u,q){var Q=!1;if(g.localName==="template"){Q=q;var L=u.stripWhitespace;L=eiZ(g,L===void 0?!1:L);var E=g.content.ownerDocument.createDocumentFragment();L.content=E;E.appendChild(g.content);Q&&(Q.templateInfo=L);Q=!0}else g.localName==="slot"&&(u.hasInsertionPoint=!0);if(g.firstChild&&(L=q,g.localName!=="script"&&g.localName!=="style")){E=0;for(var y=g.firstChild;y;){var v=y;if(v.localName==="template"){var J=v.getAttribute("is");if((y=J==="dom-if")||J==="dom-repeat"){v.removeAttribute("is");
J=v.ownerDocument.createElement("ps-"+J);v.parentNode.replaceChild(J,v);J.appendChild(v);var f=Array.from(v.attributes);f=_.N(f);for(var t=f.next();!t.done;t=f.next())t=t.value,y?GIm.has(t.name)&&tr(J,t.value,t.name):$Nq.has(t.name)?tr(J,t.value,t.name):RiK.has(t.name),v.removeAttribute(t.name);y=J}else y=v}if(y.nodeType===Node.TEXT_NODE){v=void 0;J=g;for(f=y;((v=f.nextSibling)==null?void 0:v.nodeType)===Node.TEXT_NODE;)t=void 0,(t=f).textContent!=null||(t.textContent=""),f.nextSibling.textContent&&
(f.textContent+=f.nextSibling.textContent),J.removeChild(f.nextSibling);if(u.stripWhitespace&&y.textContent&&!y.textContent.trim()){g.removeChild(y);y=y.nextSibling;continue}}wQq(y,u,{parentIndex:E,parentInfo:L});y.parentNode&&E++;y=y.nextSibling}}var e;if((e=g.hasAttributes)==null?0:e.call(g)){e=q=DNk(q);L=!1;E=Array.from(g.attributes);E=_.N(E);for(v=E.next();!v.done;v=E.next())v=v.value,L=Mum(g,e,v.name,v.value)||L;Q=L||Q}g.nodeType===Node.TEXT_NODE&&(e=pQq(g.textContent),e.length&&(g.textContent=
jSS(e)||" ",q=DNk(q),fdM(q,"text","textContent",e),Q=!0));q&&Q&&(q.infoIndex=u.nodeInfoList.push(q)-1)};
eiZ=function(g,u){u={nodeInfoList:[],stripWhitespace:(u===void 0?!1:u)||g.hasAttribute("strip-whitespace")};wQq(g.content,u);return u};
c8J=function(g){Object.assign(g,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
A8K=function(g,u,q){u.signalCache!=null||(u.signalCache={});var Q=u.signalCache[q];if(!Q){var L=q.split(".");Q=!HXu(g,L[0]);if(L.length>1&&Q){var E=g.getPathMutationSignal(L);Q=function(){var y=aY(g.owner,function(){return g.getWithPath([L[0]])}),v,J=(v=E())==null?void 0:v.value;
return{rootWasDefined:y!==void 0,value:J}}}else Q=function(){var y=g.getWithPath(L);
return{rootWasDefined:y!==void 0,value:y}};
u.signalCache[q]=Q}return Q()};
ldM=function(g,u,q,Q,L){u=u.parts.map(function(y,v){if(y.type==="literal"){q.partWasDefined!=null||(q.partWasDefined=[]);var J;(J=q.partWasDefined)[v]||(J[v]=y.value!==void 0);return y.value}var f;if(y.type==="method"){var t,e=(t=(f=q.partWasDefined)==null?void 0:f[v])!=null?t:!1;e||(e=y.signature.args.every(function(H){return H.type==="literal"}));
var G=!1,R=!0;f=y.signature.args.map(function(H){if(H.type==="literal")return H.value;if(H.type!=="path")throw Error("Ig`"+H.type);var l=A8K(g,q,H.path);H=l.value;l=l.rootWasDefined;G||(G=l);R&&(R=l);return H});
e||(e=L===1?R:G);q.partWasDefined!=null||(q.partWasDefined={});q.partWasDefined[v]=e;if(!e)return;f=(v=A8K(g,q,y.signature.methodName).value)&&typeof v==="function"?v.apply(Q,f):void 0}else t=A8K(g,q,y.path),f=t.value,q.partWasDefined!=null||(q.partWasDefined={}),(e=q.partWasDefined)[v]||(e[v]=f!==void 0||t.rootWasDefined);y.negate&&(f=!f);return f});
if(u.length===1){var E;return((E=q.partWasDefined)==null?0:E[0])?u[0]:ZXf}return u.join("")};
Idu=function(g){return typeof g==="object"&&!!g&&"notifyPath"in g&&"canNotifyPath"in g};
iXJ=function(g){return typeof g==="object"&&!!g&&"notifyPath"in g};
CCF=function(g){return"polymerController"in g};
bXZ=function(g,u){u=""+Mm(u)[0];if(Idu(g))return g.canNotifyPath(u);if(CCF(g)&&Idu(g.polymerController))return g.polymerController.canNotifyPath(u);if(iXJ(g)){var q;return!((q=g.properties)==null||!q[u])}if(CCF(g)&&iXJ(g.polymerController)){var Q;return!((Q=g.polymerController.properties)==null||!Q[u])}return!1};
dNf=function(g,u,q){Idu(g)||iXJ(g)?g.notifyPath(u,q):CCF(g)&&(Idu(g.polymerController)||iXJ(g.polymerController))&&g.polymerController.notifyPath(u,q)};
mNq=function(g,u,q){if(q!==ZXf){g.kind==="attribute"||g.target!=="textContent"&&(g.target!=="value"||u.localName!=="input"&&u.localName!=="textarea")||(q=q===void 0?"":q);var Q,L=(Q=F0F.Polymer)==null?void 0:Q.sanitizeDOMValue;L&&(q=L(q,g.target,g.kind,u));if(g.kind==="attribute"){g=g.target;if(g==="class"||g==="name"||g==="slot")u=(0,_.K6)(u);tr(u,q,g)}else if(g=g.target,q!==u[g]||typeof q==="object")u.loggingStatus&&(u.loggingStatus.isDeclarativeExternal=!0,Ei(u.localName,g,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
u[g]=q,u.loggingStatus&&(u.loggingStatus.isDeclarativeExternal=!1)}};
adk=function(g,u,q,Q){var L=u.parts[0];if(u.parts.length!==1||L.type!=="path"||!bXZ(q,u.target))return!1;var E=_.N(L.path.split(".")),y=E.next().value,v=OH(E);if(HXu(g,y))return!1;Q.signalCache!=null||(Q.signalCache={});E=Q.signalCache[L.path];var J;E=(J=E)==null?void 0:J().value;if((E==null?void 0:E.path)!==void 0){Q=Mm(E.path);var f=Mm(L.path);Q=[u.target].concat(_.na(Q.slice(f.length-1)));dNf(q,Q,L.negate?!E.value:E.value);return!0}var t=eP(g,y);var e=t.getChangeRecordSignal(v),G=!1;E=function(){if(!G){var H=
aY(g.owner,function(){return t.getWithPath([])});
G||(G=H!==void 0)}return{value:e(),rootWasDefined:G}};
Q.signalCache[L.path]=E;Q.partWasDefined!=null||(Q.partWasDefined={});E=E();(f=Q.partWasDefined)[0]||(f[0]=E.rootWasDefined);var R=aY(g.owner,function(){return t.getWithPath(v)});
Q.partWasDefined[0]&&aY(g.owner,function(){return void mNq(u,q,L.negate?!R:R)});
return!0};
VuM=function(g,u,q,Q,L,E){if(!adk(g,u,q,Q)){var y=ldM(g,u,Q,L,E);aY(g.owner,function(){return void mNq(u,q,y)})}};
XQh=function(g,u,q,Q,L,E){q=_.N(q);for(var y=q.next(),v={};!y.done;v={infoIndex:void 0},y=q.next()){y=y.value;var J=y.bindings;v.infoIndex=y.infoIndex;y=y.parentInfo;if(J){J=_.N(J);for(var f=J.next(),t={};!f.done;t={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},f=J.next()){t.b$jscomp$257=f.value;if(v.infoIndex===void 0)throw Error("Jg");t.bindingCtx$jscomp$4={};g.effect(function(e,G){return function(){L&&!L()||VuM(g,e.b$jscomp$257,u[G.infoIndex],e.bindingCtx$jscomp$4,Q,E)}}(t,v))}}y&&XQh(g,u,[y],
Q,L,E)}};
r8Z=function(g,u){g=(u.parentInfo?r8Z(g,u.parentInfo):g).firstChild;for(var q=0;g;g=g.nextSibling)if(u.parentIndex===q++)return g;throw Error("Kg");};
T4u=function(g,u,q,Q){g=document.importNode(g.content,!0);g.__noInsertionPoint=!(Q==null?0:Q.hasInsertionPoint);for(var L=Array(u.length),E={},y=0;y<u.length;y++){var v=u[y],J=r8Z(g,v);L[y]=J;v.id&&(E[v.id]=J);if(v.templateInfo){var f=J.parentElement;f&&(f.templateInfo=v.templateInfo,f.parentSignalProxy=q,f.eventListenerHost=Q.eventListenerHost,f.stampingEnabled=Q.enabledSignal)}f=void 0;if((f=v.events)==null?0:f.length)for(f=0;f<v.events.length;f++){var t=v.events[f];W0k(Q.eventListenerHost,J,t.name,
t.value,Q.getModel)}}XQh(q,L,u,Q.thisCtx,Q.enabledSignal,Q.methodInvocationRequirement);return{root:g,nodes:L,nodesById:E}};
YWm=function(g,u){g=g();var q;(q=hiq.ShadyCSS)==null||q.prepareTemplate(g,u);u=eiZ(g);return{template:g,nodeInfoList:u.nodeInfoList,hasInsertionPoint:u.hasInsertionPoint}};
xNZ=function(){OXu=!1;for(var g=Ge.length,u=0;u<g;u++){var q=Ge[u];if(q)try{q()}catch(Q){Promise.resolve().then(function(){throw Q;})}}Ge.splice(0,g);
K0q+=g};
kIZ=function(g){OXu||(OXu=!0,B4K.textContent=(zim++).toString());Ge.push(g);return nEb++};
_.wO=function(g,u,q){$9++;g=u?new SWf($9,g,u,q):new oET($9,g);R5.set($9,g);return $9};
UNf=function(g){(g=R5.get(g))&&g.cancel()};
uHF=function(g,u){g=g7h.get(g);return g?(u=g.get(u))?u:null:null};
_.c$=function(g,u,q,Q){var L=uHF(g,u);if(!L){L=new qnT;var E=g7h.get(g);E||(E=new Map,g7h.set(g,E));E.set(u,L)}g=q.bind(g);L.run(g,Q,void 0)};
_.QNm=function(g,u){var q;(q=uHF(g,u))==null||q.cancel()};
LKK=function(g){var u;(u=uHF(g,"doRender"))==null||u.flush()};
H$=function(g){var u;return(u=g.hostElement)!=null?u:g};
E7m=function(g){var u=g.indexOf(".");return u===-1?g:g.slice(0,u)};
PlM=function(g,u,q,Q,L,E){E=(L=(Q=E?E7m(u):u)?u:null)?g.get(L):g.__data[u];L&&E===void 0&&(E=q[u]);_.hJ(g.hostElement,rnb(Q)+"-changed",{value:E,queueProperty:!0,path:L!=null?L:void 0},{bubbles:!1,composed:!1})};
NnT=function(g,u){g.__isReflecting=!0;y8b(g.hostElement,u,g.__data[u]);g.__isReflecting=!1};
sNS=function(g){if(g._onIronRequestResizeNotifications){var u=g._onIronRequestResizeNotifications.bind(g);g._onIronRequestResizeNotifications=function(q){_.bd(q)!==g.hostElement&&u(q)}}g._ariaActiveAttributeChanged&&(g._ariaActiveAttributeChanged=g._ariaActiveAttributeChanged.bind(g.hostElement));
g._activeChanged&&(g._activeChanged=function(q){g.toggles?tr(g.hostElement,q?"true":"false",g.ariaActiveAttribute):g.hostElement.removeAttribute(g.ariaActiveAttribute);g._changedButtonState()});
g._asyncClick&&(g._asyncClick=function(){_.wO(function(){g.hostElement.click()},1)});
!g.keyEventTarget||g.keyEventTarget instanceof EventTarget||(g.keyEventTarget=H$(g.keyEventTarget));g._disabledChanged&&(g._disabledChanged=g._disabledChanged.bind(g.hostElement));g._observeItems&&(g._observeItems=function(q){var Q=H$(q);return _.Eg(Q).observeNodes(function(L){g._updateItems();g._updateSelected();_.hJ(Q,"iron-items-changed",L,{bubbles:!1,cancelable:!1})})});
g._updateItems&&g._updateItems===_.Ar._updateItems&&(g._updateItems=function(){var q=_.Eg(g.hostElement).queryDistributedElements(g.selectable||"*");q=Array.prototype.filter.call(q,g._bindFilterItem);g._setItems(q)});
g._computeKeyboardClass&&(g._computeKeyboardClass=function(q){_.Y_(g.hostElement,"keyboard-focus",q)});
g.ensureRipple&&(g.ensureRipple=function(q){if(g.hasRipple&&!g.hasRipple()){if(!g._createRipple)return;g._ripple=g._createRipple();g._ripple.noink=g.noink;var Q=g._rippleContainer||g.hostElement;Q&&_.Tr(Q).appendChild(g._ripple)}var L;if(q&&((L=g._ripple)==null?0:L.uiDownAction)){Q=_.Tr(g._rippleContainer||g.hostElement);var E;L=(E=q.composedPath())==null?void 0:E[0];Q.contains(L)&&g._ripple.uiDownAction(q)}});
g._updateMultiselectable&&(g._updateMultiselectable=function(q){q?g.hostElement.setAttribute("aria-multiselectable","true"):g.hostElement.removeAttribute("aria-multiselectable")})};
yQk=function(g,u,q){q=_.N(q);for(var Q=q.next();!Q.done;Q=q.next())rKq(Q.value.constructor,g);rKq(u.constructor,g)};
DFh=function(g,u){g=_.N(g);for(var q=g.next();!q.done;q=g.next())if(q=q.value,q.type==="signal"){var Q=q.propertyKey;if(u.hasOwnProperty(Q)&&u[Q]!=null&&q.attributeType===Object){a:{Q=u[Q].constructor;for(var L=_.N(v7K),E=L.next();!E.done;E=L.next())if(E=E.value,Q===E){Q=E;break a}Q=Object}q.attributeType=Q}}};
pRZ=function(){};
JQk=function(g){var u;return(u=g.hostElement)!=null?u:g};
jNq=function(){throw Error("Og");};
fwq=function(g,u){g.constructor.prototype.useSignals=!0;var q=new g.constructor;yQk(q,g,u.behaviors);DFh(u.reactiveSchemas,q);q={};for(var Q=_.N(u.reactiveSchemas),L=Q.next();!L.done;L=Q.next())L=L.value,L.type==="signal"&&(q[L.propertyKey]=L.attributeType);var E={copyPropertiesToProto:jNq,didRegister:!1,typesForSignals:q},y=["disable-upgrade"].concat(_.na(u.observedAttributes)),v=function(J){Z3.call(this,g,u,E,J)};
_.A(v,Z3);_.z3.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return y}}});
E.copyPropertiesToProto=function(){for(var J=0;J<u.behaviors.length;J++)TWu(u.behaviors[J],v.prototype);TWu(g,v.prototype)};
u.legacyOptimizations||E.copyPropertiesToProto();v.prototype.is=g.is;return v};
MzT=function(g,u){if(Object.getPrototypeOf(u.prototype).constructor!==_.X)throw Error("Pg");u.prototype.is=g.is;return fwq(u.prototype,g)};
tzZ=function(g){return g.type==="compute"||g.type==="computeWithMethod"};
eTf=function(g){for(var u=g.reactiveSchemas.filter(tzZ),q=new Map,Q=new Map,L=new Map,E=_.N(u),y=E.next();!y.done;y=E.next())y=y.value,q.set(y.propertyKey,y),Q.set(y.propertyKey,[]),L.set(y.propertyKey,0);E=0;u=_.N(u);for(y=u.next();!y.done;y=u.next()){y=y.value;for(var v=_.N(y.type==="computeWithMethod"?y.method.args:y.args),J=v.next();!J.done;J=v.next())J=J.value,J.type!=="literal"&&(J=J.path.split(".")[0],Q.has(J)&&(Q.get(J).push(y.propertyKey),L.set(y.propertyKey,L.get(y.propertyKey)+1),E++))}y=
[].concat(_.na(Q.keys())).filter(function(f){return L.get(f)===0});
for(u=[];y.length;)for(v=y.shift(),u.push(q.get(v)),v=_.N(Q.get(v)),J=v.next();!J.done;J=v.next())J=J.value,L.set(J,L.get(J)-1),E--,L.get(J)===0&&y.push(J);q=g.reactiveSchemas.filter(function(f){return!tzZ(f)});
g.reactiveSchemas=[].concat(_.na(q),_.na(u))};
GHZ=function(g,u){if(u.properties)for(var q=_.N(Object.entries(u.properties)),Q=q.next();!Q.done;Q=q.next()){var L=_.N(Q.value);Q=L.next().value;L=L.next().value;g.properties[Q]=typeof L==="function"?{type:L}:L}u.observers&&g.observers.push.apply(g.observers,_.na(u.observers));u.disabledPolySiReactions&&g.disabledPolySiReactions.push.apply(g.disabledPolySiReactions,_.na(u.disabledPolySiReactions))};
$Fu=function(g,u){for(var q=u.length-1;q>=0;q--){var Q=u[q];Array.isArray(Q)?$Fu(g,Q):g.indexOf(Q)<0&&g.unshift(Q)}};
RTf=function(g,u){g.reactiveSchemas=g.reactiveSchemas.filter(function(q){return q.type==="observe"&&u.includes(q.method.methodName)||tzZ(q)&&u.includes(q.propertyKey)?!1:!0})};
cQf=function(g,u){var q=u.prototype,Q,L,E={is:g.is,reactiveSchemas:[],observedAttributes:[],behaviors:[doM.InjectBehavior,pE.prototype],disableElementRegistration:g.disableElementRegistration,provide:(Q=g.providers)!=null?Q:[],reactivityMode:g.reactivityMode,signalProperties:(L=q.signalProperties)!=null?L:[]};"template"in u?E.templateGetter=function(){return u.template}:g.getTemplate&&(E.templateGetter=g.getTemplate);
q.behaviors&&$Fu(E.behaviors,q.behaviors);wRF(E,u);return E};
wRF=function(g,u){for(var q=u.prototype,Q={properties:{},observers:[],disabledPolySiReactions:[]},L=_.N(g.behaviors),E=L.next();!E.done;E=L.next())GHZ(Q,E.value);GHZ(Q,q);if(g.signalProperties)for(q=_.N(g.signalProperties),L=q.next();!L.done;L=q.next())delete Q.properties[L.value];q=_.N(Object.entries(Q.properties));for(L=q.next();!L.done;L=q.next()){E=_.N(L.value);L=E.next().value;E=E.next().value;var y=void 0;if((y=g.signalProperties)==null||!y.includes(L)){y=void 0;var v=g,J=E.type;if(!J)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{J=Reflect.getMetadata("design:type",u,L);for(var f=_.N(Hib),t=f.next();!t.done;t=f.next())if(t=t.value,J===t){J=t;break a}J=Object}else J=String;E.computed||E.selector||(v.reactiveSchemas.push({type:"signal",propertyKey:L,value:E.value,attributeType:J,readOnly:E.readOnly}),v.observedAttributes.push(_.SZ(L)));E.reflectToAttribute&&v.reactiveSchemas.push({type:"reflect",propertyKey:L});if(E.computed){J=sSb(E.computed);if(!J)throw Error("Qg");v.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:L,method:J,value:E.value})}E.observer&&v.reactiveSchemas.push({type:"observe",method:{methodName:E.observer,args:[{type:"path",path:L}]}});E.notify&&v.reactiveSchemas.push({type:"notify",propertyKey:L});E.selector&&v.reactiveSchemas.push({type:"redux",propertyKey:L,selector:E.selector,selectorArgs:(y=E.selectorArgs)!=null?y:[]})}}AQT&&eTf(g);u=_.N(Q.observers);for(L=u.next();!L.done;L=u.next())q=g,L=L.value,(E=sSb(L))?q.reactiveSchemas.push({type:"observe",method:E}):console.log('Warning: unable to parse observe declaration: "'+
L+'"');RTf(g,Q.disabledPolySiReactions)};
Zih=function(g,u){for(var q=0;q<u.length;q++){var Q=u[q],L=void 0;(L=Q).showHideApi!=null||(L.showHideApi={});L=void 0;!!g!==!((L=Q.showHideApi)==null||!L.hideTemplateChildren)&&(Q.nodeType===Node.TEXT_NODE?g?(Q.showHideApi.polymerTextContent=Q.textContent,Q.textContent=""):(L=void 0,Q.textContent=(L=Q.showHideApi.polymerTextContent)!=null?L:null):Q instanceof Element&&Q.localName==="slot"?g?(Q.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.K6)((0,_.K6)(Q).parentNode).replaceChild(Q.showHideApi.polymerReplaced,
Q)):(L=Q.showHideApi.polymerReplaced)&&(0,_.K6)((0,_.K6)(L).parentNode).replaceChild(Q,L):Q instanceof HTMLElement&&Q.style&&(g?(Q.showHideApi.polymerDisplay=Q.style.display,Q.style.display="none"):Q.style.display=Q.showHideApi.polymerDisplay));Q.showHideApi.hideTemplateChildren=g;Q.showHideChildren&&Q.showHideChildren(g)}};
Iwh=function(){if(!lwS){var g=document.createElement("style");g.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(g);lwS=!0}};
iU=function(){return _.w("disable_hidden_dom_if_using_stamper")};
iih=function(g,u){var q=_.CE().getState();return u?g.apply(null,[q].concat(_.na(u))):g(q)};
dFq=function(){if(Clk)return Clk;var g=_.N(_.jR(0,void 0,"MB1Hb")),u=g.next().value;g.next();var q=g.next().value;_.CE().subscribe(function(){biK(q)});
return Clk=u};
biK=function(g){FKm||(FKm=!0,Promise.resolve().then(function(){g(function(u){return u+1});
FKm=!1}))};
_.CE=function(){return mFq.getAppStore()};
awJ=function(g,u){return mFq.getSelectFn()(g,u)};
_.bU=function(g){mFq.getDispatchFn()(g)};
VzJ=function(g,u){var q={},Q;for(Q in g)q[Q]=u(g[Q],Q);return q};
_.dO=function(g,u){return function(){var q;return(q=_.mV(g))!=null?q:u}};
_.FI=function(g,u){var q=Object.assign({},g),Q;for(Q in u)u.hasOwnProperty(Q)&&(q[Q]=_.dO(g[Q],u[Q]));return q};
XRJ=function(g,u,q,Q){g instanceof Element&&(q.debugName||(q.debugName="<"+g.tagName.toLowerCase()+(g.tagName.includes("-")?">":"."+g.className+">")),_.w("ytwiz_enable_debug_component_props")&&(g.debugProps||(g.debugProps=VzJ(u,function(L){return function(){return L()}})),u.data===void 0||"data"in g&&!g.isWebComponentWrapper||Object.defineProperty(g.debugProps,"data",{get:function(){return _.mV(u.data)},
set:function(L){var E;Q==null||(E=Q.data)==null||E.call(Q,L)},
enumerable:!0,configurable:!0})))};
_.mX=function(g,u){if(g.length===0&&(u==null||!u.initial))return rjq(g,{debugName:u==null?void 0:u.debugName},"l");var q=_.N(rjq({source:function(){return g()},
computation:function(E,y){return(y==null?0:y.value)?g(y.value):(u==null?0:u.initial)?g(u.initial):E}},{debugName:u==null?void 0:u.debugName},"m")),Q=q.next().value,L=q.next().value;
q=q.next().value;return[Q,L,q]};
_.r=function(g,u){var q=function(Q){return _.WX("ytComponent",{},function(L){var E=rQK={};var y;if(((y=q)==null?0:y.idomCompat)&&Q.renderedFromIdom){var v;y=typeof q.idomCompat==="object"?(v=q)==null?void 0:v.idomCompat.callbacks:{};y=_.N(WKb(Q,y));v=y.next().value;var J=y.next().value;y=y.next().value;var f=Tn3(g,v);E.privateValue=f;rQK=void 0;XRJ(f,v,q,J);L.addAttributes({debugName:q.debugName});L=FLK(f);L=Array.isArray(L)?L[0]:L;L[Nq]||(L[Nq]={});L[Nq].updateSignalsFromIdomProps=y;hTJ(v,f);return f}y=
VzJ(Q,YnF);v=Tn3(g,y);XRJ(v,y,q);E.privateValue=v;rQK=void 0;L.addAttributes({debugName:q.debugName});hTJ(y,v);return v})};
q.debugName=u===void 0?"":u;return q};
Tn3=function(g,u){g=g(u);return JM(g)};
Oih=function(g,u){g[u]||(g=new _.Ji("IDOM interop setter undefined. Key:",u),_.Zf(g))};
YnF=function(g,u){return u==="children"||u==="ref"||typeof g==="function"||g===void 0?g:function(){return _.mV(g)}};
WKb=function(g,u){var q={},Q={},L={},E={},y;for(y in g){E={key$jscomp$954:E.key$jscomp$954};E.key$jscomp$954=y;var v=g[E.key$jscomp$954];if(E.key$jscomp$954==="children"||E.key$jscomp$954==="ref")q[E.key$jscomp$954]=v;else if(typeof v==="function")if(E.key$jscomp$954 in u||v.length>0)L[E.key$jscomp$954]=v,q[E.key$jscomp$954]=function(f){return function(){return L[f.key$jscomp$954].apply(L,_.na(_.UT.apply(0,arguments)))}}(E);
else if(E.key$jscomp$954==="data"){var J=_.N(_.mX(v,{debugName:E.key$jscomp$954+":cwis"}));v=J.next().value;J=J.next().value;q[E.key$jscomp$954]=v;Q[E.key$jscomp$954]=J}else q[E.key$jscomp$954]=v;else g[E.key$jscomp$954]===void 0&&E.key$jscomp$954 in u||(J=_.N(_.jR(g[E.key$jscomp$954],{debugName:E.key$jscomp$954+":cwis"},"HQMSk")),v=J.next().value,J=J.next().value,q[E.key$jscomp$954]=v,Q[E.key$jscomp$954]=J)}return[q,Q,function(f){var t={},e;for(e in f)t={key$jscomp$953:t.key$jscomp$953,val$jscomp$122:void 0},
t.key$jscomp$953=e,t.val$jscomp$122=f[t.key$jscomp$953],t.key$jscomp$953!=="children"&&t.key$jscomp$953!=="ref"&&(typeof t.val$jscomp$122==="function"?t.key$jscomp$953 in u?L[t.key$jscomp$953]=t.val$jscomp$122:t.val$jscomp$122.length>0&&(L[t.key$jscomp$953]=t.val$jscomp$122,_.Io(new _.Ji("Callback detected that was not set in the idomCompat callbacks map. Key:",t.key$jscomp$953))):t.key$jscomp$953 in u&&t.val$jscomp$122===void 0||(Oih(Q,t.key$jscomp$953),$G(function(G){return function(){Q[G.key$jscomp$953](G.val$jscomp$122)}}(t))))}]};
Bnu=function(g,u,q){var Q=G0q(g.prototype,KKZ,g.prototype.behaviors);Q.prototype.is=u;Q.prototype.localName=u;q&&xFh(Q,q);return function(L){L&&(Q.prototype.hostElement=L);var E=new Q;E.root=E;E.hostElement=L;return E}};
xFh=function(g,u){var q;Object.defineProperty(g.prototype,"_template",{get:function(){q===void 0&&(q=u());return q},
set:function(Q){q=Q},
configurable:!0,enumerable:!0})};
o7f=function(g,u,q,Q){function L(){if(!R){for(var H=new Set,l=_.N(t),d=l.next();!d.done;d=l.next()){d=d.value;for(var F=_.N(Object.getOwnPropertyNames(d)),V=F.next();!V.done;V=F.next()){V=V.value;var z=void 0,O=(z=Object.getOwnPropertyDescriptor(d,V))==null?void 0:z.value;O&&O instanceof Function&&!a5(V)&&(!v[V]||_.w("polymer_forward_method_killswitch"))&&H.add(V)}}l=_.N(Object.entries(Object.getOwnPropertyDescriptors(g.prototype)));for(d=l.next();!d.done;d=l.next())F=_.N(d.value),d=F.next().value,
F=F.next().value,F.value instanceof Function&&!a5(d)&&H.add(d);R=H}return R}
zTq(g,u,Q==null?void 0:Q.providers);$HZ(g.prototype,g,!0);var E=Bnu(g,u,q),y,v=(y=g.prototype.properties)!=null?y:{},J,f,t=(f=(J=g.prototype.behaviors)==null?void 0:J.flat(Infinity))!=null?f:[];q=_.N(t);for(y=q.next();!y.done;y=q.next())v=Object.assign({},y.value.properties,v);var e=[].concat(_.na(n7J),_.na(Object.keys(v).map(function(H){return _.SZ(H)}))),G=!1,R;
return{ctor:function(H,l){var d=E(H),F,V;H=[].concat(_.na((F=Q==null?void 0:Q.allowedProps)!=null?F:[]),_.na((V=Q==null?void 0:Q.allowedPropsFromBehaviors)!=null?V:[]));d.allowedProps=H.length>0?H:void 0;F={};V=_.N(e);for(H=V.next();!H.done;H=V.next())H=H.value,F[H]=_.oM(H);d.__dataAttributes=F;var z=d.ready.bind(d);d.ready=function(){l.beforeReady();z();if(Qs(u)&&!G){var O=d.__templateInfo;if(O==null?0:O.hostProps){O=_.N(Object.keys(O.hostProps));for(var W=O.next();!W.done;W=O.next())Ei(u,W.value,
"PROPERTY_ACCESS_GET_INTERNAL")}G=!0}};
d._overrideLegacyUndefined=!0;return d},
props:v,observedAttributes:e,getInitialMethods:L,getPropsToForwardBeforeRegister:function(){for(var H=[],l=new Set,d=_.N(Object.keys(v)),F=d.next();!F.done;F=d.next())F=F.value,H.push([F,v[F].readOnly]),l.add(F);d=L();F=_.N(Object.keys(Object.getOwnPropertyDescriptors(g.prototype)));for(var V=F.next();!V.done;V=F.next())V=V.value,!kHq(V)||d.has(V)||l.has(V)||(H.push([V,!1]),l.add(V));l=_.N(Snq);for(d=l.next();!d.done;d=l.next())H.push([d.value,!0]);return H},
getPropsToForwardBeforeReady:function(H){for(var l=[],d=_.N(Object.entries(H)),F=d.next();!F.done;F=d.next()){var V=_.N(F.value);F=V.next().value;V=V.next().value;if(kHq(F)&&!(V instanceof Function)&&(l.push([F,!1]),Qs(u))){var z=V=void 0;(z=(V=H)._createPropertyAccessor)==null||z.call(V,F)}}return l},
shouldForwardProp:kHq,shouldLog:Qs}};
zTq=function(g,u,q){FDM(g,q);g.prototype.behaviors.unshift(UFf);if($oZ()){if(Qs(u)){var Q;(Q=g.prototype).behaviors!=null||(Q.behaviors=[]);g.prototype.behaviors.unshift(HPM())}AKq(g)}_.I(pE.prototype)(g.prototype,"__templateHelpers")};
a5=function(g){return gYS.has(g)||g.startsWith("__compute__")};
kHq=function(g){return!a5(g)&&!g.startsWith("_")&&!g.endsWith("_")};
EYk=function(g,u){function q(){var G=J();G=_.N(G);for(var R=G.next();!R.done;R=G.next()){var H=_.N(R.value);R=H.next().value;H=H.next().value;uFu(e.prototype,R,H)}Q=!0}
var Q=!1,L=g.ctor,E=g.getInitialMethods,y=g.observedAttributes,v=g.getPropsToForwardBeforeReady,J=g.getPropsToForwardBeforeRegister,f=g.shouldForwardProp,t=g.shouldLog,e=function(){var G=HTMLElement.call(this)||this;G.didForwardDynamicProps=!1;G.loggingStatus={};Q||q();G.inst=L(G,{beforeReady:function(){G.didForwardDynamicProps||(G.forwardDynamicProps(),G.didForwardDynamicProps=!0)}});
G.controllerProxy=wEF(G.inst,u);G.forwardMethods();return G};
_.A(e,HTMLElement);e.prototype.forwardMethods=function(){for(var G=this,R=_.N(this.inst.getExtraMethodsToForward()),H=R.next(),l={};!H.done;l={method$jscomp$65:void 0},H=R.next()){var d=_.N(H.value);H=d.next().value;d=d.next().value;l.method$jscomp$65=d;this[H]=function(F){return function(){return F.method$jscomp$65.call.apply(F.method$jscomp$65,[G.inst].concat(_.na(_.UT.apply(0,arguments))))}}(l)}R=_.N(E());
for(l=R.next();!l.done;l=R.next())l=l.value,f(l)&&qe3(this,l),t(u)&&!a5(l)&&QDJ(this.inst,l)};
e.prototype.forwardDynamicProps=function(){var G=v(this.inst);G=_.N(G);for(var R=G.next();!R.done;R=G.next()){var H=_.N(R.value);R=H.next().value;H=H.next().value;uFu(this,R,H);t(u)&&!a5(R)&&LiK(this.inst,R)}};
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(G,R,H){this.inst.attributeChangedCallbackWrapper(G,R,H)};
_.z3.Object.defineProperties(e.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return u}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.z3.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return y}}});
customElements.define(u,e)};
uFu=function(g,u,q){g.hasOwnProperty(u)||Object.defineProperty(g,u,{get:function(){var Q,L=((Q=g.is)!=null?Q:g.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Ei(L,u,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,Q=this.polymerController[u],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,Q},
set:function(Q){if(!q){var L,E=((L=g.is)!=null?L:g.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Ei(E,u,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=u,this.loggingStatus.bypassProxyController=!0,this.polymerController[u]!==Q&&(L={},this.polymerController.setProperties((L[u]=Q,L)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
qe3=function(g,u,q){var Q=g.polymerController;g[u]=function(){var L=_.UT.apply(0,arguments);g.loggingStatus.currentExternalCall=u;g.loggingStatus.bypassProxyController=!0;var E,y=((E=g.is)!=null?E:g.tagName).toLowerCase();Ei(y,u,"PROPERTY_ACCESS_CALL_EXTERNAL");var v;E=(v=q!=null?q:Q[u])==null?void 0:v.call.apply(v,[Q].concat(_.na(L)));g.loggingStatus.currentExternalCall=void 0;g.loggingStatus.bypassProxyController=!1;return E}};
QDJ=function(g,u){var q=g.hostElement,Q=g[u];g[u]=function(){var L=_.UT.apply(0,arguments);if(q.loggingStatus.currentExternalCall!==u){var E,y=((E=q.is)!=null?E:q.tagName).toLowerCase();Ei(y,u,"PROPERTY_ACCESS_CALL_INTERNAL")}return Q==null?void 0:Q.apply(g,L)}};
LiK=function(g,u){var q=Object.getOwnPropertyDescriptor(g,u);q&&!q.get&&Object.defineProperty(g,u,{get:function(){cKF(g.hostElement,u);return q.value},
set:function(Q){P$(g.hostElement,u);q.value=Q}})};
PWk=function(g){return _.w("poly_si_dom_repeat_detached_fix_killswitch")||g.tagName!=="PS-DOM-REPEAT"?g.tagName==="DOM-REPEAT":!0};
sDT=function(g,u){var q=NAu(g);g instanceof Element&&q.unshift(g);g=_.N(q.filter(PWk));for(var Q=g.next();!Q.done;Q=g.next()){var L=void 0;Q=_.N((L=Q.value.__instances)!=null?L:[]);for(L=Q.next();!L.done;L=Q.next())if(L=L.value,L.root){L=Array.from(L.root.children);L=_.N(L);for(var E=L.next();!E.done;E=L.next())q.push.apply(q,_.na(sDT(E.value,u)))}}return q.filter(function(y){return y.usePatchedLifecycles&&y.lifecycleIsConnected===u})};
NAu=function(g){var u=null;g instanceof Element?u=Element.prototype.querySelectorAll:g instanceof DocumentFragment&&(u=DocumentFragment.prototype.querySelectorAll);return u?Array.from(u.call(g,"*")):[]};
Vs=function(g){_.D6(function(){for(var u=_.N(sDT(g,!1)),q=u.next();!q.done;q=u.next()){q=q.value;q.lifecycleIsConnected=!0;try{var Q=void 0,L=void 0,E=void 0,y=void 0;(Q=(y=q.polymerController)!=null?y:q)==null||(E=(L=Q).connectedCallback)==null||E.call(L)}catch(v){_.Zf(v)}}})};
XI=function(g){_.D6(function(){for(var u=_.N(sDT(g,!0)),q=u.next();!q.done;q=u.next()){q=q.value;q.lifecycleIsConnected=!1;try{var Q=void 0,L=void 0,E=void 0,y=void 0;(Q=(y=q.polymerController)!=null?y:q)==null||(E=(L=Q).disconnectedCallback)==null||E.call(L)}catch(v){_.Zf(v)}}})};
f_h=function(){if(!y0f){y0f=!0;var g=[Node];rO&&g.push(rO.Wrapper);var u=Node.prototype.insertBefore,q=Node.prototype.removeChild;g=_.N(g);for(var Q=g.next(),L={};!Q.done;L={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},Q=g.next())Q=Q.value,L.nativeInsertBefore=Q.prototype.insertBefore,Q.prototype.insertBefore=function(y){return function(v,J){if(v instanceof DocumentFragment){var f=Array.from(v.children);v=y.nativeInsertBefore.call(this,v,J);
if(this.isConnected&&y.nativeInsertBefore===u)for(J=_.N(f),f=J.next();!f.done;f=J.next())Vs(f.value);return v}f=v instanceof Element&&v.isConnected;J=y.nativeInsertBefore.call(this,v,J);f&&XI(v);this.isConnected&&Vs(v);return J}}(L),L.nativeAppendChild=Q.prototype.appendChild,Q.prototype.appendChild=function(y){return function(v){if(v instanceof DocumentFragment){var J=Array.from(v.children);
v=y.nativeAppendChild.call(this,v);if(this.isConnected){J=_.N(J);for(var f=J.next();!f.done;f=J.next())Vs(f.value)}return v}J=v instanceof Element&&v.isConnected;f=y.nativeAppendChild.call(this,v);J&&XI(v);this.isConnected&&Vs(v);return f}}(L),L.nativeRemoveChild=Q.prototype.removeChild,Q.prototype.removeChild=function(y){return function(v){var J=v instanceof Element&&v.isConnected,f=y.nativeRemoveChild.call(this,v);
J&&q===y.nativeRemoveChild&&XI(v);return f}}(L),L.nativeReplaceChild=Q.prototype.replaceChild,Q.prototype.replaceChild=function(y){return function(v,J){if(v instanceof DocumentFragment){var f=Array.from(v.children);
v=y.nativeReplaceChild.call(this,v,J);if(this.isConnected)for(XI(J),J=_.N(f),f=J.next();!f.done;f=J.next())Vs(f.value);return v}f=v instanceof Element&&v.isConnected;var t=this.isConnected,e=y.nativeReplaceChild.call(this,v,J);t&&XI(J);f&&XI(v);t&&Vs(v);return e}}(L);
g=[Element];rO&&g.push(rO.Wrapper);g=_.N(g);Q=g.next();for(L={};!Q.done;L={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},Q=g.next())Q=Q.value,Q.prototype.before=vYq(Q.prototype.before),Q.prototype.after=vYq(Q.prototype.after),L.nativeReplaceWith=Q.prototype.replaceWith,Q.prototype.replaceWith=function(y){return function(){var v=_.UT.apply(0,arguments),J=_.N(DrS(v)),f=J.next().value,
t=J.next().value;J=this.isConnected;y.nativeReplaceWith.apply(this,v);v=_.N(t);for(t=v.next();!t.done;t=v.next())XI(t.value);if(J)for(XI(this),f=_.N(f),J=f.next();!J.done;J=f.next())J=J.value,J instanceof Element&&Vs(J)}}(L),L.nativeRemove=Q.prototype.remove,Q.prototype.remove=function(y){return function(){var v=this.isConnected;
y.nativeRemove.call(this);v&&XI(this)}}(L),L.nativeInsertAdjacentElement=Q.prototype.insertAdjacentElement,Q.prototype.insertAdjacentElement=function(y){return function(v,J){var f=J.isConnected;
v=y.nativeInsertAdjacentElement.call(this,v,J);f&&XI(J);v.isConnected&&Vs(v);return v}}(L),L.nativeSetAttribute=Q.prototype.setAttribute,Q.prototype.setAttribute=function(y){return function(v,J){var f=piS(this);
if(!f.usePatchedLifecycles)return y.nativeSetAttribute.call(this,v,J);var t=this.getAttribute(v);y.nativeSetAttribute.call(this,v,J);J=this.getAttribute(v);J0m(f,v,t,J)}}(L),L.nativeRemoveAttribute=Q.prototype.removeAttribute,Q.prototype.removeAttribute=function(y){return function(v){var J=piS(this);
if(!J.usePatchedLifecycles)return y.nativeRemoveAttribute.call(this,v);var f=this.getAttribute(v);y.nativeRemoveAttribute.call(this,v);f!==null&&J0m(J,v,f,null)}}(L),L.nativeToggleAttribute=Q.prototype.toggleAttribute,Q.prototype.toggleAttribute=function(y){return function(v,J){var f=piS(this);
if(!this.usePatchedLifecycles)return y.nativeToggleAttribute.call(this,v,J);var t=this.getAttribute(v),e=t!==null;J=y.nativeToggleAttribute.call(this,v,J);J!==e&&J0m(f,v,t,J?"":null);return J}}(L);
g=[Document,DocumentFragment,Element,ShadowRoot];rO&&g.push(rO.Wrapper);g=_.N(g);for(L=g.next();!L.done;L=g.next())L=L.value,L.prototype.prepend=vYq(L.prototype.prepend),L.prototype.append=vYq(L.prototype.append);(rO==null?void 0:rO.noPatch)===!0&&jDu();document.readyState==="complete"?Vs(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Vs(document.body)});
var E=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");E&&E.get&&E.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:E.enumerable,configurable:!0,get:E.get,set:function(y){y||XI(this);E.set.call(this,y);return y}})}};
vYq=function(g){return function(){var u=_.UT.apply(0,arguments),q=_.N(DrS(u)),Q=q.next().value;q=q.next().value;g.apply(this,u);u=_.N(q);for(q=u.next();!q.done;q=u.next())XI(q.value);if(this.isConnected)for(Q=_.N(Q),u=Q.next();!u.done;u=Q.next())u=u.value,u instanceof Element&&Vs(u)}};
jDu=function(){for(var g=_.N(Mdq),u=g.next();!u.done;u=g.next()){u=u.value.prototype;for(var q=_.N(tdq),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var L=Object.getOwnPropertyDescriptor(u,Q);L&&Object.defineProperty(u,"__shady_native_"+Q,L)}}};
J0m=function(g,u,q,Q){var L,E;if((L=g.polymerController)==null?0:(E=L.observedAttributes)==null?0:E.includes(u))if(g=g.polymerController,g.attributeChangedCallbackWrapper)g.attributeChangedCallbackWrapper.call(g,u,q,Q);else{var y;(y=g.attributeChangedCallback)==null||y.call(g,u,q,Q)}};
DrS=function(g){var u=[],q=[];g=_.N(g);for(var Q=g.next();!Q.done;Q=g.next())Q=Q.value,Q instanceof Element&&Q.isConnected&&q.push(Q),Q instanceof DocumentFragment?u.push.apply(u,_.na(Array.from(Q.children))):u.push(Q);return[u,q]};
piS=function(g){return!(g instanceof Element)&&g.node instanceof Element?g.node:g};
eaK=function(g,u){var q=u?["children"].concat(_.na(u)):["children"];u=[];q=_.N(q);for(var Q=q.next();!Q.done;Q=q.next()){var L=Q.value;if(g.hasOwnProperty(L)){Q=g[L];Q=typeof Q==="function"?Q():Q;Q=Array.isArray(Q)?Q:[Q];Q=JM(Q).flat();if(L!=="children"){L=rnb(L);for(var E=_.N(Q),y=E.next();!y.done;y=E.next())y=y.value,y instanceof Element&&y.setAttribute("slot",L)}u.push(Q)}}u.length===0?g=[]:(g=JM(_.p("div",null,u)),g=Array.from(g.childNodes));return g};
$rF=function(g,u,q){var Q={};_.C2(function(){var L={},E;for(E in u)if(u.hasOwnProperty(E)){var y=void 0,v=void 0;if(!(((y=q.slotProps)==null?0:y.includes(E))||E==="children"||((v=q.callbackProps)==null?0:v.includes(E))||E==="ref")&&(y=_.mV(u[E]),Q[E]!==y)){Q[E]=y;v=void 0;var J=(v=g.hostElement)!=null?v:g;!q.skipHostForwardedProps&&Gjk.has(E)&&(J[E]=y);L[E]=y}}$G(function(){if(g.setProperties)g.setProperties(L);else for(var f=_.N(Object.entries(L)),t=f.next();!t.done;t=f.next()){var e=_.N(t.value);
t=e.next().value;e=e.next().value;g[t]=e}})},"n")};
wiu=function(g,u,q,Q){var L=eaK(q,Q.slotProps),E=(0,_.K6)(g);L=_.N(L);for(var y=L.next();!y.done;y=L.next())E.appendChild(y.value);$rF(u,q,Q);Q=_.N(Q.callbackProps||[]);L=Q.next();for(E={};!L.done;E={kebabEventName:void 0,eventListener:void 0},L=Q.next())y=L=L.value,String(L).substring(0,2)==="on"&&q[y]?(E.kebabEventName=rnb(String(L).substring(2)),E.eventListener=q[y],g.addEventListener(E.kebabEventName,E.eventListener),_.dB(function(t){return function(){g.removeEventListener(t.kebabEventName,t.eventListener)}}(E))):
u[y]=q[y];
if(q.ref){q=_.N(RaJ(q.ref));var v=q.next().value,J=q.next().value,f=u.attached.bind(u);u.attached=function(){v(g);f()};
_.dB(function(){J()})}};
RaJ=function(g){if(typeof g==="function"){var u;return[function(q){u=g(q)},
function(){var q;(q=u)==null||q()}]}if(!g.onRender||!g.onUnmount)throw Error("Ug");
return[g.onRender,g.onUnmount]};
c0M=function(g,u){u=u===void 0?{}:u;var q=function(Q){var L=document.createElement(g),E;var y=(E=L.polymerController)!=null?E:L;wiu(L,y,Q,u);return L};
q.debugName=g;return q};
l_S=function(g,u,q,Q,L){Q=Q===void 0?{}:Q;var E=HzT,y=!1;E?(y=!0,HzT=void 0):(A0q=u,E=document.createElement(u),A0q=void 0);var v=E;v.usePatchedLifecycles=!0;v.lifecycleIsConnected=!1;E.loggingStatus={};var J=Zz3(g,u,E,Q,L);_.dB(function(){v.lifecycleIsConnected&&(v.lifecycleIsConnected=!1,J.disconnectedCallback())});
y||(E.__noInsertionPoint=!0,wiu(E,J,q,Q));return E};
Zz3=function(g,u,q,Q,L){L=L===void 0?o7f:L;I_b[u]!=null||(I_b[u]=L(g,u,Q==null?void 0:Q.getTemplate,Q));var E=I_b[u],y=E.ctor;L=E.getInitialMethods;var v=E.getPropsToForwardBeforeReady;g=E.getPropsToForwardBeforeRegister;Q=E.shouldForwardProp;var J=E.observedAttributes,f=E.shouldLog,t=y(q,{beforeReady:function(){var e=t;e._takeAttributes?e._takeAttributes():e.setPropertiesFromInitialAttributeValues&&e.setPropertiesFromInitialAttributeValues();e=_.N(v(q.polymerController));for(var G=e.next();!G.done;G=
e.next()){var R=_.N(G.value);G=R.next().value;R=R.next().value;uFu(q,G,R);f(u)&&!a5(G)&&LiK(q.polymerController,G)}q.polymerController=wEF(t,u)}});
q.polymerController=t;q.polymerController.observedAttributes=J;E=_.N(t.getExtraMethodsToForward());for(y=E.next();!y.done;y=E.next())J=_.N(y.value),y=J.next().value,J=J.next().value,qe3(q,y,J);L=_.N(L());for(E=L.next();!E.done;E=L.next())E=E.value,Q(E)&&qe3(q,E),f(u)&&!a5(E)&&QDJ(t,E);g=_.N(g());for(Q=g.next();!Q.done;Q=g.next())L=_.N(Q.value),Q=L.next().value,L=L.next().value,uFu(q,Q,L);return t};
izJ=function(g){var u=W$;W$=g;return u};
drF=function(g){if(CWT.has(g)&&W$&&bzZ(W$)===g){var u;(u=W$)._numRenders!=null||(u._numRenders=0);W$._numRenders++;if(W$._numRenders>1)throw Error("Vg");return W$}};
mrq=function(g){var u=bzZ(g);W$!==g&&u.includes("-")&&Fiq.set(g,!0)};
bzZ=function(g){var u;return(u=g==null?void 0:g.tagName.toLowerCase())!=null?u:""};
a_q=function(g,u){if(g.componentType===wB)throw Error("Wg");CWT.add(u);var q=function(){var Q=HTMLElement.call(this)||this;Q.is=u;if(A0q===u)return Q.isInert=!0,Q;Q.createElement();return Q};
_.A(q,HTMLElement);q.prototype.createElement=function(){if(!this.isInert){HzT=this;var Q=_.N(Bwm(function(){return _.p(g,null)})).next().value;
HzT=void 0;c8J(this);return Q}};
customElements.define(u,q)};
XiT=function(g,u,q,Q,L){g.prototype.is=u;(Q==null?0:Q.useSink)?VdZ(g,u,q,Q,L):(q=o7f(g,u,q,Q),EYk(q,u));return g};
VdZ=function(g,u,q,Q,L){f_h();var E=_.r(function(y){return l_S(g,u,y,Object.assign({},Q,{getTemplate:q}),L)},"o");
E.debugName=u;a_q(E,u);return E};
WiS=function(g){return!r0u.has(g)};
YeT=function(g,u,q,Q){function L(){if(!e){for(var G=new Set(TAk),R=_.N(E.behaviors),H=R.next();!H.done;H=R.next()){H=H.value;for(var l=_.N(Object.getOwnPropertyNames(H)),d=l.next();!d.done;d=l.next()){d=d.value;var F=void 0,V=(F=Object.getOwnPropertyDescriptor(H,d))==null?void 0:F.value;V&&V instanceof Function&&(!f[d]||_.w("polymer_forward_method_killswitch"))&&G.add(d)}}R=_.N(Object.entries(Object.getOwnPropertyDescriptors(g.prototype)));for(H=R.next();!H.done;H=R.next())l=_.N(H.value),H=l.next().value,
l=l.next().value,l.value instanceof Function&&G.add(H);e=G}return e}
var E=cQf({is:u,disableElementRegistration:!1,getTemplate:q,providers:Q==null?void 0:Q.providers,reactivityMode:Q==null?void 0:Q.reactivityMode},g);if((Q==null?0:Q.allowedProps)||(Q==null?0:Q.allowedPropsFromBehaviors)){var y,v;E.allowedProps=[].concat(_.na((y=Q.allowedProps)!=null?y:[]),_.na((v=Q.allowedPropsFromBehaviors)!=null?v:[]))}var J=MzT(E,g);u=J.observedAttributes;var f={};q=_.N(E.reactiveSchemas);for(Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,Q.type==="signal")f[Q.propertyKey]={readOnly:Q.readOnly},
Q.readOnly&&(f[BWq(Q.propertyKey)]={readOnly:!0});else if(Q.type==="compute"||Q.type==="computeWithMethod"||Q.type==="redux")f[Q.propertyKey]={readOnly:!0};var t=E.reactiveSchemas.length,e;return{ctor:function(G,R){G=new J(G);G.beforeReady=R.beforeReady;return G},
props:f,observedAttributes:u,getInitialMethods:L,getPropsToForwardBeforeRegister:function(){for(var G=[],R=new Set,H=_.N(hab),l=H.next();!l.done;l=H.next())l=l.value,G.push([l,l!=="observers"&&l!=="properties"]),R.add(l);H=_.N(Object.keys(f));for(l=H.next();!l.done;l=H.next())l=l.value,G.push([l,f[l].readOnly]),R.add(l);H=L();l=_.N(Object.keys(Object.getOwnPropertyDescriptors(g.prototype)));for(var d=l.next();!d.done;d=l.next())d=d.value,!WiS(d)||H.has(d)||R.has(d)||(G.push([d,!1]),R.add(d));G.push(["allowedProps",
!0]);return G},
getPropsToForwardBeforeReady:function(G){var R=[];G=_.N(Object.keys(G));for(var H=G.next();!H.done;H=G.next()){H=H.value;var l=L();WiS(H)&&!l.has(H)&&R.push([H,!1])}G=_.N(E.reactiveSchemas.slice(t));for(H=G.next();!H.done;H=G.next())H=H.value,H.type!=="compute"&&H.type!=="computeWithMethod"&&H.type!=="redux"&&H.type!=="signal"||R.push([H.propertyKey,H.type==="signal"?H.readOnly:!0]);return R},
shouldForwardProp:WiS,shouldLog:Qs}};
_.T=function(g,u,q,Q){var L,E,y=(E=(L=Q)==null?void 0:L.mode)!=null?E:0;Q!=null||(Q={});var v;(v=Q).reactivityMode!=null||(v.reactivityMode=0);return y===1?XiT(g,u,q,Object.assign({},Q,{useSink:!0}),YeT):XiT(g,u,q,Object.assign({},Q,{useSink:y===2}))};
_.Te=function(){return function(g,u,q,Q){var L,E,y=(E=(L=Q)==null?void 0:L.mode)!=null?E:2;Q!=null||(Q={});var v;(v=Q).reactivityMode!=null||(v.reactivityMode=0);if(y===0)throw Error("Xg`"+y);return VdZ(g,u,q,Q,y===1?YeT:void 0)}};
_.hr=function(g){return _.w("force_all_poly_si_batches")&&g||document.documentElement.hasAttribute("use-signals")?!0:!g||_.w(g+"_holdback_enabled")&&_.w("kevlar_polysi_holdback")?!1:_.w(g)};
Y9=function(g){return g?g.icon?g.icon.iconType.toLowerCase():g.customThumbnail?"member":"":""};
OzT=function(g){if(!g)return"";g=_.N(g);for(var u=g.next();!u.done;u=g.next())if((u=u.value)&&u.liveChatAuthorBadgeRenderer&&(u=Y9(u.liveChatAuthorBadgeRenderer))&&u!=="verified")return u;return""};
Kiq=function(g,u){if(!g)return null;var q;return((q=g.find(function(Q){return Q&&Q.liveChatAuthorBadgeRenderer?Y9(Q.liveChatAuthorBadgeRenderer)===u:!1}))==null?void 0:q.liveChatAuthorBadgeRenderer)||null};
_.zaT=function(g){var u=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;g=XHb(g);u=XHb(u);var q=Kbb(g.hex);u=Kbb(u.hex);var Q=u[0]/255;var L=u[1]/255,E=u[2]/255,y=Math.max(Q,L,E),v=Math.min(Q,L,E),J=0,f=0,t=.5*(y+v);y!=v&&(y==Q?J=60*(L-E)/(y-v):y==L?J=60*(E-Q)/(y-v)+120:y==E&&(J=60*(Q-L)/(y-v)+240),f=0<t&&t<=.5?(y-v)/(2*t):(y-v)/(2-2*t));Q=[Math.round(J+360)%360,f,t];q=xrZ(q,u);for(g=BAK(g.hex);q<4.5;){g=Q[2]>=.5?g.darker((4.5-q)/2):g.brighter((4.5-q)/2);q=g.toString();
L=TXF(q);if(!L.length)throw Error("Zd`"+q);q=L;q=xrZ(q,u)}return g.hex()};
xrZ=function(g,u){g=_.AAJ(g);u=_.AAJ(u);return(Math.max(g,u)+.05)/(Math.min(g,u)+.05)};
_.Oi=function(g){return"#"+("000000"+(g&16777215).toString(16)).slice(-6)};
_.nYm=function(g){for(var u=0,q=0;q<g.length;q++)u=g.charCodeAt(q)+((u<<5)-u);g="#";for(q=0;q<3;q++)g+=("00"+(u>>q*8&255).toString(16)).slice(-2);return g};
kjF=function(g){g=(g||"").split(":");g.length===1&&g.unshift("yt-icons");g[1]=g[1].toLowerCase();return g};
qLb=function(g,u){var q=(u=u===void 0?!1:u)?Sek:oYF,Q=u?Urb:gpb;g.getIconNames().forEach(function(L){L=u?L:L.substring(L.indexOf(":")+1);g.name==="yt-icons"?uOu.add(L):L.includes("-filled")?q.add(L):Q.add(L)})};
KE=function(g,u,q,Q){q=q===void 0?!1:q;Q=Q===void 0?!1:Q;var L,E,y;return _.D(function(v){if(v.nextAddress==1)return v.yield(QUS,2);if(Q)return v.return(uOu.has(g));L=q?Sek:oYF;E=q?Urb:gpb;return u?(y=g.includes("-filled")?g:g.concat("-filled"),v.return(L.has(y))):v.return(E.has(g))})};
_.x9=function(g){if(LTM(g))return g.toString();var u=EpF.get(g);if(u)return u;u=g.toLowerCase();var q="yt-icons",Q=u.replace(/_/g,"-");switch(g){case "MY_CHANNEL":u="account_circle";break;case "ADD_TO_LIBRARY":u="add";break;case "ALERT_WARN_RED":u="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":u="person_music";break;case "BLOCK_USER":u="block";break;case "CAPTIONS":u="closed_caption";break;case "CLOSED_CAPTION":q="av";u="closed-caption";break;case "COLLECTION":q="maps";u="layers";break;case "CONTACT":q=
"icons";u="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":q="yt-studio-system-icons";u=Q.split("creator-studio-")[1];break;case "DISMISSAL":u="close";break;case "DO_NOT_DISTURB":u="block";break;case "DOGFOOD":q="icons";u="pets";break;case "DRAFT":u="paper_corner_folded";
break;case "EMPTY_LIKE":u="like_outline";break;case "EXIT_APP":u="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":u=Q;break;case "GAMES":q="ytg";u="my-games";break;case "GO_TO_PAGE":u="arrow-forward";break;case "GROUP":q="social";break;case "HIDE":u="not_interested";break;case "INPUT_COMPONENT":q="icons";u="settings-input-component";break;case "KIDS_BLOCK":u="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":q="ytg";u="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":q=
"ytg";u="membership-post-purchase";break;case "MULTIVIEW":u="screen_multi_view";break;case "MY_LOCATION":q="maps";u=Q;break;case "NOTIFICATIONS_INBOX":u="NOTIFICATIONS";break;case "NEXT":u="chevron_right";break;case "OFFLINE":u="power-settings-new";break;case "PAUSE":q="miniplayer";break;case "PAYMENT":q="icons";break;case "PHONE_DOWNLOAD":u="phone_download";break;case "PREMIUM_STANDALONE":q="yt-logos";u="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":q="yt-logos";u="premium_standalone_cairo";
break;case "QUESTION_ANSWER":u="question_answer";break;case "REDEEM":q="icons";u="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":u="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":u="library_add";break;case "SCHOOL":q="yt-sys-icons";u="creator_academy";break;case "SETTINGS_LIGHT":u="settings_applications";break;case "SETTINGS_MATERIAL":u="settings";break;case "SEARCH_HISTORY":u="watch_history";break;case "SHOPPING_BAG":u="bag";break;case "SOCIAL":case "PEOPLE":q=
"yt-icons";u="people";break;case "STAFF_PICK":q="ytg";u="spotlight";break;case "START_DVR":u="add";break;case "STOP_DVR":q="av";u="stop";break;case "TAB_LIKED":u="like";break;case "TAB_INBOX":u="mail";break;case "TERMS_OF_SERVICE":q="icons";u="description";break;case "TRENDING":u="fire";break;case "UNBLOCK_USER":u="remove";break;case "UNPLUGGED_DARK_THEME":q="image";u="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":u="live";break;case "UNPLUGGED_SPORTS":q="ytu";u="visibility-off";break;
case "VIDEOS":q="av";u="play-circle-filled";break;case "YOUTUBE":q="yt-logos";u="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":q="yt-logos-ext";u="yt-logo-red-updated";break;case "YOUTUBE_LOGO":q="yt-logos-ext";u="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":q="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":q="shorts";u=Q;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":q="yt-sys-icons";u="youtube_improve_tv";break;case "OUTLINE_BAG":q=
"yt-sys-icons";u="bag";break;case "QUEUE_PLAY_LAST":q="yt-sys-icons";u="list_queue_last";break;case "SLASH_CIRCLE_LEFT":u="slash_circle_left";break;case "SPEED_1_POINT_2X":u="1_point_2x";break;case "SPEED_1_POINT_5X":u="1_point_5x";break;case "SPEED_1_POINT_8X":u="1_point_8x";break;case "SPEED_POINT_2X":u="point_2x";break;case "SPEED_POINT_5X":u="point_5x";break;case "SPEED_POINT_8X":u="point_8x";break;case "SPEED_1X":u="1x";break;case "SPEED_2X":u="2x";break;case "TAB_BOOKMARK":u="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":q="yt-sys-icons";u="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":q="yt-sys-icons";u="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":q="yt-sys-icons",u="tic_tac_toe"}u=q+":"+u;EpF.set(g,u);return u};
LTM=function(g){var u;_.w("kevlar_use_wil_icons")?u=!!_.Bk().resolve(_.B$).resolveIcon({iconName:g.toString()}):u=!1;return u};
_.nE=function(g,u,q,Q){q=q===void 0?{}:q;Q=Q===void 0?!1:Q;q===null&&(q={});var L=_.U_("kevlar_command_handler_command_banlist");L=_.N(L);for(var E=L.next();!E.done;E=L.next())if(E=g?g.hasOwnProperty(E.value):void 0,E)return!1;L=_.c(g.commandMetadata,_.S_);return Q&&L!=null&&L.url?!1:!u.disableCommandHandlerOverride&&_.ze.instance?(Q=_.ze.instance,q.form||(q.form={element:u}),q.form.element||(q.form.element=u),!q.clickedVisualElement&&u.visualElement&&(q.clickedVisualElement=u.visualElement),Q.resolveCommand(g,
q),!0):!1};
Pfu=function(g,u){g=k9(g);for(var q=_.N(g.visibilityMonitorKeys||[]),Q=q.next();!Q.done;Q=q.next())u.unobserveByKey(Q.value);g.visibilityMonitorKeys=void 0};
SP=function(g,u){if(_.j_()){if(_.w("kevlar_vimio_use_shared_monitor"))NKh(g,u.data);else if(!NKh(g,u.data))return;var q=u.data,Q=sUJ(q);if(_.w("enable_client_ve_spec_logging"))Pfu(g,u.observer);else{var L=k9(g);L.trackedParams&&L.trackedParams!==Q&&Pfu(g,u.observer)}L=k9(g);!q||L.data&&L.data===q||(L.data=q);ypM(g,u);L.trackedParams=Q}};
ypM=function(g,u){var q=u.observer;if(!q&&_.w("web_skip_missing_vimio_observer")){var Q,L;_.Io(new _.Ji("VisibilityObserver is not defined.",g.tagName,g.trackedParams,(Q=u.data)==null?void 0:Q.trackingParams,(L=u.data)==null?void 0:L.loggingDirectives))}else{var E=u.layer,y=u.visibilityCallback||function(){},v=u.prescanCallback,J=k9(g);
Q=[];u.showOption&&Q.push(q.observe(g,function(){u.skipLogging&&u.skipLogging()||_.o5().reportShown(J,void 0,E,7);y(!0)},u.showOption));
u.hideOption&&Q.push(q.observe(g,function(){_.o5().reportHidden(J,void 0,E,7);y(!1)},u.hideOption));
u.prescanOption&&v&&Q.push(q.observe(g,function(){v()},u.prescanOption));
J.visibilityMonitorKeys=Q}};
NKh=function(g,u){g=k9(g);if(g.visualElement&&!u)return!0;if(!u)return!1;var q=!1;if(_.w("enable_client_ve_spec_logging")){var Q,L;q=!!((Q=u.loggingDirectives)==null?0:(L=Q.clientVeSpec)==null?0:L.uiType)}Q=sUJ(u);if(!Q&&!q)return!1;_.w("mweb_component_visibility_logging")&&(g.veContainer||(g.veContainer={}),g.veContainer.trackingParams=Q);if(g.trackedParams&&g.trackedParams===Q)return!1;var E;if(_.w("enable_client_ve_spec_logging")&&((E=g.visualElement)==null?0:E.isClientVe())){var y;E=(y=g.visualElement)==
null?void 0:y.getAsJspb();var v,J,f,t;if(_.r6(E,2)===((v=u.loggingDirectives)==null?void 0:(J=v.clientVeSpec)==null?void 0:J.uiType)&&_.r6(E,3,-1)===((f=u.loggingDirectives)==null?void 0:(t=f.clientVeSpec)==null?void 0:t.elementIndex))return!1}if(_.w("enable_client_ve_spec_logging")){var e,G;!g.visualElement&&((e=u.loggingDirectives)==null?0:(G=e.clientVeSpec)==null?0:G.uiType)&&(v=u.loggingDirectives.clientVeSpec,u=v.uiType,y=v.elementIndex,v=v.clientYoutubeData,g.visualElement=_.Ui(_.gL(),{veType:u,
elementIndex:y,clientYouTubeData:v}))}return!0};
sUJ=function(g){if(g==null?0:g.rendererContext){var u=_.c(g.rendererContext,_.uF);if(u==null?0:u.loggingDirectives)return u.loggingDirectives.trackingParams}return(g==null?0:g.loggingDirectives)?g.loggingDirectives.trackingParams:g==null?void 0:g.trackingParams};
k9=function(g){var u;return(u=g.polymerController)!=null?u:g};
JpK=function(g){_.o5();if(_.V1(qY().JSC$13053_elementShouldLogGesture).bind(qY())(g,4)){vpq(g);var u=Dju(g);phZ.set(g,u)}};
vpq=function(g){phZ.has(g)&&(phZ.get(g).cancel("untrack hover element"),phZ.delete(g))};
Dju=function(g){var u,q=[],Q=!1,L=new _.Ez(function(E,y){fh(g,"mouseenter",_.V1(function(){var v,J,f;return _.D(function(t){if(t.nextAddress==1)return u=(0,_.n0)(),v=jUK(g),q.push(v),J=fUM(g,function(){Q=!0;y(Error("Yg"))}),t.yield(v,2);
if(t.nextAddress!=3)return J&&Qb(J),f=MYF(g),q.push(f),t.yield(f,3);E();_.Wx(t)})}))});
L.then(function(){var E=(0,_.n0)()-u;E=Math.round(E);if(!(500>E||6E5<=E)){var y=g.getScreenLayer?g.getScreenLayer():void 0;y=_.j_(y)||"";var v=tYT(_.o5(),g);_.iH(y,g.visualElement?g.visualElement:_.Lr(v),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:E}})}JpK(g)},function(){EE&&(EE(),EE=null);
Q&&(vpq(g),JpK(g))});
return L};
jUK=function(g){var u;return(new _.Ez(function(q,Q){EE=function(){Q(Error("Zg"))};
u=_.Hv.debounce(_.V1(function(){Qb(L);q()}),1,100);
var L=_.Z1(g,"mousemove",u)})).thenCatch(function(){var q=_.Hv.cancelDebouncedJobMap.get(u);
q&&_.Hv.cancelJob(q)})};
MYF=function(g){var u;return(new _.Ez(function(q,Q){EE=function(){Q(Error("$g"))};
u=fh(g,"mouseleave",_.V1(function(){q()}))})).thenCatch(function(){Qb(u)})};
fUM=function(g,u){return fh(g,"mouseleave",_.V1(u))};
G6u=function(g){eQq&&_.P1.cancel(eQq);eQq=_.P1.run(function(){_.hJ(g,"yt-visibility-refresh");eQq=0})};
$jS=function(g){g=Number(g);return"rgba("+[g>>16&255,g>>8&255,g&255,(g>>24&255)/255].join()+")"};
whK=function(g){if(!g)return!1;if(_.c(g,_.RQK))return!0;var u;if(g=(u=_.c(g,_.zg))==null?void 0:u.commands)for(u=_.N(g),g=u.next();!g.done;g=u.next())if(_.c(g.value,_.RQK))return!0;return!1};
cpZ=function(g){var u=!0;u=u===void 0?!0:u;if(!g.useSignals&&!g.experimentalPropertiesChanged||_.w("experimental_templating_behavior_nopatch_killswitch")){var q=g._propertiesChanged;g._propertiesChanged=function(Q,L,E){u?g.debounceRender():g.doRender();q&&q.call(g,Q,L,E)}}};
H_K=function(g,u){if(g.useSignals||g.experimentalPropertiesChanged)if(_.w("experimental_templating_behavior_nopatch_killswitch"))g.experimentalPropertiesChanged=function(){};
else return;var q=new Set,Q=[g].concat(_.na(g.behaviors));Q=_.N(Q);for(var L=Q.next();!L.done;L=Q.next()){L=L.value;for(var E in L.properties)q.has(E)||(g._addPropertyEffect(E,"function",u),q.add(E))}};
Apq=function(){var g=Polymer.Element,u=g._prepareTemplate;g._prepareTemplate=function(){u.call(this);var q=this.prototype;if(q.experimentalTemplatingInUse&&q.experimentalTemplatingInUse()&&q.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Zf(Error("ah"));else{q=this.template.content.childNodes;for(var Q=q.length-1;Q>=0;Q--){var L=q[Q];L.nodeName!=="STYLE"&&L.nodeName!=="LINK"&&L.nodeName!=="SCRIPT"&&L.nodeName!=="#comment"&&L.remove()}}}};
Z_m=function(g){var u=!0;u=u===void 0?!0:u;Apq();var q=g.ready;g.ready=function(){this._template=null;q.call(this)};
H_K(g,u?g.debounceRender:g.doRender)};
IUb=function(g,u,q){if(q===null||q===void 0)return q;var Q=OfZ(g.tagName.toLowerCase(),u,function(){throw Error("Vb");});
if(Q===null)return q;Q=lUq[Q];var L;if((L=Q.isUnwrappable)==null?0:L.call(Q,q)){if(Q.unwrap)return Q.unwrap(q);throw Error("dh");}return Q.filterString?Q.filterString(g.tagName,u,String(q)):q};
i_M=function(g,u,q){var Q=u[u.length-1]!=="$";q=IUb(g,u,q);Q?g[u]=q:(Q=q==null?null:String(q),rB(g,u.slice(0,-1),Q))};
sE=function(g){_.w("mweb_after_render_to_scheduler")?_.Hv.addJob(function(){try{g()}catch(u){_.NY(u)}},8):(Cfk.length===0&&requestAnimationFrame(function(){setTimeout(function(){var u=Cfk.slice();
Cfk.length=0;u=_.N(u);for(var q=u.next();!q.done;q=u.next()){q=q.value;try{q()}catch(Q){_.NY(Q)}}})}),Cfk.push(g))};
b_m=function(g){if(g){var u=g.component;if(u){var q;u==null||(q=u.events)==null||q.publish("DISCONNECTED");var Q;u==null||(Q=u.onDisconnected)==null||Q.call(u)}var L,E;(L=g.__spec)==null||(E=L.didUnmount)==null||E.call(L);for(u=0;u<g.childNodes.length;u++)b_m(g.childNodes[u])}};
_.yb=function(g,u,q){q===void 0?delete g[u.name]:g[u.name]=q};
_.v1=function(g){var u={androidIncludeFontPadding:!1},q=0,Q=[],L=[],E=[];if(g.simpleText)return u.content=g.simpleText,u;if(g.runs===void 0)return u.content="",u;g=_.N(g.runs);for(var y=g.next();!y.done;y=g.next()){y=y.value;var v=y.text,J=void 0,f=(J=v)==null?void 0:J.length;if(v&&f){Q.push(v);if(y.bold||y.italics||y.strikethrough||y.underline||y.textColor!=null&&y.textColor!==0||y.deemphasize){v=L;J=v.push;var t={startIndex:q,length:f};y.bold&&(t.weightLabel="FONT_WEIGHT_MEDIUM");y.italics&&(t.italic=
!0);y.strikethrough&&(t.strikethrough="LINE_STYLE_SINGLE");y.underline&&(t.underline="LINE_STYLE_SINGLE");y.textColor!=null&&y.textColor!==0?document.documentElement.hasAttribute("dark")?t.fontColor=y.darkModeTextColor||y.textColor:t.fontColor=y.textColor:y.deemphasize&&(document.documentElement.hasAttribute("dark")?t.fontColor=parseInt("ff"+WbF("#aaa").substring(1),16):t.fontColor=parseInt("ff"+WbF("#606060").substring(1),16));J.call(v,t)}y.navigationEndpoint&&(v=E,J=v.push,t={startIndex:q,length:f,
onTap:{innertubeCommand:y.navigationEndpoint}},y.loggingDirectives&&_.yb(t,djq,y.loggingDirectives),J.call(v,t));q+=f}}u.content=Q.join("");u.styleRuns=L.length?L:void 0;u.commandRuns=E.length?E:void 0;return u};
mjZ=function(g){if(g==null||!g.runs)return!0;g=_.N(g.runs);for(var u=g.next();!u.done;u=g.next())if(u=u.value,u.bracket||u.errorUnderline||u.deemphasize||_.c(u,Da)||_.c(u,FTZ))return!1;return!0};
aUF=function(g,u){return function(q){var Q=u.unit;if(Q!==q)throw Error("gh`"+g+"`"+Q+"`"+q);return u}};
pr=function(g){if(!((g==null?0:g.value)&&(g==null?0:g.unit)))return"";switch(g.unit){case "DIMENSION_UNIT_FRACTION":var u="%";break;default:u="px"}g=g.value;u==="%"&&(g*=100);return""+g+u};
VYh=function(g){try{return g()}catch(u){_.Io(u)}};
_.jy=function(g){var u=_.c(g,_.Jo);if(u)return u;if((u=_.c(g,XhJ))&&u.commands)return rpZ(u.commands);if((u=_.c(g,WTf))&&u.commands)return rpZ(u.commands);if((g=_.c(g,TKb))&&g.identifier&&g.command&&(hQh||(hQh=[]),!hQh.includes(g.identifier)))return hQh.push(g.identifier),_.c(g.command,_.Jo)};
rpZ=function(g){if(g.length!==0){var u=[];g=_.N(g);for(var q=g.next();!q.done;q=g.next())(q=_.jy(q.value))&&u.push(q);return{commandExecutorCommand:{commands:u}}}};
_.MY=function(g){var u=g.defaultTarget,q=g.elementConfig,Q=g.elementsCommand,L=g.skipOnClick,E=g.forceNewState,y=g.additionalCommandArgs,v=g.innertubeCommand||_.jy(Q);if(v){g={};var J=YLq(v);Q=J.navigatingCommand;J=J.href;Q&&J?(g.href$=J,O_q(g,Q,J,u),_.w("web_atagconfig_pointerdown")&&KT3(g,Q),E&&(g["force-new-state$"]=!0)):(g.role$="button",g.href$="javascript:void(0);");_.c(v,xjq)&&(g["aria-haspopup$"]=!0);L||(g.onclick=function(f){var t={};if(BKm(f)){var e=(y==null?void 0:y.clickedVisualElement)||
(y==null?void 0:y.getClickedVisualElement)&&y.getClickedVisualElement();e&&(t={clickedVisualElement:e});t=Object.assign({},{form:{element:f.target,event:f,createScreenConfig:t}},y);f.preventDefault();_.fr(v,t)}});
return Object.assign({},q,g)}};
zQJ=function(g){if(g.length){if(g.length===1)return g[0];var u={};_.yb(u,_.zg,{commands:g});return u}};
to=function(g){return g&&g.href$!=="javascript:void(0);"};
YLq=function(g){var u,q=((u=_.c(g,_.zg))==null?void 0:u.commands)||[g];g=_.N(q);for(u=g.next();!u.done;u=g.next()){u=u.value;var Q=void 0,L=void 0;q=(L=_.c((Q=u)==null?void 0:Q.commandMetadata,_.S_))==null?void 0:L.url;_.w("web_remove_web_navigation_endpoint_data")||(Q=void 0,q=q||((Q=_.c(u,npu))==null?void 0:Q.url));if(q&&q!=="/service_ajax"){if(Q=_.nv(q,k6b))return g=_.BT(Q),{navigatingCommand:u,href:g};_.Io(new _.Ji("AttributedString URL could not be sanitized",q))}}return{}};
BKm=function(g){return g.button!==void 0?g.button===0&&!(g.shiftKey||g.altKey||g.metaKey||g.ctrlKey):!(g.shiftKey||g.altKey||g.metaKey||g.ctrlKey)};
O_q=function(g,u,q,Q){q=!KS(q);var L,E,y;if((L=_.c(u,_.kZ))!=null&&L.nofollow||(E=_.c(u,_.l1))!=null&&E.nofollow||(y=_.c(u,_.ao))!=null&&y.nofollow||q)g.rel$="nofollow";var v;u=((v=_.c(u,_.ao))==null?void 0:v.target)==="TARGET_NEW_WINDOW"?"_blank":Q===void 0?"":Q;g.target$=u};
KT3=function(g,u){u.clickTrackingParams&&(g.params={itct:u.clickTrackingParams});g.onpointerdown=function(q){SLq(q)};
g._data=u};
opK=function(g){(g.loggingUrls||[]).forEach(function(u){X7(u.baseUrl,u.attributionSrcMode)})};
SLq=function(g){var u=g.currentTarget;g=VYh(function(){return u.href});
var q=u.params;g&&_.CV(g,q||{},8,!0)};
_.ey=function(g,u){(g=_.jy(g))&&_.fr(g,u)};
_.fr=function(g,u){_.nS(_.Gy,function(q){u?q.resolveCommand(g,u):q.resolveCommand(g)})};
qBT=function(g,u){var q=["yt-core-attributed-string__link"];u!=null&&u.noLinkColor||((u==null?0:u.isOverlay)?q.push("yt-core-attributed-string__link--overlay-call-to-action-color"):q.push("yt-core-attributed-string__link--call-to-action-color"),(u==null?0:u.linkInheritColor)&&q.push("yt-core-attributed-string--link-inherit-color"));q={className:q.join(" "),tabindex$:"0"};var Q=g.onTap||g.onLongPress;if(!Q)return q;var L=Ujb(g);L&&(q["aria-label$"]=L);u=_.MY({elementsCommand:Q,elementConfig:q,skipOnClick:!(u==
null||!u.skipOnClick),forceNewState:!0});g.onLongPress&&(Q=new gnS(function(){var E=_.jy(g.onLongPress);E&&_.Bk().resolve(_.Gy).resolveCommand(E)}),u&&uem(Q,u));
return u||q};
Ujb=function(g){var u,q;return(u=g.onTapOptions)==null?void 0:(q=u.accessibilityInfo)==null?void 0:q.accessibilityLabel};
QJb=function(g){var u=g;g<=16777215&&(u+=parseInt("ff000000",16));return _.jh(u)};
Lx3=function(g){var u=g.isDarkTheme;var q=g.extension;g=g.runColor;var Q=void 0;if(q=q==null?void 0:q.colorMap){u=u?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";q=_.N(q);for(var L=q.next();!L.done;L=q.next())if(L=L.value,u===L.key){Q=L.value;break}}Q==null&&g&&(Q=g);if(Q)return QJb(Q)};
$H=function(g){var u=g.config;var q=g.image;var Q=g.imageConfig;var L=g.imageWrapperConfig;var E=g.run;var y=g.tag;var v=g.textLength;var J=g.startIndex===void 0?0:g.startIndex;g=g.length;J===void 0&&(J=0);E={run:E,startIndex:J,endIndex:g!==void 0?J+g:v,tag:y};q&&(E.image=q);Q&&(E.imageConfig=Q);L&&(E.imageWrapperConfig=L);u&&(E.config=u);return E};
Enu=function(g,u){if(g.weight)return g.weight;switch(g.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 u?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Pym=function(g){switch(g){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"}};
Nzq=function(g){switch(g){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"}};
c1=function(g,u,q){var Q=u;g.content&&q&&(q=g.content.indexOf("\n"),q!==-1&&(Q=Math.min(u,q)));if(!g.content||g.content.length<=Q)u=g;else if(g.attachmentRuns||g.commandRuns||g.decorationRuns||g.styleRuns||g.paragraphStyleRuns){u=RT(g.content,Q);q=Q;var L=g.attachmentRuns;if(L){var E=[];L=_.N(L);for(var y=L.next();!y.done;y=L.next())y=Object.assign({},y.value),y.startIndex===void 0||y.startIndex>=q||(y.length||(y.length=0),y.length+y.startIndex>q&&(y.length=q-y.startIndex),E.push(y));q=E}else q=void 0;
E=sJf(Q,g.commandRuns);L=Q;var v=g.decorationRuns;if(v){y=[];v=_.N(v);for(var J=v.next();!J.done;J=v.next()){J=J.value;var f=_.c(J.textDecorator,wL);if(f&&f.startIndex!==void 0&&!(f.startIndex>=L)){J=Object.assign({},J,{textDecorator:{highlightTextDecorator:Object.assign({},f)}});f=_.c(J.textDecorator,wL);if(!f.length||f.length+f.startIndex>L)f.length=L-f.startIndex;y.push(J)}}L=y}else L=void 0;y=sJf(Q,g.styleRuns);if(v=g.paragraphStyleRuns)for(g=[],v=_.N(v),J=v.next();!J.done;J=v.next()){var t=J.value;
J=Object.assign({},t);if(!(J.startIndex===void 0||J.startIndex>=Q)){if(!J.length||J.length+J.startIndex>Q)J.length=Q-J.startIndex;f=[];var e=void 0,G=void 0;if((e=t)==null?0:(G=e.listGroup)==null?0:G.listItems)for(t=_.N(t.listGroup.listItems),e=t.next();!e.done;e=t.next())if(e=Object.assign({},e.value),!(e.startIndex===void 0||e.startIndex>=Q)){if(!e.length||e.length+e.startIndex>Q)e.length=Q-e.startIndex;f.push(e)}f.length>0&&(J.listGroup||(J.listGroup={}),J.listGroup=Object.assign({},J.listGroup,
{listItems:f}));g.push(J)}}else g=void 0;u={content:u,attachmentRuns:q,commandRuns:E,decorationRuns:L,styleRuns:y,paragraphStyleRuns:g}}else u=Object.assign({},g,{content:RT(g.content,Q)});return u};
sJf=function(g,u){if(u){var q=[];u=_.N(u);for(var Q=u.next();!Q.done;Q=u.next())if(Q=Object.assign({},Q.value),!(Q.startIndex===void 0||Q.startIndex>=g)){if(!Q.length||Q.length+Q.startIndex>g)Q.length=g-Q.startIndex;q.push(Q)}return q}};
RT=function(g,u){var q=u,Q;if(Q=q>0)Q=g.charCodeAt(q-1),Q=Q>=55296&&Q<=56319;Q&&(q=g.charCodeAt(q),Q=q>=56320&&q<=57343);Q&&--u;return g.substring(0,u)};
_.H1=function(g){return(g==null?void 0:g.content)!==void 0};
DXu=function(g){return function(u){var q=g.run;(q.onTap!==void 0||q.onLongPress!==void 0)&&_.c(q,djq)&&SP(u,{data:{loggingDirectives:_.c(q,djq)},observer:_.Bk().resolve(Kw),hideOption:yqk,showOption:vnF,layer:u.layer})}};
puq=function(g){return function(u){for(var q in g)(h_[q]||h_[WL["default"]])(u,q,g[q])}};
JqS=function(g,u,q,Q){for(var L=_.N(g.parts),E=L.next();!E.done;E=L.next()){E=E.value;if(typeof E==="string")throw Error("ih");if(E.start<=u&&q<=E.end){JqS(E,u,q,Q);return}}g.parts.push({data:Q,parts:[],start:u,end:q})};
jJS=function(g,u){for(var q=u.parts.length;q>=0;q--){var Q=u.parts[q],L=u.parts[q-1],E=q===u.parts.length?u.end:Q.start;L=q===0?u.start:L.end;E!==L&&u.parts.splice(q,0,g.slice(L,E));Q&&jJS(g,Q)}};
f$q=function(g){g.sort(function(u,q){if(u.startIndex<q.startIndex)return-1;if(q.startIndex<u.startIndex)return 1;u=u.endIndex-u.startIndex;q=q.endIndex-q.startIndex;return u>q?-1:q>u?1:0})};
_.M4J=function(g){var u=g.thumbnails;if(u){g={sources:[]};u=_.N(u);for(var q=u.next();!q.done;q=u.next()){q=q.value;var Q={};Q.url=q.url;Q.width=q.width;Q.height=q.height;g.sources.push(Q)}return g}};
t4F=function(g,u,q,Q){if(!u)return g.length>=1?g[g.length-1]:null;if(Q)for(var L=_.N(g),E=L.next();!E.done;E=L.next()){E=E.value;var y=void 0,v=(y=E.url)==null?void 0:y.indexOf(Q);if(v!==void 0&&v>=0)return E}Q=_.N(g);for(L=Q.next();!L.done;L=Q.next())if(L=L.value,L.width&&L.height&&(q&&L.width>=u||!q&&L.height>=u))return L;for(u=g.length-1;u>=0;u--)if(q&&g[u].width||!q&&g[u].height)return g[u];return g[0]};
_.epS=function(g){var u;return(g=(u=g.sources)==null?void 0:u[0])?g.width/g.height:0};
_.GCu=function(g){if(g.sources){g=_.N(g.sources);for(var u=g.next();!u.done;u=g.next()){u=u.value;var q=void 0;if((q=u.clientResource)==null?0:q.imageName)return u}}};
RpK=function(g){var u={};g=_.c(g.processor,$Xk);var q=(g=g==null?void 0:(q=g.imageTint)==null?void 0:q.color)?_.jh(g):void 0;q&&(u.color=q);return u};
wuh=function(g){var u;if((u=g.clientResource)!=null&&u.imageColor)return _.jh(g.clientResource.imageColor)};
_.HtK=function(g,u,q,Q,L,E,y){if(!u||u.length===0||u[0].clientResource)return null;if(q&&u[0].url)return u[0].url;Q===void 0&&(Q=!0);if(Q){var v;g=cqh*(L||(g==null?void 0:(v=g.getBoundingClientRect())==null?void 0:v.width)||0)}else{var J;g=cqh*(E||(g==null?void 0:(J=g.getBoundingClientRect())==null?void 0:J.height)||0)}u=t4F(u,g,Q,y);return(u==null?0:u.url)?u.url:(u==null?0:u.imageData)?u.imageData:null};
Aqk=function(g,u,q){q=q?[q]:[];g.opacity&&q.push("opacity: "+g.opacity+";");u&&g.placeholderColor?(g=_.jh(g.placeholderColor),q.push("background-color: "+g+";")):q.push("background-color: transparent;");return q.join(" ")};
ZtS=function(g,u,q,Q,L){var E=["ytCoreImageHost"];u&&E.push(u);q||E.push("ytCoreImageFillParentHeight");Q||E.push("ytCoreImageFillParentWidth");switch(g.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":E.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":E.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":E.push("ytCoreImageContentModeCenter");break;default:E.push("ytCoreImageContentModeScaleToFill")}g.flipForRtlLayout&&E.push("ytCoreImageFlipRtl");
switch(L){case "TOP_START":var y;E.push(((y=document.body)==null?void 0:y.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return E.join(" ")};
I$b=function(g){var u;if(g==null?0:(u=g.clientResource)==null?0:u.imageName){var q;g=(q=g.clientResource)==null?void 0:q.imageName;a:{switch(g){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":q="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":q="yt-logos-ext:yt-logo-updated";break a}q=void 0}return q||l$K.get(g)||g}};
btJ=function(g){return _.w("mweb_wiz_skip_render")?ith(g):CyS(g)};
ith=function(g){return function(u){var q=MZk("wink-root");O9=T9.lastChild;tZF();YIk(q,_.p(g,u))}};
CyS=function(g){var u=u===void 0?!1:u;return function(q){if(!u||!_.w("mweb_skip_keto_to_c3_if_no_data")||q.data!==void 0){var Q=gi(!1);try{var L=q.children;_.w("mweb_render_outside_patch_killswitch")||T9?L?Tp(_.p(g,q,L)):Tp(_.p(g,q)):_.Io(new _.Ji("ketoToC3 called outside of a patch",{tagName:g.TAG_NAME}))}finally{gi(Q)}}}};
dXF=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
mXM=function(g,u){g.onViewportEntered=u;Fxk.observe(g)};
a$3=function(){var g={rootMargin:"10%",threshold:.01};_.w("mweb_enable_set_io_root_to_null_safari")?g.root=null:_.w("mweb_enable_set_io_root_to_body_safari")&&(g.root=document.body);return new IntersectionObserver(function(u,q){u.filter(function(Q){return Q.intersectionRect.height>0}).forEach(function(Q){Q=Q.target;
if(!_.w("mweb_enable_only_update_image_when_connected")||Q.isConnected!==!1){var L;(L=Q.onViewportEntered)==null||L.call(Q);q.unobserve(Q)}})},g)};
V43=function(g,u,q,Q,L){function E(){if(Q){var v=Q.loadedClass,J=Q.notifyOnUnloaded;v&&_.Ao(g,v);J&&g.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function y(){var v=q(u,g);v&&g.getAttribute("src")!==v&&(_.w("mweb_enable_only_update_image_when_connected")&&g.isConnected===!1||v===g.src||(g.src=v),E())}
L=L===void 0?!0:L;g.removeAttribute("src");E();u&&(L?mXM(g,y):y())};
Xuq=function(g,u,q){if(!u)return!1;u=q(u,g);q=g.getAttribute("src");return u&&u===q&&g.complete};
rqS=function(g,u){for(var q in u)q==="className"?g.className=u[q]:(h_[q]||h_[WL.default])(g,q,u[q])};
Tzq=function(g,u,q){q=q===void 0?!1:q;var Q=g.sources!==void 0?g:_.M4J(g);if(Q){var L=u.onload;u.onload=function(f){var t=f.target;q&&t.naturalWidth===120||_.Za(t,"ytCoreImageLoaded");u.notifyOnLoaded&&t.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));L==null||L(f)};
u.targetWidth&&u.preserveWidth&&(u.width=u.targetWidth);u.targetHeight&&u.preserveHeight&&(u.height=u.targetHeight);var E=_.GCu(Q),y=E&&I$b(E),v=RpK(Q);if(y)return(g=wuh(E)||v.color)&&(u.color=g),{type:"icon",iconName:y,config:Object.assign({},u,u.alt?{}:{"aria-hidden$":"true"},{"aria-label$":u.alt,role:"img"})};if(g.sources===void 0){u.alt=g.accessibility&&g.accessibility.accessibilityData&&g.accessibility.accessibilityData.label||u.alt;u.style$=Aqk(g,u.shouldShowPlaceholder,u.style$);var J;u.isPreloaded=
!((J=_.c(g,Wxf))==null||!J.isPreloaded)}u.contentMode&&!Q.contentMode&&(Q.contentMode=u.contentMode);u.className=ZtS(Q,u.className,u.preserveHeight,u.preserveWidth,u.objectPosition);u.loadedClass="ytCoreImageLoaded";return{type:"image",image:Q,config:u}}};
_.lF=function(){var g=_.UT.apply(0,arguments);return _.AM(hpJ,function(u){var q=g.map(function(Q){return Q==null?void 0:Q(u)});
return function(){return void q.forEach(function(Q){return void(Q==null?void 0:Q())})}})};
YB3=function(g,u){var q=u==null?void 0:u.initial;return _.G9(function(){_.mV(!0);return q=g(q)},{equals:u==null?void 0:u.isEqual},"rSlKsc")};
Ot3=function(g,u){if(g===u)return!0;if(g===void 0||u===void 0)return!1;var q,Q,L,E,y,v,J,f;return g.content===u.content&&((q=g.styleRuns)==null?void 0:q.length)===((Q=u.styleRuns)==null?void 0:Q.length)&&((L=g.commandRuns)==null?void 0:L.length)===((E=u.commandRuns)==null?void 0:E.length)&&((y=g.attachmentRuns)==null?void 0:y.length)===((v=u.attachmentRuns)==null?void 0:v.length)&&((J=g.decorationRuns)==null?void 0:J.length)===((f=u.decorationRuns)==null?void 0:f.length)};
xXm=function(g){return g.parts.map(KxK)};
KxK=function(g){if(typeof g==="string")return g;var u=g.data;g=u.image!==void 0&&u.imageConfig!==void 0?_.p("span",{el:_.lF(puq(g.data.imageWrapperConfig))},_.p(_.IT,Object.assign({},{data:g.data.image},g.data.imageConfig))):_.p(g.data.tag,{el:_.lF(DXu(g.data),puq(g.data.config))},g.parts.map(KxK));return JM(g)};
BzT=function(g,u){return g===u?!0:g===void 0||u===void 0?!1:g.noStyleRuns===u.noStyleRuns&&g.noLinkColor===u.noLinkColor&&g.noEndpoints===u.noEndpoints&&g.headerRuns===u.headerRuns&&g.isOverlay===u.isOverlay&&g.linkInheritColor===u.linkInheritColor&&g.userInput===u.userInput&&g.isHeadline===u.isHeadline};
zpT=function(g){return function(){var u,q,Q,L,E,y,v,J,f,t,e,G,R,H;return{ariaLabel:(u=g.ariaLabel)==null?void 0:u.call(g),className:(q=g.className)==null?void 0:q.call(g),ellipsisTruncate:(Q=g.ellipsisTruncate)==null?void 0:Q.call(g),isOverlay:(L=g.isOverlay)==null?void 0:L.call(g),linkInheritColor:(E=g.linkInheritColor)==null?void 0:E.call(g),noEndpoints:(y=g.noEndpoints)==null?void 0:y.call(g),noStyleRuns:(v=g.noStyleRuns)==null?void 0:v.call(g),noLinkColor:(J=g.noLinkColor)==null?void 0:J.call(g),
noPreWrap:(f=g.noPreWrap)==null?void 0:f.call(g),noWrap:(t=g.noWrap)==null?void 0:t.call(g),skipOnClick:(e=g.skipOnClick)==null?void 0:e.call(g),userInput:(G=g.userInput)==null?void 0:G.call(g),headerRuns:(R=g.headerRuns)==null?void 0:R.call(g),isHeadline:(H=g.isHeadline)==null?void 0:H.call(g)}}};
kCh=function(g,u){g=new nnk(g,u);_.Zf(g);throw g;};
SBu=function(g,u,q){var Q=izJ(g);g._numRenders=0;try{var L=Bwm(function(){return _.p(u,Object.assign({},q))})}catch(y){var E=function(v){v.args||(v.args=[]);
v.args.push("Error in web component wrapper");v.args.push(g.tagName.toLowerCase());return v};
_.lD(y instanceof Error?E(y):new nnk("Wiz rendering error",g.tagName.toLowerCase()));throw y;}finally{izJ(Q)}return L};
_.dL=function(g,u,q){function Q(t){var e={};t=_.N(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;var R=void 0,H=void 0,l=void 0,d=_.oM((l=(H=(R=G).getAttribute)==null?void 0:H.call(R,"slot"))!=null?l:"children");if(R=e[d])R.push(G);else if(d in E||d==="children")e[d]=[G]}t=_.N(Object.keys(e));d=t.next();for(G={};!d.done;G={content$jscomp$62:void 0},d=t.next())d=d.value,d!=="children"&&(G.content$jscomp$62=e[d],e[d]=function(F){return function(){return F.content$jscomp$62}}(G));
return e}
q=q===void 0?{}:q;g.debugName=u+" (CoW)";var L,E=(L=q.props)!=null?L:{};CWT.add(u);var y=onq();L=function(){var t=y.apply(this,arguments)||this;t.rawProps={};t.queuingRender=!1;t.dispose=function(){};
t.isWebComponentWrapper=!0;t.isReparenting=!1;t.hasRendered=!1;return t};
_.A(L,y);L.prototype.render=function(){this.hasRendered=!0;for(var t=_.N([].concat(_.na(this.attributes))),e=t.next();!e.done;e=t.next())e=e.value,e.name!=="slot"&&e.name!=="hidden"&&this.removeAttribute(e.name);t=Object.assign({},this.componentProps,this.slotProps);e=_.N(SBu(this,g,t));t=e.next().value;e=e.next().value;!(t[0]instanceof Element)||t.length>1?kCh("Wrapped Wiz components must return a single root element.",u):(t=t[0].tagName.toLowerCase(),t!==u&&kCh("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(t+" !== '"+u),u),this.dispose=e)};
L.prototype.setUpProps=function(){for(var t=this.rawProps,e=this.attributes,G=_.N(Object.keys(E)),R=G.next();!R.done;R=G.next()){R=R.value;var H=void 0;((H=this)==null?0:H[R])&&this[R]!==UXS&&t[R]===void 0&&(t[R]=this[R],(H=Object.getOwnPropertyDescriptor(this.constructor.prototype,R))&&Object.defineProperty(this,R,H))}G=_.N(e);for(R=G.next();!R.done;R=G.next()){H=R.value;R=_.oM(H.name);var l=R==="class"&&!e.getNamedItem("class-name");if(R in E||l)H=H.value===""||H.value==="true"?!0:H.value==="false"?
!1:isNaN(Number(H.value))?H.value:Number(H.value),R!=="class"||t.className?t[R]=H:t.className=H}e={};for(var d in E)E[d]!==_.iF&&E[d]!==gwK&&(t[d]instanceof Function&&kCh("Function props must be configured as STATIC, not SIGNAL.",u),R=_.N(_.jR(t[d],void 0,"thC4wf")),G=R.next().value,R=R.next().value,e[d]=R,t[d]=G);t=_.N([t,e]);this.componentProps=t.next().value;this.setters=t.next().value;this.slotProps=Q(this.childNodes)};
L.prototype.connectedCallback=function(){Fiq.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in E&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
L.prototype.disconnectedCallback=function(){if(!Fiq.has(this)){var t;a:{if(_.Cr)for(t=this;t;){if(_.bF.has(t)){t=!0;break a}t=t.parentElement}t=!1}if(t)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){t=_.N([].concat(_.na(this.attributes)));for(var e=t.next();!e.done;e=t.next()){e=e.value;var G=void 0;e.name==="slot"||e.name==="hidden"&&((G=q.unsafeExternallySettableAttributes)==null?0:G.has("hidden"))||this.removeAttribute(e.name)}}this.innerText="";c8J(this)}}};
L.prototype._setPendingPropertyOrPath=function(){};
L.prototype.notifyPath=function(){};
_.z3.Object.defineProperties(L.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var v=_.N(Object.keys(E)),J=v.next(),f={};!J.done;f={prop$jscomp$109:void 0},J=v.next())f.prop$jscomp$109=J.value,J=void 0,((J=q.legacyPolymer)==null?0:J.forwardHostProps)&&Gjk.has(f.prop$jscomp$109)||Object.defineProperty(L.prototype,f.prop$jscomp$109,{set:function(t){return function(e){var G=this;Fiq.has(this)||(this.setters?$G(function(){var R,H;return void((H=(R=G.setters)[t.prop$jscomp$109])==null?void 0:H.call(R,e))}):(this.rawProps[t.prop$jscomp$109]=e,this.queuingRender&&t.prop$jscomp$109===
"data"&&e!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(f),
get:unK.has(f.prop$jscomp$109)?void 0:function(){return UXS}});
customElements.define(u,L)};
_.q5k=function(g,u){return(g=_.Fh(g,u))?_.BT(_.SO(g)):null};
_.my=function(g){if(g=_.Fh(g,Number.MAX_VALUE,void 0,"width"))return _.SO(g)};
_.Fh=function(g,u,q,Q){Q=Q===void 0?"width":Q;if(!g||!g.length)return null;if(_.w("kevlar_tuner_should_always_use_device_pixel_ratio")){var L=window.devicePixelRatio;_.w("kevlar_tuner_should_clamp_device_pixel_ratio")?L=Math.min(L,_.S8("kevlar_tuner_clamp_device_pixel_ratio")):_.w("kevlar_tuner_should_use_thumbnail_factor")&&(L=_.S8("kevlar_tuner_thumbnail_factor"));Qbb=L}else Qbb||(Qbb=window.devicePixelRatio);L=Qbb;_.w("kevlar_tuner_should_always_use_device_pixel_ratio")?u*=L:L>1&&(u*=L);if(_.w("kevlar_tuner_min_thumbnail_quality"))return g[0].url||
null;L=g.length;if(_.w("kevlar_tuner_max_thumbnail_quality"))return g[L-1].url||null;if(q)for(var E=0;E<L;E++)if(g[E].url.indexOf(q)>=0)return g[E].url||null;for(q=0;q<L;q++)if(g[q][Q]>=u)return g[q].url||null;for(u=L-1;u>0;u--)if(g[u][Q])return g[u].url||null;return g[0].url||null};
PrT=function(){aT.size?setTimeout(function(){Vb(L1M)},0):EwM=0};
L1M=function(){var g=(0,_.n0)(),u=null,q=!1;aT.forEach(function(L){L.loaded=!0;L.loadTime=g;L.pendingPaint=!1;var E=NPu.get(L);E&&E.resolve(g);u=L;q||!L.ftlEligible&&L.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(q=!0)});
var Q;((Q=u)==null?0:Q.markDirty)&&u.markDirty();aT.clear();EwM=0;q&&sbq(g)};
ysh=function(g){aT.add(g);g.pendingPaint=!0;EwM||(EwM=_.Xh(_.Hv,PrT))};
vwF=function(g){g.loaded=!1;g.loadTime=Infinity;var u=NPu.get(g);u&&(u.reject(Error("oh")),NPu.delete(g));g.pendingPaint&&(aT.delete(g),g.pendingPaint=!1)};
_.DeM=function(g){var u=g.indexOf(":");return u===-1?{originalName:g}:{originalName:g.substring(0,u),datasyncId:g.substring(u+1)}};
_.Jsq=function(){return _.D(function(g){if(pJM!==void 0)return g.return(pJM);pJM=new Promise(function(u){var q;return _.D(function(Q){switch(Q.nextAddress){case 1:return _.b8(Q,2),Q.yield(_.rL.open("test-only"),4);case 4:return Q.yield(_.rL.delete("test-only"),5);case 5:_.Xx(Q,3);break;case 2:if(q=_.rt(Q),q instanceof Error&&q.name==="SecurityError")return u(!1),Q.return();case 3:u("caches"in window),_.Wx(Q)}})});
return g.return(pJM)})};
MIh=function(){return _.D(function(g){if(g.nextAddress==1)return g.yield(_.Jsq(),2);if(!g.yieldResult)return g.return(void 0);jbu||(jbu=new flq);return g.return(jbu)})};
tIZ=function(g){var u,q,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:return E.yield(MIh(),2);case 2:u=E.yieldResult;if(!u)throw Error("qh");return E.yield(u.open("yt-player-local-img"),3);case 3:return q=E.yieldResult,E.yield(q.match(g),4);case 4:Q=E.yieldResult;if(!Q)throw Error("rh");return E.yield(Q.blob(),5);case 5:return L=E.yieldResult,E.return(L)}})};
eZZ=function(g,u){for(var q in g)if(g.hasOwnProperty(q)&&u[q])return q;return null};
GYk=function(g){return"stamp"+g.replace("-","_")+"_"};
$eK=function(g){var u=g.match(/\[\[([\w\.]+)\]\]/);if(u&&u.length>1)return u[1];_.Zf(Error("th`"+g));return null};
RZf=function(g){return g===void 0?_.mW("REUSE_COMPONENTS",!1):g||!1};
HQb=function(g,u,q){q&&(u.is?(wJh.has(u)&&(g=wJh.get(u),q=g.listener,delete u[g.property],q.type==="element"&&u.removeEventListener(q.eventName,q.handler),wJh.delete(u)),csq(u)):u.__proto__==HTMLElement.prototype&&(u=new _.Ji("Rendererstamper removed a non custom element","Stamper: "+g+" element: "+(u&&u.nodeName)),_.Io(u)))};
AsK=function(g,u,q,Q){var L=u.node?u.node:u;_.Tr(q).parentNode===L&&(u.removeChild(q),HQb(g,q,Q));if(g=W1.get(q))W1.delete(q),_.Hv.cancelJob(g);q.hidden=!1};
ZQZ=function(g,u,q,Q){var L,E=(L=u.polymerController)!=null?L:u;L=u.loggingStatus;try{L&&(L.isRendererStamper=!0);if(typeof q!=="string"){for(var y in q.attributes)q.attributes[y]===!0?u.setAttribute(y,""):q.attributes[y]===!1?u.removeAttribute(y):u.setAttribute(y,q.attributes[y]);for(var v in q.params)E[v]=q.params[v],u!==E&&Ei(u.localName,v,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(var J in q.properties){var f=q.properties[J];if(f){var t=$eK(f);E[J]=g.get(t);u!==E&&Ei(u.localName,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");
if(J==="on-tap"||J==="on-click"){var e=g.get(t);u.addEventListener("click",e);wJh.set(u,{property:J,listener:{type:"element",eventName:"click",handler:e}})}}else _.lD(new _.Ji("Undefined property binding",J))}}q.classListBinding&&q.classListBinding.split(" ").forEach(function(G){G=G.trim();if(G.startsWith("[[")){if(G=$eK(G))G=g.get(G),(Array.isArray(G)?G:(G!=null?G:"").split(" ")).forEach(function(R){R&&_.Y_(u,R,!0)})}else G&&_.Y_(u,G,!0)});
E.data=Q}finally{L&&(L.isRendererStamper=!1)}if(q=W1.get(u))u.hidden=!1,W1.delete(u),_.Hv.cancelJob(q)};
llq=function(g,u,q,Q){if(u&&u.children&&(q=u.children[q]))if(_.mW("DEFERRED_DETACH"))for(;q&&!W1.has(q);){var L=g,E=u,y=q,v=Q;y.hidden=!0;L=_.M_(_.Hv,AsK.bind(null,L,E,y,v),0);W1.set(y,L);q=q.nextElementSibling}else for(;(y=u.lastElementChild)&&(u.removeChild(y),HQb(g,y,Q),y!=q););};
_.Ty=function(){for(var g=_.UT.apply(0,arguments),u=!0,q=_.N(g),Q=q.next();!Q.done;Q=q.next())if(typeof Q.value!=="string"){u=!1;break}return u?g.join(" ").trim()||void 0:function(){for(var L="",E=_.N(g),y=E.next();!y.done;y=E.next())if(y=y.value,typeof y==="function"&&(y=y()),y)if(typeof y==="string")L+=" "+y;else for(var v in y)if(y.hasOwnProperty(v)){var J=y[v];typeof J==="function"&&(J=J());J&&(L+=" "+v)}L=L.trim()||void 0;return _.mV(L)}};
_.Ilq=function(g,u){return _.BC(g.entities,"markersEngagementPanelSyncEntity",u)};
_.ho=function(g,u){return _.BC(g.entities,"playerStateEntity",u)};
iQu=function(g,u){return _.BC(g.entities,"fantasyWinProbabilityEntity",u)};
CrM=function(g,u){return _.BC(g.entities,"fantasyTeamEntity",u)};
bQ3=function(g,u){return _.BC(g.entities,"fantasyPlayerEntity",u)};
deh=function(g,u){return _.BC(g.entities,"booleanEntity",u)};
F1b=function(g,u){return _.BC(g.entities,"qrCodeEntity",u)};
meK=function(g){return _.BC(g.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
VIq=function(g){var u;return(u=alh[g])!=null?u:"EVENT_SPAN_TYPE_UNKNOWN"};
XJT=function(g){return function(u){var q=VIq(u.type);return q==="EVENT_SPAN_TYPE_UNKNOWN"?g(u):_.WX("event",{type:q,nodepath:u.target instanceof Element?uCJ(u.target):void 0},function(){return g(u)})}};
_.YH=function(g){g&&rw("event")&&(g=XJT(g));return XYf(function(u){var q,Q=(q=g)==null?void 0:q(u);return typeof Q==="boolean"?Q:!0})};
OE=function(g){return function(){return g()?g():void 0}};
hZq=function(g){var u=_.Hk("animated-rolling-character"),q=PHq(),Q=i1(g.character)||i1(g.previousCharacter),L=_.N(qfJ()),E=L.next().value,y=L.next().value;_.I4(function(){if(window.ResizeObserver&&_.w("web_fix_rolling_numbers_zoom_safari")){var v=new _.Kr(function(){var f,t,e=Math.round(((t=(f=u.value.querySelector("div"))==null?void 0:f.getBoundingClientRect().height)!=null?t:0)*100)/100;e&&y(e)},500),J=new ResizeObserver(function(){v.fire()});
J.observe(u.value);return function(){J.disconnect();v.dispose()}}});
qRq(function(){var v=_.w("web_fix_rolling_numbers_zoom_safari")?E:g.marginMultiplier;if(v){var J;(J=q.value)==null||J.cancel();Q?(J=g.previousCharacter?Number(g.previousCharacter)+10:g.rollUp?0:30,g.shouldAnimate||(J-=rsb(g,J))):(J=g.rollUp?0:2,g.shouldAnimate||(J-=g.rollUp?-1:1));u.value.style.marginTop="-"+J*v+"px";g.shouldAnimate?q.value=W1T(u.value,g,J,Q,v):u.value.style.display=g.character?"":"none"}});
return _.p("animated-rolling-character",{el:u,class:"animatedRollingCharacterHost"},$TM(Q,function(){for(var v=[],J=1;J<30;J++)v.push(_.p("div",null,J%10));return _.p(_.U9,null,_.p("div",null,"\u00a0"),v,_.p("div",null,"\u00a0"))},function(){return TPK(g.character)}))};
TPK=function(g){return _.p(_.U9,null,_.p("div",null,"\u00a0"),_.p(_.U9,null,$TM(!g||_.vS(g),function(){return _.p("div",null,"\u00a0")},function(){return _.p("div",null,g)})),_.p("div",null,"\u00a0"))};
W1T=function(g,u,q,Q,L){q=new Animation(new KeyframeEffect(g,[{transform:"translateY(0px)"},{transform:"translateY("+(Q?rsb(u,q):u.rollUp?-1:1)*L+"px)"}],Y5S),document.timeline);u.character?(g.style.display="",q.onfinish=null):q.onfinish=function(){g.style.display="none"};
q.play();return q};
rsb=function(g,u){var q=Number(g.character)+10;if(g.previousCharacter)if(g.character){var Q=Number(g.character),L=Number(g.previousCharacter);g=g.rollUp?L<Q?q:q+10:L<Q?q-10:q}else g=g.rollUp?30:0;else g=g.character==="0"?q:g.rollUp?q-10:q+10;return u-g};
OQm=function(g){return function(u){var q={},Q;for(Q in u){var L=void 0,E=void 0;((L=void 0)==null?0:(E=L.callbacks)==null?0:E[Q])||(q[Q]=u[Q])}return _.p(yZf,null,function(){for(var y in q)u[y]=_.mV(q[y]);u.disableReactiveLogging=!0;return _.p(g,Object.assign({},u))})}};
BPJ=function(g,u,q,Q,L,E,y){q=new Animation(new KeyframeEffect(g,[{transform:"translateY(0px)"},{transform:"translateY("+(E?K1K(u,q,Q,L):Q?-1:1)*y+"px)"}],xeq),document.timeline);u?(g.style.display="",q.onfinish=null):q.onfinish=function(){g.style.display="none"};
q.play();return q};
K1K=function(g,u,q,Q){var L=Number(g)+10;u?g?(g=Number(g),u=Number(u),q=q?u<g?L:L+10:u<g?L-10:L):q=q?30:0:q=g==="0"?L:q?L-10:L+10;return Q-q};
nwq=function(g){var u=PHq(),q=PHq();QpK(function(){u.value=g.numberText;q.value=g.numberValue},[g.numberText]);
var Q=g.fontSizeMultiplier?g.heightPx*g.fontSizeMultiplier:g.heightPx,L=Ygq(function(){if(g.numberText){var y=g.numberText;var v=g.forceRollUp||!q.value||!g.numberValue||q.value<g.numberValue;var J=!!g.shouldAnimate,f=u.value,t=[],e=0,G=0,R=(f?f.replace(/\D/g,"").length:0)-(y?y.replace(/\D/g,"").length:0);f=f?f.split(/(\d)/).filter(Boolean):[];for(y=y.split(/(\d)/).filter(Boolean);R<0;){var H=y[G];t.push({character:H,rollUp:v,marginMultiplier:Q,shouldAnimate:J});G++;i1(H)&&R++}for(;e<R;)H=f[e],t.push({previousCharacter:H,
rollUp:v,marginMultiplier:Q,shouldAnimate:J}),e++,i1(H)||R++;for(;G<y.length;)R=y[G],H=f[e],i1(R)===i1(H)?(G++,e++):i1(R)?(e++,R=void 0):i1(H)&&(G++,H=void 0),t.push({character:R,previousCharacter:H,rollUp:v,marginMultiplier:Q,shouldAnimate:J});v=t}else v=[];return v},[g.numberText]),E=g.numberText?["height: "+Q+"px;",
"line-height: "+g.heightPx+"px;"].join(" "):"";return _.p("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:E,dir:"ltr","aria-hidden":"true"},L.map(function(y){return _.p(zZq,Object.assign({},y))}))};
kYq=function(g){switch(g){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}};
_.S5u=function(g,u){if(!g&&!u)return"medium";g=Math.max(g||0,u||0);return g>=256?"large":g>=96?"medium":"small"};
owq=function(g){switch(g){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
Ueq=function(g){return new KeyframeEffect(g,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
gMh=function(g){return new KeyframeEffect(g,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.xH=function(g){return function(){var u="",q;for(q in g){for(var Q=g[q];typeof Q==="function";)Q=Q();Q!==void 0&&Q!==null&&(u+="; "+q+": "+Q)}return u.length>0?_.mV(u.slice(2)):_.mV()}};
uXM=function(g){switch(g){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"}};
q8m=function(g,u){if(u)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(g)switch(g){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"}};
Nhk=function(g,u,q,Q,L,E,y){var v=QqF(g),J=v.disabled,f=v.iconPosition,t=v.style,e=v.focused,G=function(){return!!l()&&f()==="icon-only"},R=function(){return!!l()&&f()==="icon-only-40"},H=function(){return!!l()&&f()==="icon-with-label"},l=function(){return!!u||!(Q==null||!Q())};
return{type:function(){return t()==="call-to-action-inverse"?"text":t()==="overlay-dark"&&g().type!=="filled"&&g().type!=="tonal"?"tonal":g().type},
shouldFocus:function(){return(e()||(E==null?void 0:E()))&&!J()},
hasIconLeading:function(){return!!l()&&f()==="leading"},
hasIconTrailing:function(){return!!l()&&f()==="trailing"},
hasIconLeadingTrailing:function(){return!!l()&&!!(q||L!=null&&L())&&f()==="leading-trailing"},
hasIconOnly:G,hasIconOnly40:R,hasIconWithLabel:H,iconButton:function(){return G()||R()||H()},
visiblyDisabled:function(){return(J()?"disabled":g().state)==="disabled"||J()},
overrideSmallSizeIcon:function(){return!g().ignoreIconSizeOverride&&Luk(g(),l())},
iconToRender:u?u:function(){return _.p(_.B1,{icon:Q,gradientColor:function(){var d;return(d=g().customColors)==null?void 0:d.iconGradientColor},
size:function(){return EMF(g(),!0,g().ignoreIconSizeOverride)},
active:function(){return g().toggled},
iconFilter:function(){return PKu(g())},
animateIcon:y})},
secondaryIconToRender:q?q:function(){return _.p(_.B1,{icon:L,size:function(){return EMF(g(),!0,g().ignoreIconSizeOverride)},
active:function(){return g().toggled},
iconFilter:function(){return PKu(g())}})}}};
QqF=function(g){return{size:function(){return g().size},
style:function(){return g().style},
focused:function(){return g().focused},
disabled:function(){return g().disabled},
onTap:function(u){var q,Q;return(Q=(q=g()).onTap)==null?void 0:Q.call(q,u)},
alignByText:function(){return g().alignByText},
aTagConfig:function(){return g().aTagConfig},
customColors:function(){return g().customColors},
segmentedPosition:function(){return g().segmentedPosition},
toggled:function(){return g().toggled},
toggleable:function(){return g().toggleable},
accessibilityLabel:function(){return g().accessibilityLabel},
onToggle:function(u){var q,Q;return(Q=(q=g()).onToggle)==null?void 0:Q.call(q,u)},
iconPosition:function(){return g().iconPosition},
oneOffCustomTextWrap:function(){return g().oneOffCustomTextWrap},
disableTextEllipsis:function(){return g().disableTextEllipsis},
disableBackdropFilter:function(){return g().disableBackdropFilter},
tooltipText:function(){return g().tooltipText},
tooltipShape:function(){return g().tooltipShape},
ariaHidden:function(){return g().ariaHidden},
tabIndex:function(){return g().tabIndex},
buttonText:function(){return g().buttonText},
formattedButtonText:function(){return g().formattedButtonText},
animatedTextProps:function(){return g().animatedTextProps},
onClickRateLimitMs:function(){return g().onClickRateLimitMs}}};
Luk=function(g,u){u=(g.iconPosition==="icon-only"||g.iconPosition==="icon-only-40"||g.iconPosition==="icon-with-label")&&u;return!g.segmentedPosition&&u&&g.size==="S"};
EMF=function(g,u,q){switch(g.size){case "XS":return 16;case "S":return!q&&Luk(g,u)?24:16;default:return 24}};
sqK=function(g){switch(g){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"}};
yuT=function(g){switch(g){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"}};
vMJ=function(g){switch(g){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"}};
PKu=function(g){if(g.style==="overlay-dark"&&g.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
zy=function(g){return g&&g.endsWith("px")?Number(g.slice(0,-2)):0};
Juh=function(g,u){var q=_.N(_.mX(function(){var L,E;return(E=g())!=null?E:u==null?void 0:(L=u())==null?void 0:L.text})),Q=q.next().value;
return[function(L){var E=_.G9(function(){var J;return Object.assign({},{location:"bottom",offset:16,delay:1},u==null?void 0:u(),{text:(J=Q())!=null?J:""})},void 0,"IJU38d");
_.bX(function(){var J=E();_.D6(function(){_.Hv.addJob(function(){nr.notify(L,J)},4)})},"WlsgZc");
var y=function(){Dzk(L,E())},v=function(){prK()};
L.addEventListener("mouseenter",y);L.addEventListener("focus",y);L.addEventListener("mouseleave",v);L.addEventListener("blur",v);L.addEventListener("tap",v);_.dB(function(){L.removeEventListener("mouseenter",y);L.removeEventListener("mouseleave",v);L.removeEventListener("focus",y);L.removeEventListener("blur",v);L.removeEventListener("tap",v);prK()})},
q.next().value]};
fRu=function(g,u){if(!nh){var q;TUK(function(){return q=N_f(g,u)});
return q}g.parent=jqS();return N_f(g,u)};
jqS=function(){var g=Si(nh||void 0,LZM);return HBb(g)?void 0:g};
kH=function(g,u){_.fr(g,Object.assign({},u,{forceClickLogging:!0}))};
Mr3=function(g){switch(g){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"}};
eXS=function(g,u){var q=_.jy(g==null?void 0:g.onTap),Q={};q&&(Q.getClickedVisualElement=function(){var L;return trm(g,q,u==null?void 0:(L=u.value)==null?void 0:L.visualElement)});
Q=_.MY({elementsCommand:g.onTap,forceNewState:!0,additionalCommandArgs:Q});return to(Q)?Q:void 0};
G4J=function(g,u,q,Q){kH(g,Object.assign({},{form:{element:u,event:q}},Q))};
$zu=function(g,u,q,Q,L){var E=void 0;return function(y){var v=_.jy(q?g==null?void 0:g.onDisabledTap:g==null?void 0:g.onTap);if(v){var J;E=(J=E)!=null?J:u==null?void 0:u.value;if(v)if(_.w("web_button_vm_click_client_ve_killswitch"))G4J(v,E,y);else{var f;J=trm(g,v,(f=E)==null?void 0:f.visualElement);if(L){G4J(v,L,y,{clickedVisualElement:J,form:{element:L}});return}G4J(v,E,y,{clickedVisualElement:J})}}Q&&Q(y)}};
trm=function(g,u,q){u=u==null?void 0:u.clickTrackingParams;var Q,L;g=g==null?void 0:(Q=g.loggingDirectives)==null?void 0:(L=Q.clientVeSpec)==null?void 0:L.uiType;if(q&&g&&!u)return q};
RXq=function(g){switch(g){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"}};
wrJ=function(g){switch(g){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"}};
cuh=function(g){switch(g){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"}};
HgS=function(g){switch(g){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"}};
_.Sy=function(g){return _.G9(function(){dFq()();return awJ(g)},{debugName:"d8B62c"},"DEXkhd")};
AuJ=function(g,u){return _.BC(g.entities,"engagementToolbarStateEntityPayload",u)};
lRm=function(g){(g=_.Lr(g))&&_.ZgF(g)};
_.ZgF=function(g){var u=_.j_();u&&_.At(u,g)};
IRk=function(g,u,q){_.YJ(g,"yt-open-popup-action",[u,q||g])};
igZ=function(g,u){var q=_.iL(g,"endpoint"),Q=_.iL(g,"action");return(q=Q?Q:q)&&u&&(q=u.navigationEndpointPopupMap[q])&&(g=_.ri(q,g),(q=_.iL(g,"renderer"))&&u.supportedPopups.hasOwnProperty(q))?{openPopupAction:{popupType:u.popupTypeMap[q],popup:g}}:null};
CKK=function(g,u,q,Q){if(Q){var L;q=q==null?void 0:(L=q.data)==null?void 0:L.contents;(L=q instanceof Array&&q.length?q[0]:q)&&(q=_.iL(L,"renderer"))&&Q.supportedPopups.hasOwnProperty(q)&&(u.stopPropagation(),IRk(g,{openPopupAction:{popupType:Q.popupTypeMap[q],popup:L}}))}};
FuF=function(g,u,q,Q){Q=Q===void 0?!1:Q;var L=bg3(u);if(L){L.href&&eh(L.href);var E=u.button;E=E!==void 0?E===0&&!oT(u):!oT(u);L.data&&E&&dzT(g,L,u,q,Q)}};
dzT=function(g,u,q,Q,L){L=L===void 0?!1:L;var E=_.S8("pbj_navigate_limit",-1)===0;mzM(u);_.Bk().resolve(_.xv(mn));var y=u.data;if(Object.keys(y).length!==0)if(!_.w("unplugged_web_disable_actions_for_cec_endpoint")&&_.c(y,_.zg))_.w("endpoint_behavior_command_executor_fix_killswitch")||(q.preventDefault(),q.stopPropagation()),_.xJ(g,[y],g);else if(Q=igZ(y,Q))y.loggingUrls&&y.loggingUrls.forEach(function(J){J.baseUrl&&_.VI(J.baseUrl)}),q.preventDefault(),q.stopPropagation(),IRk(g,Q,u);
else{var v=aRJ(0,u.data,q);if(g=u.getForm)g=g(),v.tempData=v.tempData||{},v.tempData=Object.assign({},v.tempData,g);g=_.C6(q);if(Q=g.find(function(J){return!!J.visualElement}))v.createScreenConfig=v.createScreenConfig||{},v.createScreenConfig.clickedVisualElement=Q.visualElement;
if(!E)if(q.preventDefault(),q.stopPropagation(),_.c(y,_.VrJ)&&!L&&_.ze.instance)_.ze.instance.resolveCommand(y,v);else if(_.w("kevlar_command_handler_formatted_string")&&!L&&_.ze.instance&&Xrm(y))L=g.find(function(J){return!!J.is})||q.target,q={form:Object.assign({},v,{event:q,
element:L,originatingNode:u})},_.ze.instance.resolveCommand(y,q);else{y=_.C6(q);q=[];for(L=0;L<y.length;L++)(E=y[L].is)&&q.push(E);c7q({parents:q.join(","),text:u.innerText},function(){_.hJ(u,"yt-navigate",v)})}}};
ru3=function(g){if(g=bg3(g))mzM(g),VEu(g.href)};
bg3=function(g){g=_.C6(g);for(var u,q=0;q<g.length;q++)if(u=g[q],u.tagName==="A"&&u.classList.contains("yt-simple-endpoint")){if(!u.data)break;return u}return null};
oT=function(g){return g.shiftKey||g.altKey||g.metaKey||g.ctrlKey};
WuS=function(g,u){var q={itct:u.clickTrackingParams};_.w("kevlar_client_side_screens")&&(!_.c(u,_.g$)||_.w("kevlar_exclude_endpoint_killswitch"))&&(q.endpoint=JSON.stringify(u));_.w("enable_unknown_lact_fix_on_html5")&&_.Bk().resolve(_.xv(_.UE))&&(q.lact=_.nB());FSu(q);_.CV(g,q)};
mzM=function(g){g.href&&Object.keys(g.data).length!==0&&WuS(g.href,g.data)};
Xrm=function(g){for(var u=_.N(ThT),q=u.next();!q.done;q=u.next())if(g[q.value])return!1;return!0};
hXb=function(){if(gv)return gv;if(window.lottie)return gv=Promise.resolve(window.lottie);var g=_.A6(_.FR("LOTTIE_URL"));return g?gv=new Promise(function(u,q){var Q=document.createElement("script");Q.addEventListener("load",function(){u(lottie)});
Q.addEventListener("error",function(L){var E="Lottie library failed to load.";L?L.message&&(E+=" Original description: "+L.message,_.iD(L,E)):L=Error(E);_.Io(L);q(L)});
Q.setAttribute("async","");_.jx(Q,g);document.head.appendChild(Q)}):Promise.reject(Error("uh"))};
Y8u=function(){return gv?gv:hXb()};
Ogu=function(g){if(g)switch(g){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.w("kevlar_use_wil_icons"))return g=(g=meK(_.bR().getState()))&&g.animationLightUrl&&g.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:g.animationLightUrl,pathDarkTheme:g.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,g?g:ua.get("LIKE");break;case "LIKE_DELHI_PLAYER":return ua.get("LIKE_DELHI_PLAYER")}};
Kuq=function(g){var u=Ogu(g);if(u)return u;switch(g){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return ua.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return ua.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return ua.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return ua.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return ua.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return ua.get("NOTIFICATION_BELL")}};
xzq=function(g,u){if(!g.closest)return!1;u=!!Ogu(u);return _.FR("ID_TOKEN")&&u?!!g.closest("segmented-like-dislike-button-view-model")||!!g.closest("yt-player-quick-action-buttons"):!1};
zXf=function(g,u){if(!g||Bhf)u=!1;else{var q;if(!(q=xzq(g,u)))if(g.closest)if(q=!_.FR("ID_TOKEN"),g=g.closest("ytd-subscription-notification-toggle-button-renderer-next"),q||!g)q=!1;else{var Q;q=((Q=g.data)==null?void 0:Q.targetId)==="notification-bell"&&u!=="EXPAND_MORE"}else q=!1;u=q}return u};
nMb=function(g){var u,q;return _.D(function(Q){switch(Q.nextAddress){case 1:return _.b8(Q,2),Q.yield(fetch(g),4);case 4:return u=Q.yieldResult,Q.yield(u.json(),5);case 5:return Q.return(Q.yieldResult);case 2:q=_.rt(Q),_.Io(q),_.Wx(Q)}})};
k4u=function(g,u){var q,Q,L;return _.D(function(E){if(E.nextAddress==1)return(q=u?g.pathDarkTheme:g.path)?E.yield(Promise.all([nMb(q),hXb()]),2):E.return();Q=E.yieldResult;L=Q[0];qy.set(q,L);_.Wx(E)})};
oMf=function(g,u,q,Q){function L(y,v){if(u.value===v&&!u.cancelled){for(;g.firstChild;)g.removeChild(g.firstChild);g.classList.add("ytSpecIconShapeHost");y(g,Q)}}
var E=_.S83(_.Bk().resolve(_.B$),q);typeof E==="function"?(u.value=null,L(E,null)):(u.value=E,E.then(function(y){L(y,E)}))};
Uzh=function(g,u){var q=document.createElement("div"),Q=_.ZY(q,function(){return _.p(_.M,{cond:g,then:function(L){return _.p(_.Q0,{data:L,options:u})}})},"ea");
return[q,Q]};
_.Le=function(g,u){if(u){var q={};gcZ.forEach(function(Q){Q=u5Z(u,Q,"--yt-lightsource-");Object.assign(q,Q)});
quq.forEach(function(Q){Q=u5Z(u,Q,"--yt-basic-");Object.assign(q,Q)});
_.x_(g,q)}};
u5Z=function(g,u,q){var Q={};Q[q+_.SZ(u)]=g&&g[u]?_.jh(g[u]):"";return Q};
_.Ny=function(g,u,q){Pe[g]||(Pe[g]={});Pe[g][u]=q};
_.sp=function(g){Pe[g]||(Pe[g]={});return Pe[g]};
Qah=function(g){if(!g)return{};var u=g.foregroundTitleColor,q=g.backgroundColor;g=g.borderColor;var Q="text";g?Q="outline":q&&(Q="filled");return{type:Q,customColors:{color:u?_.jh(u):void 0,backgroundColor:q?_.jh(q):void 0,borderColor:g?_.jh(g):void 0}}};
saT=function(g){var u=g.renderer;var q=g.element;var Q=g.commandController;var L=g.onTapCallback;var E=g.skipCommandHandling;var y=g.overrides;var v=g.forceIcon;var J=g.forceModernIconButton;var f=g.forceDisabled;var t=g.isSubscribe===void 0?!1:g.isSubscribe;var e=g.isPressed===void 0?!1:g.isPressed;var G=g.useButtonSize===void 0?!1:g.useButtonSize;g=LjK(u);t&&(g.style="mono",g.type="filled");v=!u.icon||!v&&u.text?u.icon?u.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:J?"icon-only":"icon-only-40";v==="icon-only-40"&&(g.type="text");var R;J=Object;t=J.assign;G=EcF(u,G);e=!!u.isSelected||!_.w("web_propagate_is_pressed_killswitch")&&!!e;var H=u.isSelected!==void 0;f=f===void 0?u.isDisabled:f;var l=u.text?_.v1(u.text):void 0;var d,F,V,z=((d=u.accessibilityData)==null?void 0:(F=d.accessibilityData)==null?void 0:F.label)||((V=u.accessibility)==null?void 0:V.label);d=z?z:_.iR(u.text);q=PQq(u,q,Q,L,E);Q=NQT(u);Q!=null&&Q.length?(Q=_.MY({innertubeCommand:zQJ(Q),
forceNewState:!0}),Q=to(Q)?Q:void 0):Q=void 0;return t.call(J,{},g,G,{iconPosition:v},y,{focused:!1,toggled:e,toggleable:H,disabled:f,formattedButtonText:l,accessibilityLabel:d,onTap:q,aTagConfig:Q},Qah((R=u.colorData)==null?void 0:R.basicColorPaletteData),{oneOffCustomTextWrap:u.oneOffCustomTextWrap})};
PQq=function(g,u,q,Q,L){return function(E){var y=NQT(g);Q(y,E);if(!L){y=_.N(y);for(var v=y.next();!v.done;v=y.next())kH(v.value,{form:{element:u,event:E},commandController:q})}}};
NQT=function(g){var u=[];g.command&&u.push(g.command);g.serviceEndpoint&&u.push(g.serviceEndpoint);g.navigationEndpoint&&u.push(g.navigationEndpoint);return u};
EcF=function(g,u){if(u)switch(g.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(g.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
LjK=function(g){switch(g.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"}}};
yGm=function(g,u){return typeof g!=="object"||g===null?!1:Object.keys(u).every(function(q){return q in g})};
y0=function(g){return Object.fromEntries(Object.keys(g).map(function(u){return[u,u]}))};
vcJ=function(g,u,q){return xsf(q,function(Q,L){return function(E){var y=_.UT.apply(1,arguments);return yGm(E,g)?L.apply(null,[E[u]].concat(_.na(y))):L.apply(null,[E].concat(_.na(y)))}})};
ve=function(g){return function(u,q){return vcJ(g,u,q)}};
DlK=function(g,u){var q;return(q=_.BC(g,"playlistLoopStateEntity",u))!=null?q:void 0};
pZb=function(g,u){var q;return(q=_.BC(g,"toggleMenuServiceItemEntity",u))!=null?q:void 0};
_.Dc=function(g){return g!=null&&g.watch?g.watch.isTheaterMode:!1};
_.pe=function(g){return g!=null&&g.watch?g.watch.isWatchFullscreen:!1};
_.J9=function(g){return _.JGh(g)?!0:_.jak(g)};
_.JGh=function(g){return g!=null&&g.watch?g.watch.isSwatcherooActive:!1};
_.jak=function(g){return g.watch.isWatchNarrowWidth};
_.fEJ=function(g){return _.Dc(g)||_.pe(g)||_.jak(g)};
_.MoF=function(g){return g.watch.openEngagementPanels};
_.jT=function(g,u){return _.BC(g.entities,"likeStatusEntity",u)};
toS=function(g,u){return _.BC(g.entities,"likeCountEntity",u)};
_.e1m=function(g,u){return _.BC(g.entities,"stringEntity",u)};
GiF=function(g,u){return _.BC(g.entities,"dataFreshnessEntity",u)};
$lq=function(g,u){if(!g)return!1;var q,Q=(q=_.c(g,_.kJ))==null?void 0:q.signal;if(Q&&u.signalEndpointMap)return!!u.signalEndpointMap[Q];var L;if((q=(L=_.c(g,_.fe))==null?void 0:L.request)&&u.continuationEndpointMap)return!!u.continuationEndpointMap[q];for(var E in g)if(u.commandEndpointMap[E])return!0;return!1};
R1S=function(g,u){if(u.streamingEndpointMap)for(var q in g)if(u.streamingEndpointMap[q]&&(g=u.streamingEndpointMap[q]))return g()};
wZm=function(g,u){var q,Q=(q=_.c(g,_.kJ))==null?void 0:q.signal;if(Q&&u.signalEndpointMap&&(q=u.signalEndpointMap[Q]))return q();var L;if((q=(L=_.c(g,_.fe))==null?void 0:L.request)&&u.continuationEndpointMap&&(L=u.continuationEndpointMap[q]))return L();for(var E in g)if(u.commandEndpointMap[E]&&(g=u.commandEndpointMap[E]))return g()};
cGF=function(g){var u={"Content-Type":"application/json"};_.FR("EOM_VISITOR_DATA")?u["X-Goog-EOM-Visitor-Id"]=_.FR("EOM_VISITOR_DATA"):_.FR("VISITOR_DATA")&&(u["X-Goog-Visitor-Id"]=_.FR("VISITOR_DATA"));u["X-Youtube-Bootstrap-Logged-In"]=_.FR("LOGGED_IN",!1);_.FR("DEBUG_SETTINGS_METADATA")&&(u["X-Debug-Settings-Metadata"]=_.FR("DEBUG_SETTINGS_METADATA"));g!=="cors"&&((g=_.FR("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(u["X-Youtube-Client-Name"]=g),(g=_.FR("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(u["X-Youtube-Client-Version"]=
g),(g=_.FR("CHROME_CONNECTED_HEADER"))&&(u["X-Youtube-Chrome-Connected"]=g),(g=_.FR("DOMAIN_ADMIN_STATE"))&&(u["X-Youtube-Domain-Admin-State"]=g));(g=_.FR("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(u["X-YouTube-Lava-Device-Context"]=g);return u};
H$f=function(g,u){u.watchNextResponse||u.reelItemWatchResponse?u.watchNextResponse?g.content=u.watchNextResponse:g.content=u.reelItemWatchResponse:u.playerResponse?g.player=u.playerResponse:u.reelWatchSequenceResponse&&(g.reelSequence=u.reelWatchSequenceResponse)};
My=function(g){return function(){return new g}};
t9=function(g){var u=_.Bk();return function(){return u.resolve(g)}};
_.eT=function(g){if(!g)return null;for(var u=[],q=0;q<g.textSegments.length;q++){var Q=g.textSegments[q];Q.text?u.push(Q):Q.emojiId&&u.push({emoji_id:Q.emojiId})}return{text_segments:u}};
i$J=function(g,u,q,Q,L,E,y){E=E===void 0?[]:E;var v=new _.Gc;v.endpoint=q;if(!q)return _.lD(new _.Ji("handle undefined endpoint",u.tagName)),v;var J=d0M(q);J.length&&(_.xJ(g,J,u,Q),v.actions=J);q.loggingUrls&&q.loggingUrls.forEach(function(t){t.baseUrl&&X7(t.baseUrl,t.attributionSrcMode)});
J=!_.w("web_skip_impression_click_killswitch")&&Q&&Q.impression;if(q.clickTrackingParams&&!AGf(q)&&!Z$T(u)&&!J&&(J=_.gL(),!_.$q(J,u))){var f=u.getScreenLayer&&u.getScreenLayer();f?J.clickCommand(q,null,f):J.clickCommand(q,null)}J=!1;for(f=0;f<E.length;f++)if((0,E[f])(u,q,Q)){J=!0;break}!J&&lEM(q)&&(v.ajaxPromise=IEF(g,u,q,Q,L,y));return v};
Z$T=function(g){var u;return(g=(u=g.data)==null?void 0:u.navigationEndpoint)&&!!g.clickTrackingParams};
AGf=function(g){var u=_.c(g,_.kJ);if(u&&(u=u.signal)&&CQm.indexOf(u)>=0)return!0;for(var q in g)if(b$m.indexOf(q)>=0)return!0;return!1};
lEM=function(g){var u;if(((u=_.c(g,_.kJ))==null?void 0:u.signal)==="CLIENT_SIGNAL")return!1;for(var q in g)if(dlS.indexOf(q)>=0)return!1;g=Object.keys(g);return g.length===1&&g[0]==="loggingUrls"?!1:!0};
h1h=function(g,u,q,Q,L,E,y){var v=_.R9.instance;if(v&&_.wv(v,Q))var J=_.ce(v,Q,L).then(function(t){return(t==null?0:t.data)?t:{data:t}});
else J=g.requestDataForServiceEndpoint(Q,L),_.c(Q,Fjq)||_.c(Q,ml3)||_.c(Q,_.aEb)||_.c(Q,VoJ)||_.Io(new _.Ji("No RequestBuilder for endpoint",Q));var f=_.A9();f.promise.thenCatch(function(){var t=_.iL(Q,"action")||_.iL(Q,"command")||_.iL(Q,"endpoint");t&&(t=Q[t],t.hasOwnProperty("onFailureAction")?_.xJ(u,[t.onFailureAction],q):t.hasOwnProperty("onFailureCommand")&&_.xJ(u,t.onFailureCommand,q));J.cancel("Resolver promise rejected")});
J.then(function(t){if(t){var e=t.error;if(e){if(E&&E.onServerError)E.onServerError(Q,t);f.reject(new _.Ji("Response error",Q,e))}else if(t=t.data)if(e=t.error){if(E&&E.onServerError)E.onServerError(Q,t);f.reject(new _.Ji("Returned error",Q,e))}else{XZh(u,q,t,Q);rGu(t);if(e=bnu(t))for(var G=_.N(e),R=G.next();!R.done;R=G.next()){R=R.value;var H=_.Bk().resolve(_.xv(WjS))||TQF;if(!_.R9.instance||!H.some(function(d){return!!_.c(Q,d)})||_.w("kevlar_response_processor_allowlist_killswitch")){var l=H=void 0;
((l=_.c((H=R)==null?void 0:H.commandMetadata,_.S_))==null?0:l.sendPost)?_.KV(u,[R]):_.xJ(u,[R],q)}}(G=_.c(t==null?void 0:t.frameworkUpdates,Zc))&&y&&y(G);if(E&&E.onSuccess)E.onSuccess(Q,t);f.resolve(new _.la(t,e))}}else f.reject(new _.Ji("Invalid service endpoint provided",Q))},function(t){f.reject(t)});
return f.promise};
rGu=function(g){var u;(g=(u=_.c(g==null?void 0:g.onResponseReceivedCommand,Yuf))==null?void 0:u.continuationItems)&&(g==null?void 0:g.length)===1&&_.c(g[0],O$3)&&_.fW("so_r",void 0,"search_overview_answer")};
IEF=function(g,u,q,Q,L,E){var y;return(y=u.getNetworkManager&&u.getNetworkManager()?u.getNetworkManager():_.Bk().resolve(_.xv(_.qR)))?h1h(y,g,u,q,Q,L,E):_.NY("No network manager.")};
XZh=function(g,u,q,Q){if(q=q.trackingParams||q.loggingDirectives&&q.loggingDirectives.trackingParams){var L;(_.c(Q,_.I9)||_.c(Q,Kj3)||_.c(Q,xlF))&&Q.clickTrackingParams&&(L=_.Lr(Q.clickTrackingParams));var E;Q=(E=u.getScreenLayer)==null?void 0:E.call(u);u=_.gL().graftServerVe(q,L,Q);_.Og(g,"yt-store-grafted-ve-action",[u])}};
_.BQb=function(g){var u=new Image;return new _.Ez(function(q,Q){u.addEventListener("load",function(){q()});
u.addEventListener("error",function(){Q()});
u.src=g})};
z1Z=function(g){return!!g};
ncq=function(g){return!!g};
kib=function(g,u,q){var Q=g.rowIndex;Q!==void 0&&_.Og(g.hostElement,"yt-section-reactive-dismissal",[Q,u,q])};
_.ia=function(g,u,q){g=_.N(g);for(var Q=g.next();!Q.done;Q=g.next()){Q=Q.value;if(Q===u)break;for(var L=_.N(q),E=L.next();!E.done;E=L.next())if(E=E.value,Q.tagName===E||!_.w("web_event_button_role_check_killswitch")&&Q.role==="button"&&E==="BUTTON")return!0}return!1};
_.Ce=function(g,u,q){g=_.N(g);for(var Q=g.next();!Q.done;Q=g.next()){Q=Q.value;if(Q===u)break;for(var L=_.N(q),E=L.next();!E.done;E=L.next())if(Q.id===E.value)return!0}return!1};
_.F0=function(){var g=_.Bk().resolve(_.xv(_.ba));return g?(g=g.getCurrentPage())?_.dv(g):null:null};
_.mH=function(){var g=_.F0();if(!g){var u=_.Bk().resolve(_.xv(_.ba)),q=u?typeof u:"no page manager";u=u?u.getCurrentPage():null;q=new _.Ji("Player is missing when requested.",q,u?u.tagName:"no page");_.Zf(q)}return g};
_.dv=function(g){return g&&g.getPlayer?g.getPlayer():null};
Suh=function(g,u){g={args:{raw_player_response:g}};u&&(g.args=Object.assign({},g.args,u));return g};
ocK=function(g){if(g.args){if(g.args.raw_player_response)return g.args.raw_player_response;if(g.args.player_response)return JSON.parse(g.args.player_response)}};
_.Ulm=function(g,u){var q={url:"/watch?v="+g.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};g.playlistId&&(q.url+="&list="+g.playlistId);g.playerParams&&(q.url+="&pp="+g.playerParams);g={watchEndpoint:g,commandMetadata:{webCommandMetadata:q}};u&&(g.clickTrackingParams=u);return g};
upu=function(){return ghS||!!_.ri("yt.player.Application")};
Qlb=function(){return qVS||!!document.querySelector("link#player-css")};
EhF=function(){function g(){ghS=!0;LoJ.resolve()}
var u,q;return _.D(function(Q){LoJ||(LoJ=new _.KU,upu()?g():(u=document.createElement("script"),u.addEventListener("load",g),q=_.J5(_.FR("PLAYER_JS_URL")),_.jx(u,q),document.head.appendChild(u)));return Q.return(LoJ.promise)})};
NHm=function(){function g(){qVS=!0;PNK.resolve()}
if(!PNK)if(PNK=new _.KU,Qlb())g();else{var u=document.createElement("link");u.id="player-css";u.addEventListener("load",g);var q=_.J5(_.FR("PLAYER_CSS_URL"));_.tB(u,q,"stylesheet");document.head.appendChild(u)}return PNK.promise};
slu=function(){return upu()&&Qlb()?Promise.resolve([]):Promise.all([EhF(),NHm()])};
yYk=function(g,u,q){var Q={args:{}};g&&(Q.args.raw_player_response=g);u&&(Q.args.raw_watch_next_response=u);q&&(Q.args=Object.assign({},Q.args,q));return Q};
JYM=function(g,u,q){var Q=!1;Q=Q===void 0?!0:Q;g=typeof g==="string"?_.a9(document,g):g;var L=vhM+"_"+_.ku(g),E=DnF[L];if(E&&Q)return p3F(u,q)?E.api.loadVideoByPlayerVars(u.args||null):E.loadNewVideoConfig(u),E.api;E=new V0(g,L,u,q,void 0);DnF[L]=E;E.addOnDisposeCallback(function(){delete DnF[E.getId()]});
return E.api};
p3F=function(g,u){return u&&u.serializedExperimentFlags?u.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):g&&g.args&&g.args.fflags?g.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
jlZ=function(){var g=new _.KU;g.resolved=!1;var u=g.resolve;g.resolve=function(q){g.resolved=!0;u(q)};
return g};
MHS=function(g){var u={};fuu().install((u.document_disposed={callback:g},u))};
X0=function(g,u){if(!g&&Math.random()<=_.S8("kevlar_unified_player_logging_threshold")){g=Error("wh`"+(u?u:"Unspecified error"));if(_.w("kevlar_unified_player_throw_errors"))throw g;_.Io(g)}};
_.tHf=function(){var g=_.ri("ytDebugData.callbacks");g||(g={},_.xQ("ytDebugData.callbacks",g));return g};
GdS=function(g,u){var q=_.tHf();if(_.w("web_dd_iu")||e3q.includes(g))q[g]=u};
$nM=function(){return _.D(function(g){return g.return({isLeader:_.d5b(_.bR().getState()),c:_.FR("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.FR("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
R3M=function(){var g;_.D(function(u){if(u.nextAddress==1)return GdS("APP_STATE",$nM),u.yield(_.Bk().resolve(_.rv),2);g=u.yieldResult;GdS("PI",function(){return _.D(function(q){return q.return(g.getVideoStats())})});
_.Wx(u)})};
w33=function(g){return!!g&&g.length>0&&g[0].loggingUrls!=null&&g[0].loggingUrls.length>0};
cY3=function(){var g=_.FR("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(g==null?void 0:g.length)===2?g[1]:null};
Hsf=function(g){if(!g)return[];var u=[];g=_.N(g);for(var q=g.next();!q.done;q=g.next())if(q=q.value,q.loggingUrls){q=_.N(q.loggingUrls);for(var Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q.baseUrl&&u.push(Q.baseUrl)}return u};
AYh=function(g){var u=_.xB(_.KO(_.Qq.location.href));g=_.xB(_.KO(g));return _.w("kevlar_clear_non_displayable_url_params")?u==We(g):We(u)==We(g)};
We=function(g){var u=_.zvu(g);g=g.slice(0);var q=["frags"];_.w("kevlar_hide_pp_url_param")&&q.push("pp");_.w("kevlar_hide_time_continue_url_param")&&q.push("time_continue");q=_.N(q);for(var Q=q.next();!Q.done;Q=q.next())Q=Q.value,g=_.g6(_.xB(g),Q);return _.xB(g)+(u?"#"+u:"")};
Tc=function(g,u){var q=q===void 0?!0:q;u=Number(u)*1E3;var Q=Math.round((0,_.n0)()),L=Q.toString();g={innertubeResponse:g,serverDateTimestampMs:L,lastModifiedTimestampMs:L,expireTimestampMs:(Q+u).toString(),isProcessed:q};if(q=_.FR("INNERTUBE_CONTEXT_CLIENT_NAME"))g.clientName=q;return g};
luk=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Zsq};
Ium=function(g){return!isNaN(g)&&g>0};
CNh=function(){_.w("web_adaptive_repeat_ase")&&isS&&_.H6("applicationStarted",isS)};
_.bsZ=function(){var g=_.JJ(),u=_.j_();u&&g&&_.lH(u,[g],!0)};
Foh=function(g){return g&&dnJ.some(function(u){return g.includes(u)})};
Wof=function(g){var u=_.c(g,_.ao);if(!u)return!1;var q=u.url,Q=u.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!q)return _.Zf(Error("Bh")),!1;if(u.target==="TARGET_NEW_WINDOW"){u={};_.w("resolve_url_parent_tracking_params")&&(!_.h1(q)||Bq(window.location.href,q))&&(u={endpoint:g,itct:g.clickTrackingParams});FSu(u);g=null;try{if(Q){a:{var L=q,E=u;Q=Q===void 0?!1:Q;E&&_.CV(L,E);var y=_.SO(L),v=_.BT(y);L!=v&&_.Wk(Error("$f`"+L));L=v;try{if(Q){v=L;v=faT(v);eh(v);g=_.sP(window,v,"_blank",
"attributionsrc");break a}}catch(G){_.a4(G)}eh(L);g=_.sP(window,y,"_blank")}mnf(_.Bk().resolve(auK),g,q);return!0}}catch(G){_.Zf(G)}_.CV(q,u);u={target:"_blank",noopener:!1};y=window;v=xV(q)?q:_.SO(typeof q.href!="undefined"?q.href:String(q));Q=self.crossOriginIsolated!==void 0;g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);L=u.noreferrer;if(Q&&L&&g==="unsafe-url")throw Error("xe");g=L&&!Q;L=u.target||q.target;E=[];var J=[],f=!1;for(e in u){var t=u[e];switch(e){case "width":case "height":case "top":case "left":E.push(e+
"="+t);break;case "target":break;case "noopener":case "noreferrer":t?J.push(e):(f=!0,J.push(e+"=false"));break;case "attributionsrc":E.push(e+(t?"="+t:""));break;default:E.push(e+"="+(t?1:0))}}var e=L!==void 0&&!["_blank","_self","_top","_parent",""].includes(L);e=Im()&&e;VHh&&Q&&E.length===0&&J.length>0&&!e&&!f?(J.length===2&&(J=["noreferrer"]),_.sP(y,v,L,J[0]),g=X3J()):(e=E.join(","),_.bh()&&y.navigator&&y.navigator.standalone&&L&&L!="_self"?(e=_.oG("A"),u8(e,v),e.target=L,g&&(e.rel="noreferrer"),
((u=u.attributionsrc)||u==="")&&e.setAttribute("attributionsrc",u),u=document.createEvent("MouseEvent"),u.initMouseEvent("click",!0,!0,y,1),e.dispatchEvent(u),e=X3J()):g?(e=_.sP(y,"",L,e),y=_.BT(v),e&&(e.opener=null,y===""&&(y="javascript:''"),y='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+h9(y)+'">',y=QT(y),(u=e.document)&&u.write&&(u.write(EP(y)),u.close()))):((e=_.sP(y,v,L,e))&&u.noopener&&(e.opener=null),e&&u.noreferrer&&(e.opener=null)),g=e);mnf(_.Bk().resolve(auK),
g,q);return!0}e=_.YB(q);e=Foh(e)||q==="https://studio.youtube.com/";if(_.h1(q)&&!Bq(window.location.href,q)||e)eh(q),D0(),_.Gr(q,void 0,void 0,window.top,rYq);else return _.Io(new _.Ji("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",g)),!1;return!0};
_.YVJ=function(g,u){u=u===void 0?0:u;if(!(_.c(g,THk)||_.c(g,h3q)||_.c(g,_.ao)&&_.c(g,_.ao).url))return!1;var q,Q=(q=_.c(g,_.ao))==null?void 0:q.url;q=Q?{externalLinkData:{url:Q}}:null;return _.gL().clickCommand(g,q,u)};
KoK=function(g,u,q,Q,L){L=L===void 0?{}:L;return function(E){var y,v;var J=((y=g.loggingDirectives)==null?0:(v=y.clientVeSpec)==null?0:v.uiType)?_.Yq(g.loggingDirectives.clientVeSpec.uiType):void 0;L.clickedVisualElement||(L.clickedVisualElement=J);J=OsT(g,u);q(J,E);J=_.N(J);for(y=J.next();!y.done;y=J.next()){y=y.value;v=Q;var f=E,t=L;t.form?t.form.event=f:t.form={element:v,event:f};kH(y,t)}}};
OsT=function(g,u){var q=[];u?(g.toggledCommand&&q.push(g.toggledCommand),g.toggledServiceEndpoint&&q.push(g.toggledServiceEndpoint)):(g.defaultCommand&&q.push(g.defaultCommand),g.defaultServiceEndpoint&&q.push(g.defaultServiceEndpoint),g.defaultNavigationEndpoint&&q.push(g.defaultNavigationEndpoint));return q};
xnq=function(g,u){var q=g.toggledStyle||g.style,Q;switch((Q=u?q:g.style)==null?void 0:Q.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"}}};
_.Op=function(){return _.D(function(g){return g.nextAddress==1?g.yield(_.Bk().resolve(_.rv),2):g.return(_.Bk().resolve(BHf)())})};
_.Ke=function(){return _.Bk().resolve(BHf)()};
_.xq=function(){return{lottieEl:void 0}};
z3Z=function(g,u){return g.startsWith(u.uniqueId)};
nhK=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.Op(),2);u=Q.yieldResult;if((q=u)==null||!q.addEventListener)return Be(),Q.return();u.addEventListener("onCueRangeEnter",g);_.Wx(Q)})};
kdK=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.Op(),2);u=Q.yieldResult;if((q=u)==null||!q.removeEventListener)return Be(),Q.return();u.removeEventListener("onCueRangeEnter",g);_.Wx(Q)})};
SVk=function(g){var u,q,Q,L,E;_.D(function(y){if(y.nextAddress==1)return y.yield(_.Op(),2);u=y.yieldResult;if((q=u)==null||!q.addCueRange)return Be(),y.return();Q=_.N(g.timings);for(L=Q.next();!L.done;L=Q.next())E=L.value,u.addCueRange(g.uniqueId+"-"+E,E/1E3,(E+100)/1E3);_.Wx(y)})};
ohM=function(g){var u,q,Q,L,E;_.D(function(y){if(y.nextAddress==1)return y.yield(_.Op(),2);u=y.yieldResult;if((q=u)==null||!q.removeCueRange)return Be(),y.return();Q=_.N(g.timings);for(L=Q.next();!L.done;L=Q.next())E=L.value,u.removeCueRange(g.uniqueId+"-"+E);_.Wx(y)})};
Unf=function(){var g,u,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.Op(),2);g=Q.yieldResult;if((u=g)==null||!u.getPlayerState)return Be(),Q.return();q=g.getPlayerState();return Q.return(q===2)})};
Be=function(){_.Io(new _.Ji("Smartimation player does not exist or is corrupted"))};
g8K=function(){try{var g;return(g=window.CSS)!=null&&g.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(u){return _.Io(new _.Ji("Smartimation CSS.supports threw an error")),!1}};
N1M=function(g,u,q,Q,L){var E=g.playlistId?uBT:q4q;u=u();q=q();L=!!g.videoId&&L()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.qZ(u))return Q8h({data:g,actionType:E,disabled:L},q);if(g.videoId&&Q())return LOK({data:g,actionType:E,disabled:L});switch(u){case "TRANSFER_STATE_UNKNOWN":return LOK({data:g,actionType:E,disabled:L});case "TRANSFER_STATE_FAILED":return g.videoId?E8M({data:g,actionType:E,disabled:L}):PeF({data:g,actionType:E,disabled:L});case "TRANSFER_STATE_COMPLETE":return PeF({data:g,
actionType:E,disabled:L});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Q8h({data:g,actionType:E,disabled:L},q);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return g.videoId?E8M({data:g,actionType:E,disabled:L}):LOK({data:g,actionType:E,disabled:L});default:return LOK({data:g,actionType:E,disabled:L})}};
s8q=function(g,u){var q=g.onTapCommand,Q=_.jy(q);if(g.videoId&&_.c(Q,_.zc))return _.c(Q,_.zc).action=u,q;g.playlistId&&_.c(Q,_.ne)&&(_.c(Q,_.ne).action=u);return q};
LOK=function(g){var u=g.data;var q=g.actionType;g=g.disabled;return{text:yEu,iconType:"OFFLINE_DOWNLOAD",onTap:s8q(u,q.ACTION_ADD),disabled:g}};
Q8h=function(g,u){var q=g.data;var Q=g.actionType;g=g.disabled;var L="OFFLINE_DOWNLOAD";u>=0&&u<=.1?L="OFFLINE_DOWNLOADING_ZERO":u>.1&&u<=.3?L="OFFLINE_DOWNLOADING_TWENTY":u>.3&&u<=.5?L="OFFLINE_DOWNLOADING_FORTY":u>.5&&u<=.7?L="OFFLINE_DOWNLOADING_SIXTY":u>.7&&u<1?L="OFFLINE_DOWNLOADING_EIGHTY":u===1&&(L="OFFLINE_PIN");return{text:v8S,iconType:L,onTap:s8q(q,Q.ACTION_REMOVE_WITH_PROMPT),disabled:g}};
PeF=function(g){var u=g.data;var q=g.actionType;g=g.disabled;return{text:DDS,iconType:"OFFLINE_PIN",onTap:s8q(u,q.ACTION_REMOVE_WITH_PROMPT),disabled:g}};
E8M=function(g){var u=g.data;var q=g.actionType;g=g.disabled;return{text:pBh,iconType:"OFFLINE_DOWNLOAD",onTap:s8q(u,q.ACTION_RETRY),disabled:g}};
_.kq=function(g,u){var q=dFq();return _.G9(function(){q();return awJ(g,[_.mV(u)||""])},{debugName:"LUZslf"},"Z105t")};
JEM=function(g){var u=_.kq(_.tD,function(){return g().videoId}),q=_.kq(_.eb,function(){return g().playlistId});
return function(){return g().videoId?u:g().playlistId?q:_.N(_.jR("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
j8u=function(g){var u=_.kq(GN,function(){return g().videoId}),q=_.kq(_.b1M,function(){return g().playlistId});
return function(){return g().videoId?u:g().playlistId?q:_.N(_.jR(0,void 0,"K4tgOc")).next().value}};
fzm=function(g){var u=_.kq(_.ToT,function(){return g().videoId});
return function(){return g().videoId?u:_.N(_.jR(!1,void 0,"Oaxwcf")).next().value}};
MAF=function(g){var u=_.kq(m5q,function(){return g().videoId});
return function(){return g().videoId?u:_.N(_.jR("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
tAm=function(){return{}};
_.wBh=function(g,u,q){return{submitForm:function(){var Q,L,E,y;return _.D(function(v){if(v.nextAddress==1){Q=erk(g());if(!Q)return v.return();if(Q.onSubmit)return GSb(u),Q.onSubmit(),GSb(q),v.return();if(!Q.submitConfig||!Q.formData)return v.jumpTo(0);Q.disableDuringSubmission&&$Dk(g(),!0);GSb(u);return v.yield(RrT(Q.submitConfig,Q.formData()),3)}L=v.yieldResult;GSb(q);if(((E=L)==null?0:E.submitResult)&&((y=Q)==null?0:y.onSubmitResult))Q.onSubmitResult(L.submitResult);Q.disableDuringSubmission&&$Dk(g(),
!1);return v.return()})},
isValid:function(){var Q=erk(g());if(Q){var L;return!((L=Q.isValid)==null||!L.call(Q))}return!0},
isSubmitting:function(){var Q,L;return!!((Q=erk(g()))==null?0:(L=Q.isSubmitting)==null?0:L.call(Q))}}};
_.ST=function(){if(!cEq){var g=_.N(_.jR(new Map,void 0,"Y1XnBc"));cEq=g.next().value;H4Z=g.next().value}return cEq};
_.AE3=function(g){H4Z(new Map(g))};
erk=function(g){if(g)return _.ST()().get(g)};
RrT=function(g,u){var q;return _.D(function(Q){return Q.nextAddress==1?u?(q=_.Bk().resolve(_.xv(Z4h)))&&g.submitId?Q.yield(q.submitForm(g.submitId,u,lzM,g.params,g.clickTrackingParams),2):Q.return(Promise.reject(Error("Dh"))):Q.return(Promise.reject(Error("Ch"))):Q.return(Q.yieldResult)})};
$Dk=function(g,u){if(g){var q=_.ST();q().set(g,Object.assign({},q().get(g),{isSubmitting:function(){return u}}));
_.AE3(q())}};
GSb=function(g){if(g){var u=_.Bk().resolve(_.Gy);u&&(g=_.jy(g()))&&u.resolveCommand(g)}};
CeK=function(g,u){u=u===void 0?{shouldPersist:!0}:u;return{useUpdatableData:function(q,Q){var L=_.G9(function(){return g(q())},void 0,"Gmrblb"),E=IzM(q,L,Q,u);
_.bX(function(){if(L()!=null){i4K.set(L(),E);var y=L();_.dB(function(){i4K.delete(y)})}},"j4hx9b");
return E},
getData:function(q){var Q;return(Q=i4K.get(g(q)))==null?void 0:Q[0]()},
updateData:function(q,Q){q=g(q);q=i4K.get(q);if(!q)return!1;var L=_.N(q);q=L.next().value;L=L.next().value;Q=Q(q());L(Q);return!0}}};
IzM=function(g,u,q,Q){Q=Q===void 0?{}:Q;var L=_.N(_.mX(function(){var v=g(),J=u();return b4Z(v,J,q,Q)})),E=L.next().value,y=L.next().value;
return[E,function(v){y(v);var J=u();if(Q.shouldPersist&&J!=null){var f,t=(f=q==null?void 0:q.map(function(e){return e()}))!=null?f:[];
_.o9.set(J,[v,t])}}]};
b4Z=function(g,u,q,Q){Q=Q===void 0?{}:Q;if(u==null||!Q.shouldPersist)return g;Q=_.o9.get(u);if(!Q)return g;var L=_.N(Q);Q=L.next().value;var E=L.next().value,y;L=(y=q==null?void 0:q.map(function(v){return v()}))!=null?y:[];
if((E==null?0:E.length)&&(q==null?0:q.length)&&L.some(function(v,J){return v!==E[J]}))return _.o9.remove(u),g;
(q==null?0:q.length)&&_.o9.set(u,[Q,L]);return Q};
FOZ=function(g){var u=_.N(_.jR(!0,void 0,"bKtO6d")),q=u.next().value;u=u.next().value;return dDM(u,function(){var Q=JM(g.children());return _.p(_.M,{cond:q,then:function(){return Q},
else:g.fallback})})};
dDM=function(g,u){var q=mDf,Q=0;mDf={addDep:function(){Q++;$G(function(){g(!1)})},
removeDep:function(){--Q===0&&$G(function(){g(!0)})}};
try{return u()}finally{mDf=q}};
_.Up=function(g){var u=azm(g),q=u.data,Q=u.mapping,L=u.wrapper;u=u.pendingFallback;var E=function(){return VAJ(_.mV(q))},y=function(){var v=E(),J=[];
v=_.N(v);for(var f=v.next();!f.done;f=v.next()){var t=void 0;f=f.value;var e=void 0;for(t in f)if(!(!f).hasOwnProperty(t)){e=t;break}(t=e)&&J.push(t)}return J};
return g.data?_.p(FOZ,{fallback:u},function(){return _.p(_.R4,{each:y},function(v,J){var f=L?function(H){return L(function(){return Q[v](H,J)},t,J)}:function(H){return Q[v](H,J)};
f.debugName||(f.debugName=String(v));if(!Q[String(v)])return document.createComment("");f.componentType!==wB&&XBb(String(v));var t=rEJ(E,v,J);if(_.w("web_add_microtask_to_stamper")&&!WOF.has(String(v))){var e=_.N(_.jR(!1,void 0,"afb1md")),G=e.next().value,R=e.next().value;Promise.resolve().then(function(){WOF.add(String(v));R(!0)});
return _.p(_.M,{cond:G,then:function(){return _.p(f,{data:t})}})}return _.p(f,{data:t})})}):_.p(_.U9,null)};
azm=function(g){var u=g.targetId||T1S(g.children);if(!g.data||!u)return Object.assign({},g,{mapping:g.children});var q="stamper-"+hru++,Q=function(){var v;return(v=typeof g.targetId==="function"?g.targetId(q):g.targetId)!=null?v:q};
u=_.N(Y4m(function(){var v=VAJ(g.data());v.targetId=Q;return v})).next().value;
var L=Object.assign({},(_.Bk().resolve(_.xv(O4m))||{}).replaceableMapping,g.children);if(g.replacementWrapper){var E=L.notificationTextRenderer,y=L.notificationMultiActionRenderer;E&&(L.notificationTextRenderer=function(v,J){return g.replacementWrapper(E({data:v.data},J))});
y&&(L.notificationMultiActionRenderer=function(v,J){return g.replacementWrapper(y({data:v.data},J))})}return Object.assign({},g,{data:u,
mapping:L,wrapper:function(v,J,f){return fRu({targetId:Q,stamperIndex:f},g.wrapper?function(){return g.wrapper(v,J,f)}:v)}})};
rEJ=function(g,u,q){var Q;return _.G9(function(){var L=g()[q()];if(L)Q=L[u];else return _.Io(new _.Ji("Stamper failed to find "+String(u)+" at index "+q()+" of data array of length "+(g().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),Q;return L[u]},void 0,"Su9U8")};
T1S=function(g){g=_.N(Object.keys(g));for(var u=g.next();!u.done;u=g.next())if(u=u.value,KOS.includes(u)||xDS.includes(u)||B1u.includes(u))return!0;return!1};
VAJ=function(g){return g?Array.isArray(g)&&g instanceof Array?g:[g]:[]};
XBb=function(g){if(_.w("web_enable_renderer_logger")){var u;(u=_.Bk().resolve(_.xv(zrf)))!=null&&u.loggingEnabled&&!u.ids.has(g)&&u.ids.add(g)}};
n8u=function(){var g,u;return(u=(g=_.Bk().resolve(_.xv(_.gy)))==null?void 0:g())!=null?u:!1};
S4m=function(g,u){g=g===void 0?kSq:g;switch(u.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},g,{isOpen:u.payload});default:return g}};
UDu=function(g,u){g=g===void 0?o8h:g;switch(u.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},g,{isAllowed:u.payload});default:return g}};
uQf=function(g,u){g=g===void 0?g5f:g;switch(u.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},g,{errorMessage:u.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},g,{title:u.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},g,{privacy:u.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},g,{isDisabled:u.payload});default:return g}};
Qe3=function(g,u){g=g===void 0?qKb:g;switch(u.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},g,{isOpen:u.payload});default:return g}};
E5K=function(g,u){g=g===void 0?LhZ:g;switch(u.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},g,{isFullscreen:u.payload});case "SET_NAVIGATION_BUTTON":var q=u.payload.targetId,Q=Object.assign({},g.navigationButtons);Q[q]=u.payload.button;return Object.assign({},g,{navigationButtons:Q});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},g,{topPanelId:u.payload});case "SET_SECONDARY_HEADER":return q=u.payload.panelId,Q=Object.assign({},g.secondaryHeader),Q[q]=u.payload.secondaryHeader,
Object.assign({},g,{secondaryHeader:Q});default:return g}};
ydM=function(){return $C(Object.assign({},{voiceSearch:PYK,engagementPanel:E5K,bottomSheet:S4m,cinematicSetting:UDu,shorts:jwq,drawerLayout:Qe3,createPlaylist:uQf,locationCollection:P4F,reportChannel:N3m,reportForm:sek},fmh))};
v53=function(g,u){_.Hv.addLowPriorityJob(function(){var q,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:return _.b8(E,2),E.yield(hXb(),4);case 4:return E.yield(fetch(g),5);case 5:return q=E.yieldResult,E.yield(q.json(),6);case 6:Q=E.yieldResult;qy.set(g,Q);requestAnimationFrame(function(){u(Q)});
_.Xx(E,0);break;case 2:L=_.rt(E),_.Io(L),_.Wx(E)}})})};
DO3=function(g){var u={animationConfig:{},listeners:{}},q=function(){g(!0)};
u.listeners.data_failed=q;u.listeners.error=q;u.listeners.data_ready=function(){g(!1)};
return u};
jeh=function(g){var u=g.model;var q=g.subscribed;var Q=g.isOverlay;var L=g.element;var E=g.commandController;var y=g.notificationState;if(q){var v,J;var f=(u==null?void 0:(v=u.buttonStyle)==null?void 0:v.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:u==null?void 0:(J=u.unsubscribeButtonContent)==null?void 0:J.buttonText}else{var t;f=u==null?void 0:(t=u.subscribeButtonContent)==null?void 0:t.buttonText}a:{var e;switch(u==null?void 0:(e=u.buttonStyle)==
null?void 0:e.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":v="S";break a;default:v="M"}}a:if(Q)Q="overlay";else switch(u.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":Q="overlay";break a;default:Q="mono"}a:if(q)var G="tonal";else switch((G=u.buttonStyle)==null?void 0:G.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":G=
"tonal";break a;default:G="filled"}return{style:Q,type:G,state:u.disableSubscribeButton?"disabled":"active",size:v,focused:g.focused,toggled:q,accessibilityLabel:pGk(u,q,y),buttonText:f,iconPosition:u.disableNotificationBell?"none":"leading-trailing",onTap:JdM(u,q,L,E),disableTextEllipsis:!!g.disableTextEllipsis}};
JdM=function(g,u,q,Q){return function(L){if(u){var E;var y=g.disableNotificationBell?_.jy(g==null?void 0:(E=g.unsubscribeButtonContent)==null?void 0:E.onTapCommand):_.jy(g==null?void 0:g.onShowSubscriptionOptions)}else{var v;y=_.jy(g==null?void 0:(v=g.subscribeButtonContent)==null?void 0:v.onTapCommand)}y&&kH(y,{form:{element:q==null?void 0:q.value},commandController:Q});L.stopPropagation()}};
pGk=function(g,u,q){if(u){if(g==null?0:g.disableNotificationBell){var Q;return g==null?void 0:(Q=g.unsubscribeButtonContent)==null?void 0:Q.accessibilityText}switch(q){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var L;return g==null?void 0:(L=g.bellAccessibilityData)==null?void 0:L.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var E;return g==null?void 0:(E=g.bellAccessibilityData)==null?void 0:E.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var y;return g==null?void 0:(y=
g.bellAccessibilityData)==null?void 0:y.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var v;return g==null?void 0:(v=g.bellAccessibilityData)==null?void 0:v.disabledLabel;default:var J;return g==null?void 0:(J=g.unsubscribeButtonContent)==null?void 0:J.accessibilityText}}else{var f;return g==null?void 0:(f=g.subscribeButtonContent)==null?void 0:f.accessibilityText}};
f2q=function(g,u){return _.BC(g.entities,"subscriptionStateEntity",u)};
Mlf=function(g,u){return _.BC(g.entities,"subscriptionNotificationStateEntity",u)};
tlk=function(g,u){return _.BC(g.entities,"upcomingEventReminderStateEntity",u)};
ecq=function(g,u){return _.BC(g.entities,"commentEntityPayload",u)};
Gt3=function(g,u){return _.BC(g.entities,"engagementToolbarSurfaceEntityPayload",u)};
$OS=function(g,u){return _.BC(g.entities,"triStateButtonStateEntityPayload",u)};
RcT=function(g,u){return _.BC(g.entities,"commerceCartCheckoutButtonEntity",u)};
wGk=function(g,u){return _.BC(g.entities,"commandEntity",u)};
cdh=function(g){if(g){switch(g){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":g="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":g="NOTIFICATIONS_OFF";break;default:g="NOTIFICATIONS_NONE"}return g}};
HuM=function(g,u,q){q.subscribed!==u&&((q=q.key)&&_.bU(_.u2("subscriptionStateEntity",q,{key:q,subscribed:u})),g.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:u})),u||_.YJ(g,"yt-unsubscribe-action"))};
ZuZ=function(g){g=_.c(_.jy(g),_.q0);var u,q,Q,L;return(L=_.c(g==null?void 0:(u=g.panelLoadingStrategy)==null?void 0:(q=u.inlineContent)==null?void 0:(Q=q.sheetViewModel)==null?void 0:Q.content,AdK))==null?void 0:L.listItems};
l2q=function(g,u){if(g.onShowSubscriptionOptions&&u&&(g=ZuZ(g.onShowSubscriptionOptions),g!=null&&g.length)){var q=cdh(u);g.forEach(function(Q){Q=_.c(Q,_.Q4);var L,E,y,v,J=Q==null?void 0:(L=Q.leadingImage)==null?void 0:(E=L.sources)==null?void 0:(y=E[0])==null?void 0:(v=y.clientResource)==null?void 0:v.imageName;Q&&J&&(Q.isSelected=J===q)})}};
I2S=function(g,u,q,Q){u&&q?g.style.width=q+"px":!u&&Q&&(g.style.width=Q+"px")};
iuM=function(g,u,q){var Q;(Q=g.lottieEl)==null||Q.goToAndPlay(0);var L;(L=u.lottieEl)==null||L.goToAndPlay(0);_.Ln(_.Hv,function(){var E;(E=q.lottieEl)==null||E.goToAndPlay(0)},300)};
C4b=function(g){return!(g==null||!g.iconName||(g==null?0:g.title))};
buq=function(g,u,q,Q){q&&_.Hv.cancelJob(q);q=_.Hv.addLowPriorityJob(function(){Q(void 0)},5E3);
Q(q);u&&g!==(u.likeStatus==="LIKE")&&u.key&&_.bU(_.u2("likeStatusEntity",u.key,{key:u.key,likeStatus:g?"LIKE":"INDIFFERENT",hadUserInteraction:g}))};
_.dOq=function(g,u){return _.BC(g.entities,"accountLinkStatusEntity",u)};
Fh3=function(g,u){return _.BC(g.entities,"hatsSurveyEntity",u)};
mOZ=function(g,u){return _.BC(g.entities,"hatsSurveyStateEntity",u)};
a2u=function(g,u){return _.BC(g.entities,"quantityIncrementerEntity",u)};
VlK=function(g){switch(g){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}};
XGK=function(g){switch(g){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}};
rdq=function(g){switch(g){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"}};
_.T3f=function(g){var u=_.S8("web_generic_client_event_wait_period ",0);u||(u=3E5);var q=WhS.get(g);!_.w("enable_web_client_experiment_event_timeout_killswitch")&&q&&(0,_.n0)()-q<u||(WhS.set(g,(0,_.n0)()),_.H6("genericClientExperimentEvent",{eventType:g}))};
_.hcM=function(g,u){var q,Q,L,E;a:{var y=g.style;if(y===void 0)y=17;else switch(y){case "LIVE":y=18;break a;default:y=17}}return{type:y,text:u?x5q({seconds:u}):_.iR(g.text),accessibilityText:(q=g.text)==null?void 0:(Q=q.accessibility)==null?void 0:(L=Q.accessibilityData)==null?void 0:L.label,icon:(E=g.icon)==null?void 0:E.iconType}};
YKq=function(g){switch(g){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
Ouq=function(g){if(!g)return"";var u,q=(u=_.Bk().resolve(_.xv(_.gy)))==null?void 0:u(),Q;if(!q&&((Q=g.vibrantColorPalette)==null?0:Q.iconInactiveColor))return f6(g.vibrantColorPalette.iconInactiveColor,"1");var L;return q&&((L=g.darkColorPalette)==null?0:L.iconInactiveColor)?f6(g.darkColorPalette.iconInactiveColor,"1"):g.color?f6(g.color,"1"):g.sampledThumbnailColor?(g=g.sampledThumbnailColor,"rgba("+g.red+","+g.green+","+g.blue+");"):""};
_.EI=function(g,u){if(!g.includes("DATE_PLACEHOLDER"))return g;var q=new Date(0);q.setUTCSeconds(u);return g.replace("DATE_PLACEHOLDER",Khu(q))};
xOT=function(g,u,q){return function(Q){var L=g.command;L&&(kH(L,{form:{element:q}}),u([L],Q))}};
zcF=function(g,u,q,Q,L){return function(E){var y=B3h(g,u);y&&kH(y,{form:{element:q},commandController:Q});L&&E.stopPropagation()}};
B3h=function(g,u){if(g.signInEndpoint&&!_.w("web_subscribe_sign_in_endpoint_killswitch"))return g.signInEndpoint;if(u){if(g.serviceEndpoints)return g.serviceEndpoints[1];if(g.onUnsubscribeEndpoints)return g.onUnsubscribeEndpoints[0]}else{if(g.serviceEndpoints)return g.serviceEndpoints[0];if(g.onSubscribeEndpoints)return g.onSubscribeEndpoints[0]}};
n5q=function(g,u){var q,Q,L,E;u=u&&((q=g.unsubscribeAccessibility)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label)||((L=g.subscribeAccessibility)==null?void 0:(E=L.accessibilityData)==null?void 0:E.label);return g.longSubscriberCountText?[u,_.iR(g.longSubscriberCountText)].filter(function(y){return y}).join(" "):u};
PY=function(g,u){return u||(g==null?0:g.isChannelDelegate)?"disabled":"active"};
ktK=function(g,u){var q;switch((q=g.style)==null?void 0:q.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:PY(g)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:PY(g)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:PY(g,!0)};case "OVERLAY":return u?{style:"overlay",type:"tonal",state:PY(g)}:{style:"overlay",type:"filled",state:PY(g)};default:return u?{style:"mono",type:"tonal",state:PY(g)}:{style:"mono",type:"filled",state:PY(g)}}};
_.N0=function(){for(var g=[],u=_.N(_.UT.apply(0,arguments)),q=u.next();!q.done;q=u.next())if(q=q.value)if(typeof q==="string")g.push(q);else{q=_.N(Object.entries(q));for(var Q=q.next();!Q.done;Q=q.next()){var L=_.N(Q.value);Q=L.next().value;(L=L.next().value)&&g.push(Q)}}return g.join(" ")};
SKm=function(g){switch(g){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
o5b=function(g){switch(g){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
UOT=function(g,u){var q=g.map(function(Q){return Q.toString()});
return _.YH(function(Q){if(q.includes(Q.key)){u&&Q.preventDefault();var L;(L=Q.currentTarget)==null||L.click()}})};
_.sI=function(){return UOT(["Enter"])};
_.gNq=function(){return UOT(["Enter"," "],!0)};
_.y4=function(g){if(g.composedPath)return g.composedPath();if(!g.__composedPath){for(var u=[],q=g.target;q;)u.push(q),q=q.parentNode;u.push(window);g.__composedPath=u}return g.__composedPath};
_.vY=function(g,u,q){g=_.N(g);for(var Q=g.next();!Q.done;Q=g.next()){Q=Q.value;if(Q===u)break;for(var L=_.N(q),E=L.next();!E.done;E=L.next())if(E=E.value,Q.tagName===E||Q.role==="button"&&E==="BUTTON")return!0}return!1};
qXJ=function(g,u){var q,Q=(q=u.observer)!=null?q:_.Bk().resolve(Kw);if(g){q=ujh(g);var L=[];u.showOption&&L.push(Q.observe(g,function(){u.visibilityCallback(!0,g)},u.showOption));
u.hideOption&&L.push(Q.observe(g,function(){u.visibilityCallback(!1,g)},u.hideOption));
u.prescanOption&&u.prescanCallback&&L.push(Q.observe(g,function(){u.prescanCallback()},u.prescanOption));
var E;q.visibilityMonitorKeys=((E=q.visibilityMonitorKeys)!=null?E:[]).concat(L)}};
ujh=function(g){var u;return(u=g.polymerController)!=null?u:g};
_.pn=function(g){return!!_.D7(g)};
_.J7=function(g,u,q,Q,L){return function(E){var y=jqS();_.bX(function(){if(E){QXJ(E,g(),L);var v=LYu(E,g(),u,q,Q,y);_.dB(v)}},"lrewVd")}};
QXJ=function(g,u,q){var Q=ENh(u),L=Pnk(u),E=Q&&vnF,y=L&&yqk;(Q||L)&&qXJ(g,{visibilityCallback:function(v){var J=_.Bk().resolve(_.Gy);v&&Q?(J.resolveCommand(Q,{form:{element:q?g:void 0},disableClickTracking:!0}),Q=ENh(u)):!v&&L&&(J.resolveCommand(L,{form:{element:q?g:void 0},disableClickTracking:!0}),L=Pnk(u))},
showOption:E,hideOption:y})};
LYu=function(g,u,q,Q,L,E){var y=new Map;if(u=_.D7(u)){var v;g=(Q==null?void 0:(v=Q.onTap)==null?void 0:v.value)||g;q=Neu(u,g,q==null?void 0:q.onTap,L,E);g.addEventListener("click",q);y.set("click",q)}return function(){for(var J=_.N(y),f=J.next();!f.done;f=J.next()){var t=_.N(f.value);f=t.next().value;t=t.next().value;g.removeEventListener(f,t)}}};
_.D7=function(g){var u;return(g=(u=_.c(g,_.jJ))==null?void 0:u.onTap)&&_.jy(g)};
ENh=function(g){var u;return(g=(u=_.c(g,_.jJ))==null?void 0:u.onVisible)&&_.jy(g)};
Pnk=function(g){var u;return(g=(u=_.c(g,_.jJ))==null?void 0:u.onHidden)&&_.jy(g)};
Neu=function(g,u,q,Q,L){var E=function(v){_.Bk().resolve(_.Gy).resolveCommand(g,v)},y=function(v){Q&&_.vY(_.y4(v),u,Q)||E(v.target?{form:{element:v.target,
sourceData:g,mutationContext:L}}:void 0)};
q&&(y=function(v){q(v,E)});
return y};
sXb=function(g){switch(g){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}};
y3q=function(g){var u=g.numAvatarsInCluster;switch(g.clusterSize){case "small":return u===2?22:18;case "40":return u===2?24:22;default:return u===2?24:20}};
vNZ=function(g,u){return function(q){var Q=Object.keys(u);_.bX(function(){if(g!=null&&g()){for(var L=_.N(Q),E=L.next();!E.done;E=L.next())E=E.value,q.addEventListener(E,u[E]);_.dB(function(){for(var y=_.N(Q),v=y.next();!v.done;v=y.next())v=v.value,q.removeEventListener(v,u[v])})}},"bXZGfe")}};
DvT=function(g){switch(y3q(g)){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""}};
psq=function(g){switch(g){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""}};
J3T=function(g){switch(y3q(g)){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""}};
jXm=function(g){switch(g){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""}};
foT=function(g){switch(g){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}};
MLM=function(g){return g==="medium"||g==="48"||g==="large"||g==="extra-large"||g==="extra-extra-large"||g==="giant"};
tLh=function(g){return!!((g==null?0:g.includes(3))||(g==null?0:g.includes(5)))};
G5f=function(g){var u=g.data;return{size:eRS(u.avatarImageSize),type:u.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:g.onTap,decorations:g.decorations||[],badgeText:g.badgeText,accessibilityText:g.accessibilityText,avatarButtonCustomClassName:g.avatarButtonCustomClassName,clusterLayoutConfig:g.clusterLayoutConfig}};
eRS=function(g){switch(g){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"}};
$vk=function(g){switch(g){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}};
RRq=function(g){switch(g){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""}};
wsT=function(g){var u=g.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",q,Q=g.avatars&&g.avatars.length>0?(q=_.c(g.avatars[0],_.fn))==null?void 0:q.avatarImageSize:"AVATAR_SIZE_UNKNOWN";q=$vk(Q)||0;if(u){var L,E=(L=g.avatarClusterSize)!=null?L:"AVATAR_SIZE_M";u=$vk(E);var y,v,J=Math.min((v=(y=g.avatars)==null?void 0:y.length)!=null?v:0,4),f;return{avatars:((f=g.avatars)==null?void 0:f.slice(0,4))||[],avatarSizeInPx:q,avatarStackStyle:{width:u+"px",height:u+"px",position:"relative"},avatarStyle:function(e){var G=
y3q({clusterSize:eRS(E),numAvatarsInCluster:J,avatarIndex:e});var R=$vk(E);J===3&&e===2?(R=(R-G)/2,R=(_.FR("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*R):R=void 0;return{position:"absolute",top:J===2&&e===1||J===3&&e===2||J===4&&e>=2?"0":void 0,bottom:J===2&&e===0||J>2&&e<2?"0":void 0,left:J===2&&e===1||J>2&&(e===1||e===3)?"0":void 0,right:J<=3&&e===0||J===4&&(e===0||e===2)?"0":void 0,transform:R?"translateX("+R+"px)":void 0,width:G+"px",height:G+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(e){return{clusterSize:eRS(g.avatarClusterSize),numAvatarsInCluster:J,avatarIndex:e}},
avatarButtonCustomClassName:void 0}}var t;return{avatars:((t=g.avatars)==null?void 0:t.slice())||[],avatarSizeInPx:q,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:RRq(Q),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
c3f=function(g,u,q){return function(){kH(g,{form:{element:u},commandController:q})}};
H7q=function(g){switch(g){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
A3q=function(g){switch(g){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"}};
Z7K=function(g){if("accessibilityText"in g)return g.accessibilityText||"";if("title"in g){var u,q,Q;return((u=g.title)==null?void 0:(q=u.accessibility)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label)||""}if("accessibility"in g){var L,E;return((L=g.accessibility)==null?void 0:(E=L.accessibilityData)==null?void 0:E.label)||""}return""};
loq=function(g){return"inlinePlayerData"in g};
M0=function(g){return new IoM(g)};
i7m=function(g){switch(g){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"}};
Cn3=function(g){switch(g){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}};
b73=function(g){switch(g){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}};
dv3=function(g){return function(u){g&&(g.thumbnailElRef=u.thumbnailElRef,g.thumbnail=u.thumbnail,g.thumbnailOverlays=u.thumbnailOverlays,g.thumbnailSize=u.thumbnailSize)}};
FYm=function(g){switch(g){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
aoK=function(g){var u=_.N(_.jR(!1,void 0,"E6wDDe")),q=u.next().value,Q=u.next().value;_.I4(function(){var L=g==null?void 0:g();if(L){var E=_.Bk().resolve(_.xv(mvq));if(E){var y={triggeringElement:L,onDwellTriggeredFn:function(){Q(!0)},
onDwellEndFn:function(){Q(!1)}};
E.registerElement(y);_.dB(function(){_.t7(E,y)})}}});
return q};
VLF=function(g){if(g.querySelector("img")){var u=g.querySelector("img");u.addEventListener("error",function(){tIZ(u.src).then(function(q){(q=_.o3(q).toString())?u.src=q:u.removeAttribute("src")}).catch(function(){u.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Xs3=function(g,u,q){q?q(u):_.ey(u,g.target?{form:{element:g.target}}:void 0)};
_.eJ=function(g,u,q,Q){return function(L){_.bX(function(){function E(t){t=t.composedPath();t=_.N(t);for(var e=t.next();!e.done;e=t.next()){e=e.value;if(e===L)break;if(e.className.indexOf("HostIsClickableAdComponent")>=0||e.tagName==="A".toString()||e.tagName==="BUTTON".toString())return!0}return!1}
var y=new Map,v,J=(v=g())==null?void 0:v.onTap;if(J){v=function(t){E(t)||Xs3(t,J,u)};
var f=function(t){E(t)||t.key!=="Enter"||Xs3(t,J,u)};
(q==null?0:q())||_.w("enable_web_home_top_landscape_image_layout_level_click")?(L.addEventListener("tap",v),y.set("tap",v)):(L.addEventListener("click",v),y.set("click",v));if(Q==null?0:Q())L.addEventListener("keydown",f),y.set("keydown",f)}_.dB(function(){for(var t=_.N(y),e=t.next();!e.done;e=t.next()){var G=_.N(e.value);e=G.next().value;G=G.next().value;L.removeEventListener(e,G)}})},"D7XqOc")}};
r3S=function(g,u){var q,Q=(q=g.interaction)==null?void 0:q.onTap;if(g=_.MY({elementsCommand:Q,forceNewState:!0,skipOnClick:!0}))return g.onclick=function(L){BKm(L)&&(L.preventDefault(),Q&&Xs3(L,Q,u))},to(g)?g:void 0};
WYf=function(g){switch(g){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
TeM=function(g){switch(g){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"}};
hRq=function(g){switch(g){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"}};
_.YXF=function(g){return _.w("rich_grid_enable_dynamic_offset")&&g?Math.max((g-_.S8("rich_grid_dynamic_offset_anchor_width",1300))/100*_.S8("rich_grid_dynamic_offset_offset_per_100",10),_.S8("rich_grid_dynamic_offset_lower_bound",-60)):0};
O7k=function(g,u){switch(u){case 4:return 16;case 1:return g<528?16:g<1024?32:48;case 2:return(g>=528?16:8)/2;case 3:return(g<528?16:g<1024?32:48)+(g>=528?16:8)/2;default:return 0}};
KYh=function(g){var u=g.originalContainerWidth;var q=g.sizing;var Q=g.standardUnit;if(g.isCompactList&&u<528)return 1;switch(q){case "STANDARD":return Q;case "COMPACT":return Q+1;case "EXTRA_COMPACT":return _.w("web_responsive_extra_compact_2x")?Q*2:_.w("web_responsive_current")?Q===1?2:Q%2===0?Q/2*3:Q+2:Q<4?Q*2:Math.ceil(Q*3/2);case "MINI":return Q>1?Q*2:3;default:return Q}};
BeJ=function(g){var u=g.containerWidth;var q=g.peek;var Q=g.gutter;var L=g.numItems;g=g.ignoreMaxWidthLimit;u=q?Math.max((u-q-Q*L)/L,0):Math.max((u-Q*(L-1))/L,0);return g?u:Math.min(u,xvK)};
_.Gk=function(g){var u=g.containerWidth;var q=g.hasPeek;var Q=g.sizing;var L=g.marginSettings;var E=g.isCompactList;var y=g.enableFullBleedForSingleCol;var v=g.standardUnitMinWidth;Q=Q||"STANDARD";q=!!q;g=u>=528?16:8;var J=q?u>=528?48:24:0;L=O7k(u,L);var f=Math.max(u-L*2,0);v=_.w("kevlar_disable_min_width_override")?void 0:v;v=Math.min(Math.max(Math.floor((f-J+g)/((v!=null?v:zRu)+_.YXF(u)+g)),1),6);var t=(y=!!y&&v===1)||v===1&&Q!=="STANDARD";q=q||t?f:Math.min(f,(xvK+g)*v-g);Q=KYh({originalContainerWidth:u,
sizing:Q,standardUnit:v,isCompactList:E});return{itemWidth:BeJ({containerWidth:q,peek:J,gutter:g,numItems:Q,ignoreMaxWidthLimit:t}),gutter:g,maxContainerWidth:q,numItems:Q,margin:y?0:L,contentMargin:O7k(u,1),typographyBump:BeJ({containerWidth:q,peek:J,gutter:g,numItems:v,ignoreMaxWidthLimit:t})>400&&!(E&&u<528),standardUnit:v}};
$y=function(g){switch(g){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.nNu=function(g){if(g){var u;if((u=g.responsiveContainerConfiguration)==null?0:u.responsiveSize)return $y(g.responsiveContainerConfiguration.responsiveSize);if(g.layoutSizing)switch(g.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"}}};
k5S=function(g){if(g.fullbleed)return 1;switch(g.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
uLu=function(g,u,q,Q,L,E,y,v,J){a:if(g===4&&Q==="LOCKUP_CONTENT_TYPE_SOURCE")var f=1;else switch(g){case 3:f=1;break a;default:f=0}var t=SXb(g,Q);a:switch(g){case 4:E=!!(E&&E<100);break a;default:E=!1}a:switch(g){case 3:case 4:var e=Q==="LOCKUP_CONTENT_TYPE_CHANNEL"||Q==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:e=!1}return{metadataOnThumbnail:t,isOverlay:v||t,isCard:oN3(Q,y),sizing:u!=null?u:"STANDARD",typographyBump:q!=null?q:!1,isTiny:E,isCentered:e,isCollection:Uvu(Q),arrangement:f,addMarginForFullbleed:g===
1&&Q!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:g===1&&Q==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:ggk(Q,L,J),disableRounding:g===5||oN3(Q,y)||g===1&&Q==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Uvu(Q)?2:0,useLegacyTypography:!(J==null||!J.useLegacyTypography),useRichGridLegacyTypography:!(J==null||!J.useRichGridLegacyTypography)&&!_.w("web_enable_typography_bump"),compactMetadata:f===0&&Q==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:J==null?void 0:J.onFocusEffect,titleMaxLines:Q==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
Uvu=function(g){switch(g){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}};
oN3=function(g,u){if(u&&g==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(g){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
SXb=function(g,u){if(u==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(g){case 5:return!0;case 4:return!1;default:return!1}};
ggk=function(g,u,q){if(u&&(q==null||!q.alwaysRespectPodcastShowAspectRatio||g!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(g){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}};
_.Rs=function(g){if(g){var u;return((u=_.Bk().resolve(_.xv(_.gy)))==null?0:u())?g.darkThemeImage:g.image}};
LQu=function(g,u,q,Q,L,E){if(L&&E&&u==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:L,height:E};if(!q)return{};L=q.size;q=q.allowFullWidth;if(u==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&q)return{fullWidth:!0};if(L===void 0)return{};switch(g){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:L,height:L};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:L,height:1/qlf*L};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:L*
Qiu,height:L};default:return(Q==null?0:Q.height)&&(Q==null?0:Q.width)?Q.width/Q.height>1?{maxWidth:L*Qiu}:{maxWidth:L}:{maxWidth:L}}};
EgM=function(g){var u;return g&&((u=_.Rs(g.themedImage))!=null?u:g.image)};
PzJ=function(g){var u;return g==null?void 0:(u=g.sources)==null?void 0:u[0]};
Nlf=function(g){switch(g){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"}};
_.siq=function(g){if(g)return"content-id-"+g};
yvJ=function(g){switch(g.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"}}};
vgb=function(g){var u=_.wy.currentPageSubTypeSelector(_.CE().getState())||"";return g?g+u:""};
Dhh=function(g){switch(g){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
JvS=function(g){var u=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],q=_.N(_.jR(void 0,void 0,"JrqNsb")),Q=q.next().value,L=q.next().value,E=_.N(_.jR(void 0,void 0,"rWytse"));q=E.next().value;var y=E.next().value;E=_.N(_.jR(void 0,void 0,"DHRqxe"));var v=E.next().value,J=E.next().value;return{touchFeedbackEvents:{pointerUpEvent:Q,pointerDownEvent:q,pointerLeaveEvent:v},touchFeedbackOnPointerUp:_.YH(function(f){pAZ(_.y4(f),u)||(L(f),y(void 0),J(void 0))}),
touchFeedbackOnPointerDown:_.YH(function(f){g==null||g(f);pAZ(_.y4(f),u)||(y(f),L(void 0),J(void 0))}),
touchFeedbackOnPointerLeave:_.YH(function(f){pAZ(_.y4(f),u)||(J(f),y(void 0),L(void 0))})}};
pAZ=function(g,u){u=u===void 0?[]:u;u=[].concat(_.na(u),["BUTTON".toString()]);g=_.N(g);for(var q=g.next();!q.done;q=g.next()){q=q.value;for(var Q=_.N(u),L=Q.next();!L.done;L=Q.next())if(q.tagName===L.value)return!0}return!1};
jiK=function(g){switch(g){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"}};
fZM=function(g){return g.scrollHeight-g.offsetHeight>1};
MSF=function(g,u){var q;return c1(g,((q=g.content)==null?void 0:q.length)||0,!u)};
GqF=function(g,u,q,Q,L,E){if(!u||tSu){var y;return c1(g,((y=g.content)==null?void 0:y.length)||0,!0)}u=Q.value;if(!q.value||!u||!g.content)return g;q=0;Q=g.content.length;y=0;ebq||(ebq=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var v=ebq;for(L=L*E*v;q<=Q;)E=Math.floor(q+(Q-q)/2),v=c1(g,E)||g,u.firstChild&&(u.firstChild.textContent=v.content),u.scrollHeight>L?Q=E-1:(y=E,q=E+1);return c1(g,y)};
$hf=function(g,u){var q,Q;return(((q=g.content)==null?void 0:q.length)||0)>(((Q=u.content)==null?void 0:Q.length)||0)};
Rbh=function(g,u,q,Q,L,E){var y=_.Hk("truncated-text-content"),v=_.Hk("truncated-text-content"),J=_.Hk("button"),f=_.Hk("button"),t=_.Hk("button"),e=_.Bk().resolve(_.cY),G=_.N(_.mX(function(){return MSF(g(),L())})),R=G.next().value,H=G.next().value;
G=_.N(_.mX(function(){return $hf(g(),R())}));
var l=G.next().value,d=G.next().value,F=null;_.bX(function(){function V(){if(y.value&&J.value&&t.value){var W=E()?g():GqF(g(),L(),y,v,u(),q());H(W);requestAnimationFrame(function(){if(y.value&&J.value&&t.value){var x=fZM(y.value)||$hf(g(),W);d(x);if(!Q()){var k=fZM(y.value),LZ=q(),sb=y.value,Rm=J.value,M3=t.value,tT=e==="rtl";if(sb&&Rm){var mJ=Rm.offsetLeft;tT&&(mJ=sb.offsetWidth-Rm.offsetWidth-Rm.offsetLeft);if(x){x=Rm.offsetWidth;Rm=sb.offsetWidth;var hT=k?Rm-x-70:mJ-70;LZ="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
LZ+"rem,\n      #000 "+LZ+"rem,\n      #000 100%), linear-gradient(\n      to "+((tT?"left":"right")+",\n      #000 0px,\n      #000 "+hT+"px,\n      transparent "+(k?Rm-x:hT+70)+"px)");sb.style.setProperty("-webkit-mask-image",LZ);sb.style.setProperty("mask-image",LZ)}else sb.style.setProperty("-webkit-mask-image",""),sb.style.setProperty("mask-image","");k?tT?(M3.style.setProperty("left","0"),M3.style.setProperty("right","unset")):(M3.style.setProperty("left",""),M3.style.setProperty("right","0")):
tT?(M3.style.setProperty("left","unset"),M3.style.setProperty("right",mJ+"px")):(M3.style.setProperty("left",mJ+"px"),M3.style.setProperty("right","unset"))}}}})}}
var z,O;(z=F)==null||(O=z.stop)==null||O.call(z);z=new _.Kr(V,17);V();F=z},"KjwIxd");
_.I4(function(){H(MSF(g(),L()));d($hf(g(),R()));var V=function(){ebq=void 0;var O,W;(O=F)==null||(W=O.fire)==null||W.call(O)};
if(window.ResizeObserver){var z=new ResizeObserver(V);z.observe(y.value);_.dB(function(){var O,W;(O=F)==null||(W=O.stop)==null||W.call(O);z.disconnect()})}else window.addEventListener("resize",V),_.dB(function(){var O,W;
(O=F)==null||(W=O.stop)==null||W.call(O);window.removeEventListener("resize",V)})});
return{isTruncated:l,displayText:R,contentRef:y,hiddenRef:v,placeholderTruncationTextRef:J,hiddenTruncationTextRef:f,truncationTextRef:t}};
wA3=function(g){return{content:g!=null?g:""}};
cvf=function(g){return _.jy(g.onTap)||_.D7(g.rendererContext)};
Hxq=function(g){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:g.overflowMenuA11yLabel,onTap:function(u){u.preventDefault();u.stopPropagation();if(g.overflowMenuOnTap){var q=_.MY({elementsCommand:g.overflowMenuOnTap,forceNewState:!0});if(q==null?0:q.onclick)q.onclick(u)}}}};
_.HY=function(g,u,q,Q,L){Q=Q===void 0?{}:Q;if(!L||Math.random()<5E-4){u=u||null;q=q||null;g=g instanceof Error?g:new _.Ji(g);if(g.args)for(var E=_.N(g.args),y=E.next();!y.done;y=E.next())y=y.value,y instanceof Object&&(Q=Object.assign({},y,Q));Q.category="H5 Ads Control Flow";u&&(Q.slot=u?"slot:  "+u.slotType:"");q&&(Q.layout=q?"layout:  "+q.layoutType:"",Q.layoutId=q.layoutId);L&&(Q.known_error_aggressively_sampled=!0);g.args=[Q];_.Io(g)}};
_.Avq=function(g,u){u=_.FJ(u);_.YJ(g,"yt-open-popup-action",[u,g])};
_.A7=function(g,u){_.Avq(g,_.I7(u))};
lZT=function(g){if(!g)return"";if(Zxq[g])return Zxq[g];Z7||(Z7=_.oG("A"));Z7.href!==g&&u8(Z7,g);var u=Z7.pathname;Zxq[g]=u.startsWith("/")?u:"/"+u;return Zxq[g]};
IZM=function(){var g=lZT(window.location.href);if(g==="/")return"home";if(g.startsWith("/results"))return"search";if(g.startsWith("/watch"))return"watch";if(g.startsWith("/shorts"))return"shorts";if(g.startsWith("/hashtag"))return"hashtag";if(g.startsWith("/create_channel"))return"create_channel";if(g.startsWith("/@")||g.startsWith("/user/")||g.startsWith("/channel/"))return"channel";if(g.startsWith("/experiments"))return"experiments";if(g.startsWith("/sponsor_channel"))return"sponsorship";if(g.startsWith("/select_site"))return"settings";
if(g.startsWith("/locate"))return"locate";if(g.startsWith("/redeem"))return"redeem";if(g.startsWith("/musicpremium")||g.startsWith("/premium")||g.startsWith("/red"))return"premium";if(g.startsWith("/paid_memberships"))return"paid_memberships";if(g.startsWith("/oops"))return"oops";if(g.startsWith("/clip"))return"clip";var u;return(l2==null?void 0:(u=l2.response)==null?void 0:u.page)==="404"?"404":g.startsWith("/feed/history")?"history":g.startsWith("/feed/library")?"library":g.startsWith("/feed/subscriptions")?
"subscriptions":g.startsWith("/feed/trending")?"trending":g.startsWith("/feed/news_destination")?"news":g.startsWith("/playlist")?"playlist":g.startsWith("/minor_moment")?"minor_moment":g.startsWith("/playable/")||g.match("^/playables/(?!saved).")?"mini_app":g.startsWith("/playables")?"playables":g.startsWith("/create/live/join")?"open_in_app":g.startsWith("/feed/explore")?"explore":"browse"};
_.i2=function(){var g=l2==null?void 0:l2.response,u=g==null?void 0:g.endpoint;if(!u)return(g==null?void 0:g.page)==="watch"?"watch":IZM();var q;g=(q=_.c(u==null?void 0:u.commandMetadata,_.S_))==null?void 0:q.webPageType;q=!1;if(g&&!ixq.includes(g))switch(g){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 Q;return((Q=_.c(u==null?void 0:u.commandMetadata,_.S_))==null?0:Q.url)&&lZT(_.c(u.commandMetadata,_.S_).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var L;return(u=(L=_.c(u,_.kZ))==null?void 0:L.browseId)?CzS[u]||"browse":"browse";default:q=!0}if(_.c(u,_.Is)||_.c(u,bxJ))return"sponsorship";L=lZT(window.location.href);if(L.startsWith("/experiments"))return"experiments";if(L.startsWith("/create_channel"))return"create_channel";
if(_.c(u,_.ao)&&L.startsWith("/shorts"))return"shorts";if(_.c(u,_.ao)&&L.startsWith("/watch"))return"watch";q&&(u=new _.Ji("Unsupported mWeb page type",{pathname:L,webPageType:g}),_.Zf(u));return"browse"};
Cn=function(g,u,q,Q){return g&&u?g!==q||u!==Q?(_.HY(Error("Mh"),void 0,void 0,{"stored-slot":g,"stored-layout":u,"latest-slot":q,"latest-layout":Q}),!1):!0:!1};
FQM=function(g,u,q){return g({targetId:u},function(Q){return q.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},Q,{contents:[q.continuationItems?_.c(q.continuationItems[0],dhS):{}]}):q.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},Q,{header:q.continuationItems?q.continuationItems[0]:void 0}):Object.assign({},Q,{contents:q.continuationItems?q.continuationItems:[]})})};
mhb=function(g,u,q,Q){if(u=u.trackingParams){var L,E=(L=q.getScreenLayer)==null?void 0:L.call(q);q=_.j_(E);L=_.JJ(E);if(q&&L){var y=_.Lr(u);_.w("combine_ve_grafts")?g.graftServerVe(u,L,E):_.cC(q,L,y);Q==null||Q(y)}}};
VSf=function(g){var u;return((u=aZh.get(g))==null?void 0:u.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
WQk=function(g,u){var q={type:u.slotType,controlFlowManagerLayer:XAF.get(u.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};u.slotEntryTrigger&&(q.entryTriggerType=u.slotEntryTrigger.triggerType);u.slotPhysicalPosition!==1&&(q.slotPhysicalPosition=u.slotPhysicalPosition);if(g){q.debugData={slotId:u.slotId};if(g=u.slotEntryTrigger)q.debugData.slotEntryTriggerData=rvf(g);g=u.slotFulfillmentTriggers;q.debugData.fulfillmentTriggerData=[];g=_.N(g);for(var Q=g.next();!Q.done;Q=g.next())q.debugData.fulfillmentTriggerData.push(rvf(Q.value));
u=u.slotExpirationTriggers;q.debugData.expirationTriggerData=[];u=_.N(u);for(g=u.next();!g.done;g=u.next())q.debugData.expirationTriggerData.push(rvf(g.value))}return q};
rvf=function(g,u){var q={type:g.triggerType};u!=null&&(q.category=u);g.triggeringSlotId!=null&&(q.triggerSourceData||(q.triggerSourceData={}),q.triggerSourceData.associatedSlotId=g.triggeringSlotId);g.triggeringLayoutId!=null&&(q.triggerSourceData||(q.triggerSourceData={}),q.triggerSourceData.associatedLayoutId=g.triggeringLayoutId);return q};
TlT=function(g,u,q,Q){u={opportunityType:u};g&&(Q||q)&&(Q=_.Jk(Q||[],function(L){return WQk(g,L)}),u.debugData=Object.assign({},q&&q.length>0?{associatedSlotId:q}:{},Q.length>0?{slots:Q}:{}));
return u};
hbq=function(g){return b2(g.opportunityAdapterMap).concat(b2(g.triggerAdapterMap)).concat(b2(g.fulfillmentAdapterFactoryMap)).concat(b2(g.slotAdapterFactoryMap)).concat(b2(g.layoutRenderingAdapterFactoryMap))};
b2=function(g){var u=[];g=_.N(g.values());for(var q=g.next();!q.done;q=g.next())q=q.value,q.isAdsControlFlowEventListener&&u.push(q);return u};
Fg=function(g){var u=g.slotId,q=g.slotType,Q=g.slotPhysicalPosition;return u===void 0?new dy("Cannot construct a slot due to the missing id.",{adSlotMetadata:g}):q===void 0?new dy("Cannot construct a slot due to the missing type.",{adSlotMetadata:g}):Q===void 0?new dy("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:g}):{slotId:u,slotType:q,slotPhysicalPosition:Q,managerLayer:"external",adSlotLoggingData:g.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Ylb}};
OxM=function(g){var u=g.layoutId,q=g.layoutType;return u===void 0?new ml("Cannot construct a layout due to the missing id.",{adLayoutMetadata:g}):q===void 0?new ml("Cannot construct a layout due to the missing type.",{adLayoutMetadata:g}):{layoutId:u,layoutType:q,managerLayer:"external",adLayoutLoggingData:g.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Ylb,interactionLoggingAdsClientData:{}}};
V4=function(g,u){if(u&&(KQu(u.viewableCommand)||KQu(u.endOfSessionCommand))){var q=xhM(u==null?void 0:u.viewableCommand);u=xhM(u==null?void 0:u.endOfSessionCommand);if(!as){var Q=_.S8("custom_active_view_tos_timeout_ms");as=Q>0&&Q!==36E5?new Blk(zbq(),Q):new Blk(zbq())}ngf(as,g);kqF(as,g,q,u)}};
Xg=function(g){as&&ngf(as,g)};
zbq=function(){var g=_.FR("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(g==null?void 0:g.length)===2?g[1]:null};
KQu=function(g){g=_.jy(g);return!(g==null||!g.loggingUrls)&&g.loggingUrls.length>0};
xhM=function(g){if(!g)return[];var u=[],q,Q;((Q=(q=_.jy(g))==null?void 0:q.loggingUrls)!=null?Q:[]).forEach(function(L){L.baseUrl&&u.push(L.baseUrl)});
return u};
SlF=function(g){if(_.w("stop_av_measurement_on_detach"))return function(){Xg(g)}};
ogu=function(g){return function(){_.w("stop_av_measurement_on_detach")&&Xg(g)}};
Uhq=function(g){if(_.w("stop_av_measurement_on_detach"))return function(){Xg(g)}};
gWZ=function(g){return g.shorts.isDesktopSmallWidth};
_.umZ=function(g){return g.shorts.isShortsActive};
_.qDJ=function(g){return g.shorts.isWatchWhileMode};
_.ry=function(g){return g.shorts.isFullscreen};
_.WY=function(g){return g.shorts.isShortsPipActive};
LPS=function(g){var u,q;if(g=(u=_.c(g.reelsAdCardButtoned,Q$u))==null?void 0:(q=u.animatedRenderingConfig)==null?void 0:q.easeOutSeconds)return g+"s"};
PIm=function(g,u,q){return _.D(function(Q){return Q.return(new Promise(function(L){var E=new Image;E.onload=function(){L(new EWS(g,u,q,E.naturalWidth,E.naturalHeight))};
E.src=q.toString()}))})};
NDJ=function(g,u){return Math.round(g/1E-5)===Math.round(u/1E-5)};
s$u=function(g,u){return Math.round(g/1E-5)===Math.round(u/1E-5)};
ylT=function(g,u){return g.year===u.year&&g.month===u.month&&g.day===u.day};
vWk=function(g,u){return g.year!==u.year?g.year<u.year:g.month!==u.month?g.month<u.month:g.day<u.day};
pfm=function(g){return g.day===DCf(g.year,g.month)?g.month===11?{year:g.year+1,month:0,day:1}:{year:g.year,month:g.month+1,day:1}:{year:g.year,month:g.month,day:g.day+1}};
Jlm=function(){var g=new Date,u={year:g.getFullYear(),month:g.getMonth(),day:g.getDate()};return{start:u,end:{year:g.getFullYear()+2,month:g.getMonth(),day:g.getDate()},selectedDate:pfm(u)}};
j$h=function(g){return(new lR(2)).format(new Date(g.year,g.month,g.day))};
fjf=function(g){return{year:g.getFullYear(),month:g.getMonth(),day:g.getDate()}};
MqF=function(g,u){g=(g+(Number(u.utcOffsetSec)+(new Date(g*1E3)).getTimezoneOffset()*60))*1E3;u=fjf(new Date(g));return{date:u,secondsSinceMidnight:Math.floor((g-(new Date(u.year,u.month,u.day)).getTime())/1E3)}};
tqZ=function(g,u){u=u.months.findIndex(function(q){return q.year===g.year&&q.month===g.month});
return u>=0?u:void 0};
eok=function(g){if(!g)return!1;try{if(g.host&&g.host.tagName==="YT-FORMATTED-STRING"&&g.host.id==="contenteditable-textarea"||g.nodeType===Node.ELEMENT_NODE&&g.tagName==="YTD-COMMENTBOX")return!0}catch(u){return!1}return eok(g.parentNode)};
Tk=function(g){return g?!(g.tagName!=="A"||!g.href||!g.classList.contains("yt-simple-endpoint")):!1};
GDM=function(g){return g?g.tagName==="IMG"&&g.classList.contains("emoji"):!1};
$CT=function(g,u,q){if(!g)return null;var Q=Tk(g);if(Q&&q)return u=g.pathname.substring(g.pathname.indexOf("/channel/")+9),document.createTextNode("@"+u);if(Q&&!q)return document.createTextNode("");if(GDM(g))return q=g.alt,g=g.dataset.emojiId,!g&&u&&(u=_.h7(u,q))&&u.isCustomEmoji&&(g=u.emojiId),g?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+g+">"):document.createTextNode(q);Q=g.cloneNode(!1);for(var L=0;L<g.childNodes.length;++L){var E=$CT(g.childNodes[L],u,q);E&&Q.appendChild(E)}return Q};
Yy=function(g){return g?Tk(g)?g:Yy(g.lastChild):null};
RoJ=function(g){return g?Tk(g)?g:RoJ(g.firstChild):null};
wfu=function(g){if(!g)return null;for(var u=g.previousSibling;u;)if(u.nodeType===Node.ELEMENT_NODE&&u.nodeName==="BR")u=u.previousSibling;else if(u.nodeType===Node.TEXT_NODE&&/\s+/.test(u.textContent))u=u.previousSibling;else break;(u=Yy(u))?g=u:g=(g=g.parentNode)?Yy(g.previousElementSibling):null;return g};
clq=function(g){if(!g)return null;for(var u=g.nextSibling;u;)if(u.nodeType===Node.ELEMENT_NODE&&u.nodeName==="BR")u=u.nextSibling;else if(u.nodeType===Node.TEXT_NODE&&/\s+/.test(u.textContent))u=u.nextSibling;else break;return(u=RoJ(u))?u:clq(g.parentNode)};
HLb=function(g){var u=_.QZ(),q=u.JSC$11657_getStartNode();if(!eok(q.parentNode))return null;u=u.JSC$11657_getStartOffset();if(q.nodeType===Node.TEXT_NODE){var Q=_.ep(q,Tk);if(Q){if(g&&u===0||!g&&u===q.length)return Q}else{if(g&&u===q.length)return!q||q.nodeName==="BR"||q.nextElementSibling&&_.OI(q.nextElementSibling,"display")==="block"?null:RoJ(q.nextElementSibling);if(!g&&u===0)return q?Yy(q.previousElementSibling):null}}if(q.nodeType===Node.ELEMENT_NODE)if(g){if(0<=u&&u<q.childNodes.length)return RoJ(q.childNodes[u])}else if(0<
u&&u<=q.childNodes.length)return Yy(q.childNodes[u-1]);return null};
AlS=function(g,u,q){if(!g)return null;if(g.nodeType===Node.TEXT_NODE)if(q){var Q=wfu(g);if(Q&&!/^\s+\S/.test(g.wholeText.substr(0,u)))return Q}else if((Q=clq(g))&&!/\S\s+/.test(g.wholeText.substr(u,g.wholeText.length)))return Q;return g.nodeType===Node.ELEMENT_NODE?q?wfu(g.childNodes[u]):clq(g.childNodes[u]):AlS(g.parentNode,u,q)};
ZLq=function(g){if(g.hasChildNodes())switch(g.tagName){case "DIV":case "A":case "SPAN":var u="";for(g=g.firstChild;g;g=g.nextSibling)u+=ZLq(g);return u;default:return""}else switch(g.nodeType){case 3:return g.textContent;default:return""}};
Kn=function(g,u){return g.year===u.year&&g.month===u.month&&g.day===u.day};
xy=function(g,u){return g.year!==u.year?g.year<u.year:g.month!==u.month?g.month<u.month:g.day<u.day};
ljf=function(g){return{year:g.getFullYear(),month:g.getMonth(),day:g.getDate()}};
IjT=function(g){var u=l5K;u=u===void 0?l5K:u;u(new Date(g.year,g.month,g.day))};
BY=function(g){return ljf(new Date(Number(g.seconds)*1E3))};
iLh=function(g){return g.year!==void 0&&g.month!==void 0&&g.day!==void 0};
CIS=function(g){return g.start!==void 0&&g.end!==void 0};
bLJ=function(g){return CIS(g)?g.start:g};
dCm=function(g){return CIS(g)?g.end:void 0};
mC3=function(g,u){for(var q=[],Q=new Date(g.start.year,g.start.month);Q.getFullYear()<g.end.year||Q.getFullYear()===g.end.year&&Q.getMonth()<=g.end.month;){var L=q,E=L.push,y=Q.getFullYear(),v=Q.getMonth(),J=g,f=u,t=void 0,e=[],G=Object.freeze({extraCssClass:"invisible"}),R=new Date(y,v),H=ljf(R);R=R.getDay();for(var l=ljf(new Date);H.month===v;){R!==FPS&&t||(t=Array.from({length:7}).fill(G),e.push(t));var d={date:{year:y,month:v,day:H.day},extraCssClass:"",debugClass:""};d.extraCssClass=f(d.date,
H,l,J).trim();t[(R-FPS+7)%7]=d;H=H.day===DCf(H.year,H.month)?H.month===11?{year:H.year+1,month:0,day:1}:{year:H.year,month:H.month+1,day:1}:{year:H.year,month:H.month,day:H.day+1};R=(R+1)%7}E.call(L,{weeks:e,monthLabel:zk.SHORTMONTHS[v]+" "+y,year:y,month:v,monthLabelExtraCssClass:e[0][2]===G?"shift-down-label":""});Q.setMonth(Q.getMonth()+1)}return q};
ajF=function(g,u){u=u.months.findIndex(function(q){return q.year===g.year&&q.month===g.month});
return u>=0?u:void 0};
XfJ=function(g,u){a:{var q=q===void 0?[2,3]:q;q=_.N(q);for(var Q=q.next();!Q.done;Q=q.next()){var L=new Date;if((new VqF(Q.value)).parse(u,L,{validate:!0})){L.setHours(0,0,0,0);u=L;break a}}u=null}if(!u)return{isValid:!1,value:void 0};u=ljf(u);q=g.end;return xy(u,g.start)||xy(q,u)?{isValid:!1,value:void 0}:{isValid:!0,value:u}};
YDS=function(g){var u=rlu;u=u===void 0?WPm:u;var q=g.columnsToShow||[],Q=TDk(g.columnDimensions,g.columnsToShow,g.leftFloatingColumns,u);return q.map(function(L,E){var y=g.columns[L];if(y===void 0)throw Error("Sh");var v=Q?Q[E]:"";var J=g.getCustomTooltip?g.getCustomTooltip(L,y.headerTooltipParagraphs):y.headerTooltipParagraphs;var f=hoM(g,L);return{type:L,index:E,style:v,classes:f,headerName:y.headerName||"",headerIcon:y.headerIcon,headerTooltipParagraphs:J||[],headerTooltipHelpContext:y.headerTooltipHelpContext,
sortOrders:y.sortOrders||[],selectionState:y.isSelectionCheckbox?g.selectionState:void 0}})};
hoM=function(g,u){var q=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],Q=g.columns[u];if(Q===void 0)return"";var L=q.includes("DEFAULTS")&&Q.cssClass?[Q.cssClass]:[];if(q.includes("SORTING")){Q.sortOrders&&Q.sortOrders.length&&L.push("sortable");if(g.sorting&&g.sorting.columnType===u)a:switch(g.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var E="column-sorted";break a;default:E=""}else E="";E&&L.push(E)}q.includes("FLOATING")&&(u=g.columnsToShow.indexOf(u),g.leftFloatingColumns&&u<g.leftFloatingColumns&&
L.push("floating-column"),g.leftFloatingColumns&&u===g.leftFloatingColumns-1&&L.push("last-floating-column"));q.includes("RIGHT_ALIGN")&&Q.rightAlignHeader&&L.push("right-align");return L.filter(function(y){return y}).join(" ")};
TDk=function(g,u,q,Q){q=q===void 0?0:q;Q=Q===void 0?WPm:Q;if(g){var L=[],E=0;OLZ(g,u,Q).forEach(function(y,v){var J="min-width:"+y.minWidth+"px;padding-left:"+y.paddingLeft+"px;padding-right:"+y.paddingRight+"px;flex:"+y.flexGrow+" 0 "+y.minWidth+"px;";y.maxWidth!==Infinity&&(J=[J,"max-width:"+y.maxWidth+"px;"].join(""));E>0&&v<q&&(J=[J,"left:"+E+"px;"].join(""));L.push(J);E+=y.minWidth+y.paddingLeft+y.paddingRight});
return L}};
OLZ=function(g,u,q){q=q===void 0?WPm:q;return u.map(function(Q,L){Q=g&&g[Q]||{};var E=L===0?q.paddingLeftFirstColumn:q.padding;Q.paddingLeft!==void 0&&(E=Q.paddingLeft);L=L===u.length-1?q.paddingRightLastColumn:q.padding;Q.paddingRight!==void 0&&(L=Q.paddingRight);return{paddingLeft:E,paddingRight:L,minWidth:Q.minWidth!==void 0?Q.minWidth:q.minWidth,maxWidth:Q.maxWidth!==void 0?Q.maxWidth:q.maxWidth,flexGrow:Q.flexGrow!==void 0?Q.flexGrow:q.flexGrow}})};
KPb=function(g){var u=g.reduce(function(Q,L){var E=L.columnId,y={};L.headerText&&(y.headerName=_.iR(L.headerText));L.rightAlignHeader&&(y.rightAlignHeader=L.rightAlignHeader);var v;if((v=L.headerIcon)==null?0:v.iconType)y.headerIcon=_.x9(L.headerIcon.iconType);Q[E]=y;return Q},{}),q=g.filter(function(Q){return!Q.hideColumn}).map(function(Q){return Q.columnId});
g=g.filter(function(Q){return!!Q.dimensions}).reduce(function(Q,L){Q[L.columnId]=L.dimensions;
return Q},{});
return{columns:u,columnsToShow:q,columnDimensions:g}};
_.xCh=function(g){return g?g.simpleText?g.simpleText:g.runs?g.runs.map(function(u){return u.text}).join(""):"":""};
oWu=function(g){var u=g.data;var q=g.onTap;var Q=g.isSelected;var L=g.onFocusIn;if(!u)return{};g=BDq(u);Q===void 0&&(Q=u==null?void 0:u.isSelected);var E;return{text:zoK(u,g),startIcon:(E=u.icon)==null?void 0:E.iconType,state:Q?0:2,type:0,style:nWu(u),onTap:kD3(u,q),accessibilityLabel:SDJ(u,g),onFocusIn:function(){return L==null?void 0:L()}}};
zoK=function(g,u){if(!u)return g.text?_.xCh(g.text):void 0};
nWu=function(g){var u;switch((u=g.style)==null?void 0:u.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
kD3=function(g,u){return function(q){u==null||u(q,g)}};
BDq=function(g){g=g.style&&g.style.styleType;return!tSu&&g==="STYLE_EXPLORE_LAUNCHER_CHIP"};
SDJ=function(g,u){if(u){var q,Q,L;return(L=(q=g.accessibilityData)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label)!=null?L:zoK(g,!1)}};
UCZ=function(){var g;return[function(u,q,Q){return _.hJ(g,u,q,Q)},
function(u){g=u}]};
gjk=function(g,u){return _.BC(g.entities,"chipEntity",u)};
q2m=function(g,u,q,Q){return function(){var L=ulm.has(g.displayType)&&g.selected,E=L&&g.deselectCommand?g.deselectCommand:g.tapCommand;!E||L&&Q||_.ey(E,{form:{element:u==null?void 0:u.value}});q==null||q()}};
QFb=function(g,u){u=u==null?void 0:u.stepStates;if(g&&u){var q,Q;return(q=u[g])==null?void 0:(Q=q.userQuery)==null?void 0:Q.userQuery}};
nn=function(g){return{signalAction:{signal:g}}};
PjK=function(){return _.FR("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Lrk:_.EjS};
Npq=function(g,u){g=g===void 0?"SOFT_RELOAD_PAGE":g;u=u===void 0?49504:u;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.ap(_.Ug("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:u}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:g}}]}}}};
sFF=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ap(_.Ug("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:PjK()}};
yxf=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ap(_.Ug("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:PjK()}};
vjb=function(g,u){var q=_.ap(_.Ug("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),Q=_.ap(_.Ug("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),L={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ap(_.Ug("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};L.serviceEndpoint=g?g:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[nn("SOFT_RELOAD_PAGE")]}};return{title:q,bodyText:Q,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:L},
style:{value:u!=null?u:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
pzf=function(g){g=g===void 0?{}:g;return{title:_.ap(g.localizedZeroStateTitleText===void 0?"":g.localizedZeroStateTitleText),bodyText:_.ap(g.localizedZeroStateMessage===void 0?"":g.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ap(g.localizedZeroStateButtonText===void 0?"":g.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[DdJ]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
jFF=function(g){g=g===void 0?{}:g;return{title:_.ap(g.localizedOptInBannerTitleText===void 0?"":g.localizedOptInBannerTitleText),titleLength:19,subtitle:_.ap(g.localizedOptInMessage===void 0?"":g.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ap(_.Ug("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:_.ap(_.Ug("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:[JxM]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
tMf=function(g,u){var q=u=u===void 0?{}:u;u=q.offlineTitleText===void 0?"":q.offlineTitleText;var Q=q.offlineDescriptionText===void 0?"":q.offlineDescriptionText,L=q.formattedSupplementalText,E=q.actionButtonText===void 0?"":q.actionButtonText,y=q.titleText===void 0?"":q.titleText;q=q.descriptionText===void 0?"":q.descriptionText;var v={title:E,accessibilityText:E,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"}}}}};g||(y=u,q=Q,v={title:E,accessibilityText:E,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:_.ap(y),titleLength:y.length,overrideTitleMaxFontSize:30,subtitle:_.ap(q),supplementalText:L,primaryButton:{buttonViewModel:v},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[fNu]},darkTileImage:{thumbnails:[MMq]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.$du=function(g,u,q,Q,L,E,y,v,J,f,t){L=L===void 0?!1:L;E=E===void 0?!1:E;y=y===void 0?0:y;v=v===void 0?-Infinity:v;J=J===void 0?!1:J;f=f===void 0?!1:f;t=t===void 0?!1:t;var e=[],G=_.ap(_.Ug("SMART_DOWNLOADS",void 0,"Smart downloads")),R=_.ap(euu(y,v,g.length));v=y=void 0;f?y={statementBannerRenderer:tMf(t,Q)}:L?g.length>0?v=GlZ(g,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.w("kevlar_manual_downloads_above"),G,R):J?v={alertBannerViewModel:{heading:{content:q.localizedOptInBannerTitleText===
void 0?"":q.localizedOptInBannerTitleText},body:{content:q.localizedPromptMessage===void 0?"":q.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Ug("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Ug("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:_.yFS}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:E&&(v={backgroundPromoRenderer:{bodyText:_.ap(_.Ug("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"}}}):
E&&(v={alertBannerViewModel:{heading:{content:q.localizedOptInBannerTitleText===void 0?"":q.localizedOptInBannerTitleText},body:{content:q.localizedOptInMessage===void 0?"":q.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Ug("TURN_ON",void 0,"Turn on"),accessibilityText:_.Ug("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}}}}}});q=_.ap(_.Ug("YOUR_DOWNLOADS",void 0,"Your downloads"));Q=void 0;u.length>0?(Q=void 0,_.w("kevlar_display_downloads_numbers")&&(Q=_.ap(_.gF("VIDEO_COUNT",u.length))),Q=GlZ(u,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,q,Q)):L||g.length||
f||(Q={backgroundPromoRenderer:{bodyText:_.ap(_.Ug("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}}}});y?e.push({richSectionRenderer:{content:y}}):v&&!_.w("kevlar_manual_downloads_above")&&e.push({richSectionRenderer:{content:v,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
Q&&e.push({richSectionRenderer:{content:Q,loggingDirectives:{clientVeSpec:{uiType:51721}}}});v&&_.w("kevlar_manual_downloads_above")&&e.push({richSectionRenderer:{content:v,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(u.length>0||L&&g.length>0&&!f)&&e.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ap(_.Ug("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}};
_.wzq=function(g){return RuZ(g,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.cxF=function(g){return RuZ(g,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
RuZ=function(g,u){var q=[];g=GlZ(g,u,!0);q.push({richSectionRenderer:{content:g}});return{contents:q}};
GlZ=function(g,u,q,Q,L){q=q===void 0?!1:q;var E="RESPONSIVE_SIZE_STANDARD";_.w("kevlar_standard_rich_grid_on_offline_home")&&u==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?E="RESPONSIVE_SIZE_STANDARD":_.w("kevlar_modern_downloads_compact")?E="RESPONSIVE_SIZE_COMPACT":_.w("kevlar_modern_downloads_extra_compact")?E="RESPONSIVE_SIZE_EXTRA_COMPACT":_.w("kevlar_modern_downloads_tiny")&&(E="RESPONSIVE_SIZE_TINY");g={isExpanded:q,contents:ky(g),entitySelectorType:u,responsiveContainerConfiguration:{responsiveSize:E}};
Q&&(g.title=Q);L&&(g.subtitle=L);q||(_.w("kevlar_smart_downloads_show_more_button")?(g.showMoreButton={buttonRenderer:{accessibility:{label:_.Ug("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.ap(_.Ug("SHOW_MORE",void 0,"Show more"))}},g.showLessButton={buttonRenderer:{accessibility:{label:_.Ug("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.ap(_.Ug("SHOW_LESS",void 0,"Show less"))}}):(g.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Ug("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}}}},g.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Ug("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}}}},g.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Ug("VIEW_ALL",void 0,"View all"),accessibilityText:_.Ug("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:_.FS("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:g}};
ky=function(g){var u=[];g=_.N(g);for(var q=g.next();!q.done;q=g.next())if(q=q.value,xJM(q)){var Q=u,L=Q.push;var E=void 0;if(q==null?0:(E=q.videoEntity)==null?0:E.videoId){E=$Z(_.bR().getState(),q.videoEntity.videoId);var y=_.bR().getState();var v=_.x6(q.videoEntity.videoId,"mainVideoEntity");y=!!_.NZ(y.entities)[v];y={videoId:q.videoEntity.videoId,title:VX(q.videoEntity.title),shortBylineText:VX(q.channelEntity.title),thumbnail:q.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:y&&_.w("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:w2u(q.videoEntity.videoId,E,q.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Ug("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};q.videoEntity.lengthSeconds&&(y.thumbnailOverlays=xpb(q.videoEntity.lengthSeconds,E));y.isWatched=E>0;_.w("kevlar_modern_downloads_page")&&(y.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:q.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Ug("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},y.badges=void 0);q=y}else q={};L.call(Q,{richItemRenderer:{content:{videoRenderer:q},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(K4T(q)){Q=u;L=Q.push;var J=v=E=void 0,f=void 0,t=void 0,e=void 0,G=void 0,R=void 0,H=void 0,l=void 0,d=void 0,F=void 0;y=q.mainPlaylistEntity.playlistId;var V=q==null?void 0:(F=q.mainPlaylistEntity)==null?void 0:(d=F.thumbnailStyleData)==null?void 0:(l=d[0])==null?void 0:(H=l.value)==null?void 0:(R=H.collageThumbnail)==
null?void 0:R.coverThumbnail;if(y&&V){R=caZ(y);!_.w("enable_offline_playlist_page")&&(q==null?0:(G=q.mainPlaylistEntity)==null?0:G.videos)&&(G=q==null?void 0:(e=q.mainPlaylistEntity)==null?void 0:(t=e.videos)==null?void 0:t[0],t=_.Tz(G).entityId,t=JSON.parse(t).videoId,t!==void 0&&(R=$Z(_.bR().getState(),t),R=_.m7(t,y,void 0,void 0,R)));t=[];if(q==null?0:(f=q.mainPlaylistEntity)==null?0:(J=f.videos)==null?0:J.length)J=ZlT(),f=Object,t=f.assign,e=(e=APu(q==null?void 0:q.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.ap(e),icon:{iconType:"PLAYLISTS"}}}:void 0,t=[J,t.call(f,{},(v=e)!=null?v:{})];q={playlistId:y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:V}},navigationEndpoint:R,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:t,title:VX(q.mainPlaylistEntity.title),shortBylineText:VX(q==null?void 0:(E=q.channelEntity)==null?void 0:E.title),badges:[{metadataBadgeRenderer:{label:_.Ug("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.w("kevlar_modern_downloads_page")&&(q.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:HcZ,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Ug("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},q.badges=void 0)}else q=void 0;L.call(Q,{richItemRenderer:{content:{playlistRenderer:q},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return u};
euu=function(g,u,q){g=g?UwM(g):"";u!==void 0&&isFinite(u)?u===0?u=_.Ug("UPDATING",void 0,"Updating..."):(u=KA3(new Date(u),new Date),u=_.Ug("UPDATED_TIME",{relative_time:u},"Updated "+u)):u="";var Q="";g&&u&&(Q=" \u2022 ");if(q&&_.w("kevlar_display_downloads_numbers")){q=_.gF("VIDEO_COUNT",q);if(g||u)Q=" \u2022 ";return q+Q+g+Q+u}return g+Q+u};
AxK=function(g){return VCu(g.entities).length};
_.Zcq=function(g,u,q){var Q=$y(g.responsiveSize),L;g=!((L=g.responsiveMap)==null||!L.some(function(E){return E.containerSize==="CONTAINER_SIZE_NARROW"&&E.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:q,containerWidth:u,sizing:Q,enableFullBleedForSingleCol:!1,isCompactList:Q==="COMPACT"&&g}};
lNh=function(g,u){return _.BC(g.entities,"votingEntity",u)};
SJ=function(g){if(g){var u;return((u=_.Bk().resolve(_.xv(_.gy)))==null?0:u())?g.darkTheme:g.lightTheme}};
INJ=function(g,u){if(g.simpleText)return Object.assign({},g,{simpleText:RT(g.simpleText,u)});if(!g.runs)return g;for(var q=Object.assign({},g,{runs:[]}),Q=0,L=_.N(g.runs),E=L.next();!E.done;E=L.next())if(E=E.value,E.text)if(Q+E.text.length<=u)q.runs.push(E),Q+=E.text.length;else return q.runs.push(Object.assign({},E,{text:RT(E.text,u-Q)})),q;return g};
icq=function(g,u){return _.BC(g.entities,"chipBarStateEntity",u)};
Cju=function(g){switch(g){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""}};
bcJ=function(g,u){return{triggeringElement:g,onDwellTriggeredFn:function(){var q={triggeringElement:g,loadVideoPreviewEventData:u},Q=document.querySelector(".video-preview");Q&&Q.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:q}))},
onDwellEndFn:function(){var q=document.querySelector(".video-preview");q&&q.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
ddJ=function(g){var u=_.Bk().resolve(_.xv(mvq));return function(q){var Q=function(){var L=g(q);return u&&L?bcJ(q,L):null};
_.bX(function(){var L=Q();u&&L&&Promise.resolve().then(function(){u.registerElement(L)});
_.dB(function(){u&&L&&Promise.resolve().then(function(){_.t7(u,L)})})},"p0smCb")}};
mdb=function(g){var u=g.dataset.resizeObserverId;if(u)return u;u=""+FrF++;return g.dataset.resizeObserverId=u};
aNS=function(g){g=_.N(g);for(var u=g.next();!u.done;u=g.next()){u=u.value;var q=mdb(u.target),Q=Object.assign({},{target:u.target},UI.get(q));if(Q!=null&&Q.contentRect?Q.contentRect.width!==u.contentRect.width||Q.contentRect.height!==u.contentRect.height:1)for(UI.set(q,{borderBoxSize:u.borderBoxSize,contentBoxSize:u.contentBoxSize,contentRect:u.contentRect,devicePixelContentBoxSize:u.devicePixelContentBoxSize}),q=_.N(g_.get(q)||[]),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q(u)}};
Xzf=function(g,u){var q=mdb(g);g_.has(q)||g_.set(q,new Set);g_.get(q).add(u);UI.has(q)&&u(Object.assign({},{target:g},UI.get(q)));ub||(ub=new VMh(aNS));u=ub;u.observe(g)};
rxu=function(g,u){var q=mdb(g);g_.has(q)&&(g_.get(q).delete(u),g_.get(q).size===0&&(g_.delete(q),UI.delete(q),ub.unobserve(g),delete g.dataset.resizeObserverId));g_.size===0&&ub&&(ub.disconnect(),ub=void 0)};
TpM=function(g,u){var q=_.Bk().resolve(Kw);return Wrf.map(function(Q){return q.observe(g,u,Q)})};
hub=function(g){var u=_.Bk().resolve(Kw);g.forEach(function(q){u.unobserveByKey(q)})};
_.qW=function(g){var u=_.N(m_T()),q=u.next().value,Q=u.next().value,L=Object.assign({},Y2J,g),E=OcM(function(y){var v=y.contentRect.height;if((y=y.contentRect.width)||v||L.canHaveZeroSize)q.width()===y&&q.height()===v||Q(q,{height:v,width:y})},L.throttleMs);
return[q,function(y){var v=[];L.useVisibilityObserver&&(v=TpM(y,function(J,f){requestAnimationFrame(function(){f==="visible"?Xzf(y,E):rxu(y,E)})}));
v.length||Xzf(y,E);return function(){v.length&&(hub(v),v.length=0);rxu(y,E)}}]};
_.Q5=function(g,u){var q=_.N(_.jR(!1,void 0,"YLPUhc")),Q=q.next().value,L=q.next().value,E=!1,y;return function(v){if(y)return _.p(y,Object.assign({},v));if(!E){E=!0;var J=mDf;J==null||J.addDep();g().then(function(f){y=f;L(!0);J==null||J.removeDep()}).catch(function(f){J==null||J.removeDep();
if(u==null?0:u.debugName){var t,e=new _.Ji("failed to load chunk",u.debugName,f==null?void 0:(t=f.toString)==null?void 0:t.call(f));_.Zf(e)}else _.Zf(f);throw f;})}return _.p(_.M,{cond:Q,
then:function(){return _.p(y,Object.assign({},v))}})}};
xdf=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("dpUCFd"),2);g=_.KrM;return u.return(g)})};
zuh=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("U9vrqd"),2);g=BpZ;return u.return(g)})};
klM=function(g,u,q,Q,L){g=u?g.switchOffCommand:g.switchOnCommand;if(Q&&L)njk(g,q,L);else{var E,y;(E=_.MY({elementsCommand:g}))==null||(y=E.onclick)==null||y.call(E,q)}};
njk=function(g,u,q){g=_.MY({elementsCommand:g,additionalCommandArgs:{commandController:{onSuccess:function(){q(!1)},
onServerError:function(){q(!1)}}}});
if(g==null?0:g.onclick)g.onclick(u),q(!0)};
ojb=function(g){if(g)return _.c(g,S2M)};
Udm=function(g){if(g)switch(g){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}};
gXK=function(g,u){if(!((g==null?0:g.entitySelectorType)&&(g==null?0:g.entityKey)))return{};switch(g.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var q,Q=(q=_.Ke())==null?void 0:q.getOption("captions","track"),L,E=typeof(Q==null?void 0:Q.translationLanguage)==="object"&&((L=Q.translationLanguage)==null?void 0:L.languageName)||(Q==null?void 0:Q.displayName)||"";return{data:Object.assign({},!!E&&{selectionText:{content:E}},!!E&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},
{isDisabled:typeof Q==="undefined"})};case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.w("web_shorts_audio_track_picker")){var y;L=((y=_.Ke())==null?void 0:y.getAudioTrack())||void 0;q=L==null?void 0:(E=L.getLanguageInfo())==null?void 0:E.getName();L={data:Object.assign({},{selectionText:{content:q}},q&&!(L==null?0:(Q=L.getLanguageInfo())==null?0:Q.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else L={};return L;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return Q=
g!=null&&g.entityKey?(Q=_.ho(u,g.entityKey))?{isHidden:(Q==null?void 0:Q.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},Q;default:return{}}};
ucm=function(g,u){return function(q){var Q=function(L){_.vY(_.y4(L),q,u)||g(L)};
q.addEventListener("click",Q);return function(){q.removeEventListener("click",Q)}}};
_.qNS=function(g){return function(){return _.c(g(),_.L3)}};
QZf=function(g){switch(g){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}};
Lah=function(g){return QZf(g==null?void 0:g.all)};
EXf=function(g){var u={};(g=g==null?void 0:g.padding)&&(u.padding=QZf(g.vertical)+"px "+QZf(g.horizontal)+"px");return u};
Pcq=function(g){switch(g){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
NYu=function(g){switch(g){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"}};
sZh=function(g){switch(g){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"}};
ycu=function(g,u){if(u)return{containerStyles:EXf(u),itemStyles:function(q,Q){var L={flex:"1"},E=u==null?void 0:u.flexDirection;b:switch(E){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":q=!!q;break b;default:q=!!Q}q||(q=_.FR("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",E==="FLEX_DIRECTION_ROW"||E==="FLEX_DIRECTION_ROW_REVERSE"?(E=Lah(u==null?void 0:u.gap)+"px",q?L["margin-left"]=E:L["margin-right"]=E):L["margin-bottom"]=Lah(u==null?void 0:u.gap)+"px",L.flex=
"1");return L},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(u==null?void 0:u.flexDirection)==="FLEX_DIRECTION_ROW"||(u==null?void 0:u.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
vXq=function(g){return g<528?"CONTAINER_SIZE_NARROW":g<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
Dtm=function(g,u){g=_.N(g.responsiveMap||[]);for(var q=g.next();!q.done;q=g.next())if(q=q.value,q.containerSize===u)return q.containerType};
_.pPq=function(g,u){if(u){var q=u.responsiveSize;g=vXq(g);var Q=Dtm(u,g);if(Q&&q){a:{if(Q==="CONTAINER_TYPE_VERTICAL_LIST")if(q==="RESPONSIVE_SIZE_STANDARD"){if(g!=="CONTAINER_SIZE_NARROW"){var L="50%";break a}}else{L=g==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}L=void 0}return{responsiveSize:q,containerSize:g,containerType:Q,force16By9ThumbnailAspectRatio:!u.enableContentSpecificAspectRatio,contentPreviewWidth:L,fullbleed:(Q==="CONTAINER_TYPE_VERTICAL_LIST"||Q==="CONTAINER_TYPE_GRID")&&g===
"CONTAINER_SIZE_NARROW"&&!1}}}};
JcM=function(g,u){var q={};switch(u){case "CONTAINER_TYPE_VERTICAL_LIST":q["flex-direction"]="column";q.padding="0 "+g.margin+"px";break;case "CONTAINER_TYPE_GRID":q["flex-direction"]="row";q.flex="none";q["flex-wrap"]="wrap";q.width=g.maxContainerWidth?g.maxContainerWidth+g.gutter+"px":void 0;q.padding="0 "+(g.margin-g.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":q["flex-direction"]="row",q.flex="none",q["overflow-x"]="auto",q.width=g.maxContainerWidth?g.maxContainerWidth+"px":void 0,
q.padding="0 "+g.margin+"px"}return q};
jZq=function(g,u){if(u){var q=Dtm(u,vXq(g));a:switch(q){case "CONTAINER_TYPE_GRID":var Q=3;break a;default:Q=1}Q=_.Zcq(u,g,Q);var L=_.Gk(Q);return{containerLayoutConfig:_.pPq(g,u),containerStyles:JcM(L,q),itemStyles:function(E,y){E={};switch(q){case "CONTAINER_TYPE_VERTICAL_LIST":y||(E["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":E.width=L.itemWidth+"px";E["margin-right"]=L.gutter/2+"px";E["margin-left"]=L.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":E.width=L.itemWidth+
"px",E.flex="none",y||(E["margin-right"]=L.gutter+"px")}return E}}}};
GaK=function(g,u,q){if(u)return[fJK];switch(g){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Ef];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return q?[Ef]:[M1M,Ef];case "TRANSFER_STATE_PAUSED_BY_USER":return[t1K,Ef];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[eHf,Ef];default:return[fJK]}};
$tF=function(g,u,q,Q){return GaK(g,u,Q).map(function(L){var E=L.text,y=L.iconType,v=L.videoAction;L=L.playlistAction;E=E?{content:E}:void 0;y=y&&{sources:[{clientResource:{imageName:y}}]};var J=(0,_.pH.unsafeClone)(q);if(J){var f=_.c(J,_.zc),t=_.c(J,_.ne);f&&v?f.action=v:t&&L&&(t.action=L)}return{title:E,leadingImage:y,rendererContext:J&&{commandContext:{onTap:{innertubeCommand:J}}}}})};
RHT=function(g){g=_.D7(g.rendererContext);var u;return(u=_.c(g,_.ne))==null?void 0:u.playlistId};
wPk=function(g){var u;return(u=g.listItems)==null?void 0:u.some(function(q){var Q;return _.pn((Q=_.c(q,_.Q4))==null?void 0:Q.rendererContext)})};
ccS=function(g,u){var q;(q=g[(u+1)%g.length])==null||q.focus()};
Hkm=function(g,u){var q=g.length,Q;(Q=g[u===-1?q-1:(u-1+q)%q])==null||Q.focus()};
_.Pb=function(g){var u=_.Bk().resolve(_.xv(_.gy));return u!=null&&u()?g.darkThemeColorPalette:g.lightThemeColorPalette};
_.sf=function(g){return{primaryTextColor:NW(g,0),secondaryTextColor:NW(g,1),optionColor:NW(g,2),backgroundColor:NW(g,3),videoBackgroundColor:NW(g,4)}};
NW=function(g,u){if(g){switch(u){case 0:g=g.primaryTitleColor;break;case 1:g=g.secondaryTitleColor;break;case 2:g=g.surgeColor;break;case 3:g=g.section2Color;break;case 4:g=g.section3Color;break;default:return}if(g)return _.JR(g)}};
lJu=function(g){var u=g.element;var q=g.veType;var Q=g.storedVisualElement===void 0?null:g.storedVisualElement;var L=g.elementIndex===void 0?0:g.elementIndex;g=g.clientYouTubeData;var E=_.j_();E!==AcS&&(ZkM.clear(),AcS=E);if(u.visualElement&&ZkM.has(u.visualElement))return null;if(Q&&ZkM.has(Q))return u.visualElement=Q,null;q=_.Ui(_.gL(),{veType:q,elementIndex:L,clientYouTubeData:g});if(!q)return null;u.visualElement=q;ZkM.add(q);return q};
_.y5=function(g,u,q,Q){q=q===void 0?null:q;Q=Q===void 0?IJK:Q;var L=L===void 0?null:L;sE(function(){if(u){q instanceof Function&&(q=q());var E=lJu({element:u,veType:g,storedVisualElement:q,clientYouTubeData:void 0});E&&(SP(u,{data:L,observer:_.Bk().resolve(Kw),hideOption:yqk,showOption:vnF,layer:u.layer}),Q(E))}})};
ikS=function(g){return g?_.jh(g):""};
Ccf=function(g){return(g==null?void 0:g.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
bkT=function(g,u){return _.BC(g.entities,"videoOverviewAsyncDataEntity",u)};
dtk=function(g,u){var q;return"linear-gradient(to bottom, "+((q=u==null?void 0:u.map(function(Q){var L=g?Q.darkThemeColor:Q.lightThemeColor;return L?_.jh(L)+" "+((Q==null?void 0:Q.startLocation)||0)*100+"%":"transparent"}))==null?void 0:q.join(", "))+")"};
FaF=function(g,u,q,Q,L){if(!((Q==null?0:Q.height)&&(Q==null?0:Q.width)))return{size:0};var E=Q.width;Q=Q.height;if(L)return u==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||u==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&E>Q?{size:312/Qiu}:u==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(q!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||g!==1&&g!==2||u!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&u!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&u!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(u==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||u==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||Q===E)switch(g){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(u==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Q>E)switch(g){case 1:case 3:return{size:240*qlf};default:return{size:360*qlf}}switch(g){case 1:case 2:return{size:1/Qiu*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.mth=function(g){if(!("matchMedia"in window))return _.Wk(Error("Th")),function(){return!1};
var u=window.matchMedia(g);g=_.N(_.jR(u.matches,void 0,"waIHpe"));var q=g.next().value,Q=g.next().value,L=function(E){Q(E.matches)};
u.addEventListener?(u.addEventListener("change",L),_.dB(function(){u.removeEventListener("change",L)})):u.addListener&&(u.addListener(L),_.dB(function(){u.removeListener(L)}));
return q};
aJb=function(g){return g==="IMAGE_BANNER_STYLE_INSET"||g==="IMAGE_BANNER_STYLE_UNKNOWN"};
V1K=function(){if(!("matchMedia"in window))return _.Wk(Error("Th")),function(){return 0};
var g=window.matchMedia("(max-width: 527.9px)"),u=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),q=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),Q=window.matchMedia("(min-width: 1024px)"),L=_.N(_.jR(g.matches,void 0,"TmIKcb")),E=L.next().value,y=L.next().value;L=_.N(_.jR(u.matches,void 0,"Z0fTKd"));var v=L.next().value,J=L.next().value;L=_.N(_.jR(q.matches,void 0,"w4xy7b"));var f=L.next().value,t=L.next().value;L=_.N(_.jR(Q.matches,void 0,"DrbNC"));var e=L.next().value,
G=L.next().value,R=function(F){y(F.matches)},H=function(F){J(F.matches)},l=function(F){t(F.matches)},d=function(F){G(F.matches)};
_.I4(function(){g.addEventListener?(g.addEventListener("change",R),u.addEventListener("change",H),q.addEventListener("change",l),Q.addEventListener("change",d)):g.addListener&&(g.addListener(R),u.addListener(H),q.addListener(l),Q.addListener(d));_.dB(function(){g.removeEventListener?(g.removeEventListener("change",R),u.removeEventListener("change",H),q.removeEventListener("change",l),Q.removeEventListener("change",d)):g.removeListener&&(g.removeListener(R),u.removeListener(H),q.removeListener(l),
Q.removeListener(d))})});
return function(){return E()?1:v()?2:f()?3:e()?4:0}};
XPT=function(g){var u=0;g=_.N([g.title,g.metadata,g.actions,g.description,g.attribution]);for(var q=g.next();!q.done;q=g.next())q.value&&u++;return u};
rcu=function(g){return g===1||g===2?1:0};
TYT=function(g){g=(new Wab).parse(g);return(new eZ).render(g).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(u){var q=u.split(":").map(Number),Q=0,L=0;if(q.length===3)q=_.N(q),Q=q.next().value,L=q.next().value,q=q.next().value;else if(q.length===2)q=_.N(q),L=q.next().value,q=q.next().value;else if(q.length===1)q=_.N(q).next().value;else throw Error("Uh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(Q*3600+L*60+q)+'" role="button">'+u+"</span>"})};
hHJ=function(g){g=_.N(g.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var u=g.next(),q={};!u.done;q={clickHandler$jscomp$5:void 0},u=g.next()){u=u.value;q.clickHandler$jscomp$5=function(L){L=Number(L.target.getAttribute("data-time"));if(isNaN(L))throw Error("Vh");var E;(E=_.Ke())==null||E.seekTo(L,!0)};
var Q=function(L){return function(E){E.key!=="Enter"&&E.key!=="Space"||(0,L.clickHandler$jscomp$5)(E)}}(q);
u.setAttribute("tabindex","0");u.removeEventListener("click",q.clickHandler$jscomp$5);u.removeEventListener("keydown",Q);u.addEventListener("click",q.clickHandler$jscomp$5);u.addEventListener("keydown",Q)}};
YNS=function(){return _.p("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.p(vb,{percentWidth:100}),_.p(vb,{animationDelay:200}),_.p(vb,{animationDelay:400}),_.p(vb,{animationDelay:600}),_.p(vb,{animationDelay:800,percentWidth:60}),_.p("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.p(vb,{percentWidth:100}),_.p(vb,{animationDelay:200}),_.p(vb,{animationDelay:400}),_.p(vb,{animationDelay:600,percentWidth:50}))};
vb=function(g){return _.p("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(g.percentWidth===void 0?100:g.percentWidth)+"%"},_.p("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(g.animationDelay===void 0?0:g.animationDelay)+"ms"}))};
OkK=function(){var g=_.N(_.jR(function(){return""},void 0,"dXJHWc")),u=g.next().value;
return[function(){return u()()},
g.next().value]};
Kau=function(g,u){g=g?UwM(g):"";u!==void 0&&isFinite(u)?u===0?u=_.Ug("UPDATING",void 0,"Updating..."):(u=KA3(new Date(u),new Date),u=_.Ug("UPDATED_TIME",{relative_time:u},"Updated "+u)):u="";var q="";g&&u&&(q=" \u2022 ");return _.ap(g+q+u)};
zHT=function(g,u,q,Q,L,E){u=u===void 0?0:u;var y=xtF[u],v=y.title,J=y.iconType,f=y.topButtonRenderer,t=y.sectionClientVE;y=y.videoClientVE;var e;if(u!==1||g.length){q=[];g=_.N(g);for(Q=g.next();!Q.done;Q=g.next()){var G=Q.value;if(xJM(G))q.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:G.videoEntity.videoId,title:VX(G.videoEntity.title),shortBylineText:VX(G.channelEntity.title),thumbnail:G.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:G.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Ug("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:y}}}}}});else if(K4T(G)){Q=q;var R=Q.push;var H=void 0,l=void 0,d=void 0,F=void 0,V=void 0,z=void 0,O=void 0,W=void 0,x=G.mainPlaylistEntity.playlistId,k=G==null?void 0:(W=G.mainPlaylistEntity)==null?void 0:(O=W.thumbnailStyleData)==null?void 0:(z=O[0])==null?void 0:(V=z.value)==null?void 0:(F=V.collageThumbnail)==null?void 0:F.coverThumbnail;F=caZ(x);if(!_.w("enable_offline_playlist_page")&&
(G==null?0:(d=G.mainPlaylistEntity)==null?0:d.videos)){b:{d=G==null?void 0:(l=G.mainPlaylistEntity)==null?void 0:l.videos;l=_.bR().getState().entities;if(d!=null&&d.length&&l)for(d=_.N(d),V=d.next();!V.done;V=d.next())if(V=_.Tz(V.value).entityId,(V=JSON.parse(V).videoId)&&mJM(l,V)==="TRANSFER_STATE_COMPLETE"){l=V;break b}l=""}l!==void 0&&(F=$Z(_.bR().getState(),l),F=_.m7(l,x,void 0,void 0,F))}l=Aau(_.Ug("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),caZ(x));G=x&&k&&l?{playlistId:x,navigationEndpoint:F,
viewPlaylistText:l,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:k}},title:VX(G.mainPlaylistEntity.title),shortBylineText:VX(G==null?void 0:(H=G.channelEntity)==null?void 0:H.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:BY3,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:x,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Ug("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:y}}}:
void 0;R.call(Q,{gridPlaylistRenderer:G})}}y={gridRenderer:{items:q}};u===1&&(e=Kau(L,E))}else if(Q){var LZ=_.ap((R=q==null?void 0:q.localizedPromptMessage)!=null?R:"");y={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ap(_.Ug("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.yFS}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ap(_.Ug("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=Kau(L,E)}else LZ=_.ap(_.Ug("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
y={};return{contents:[{shelfRenderer:{title:v,titleAnnotation:e,icon:{iconType:J},subtitle:LZ,content:y,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:f}]}}}}],loggingDirectives:{clientVeSpec:{uiType:t}}}};
nXm=function(g,u,q,Q,L,E,y,v,J,f,t){q=q===void 0?{}:q;Q=Q===void 0?{}:Q;L=L===void 0?!1:L;E=E===void 0?!1:E;y=y===void 0?!1:y;v=v===void 0?!1:v;J=J===void 0?!1:J;f=f===void 0?0:f;t=t===void 0?-Infinity:t;if(!(u.length||g.length||L||v))return E?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:pzf(q)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.ap(_.Ug("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=[];g.length&&e.push(zHT(g,0));v?e.push({contents:[{statementBannerRenderer:tMf(J,Q)}]}):L?e.push(zHT(u,1,q,y,f,t)):E&&e.push({contents:[{statementBannerRenderer:jFF(q)}]});(L&&u.length||g.length)&&e.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ap(_.Ug("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(G){return{itemSectionRenderer:G}})};
De=function(g,u){if(typeof g!=="object")return null;g=_.N(Object.entries(g));for(var q=g.next();!q.done;q=g.next()){var Q=_.N(q.value);q=Q.next().value;Q=Q.next().value;if(q===u)return q;if(Q=De(Q,u))return q+"."+Q}return null};
p3=function(g){var u=g.content;return(g=g.styleRuns)&&u?{runs:g.map(function(q){var Q={text:u.slice(q.startIndex,q.startIndex+q.length)};q.fontColor&&(Q.textColor=q.fontColor);return Q})}:{simpleText:u}};
oXf=function(g,u,q,Q){var L=kaT;Q&&(g.quantity=Q);if(!g.quantity||!g.maxQuantity)return{};Q=g.minusButton;var E=g.plusButton,y,v,J,f;return{value:g.quantity,maxValue:g.maxQuantity,onChangeCallback:function(t){L(g,t)},
minusLabel:(y=_.c(Q,SNh))==null?void 0:y.label,minimumReachedLabel:(v=_.c(Q,SNh))==null?void 0:v.limitReachedLabel,plusLabel:(J=_.c(E,SNh))==null?void 0:J.label,maximumReachedLabel:(f=_.c(E,SNh))==null?void 0:f.limitReachedLabel,disabled:u,onRemoveCommand:q}};
kaT=function(g,u){var q=g.quantityIncrementerEntityKey;if(q){var Q={};Q.quantity=u;_.bU(_.JZ("quantityIncrementerEntity",q,Q));g.onChangeCommand&&_.ey(g.onChangeCommand)}};
UtF=function(g){if(g)return g===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(g).overflowY)?g:UtF(g.parentElement)};
qsK=function(g,u){(g=gmu(g))&&((_.w("enable_mini_app_command_handler_mweb_fix")?0:u)?uZM.push({command:g,sourceData:{},commandContext:void 0}):_.Bk().resolve(_.Gy).resolveCommand(g))};
gmu=function(g){return _.c(g,_.Jo)};
Qfk=function(){var g=window.performance.timeOrigin+window.performance.now(),u=(new _.jV).setSeconds(g/1E9);return _.PT(u,2,_.p9(g%1E9),0)};
Emh=function(g,u){var q;g=(q=_.c(_.c(g,_.Jo),Lqm))==null?void 0:q.methodName;var Q,L;(q=window.youtubewebview||((Q=window.webkit)==null?void 0:(L=Q.messageHandlers)==null?void 0:L.youtubewebview))&&g&&(Q=new f3,g=_.EU(Q,1,g),g=_.om(g.JSC$12861_serializeBinary()),u=_.om(u),q.postMessage(g+","+u))};
MW=function(g,u){var q=_.c(_.c(g,_.Jo),Lqm);q&&(u&&(q.serializedAdditionalMetadata=_.om(u)),qsK(g,!0))};
PmK=function(g,u,q){setTimeout(function(){_.Px(g,u)},q)};
NMK=function(g){switch(g){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"}};
sfu=function(){return!!_.FR("ID_TOKEN")};
D9b=function(g){return g instanceof Error&&g.cause instanceof yUM&&g.cause.rpcErrorCode!==void 0?!vmT.includes(g.cause.rpcErrorCode):!0};
JUF=function(){return _.Sg(p0M,{authuser:""+(_.FR("SESSION_INDEX")||0)})};
tZ=function(g,u,q,Q){q=q===void 0?"MINI_APP_SDK_API_UNSPECIFIED":q;Q=Q===void 0?"":Q;var L=new _.Ji;q={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:Q,sdkApi:q};g instanceof Error&&(L.message=g.message,L.name=g.name,g.cause instanceof yUM&&g.cause.rpcErrorCode!==void 0&&(q.rpcErrorCode=g.cause.rpcErrorCode));var E;(E=u.onError)==null||E.call(u,{loggingError:L,metadata:q})};
fnq=function(g,u,q,Q){switch(g){case "MINI_APP_SOURCE_GAMESNACKS":return new eV(u,q,Q);default:return new jfb(u,q,Q)}};
MDq=function(g){switch(g){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"}};
tDF=function(g){switch(g){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"}};
ejb=function(g){switch(g){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"}};
GEu=function(){return Math.floor(Math.random()*4)+1};
$9q=function(g,u,q,Q){g=_.N(Object.entries(g));for(var L=g.next(),E={};!L.done;E={message$jscomp$995:void 0},L=g.next()){var y=_.N(L.value);L=y.next().value;y=y.next().value;E.message$jscomp$995=y;u.push(setTimeout(function(v){return function(){Q(!1);q(v.message$jscomp$995.text)}}(E),E.message$jscomp$995.delayMs));
Number(L)>0&&u.push(setTimeout(function(){Q(!0)},E.message$jscomp$995.delayMs-400))}};
RjK=function(g,u,q){q=q===void 0?IJK:q;if(g){var Q=_.Bk().resolve(Kw);Q||_.w("mweb_no_observer_killswitch")?SP(g,{data:u,observer:Q,visibilityCallback:q,hideOption:yqk,showOption:vnF,layer:g.layer}):_.Io(new _.Ji("Warning: monitorVisibility called with null observer",g.tagName,u==null?void 0:u.loggingDirectives,u==null?void 0:u.trackingParams))}else _.Io(new _.Ji("Warning: monitorVisibility called with null element",u==null?void 0:u.loggingDirectives,u==null?void 0:u.trackingParams,u==null?void 0:
u.rendererContext))};
w0M=function(g,u){var q=q===void 0?IJK:q;_.w("mweb_fix_monitor_visibility_after_render")?g&&sE(function(){RjK(g,u,q)}):sE(function(){RjK(g,u,q)})};
cUM=function(g,u){var q=document.createElement("ytd-engagement-panel-section-list-renderer");q.data=g;var Q=u!=null?u:{};g=Q.isPersistentPanel;u=Q.hideDelayMs;Q=Q.overscrollContain;g=Object.assign({},g&&{isPersistentPanel:g},u&&{hideDelayMs:u},Q&&{overscrollContain:Q});Object.assign(q,g);return q};
lnZ=function(g){H5h||(H5h=AUu(new _.cc(1,void 0,void 0,Z5m),0));var u=H5h.format(Math.floor(g));u=R7==="be"||R7==="bg"||R7==="es"||R7==="et"||R7==="hu"||R7==="ka"||R7==="lv"||R7==="pl"||R7==="pt-PT"||R7==="sq"?u.replace(new RegExp("^(\\d)"+Z5m.GROUP_SEP.replace(".","\\.")+"(\\d+("+Z5m.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):u;return g>=1E3&&g<=9999&&u[1]==="."&&(R7==="sl"||R7==="it")?u.replace(".",""):u};
_.Cm3=function(g,u,q){return window.spf&&!_.w("web_disable_spfjs_client")?Inm(g,u,q):i5f(g,u)};
Inm=function(g,u,q){var Q=null,L=(new _.Ez(function(E,y){var v={};if(u){v.method=u.method;var J=u.postParams||{};YRb(g,u)&&(J[_.FR("XSRF_FIELD_NAME")]=_.FR("XSRF_TOKEN"));v.postData=_.kB(J);u.type&&(v.type=u.type);J=u.headers}v.headers=VFJ(g,J);_.w("debug_forward_web_query_parameters")&&(g=_.TFq(g,window.location.search));v.experimental_headers=v.headers;v.onError=function(f){f.err&&f.xhr&&(f.err.params={url:f.xhr.responseURL,response:f.xhr.responseText.substr(0,64)});y(f.err)};
v.onPartDone=function(f){q&&q.call(null,f.part)};
v.onDone=function(f){var t=b5Z(f.response,"xsrf_token");Bq(window.location.href,g)&&t&&_.di("XSRF_TOKEN",t);if(t=b5Z(f.response,"service_worker_killswitch"))_.di("SERVICE_WORKER_KILLSWITCH",t),S$f();E(f.response)};
Q=spf.request(g,v)})).then(d9Z);
L.thenCatch(function(E){var y=E instanceof _.Gx,v=E&&E.hasOwnProperty("params")&&E.params.response?E.params.response:"";E instanceof Error&&(v?y?wYS(E):v===')]}\'\n{"reload":"now"}'?wYS(E):(FqF(E,g,v),m9h(E,v)?_.Io(E):_.Zf(E)):wYS(E));Q&&Q.abort()});
return L};
d9Z=function(g){if(g.type==="multipart"){var u=g.timing;g=g.parts.reduce(function(q,Q){Object.assign(q,Q);return q},{});
g.timing=g.timing||{};Object.assign(g.timing,u);g.type="reduced"}return g};
i5f=function(g,u){u=u===void 0?{}:u;var q=null,Q=new _.Ez(function(L,E){u.onFinish=function(y){if(y.readyState===XMLHttpRequest.DONE)if(y.status===200){if(y.responseType!=="json"){var v=y.response;v.substring(0,5)===")]}'\n"&&(v=v.substring(5));try{var J=JSON.parse(v)}catch(f){J=f}}else J=y.response;J instanceof Error?E(J):(v=b5Z(J,"xsrf_token"),Bq(window.location.href,g)&&v&&_.di("XSRF_TOKEN",v),y=y.responseURL,window.performance&&window.performance.getEntriesByName?(v=window.performance.getEntriesByName(y).pop())?
y={responseStart:(0,_.n0)()-(v.responseEnd-v.responseStart)}:(Math.random()<.01&&(v=Error("hi"),v.params=y,_.Io(v)),y={responseStart:-1}):y={responseStart:0},J.timing=J.timing||{},Object.assign(J.timing,y),L(J))}else E(Error("gi`"+y.status))};
(q=_.Ek(g,u))||E(Error("gi`"+q.status))});
Q.thenCatch(function(L){L instanceof Error&&(FqF(L,g),m9h(L)&&(L.level="WARNING"))});
_.w("cancel_pending_navs")&&Q.thenCatch(function(){q.abort()});
return Q};
b5Z=function(g,u){var q=g[u],Q=g.parts;g.type==="multipart"&&Q&&(q=(g=Q.find(function(L){return u in L}))&&g[u]);
return q};
FqF=function(g,u,q){var Q=g.message||"";u={original:Q,url:u};if(q)if(Q=Q.match(/position:?\s*(\d+)/)){Q=Q&&Number(Q[1])?Number(Q[1]):0;var L=Math.max(Q-25,0);u.position=Q;u.response=q.substring(L,Q+25)}else u.response=q.substring(0,50);_.iD(g,u);try{g.message="JSON parse error"}catch(E){}};
m9h=function(g,u){g=g.message||"";g=!!(g.indexOf("<")>=0||g.indexOf("end of ")>=0||g.indexOf("Unterminated string")>=0||g.indexOf("Unexpected EOF"));if(!g&&u)for(var q=u.length,Q=!1,L=0;L<q;L++)if(Q&&u[L]==="\\")L++;else if(u[L]==='"')Q=!Q;else if(u[L]==="<"&&!Q){g=!0;break}return g};
an3=function(){return document.documentElement.hasAttribute("dark")};
_.VDF=function(g,u){if(g!=="GFEEDBACK"&&g!=="GUIDED_HELP")_.a4(Error("ii`"+g));else{var q=_.Bk().resolve(_.xv(_.ba));if(q&&(q=q.getCurrentPage())&&q.getServiceTrackingParams&&(q=q.getServiceTrackingParams()))for(var Q=0,L;L=q[Q++];)if(L.service===g){if(g=L.params)for(q=0;Q=g[q++];)u[Q.key]=Q.value;break}}};
_.X0Z=function(g){var u=_.F0();u&&(u=u.getPlayer())&&(u.pauseVideo(),g.playback_id=u.getVideoData().cpn,g.eid=u.getVideoData().eventId,Object.assign(g,u.getFeedbackProductData()))};
rUh=function(){var g={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.FR("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(g.enableAnonymousFeedback=!0);_.FR("SESSION_INDEX")&&(g.authuser=String(_.FR("SESSION_INDEX")));_.w("enable_pageid_for_feedback")&&_.FR("DELEGATED_SESSION_ID")&&(g.pageId=String(_.FR("DELEGATED_SESSION_ID")));return g};
_.$b=function(g){_.w("enable_ypc_spinners")&&_.YJ(g,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},g])};
_.R1=function(g){_.w("enable_ypc_spinners")&&_.YJ(g,"yt-close-popup-action",["yt-loading-renderer"])};
Wqh=function(g){return new Promise(function(u,q){_.fr({verifyCommand:{recaptchaToken:g.recaptchaResponse}},{commandController:{onSuccess:function(Q,L){L||q("ChallengeService did not return a response.");var E;u({challengeCompleted:(E=L.verified)!=null?E:!1})},
onServerError:function(Q,L){q(L)}}})})};
TMm=function(g,u,q,Q){u({recaptchaResponse:Q}).then(function(L){L.challengeCompleted?_.vW()?(q(3),_.Bk().resolve(_.Gy).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:g}})):q(2):q(4)},function(){q(4)})};
YsF=function(g,u,q){_.Rr(_.A1(hjZ,_.FR("HL")),function(){var Q;(Q=window.grecaptcha)==null||Q.ready(function(){var L=window.grecaptcha;L?(q(L.render(g,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:TMm.bind(null,g,Wqh,u)})),u(1)):u(4)})})};
O5Z=function(g,u){return function(){switch(u()){case 0:return g().captchaLoadingMessage;case 1:return g().challengeReason;case 3:return g().captchaSuccessfulMessage;case 2:return g().captchaCookieSetFailureMessage;case 4:return g().captchaFailedMessage;default:return g().challengeReason}}()};
_.w_=function(){if(!Kqq){var g=document.querySelector("#player.skeleton");g&&(_.UU(g),Kqq=!0)}};
_.BMS=function(){return x9q=sdT()};
kET=function(){return _.D(function(g){return zjk!==void 0?g.return():g.yield(nmf(),0)})};
nmf=function(){return _.D(function(g){if(g.nextAddress==1)return g.yield(vrJ(),2);x9q=g.yieldResult;zjk=_.Hv.addLowPriorityJob(nmf,5E3);_.Wx(g)})};
ubT=function(g){var u=u===void 0?SsS:u;var q,Q,L=(q=g.responseContext)==null?void 0:(Q=q.mainAppWebResponseContext)==null?void 0:Q.trackingParam;if(!L){u.increment("MISSING");var E,y,v,J,f,t;_.Io(new _.Ji("282054944_a",{xIY:!!((E=g.responseContext)==null?0:(y=E.mainAppWebResponseContext)==null?0:y.loggedOut),tWn:((v=g.responseContext)==null?void 0:v.mainAppWebResponseContext)===void 0,ySN:g.responseContext===void 0,cp:(J=g.playabilityStatus)==null?void 0:J.contextParams,uVd:(((f=g.streamingData)==
null?void 0:f.formats)||[]).length>0,ocs:(((t=g.streamingData)==null?void 0:t.adaptiveFormats)||[]).length>0,os:!!g.offlineState,cotn:g.cotn}));return 2}q="";try{q=omF(L)}catch(R){return u.increment("C_ERROR"),_.Zf(R),2}try{var e=_.OZq(q);var G=U9J(e)}catch(R){return u.increment("P_ERROR"),_.Zf(R),2}G=_.Vu(G,gPh,1,_.Xo());L=[];G=_.N(G);for(e=G.next();!e.done;e=G.next())Q=e.value,e=Q.getPath(),q=(0,_.pH.getValueByKeys)(g,e.split(".")),q=String(q===void 0||q===null?"":q),Q=Q.getValue()||"",E=/[+\-\/_]/g,
q.replace(E,"")!==Q.replace(E,"")&&(u.increment("MISMATCH"),_.w("ab_mis_log_err")&&(q=new _.Ji("282054944_p",{oBO:e,g:String(q),e:String(Q)}),_.Zf(q)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(e)||(e.match(/enforcementMessageViewModel/i)?L.push(3):L.push(2)));if(L.length>0)return Math.max.apply(Math,_.na(L));u.increment("SUCCESS");return 1};
Ltb=function(g){var u=new lb;if(g.interpreterJavascript){var q=_.tPK(g.interpreterJavascript);q=pa(q).toString();var Q=new qjf;_.EU(Q,6,q);_.FV(u,1,Q,aR)}else g.interpreterUrl&&(q=_.A6(g.interpreterUrl),q=_.WT(q).toString(),Q=new _.QjS,_.EU(Q,4,q),_.FV(u,2,Q,aR));g.interpreterHash&&_.I1(u,3,g.interpreterHash,aR);g.program&&_.I1(u,4,g.program,aR);g.globalName&&_.I1(u,5,g.globalName,aR);g.clientExperimentsStateBlob&&_.I1(u,7,g.clientExperimentsStateBlob,aR);return u};
ib=function(g){var u={};g=_.N(g.split("&"));for(var q=g.next();!q.done;q=g.next())q=q.value.split("="),q.length===2&&(u[q[0]]=q[1]);return u};
EPm=function(g){return Number(g.t)||7200};
PVb=function(){var g=g===void 0?window:g;var u,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(cMk(),2);u=g;q=u.bgevmc;if(!q)throw Error("mi");return Q.return({pause:function(){q.p()},
resume:function(){q.r()},
checkForRefresh:function(){return q.cr()}})})};
wkZ=function(){if(_.w("bg_st_hr"))return"havuokmhhs-0";var g,u=((g=globalThis.performance)==null?void 0:g.timeOrigin)||0;return"havuokmhhs-"+Math.floor(u)};
C3=function(g){window.bgens=g};
NsM=function(){return new Promise(function(g){var u=window;u.ntpevasrs!==void 0?g(new bb(u.ntpevasrs)):(u.ntpqfbel===void 0&&(u.ntpqfbel=[]),u.ntpqfbel.push(function(q){g(new bb(q))}))})};
sjJ=function(g){if(_.w("attmusi")&&_.w("attmusi_ue")){g={s:g.cBB.bind(g),ir:g.wCN.bind(g)};var u=window;u.attmp=g;if(u.attmq!==void 0)for(var q=_.N(u.attmq),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q(g);u.attmq=void 0}else u=g.cBB.bind(g),_.xQ("yt.aba.att",u),g=g.wCN.bind(g),_.xQ("yt.aba.att2",g)};
vPq=function(g){switch(_.YB(g.input)){case _.dr(yNK):var u={};return u.encryptedVideoId=g.innerTubeRequest.externalVideoId,u}return{}};
JNh=function(g){switch(_.YB(g.input)){case _.dr(yNK):if(_.w("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.dr(DLM):if(_.w("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.dr(d_):if(_.w("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&g.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.dr(pgm):var u,q;if(_.w("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((q=_.c((u=g.config)==null?void 0:u.command,_.I9))==null?0:q.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.fAZ=function(g){var u;if(g.playlistVideoRenderer&&((u=g.playlistVideoRenderer)==null?0:u.engagementBar))return jjh(g.playlistVideoRenderer.engagementBar);if(_.c(g,Fa)){var q;if(g=(q=_.c(g,Fa))==null?void 0:q.engagementBar)return jjh(g)}return""};
jjh=function(g){if(!g)return"";g=_.c(g,_.Mwf);if(g==null||!g.actions)return"";g=_.N(g.actions);for(g=g.next();!g.done;g=g.next()){g=_.c(g.value,_.twF);var u=void 0;if((u=g)==null||!u.itemId)break;return g.itemId}return""};
_.e7M=function(g){var u;if(g.playlistVideoRenderer&&((u=g.playlistVideoRenderer)==null?0:u.videoId))return g.playlistVideoRenderer.videoId;if(_.c(g,Fa)){var q,Q;if(g=(q=_.c(g,Fa))==null?void 0:(Q=q.playlistItemData)==null?void 0:Q.videoId)return g}return""};
_.G1J=function(g){var u;if(g.playlistVideoRenderer&&((u=g.playlistVideoRenderer)==null?0:u.voteCount))return g.playlistVideoRenderer.voteCount;if(_.c(g,Fa)){var q,Q;if(g=(q=_.c(g,Fa))==null?void 0:(Q=q.playlistItemData)==null?void 0:Q.voteCount)return g}return 0};
_.mZ=function(g,u){return _.BC(g.entities,"flowStateEntity",u)};
R7K=function(g,u,q,Q){var L=void 0;g=_.N(g[u.iconName]||[]);for(var E=g.next();!E.done;E=g.next()){E=E.value;var y=u.iconSize;var v=u.iconStyle;y=!y||y===E[2];var J=$Lm[E[0]];Q&&Q!==E[1]||!y||v&&v!==J?v=!1:L?(v=$Lm[E[0]],v=!!u.iconStyle||v==="youtube_outline",y=L.version<=E[1],v=(!!u.iconSize||E[2]===24)&&v&&y):v=!0;v&&(L={name:u.iconName,style:$Lm[E[0]],size:E[2],version:E[1],allowMirroring:!!E[3],url:q(u.iconName,E)})}return L};
wgF=function(g,u,q,Q){return g+(""+$Lm[q[0]]+((Q===void 0?0:Q)?"_experimental":"")+"/"+u+"/v"+q[1]+"/")+(q[2]+"px.svg")};
cNM=function(g){return _.FR("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.FR("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":g};
HDf=function(g,u){return wgF("https://fonts.gstatic.com/s/i/",g,u)};
ANm=function(g,u){return wgF("https://fonts.gstatic.com/s/i/",g,u,!0)};
ZDF=function(g,u){return wgF("https://www.gstatic.com/youtube/img/icons/web/",g,u)};
iDJ=function(g){var u=g.enabled;var q=g.itemPlaybackModel;var Q=g.thumbnailElRef;var L=g.containerElRef;var E=g.options;var y;_.bX(function(){var v=L==null?void 0:L.value;var J,f=(J=Q())==null?void 0:J.value,t=q();J=E();if(u&&t&&v&&f&&(J==null?0:J.thumbnail)){var e={data:t,hostElement:v},G,R,H=[].concat(_.na((G=J.thumbnailOverlays)!=null?G:[]),_.na((R=t.overlays)!=null?R:[]));R=t.itemPlaybackOptions;G=(R==null?void 0:R.enableRoundedPlayer)||J.enableRounding;R=R==null?void 0:R.disableTimeStatusOverlay;
var l,d,F=(l=t.inlinePlayerData)==null?void 0:l.onVisible,V=(d=t.inlinePlayerData)==null?void 0:d.onSelect;d=J.thumbnail;l=J.accessibilityText||"";t=(t=_.c(F,lAZ))&&t.playerDescriptors?t.playerDescriptors:void 0;if(t){F=[];for(V=0;V<t.length;V++){var z=void 0;F.push({inlinePlaybackEndpoint:t[V].inlinePlaybackEndpoint,navigationEndpoint:t[V].navigationEndpoint,thumbnail:(z=t[V].thumbnail)!=null?z:d,thumbnailOverlays:t[V].thumbnailOverlays?t[V].thumbnailOverlays:H,accessibilityText:l})}H=F}else H={inlinePlaybackEndpoint:_.jy(F),
navigationEndpoint:_.jy(V),thumbnail:d,thumbnailOverlays:H,accessibilityText:l};v={mediaRenderer:e,lockupElement:v,thumbnailElement:f,videoPreviewOpts:{videoPreviewData:H,thumbnailSize:J.thumbnailSize,enableRounding:G,mouseleaveCallback:J.mouseleaveCallback,hideTimeDisplay:R}}}else v=void 0;if(v){var O;(O=y)==null||a1(O);y=M0(v);var W,x;((W=q())==null?0:(x=W.inlinePlayerData)==null?0:x.forceImpAutoplay)&&IAf(y)}},"mM6F9");
_.dB(function(){var v;(v=y)==null||a1(v)})};
CVS=function(g){g=atob(g);for(var u=[],q=0;q<g.length;q++)u.push(g.charCodeAt(q));return new Blob([new Uint8Array(u)],{type:"image/png"})};
dLT=function(g,u,q,Q){Q=Q===void 0?"INSERTION_POSITION_UNSPECIFIED":Q;return g({targetId:u},function(L){var E,y=(E=L.contents)!=null?E:[];E=q!=null?q:[];var v=bDm(y);switch(Q){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},L,{contents:[].concat(_.na(y.slice(0,v)),_.na(E),_.na(y.slice(v+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},L,{contents:[].concat(_.na(E),_.na(y))});case "INSERTION_POSITION_LAST":return Object.assign({},L,{contents:[].concat(_.na(y),_.na(E))});
default:return L}})};
mLu=function(g,u,q,Q,L){L=L===void 0?"RELATIVE_INSERTION_POSITION_AFTER":L;return g({targetId:u},function(E){var y,v=(y=E.contents)!=null?y:[];y=Ftf(v,q);if(y<0)return E;y=L==="RELATIVE_INSERTION_POSITION_BEFORE"?y:y+1;return Object.assign({},E,{contents:[].concat(_.na(v.slice(0,y)),_.na(Q),_.na(v.slice(y)))})})};
bDm=function(g){var u=g.findIndex(function(q){return _.c(q,_.V5)});
return u>=0?u:g.length};
Ftf=function(g,u){return g.findIndex(function(q){a:{q=_.N(Object.values(q));for(var Q=q.next();!Q.done;Q=q.next())if((Q=Q.value)&&Q.targetId){q=Q.targetId;break a}q=""}return q===u})};
VwF=function(g,u,q){return g({targetId:u},function(Q){var L,E=(L=Q.contents)!=null?L:[];return Object.assign({},Q,{contents:aAb(E,q)})})};
aAb=function(g,u){return g.filter(function(q){var Q=u.includes;a:{q=_.N(Object.values(q));for(var L=q.next();!L.done;L=q.next())if((L=L.value)&&L.targetId){q=L.targetId;break a}q=""}return!Q.call(u,q||"")})};
_.Xgf=function(g,u){return{engagementPanelSectionListRenderer:{panelIdentifier:g,identifier:u,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
rNh=function(g,u){g=g.getAvailableAudioTracks();if(g.length)return g==null?void 0:g.find(function(q){var Q;return(q==null?void 0:(Q=q.getLanguageInfo())==null?void 0:Q.getId())===u})};
_.TsZ=function(g){var u,q=(u=g.getOption("captions","tracklist",{includeAsr:!0}))!=null?u:[];return q=Wtq(q,g)};
h7u=function(g){return g.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Wtq=function(g,u){u=h7u(u);if(u==null||!u.length)return g;var q=u.filter(function(y){return y});
u=g.filter(function(y){return y.languageCode.startsWith("en")});
q=_.N(q);for(var Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,u.length){var L=u[0],E=Object.assign({},L);L.languageCode!==Q.languageCode&&(E.displayName=L.languageName+" >> "+Q.languageName,E.translationLanguage=Q,g.push(E))}return g};
YjS=function(g,u,q){g=_.TsZ(g);if(g.length)return q?g.find(function(Q){if(typeof(Q==null?void 0:Q.translationLanguage)==="object"){var L;return((L=Q.translationLanguage)==null?void 0:L.languageCode)===u}return!1}):g==null?void 0:g.find(function(Q){return Q.languageCode===u})};
ODh=function(g){return g.getOption("captions","tracklist",{includeAsr:!0})};
Kth=function(g){var u=g.getAvailableAudioTracks();if(u!=null&&u.length){var q=g.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.na(u.map(function(Q){return{listItemViewModel:{title:{content:Q.getLanguageInfo().getName()},isSelected:Q.getLanguageInfo().getId()===(q==null?void 0:q.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:Q.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
xLZ=function(g){return g.getOption("captions","tracklist",{includeAsr:!0})};
BsZ=function(g){var u=xLZ(g);if(u==null?0:u.length)return u;g.loadModule("captions");return xLZ(g)};
z7K=function(g){var u=g.getOption("captions","track");if(u)return u;g.loadModule("captions");return g.getOption("captions","track")};
k1T=function(g){var u=BsZ(g);if(u!=null&&u.length){var q=z7K(g),Q;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Ug("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(q==null?0:q.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.na(u.map(function(L){return{listItemViewModel:{title:{content:L.displayName},
isSelected:L.displayName===(q==null?void 0:q.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:L.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Ug("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!q.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!q.translationLanguage&&{selectionText:{content:(q==null?void 0:(Q=q.translationLanguage)==null?void 0:Q.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[nPK(g)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
nPK=function(g){var u=h7u(g);if(u==null||!u.length)throw Error("Ii");var q=z7K(g);g=u.filter(function(Q){return!Q.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.na(g.map(function(Q){var L;return{listItemViewModel:{title:{content:Q.languageName},isSelected:Q.languageName===(q==null?void 0:(L=q.translationLanguage)==null?void 0:L.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Q.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
gUq=function(g){return new Promise(function(u,q){if(g===void 0)_.Zf(Error("Mi"),"ERROR"),q(Error("Mi"));else{q=new _.SjK;var Q=_.oPq();q=q.init();var L=_.ULu(_.FR("YPC_MB_URL"),!0);Promise.all([q,L]).then(function(){var E=_.Xa.payments.business.integration.ClientTokenFactory.createClientToken(g,Q);u(E)})}})};
QtM=function(g,u,q,Q,L,E,y){var v=_.A9();q=q.replace(/-/g,"+").replace(/_/g,"/");var J=_.qf().get("hl"),f=_.r_(_.id),t=u==null?void 0:u.element;t&&_.$b(t);u3h(u,!0);_.qou(f,q,v.resolve,function(){t&&_.R1(t)},function(e){t&&_.R1(t);
v.reject(e)},J,Q?function(e){Q&&_.ce(g,Q,{backend_analytics:e})}:void 0,v.resolve,L,E,y);
return v.promise};
u3h=function(g,u){!(g=g==null?void 0:g.element)||g.tagName!=="YT-BUTTON-RENDERER"&&g.tagName!=="YTD-BUTTON-RENDERER"||(g.disabled=u)};
LIm=function(){var g=_.Ug("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.ap(g),actionButton:{buttonRenderer:yxf()}}},popupType:"TOAST"}};
EUJ=function(){var g=_.Ug("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.ap(g),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
P_T=function(g){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:g}]}}};
Wb=function(g,u,q,Q){var L;return _.D(function(E){if(E.nextAddress==1)return _.b8(E,2),E.yield(g,4);if(E.nextAddress!=2)return(L=_.LU(u.getState().entities).length>0)?E.return({title:_.ap(_.Ug("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.ap(_.Ug("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:sFF()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
E.return(vjb(q,Q));_.rt(E);return E.return(vjb(q,Q))})};
NkJ=function(g,u){return u?u==="PPSV"||XOM(g,u):!1};
sth=function(g){g.responseContext||(g.responseContext={});g.responseContext.maxAgeSeconds=0;return g};
hZ=function(g){var u;return _.D(function(q){return q.nextAddress==1?q.yield(yIq(g,"service:topbar:fallback"),2):(u=q.yieldResult)&&_.Tx(u)?q.return(sth(_.Tx(u))):q.return()})};
vUk=function(g){var u;return _.D(function(q){return q.nextAddress==1?q.yield(yIq(g,"service:downloads_settings:fallback"),2):(u=q.yieldResult)&&_.Tx(u)?q.return(u):q.return()})};
yIq=function(g,u){var q;return _.D(function(Q){if(Q.nextAddress==1)return g?Q.yield(g.get(u),2):Q.return();q=Q.yieldResult;return!q||!_.Tx(q)||!isNaN(Number(q.data.expireTimestampMs))&&q.isExpired()?Q.return():Q.return(q)})};
D1Z=function(g){var u=_.Bk().resolve(Yb).getState().entities;return g.playlistId?NkJ(u,g.playlistId):!1};
JIM=function(g){var u=_.S8("web_pbj_log_warning_rate",0);u=u>0&&Math.random()<u;if(!_.c(g,_.g$))return u&&_.Io(Error("fj")),!1;var q;return _.w("shorts_controller_retrieve_seedless_sequence_v2")&&((q=_.c(g,_.g$))==null?void 0:q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:p7u(g)?!0:(u&&_.Io(Error("gj")),!1)};
p7u=function(g){var u=(_.c(g,_.l1)||_.c(g,_.g$)).videoId;if(!u||!jt3.test(u))return!1;var q;return(g=(q=_.c(g.commandMetadata,_.S_))==null?void 0:q.url)&&(g.includes(u)||g.startsWith("/clip"))?!0:!1};
_.Of=function(g){var u=_.w(g);Tg["counterfactuals."+g]=String(u);return u};
_.MN3=function(){var g=_.qf();return g.getFlag(192)?g.getFlag(190):!(_.Of("web_watch_cinematics_disabled_by_default")||_.Of("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&fDb())};
_.K3=function(g,u,q){var Q={};Q.currentUrl=u;Q.vis=g.vis!==void 0?g.vis:0;Q.splay=!1;u=_.qf();Q.autoCaptionsDefaultOn=u.getFlag(66);u.getFlag(141)?u.getFlag(140)?Q.autonavState="STATE_OFF":Q.autonavState="STATE_ON":Q.autonavState="STATE_NONE";Q.html5Preference="HTML5_PREF_WANTS";isNaN(_.FR("STS"))||(Q.signatureTimestamp=_.FR("STS"));g.autonav&&(Q.autoplay=!0,Q.autonav=!0);g.mutedAutoplay&&(Q.autoplay=!0,Q.mutedAutoplay=!0);g.inlinePlayback&&(Q.autoplay=!0,Q.autonav=!1,Q.isInlineUnmutedPlayback=!!g.inlineUnmuted);
Q.referer=q;Q.lactMilliseconds=g.lact!==void 0?g.lact.toString():"-1";_.w("enable_unknown_lact_fix_on_html5")&&Q.lactMilliseconds==="-1"&&_.Io(new _.Ji("Unknown LACT is set in playbackContext.",{"lact in tempData":g.lact||"undefined",autonav:g.autonav||"undefined"}));g={};u.getFlag(194)&&(g.hasShownAmbientMode=!0);u.getFlag(192)&&(g.hasToggledOffAmbientMode=!0);_.MN3()&&(g.watchAmbientModeEnabled=!0);Q.watchAmbientModeContext=g;return Q};
tNq=function(g){var u={},q=g.pbis||0;q&&(u.playbackBeginsInSeconds=q);g.prefetch_reason&&g.prefetch_reason==="hc_pbis"&&(u.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return u};
eWb=function(g,u){var q;if(u==null?0:(q=u.requestTemplate)==null?0:q.panelId)g.panelId=u.requestTemplate.panelId;var Q;if(u==null?0:(Q=u.requestTemplate)==null?0:Q.params)g.params=u.requestTemplate.params};
$1m=function(){if(GUk)return GUk();var g=!_.w("idb_response_store_auth_killswitch"),u={};GUk=z8("yt-it-response-store",{objectStores:(u.ResponseStore={addedAtVersion:1},u),shared:!g,upgrade:function(q,Q){Q(1)&&(q=dN(q,"ResponseStore",{keyPath:["key","clientName"]}),F7(q,"byExpiration","expireTimestampMs"),F7(q,"byInterface","clientName"))},
version:1});return GUk()};
xb=function(g){return _.WW($1m(),g)};
w7q=function(g,u){var q;return _.D(function(Q){return Q.nextAddress==1?Q.yield(_.BW(),2):(q=Q.yieldResult)?Q.return(new RWq(g,u,q)):Q.return()})};
cIq=function(g){var u=Object.keys(g)[0];if(u)return g.screenExit&&(u=u+";"+g.screenExit.screen),u};
HMZ=function(g){var u=new Map;g=_.N(g);for(var q=g.next();!q.done;q=g.next())q=q.value,q!=null&&(u.has(q.taskType)||u.set(q.taskType,[]),u.get(q.taskType).push(q));return u};
AIF=function(g){g=[].concat(_.na(g)).sort(function(q,Q){return q-Q});
var u=Math.floor(g.length/2);return g.length%2?g[u]:(g[u-1]+g[u])/2};
IDf=function(g,u){g=g===void 0?ssm:g;u=u===void 0?{}:u;_.xQ("yt.logging.errors.log",_.Zf);P2Z();ZMq(J73(),u);window.onerror=g;lDh=Nyk;window.addEventListener("unhandledrejection",function(q){if(q.reason instanceof Error){var Q=q.reason;_.iD(Q,{source:"unhandledrejection"});Q.name==="AbortError"&&(Q.level="WARNING")}Nyk(q.reason);q.preventDefault()})};
_.iMh=function(g){var u,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k,LZ,sb,Rm,M3,tT,mJ,hT,Yu,Mx,po,KZ,G2,Ab,tb,lx,NE,fZ;return _.D(function(Xf){if(Xf.nextAddress==1)return Xf.yield(_.UR(g,{mode:"readonly",enableRetries:!0},function(eX){return gr(eX,"playbackData").then(function(no){var Co=no.map(function(jf){return jf.transfer}).filter(function(jf){return!!jf}),gC=no.map(function(jf){return jf.offlineVideoPolicy}).filter(function(jf){return!!jf}),Ca=no.filter(function(jf){return!!jf.key}).map(function(jf){return _.x6(_.Tz(jf.key).entityId,
"downloadStatusEntity")});
Co=gr(eX,"transfer",Co);gC=gr(eX,"offlineVideoPolicy",gC);Ca=gr(eX,"downloadStatusEntity",Ca);var oR=Co.then(function(jf){jf=jf.reduce(function(Ko,K9){(K9==null?0:K9.offlineVideoStreams)&&Ko.push.apply(Ko,_.na(K9.offlineVideoStreams));return Ko},[]).filter(function(Ko){return!!Ko});
return gr(eX,"offlineVideoStreams",jf)});
return C0.all([Co,gC,oR,Ca]).then(function(jf){var Ko=_.N(jf);jf=Ko.next().value;var K9=Ko.next().value;var v5=Ko.next().value;Ko=Ko.next().value;return[no,jf,K9,v5,Ko]})})}),2);
if(Xf.nextAddress!=3)return u=Xf.yieldResult,Xf.yield(_.UR(g,{mode:"readonly",enableRetries:!0},function(eX){return gr(eX,"mainDownloadsListEntity").then(function(no){var Co,gC;return(gC=(Co=no[0])==null?void 0:Co.downloads)!=null?gC:[]})}),3);
q=Xf.yieldResult;Q=_.N(u);L=Q.next().value;E=Q.next().value;y=Q.next().value;v=Q.next().value;J=Q.next().value;f=L;t=E;e=y;G=v;R=J;H={};l={};d={};F={};V={};z=[];O=_.N(t);for(W=O.next();!W.done;W=O.next())(x=W.value)&&(H[x.key]=x);k=_.N(e);for(LZ=k.next();!LZ.done;LZ=k.next())(sb=LZ.value)&&(l[sb.key]=sb);Rm=_.N(R);for(M3=Rm.next();!M3.done;M3=Rm.next())(tT=M3.value)&&(d[tT.key]=tT);mJ=_.N(G);for(hT=mJ.next();!hT.done;hT=mJ.next())(Yu=hT.value)&&(F[Yu.key]=Yu);Mx=_.N(q);for(po=Mx.next();!po.done;po=
Mx.next())KZ=po.value,G2=void 0,V[(G2=KZ.videoItem)!=null?G2:""]=!0,KZ.videoItem&&(tb=Ab=void 0,lx=(tb=(Ab=_.Tz(KZ.videoItem))==null?void 0:Ab.entityId)!=null?tb:"",z.push({externalVideoId:lx}));NE=f.filter(function(eX){if(!eX||!eX.key||!eX.offlineVideoPolicy)return!1;eX=_.Tz(eX.key).entityId;eX=_.x6(eX,"downloadStatusEntity");var no;return!(eX&&((no=d[eX])==null?void 0:no.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
fZ=NE.map(function(eX){var no=H[eX.transfer],Co=[];if(no==null?0:no.offlineVideoStreams)for(var gC=_.N(no.offlineVideoStreams),Ca=gC.next();!Ca.done;Ca=gC.next())(Ca=F[Ca.value])&&Co.push(Ca);gC=l[eX.offlineVideoPolicy];Ca=V;var oR=eX==null?void 0:eX.playerResponseTimestamp,jf=_.Tz(gC.key).entityId;eX=_.x6(jf,"mainVideoEntity");if(gC.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Ko="OFFLINE_VIDEO_STATE_DISABLED";gC.expirationTimestamp&&Number(gC.expirationTimestamp)<Date.now()/1E3&&(Ko="OFFLINE_VIDEO_STATE_EXPIRED")}else if(gC.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Ko="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(no==null?void 0:no.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Ko="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Ko="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Ko="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Ko="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Ko="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Ko="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Ko="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Ko==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(no==null?void 0:no.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Ko="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Ko="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Ko=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}jf={id:jf,videoState:Ko};if(no==null?0:no.cotn)jf.cotn=no.cotn;if(no==null?0:no.maximumDownloadQuality)jf.selectedVideoQuality=no==null?void 0:no.maximumDownloadQuality;if(no==null?0:no.lastProgressTimeMs)jf.lastProgressTimeMs=no.lastProgressTimeMs;oR&&(jf.playerResponseSavedTimeMs=String(Number(oR)*1E3));no=String;oR=0;Co=_.N(Co);for(Ko=Co.next();!Ko.done;Ko=Co.next())if(Ko=Ko.value,Ko.streamsProgress){Ko=_.N(Ko.streamsProgress);for(var K9=Ko.next();!K9.done;K9=
Ko.next()){var v5=void 0;oR+=Number((v5=K9.value.numBytesDownloaded)!=null?v5:0)}}jf.downloadedBytes=no(oR);jf.selectedOfflineMode=Ca[eX]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";gC.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(jf.offlinePlaybackDisabledReason=gC.offlinePlaybackDisabledReason);return jf});
return Xf.return({offlineVideos:fZ,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:z}}})})};
C_k=function(){var g;return _.D(function(u){return u.nextAddress==1?u.yield(_.k6(),2):(g=u.yieldResult)?u.return(_.iMh(g)):u.return({state:"PES Unavailable"})})};
FIk=function(){var g,u,q,Q;return _.D(function(L){if(L.nextAddress==1)return L.yield(_.k6(),2);if(L.nextAddress!=3)return(g=L.yieldResult)?L.yield(bMq(g),3):L.return({state:"PES Unavailable"});u=L.yieldResult;q={};Q=u.reduce(function(E,y){E[y.key]=y;return E},q);
return L.return(d1u(Q))})};
d1u=function(g){for(var u={},q=[],Q=_.N(Object.keys(g)),L=Q.next();!L.done;L=Q.next()){var E=L.value;L=g[E];var y=void 0;if(((y=L)==null?void 0:y.entityType)==="mainVideoEntity"){delete g[E];var v=L.data;L={};if(v){var J=void 0;y=(J=v.videoId)!=null?J:"vid-"+E;E=g;L.video=v;delete L.video.formattedDescription;delete L.video.thumbnail;v.owner&&(J=E[v.owner],J==null?0:J.data)&&(delete E[J.key],L.video.owner=J.data,delete L.video.owner.avatar);if(v=v.downloadState)if(J=E[v],J==null?0:J.data)if(delete E[v],
v=J.data.playbackData)if(J=E[v],J!=null&&J.data){delete E[v];v=J.data;delete v.playerResponseJson;L.playbackData=v;if(v.transfer&&(J=E[v.transfer],J==null?0:J.data)){delete E[J.key];var f=J.data;L.transfer=f;J=[];f=_.N(f.offlineVideoStreams||[]);for(var t=f.next();!t.done;t=f.next())if(t=E[t.value])delete E[t.key],J.push(t.data);J&&(L.streams=J)}(v=v.offlineVideoPolicy)&&(v=E[v])&&v.data&&(delete E[v.key],L.offlineVideoPolicy=v.data)}u[y]=L}}else L&&L.entityType==="offlineOrchestrationActionWrapperEntity"&&
L.data&&(delete g[L.key],y=L.data,E=void 0,q.push({id:y.rootActionId,type:((E=y.actionProto)==null?void 0:E.actionType)||"",entity:L}))}u.wrapperEntities=q;Object.keys(g).length>0&&(u.unknownKeys=g);return u};
m1K=function(){var g,u,q,Q,L,E,y,v,J;return _.D(function(f){if(f.nextAddress==1)return g=(new _.CB("")).hasLocalStorage(),Q=!!((u=_.Qq.crypto)==null?0:(q=u.subtle)==null?0:q.importKey),L=!!_.Qq.BroadcastChannel,E=!!_.Qq.navigator.locks,f.yield(Trb(),2);y=f.yieldResult;v=g&&Q&&L&&E&&y;J={isSupported:v};if(v)return f.return(J);J.missingBrowserFeatures=[];y||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");g||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
Q||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");L||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");E||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return f.return(J)})};
aDK=function(g,u,q,Q){var L=!1,E={contentId:void 0,contentType:"video"};u=_.N(Object.entries(u));for(var y=u.next();!y.done;y=u.next()){var v=_.N(y.value);y=v.next().value;v=v.next().value;g.includes(y)&&!q.has(v)?(E.contentId=v,q.add(v),L=!0):y==="contentType"?v==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(E.contentType="playlist"):typeof v==="object"&&v!==null&&aDK(g,v,q,Q)}L&&Q.push(E)};
VNS=function(){var g;return!((g=Bb?Bb:null)==null||!g.window)};
_.WIF=function(g){if(_.X7J()){var u=_.rIk().mediaSession;try{u.setActionHandler("enterpictureinpicture",function(q){g(q)})}catch(q){}}};
_.X7J=function(){return!(!Bb||!Bb)&&ih()&&_.cTu("Chromium")>=120};
Tkb=function(g){for(var u=[],q=_.N(document.styleSheets),Q=q.next(),L={};!Q.done;L={node$jscomp$779:void 0},Q=q.next())L.node$jscomp$779=Q.value.ownerNode,L.node$jscomp$779&&(L.node$jscomp$779 instanceof HTMLStyleElement||L.node$jscomp$779 instanceof HTMLLinkElement)&&u.push(new Promise(function(E){return function(y){var v=E.node$jscomp$779.cloneNode(!0);v.onload=function(){y()};
v.onerror=function(){_.Io(Error("yj"));y()};
g.document.head.appendChild(v)}}(L)));
return Promise.all(u)};
SoJ=function(g){var u=[_.cq(hWM),_.cq(Yom),_.cq(OMq)];KIk(window.document.documentElement,g.document.documentElement,[_.cq(x1K),_.cq(Bkb),_.cq(zWk),_.cq(nUb),_.cq(kUT)]);KIk(window.document.body,g.document.body,u)};
KIk=function(g,u,q){g=_.N(g.attributes);for(var Q=g.next();!Q.done;Q=g.next())if(Q=Q.value)try{_.Ma(q,u,Q.name,Q.value)}catch(L){}};
U13=function(g,u){g=new _.zx(g.document.documentElement);g.start(oUq,u);return g};
gTm=function(g){var u=g.document.documentElement;u.addEventListener("click",function(q){FuF(u,q)});
u.addEventListener("touchstart",function(q){ru3(q)});
u.addEventListener("mousedown",function(q){ru3(q)})};
qhJ=function(g,u,q,Q){Q=Q===void 0?!1:Q;u=new uDh(u||g,q||g);return{x:g.x+((Q===void 0?0:Q)?u.lengthX*-1:u.lengthX)*.2,y:g.y+((Q===void 0?0:Q)?u.lengthY*-1:u.lengthY)*.2}};
QLT=function(g){if(!g)return!1;var u=g.status==="OK"||g.status==="LIVE_STREAM_OFFLINE",q,Q,L,E=(L=(q=g.errorScreen)==null?void 0:q.playerLegacyDesktopYpcTrailerRenderer)!=null?L:(Q=g.errorScreen)==null?void 0:Q.ypcTrailerRenderer;return!!u||!!E};
_.LNm=function(g,u){if(!g)return!1;var q,Q=(q=g.errorScreen)==null?void 0:q.playerLegacyDesktopYpcOfferRenderer,L;u=!!(u==null?0:(L=u.playerOverlayRenderer)==null?0:L.gatedActionsOverlayRenderer);return!!QLT(g)||!!Q||!!u};
ETq=function(g){return qHk(g,0,"gclid",g.search(Q2T))>=0||qHk(g,0,"gad_source",g.search(Q2T))>=0};
P9K=function(g){var u=[],q=0;return{clear:function(){q=u.length=0},
push:function(Q){u[q]=Q;q=(q+1)%g},
iterate:function(){return function L(){var E,y,v,J;return _.n3(L,function(f){switch(f.nextAddress){case 1:_.ms(f,2),E=u.length,y=0;case 4:if(!(y<E)){f.jumpTo(2);break}v=q+y;J=_.kb;return f.yield(u[v%E],7);case 7:J(f.yieldResult);y++;f.jumpTo(4);break;case 2:_.Fr(f),_.Xr(f,0)}})}()}}};
N8S=function(g){g.eventsToIgnore||(g.eventsToIgnore=[]);var u=g.eventsToIgnore.map(VIq),q=new Set(u),Q=P9K(g.bufferSize);return{flush:function(){var L=Array.from(Q.iterate());Q.clear();L=L.map(function(E){return{name:E.name,timestamp:E.startTime,attributes:E.attributes}});
return JSON.stringify(L)},
onSpanStart:function(L){L.name==="event"&&q.has(L.attributes.type)||Q.push(L)}}};
sLM=function(g){g=N8S(g);var u=g.flush;z9f({onSpanStart:g.onSpanStart});bD.subscribe("handleError",function(q){try{q.params.breadcrumbs=u()}catch(Q){_.Zf(Q,"WARNING")}})};
yCf=function(){Jt("web_tracing_action");_.jF("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
vTS=function(){Jt("web_tracing_action");_.jF("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
JCf=function(g,u,q,Q){if(u===void 0){Dgm||(vTS(),setInterval(vTS,6E5),Dgm=!0);var L="web_tracing_action"}else L=u;var E,y=((E=g.endTime)!=null?E:g.startTime)-g.startTime;E={};q=pmf(g.name,y,g.startTime,{webTracing:(E[g.name]=g.attributes,E)},q,L,{spanStatus:g.status,rootSpanNonce:void 0});if(g.children)for(g=_.N(g.children),L=g.next();!L.done;L=g.next())JCf(L.value,u,q,Q||q)};
jLq=function(g){var u=gau.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(q){q.data&&typeof q.data==="object"&&(q=q.data,q.from==="extension"&&q.app==="yt.telemetry"&&(u("Received message from extension",q),g.onMessage(q)))});
return function(q,Q){q={app:"yt.telemetry",from:"app",key:q,payload:Q};u("Sending message to extension",q);window.postMessage(q,"*")}};
fpT=function(){var g=g===void 0?3E3:g;var u=jLq({onMessage:function(){}}),q=[];
return{onSpanEnd:function(Q){Q.parentId==null&&q.push(Q)===1&&setTimeout(function(){var L=[].concat(_.na(q));q.length=0;u("spansReported",{spans:L})},g)}}};
M6K=function(g){g=g===void 0?400:g;var u=[],q=[];return{start:function(){return nx3({checkoutEveryNth:g,emit:function(Q,L){L&&(u=q,q=[]);q.push(Q)},
blockSelector:'img, video, audio, source, picture, [style*="background"][style*="url"]',maskAllInputs:!0,maskTextSelector:"*"})},
getRecording:function(){return[].concat(_.na(u),_.na(q))}}};
GOM=function(){(new t6m({sessionReplayEvents:_.S8("web_tracing_session_replay",0)})).subscribe(function(g){if(g.sessionReplayEvents>0)try{var u=M6K(g.sessionReplayEvents);u.start();var q=console.log;window.exportSessionReplay=function(){var Q=JSON.stringify(u.getRecording(),null,2);Q=e$h(new Blob([Q],{type:"text/plain"}));var L=document.createElement("a");L.download="session_replay.json";L.dataset.downloadurl=["application/json",L.download,L.href].join(":");L.style.display="none";L.href=Q;L.click();
URL.revokeObjectURL(Q);q("View replay at go/yt-session-replay-viewer")}}catch(Q){_.Io(Error("Aj"))}})};
R$m=function(){var g=window.fetch;window.fetch=function(){var u=_.UT.apply(0,arguments),q=_.N(u),Q=q.next().value;q=q.next().value;var L=_.WX("httpEvent",{method:(q===void 0?{}:q).method||"GET",path:$gm(Q),type:"fetch"},{active:!1});return g.apply(null,_.na(u)).then(function(E){L.addAttributes({statusCode:E.status,statusText:E.statusText});L.end();return E}).catch(function(E){L.end("SPAN_STATUS_ERROR");
throw E;})}};
wmq=function(){var g=XMLHttpRequest.prototype.open,u=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(q,Q,L,E,y){var v=this;L=L===void 0?!0:L;this._requestData={method:q,url:Q.toString()};this.addEventListener("load",function(){var J=v._span;J==null||J.addAttributes({statusCode:v.status,responseContentLength:v.responseText.length});J==null||J.end()});
this.addEventListener("error",function(){var J=v._span;J==null||J.addAttributes({statusCode:v.status,statusText:v.statusText});J==null||J.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var J=v._span;J==null||J.addAttributes({statusCode:v.status,aborted:!0});J==null||J.end()});
g.apply(this,[q,Q,L,E,y])};
XMLHttpRequest.prototype.send=function(q){var Q=this._requestData||{method:"N/A",url:"N/A"};this._span=_.WX("httpEvent",{method:Q.method,path:$gm(Q.url),type:"xhr"},{active:!1});u.apply(this,[q])}};
$gm=function(g){try{if(g instanceof URL)return g.pathname;g instanceof Request&&(g=g.url);return(new URL(g,"https://youtube.com")).pathname}catch(u){return"<unable to parse path>"}};
HCu=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var g=window.performance.getEntriesByType("navigation");if(g.length>0){var u=g[0],q=window.performance.timeOrigin;_.WX("pageLoad",{navigationType:cCJ(u.type),unloadEventStart:Math.round(u.unloadEventStart),unloadEventEnd:Math.round(u.unloadEventEnd),domInteractive:Math.round(u.domInteractive),domContentLoadedEventStart:Math.round(u.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(u.domContentLoadedEventEnd),
domComplete:Math.round(u.domComplete),loadEventStart:Math.round(u.loadEventStart),loadEventEnd:Math.round(u.loadEventEnd),redirectCount:u.redirectCount},{active:!1,startTime:q+u.startTime,endTime:q+u.loadEventEnd})}}catch(Q){}})};
cCJ=function(g){switch(g){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"}};
iCq=function(){for(var g=ACK.value,u={},q=_.N(g.enabledSpansArray),Q=q.next();!Q.done;Q=q.next())u[Q.value]=!0;BSk({sessionId:koq(),enabledSpans:u,shouldSampleFn:function(L,E,y){if(ZCb){var v;return L==="shortToShort"||(y==null?void 0:(v=y.rootSpan())==null?void 0:v.name)==="shortToShort"}return!0}});
U4h();rw("pageLoad")&&HCu();rw("httpEvent")&&(R$m(),wmq());g.exportToCsi&&z9f(lpu);g.exportToDevTools&&z9f(fpT());g.maxBreadcrumbs>0&&sLM({eventsToIgnore:Ipm,bufferSize:g.maxBreadcrumbs})};
C9h=function(g){return new Promise(function(u){window.setTimeout(u,g)})};
bC3=function(g){var u={bicf:function(E){g.iDM=E},
blc:function(){return g.getLatestChallengeResponse()},
bcr:function(E){g.d11.push(E)}},q=window;
q.ntpevasrs=u;if(q.ntpqfbel!==void 0)for(var Q=_.N(q.ntpqfbel),L=Q.next();!L.done;L=Q.next())L=L.value,L(u);q.ntpqfbel=void 0};
dgb=function(g){return _.D(function(u){if(u.nextAddress==1)return _.b8(u,2),u.yield(g.pD7(),4);if(u.nextAddress!=2)return _.Xx(u,0);_.rt(u);_.Wx(u)})};
FNh=function(g){var u,q;(u=g.ytcsi)==null||(q=u.tick)==null||q.call(u,"pot_ist")};
mgf=function(g){if(g instanceof Error){var u=_.ri("yt.logging.errors.log");u&&u(g,"WARNING")}};
aph=function(g){try{var u=JSON.parse(g);if(u.bgChallenge)return u}catch(q){}};
XmZ=function(){var g=window,u={networkStatusManagerPromise:_.Bk().resolve(new AtF(_.rN)),initialChallengeSli:_.w("wpo_att_sli")?new _.fLF("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};g=g===void 0?window:g;var q=g.ytAtR,Q;u==null||(Q=u.initialChallengeSli)==null||_.SV(Q);if(q){if(q=aph(q)){var L;u==null||(L=u.initialChallengeSli)==null||_.o1(L,"SUCCESS");V6q(q,u)}g.ytAtR=void 0}else g.ytAtRC=function(E){if(E=aph(E)){var y;u==null||(y=u.initialChallengeSli)==null||
_.o1(y,"SUCCESS");V6q(E,u);g.ytAtRC=void 0}}};
T8f=function(){if(rCJ)return rCJ;try{var g=_.oG("IFRAME");_.Px(g,_.A1(WNK));g.sandbox.add("allow-same-origin");g.style.display="none";document.body.appendChild(g);return rCJ=g}catch(u){g=new _.Ji("Failed to create sandbox iframe"),_.Zf(g)}};
h$J=function(){return function(g,u){_.FR("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[g]=u}};
Yh3=function(){return function(g,u){var q={};q[g]=u;g=_.V1(_.aVF)(q);Object.keys(g).length>0&&_.pW(g)}};
xgS=function(){if(_.brF()==="hidden")var g="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.brF()==="visible"&&(g="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",OCF=null);g&&KNZ(g)};
KNZ=function(g){if(g==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||g==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(B83===g)return;B83=g}var u=9E4+Math.random()*2E3;if(g!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.nB()>u)&&_.brF()==="visible"){u=-1;OCF&&(u=Math.round((0,_.n0)()-OCF));var q=String;var Q=_.ri("_fact",window);Q=Q==null||Q==-1?-1:Math.max(Date.now()-Q,0);_.H6("foregroundHeartbeat",{firstActivityMs:q(Q),clientDocumentNonce:Sdq,index:String(z$J),lastEventDeltaMs:String(u),trigger:g});
_.xQ("_fact",-1,window);z$J++;OCF=(0,_.n0)()}};
nTb=function(g,u,q,Q,L,E){u=new Uint8Array(u);if(g.length===0)return u;var y=0;L=L!=null?L:g.length-1;for(var v=q;v<=L;v++){var J=g[v],f=v===q?Q:0,t=void 0,e=v===L?(t=E)!=null?t:J.length:J.length;J=J.subarray(f,e);u.set(J,y);y+=J.length}return u};
_.kO3=function(){try{return!!self.sessionStorage}catch(g){return!1}};
ShK=function(){var g=navigator;return new Promise(function(u,q){var Q;(Q=g.webkitTemporaryStorage)!=null&&Q.queryUsageAndQuota?g.webkitTemporaryStorage.queryUsageAndQuota(function(L,E){u({usage:L,quota:E})},function(L){q(L)}):q(Error("Jj"))})};
oTq=function(g,u){var q={errorSeverity:u.errorSeverity.toString(),wizFeatureFlags:Object.entries(u.featureFlags).join("\n")};Eyu(u,q);u=u.errorSeverity;u===3?_.Zf(g,"ERROR",void 0,void 0,void 0,q):u===2&&_.Zf(g,"WARNING",void 0,void 0,void 0,q);_.w("cow_if_errors_in_popup")&&u===3&&g.message.indexOf("<If>")!==-1&&window.alert(g.message)};
Ugu=function(g,u){var q=bH.get(g)||{layerNode:u};q.layerNode=u;t3m(g,q);g.getScreenLayer=function(){return Uf(q.layerNode)}};
gRM=function(g){var u;g=g.parentNode;for(var q;g&&((u=bH.get(g))==null||!u.isRenderer)&&!((q=g.polymerController)!=null?q:g).isRenderer_;)g=g.parentNode||g.host;if(u=g)return bH.get(u)};
u$q=function(g){if(g){bH.delete(g);var u=_.Bk().resolve(Kw);Pfu(g,u)}};
QyK=function(g,u,q){if(q===void 0?0:q){if(q=g.getAttribute("client-ve-type"),u.data&&!u.disableReactiveLogging||q)_.C2(function(){qqS(g,_.mV(u.data))},"Hg"),_.dB(function(){return void u$q(g)})}else typeof u.data!=="function"&&qqS(g,u.data)};
qqS=function(g,u){LUq++;ERJ(g,u)&&_.Hv.addJob(function(){_.gT(_.Hv,function(){if(ERJ(g,u)&&g.ownerDocument.documentElement===document.documentElement&&g){var q;if(g.getAttribute("layer")){var Q=q=Number(g.getAttribute("layer")),L=bH.get(g);L?L.layerNode.layer=Q:Ugu(g,new PsF(Q));(Q=gRM(g))&&(L=bH.get(g))!=null&&(L.layerNode.parent=Q.layerNode)}else if(q=bH.get(g))q=Uf(q.layerNode);else{q=Uf;Q=new PsF;if(L=gRM(g))Q.parent=L.layerNode;Ugu(g,Q);q=q(Q)}q!=null||(q=0);Q=g.getAttribute("client-ve-type");
L=Number(Q);var E=!1;Q=!1;var y=bH.get(g),v;if((v=y)&&!(v=y[NIq]!==u)&&(v=L)){var J;v=((J=bH.get(g))==null?void 0:J.clientVeType)===void 0}v&&(y[NIq]=u,E=Q=y.isRenderer=!0);bH.has(g)&&(bH.get(g).clientVeType=L);g.visualElement&&(Q=!0);if(_.w("wiz_next_ld_fix_client_ve_spec")){var f;J=((f=_.c(u==null?void 0:u.rendererContext,_.uF))==null?void 0:f.loggingDirectives)||(u==null?void 0:u.loggingDirectives)}else J=u==null?void 0:u.loggingDirectives;J&&J.clientVeSpec&&(f=syq(_.o5(),g),f=_.ySf(_.gL(),J,f||
void 0,q))&&(g.visualElement=f);!g.visualElement&&L&&E&&(g.veType=L,f=void 0,_.w("wiz_next_client_ve_parent_fix")&&(f=syq(_.o5(),g)),f=_.Ui(_.gL(),g,f,q),g.visualElement=f);Q&&(f=_.Bk().resolve(Kw),SP(g,{data:u,observer:f,layer:q,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
ERJ=function(g,u){return(u==null?0:u.trackingParams)||(u==null?0:u.loggingDirectives)||_.c(u==null?void 0:u.rendererContext,_.uF)||g.getAttribute("client-ve-type")?!0:!1};
vRb=function(g,u,q){g.componentType!==wB&&q instanceof HTMLElement&&u&&!_.w("cow_logging_in_component_wrapper")&&QyK(q,u,!0)};
JSq=function(){if(!DAk){DAk=!0;var g=_.w("enable_wiz_context_per_component")||!1;g=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.w("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:g,enableContextBasedComponentStacks:g},{handleError:oTq,enableComponentStacksInErrorMessages:!1});Object.assign(gB,g);paF();Rfm=drF;efT=mrq}};
paF=function(){_.w("cow_logging_in_component_wrapper")?(hTJ=function(g,u){u instanceof HTMLElement&&QyK(u,g,!0)},P1h=function(){}):(hTJ=function(){},P1h=vRb)};
jyM=function(g,u,q){u=u===void 0?{}:u;var Q,L=(Q=_.c(g.commandMetadata,_.S_))==null?void 0:Q.url;Q=u.form||{};!q||Q.element||Q.skipDefaultElement||(u.form=u.form||{},u.form.element=q);if(L&&L!=="/service_ajax")return{type:0,command:g,form:u.form};if(_.w("kevlar_service_command_check")){if(_.wv(_.Bk().resolve(_.QY),g))return Object.assign({},{type:1,command:g},u)}else{var E;if((E=_.c(g.commandMetadata,_.S_))==null?0:E.apiUrl)return Object.assign({},{type:1,command:g},u)}return{type:2,command:g,form:u.form}};
fTZ=function(g){if(g.form){var u=g.form,q=Object.assign({},u);u=u.element;q=(delete q.element,q);if(u)return[_.KV(u,[g.command,q,g.commandController])]}return[]};
M53=function(g){if(g.form){var u=g.form,q=Object.assign({},u);u=u.element;q=(delete q.element,q);u&&_.xJ(u,[g.command],u,q)}};
elq=function(g,u,q){var Q=new t53(g,u),L=new uA(g,u,q);g={"/youtubei/v1/browse":new qB(g,u,q),"/youtubei/v1/player":Q,"/youtubei/v1/navigation/resolve_url":new Q9,"/youtubei/v1/next":L,"/youtubei/v1/guide":new LT(q),"/youtubei/v1/search":new Ec(g,u,q),"/youtubei/v1/reel/reel_item_watch":new PK(g,u,q),"/youtubei/v1/get_watch":new NB(Q,L)};g["/youtubei/v1/account/account_menu"]=new sc;g["/youtubei/v1/notification/get_notification_menu"]=new y9;return g};
Dg=function(){var g=_.Bk().resolve(_.vK);return Promise.resolve(Gmq(g,_.Qq.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
$AZ=function(g){return g&&(g=_.TW(_.zvu(g)))?(new URLSearchParams(g)).get("service"):null};
jU=function(g,u){_.Xh(_.pT(),function(){_.fW("adl")});
_.Bk().resolve(RlT)(u);g=g.root;g.loadData&&g.loadData(u);(u==null?0:u.response)?_.o1(e9Z(),"SUCCESS"):_.Io(new _.Ji("Lifecycle: No response in data",_.mW("IS_SHELL_LOAD"),u?u.page:"NO_PAGE",u?u.endpoint:"NO_ENDPOINT"));g.polymerController.$["page-manager"].lazyPrepareCriticalPages((u==null?void 0:u.page)||"",u.endpoint);var q,Q;((Q=_.c(u==null?void 0:(q=u.endpoint)==null?void 0:q.commandMetadata,_.S_))==null?0:Q.webPageType)&&_.bR().dispatch(_.JL(_.c(u.endpoint.commandMetadata,_.S_).webPageType))};
waJ=function(){var g,u;return _.D(function(q){switch(q.nextAddress){case 1:g=window;if(!g.getDataPromise){q.jumpTo(2);break}_.b8(q,3);return q.yield(g.getDataPromise(),5);case 5:return q.return(q.yieldResult);case 3:return _.rt(q),q.yield(Dg(),6);case 6:return q.return(q.yieldResult);case 2:if(g.getInitialData)return u=g.getInitialData(),g.getInitialData=void 0,q.return(u);throw Error("Lj`"+_.Qq.location.href);}})};
HRq=function(){_.di("CSI_SERVICE_NAME","youtube");_.pW({loadType:"cold"});_.w("kevlar_log_lcp")&&cSu(function(g){_.fW("lcp",g.value)})};
ASh=function(){var g=_.U7(document.location.href,"enable");g&&g.indexOf("scraper")>-1&&_.di("ADD_SCRAPER_ATTRIBUTES",!0)};
Csm=function(g){var u=g.root;g=[ZRh,lTq,_.fT];_.w("web_feedback_endpoint_autolog_allowlist_killswitch")&&g.push(_.MB,ITZ);iRS(function(q,Q){return jyM(q,Q,u)},function(q){if(!q.command)return[];
var Q;((Q=q.form)==null?0:Q.element)?q.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},q.form,{endpoint:q.command})})):u.handleNavigate(q);return[]},g);
_.Bk().addProvider({provide:_.Gy,useValue:_.ze.instance})};
dAf=function(){var g={},u={},q;for(q in bRb){var Q=_.N(_.jR(bRb[q],void 0,"e17Ccb"));g[q]=Q.next().value;u[q]=Q.next().value}return[g,function(L){for(var E in L){var y=void 0;(y=u[E])==null||y(L[E])}}]};
_.aTu=function(g,u){var q=!1;q=q===void 0?!1:q;var Q=_.pH.getValueByKeys(g,"contents","twoColumnWatchNextResults","results","results","contents"),L=_.pH.getValueByKeys(g,"contents","twoColumnWatchNextResults","playlist","playlist")||null;q&&(L=null);var E=q=null;if(L)q=_.pH.getValueByKeys(L,"titleText"),E=_.pH.unsafeClone(_.pH.getValueByKeys(L,"longBylineText")),Q="",E&&(Q=_.iR(E)),E=_.I7(Q);else if(Q){Q=_.N(Q);for(var y=Q.next();!y.done;y=Q.next())y=y.value,y.videoPrimaryInfoRenderer&&(q=_.pH.getValueByKeys.apply(_.pH,
[y].concat(_.na(FUq)))),y.videoSecondaryInfoRenderer&&(E=_.pH.getValueByKeys.apply(_.pH,[y].concat(_.na(mAJ))))}else _.Wk(Error("Qj"));var v;g.currentVideoEndpoint?v=g.currentVideoEndpoint:_.Wk(Error("Rj"));var J;u&&(J=_.pH.getValueByKeys(u,"playabilityStatus","miniplayer","miniplayerRenderer"));g={miniplayerTitle:q,miniplayerSubtitle:E,watchEndpoint:v,playlistData:L};J&&(g.miniplayerRenderer=J);return g};
V5f=function(g){if(g)return _.v1(g)};
_.XaJ=function(){return{isFullscreen:function(){throw Error("Sj");},
toggleFullscreen:function(){throw Error("Tj");},
exitFullscreen:function(){throw Error("Uj");},
isAutonavEnabled:function(){throw Error("Vj");},
setAutonavEnabled:function(){throw Error("Wj");},
isAutoplaySetExplicitly:function(){throw Error("Xj");}}};
rSf=function(g){return g.videoDuration?g.numTaps>1&&g.tapDirection!==0?_.tL(g.draggedTime/g.videoDuration,0,1):_.tL((g.playedTime||0)/g.videoDuration,0,1):0};
WUS=function(g){return g.videoDuration?g.isDragging||g.numTaps>1&&g.tapDirection!==0?_.tL(g.draggedTime/g.videoDuration,0,1):_.tL((g.playedTime||0)/g.videoDuration,0,1):0};
hlT=function(g){var u,q,Q;return _.c(g==null?void 0:(u=g.markersMap)==null?void 0:(q=u.find(function(L){return L.key==="HEATSEEKER"}))==null?void 0:(Q=q.value)==null?void 0:Q.heatmap,TIf)};
Yqq=function(g){var u,q;return(q=(u=hlT(g))==null?void 0:u.heatMarkersDecorations)!=null?q:[]};
ORK=function(g){if(_.w("mweb_supported_chapters_killswitch"))return!0;var u;return!!(g==null?0:(u=g.markersMap)==null?0:u.find(function(q){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(q.key)}))};
_.KUm=function(g){var u=Object,q=u.assign,Q;g={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(Q=g==null?void 0:g.getPlayerState())!=null?Q:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return q.call(u,{},{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},g,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
xAT=function(g){return function(u){var q=g(),Q,L=(Q=q.playerApi)==null?void 0:Q.getPlayerState();u&&u!==q.playerState&&(u===1||u===2)&&q.setState({playerState:L})}};
zlq=function(g){return function(u){var q=g(),Q=q.playerApi;Q&&(u==null?void 0:u.type)==="newdata"&&(BIq&&(clearTimeout(BIq),BIq=void 0),_.w("web_shorts_use_progress_state_for_gapless")?(u=Q==null?void 0:Q.getProgressState(u==null?void 0:u.playertype),u=u.seekableEnd-u.seekableStart):u=Q==null?void 0:Q.getDuration(u==null?void 0:u.playertype),q.setState({playedTime:0,videoDuration:u}))}};
nRZ=function(g){return function(u){var q=g(),Q=q.playerApi;if(Q){var L=Q.getPresentingPlayerType();_.w("web_shorts_use_progress_state_for_gapless")?(Q=Q.getProgressState(L),Q=Q.seekableEnd-Q.seekableStart):Q=Q.getDuration(L);q.setState({playedTime:u,videoDuration:Q})}}};
SqF=function(g){_.y5(112394,g,function(){return kmq},function(u){kmq=u})};
guR=function(g,u){if(!g)return[];var q,Q,L;g=((q=g.markersMap)==null?void 0:(Q=q.find(function(E){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(E.key)}))==null?void 0:(L=Q.value)==null?void 0:L.chapters)||[];
!oRZ(g)||(u==null?0:u.ignoreStub)||(g=[UAf()].concat(_.na(g)));return g};
UAf=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
oRZ=function(g){if(g.length===0)return!1;var u;return((u=_.c(g[0],eU))==null?void 0:u.timeRangeStartMillis)!==0};
GK=function(g){return g?g.timeRangeStartMillis||0:0};
qbR=function(g,u){if(g.isDragging&&u)return g=ufn(g,u),g===-1?UAf():guR(u)[g]};
ufn=function(g,u){return g.isDragging&&u?guR(u,{ignoreStub:!0}).findIndex(function(q,Q,L){q=Qmn(g);return LJn(q,L,Q).scrubberHovering}):-1};
Qmn=function(g){return Object.assign({},g,{videoDuration:g.videoDuration*1E3,playedTime:g.playedTime*1E3,draggedTime:g.draggedTime*1E3})};
LJn=function(g,u,q){var Q=GK(_.c(u[q],eU));u=GK(_.c(u[q+1],eU))||g.videoDuration;q=g.isDragging;var L;if(L=g.isDragging)L=g.draggedTime,L=L!==null&&L>=Q&&L<u;var E=g.playedTime;return E!==null&&E>=Q&&E<u?{videoPosition:"active",isScrubbing:q,scrubberHovering:L}:g.playedTime<Q?{videoPosition:"pending",isScrubbing:q,scrubberHovering:L}:{videoPosition:"seen",isScrubbing:q,scrubberHovering:L}};
Euo=function(g,u){return g.videoPosition==="seen"||(u===void 0?0:u)>0};
Ph$=function(g,u,q){u=g/u.storyboardInterval;var Q=guR(q);if(!Q.length)return-u*72;q=0;Q=_.N(Q);for(var L=Q.next();!L.done;L=Q.next())if(GK(_.c(L.value,eU))/1E3<g)q++;else break;return-(u*72)-q*56};
NqR=function(g){return g?g.width/g.columns:0};
smZ=function(g){return g.isHovering?g.hoveredTime:g.draggedTime};
yTi=function(g,u){g=g.draggedTime*1E3;return g>=u.visibleTimeRangeStartMillis&&g<=u.visibleTimeRangeEndMillis};
_.vun=function(g){if(g===void 0||Number.isNaN(g))return"--:--";var u=Math.abs(Math.floor(g)),q=Math.floor(u/86400),Q=Math.floor(u%86400/3600),L=Math.floor(u%3600/60);u=Math.floor(u%60);var E="";q>0&&(E+=q+":",Q<10&&(E+="0"));if(q>0||Q>0)E+=Q+":",L<10&&(E+="0");E+=L+":";u<10&&(E+="0");E+=u;return g>=0?E:"-"+E};
D3H=function(g,u){return function(){var q=smZ(g());var Q=u();var L=g().playerApi;if(L&&L.getNumberOfStoryboardLevels()!==0){var E=L.getStoryboardFrameIndex(q,1);E!==-1?Q=L.getStoryboardFrame(E,1):(q=L.getStoryboardFrameIndex(q,0),L=L.getStoryboardFrame(q,0),Q&&L&&(L.height*=3,L.width*=3),Q=L)}else Q=null;if(!Q)return null;u()&&(Q.width=90*Q.columns,Q.height=160*Q.rows);return Q}};
_.$S=function(g){if(!g||g.getVideoData)return g};
pS8=function(){var g;return{playerApi:(g=_.Ke())!=null?g:void 0}};
JTZ=function(g){var u;_.D(function(q){if(q.nextAddress==1)return q.yield(_.Op(),2);if(u=q.yieldResult)u.unMute(!0),u.setVolume(g,!0);_.Wx(q)})};
jmW=function(g,u){g&&(g.value=""+u,g.style.setProperty("--gradient-percent",u+"%"))};
fk0=function(g){var u;return(u=g==null?void 0:g.value)!=null?u:0};
MK$=function(){var g;_.D(function(u){if(u.nextAddress==1)return u.yield(_.Op(),2);g=u.yieldResult;if(!g)return u.return();g.isMuted()?g.unMute(!0):g.mute(!0);_.Wx(u)})};
tKn=function(g){var u=_.Bk().resolve(_.RO).getPlayerElement();u&&g&&(g===1?u.pause():u.play())};
eFX=function(g){return!!_.c(g,_.wT)||!!_.c(g,_.cK)};
GMo=function(g){_.Og(g,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
$3Z=function(g){_.Og(g,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
wSX=function(g){return _.ZY(g.document.body,function(){return _.p(RFn,null)},"rh")};
cTi=function(){var g;return(g=navigator.userActivation)==null?void 0:g.isActive};
HZW=function(){var g=window.performance.getEntriesByType("navigation");return g?g.map(function(u){return u.type}).includes("reload"):!1};
AT5=function(g,u){u=u===void 0?!1:u;var q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return u||!_.w("kevlar_shorts_seedless_retry_initial_load")||(q=window,Q=!(!q.getDataPromise&&!q.getInitialData),Q)?y.yield(waJ(),2):(setTimeout(AT5.bind(window,g,!0),1E3),y.return());if(y.nextAddress!=3)return L=y.yieldResult,y.yield(ZZa(L),3);E=y.yieldResult;jU(g,E);_.Wx(y)})};
ZZa=function(g){var u;if((u=g.response)==null||!u.replacementEndpoint)return _.BX(g);u=_.Bk().resolve(_.vK);g=g.response;_.c(g.replacementEndpoint,_.g$)&&g.sequenceContinuation&&(_.c(g.replacementEndpoint,_.g$).sequenceParams=g.sequenceContinuation);return HK(u,g.replacementEndpoint,{},_.Qq.location.href,"shorts",function(){},function(){return!1})};
Iki=function(g){var u=_.Bk().resolve(lki);g.playerResponse&&u.handleResponse(g.playerResponse);g.response&&u.handleResponse(g.response)};
iZZ=function(g){var u=_.bR(),q,Q=_.c((q=g.response)==null?void 0:q.frameworkUpdates,Zc),L;q=_.c((L=g.playerResponse)==null?void 0:L.frameworkUpdates,Zc);var E;g=_.c((E=g.reelWatchSequenceResponse)==null?void 0:E.frameworkUpdates,Zc);Q&&_.op(Q,u);q&&_.op(q,u);g&&_.op(g,u)};
ChH=function(g){var u;_.w("enable_redirect_linking_for_desktop_web_client")&&((u=window.location.hash)==null?0:u.includes("redirect_state"))&&g.url&&(g.url=g.url.toString()+window.location.hash)};
FJ0=function(g){var u=_.Bk(),q=u.resolve(_.vK);u=u.resolve(_.bZ0);g.endpoint&&(q=d3$(q,g.endpoint),q.content&&g.response&&_.AL(u,g.response,q.content),q.player&&g.playerResponse&&_.AL(u,g.playerResponse,q.player),q.reelSequence&&g.reelWatchSequenceResponse&&_.AL(u,g.reelWatchSequenceResponse,q.reelSequence))};
Zg=function(g,u){_.w("web_enable_chunk_prediction")&&m30(u);Iki(u);iZZ(u);var q;(u==null?0:u.url)&&((q=window.location.hash)==null?0:q.includes("redirect_state"))&&(ChH(u),(q=$AZ(u.url))&&_.YJ(g.root,"yt-initialize-third-party",[q,u]));FJ0(u);q=_.Bk();var Q=q.resolve(aka);u.playerResponse&&q.resolve(VKa).handleResponse(u.playerResponse);if(u.playerResponse){q=void 0;if(_.w("ab_v_vid_sig")&&u.endpoint){var L,E=(L=_.c(u.endpoint,_.l1))!=null?L:_.c(u.endpoint,_.g$);E&&(q=E.videoId)}XSW(Q,u.playerResponse,
q)}u.playerResponse&&VmZ(u.playerResponse)&&_.w("web_enable_ab_rsp_cl")?kET().then(function(){rT$(Q,u.playerResponse);jU(g,u)}):jU(g,u)};
Tq5=function(g){if(g=g.root.data){var u=_.Bk().resolve(WJ8);g.endpoint&&(g.response&&u.handleResponse(g.response,void 0,document.querySelector("ytd-app")),g.playerResponse&&u.handleResponse(g.playerResponse),g.reelWatchSequenceResponse&&u.handleResponse(g.reelWatchSequenceResponse))}};
m30=function(g){g.response&&_.Bk().resolve(hF$).handleResponse(g.response)};
Ybi=function(g){var u,q,Q,L,E,y;return _.D(function(v){switch(v.nextAddress){case 1:u=window;if(!u.getDataPromise){v.jumpTo(2);break}_.b8(v,3);return v.yield(u.getDataPromise(),5);case 5:q=v.yieldResult;Zg(g,q);_.Xx(v,4);break;case 3:return _.rt(v),v.yield(Dg(),6);case 6:Q=v.yieldResult,_.w("web_enable_chunk_prediction")&&m30(Q),jU(g,Q);case 4:return v.return();case 2:if(!_.w("sw_nav_preload_pbj")){v.jumpTo(7);break}u.fetchInitialData=function(){var J;return _.D(function(f){if(f.nextAddress==1)return f.yield(Dg(),
2);J=f.yieldResult;_.w("web_enable_chunk_prediction")&&m30(J);jU(g,J);_.Wx(f)})};
if(u.getInitialData){u.loadInitialData=function(J){Zg(g,J)};
L=u.getInitialData();u.getInitialData=void 0;Zg(g,L);v.jumpTo(8);break}u.fetchInitialData=void 0;return v.yield(Dg(),9);case 9:E=v.yieldResult,_.w("web_enable_chunk_prediction")&&m30(E),jU(g,E);case 8:return v.return();case 7:u.getInitialData?(y=u.getInitialData(),u.getInitialData=void 0,Zg(g,y)):u.loadInitialData=function(J){Zg(g,J)},_.Wx(v)}})};
KJZ=function(){var g=new OZ$;_.XWq(g);g.registerInitializationCallback(function(){AZS(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
g.registerCallback("error",function(u,q,Q){_.a4(Error("ak`"+q+"`"+Q))})};
x32=typeof Object.create=="function"?Object.create:function(g){var u=function(){};
u.prototype=g;return new u};
Bqa=typeof Object.defineProperties=="function"?Object.defineProperty:function(g,u,q){if(g==Array.prototype||g==Object.prototype)return g;g[u]=q.value;return g};
zFb=function(g){g=["object"==typeof globalThis&&globalThis,g,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var u=0;u<g.length;++u){var q=g[u];if(q&&q.Math==Math)return q}throw Error("a");};
_.z3=zFb(this);nuH="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.z3.BigInt64Array&&(nuH.push("BigInt64"),nuH.push("BigUint64"));var SbH=function(g,u){if(u)for(var q=0;q<nuH.length;q++)kMn(nuH[q]+"Array.prototype."+g,u)},lA=function(g,u){u&&kMn(g,u)},kMn=function(g,u){var q=_.z3;
g=g.split(".");for(var Q=0;Q<g.length-1;Q++){var L=g[Q];if(!(L in q))return;q=q[L]}g=g[g.length-1];Q=q[g];u=u(Q);u!=Q&&u!=null&&Bqa(q,g,{configurable:!0,writable:!0,value:u})},oui=function(){function g(){function q(){}
new q;Reflect.construct(q,[],function(){});
return new q instanceof q}
if(typeof Reflect!="undefined"&&Reflect.construct){if(g())return Reflect.construct;var u=Reflect.construct;return function(q,Q,L){q=u(q,Q);L&&Reflect.setPrototypeOf(q,L.prototype);return q}}return function(q,Q,L){L===void 0&&(L=q);
L=x32(L.prototype||Object.prototype);return Function.prototype.apply.call(q,L,Q)||L}}(),U3o;
if(typeof Object.setPrototypeOf=="function")U3o=Object.setPrototypeOf;else{var gio;a:{var uWa={a:!0},q02={};try{q02.__proto__=uWa;gio=q02.a;break a}catch(g){}gio=!1}U3o=gio?function(g,u){g.__proto__=u;if(g.__proto__!==u)throw new TypeError("b`"+g);return g}:null}IO=U3o;
_.A=function(g,u){g.prototype=x32(u.prototype);g.prototype.constructor=g;if(IO)IO(g,u);else for(var q in u)if(q!="prototype")if(Object.defineProperties){var Q=Object.getOwnPropertyDescriptor(u,q);Q&&Object.defineProperty(g,q,Q)}else g[q]=u[q];g.superClass_=u.prototype};
QRn=function(g){var u=0;return function(){return u<g.length?{done:!1,value:g[u++]}:{done:!0}}};
_.N=function(g){var u=typeof Symbol!="undefined"&&Symbol.iterator&&g[Symbol.iterator];if(u)return u.call(g);if(typeof g.length=="number")return{next:QRn(g)};throw Error("c`"+String(g));};
OH=function(g){for(var u,q=[];!(u=g.next()).done;)q.push(u.value);return q};
_.na=function(g){return g instanceof Array?g:OH(_.N(g))};
_.CT=function(g){return iA(g,g)};
iA=function(g,u){g.raw=u;Object.freeze&&(Object.freeze(g),Object.freeze(u));return g};
bA=function(g,u){return Object.prototype.hasOwnProperty.call(g,u)};
L8i=function(g){if(g==null)throw new TypeError("d");return Object(g)};
Ei5=typeof Object.assign=="function"?Object.assign:function(g,u){g=L8i(g);for(var q=1;q<arguments.length;q++){var Q=arguments[q];if(Q)for(var L in Q)bA(Q,L)&&(g[L]=Q[L])}return g};
lA("Object.assign",function(g){return g||Ei5});
var dT=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},PZW=function(g){if(g.isRunning_)throw new TypeError("f");
g.isRunning_=!0};
dT.prototype.JSC$9019_next_=function(g){this.yieldResult=g};
var Na2=function(g,u){g.abruptCompletion_={exception:u,isException:!0};g.nextAddress=g.catchAddress_||g.finallyAddress_};
dT.prototype.return=function(g){this.abruptCompletion_={return:g};this.nextAddress=this.finallyAddress_};
dT.prototype.yield=function(g,u){this.nextAddress=u;return{value:g}};
dT.prototype.jumpTo=function(g){this.nextAddress=g};
_.Wx=function(g){g.nextAddress=0};
_.b8=function(g,u,q){g.catchAddress_=u;q!=void 0&&(g.finallyAddress_=q)};
_.ms=function(g,u){g.catchAddress_=0;g.finallyAddress_=u||0};
_.Xx=function(g,u,q){g.nextAddress=u;g.catchAddress_=q||0};
_.rt=function(g,u){g.catchAddress_=u||0;u=g.abruptCompletion_.exception;g.abruptCompletion_=null;return u};
_.Fr=function(g,u,q,Q){Q?g.finallyContexts_[Q]=g.abruptCompletion_:g.finallyContexts_=[g.abruptCompletion_];g.catchAddress_=u||0;g.finallyAddress_=q||0};
_.Xr=function(g,u,q){q=g.finallyContexts_.splice(q||0)[0];(q=g.abruptCompletion_=g.abruptCompletion_||q)?q.isException?g.nextAddress=g.catchAddress_||g.finallyAddress_:q.jumpTo!=void 0&&g.finallyAddress_<q.jumpTo?(g.nextAddress=q.jumpTo,g.abruptCompletion_=null):g.nextAddress=g.finallyAddress_:g.nextAddress=u};
sRX=function(g){this.JSC$9024_context_=new dT;this.program_=g};
via=function(g,u){PZW(g.JSC$9024_context_);var q=g.JSC$9024_context_.yieldAllIterator_;if(q)return yb0(g,"return"in q?q["return"]:function(Q){return{value:Q,done:!0}},u,g.JSC$9024_context_.return);
g.JSC$9024_context_.return(u);return Fi(g)};
yb0=function(g,u,q,Q){try{var L=u.call(g.JSC$9024_context_.yieldAllIterator_,q);if(!(L instanceof Object))throw new TypeError("e`"+L);if(!L.done)return g.JSC$9024_context_.isRunning_=!1,L;var E=L.value}catch(y){return g.JSC$9024_context_.yieldAllIterator_=null,Na2(g.JSC$9024_context_,y),Fi(g)}g.JSC$9024_context_.yieldAllIterator_=null;Q.call(g.JSC$9024_context_,E);return Fi(g)};
Fi=function(g){for(;g.JSC$9024_context_.nextAddress;)try{var u=g.program_(g.JSC$9024_context_);if(u)return g.JSC$9024_context_.isRunning_=!1,{value:u.value,done:!1}}catch(q){g.JSC$9024_context_.yieldResult=void 0,Na2(g.JSC$9024_context_,q)}g.JSC$9024_context_.isRunning_=!1;if(g.JSC$9024_context_.abruptCompletion_){u=g.JSC$9024_context_.abruptCompletion_;g.JSC$9024_context_.abruptCompletion_=null;if(u.isException)throw u.exception;return{value:u.return,done:!0}}return{value:void 0,done:!0}};
Dx8=function(g){this.next=function(u){PZW(g.JSC$9024_context_);g.JSC$9024_context_.yieldAllIterator_?u=yb0(g,g.JSC$9024_context_.yieldAllIterator_.next,u,g.JSC$9024_context_.JSC$9019_next_):(g.JSC$9024_context_.JSC$9019_next_(u),u=Fi(g));return u};
this.throw=function(u){PZW(g.JSC$9024_context_);g.JSC$9024_context_.yieldAllIterator_?u=yb0(g,g.JSC$9024_context_.yieldAllIterator_["throw"],u,g.JSC$9024_context_.JSC$9019_next_):(Na2(g.JSC$9024_context_,u),u=Fi(g));return u};
this.return=function(u){return via(g,u)};
this[Symbol.iterator]=function(){return this}};
_.n3=function(g,u){u=new Dx8(new sRX(u));IO&&g.prototype&&IO(u,g.prototype);return u};
p50=function(g){function u(Q){return g.next(Q)}
function q(Q){return g.throw(Q)}
return new Promise(function(Q,L){function E(y){y.done?Q(y.value):Promise.resolve(y.value).then(u,q).then(E,L)}
E(g.next())})};
_.D=function(g){return p50(new Dx8(new sRX(g)))};
lA("Symbol",function(g){if(g)return g;var u=function(E,y){this.$jscomp$symbol$id_=E;Bqa(this,"description",{configurable:!0,writable:!0,value:y})};
u.prototype.toString=function(){return this.$jscomp$symbol$id_};
var q="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",Q=0,L=function(E){if(this instanceof L)throw new TypeError("g");return new u(q+(E||"")+"_"+Q++,E)};
return L});
lA("Symbol.iterator",function(g){if(g)return g;g=Symbol("h");Bqa(Array.prototype,g,{configurable:!0,writable:!0,value:function(){return JbZ(QRn(this))}});
return g});
lA("Symbol.asyncIterator",function(g){return g?g:Symbol("i")});
JbZ=function(g){g={next:g};g[Symbol.iterator]=function(){return this};
return g};
_.dt=function(g){var u=g[Symbol.asyncIterator];return u!==void 0?u.call(g):new jR5(_.N(g))};
jR5=function(g){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return g};
this.next=function(u){return Promise.resolve(g.next(u))};
this["throw"]=function(u){return new Promise(function(q,Q){var L=g["throw"];L!==void 0?q(L.call(g,u)):(q=g["return"],q!==void 0&&q.call(g),Q(new TypeError("j")))})};
g["return"]!==void 0&&(this["return"]=function(u){return Promise.resolve(g["return"](u))})};
_.UT=function(){for(var g=Number(this),u=[],q=g;q<arguments.length;q++)u[q-g]=arguments[q];return u};
_.kb=function(g){return g};
lA("globalThis",function(g){return g||_.z3});
lA("Reflect",function(g){return g?g:{}});
lA("Reflect.construct",function(){return oui});
lA("Reflect.setPrototypeOf",function(g){return g?g:IO?function(u,q){try{return IO(u,q),!0}catch(Q){return!1}}:null});
lA("Promise",function(g){function u(){this.batch_=null}
function q(y){return y instanceof L?y:new L(function(v){v(y)})}
if(g&&(typeof _.z3.PromiseRejectionEvent!=="undefined"||!_.z3.Promise||_.z3.Promise.toString().indexOf("[native code]")===-1))return g;u.prototype.asyncExecute=function(y){if(this.batch_==null){this.batch_=[];var v=this;this.asyncExecuteFunction(function(){v.executeBatch_()})}this.batch_.push(y)};
var Q=_.z3.setTimeout;u.prototype.asyncExecuteFunction=function(y){Q(y,0)};
u.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var y=this.batch_;this.batch_=[];for(var v=0;v<y.length;++v){var J=y[v];y[v]=null;try{J()}catch(f){this.asyncThrow_(f)}}}this.batch_=null};
u.prototype.asyncThrow_=function(y){this.asyncExecuteFunction(function(){throw y;})};
var L=function(y){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var v=this.createResolveAndReject_();try{y(v.resolve,v.reject)}catch(J){v.reject(J)}};
L.prototype.createResolveAndReject_=function(){function y(f){return function(t){J||(J=!0,f.call(v,t))}}
var v=this,J=!1;return{resolve:y(this.resolveTo_),reject:y(this.JSC$9056_reject_)}};
L.prototype.resolveTo_=function(y){if(y===this)this.JSC$9056_reject_(new TypeError("n"));else if(y instanceof L)this.settleSameAsPromise_(y);else{a:switch(typeof y){case "object":var v=y!=null;break a;case "function":v=!0;break a;default:v=!1}v?this.resolveToNonPromiseObj_(y):this.fulfill_(y)}};
L.prototype.resolveToNonPromiseObj_=function(y){var v=void 0;try{v=y.then}catch(J){this.JSC$9056_reject_(J);return}typeof v=="function"?this.settleSameAsThenable_(v,y):this.fulfill_(y)};
L.prototype.JSC$9056_reject_=function(y){this.settle_(2,y)};
L.prototype.fulfill_=function(y){this.settle_(1,y)};
L.prototype.settle_=function(y,v){if(this.state_!=0)throw Error("o`"+y+"`"+v+"`"+this.state_);this.state_=y;this.result_=v;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
L.prototype.scheduleUnhandledRejectionCheck_=function(){var y=this;Q(function(){if(y.notifyUnhandledRejection_()){var v=_.z3.console;typeof v!=="undefined"&&v.error(y.result_)}},1)};
L.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var y=_.z3.CustomEvent,v=_.z3.Event,J=_.z3.dispatchEvent;if(typeof J==="undefined")return!0;typeof y==="function"?y=new y("unhandledrejection",{cancelable:!0}):typeof v==="function"?y=new v("unhandledrejection",{cancelable:!0}):(y=_.z3.document.createEvent("CustomEvent"),y.initCustomEvent("unhandledrejection",!1,!0,y));y.promise=this;y.reason=this.result_;return J(y)};
L.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var y=0;y<this.onSettledCallbacks_.length;++y)E.asyncExecute(this.onSettledCallbacks_[y]);this.onSettledCallbacks_=null}};
var E=new u;L.prototype.settleSameAsPromise_=function(y){var v=this.createResolveAndReject_();y.callWhenSettled_(v.resolve,v.reject)};
L.prototype.settleSameAsThenable_=function(y,v){var J=this.createResolveAndReject_();try{y.call(v,J.resolve,J.reject)}catch(f){J.reject(f)}};
L.prototype.then=function(y,v){function J(G,R){return typeof G=="function"?function(H){try{f(G(H))}catch(l){t(l)}}:R}
var f,t,e=new L(function(G,R){f=G;t=R});
this.callWhenSettled_(J(y,f),J(v,t));return e};
L.prototype.catch=function(y){return this.then(void 0,y)};
L.prototype.callWhenSettled_=function(y,v){function J(){switch(f.state_){case 1:y(f.result_);break;case 2:v(f.result_);break;default:throw Error("p`"+f.state_);}}
var f=this;this.onSettledCallbacks_==null?E.asyncExecute(J):this.onSettledCallbacks_.push(J);this.isRejectionHandled_=!0};
L.resolve=q;L.reject=function(y){return new L(function(v,J){J(y)})};
L.race=function(y){return new L(function(v,J){for(var f=_.N(y),t=f.next();!t.done;t=f.next())q(t.value).callWhenSettled_(v,J)})};
L.all=function(y){var v=_.N(y),J=v.next();return J.done?q([]):new L(function(f,t){function e(H){return function(l){G[H]=l;R--;R==0&&f(G)}}
var G=[],R=0;do G.push(void 0),R++,q(J.value).callWhenSettled_(e(G.length-1),t),J=v.next();while(!J.done)})};
return L});
var m3=function(g,u,q){if(g==null)throw new TypeError("q`"+q);if(u instanceof RegExp)throw new TypeError("r`"+q);return g+""};
lA("String.prototype.startsWith",function(g){return g?g:function(u,q){var Q=m3(this,u,"startsWith"),L=Q.length,E=u.length;q=Math.max(0,Math.min(q|0,Q.length));for(var y=0;y<E&&q<L;)if(Q[q++]!=u[y++])return!1;return y>=E}});
lA("Object.setPrototypeOf",function(g){return g||IO});
lA("Symbol.dispose",function(g){return g?g:Symbol("s")});
lA("SuppressedError",function(g){function u(q,Q,L){if(!(this instanceof u))return new u(q,Q,L);L=Error(L);"stack"in L&&(this.stack=L.stack);this.message=L.message;this.error=q;this.suppressed=Q}
if(g)return g;_.A(u,Error);u.prototype.name="SuppressedError";return u});
lA("Array.from",function(g){return g?g:function(u,q,Q){q=q!=null?q:function(v){return v};
var L=[],E=typeof Symbol!="undefined"&&Symbol.iterator&&u[Symbol.iterator];if(typeof E=="function"){u=E.call(u);for(var y=0;!(E=u.next()).done;)L.push(q.call(Q,E.value,y++))}else for(E=u.length,y=0;y<E;y++)L.push(q.call(Q,u[y],y));return L}});
var fH2=function(g,u,q){g instanceof String&&(g=String(g));for(var Q=g.length,L=0;L<Q;L++){var E=g[L];if(u.call(q,E,L,g))return{i:L,v:E}}return{i:-1,v:void 0}};
lA("Array.prototype.find",function(g){return g?g:function(u,q){return fH2(this,u,q).v}});
lA("WeakMap",function(g){function u(){}
function q(J){var f=typeof J;return f==="object"&&J!==null||f==="function"}
function Q(J){if(!bA(J,E)){var f=new u;Bqa(J,E,{value:f})}}
function L(J){var f=Object[J];f&&(Object[J]=function(t){if(t instanceof u)return t;Object.isExtensible(t)&&Q(t);return f(t)})}
if(function(){if(!g||!Object.seal)return!1;try{var J=Object.seal({}),f=Object.seal({}),t=new g([[J,2],[f,3]]);if(t.get(J)!=2||t.get(f)!=3)return!1;t.delete(J);t.set(f,4);return!t.has(J)&&t.get(f)==4}catch(e){return!1}}())return g;
var E="$jscomp_hidden_"+Math.random();L("freeze");L("preventExtensions");L("seal");var y=0,v=function(J){this.JSC$9064_id_=(y+=Math.random()+1).toString();if(J){J=_.N(J);for(var f;!(f=J.next()).done;)f=f.value,this.set(f[0],f[1])}};
v.prototype.set=function(J,f){if(!q(J))throw Error("t");Q(J);if(!bA(J,E))throw Error("u`"+J);J[E][this.JSC$9064_id_]=f;return this};
v.prototype.get=function(J){return q(J)&&bA(J,E)?J[E][this.JSC$9064_id_]:void 0};
v.prototype.has=function(J){return q(J)&&bA(J,E)&&bA(J[E],this.JSC$9064_id_)};
v.prototype.delete=function(J){return q(J)&&bA(J,E)&&bA(J[E],this.JSC$9064_id_)?delete J[E][this.JSC$9064_id_]:!1};
return v});
lA("Map",function(g){if(function(){if(!g||typeof g!="function"||!g.prototype.entries||typeof Object.seal!="function")return!1;try{var v=Object.seal({x:4}),J=new g(_.N([[v,"s"]]));if(J.get(v)!="s"||J.size!=1||J.get({x:4})||J.set({x:4},"t")!=J||J.size!=2)return!1;var f=J.entries(),t=f.next();if(t.done||t.value[0]!=v||t.value[1]!="s")return!1;t=f.next();return t.done||t.value[0].x!=4||t.value[1]!="t"||!f.next().done?!1:!0}catch(e){return!1}}())return g;
var u=new WeakMap,q=function(v){this[0]={};this[1]=E();this.size=0;if(v){v=_.N(v);for(var J;!(J=v.next()).done;)J=J.value,this.set(J[0],J[1])}};
q.prototype.set=function(v,J){v=v===0?0:v;var f=Q(this,v);f.list||(f.list=this[0][f.id]=[]);f.entry?f.entry.value=J:(f.entry={next:this[1],previous:this[1].previous,head:this[1],key:v,value:J},f.list.push(f.entry),this[1].previous.next=f.entry,this[1].previous=f.entry,this.size++);return this};
q.prototype.delete=function(v){v=Q(this,v);return v.entry&&v.list?(v.list.splice(v.index,1),v.list.length||delete this[0][v.id],v.entry.previous.next=v.entry.next,v.entry.next.previous=v.entry.previous,v.entry.head=null,this.size--,!0):!1};
q.prototype.clear=function(){this[0]={};this[1]=this[1].previous=E();this.size=0};
q.prototype.has=function(v){return!!Q(this,v).entry};
q.prototype.get=function(v){return(v=Q(this,v).entry)&&v.value};
q.prototype.entries=function(){return L(this,function(v){return[v.key,v.value]})};
q.prototype.keys=function(){return L(this,function(v){return v.key})};
q.prototype.values=function(){return L(this,function(v){return v.value})};
q.prototype.forEach=function(v,J){for(var f=this.entries(),t;!(t=f.next()).done;)t=t.value,v.call(J,t[1],t[0],this)};
q.prototype[Symbol.iterator]=q.prototype.entries;var Q=function(v,J){var f=J&&typeof J;f=="object"||f=="function"?u.has(J)?f=u.get(J):(f=""+ ++y,u.set(J,f)):f="p_"+J;var t=v[0][f];if(t&&bA(v[0],f))for(v=0;v<t.length;v++){var e=t[v];if(J!==J&&e.key!==e.key||J===e.key)return{id:f,list:t,index:v,entry:e}}return{id:f,list:t,index:-1,entry:void 0}},L=function(v,J){var f=v[1];
return JbZ(function(){if(f){for(;f.head!=v[1];)f=f.previous;for(;f.next!=f.head;)return f=f.next,{done:!1,value:J(f)};f=null}return{done:!0,value:void 0}})},E=function(){var v={};
return v.previous=v.next=v.head=v},y=0;
return q});
lA("Set",function(g){if(function(){if(!g||typeof g!="function"||!g.prototype.entries||typeof Object.seal!="function")return!1;try{var q=Object.seal({x:4}),Q=new g(_.N([q]));if(!Q.has(q)||Q.size!=1||Q.add(q)!=Q||Q.size!=1||Q.add({x:4})!=Q||Q.size!=2)return!1;var L=Q.entries(),E=L.next();if(E.done||E.value[0]!=q||E.value[1]!=q)return!1;E=L.next();return E.done||E.value[0]==q||E.value[0].x!=4||E.value[1]!=E.value[0]?!1:L.next().done}catch(y){return!1}}())return g;
var u=function(q){this.JSC$9078_map_=new Map;if(q){q=_.N(q);for(var Q;!(Q=q.next()).done;)this.add(Q.value)}this.size=this.JSC$9078_map_.size};
u.prototype.add=function(q){q=q===0?0:q;this.JSC$9078_map_.set(q,q);this.size=this.JSC$9078_map_.size;return this};
u.prototype.delete=function(q){q=this.JSC$9078_map_.delete(q);this.size=this.JSC$9078_map_.size;return q};
u.prototype.clear=function(){this.JSC$9078_map_.clear();this.size=0};
u.prototype.has=function(q){return this.JSC$9078_map_.has(q)};
u.prototype.entries=function(){return this.JSC$9078_map_.entries()};
u.prototype.values=function(){return this.JSC$9078_map_.values()};
u.prototype.keys=u.prototype.values;u.prototype[Symbol.iterator]=u.prototype.values;u.prototype.forEach=function(q,Q){var L=this;this.JSC$9078_map_.forEach(function(E){return q.call(Q,E,E,L)})};
return u});
lA("Math.log2",function(g){return g?g:function(u){return Math.log(u)/Math.LN2}});
lA("Object.values",function(g){return g?g:function(u){var q=[],Q;for(Q in u)bA(u,Q)&&q.push(u[Q]);return q}});
lA("Object.is",function(g){return g?g:function(u,q){return u===q?u!==0||1/u===1/q:u!==u&&q!==q}});
lA("Array.prototype.includes",function(g){return g?g:function(u,q){var Q=this;Q instanceof String&&(Q=String(Q));var L=Q.length;q=q||0;for(q<0&&(q=Math.max(q+L,0));q<L;q++){var E=Q[q];if(E===u||Object.is(E,u))return!0}return!1}});
lA("String.prototype.includes",function(g){return g?g:function(u,q){return m3(this,u,"includes").indexOf(u,q||0)!==-1}});
lA("Object.entries",function(g){return g?g:function(u){var q=[],Q;for(Q in u)bA(u,Q)&&q.push([Q,u[Q]]);return q}});
lA("Number.isFinite",function(g){return g?g:function(u){return typeof u!=="number"?!1:!isNaN(u)&&u!==Infinity&&u!==-Infinity}});
lA("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
lA("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
lA("Number.isInteger",function(g){return g?g:function(u){return Number.isFinite(u)?u===Math.floor(u):!1}});
lA("Number.isSafeInteger",function(g){return g?g:function(u){return Number.isInteger(u)&&Math.abs(u)<=Number.MAX_SAFE_INTEGER}});
lA("String.prototype.endsWith",function(g){return g?g:function(u,q){var Q=m3(this,u,"endsWith");q===void 0&&(q=Q.length);q=Math.max(0,Math.min(q|0,Q.length));for(var L=u.length;L>0&&q>0;)if(Q[--q]!=u[--L])return!1;return L<=0}});
var MX8=function(g,u){g instanceof String&&(g+="");var q=0,Q=!1,L={next:function(){if(!Q&&q<g.length){var E=q++;return{value:u(E,g[E]),done:!1}}Q=!0;return{done:!0,value:void 0}}};
L[Symbol.iterator]=function(){return L};
return L};
lA("Array.prototype.entries",function(g){return g?g:function(){return MX8(this,function(u,q){return[u,q]})}});
lA("Math.trunc",function(g){return g?g:function(u){u=Number(u);if(isNaN(u)||u===Infinity||u===-Infinity||u===0)return u;var q=Math.floor(Math.abs(u));return u<0?-q:q}});
lA("Number.isNaN",function(g){return g?g:function(u){return typeof u==="number"&&isNaN(u)}});
lA("Array.prototype.keys",function(g){return g?g:function(){return MX8(this,function(u){return u})}});
lA("Array.prototype.values",function(g){return g?g:function(){return MX8(this,function(u,q){return q})}});
lA("Array.prototype.fill",function(g){return g?g:function(u,q,Q){var L=this.length||0;q<0&&(q=Math.max(0,L+q));if(Q==null||Q>L)Q=L;Q=Number(Q);Q<0&&(Q=Math.max(0,L+Q));for(q=Number(q||0);q<Q;q++)this[q]=u;return this}});
SbH("fill",function(g){return g?g:Array.prototype.fill});
lA("Object.fromEntries",function(g){return g?g:function(u){var q={};if(!(Symbol.iterator in u))throw new TypeError("v`"+u);u=u[Symbol.iterator].call(u);for(var Q=u.next();!Q.done;Q=u.next()){Q=Q.value;if(Object(Q)!==Q)throw new TypeError("w");q[Q[0]]=Q[1]}return q}});
lA("String.prototype.replaceAll",function(g){return g?g:function(u,q){if(u instanceof RegExp&&!u.global)throw new TypeError("x");return u instanceof RegExp?this.replace(u,q):this.replace(new RegExp(String(u).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),q)}});
lA("Object.getOwnPropertySymbols",function(g){return g?g:function(){return[]}});
lA("String.prototype.repeat",function(g){return g?g:function(u){var q=m3(this,null,"repeat");if(u<0||u>1342177279)throw new RangeError("y");u|=0;for(var Q="";u;)if(u&1&&(Q+=q),u>>>=1)q+=q;return Q}});
lA("Array.prototype.findIndex",function(g){return g?g:function(u,q){return fH2(this,u,q).i}});
lA("Array.prototype.flatMap",function(g){return g?g:function(u,q){var Q=[];Array.prototype.forEach.call(this,function(L,E){L=u.call(q,L,E,this);Array.isArray(L)?Q.push.apply(Q,L):Q.push(L)});
return Q}});
lA("String.prototype.codePointAt",function(g){return g?g:function(u){var q=m3(this,null,"codePointAt"),Q=q.length;u=Number(u)||0;if(u>=0&&u<Q){u|=0;var L=q.charCodeAt(u);if(L<55296||L>56319||u+1===Q)return L;u=q.charCodeAt(u+1);return u<56320||u>57343?L:(L-55296)*1024+u+9216}}});
lA("String.fromCodePoint",function(g){return g?g:function(u){for(var q="",Q=0;Q<arguments.length;Q++){var L=Number(arguments[Q]);if(L<0||L>1114111||L!==Math.floor(L))throw new RangeError("z`"+L);L<=65535?q+=String.fromCharCode(L):(L-=65536,q+=String.fromCharCode(L>>>10&1023|55296),q+=String.fromCharCode(L&1023|56320))}return q}});
lA("String.prototype.trimLeft",function(g){function u(){return this.replace(/^[\s\xa0]+/,"")}
return g||u});
lA("String.prototype.trimStart",function(g){return g||String.prototype.trimLeft});
lA("String.prototype.padStart",function(g){return g?g:function(u,q){var Q=m3(this,null,"padStart");u-=Q.length;q=q!==void 0?String(q):" ";return(u>0&&q?q.repeat(Math.ceil(u/q.length)).substring(0,u):"")+Q}});
lA("Promise.prototype.finally",function(g){return g?g:function(u){return this.then(function(q){return Promise.resolve(u()).then(function(){return q})},function(q){return Promise.resolve(u()).then(function(){throw q;
})})}});
lA("Math.imul",function(g){return g?g:function(u,q){u=Number(u);q=Number(q);var Q=u&65535,L=q&65535;return Q*L+((u>>>16&65535)*L+Q*(q>>>16&65535)<<16>>>0)|0}});
lA("Object.hasOwn",function(g){return g?g:function(u,q){return Object.prototype.hasOwnProperty.call(u,q)}});
var tXX=function(g){g=Math.trunc(g)||0;g<0&&(g+=this.length);if(!(g<0||g>=this.length))return this[g]};
lA("Array.prototype.at",function(g){return g?g:tXX});
SbH("at",function(g){return g?g:tXX});
lA("String.prototype.at",function(g){return g?g:tXX});
lA("Math.sign",function(g){return g?g:function(u){u=Number(u);return u===0||isNaN(u)?u:u>0?1:-1}});
lA("Array.prototype.flat",function(g){return g?g:function(u){u=u===void 0?1:u;var q=[];Array.prototype.forEach.call(this,function(Q){Array.isArray(Q)&&u>0?(Q=Array.prototype.flat.call(Q,u-1),q.push.apply(q,Q)):q.push(Q)});
return q}});
lA("String.raw",function(g){return g?g:function(u,q){u=L8i(u);for(var Q=u.raw,L=Q.length,E="",y=0;y<L;++y)E+=Q[y],y+1<L&&y+1<arguments.length&&(E+=String(arguments[y+1]));return E}});
lA("WeakSet",function(g){if(function(){if(!g||!Object.seal)return!1;try{var q=Object.seal({}),Q=Object.seal({}),L=new g([q]);if(!L.has(q)||L.has(Q))return!1;L.delete(q);L.add(Q);return!L.has(q)&&L.has(Q)}catch(E){return!1}}())return g;
var u=function(q){this.JSC$9093_map_=new WeakMap;if(q){q=_.N(q);for(var Q;!(Q=q.next()).done;)this.add(Q.value)}};
u.prototype.add=function(q){this.JSC$9093_map_.set(q,!0);return this};
u.prototype.has=function(q){return this.JSC$9093_map_.has(q)};
u.prototype.delete=function(q){return this.JSC$9093_map_.delete(q)};
return u});
lA("Reflect.ownKeys",function(g){return g?g:function(u){var q=[],Q=Object.getOwnPropertyNames(u);u=Object.getOwnPropertySymbols(u);for(var L=0;L<Q.length;L++)(Q[L].substring(0,14)=="jscomp_symbol_"?u:q).push(Q[L]);return q.concat(u)}});
lA("Object.getOwnPropertyDescriptors",function(g){return g?g:function(u){for(var q={},Q=Reflect.ownKeys(u),L=0;L<Q.length;L++)q[Q[L]]=Object.getOwnPropertyDescriptor(u,Q[L]);return q}});
lA("Promise.allSettled",function(g){function u(Q){return{status:"fulfilled",value:Q}}
function q(Q){return{status:"rejected",reason:Q}}
return g?g:function(Q){var L=this;Q=Array.from(Q,function(E){return L.resolve(E).then(u,q)});
return L.all(Q)}});
lA("Number.parseInt",function(g){return g||parseInt});
var enb=function(g,u,q){g instanceof String&&(g=String(g));for(var Q=g.length-1;Q>=0;Q--){var L=g[Q];if(u.call(q,L,Q,g))return{i:Q,v:L}}return{i:-1,v:void 0}};
lA("Array.prototype.findLastIndex",function(g){return g?g:function(u,q){return enb(this,u,q).i}});
SbH("findLastIndex",function(g){return g?g:function(u,q){return enb(this,u,q).i}});
_._DumpException=window._DumpException||function(g){throw g;};
window._DumpException=_._DumpException;var G2H=window.ytcsi;G2H&&typeof G2H.tick==="function"&&G2H.tick("rses_dpj");var $xW,aO,V9,Xi,Rnb,w58,cb5,Ho8,aH,Ab8;$xW=$xW||{};_.Qq=this||self;_.xQ=function(g,u,q){g=g.split(".");q=q||_.Qq;for(var Q;g.length&&(Q=g.shift());)g.length||u===void 0?q[Q]&&q[Q]!==Object.prototype[Q]?q=q[Q]:q=q[Q]={}:q[Q]=u};
aO=function(g,u){var q=_.ri("WIZ_global_data.oxN3nb");g=q&&q[g];return g!=null?g:u};
V9=_.Qq._F_toggles_default_kevlar_base||[];Xi=function(){};
Xi.get=function(){return null};
_.SQ=null;_.ri=function(g,u){g=g.split(".");u=u||_.Qq;for(var q=0;q<g.length;q++)if(u=u[g[q]],u==null)return null;return u};
_.rT=function(g){g.instance_=void 0;g.getInstance=function(){return g.instance_?g.instance_:g.instance_=new g}};
_.EZ=function(g){var u=typeof g;return u!="object"?u:g?Array.isArray(g)?"array":u:"null"};
_.xu=function(g){var u=_.EZ(g);return u=="array"||u=="object"&&typeof g.length=="number"};
_.zM=function(g){var u=typeof g;return u=="object"&&g!=null||u=="function"};
_.ku=function(g){return Object.prototype.hasOwnProperty.call(g,Rnb)&&g[Rnb]||(g[Rnb]=++w58)};
Rnb="closure_uid_"+(Math.random()*1E9>>>0);w58=0;cb5=function(g,u,q){return g.call.apply(g.bind,arguments)};
Ho8=function(g,u,q){if(!g)throw Error();if(arguments.length>2){var Q=Array.prototype.slice.call(arguments,2);return function(){var L=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(L,Q);return g.apply(u,L)}}return function(){return g.apply(u,arguments)}};
_.EH=function(g,u,q){_.EH=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?cb5:Ho8;return _.EH.apply(null,arguments)};
_.uH=function(g,u){var q=Array.prototype.slice.call(arguments,1);return function(){var Q=q.slice();Q.push.apply(Q,arguments);return g.apply(this,Q)}};
_.WK=function(){return Date.now()};
aH=function(g){return g};
_.TK=function(g,u){function q(){}
q.prototype=u.prototype;g.superClass_=u.prototype;g.prototype=new q;g.prototype.constructor=g;g.base=function(Q,L,E){for(var y=Array(arguments.length-2),v=2;v<arguments.length;v++)y[v-2]=arguments[v];return u.prototype[L].apply(Q,y)}};
Ab8=function(g){return g};var ZoW,lHW;_.Y=function(g,u,q,Q){var L=arguments.length,E=L<3?u:Q===null?Q=Object.getOwnPropertyDescriptor(u,q):Q,y;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")E=Reflect.decorate(g,u,q,Q);else for(var v=g.length-1;v>=0;v--)if(y=g[v])E=(L<3?y(E):L>3?y(u,q,E):y(u,q))||E;L>3&&E&&Object.defineProperty(u,q,E)};
_.K=function(g,u){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(g,u)};
ZoW=function(g,u){if(u!==null&&u!==void 0){if(typeof u!=="object"&&typeof u!=="function")throw new TypeError("B");if(q===void 0){if(!Symbol.dispose)throw new TypeError("D");var q=u[Symbol.dispose]}if(typeof q!=="function")throw new TypeError("E");g.stack.push({value:u,dispose:q,async:!1})}return u};
lHW=function(g){function u(E){g.error=g.hasError?new SuppressedError(E,g.error,"An error was suppressed during disposal."):E;g.hasError=!0}
function q(){for(;Q=g.stack.pop();)try{if(!Q.async&&L===1)return L=0,g.stack.push(Q),Promise.resolve().then(q);if(Q.dispose){var E=Q.dispose.call(Q.value);if(Q.async)return L|=2,Promise.resolve(E).then(q,function(y){u(y);return q()})}else L|=1}catch(y){u(y)}if(L===1)return g.hasError?Promise.reject(g.error):Promise.resolve();
if(g.hasError)throw g.error;}
var Q,L=0;q()};var IHb="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(" ");gum()&&IHb.push("details:not(:has(summary))");var qbm=IHb.join(",");_.TK(_.gq,Error);_.gq.prototype.name="CustomError";var ion;var CZW=void 0,boW,dxx=typeof TextDecoder!=="undefined",D3k,vuF=typeof String.prototype.isWellFormed==="function",yTu=typeof TextEncoder!=="undefined";var jK=String.prototype.trim?function(g){return g.trim()}:function(g){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(g)[1]},F8X=/&/g,mx$=/</g,aHX=/>/g,VXi=/"/g,X5W=/'/g,rbx=/\x00/g,W8a=/[\x00&<>"']/;var hL=!!(V9[0]>>17&1),TaZ=!!(V9[0]&4096),hnX=!!(V9[0]>>18&1),Y0X=!!(V9[0]&8),OoR=!!(V9[0]&2),K80=!!(V9[0]&4),xx$=!!(V9[0]&16),Bax=!!(V9[0]&256),zno=!!(V9[0]&32),nio=!!(V9[0]&1024);var k20,wq,S00,oiZ,Ux$,VHh,dEu,gL5;k20=aO(1,!0);wq=hL?hnX:aO(610401301,!1);S00=hL?TaZ||!Y0X:aO(772657768,k20);oiZ=hL?OoR:aO(513659523,!1);Ux$=hL?TaZ||!K80:aO(568333945,!0);VHh=hL?xx$:aO(1331761403,!1);dEu=hL?TaZ||!Bax:aO(748402147,!0);_.YS=hL?TaZ||!zno:aO(824648567,k20);gL5=hL?nio:aO(824656860,!1);var cS,uti=_.Qq.navigator;cS=uti?uti.userAgentData||null:null;var TX;_.Vq=function(g,u){return Array.prototype.indexOf.call(g,u,void 0)};
_.Tv=function(g,u,q){Array.prototype.forEach.call(g,u,q)};
_.Oc=function(g,u,q){return Array.prototype.filter.call(g,u,q)};
_.Jk=function(g,u,q){return Array.prototype.map.call(g,u,q)};
TX=function(g,u,q){return Array.prototype.some.call(g,u,q)};
_.cAK=function(g,u,q){return Array.prototype.every.call(g,u,q)};var KT=function(g){KT[" "](g);return g};
KT[" "]=function(){};
var oBq=function(g,u){try{return KT(g[u]),!0}catch(q){}return!1},jIq=function(g,u,q,Q){Q=Q?Q(u):u;
return Object.prototype.hasOwnProperty.call(g,Q)?g[Q]:g[Q]=q(u)};var qZo,Ok,QHW,Lzx,Px8,NCo,aLJ,sHW,yhb,vL8,tSu,pnZ,Jha,tfx,eKn,Ghx;_.rIk=function(){return _.Qq.navigator||null};
qZo=MKq();_.xS=tKF();Ok=HS("Edge");QHW=Ok||_.xS;_.qM=HS("Gecko")&&!(_.JT(_.GM(),"WebKit")&&!HS("Edge"))&&!(HS("Trident")||HS("MSIE"))&&!HS("Edge");_.u6=_.JT(_.GM(),"WebKit")&&!HS("Edge");Lzx=_.u6&&HS("Mobile");_.ELW=_.ZZq();Px8=_.lku();NCo=(CZ()?cS.platform==="Linux":HS("Linux"))||_.Iku();aLJ=_.HZf();sHW=ATS();yhb=HS("iPad");vL8=HS("iPod");_.DEZ=_.bh();tSu=_.JT(_.GM(),"KaiOS");pnZ=function(){var g=_.Qq.document;return g?g.documentMode:void 0};
a:{var jHb="",fb0=function(){var g=_.GM();if(_.qM)return/rv:([^\);]+)(\)|;)/.exec(g);if(Ok)return/Edge\/([\d\.]+)/.exec(g);if(_.xS)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(g);if(_.u6)return/WebKit\/(\S+)/.exec(g);if(qZo)return/(?:Version)[ \/]?(\S+)/.exec(g)}();
fb0&&(jHb=fb0?fb0[1]:"");if(_.xS){var Mfx=pnZ();if(Mfx!=null&&Mfx>parseFloat(jHb)){Jha=String(Mfx);break a}}Jha=jHb}tfx=Jha;eKn={};_.BK=function(g){return jIq(eKn,g,function(){return _.eK(tfx,g)>=0})};
if(_.Qq.document&&_.xS){var $Eo=pnZ();Ghx=$Eo?$Eo:parseInt(tfx,10)||void 0}else Ghx=void 0;_.RK0=Ghx;var GNf,$ZF,wni;_.zK=Im();GNf=ATS()||HS("iPod");$ZF=HS("iPad");wni=_.$3h();_.nT=ih();_.I0=_.GMZ()&&!_.bh();var TqS={},qx=null,$ih=_.qM||_.u6||typeof _.Qq.btoa=="function";var QRF=typeof Uint8Array!=="undefined",Bqq=!_.xS&&typeof btoa==="function",zFT=/[-_.]/g,KJh={"-":"+",_:"/",".":"="},da={};var bZ,H9R;bZ=function(g,u){if(u!==da)throw Error("K");this.JSC$9127_value_=g;if(g!=null&&g.length===0)throw Error("J");};
_.FW=function(){return chb||(chb=new bZ(null,da))};
H9R=function(g){return new Uint8Array(uVq(g)||0)};
bZ.prototype.isEmpty=function(){return this.JSC$9127_value_==null};
bZ.prototype.sizeBytes=function(){var g=uVq(this);return g?g.length:0};
var uVq=function(g){if(da!==da)throw Error("K");var u=g.JSC$9127_value_;u==null||QRF&&u!=null&&u instanceof Uint8Array||(typeof u==="string"?u=nuk(u):(_.EZ(u),u=null));return u==null?u:g.JSC$9127_value_=u},chb;var Sbk=void 0;var P5=typeof Symbol==="function"&&typeof Symbol()==="symbol",Ah$=E0("jas",void 0,!0),S0b=E0(void 0,"0di"),yB=E0(void 0,"1oa"),rC=E0(void 0,Symbol()),Jhq=E0(void 0,"0ub"),fbb=E0(void 0,"0ubs"),XTu=E0(void 0,"0ubsb"),mEb=E0(void 0,"0actk"),bx=E0("m_m","messagePrototypeMarker",!0),Z9J=E0(void 0,"vps"),vLJ=E0();var giZ,U3Z,Sf,Z98;giZ={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};U3Z=Object.defineProperties;_.Nx=P5?Ah$:"internalArrayState";Z98=[];Jb(Z98,7);Sf=Object.freeze(Z98);var Ft={},IR={},lb8=function(g,u,q){this.iterable=g;this.mapper=u;this.thisArg=q};
lb8.prototype.next=function(){var g=this.iterable.next();g.done||(g.value=this.mapper.call(this.thisArg,g.value));return g};
lb8.prototype[Symbol.iterator]=function(){return this};
var Ibo=Object.freeze({}),aR={};var PZf=void 0,NaM=XW(function(g){return g!==null&&g!==void 0});var p5b=XW(function(g){return typeof g==="number"}),DxJ=XW(function(g){return typeof g==="string"}),jRS=XW(function(g){return typeof g==="boolean"}),i9Z=XW(function(g){return g!=null&&typeof g==="object"&&typeof g.then==="function"}),wWq=XW(function(g){return typeof g==="function"}),uX=XW(function(g){return!!g&&(typeof g==="object"||typeof g==="function")});var Jbh=typeof _.Qq.BigInt==="function"&&typeof _.Qq.BigInt(0)==="bigint";var Oom=XW(function(g){return Jbh?g>=Cxn&&g<=b9i:g[0]==="-"?fHM(g,dEi):fHM(g,Fza)}),dEi=Number.MIN_SAFE_INTEGER.toString(),Cxn=Jbh?BigInt(Number.MIN_SAFE_INTEGER):void 0,Fza=Number.MAX_SAFE_INTEGER.toString(),b9i=Jbh?BigInt(Number.MAX_SAFE_INTEGER):void 0;var mE0=typeof Uint8Array.prototype.slice==="function",T2=0,Yi=0,enT;var ef,cn,Pn,wC,ioF;ef=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Ah=typeof BigInt==="function"?BigInt.asUintN:void 0;cn=Number.isSafeInteger;Pn=Number.isFinite;wC=Math.trunc;ioF=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var lbJ={};var NCZ={},ab8=function(){try{var g=function(){return oui(Map,[],this.constructor)};
_.A(g,Map);KT(new g);return!1}catch(u){return!0}}(),kS=function(){this.JSC$9146_map_=new Map};
_.P=kS.prototype;_.P.get=function(g){return this.JSC$9146_map_.get(g)};
_.P.set=function(g,u){this.JSC$9146_map_.set(g,u);this.size=this.JSC$9146_map_.size;return this};
_.P.delete=function(g){g=this.JSC$9146_map_.delete(g);this.size=this.JSC$9146_map_.size;return g};
_.P.clear=function(){this.JSC$9146_map_.clear();this.size=this.JSC$9146_map_.size};
_.P.has=function(g){return this.JSC$9146_map_.has(g)};
_.P.entries=function(){return this.JSC$9146_map_.entries()};
_.P.keys=function(){return this.JSC$9146_map_.keys()};
_.P.values=function(){return this.JSC$9146_map_.values()};
_.P.forEach=function(g,u){return this.JSC$9146_map_.forEach(g,u)};
kS.prototype[Symbol.iterator]=function(){return this.entries()};
var SU=function(){if(ab8)return Object.setPrototypeOf(kS.prototype,Map.prototype),Object.defineProperties(kS.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),kS;var g=function(){return oui(Map,[],this.constructor)};
_.A(g,Map);return g}(),mz=function(g,u,q,Q){q=q===void 0?qZZ:q;
Q=Q===void 0?qZZ:Q;var L=SU.call(this)||this;L.arrayState=g[_.Nx]|0;L.valueCtor=u;L.keyToApi=q;L.valueToApi=L.valueCtor?Lz3:Q;for(var E=0;E<g.length;E++){var y=g[E],v=q(y[0],!1,!0),J=y[1];u?J===void 0&&(J=null):J=Q(y[1],!1,!0,void 0,void 0,L.arrayState);SU.prototype.set.call(L,v,J)}return L};
_.A(mz,SU);var Vfb=function(g){if(g.arrayState&2)throw Error("O");},Ahq=function(g,u){return wa(Array.from(SU.prototype.entries.call(g),u))};
_.P=mz.prototype;_.P.clear=function(){Vfb(this);SU.prototype.clear.call(this)};
_.P.delete=function(g){Vfb(this);return SU.prototype.delete.call(this,this.keyToApi(g,!0,!1))};
_.P.entries=function(){if(this.valueCtor){var g=SU.prototype.keys.call(this);g=new lb8(g,ELf,this)}else g=SU.prototype.entries.call(this);return g};
_.P.values=function(){if(this.valueCtor){var g=SU.prototype.keys.call(this);g=new lb8(g,mz.prototype.get,this)}else g=SU.prototype.values.call(this);return g};
_.P.forEach=function(g,u){this.valueCtor?SU.prototype.forEach.call(this,function(q,Q,L){g.call(u,L.get(Q),Q,L)}):SU.prototype.forEach.call(this,g,u)};
_.P.set=function(g,u){Vfb(this);g=this.keyToApi(g,!0,!1);return g==null?this:u==null?(SU.prototype.delete.call(this,g),this):SU.prototype.set.call(this,g,this.valueToApi(u,!0,!0,this.valueCtor,!1,this.arrayState))};
_.P.has=function(g){return SU.prototype.has.call(this,this.keyToApi(g,!1,!1))};
_.P.get=function(g){g=this.keyToApi(g,!1,!1);var u=SU.prototype.get.call(this,g);if(u!==void 0){var q=this.valueCtor;return q?(q=this.valueToApi(u,!1,!0,q,this.callToMutableOnAccess,this.arrayState),q!==u&&SU.prototype.set.call(this,g,q),q):u}};
mz.prototype[Symbol.iterator]=function(){return this.entries()};
mz.prototype.toJSON=void 0;var PxJ;var Gh3=function(){},tf3=function(g,u){for(var q in g)!isNaN(q)&&u(g,+q,g[q])},$EZ=function(g){var u=new Gh3;
tf3(g,function(q,Q,L){u[Q]=ux(L)});
u.reviveUnknownFields=g.reviveUnknownFields;return u},DEh={reviveIntoImmutable:!0};var eKF;var IbZ,i9h;var XnR,QB,P6,pw,rhn,PM,v6,Wz2,hKa,DP,YZH,pp,fp,M$;XnR=_.W5(0);_.oO={};_.Uc=function(g,u,q,Q,L){u=QB(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u,q,L);if(u!==null||Q&&g.noLegacyNull!==IR)return u};
QB=function(g,u,q,Q){if(u===-1)return null;var L=u+(q?0:-1),E=g.length-1;if(!(E<1+(q?0:-1))){if(L>=E){var y=g[E];if(y!=null&&typeof y==="object"&&y.constructor===Object){q=y[u];var v=!0}else if(L===E)q=y;else return}else q=g[L];if(Q&&q!=null){Q=Q(q);if(Q==null)return Q;if(!Object.is(Q,q))return v?y[u]=Q:g[L]=Q,Q}return q}};
_.gN=function(g,u,q,Q){Bn(g);var L=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;kL(L,L[_.Nx]|0,u,q,Q);return g};
_.gm=function(g,u,q){g=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return khJ(g,g[_.Nx]|0,u,q)!==void 0};
_.QE=function(g,u,q,Q){var L=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return khJ(L,L[_.Nx]|0,u,pw(g,Q,q))!==void 0};
_.Xo=function(g){return g===Ibo?2:4};
_.Lp=function(g,u){g=_.Uc(g,u,void 0,void 0,O9q);return g==null?_.FW():g};
P6=function(g,u,q,Q){Bn(g);var L=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=L[_.Nx]|0;if(Q==null){var y=BCk(L);if(zKM(y,L,E,q)===u)y.set(q,0);else return g}else E=nLT(L,E,q,u);kL(L,E,u,Q);return g};
_.ZO=function(g,u,q,Q){var L=g[_.Nx]|0,E=V$(L);L=nLT(g,L,q,u,E);kL(g,L,u,Q,E)};
pw=function(g,u,q){return _.Ea(g,u)===q?q:-1};
_.Ea=function(g,u){g=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zKM(BCk(g),g,void 0,u,void 0)};
rhn=function(g,u,q){var Q=g[_.Nx]|0,L=V$(Q),E=QB(g,q,L);if(E!=null&&E[bx]===Ft){if(!iZ(E))return xL(E),E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var y=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(E)&&(y=E);if(y){var v=y[_.Nx]|0;v&2&&(y=OZ(y,v))}y=Th(y,u);y!==E&&kL(g,Q,q,y,L);return y};
_.o0=function(g,u,q,Q){var L=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=L[_.Nx]|0;u=khJ(L,E,u,q,Q);if(u==null)return u;E=L[_.Nx]|0;if(!iZ(g,E)){var y=QHf(u);y!==u&&(xL(g)&&(L=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=L[_.Nx]|0),u=y,E=kL(L,E,q,u,Q),zh(L,E))}return u};
_.Vu=function(g,u,q,Q){var L=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return SZb(g,L,L[_.Nx]|0,u,q,Q,!1,!0)};
_.FV=function(g,u,q,Q){q=oLm(q);_.gN(g,u,q,Q);q&&!iZ(q)&&zh(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return g};
_.mG=function(g,u,q,Q){Q=oLm(Q);P6(g,u,q,Q);Q&&!iZ(Q)&&zh(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return g};
PM=function(g,u,q){Bn(g);var Q=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=Q[_.Nx]|0;if(q==null)return kL(Q,L,u),g;for(var E=q===Sf?7:q[_.Nx]|0,y=E,v=qk(E),J=v||Object.isFrozen(q),f=!0,t=!0,e=0;e<q.length;e++){var G=q[e];v||(G=iZ(G),f&&(f=!G),t&&(t=G))}v||(E=f?13:5,E=t?E&-4097:E|4096);J&&E===y||(q=ux(q),y=0,E=oH(E,L));E!==y&&Jb(q,E);L=kL(Q,L,u,q);2&E||!(4096&E||16&E)||zh(Q,L);return g};
v6=function(g,u,q,Q){gVf(g,u,q,Q);return g};
Wz2=function(g,u,q){gVf(g,u,N$,void 0,q,1,!0);return g};
_.TCa=function(g,u){return gL5?K8b(_.Uc(g,u,void 0,void 0,Ba3)):K8b(_.Uc(g,u))};
_.sa=function(g,u,q){return gL5?_.Uc(g,u,void 0,q,Ba3):Ba3(_.Uc(g,u,void 0,q))};
_.yE=function(g,u,q){return gL5?_.Uc(g,u,void 0,q,znZ):znZ(_.Uc(g,u,void 0,q))};
_.vM=function(g,u){var q=q===void 0?!1:q;var Q;return(Q=_.IHT(_.Uc(g,u)))!=null?Q:q};
_.r6=function(g,u,q){q=q===void 0?0:q;var Q;return(Q=_.Jh(_.Uc(g,u)))!=null?Q:q};
hKa=function(g,u){var q=q===void 0?0:q;g=_.bof(_.Uc(g,u));return g!=null?g:q};
DP=function(g,u,q){q=q===void 0?XnR:q;var Q;return(Q=_.sa(g,u))!=null?Q:q};
YZH=function(g){var u=u===void 0?XnR:u;var q;return(q=_.yE(g,23))!=null?q:u};
pp=function(g,u){var q=q===void 0?0:q;var Q;return(Q=_.Uc(g,u,void 0,void 0,_.L9))!=null?Q:q};
_.J2=function(g,u,q,Q){q=q===void 0?"":q;var L;return(L=_.C9(_.Uc(g,u,Q)))!=null?L:q};
_.j$=function(g,u){var q=q===void 0?0:q;var Q;return(Q=_.Db(_.Uc(g,u)))!=null?Q:q};
fp=function(g,u){var q=q===void 0?"0":q;g=gL5?xxq(_.Uc(g,u,void 0,void 0,Ba3)):xxq(_.Uc(g,u),!0);return g!=null?g:q};
_.O9$=function(g,u,q){g=_.uO(g,u,_.C9,3,!0);L8u(g,q);return g[q]};
M$=function(g,u,q){return _.J2(g,pw(g,q,u))};
_.t2=function(g,u,q,Q){return _.o0(g,u,pw(g,Q,q),void 0)};
_.Sp=function(g,u){return _.C9(_.Uc(g,u,void 0,_.oO))};
_.OU=function(g,u,q){return _.gN(g,u,lHf(q))};
_.vX=function(g,u,q){return _.PT(g,u,lHf(q),!1)};
_.e$=function(g,u,q){return _.gN(g,u,_.p9(q))};
_.jQ=function(g,u,q){return _.gN(g,u,RH(q))};
_.EU=function(g,u,q){return _.gN(g,u,IH(q))};
_.I1=function(g,u,q,Q){return _.PT(g,u,IH(q),"",Q)};
_.Uk=function(g,u,q){return _.gN(g,u,q==null?q:_.vn(q))};
_.Gw=function(g,u,q){return _.PT(g,u,q==null?q:_.vn(q),0)};var vT=function(g,u,q){this.buffer=g;if(q&&!u)throw Error();this.JSC$9158_isImmutable=u};var KzR=function(g,u,q,Q){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9161_start_=0;this.init(g,u,q,Q)},BCH,$0,zK2,P8b,nLb,kh8,SZ0,oLR,Zvf,xE0;
_.P=KzR.prototype;_.P.init=function(g,u,q,Q){var L=Q===void 0?{}:Q;Q=L.aliasBytesFields===void 0?!1:L.aliasBytesFields;L=L.treatNewDataAsImmutable===void 0?!1:L.treatNewDataAsImmutable;this.aliasBytesFields=Q;this.treatNewDataAsImmutable=L;g&&(g=qTJ(g,this.treatNewDataAsImmutable),this.bytes_=g.buffer,this.bytesAreImmutable_=g.JSC$9158_isImmutable,this.JSC$9161_start_=u||0,this.end_=q!==void 0?this.JSC$9161_start_+q:this.bytes_.length,this.cursor_=this.JSC$9161_start_)};
_.P.free=function(){this.clear();xE0.length<100&&xE0.push(this)};
_.P.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9161_start_=0;this.aliasBytesFields=!1};
_.P.reset=function(){this.cursor_=this.JSC$9161_start_};
_.P.atEnd=function(){return this.cursor_==this.end_};
_.Ae=function(g,u){var q=0,Q=0,L=0,E=g.bytes_,y=g.cursor_;do{var v=E[y++];q|=(v&127)<<L;L+=7}while(L<32&&v&128);if(L>32)for(Q|=(v&127)>>4,L=3;L<32&&v&128;L+=7)v=E[y++],Q|=(v&127)<<L;$0(g,y);if(!(v&128))return u(q>>>0,Q>>>0);throw Error();};
BCH=function(g){return _.Ae(g,function(u,q){return HoJ(u,q,w5J)})};
$0=function(g,u){g.cursor_=u;if(u>g.end_)throw Error();};
_.R6=function(g){var u=g.bytes_,q=g.cursor_,Q=u[q++],L=Q&127;if(Q&128&&(Q=u[q++],L|=(Q&127)<<7,Q&128&&(Q=u[q++],L|=(Q&127)<<14,Q&128&&(Q=u[q++],L|=(Q&127)<<21,Q&128&&(Q=u[q++],L|=Q<<28,Q&128&&u[q++]&128&&u[q++]&128&&u[q++]&128&&u[q++]&128&&u[q++]&128)))))throw Error();$0(g,q);return L};
_.wm=function(g){var u=g.bytes_,q=g.cursor_,Q=u[q],L=u[q+1],E=u[q+2];u=u[q+3];$0(g,g.cursor_+4);return(Q<<0|L<<8|E<<16|u<<24)>>>0};
zK2=function(g){var u=_.wm(g);g=_.wm(g);return $xf(u,g)};
P8b=function(g){var u=_.wm(g);g=_.wm(g);return RnT(u,g)};
nLb=function(g){var u=_.wm(g);g=(u>>31)*2+1;var q=u>>>23&255;u&=8388607;return q==255?u?NaN:g*Infinity:q==0?g*1.401298464324817E-45*u:g*Math.pow(2,q-150)*(u+8388608)};
kh8=function(g){var u=_.wm(g),q=_.wm(g);g=(q>>31)*2+1;var Q=q>>>20&2047;u=4294967296*(q&1048575)+u;return Q==2047?u?NaN:g*Infinity:Q==0?g*4.9E-324*u:g*Math.pow(2,Q-1075)*(u+4503599627370496)};
SZ0=function(g){for(var u=0,q=g.cursor_,Q=q+10,L=g.bytes_;q<Q;){var E=L[q++];u|=E;if((E&128)===0)return $0(g,q),!!(u&127)}throw Error();};
oLR=function(g,u){if(u<0)throw Error();var q=g.cursor_;u=q+u;if(u>g.end_)throw Error();g.cursor_=u;return q};
Zvf=function(g,u){if(u==0)return _.FW();var q=oLR(g,u);g.aliasBytesFields&&g.bytesAreImmutable_?q=g.bytes_.subarray(q,q+u):(g=g.bytes_,u=q+u,q=q===u?new Uint8Array(0):mE0?g.slice(q,u):new Uint8Array(g.subarray(q,u)));return q.length==0?_.FW():new bZ(q,da)};
xE0=[];var gVW=function(g,u,q,Q){if(xE0.length){var L=xE0.pop();L.init(g,u,q,Q);g=L}else g=new KzR(g,u,q,Q);this.decoder_=g;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;UE0(this,Q)},UE0=function(g,u){u=u===void 0?{}:u;
g.discardUnknownFields=u.discardUnknownFields===void 0?!1:u.discardUnknownFields},ivk=function(g,u,q,Q){if(uVa.length){var L=uVa.pop();
UE0(L,Q);L.decoder_.init(g,u,q,Q);return L}return new gVW(g,u,q,Q)},ceM,AeZ,HM,qT8,uVa;
gVW.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;uVa.length<100&&uVa.push(this)};
gVW.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
ceM=function(g){if(g.decoder_.atEnd())return!1;g.fieldCursor_=g.decoder_.cursor_;var u=_.R6(g.decoder_)>>>0,q=u>>>3;u&=7;if(!(u>=0&&u<=5))throw Error();if(q<1)throw Error();g.nextField_=q;g.nextWireType_=u;return!0};
AeZ=function(g){switch(g.nextWireType_){case 0:g.nextWireType_!=0?AeZ(g):SZ0(g.decoder_);break;case 1:g=g.decoder_;$0(g,g.cursor_+8);break;case 2:if(g.nextWireType_!=2)AeZ(g);else{var u=_.R6(g.decoder_)>>>0;g=g.decoder_;$0(g,g.cursor_+u)}break;case 5:g=g.decoder_;$0(g,g.cursor_+4);break;case 3:u=g.nextField_;do{if(!ceM(g))throw Error();if(g.nextWireType_==4){if(g.nextField_!=u)throw Error();break}AeZ(g)}while(1);break;default:throw Error();}};
HM=function(g,u,q){var Q=g.decoder_.end_,L=_.R6(g.decoder_)>>>0;L=g.decoder_.cursor_+L;var E=L-Q;E<=0&&(g.decoder_.end_=L,q(u,g,void 0,void 0,void 0),E=L-g.decoder_.cursor_);if(E)throw Error();g.decoder_.cursor_=L;g.decoder_.end_=Q;return u};
qT8=function(g){var u=_.R6(g.decoder_)>>>0;g=g.decoder_;var q=oLR(g,u);g=g.bytes_;if(dxx){var Q=g,L;(L=boW)||(L=boW=new TextDecoder("utf-8",{fatal:!0}));u=q+u;Q=q===0&&u===Q.length?Q:Q.subarray(q,u);try{var E=L.decode(Q)}catch(f){if(CZW===void 0){try{L.decode(new Uint8Array([128]))}catch(t){}try{L.decode(new Uint8Array([97])),CZW=!0}catch(t){CZW=!1}}!CZW&&(boW=void 0);throw f;}}else{E=q;u=E+u;q=[];for(var y=null,v,J;E<u;)v=g[E++],v<128?q.push(v):v<224?E>=u?uh():(J=g[E++],v<194||(J&192)!==128?(E--,
uh()):q.push((v&31)<<6|J&63)):v<240?E>=u-1?uh():(J=g[E++],(J&192)!==128||v===224&&J<160||v===237&&J>=160||((L=g[E++])&192)!==128?(E--,uh()):q.push((v&15)<<12|(J&63)<<6|L&63)):v<=244?E>=u-2?uh():(J=g[E++],(J&192)!==128||(v<<28)+(J-144)>>30!==0||((L=g[E++])&192)!==128||((Q=g[E++])&192)!==128?(E--,uh()):(v=(v&7)<<18|(J&63)<<12|(L&63)<<6|Q&63,v-=65536,q.push((v>>10&1023)+55296,(v&1023)+56320))):uh(),q.length>=8192&&(y=smh(y,q),q.length=0);E=smh(y,q)}return E};
_.Q3H=function(g){var u=_.R6(g.decoder_)>>>0;return Zvf(g.decoder_,u)};
_.LGH=function(g,u,q){var Q=_.R6(g.decoder_)>>>0;for(Q=g.decoder_.cursor_+Q;g.decoder_.cursor_<Q;)q.push(u(g.decoder_))};
uVa=[];var EV2=function(g,u){this.JSC$9168_lo=g>>>0;this.JSC$9168_hi=u>>>0},Ovq=function(g){g=BigInt.asUintN(64,g);
return new EV2(Number(g&BigInt(4294967295)),Number(g>>BigInt(32)))},EVM=function(g){if(!g)return POo||(POo=new EV2(0,0));
if(!/^\d+$/.test(g))return null;SX(g);return new EV2(T2,Yi)},POo,YTK=function(g,u){this.JSC$9170_lo=g>>>0;
this.JSC$9170_hi=u>>>0},Q3k=function(g){if(!g)return N08||(N08=new YTK(0,0));
if(!/^-?\d+$/.test(g))return null;SX(g);return new YTK(T2,Yi)},N08;var A2=function(){this.JSC$9172_buffer_=[]},R3,cT,s3o;
A2.prototype.length=function(){return this.JSC$9172_buffer_.length};
A2.prototype.end=function(){var g=this.JSC$9172_buffer_;this.JSC$9172_buffer_=[];return g};
R3=function(g,u,q){for(;q>0||u>127;)g.JSC$9172_buffer_.push(u&127|128),u=(u>>>7|q<<25)>>>0,q>>>=7;g.JSC$9172_buffer_.push(u)};
cT=function(g,u){for(;u>127;)g.JSC$9172_buffer_.push(u&127|128),u>>>=7;g.JSC$9172_buffer_.push(u)};
_.xkZ=function(g,u){if(u>=0)cT(g,u);else{for(var q=0;q<9;q++)g.JSC$9172_buffer_.push(u&127|128),u>>=7;g.JSC$9172_buffer_.push(1)}};
s3o=function(g,u){SX(u);cbS(function(q,Q){R3(g,q>>>0,Q>>>0)})};
A2.prototype.writeUint8=function(g){this.JSC$9172_buffer_.push(g>>>0&255)};
_.$V=function(g,u){g.JSC$9172_buffer_.push(u>>>0&255);g.JSC$9172_buffer_.push(u>>>8&255);g.JSC$9172_buffer_.push(u>>>16&255);g.JSC$9172_buffer_.push(u>>>24&255)};
A2.prototype.writeInt8=function(g){this.JSC$9172_buffer_.push(g>>>0&255)};var yeb,Mk,zeh,STq,yeT;yeb=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new A2};
Mk=function(g,u){u.length!==0&&(g.blocks_.push(u),g.totalLength_+=u.length)};
_.vVi=function(g,u){_.Gs(g,u,2);u=g.encoder_.end();Mk(g,u);u.push(g.totalLength_);return u};
_.Dk5=function(g,u){var q=u.pop();for(q=g.totalLength_+g.encoder_.length()-q;q>127;)u.push(q&127|128),q>>>=7,g.totalLength_++;u.push(q);g.totalLength_++};
_.Gs=function(g,u,q){cT(g.encoder_,u*8+q)};
zeh=function(g,u,q){if(q!=null)switch(POZ(q),_.Gs(g,u,1),typeof q){case "number":g=g.encoder_;MXJ(q);_.$V(g,T2);_.$V(g,Yi);break;case "bigint":q=Ovq(q);g=g.encoder_;u=q.JSC$9168_hi;_.$V(g,q.JSC$9168_lo);_.$V(g,u);break;default:q=EVM(q),g=g.encoder_,u=q.JSC$9168_hi,_.$V(g,q.JSC$9168_lo),_.$V(g,u)}};
STq=function(g,u,q){_.Gs(g,u,2);cT(g.encoder_,q.length);Mk(g,g.encoder_.end());Mk(g,q)};
yeT=function(g,u,q,Q){q!=null&&(u=_.vVi(g,u),Q(q,g),_.Dk5(g,u))};var N0J,pTW,JeH,j3a,fOi,tO5,eeR,$k2,ReW;N0J=DO();pTW=DO();JeH=DO();j3a=DO();fOi=DO();_.MOx=DO();_.ZP=DO();tO5=DO();eeR=DO();_.GsX=DO();$k2=DO();ReW=DO();_.wTZ=DO();_.ce2=DO();_.fv=function(g,u,q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g,u,q)};
_.fv.prototype.toJSON=function(){return Wn(this)};
_.fv.prototype.serialize=function(g){return JSON.stringify(Wn(this,g))};
var Daq=function(g,u){if(u==null||u=="")return new g;u=JSON.parse(u);if(!Array.isArray(u))throw Error("W");return new g(q0M(u))};
_.fv.prototype.getExtension=function(g){jHT(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g.fieldIndex);pnh(this,g.fieldIndex);return g.ctor?g.isRepeated?g.getExtensionFn(this,g.ctor,g.fieldIndex,_.Xo(),g.JSC$9183_hasMessageId):g.getExtensionFn(this,g.ctor,g.fieldIndex,g.JSC$9183_hasMessageId):g.isRepeated?g.getExtensionFn(this,g.fieldIndex,_.Xo(),g.JSC$9183_hasMessageId):g.getExtensionFn(this,g.fieldIndex,g.defaultValue,g.JSC$9183_hasMessageId)};
_.fv.prototype.clone=function(){var g=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=g[_.Nx]|0;return WzM(this,g,u)?rhF(this,g,!0):new this.constructor(OZ(g,u,!1))};
_.fv.prototype[bx]=Ft;_.fv.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var pv=function(g,u,q){this.$$binaryReaderFn=g;this.$$binaryWriterFn=u;g=aH(N0J);this.$$isMsg=!!g&&q===g||!1},fOu=s3Z(function(g,u,q,Q,L){if(g.nextWireType_!==2)return!1;
HM(g,rhn(u,Q,q),L);return!0},DkS),MO3=s3Z(function(g,u,q,Q,L){if(g.nextWireType_!==2)return!1;
HM(g,rhn(u,Q,q),L);return!0},DkS),bvq=Symbol(),GsK=Symbol(),wTh=Symbol(),mkf=Symbol(),lOF=Symbol(),pTf,Jek;var HvH,sum,Aeo,l$,ZvW,lOn,IO0,ivH,i$,bv$,dko,FGZ,mkW,aOH,XTi,re8,WGb,T0X,heR,YTX;HvH=_.W5(0);sum=function(g,u){var q=new yeb;aOk(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q,Je(bvq,COq,dkZ,u));Mk(q,q.encoder_.end());g=new Uint8Array(q.totalLength_);u=q.blocks_;for(var Q=u.length,L=0,E=0;E<Q;E++){var y=u[E];g.set(y,L);L+=y.length}q.blocks_=[g];return g};
Aeo=s3Z(function(g,u,q,Q,L){if(g.nextWireType_!==2)return!1;g=HM(g,Th([void 0,void 0],Q),L);g=ux(g);Q=u[_.Nx]|0;L=V$(Q);if(Q&2)throw Error();var E=QB(u,q,L);if(E instanceof mz)(E.arrayState&2)!=0?(E=Ahq(E),E.push(g),kL(u,Q,q,E,L)):(u=E,q=u.keyToApi(g[0],!1,!0),g=g[1],g=u.valueCtor?g===void 0?null:g:u.valueToApi(g,!1,!0,void 0,!1,u.arrayState),SU.prototype.set.call(u,q,g));else if(Array.isArray(E)){var y=E[_.Nx]|0;y&8192||Jb(E,y|=8192);y&2&&(E=Kzm(E),kL(u,Q,q,E,L));E.push(g)}else kL(u,Q,q,wa([g]),
L);return!0},function(g,u,q,Q,L){if(u instanceof mz)u.forEach(function(v,J){yeT(g,q,Th([J,
v],Q),L)});
else if(Array.isArray(u)){for(var E=0;E<u.length;E++){var y=u[E];Array.isArray(y)&&yeT(g,q,Th(y,Q),L)}wa(u)}});
l$=_.te(function(g,u,q){if(g.nextWireType_!==1)return!1;_.eO(u,q,kh8(g.decoder_));return!0},T0K,ReW);
ZvW=_.te(function(g,u,q,Q){if(g.nextWireType_!==1)return!1;_.ZO(u,q,Q,kh8(g.decoder_));return!0},T0K,ReW);
lOn=_.te(function(g,u,q){if(g.nextWireType_!==5)return!1;_.eO(u,q,nLb(g.decoder_));return!0},hem,$k2);
IO0=_.WGT(function(g,u,q){if(g.nextWireType_!==5&&g.nextWireType_!==2)return!1;u=_.sT(u,u[_.Nx]|0,q);g.nextWireType_==2?_.LGH(g,nLb,u):u.push(nLb(g.decoder_));return!0},function(g,u,q){u=_.reJ(_.L9,u,!0);
if(u!=null&&u.length)for(_.Gs(g,q,2),cT(g.encoder_,u.length*4),q=0;q<u.length;q++){var Q=g.encoder_;G2k(u[q]);_.$V(Q,T2)}},$k2);
ivH=_.te(function(g,u,q,Q){if(g.nextWireType_!==5)return!1;_.ZO(u,q,Q,nLb(g.decoder_));return!0},hem,$k2);
_.CO$=_.te(function(g,u,q){if(_.YS)return Quq(g,u,q);if(g.nextWireType_!==0)return!1;_.eO(u,q,_.Ae(g.decoder_,_.ki));return!0},_.w0,_.ZP);
_.I6=_.te(function(g,u,q){if(_.YS)return Quq(g,u,q);if(g.nextWireType_!==0)return!1;_.eO(u,q,_.Ae(g.decoder_,z2));return!0},_.w0,_.ZP);
i$=_.te(function(g,u,q){if(_.YS)return g.nextWireType_!==0?u=!1:(g=_.Ae(g.decoder_,w5J),_.eO(u,q,g===HvH?void 0:g),u=!0),u;if(g.nextWireType_!==0)return!1;g=_.Ae(g.decoder_,z2);_.eO(u,q,g===0?void 0:g);return!0},_.w0,_.ZP);
bv$=_.te(function(g,u,q,Q){if(_.YS)return _.Lsf(g,u,q,Q);if(g.nextWireType_!==0)return!1;_.ZO(u,q,Q,_.Ae(g.decoder_,z2));return!0},_.w0,_.ZP);
dko=_.te(function(g,u,q){if(_.YS)return EAm(g,u,q);if(g.nextWireType_!==0)return!1;_.eO(u,q,_.Ae(g.decoder_,_.xi));return!0},KGZ,tO5);
_.Cp=_.te(function(g,u,q){if(_.YS)return EAm(g,u,q);if(g.nextWireType_!==0)return!1;_.eO(u,q,_.Ae(g.decoder_,$xf));return!0},KGZ,tO5);
_.b$=_.te(function(g,u,q){if(g.nextWireType_!==0)return!1;_.eO(u,q,_.R6(g.decoder_));return!0},B0q,j3a);
FGZ=_.te(function(g,u,q){if(g.nextWireType_!==0)return!1;g=_.R6(g.decoder_);_.eO(u,q,g===0?void 0:g);return!0},B0q,j3a);
mkW=_.te(function(g,u,q,Q){if(g.nextWireType_!==0)return!1;_.ZO(u,q,Q,_.R6(g.decoder_));return!0},B0q,j3a);
aOH=_.te(function(g,u,q){if(_.YS)return _.NtF(g,u,q);if(g.nextWireType_!==1)return!1;_.eO(u,q,zK2(g.decoder_));return!0},_.nVq,_.GsX);
_.VOa=_.WGT(function(g,u,q){if(_.YS)return g.nextWireType_!==1&&g.nextWireType_!==2?g=!1:(u=_.sT(u,u[_.Nx]|0,q),g.nextWireType_==2?_.LGH(g,P8b,u):u.push(P8b(g.decoder_)),g=!0),g;if(g.nextWireType_!==1&&g.nextWireType_!==2)return!1;u=_.sT(u,u[_.Nx]|0,q);g.nextWireType_==2?_.LGH(g,zK2,u):u.push(zK2(g.decoder_));return!0},function(g,u,q){u=_.reJ(k2b,u,!1);
if(u!=null)for(var Q=0;Q<u.length;Q++)zeh(g,q,u[Q])},_.GsX);
_.dm=_.te(function(g,u,q){if(g.nextWireType_!==0)return!1;_.eO(u,q,SZ0(g.decoder_));return!0},ks3,pTW);
_.FE=_.te(function(g,u,q){if(g.nextWireType_!==0)return!1;g=SZ0(g.decoder_);_.eO(u,q,g===!1?void 0:g);return!0},ks3,pTW);
XTi=_.te(function(g,u,q,Q){if(g.nextWireType_!==0)return!1;_.ZO(u,q,Q,SZ0(g.decoder_));return!0},ks3,pTW);
_.mE=_.te(function(g,u,q){if(g.nextWireType_!==2)return!1;_.eO(u,q,qT8(g));return!0},oVu,JeH);
_.a6=_.te(function(g,u,q){if(g.nextWireType_!==2)return!1;g=qT8(g);_.eO(u,q,g===""?void 0:g);return!0},oVu,JeH);
_.VE=_.te(function(g,u,q,Q){if(g.nextWireType_!==2)return!1;_.ZO(u,q,Q,qT8(g));return!0},oVu,JeH);
re8=_.WGT(function(g,u,q){if(g.nextWireType_!==2)return!1;g=qT8(g);_.sT(u,u[_.Nx]|0,q).push(g);return!0},function(g,u,q){u=_.reJ(_.C9,u,!0);
if(u!=null)for(var Q=0;Q<u.length;Q++){var L=g,E=q,y=u[Q];y!=null&&STq(L,E,pSJ(y))}},JeH);
WGb=void 0;WGb=WGb===void 0?N0J:WGb;_.XE=new pv(function(g,u,q,Q,L){if(g.nextWireType_!==2)return!1;Q=Th(void 0,Q);_.sT(u,u[_.Nx]|0,q).push(Q);HM(g,Q,L);return!0},function(g,u,q,Q,L){if(Array.isArray(u)){for(var E=0;E<u.length;E++)Ukq(g,u[E],q,Q,L);
g=u[_.Nx]|0;g&1||Jb(u,g|1)}},WGb);
_.rm=s3Z(function(g,u,q,Q,L,E){if(g.nextWireType_!==2)return!1;var y=u[_.Nx]|0;nLT(u,y,E,q,V$(y));u=rhn(u,Q,q);HM(g,u,L);return!0},Ukq);
_.WM=_.te(function(g,u,q){if(g.nextWireType_!==2)return!1;_.eO(u,q,_.Q3H(g));return!0},_.gA3,_.wTZ);
T0X=_.te(function(g,u,q,Q){if(g.nextWireType_!==2)return!1;_.ZO(u,q,Q,_.Q3H(g));return!0},_.gA3,_.wTZ);
_.Tw=_.te(function(g,u,q){if(g.nextWireType_!==0)return!1;_.eO(u,q,_.R6(g.decoder_)>>>0);return!0},urq,fOi);
heR=_.te(function(g,u,q,Q){if(g.nextWireType_!==0)return!1;_.ZO(u,q,Q,_.R6(g.decoder_)>>>0);return!0},urq,fOi);
_.h2=_.te(function(g,u,q){if(g.nextWireType_!==0)return!1;_.eO(u,q,_.R6(g.decoder_));return!0},_.qP3,_.ce2);
_.Y0=_.te(function(g,u,q){if(g.nextWireType_!==0)return!1;g=_.R6(g.decoder_);_.eO(u,q,g===0?void 0:g);return!0},_.qP3,_.ce2);
YTX=_.te(function(g,u,q){if(_.YS)return g.nextWireType_!==0?g=!1:(_.eO(u,q,BCH(g.decoder_)),g=!0),g;if(g.nextWireType_!==0)return!1;_.eO(u,q,_.Ae(g.decoder_,AbJ));return!0},function(g,u,q){u=niZ(u);
if(u!=null&&(LGk(u),u!=null))switch(_.Gs(g,q,0),typeof u){case "number":g=g.encoder_;q=u;u=q<0;q=Math.abs(q)*2;MXJ(q);q=T2;var Q=Yi;u&&(q==0?Q==0?Q=q=4294967295:(Q--,q=4294967295):q--);T2=q;Yi=Q;R3(g,T2,Yi);break;case "bigint":g=g.encoder_;u=u<<BigInt(1)^u>>BigInt(63);T2=Number(BigInt.asUintN(32,u));Yi=Number(BigInt.asUintN(32,u>>BigInt(32)));R3(g,T2,Yi);break;default:s3o(g.encoder_,u)}},eeR);var xko=function(){var g=Ov$,u=KGo;this.fieldIndex=175237375;this.ctor=u;this.isRepeated=0;this.getExtensionFn=_.o0;this.defaultValue=void 0;this.JSC$9183_hasMessageId=g.messageId!=null?aR:void 0};
xko.prototype.register=function(){KT(this)};var B0$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(B0$,_.fv);var zeZ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(zeZ,_.fv);var juJ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(juJ,_.fv);var nVa=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(nVa,_.fv);var ksx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(ksx,_.fv);var STa=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(STa,_.fv);var oVi=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(oVi,_.fv);oVi.prototype.getData=function(){return _.Lp(this,2)};var Uka=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Uka,_.fv);var gAx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(gAx,_.fv);gAx.prototype.getStyle=function(){return _.o0(this,B0$,1)};var d0=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(d0,_.fv);d0.prototype.getPayloadCase=function(){return _.Ea(this,a3)};
d0.prototype.getStyle=function(){return _.t2(this,gAx,6,a3)};
var ur$=function(){var g=new d0,u=new ksx;return _.mG(g,7,a3,u)},qPx=function(){var g=new d0,u=new STa;
return _.mG(g,8,a3,u)},a3=[1,
2,3,4,5,6,7,8];var Qu$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Qu$,_.fv);var LsW=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(LsW,_.fv);var EAR=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(EAR,_.fv);var P80=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(P80,_.fv);var Ntn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Ntn,_.fv);var suR=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(suR,_.fv);var yB$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(yB$,_.fv);var vA$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(vA$,_.fv);vA$.prototype.getData=function(){return _.Lp(this,2)};var Daa=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Daa,_.fv);var JBZ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(JBZ,_.fv);JBZ.prototype.getPayloadCase=function(){return _.Ea(this,Oa)};
var Oa=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Kp=function(g,u){g=Error.call(this,g);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.code=u===void 0?2:u};
_.A(Kp,Error);var pxx=Promise;var JBo=function(g){this.channelPromise=g};
JBo.prototype.send=function(g,u,q){this.channelPromise.then(function(Q){Q.send(g,u,q)})};var ju8=function(g,u){this.data=g;this.channel=u};
ju8.prototype.reply=function(g,u,q){this.channel.send(g,u,q)};var fKx=function(g){this.JSC$9249_port_=g};
fKx.prototype.send=function(g,u,q){q=q===void 0?[]:q;var Q=new MessageChannel;Mx8(Q.port1,u);this.JSC$9249_port_.postMessage(g,[Q.port2].concat(q))};
var tx$=function(g,u){Mx8(g,u);return new fKx(g)},Mx8=function(g,u){u&&(g.onmessage=function(q){u(new ju8(q.data,tx$(q.ports[0])))})};var em8=function(g){this.verifier_=g};
em8.prototype.verify=function(g){return this.verifier_(g)};
var GFR=function(g){var u=Object.create(null);(typeof g==="string"?[g]:g).forEach(function(q){if(q==="null")throw Error("Y");u[q]=!0});
return function(q){return u[q]===!0}};_.$aa=function(){if(!_.Qq.addEventListener||!Object.defineProperty)return!1;var g=!1,u=Object.defineProperty({},"passive",{get:function(){g=!0}});
try{var q=function(){};
_.Qq.addEventListener("test",q,u);_.Qq.removeEventListener("test",q,u)}catch(Q){}return g}();var Rm$;_.x0=function(g){var u=g.destination;var q=g.iframe;var Q=g.origin;var L=g.channelName===void 0?"ZNWN1d":g.channelName;var E=g.onMessage===void 0?void 0:g.onMessage;g=g.onEstablished===void 0?void 0:g.onEstablished;return Rm$({destination:u,getSource:function(){return q.contentWindow},
originVerifier:Q instanceof em8?Q:typeof Q==="function"?new em8(Q):new em8(GFR(Q)),channelName:L,onMessage:E,onEstablished:g})};
Rm$=function(g){var u=g.destination;var q=g.getSource;var Q=g.originVerifier;var L=g.token===void 0?void 0:g.token;var E=g.channelName;var y=g.onMessage===void 0?void 0:g.onMessage;var v=g.onEstablished===void 0?void 0:g.onEstablished;return new JBo(new pxx(function(J,f){var t=function(e){e.source&&e.source===q()&&Q.verify(e.origin)&&(e.data.n||e.data)===E&&(u.removeEventListener("message",t,!1),L&&e.data.t!==L?f(Error("Z`"+E+"`"+L+"`"+e.data.t)):(J(tx$(e.ports[0],y)),v&&v(e)))};
u.addEventListener("message",t,!1)}))};var wx5=function(g){try{g()}catch(u){Eb(u)}};var HaZ=function(g){var u=this;var q=g.getMessageType;var Q=g.onUnregisteredMessage===void 0?function(){}:g.onUnregisteredMessage;
var L=g.onBeforeRegisteredMessage===void 0?function(){}:g.onBeforeRegisteredMessage;
g=g.onAfterRegisteredMessage===void 0?function(){}:g.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=q;this.onUnregisteredMessage_=Q;this.onBeforeRegisteredMessage_=L;this.onAfterRegisteredMessage_=g;this.onMessage=function(E){return cBx(u,E)}};
HaZ.prototype.register=function(g,u){this.registry_.set(g,u);return this};
var cBx=function(g,u){var q=g.getMessageType_(u.data),Q=g.registry_.get(q);Q?(wx5(function(){return g.onBeforeRegisteredMessage_(u,q)}),wx5(function(){return Q(u)}),wx5(function(){return g.onAfterRegisteredMessage_(u,q)})):wx5(function(){return g.onUnregisteredMessage_(u,q)})};var AB2=function(g){this.JSC$9266_channel_=g},lKa,IKi;
AB2.prototype.send=function(g,u,q){this.JSC$9266_channel_.send(Wn(g),u,q)};
_.Zaa=function(g,u){return function(q){var Q=new g(q.data);return u(new ju8(Q,q.channel))}};
lKa=function(g){return function(u){return g(new ju8(u.data,new AB2(u.channel)))}};
IKi=function(g,u){return lKa(_.Zaa(g,u))};var iaa=function(g,u,q,Q){this.registry=g;this.delegate=u;this.receiveMessageConstructor=q;this.createInitMessage=Q;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},px3=function(g){var u=new HaZ({getMessageType:g.getPayloadCase});
return new iaa(u,new AB2(_.x0({iframe:g.child,destination:window,origin:g.origin,channelName:g.channelName,onMessage:IKi(g.receiveMessageConstructor,u.onMessage)})),g.receiveMessageConstructor,g.createInitMessage)},C82=function(g,u){g.createInitMessage=u};
iaa.prototype.send=function(g){if(!this.initialised)throw new Kp("Attempted to send a message before initialisation.");this.delegate.send(g)};
var ba8=function(g,u){return _.D(function(q){if(!g.initialised)throw new Kp("Attempted to send a message before initialisation.");return q.return(new Promise(function(Q){g.delegate.send(u,IKi(g.receiveMessageConstructor,Q))}))})};
iaa.prototype.init=function(){var g=this;return _.D(function(u){if(g.initialised)throw new Kp("Attempted to initialise twice. The SDK can only be initialised once.");if(g.createInitMessage!==void 0){var q=g.delegate,Q=q.send,L=g.createInitMessage;var E=new zeZ;var y=[].concat(_.na(g.features));E=_.Lv(E,1,y,_.vn);Q.call(q,L.call(g,E))}g.initialised=!0;_.Wx(u)})};
var BM=function(g,u){if(g.initialised)throw new Kp('Attempted to set up API "'+u+'" after initialisation. All APIs must be set up before initialising the SDK.');g.features.add(u);return g.registry};
_.z3.Object.defineProperties(iaa.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var dao=function(g){this.channel=g;this.registered=!1};
dao.prototype.update=function(g){if(this.channel.isInitialised){if(!this.registered)throw new Kp("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var u=new d0;var q=new nVa;q=_.OU(q,1,g);u=_.mG(u,2,a3,q);this.channel.send(u)}else this.register();this.JSC$9280_audioEnabled=g};
dao.prototype.register=function(){BM(this.channel,1);this.registered=!0};
dao.prototype.isAudioEnabled=function(){return this.JSC$9280_audioEnabled};var FsW=function(g){this.channel=g};
_.P=FsW.prototype;_.P.onFirstFrameReady=function(g){BM(this.channel,2).register(11,function(u){u=_.t2(u.data,Qu$,11,Oa);if(!u)throw new Kp("Unexpectedly nonexistent GameFirstFrameReadyEvent");g(_.J2(u,1))})};
_.P.onReady=function(g){BM(this.channel,2).register(4,function(u){u=_.t2(u.data,EAR,4,Oa);if(!u)throw new Kp("Unexpectedly nonexistent GameReadyEvent");g(_.J2(u,1))})};
_.P.onLevelComplete=function(g){BM(this.channel,2).register(5,function(u){u=_.t2(u.data,P80,5,Oa);if(!u)throw new Kp("Unexpectedly nonexistent LevelCompleteEvent");g(_.J2(u,1),_.r6(u,2))})};
_.P.onGameOver=function(g){BM(this.channel,2).register(6,function(u){u=_.t2(u.data,LsW,6,Oa);if(!u)throw new Kp("Unexpectedly nonexistent GameOverEvent");g(_.J2(u,1))})};
_.P.pause=function(){var g=this;if(!this.channel.isInitialised)return BM(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Kp("Using unregistered Game Feature: pause.");var u=ur$();return new Promise(function(q){return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(ba8(g.channel,u),2);q();_.Wx(Q)})})};
_.P.resume=function(){var g=this;if(!this.channel.isInitialised)return BM(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Kp("Using unregistered Game Feature: resume.");var u=qPx();return new Promise(function(q){return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(ba8(g.channel,u),2);q();_.Wx(Q)})})};var maX=function(g){this.channel=g};
maX.prototype.onReady=function(g){BM(this.channel,5).register(8,function(u){if(!_.t2(u.data,Ntn,8,Oa))throw new Kp("Unexpectedly nonexistent PageReadyEvent");g()})};var aKX=function(g){this.channel=g};
aKX.prototype.onChange=function(g){BM(this.channel,3).register(7,function(u){u=_.t2(u.data,suR,7,Oa);if(!u)throw new Kp("Unexpectedly nonexistent ScoreEvent");g(_.J2(u,1),_.r6(u,2))})};var Vx2={load:function(){throw new Kp("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Kp("Storage used, but storage.onSave() listener not set!");}},Xxo=function(g){this.channel=g;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},rBa=function(g){BM(g.channel,4).register(2,Vx2.load).register(3,Vx2.save);
g.initialSetupDone=!0};
Xxo.prototype.onLoad=function(g){this.initialSetupDone||rBa(this);this.loadRegistered||(this.loadRegistered=!0,BM(this.channel,4).register(2,function(u){var q,Q,L;return _.D(function(E){if(E.nextAddress==1){q=_.t2(u.data,yB$,2,Oa);if(!q)throw new Kp("Unexpectedly nonexistent StorageLoad");Q=_.J2(q,1);return E.yield(g(Q),2)}L=E.yieldResult;var y=u.reply,v=new d0;var J=new oVi;J=_.EU(J,1,Q);J=_.gN(J,2,_.m8(L,!1));v=_.mG(v,3,a3,J);y.call(u,v);_.Wx(E)})}))};
Xxo.prototype.onSave=function(g){this.initialSetupDone||rBa(this);this.saveRegistered||(this.saveRegistered=!0,BM(this.channel,4).register(3,function(u){var q,Q,L;return _.D(function(E){if(E.nextAddress==1){q=_.t2(u.data,vA$,3,Oa);if(!q)throw new Kp("Unexpectedly nonexistent StorageSave");Q=_.J2(q,1);L=H9R(q.getData());return E.yield(g(Q,L),2)}var y=u.reply,v=new d0;var J=new Uka;J=_.EU(J,1,Q);v=_.mG(v,4,a3,J);y.call(u,v);_.Wx(E)})}))};var Ws8=function(g){this.channel=g};
Ws8.prototype.update=function(g){if(!this.channel.features.has(6))throw new Kp("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var u=new d0,q=new gAx;g=_.FV(q,1,g);u=_.mG(u,6,a3,g);this.channel.send(u)};
Ws8.prototype.register=function(){BM(this.channel,6)};var Ttb=function(g){this.channel=g;this.userActivityLoggingIntervalMs=0};
Ttb.prototype.onUserActivity=function(g,u){this.userActivityLoggingIntervalMs=u;BM(this.channel,7).register(9,function(q){if(!_.t2(q.data,Daa,9,Oa))throw new Kp("Unexpectedly nonexistent ClickEvent");g()})};var hm8=function(g){var u=this;this.channel=g;this.init=this.channel.init.bind(this.channel);this.page=new maX(this.channel);this.game=new FsW(this.channel);this.audio=new dao(this.channel);this.score=new aKX(this.channel);this.storage=new Xxo(this.channel);this.style=new Ws8(this.channel);this.userActivity=new Ttb(this.channel);C82(this.channel,function(q){var Q=new juJ;q=_.FV(Q,1,q);q=_.e$(q,3,u.userActivity.userActivityLoggingIntervalMs);Q=u.audio.isAudioEnabled();Q!==void 0&&_.OU(q,2,Q);Q=new d0;
return _.mG(Q,5,a3,q)})};var YPn=function(){this.timedFunctionContext=0};
YPn.prototype.timeExecution=function(g,u){var q=this;return function(){var Q=_.UT.apply(0,arguments);q.timedFunctionContext=g;return u.apply(null,_.na(Q))}};var Oao=function(){var g={};this.priorityTasks=(g[3]=[],g[2]=[],g[1]=[],g);this.isFlushing=!1},V3=function(g,u,q){var Q=Ks2(g,q);
g.priorityTasks[q].push(u);Q&&g.priorityTasks[q].length===1&&g.flush()},Ks2=function(g,u){return Object.keys(g.priorityTasks).map(function(q){return Number(q)}).filter(function(q){return!isNaN(q)&&q>u}).every(function(q){return g.priorityTasks[q].length===0})};
Oao.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(g){return g.length>0});)xab(this,3),xab(this,2),xab(this,1)}catch(g){throw Object.values(this.priorityTasks).forEach(function(u){return void u.splice(0,u.length)}),g;
}finally{this.isFlushing=!1}}};
var xab=function(g,u){for(;Ks2(g,u)&&g.priorityTasks[u].length>0;)g.priorityTasks[u][0](),g.priorityTasks[u].shift()};
_.z3.Object.defineProperties(Oao.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(g){return g.length>0})}}});var Rmq={};var Btx=globalThis.trustedTypes,MxJ=Btx,emJ;var XV=function(g){this.privateDoNotAccessOrElseWrappedResourceUrl=g};
XV.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var zma,nAZ,kF0,SPn,oAo,UaW,gBa,u42;zma=_.CT([""]);nAZ=iA(["\x00"],["\\0"]);kF0=iA(["\n"],["\\n"]);SPn=iA(["\x00"],["\\u0000"]);oAo=_.CT([""]);UaW=iA(["\x00"],["\\0"]);gBa=iA(["\n"],["\\n"]);u42=iA(["\x00"],["\\u0000"]);_.q72=$aq(function(g){return g(zma)})||$aq(function(g){return g(nAZ)})||$aq(function(g){return g(kF0)})||$aq(function(g){return g(SPn)});
_.QWn=_.Ts(oAo)&&_.Ts(UaW)&&_.Ts(gBa)&&_.Ts(u42);var kV;_.he=function(g,u){this.privateDoNotAccessOrElseWrappedUrl=u};
_.he.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.LeX=Kv("about:blank");kV=Kv("about:invalid#zClosurez");var wxS=function(g){this.isValid=g},EBR=new wxS(function(g){return/^[^:]*([/?#]|$)/.test(g)}),P70=zs("data"),Njo=zs("http"),sW2=zs("https"),y1W=zs("ftp"),vBi=zs("mailto"),DSx=zs("intent"),pqo=zs("vnd.youtube"),cB3=[P70,
Njo,sW2,vBi,y1W,EBR],ABM=VB(function(){return typeof URL==="function"}),J15=["data:",
"http:","https:","mailto:","ftp:"],lKq=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var qa=function(g){this.privateDoNotAccessOrElseWrappedHtml=g};
qa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var vOu=VB(function(){return new qa(Btx?Btx.emptyHTML:"")});var jW8={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"},iaq=function(g,u){var q=Error.call(this,g+" cannot be used with intent "+jW8[u]);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.type=g;this.intent=u;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.A(iaq,Error);_.vx=function(g){this.privateDoNotAccessOrElseWrappedScript=g};
_.vx.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var baJ=function(g){this.privateDoNotAccessOrElseWrappedAttributePrefix=g};
baJ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var daZ="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var ex=function(g){this.privateDoNotAccessOrElseWrappedStyleSheet=g};
ex.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var pYS=function(g){var u=_.ri("window.location.href");g==null&&(g='Unknown Error of type "null/undefined"');if(typeof g==="string")return{message:g,name:"Unknown error",lineNumber:"Not available",fileName:u,stack:"Not available"};var q=!1;try{var Q=g.lineNumber||g.line||"Not available"}catch(y){Q="Not available",q=!0}try{var L=g.fileName||g.filename||g.sourceURL||_.Qq.$googDebugFname||u}catch(y){L="Not available",q=!0}u=fiZ(g);if(!(!q&&g.lineNumber&&g.fileName&&g.stack&&g.message&&g.name)){q=g.message;
if(q==null){if(g.constructor&&g.constructor instanceof Function){if(g.constructor.name)q=g.constructor.name;else if(q=g.constructor,zw[q])q=zw[q];else{q=String(q);if(!zw[q]){var E=/function\s+([^\(]+)/m.exec(q);zw[q]=E?E[1]:"[Anonymous]"}q=zw[q]}q='Unknown Error of type "'+q+'"'}else q="Unknown Error of unknown type";typeof g.toString==="function"&&Object.prototype.toString!==g.toString&&(q+=": "+g.toString())}return{message:q,name:g.name||"UnknownError",lineNumber:Q,fileName:L,stack:u||"Not available"}}return{message:g.message,
name:g.name,lineNumber:g.lineNumber,fileName:g.fileName,stack:u}},fiZ=function(g,u){u||(u={});
u[Mgn(g)]=!0;var q=g.stack||"",Q=g.cause;Q&&!u[Mgn(Q)]&&(q+="\nCaused by: ",Q.stack&&Q.stack.indexOf(Q.toString())==0||(q+=typeof Q==="string"?Q:Q.message+"\n"),q+=fiZ(Q,u));g=g.errors;if(Array.isArray(g)){Q=1;var L;for(L=0;L<g.length&&!(Q>4);L++)u[Mgn(g[L])]||(q+="\nInner error "+Q++ +": ",g[L].stack&&g[L].stack.indexOf(g[L].toString())==0||(q+=typeof g[L]==="string"?g[L]:g[L].message+"\n"),q+=fiZ(g[L],u));L<g.length&&(q+="\n... "+(g.length-L)+" more inner errors")}return q},Mgn=function(g){var u=
"";
typeof g.toString==="function"&&(u=""+g);return u+g.stack},zw={};var tgW,zW,h9,es$,GW2,RsZ,Vx,ww,c1R;tgW=function(g,u){for(var q=g.split("%s"),Q="",L=Array.prototype.slice.call(arguments,1);L.length&&q.length>1;)Q+=q.shift()+L.shift();return Q+q.join("%s")};
_.nO=function(g){return encodeURIComponent(String(g))};
zW=function(g){return decodeURIComponent(g.replace(/\+/g," "))};
h9=function(g){W8a.test(g)&&(g.indexOf("&")!=-1&&(g=g.replace(F8X,"&amp;")),g.indexOf("<")!=-1&&(g=g.replace(mx$,"&lt;")),g.indexOf(">")!=-1&&(g=g.replace(aHX,"&gt;")),g.indexOf('"')!=-1&&(g=g.replace(VXi,"&quot;")),g.indexOf("'")!=-1&&(g=g.replace(X5W,"&#39;")),g.indexOf("\x00")!=-1&&(g=g.replace(rbx,"&#0;")));return g};
_.$SR=function(g){return _.pZ(g,"&")?"document"in _.Qq?es$(g):GW2(g):g};
es$=function(g){var u={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var q=_.Qq.document.createElement("div");return g.replace(RsZ,function(Q,L){var E=u[Q];if(E)return E;L.charAt(0)=="#"&&(L=Number("0"+L.slice(1)),isNaN(L)||(E=String.fromCharCode(L)));E||(_.fa(q,QT(Q+" ")),E=q.firstChild.nodeValue.slice(0,-1));return u[Q]=E})};
GW2=function(g){return g.replace(/&([^;]+);/g,function(u,q){switch(q){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return q.charAt(0)!="#"||(q=Number("0"+q.slice(1)),isNaN(q))?u:String.fromCharCode(q)}})};
RsZ=/&([^;\s<&]+);?/g;_.GPF=function(g){return String(g).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.wqZ=String.prototype.repeat?function(g,u){return g.repeat(u)}:function(g,u){return Array(u+1).join(g)};
_.np=function(g,u){if(!Number.isFinite(g))return String(g);g=String(g);var q=g.indexOf(".");q===-1&&(q=g.length);var Q=g[0]==="-"?"-":"";Q&&(g=g.substring(1));return Q+(0,_.wqZ)("0",Math.max(0,u-q))+g};
Vx=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.WK()).toString(36)};
ww=function(g){for(var u=0,q=0;q<g.length;++q)u=31*u+g.charCodeAt(q)>>>0;return u};
_.oM=function(g){return String(g).replace(/\-([a-z])/g,function(u,q){return q.toUpperCase()})};
_.SZ=function(g){return String(g).replace(/([A-Z])/g,"-$1").toLowerCase()};
c1R=function(g){return g.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(u,q,Q){return q+Q.toUpperCase()})};var HOa=function(){this.names=new Map};
HOa.prototype.getName=function(g){var u=this.names.get(g);if(u)return u;var q;u=(q=g.description)!=null?q:Vx();this.names.set(g,u);return u};var A1H=function(g){var u=Error.call(this,g?g.length+" errors occurred during unsubscription:\n"+g.map(function(q,Q){return Q+1+") "+q.toString()}).join("\n  "):"");
this.message=u.message;"stack"in u&&(this.stack=u.stack);this.errors=g;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.A(A1H,Error);var $A=function(g){this.initialTeardown=g;this.closed=!1;this._teardowns=this._parentage=null};
_.P=$A.prototype;
_.P.unsubscribe=function(){if(!this.closed){this.closed=!0;var g=this._parentage;if(Array.isArray(g))for(var u=_.N(g),q=u.next();!q.done;q=u.next())q.value.remove(this);else g==null||g.remove(this);u=this.initialTeardown;if(GF(u))try{u()}catch(E){var Q=E instanceof A1H?E.errors:[E]}var L=this._teardowns;if(L)for(this._teardowns=null,u=_.N(L),q=u.next();!q.done;q=u.next()){q=q.value;try{GF(q)?q():q.unsubscribe()}catch(E){q=void 0,Q=(q=Q)!=null?q:[],E instanceof A1H?Q=[].concat(_.na(Q),_.na(E.errors)):
Q.push(E)}}if(Q)throw new A1H(Q);}};
_.P.add=function(g){if(g&&g!==this)if(this.closed)GF(g)?g():g.unsubscribe();else{if(g instanceof $A){if(g.closed||g._hasParent(this))return;g._addParent(this)}var u;(this._teardowns=(u=this._teardowns)!=null?u:[]).push(g)}};
_.P._hasParent=function(g){var u=this._parentage;return u===g||Array.isArray(u)&&u.includes(g)};
_.P._addParent=function(g){var u=this._parentage;this._parentage=Array.isArray(u)?(u.push(g),u):u?[u,g]:g};
_.P._removeParent=function(g){var u=this._parentage;u===g?this._parentage=null:Array.isArray(u)&&XxZ(u,g)};
_.P.remove=function(g){var u=this._teardowns;u&&XxZ(u,g);g instanceof $A&&g._removeParent(this)};
var ZOH=new $A;ZOH.closed=!0;$A.JSC$9376_EMPTY=ZOH;var WsJ=function(){setTimeout.apply(null,_.na(_.UT.apply(0,arguments)))};var k0=function(g){$A.call(this);this.JSC$9381_isStopped=!1;this.destination=g instanceof k0?g:new S$(!g||GF(g)?{next:g!=null?g:void 0}:g);rBq(g)&&g.add(this)};
_.A(k0,$A);k0.JSC$9376_EMPTY=$A.JSC$9376_EMPTY;k0.create=function(g,u,q){return new o6(g,u,q)};
_.P=k0.prototype;_.P.next=function(g){this.JSC$9381_isStopped||this._next(g)};
_.P.error=function(g){this.JSC$9381_isStopped||(this.JSC$9381_isStopped=!0,this._error(g))};
_.P.complete=function(){this.JSC$9381_isStopped||(this.JSC$9381_isStopped=!0,this._complete())};
_.P.unsubscribe=function(){this.closed||(this.JSC$9381_isStopped=!0,$A.prototype.unsubscribe.call(this))};
_.P._next=function(g){this.destination.next(g)};
_.P._error=function(g){this.destination.error(g);this.unsubscribe()};
_.P._complete=function(){this.destination.complete();this.unsubscribe()};
var S$=function(g){this.partialObserver=g};
S$.prototype.next=function(g){var u=this.partialObserver;if(u.next)try{u.next(g)}catch(q){cx(q)}};
S$.prototype.error=function(g){var u=this.partialObserver;if(u.error)try{u.error(g)}catch(q){cx(q)}else cx(g)};
S$.prototype.complete=function(){var g=this.partialObserver;if(g.complete)try{g.complete()}catch(u){cx(u)}};
var o6=function(g,u,q){k0.call(this);var Q;GF(g)||!g?Q={next:g!=null?g:void 0,error:u!=null?u:void 0,complete:q!=null?q:void 0}:Q=g;this.destination=new S$(Q)};
_.A(o6,k0);o6.JSC$9376_EMPTY=k0.JSC$9376_EMPTY;o6.create=k0.create;var l8=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ZK=function(g){g&&(this._subscribe=g)};
_.P=ZK.prototype;_.P.lift=function(g){var u=new ZK;u.source=this;u.operator=g;return u};
_.P.subscribe=function(g,u,q){g=g&&g instanceof k0||g&&GF(g.next)&&GF(g.error)&&GF(g.complete)&&rBq(g)?g:new o6(g,u,q);u=this.operator;q=this.source;g.add(u?u.call(g,q):q?this._subscribe(g):this._trySubscribe(g));return g};
_.P._trySubscribe=function(g){try{return this._subscribe(g)}catch(u){g.error(u)}};
_.P.forEach=function(g,u){var q=this;u=hmJ(u);return new u(function(Q,L){var E=q.subscribe(function(y){try{g(y)}catch(v){L(v),E==null||E.unsubscribe()}},L,Q)})};
_.P._subscribe=function(g){var u;return(u=this.source)==null?void 0:u.subscribe(g)};
ZK.prototype[l8]=function(){return this};
ZK.prototype.pipe=function(){var g=_.UT.apply(0,arguments);return g.length?TtT(g)(this):this};
ZK.create=function(g){return new ZK(g)};var li5=function(){var g=Error.call(this,"object unsubscribed");this.message=g.message;"stack"in g&&(this.stack=g.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.A(li5,Error);var b7=function(){this.observers=[];this.hasError=this.JSC$9397_isStopped=this.closed=!1;this.thrownError=null};
_.A(b7,ZK);_.P=b7.prototype;_.P.lift=function(g){var u=new Ua(this,this);u.operator=g;return u};
_.P._throwIfClosed=function(){if(this.closed)throw new li5;};
_.P.next=function(g){this._throwIfClosed();if(!this.JSC$9397_isStopped){var u=this.observers.slice();u=_.N(u);for(var q=u.next();!q.done;q=u.next())q.value.next(g)}};
_.P.error=function(g){this._throwIfClosed();if(!this.JSC$9397_isStopped){this.hasError=this.JSC$9397_isStopped=!0;this.thrownError=g;for(var u=this.observers;u.length;)u.shift().error(g)}};
_.P.complete=function(){this._throwIfClosed();if(!this.JSC$9397_isStopped){this.JSC$9397_isStopped=!0;for(var g=this.observers;g.length;)g.shift().complete()}};
_.P.unsubscribe=function(){this.JSC$9397_isStopped=this.closed=!0;this.observers=null};
_.P._trySubscribe=function(g){this._throwIfClosed();return ZK.prototype._trySubscribe.call(this,g)};
_.P._subscribe=function(g){this._throwIfClosed();this._checkFinalizedStatuses(g);return this._innerSubscribe(g)};
_.P._innerSubscribe=function(g){var u=this,q=this.JSC$9397_isStopped,Q=this.observers;return this.hasError||q?$A.JSC$9376_EMPTY:(Q.push(g),new $A(function(){return XxZ(u.observers,g)}))};
_.P._checkFinalizedStatuses=function(g){var u=this.thrownError,q=this.JSC$9397_isStopped;this.hasError?g.error(u):q&&g.complete()};
b7.create=function(g,u){return new Ua(g,u)};
var Ua=function(g,u){b7.call(this);this.destination=g;this.source=u};
_.A(Ua,b7);Ua.create=b7.create;Ua.prototype.next=function(g){var u,q;(u=this.destination)==null||(q=u.next)==null||q.call(u,g)};
Ua.prototype.error=function(g){var u,q;(u=this.destination)==null||(q=u.error)==null||q.call(u,g)};
Ua.prototype.complete=function(){var g,u;(g=this.destination)==null||(u=g.complete)==null||u.call(g)};
Ua.prototype._subscribe=function(g){var u,q;return(q=(u=this.source)==null?void 0:u.subscribe(g))!=null?q:$A.JSC$9376_EMPTY};var w6=function(g){b7.call(this);this._value=g};
_.A(w6,b7);w6.create=b7.create;w6.prototype._subscribe=function(g){var u=b7.prototype._subscribe.call(this,g);!u.closed&&g.next(this._value);return u};
w6.prototype.getValue=function(){var g=this.thrownError,u=this._value;if(this.hasError)throw g;this._throwIfClosed();return u};
w6.prototype.next=function(g){b7.prototype.next.call(this,this._value=g)};
_.z3.Object.defineProperties(w6.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var u7=new ZK(function(g){return g.complete()});var xaT=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var SPF=function(g){return g&&typeof g.length==="number"&&typeof g!=="function"};var Ii2={now:function(){return(Ii2.delegate||Date).now()},
delegate:void 0};var MS=function(g,u,q){g=g===void 0?Infinity:g;u=u===void 0?Infinity:u;q=q===void 0?Ii2:q;b7.call(this);this.bufferSize=g;this.windowTime=u;this.timestampProvider=q;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=u===Infinity;this.bufferSize=Math.max(1,g);this.windowTime=Math.max(1,u)};
_.A(MS,b7);MS.create=b7.create;MS.prototype.next=function(g){var u=this.buffer,q=this.infiniteTimeWindow,Q=this.timestampProvider,L=this.windowTime;this.JSC$9397_isStopped||(u.push(g),!q&&u.push(Q.now()+L));iOH(this);b7.prototype.next.call(this,g)};
MS.prototype._subscribe=function(g){this._throwIfClosed();iOH(this);for(var u=this._innerSubscribe(g),q=this.infiniteTimeWindow,Q=this.buffer.slice(),L=0;L<Q.length&&!g.closed;L+=q?1:2)g.next(Q[L]);this._checkFinalizedStatuses(g);return u};
var iOH=function(g){var u=g.bufferSize,q=g.timestampProvider,Q=g.buffer;g=g.infiniteTimeWindow;var L=(g?1:2)*u;u<Infinity&&L<Q.length&&Q.splice(0,Q.length-L);if(!g){u=q.now();q=0;for(g=1;g<Q.length&&Q[g]<=u;g+=2)q=g;q&&Q.splice(0,q+1)}};var bOR=function(g,u){u=u===void 0?C7n:u;this.schedulerActionCtor=g;this.now=u};
bOR.prototype.schedule=function(g,u,q){u=u===void 0?0:u;return(new this.schedulerActionCtor(this,g)).schedule(q,u)};
var C7n=Ii2.now;var Y73=function(){var g=Error.call(this,"no elements in sequence");this.message=g.message;"stack"in g&&(this.stack=g.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.A(Y73,Error);var xA=function(g,u,q,Q,L){k0.call(this,g);this.onUnsubscribe=L;u&&(this._next=function(E){try{u(E)}catch(y){this.destination.error(y)}});
q&&(this._error=function(E){try{q(E)}catch(y){this.destination.error(y)}this.unsubscribe()});
Q&&(this._complete=function(){try{Q()}catch(E){this.destination.error(E)}this.unsubscribe()})};
_.A(xA,k0);xA.JSC$9376_EMPTY=k0.JSC$9376_EMPTY;xA.create=k0.create;xA.prototype.unsubscribe=function(){var g;this.closed||(g=this.onUnsubscribe)!=null&&g.call(this);k0.prototype.unsubscribe.call(this)};var jg=function(g,u){this.source=g;this.subjectFactory=u;this._subject=null;this._refCount=0;this._connection=null};
_.A(jg,ZK);jg.create=ZK.create;jg.prototype._subscribe=function(g){return dSo(this).subscribe(g)};
var dSo=function(g){var u=g._subject;if(!u||u.JSC$9397_isStopped)g._subject=g.subjectFactory();return g._subject};
jg.prototype._teardown=function(){this._refCount=0;var g=this._connection;this._subject=this._connection=null;g==null||g.unsubscribe()};
jg.prototype.connect=function(){var g=this,u=this._connection;if(!u){u=this._connection=new $A;var q=dSo(this);u.add(this.source.subscribe(new xA(q,void 0,function(Q){g._teardown();q.error(Q)},function(){g._teardown();
q.complete()},function(){return g._teardown()})));
u.closed&&(this._connection=null,u=$A.JSC$9376_EMPTY)}return u};var y1f=Array.isArray;var DS3=Array.isArray,FeZ=Object,pqZ=FeZ.getPrototypeOf,J1S=FeZ.prototype,jWJ=FeZ.keys;var ou=function(g,u,q){k0.call(this,g);this._next=u;this.shouldComplete=q};
_.A(ou,k0);ou.JSC$9376_EMPTY=k0.JSC$9376_EMPTY;ou.create=k0.create;ou.prototype._complete=function(){this.shouldComplete()?k0.prototype._complete.call(this):this.unsubscribe()};var c1m=["addListener","removeListener"],wqh=["addEventListener","removeEventListener"],A1k=["on","off"];var gX=function(){$A.call(this)};
_.A(gX,$A);gX.JSC$9376_EMPTY=$A.JSC$9376_EMPTY;gX.prototype.schedule=function(){return this};var mSx=function(g,u){return setInterval.apply(null,[g,u].concat(_.na(_.UT.apply(2,arguments))))};var uM=function(g,u){$A.call(this);this.scheduler=g;this.work=u;this.pending=!1};
_.A(uM,gX);uM.JSC$9376_EMPTY=gX.JSC$9376_EMPTY;uM.prototype.schedule=function(g,u){u=u===void 0?0:u;if(this.closed)return this;this.state=g;g=this.id;var q=this.scheduler;g!=null&&(this.id=ain(this,g,u));this.pending=!0;this.delay=u;this.id=this.id||this.requestAsyncId(q,this.id,u);return this};
uM.prototype.requestAsyncId=function(g,u,q){q=q===void 0?0:q;return mSx(g.flush.bind(g,this),q)};
var ain=function(g,u,q){q=q===void 0?0:q;if(q!=null&&g.delay===q&&g.pending===!1)return u;clearInterval(u)};
uM.prototype.execute=function(g,u){if(this.closed)return Error("ia");this.pending=!1;if(g=this._execute(g,u))return g;this.pending===!1&&this.id!=null&&(this.id=ain(this,this.id,null))};
uM.prototype._execute=function(g){var u=!1;try{this.work(g)}catch(Q){u=!0;var q=!!Q&&Q||Error(Q)}if(u)return this.unsubscribe(),q};
uM.prototype.unsubscribe=function(){if(!this.closed){var g=this.id,u=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;XxZ(u,this);g!=null&&(this.id=ain(this,g,null));this.delay=null;gX.prototype.unsubscribe.call(this)}};var Vgx=function(g,u){u=u===void 0?C7n:u;bOR.call(this,g,u);this.actions=[];this.active=!1;this.scheduled=void 0};
_.A(Vgx,bOR);Vgx.prototype.flush=function(g){var u=this.actions;if(this.active)u.push(g);else{var q;this.active=!0;do if(q=g.execute(g.state,g.delay))break;while(g=u.shift());this.active=!1;if(q){for(;g=u.shift();)g.unsubscribe();throw q;}}};var sU=new ZK(Ru);var ZOk=Array.isArray;var qH=function(g,u){uM.call(this,g,u);this.scheduler=g;this.work=u};
_.A(qH,uM);qH.JSC$9376_EMPTY=uM.JSC$9376_EMPTY;qH.prototype.schedule=function(g,u){u=u===void 0?0:u;if(u>0)return uM.prototype.schedule.call(this,g,u);this.delay=u;this.state=g;this.scheduler.flush(this);return this};
qH.prototype.execute=function(g,u){return u>0||this.closed?uM.prototype.execute.call(this,g,u):this._execute(g,u)};
qH.prototype.requestAsyncId=function(g,u,q){q=q===void 0?0:q;return q!=null&&q>0||q==null&&this.delay>0?uM.prototype.requestAsyncId.call(this,g,u,q):g.flush(this)};var Xqi=function(){Vgx.apply(this,arguments)};
_.A(Xqi,Vgx);var NjZ=new Xqi(qH);var r1a=function(){this.performanceMonitor=new YPn;this.queue=new Oao;this.internalSymbol=Symbol();this.debugNames=new HOa};
r1a.prototype.getOnBackgrounded=function(){return sU};
_.z3.Object.defineProperties(r1a.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Qi=function(g,u){u=Error.call(this,u?g+": "+u:String(g));this.message=u.message;"stack"in u&&(this.stack=u.stack);this.code=g;this.__proto__=Qi.prototype;this.name=String(g)};
_.A(Qi,Error);var yu=function(g){Qi.call(this,1E3,'sfr:"'+g+'"');this.measurementStrategyFailureReason=g;this.__proto__=yu.prototype};
_.A(yu,Qi);var DW=function(){Qi.call(this,1003);this.__proto__=DW.prototype};
_.A(DW,Qi);var LN=function(){Qi.call(this,1009);this.__proto__=LN.prototype};
_.A(LN,Qi);var WeH=function(){Qi.call(this,1011);this.__proto__=WeH.prototype};
_.A(WeH,Qi);var TjR=function(){Qi.call(this,1007);this.__proto__=DW.prototype};
_.A(TjR,Qi);var P8=function(g){Qi.call(this,1004,String(g));this.inputObservableIndex=g;this.__proto__=P8.prototype};
_.A(P8,Qi);var ZhZ=function(g){Qi.call(this,1010,g);this.__proto__=l1u.prototype};
_.A(ZhZ,Qi);var l1u=function(g){Qi.call(this,1005,g);this.__proto__=l1u.prototype};
_.A(l1u,Qi);var hs0=function(g){var u=_.UT.apply(1,arguments),q=this;this.orderedFactories=[];this.orderedFactories.push(g);u.forEach(function(Q){q.orderedFactories.push(Q)})};
hs0.prototype.isSupported=function(g){return this.orderedFactories.some(function(u){return u.isSupported(g)})};
hs0.prototype.makeBeacon=function(g,u){for(var q=0;q<this.orderedFactories.length;q++)if(this.orderedFactories[q].isSupported(u))return this.orderedFactories[q].makeBeacon(g,u);throw new LN;};var f6f=Symbol("ja"),Y7x=Symbol("ka"),E7=function(g,u){this.value=g;this.timeline=u},LO=function(g,u){if(u.timeline!==g.timeline)throw new TjR;
return g.value-u.value};
_.P=E7.prototype;_.P.equals=function(g){return LO(this,g)===0};
_.P.maximum=function(g){if(g.timeline!==this.timeline)throw new TjR;return this.value>=g.value?this:g};
_.P.round=function(){return new E7(Math.round(this.value),this.timeline)};
_.P.add=function(g){return new E7(this.value+g,this.timeline)};
_.P.toString=function(){return String(this.value)};var EQ=function(g,u){this.context=g;this.JSC$9503_pinger=u};
EQ.prototype.isSupported=function(g){return this.JSC$9503_pinger.isSupported(g)};
EQ.prototype.makeBeacon=function(g,u){if(!this.isSupported(u))throw new LN;return new PH(this.context,this.JSC$9503_pinger,u!=null?u:void 0,g)};
var PH=function(g,u,q,Q){var L=this;this.JSC$9509_pinger=u;this.properties=q;this.url=Q;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var E;this.method=(E=q==null?void 0:q.beaconMethod)!=null?E:"GET";this.backgroundedSubscription=g.getOnBackgrounded().subscribe(function(){L.sendNow()})};
PH.prototype.deactivate=function(){this.internalIsPending=!1};
PH.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9509_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var g,u;this.JSC$9509_pinger.pingWithHeadersAndBody((g=this.properties)!=null?g:{},this.customHeaders,(u=this.body)!=null?u:"",this.url)}else this.JSC$9509_pinger.ping(this.url);this.internalIsPending=!1}catch(q){}else this.internalIsPending=!1};
PH.prototype.setHeader=function(g,u){this.customHeaders.set(g,u)};
_.z3.Object.defineProperties(PH.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var KeR=function(){for(var g=_.N(_.UT.apply(0,arguments)),u=g.next();!u.done;u=g.next())if(u=u.value,u.available()){this.timeProvider=u;return}this.timeProvider=new OOo};
_.P=KeR.prototype;_.P.available=function(){return this.timeProvider.available()};
_.P.now=function(){return this.timeProvider.now()};
_.P.setTimeout=function(g,u){return this.timeProvider.setTimeout(g,u)};
_.P.clearTimeout=function(g){this.timeProvider.clearTimeout(g)};
_.P.interval=function(g,u){var q=this.intervalObservable(g).subscribe(u);return function(){return void q.unsubscribe()}};
_.P.intervalObservable=function(g){return this.timeProvider.intervalObservable(g)};
_.z3.Object.defineProperties(KeR.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var OOo=function(){this.timeline=Symbol()};
_.P=OOo.prototype;_.P.available=function(){return!1};
_.P.now=function(){return new E7(0,this.timeline)};
_.P.setTimeout=function(){return 0};
_.P.clearTimeout=function(){};
_.P.interval=function(){return function(){}};
_.P.intervalObservable=function(){return sU};var NH=function(g,u){this.intrinsicFunctionNamespace=g;this.performanceMonitor=u};
_.P=NH.prototype;_.P.setTimeout=function(g,u){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,g),u)};
_.P.clearTimeout=function(g){this.intrinsicFunctionNamespace.clearTimeout(g)};
_.P.interval=function(g,u){var q=this.intervalObservable(g).subscribe(u);return function(){return void q.unsubscribe()}};
_.P.intervalObservable=function(g){var u=this;return new ZK(function(q){var Q=0,L=u.intrinsicFunctionNamespace.setInterval(function(){q.next(Q++)},g);
return function(){u.intrinsicFunctionNamespace.clearInterval(L)}})};
_.P.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var xSX=function(g,u){NH.call(this,g,u);this.timeline=Y7x};
_.A(xSX,NH);xSX.prototype.now=function(){return new E7(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
xSX.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&NH.prototype.available.call(this)};var BjX=function(g,u){NH.call(this,g,u);this.timeline=f6f};
_.A(BjX,NH);BjX.prototype.now=function(){return new E7(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
BjX.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&NH.prototype.available.call(this)};var nBR=function(g){this.context=g;if(zsH===void 0)a:{var u,q,Q=(u=g.global)==null?void 0:(q=u.document)==null?void 0:q.createElement("meta");if(Q)try{Q.httpEquiv="origin-trial";Q.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";g.global.document.head.append(Q);zsH=Q;break a}catch(L){}zsH=void 0}},
zsH;
nBR.prototype.isSupported=function(g){return Vg3(this.context)!==void 0&&!(g==null||!g.endOfSession)&&!sQ(this.context)&&!(g==null?0:g.attributionEnabled)&&!(g==null?0:g.customHeaders)&&!(g==null?0:g.customBody)};
nBR.prototype.makeBeacon=function(g,u){if(!this.isSupported(u))throw new LN;return new yi(this.context,g,u)};
var yi=function(g,u,q){this.context=g;this.properties=q;this.JSC$9536_urlWithoutToken=u;var Q;this.beaconMethod=(Q=q==null?void 0:q.beaconMethod)!=null?Q:"GET";g=Vg3(this.context);if(g===void 0)throw Error();this.fetchLater=g;kWH(this,S7$(this))},kWH=function(g,u){g.beaconResult&&g.beaconResult.activated||(g.beaconAbort=new AbortController,g.beaconResult=g.fetchLater(u,{method:g.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:g.beaconAbort.signal,activateAfter:96E4}))},S7$=function(g){g=g.JSC$9536_urlWithoutToken;
return(g.slice(-1)[0]==="&"?g:g+"&")+"flapi=1"};
yi.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
yi.prototype.sendNow=function(){};
yi.prototype.setHeader=function(){};
_.z3.Object.defineProperties(yi.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9536_urlWithoutToken},
set:function(g){this.JSC$9536_urlWithoutToken=g;g=S7$(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);kWH(this,g)}},
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 oBa=function(g){this.context=g};
oBa.prototype.isSupported=function(){return!sQ(this.context)&&!!this.context.global.fetch};
oBa.prototype.ping=function(){var g=this;return qS.apply(null,_.na(_.UT.apply(0,arguments).map(function(u){return i8(g.context.global.fetch(u,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(zF(function(q){return q.status===200}))}))).pipe(OOZ(function(u){return u}),xSK())};
oBa.prototype.pingWithHeadersAndBody=function(g,u,q){for(var Q=_.UT.apply(3,arguments),L=this,E=new Headers,y=_.N(u.entries()),v=y.next();!v.done;v=y.next()){var J=_.N(v.value);v=J.next().value;J=J.next().value;E.set(v,J)}var f,t=(f=g.keepAlive)!=null?f:!1;qS.apply(null,_.na(Q.map(function(e){return i8(L.context.global.fetch(e,Object.assign({},{method:String(g.beaconMethod),cache:"no-cache"},t?{keepalive:!0}:{},{mode:"no-cors",headers:E,body:q}))).pipe(zF(function(G){return G.status===200}))}))).pipe(OOZ(function(e){return e}),
xSK())};var USW,OcM,g$8;_.vH=function(){};
_.am=function(g){return g};
USW=function(g){var u=u||0;return function(){return g.apply(this,Array.prototype.slice.call(arguments,0,u))}};
_.DX=function(g){var u=!1,q;return function(){u||(q=g(),u=!0);return q}};
_.pN=function(g,u){var q=0;return function(Q){_.Qq.clearTimeout(q);var L=arguments;q=_.Qq.setTimeout(function(){g.apply(void 0,L)},u)}};
OcM=function(g,u){var q=0,Q=!1,L=[],E=function(){q=0;Q&&(Q=!1,y())},y=function(){q=_.Qq.setTimeout(E,u);
var v=L;L=[];g.apply(void 0,v)};
return function(v){L=arguments;q?Q=!0:y()}};
g$8=function(g,u){var q=0,Q=function(){q=0};
return function(L){q||(q=_.Qq.setTimeout(Q,u),g.apply(void 0,arguments))}};var Jy=function(g,u,q,Q,L){this.allowedElements=g;this.elementPolicies=u;this.allowedGlobalAttributes=q;this.globalAttributePolicies=Q;this.globallyAllowedAttributePrefixes=L},uo5=function(g,u,q){q=g.elementPolicies.get(q);
return(q==null?0:q.has(u))?q.get(u):g.allowedGlobalAttributes.has(u)?{policyAction:1}:(q=g.globalAttributePolicies.get(u))?q:g.globallyAllowedAttributePrefixes&&[].concat(_.na(g.globallyAllowedAttributePrefixes)).some(function(Q){return u.indexOf(Q)===0})?{policyAction:1}:{policyAction:0}};var qUZ="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(" "),
QG5=[["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}]])]],Lvn="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(" "),
E$n=[["dir",{policyAction:3,conditions:VB(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:VB(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:VB(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:VB(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],P0o=new Jy(new Set(qUZ),new Map(QG5),new Set(Lvn),new Map(E$n)),N60=new Jy(new Set(qUZ.concat(["BUTTON",
"INPUT"])),new Map(QG5),new Set(VB(function(){return Lvn.concat(["class","id","name"])})),new Map(VB(function(){return E$n.concat([["style",
{policyAction:1}]])})));var sGb,yka,DiZ;sGb=function(g,u,q,Q,L){this.JSC$9593_sanitizerTable=g;this.styleElementSanitizer=u;this.styleAttributeSanitizer=q;this.JSC$9593_resourceUrlPolicy=Q;this.JSC$9593_navigationUrlPolicy=L;this.changes=[]};
_.v$W=function(g,u){var q=document.implementation.createHTMLDocument("");g=yka(g,u,q);q=q.body;q.appendChild(g);q=(new XMLSerializer).serializeToString(q);q=q.slice(q.indexOf(">")+1,q.lastIndexOf("</"));return QT(q)};
yka=function(g,u,q){u=LvF(u,q);u=document.createTreeWalker(u,5,function(v){if(v.nodeType===3)v=1;else if(P0Z(v))if(v=E$F(v),v===null)v=2;else{var J=g.JSC$9593_sanitizerTable;v=v!=="FORM"&&(J.allowedElements.has(v)||J.elementPolicies.has(v))?1:2}else v=2;return v});
for(var Q=u.nextNode(),L=q.createDocumentFragment(),E=L;Q!==null;){var y=void 0;if(Q.nodeType===3)g.styleElementSanitizer&&E.nodeName==="STYLE"?(Q=g.styleElementSanitizer(Q.data),y=g.createTextNode(Q)):y=g.createTextNode(Q.data);else if(P0Z(Q))y=DiZ(g,Q,q);else throw Error("$");E.appendChild(y);if(Q=u.firstChild())E=y;else for(;!(Q=u.nextSibling())&&(Q=u.parentNode());)E=E.parentNode}return L};
sGb.prototype.createTextNode=function(g){return document.createTextNode(g)};
DiZ=function(g,u,q){var Q,L=E$F(u);q=q.createElement(L);u=u.attributes;for(var E=_.N(u),y=E.next();!y.done;y=E.next()){var v=y.value;y=v.name;v=v.value;var J=uo5(g.JSC$9593_sanitizerTable,y,L);a:{if(Q=J.conditions){Q=_.N(Q);for(var f=Q.next();!f.done;f=Q.next()){var t=_.N(f.value);f=t.next().value;t=t.next().value;var e=void 0;if((f=(e=u.getNamedItem(f))==null?void 0:e.value)&&!t.has(f)){Q=!1;break a}}}Q=!0}if(Q)switch(J.policyAction){case 1:Hq(q,y,v);break;case 2:throw Error();case 3:Hq(q,y,v.toLowerCase());
break;case 4:g.styleAttributeSanitizer?(v=g.styleAttributeSanitizer(v),Hq(q,y,v)):Hq(q,y,v);break;case 5:g.JSC$9593_resourceUrlPolicy?(J={type:2,attributeName:y,elementName:L},v=QGS(v),(v=g.JSC$9593_resourceUrlPolicy(v,J))&&Hq(q,y,v.toString())):Hq(q,y,v);break;case 6:if(g.JSC$9593_resourceUrlPolicy){J={type:2,attributeName:y,elementName:L};Q=[];v=_.N(v.split(","));for(f=v.next();!f.done;f=v.next())t=_.N(f.value.trim().split(/\s+/,2)),f=t.next().value,t=t.next().value,Q.push({url:f,descriptor:t});
v={parts:[]};Q=_.N(Q);for(f=Q.next();!f.done;f=Q.next())f=f.value,t=QGS(f.url),(t=g.JSC$9593_resourceUrlPolicy(t,J))&&v.parts.push({url:t.toString(),descriptor:f.descriptor});Hq(q,y,N6b(v))}else Hq(q,y,v);break;case 7:J=v;if(g.JSC$9593_navigationUrlPolicy){J={type:2,attributeName:y,elementName:L};v=QGS(v);v=g.JSC$9593_navigationUrlPolicy(v,J);if(v===null)break;J=v.toString()}v=J;J=_.Zaq(v);J=J!==void 0&&J15.indexOf(J.toLowerCase())!==-1?v:"about:invalid#zClosurez";Hq(q,y,J)}}return q};
_.p80=VB(function(){return new sGb(P0o)});
_.JkR=VB(function(){return new sGb(N60)});var jG5=function(){this.calledBuild=!1;this.JSC$9605_sanitizerTable=P0o},fWn=function(){jG5.apply(this,arguments)};
_.A(fWn,jG5);fWn.prototype.build=function(){if(this.calledBuild)throw Error("ma");this.calledBuild=!0;return new sGb(this.JSC$9605_sanitizerTable,void 0,void 0,this.JSC$9605_resourceUrlPolicy,this.JSC$9605_navigationUrlPolicy)};var MpR=/[^#]*/;var nBm={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"},tp2=_.DX(function(){return S7q()}),
G$$=function(){var g=evo("IFRAME"),u={};
_.Tv(tp2(),function(q){g.sandbox&&g.sandbox.supports&&g.sandbox.supports(q)&&(u[q]=!0)});
return u},evo=function(g,u){u=u===void 0?document:u;
return u.createElement(String(g).toLowerCase())};var j0;_.tL=function(g,u,q){return Math.min(Math.max(g,u),q)};
j0=function(g,u,q){return g+q*(u-g)};_.P=_.l7.prototype;_.P.clone=function(){return new _.l7(this.x,this.y)};
_.P.equals=function(g){return g instanceof _.l7&&(this==g?!0:this&&g?this.x==g.x&&this.y==g.y:!1)};
_.P.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.P.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.P.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.P.translate=function(g,u){g instanceof _.l7?(this.x+=g.x,this.y+=g.y):(this.x+=Number(g),typeof u==="number"&&(this.y+=u));return this};
_.P.scale=function(g,u){this.x*=g;this.y*=typeof u==="number"?u:g;return this};_.P=_.IW.prototype;_.P.clone=function(){return new _.IW(this.width,this.height)};
_.P.area=function(){return this.width*this.height};
_.P.aspectRatio=function(){return this.width/this.height};
_.P.isEmpty=function(){return!this.area()};
_.P.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.P.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.P.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.P.scale=function(g,u){this.width*=g;this.height*=typeof u==="number"?u:g;return this};var $iZ;_.pH={};$iZ="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.pH.add=function(g,u,q){if(g!==null&&u in g)throw Error("oa`"+u);g[u]=q};
_.pH.clear=function(g){for(var u in g)delete g[u]};
_.pH.clone=function(g){var u={},q;for(q in g)u[q]=g[q];return u};
_.pH.contains=function(g,u){return p8b(g,u)};
_.pH.containsKey=function(g,u){return g!==null&&u in g};
_.pH.containsValue=p8b;_.pH.create=fWF;_.pH.createImmutableView=function(g){var u=g;Object.isFrozen&&!Object.isFrozen(g)&&(u=Object.create(g),Object.freeze(u));return u};
_.pH.createSet=Mpm;_.pH.equals=function(g,u){for(var q in g)if(!(q in u)||g[q]!==u[q])return!1;for(var Q in u)if(!(Q in g))return!1;return!0};
_.pH.every=function(g,u,q){for(var Q in g)if(!u.call(q,g[Q],Q,g))return!1;return!0};
_.pH.extend=function(g,u){for(var q,Q,L=1;L<arguments.length;L++){Q=arguments[L];for(q in Q)g[q]=Q[q];for(var E=0;E<$iZ.length;E++)q=$iZ[E],Object.prototype.hasOwnProperty.call(Q,q)&&(g[q]=Q[q])}};
_.pH.filter=function(g,u,q){var Q={},L;for(L in g)u.call(q,g[L],L,g)&&(Q[L]=g[L]);return Q};
_.pH.findKey=Jkm;_.pH.findValue=function(g,u,q){return(u=Jkm(g,u,q))&&g[u]};
_.pH.forEach=function(g,u,q){for(var Q in g)u.call(q,g[Q],Q,g)};
_.pH.get=function(g,u,q){return g!==null&&u in g?g[u]:q};
_.pH.getAllPropertyNames=function(g,u,q){if(!g)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return Dih(g);for(var Q={};g&&(g!==Object.prototype||u)&&(g!==Function.prototype||q);){for(var L=Object.getOwnPropertyNames(g),E=0;E<L.length;E++)Q[L[E]]=!0;g=Object.getPrototypeOf(g)}return Dih(Q)};
_.pH.getAnyKey=function(g){for(var u in g)return u};
_.pH.getAnyValue=function(g){for(var u in g)return g[u]};
_.pH.getCount=function(g){var u=0,q;for(q in g)u++;return u};
_.pH.getKeys=Dih;_.pH.getSuperClass=function(g){return(g=Object.getPrototypeOf(g.prototype))&&g.constructor};
_.pH.getValueByKeys=function(g,u){var q=_.xu(u),Q=q?u:arguments;for(q=q?0:1;q<Q.length;q++){if(g==null)return;g=g[Q[q]]}return g};
_.pH.getValues=function(g){var u=[],q=0,Q;for(Q in g)u[q++]=g[Q];return u};
_.pH.isEmpty=function(g){for(var u in g)return!1;return!0};
_.pH.isImmutableView=function(g){return!!Object.isFrozen&&Object.isFrozen(g)};
_.pH.map=function(g,u,q){var Q={},L;for(L in g)Q[L]=u.call(q,g[L],L,g);return Q};
_.pH.remove=function(g,u){var q;(q=u in g)&&delete g[u];return q};
_.pH.set=function(g,u,q){g[u]=q};
_.pH.setIfUndefined=function(g,u,q){return u in g?g[u]:g[u]=q};
_.pH.setWithReturnValueIfNotSet=function(g,u,q){if(u in g)return g[u];q=q();return g[u]=q};
_.pH.some=function(g,u,q){for(var Q in g)if(u.call(q,g[Q],Q,g))return!0;return!1};
_.pH.transpose=function(g){var u={},q;for(q in g)u[g[q]]=q;return u};
_.pH.unsafeClone=jGS;var Cw=function(g,u){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=g===f7h&&u||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=Rv5};
Cw.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var w8R=function(g){return g instanceof Cw&&g.constructor===Cw&&g.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===Rv5?g.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},Rv5={},f7h={};
new Cw(f7h,"");var LH,uv,MH,ck$,ZH2,Akn,jp,IWH,C0Z,iHb,$2,bHb,UHF,X8i,VpR,rk$,Wva,T6H,hva,mYb,YU$,KvZ,xin,OH0,fN;LH=function(g){return g?new fN(_.fH(g)):ion||(ion=new fN)};
_.a9=function(g,u){return typeof u==="string"?g.getElementById(u):u};
uv=function(g,u){return(u||document).getElementsByTagName(String(g))};
_.HH2=function(g){return ck$("yt-formatted-string","paper-input-input",g)};
MH=function(g,u,q,Q){g=Q||g;return(u=u&&u!="*"?String(u).toUpperCase():"")||q?g.querySelectorAll(u+(q?"."+q:"")):g.getElementsByTagName("*")};
ck$=function(g,u,q){var Q=document,L=g&&g!="*"?String(g).toUpperCase():"";return L||u?(q||Q).querySelector(L+(u?"."+u:"")):MH(Q,g,u,q)[0]||null};
ZH2=function(g,u){_.pH.forEach(u,function(q,Q){Q=="style"?g.style.cssText=q:Q=="class"?g.className=q:Q=="for"?g.htmlFor=q:Akn.hasOwnProperty(Q)?g.setAttribute(Akn[Q],q):_.N3(Q,"aria-")||_.N3(Q,"data-")?g.setAttribute(Q,q):g[Q]=q})};
Akn={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"};_.qi=function(g){g=(g||window).document;g=g.compatMode=="CSS1Compat"?g.documentElement:g.body;return new _.IW(g.clientWidth,g.clientHeight)};
_.lWo=function(g){var u=_.ty(g);g=g.defaultView;return new _.l7((g==null?void 0:g.pageXOffset)||u.scrollLeft,(g==null?void 0:g.pageYOffset)||u.scrollTop)};
_.ty=function(g){return g.scrollingElement?g.scrollingElement:_.u6||g.compatMode!="CSS1Compat"?g.body||g.documentElement:g.documentElement};
jp=function(g){return g?g.defaultView:window};
_.e0=function(g,u,q){return IWH(document,arguments)};
IWH=function(g,u){var q=u[1],Q=iHb(g,String(u[0]));q&&(typeof q==="string"?Q.className=q:Array.isArray(q)?Q.className=q.join(" "):ZH2(Q,q));u.length>2&&C0Z(g,Q,u,2);return Q};
C0Z=function(g,u,q,Q){function L(v){v&&u.appendChild(typeof v==="string"?g.createTextNode(v):v)}
for(;Q<q.length;Q++){var E=q[Q];if(!_.xu(E)||_.zM(E)&&E.nodeType>0)L(E);else{a:{if(E&&typeof E.length=="number"){if(_.zM(E)){var y=typeof E.item=="function"||typeof E.item=="string";break a}if(typeof E==="function"){y=typeof E.item=="function";break a}}y=!1}_.Tv(y?_.Ob(E):E,L)}}};
_.oG=function(g){return iHb(document,g)};
iHb=function(g,u){u=String(u);g.contentType==="application/xhtml+xml"&&(u=u.toLowerCase());return g.createElement(u)};
_.G0=function(){return document.createTextNode("\n")};
$2=function(g){if(g.nodeType!=1)return!1;switch(g.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};
bHb=function(g,u){C0Z(_.fH(g),g,arguments,1)};
_.RA=function(g){for(var u;u=g.firstChild;)g.removeChild(u)};
_.wX=function(g,u){u.parentNode&&u.parentNode.insertBefore(g,u)};
_.cH=function(g,u){u.parentNode&&u.parentNode.insertBefore(g,u.nextSibling)};
_.UU=function(g){return g&&g.parentNode?g.parentNode.removeChild(g):null};
_.diX=function(g,u){var q=u.parentNode;q&&q.replaceChild(g,u)};
_.FvZ=function(g){var u,q=g.parentNode;if(q&&q.nodeType!=11)if(g.removeNode)g.removeNode(!1);else{for(;u=g.firstChild;)q.insertBefore(u,g);_.UU(g)}};
_.HH=function(g){return g.children!=void 0?g.children:Array.prototype.filter.call(g.childNodes,function(u){return u.nodeType==1})};
_.aWa=function(g){return g.nextElementSibling!==void 0?g.nextElementSibling:_.miH(g.nextSibling,!0)};
_.miH=function(g,u){for(;g&&g.nodeType!=1;)g=u?g.nextSibling:g.previousSibling;return g};
_.BD=function(g){return _.zM(g)&&g.nodeType==1};
_.a2=function(g,u){if(!g||!u)return!1;if(g.contains&&u.nodeType==1)return g==u||g.contains(u);if(typeof g.compareDocumentPosition!="undefined")return g==u||!!(g.compareDocumentPosition(u)&16);for(;u&&g!=u;)u=u.parentNode;return u==g};
UHF=function(g,u){if(g==u)return 0;if(g.compareDocumentPosition)return g.compareDocumentPosition(u)&2?1:-1;if("sourceIndex"in g||g.parentNode&&"sourceIndex"in g.parentNode){var q=g.nodeType==1,Q=u.nodeType==1;if(q&&Q)return g.sourceIndex-u.sourceIndex;var L=g.parentNode,E=u.parentNode;return L==E?VpR(g,u):!q&&_.a2(L,u)?-1*X8i(g,u):!Q&&_.a2(E,g)?X8i(u,g):(q?g.sourceIndex:L.sourceIndex)-(Q?u.sourceIndex:E.sourceIndex)}Q=_.fH(g);q=Q.createRange();q.selectNode(g);q.collapse(!0);g=Q.createRange();g.selectNode(u);
g.collapse(!0);return q.compareBoundaryPoints(_.Qq.Range.START_TO_END,g)};
X8i=function(g,u){var q=g.parentNode;if(q==u)return-1;for(;u.parentNode!=q;)u=u.parentNode;return VpR(u,g)};
VpR=function(g,u){for(;u=u.previousSibling;)if(u==g)return-1;return 1};
rk$=function(g){var u,q=arguments.length;if(!q)return null;if(q==1)return arguments[0];var Q=[],L=Infinity;for(u=0;u<q;u++){for(var E=[],y=arguments[u];y;)E.unshift(y),y=y.parentNode;Q.push(E);L=Math.min(L,E.length)}E=null;for(u=0;u<L;u++){y=Q[0][u];for(var v=1;v<q;v++)if(y!=Q[v][u])return E;E=y}return E};
_.fH=function(g){return g.nodeType==9?g:g.ownerDocument||g.document};
Wva=function(g){return g.contentDocument||g.contentWindow.document};
_.Ay=function(g,u){if("textContent"in g)g.textContent=u;else if(g.nodeType==3)g.data=String(u);else if(g.firstChild&&g.firstChild.nodeType==3){for(;g.lastChild!=g.firstChild;)g.removeChild(g.lastChild);g.firstChild.data=String(u)}else _.RA(g),g.appendChild(_.fH(g).createTextNode(String(u)))};
T6H={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};hva={IMG:" ",BR:"\n"};mYb=function(g){var u;g.tagName=="A"&&g.hasAttribute("href")||g.tagName=="INPUT"||g.tagName=="TEXTAREA"||g.tagName=="SELECT"||g.tagName=="BUTTON"?u=!g.disabled&&(!g.hasAttribute("tabindex")||YU$(g)):u=g.hasAttribute("tabindex")&&YU$(g);return u};
YU$=function(g){g=g.tabIndex;return typeof g==="number"&&g>=0&&g<32768};
KvZ=function(g){var u=[];OH0(g,u,!0);g=u.join("");g=g.replace(/ \xAD /g," ").replace(/\xAD/g,"");g=g.replace(/\u200B/g,"");g=g.replace(/ +/g," ");g!=" "&&(g=g.replace(/^\s*/,""));return g};
xin=function(g){var u=[];OH0(g,u,!1);return u.join("")};
OH0=function(g,u,q){if(!(g.nodeName in T6H))if(g.nodeType==3)q?u.push(String(g.nodeValue).replace(/(\r\n|\r|\n)/g,"")):u.push(g.nodeValue);else if(g.nodeName in hva)u.push(hva[g.nodeName]);else for(g=g.firstChild;g;)OH0(g,u,q),g=g.nextSibling};
_.B6W=function(g,u,q){if(!u&&!q)return null;var Q=u?String(u).toUpperCase():null;return _.ep(g,function(L){return(!Q||L.nodeName==Q)&&(!q||typeof L.className==="string"&&_.WS(L.className.split(/\s+/),q))},!0)};
_.ep=function(g,u,q){g&&!q&&(g=g.parentNode);for(q=0;g;){if(u(g))return g;g=g.parentNode;q++}return null};
fN=function(g){this.JSC$9633_document_=g||_.Qq.document||document};
_.P=fN.prototype;_.P.getElement=function(g){return _.a9(this.JSC$9633_document_,g)};
_.P.$=fN.prototype.getElement;_.P.getElementsByTagName=function(g,u){return(u||this.JSC$9633_document_).getElementsByTagName(String(g))};
_.P.getElementsByTagNameAndClass=function(g,u,q){return MH(this.JSC$9633_document_,g,u,q)};
_.P.$$=fN.prototype.getElementsByTagNameAndClass;_.P.setProperties=ZH2;_.P.JSC$9635_createDom=function(g,u,q){return IWH(this.JSC$9633_document_,arguments)};
_.P.createElement=function(g){return iHb(this.JSC$9633_document_,g)};
_.P.createTextNode=function(g){return this.JSC$9633_document_.createTextNode(String(g))};
_.P.getWindow=function(){return this.JSC$9633_document_.defaultView};
var Qu=function(g){return _.lWo(g.JSC$9633_document_)};
_.P=fN.prototype;_.P.appendChild=function(g,u){g.appendChild(u)};
_.P.append=bHb;_.P.canHaveChildren=$2;_.P.removeNode=_.UU;_.P.getChildren=_.HH;_.P.contains=_.a2;_.P.isFocusable=mYb;_.P=i7.prototype;_.P.getWidth=function(){return this.right-this.left};
_.P.getHeight=function(){return this.bottom-this.top};
_.P.clone=function(){return new i7(this.top,this.right,this.bottom,this.left)};
_.P.contains=function(g){return this&&g?g instanceof i7?g.left>=this.left&&g.right<=this.right&&g.top>=this.top&&g.bottom<=this.bottom:g.x>=this.left&&g.x<=this.right&&g.y>=this.top&&g.y<=this.bottom:!1};
_.P.expand=function(g,u,q,Q){_.zM(g)?(this.top-=g.top,this.right+=g.right,this.bottom+=g.bottom,this.left-=g.left):(this.top-=g,this.right+=Number(u),this.bottom+=Number(q),this.left-=Number(Q));return this};
_.P.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};
_.P.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};
_.P.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};
_.P.translate=function(g,u){g instanceof _.l7?(this.left+=g.x,this.right+=g.x,this.top+=g.y,this.bottom+=g.y):(this.left+=g,this.right+=g,typeof u==="number"&&(this.top+=u,this.bottom+=u));return this};
_.P.scale=function(g,u){u=typeof u==="number"?u:g;this.left*=g;this.right*=g;this.top*=u;this.bottom*=u;return this};_.P=CO.prototype;_.P.clone=function(){return new CO(this.left,this.top,this.width,this.height)};
_.P.boundingRect=function(g){var u=Math.max(this.left+this.width,g.left+g.width),q=Math.max(this.top+this.height,g.top+g.height);this.left=Math.min(this.left,g.left);this.top=Math.min(this.top,g.top);this.width=u-this.left;this.height=q-this.top};
_.P.contains=function(g){return g instanceof _.l7?g.x>=this.left&&g.x<=this.left+this.width&&g.y>=this.top&&g.y<=this.top+this.height:this.left<=g.left&&this.left+this.width>=g.left+g.width&&this.top<=g.top&&this.top+this.height>=g.top+g.height};
_.P.distance=function(g){var u=g.x<this.left?this.left-g.x:Math.max(g.x-(this.left+this.width),0);g=g.y<this.top?this.top-g.y:Math.max(g.y-(this.top+this.height),0);return Math.sqrt(u*u+g*g)};
_.P.getSize=function(){return new _.IW(this.width,this.height)};
_.P.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};
_.P.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};
_.P.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};
_.P.translate=function(g,u){g instanceof _.l7?(this.left+=g.x,this.top+=g.y):(this.left+=g,typeof u==="number"&&(this.top+=u));return this};
_.P.scale=function(g,u){u=typeof u==="number"?u:g;this.left*=g;this.width*=g;this.top*=u;this.height*=u;return this};var n$n,IA,QYF,lM,Ui0,o$X,gFH,gkF,u_o,Q2b;_.ZX=function(g,u,q){if(typeof u==="string")(u=_.zvi(g,u))&&(g.style[u]=q);else for(var Q in u){q=g;var L=u[Q],E=_.zvi(q,Q);E&&(q.style[E]=L)}};
n$n={};_.zvi=function(g,u){var q=n$n[u];if(!q){var Q=_.oM(u);q=Q;g.style[Q]===void 0&&(Q=(_.u6?"Webkit":_.qM?"Moz":null)+c1R(Q),g.style[Q]!==void 0&&(q=Q));n$n[u]=q}return q};
_.OI=function(g,u){var q=_.fH(g);return q.defaultView&&q.defaultView.getComputedStyle&&(g=q.defaultView.getComputedStyle(g,null))?g[u]||g.getPropertyValue(u)||"":""};
_.mR=function(g,u){return _.OI(g,u)||(g.currentStyle?g.currentStyle[u]:null)||g.style&&g.style[u]};
_.k$2=function(g){return _.mR(g,"position")};
IA=function(g,u,q){if(u instanceof _.l7){var Q=u.x;u=u.y}else Q=u,u=q;g.style.left=lM(Q,!1);g.style.top=lM(u,!1)};
QYF=function(g){try{return g.getBoundingClientRect()}catch(u){return{left:0,top:0,right:0,bottom:0}}};
_.Mi=function(g){var u=_.fH(g),q=new _.l7(0,0);if(g==(u?_.fH(u):document).documentElement)return q;g=QYF(g);u=Qu(LH(u));q.x=g.left+u.x;q.y=g.top+u.y;return q};
_.SUR=function(g,u,q){if(u instanceof _.IW)q=u.height,u=u.width;else if(q==void 0)throw Error("pa");g.style.width=lM(u,!0);g.style.height=lM(q,!0)};
lM=function(g,u){typeof g=="number"&&(g=(u?Math.round(g):g)+"px");return g};
Ui0=function(g){return o$X(g)};
o$X=function(g){var u=gFH;if(_.mR(g,"display")!="none")return u(g);var q=g.style,Q=q.display,L=q.visibility,E=q.position;q.visibility="hidden";q.position="absolute";q.display="inline";g=u(g);q.display=Q;q.position=E;q.visibility=L;return g};
gFH=function(g){var u=g.offsetWidth,q=g.offsetHeight,Q=_.u6&&!u&&!q;return(u===void 0||Q)&&g.getBoundingClientRect?(g=QYF(g),new _.IW(g.right-g.left,g.bottom-g.top)):new _.IW(u,q)};
gkF=function(g){var u=_.Mi(g);g=o$X(g);return new CO(u.x,u.y,g.width,g.height)};
u_o=function(g,u){g=g.style;"opacity"in g?g.opacity=u:"MozOpacity"in g?g.MozOpacity=u:"filter"in g&&(g.filter=u===""?"":"alpha(opacity="+Number(u)*100+")")};
_.TQ=function(g,u){g.style.display=u?"":"none"};
_.qHH=function(g){return"rtl"==_.mR(g,"direction")};
Q2b=function(g){var u=_.OI(g,"marginLeft"),q=_.OI(g,"marginRight"),Q=_.OI(g,"marginTop");g=_.OI(g,"marginBottom");return new i7(parseFloat(Q),parseFloat(q),parseFloat(g),parseFloat(u))};
_.LRi=function(g){var u=_.OI(g,"borderLeftWidth"),q=_.OI(g,"borderRightWidth"),Q=_.OI(g,"borderTopWidth");g=_.OI(g,"borderBottomWidth");return new i7(parseFloat(Q),parseFloat(q),parseFloat(g),parseFloat(u))};var iM=function(g){this.context=g};
iM.prototype.isSupported=function(g){return(g==null?0:g.attributionEnabled)||(g==null?void 0:g.beaconMethod)==="POST"||(g==null?0:g.customHeaders)||(g==null?0:g.customBody)||(g==null?0:g.keepAlive)?!1:!sQ(this.context)};
iM.prototype.ping=function(){var g=this;return YA(_.UT.apply(0,arguments).map(function(u){try{var q=g.context.global,Q=!1;Q=Q===void 0?!1:Q;q.google_image_requests||(q.google_image_requests=[]);var L=evo("IMG",q.document);Q&&(L.attributionSrc="");L.src=u;q.google_image_requests.push(L);return!0}catch(E){return!1}}).every(function(u){return u}))};
iM.prototype.pingWithHeadersAndBody=function(g,u,q){this.ping.apply(this,_.na(_.UT.apply(3,arguments)))};var EF2=function(g){this.context=g};
EF2.prototype.isSupported=function(g){return Pvn&&!sQ(this.context)&&tpM(this.context)!==void 0&&!(g==null?0:g.attributionEnabled)&&(g==null?void 0:g.beaconMethod)!=="POST"&&!(g==null?0:g.customHeaders)&&!(g==null?0:g.customBody)};
EF2.prototype.makeBeacon=function(g,u){if(!this.isSupported(u))throw new LN;return new CN(this.context,g)};
var Pvn=!1,CN=function(g,u){this.context=g;this.JSC$9654_urlWithoutToken=u;g=tpM(this.context);if(g===void 0)throw Error();this.wrappedBeacon=new g(Ncn(this),{})},Ncn=function(g){g=g.JSC$9654_urlWithoutToken;
return(g.slice(-1)[0]==="&"?g:g+"&")+"pbapi=1"};
CN.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
CN.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
CN.prototype.setHeader=function(){};
_.z3.Object.defineProperties(CN.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9654_urlWithoutToken},
set:function(g){this.JSC$9654_urlWithoutToken=g;this.wrappedBeacon.setURL(Ncn(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(g){if(g!=="GET")throw new LN;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var s20=function(g){this.context=g};
s20.prototype.isSupported=function(g){if((g==null?0:g.attributionEnabled)||(g==null?void 0:g.beaconMethod)==="GET"||(g==null?0:g.customHeaders)||(g==null?0:g.customBody)||(g==null?0:g.keepAlive))return!1;var u;return!sQ(this.context)&&((u=this.context.global.navigator)==null?void 0:u.sendBeacon)!==void 0};
s20.prototype.ping=function(){var g=this;return YA(_.UT.apply(0,arguments).map(function(u){var q;return(q=g.context.global.navigator)==null?void 0:q.sendBeacon(u)}).every(function(u){return u}))};
s20.prototype.pingWithHeadersAndBody=function(g,u,q){this.ping.apply(this,_.na(_.UT.apply(3,arguments)))};var X4=function(g){this.value=g},IG=function(g,u){return YA(g.value).pipe(aW(u))},b0=new X4(!1),fYf=new X4(!0);var G$=function(g){this.value=g;this.releasedSubject=new b7};
G$.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.z3.Object.defineProperties(G$.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9667_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var C0h=["FRAME","IMG","IFRAME"],HHM=/^[01](px)?$/,iHT=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},IWk=function(){var g=new iHT;
g.crossDomainLoadedDefault=!0;g.pendingImagesBlockLoad=!0;return g};var y5o=function(g,u){var q=X8u(g);if(q)if(q.onCreativeLoad)q.onCreativeLoad(u);else{var Q=u?[u]:[],L=function(E){for(var y=0;y<Q.length;++y)try{Q[y](1,E)}catch(v){}Q={push:function(v){v(1,E)}}};
q.onCreativeLoad=function(E){Q.push(E)};
q.setAttribute("data-creative-load-listener","");q.addEventListener("creativeLoad",function(E){L(E.detail)});
_.Qq.addEventListener("message",function(E){Vpm(q,L,E)})}};var bM=function(g,u){var q=this;this.global=g;this.parentContext=u;this.JSC$9678_onVisibilityChange=this.document?qS(YA(!0),gj(this.document,"visibilitychange")).pipe(NS(this.parentContext.performanceMonitor,748),zF(function(){return q.getVisibilityState()}),pO()):YA("visible");
this.document?gj(this.document,"DOMContentLoaded").pipe(NS(this.parentContext.performanceMonitor,739),Di(1)):YA(w8m("DOMContentLoaded"))},j4S=function(g){return g.document!==null&&g.document.visibilityState!==void 0};
bM.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
bM.prototype.querySelector=function(g){return this.document?this.document.querySelector(g):null};
bM.prototype.querySelectorAll=function(g){return this.document?_.Ob(this.document.querySelectorAll(g)):[]};
bM.prototype.elementFromPoint=function(g,u){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;g=this.document.elementFromPoint(g,u);return g===null?null:new G$(g)};
var Q4q=function(g,u,q){q=q===void 0?!1:q;if(u.ref===void 0||!g.document)return YA(u).pipe(NS(g.parentContext.performanceMonitor,749));var Q=new MS(1),L=function(){Q.next(u)};
q||y5o(u.ref,L);bHT(u.ref,L);return Q.pipe(NS(g.parentContext.performanceMonitor,749),Di(1))};
_.z3.Object.defineProperties(bM.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return oBq(this.global,"document")?this.global.document||null:null}}});var rkq=_.CT(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Wvq=_.CT(["./reach_worklet.js"]),T6k=_.CT(["./reach_worklet.js"]),vFn=_.CT(["./reach_worklet.html"]),DVx=_.CT(["./reach_worklet.js"]),pD$=_.CT(["./reach_worklet.js"]);_.A1(vFn);_.A1(DVx);_.A1(pD$);var c8={left:0,top:0,width:0,height:0};var xiF=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Q2T=/#|$/,LRu=/[?&]($|#)/;var wD3=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(wD3,_.fv);var RUT=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(RUT,_.fv);var f1J=function(g,u){return _.EU(g,2,u)},$VF=function(g,u){return _.EU(g,3,u)};
RUT.prototype.getModel=function(){return _.J2(this,4)};
var tiJ=function(g,u){return _.EU(g,4,u)},j2S=function(g,u){return _.EU(g,5,u)},GQM=function(g,u){return _.EU(g,9,u)},J5M=function(g,u){return PM(g,10,u)},pDq=function(g,u){return _.OU(g,11,u)},Mi3=function(g,u){return _.EU(g,1,u)},eUK=function(g,u){return _.OU(g,7,u)};var vFF="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var i0=function(g,u,q,Q){g=g===void 0?window:g;u=u===void 0?null:u;q=q===void 0?new YPn:q;Q=Q===void 0?hvq():Q;r1a.call(this);var L=this;this.global=g;this.debugChannel=u;this.performanceMonitor=q;this.onPageHide=Rsh(function(){return gj(L.global,"pagehide")}).pipe(NS(this.performanceMonitor,941));
this.onLoad=Rsh(function(){return gj(L.global,"load")}).pipe(NS(this.performanceMonitor,738),Di(1));
this.onResize=Rsh(function(){return gj(L.global,"resize")}).pipe(NS(this.performanceMonitor,741));
this.onMessage=Rsh(function(){return gj(L.global,"message")}).pipe(NS(this.performanceMonitor,740));
this.document=new bM(this.global,this);this.timeProvider=new KeR(new BjX(this.intrinsicFunctionNamespace,this.performanceMonitor),new xSX(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new hs0(new nBR(this),new EF2(this),new EQ(this,new oBa(this)),new EQ(this,new s20(this)),new EQ(this,new iM(this)))};
_.A(i0,r1a);i0.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(g){return g}};
var sQ=function(g){var u=g.global;return!!g.global.HTMLFencedFrameElement&&!!u.fence&&typeof u.fence.reportEvent==="function"};
_.P=i0.prototype;_.P.reportFencedFrameEvent=function(g){sQ(this)&&this.global.fence.reportEvent(g)};
_.P.getOnBackgrounded=function(){return this.onPageHide.pipe(NS(this.performanceMonitor,942),aW(this.queue),zF(function(){}))};
_.P.postMessage=function(g,u,q){q=q===void 0?[]:q;this.global.postMessage(g,u,q)};
_.P.getWidth=function(){return USf(this.global)?this.global.width:0};
_.P.getHeight=function(){return USf(this.global)?this.global.height:0};
_.P.isMobile=function(){return g$J()||uoS()};
var $$=function(g,u){try{var q=NcF(u,g.global,g.isMobile());return{left:q.left,top:q.top,width:q.getWidth(),height:q.getHeight()}}catch(Q){return c8}};
i0.prototype.validate=function(){var g=this.beaconFactory.isSupported()||sQ(this);return this.global&&this.timeProvider.available()&&g};
var G$q=function(g){return(g=Hhb(g.global))?i8(g):null};
_.z3.Object.defineProperties(i0.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(g){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(g){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!USf(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}}});_.J52=!_.xS&&!_.GMZ();var M8b=function(g){return g};var eIZ=function(g){return g.pipe(Q3(function(u){var q=u.endOfSessionReason;var Q;return((Q=u.viewable)==null?void 0:Q.extrapolateToNow().value)||q!=void 0}),Di(1),y3())};var bhk=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},dVJ=function(g){var u=g.sequenceNumber.toString(10).padStart(2,"0");
u=""+g.startTime+u;g.sequenceNumber<99&&g.sequenceNumber++;return u};var JMu=AB(RW(function(g){return g.endOfSessionReason===void 0}),zF(function(g){return Object.assign({},g,{timestamps:Ni(g)})}),Q3(function(g){var u=g.viewable;
g=g.timestamps;var q;return(q=u==null?void 0:u.extrapolateUsingTimestampMap(g).value)!=null?q:!1}),zF(function(g){var u=g.beaconFactory;
var q=g.timestampedExposureHistory;var Q=g.timeOnScreen;var L=g.binaryContext;g=g.timestamps;if(u===void 0||q===void 0||Q===void 0||L===void 0)return!1;if(Q.extrapolateUsingTimestampMap(g).value.every(function(E){return E>=0}))return!0;
q=q.map(function(E){return E.timestamp+":"+E.value}).join(",");
Q=FR3({bin:L,tos:Q},g);u.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+Q+("&eh="+q)).sendNow();return!0}),RW(function(g){return!g}),y3());var a1K=function(g){return{id:g.pingId,mcvt:g.maxConsecutiveViewTime,p:g.creativePosition,asp:g.adSpeedPosition,tm:g.totalMeasurementTime,tu:g.totalUnviewedTime,mtos:g.maxTimeOnScreen,tos:g.timeOnScreen,v:g.binaryVersion,bin:g.binaryContext,avms:g.measurementStrategy,bs:g.browserSize,mc:g.maximumExposure,"if":g.crossDomainIframeState,vu:g.delayedImpressionJsState,app:g.inApp,mse:g.mraidError,mtop:g.mraidSituation,itpl:g.injectedTemplateId,adk:g.adKey,exk:g.awbidKey,rs:g.requestSource,la:g.isLargeAd,
cr:g.isContentRecommendationAd,uach:g.userAgentClientHints,vs:g.viewState,r:g.reasonCode,pay:g.hasCpmavUrl,co:g.clientPingOrderCounter,rst:g.adRenderStartTime,rpt:g.adRenderPeriodTime,isd:g.initialScrollDepth,lsd:g.loadedScrollDepth,context:g.errorContext,msg:g.errorMessage,stack:g.errorStack,name:g.errorName,ec:g.hasElementChanged,sfr:g.strategyFailureReasons,met:g.creativeSearchResult,wmsd:g.webMeasurementStartDiagnostic,pv:g.pageVisible,epv:g.eosPageVisible,pbe:g.inStatefulBeaconExperiment,fle:g.inFetchLaterBeaconExperiment,
vae:g.inViewableAttributionExperiment,spb:g.supportsPendingBeacon,sfl:g.supportsFetchLater,ffslot:g.isFencedFrameSlotTurtlex,reach:g.sharedStorageReachMode,io2:g.v2VisibilityBitVector,rxdbg:g.rxDebugger,omida:g.omidAppId,omidp:g.omidPartner,omidpv:g.omidPartnerVersion,omidor:g.omidOcclusionReasons,omidv:g.omidVersion,omids:g.omidSessionType,omidam:g.omidAccessMode,omidct:g.omidCreativeType,omidia:g.omidInApp,omiddc:g.omidDeviceCategory,omidlat:g.omidLastActivity,omiddit:g.omidDeviceIdleTime,qid:g.errorEscapedQueryId}};var t8f=function(g){var u=[];return g.pipe(zF(function(q){var Q=q.beaconFactory,L=q.fetchBeaconFactory,E=q.timeOnScreen,y=q.timeOnScreenUrlPrefixes,v=q.payloadMapper,J=q.timeOnScreenPingId,f=q.timeOnScreenReason,t=q.urlSerializer,e=q.viewable,G=q.hasImpressionFired,R=q.inStatefulBeaconExperiment,H=q.supportsPendingBeacon,l=q.supportsFetchLater,d=q.turtlexReportEventData;if(!q.geometryMeasurable||!G||q.maxTimeOnScreen===void 0||E===void 0||y===void 0||v===void 0||J===void 0||t===void 0||Q===void 0)return!1;
if(q.isTurtlex){if(f===void 0)return!1;y=q.reportFencedFrameEvent;if(!y)return!1;y({eventType:"active-view-time-on-screen",eventData:d!=null?d:"",destination:["buyer"]});return!0}if(!(R||l||f))return!1;d=Ni(q);var F;e=(F=e==null?void 0:e.extrapolateUsingTimestampMap(d).value)!=null?F:!1;F=t(Object.assign({},q,{pingId:J,viewState:e?4:3,reasonCode:f!=null?f:"u",payloadMapper:v,urlPrefixes:y}),d);if(R){for(;u.length>y.length;)q=void 0,(q=u.shift())==null||q.deactivate();F.forEach(function(z,O){O>=u.length?
u.push(Q.makeBeacon(z)):u[O].url=z});
return H&&L&&f!==void 0?(F.forEach(function(z){L.makeBeacon(z).sendNow()}),!0):f!==void 0}if(H&&L&&f!==void 0)return F.forEach(function(z){L.makeBeacon(z).sendNow()}),!0;
if(l&&L){for(;u.length>y.length;)H=void 0,(H=u.shift())==null||H.deactivate();var V=t(Object.assign({},q,{pingId:J,viewState:e?4:3,reasonCode:f!=null?f:"u",payloadMapper:v,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),d)[0];F.forEach(function(z,O){O>=u.length?u.push(Q.makeBeacon(V,{endOfSession:!0})):u[O].url=V});
return f!==void 0?(F.forEach(function(z){L.makeBeacon(z).sendNow()}),!0):f!==void 0}return f!==void 0?(F.forEach(function(z){Q.makeBeacon(z).sendNow()}),!0):!1}),RW(function(q){return!q}),y3())};var GvK=AB(Q3(function(g){return g.immediateUrlPrefixes!==void 0&&g.payloadMapper!==void 0&&g.urlSerializer!==void 0&&g.inferredPingId!==void 0&&g.beaconFactory!==void 0}),Q3(function(g){return Ohq(g)!==null}),hU3(function(g){return g.activeViewUnmeasurableEvent},function(g){return g.emit}),zF(function(g){if(g.isTurtlex){var u=g.reportFencedFrameEvent;
if(u){var q;u({eventType:"active-view-unmeasurable",eventData:(q=g.turtlexReportEventData)!=null?q:"",destination:["buyer"]})}}else{q=void 0;var Q=Ohq(g);if(Q==="x"){var L,E=(L=g.geometricMeasurementErrors)!=null?L:g.contextValidationErrors;E&&(u=E.stack,q=E.message)}g.urlSerializer(Object.assign({},g,{urlPrefixes:g.immediateUrlPrefixes,payloadMapper:g.payloadMapper,pingId:g.inferredPingId,viewState:2,reasonCode:Q,errorMessage:q,errorStack:u}),Ni(g)).forEach(function(y){g.beaconFactory.makeBeacon(y).sendNow()})}}),
Di(1),y3());var KRm=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var pkf=AB(Q3(function(g){return g.payloadMapper!==void 0&&g.immediateUrlPrefixes!==void 0&&g.urlSerializer!==void 0&&g.inferredPingId!==void 0&&g.beaconFactory!==void 0}),zF(function(g){return Object.assign({},g,{timestamps:Ni(g)})}),Q3(function(g){var u=g.viewable;
var q=g.hasImpressionFired;g=g.timestamps;var Q;return!!q&&((Q=u==null?void 0:u.extrapolateUsingTimestampMap(g).value)!=null?Q:!1)}),hU3(function(g){return g.activeViewViewableEvent},function(g){return g.emit}),zF(function(g){var u=g.beaconFactory,q=g.turtlexReportEventData;
if(g.isTurtlex){var Q=g.reportFencedFrameEvent;if(!Q)return!1;Q({eventType:"active-view-viewable",eventData:q!=null?q:"",destination:["buyer"]});return!0}q=g.urlSerializer(Object.assign({},g,{urlPrefixes:g.immediateUrlPrefixes,payloadMapper:g.payloadMapper,pingId:g.inferredPingId,viewState:4,reasonCode:"v"}),g.timestamps);(Q=g.cpmavUrls)&&Q.length>0&&g.viewUrlSerializer&&g.viewUrlSerializer(Q,g).forEach(function(L){u.makeBeacon(L).sendNow()});
(Q=g.viewableRelayUrls)&&Q.length>0&&g.viewUrlSerializer&&g.viewUrlSerializer(Q,g).forEach(function(L){u.makeBeacon(L).sendNow()});
q.forEach(function(L){u.makeBeacon(L,{attributionEnabled:g.isViewableAttributionEnabled}).sendNow()});
return!0}),RW(function(g){return!g}),y3());var a6b=zF(function(g){return[g.value.topWindowViewportExternalGeometry.width,g.value.topWindowViewportExternalGeometry.height]});var RG=function(g,u){this.callback=g;this.options=u;this.intersectionObserverV2=this.intersectionObserverV1=null},tRM=function(g,u){u?g.intersectionObserverV2||(u=Object.assign({},g.options,{delay:100,
trackVisibility:!0}),g.intersectionObserverV2=new IntersectionObserver(g.callback,u)):g.intersectionObserverV1||(g.intersectionObserverV1=new IntersectionObserver(g.callback,g.options))},j25=function(g,u){g=u?g.intersectionObserverV2:g.intersectionObserverV1;
if(!g)throw new WeH;return g};
RG.prototype.observe=function(g,u){j25(this,g).observe(u)};
RG.prototype.unobserve=function(g,u){j25(this,g).unobserve(u)};
RG.prototype.disconnect=function(g){j25(this,g).disconnect()};
RG.prototype.takeRecords=function(g){return j25(this,g).takeRecords()};var EGm={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:c8,topWindowViewportExternalGeometry:c8,measurementRequests:new b7,elementGeometrySourceName:"ns",elementGeometry:c8,intersectionGeometry:c8,viewportLocalAppOffset:{x:0,y:0}};var H2q=H8(AB(zF(function(g){var u;return(u=g.exposureOverride)!=null?u:G9b(g)}),zF(function(g){return isFinite(g)?g:0}))),b2T=H8(AB(zF(function(g){var u;
return(u=g.exposureOverride)!=null?u:G9b(g)}),zF(function(g){return isFinite(g)?g:-1})));var dX=function(g,u){this.a=g;this.b=u;if(g.clock.timeline!==u.clock.timeline)throw Error();};
dX.prototype.equivalentTo=function(g){return g instanceof dX?this.a.equivalentTo(g.a)&&this.b.equivalentTo(g.b):!1};
dX.prototype.extrapolateToTime=function(g){var u=this.a.extrapolateToTime(g).value,q=this.b.extrapolateToTime(g).value;return{timestamp:g,value:[u,q]}};
_.z3.Object.defineProperties(dX.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 g=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),u=this.a.lastMeasurement.timestamp.equals(g)?this.a.lastMeasurement.value:this.a.extrapolateToTime(g).value,q=this.b.lastMeasurement.timestamp.equals(g)?this.b.lastMeasurement.value:this.b.extrapolateToTime(g).value;return{timestamp:g,value:[u,q]}}}});var FA=function(g,u){this.input=g;this.mapFunction=u;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
FA.prototype.equivalentTo=function(g){return g instanceof FA?this.input.equivalentTo(g.input)&&this.mapFunction===g.mapFunction:!1};
FA.prototype.extrapolateToTime=function(g){g=this.input.extrapolateToTime(g);return{timestamp:g.timestamp,value:this.mapFunction(g.value)}};
_.z3.Object.defineProperties(FA.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var mb=function(){};
mb.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
mb.prototype.extrapolateUsingTimestampMap=function(g){var u=this.clock.timeline,q,Q=(q=g.get(u))!=null?q:this.clock.now();g.set(u,Q);return this.extrapolateToTime(Q)};
mb.prototype.map=function(g){return new f18(this,g)};
mb.prototype.joinWith=function(g){return new Mix(this,g)};
var Mix=function(){dX.apply(this,arguments);this.map=mb.prototype.map;this.joinWith=mb.prototype.joinWith;this.extrapolateToNow=mb.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=mb.prototype.extrapolateUsingTimestampMap};
_.A(Mix,dX);var f18=function(){FA.apply(this,arguments);this.map=mb.prototype.map;this.joinWith=mb.prototype.joinWith;this.extrapolateToNow=mb.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=mb.prototype.extrapolateUsingTimestampMap};
_.A(f18,FA);var ZW=function(g,u){this.lastMeasurement=u;this.extrapolateToNow=mb.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=mb.prototype.extrapolateUsingTimestampMap;this.map=mb.prototype.map;this.joinWith=mb.prototype.joinWith;this.clock=g};
ZW.prototype.equivalentTo=function(g){return g.active};
ZW.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.z3.Object.defineProperties(ZW.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var mQJ=zF(function(g){if(g.value.viewportGeometrySourceName==="omid"){if(g.value.elementGeometrySourceName==="nio")return"omio";if(g.value.elementGeometrySourceName==="geo")return"omgeo"}return g.value.elementGeometrySourceName==="geo"||g.value.elementGeometrySourceName==="nio"?g.value.viewportGeometrySourceName:g.value.elementGeometrySourceName});var RLZ=AB(Q3(function(g){return!isNaN(g)}),eg(function(g,u){return isNaN(g)?u:Math.min(g,u)},NaN),pO());var AfJ=H8(AB(zF(function(g){return g.intersectionGeometry.width*g.intersectionGeometry.height/(g.exposedViewportLocalGeometry.width*g.exposedViewportLocalGeometry.height)}),zF(function(g){return isFinite(g)?Math.min(1,g):0})));var FVK=AB(H8(zF(function(g){g=g.exposureOverride?g.elementGeometry.width*g.elementGeometry.height*g.exposureOverride/(g.topWindowViewportExternalGeometry.width*g.topWindowViewportExternalGeometry.height):g.intersectionGeometry.width*g.intersectionGeometry.height/(g.topWindowViewportExternalGeometry.width*g.topWindowViewportExternalGeometry.height);return isFinite(g)?g:0})));var rfh=function(g,u){var q=this;this.timeProvider=g;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=u.pipe(pO()).subscribe(function(Q){TBh(q);q.measurementRequestObserver=Q})},hLS=function(g,u){TBh(g);
g.lastMeasurementRequest=g.timeProvider.setTimeout(function(){var q;return void((q=g.measurementRequestObserver)==null?void 0:q.next())},u)},TBh=function(g){g.lastMeasurementRequest!==null&&g.timeProvider.clearTimeout(g.lastMeasurementRequest);
g.lastMeasurementRequest=null};
rfh.prototype.dispose=function(){TBh(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var ti8=function(){};var yMJ=function(g,u){this.context=g;this.strategies=u};
_.A(yMJ,ti8);yMJ.prototype.buildGeometrySource=function(g,u){var q=this.strategies.map(function(E){return E.buildGeometrySource(g,u)}),Q=BBZ(q.map(function(E){return E.geometrySource})),L=Q.capturedErrors.pipe(eUX());
return{geometrySource:Q.chain.pipe(aW(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:L,strategyErrors:Q.capturedErrors}].concat(_.na(q.map(function(E){return E.additionalOutputs}))))}};
var eUX=function(){return eg(function(g,u){u instanceof yu?g.push(u.measurementStrategyFailureReason):g.push(-1);return g},[])};var Dqm=function(g,u){this.context=g;this.poller=u};
_.A(Dqm,ti8);Dqm.prototype.buildGeometrySource=function(g,u){var q=zLS(k9T(this.context,this.poller),PXb(this.context,u.requestSource));return{geometrySource:xQb(g.measurableCreative.pipe(q),u.inApp),additionalOutputs:{}}};var vvT=function(g,u,q){q=q===void 0?pLq(g,u):q;this.context=g;this.intersectionObserverStrategy=q};
_.A(vvT,ti8);vvT.prototype.buildGeometrySource=function(g,u){var q=this.intersectionObserverStrategy(u.useV2);return{geometrySource:xQb(g.measurableCreative.pipe(q,JfM(this.context)),u.inApp),additionalOutputs:{}}};var GQ2=function(g,u,q){var Q=Q===void 0?Symbol():Q;this.element=g;this.immediateUrls=u;this.timeOnScreenUrls=q;this.symbol=Q};var XLJ=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),uRq=Object.freeze([1,.75,XLJ.exposureThreshold,XLJ.largeAdExposureThreshold,0]);var Blk=function(g,u){u=u===void 0?36E5:u;var q=q===void 0?!0:q;this.creatives=new b7;this.elementsToUnregister=new b7;this.elementMap=new Map;var Q=new i0(window,null);Q.beaconFactory=new EQ(Q,new iM(Q));s4Z(Q,this.creatives,this.elementsToUnregister,g,u,q).subscribe()},kqF=function(g,u,q,Q){if(!g.elementMap.has(u)){var L=new G$(u);
g.elementMap.set(u,L);g.creatives.next(new GQ2(L,q,Q))}},ngf=function(g,u){g.elementsToUnregister.next(u);
var q=g.elementMap.get(u);q!==void 0&&(q.release(),g.elementMap.delete(u))};var vHM=function(g){var u=g.url;g=g.uaDataValues;this.JSC$9783_url_=u;this.uaDataValues_=g;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var q=/[?&]([^&=]+)=([^&]*)/g;g=q.exec(u);)this.urlParamValues_[g[1]]=g[2]},DYq=function(g){g=g.uaDataValues_;
if(!g)return"";var u=d6("uap",g.platform)+d6("uapv",g.platformVersion)+d6("uafv",g.uaFullVersion)+d6("uaa",g.architecture)+d6("uam",g.model)+d6("uab",g.bitness);g.fullVersionList&&(u+="&uafvl="+encodeURIComponent(g.fullVersionList.map(function(q){return encodeURIComponent(q.brand)+";"+encodeURIComponent(q.version)}).join("|")));
g.wow64!=null&&(u+="&uaw="+Number(g.wow64));return u.slice(1)};var $Vn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A($Vn,_.fv);$Vn.prototype.getId=function(){return _.J2(this,1)};var aA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(aA,_.fv);aA.prototype.getSeconds=function(){return DP(this,1)};
aA.prototype.setSeconds=function(g){return _.PT(this,1,RH(g),"0")};_.jV=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(_.jV,_.fv);_.jV.prototype.getSeconds=function(){return DP(this,1)};
_.jV.prototype.setSeconds=function(g){return _.PT(this,1,RH(g),"0")};
_.RUb=function(g){var u=Number(fp(g,1));g=_.r6(g,2);return new Date(u*1E3+g/1E6)};var Vi=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Vi,_.fv);Vi.prototype.getUrl=function(){return _.J2(this,1)};
Vi.prototype.setUrl=function(g){return _.I1(this,1,g)};
Vi.prototype.getHeight=function(){return _.r6(this,2)};
Vi.prototype.getWidth=function(){return _.r6(this,3)};var XA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(XA,_.fv);XA.prototype.getAspectRatio=function(){return pp(this,1)};
XA.prototype.getDuration=function(){return _.o0(this,aA,2)};var wDx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(wDx,_.fv);var c55=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(c55,_.fv);var Hh0=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Hh0,_.fv);var A5Z=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(A5Z,_.fv);var Zho=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Zho,_.fv);var l1i=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(l1i,_.fv);var I1b=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(I1b,_.fv);var ihR=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(ihR,_.fv);var CvZ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(CvZ,_.fv);var rX=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(rX,_.fv);var WH=[2,4,5,6,7];var bhH=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(bhH,_.fv);var N$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(N$,_.fv);_.P=N$.prototype;_.P.getId=function(){return _.o0(this,$Vn,1)};
_.P.getName=function(){return _.J2(this,2)};
_.P.setDescription=function(g){return _.I1(this,3,g)};
_.P.getUrl=function(){return _.J2(this,8)};
_.P.setUrl=function(g){return _.I1(this,8,g)};
var T0=function(g){return _.Vu(g,Vi,10,_.Xo())};
N$.prototype.getOwner=function(g){return _.O9$(this,40,g)};
var hy=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(hy,_.fv);_.Y2=[0,i$,FGZ];_.OQ=[0,i$,FGZ];var dV8=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(dV8,_.fv);var KN=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(KN,_.fv);KN.prototype.getStatus=function(){return _.j$(this,1)};
KN.prototype.removeItem=function(g){return Wz2(this,2,g)};var FRx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(FRx,_.fv);FRx.prototype.getName=function(){return _.J2(this,8)};var x2=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(x2,_.fv);x2.prototype.getCommand=function(){return _.j$(this,1)};
x2.prototype.getSource=function(){return _.o0(this,FRx,2)};
x2.prototype.setVisible=function(g){return _.vX(this,5,g)};
x2.prototype.removeItem=function(g){return Wz2(this,7,g)};var mV8=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(mV8,_.fv);mV8.prototype.getCommand=function(){return _.j$(this,1)};
mV8.prototype.removeItem=function(g){return Wz2(this,4,g)};
var a1X=_.bO(mV8);var BH=function(g,u,q){q=q===void 0?Error():q;var Q=Error.call(this);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=g;u+=":";q instanceof Error?(this.message=u+q.message,this.stack=q.stack||""):(this.message=u+String(q),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(BH,Error);_.Lh=function(){this.JSC$9841_disposed_=this.JSC$9841_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Lh.prototype.JSC$9841_disposed_=!1;_.Lh.prototype.isDisposed=function(){return this.JSC$9841_disposed_};
_.Lh.prototype.dispose=function(){this.JSC$9841_disposed_||(this.JSC$9841_disposed_=!0,this.disposeInternal())};
_.Lh.prototype[Symbol.dispose]=function(){this.dispose()};
_.z$=function(g,u){g.addOnDisposeCallback(_.uH(_.Fo,u))};
_.Lh.prototype.addOnDisposeCallback=function(g,u){this.JSC$9841_disposed_?u!==void 0?g.call(u):g():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),u&&(g=g.bind(u)),this.onDisposeCallbacks_.push(g))};
_.Lh.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var z0=function(g){_.Lh.call(this);this.wpc=g};
_.A(z0,_.Lh);z0.prototype.pD7=function(){return this.wpc.f()};
z0.prototype.tRA=function(g){return this.wpc.c(g)};
z0.prototype.uk=function(g){return this.wpc.m(HSm(g))};
z0.prototype.rYn=function(g){return this.wpc.mws(HSm(g))};
var aG=function(g){_.Lh.call(this);var u=this;this.vm=g;this.zg1="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.ace=void 0;this.exH=this.vm.p;this.ml4=this.wfI.bind(this);this.addOnDisposeCallback(function(){return void Vi2(u)})};
_.A(aG,_.Lh);var XDx=function(g){var u;return _.D(function(q){if(q.nextAddress==1){if(!g.vm.wpc)throw new BH(30,"NWA");return g.fEd?q.return(g.fEd):q.yield(g.vm.wpc(),2)}u=q.yieldResult;g.fEd=new z0(u);return q.return(g.fEd)})};
aG.prototype.snapshot=function(g){return this.vm.s(Object.assign({},g.rI&&{c:g.rI},g.plB&&{s:g.plB},g.dmp!==void 0&&{p:g.dmp}))};
aG.prototype.wfI=function(g){this.vm.e(g)};
aG.prototype.eaB=function(g,u){return this.vm.c(g,u,!1)};
var Vi2=function(g){g.ace!==void 0&&(g.zg1.forEach(function(u){var q;(q=g.ace)==null||q.removeEventListener(u,g.ml4)}),g.ace=void 0)};
aG.prototype.ayz=function(){return this.vm.l()};var nN=function(){_.Lh.apply(this,arguments);this.fd5=1};
_.A(nN,_.Lh);nN.prototype.share=function(){if(this.isDisposed())throw Error("qa");this.fd5++;return this};
nN.prototype.dispose=function(){--this.fd5||_.Lh.prototype.dispose.call(this)};var r5Z=function(g){this.lUq=g;g.addNewEventMetric("/client_streamz/bg/frs",_.hk("mk"))};
r5Z.prototype.record=function(g,u){this.lUq.record("/client_streamz/bg/frs",g,u)};
var WRZ=function(g){this.eAs=g;g.addNewEventMetric("/client_streamz/bg/wrl",_.hk("mn"),T$("ac"),T$("sc"),_.hk("rk"),_.hk("mk"))};
WRZ.prototype.record=function(g,u,q,Q,L,E){this.eAs.record("/client_streamz/bg/wrl",g,u,q,Q,L,E)};
var Tcb=function(g){this.kCw=g;g.addNewCounter("/client_streamz/bg/ec",_.hk("en"),_.hk("mk"))};
Tcb.prototype.increment=function(g,u){this.kCw.JSC$10094_incrementCounter("/client_streamz/bg/ec",g,u)};
var hUx=function(g){this.jY1=g;g.addNewEventMetric("/client_streamz/bg/el",_.hk("en"),_.hk("mk"))};
hUx.prototype.record=function(g,u,q){this.jY1.record("/client_streamz/bg/el",g,u,q)};
var YHx=function(g){this.iLw=g;g.addNewCounter("/client_streamz/bg/cec",T$("ec"),_.hk("mk"))};
YHx.prototype.increment=function(g,u){this.iLw.JSC$10094_incrementCounter("/client_streamz/bg/cec",g,u)};
var Oha=function(g){this.wd1=g;g.addNewCounter("/client_streamz/bg/po/csc",T$("cs"),_.hk("mk"))};
Oha.prototype.increment=function(g,u){this.wd1.JSC$10094_incrementCounter("/client_streamz/bg/po/csc",g,u)};
var KRR=function(g){this.gMw=g;g.addNewCounter("/client_streamz/bg/po/ctav",_.hk("av"),_.hk("mk"))};
KRR.prototype.increment=function(g,u){this.gMw.JSC$10094_incrementCounter("/client_streamz/bg/po/ctav",g,u)};
var xVb=function(g){this.oMx=g;g.addNewCounter("/client_streamz/bg/po/cwsc",_.hk("su"),_.hk("mk"))};
xVb.prototype.increment=function(g,u){this.oMx.JSC$10094_incrementCounter("/client_streamz/bg/po/cwsc",g,u)};var uxm=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(uxm,_.fv);var gQb=function(g,u){return _.Lv(g,3,u,CZf)};var BcH=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(BcH,_.fv);var zUW=[1,2,3];var nF8=[0,zUW,_.VE,mkW,XTi];var kQ0=[0,_.XE,[0,l$,_.I6]];var SHx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(SHx,_.fv);var oF5=[1,2,3];var UVR=[0,oF5,bv$,ZvW,_.rm,kQ0];var gGa=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(gGa,_.fv);var uPa=[0,_.XE,nF8,UVR];var q9H=[0,_.mE];var QYn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(QYn,_.fv);var LVW=[0,_.mE,-1,_.dm];var EGR=[0,_.mE,-1,_.b$,_.dm];var PX0=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(PX0,_.fv);var NBW=[1,2,3];var sYX=[0,NBW,_.rm,LVW,_.rm,EGR,_.rm,q9H];var yfo=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(yfo,_.fv);yfo.prototype.JSC$9914_serializeBinary=yBq([0,_.mE,sYX,re8,_.XE,uPa,aOH,_.VOa]);var vGX=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(vGX,_.fv);var Jf2=function(g){var u=new yfo;u=_.EU(u,1,g.JSC$10030_metricName);var q=DQn(g);u=_.Lv(u,3,q,_.Zb);q=[];for(var Q=[],L=_.N(g.cellMap.keys()),E=L.next();!E.done;E=L.next())Q.push(E.value.split(","));for(L=0;L<Q.length;L++){E=Q[L];for(var y=g.cellType,v=g.getCells(E)||[],J=[],f=0;f<v.length;f++){var t=v[f],e=t&&t.cellValue;t=new SHx;switch(y){case 3:e=Number(e);Number.isFinite(e)&&P6(t,1,oF5,RH(e));break;case 2:P6(t,2,oF5,_.Qp(Number(e)))}J.push(t)}y=J;for(v=0;v<y.length;v++){J=y[v];f=new gGa;J=_.FV(f,
2,J);f=[];t=pL$(g);for(e=0;e<t.length;e++){var G=t[e],R=E[e],H=new BcH;switch(G){case 3:P6(H,1,zUW,IH(String(R)));break;case 2:G=Number(R);Number.isFinite(G)&&P6(H,2,zUW,_.p9(G));break;case 1:P6(H,3,zUW,lHf(R==="true"))}f.push(H)}PM(J,1,f);q.push(J)}}PM(u,4,q);return u};var jYH=function(g){if(!g)return"";if(/^about:(?:blank|srcdoc)$/.test(g))return window.origin||"";g.indexOf("blob:")===0&&(g=g.substring(5));g=g.split("#")[0].split("?")[0];g=g.toLowerCase();g.indexOf("//")==0&&(g=window.location.protocol+g);/^[\w\-]*:\/\//.test(g)||(g=window.location.href);var u=g.substring(g.indexOf("://")+3),q=u.indexOf("/");q!=-1&&(u=u.substring(0,q));q=g.substring(0,g.indexOf("://"));if(!q)throw Error("ra`"+g);if(q!=="http"&&q!=="https"&&q!=="chrome-extension"&&q!=="moz-extension"&&
q!=="file"&&q!=="android-app"&&q!=="chrome-search"&&q!=="chrome-untrusted"&&q!=="chrome"&&q!=="app"&&q!=="devtools")throw Error("sa`"+q);g="";var Q=u.indexOf(":");if(Q!=-1){var L=u.substring(Q+1);u=u.substring(0,Q);if(q==="http"&&L!=="80"||q==="https"&&L!=="443")g=":"+L}return q+"://"+u+g};var MRo=function(g,u,q){var Q=String(_.Qq.location.href);return Q&&g&&u?[u,f6W(jYH(Q),g,q||null)].join(" "):null},f6W=function(g,u,q){var Q=[],L=[];
if((Array.isArray(q)?2:1)==1)return L=[u,g],_.Tv(Q,function(v){L.push(v)}),tR2(L.join(" "));
var E=[],y=[];_.Tv(q,function(v){y.push(v.key);E.push(v.value)});
q=Math.floor((new Date).getTime()/1E3);L=E.length==0?[q,u,g]:[E.join(":"),q,u,g];_.Tv(Q,function(v){L.push(v)});
g=tR2(L.join(" "));g=[q,g];y.length==0||g.push(y.join(""));return g.join("_")},tR2=function(g){var u=dqZ();
u.update(g);return u.digestString().toLowerCase()};var eLW;_.P=Y$.prototype;_.P.isEnabled=function(){if(!_.Qq.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};
_.P.set=function(g,u,q){var Q=!1;if(typeof q==="object"){var L=q.sameSite;Q=q.secure||!1;var E=q.domain||void 0;var y=q.path||void 0;var v=q.maxAge}if(/[;=\s]/.test(g))throw Error("ta`"+g);if(/[;\r\n]/.test(u))throw Error("ua`"+u);v===void 0&&(v=-1);q=E?";domain="+E:"";y=y?";path="+y:"";Q=Q?";secure":"";v=v<0?"":v==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+v*1E3)).toUTCString();this.JSC$9925_document_.cookie=g+"="+u+q+y+v+Q+(L!=null?";samesite="+L:"")};
_.P.get=function(g,u){for(var q=g+"=",Q=(this.JSC$9925_document_.cookie||"").split(";"),L=0,E;L<Q.length;L++){E=jK(Q[L]);if(E.lastIndexOf(q,0)==0)return E.slice(q.length);if(E==g)return""}return u};
_.P.remove=function(g,u,q){var Q=this.containsKey(g);this.set(g,"",{maxAge:0,path:u,domain:q});return Q};
_.P.getKeys=function(){return eLW(this).keys};
_.P.getValues=function(){return eLW(this).values};
_.P.isEmpty=function(){return!this.JSC$9925_document_.cookie};
_.P.getCount=function(){return this.JSC$9925_document_.cookie?(this.JSC$9925_document_.cookie||"").split(";").length:0};
_.P.containsKey=function(g){return this.get(g)!==void 0};
_.P.containsValue=function(g){for(var u=eLW(this).values,q=0;q<u.length;q++)if(u[q]==g)return!0;return!1};
_.P.clear=function(){for(var g=eLW(this).keys,u=g.length-1;u>=0;u--)this.remove(g[u])};
eLW=function(g){g=(g.JSC$9925_document_.cookie||"").split(";");for(var u=[],q=[],Q,L,E=0;E<g.length;E++)L=jK(g[E]),Q=L.indexOf("="),Q==-1?(u.push(""),q.push(L)):(u.push(L.substring(0,Q)),q.push(L.substring(Q+1)));return{keys:u,values:q}};
_.sk=new Y$(typeof document=="undefined"?null:document);var m4S,G90;m4S=function(){var g=_.Qq.__SAPISID||_.Qq.__APISID||_.Qq.__3PSAPISID||_.Qq.__1PSAPISID||_.Qq.__OVERRIDE_SID;if(g)return!0;typeof document!=="undefined"&&(g=new Y$(document),g=g.get("SAPISID")||g.get("APISID")||g.get("__Secure-3PAPISID")||g.get("__Secure-1PAPISID"));return!!g};
G90=function(g,u,q,Q){(g=_.Qq[g])||typeof document==="undefined"||(g=(new Y$(document)).get(u));return g?MRo(g,q,Q):null};
_.WXf=function(g){var u=jYH(_.Qq==null?void 0:_.Qq.location.href),q=[];if(m4S()){u=u.indexOf("https:")==0||u.indexOf("chrome-extension:")==0||u.indexOf("chrome-untrusted://new-tab-page")==0||u.indexOf("moz-extension:")==0;var Q=u?_.Qq.__SAPISID:_.Qq.__APISID;Q||typeof document==="undefined"||(Q=new Y$(document),Q=Q.get(u?"SAPISID":"APISID")||Q.get("__Secure-3PAPISID"));(Q=Q?MRo(Q,u?"SAPISIDHASH":"APISIDHASH",g):null)&&q.push(Q);u&&((u=G90("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",g))&&q.push(u),
(g=G90("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",g))&&q.push(g))}return q.length==0?null:q.join(" ")};var $QZ=function(){this.minSize=1024};
$QZ.prototype.compress=function(g){var u,q,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:return u=new CompressionStream("gzip"),q=(new Response(u.readable)).arrayBuffer(),Q=u.writable.getWriter(),E.yield(Q.write((new TextEncoder).encode(g)),2);case 2:return E.yield(Q.close(),3);case 3:return L=Uint8Array,E.yield(q,4);case 4:return E.return(new L(E.yieldResult))}})};
$QZ.prototype.isSupported=function(g){return g<this.minSize?!1:typeof CompressionStream!=="undefined"};var RLo=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(RLo,_.fv);var k2=function(g,u){this.intervalMs=g;this.callback=u;this.enabled=!1;this.nowFn=function(){return _.WK()};
this.lastTimeMs=this.nowFn()};
k2.prototype.setInterval=function(g){this.intervalMs=g;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
k2.prototype.start=function(){var g=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){g.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
k2.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
k2.prototype.tick=function(){var g=this;if(this.enabled){var u=Math.max(this.nowFn()-this.lastTimeMs,0);u<this.intervalMs*.8?this.timer=setTimeout(function(){g.tick()},this.intervalMs-u):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var wLX=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(wLX,_.fv);var cfR=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(cfR,_.fv);var H2a=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(H2a,_.fv);H2a.prototype.getTransmissionType=function(){return _.j$(this,1)};
H2a.prototype.getRetryCount=function(){return _.r6(this,3)};var V8J=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(V8J,_.fv);var S0=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(S0,_.fv);var aYh=function(g){PM(XkM,1,g)};
S0.prototype.getModel=function(){return _.J2(this,6)};
var Af8=_.bO(S0);var Z20=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Z20,_.fv);var FWS=["platform","platformVersion","architecture","model","uaFullVersion"],XkM=new S0,mqu=null;var oA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(oA,_.fv);var l6R=function(g){return _.Uk(g,1,1)};var I65=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g,4)};
_.A(I65,_.fv);_.UQ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g,36)};
_.A(_.UQ,_.fv);_.UQ.prototype.getExperimentIds=function(){return _.o0(this,RLo,16)};var i2W=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g,19)};
_.A(i2W,_.fv);i2W.prototype.setLogSource=function(g){return _.Uk(this,2,g)};
i2W.prototype.setScheduler=function(g){return _.Uk(this,10,g)};var b2b=function(g,u){this.isServiceWorkerScope=u=u===void 0?!1:u;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new i2W;Number.isInteger(g)&&this.logRequest.setLogSource(g);u||(this.locale=document.documentElement.getAttribute("lang"));CXW(this,new oA)};
b2b.prototype.setLogSource=function(g){this.logRequest.setLogSource(g);return this};
var CXW=function(g,u){_.FV(g.logRequest,1,u);_.j$(u,1)||l6R(u);g.isServiceWorkerScope||(u=gJ(g),_.J2(u,5)||_.EU(u,5,g.locale));g.uach&&(u=gJ(g),_.o0(u,S0,9)||_.FV(u,9,g.uach))},dQ5=function(g,u){g.transmissionType=u},FVX=function(g){var u=u===void 0?FWS:u;
var q=g.isServiceWorkerScope?void 0:jp();q?rMk(q,u).then(function(Q){g.uach=Af8(Q!=null?Q:"[]");Q=gJ(g);_.FV(Q,9,g.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},gJ=function(g){var u=_.o0(g.logRequest,oA,1);
u||(u=new oA,CXW(g,u));g=u;u=_.o0(g,Z20,11);u||(u=new Z20,_.FV(g,11,u));return u};
b2b.prototype.build=function(g,u,q,Q,L,E){u=u===void 0?0:u;q=q===void 0?0:q;Q=Q===void 0?null:Q;L=L===void 0?0:L;E=E===void 0?0:E;if(!this.isServiceWorkerScope){var y=gJ(this);var v=new H2a;v=_.Uk(v,1,this.transmissionType);v=_.OU(v,2,this.isFinal);q=_.e$(v,3,q>0?q:void 0);q=_.e$(q,4,L>0?L:void 0);q=_.e$(q,5,E>0?E:void 0);L=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=L[_.Nx]|0;q=iZ(q,E)?q:WzM(q,L,E)?rhF(q,L):new q.constructor(OZ(L,E,!0));_.FV(y,10,q)}y=this.logRequest.clone();q=Date.now().toString();
y=_.gN(y,4,RH(q));g=g.slice();g=PM(y,3,g);Q&&(y=new wLX,Q=_.e$(y,13,Q),y=new cfR,Q=_.FV(y,2,Q),y=new I65,Q=_.FV(y,1,Q),Q=_.Uk(Q,2,9),_.FV(g,18,Q));u&&_.jQ(g,14,u);return g};KH.prototype.currBackoffCount_=0;KH.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
KH.prototype.getValue=function(){return this.currValue_};
var mQ8=function(g){g.currBaseValue_=Math.min(g.maxValue_,g.currBaseValue_*g.backoffFactor_);g.currValue_=Math.min(g.maxValue_,g.currBaseValue_+(g.randomFactor_?Math.round(g.randomFactor_*(Math.random()-.5)*2*g.currBaseValue_):0));g.currBackoffCount_++};var Ov$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g,8)};
_.A(Ov$,_.fv);var a60=_.bO(Ov$);var KGo=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(KGo,_.fv);var uJ;uJ=new xko;var qP=function(g){_.Lh.call(this);var u=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$10003_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$10003_sendBeaconApiEnabled=!1;this.logSource=g.logSource;this.getAuthHeaderValue=
g.getAuthHeaderValue||function(){};
this.logRequestBuilder=new b2b(g.logSource,g.isServiceWorkerScope);this.network=g.network||null;this.productID=g.productID||null;this.bufferSize=1E3;this.clearcutUrl=g.urlOverride||null;this.sessionIndex=g.sessionIndex||null;this.disableAutomaticFlush=g.disableAutomaticFlush||!1;this.withCredentials=!g.disableWithCredentials;this.isServiceWorkerScope=g.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!jp()&&!!jp().navigator&&jp().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(VR$())).searchParams&&!!(new URL(VR$())).searchParams.set;var q=l6R(new oA);CXW(this.logRequestBuilder,q);this.flushBackoff=new KH(1E4,3E5,.1);g=XL8(this,g.backgroundJobDeferrer);this.JSC$10003_flushTimer=new k2(this.flushBackoff.getValue(),g);this.backupTimer=new k2(6E5,g);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){rfZ(u);
var Q;(Q=u.metalogService)==null||Q.flush()}}),document.addEventListener("pagehide",function(){rfZ(u);
var Q;(Q=u.metalogService)==null||Q.flush()}))};
_.A(qP,_.Lh);var XL8=function(g,u){return g.isBrowserSupported?u?function(){u().then(function(){g.flush()})}:function(){g.flush()}:function(){}};
qP.prototype.disposeInternal=function(){rfZ(this);this.JSC$10003_flushTimer.stop();this.backupTimer.stop();_.Lh.prototype.disposeInternal.call(this)};
var WVa=function(g){g.clearcutUrl||(g.clearcutUrl=VR$());try{return(new URL(g.clearcutUrl)).toString()}catch(u){return(new URL(g.clearcutUrl,jp().location.origin)).toString()}};
qP.prototype.dispatch=function(g){if(g instanceof _.UQ)this.log(g);else try{var u=new _.UQ,q=g.serialize();var Q=_.EU(u,8,q);this.log(Q)}catch(L){QV(this,4,1)}};
var QV=function(g,u,q){g.metalogService&&g.metalogService.increment(u,q)};
qP.prototype.log=function(g){QV(this,2,1);if(this.isBrowserSupported){g=g.clone();var u=this.sequencePosition++;g=_.jQ(g,21,u);this.componentId&&_.EU(g,26,this.componentId);u=g;if(xxq(_.Uc(u,1))==null){var q=Date.now();q=Number.isFinite(q)?q.toString():"0";_.gN(u,1,RH(q))}_.TCa(u,15)!=null||_.jQ(u,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(q=this.experimentIds.clone(),_.FV(u,16,q));QV(this,1,1);u=this.pendingEvents.length-this.bufferSize+1;u>0&&(this.pendingEvents.splice(0,u),this.numLogsDroppedSinceLastFlush+=
u,QV(this,3,u));this.pendingEvents.push(g);this.disableAutomaticFlush||this.JSC$10003_flushTimer.enabled||this.JSC$10003_flushTimer.start()}};
qP.prototype.flush=function(g,u){var q=this;if(this.pendingEvents.length===0)g&&g();else if(this.JSC$10003_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,TBZ(this);else{var Q=Date.now();if(this.noFlushUntilMs>Q&&this.startWaitingMs<Q)u&&u("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?dQ5(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var L=this.pendingEvents.length,
E=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),y=this.getAuthHeaderValue();if(y&&this.lastFailedAuth===y)u&&u("stale-auth-token");else{this.pendingEvents=[];this.JSC$10003_flushTimer.enabled&&this.JSC$10003_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;Q=E.serialize();var v;this.JSC$10003_compressor&&this.JSC$10003_compressor.isSupported(Q.length)&&
(v=this.JSC$10003_compressor.compress(Q));var J=hL5(this,Q,y),f=function(G){q.flushBackoff.reset();q.JSC$10003_flushTimer.setInterval(q.flushBackoff.getValue());if(G){var R=null;try{var H=JSON.stringify(JSON.parse(G.replace(")]}'\n","")));R=a60(H)}catch(l){}R&&(G=Number(DP(R,1,_.W5("-1"))),G>0&&(q.startWaitingMs=Date.now(),q.noFlushUntilMs=q.startWaitingMs+G),jHT(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,uJ.fieldIndex),pnh(R,uJ.fieldIndex),R=uJ.ctor?uJ.getExtensionFn(R,uJ.ctor,uJ.fieldIndex,
uJ.JSC$9183_hasMessageId):uJ.getExtensionFn(R,uJ.fieldIndex,null,uJ.JSC$9183_hasMessageId),R=R===null?void 0:R)&&(R=_.r6(R,1,-1),R!==-1&&(q.flushBackoff=new KH(R<1?1:R,3E5,.1),q.JSC$10003_flushTimer.setInterval(q.flushBackoff.getValue())))}g&&g();q.numRetriesSinceLastSuccessfulFlush=0},t=function(G,R){var H=_.Vu(E,_.UQ,3,_.Xo());
var l=Number(DP(E,14));mQ8(q.flushBackoff);q.JSC$10003_flushTimer.setInterval(q.flushBackoff.getValue());G===401&&y&&(q.lastFailedAuth=y);l&&(q.numLogsDroppedSinceLastFlush+=l);R===void 0&&(R=q.isRetryable(G));R&&(q.pendingEvents=H.concat(q.pendingEvents),q.disableAutomaticFlush||q.JSC$10003_flushTimer.enabled||q.JSC$10003_flushTimer.start());QV(q,7,1);u&&u("net-send-failed",G);++q.numRetriesSinceLastSuccessfulFlush},e=function(){q.network&&q.network.send(J,f,t)};
v?v.then(function(G){QV(q,5,L);J.requestHeaders["Content-Encoding"]="gzip";J.requestHeaders["Content-Type"]="application/binary";J.body=G;J.bodyType=2;e()},function(){QV(q,6,L);
e()}):e()}}}};
var hL5=function(g,u,q){q=q===void 0?null:q;var Q=Q===void 0?g.withCredentials:Q;var L={},E=new URL(WVa(g));q&&(L.Authorization=q);g.sessionIndex&&(L["X-Goog-AuthUser"]=g.sessionIndex,E.searchParams.set("authuser",g.sessionIndex));g.pageId&&(Object.defineProperty(L,"X-Goog-PageId",{value:g.pageId}),E.searchParams.set("pageId",g.pageId));return{url:E.toString(),body:u,bodyType:1,requestHeaders:L,requestType:"POST",withCredentials:Q,timeoutMillis:g.timeoutMillis}},rfZ=function(g){g.logRequestBuilder.isFinal=
!0;
g.flush();g.logRequestBuilder.isFinal=!1},TBZ=function(g){Y98(g,function(u,q){u=new URL(u);
u.searchParams.set("format","json");var Q=!1;try{Q=jp().navigator.sendBeacon(u.toString(),q.serialize())}catch(L){}Q||(g.isSendBeaconSupported=!1);return Q})},Y98=function(g,u){if(g.pendingEvents.length!==0){var q=new URL(WVa(g));
q.searchParams.delete("format");var Q=g.getAuthHeaderValue();Q&&q.searchParams.set("auth",Q);q.searchParams.set("authuser",g.sessionIndex||"0");for(Q=0;Q<10&&g.pendingEvents.length;++Q){var L=g.pendingEvents.slice(0,32),E=g.logRequestBuilder.build(L,g.numLogsDroppedSinceLastFlush,g.numRetriesSinceLastSuccessfulFlush,g.productID,g.persistedLogRecoveredCount,g.persistedLogExpiredCount);if(!u(q.toString(),E)){++g.numRetriesSinceLastSuccessfulFlush;break}g.numLogsDroppedSinceLastFlush=0;g.numRetriesSinceLastSuccessfulFlush=
0;g.persistedLogRecoveredCount=0;g.persistedLogExpiredCount=0;g.pendingEvents=g.pendingEvents.slice(L.length)}g.JSC$10003_flushTimer.enabled&&g.JSC$10003_flushTimer.stop()}};
qP.prototype.isRetryable=function(g){return 500<=g&&g<600||g===401||g===0};
var VR$=function(){return"https://play.google.com/log?format=json&hasfast=true"};var O2o=function(){this.abortSupported=typeof AbortController!=="undefined"};
O2o.prototype.send=function(g,u,q){var Q=this,L,E,y,v,J,f,t,e,G,R;return _.D(function(H){switch(H.nextAddress){case 1:return E=(L=Q.abortSupported?new AbortController:void 0)?setTimeout(function(){L.abort()},g.timeoutMillis):void 0,_.b8(H,2,3),y=Object.assign({},{method:g.requestType,
headers:Object.assign({},g.requestHeaders)},g.body&&{body:g.body},g.withCredentials&&{credentials:"include"},{signal:g.timeoutMillis&&L?L.signal:null}),H.yield(fetch(g.url,y),5);case 5:v=H.yieldResult;if(v.status!==200){(J=q)==null||J(v.status);H.jumpTo(3);break}if((f=u)==null){H.jumpTo(7);break}return H.yield(v.text(),8);case 8:f(H.yieldResult);case 7:case 3:_.Fr(H);clearTimeout(E);_.Xr(H,0);break;case 2:t=_.rt(H);switch((e=t)==null?void 0:e.name){case "AbortError":(G=q)==null||G(408);break;default:(R=
q)==null||R(400)}H.jumpTo(3)}})};
O2o.prototype.getTransmissionType=function(){return 4};_.B8=function(g,u){u=u===void 0?"0":u;_.Lh.call(this);this.logSource=g;this.sessionIndex=u;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$10021_clearExperimentIds=this.productID=null;this.JSC$10021_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.A(_.B8,_.Lh);var S_S=function(g,u){g.buildLabel=u;return g},kvF=function(g,u){g.network=u;
return g},UqT=function(g,u){g.JSC$10021_clearExperimentIds=u},nvu=function(g){g.JSC$10021_sendBeaconApiEnabled=!0;
return g};
_.B8.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.B8.prototype.build=function(){this.network||(this.network=new O2o);var g=new qP({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.WXf,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.z$(this,g);if(this.buildLabel){var u=this.buildLabel,q=
gJ(g.logRequestBuilder);_.EU(q,7,u)}g.JSC$10003_compressor=new $QZ;this.componentId&&(g.componentId=this.componentId);this.productID&&(g.productID=this.productID);this.pageId&&(g.pageId=this.pageId);this.JSC$10021_clearExperimentIds&&((q=this.JSC$10021_clearExperimentIds)?(g.experimentIds||(g.experimentIds=new RLo),u=g.experimentIds,q=q.serialize(),_.EU(u,4,q)):g.experimentIds&&_.gN(g.experimentIds,4));this.JSC$10021_sendBeaconApiEnabled&&(g.JSC$10003_sendBeaconApiEnabled=g.isSendBeaconSupported);
FVX(g.logRequestBuilder);this.bufferSize&&(g.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(g);return g};var qkq=function(g,u,q,Q,L,E,y){g=g===void 0?-1:g;u=u===void 0?"":u;q=q===void 0?"":q;Q=Q===void 0?!1:Q;L=L===void 0?"":L;_.Lh.call(this);this.logSource=g;this.componentId=u;E?u=E:(g=new _.B8(g,"0"),g.componentId=u,_.z$(this,g),q!==""&&(g.destinationUrl=q),Q&&(g.serviceWorkerScopeEnabled=!0),L&&S_S(g,L),y&&kvF(g,y),u=g.build());this.JSC$10025_transport=u};
_.A(qkq,_.Lh);qkq.prototype.flush=function(g){g=g||[];if(g.length){for(var u=new vGX,q=[],Q=0;Q<g.length;Q++){var L=g[Q],E=Jf2(L);q.push(E);L.clear()}PM(u,1,q);this.JSC$10025_transport.dispatch(u);this.JSC$10025_transport.flush()}};var KV$=function(g){this.cellValue=g};var Pl=function(g,u,q){this.JSC$10030_metricName=g;this.cellType=u;this.fields=q||[];this.cellMap=new Map},pL$=function(g){return g.fields.map(function(u){return u.fieldType})},DQn=function(g){return g.fields.map(function(u){return u.fieldName})};
_.P=Pl.prototype;_.P.addCell=function(g){var u=_.UT.apply(1,arguments),q=this.getCells(u);q?q.push(new KV$(g)):this.JSC$10030_setCell(g,u)};
_.P.JSC$10030_setCell=function(g){var u=this.JSC$10030_getKey(_.UT.apply(1,arguments));this.cellMap.set(u,[new KV$(g)])};
_.P.getCells=function(){var g=this.JSC$10030_getKey(_.UT.apply(0,arguments));return this.cellMap.has(g)?this.cellMap.get(g):void 0};
_.P.getCell=function(){var g=this.getCells(_.UT.apply(0,arguments));return g&&g.length?g[0]:void 0};
_.P.clear=function(){this.cellMap.clear()};
_.P.JSC$10030_getKey=function(){var g=_.UT.apply(0,arguments);return g?g.join(","):"key"};var xQ0=function(g,u){Pl.call(this,g,3,u)};
_.A(xQ0,Pl);xQ0.prototype.JSC$10033_incrementCounterBy=function(g){var u=_.UT.apply(1,arguments),q=0,Q=this.getCell(u);Q&&(q=Q.cellValue);this.JSC$10030_setCell(q+g,u)};var BBo=function(g,u){Pl.call(this,g,2,u)};
_.A(BBo,Pl);BBo.prototype.record=function(g){this.addCell(g,_.UT.apply(1,arguments))};_.NP=function(g){this.id=g};
_.NP.prototype.toString=function(){return this.id};_.YF=function(g,u){this.type=g instanceof _.NP?String(g):g;this.currentTarget=this.target=u;this.defaultPrevented=this.propagationStopped_=!1};
_.YF.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.YF.prototype.preventDefault=function(){this.defaultPrevented=!0};_.sO=function(g,u){_.YF.call(this,g?g.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;g&&this.init(g,u)};
_.TK(_.sO,_.YF);
_.sO.prototype.init=function(g,u){var q=this.type=g.type,Q=g.changedTouches&&g.changedTouches.length?g.changedTouches[0]:null;this.target=g.target||g.srcElement;this.currentTarget=u;u=g.relatedTarget;u||(q=="mouseover"?u=g.fromElement:q=="mouseout"&&(u=g.toElement));this.relatedTarget=u;Q?(this.clientX=Q.clientX!==void 0?Q.clientX:Q.pageX,this.clientY=Q.clientY!==void 0?Q.clientY:Q.pageY,this.screenX=Q.screenX||0,this.screenY=Q.screenY||0):(this.offsetX=_.u6||g.offsetX!==void 0?g.offsetX:g.layerX,
this.offsetY=_.u6||g.offsetY!==void 0?g.offsetY:g.layerY,this.clientX=g.clientX!==void 0?g.clientX:g.pageX,this.clientY=g.clientY!==void 0?g.clientY:g.pageY,this.screenX=g.screenX||0,this.screenY=g.screenY||0);this.button=g.button;this.keyCode=g.keyCode||0;this.key=g.key||"";this.charCode=g.charCode||(q=="keypress"?g.keyCode:0);this.ctrlKey=g.ctrlKey;this.altKey=g.altKey;this.shiftKey=g.shiftKey;this.metaKey=g.metaKey;this.pointerId=g.pointerId||0;this.pointerType=g.pointerType;this.state=g.state;
this.timeStamp=g.timeStamp;this.event_=g;g.defaultPrevented&&_.sO.superClass_.preventDefault.call(this)};
_.sO.prototype.isButton=function(g){return this.event_.button==g};
_.sO.prototype.stopPropagation=function(){_.sO.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.sO.prototype.preventDefault=function(){_.sO.superClass_.preventDefault.call(this);var g=this.event_;g.preventDefault?g.preventDefault():g.returnValue=!1};var zL5="closure_listenable_"+(Math.random()*1E6|0),yV=function(g){return!(!g||!g[zL5])};var WWq=0;var nG8=function(g){g.removed=!0;g.listener=null;g.proxy=null;g.src=null;g.handler=null};x$.prototype.add=function(g,u,q,Q,L){var E=g.toString();g=this.listeners[E];g||(g=this.listeners[E]=[],this.typeCount_++);var y=k9b(g,u,Q,L);y>-1?(u=g[y],q||(u.callOnce=!1)):(u=new Tiu(u,this.src,E,!!Q,L),u.callOnce=q,g.push(u));return u};
x$.prototype.remove=function(g,u,q,Q){g=g.toString();if(!(g in this.listeners))return!1;var L=this.listeners[g];u=k9b(L,u,q,Q);return u>-1?(nG8(L[u]),_.bZb(L,u),L.length==0&&(delete this.listeners[g],this.typeCount_--),!0):!1};
var S92=function(g,u){var q=u.type;if(!(q in g.listeners))return!1;var Q=_.TM(g.listeners[q],u);Q&&(nG8(u),g.listeners[q].length==0&&(delete g.listeners[q],g.typeCount_--));return Q};
x$.prototype.removeAll=function(g){g=g&&g.toString();var u=0,q;for(q in this.listeners)if(!g||q==g){for(var Q=this.listeners[q],L=0;L<Q.length;L++)++u,nG8(Q[L]);delete this.listeners[q];this.typeCount_--}return u};
x$.prototype.getListener=function(g,u,q,Q){g=this.listeners[g.toString()];var L=-1;g&&(L=k9b(g,u,q,Q));return L>-1?g[L]:null};
x$.prototype.hasListener=function(g,u){var q=g!==void 0,Q=q?g.toString():"",L=u!==void 0;return _.pH.some(this.listeners,function(E){for(var y=0;y<E.length;++y)if(!(q&&E[y].type!=Q||L&&E[y].capture!=u))return!0;return!1})};
var k9b=function(g,u,q,Q){for(var L=0;L<g.length;++L){var E=g[L];if(!E.removed&&E.listener==u&&E.capture==!!q&&E.handler==Q)return L}return-1};var oG0,UQx,gv0,q_i,Q4a,fh,Qb,CSq,LWi,EvR,vl,PLa,uRa;oG0="closure_lm_"+(Math.random()*1E6|0);UQx={};gv0=0;_.Z1=function(g,u,q,Q,L){if(Q&&Q.once)return fh(g,u,q,Q,L);if(Array.isArray(u)){for(var E=0;E<u.length;E++)_.Z1(g,u[E],q,Q,L);return null}q=uRa(q);return yV(g)?g.listen(u,q,_.zM(Q)?!!Q.capture:!!Q,L):q_i(g,u,q,!1,Q,L)};
q_i=function(g,u,q,Q,L,E){if(!u)throw Error("wa");var y=_.zM(L)?!!L.capture:!!L,v=vl(g);v||(g[oG0]=v=new x$(g));q=v.add(u,q,Q,y,E);if(q.proxy)return q;Q=Q4a();q.proxy=Q;Q.src=g;Q.listener=q;if(g.addEventListener)_.$aa||(L=y),L===void 0&&(L=!1),g.addEventListener(u.toString(),Q,L);else if(g.attachEvent)g.attachEvent(LWi(u.toString()),Q);else if(g.addListener&&g.removeListener)g.addListener(Q);else throw Error("xa");gv0++;return q};
Q4a=function(){var g=EvR,u=function(q){return g.call(u.src,u.listener,q)};
return u};
fh=function(g,u,q,Q,L){if(Array.isArray(u)){for(var E=0;E<u.length;E++)fh(g,u[E],q,Q,L);return null}q=uRa(q);return yV(g)?g.listenOnce(u,q,_.zM(Q)?!!Q.capture:!!Q,L):q_i(g,u,q,!0,Q,L)};
_.DB=function(g,u,q,Q,L){if(Array.isArray(u))for(var E=0;E<u.length;E++)_.DB(g,u[E],q,Q,L);else Q=_.zM(Q)?!!Q.capture:!!Q,q=uRa(q),yV(g)?g.unlisten(u,q,Q,L):g&&(g=vl(g))&&(u=g.getListener(u,q,Q,L))&&Qb(u)};
Qb=function(g){if(typeof g==="number"||!g||g.removed)return!1;var u=g.src;if(yV(u))return S92(u.eventTargetListeners_,g);var q=g.type,Q=g.proxy;u.removeEventListener?u.removeEventListener(q,Q,g.capture):u.detachEvent?u.detachEvent(LWi(q),Q):u.addListener&&u.removeListener&&u.removeListener(Q);gv0--;(q=vl(u))?(S92(q,g),q.typeCount_==0&&(q.src=null,u[oG0]=null)):nG8(g);return!0};
CSq=function(g,u,q,Q,L){q=uRa(q);Q=!!Q;return yV(g)?g.getListener(u,q,Q,L):g?(g=vl(g))?g.getListener(u,q,Q,L):null:null};
LWi=function(g){return g in UQx?UQx[g]:UQx[g]="on"+g};
EvR=function(g,u){if(g.removed)g=!0;else{u=new _.sO(u,this);var q=g.listener,Q=g.handler||g.src;g.callOnce&&Qb(g);g=q.call(Q,u)}return g};
vl=function(g){g=g[oG0];return g instanceof x$?g:null};
PLa="__closure_events_fn_"+(Math.random()*1E9>>>0);uRa=function(g){if(typeof g==="function")return g;g[PLa]||(g[PLa]=function(u){return g.handleEvent(u)});
return g[PLa]};_.A5=function(){_.Lh.call(this);this.eventTargetListeners_=new x$(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.TK(_.A5,_.Lh);_.A5.prototype[zL5]=!0;_.P=_.A5.prototype;_.P.setParentEventTarget=function(g){this.parentEventTarget_=g};
_.P.addEventListener=function(g,u,q,Q){_.Z1(this,g,u,q,Q)};
_.P.removeEventListener=function(g,u,q,Q){_.DB(this,g,u,q,Q)};
_.P.dispatchEvent=function(g){var u,q=this.parentEventTarget_;if(q)for(u=[];q;q=q.parentEventTarget_)u.push(q);q=this.actualEventTarget_;var Q=g.type||g;if(typeof g==="string")g=new _.YF(g,q);else if(g instanceof _.YF)g.target=g.target||q;else{var L=g;g=new _.YF(Q,q);_.pH.extend(g,L)}L=!0;var E;if(u)for(E=u.length-1;!g.propagationStopped_&&E>=0;E--){var y=g.currentTarget=u[E];L=Ni8(y,Q,!0,g)&&L}g.propagationStopped_||(y=g.currentTarget=q,L=Ni8(y,Q,!0,g)&&L,g.propagationStopped_||(L=Ni8(y,Q,!1,g)&&
L));if(u)for(E=0;!g.propagationStopped_&&E<u.length;E++)y=g.currentTarget=u[E],L=Ni8(y,Q,!1,g)&&L;return L};
_.P.disposeInternal=function(){_.A5.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.P.listen=function(g,u,q,Q){return this.eventTargetListeners_.add(String(g),u,!1,q,Q)};
_.P.listenOnce=function(g,u,q,Q){return this.eventTargetListeners_.add(String(g),u,!0,q,Q)};
_.P.unlisten=function(g,u,q,Q){return this.eventTargetListeners_.remove(String(g),u,q,Q)};
_.P.removeAllListeners=function(g){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(g):0};
var Ni8=function(g,u,q,Q){u=g.eventTargetListeners_.listeners[String(u)];if(!u)return!0;u=u.concat();for(var L=!0,E=0;E<u.length;++E){var y=u[E];if(y&&!y.removed&&y.capture==q){var v=y.listener,J=y.handler||y.src;y.callOnce&&S92(g.eventTargetListeners_,y);L=v.call(J,Q)!==!1&&L}}return L&&!Q.defaultPrevented};
_.A5.prototype.getListener=function(g,u,q,Q){return this.eventTargetListeners_.getListener(String(g),u,q,Q)};
_.A5.prototype.hasListener=function(g,u){return this.eventTargetListeners_.hasListener(g!==void 0?String(g):void 0,u)};var pY=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(g){return g&&AsyncContext.Snapshot.wrap(g)}:function(g){return g};var s4o=function(g,u){this.create_=g;this.reset_=u;this.occupants_=0;this.JSC$10065_head_=null};
s4o.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var g=this.JSC$10065_head_;this.JSC$10065_head_=g.next;g.next=null}else g=this.create_();return g};
s4o.prototype.put=function(g){this.reset_(g);this.occupants_<100&&(this.occupants_++,g.next=this.JSC$10065_head_,this.JSC$10065_head_=g)};var yM8=function(){this.workTail_=this.workHead_=null};
yM8.prototype.add=function(g,u){var q=Y_q.get();q.set(g,u);this.workTail_?this.workTail_.next=q:this.workHead_=q;this.workTail_=q};
yM8.prototype.remove=function(){var g=null;this.workHead_&&(g=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),g.next=null);return g};
var Y_q=new s4o(function(){return new vvb},function(g){return g.reset()}),vvb=function(){this.next=this.scope=this.fn=null};
vvb.prototype.set=function(g,u){this.fn=g;this.scope=u;this.next=null};
vvb.prototype.reset=function(){this.next=this.scope=this.fn=null};var DqR,OSb,hIh,pkW;OSb=!1;hIh=new yM8;_.Jz=function(g,u){DqR||pkW();OSb||(DqR(),OSb=!0);hIh.add(g,u)};
pkW=function(){var g=Promise.resolve(void 0);DqR=function(){g.then(KWK)}};var JMi=function(g){g.prototype.$goog_Thenable=!0},j45=function(g){if(!g)return!1;
try{return!!g.$goog_Thenable}catch(u){return!1}};var fYW,M80,t8W,GvX,$qX,RIn,AMZ,IYb,dqo,CLx,lDh;_.Ez=function(g,u){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(g!=_.vH)try{var q=this;g.call(u,function(Q){q.resolve_(2,Q)},function(Q){q.resolve_(3,Q)})}catch(Q){this.resolve_(3,Q)}};
fYW=function(){this.next=this.context=this.JSC$10076_onRejected=this.JSC$10076_onFulfilled=this.child=null;this.always=!1};
fYW.prototype.reset=function(){this.context=this.JSC$10076_onRejected=this.JSC$10076_onFulfilled=this.child=null;this.always=!1};
M80=new s4o(function(){return new fYW},function(g){g.reset()});
t8W=function(g,u,q){var Q=M80.get();Q.JSC$10076_onFulfilled=g;Q.JSC$10076_onRejected=u;Q.context=q;return Q};
_.BX=function(g){if(g instanceof _.Ez)return g;var u=new _.Ez(_.vH);u.resolve_(2,g);return u};
_.NY=function(g){return new _.Ez(function(u,q){q(g)})};
GvX=function(g,u,q){eIo(g,u,q,null)||_.Jz(_.uH(u,g))};
_.jk=function(g){return new _.Ez(function(u,q){var Q=g.length,L=[];if(Q)for(var E=function(f,t){Q--;L[f]=t;Q==0&&u(L)},y=function(f){q(f)},v,J=0;J<g.length;J++)v=g[J],GvX(v,_.uH(E,J),y);
else u(L)})};
$qX=function(g){return new _.Ez(function(u){var q=g.length,Q=[];if(q)for(var L=function(v,J,f){q--;Q[v]=J?{fulfilled:!0,value:f}:{fulfilled:!1,reason:f};q==0&&u(Q)},E,y=0;y<g.length;y++)E=g[y],GvX(E,_.uH(L,y,!0),_.uH(L,y,!1));
else u(Q)})};
RIn=function(g){return new _.Ez(function(u,q){var Q=g.length,L=[];if(Q)for(var E=function(f){u(f)},y=function(f,t){Q--;
L[f]=t;Q==0&&q(L)},v,J=0;J<g.length;J++)v=g[J],GvX(v,E,_.uH(y,J));
else u(void 0)})};
_.A9=function(){var g,u,q=new _.Ez(function(Q,L){g=Q;u=L});
return new wko(q,g,u)};
_.Ez.prototype.then=function(g,u,q){return cMH(this,pY(typeof g==="function"?g:null),pY(typeof u==="function"?u:null),q)};
JMi(_.Ez);AMZ=function(g,u,q,Q){HSR(g,t8W(u||_.vH,q||null,Q))};
_.fY=function(g,u){u=pY(u);u=t8W(u,u);u.always=!0;HSR(g,u);return g};
_.Ez.prototype.finally=function(g){var u=this;g=pY(g);return new _.Ez(function(q,Q){AMZ(u,function(L){g();q(L)},function(L){g();
Q(L)})})};
_.Ez.prototype.thenCatch=function(g,u){return cMH(this,null,pY(g),u)};
_.Ez.prototype.catch=_.Ez.prototype.thenCatch;_.Ez.prototype.cancel=function(g){if(this.state_==0){var u=new _.Gx(g);_.Jz(function(){ZS2(this,u)},this)}};
var ZS2=function(g,u){if(g.state_==0)if(g.parent_){var q=g.parent_;if(q.callbackEntries_){for(var Q=0,L=null,E=null,y=q.callbackEntries_;y&&(y.always||(Q++,y.child==g&&(L=y),!(L&&Q>1)));y=y.next)L||(E=y);L&&(q.state_==0&&Q==1?ZS2(q,u):(E?(Q=E,Q.next==q.callbackEntriesTail_&&(q.callbackEntriesTail_=Q),Q.next=Q.next.next):lYW(q),IYb(q,L,3,u)))}g.parent_=null}else g.resolve_(3,u)},HSR=function(g,u){g.callbackEntries_||g.state_!=2&&g.state_!=3||iSb(g);
g.callbackEntriesTail_?g.callbackEntriesTail_.next=u:g.callbackEntries_=u;g.callbackEntriesTail_=u},cMH=function(g,u,q,Q){var L=t8W(null,null,null);
L.child=new _.Ez(function(E,y){L.JSC$10076_onFulfilled=u?function(v){try{var J=u.call(Q,v);E(J)}catch(f){y(f)}}:E;
L.JSC$10076_onRejected=q?function(v){try{var J=q.call(Q,v);J===void 0&&v instanceof _.Gx?y(v):E(J)}catch(f){y(f)}}:y});
L.child.parent_=g;HSR(g,L);return L.child};
_.Ez.prototype.unblockAndFulfill_=function(g){this.state_=0;this.resolve_(2,g)};
_.Ez.prototype.unblockAndReject_=function(g){this.state_=0;this.resolve_(3,g)};
_.Ez.prototype.resolve_=function(g,u){this.state_==0&&(this===u&&(g=3,u=new TypeError("ya")),this.state_=1,eIo(u,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=u,this.state_=g,this.parent_=null,iSb(this),g!=3||u instanceof _.Gx||CLx(this,u)))};
var eIo=function(g,u,q,Q){if(g instanceof _.Ez)return AMZ(g,u,q,Q),!0;if(j45(g))return g.then(u,q,Q),!0;if(_.zM(g))try{var L=g.then;if(typeof L==="function")return bS8(g,L,u,q,Q),!0}catch(E){return q.call(Q,E),!0}return!1},bS8=function(g,u,q,Q,L){var E=!1,y=function(J){E||(E=!0,q.call(L,J))},v=function(J){E||(E=!0,Q.call(L,J))};
try{u.call(g,y,v)}catch(J){v(J)}},iSb=function(g){g.executing_||(g.executing_=!0,_.Jz(g.executeCallbacks_,g))},lYW=function(g){var u=null;
g.callbackEntries_&&(u=g.callbackEntries_,g.callbackEntries_=u.next,u.next=null);g.callbackEntries_||(g.callbackEntriesTail_=null);return u};
_.Ez.prototype.executeCallbacks_=function(){for(var g;g=lYW(this);)IYb(this,g,this.state_,this.result_);this.executing_=!1};
IYb=function(g,u,q,Q){if(q==3&&u.JSC$10076_onRejected&&!u.always)for(;g&&g.hadUnhandledRejection_;g=g.parent_)g.hadUnhandledRejection_=!1;if(u.child)u.child.parent_=null,dqo(u,q,Q);else try{u.always?u.JSC$10076_onFulfilled.call(u.context):dqo(u,q,Q)}catch(L){lDh.call(null,L)}M80.put(u)};
dqo=function(g,u,q){u==2?g.JSC$10076_onFulfilled.call(g.context,q):g.JSC$10076_onRejected&&g.JSC$10076_onRejected.call(g.context,q)};
CLx=function(g,u){g.hadUnhandledRejection_=!0;_.Jz(function(){g.hadUnhandledRejection_&&lDh.call(null,u)})};
lDh=Eb;_.Gx=function(g){_.gq.call(this,g)};
_.TK(_.Gx,_.gq);_.Gx.prototype.name="cancel";var wko=function(g,u,q){this.promise=g;this.resolve=u;this.reject=q};var MP;_.vD=function(g,u){_.A5.call(this);this.JSC$10088_interval_=g||1;this.timerObject_=u||_.Qq;this.boundTick_=(0,_.EH)(this.tick_,this);this.last_=_.WK()};
_.TK(_.vD,_.A5);_.P=_.vD.prototype;_.P.enabled=!1;_.P.JSC$10090_timer_=null;_.P.setInterval=function(g){this.JSC$10088_interval_=g;this.JSC$10090_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10090_timer_&&this.stop()};
_.P.tick_=function(){if(this.enabled){var g=_.WK()-this.last_;g>0&&g<this.JSC$10088_interval_*.8?this.JSC$10090_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10088_interval_-g):(this.JSC$10090_timer_&&(this.timerObject_.clearTimeout(this.JSC$10090_timer_),this.JSC$10090_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.P.start=function(){this.enabled=!0;this.JSC$10090_timer_||(this.JSC$10090_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10088_interval_),this.last_=_.WK())};
_.P.stop=function(){this.enabled=!1;this.JSC$10090_timer_&&(this.timerObject_.clearTimeout(this.JSC$10090_timer_),this.JSC$10090_timer_=null)};
_.P.disposeInternal=function(){_.vD.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
MP=function(g,u,q){if(typeof g==="function")q&&(g=(0,_.EH)(g,q));else if(g&&typeof g.handleEvent=="function")g=(0,_.EH)(g.handleEvent,g);else throw Error("za");return Number(u)>2147483647?-1:_.Qq.setTimeout(g,u||0)};
_.FW5=function(g){var u=null;return(new _.Ez(function(q,Q){u=MP(function(){q(void 0)},g);
u==-1&&Q(Error("Aa"))})).thenCatch(function(q){_.Qq.clearTimeout(u);
throw q;})};var nH=function(g){_.Lh.call(this);this.streamzLogger=g;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10094_flushTimer=new _.vD(this.flushInterval);this.JSC$10094_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.z$(this,this.JSC$10094_flushTimer)};
_.A(nH,_.Lh);nH.prototype.sendIsolatedPayload=function(g){this.shouldSendIsolatedPayload=g;this.invocationLimit=1};
var mqi=function(g){g.JSC$10094_flushTimer.enabled||g.JSC$10094_flushTimer.start();g.invocationCount++;g.invocationCount>=g.invocationLimit&&g.snapshotAndFlush()};
nH.prototype.snapshotAndFlush=function(){var g=this.metricMap.values();g=[].concat(_.na(g)).filter(function(u){return u.cellMap.size});
g.length&&this.streamzLogger.flush(g,this.shouldSendIsolatedPayload);aYZ(g);this.invocationCount=0;this.JSC$10094_flushTimer.enabled&&this.JSC$10094_flushTimer.stop()};
nH.prototype.addNewCounter=function(g){var u=_.UT.apply(1,arguments);this.metricMap.has(g)||this.metricMap.set(g,new xQ0(g,u))};
nH.prototype.addNewEventMetric=function(g){var u=_.UT.apply(1,arguments);this.metricMap.has(g)||this.metricMap.set(g,new BBo(g,u))};
var V88=function(g,u){return g.disabledMetrics.has(u)?void 0:g.metricMap.get(u)};
nH.prototype.JSC$10094_incrementCounter=function(g){this.JSC$10094_incrementCounterBy(g,1,_.UT.apply(1,arguments))};
nH.prototype.JSC$10094_incrementCounterBy=function(g,u){var q=_.UT.apply(2,arguments),Q=V88(this,g);Q&&Q instanceof xQ0&&(Q.JSC$10033_incrementCounterBy(u,q),mqi(this))};
nH.prototype.record=function(g,u){var q=_.UT.apply(2,arguments),Q=V88(this,g);Q&&Q instanceof BBo&&(Q.record(u,q),mqi(this))};
var aYZ=function(g){for(var u=0;u<g.length;u++)g[u].clear()};_.tz=function(g,u,q){q=q===void 0?{}:q;u=Error.call(this,u);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.code=g;this.metadata=q;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(_.tz,Error);_.tz.prototype.toString=function(){var g="RpcError("+(Biq(this.code)||String(this.code))+")";this.message&&(g+=": "+this.message);return g};_.Xk2=_.Qq.JSON.parse;_.ek=_.Qq.JSON.stringify;_.yD=_.Qq.JSON.parse;_.rMH=function(g){switch(g){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 WWa=function(g){switch(g){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Tii,hIZ=function(){};
_.TK(hIZ,_.zI3);hIZ.prototype.createInstance=function(){return new XMLHttpRequest};
Tii=new hIZ;_.GA=function(g){_.A5.call(this);this.headers=new Map;this.JSC$10103_xmlHttpFactory_=g||null;this.JSC$10103_active_=!1;this.JSC$10103_xhr_=null;this.JSC$10103_lastUri_="";this.JSC$10103_lastErrorCode_=0;this.JSC$10103_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10103_timeoutId_=null;this.responseType_="";this.JSC$10103_withCredentials_=!1};
_.TK(_.GA,_.A5);var Y_a=/^https?$/i,OS0=["POST","PUT"],KWX=[],XIS=function(g,u,q,Q,L,E,y){var v=new _.GA;KWX.push(v);u&&v.listen("complete",u);v.listenOnce("ready",v.cleanupSend_);E&&(v.timeoutInterval_=Math.max(0,E));y&&(v.JSC$10103_withCredentials_=y);v.send(g,q,Q,L)};
_.GA.prototype.cleanupSend_=function(){this.dispose();_.TM(KWX,this)};
_.GA.prototype.send=function(g,u,q,Q){if(this.JSC$10103_xhr_)throw Error("Ba`"+this.JSC$10103_lastUri_+"`"+g);u=u?u.toUpperCase():"GET";this.JSC$10103_lastUri_=g;this.JSC$10103_lastError_="";this.JSC$10103_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10103_active_=!0;this.JSC$10103_xhr_=this.createXhr();this.JSC$10103_xhr_.onreadystatechange=pY((0,_.EH)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10103_xhr_.open(u,String(g),!0),this.inOpen_=!1}catch(y){xqb(this,y);return}g=
q||"";q=new Map(this.headers);if(Q)if(Object.getPrototypeOf(Q)===Object.prototype)for(var L in Q)q.set(L,Q[L]);else if(typeof Q.keys==="function"&&typeof Q.get==="function"){L=_.N(Q.keys());for(var E=L.next();!E.done;E=L.next())E=E.value,q.set(E,Q.get(E))}else throw Error("Ca`"+String(Q));Q=Array.from(q.keys()).find(function(y){return"content-type"==y.toLowerCase()});
L=_.Qq.FormData&&g instanceof _.Qq.FormData;!_.WS(OS0,u)||Q||L||q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");u=_.N(q);for(Q=u.next();!Q.done;Q=u.next())q=_.N(Q.value),Q=q.next().value,q=q.next().value,this.JSC$10103_xhr_.setRequestHeader(Q,q);this.responseType_&&(this.JSC$10103_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10103_xhr_&&this.JSC$10103_xhr_.withCredentials!==this.JSC$10103_withCredentials_&&(this.JSC$10103_xhr_.withCredentials=this.JSC$10103_withCredentials_);
try{this.JSC$10103_timeoutId_&&(clearTimeout(this.JSC$10103_timeoutId_),this.JSC$10103_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10103_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10103_xhr_.send(g),this.inSend_=!1}catch(y){xqb(this,y)}};
_.GA.prototype.createXhr=function(){return this.JSC$10103_xmlHttpFactory_?this.JSC$10103_xmlHttpFactory_.createInstance():Tii.createInstance()};
_.GA.prototype.timeout_=function(){typeof $xW!="undefined"&&this.JSC$10103_xhr_&&(this.JSC$10103_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10103_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var xqb=function(g,u){g.JSC$10103_active_=!1;g.JSC$10103_xhr_&&(g.inAbort_=!0,g.JSC$10103_xhr_.abort(),g.inAbort_=!1);g.JSC$10103_lastError_=u;g.JSC$10103_lastErrorCode_=5;Bia(g);zIx(g)},Bia=function(g){g.errorDispatched_||(g.errorDispatched_=!0,g.dispatchEvent("complete"),g.dispatchEvent("error"))};
_.GA.prototype.abort=function(g){this.JSC$10103_xhr_&&this.JSC$10103_active_&&(this.JSC$10103_active_=!1,this.inAbort_=!0,this.JSC$10103_xhr_.abort(),this.inAbort_=!1,this.JSC$10103_lastErrorCode_=g||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),zIx(this))};
_.GA.prototype.disposeInternal=function(){this.JSC$10103_xhr_&&(this.JSC$10103_active_&&(this.JSC$10103_active_=!1,this.inAbort_=!0,this.JSC$10103_xhr_.abort(),this.inAbort_=!1),zIx(this,!0));_.GA.superClass_.disposeInternal.call(this)};
_.GA.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)nvi(this);else this.onReadyStateChangeEntryPoint_()};
_.GA.prototype.onReadyStateChangeEntryPoint_=function(){nvi(this)};
var nvi=function(g){if(g.JSC$10103_active_&&typeof $xW!="undefined")if(g.inSend_&&_.$k(g)==4)setTimeout(g.onReadyStateChange_.bind(g),0);else if(g.dispatchEvent("readystatechange"),g.isComplete()){g.JSC$10103_active_=!1;try{if(g.isSuccess())g.dispatchEvent("complete"),g.dispatchEvent("success");else{g.JSC$10103_lastErrorCode_=6;try{var u=_.$k(g)>2?g.JSC$10103_xhr_.statusText:""}catch(q){u=""}g.JSC$10103_lastError_=u+" ["+g.getStatus()+"]";Bia(g)}}finally{zIx(g)}}},zIx=function(g,u){if(g.JSC$10103_xhr_){g.JSC$10103_timeoutId_&&
(clearTimeout(g.JSC$10103_timeoutId_),g.JSC$10103_timeoutId_=null);
var q=g.JSC$10103_xhr_;g.JSC$10103_xhr_=null;u||g.dispatchEvent("ready");try{q.onreadystatechange=null}catch(Q){}}};
_.GA.prototype.isActive=function(){return!!this.JSC$10103_xhr_};
_.GA.prototype.isComplete=function(){return _.$k(this)==4};
_.GA.prototype.isSuccess=function(){var g=this.getStatus(),u;if(!(u=WWa(g))){if(g=g===0)g=B6f(String(this.JSC$10103_lastUri_)),g=!Y_a.test(g);u=g}return u};
_.$k=function(g){return g.JSC$10103_xhr_?g.JSC$10103_xhr_.readyState:0};
_.P=_.GA.prototype;_.P.getStatus=function(){try{return _.$k(this)>2?this.JSC$10103_xhr_.status:-1}catch(g){return-1}};
_.P.getResponseText=function(){try{return this.JSC$10103_xhr_?this.JSC$10103_xhr_.responseText:""}catch(g){return""}};
_.P.getResponse=function(){try{if(!this.JSC$10103_xhr_)return null;if("response"in this.JSC$10103_xhr_)return this.JSC$10103_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10103_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10103_xhr_)return this.JSC$10103_xhr_.mozResponseArrayBuffer}return null}catch(g){return null}};
_.P.getAllResponseHeaders=function(){return this.JSC$10103_xhr_&&_.$k(this)>=2?this.JSC$10103_xhr_.getAllResponseHeaders()||"":""};
_.P.getLastError=function(){return typeof this.JSC$10103_lastError_==="string"?this.JSC$10103_lastError_:String(this.JSC$10103_lastError_)};var ovZ=function(){};
ovZ.prototype.send=function(g,u,q){u=u===void 0?function(){}:u;
q=q===void 0?function(){}:q;
XIS(g.url,function(Q){Q=Q.target;Q.isSuccess()?u(Q.getResponseText()):q(Q.getStatus())},g.requestType,g.body,g.requestHeaders,g.timeoutMillis,g.withCredentials)};
ovZ.prototype.getTransmissionType=function(){return 1};var kvn=function(g,u){this.wf1=g;this.event=u;this.startTime=k$()},L9h;
kvn.prototype.done=function(){this.wf1.v9(this.event,k$()-this.startTime)};
var RV=function(){nN.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.A(RV,nN);_.wJ=function(g,u,q){var Q=k$();u=u();g.v9(q,k$()-Q);return u};
L9h=function(){RV.apply(this,arguments)};
_.A(L9h,RV);_.P=L9h.prototype;_.P.mdW=function(){};
_.P.wF=function(){};
_.P.v9=function(){};
_.P.logError=function(){};
_.P.iK=function(){};
_.P.mi3=function(){};
_.P.diB=function(){};
_.P.tYk=function(){};
var S_5=function(g){RV.call(this);var u=this;this.l8=g;this.TEST_ONLY={nBy:function(){return u.l8},
getExperimentIds:function(){return u.l8.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void u.l8.dispose()})};
_.A(S_5,RV);_.P=S_5.prototype;_.P.update=function(g){this.l8.dispose();this.l8=g};
_.P.wF=function(g){this.l8.wF(g)};
_.P.v9=function(g,u){this.l8.v9(g,u)};
_.P.logError=function(g){this.l8.logError(g)};
_.P.iK=function(){this.l8.iK()};
_.P.mi3=function(g){this.l8.mi3(g)};
_.P.diB=function(g){this.l8.diB(g)};
_.P.tYk=function(g){this.l8.tYk(g)};
_.P.mdW=function(g){this.l8.mdW(g)};
var ovo=function(g,u){_.Lh.call(this);var q=this;this.callback=g;this.e3O=u;this.gwc=-u;this.addOnDisposeCallback(function(){return void clearTimeout(q.timer)})};
_.A(ovo,_.Lh);var Uqb=function(g){if(g.timer===void 0){var u=Math.max(0,g.gwc+g.e3O-k$());g.timer=setTimeout(function(){try{g.callback()}finally{g.gwc=k$(),g.timer=void 0}},u)}},gQ0=function(g,u){RV.call(this);
this.metrics=g;this.yr=u};
_.A(gQ0,RV);_.P=gQ0.prototype;_.P.mdW=function(g){this.metrics.ftV.record(g,this.yr)};
_.P.wF=function(g){this.metrics.eventCount.increment(g,this.yr)};
_.P.v9=function(g,u){this.metrics.sr1.record(u,g,this.yr)};
_.P.logError=function(g){this.metrics.errorCount.increment(g,this.yr)};
_.P.mi3=function(g){this.metrics.hWY.increment(g,this.yr)};
_.P.diB=function(g){this.metrics.zew.increment(g,this.yr)};
_.P.tYk=function(g){this.metrics.xW1.increment(g,this.yr)};
var EQF=function(g,u){u=u===void 0?[]:u;var q={yr:g.yr||"_",oaN:g.oaN||[],z7c:g.z7c|0,destinationUrl:g.destinationUrl,cFz:g.cFz||function(){},
rwq:g.rwq||function(E,y){return Q0J(E,y,q.cFz,q.destinationUrl)}},Q=q.rwq("53",q.oaN.concat(u));
gQ0.call(this,{ftV:new r5Z(Q),errorCount:new YHx(Q),eventCount:new Tcb(Q),sr1:new hUx(Q),dFC:new WRZ(Q),hWY:new Oha(Q),zew:new KRR(Q),xW1:new xVb(Q)},q.yr);var L=this;this.TEST_ONLY={getExperimentIds:function(){return L.options.oaN.concat(L.bfw).sort(function(E,y){return E-y})}};
this.options=q;this.service=Q;this.qA1=!g.rwq;this.flushDebouncer=new ovo(function(){return void L.service.snapshotAndFlush()},q.z7c);
this.addOnDisposeCallback(function(){L.flushDebouncer.dispose();L.qA1&&L.service.dispose()});
(this.bfw=u.slice()).sort(_.akq)};
_.A(EQF,gQ0);EQF.prototype.iK=function(){Uqb(this.flushDebouncer)};var qjf=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(qjf,_.fv);_.QjS=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(_.QjS,_.fv);var lb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g,0,lb.messageId)};
_.A(lb,_.fv);var uxR=_.vAq(lb);lb.messageId="bfkj";var IYT=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(IYT,_.fv);var qka=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(qka,_.fv);var Q08=_.bO(qka);_.KU=function(){var g=this;this.promise=new Promise(function(u,q){g.resolve=u;g.reject=q})};_.cl=function(g){_.Lh.call(this);var u=this;this.i5p=Math.floor(Math.random()*200);this.vGB=new qka;if("challenge"in g&&uxR(g.challenge)){var q=_.J2(g.challenge,4,void 0,aR);var Q=_.J2(g.challenge,5,void 0,aR);_.J2(g.challenge,7,void 0,aR)&&(this.vGB=Q08(_.J2(g.challenge,7,void 0,aR)))}else q=g.program,Q=g.globalName;this.addOnDisposeCallback(function(){var H,l,d;return _.D(function(F){if(F.nextAddress==1)return F.yield(u.snq,2);H=F.yieldResult;l=H.u7U;(d=l)==null||d();_.Wx(F)})});
this.qc=PSu(g.cYB||{},this.vGB);_.z$(this,this.qc);var L=new _.KU;this.snq=L.promise;this.qc.wF("t");var E=this.qc.share(),y=new kvn(E,"t"),v=function(H,l,d,F){if(!u.qc.isDisposed()){var V="k";l?V="h":d&&(V="u");V!=="k"?F!==0&&(u.qc.wF(V),u.qc.v9(V,H)):u.i5p<=0?(u.qc.wF(V),u.qc.v9(V,H),u.i5p=Math.floor(Math.random()*200)):u.i5p--}},J=function(H,l,d,F){Promise.resolve().then(function(){y.done();
E.iK();E.dispose();L.resolve({a81:H,u7U:l,uU1:d,an4:F})})};
if(!_.Qq[Q])throw this.qc.logError(25),Error("Da");if(!_.Qq[Q].a)throw this.qc.logError(26),Error("Ea");try{var f=_.Qq[Q].a;Q=[];for(var t=[],e=iST(this.vGB),G=0;G<e.length;G++)Q.push(e[G]),t.push(1);var R=CL3(this.vGB);for(e=0;e<R.length;e++)Q.push(R[e]),t.push(2);this.o2F=_.N(f(q,J,!0,g.yvz,v,[Q,t],_.J2(this.vGB,5),!1)).next().value;this.exH=L.promise.then(function(){})}catch(H){throw this.qc.logError(28),H;
}};
_.A(_.cl,_.Lh);_.cl.prototype.snapshot=function(g){if(this.isDisposed())throw Error("Fa");this.qc.wF("n");var u=this.qc.share();return this.snq.then(function(q){var Q=q.a81;return new Promise(function(L){var E=new kvn(u,"n");Q(function(y){E.done();u.mdW(y.length);u.iK();u.dispose();L(y)},[g.rI,
g.plB,g.g3M,g.dmp])})})};
_.cl.prototype.wfI=function(g){this.snq.then(function(u){var q;(q=u.uU1)==null||q(g)})};
_.cl.prototype.eaB=function(g,u){return this.snq.then(function(q){var Q;return(Q=q.an4)==null?void 0:Q(g,u,!1)})};
_.cl.prototype.ayz=function(){return this.qc.share()};var L9Z=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(L9Z,_.fv);var XUJ=_.vAq(L9Z);var EQn=function(){this.promises={};this.epR=null},PSi=function(){EQn.instance||(EQn.instance=new EQn);
return EQn.instance},s0a=function(g,u){return NuR(g,_.o0(u,qjf,1,aR),_.o0(u,_.QjS,2,aR),_.J2(u,3,void 0,aR))},NuR=function(g,u,q,Q){if(!u&&!q)return Promise.resolve();
if(!Q)return Duf(u,q);var L;(L=g.promises)[Q]||(L[Q]=new Promise(function(E,y){Duf(u,q).then(function(){g.epR=Q;E()},function(v){delete g.promises[Q];
y(v)})}));
return g.promises[Q]};var yio=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(yio,_.fv);var vQR=function(g,u){return _.I1(g,1,u)},DuW=function(g,u){return _.I1(g,2,u)};var Hl=function(g){_.Lh.call(this);var u=this;this.options=g;this.yP1=new _.KU;this.exH=this.yP1.promise;this.cH1=new _.KU;this.fX8=1;this.psn=new _.KU;this.lpI=[];this.isPaused=!1;this.xJm=g.xJm||function(){};
this.s6I=new S_5(PSu(g.cYB||{}));pWn(this,g.wL,g.zPM,g.iz7,g.hx7,Object.assign({},Ji5,g.oms||{}));this.addOnDisposeCallback(function(){return void j0Z(u)})};
_.A(Hl,_.Lh);Hl.prototype.snapshot=function(g){var u=this;return _.D(function(q){switch(q.nextAddress){case 1:if(u.isDisposed())throw Error("Fa");if(u.qU||u.hpM){q.jumpTo(2);break}return q.yield(u.cH1.promise,2);case 2:if(!u.qU){q.jumpTo(4);break}return q.yield(u.qU.snapshot(g),5);case 5:return q.return(q.yieldResult);case 4:throw u.hpM;}})};
Hl.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.sy&&this.sy.pause())};
Hl.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.sy&&this.sy.resume())};
Hl.prototype.checkForRefresh=function(){var g=this;return _.D(function(u){if(g.isDisposed())throw Error("Fa");var q;if(q=g.sy)q=g.sy,q.isExpired()?(fQW(q),q.resolver(0),q=!0):q=!1,q=!q;return q?u.jumpTo(0):u.yield(g.psn.promise,0)})};
var tjX=function(g){var u;return _.D(function(q){if(g.isDisposed())throw Error("Fa");(u=g.sy)==null||Mj5(u);return q.yield(g.psn.promise,0)})},j0Z=function(g){g.hpM=Error("Ha");
g.cH1.resolve();bSJ(g.yP1.promise);g.yP1.reject(Error("Ha"));g.s6I.dispose();Promise.all(g.lpI).then(function(){var q;return _.D(function(Q){(q=g.qU)==null||q.dispose();g.qU=void 0;_.Wx(Q)})});
g.lpI=[];var u;(u=g.sy)==null||Mj5(u);bSJ(g.psn.promise);g.psn.reject(Error("Ha"))};
Hl.prototype.wfI=function(g){var u,q;(u=this.qU)==null||(q=u.wfI)==null||q.call(u,g)};
Hl.prototype.eaB=function(g,u){var q,Q,L;return(L=(q=this.qU)==null?void 0:(Q=q.eaB)==null?void 0:Q.call(q,g,u))!=null?L:Promise.resolve()};
var eYx=function(g,u){var q=g.xJm;g.xJm=function(){q();u()}},G8W=function(g,u){g.isDisposed()||(g.qU=u,g.s6I.update(u.ayz()),g.cH1.resolve(),g.yP1.resolve(void 0),g.xJm())};
Hl.prototype.handleError=function(g){if(!this.isDisposed()){this.hpM=g;this.cH1.resolve();var u,q;(q=(u=this.options).yzY)==null||q.call(u,g)}};
var $uW=function(g,u){u&&(Promise.all(g.lpI).then(function(){return void u.dispose()}),g.lpI=[])},Az=function(g,u){g.fX8=u;
var q,Q;(Q=(q=g.options).a37)==null||Q.call(q,u)},RY0=function(g){g.isDisposed()||(g.psn.resolve(),g.psn=new _.KU)},pWn=function(g,u,q,Q,L,E){Q=Q===void 0?PSi():Q;
L=L===void 0?Promise.resolve(void 0):L;var y,v,J,f,t,e,G,R,H,l,d,F;_.D(function(V){switch(V.nextAddress){case 1:return V.yield(0,3);case 3:v=null;if(!y){V.jumpTo(6);break}Az(g,7);_.b8(V,7);return V.yield(qV(y.snapshot({}),E.t0z,function(){return Promise.resolve("E:CTO")}),9);
case 9:v=V.yieldResult;_.Xx(V,6);break;case 7:_.rt(V),v="E:UCE";case 6:J=void 0,f=y?E.mS4:E.q4q,t=new KH(f,E.y91,E.c93,E.tR5),e=1;case 10:if(!(e<=E.maxAttempts)){V.jumpTo(12);break}if(e===1){V.jumpTo(13);break}Az(g,0);g.sy=new ZB(t.getValue(),E.z9Y,E.m6I);return V.yield(g.sy.promise,14);case 14:G=V.yieldResult,g.sy=void 0,G===1?(e=1,t.reset()):mQ8(t);case 13:_.b8(V,15);R=void 0;if(q){R=q;V.jumpTo(17);break}Az(g,5);H=Q.epR;return V.yield(qV(wW$(u,H,v),E.rEz,function(){return Promise.reject(Error("Ia"))}),
18);
case 18:R=V.yieldResult;case 17:return Az(g,3),V.yield(qV(s0a(Q,R),E.nId,function(){return Promise.reject(Error("Ja"))}),19);
case 19:return Az(g,8),V.yield(L,20);case 20:return l=new _.cl({challenge:R,cYB:g.options.cYB,yvz:g.options.yvz}),V.yield(qV(l.exH,E.kp1,function(){return Promise.reject(Error("Ka"))}),21);
case 21:J=l;V.jumpTo(12);break;case 15:d=_.rt(V),g.handleError(d),RY0(g);case 11:e++;V.jumpTo(10);break;case 12:if(g.isDisposed()){V.jumpTo(5);break}J&&(q=void 0,$uW(g,y),y=J,G8W(g,J),RY0(g));Az(g,2);g.sy=new ZB(E.bC4,E.z9Y,E.m6I);g.isPaused&&g.sy.pause();return V.yield(g.sy.promise,22);case 22:g.sy=void 0;if(g.isDisposed()){V.jumpTo(5);break}V.jumpTo(3);break;case 5:(F=y)==null||F.dispose(),_.Wx(V)}})};
Hl.prototype.ayz=function(){return this.s6I.share()};
var Ji5={bC4:432E5,z9Y:3E5,m6I:10,t0z:1E4,rEz:3E4,nId:3E4,kp1:6E4,q4q:1E3,mS4:6E4,y91:6E5,c93:.25,tR5:2,maxAttempts:10},ZB=function(g,u,q){var Q=this;this.endTimeMs=0;this.u6d=null;this.isPaused=!1;this.tick=function(){if(!Q.isPaused){var L=Q.endTimeMs-Date.now();L<=Q.s7O?(Q.u6d=null,Q.resolver(0)):Q.u6d=setTimeout(Q.tick,Math.min(L,Q.z9Y))}};
this.z9Y=u;this.s7O=q;this.promise=new Promise(function(L){Q.resolver=L});
ciX(this,g)},ciX=function(g,u){g.endTimeMs=Date.now()+u;
g.tick()};
ZB.prototype.pause=function(){this.isPaused||(this.isPaused=!0,fQW(this))};
ZB.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var Mj5=function(g){fQW(g);g.endTimeMs=0;g.isPaused=!1;g.resolver(1)},fQW=function(g){g.u6d&&(clearTimeout(g.u6d),g.u6d=null)};
ZB.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var H0b,j0h=(H0b=Math.imul)!=null?H0b:function(g,u){return g*u|0},Qx=[196,
200,224,18],lJ=function(g,u,q){q=q===void 0?[]:q;this.maxItems=g;this.bx=u===void 0?0:u;this.dH=q},Aia=function(g){var u=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!u)return new lJ(g);var q=u.split(",");if(q.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new lJ(g);u=q.slice(1);u.length===1&&u[0]===""&&(u=[]);q=Number(q[0]);return isNaN(q)||q<0||q>u.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new lJ(g)):new lJ(g,q,u)};
lJ.prototype.serialize=function(){return String(this.bx)+","+this.dH.join()};
lJ.prototype.insert=function(g,u){var q=void 0;if(this.dH[this.bx]!==g){var Q=this.dH.indexOf(g);Q!==-1?(this.dH.splice(Q,1),Q<this.bx&&this.bx--,this.dH.splice(this.bx,0,g)):(q=this.dH[this.bx],this.dH[this.bx]=g)}this.bx=(this.bx+1)%this.maxItems;g=pWF("iU5q-!O9@$",this.serialize());q&&g&&u(q);return g};
var Z00=function(g,u){this.a0W=u;try{var q=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Q){q=!1}q&&(this.index=Aia(g))},lQW=function(g,u,q,Q,L){var E=g.index?_.wJ(g.a0W,function(){return eY3(g.index,MjS(u),q,Q,L)},"W"):"u";
g.a0W.tYk(E)},IQH=function(g,u,q){var Q=_.N(g.index?_.wJ(g.a0W,function(){return G8f(MjS(u),q)},"R"):["u"]),L=Q.next().value;
Q=Q.next().value;g.a0W.diB(L);return Q};var i02={toString:function(g){var u=[],q=0;g-=-2147483648;u[q++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(g%52);for(g=Math.floor(g/52);g>0;)u[q++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(g%62),g=Math.floor(g/62);return u.join("")}};var duZ=function(g){g=CS$(g);for(var u=2654435769,q=2654435769,Q=314159265,L=g.length,E=L,y=0,v=function(){u-=q;u-=Q;u^=Q>>>13;q-=Q;q-=u;q^=u<<8;Q-=u;Q-=q;Q^=q>>>13;u-=q;u-=Q;u^=Q>>>12;q-=Q;q-=u;q^=u<<16;Q-=u;Q-=q;Q^=q>>>5;u-=q;u-=Q;u^=Q>>>3;q-=Q;q-=u;q^=u<<10;Q-=u;Q-=q;Q^=q>>>15};E>=12;E-=12,y+=12)u+=b0Z(g,y),q+=b0Z(g,y+4),Q+=b0Z(g,y+8),v();
Q+=L;switch(E){case 11:Q+=g[y+10]<<24;case 10:Q+=g[y+9]<<16;case 9:Q+=g[y+8]<<8;case 8:q+=g[y+7]<<24;case 7:q+=g[y+6]<<16;case 6:q+=g[y+5]<<8;case 5:q+=g[y+4];case 4:u+=g[y+3]<<24;case 3:u+=g[y+2]<<16;case 2:u+=g[y+1]<<8;case 1:u+=g[y]}v();return i02.toString(Q)},CS$=function(g){for(var u=[],q=0;q<g.length;q++)u.push(g.charCodeAt(q));
return u},b0Z=function(g,u){return g[u]+(g[u+1]<<8)+(g[u+2]<<16)+(g[u+3]<<24)};var IV=function(g){_.Lh.call(this);this.gU=g;this.sc7=new _.KU};
_.A(IV,_.Lh);var F9X=function(g,u){var q=setTimeout(function(){g.sc7.resolve()},u);
g.addOnDisposeCallback(function(){return void clearTimeout(q)})};
IV.prototype.rYn=function(g,u){var q=this.uk(g);u==null||u(q);return _.wJ(this.gU,function(){return _.om(q,2)},this.deH)};
var muR=function(g,u,q,Q){return _.wJ(g.gU,function(){return q?g.rYn(u,Q):g.uk(u,Q)},g.v1d)},aQ8=function(g,u,q,Q){IV.call(this,g);
this.iUU=u;this.gLV=q;this.v1d="m";this.deH="x";this.wVV=0;F9X(this,Q)};
_.A(aQ8,IV);aQ8.prototype.uk=function(g,u){var q=this;this.gU.wF(this.v1d);++this.wVV>=this.gLV&&this.sc7.resolve();var Q=g();g=_.wJ(this.gU,function(){return q.iUU(Q)},"C");
if(g===void 0)throw new BH(17,"YNJ:Undefined");if(!(g instanceof Uint8Array))throw new BH(18,"ODM:Invalid");u==null||u(g);return g};
var Vjo=function(g,u,q){IV.call(this,g);this.qe4=u;this.v1d="f";this.deH="z";F9X(this,q)};
_.A(Vjo,IV);Vjo.prototype.uk=function(){return this.qe4};
var XW$=function(g,u,q){IV.call(this,g);this.uDw=u;this.v1d="w";this.deH="z";F9X(this,q)};
_.A(XW$,IV);XW$.prototype.uk=function(){var g=this;return _.wJ(this.gU,function(){return _.Ub(g.uDw)},"d")};
XW$.prototype.rYn=function(){return this.uDw};
var ri2=function(g,u){IV.call(this,g);this.error=u;this.v1d="e";this.deH="y"};
_.A(ri2,IV);var W95=function(g,u){var q=(u(g.error.message)+":"+u(g.error.stack)).substring(0,2048);u=q.length+1;q=$uf(q);var Q=new Uint8Array(4+q.length);Q.set([42,u&127|128,u>>7,g.error.code]);Q.set(q,4);return Q};
ri2.prototype.uk=function(){if(this.xvc)return this.xvc;this.xvc=W95(this,function(g){return"_"+duZ(g)});
return W95(this,function(g){return g})};
var TuH=function(g,u,q){IV.call(this,g);this.knq=u;this.clientState=q;this.v1d="S";this.deH="q"};
_.A(TuH,IV);TuH.prototype.uk=function(){var g=Math.floor(Date.now()/1E3),u=[Math.random()*255,Math.random()*255],q=u.concat([this.knq&255,this.clientState],[g>>24&255,g>>16&255,g>>8&255,g&255]);g=new Uint8Array(2+q.length);g[0]=34;g[1]=q.length;g.set(q,2);q=g.subarray(2);for(var Q=u=u.length;Q<q.length;++Q)q[Q]^=q[Q%u];this.gU.mi3(this.clientState);return g};var hY5={vd5:3E4,sGb:2E4},iJ=function(g){_.Lh.call(this);var u=this;this.ocB=new _.KU;this.d4p=0;this.gL=void 0;this.state=2;this.vm=g.vm;this.wL=g.wL;this.oms=Object.assign({},hY5,g.oms||{});this.kg=g.vm.ayz();var q;this.onError=(q=g.onError)!=null?q:function(){};
this.pqR=g.pqR||!1;if(Yk8(g)){var Q=this.vm;this.y7N=function(){return tjX(Q).catch(function(y){y=u.reportError(new BH(u.i8?20:32,"TRG:Disposed",y));u.gL=y;var v;(v=u.i8)==null||v.dispose();u.i8=void 0;u.ocB.reject(y)})};
eYx(Q,function(){return void O0b(u)});
Q.fX8===2&&O0b(this)}else this.y7N=g.rkC,O0b(this);var L=this.kg.share();L.wF("o");var E=new kvn(L,"o");this.ocB.promise.then(function(){E.done();L.iK();L.dispose()},function(){return void L.dispose()});
this.addOnDisposeCallback(function(){u.i8?(u.i8.dispose(),u.i8=void 0):u.gL?u.kg.iK():(u.gL=u.reportError(new BH(32,"TNP:Disposed")),u.kg.iK(),u.ocB.reject(u.gL))});
_.z$(this,this.kg)};
_.A(iJ,_.Lh);iJ.prototype.pD7=function(){return this.ocB.promise};
var K9a=function(g,u){if(!(u instanceof BH))if(u instanceof _.tz){var q=Error(u.toString());q.stack=u.stack;u=new BH(11,"EBH:Error",q)}else u=new BH(12,"BSO:Unknown",u);return g.reportError(u)},O0b=function(g){var u,q,Q,L,E,y,v,J,f,t,e,G,R,H,l;
return _.D(function(d){switch(d.nextAddress){case 1:u=void 0;g.d4p++;q=new _.KU;g.vm instanceof Hl&&g.vm.lpI.push(q.promise);if(!g.pqR){d.jumpTo(2);break}Q=new _.KU;setTimeout(function(){return void Q.resolve()});
return d.yield(Q.promise,2);case 2:return L=g.kg.share(),_.b8(d,4,5),g.state=5,E={},y=[],d.yield(qV(g.vm.snapshot({rI:E,g3M:y}),g.oms.sGb,function(){return Promise.reject(new BH(15,"MDA:Timeout"))}),7);
case 7:v=d.yieldResult;if(g.isDisposed())throw new BH(g.i8?20:32,"MDA:Disposed");J=y[0];g.state=6;return d.yield(qV(xux(g.wL,v),g.oms.vd5,function(){return Promise.reject(new BH(10,"BWB:Timeout"))}),8);
case 8:f=d.yieldResult;if(g.isDisposed())throw new BH(g.i8?20:32,"BWB:Disposed");g.state=7;u=_.wJ(L,function(){var V=Bu$(g,f,q,J);V.sc7.promise.then(function(){return void g.y7N()});
return V},"i");
case 5:_.Fr(d);L.dispose();_.Xr(d,6);break;case 4:t=_.rt(d);(e=u)==null||e.dispose();if(!g.gL){G=K9a(g,t);q.resolve();var F;if(F=g.vm instanceof Hl&&g.d4p<2)a:if(t instanceof BH)F=t.code!==32&&t.code!==20&&t.code!==10;else{if(t instanceof _.tz)switch(t.code){case 2:case 13:case 14:case 4:break;default:F=!1;break a}F=!0}if(F)return R=(1+Math.random()*.25)*(g.i8?6E4:1E3),H=setTimeout(function(){return void g.y7N()},R),g.addOnDisposeCallback(function(){return void clearTimeout(H)}),d.return();
g.gL=G}L.logError(g.i8?13:14);g.ocB.reject(g.gL);return d.return();case 6:g.state=8,g.d4p=0,(l=g.i8)==null||l.dispose(),g.i8=u,g.ocB.resolve(),_.Wx(d)}})},Bu$=function(g,u,q,Q){var L=hKa(u,2)*1E3;
if(L<=0)throw new BH(31,"TTM:Invalid");if(_.J2(u,4))return new XW$(g.kg,_.J2(u,4),L);if(!hKa(u,3))return new Vjo(g.kg,H9R(_.Lp(u,1)),L);if(!Q)throw new BH(4,"PMD:Undefined");Q=Q(H9R(_.Lp(u,1)));if(typeof Q!=="function")throw new BH(16,"APF:Failed");g.rqs=Math.floor((Date.now()+L)/1E3);g=new aQ8(g.kg,Q,hKa(u,3),L);g.addOnDisposeCallback(function(){return void q.resolve()});
return g};
iJ.prototype.uk=function(g){return zYb(this,Object.assign({},g),!1)};
iJ.prototype.rYn=function(g){return zYb(this,Object.assign({},g),!0)};
iJ.prototype.tRA=function(g){if(g>150)return!1;try{return this.cache=new Z00(g,this.kg),!0}catch(u){return this.reportError(new BH(22,"GBJ:init",u)),!1}};
iJ.prototype.reportError=function(g){this.kg.logError(g.code);this.onError(g);return g};
var nQ0=function(g,u){u=u instanceof BH?u:new BH(5,"TVD:error",u);return g.reportError(u)},zYb=function(g,u,q){try{if(g.isDisposed())throw new BH(21,"BNT:disposed");
if(!g.i8&&g.gL)throw g.gL;var Q,L;return(L=(Q=k8x(g,u,q))!=null?Q:Sko(g,u,q))!=null?L:oQi(g,u,q)}catch(E){if(!u.gGY)throw nQ0(g,E);return UuW(g,q,E)}},k8x=function(g,u,q){var Q;
return(Q=g.i8)==null?void 0:muR(Q,function(){return gOR(g,u)},q,function(L){var E;
if(g.i8 instanceof aQ8&&((E=u.c6)==null?0:E.zQz))try{var y;(y=g.cache)==null||lQW(y,gOR(g,u),L,u.c6.ySY,g.rqs-120)}catch(v){g.reportError(new BH(24,"ELX:write",v))}})},Sko=function(g,u,q){var Q;
if((Q=u.c6)!=null&&Q.nAB)try{var L,E=(L=g.cache)==null?void 0:IQH(L,gOR(g,u),u.c6.ySY);return E?q?_.wJ(g.kg,function(){return _.om(E,2)},"a"):E:void 0}catch(y){g.reportError(new BH(23,"RXO:read",y))}},oQi=function(g,u,q){var Q={stack:[],
error:void 0,hasError:!1};try{if(!u.w28)throw new BH(29,"SDF:notready");return muR(ZoW(Q,new TuH(g.kg,0,g.state)),function(){return gOR(g,u)},q)}catch(L){Q.error=L,Q.hasError=!0}finally{lHW(Q)}},UuW=function(g,u,q){var Q={stack:[],
error:void 0,hasError:!1};try{var L=nQ0(g,q);return muR(ZoW(Q,new ri2(g.kg,L)),function(){return[]},u)}catch(E){Q.error=E,Q.hasError=!0}finally{lHW(Q)}},gOR=function(g,u){return u.xMB?u.xMB:u.rI?_.wJ(g.kg,function(){return u.xMB=$uf(u.rI)},"c"):[]},Yk8=function(g){return XW(function(u){if(!uX(u))return!1;
for(var q=_.N(Object.entries(g)),Q=q.next();!Q.done;Q=q.next()){var L=_.N(Q.value);Q=L.next().value;L=L.next().value;if(!(Q in u)){if(L.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!L(u[Q]))return!1}return!0})}({vm:function(g){return XW(function(u){return u instanceof g})}(Hl)},"");var u7o=function(){var g=_.TN();this.JSC$10221_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",W8("cookie_enabled"),W8("cookie_3p_enabled"),_.hk("browser"))};
u7o.prototype.increment=function(g,u,q){this.JSC$10221_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",g,u,q)};
var rAM=function(){var g=_.TN();this.JSC$10245_streamzService=g;g.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",T$("tick"),W8("from_st_cookie"))};
rAM.prototype.increment=function(g,u){this.JSC$10245_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",g,u)};
var qr0=function(){var g=_.TN();this.JSC$10251_streamzService=g;g.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.hk("status"))};
qr0.prototype.increment=function(g){this.JSC$10251_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",g)};
var QI8=function(){var g=_.TN();this.JSC$10254_streamzService=g;g.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.hk("stage"),W8("is_using_ytd_player"),W8("has_expandable_tiles"))};
QI8.prototype.increment=function(g,u,q){this.JSC$10254_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",g,u,q)};
var LkR=function(){var g=_.TN();this.JSC$10257_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/response_signature",_.hk("check_status"))};
LkR.prototype.increment=function(g){this.JSC$10257_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/response_signature",g)};
var EOW=function(){var g=_.TN();this.JSC$10260_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.hk("sig"),T$("de"))};
EOW.prototype.increment=function(g,u){this.JSC$10260_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/e_sig_log",g,u)};
var Pt8=function(){var g=_.TN();this.JSC$10263_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.hk("sig"),T$("de"))};
Pt8.prototype.increment=function(g,u){this.JSC$10263_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/e_sig_en",g,u)};
_.NN0=function(){var g=_.TN();this.JSC$10266_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.hk("action"))};
_.NN0.prototype.increment=function(g){this.JSC$10266_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/enforcement_intent",g)};var CY=window;var sIn=(new Date).getTime();_.pH.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.pH.createSet("action","cite","data","formaction","href","manifest","poster","src");var y65=function(g){this.servicePromise_=g;g.then((0,_.EH)(function(){},this),function(){},this)},vOi=function(g,u,q){g.servicePromise_.then(function(Q){var L=Q[u];
if(!L)throw Error("La`"+u);return L.apply(Q,q)})},J6a=function(g,u,q){for(var Q=Array(arguments.length-2),L=2;L<arguments.length;L++)Q[L-2]=arguments[L];
L=DTi(g,u).then(function(E){return E.apply(null,Q)},function(E){E=Error("Ma`"+u+"`"+g+"`"+E,{cause:E});
delete pvx[u];return _.NY(E)});
return new y65(L)},pvx={},DTi=function(g,u){var q=pvx[u];
if(q)return q;q=(q=_.ri(u))?_.BX(q):(new _.Ez(function(Q,L){var E=(new fN(document)).createElement("SCRIPT");E.async=!0;_.jx(E,_.r0(w8R(g)));E.onload=E.onreadystatechange=function(){E.readyState&&E.readyState!="loaded"&&E.readyState!="complete"||Q()};
E.onerror=function(y){L(Error("Na`"+u+"`"+g,{cause:y}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(E)})).then(function(){var Q=_.ri(u);
if(!Q)throw Error("Oa`"+u+"`"+g);return Q});
return pvx[u]=q};var jI$={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Ma0=function(){var g=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=RYb(function(){return _.D(function(u){if(u.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?u.return(Promise.resolve()):u.yield(fvb(g),2);g.rsaForList.length>
0&&document.addEventListener("click",g.requestAccessForHelpPanel);_.Wx(u)})});
this.requestAccessForHelpPanel=function(){if(!(g.rsaForPromises.length>0)){for(var u=_.N(g.rsaForList),q=u.next();!q.done;q=u.next()){q=q.value;try{g.rsaForPromises.push(document.requestStorageAccessFor(q))}catch(Q){}}Promise.all(g.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){g.reset()})}}};
Ma0.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var fvb=function(g){var u,q,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:u=_.N(Object.values(jI$)),q=u.next();case 2:if(q.done){E.jumpTo(0);break}Q=q.value;_.b8(E,5);return E.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:Q}),7);case 7:L=E.yieldResult;L.state!=="granted"&&g.rsaForList.push(Q);_.Xx(E,3);break;case 5:_.rt(E);E.jumpTo(0);break;case 3:q=u.next(),E.jumpTo(2)}})};(new Ma0).initialize();var taR=function(g){this.JSC$10280_loader_=g};
taR.prototype.startHelp=function(g){vOi(this.JSC$10280_loader_,"startHelp",arguments)};
taR.prototype.JSC$10282_loadChatSupport=function(g){vOi(this.JSC$10280_loader_,"loadChatSupport",arguments)};
var GXX=function(g,u){u=u||{};g=J6a(eMa,"help.service.Lazy.create",g,{apiKey:u.apiKey||u.apiKey,asxUiUri:u.asxUiUri||u.asxUiUri,environment:u.environment||u.environment,flow:u.flow||u.flow,frdProductData:u.frdProductData||u.frdProductData,frdProductDataSerializedJspb:u.frdProductDataSerializedJspb||u.frdProductDataSerializedJspb,helpCenterPath:u.helpCenterPath||u.helpCenterPath,locale:u.locale||u.locale||"en-US".replace(/-/g,"_"),nonce:u.nonce||u.nonce,productData:u.productData||u.productData,receiverUri:u.receiverUri||
u.receiverUri,renderApiUri:u.renderApiUri||u.renderApiUri,theme:u.theme||u.theme,window:u.window||u.window});return new taR(g)},eMa=new Cw(f7h,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var $T2=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A($T2,_.fv);var RM2=_.bO($T2);var wvW=[0,_.a6,i$,FGZ];_.c65=new function(g,u,q,Q){this.configType=g;this.flagName=q;this.defaultValue=Q;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 A6$=function(){this.retriever=_.Bk().resolve(HB0)};_.Xa={get payments(){return window.payments}};ciK(Node);ciK(Element);var ZB$=ciK(HTMLElement);ciK(SVGElement);var lv0,IvW,Fy,iB8;lv0=function(g){return typeof g.className=="string"?g.className:g.getAttribute&&g.getAttribute("class")||""};
IvW=function(g){return g.classList?g.classList:lv0(g).match(/\S+/g)||[]};
_.bJ=function(g,u){typeof g.className=="string"?g.className=u:g.setAttribute&&g.setAttribute("class",u)};
_.dJ=function(g,u){return g.classList?g.classList.contains(u):_.WS(IvW(g),u)};
_.Za=function(g,u){if(g.classList)g.classList.add(u);else if(!_.dJ(g,u)){var q=lv0(g);_.bJ(g,q+(q.length>0?" "+u:u))}};
Fy=function(g,u){if(g.classList)Array.prototype.forEach.call(u,function(L){_.Za(g,L)});
else{var q={};Array.prototype.forEach.call(IvW(g),function(L){q[L]=!0});
Array.prototype.forEach.call(u,function(L){q[L]=!0});
u="";for(var Q in q)u+=u.length>0?" "+Q:Q;_.bJ(g,u)}};
_.Ao=function(g,u){g.classList?g.classList.remove(u):_.dJ(g,u)&&_.bJ(g,Array.prototype.filter.call(IvW(g),function(q){return q!=u}).join(" "))};
iB8=function(g,u){g.classList?Array.prototype.forEach.call(u,function(q){_.Ao(g,q)}):_.bJ(g,Array.prototype.filter.call(IvW(g),function(q){return!_.WS(u,q)}).join(" "))};var Ct$=function(g){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=g.document},Fk$=function(g,u){bBZ(g);
var q=document.createElement("div"),Q;(Q=u.parentNode)==null||Q.insertBefore(q,u);q.tabIndex=0;q.id="fc-focus-trap-pre-div";q=document.createElement("div");var L;(L=u.parentNode)==null||L.insertBefore(q,u.nextSibling);q.tabIndex=0;q.id="fc-focus-trap-post-div";var E=dTZ(g,u),y=dTZ(g,u,!0);E&&y&&(g.focusChangeHandler=function(){var v=g.document.activeElement;if(v)if(_.a2(u,v))g.previouslyFocusedElement=v;else if(v===g.document.activeElement)switch(g.previouslyFocusedElement){case E:y.focus();g.previouslyFocusedElement=
y;break;default:E.focus(),g.previouslyFocusedElement=E}},g.document.addEventListener("focus",g.focusChangeHandler,!0),g.document.addEventListener("focusin",g.focusChangeHandler))},bBZ=function(g){g.focusChangeHandler&&(document.removeEventListener("focus",g.focusChangeHandler,!0),document.removeEventListener("focusin",g.focusChangeHandler),g.focusChangeHandler=null);
var u;(u=document.getElementById("fc-focus-trap-pre-div"))==null||u.remove();var q;(q=document.getElementById("fc-focus-trap-post-div"))==null||q.remove()},mTR=function(g,u,q,Q,L){q=q===void 0?!0:q;
var E;L=(E=L===void 0?null:L)!=null?E:dTZ(g,u,Q===void 0?!1:Q);L!==null&&(L.focus(),q&&Fk$(g,u))};
Ct$.prototype.disableButton=function(g,u){u=u===void 0?null:u;g.disabled=!0;u&&_.Za(g,u)};
var dTZ=function(g,u,q){q=q===void 0?!1:q;if(mYb(u)&&!q)return u;var Q=q?[].slice.call(u.children,0).reverse():u.children;Q=_.N(Q);for(var L=Q.next();!L.done;L=Q.next())if(L=L.value,ZB$(L)&&(L=dTZ(g,L,q)))return L;return mYb(u)&&q?u:null};var av5=function(g){this.originalBodyOverflow="";this.JSC$10307_domHelper=LH(g);var u;this.isScrollingEnabled=((u=this.JSC$10307_domHelper.JSC$9633_document_.body)==null?void 0:u.style.overflow)!=="hidden"};
av5.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10307_domHelper.JSC$9633_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.TK(_.PD,_.Lh);_.P=_.PD.prototype;_.P.JSC$10310_id_=0;_.P.disposeInternal=function(){_.PD.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10308_listener_;delete this.handler_};
_.P.start=function(g){this.stop();this.JSC$10310_id_=MP(this.callback_,g!==void 0?g:this.JSC$10308_interval_)};
_.P.stop=function(){this.isActive()&&_.Qq.clearTimeout(this.JSC$10310_id_);this.JSC$10310_id_=0};
_.P.fire=function(){this.stop();this.JSC$10310_doAction_()};
_.P.isActive=function(){return this.JSC$10310_id_!=0};
_.P.JSC$10310_doAction_=function(){this.JSC$10310_id_=0;this.JSC$10308_listener_&&this.JSC$10308_listener_.call(this.handler_)};_.TK(_.NV,_.Lh);var VaZ=[];_.NV.prototype.listen=function(g,u,q,Q){Array.isArray(u)||(u&&(VaZ[0]=u.toString()),u=VaZ);for(var L=0;L<u.length;L++){var E=_.Z1(g,u[L],q||this.handleEvent,Q||!1,this.handler_||this);if(!E)break;this.JSC$10311_keys_[E.key]=E}return this};
_.NV.prototype.listenOnce=function(g,u,q,Q){return Xvn(this,g,u,q,Q)};
var Xvn=function(g,u,q,Q,L,E){if(Array.isArray(q))for(var y=0;y<q.length;y++)Xvn(g,u,q[y],Q,L,E);else{u=fh(u,q,Q||g.handleEvent,L,E||g.handler_||g);if(!u)return g;g.JSC$10311_keys_[u.key]=u}return g};
_.NV.prototype.unlisten=function(g,u,q,Q,L){if(Array.isArray(u))for(var E=0;E<u.length;E++)this.unlisten(g,u[E],q,Q,L);else if(g=CSq(g,u,q||this.handleEvent,_.zM(Q)?!!Q.capture:!!Q,L||this.handler_||this))Qb(g),delete this.JSC$10311_keys_[g.key];return this};
_.NV.prototype.removeAll=function(){_.pH.forEach(this.JSC$10311_keys_,function(g,u){this.JSC$10311_keys_.hasOwnProperty(u)&&Qb(g)},this);
this.JSC$10311_keys_={}};
_.NV.prototype.disposeInternal=function(){_.NV.superClass_.disposeInternal.call(this);this.removeAll()};
_.NV.prototype.handleEvent=function(){throw Error("Pa");};_.TK(sH,_.Lh);sH.prototype.connect=function(g){g&&g()};
sH.prototype.isConnected=function(){return!0};
sH.prototype.registerService=function(g,u,q){this.services_[g]={callback:u,objectPayload:!!q}};
sH.prototype.getService=function(g,u){var q=this.services_[g];return q?q:this.defaultService_?{callback:_.uH(this.defaultService_,g),objectPayload:_.zM(u)}:null};
var r60=function(g,u){if(u&&typeof g==="string")try{return JSON.parse(g)}catch(q){return null}else if(!u&&typeof g!=="string")return _.ek(g);return g};
sH.prototype.disposeInternal=function(){sH.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 D1=function(g,u){this.sequence_=[];this.onCancelFunction_=g;this.defaultScope_=u||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};
D1.prototype.cancel=function(g){if(this.fired_)this.result_ instanceof D1&&this.result_.cancel();else{if(this.parent_){var u=this.parent_;delete this.parent_;g?u.cancel(g):(u.branches_--,u.branches_<=0&&u.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new m2(this))}};
D1.prototype.continue_=function(g,u){this.blocked_=!1;Wko(this,g,u)};
var Wko=function(g,u,q){g.fired_=!0;g.result_=q;g.hadError_=!u;TNR(g)},Yra=function(g){if(g.fired_){if(!g.silentlyCanceled_)throw new hMx(g);
g.silentlyCanceled_=!1}};
D1.prototype.callback=function(g){Yra(this);Wko(this,!0,g)};
D1.prototype.errback=function(g){Yra(this);Wko(this,!1,g)};
var lQf=function(g,u,q){aV(g,u,null,q)};
D1.prototype.finally=function(g){var u=this;return OBn(new Promise(function(q,Q){aV(u,function(L){g();q(L)},function(L){g();
Q(L)})}))};
var aV=function(g,u,q,Q){var L=g.fired_;L||(u===q?u=q=pY(u):(u=pY(u),q=pY(q)));g.sequence_.push([u,q,Q]);L&&TNR(g)};
D1.prototype.then=function(g,u,q){var Q,L,E=new _.Ez(function(y,v){L=y;Q=v});
aV(this,L,function(y){y instanceof m2?E.cancel():Q(y);return Kkb},this);
return E.then(g,u,q)};
JMi(D1);var Z0b=function(g,u){u instanceof D1?lQf(g,(0,_.EH)(u.branch,u)):lQf(g,function(){return u})};
D1.prototype.branch=function(g){var u=new D1;aV(this,u.callback,u.errback,u);g&&(u.parent_=this,this.branches_++);return u};
D1.prototype.isError=function(g){return g instanceof Error};
var xTa=function(g){return TX(g.sequence_,function(u){return typeof u[1]==="function"})},Kkb={},TNR=function(g){if(g.unhandledErrorId_&&g.fired_&&xTa(g)){var u=g.unhandledErrorId_,q=BN2[u];
q&&(_.Qq.clearTimeout(q.JSC$10328_id_),delete BN2[u]);g.unhandledErrorId_=0}g.parent_&&(g.parent_.branches_--,delete g.parent_);u=g.result_;for(var Q=q=!1;g.sequence_.length&&!g.blocked_;){var L=g.sequence_.shift(),E=L[0],y=L[1];L=L[2];if(E=g.hadError_?y:E)try{var v=E.call(L||g.defaultScope_,u);v===Kkb&&(v=void 0);v!==void 0&&(g.hadError_=g.hadError_&&(v==u||g.isError(v)),g.result_=u=v);if(j45(u)||typeof _.Qq.Promise==="function"&&u instanceof _.Qq.Promise)Q=!0,g.blocked_=!0}catch(J){u=J,g.hadError_=
!0,xTa(g)||(q=!0)}}g.result_=u;Q&&(v=(0,_.EH)(g.continue_,g,!0),Q=(0,_.EH)(g.continue_,g,!1),u instanceof D1?(aV(u,v,Q),u.blocking_=!0):u.then(v,Q));q&&(u=new zMi(u),BN2[u.JSC$10328_id_]=u,g.unhandledErrorId_=u.JSC$10328_id_)},OBn=function(g){var u=new D1;
g.then(function(q){u.callback(q)},function(q){u.errback(q)});
return u},hMx=function(){_.gq.call(this)};
_.TK(hMx,_.gq);hMx.prototype.message="Deferred has already fired";hMx.prototype.name="AlreadyCalledError";var m2=function(){_.gq.call(this)};
_.TK(m2,_.gq);m2.prototype.message="Deferred was canceled";m2.prototype.name="CanceledError";var zMi=function(g){this.JSC$10328_id_=_.Qq.setTimeout((0,_.EH)(this.throwError,this),0);this.JSC$10328_error_=g};
zMi.prototype.throwError=function(){delete BN2[this.JSC$10328_id_];throw this.JSC$10328_error_;};
var BN2={};var nOn={1:"NativeMessagingTransport"},i0M=["pu","lru","pru","lpu","ppu"];_.TK(yx,_.Lh);yx.prototype.transportType=0;yx.prototype.getWindow=function(){return this.JSC$10331_domHelper_.getWindow()};
yx.prototype.getName=function(){return nOn[String(this.transportType)]||""};_.TK(ph,yx);ph.prototype.peerProtocolVersion_=null;ph.prototype.initialized_=!1;ph.prototype.transportType=1;var kX5={};ph.prototype.sendTimerId_=0;
var UT0=function(g){var u=g.event_.data;if(typeof u!=="string")return!1;var q=u.indexOf("|"),Q=u.indexOf(":");if(q==-1||Q==-1)return!1;var L=u.substring(0,q);q=u.substring(q+1,Q);u=u.substring(Q+1);if(Q=ji[L])return Q.xpcDeliver(q,u,g.event_.origin),!0;Q=Sr8(u)[0];for(var E in ji){var y=ji[E];if(Aiq(y)==1&&!y.isConnected()&&q=="tp"&&(Q=="SETUP"||Q=="SETUP_NTPV2")&&oOZ(y,g.event_.origin))return delete ji[y.name],y.name=L,ji[L]=y,y.xpcDeliver(q,u),!0}return!1},g1H=function(g){g.protocolVersion_!=2||
g.peerProtocolVersion_!=null&&g.peerProtocolVersion_!=2||g.send("tp","SETUP_NTPV2,"+g.endpointId_);
g.peerProtocolVersion_!=null&&g.peerProtocolVersion_!=1||g.send("tp","SETUP")},uUx=function(g,u){if(g.protocolVersion_!=2||g.peerProtocolVersion_!=null&&g.peerProtocolVersion_!=2||u!=2){if(g.peerProtocolVersion_!=null&&g.peerProtocolVersion_!=1||u!=1)return;
g.send("tp","SETUP_ACK")}else g.send("tp","SETUP_ACK_NTPV2");g.setupAckSent_.fired_||g.setupAckSent_.callback(!0)},qzW=function(g,u){u>g.peerProtocolVersion_&&(g.peerProtocolVersion_=u);
g.peerProtocolVersion_==1&&(g.setupAckSent_.fired_||g.oneSidedHandshake_||g.setupAckSent_.callback(!0),g.peerEndpointId_=null)};
_.P=ph.prototype;_.P.connect=function(){var g=this.getWindow(),u=_.ku(g),q=kX5[u];typeof q!=="number"&&(q=0);q==0&&_.Z1(g.postMessage?g:g.document,"message",UT0,!1,ph);kX5[u]=q+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.P.maybeAttemptToConnect_=function(){var g=Aiq(this.JSC$10334_channel_)==0;this.oneSidedHandshake_&&g||this.JSC$10334_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),g1H(this))};
_.P.send=function(g,u){var q=this.JSC$10334_channel_.peerWindowObject_;q&&(this.send=function(Q,L){var E=this,y=this.JSC$10334_channel_.name;this.sendTimerId_=MP(function(){E.sendTimerId_=0;try{var v=q.postMessage?q:q.document;v.postMessage&&v.postMessage(y+"|"+Q+":"+L,E.peerHostname_)}catch(J){}},0)},this.send(g,u))};
_.P.notifyConnected_=function(){var g=this.JSC$10334_channel_,u=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;g.isConnected()||g.connectionDelay_&&g.connectionDelay_.isActive()||(g.state_=2,_.Fo(g.connectionDelay_),u!==void 0?(g.connectionDelay_=new _.PD(g.connectCb_,u),g.connectionDelay_.start()):(g.connectionDelay_=null,g.connectCb_()))};
_.P.disposeInternal=function(){if(this.initialized_){var g=this.getWindow(),u=_.ku(g),q=kX5[u];kX5[u]=q-1;q==1&&_.DB(g.postMessage?g:g.document,"message",UT0,!1,ph)}this.sendTimerId_&&(_.Qq.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Fo(this.JSC$10334_eventHandler_);delete this.JSC$10334_eventHandler_;_.Fo(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10334_connected_.cancel();delete this.JSC$10334_connected_;delete this.send;ph.superClass_.disposeInternal.call(this)};
var Sr8=function(g){g=g.split(",");g[1]=g[1]||null;return g};var Lnx;_.VV=function(g){if(g.getValues&&typeof g.getValues=="function")return g.getValues();if(typeof Map!=="undefined"&&g instanceof Map||typeof Set!=="undefined"&&g instanceof Set)return Array.from(g.values());if(typeof g==="string")return g.split("");if(_.xu(g)){for(var u=[],q=g.length,Q=0;Q<q;Q++)u.push(g[Q]);return u}return _.pH.getValues(g)};
_.Qon=function(g){if(g.getKeys&&typeof g.getKeys=="function")return g.getKeys();if(!g.getValues||typeof g.getValues!="function"){if(typeof Map!=="undefined"&&g instanceof Map)return Array.from(g.keys());if(!(typeof Set!=="undefined"&&g instanceof Set)){if(_.xu(g)||typeof g==="string"){var u=[];g=g.length;for(var q=0;q<g;q++)u.push(q);return u}return _.pH.getKeys(g)}}};
Lnx=function(g,u,q){if(g.forEach&&typeof g.forEach=="function")g.forEach(u,q);else if(_.xu(g)||typeof g==="string")Array.prototype.forEach.call(g,u,q);else for(var Q=_.Qon(g),L=_.VV(g),E=L.length,y=0;y<E;y++)u.call(q,L[y],Q&&Q[y],g)};var z_Z,OO,xk,D_0,E1$,N9R,PDx,v18,so2;
_.Ir=function(g,u){this.JSC$10339_domain_=this.userInfo_=this.scheme_="";this.JSC$10339_port_=null;this.fragment_=this.JSC$10339_path_="";this.JSC$10339_ignoreCase_=!1;var q;g instanceof _.Ir?(this.JSC$10339_ignoreCase_=u!==void 0?u:g.JSC$10339_ignoreCase_,_.Xy(this,g.scheme_),this.userInfo_=g.userInfo_,_.rJ(this,g.JSC$10339_domain_),_.Wl(this,g.JSC$10339_port_),_.TA(this,g.getPath()),_.hz(this,g.JSC$10339_queryData_.clone()),_.Yk(this,g.fragment_)):g&&(q=_.Wq(String(g)))?(this.JSC$10339_ignoreCase_=
!!u,_.Xy(this,q[1]||"",!0),this.userInfo_=OO(q[2]||""),_.rJ(this,q[3]||"",!0),_.Wl(this,q[4]),_.TA(this,q[5]||"",!0),_.hz(this,q[6]||"",!0),_.Yk(this,q[7]||"",!0)):(this.JSC$10339_ignoreCase_=!!u,this.JSC$10339_queryData_=new _.KY(null,this.JSC$10339_ignoreCase_))};
_.Ir.prototype.toString=function(){var g=[],u=this.scheme_;u&&g.push(xk(u,E1$,!0),":");var q=this.JSC$10339_domain_;if(q||u=="file")g.push("//"),(u=this.userInfo_)&&g.push(xk(u,E1$,!0),"@"),g.push(_.nO(q).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),q=this.JSC$10339_port_,q!=null&&g.push(":",String(q));if(q=this.getPath())this.JSC$10339_domain_&&q.charAt(0)!="/"&&g.push("/"),g.push(xk(q,q.charAt(0)=="/"?PDx:N9R,!0));(q=this.JSC$10339_queryData_.toString())&&g.push("?",q);(q=this.fragment_)&&g.push("#",
xk(q,so2));return g.join("")};
_.Ir.prototype.resolve=function(g){var u=this.clone(),q=!!g.scheme_;q?_.Xy(u,g.scheme_):q=!!g.userInfo_;q?u.userInfo_=g.userInfo_:q=!!g.JSC$10339_domain_;q?_.rJ(u,g.JSC$10339_domain_):q=g.JSC$10339_port_!=null;var Q=g.getPath();if(q)_.Wl(u,g.JSC$10339_port_);else if(q=!!g.JSC$10339_path_){if(Q.charAt(0)!="/")if(this.JSC$10339_domain_&&!this.JSC$10339_path_)Q="/"+Q;else{var L=u.getPath().lastIndexOf("/");L!=-1&&(Q=u.getPath().slice(0,L+1)+Q)}L=Q;if(L==".."||L==".")Q="";else if(_.pZ(L,"./")||_.pZ(L,
"/.")){Q=_.N3(L,"/");L=L.split("/");for(var E=[],y=0;y<L.length;){var v=L[y++];v=="."?Q&&y==L.length&&E.push(""):v==".."?((E.length>1||E.length==1&&E[0]!="")&&E.pop(),Q&&y==L.length&&E.push("")):(E.push(v),Q=!0)}Q=E.join("/")}else Q=L}q?_.TA(u,Q):q=g.JSC$10339_queryData_.toString()!=="";q?_.hz(u,g.JSC$10339_queryData_.clone()):q=!!g.fragment_;q&&_.Yk(u,g.fragment_);return u};
_.Ir.prototype.clone=function(){return new _.Ir(this)};
_.Xy=function(g,u,q){g.scheme_=q?OO(u,!0):u;g.scheme_&&(g.scheme_=g.scheme_.replace(/:$/,""));return g};
_.rJ=function(g,u,q){g.JSC$10339_domain_=q?OO(u,!0):u;return g};
_.Wl=function(g,u){if(u){u=Number(u);if(isNaN(u)||u<0)throw Error("Qa`"+u);g.JSC$10339_port_=u}else g.JSC$10339_port_=null;return g};
_.Ir.prototype.getPath=function(){return this.JSC$10339_path_};
_.TA=function(g,u,q){g.JSC$10339_path_=q?OO(u,!0):u;return g};
_.hz=function(g,u,q){u instanceof _.KY?(g.JSC$10339_queryData_=u,y_a(g.JSC$10339_queryData_,g.JSC$10339_ignoreCase_)):(q||(u=xk(u,v18)),g.JSC$10339_queryData_=new _.KY(u,g.JSC$10339_ignoreCase_));return g};
_.WD=function(g,u,q){g.JSC$10339_queryData_.set(u,q);return g};
_.rc=function(g,u){return g.JSC$10339_queryData_.get(u)};
_.Yk=function(g,u,q){g.fragment_=q?OO(u):u;return g};
_.Bl=function(g){_.WD(g,"zx",Vx());return g};
_.X_=function(g,u){return g instanceof _.Ir?g.clone():new _.Ir(g,u)};
z_Z=function(g,u){g instanceof _.Ir||(g=_.X_(g));u instanceof _.Ir||(u=_.X_(u));return g.resolve(u)};
OO=function(g,u){return g?u?decodeURI(g.replace(/%25/g,"%2525")):decodeURIComponent(g):""};
xk=function(g,u,q){return typeof g==="string"?(g=encodeURI(g).replace(u,D_0),q&&(g=g.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),g):null};
D_0=function(g){g=g.charCodeAt(0);return"%"+(g>>4&15).toString(16)+(g&15).toString(16)};
E1$=/[#\/\?@]/g;N9R=/[#\?:]/g;PDx=/[#\?]/g;v18=/[#\?@]/g;so2=/#/g;_.KY=function(g,u){this.count_=this.keyMap_=null;this.encodedQuery_=g||null;this.JSC$10340_ignoreCase_=!!u};
_.zA=function(g){g.keyMap_||(g.keyMap_=new Map,g.count_=0,g.encodedQuery_&&SUm(g.encodedQuery_,function(u,q){g.add(zW(u),q)}))};
_.P=_.KY.prototype;_.P.getCount=function(){_.zA(this);return this.count_};
_.P.add=function(g,u){_.zA(this);this.encodedQuery_=null;g=nY(this,g);var q=this.keyMap_.get(g);q||this.keyMap_.set(g,q=[]);q.push(u);this.count_+=1;return this};
_.P.remove=function(g){_.zA(this);g=nY(this,g);return this.keyMap_.has(g)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(g).length,this.keyMap_.delete(g)):!1};
_.P.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.P.isEmpty=function(){_.zA(this);return this.count_==0};
_.P.containsKey=function(g){_.zA(this);g=nY(this,g);return this.keyMap_.has(g)};
_.P.containsValue=function(g){var u=this.getValues();return _.WS(u,g)};
_.P.forEach=function(g,u){_.zA(this);this.keyMap_.forEach(function(q,Q){q.forEach(function(L){g.call(u,L,Q,this)},this)},this)};
_.P.getKeys=function(){_.zA(this);for(var g=Array.from(this.keyMap_.values()),u=Array.from(this.keyMap_.keys()),q=[],Q=0;Q<u.length;Q++)for(var L=g[Q],E=0;E<L.length;E++)q.push(u[Q]);return q};
_.P.getValues=function(g){_.zA(this);var u=[];if(typeof g==="string")this.containsKey(g)&&(u=u.concat(this.keyMap_.get(nY(this,g))));else{g=Array.from(this.keyMap_.values());for(var q=0;q<g.length;q++)u=u.concat(g[q])}return u};
_.P.set=function(g,u){_.zA(this);this.encodedQuery_=null;g=nY(this,g);this.containsKey(g)&&(this.count_-=this.keyMap_.get(g).length);this.keyMap_.set(g,[u]);this.count_+=1;return this};
_.P.get=function(g,u){if(!g)return u;g=this.getValues(g);return g.length>0?String(g[0]):u};
_.p6n=function(g,u,q){g.remove(u);q.length>0&&(g.encodedQuery_=null,g.keyMap_.set(nY(g,u),_.Ob(q)),g.count_+=q.length)};
_.KY.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var g=[],u=Array.from(this.keyMap_.keys()),q=0;q<u.length;q++){var Q=u[q],L=_.nO(Q);Q=this.getValues(Q);for(var E=0;E<Q.length;E++){var y=L;Q[E]!==""&&(y+="="+_.nO(Q[E]));g.push(y)}}return this.encodedQuery_=g.join("&")};
_.KY.prototype.clone=function(){var g=new _.KY;g.encodedQuery_=this.encodedQuery_;this.keyMap_&&(g.keyMap_=new Map(this.keyMap_),g.count_=this.count_);return g};
var nY=function(g,u){u=String(u);g.JSC$10340_ignoreCase_&&(u=u.toLowerCase());return u},y_a=function(g,u){u&&!g.JSC$10340_ignoreCase_&&(_.zA(g),g.encodedQuery_=null,g.keyMap_.forEach(function(q,Q){var L=Q.toLowerCase();
Q!=L&&(this.remove(Q),_.p6n(this,L,q))},g));
g.JSC$10340_ignoreCase_=u};
_.KY.prototype.extend=function(g){for(var u=0;u<arguments.length;u++)Lnx(arguments[u],function(q,Q){this.add(Q,q)},this)};_.TK(MV,sH);var J_i=RegExp("^%*tp$"),job=RegExp("^%+tp$");_.P=MV.prototype;_.P.connectionDelay_=null;_.P.peerWindowDeferred_=null;_.P.transport_=null;_.P.state_=1;_.P.isConnected=function(){return this.state_==2};
_.P.peerWindowObject_=null;_.P.iframeElement_=null;_.P.getConfig=function(){return this.cfg_};
_.P.connect=function(g){this.connectCb_=g||_.vH;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?lQf(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.P.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10335_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var g=this.iframeElement_.contentWindow;g||(g=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=g}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$10335_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new ph(this,this.cfg_.ph,this.JSC$10335_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()()};
_.P.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Fo(this.transport_);this.connectCb_=this.transport_=null;_.Fo(this.connectionDelay_);this.connectionDelay_=null};
_.P.send=function(g,u){if(this.isConnected()){try{var q=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(L){q=!1}if(q){_.zM(u)&&(u=_.ek(u));q=this.transport_;var Q=q.send;J_i.test(g)&&(g="%"+g);g=g.replace(/[%:|]/g,encodeURIComponent);Q.call(q,g,u)}else this.close()}};
_.P.xpcDeliver=function(g,u,q){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.EH)(this.xpcDeliver,this,g,u,q));else if(oOZ(this,q)&&!this.isDisposed()&&this.state_!=3)if(g&&g!="tp")this.isConnected()&&(g=g.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),g=job.test(g)?g.substring(1):g,g=this.getService(g,u))&&(u=r60(u,g.objectPayload),u!=null&&g.callback(u));else switch(g=this.transport_,q=Sr8(u),u=q[1],q[0]){case "SETUP_ACK":qzW(g,1);g.setupAckReceived_.fired_||g.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":g.protocolVersion_==2&&(qzW(g,2),g.setupAckReceived_.fired_||g.setupAckReceived_.callback(!0));break;case "SETUP":qzW(g,1);uUx(g,1);break;case "SETUP_NTPV2":g.protocolVersion_==2&&(q=g.peerProtocolVersion_,qzW(g,2),uUx(g,2),q!=1&&g.peerEndpointId_==null||g.peerEndpointId_==u||g1H(g),g.peerEndpointId_=u)}};
var Aiq=function(g){var u=g.cfg_.role;return typeof u==="number"?u:window.parent==g.peerWindowObject_?1:0},oOZ=function(g,u){var q=g.cfg_.ph;
return _.vS(u==null?"":String(u))||_.vS(q==null?"":String(q))||u==g.cfg_.ph};
MV.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete ji[this.name];_.Fo(this.peerLoadHandler_);delete this.peerLoadHandler_;MV.superClass_.disposeInternal.call(this)};
var b0h=function(){for(var g in ji)_.Fo(ji[g])},ji={};var MQ0=function(g,u){this.win=g;this.allowAdsHttpEndpoint=u;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10349_domHelper=LH(g);this.scrollManager=new av5(g);this.accessibilityManager=new Ct$(g);ffX(this)},ffX=function(g){var u=function(){g.allowAdsPopup&&g.allowAdsPopup.style.setProperty("display","none","important");
g.wallElement.style.setProperty("display","","important");bBZ(g.accessibilityManager);mTR(g.accessibilityManager,g.wallElement.querySelector(".fc-dialog-container"),!1,!1,g.wallElement.querySelector(".fc-button-whitelist"));g.scrollManager.enableScrolling()};
g.allowAdsPopup=g.JSC$10349_domHelper.JSC$9635_createDom("DIV",{"class":"fc-whitelist-root"});g.allowAdsPopup.style.setProperty("display","none","important");g.JSC$10349_domHelper.appendChild(g.JSC$10349_domHelper.JSC$9633_document_.body,g.allowAdsPopup);var q=g.JSC$10349_domHelper.JSC$9635_createDom("DIV",{"class":"fc-dialog-overlay"});g.JSC$10349_domHelper.appendChild(g.allowAdsPopup,q);var Q=g.JSC$10349_domHelper.JSC$9635_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:u});g.JSC$10349_domHelper.appendChild(g.allowAdsPopup,
Q);q=g.JSC$10349_domHelper.JSC$9635_createDom("IFRAME");q.className="fc-whitelist-dialog";q.frameBorder="0";q.id="fc-whitelist-iframe";q.tabIndex="0";_.Px(q,g.allowAdsHttpEndpoint);g.JSC$10349_domHelper.appendChild(Q,q);Q={};Q.pu=_.WT(g.allowAdsHttpEndpoint).toString();Q.tp=1;Q.cn="fc-whitelist-channel";Q.ifrid=q.id;Q.osh=!0;g.allowAdsCrossPageChannel=new MV(Q);g.allowAdsCrossPageChannel.registerService("close",u);g.allowAdsCrossPageChannel.registerService("refresh",function(){g.win.location.reload()});
g.allowAdsCrossPageChannel.registerService("resize",function(L){if(L){var E=g.allowAdsPopup.querySelector(".fc-whitelist-dialog");L.width&&E.style.setProperty("width",L.width,"important");L.height&&E.style.setProperty("height",L.height,"important")}},!0);
g.allowAdsCrossPageChannel.connect()};
MQ0.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10349_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var kk=window,Sk=document,tQb=kk.location,eA5=function(){},Gp2=/\[native code\]/,oV=function(g,u,q){return g[u]=g[u]||q},$_n=function(g){g=g.sort();
for(var u=[],q=void 0,Q=0;Q<g.length;Q++){var L=g[Q];L!=q&&u.push(L);q=L}return u},UO=function(){var g;
if((g=Object.create)&&Gp2.test(g))g=g(null);else{g={};for(var u in g)g[u]=void 0}return g},g2=oV(kk,"gapi",{});var uE={};uE=oV(kk,"___jsl",UO());oV(uE,"I",0);oV(uE,"hel",10);var RA8=function(){var g=tQb.href;if(uE.dpo)var u=uE.h;else{u=uE.h;var q=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),Q=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(g=g&&(q.exec(g)||Q.exec(g)))try{u=decodeURIComponent(g[2])}catch(L){}}return u},w6o=function(g){var u=oV(uE,"PQ",[]);
uE.PQ=[];var q=u.length;if(q===0)g();else for(var Q=0,L=function(){++Q===q&&g()},E=0;E<q;E++)u[E](L)},c_5=function(g){return oV(oV(uE,"H",UO()),g,UO())};var q6=function(g){this.JSC$10351_obj_=g};
q6.prototype.value=function(){return this.JSC$10351_obj_};
q6.prototype.getWidth=function(){return this.JSC$10351_obj_.width};
q6.prototype.getHeight=function(){return this.JSC$10351_obj_.height};
q6.prototype.getStyle=function(){return this.JSC$10351_obj_.style};var Hw2=function(g){this.JSC$10354_obj_=g||{}};
_.P=Hw2.prototype;_.P.value=function(){return this.JSC$10354_obj_};
_.P.setUrl=function(g){this.JSC$10354_obj_.url=g;return this};
_.P.getUrl=function(){return this.JSC$10354_obj_.url};
_.P.getStyle=function(){return this.JSC$10354_obj_.style};
_.P.getId=function(){return this.JSC$10354_obj_.id};
_.P.getContext=function(){return this.JSC$10354_obj_.context};
var A_a=function(g){g.JSC$10354_obj_.attributes=g.JSC$10354_obj_.attributes||{};return new q6(g.JSC$10354_obj_.attributes)};var Zw2=function(){Hw2.apply(this,arguments)};
_.A(Zw2,Hw2);var lfi=oV(uE,"perf",UO());oV(lfi,"g",UO());var IfX=oV(lfi,"i",UO());oV(lfi,"r",[]);UO();UO();var CDa=function(g,u,q){u&&u.length>0&&(u=iw8(u),q&&q.length>0&&(u+="___"+iw8(q)),u.length>28&&(u=u.substr(0,28)+(u.length-28)),q=u,u=oV(IfX,"_p",UO()),oV(u,q,UO())[g]=(new Date).getTime(),u=lfi.r,typeof u==="function"?u(g,"_p",q):u.push([g,"_p",q]))},iw8=function(g){return g.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var bwR=UO(),d_n=[],Qc=function(g){throw Error("Va`"+g);};
d_n.push(["jsl",function(g){for(var u in g)if(Object.prototype.hasOwnProperty.call(g,u)){var q=g[u];typeof q=="object"?uE[u]=oV(uE,u,[]).concat(q):oV(uE,u,q)}if(u=g.u)g=oV(uE,"us",[]),g.push(u),(u=/^https:(.*)$/.exec(u))&&g.push("http:"+u[1])}]);
var Fn5=/^(\/[a-zA-Z0-9_\-]+)+$/,m_b=[/\/amp\//,/\/amp$/,/^\/amp$/],afo=/^[a-zA-Z0-9\-_\.,!]+$/,VQ5=/^gapi\.loaded_[0-9]+$/,X6n=/^[a-zA-Z0-9,._-]+$/,hAx=function(g,u,q,Q,L){var E=g.split(";"),y=E.shift(),v=bwR[y],J=null;v?J=v(E,u,q,Q):Qc("no hint processor for: "+y);J||Qc("failed to generate load url");u=J;q=u.match(r_$);(Q=u.match(Wn0))&&Q.length===1&&T90.test(u)&&q&&q.length===1||Qc("failed sanity: "+g);try{g="?";if(L&&L.length>0){m3b(L);var f=L.join(",");J=J+"?le="+f;g="&"}if(uE.rol){var t=uE.ol;
t&&t.length&&(J=""+J+g+"ol="+t.length)}}catch(e){}return J},Kno=function(g,u,q,Q){g=Yzx(g);
VQ5.test(q)||Qc("invalid_callback");u=Owa(u);Q=Q&&Q.length?Owa(Q):null;var L=function(E){return encodeURIComponent(E).replace(/%2C/g,",")};
return[encodeURIComponent(g.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",L(g.version),"/m=",L(u),Q?"/exm="+L(Q):"","/rt=j/sv=1/d=1/ed=1",g.activeMods?"/am="+L(g.activeMods):"",g.resourceSig?"/rs="+L(g.resourceSig):"",g.zcms?"/t="+L(g.zcms):"","/cb=",L(q)].join("")},Yzx=function(g){g.charAt(0)!=="/"&&Qc("relative path");
for(var u=g.substring(1).split("/"),q=[];u.length;){g=u.shift();if(!g.length||g.indexOf(".")==0)Qc("empty/relative directory");else if(g.indexOf("=")>0){u.unshift(g);break}q.push(g)}g={};for(var Q=0,L=u.length;Q<L;++Q){var E=u[Q].split("="),y=decodeURIComponent(E[0]),v=decodeURIComponent(E[1]);E.length==2&&y&&v&&(g[y]=g[y]||v)}u="/"+q.join("/");Fn5.test(u)||Qc("invalid_prefix");q=0;for(Q=m_b.length;q<Q;++q)m_b[q].test(u)&&Qc("invalid_prefix");q=x_R(g,"k",!0);Q=x_R(g,"am");L=x_R(g,"rs");g=x_R(g,"t");
return{pathPrefix:u,version:q,activeMods:Q,resourceSig:L,zcms:g}},Owa=function(g){for(var u=[],q=0,Q=g.length;q<Q;++q){var L=g[q].replace(/\./g,"_").replace(/-/g,"_");
X6n.test(L)&&u.push(L)}return u.join(",")},x_R=function(g,u,q){g=g[u];
!g&&q&&Qc("missing: "+u);if(g){if(afo.test(g))return g;Qc("invalid: "+u)}return null},T90=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Wn0=/\/cb=/g,r_$=/\/\//g;
bwR.m=function(g,u,q,Q){(g=g[0])||Qc("missing_hint");return"https://apis.google.com"+Kno(g,u,q,Q)};
var B92=decodeURI("%73cript"),zAi=/^[-+_0-9\/A-Za-z]+={0,2}$/,n15=function(g,u){for(var q=[],Q=0;Q<g.length;++Q){var L=g[Q],E;if(E=L){a:{for(E=0;E<u.length;E++)if(u[E]===L)break a;E=-1}E=E<0}E&&q.push(L)}return q},kpx=function(){var g=uE.nonce;
return g!==void 0?g&&g===String(g)&&g.match(zAi)?g:uE.nonce=null:Sk.querySelector?(g=Sk.querySelector("script[nonce]"))?(g=g.nonce||g.getAttribute("nonce")||"",g&&g===String(g)&&g.match(zAi)?uE.nonce=g:uE.nonce=null):null:null},U_Z=function(g){if(Sk.readyState!="loading")Szn(g);
else{var u=kpx(),q="";u!==null&&(q=' nonce="'+u+'"');g="<"+B92+' src="'+encodeURI(g)+'"'+q+"></"+B92+">";Sk.write(o1$?o1$.createHTML(g):g)}},Szn=function(g){var u=Sk.createElement(B92);
u.setAttribute("src",o1$?o1$.createScriptURL(g):g);g=kpx();g!==null&&u.setAttribute("nonce",g);u.async="true";(g=Sk.getElementsByTagName(B92)[0])?g.parentNode.insertBefore(u,g):(Sk.head||Sk.body||Sk.documentElement).appendChild(u)},uzZ=function(g,u,q){gt$(function(){var Q=u===RA8()?oV(g2,"_",UO()):UO();
Q=oV(c_5(u),"_",Q);g(Q)},q)},L_3=function(g,u){var q=u||{};
typeof u=="function"&&(q={},q.callback=u);var Q=(u=q)&&u._c;if(Q)for(var L=0;L<d_n.length;L++){var E=d_n[L][0],y=d_n[L][1];y&&Object.prototype.hasOwnProperty.call(Q,E)&&y(Q[E],g,u)}u=[];g?u=g.split(":"):q.features&&(u=q.features);if(!(g=q.h)&&(g=RA8(),!g))throw Error("Wa");qY8(u||[],q,g)},qY8=function(g,u,q){g=$_n(g)||[];
var Q=u.callback,L=u.config,E=u.timeout,y=u.ontimeout,v=u.onerror,J=void 0;typeof v=="function"&&(J=v);var f=null,t=!1;if(E&&!y||!E&&y)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";v=oV(c_5(q),"r",[]).sort();var e=oV(c_5(q),"L",[]).sort(),G=uE.le||[],R=[].concat(v),H=function(z,O){if(t)return 0;kk.clearTimeout(f);e.push.apply(e,l);var W=((g2||{}).config||{}).update;W?W(L):L&&oV(uE,"cu",[]).push(L);if(O){CDa("me0",z,R);try{uzZ(O,q,J)}finally{CDa("me1",z,R)}}return 1};
E>0&&(f=kk.setTimeout(function(){t=!0;y()},E));
var l=n15(g,e);if(l.length){l=n15(g,v);var d=oV(uE,"CP",[]),F=d.length;d[F]=function(z){if(!z)return 0;CDa("ml1",l,R);var O=function(x){d[F]=null;H(l,z)&&w6o(function(){Q&&Q();x()})},W=function(){var x=d[F+1];
x&&x()};
F>0&&d[F-1]?d[F]=function(){O(W)}:O(W)};
if(l.length){var V="loaded_"+uE.I++;g2[V]=function(z){d[F](z);g2[V]=null};
g=hAx(q,l,"gapi."+V,v,G);v.push.apply(v,l);CDa("ml0",l,R);u.sync||kk.___gapisync?U_Z(g):Szn(g)}else d[F](eA5)}else H(l)&&Q&&Q()},QKZ;
var L6n=null,Et$=_.Qq.trustedTypes;if(Et$&&Et$.createPolicy){try{L6n=Et$.createPolicy("goog#gapi",{createHTML:Ab8,createScript:Ab8,createScriptURL:Ab8})}catch(g){_.Qq.console&&_.Qq.console.error(g.message)}QKZ=L6n}else QKZ=L6n;var o1$=QKZ,gt$=function(g,u){if(uE.hee&&uE.hel>0)try{return g()}catch(q){u&&u(q),uE.hel--,L_3("debug_error",function(){try{window.___jsl.hefn(q)}catch(Q){throw q;}})}else try{return g()}catch(q){throw u&&u(q),q;
}},PPH=g2.load;
PPH&&oV(uE,"ol",[]).push(PPH);g2.load=function(g,u){return gt$(function(){return L_3(g,u)})};var aQJ;var sKb=function(){var g=g||[];this.dependencies_=[];NUX(this,g)};
sKb.prototype.toString=function(){return"MpJwZc"};
sKb.prototype.getModuleId=function(){return"MpJwZc"};
var NUX=function(g,u){var q=!1;q=q===void 0?!1:q;g.dependencies_=g.dependencies_.concat(u);q&&u.map(function(Q){return Q.getModuleId()}).forEach(function(Q){VjZ(function(L){L.addExtraEdge("MpJwZc",Q)})})};var UMb=new sKb;var nJT=new _.NP("a"),u1q=new _.NP("c"),gJk=function(g,u,q){_.YF.call(this,g,u);this.node=u;this.kind=q};
_.A(gJk,_.YF);var yj$=function(){this.JSC$10367_keys_={};this.urlPrefix_="";this.JSC$10367_queryData_={}};
yj$.prototype.toString=function(){var g=this.urlPrefix_+vtR(this),u=_.kB(this.JSC$10367_queryData_),q="";u!=""&&(q="?"+u);return g+q};
var DwX=function(g){g=Lj(g,"md");return!!g&&g!=="0"},vtR=function(g){var u=[],q=function(Q){g.JSC$10367_keys_[Q]!==void 0&&u.push(Q+"="+g.JSC$10367_keys_[Q])};
DwX(g)?(q("md"),q("k"),q("ck"),q("am"),q("rs"),q("gssmodulesetproto"),q("slk"),q("dti")):(q("sdch"),q("k"),q("ck"),q("am"),q("amc"),q("rt"),"d"in g.JSC$10367_keys_||EG(g,"d","0"),q("d"),q("exm"),q("excm"),(g.JSC$10367_keys_.excm||g.JSC$10367_keys_.exm)&&u.push("ed=1"),q("im"),q("dg"),q("sm"),Lj(g,"br")!="1"&&Lj(g,"br")!="0"||q("br"),q("br-d"),Lj(g,"rb")=="1"&&q("rb"),Lj(g,"zs")!=="0"&&q("zs"),pox(g)!==""&&q("wt"),q("gssmodulesetproto"),q("ujg"),q("sp"),q("rs"),q("cb"),q("ee"),q("slk"),q("dti"),q("m"));
return u.join("/")},Lj=function(g,u){return g.JSC$10367_keys_[u]?g.JSC$10367_keys_[u]:null},EG=function(g,u,q){q?g.JSC$10367_keys_[u]=q:delete g.JSC$10367_keys_[u]},Jji=function(g,u){g.urlPrefix_=u},jKH=function(g,u){u&&u.length>0?(u.sort(),EG(g,"exm",u.join(","))):EG(g,"exm",null)},fFx=function(g,u){u&&u.length>0?(u.sort(),EG(g,"excm",u.join(","))):EG(g,"excm",null)},M7o=function(g){return(g=Lj(g,"m"))?g.split(","):[]},pox=function(g){switch(Lj(g,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},t78=function(g,u){var q=Object.keys(u).filter(function(Q){return!!Object.keys(u[Q]).length}).map(function(Q){var L=Object.keys(u[Q]);
L.length>1&&L.sort();return Q+":"+L.join(",")});
q.sort();EG(g,"ee",q.join(";"))},BNM=function(g){var u=Lj(g,"ee");
if(!u)return{};g={};u=_.N(u.split(";"));for(var q=u.next();!q.done;q=u.next()){var Q=_.N(q.value.split(":"));q=Q.next().value;Q=Q.next().value;g[q]={};Q=_.N(Q.split(","));for(var L=Q.next();!L.done;L=Q.next())g[q][L.value]=!0}return g},eS$=function(g){delete g.JSC$10367_keys_.m;
delete g.JSC$10367_keys_.exm;delete g.JSC$10367_keys_.ed};
yj$.prototype.clone=function(){var g=new yj$;g.JSC$10367_keys_=Object.assign({},this.JSC$10367_keys_);g.urlPrefix_=this.urlPrefix_;g.JSC$10367_queryData_=Object.assign({},this.JSC$10367_queryData_);return g};
var zMu=function(g,u){u=u===void 0?!0:u;var q=G3R(g),Q=new yj$,L=_.Wq(q)[5];_.pH.forEach($w$,function(y){var v=L.match("/"+y+"=([^/]+)");v&&EG(Q,y,v[1])});
var E="";E=g.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Jji(Q,g.substr(0,g.indexOf(E)+E.length));if(!u)return Q;(g=_.Wq(q)[6]||null)&&SUm(g,function(y,v){Q.JSC$10367_queryData_[y]=v});
return Q},OBF=function(g){g=_.YB(G3R(g));
return g===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(g)?/\/k=/.test(g):!1},G3R=function(g){return g.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?g.substr(65):g},$w$={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"},RSR=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.Pt=function(g){this.JSC$10379_id_=g;this.opts={}};
_.Pt.prototype.JSC$10381_setLabel=function(g){this.label_=g||void 0;return this};
_.Pt.prototype.addUploadMetadata=function(g,u){var q=this.opts.data||{};q[g]=u;this.opts.data=q;return this};
var woa=function(g){var u=_.pH.filter(g.opts,function(q){return q!==null});
u=_.pH.isEmpty(u)?null:u;g=[g.JSC$10379_id_,g.label_,u];u=iZh(g);return g=g.slice(0,u+1)};
_.Pt.prototype.toString=function(){var g=woa(this);return"("+_.Jk(g,function(u){return JSON.stringify(u)}).join(",")+")"};
_.Pt.prototype.getId=function(){return this.JSC$10379_id_};
_.Pt.prototype.getOptions=function(){return _.pH.clone(this.opts)};var N6=function(){_.Pt.call(this,"image-search")};
_.A(N6,_.Pt);N6.prototype.setSize=function(g){this.opts.imgsz=g;return this};
N6.prototype.JSC$10381_setLabel=function(g){_.Pt.prototype.JSC$10381_setLabel.call(this,g);return this};
N6.prototype.addUploadMetadata=function(g,u){_.Pt.prototype.addUploadMetadata.call(this,g,u);return this};var sG=function(){_.Pt.call(this,"maps")};
_.A(sG,_.Pt);sG.prototype.setZoom=function(g){this.opts.zoom=g;return this};
sG.prototype.JSC$10381_setLabel=function(g){_.Pt.prototype.JSC$10381_setLabel.call(this,g);return this};
sG.prototype.addUploadMetadata=function(g,u){_.Pt.prototype.addUploadMetadata.call(this,g,u);return this};_.yc=function(){_.Pt.call(this,"photos")};
_.A(_.yc,_.Pt);_.yc.prototype.JSC$10381_setLabel=function(g){_.Pt.prototype.JSC$10381_setLabel.call(this,g);return this};
_.yc.prototype.addUploadMetadata=function(g,u){_.Pt.prototype.addUploadMetadata.call(this,g,u);return this};var vt=function(){_.Pt.call(this,"url")};
_.A(vt,_.Pt);var cjZ=function(){var g=new vt;g.opts.type="video";g.opts.site="youtube.com";return g};
vt.prototype.JSC$10381_setLabel=function(g){_.Pt.prototype.JSC$10381_setLabel.call(this,g);return this};
vt.prototype.addUploadMetadata=function(g,u){_.Pt.prototype.addUploadMetadata.call(this,g,u);return this};var D9=function(){_.Pt.call(this,"video-search")};
_.A(D9,_.Pt);var HfZ=function(){var g=new D9;g.opts.site="youtube.com";return g};
D9.prototype.JSC$10381_setLabel=function(g){_.Pt.prototype.JSC$10381_setLabel.call(this,g);return this};
D9.prototype.addUploadMetadata=function(g,u){_.Pt.prototype.addUploadMetadata.call(this,g,u);return this};var Ajn=function(){_.Pt.call(this,"web")};
_.A(Ajn,_.Pt);Ajn.prototype.JSC$10381_setLabel=function(g){_.Pt.prototype.JSC$10381_setLabel.call(this,g);return this};
Ajn.prototype.addUploadMetadata=function(g,u){_.Pt.prototype.addUploadMetadata.call(this,g,u);return this};var pj=function(){this.items_=[];this.opts={}},Zf0=function(g){switch(g){case "image-search":return new N6;
case "maps":return new sG;case "photos":return new _.yc;case "url":return new vt;case "video-search":return new D9;case "web":return new Ajn}return new _.Pt(g)};
pj.prototype.addView=function(g){this.items_.push(typeof g==="string"?Zf0(g):g);return this};
var lF$=function(g){return"("+_.Jk(g.items_,function(u){return u.toString()}).join(",")+")"};
pj.prototype.toString=function(){return lF$(this)};
pj.prototype.getViews=function(g,u){u=u===void 0?[]:u;for(var q=this.items_,Q=0;Q<q.length;Q++){var L=q[Q];L instanceof pj?L.getViews(g,u):L.getId()==g&&u.push(L)}return u};
pj.prototype.getOptions=function(){return _.pH.clone(this.opts)};var dc=function(g){this.basePickerUrl_=g||"https://docs.google.com/picker";this.nav_=new pj};
dc.prototype.nav_=null;dc.prototype.addView=function(g){this.nav_.addView(g);return this};
dc.prototype.getBaseUrl=function(){return this.basePickerUrl_};
dc.prototype.getViews=function(g){return this.nav_.getViews(g)};
_.IF0=function(g,u){g.callback_=u;return g};var ifR=new Map;ifR.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");ifR.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");ifR.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var CP0=new Set;CP0.add("application/vnd.google-apps.kix");CP0.add("application/vnd.google-apps.ritz");CP0.add("application/vnd.google-apps.punch");var YYa=function(g,u,q){var Q=q&&_.J2(q,1);q=bfZ(q);var L=g[0].getId();switch(_.j$(L,2)){case 13:return dwo(g,u,Q,q);case 3:return F6W(g,u,Q,q);case 10:return mwa(g,u,Q,q);case 27:return mwa(g,u,Q,q);case 12:return aF2(g,u);case 2:return V78(g,u,Q,q);case 5:return Xo2(g,u,Q,q);case 9:return rj$(g,u,Q,q);case 6:return W6o(g,u,Q,q);case 25:return TUX(g,u,Q,q);case 1:return _.gm(g[0],wDx,26)?hSH(g,u,Q,q):mwa(g,u,Q,q);default:return{}}},W6o=function(g,u,q,Q){g=g.map(function(L){return{id:L.getId().getId(),
serviceId:"youtube",name:L.getName(),description:_.J2(L,3),type:J$(L),lastEditedUtc:_.RUb(_.o0(L,_.jV,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:L.getUrl(),embedUrl:_.J2(L,13),thumbnails:js(T0(L))}});
return{action:u,docs:g,viewToken:Q,view:q||"youtube",v2Translated:!0}},V78=function(g,u,q,Q){var L=g.map(function(E){var y=E.getId().getId(),v=_.J2(E,7),J=E.getName(),f=J$(E),t=_.RUb(_.o0(E,_.jV,12)).getTime(),e=E.getUrl(),G=Number(YZH(E)),R=_.J2(E,3),H=_.J2(E,11),l=js(T0(E));
var d=_.o0(E,hy,21);d=_.vM(d,1);var F=_.o0(E,hy,21);F=_.J2(F,10);var V=_.J2(E,13);var z=_.o0(E,hy,21);z=_.vM(z,9);var O=_.o0(E,hy,21);O=_.J2(O,11);y={id:y,serviceId:"docs",mimeType:v,name:J,type:f,lastEditedUtc:t,url:e,sizeBytes:G,description:R,iconUrl:H,thumbnails:l,isShared:d,downloadUrl:F,embedUrl:V,copyable:z,resourceKey:O};v=_.o0(E,hy,21);_.vM(v,12)&&(y.uploadState="success",y.isNew=!0);v=_.o0(E,hy,21);_.gm(v,XA,3)&&(E=_.o0(E,hy,21),E=_.o0(E,XA,3),_.gm(E,aA,2)&&(v=HD(E.getDuration().getSeconds()),
J=E.getDuration(),J=_.r6(J,2),y.duration=v+J/1E9),y.aspectRatio=E.getAspectRatio());return y});
return{action:u,docs:L,viewToken:Q,view:q||"all",extraUserInputs:Ofo(g),v2Translated:!0}},Xo2=function(g,u,q,Q){g=g.map(function(L){var E=_.o0(L,bhH,15);
E=_.o0(E,Vi,1);v6(L,10,Vi,E);return{id:L.getId().getId(),serviceId:"web",mimeType:_.J2(L,7),name:L.getName(),type:J$(L),url:L.getUrl(),description:_.J2(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:js(T0(L))}});
return{action:u,docs:g,viewToken:Q,view:q||"image-search",v2Translated:!0}},rj$=function(g,u,q,Q){g=g.map(function(L){return{serviceId:"url",
name:T0(L)[0].getUrl().split("/").pop(),type:J$(L),mimeType:_.J2(L,7),url:L.getUrl(),description:_.J2(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:js(T0(L))}});
return{action:u,docs:g,viewToken:Q,view:q||"url",v2Translated:!0}},hSH=function(g,u,q,Q){g=g.map(function(L){return{id:L.getId().getId(),
serviceId:"picasa",name:L.getName(),type:J$(L),description:_.J2(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:js(T0(L))}});
return{action:u,docs:g,viewToken:Q,view:q||"webcam",v2Translated:!0}},mwa=function(g,u,q,Q){return{action:u,
docs:g.map(K6W),viewToken:Q,view:xwi(q||"upload",g),extraUserInputs:Ofo(g),v2Translated:!0}},xwi=function(g,u){return u.some(function(q){var Q;
return((Q=_.o0(q,rX,30))==null?void 0:_.j$(Q,3))===9})?g+"/gmailphotos":g},F6W=function(g,u,q,Q){var L=g.map(function(E){var y={id:E.getId().getId(),
serviceId:"picasa",mimeType:_.J2(E,7),name:E.getName(),type:J$(E),lastEditedUtc:_.RUb(_.o0(E,_.jV,12)).getTime(),url:E.getUrl(),sizeBytes:Number(YZH(E)),description:_.J2(E,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:js(T0(E)),mediaKey:E.getId().getId(),parentId:_.J2(E,4)},v,J=(v=_.o0(E,A5Z,18))==null?void 0:_.o0(v,Hh0,3);J&&(y.latitude=pp(J,1),y.longitude=pp(J,2));var f;E=(f=_.o0(E,A5Z,18))==null?void 0:DP(f,6);f=E!=null?HD(E):void 0;f&&(y.version=
f);return y});
return{action:u,docs:L,viewToken:Q,view:q||"photos",extraUserInputs:Ofo(g),v2Translated:!0}},dwo=function(g,u,q,Q){g=g.map(function(L){return{id:L.getId().getId(),
serviceId:"et",name:T0(L)[0].getUrl().split("/").pop(),description:_.J2(L,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:js(T0(L),"etjpg")}});
return{action:u,docs:g,viewToken:Q,view:q||"et",v2Translated:!0}},TUX=function(g,u,q,Q){g=g.map(function(L){var E=L.getId().getId(),y=Q["2"];
return{id:E,serviceId:y.type!=="gmail_themes"&&y.parent==="6226252643674576769"?"picasa":"static_themes",name:L.getName(),mimeType:_.J2(L,7),type:J$(L),description:_.J2(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:L.getUrl(),embedUrl:L.getUrl(),thumbnails:js(T0(L))}});
return{action:u,docs:g,viewToken:Q,view:q||"photos",v2Translated:!0}},aF2=function(g,u){g=g.map(function(q){var Q=_.o0(q,c55,27);
Q=_.uO(Q,1,_.C9,_.Xo())[0];return{id:q.getId().getId(),serviceId:"contacts",mimeType:_.J2(q,7),name:q.getName(),description:_.J2(q,3),url:"mailto:"+Q,thumbnail:[{url:_.J2(q,11)}],email:Q}});
return{action:u,docs:g,view:"contacts",v2Translated:!0}},bfZ=function(g){if(!g)return{};
var u=_.J2(g,3);u=u&&JSON.parse(u)||{};return{0:_.J2(g,1),1:_.J2(g,2),2:u}},js=function(g,u){u=u===void 0?"":u;
if(!g.length)return null;u=="etjpg"&&(g=g.filter(function(q){return q.getUrl().includes("w1200-h300")}));
return g.map(function(q){return{url:q.getUrl(),height:q.getHeight(),width:q.getWidth(),type:u}})},Ofo=function(g){return{isAttachment:g.some(function(u){return _.vM(u,31)})}},K6W=function(g){var u,q={id:(u=g.getId())==null?void 0:u.getId(),
serviceId:BUa(g),mimeType:_.J2(g,7),name:g.getName(),type:J$(g),sizeBytes:Number(YZH(g)),description:_.J2(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:js(T0(g)),isNew:!0};if(u=_.o0(g,rX,30)){q.dataUrl=_.J2(u,1)||null;a:{var Q=_.o0(g,rX,30);switch(_.j$(Q,3)){case 9:Q=_.t2(Q,ihR,2,WH);Q={remoteRefs:Q&&_.J2(Q,1)};break a;case 10:case 15:Q=_.t2(Q,I1b,4,WH);var L=T0(g);Q={photo_id:Q&&_.J2(Q,1),media_key:g.getId().getId(),media_type:_.j$(g,6)===1?1:2,image_url:L&&
L[0].getUrl(),width:L&&String(L[0].getWidth()),height:L&&String(L[0].getHeight())};break a}Q=null}q.uploadMetadata=Q;q.uploadId=_.J2(u,9)||null;q.uploadState=zSi(u)||null}(Q=u&&_.t2(u,I1b,4,WH))&&(q.id=_.J2(Q,1));(Q=u&&_.t2(u,CvZ,5,WH))&&(q.contentId=_.J2(Q,1));(Q=u&&_.t2(u,Zho,7,WH))&&(q.contentId=_.J2(Q,1));(Q=u&&_.t2(u,l1i,6,WH))&&(q.contentId=_.J2(Q,1));(u==null?void 0:_.j$(u,3))===1&&(q.mediaKey=g.getId().getId());return q},BUa=function(g){var u;
switch(((u=_.o0(g,rX,30))==null?void 0:_.j$(u,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},J$=function(g){switch(_.j$(g,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 _.J2(g,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},zSi=function(g){switch(g==null?void 0:_.j$(g,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 oto,nti,k3a,SY0;_.Uw2=function(g,u){var q=u||{};u=q.document||document;var Q=_.WT(g).toString(),L=(new fN(u)).createElement("SCRIPT"),E={script_:L,timeout_:void 0},y=new D1(nti,E),v=null,J=q.timeout!=null?q.timeout:5E3;J>0&&(v=window.setTimeout(function(){k3a(L,!0);y.errback(new SY0(1,"Timeout reached for loading script "+Q))},J),E.timeout_=v);
L.onload=L.onreadystatechange=function(){L.readyState&&L.readyState!="loaded"&&L.readyState!="complete"||(k3a(L,q.cleanupWhenDone||!1,v),y.callback(null))};
L.onerror=function(){k3a(L,!0,v);y.errback(new SY0(0,"Error while loading script "+Q))};
E=q.attributes||{};_.pH.extend(E,{type:"text/javascript",charset:"UTF-8"});ZH2(L,E);_.jx(L,g);oto(u).appendChild(L);return y};
oto=function(g){var u=uv("HEAD",g);return u&&u.length!==0?u[0]:g.documentElement};
nti=function(){if(this&&this.script_){var g=this.script_;g&&g.tagName=="SCRIPT"&&k3a(g,!0,this.timeout_)}};
k3a=function(g,u,q){q!=null&&_.Qq.clearTimeout(q);g.onload=function(){};
g.onerror=function(){};
g.onreadystatechange=function(){};
u&&window.setTimeout(function(){_.UU(g)},0)};
SY0=function(g,u){var q="Jsloader error (code #"+g+")";u&&(q+=": "+u);_.gq.call(this,q);this.code=g};
_.TK(SY0,_.gq);var gCb=_.CT(["https://apis.google.com/js/api.js"]),uwn=_.A1(gCb),ECZ=function(g,u,q){q=q===void 0?{}:q;var Q=!1,L=qAo(g,u,q).then(function(y){Q=!0;return y}),E=_.FW5(5E3).then(function(){return Q?qAo(g,u,q):QMX(u,q).then(function(y){return LLi(y,g)})});
return RIn([L,E])},qAo=function(g,u,q){q=q===void 0?{}:q;
return P68(u,q).then(function(Q){return LLi(Q,g)})},LLi=function(g,u){var q=_.N3(u,"gapi.")?u.slice(5):u;
return g[q]?_.BX(g[q]):new _.Ez(function(Q,L){var E=MP(function(){L(Error("Za"))},3E4);
g.load(u,{callback:function(){_.Qq.clearTimeout(E);Q(g[q])},
onerror:function(y){_.Qq.clearTimeout(E);L(y)}})})},P68=function(g,u){u=u===void 0?{}:u;
return g.gapi&&g.gapi.load?_.BX(g.gapi):QMX(g,u)},QMX=function(g,u){u=u===void 0?{}:u;
return _.Uw2(uwn,{document:g.document,attributes:u}).then(function(){return g.gapi})},NVH=function(){};
NVH.prototype.load=function(g,u,q){u=u===void 0?window:u;q=q===void 0?{}:q;var Q=Date.now();return ECZ(g,u,q).then(function(L){var E=Date.now();return{library:L,loadStartMs:Q,loadEndMs:E}},function(L){throw L instanceof Error?L:Error(String(L));
})};var PtJ=function(){_.Lh.call(this);this.gapiLoader_=new NVH;this.origin_=null;this.gapiPickerIframeResolver_=_.A9();this.gapiIframesResolver_=_.A9();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.A(PtJ,_.Lh);var sMi=function(g,u){var q=q===void 0?{}:q;var Q=_.ri("gapi.iframes",u);return Q?(g=Date.now(),_.BX({library:Q,loadStartMs:g,loadEndMs:g})):g.gapiLoader_.load("gapi.iframes",u,q)},yg0=function(g,u,q,Q,L,E){var y=!1;
y=y===void 0?!1:y;sMi(g,jp(u.ownerDocument)).then(function(v){var J=v.library;g.gapiIframesResolver_.resolve(J);v=g.gapiPickerIframeResolver_;var f=v.resolve,t=y;t=t===void 0?!1:t;var e={};e["host-message-handler"]=q;g.hostMessageHandlerInternal_=e;var G=_.X_(Q);G=_.X_(G);G=_.Wl(_.rJ(_.Xy(new _.Ir,G.scheme_),G.JSC$10339_domain_),G.JSC$10339_port_).toString();g.origin_=G;G=(new Zw2).setUrl(Q);G.JSC$10354_obj_.where=u;G.JSC$10354_obj_.allowPost=t;G.JSC$10354_obj_.messageHandlers=e;t=_.ri("makeWhiteListIframesFilter",
J)([g.origin_]);G.JSC$10354_obj_.messageHandlersFilter=t;L!=null&&(G.JSC$10354_obj_.id=L);E!=null&&(G.JSC$10354_obj_.rpctoken=E);t=A_a(G);t.JSC$10351_obj_.style={display:"block","min-width":"100%",width:"1px"};t.JSC$10351_obj_.height="100%";A_a(G).value().allow="camera 'src' "+g.origin_;J=J.getContext().openChild(G.value());f.call(v,J)},function(v){g.gapiIframesResolver_.reject(v);
g.gapiPickerIframeResolver_.reject(v)});
return g.gapiPickerIframeResolver_.promise},vC8=function(g,u){return _.jk([g.gapiIframesResolver_.promise,
g.gapiPickerIframeResolver_.promise]).then(function(q){var Q=_.N(q);q=Q.next().value;return(Q=Q.next().value)?Q.send("picker-message-handler",u,void 0,_.ri("makeWhiteListIframesFilter",q)([g.origin_])):_.NY(Error("$a"))})};
PtJ.prototype.disposeInternal=function(){DMa(this);_.Lh.prototype.disposeInternal.call(this)};
var DMa=function(g){g.gapiPickerIframeResolver_.promise.then(function(u){u&&(u.unregister("host-message-handler"),delete g.hostMessageHandlerInternal_["host-message-handler"])})};var pU$=function(){this.nextId=0};var jMW=function(g,u){switch(g.action){case "select-contacts":g=Jg0(g.contacts);break;case "visibility":g=g.visible;var q=new x2;g=_.Gw(q,1,7).setVisible(g);q={};q["iframe-command"]=g.serialize();g=q;break;default:g=null}return g?vC8(u,g):_.BX()},Jg0=function(g){if(!g||g.length==0)return null;
var u=new x2;_.Gw(u,1,11);var q=new pU$;g.forEach(function(Q){if(Q.email){var L=new N$;L=_.I1(L,2,Q.name?Q.name:Q.email);var E=new c55;Q=_.UEb(E,1,_.Zb,Q.email,_.C9);Q=_.FV(L,27,Q);L=new $Vn;E=":"+(q.nextId++).toString(36);L=_.I1(L,1,E);L=_.Gw(L,2,12);Q=_.FV(Q,1,L)}else Q=null;Q&&v6(u,7,N$,Q)});
g={};g["iframe-command"]=u.serialize();return g};_.fMH=function(){if(Px8){var g=/Windows NT ([0-9.]+)/;return(g=g.exec(_.GM()))?g[1]:"0"}return _.ELW?(g=/1[0|1][_.][0-9_.]+/,(g=g.exec(_.GM()))?g[0].replace(/_/g,"."):"10"):aLJ?(g=/Android\s+([^\);]+)(\)|;)/,(g=g.exec(_.GM()))?g[1]:""):sHW||yhb||vL8?(g=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(g=g.exec(_.GM()))?g[1].replace(/_/g,"."):""):""}();var fj;fj=function(g){return(g=g.exec(_.GM()))?g[1]:""};
_.MZH=function(){if(_.zK)return fj(/Firefox\/([0-9.]+)/);if(_.xS||Ok||qZo)return tfx;if(_.nT){if(_.bh()||_.ZZq()){var g=fj(/CriOS\/([0-9.]+)/);if(g)return g}return fj(/Chrome\/([0-9.]+)/)}if(_.I0&&!_.bh())return fj(/Version\/([0-9.]+)/);if(GNf||$ZF){if(g=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.GM()))return g[1]+"."+g[2]}else if(wni)return(g=fj(/Android\s+([0-9.]+)/))?g:fj(/Version\/([0-9.]+)/);return""}();_.rT(W9S);W9S.prototype.nextId_=0;_.M6=function(g){return":"+(g.nextId_++).toString(36)};var I2=function(g){_.A5.call(this);this.JSC$10449_dom_=g||LH();this.JSC$10449_id_=null;this.inDocument_=!1;this.JSC$10449_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.TK(I2,_.A5);I2.prototype.idGenerator_=W9S.getInstance();I2.prototype.getId=function(){return this.JSC$10449_id_||(this.JSC$10449_id_=_.M6(this.idGenerator_))};
I2.prototype.getElement=function(){return this.JSC$10449_element_};
var t$=function(g){g.googUiComponentHandler_||(g.googUiComponentHandler_=new _.NV(g));return g.googUiComponentHandler_},tZn=function(g,u){if(g==u)throw Error("ab");
var q;if(q=u&&g.parent_&&g.JSC$10449_id_){q=g.parent_;var Q=g.JSC$10449_id_;q=q.childIndex_&&Q?_.pH.get(q.childIndex_,Q)||null:null}if(q&&g.parent_!=u)throw Error("ab");g.parent_=u;I2.superClass_.setParentEventTarget.call(g,u)};
I2.prototype.setParentEventTarget=function(g){if(this.parent_&&this.parent_!=g)throw Error("bb");I2.superClass_.setParentEventTarget.call(this,g)};
I2.prototype.JSC$10451_createDom=function(){this.JSC$10449_element_=this.JSC$10449_dom_.createElement("DIV")};
I2.prototype.render=function(g){eti(this,g)};
var eti=function(g,u,q){if(g.inDocument_)throw Error("cb");g.JSC$10449_element_||g.JSC$10451_createDom();u?u.insertBefore(g.JSC$10449_element_,q||null):g.JSC$10449_dom_.JSC$9633_document_.body.appendChild(g.JSC$10449_element_);g.parent_&&!g.parent_.inDocument_||g.enterDocument()};
_.P=I2.prototype;_.P.decorate=function(g){if(this.inDocument_)throw Error("cb");if(g&&this.canDecorate(g)){this.wasDecorated_=!0;var u=_.fH(g);this.JSC$10449_dom_&&this.JSC$10449_dom_.JSC$9633_document_==u||(this.JSC$10449_dom_=LH(g));this.decorateInternal(g);this.enterDocument()}else throw Error("db");};
_.P.canDecorate=function(){return!0};
_.P.decorateInternal=function(g){this.JSC$10449_element_=g};
_.P.enterDocument=function(){this.inDocument_=!0;GB2(this,function(g){!g.inDocument_&&g.getElement()&&g.enterDocument()})};
_.P.exitDocument=function(){GB2(this,function(g){g.inDocument_&&g.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.P.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);GB2(this,function(g){g.dispose()});
!this.wasDecorated_&&this.JSC$10449_element_&&_.UU(this.JSC$10449_element_);this.parent_=this.model_=this.JSC$10449_element_=this.childIndex_=this.children_=null;I2.superClass_.disposeInternal.call(this)};
_.P.getModel=function(){return this.model_};
_.P.addChild=function(g,u){var q=this.children_?this.children_.length:0;if(g.inDocument_&&(u||!this.inDocument_))throw Error("cb");if(q<0||q>(this.children_?this.children_.length:0))throw Error("eb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);g.parent_==this?(_.pH.set(this.childIndex_,g.getId(),g),_.TM(this.children_,g)):_.pH.add(this.childIndex_,g.getId(),g);tZn(g,this);_.FJb(this.children_,q,0,g);g.inDocument_&&this.inDocument_&&g.parent_==this?(u=this.getContentElement(),
(u.childNodes[q]||null)!=g.getElement()&&(g.getElement().parentElement==u&&u.removeChild(g.getElement()),q=u.childNodes[q]||null,u.insertBefore(g.getElement(),q))):u?(this.JSC$10449_element_||this.JSC$10451_createDom(),q=this.children_?this.children_[q+1]||null:null,eti(g,this.getContentElement(),q?q.JSC$10449_element_:null)):this.inDocument_&&!g.inDocument_&&g.JSC$10449_element_&&g.JSC$10449_element_.parentNode&&g.JSC$10449_element_.parentNode.nodeType==1&&g.enterDocument()};
_.P.getContentElement=function(){return this.JSC$10449_element_};
var GB2=function(g,u){g.children_&&g.children_.forEach(u,void 0)};
I2.prototype.removeChild=function(g,u){if(g){var q=typeof g==="string"?g:g.getId();g=this.childIndex_&&q?_.pH.get(this.childIndex_,q)||null:null;q&&g&&(_.pH.remove(this.childIndex_,q),_.TM(this.children_,g),u&&(g.exitDocument(),g.JSC$10449_element_&&_.UU(g.JSC$10449_element_)),tZn(g,null))}if(!g)throw Error("fb");return g};_.TK(Tuk,riM);_.TK(hYS,riM);var $M2;_.pH.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var RtW=function(g,u){u?g.setAttribute("role",u):g.removeAttribute("role")},es=function(g,u,q){Array.isArray(q)&&(q=q.join(" "));
var Q="aria-"+u;q===""||q==void 0?($M2||(q={},$M2=(q.atomic=!1,q.autocomplete="none",q.dropeffect="none",q.haspopup=!1,q.live="off",q.multiline=!1,q.multiselectable=!1,q.orientation="vertical",q.readonly=!1,q.relevant="additions text",q.required=!1,q.sort="none",q.busy=!1,q.disabled=!1,q.hidden=!1,q.invalid="false",q)),q=$M2,u in q?g.setAttribute(Q,q[u]):g.removeAttribute(Q)):g.setAttribute(Q,q)};var wUn;_.GG=function(g,u,q){_.A5.call(this);this.target=g;this.handle=u||g;this.limits=q||new CO(NaN,NaN,NaN,NaN);this.JSC$10454_document_=_.fH(g);this.JSC$10454_eventHandler_=new _.NV(this);_.z$(this,this.JSC$10454_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;_.Z1(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=wUn};
_.TK(_.GG,_.A5);wUn=_.Qq.document&&_.Qq.document.documentElement&&!!_.Qq.document.documentElement.setCapture&&!!_.Qq.document.releaseCapture;_.cgW=function(g,u){g.hysteresisDistanceSquared_=Math.pow(u,2)};
_.P=_.GG.prototype;_.P.setEnabled=function(g){this.enabled_=g};
_.P.disposeInternal=function(){_.GG.superClass_.disposeInternal.call(this);_.DB(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10454_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10454_document_.releaseCapture();this.handle=this.target=null};
_.P.startDrag=function(g){var u=g.type=="mousedown";if(!this.enabled_||this.dragging_||u&&(!g.isButton(0)||_.ELW&&g.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new $o("start",this,g.clientX,g.clientY,g)))this.dragging_=!0,u&&g.preventDefault();else return;else u&&g.preventDefault();u=this.JSC$10454_document_;var q=u.documentElement,Q=!this.useSetCapture_;this.JSC$10454_eventHandler_.listen(u,["touchmove","mousemove"],this.handleMove_,
{capture:Q,passive:!1});this.JSC$10454_eventHandler_.listen(u,["touchend","mouseup"],this.endDrag,Q);this.useSetCapture_?(q.setCapture(!1),this.JSC$10454_eventHandler_.listen(q,"losecapture",this.endDrag)):this.JSC$10454_eventHandler_.listen(jp(u),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10454_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,Q);this.clientX=this.startX=g.clientX;this.clientY=this.startY=g.clientY;this.screenX=g.screenX;this.screenY=g.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Qu(LH(this.JSC$10454_document_))}};
_.P.endDrag=function(g,u){this.JSC$10454_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10454_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new $o("end",this,g.clientX,g.clientY,g,HdZ(this,this.deltaX),AgR(this,this.deltaY),u||g.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.P.handleMove_=function(g){if(this.enabled_){var u=g.clientX-this.clientX,q=g.clientY-this.clientY;this.clientX=g.clientX;this.clientY=g.clientY;this.screenX=g.screenX;this.screenY=g.screenY;if(!this.dragging_){var Q=this.startX-this.clientX,L=this.startY-this.clientY;if(Q*Q+L*L>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new $o("start",this,g.clientX,g.clientY,g)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(g);return}}q=Zda(this,u,q);u=q.x;q=q.y;this.dragging_&&this.dispatchEvent(new $o("beforedrag",
this,g.clientX,g.clientY,g,u,q))&&(lMX(this,g,u,q),g.preventDefault())}};
var Zda=function(g,u,q){var Q=Qu(LH(g.JSC$10454_document_));u+=Q.x-g.pageScroll.x;q+=Q.y-g.pageScroll.y;g.pageScroll=Q;g.deltaX+=u;g.deltaY+=q;return new _.l7(HdZ(g,g.deltaX),AgR(g,g.deltaY))};
_.GG.prototype.onScroll_=function(g){var u=Zda(this,0,0);g.clientX=this.clientX;g.clientY=this.clientY;lMX(this,g,u.x,u.y)};
var lMX=function(g,u,q,Q){g.target.style.left=q+"px";g.target.style.top=Q+"px";g.dispatchEvent(new $o("drag",g,u.clientX,u.clientY,u,q,Q))},HdZ=function(g,u){var q=g.limits;
g=isNaN(q.left)?null:q.left;q=isNaN(q.width)?0:q.width;return Math.min(g!=null?g+q:Infinity,Math.max(g!=null?g:-Infinity,u))},AgR=function(g,u){var q=g.limits;
g=isNaN(q.top)?null:q.top;q=isNaN(q.height)?0:q.height;return Math.min(g!=null?g+q:Infinity,Math.max(g!=null?g:-Infinity,u))};
_.GG.prototype.isDragging=function(){return this.dragging_};
var $o=function(g,u,q,Q,L,E,y){_.YF.call(this,g);this.clientX=q;this.clientY=Q;this.browserEvent=L;this.left=E!==void 0?E:u.deltaX;this.top=y!==void 0?y:u.deltaY};
_.TK($o,_.YF);var RQ=function(g){this.JSC$10461_map_=new Map;var u=arguments.length;if(u>1){if(u%2)throw Error("na");for(var q=0;q<u;q+=2)this.set(arguments[q],arguments[q+1])}else g&&this.addAll(g)};
_.P=RQ.prototype;_.P.getCount=function(){return this.JSC$10461_map_.size};
_.P.getValues=function(){return Array.from(this.JSC$10461_map_.values())};
_.P.getKeys=function(){return Array.from(this.JSC$10461_map_.keys())};
_.P.containsKey=function(g){return this.JSC$10461_map_.has(g)};
_.P.containsValue=function(g){return this.getValues().some(function(u){return u==g})};
_.P.equals=function(g,u){var q=this;u=u===void 0?function(Q,L){return Q===L}:u;
return this===g?!0:this.JSC$10461_map_.size!=g.getCount()?!1:this.getKeys().every(function(Q){return u(q.JSC$10461_map_.get(Q),g.get(Q))})};
_.P.isEmpty=function(){return this.JSC$10461_map_.size==0};
_.P.clear=function(){this.JSC$10461_map_.clear()};
_.P.remove=function(g){return this.JSC$10461_map_.delete(g)};
_.P.get=function(g,u){return this.JSC$10461_map_.has(g)?this.JSC$10461_map_.get(g):u};
_.P.set=function(g,u){this.JSC$10461_map_.set(g,u);return this};
_.P.addAll=function(g){if(g instanceof RQ){g=_.N(g.JSC$10461_map_);for(var u=g.next();!u.done;u=g.next()){var q=_.N(u.value);u=q.next().value;q=q.next().value;this.JSC$10461_map_.set(u,q)}}else if(g)for(g=_.N(Object.entries(g)),u=g.next();!u.done;u=g.next())q=_.N(u.value),u=q.next().value,q=q.next().value,this.JSC$10461_map_.set(u,q)};
_.P.forEach=function(g,u){var q=this;u=u===void 0?this:u;this.JSC$10461_map_.forEach(function(Q,L){return g.call(u,Q,L,q)})};
_.P.clone=function(){return new RQ(this)};(function(){for(var g=["ms","moz","webkit","o"],u,q=0;u=g[q]&&!_.Qq.requestAnimationFrame;++q)_.Qq.requestAnimationFrame=_.Qq[u+"RequestAnimationFrame"],_.Qq.cancelAnimationFrame=_.Qq[u+"CancelAnimationFrame"]||_.Qq[u+"CancelRequestAnimationFrame"];if(!_.Qq.requestAnimationFrame){var Q=0;_.Qq.requestAnimationFrame=function(L){var E=(new Date).getTime(),y=Math.max(0,16-(E-Q));Q=E+y;return _.Qq.setTimeout(function(){L(E+y)},y)};
_.Qq.cancelAnimationFrame||(_.Qq.cancelAnimationFrame=function(L){clearTimeout(L)})}})();
var O0T=[[],[]],K9q=0,xu3=!1,YkJ=0;var IMi=_.CT(["about:blank"]),ido=_.CT(["javascript:undefined"]),C6X=_.A1(IMi);_.WT(C6X);var bd$=_.A1(ido);_.WT(bd$);_.TK(lv,_.A5);lv.prototype.handleEvent=function(g){var u=new _.sO(g.event_);u.type=g.type=="focusin"||g.type=="focus"?"focusin":"focusout";this.dispatchEvent(u)};
lv.prototype.disposeInternal=function(){lv.superClass_.disposeInternal.call(this);Qb(this.listenKeyIn_);Qb(this.listenKeyOut_);delete this.JSC$10467_element_};_.TK(iv,I2);_.P=iv.prototype;_.P.focusHandler_=null;_.P.visible_=!1;_.P.bgEl_=null;_.P.bgIframeEl_=null;_.P.tabCatcherElement_=null;_.P.backwardTabWrapInProgress_=!1;_.P.getCssClass=function(){return"goog-modalpopup"};
_.P.getBackgroundElement=function(){return this.bgEl_};
_.P.JSC$10451_createDom=function(){iv.superClass_.JSC$10451_createDom.call(this);var g=this.getElement(),u=jK(this.getCssClass()).split(" ");Fy(g,u);g.tabIndex=0;_.TQ(g,!1);dMo(this);FLX(this)};
var dMo=function(g){if(g.useIframeMask_&&!g.bgIframeEl_){var u=g.JSC$10449_dom_.JSC$9635_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Px(u,C6X);g.bgIframeEl_=u;g.bgIframeEl_.className=g.getCssClass()+"-bg";_.TQ(g.bgIframeEl_,!1);u_o(g.bgIframeEl_,0)}g.bgEl_||(g.bgEl_=g.JSC$10449_dom_.JSC$9635_createDom("DIV",g.getCssClass()+"-bg"),_.TQ(g.bgEl_,!1))},FLX=function(g){g.tabCatcherElement_||(g.tabCatcherElement_=g.JSC$10449_dom_.createElement("SPAN"),_.TQ(g.tabCatcherElement_,
!1),g.tabCatcherElement_.tabIndex=0,g.tabCatcherElement_.style.position="absolute")};
_.P=iv.prototype;_.P.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.P.canDecorate=function(g){return!!g&&g.tagName=="DIV"};
_.P.decorateInternal=function(g){iv.superClass_.decorateInternal.call(this,g);g=jK(this.getCssClass()).split(" ");Fy(this.getElement(),g);dMo(this);FLX(this);this.getElement().tabIndex=0;_.TQ(this.getElement(),!1)};
_.P.enterDocument=function(){this.bgIframeEl_&&_.wX(this.bgIframeEl_,this.getElement());_.wX(this.bgEl_,this.getElement());iv.superClass_.enterDocument.call(this);_.cH(this.tabCatcherElement_,this.getElement());this.focusHandler_=new lv(this.JSC$10449_dom_.JSC$9633_document_);t$(this).listen(this.focusHandler_,"focusin",this.onFocus);mMb(this,!1)};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Fo(this.focusHandler_);iv.superClass_.exitDocument.call(this);_.UU(this.bgIframeEl_);_.UU(this.bgEl_);_.UU(this.tabCatcherElement_)};
_.P.setVisible=function(g){if(g!=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_&&mMb(this,g),g){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10449_dom_.JSC$9633_document_.activeElement}catch(L){}this.updateModalAndBackground_();t$(this).listen(this.JSC$10449_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10449_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);aMX(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)fh(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){t$(this).unlisten(this.JSC$10449_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10449_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)fh(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var u=this.JSC$10449_dom_,q=u.JSC$9633_document_.body,Q=u.JSC$9633_document_.activeElement||q;if(!this.lastFocus_||this.lastFocus_==q){this.lastFocus_=null;break a}(Q==q||u.contains(this.getElement(),Q))&&this.lastFocus_.focus()}catch(L){}this.lastFocus_=
null}}};
var mMb=function(g,u){g.modalAriaVisibilityHelper_||(g.modalAriaVisibilityHelper_=new nQb(g.JSC$10449_element_,g.JSC$10449_dom_));g=g.modalAriaVisibilityHelper_;if(u){g.hiddenElements_||(g.hiddenElements_=[]);u=g.JSC$10470_dom_.getChildren(g.JSC$10470_dom_.JSC$9633_document_.body);for(var q=0;q<u.length;q++){var Q=u[q],L;if(L=Q!=g.JSC$10470_element_)L=Q.getAttribute("aria-hidden"),L=!(L==null||L==void 0?0:String(L));L&&(es(Q,"hidden",!0),g.hiddenElements_.push(Q))}}else if(g.hiddenElements_){for(u=
0;u<g.hiddenElements_.length;u++)g.hiddenElements_[u].removeAttribute("aria-hidden");g.hiddenElements_=null}};
iv.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var aMX=function(g,u){g.bgIframeEl_&&_.TQ(g.bgIframeEl_,u);g.bgEl_&&_.TQ(g.bgEl_,u);_.TQ(g.getElement(),u);_.TQ(g.tabCatcherElement_,u)};
_.P=iv.prototype;_.P.onShow=function(){this.dispatchEvent("show")};
_.P.onHide=function(){aMX(this,!1);this.dispatchEvent("hide")};
_.P.isVisible=function(){return this.visible_};
_.P.focus=function(){this.focusElement_()};
_.P.resizeBackground_=function(){this.bgIframeEl_&&_.TQ(this.bgIframeEl_,!1);this.bgEl_&&_.TQ(this.bgEl_,!1);var g=this.JSC$10449_dom_.JSC$9633_document_;var u=_.qi(jp(this.JSC$10449_dom_.JSC$9633_document_)||window);var q=Math.max(u.width,Math.max(g.body.scrollWidth,g.documentElement.scrollWidth));g=Math.max(u.height,Math.max(g.body.scrollHeight,g.documentElement.scrollHeight));this.bgIframeEl_&&(_.TQ(this.bgIframeEl_,!0),_.SUR(this.bgIframeEl_,q,g));this.bgEl_&&(_.TQ(this.bgEl_,!0),_.SUR(this.bgEl_,
q,g))};
_.P.reposition=function(){var g;if(_.k$2(this.getElement())=="fixed")var u=g=0;else u=Qu(this.JSC$10449_dom_),g=u.x,u=u.y;var q=Ui0(this.getElement());var Q=_.qi(jp(this.JSC$10449_dom_.JSC$9633_document_)||window);g=Math.max(g+Q.width/2-q.width/2,0);u=Math.max(u+Q.height/2-q.height/2,0);IA(this.getElement(),g,u);IA(this.tabCatcherElement_,g,u)};
_.P.onFocus=function(g){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():g.target==this.tabCatcherElement_&&MP(this.focusElement_,0,this)};
_.P.focusElement_=function(){try{this.getElement().focus()}catch(g){}};
_.P.disposeInternal=function(){_.Fo(this.popupShowTransition_);this.popupShowTransition_=null;_.Fo(this.popupHideTransition_);this.popupHideTransition_=null;_.Fo(this.bgShowTransition_);this.bgShowTransition_=null;_.Fo(this.bgHideTransition_);this.bgHideTransition_=null;iv.superClass_.disposeInternal.call(this)};_.TK(bv,iv);_.P=bv.prototype;_.P.escapeToCancel_=!0;_.P.hasTitleCloseButton_=!0;_.P.modal_=!0;_.P.draggable_=!0;_.P.backgroundElementOpacity_=.5;_.P.title_="";_.P.JSC$10482_dragger_=null;_.P.JSC$10482_disposeOnHide_=!1;_.P.titleEl_=null;_.P.titleTextEl_=null;_.P.titleTextId_=null;_.P.titleCloseEl_=null;_.P.contentEl_=null;_.P.buttonEl_=null;_.P.getCssClass=function(){return this.JSC$10480_class_};
_.P.setTitle=function(g){this.title_=g;this.titleTextEl_&&_.Ay(this.titleTextEl_,g)};
_.P.getTitle=function(){return this.title_};
_.P.getContent=function(){return""};
_.P.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var VZb=function(g){g.getElement()||g.render();return g.getElement()};
bv.prototype.getBackgroundElement=function(){this.getElement()||this.render();return bv.superClass_.getBackgroundElement.call(this)};
var XU8=function(g,u){g.backgroundElementOpacity_=u;g.getElement()&&(u=g.getBackgroundElement())&&u_o(u,g.backgroundElementOpacity_)};
bv.prototype.setDraggable=function(g){this.draggable_=g;rgX(this,g&&this.inDocument_)};
bv.prototype.handleDrag=function(){};
var rgX=function(g,u){var q=jK(g.JSC$10480_class_+"-title-draggable").split(" ");g.getElement()&&(u?Fy(g.titleEl_,q):iB8(g.titleEl_,q));u&&!g.JSC$10482_dragger_?(u=new _.GG(g.getElement(),g.titleEl_),g.JSC$10482_dragger_=u,Fy(g.titleEl_,q),_.Z1(g.JSC$10482_dragger_,"start",g.setDraggerLimits_,!1,g),_.Z1(g.JSC$10482_dragger_,"drag",g.handleDrag,!1,g)):!u&&g.JSC$10482_dragger_&&(g.JSC$10482_dragger_.dispose(),g.JSC$10482_dragger_=null)};
_.P=bv.prototype;
_.P.JSC$10451_createDom=function(){bv.superClass_.JSC$10451_createDom.call(this);var g=this.getElement(),u=this.JSC$10449_dom_;this.titleTextId_=this.getId();var q=this.getId()+".contentEl";this.titleEl_=u.JSC$9635_createDom("DIV",this.JSC$10480_class_+"-title",this.titleTextEl_=u.JSC$9635_createDom("SPAN",{className:this.JSC$10480_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=u.JSC$9635_createDom("SPAN",this.JSC$10480_class_+"-title-close"));bHb(g,this.titleEl_,this.contentEl_=
u.JSC$9635_createDom("DIV",{className:this.JSC$10480_class_+"-content",id:q}),this.buttonEl_=u.JSC$9635_createDom("DIV",this.JSC$10480_class_+"-buttons"));RtW(this.titleTextEl_,"heading");RtW(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;es(this.titleCloseEl_,"label","Close");RtW(g,"dialog");es(g,"labelledby",this.titleTextId_||"");_.TQ(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(g=this.buttons_,g.JSC$10483_element_=this.buttonEl_,g.render());_.TQ(this.buttonEl_,!!this.buttons_);
XU8(this,this.backgroundElementOpacity_)};
_.P.decorateInternal=function(g){bv.superClass_.decorateInternal.call(this,g);g=this.getElement();var u=this.JSC$10480_class_+"-content";this.contentEl_=MH(document,null,u,g)[0];this.contentEl_||(this.contentEl_=this.JSC$10449_dom_.JSC$9635_createDom("DIV",u),g.appendChild(this.contentEl_));u=this.JSC$10480_class_+"-title";var q=this.JSC$10480_class_+"-title-text",Q=this.JSC$10480_class_+"-title-close";(this.titleEl_=MH(document,null,u,g)[0])?(this.titleTextEl_=MH(document,null,q,this.titleEl_)[0],
this.titleCloseEl_=MH(document,null,Q,this.titleEl_)[0]):(this.titleEl_=this.JSC$10449_dom_.JSC$9635_createDom("DIV",u),g.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=KvZ(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.e0("SPAN",{className:q,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;es(g,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10449_dom_.JSC$9635_createDom("SPAN",Q),this.titleEl_.appendChild(this.titleCloseEl_));_.TQ(this.titleCloseEl_,this.hasTitleCloseButton_);u=this.JSC$10480_class_+"-buttons";(this.buttonEl_=MH(document,null,u,g)[0])?(this.buttons_=new Ch(this.JSC$10449_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10449_dom_.JSC$9635_createDom("DIV",u),g.appendChild(this.buttonEl_),this.buttons_&&(g=this.buttons_,g.JSC$10483_element_=this.buttonEl_,g.render()),_.TQ(this.buttonEl_,
!!this.buttons_));XU8(this,this.backgroundElementOpacity_)};
_.P.enterDocument=function(){bv.superClass_.enterDocument.call(this);t$(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);t$(this).listen(this.buttonEl_,"click",this.onButtonClick_);rgX(this,this.draggable_);t$(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var g=this.getElement();RtW(g,"dialog");this.titleTextEl_.id!==""&&es(g,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){g=this.JSC$10449_dom_;
var u=this.getBackgroundElement();g.removeNode(this.bgIframeEl_);g.removeNode(u)}this.isVisible()&&mMb(this,!1)}};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);rgX(this,!1);bv.superClass_.exitDocument.call(this)};
_.P.setVisible=function(g){g!=this.isVisible()&&(this.inDocument_||this.render(),bv.superClass_.setVisible.call(this,g))};
_.P.onShow=function(){bv.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.P.onHide=function(){bv.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10482_disposeOnHide_&&this.dispose()};
_.P.setDraggerLimits_=function(){var g=this.JSC$10449_dom_.JSC$9633_document_,u=_.qi(jp(g)||window),q=Math.max(g.body.scrollWidth,u.width);g=Math.max(g.body.scrollHeight,u.height);var Q=Ui0(this.getElement());_.k$2(this.getElement())=="fixed"?this.JSC$10482_dragger_.limits=new CO(0,0,Math.max(0,u.width-Q.width),Math.max(0,u.height-Q.height)):this.JSC$10482_dragger_.limits=new CO(0,0,q-Q.width,g-Q.height)};
_.P.onTitleCloseClick_=function(){WLa(this)};
var WLa=function(g){if(g.hasTitleCloseButton_){var u=g.buttons_,q=u&&u.cancelButton_;q?(u=u.get(q),g.dispatchEvent(new w2(q,u))&&g.setVisible(!1)):g.setVisible(!1)}},TVW=function(g){g.hasTitleCloseButton_=!1;
g.titleCloseEl_&&_.TQ(g.titleCloseEl_,g.hasTitleCloseButton_)};
bv.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;bv.superClass_.disposeInternal.call(this)};
bv.prototype.onButtonClick_=function(g){a:{for(g=g.target;g!=null&&g!=this.buttonEl_;){if(g.tagName=="BUTTON")break a;g=g.parentNode}g=null}if(g&&!g.disabled){g=g.name;var u=this.buttons_.get(g);this.dispatchEvent(new w2(g,u))&&this.setVisible(!1)}};
bv.prototype.onKey_=function(g){var u=!1,q=!1,Q=this.buttons_,L=g.target;if(g.type=="keydown")if(this.escapeToCancel_&&g.keyCode==27){var E=Q&&Q.cancelButton_;L=L.tagName=="SELECT"&&!L.disabled;E&&!L?(q=!0,u=Q.get(E),u=this.dispatchEvent(new w2(E,u))):L||(u=!0)}else{if(g.keyCode==9&&g.shiftKey&&L==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(t){}MP(this.resetBackwardTabWrap_,0,this)}}else if(g.keyCode==13){if(L.tagName=="BUTTON"&&!L.disabled)E=L.name;
else if(L==this.titleCloseEl_)WLa(this);else if(Q){var y=Q.defaultButton_,v;if(v=y)a:{v=uv("BUTTON",Q.JSC$10483_element_);for(var J,f=0;J=v[f];f++)if(J.name==y||J.id==y){v=J;break a}v=null}L=(L.tagName=="TEXTAREA"||L.tagName=="SELECT"||L.tagName=="A")&&!L.disabled;!v||v.disabled||L||(E=y)}E&&Q&&(q=!0,u=this.dispatchEvent(new w2(E,String(Q.get(E)))))}else L!=this.titleCloseEl_||g.keyCode!=32&&g.key!=" "||WLa(this);if(u||q)g.stopPropagation(),g.preventDefault();u&&this.setVisible(!1)};
var w2=function(g,u){this.type="dialogselect";this.key=g;this.caption=u};
_.TK(w2,_.YF);var Ch=function(g){RQ.call(this);g||LH();this.cancelButton_=this.JSC$10483_element_=this.defaultButton_=null};
_.TK(Ch,RQ);_.P=Ch.prototype;_.P.clear=function(){RQ.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.P.set=function(g,u,q,Q){RQ.prototype.set.call(this,g,u);q&&(this.defaultButton_=g);Q&&(this.cancelButton_=g);return this};
_.P.addButton=function(g,u,q){return this.set(g.key,g.caption,u,q)};
_.P.render=function(){if(this.JSC$10483_element_){_.fa(this.JSC$10483_element_,vOu);var g=LH(this.JSC$10483_element_);this.forEach(function(u,q){u=g.JSC$9635_createDom("BUTTON",{name:q},u);q==this.defaultButton_&&(u.className="goog-buttonset-default");this.JSC$10483_element_.appendChild(u)},this)}};
_.P.decorate=function(g){if(g&&g.nodeType==1){this.JSC$10483_element_=g;g=uv("BUTTON",this.JSC$10483_element_);for(var u,q,Q,L=0;u=g[L];L++)if(q=u.name||u.id,Q=KvZ(u)||u.value,q){var E=L==0;this.set(q,Q,E,u.name=="cancel");E&&_.Za(u,"goog-buttonset-default")}}};
_.P.getElement=function(){return this.JSC$10483_element_};
var k83={key:"ok",caption:"OK"},SkZ={key:"cancel",caption:"Cancel"},htb={key:"yes",caption:"Yes"},YAH={key:"no",caption:"No"},OdH={key:"save",caption:"Save"},KL5={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Ch).addButton(k83,!0,!0),(new Ch).addButton(k83,!0).addButton(SkZ,!1,!0),(new Ch).addButton(htb,!0).addButton(YAH,!1,!0),(new Ch).addButton(htb).addButton(YAH,!0).addButton(SkZ,!1,!0),(new Ch).addButton(KL5).addButton(OdH).addButton(SkZ,!0,!0));_.TK(oQu,bv);_.TK(Uuf,dc);var xMX=_.CT(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),BVX=_.CT(["//apis.google.com/js/rpc.js"]),y6S=_.A1(xMX),sIF=_.A1(BVX),u7Z=null;var F_=function(g,u){_.A5.call(this);this.JSC$10492_element_=g;g=_.BD(this.JSC$10492_element_)?this.JSC$10492_element_:this.JSC$10492_element_?this.JSC$10492_element_.body:null;this.isRtl_=!!g&&_.qHH(g);this.listenKey_=_.Z1(this.JSC$10492_element_,_.qM?"DOMMouseScroll":"mousewheel",this,u)};
_.TK(F_,_.A5);F_.prototype.handleEvent=function(g){var u=0,q=0,Q=g.event_;Q.type=="mousewheel"?(g=ztZ(-Q.wheelDelta),Q.wheelDeltaX!==void 0?(u=ztZ(-Q.wheelDeltaX),q=ztZ(-Q.wheelDeltaY)):q=g):(g=Q.detail,g>100?g=3:g<-100&&(g=-3),Q.axis!==void 0&&Q.axis===Q.HORIZONTAL_AXIS?u=g:q=g);typeof this.maxDeltaX_==="number"&&(u=_.tL(u,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(q=_.tL(q,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(u=-u);u=new nC0(g,Q,u,q);this.dispatchEvent(u)};
var ztZ=function(g){return _.u6&&(_.ELW||NCo)&&g%40!=0?g:g/40};
F_.prototype.disposeInternal=function(){F_.superClass_.disposeInternal.call(this);Qb(this.listenKey_);this.listenKey_=null};
var nC0=function(g,u,q,Q){_.sO.call(this,u);this.type="mousewheel";this.detail=g;this.deltaX=q;this.deltaY=Q};
_.TK(nC0,_.sO);_.r_=function(g){var u="instance_";if(g.instance_&&g.hasOwnProperty(u))return g.instance_;u=new g;return g.instance_=u};var NNb;var kBW=_.CT(["https://about:blank"]),SAH=_.CT(['javascript:""']),oCi=_.CT(["about:blank"]);_.TK(h5,oQu);_.P=h5.prototype;_.P.JSC$10500_url_="";_.P.JSC$10500_iframe_=null;_.P.iframeLoaded_=!1;_.P.loadedFired_=!1;_.P.callback_=function(){};
_.P.enterDocument=function(){h5.superClass_.enterDocument.call(this);Lkm(this.getBackgroundElement(),t$(this))};
_.P.render=function(g){var u=this;h5.superClass_.render.call(this,g);this.useGapi_?sMi(this.iframeManager_,window).then(function(){return UM0(u)}).then(null,function(){u.callback_({action:"error"})}):gJH(this);
this.JSC$10498_enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),VZb(this).setAttribute("popover","manual"))};
var UM0=function(g){var u=g.JSC$10449_dom_.JSC$9635_createDom("div",["picker-dialog-content","picker-frame"]);_.TQ(u,!1);g.getContentElement().appendChild(u);return yg0(g.iframeManager_,u,function(q){var Q=a1X(q["iframe-command"]);switch(Q.getCommand()){case 1:q=g.callback_;Q=_.o0(Q,KN,2);var L="";switch(Q.getStatus()){case 2:L="cancel";break;case 1:L="picked";break;case 3:L="error"}var E=_.Vu(Q,N$,2,_.Xo(Ibo));Q=E.length===0?{action:L}:YYa(E,L,_.o0(Q,dV8,7));q.call(g,Q);g.setVisible(!1);break;case 4:TVW(g);
g.callback_({action:"loaded"});break;case 7:case 8:q=g.callback_;a:{L=Q.getCommand();E=_.o0(Q,KN,2);switch(L){case 7:L="uploadScheduled";break;case 8:L="uploadStateChange";break;default:Q={};break a}Q=_.Vu(E,N$,2,_.Xo(Ibo));if(Q.length===0)Q={action:L};else{var y=_.o0(E,dV8,7);E=y&&_.J2(y,1);y=bfZ(y);Q=mwa(Q,L,E,y)}}q.call(g,Q)}},g.JSC$10500_url_,g.targetId_,g.rpcToken_).then(function(q){g.JSC$10500_iframe_=q.getIframeEl();
u1a(g);_.TQ(g.JSC$10500_iframe_.parentElement,!0);_.Za(g.getElement(),"picker-dialog");qg0(g);return q})},gJH=function(g){g.JSC$10500_iframe_=g.JSC$10449_dom_.JSC$9635_createDom("IFRAME",{id:g.targetId_,
name:g.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Px(g.JSC$10500_iframe_,QrW(g));_.Za(g.getElement(),"picker-dialog");g.getContentElement().appendChild(g.JSC$10500_iframe_);t$(g).listen(g.JSC$10500_iframe_,"load",function(){return void u1a(g)});
g.JSC$10500_iframe_.src=g.JSC$10500_url_;qg0(g)},EJn=function(g){Lg0(g,(0,_.EH)(function(u){u.setAuthToken(this.targetId_,this.rpcToken_)},g))},qg0=function(g){var u=_.rc(_.X_(g.JSC$10500_url_),"title");
u&&g.setTitle(u)},QrW=function(g){return _.cTu("Internet Explorer")>=7&&_.N3(g.JSC$10500_url_,"https")?_.A1(kBW):_.xS?_.A1(SAH):_.A1(oCi)},u1a=function(g){EJn(g);
g.iframeLoaded_=!0;g.JSC$10500_iframe_.tabIndex=0;g.isVisible()&&g.focus()};
h5.prototype.handleKeydown_=function(g){g.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),g.stopPropagation(),g.preventDefault())};
var Lg0=function(g,u){var q=g.JSC$10498_gadgetsDomHelper_;qrb(function(){u(q.getWindow().gadgets.rpc)},q)};
h5.prototype.setUrl=function(g){g=_.WD(new _.Ir(g),"rpcService",this.targetId_);_.WD(g,"rpctoken",this.rpcToken_);_.Yk(g,"rpctoken="+this.rpcToken_);_.Xy(g,"https");this.JSC$10500_url_=g.toString();this.JSC$10500_iframe_&&(this.JSC$10500_iframe_.src=this.JSC$10500_url_)};
var P1Z=function(g,u){g.callback_=u;Lg0(g,(0,_.EH)(function(q){q.register(this.targetId_,(0,_.EH)(this.handlePickerAction_,this))},g))};
h5.prototype.handlePickerAction_=function(g){var u=g.action;u=="loaded"&&(this.loadedFired_=!0,Nw$(this,new hYS(this.isVisible())),sri(this),TVW(this),t$(this).unlisten(this.JSC$10449_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10500_iframe_.tabIndex=0);u!="picked"&&u!="cancel"||this.setVisible(!1);this.callback_(g)};
var sri=function(g){g.JSC$10500_appId_&&Nw$(g,new Tuk(g.JSC$10500_appId_,window.location.protocol+"//"+window.location.host))};
h5.prototype.setRelayUrl=function(g){Lg0(this,(0,_.EH)(function(u){u.setRelayUrl(this.targetId_,g)},this))};
var Nw$=function(g,u){g.useGapi_&&jMW(u,g.iframeManager_).then(null,function(){g.callback_({action:"error"})});
Lg0(g,(0,_.EH)(function(q){q.call(this.targetId_,"picker",null,u)},g))};
h5.prototype.resizePicker_=function(){var g=jp(this.JSC$10449_dom_.JSC$9633_document_)||window;if(_.rc(_.X_(this.JSC$10500_url_),"ignoreLimits")=="true")g=new _.IW(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.rc(_.X_(this.JSC$10500_url_),"shadeDialog")=="true"){var u=VZb(this);u=Q2b(u);var q=_.qi(g);g=q.width-80;q=q.height-40;u&&(g-=u.left?u.left:0,g-=u.right?u.right:0,q-=u.top?u.top:0,q-=u.bottom?u.bottom:0);g=new _.IW(g>0?g:0,q>0?q:0)}else(u=this.preferredDialogWidth_)?(u=Math.max(320,
Math.min(1051,u)),(q=this.preferredDialogHeight_)||(q=_.qi(g).height*.85),q=Math.max(480,Math.min(650,q))):(u=_.qi(g),q=u.width*.618,q=q<u.height?Math.round(Math.max(480,Math.min(650,q*.85))):Math.round(Math.max(480,Math.min(650,u.height*.85))),u=Math.round(q/.618)),g=_.qi(g),u=Math.min(u,Math.max(g.width,320)),q=Math.min(q,Math.max(g.height,480)),g=new _.IW(u,q);_.SUR(this.getContentElement(),g);this.reposition()};
h5.prototype.reposition=function(){if(_.rc(_.X_(this.JSC$10500_url_),"shadeDialog")=="true"){var g=Ui0(this.getElement()),u=_.qi(this.JSC$10449_dom_.getWindow());g=Math.floor(u.width/2-g.width/2);u=VZb(this);if(u=Q2b(u)){var q=u.left?u.left:0;q+=u.right?u.right:0;g=Math.floor(g-q/2)}g=g>0?g:0;u=Qu(this.JSC$10449_dom_).y;IA(this.getElement(),g,u)}else h5.superClass_.reposition.call(this)};
h5.prototype.setVisible=function(g){if(g!=this.isVisible()){if(this.autoSizeDialog_){var u=this.JSC$10449_dom_.getWindow();g?(this.resizePicker_(),t$(this).listen(u,"resize",this.resizePicker_),this.iframeLoaded_||t$(this).listen(u,"keydown",this.handleKeydown_)):(t$(this).unlisten(u,"resize",this.resizePicker_),this.iframeLoaded_||t$(this).unlisten(u,"keydown",this.handleKeydown_))}if(this.JSC$10498_enablePopover_){u=this.getBackgroundElement();var q=VZb(this);"showPopover"in q&&(g?(u.showPopover(),
q.showPopover()):(u.hidePopover(),q.hidePopover()))}}h5.superClass_.setVisible.call(this,g);Nw$(this,new hYS(g))};
h5.prototype.focus=function(){h5.superClass_.focus.call(this);if(this.JSC$10500_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10500_iframe_.focus()}catch(g){}};var ud=function(g,u){u=u===void 0?h5:u;dc.call(this,g);this.pickerConstructor=u;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(g=window.location.origin)||(g=window.location.protocol+"//"+window.location.host);g&&this.urlParamMap_.set("origin",g);this.postProcessors_=[]};
_.A(ud,Uuf);ud.prototype.JSC$10505_disposeOnHide_=!1;
ud.prototype.build=function(){this.JSC$10406_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10406_appId_);this.getRelayUrl()||this.setRelayUrl(_.TA(_.Yk(_.hz(_.X_(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("hb");var g=new this.pickerConstructor(yJ8(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1,!1);g.JSC$10482_disposeOnHide_=this.JSC$10505_disposeOnHide_;
g.JSC$10500_appId_=this.JSC$10406_appId_;g.loadedFired_&&sri(g);P1Z(g,this.callback_);return g};
var vJR=function(g){g.urlParamMap_.set("multiselectEnabled","true");return g};
_.P=ud.prototype;_.P.getHeight=function(){return this.dialogHeight_};
_.P.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.P.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.P.getTitle=function(){return this.urlParamMap_.get("title")};
_.P.getWidth=function(){return this.dialogWidth_};
var DK$=function(g){g.JSC$10505_disposeOnHide_=void 0;return g};
ud.prototype.setRelayUrl=function(g){this.urlParamMap_.set("parent",g);return this};
var pXa=function(g,u){g.urlParamMap_.set("selectButtonLabel",u);return g};
ud.prototype.setSize=function(g,u){this.dialogWidth_=g;this.dialogHeight_=u;return this};
ud.prototype.setTitle=function(g){this.urlParamMap_.set("title",g);return this};
var yJ8=function(g){g.postProcessors_.length&&g.urlParamMap_.set("pp",JSON.stringify(g.postProcessors_));g.urlParamMap_.set("nav",lF$(g.nav_));var u=new _.Ir(g.getBaseUrl());g.urlParamMap_.forEach(function(q,Q){_.WD(u,Q,q)});
return u};var f4i=function(g,u){g.name!==void 0?(this.name=g.name,this.code=JJH[g.name]):(this.code=g=g.code,this.name=jri(g));_.gq.call(this,tgW("%s %s",this.name,u))};
_.TK(f4i,_.gq);var jri=function(g){var u=_.pH.findKey(JJH,function(q){return g==q});
if(u===void 0)throw Error("jb`"+g);return u},ct={},JJH=(ct.AbortError=3,ct.EncodingError=5,ct.InvalidModificationError=9,ct.InvalidStateError=7,ct.NotFoundError=1,ct.NotReadableError=4,ct.NoModificationAllowedError=6,ct.PathExistsError=12,ct.QuotaExceededError=10,ct.SecurityError=2,ct.SyntaxError=8,ct.TypeMismatchError=11,ct);_.TK(DTu,_.YF);var M_0=function(g,u,q){q===void 0&&(q=g.size);return g.slice?g.slice(u,q):null};var J6q=new WeakMap,pv3=function(g,u){g=[g];for(var q=u.length-1;q>=0;--q)g.push(typeof u[q],u[q]);return g.join("\v")};_.fvT(function(){if(!_.Qq.Blob)return!1;var g=new Uint8Array(100);try{var u=new Blob([g])}catch(q){return!1}return u.size!=100?!1:!0});
var t_W=_.fvT(function(){if(!_.Qq.Blob)return!1;var g=new Uint8Array(100);try{var u=new Blob([g])}catch(q){return!1}return M_0(u,0,1)===null?!1:!0});try{var efb,Ggn,$Ki=(Ggn=(efb=window)==null?void 0:efb.top)!=null?Ggn:_.Qq;$Ki.U3bHHf!=null||($Ki.U3bHHf=0);$Ki.U3bHHf++}catch(g){_.Qq.U3bHHf!=null||(_.Qq.U3bHHf=0),_.Qq.U3bHHf++};var eMq=new WeakMap;var tam=new WeakMap;var RMM={};var nh=void 0;var c6S=Symbol("rb");var XvF=o2("WizInjectionContext_ModelRootElement"),r6b=o2("WizInjectionContext_RendererData"),WkZ=o2("WizInjectionContext_InjectingConstructor"),lvb=o2("WizInjectionContext_AppContext"),Ivf=o2("WizInjectionContext_Dispatcher"),Ctq=o2("WizInjectionContext_RootElement"),Vah=o2("WizInjectionContext_AsyncDeps");var oY=Symbol("sb");var pS=function(){this.afterRenderCallbacks=null},bBh=Symbol("tb"),e8=function(g){this.props=g;
this.__unmounted=!1};
e8.prototype.didPatch=function(){};
e8.prototype.didMount=function(){};
e8.prototype.didUnmount=function(){};
e8.prototype.didUpdate=function(){};var TNm={};var xTq=!1;var kXS={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:oiZ,enableContextPerComponent:oiZ,enableLazyTsx:Ux$,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:S00,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var gB=Object.assign({},{attributes:{},handleError:function(g){throw g;}},kXS);var RfR=Symbol("xb"),Z6=Symbol("yb"),cjh=Symbol("zb"),RSm=Symbol("Ab"),CPb=XW(function(g){return uX(g)&&RfR in g});var Ln3=Symbol("Bb"),Ht={},uU3=(Ht[Ln3]=!0,Ht.debugName="[component]",Ht.getComponentStack=function(){for(var g=[],u=this;u;)E1q(u)&&g.push(u.debugName),u=u.parent;return g},Ht.registerSignal=function(){},Ht.registerEffect=function(){},Ht);var qQ=null,L2=!1,PL=1,vL=Symbol("Fb"),eR={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 A$=Symbol("Gb"),Z9=Symbol("Hb"),ya=Symbol("Ib"),MQb=Object.assign({},eR,{value:A$,dirty:!0,error:null,equal:N9m,kind:"computed",producerMustRecompute:function(g){return g.value===A$||g.value===Z9},
producerRecomputeValue:function(g){if(g.value===Z9)throw Error("$");var u=g.value;g.value=Z9;var q=J_u(g),Q=!1;try{var L=g.computation();Qa(null);Q=u!==A$&&u!==ya&&L!==ya&&g.equal(u,L)}catch(E){L=ya,g.error=E}finally{Qa(q),g&&ffK(g)}Q?g.value=u:(g.value=L,g.version++)}});var wXn=Object.assign({},eR,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var $_F=function(){throw Error();};var w6Z=null,eAS=Object.assign({},eR,{equal:N9m,value:void 0,kind:"signal"});var c_S=Object.assign({},eR,{value:A$,dirty:!0,error:null,equal:N9m,kind:"linkedSignal",producerMustRecompute:function(g){return g.value===A$||g.value===Z9},
producerRecomputeValue:function(g){if(g.value===Z9)throw Error("$");var u=g.value;g.value=Z9;var q=J_u(g);try{var Q=g.source();var L=g.computation(Q,u===A$||u===ya?void 0:{source:g.sourceValue,value:u});g.sourceValue=Q}catch(E){L=ya,g.error=E}finally{Qa(q),g&&ffK(g)}u!==A$&&L!==ya&&g.equal(u,L)?g.value=u:(g.value=L,g.version++)}});Object.assign({},eR,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(g){g.schedule!==null&&g.schedule(g.ref)},
cleanupFn:function(){}});var lfu=Symbol("Jb"),f2=Symbol("Kb");var MQ=Array.isArray;var VQS;var cJ5={},PPk=afZ(Object.assign({},{consumerAllowSignalWrites:!0},cJ5)),j8=afZ(Object.assign({},{consumerAllowSignalWrites:!0},cJ5));var wB=Symbol("Pb");var RY=null,vtm,DwK=null,po3;var lX=0,IY=!1,lE=function(){this.queue=new Set};
lE.prototype.schedule=function(g){this.queue.add(g)};
lE.prototype.remove=function(g){this.queue.delete(g)};
lE.prototype.clear=function(){this.queue.clear()};
var t7J=Symbol("Qb"),fF3=Symbol("Rb"),IQ=function(){lE.apply(this,arguments)};
_.A(IQ,lE);IQ.prototype.flush=function(){if(this.queue.size){IY=!0;for(var g=_.N(this.queue),u=g.next();!u.done;u=g.next()){u=u.value;this.queue.delete(u);try{u.run()}catch(q){HVZ(q)}}IY=!1}};
var AJb=function(){IQ.apply(this,arguments)};
_.A(AJb,IQ);var M7Z=new AJb,ZVb=function(){IQ.apply(this,arguments)};
_.A(ZVb,IQ);ZVb.prototype.schedule=function(g){return _.D(function(u){if(u.nextAddress==1)return u.yield(Promise.resolve(),2);g.run();_.Wx(u)})};
ZVb.prototype.enqueue=function(g){this.queue.add(g)};
var eSq=new ZVb,iE=function(){lE.apply(this,arguments)};
_.A(iE,lE);iE.prototype.flush=function(){this.queue.size&&bfh(this.queue)};
var l4$=function(){iE.apply(this,arguments)};
_.A(l4$,iE);l4$.prototype.schedule=function(g){g.version===0?g.run():this.queue.add(g)};
l4$.prototype.flush=function(){if(this.queue.size)if(gB.flushRenderEffectsDuringRender){var g=this.queue;this.queue=new Set;bfh(g)}else bfh(this.queue)};
var $wq=new l4$,I48=function(){iE.apply(this,arguments)};
_.A(I48,iE);I48.prototype.schedule=function(g){return _.D(function(u){if(u.nextAddress==1)return u.yield(Promise.resolve(),2);g.run();_.Wx(u)})};
I48.prototype.enqueue=function(g){this.queue.add(g)};
var Hfh=new I48,iVi=function(){iE.apply(this,arguments)};
_.A(iVi,iE);var woq=new iVi,Zfb=[$wq,M7Z,woq],ifm=[eSq,Hfh],C15=[$wq,woq,Hfh],dwZ=[].concat(_.na(Zfb),_.na(ifm)),bVx=[];w6Z=function(){IFb();for(var g=_.N(bVx),u=g.next();!u.done;u=g.next())u=u.value,u()};
var HVZ=Eb;var Cj={},dK2=Object.assign({},wXn,(Cj[RfR]=!0,Cj.effectType=Z6,Cj.isResettableContext=!0,Cj.consumerMarkedDirty=AjF,Cj.run=function(){mwq(this)},Cj.cleanup=function(){avS(this)},Cj.componentStack=void 0,Cj.debugName="[effect]",Cj.destroy=function(){if(E9(this))for(var g=this.producers;g!==void 0;)g=joT(g);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;g=_.N(C15);for(var u=g.next();!u.done;u=g.next())u.value.remove(this);mTm(this)},Cj[Symbol.dispose]=function(){this.destroy()},Cj)),Fg2=Object.assign({},dK2,{version:1,
dirty:!1});var aFM=Object.assign({},dK2,{effectType:Z6});var V7J=Object.assign({},dK2,{effectType:cjh});var W6Z=Symbol("Tb");var cgf=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 YYq={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},hSk=
{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}]}},DIk={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},xwu=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],K6f={"*":{async:1,dir:0,loading:2,target:3}};var mKn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,bE={},zSu=(bE[1]=null,bE[2]=function(g,u){return u instanceof qa?EP(u):kV.toString()},bE[3]=function(g,u){return xV(u)?_.BT(u):mKn.test(String(u))?String(u):kV.toString()},bE[4]=function(g,u){return u instanceof XV?_.WT(u):kV.toString()},bE[5]=function(g,u){return String(u)},bE[7]=null,bE[8]=null,bE[10]=null,bE);var x0m=Symbol("Wb");var otZ="Y Z E P T G M K  m u n".split(" "),SYb={"":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};_.a4$=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 LS={};RegExp.prototype.hasOwnProperty("sticky");var Agm=function(g){g=String(g);for(var u=function(Q,L,E){for(var y=Math.min(L.length-E,Q.length),v=0;v<y;v++){var J=L[E+v];if(Q[v]!==("A"<=J&&J<="Z"?J.toLowerCase():J))return!1}return!0},q=0;(q=g.indexOf("<",q))!=-1;){if(u("\x3c/script",g,q)||u("\x3c!--",g,q))return"zSoyz";
q+=1}return g};var WL={default:"__default"};var QMK=Object.prototype.hasOwnProperty;gCT.prototype=Object.create(null);var h_=P6J();var z9=null;var etu=function(g){this.created=[];this.deleted=[];this.node=g};var GBM=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var g=this,u=g;g;)u=g,g=g.parentNode;return u};var sMu=function(g,u){this._attrsArr=null;this.nameOrCtor=g;this.key=u;this.text=void 0};var YG=null,O9=null,T9=null,xG=null,jMf=[],Jgb=DMq,BL=[],KlT=function(g){return $MM(function(u,q,Q){T9=O9=u;O9=null;q(Q);pUq(null);O9=T9;T9=T9.parentNode;return u},g)}(),OnZ=function(g){return $MM(function(u,q,Q){var L={nextSibling:u};
O9=L;q(Q);T9&&pUq(u.nextSibling);return L===O9?null:O9},g)}();var n2=[],ByT=0;var Y1=new gCT;var V_i=P6J(),IMu=V_i[WL.default],lMK=V_i.style,Hdh=["focusin","focusout"],bdq="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var P1h=function(){},Rfm=function(){},efT=function(){};var SR=Symbol("dc");var VZT,aMK=mMT;var Nq=Symbol("ec");var $Ku=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(" ")),
GgF=new Set(["a","font","script","style","title"]);var Pk={setUp:kBf,tearDown:kBf,log:kBf,logNodeRange:kBf,graft:function(g,u){u()}};var fS={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Mq=null,tM=function(g,u){e8.call(this,g);var q=this;this.functionComponent=u;this.hooks=[];this.hookCounter=0;this.disposeEffects=FP(function(Q){q.effectContext=Q;_.dB(function(){vJm(q,q.el)})},gB.alwaysTrackContexts||!!nh)};
_.A(tM,e8);tM.prototype.render=function(g){var u=Mq;Mq=this;this.hookCounter=0;var q=Qa(j8),Q=kF(this.effectContext);try{return oOh("render",this.componentName),this.functionComponent(g)}finally{UTb("render",this.componentName),kF(Q),Qa(q),Mq=u}};
_.z3.Object.defineProperties(tM.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return sKT(this.functionComponent)}}});var wXF=Symbol("sc"),f4u=function(g,u,q){this.afterRenderCallbacks=null;this.kind=g;this.props=u;this.children=q};
_.A(f4u,pS);f4u.prototype.render=function(){var g=jru(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var u=_.N(this.afterRenderCallbacks),q=u.next();!q.done;q=u.next())q=q.value,g=q(g);return g};
f4u.prototype.getChildren=function(){return this.children};var HVh=[];$_F=function(g){throw Error("qb`"+g.debugName);};
(function(){var g=z9;z9=function(u){g==null||g(u);AJT(u)}})();Object.assign({},Fg2,{effectType:Z6,elementRef:null,attributes:null,fn:function(){var g=this.elementRef;var u;g.element!=null||(g.element=(u=g.document.getElementById(g.value))!=null?u:void 0);g=g.element;for(u=this.attributes;u;){var q=u.signal();q!==u.prevValue&&(u.prevValue=q,u.namespace===1?g[u.name]=q:cgf.has(u.name)?rB(g,u.name,q?"":null):rB(g,u.name,q));u=u.next}}});_.Gv.debugName="tbhMcf";_.$v.debugName="zyMFzb";Object.assign({},Fg2,{effectType:Z6});_.M.debugName="RlDudd";var ZVT={nonNullableCondIsNull:function(){return Error("vc")}};var FgM=function(){this.map=new Map};
FgM.prototype.push=function(g,u){var q=this.map;q.has(g)&&(this.multi||(this.multi=new Map),this.multi.set(u,q.get(g)));q.set(g,u)};
FgM.prototype.pop=function(g){var u=this.map,q=u.get(g),Q;q!==void 0&&((Q=this.multi)==null?0:Q.has(q))?(u.set(g,this.multi.get(q)),this.multi.delete(q)):u.delete(g);return q};_.R4.debugName="nsTGHd";_.wi.debugName="vI1rtf";var rJM={OUT_OF_ORDER_HOOK_CALL:function(g){return Error("wc`"+g)},
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(g,u){return Error("Ac`"+((u===void 0?0:u)?"IDOM":"Reactive")+"`"+(ck(g)?g.description:g))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(g,u){return Error("Bc`"+(ck(g)?g.description:g)+"`"+u)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(g){return Error("Cc`"+(ck(g)?g.description:g))},
USE_ELEMENT_NOT_ASSIGNED:function(g){return Error("Dc`"+(ck(g)?g.description:g))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(g){return Error("Ec`"+(ck(g)?g.description:g))}};var hpJ=Symbol("Fc");VZT=M_b;VZT=M_b;var kgM=Symbol("Gc");sru({beforeRender:function(g){var u=kF(g.effectContext);try{var q;((q=g.__syncEffects)==null?0:q.length)&&E6T(g.__syncEffects)}finally{kF(u)}},
didPatch:function(g){var u=kF(g.effectContext);try{var q;((q=g.__syncEffects)==null?0:q.length)&&E6T(g.__syncEffects)}finally{kF(u)}},
didUnmount:function(g){var u;((u=g.hooks)==null?0:u.length)&&g.hooks.forEach(L7T)}});var XXW,rJ2,Wgi;XXW=_.Qq.window;_.bL=(XXW==null?void 0:(rJ2=XXW.yt)==null?void 0:rJ2.config_)||(XXW==null?void 0:(Wgi=XXW.ytcfg)==null?void 0:Wgi.data_)||{};_.xQ("yt.config_",_.bL);var Twx={},spK=[];_.Ji=function(g){var u=_.UT.apply(1,arguments);var q=Error.call(this,g);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.args=[].concat(_.na(u));Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(_.Ji,Error);var QcM=function(g,u,q){this.actionName=g;this.optionalAction=u===void 0?!1:u;this.args=q===void 0?null:q;this.returnValue=[]};_.d2=function(g){this.name=g};_.FU=new _.d2("signalAction");var Gzf=/^[\w.]*$/,Jtq={q:!0,search_query:!0},pCM=String(DfJ);var zv;zv=Symbol("Hc");_.Fv=function(g){this.name=g};
_.Fv.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var $fT=function(g){this.key=g},AtF=function(g){this.deferredKey=g},wCT=function(){var g=this;
this.providers=new Map;this.JSC$10804_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(g.providers)}}};
wCT.prototype.addProvider=function(g){this.providers.set(g.provide,g);var u=this.JSC$10804_deferred.get(g.provide);if(u)try{u.resolver(this.resolve(g.provide))}catch(q){u.rejector(q)}};
wCT.prototype.resolve=function(g){return g instanceof AtF?hfR(this,g):g instanceof $fT?Yg$(this,g.key,[],!0):Yg$(this,g,[])};
var hfR=function(g,u){u=u.deferredKey;if(g.JSC$10804_deferred.has(u))return g.JSC$10804_deferred.get(u).promise;var q={};q.promise=new Promise(function(Q,L){q.resolver=Q;q.rejector=L});
g.JSC$10804_deferred.set(u,q);return q.promise},Yg$=function(g,u,q,Q){Q=Q===void 0?!1:Q;
if(q.indexOf(u)>-1)throw Error("Ic`"+u);if(g.cachedValues.has(u))return g.cachedValues.get(u);if(!g.providers.has(u)){if(Q)return;throw Error("Jc`"+u);}Q=g.providers.get(u);q.push(u);if(Q.useValue!==void 0)var L=Q.useValue;else if(Q.useFactory)L=Q[zv]?OVZ(g,Q[zv],q):[],L=Q.useFactory.apply(Q,_.na(L));else if(Q.useClass){L=Q.useClass;var E=L[zv]?OVZ(g,L[zv],q):[];L=new (Function.prototype.bind.apply(L,[null].concat(_.na(E))))}else throw Error("Kc`"+u);q.pop();Q.skipCache||g.cachedValues.set(u,L);return L},
OVZ=function(g,u,q){return u?u.map(function(Q){return Q instanceof $fT?Yg$(g,Q.key,q,!0):Yg$(g,Q,q)}):[]};var RNM;var mn=new _.Fv("ENDPOINT_HANDLER_TOKEN");_.ao=new _.d2("urlEndpoint");var I0K=Symbol("Lc");var KgZ=function(){this.data=[];this.cachedPackedInt52=-1};
KgZ.prototype.set=function(g,u){u=u===void 0?!0:u;0<=g&&g<52&&Number.isInteger(g)&&this.data[g]!==u&&(this.data[g]=u,this.cachedPackedInt52=-1)};
KgZ.prototype.get=function(g){return!!this.data[g]};
var xKH=function(g){g.cachedPackedInt52===-1&&(g.cachedPackedInt52=g.data.reduce(function(u,q,Q){return u+(q?Math.pow(2,Q):0)},0));
return g.cachedPackedInt52};var W7K=function(g){var u=BwR;g=g===void 0?_.ri("yt.ads.biscotti.lastId_")||"":g;var q=Object,Q=q.assign,L={};L.dt=sIn;L.flash="0";a:{try{var E=u.JSC$10810_win_.top.location.href}catch(k){E=2;break a}E=E?E===u.doc_.location.href?0:1:2}L=(L.frm=E,L);try{L.u_tz=-(new Date).getTimezoneOffset();try{var y=CY.history.length}catch(k){y=0}L.u_his=y;var v;L.u_h=(v=CY.screen)==null?void 0:v.height;var J;L.u_w=(J=CY.screen)==null?void 0:J.width;var f;L.u_ah=(f=CY.screen)==null?void 0:f.availHeight;var t;L.u_aw=
(t=CY.screen)==null?void 0:t.availWidth;var e;L.u_cd=(e=CY.screen)==null?void 0:e.colorDepth}catch(k){}y=u.JSC$10810_win_;try{var G=y.screenX;var R=y.screenY}catch(k){}try{var H=y.outerWidth;var l=y.outerHeight}catch(k){}try{var d=y.innerWidth;var F=y.innerHeight}catch(k){}try{var V=y.screenLeft;var z=y.screenTop}catch(k){}try{d=y.innerWidth,F=y.innerHeight}catch(k){}try{var O=y.screen.availWidth;var W=y.screen.availTop}catch(k){}G=[V,z,G,R,O,W,H,l,d,F];R=PvF(!1,u.JSC$10810_win_.top);H={};var x=x===
void 0?_.Qq:x;l=new KgZ;"SVGElement"in x&&"createElementNS"in x.document&&l.set(0);d=G$$();d["allow-top-navigation-by-user-activation"]&&l.set(1);d["allow-popups-to-escape-sandbox"]&&l.set(2);x.crypto&&x.crypto.subtle&&l.set(3);"TextDecoder"in x&&"TextEncoder"in x&&l.set(4);x=xKH(l);u=(H.bc=x,H.bih=R.height,H.biw=R.width,H.brdim=G.join(),H.vis=S9M(u.doc_),H.wgl=!!CY.WebGLRenderingContext,H);q=Q.call(q,L,u);q.ca_type="image";g&&(q.bid=g);return q},BwR=new function(){var g=window.document;
this.JSC$10810_win_=window;this.doc_=g};
_.xQ("yt.ads_.signals_.getAdSignalsString",function(g){return jpT(W7K(g))});_.WK();navigator.userAgent.indexOf(" (CrKey ");var CHf="XMLHttpRequest"in _.Qq?function(){return new XMLHttpRequest}:null;var zfb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),nJb=[].concat(_.na(zfb),["client_dev_set_cookie"]);var rtK={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"},F73="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(_.na(zfb)),n6f=!1,a0b=_.TFq,xfJ=XCJ;var jsS=[{messageFn:function(g){return"Cannot read property '"+g.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(g){return"Cannot call '"+g.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(g){return g.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var kg2={messageWeights:[],callbackWeights:[{callback:UfS,weight:500},{callback:gZq,weight:500}]};var Sgi=function(){this.callbackWeights=[];this.messageWeights=[]},oJX,J73=function(){if(!oJX){var g=oJX=new Sgi;
g.messageWeights.length=0;g.callbackWeights.length=0;ZMq(g,kg2)}return oJX},ZMq=function(g,u){u.messageWeights&&g.messageWeights.push.apply(g.messageWeights,u.messageWeights);
u.callbackWeights&&g.callbackWeights.push.apply(g.callbackWeights,u.callbackWeights)};_.TK(_.PW,_.Lh);_.PW.prototype.subscribe=function(g,u,q){var Q=this.topics_[g];Q||(Q=this.topics_[g]=[]);var L=this.JSC$10833_key_;this.subscriptions_[L]=g;this.subscriptions_[L+1]=u;this.subscriptions_[L+2]=q;this.JSC$10833_key_=L+3;Q.push(L);return L};
var UKZ=function(g){var u=bD,q=!1,Q=u.subscribe("handleError",function(L){q||(q=!0,this.unsubscribeByKey(Q),g.apply(void 0,arguments))},u)};
_.PW.prototype.unsubscribe=function(g,u,q){if(g=this.topics_[g]){var Q=this.subscriptions_;if(g=g.find(function(L){return Q[L+1]==u&&Q[L+2]==q}))return this.unsubscribeByKey(g)}return!1};
_.PW.prototype.unsubscribeByKey=function(g){var u=this.subscriptions_[g];if(u){var q=this.topics_[u];this.publishDepth_!=0?(this.pendingKeys_.push(g),this.subscriptions_[g+1]=function(){}):(q&&_.TM(q,g),delete this.subscriptions_[g],delete this.subscriptions_[g+1],delete this.subscriptions_[g+2])}return!!u};
_.PW.prototype.publish=function(g,u){var q=this.topics_[g];if(q){var Q=Array(arguments.length-1),L=arguments.length,E;for(E=1;E<L;E++)Q[E-1]=arguments[E];if(this.async_)for(E=0;E<q.length;E++)L=q[E],g6X(this.subscriptions_[L+1],this.subscriptions_[L+2],Q);else{this.publishDepth_++;try{for(E=0,L=q.length;E<L&&!this.isDisposed();E++){var y=q[E];this.subscriptions_[y+1].apply(this.subscriptions_[y+2],Q)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;q=this.pendingKeys_.pop();)this.unsubscribeByKey(q)}}return E!=
0}return!1};
var g6X=function(g,u,q){_.Jz(function(){g.apply(u,q)})};
_.PW.prototype.clear=function(g){if(g){var u=this.topics_[g];u&&(u.forEach(this.unsubscribeByKey,this),delete this.topics_[g])}else this.subscriptions_.length=0,this.topics_={}};
_.PW.prototype.getCount=function(g){if(g){var u=this.topics_[g];return u?u.length:0}g=0;for(u in this.topics_)g+=this.getCount(u);return g};
_.PW.prototype.disposeInternal=function(){_.PW.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var bD=new _.PW;var ut=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(ut,_.fv);ut.prototype.getColdHashData=function(){return _.J2(this,3)};
ut.prototype.getHotHashData=function(){return _.J2(this,5)};
ut.prototype.setHotHashData=function(g){return _.EU(this,5,g)};var p9h=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(p9h,_.fv);var r9J=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(r9J,_.fv);_.P=r9J.prototype;_.P.getDeviceId=function(){return _.J2(this,6)};
_.P.getExperimentIds=function(g){var u=_.uO(this,9,_.Jh,3,!0);L8u(u,g);return u[g]};
_.P.getPlayerType=function(){return _.j$(this,36)};
_.P.setHomeGroupInfo=function(g){return _.FV(this,81,g)};
_.P.clearLocationPlayabilityToken=function(){return _.gN(this,89)};var yC=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(yC,_.fv);yC.prototype.setKey=function(g){return _.EU(this,1,g)};
yC.prototype.getValue=function(){return M$(this,2,Tvh)};
var Tvh=[2,3,4,5,6];var uSo=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(uSo,_.fv);uSo.prototype.setTrackingParams=function(g){return _.gN(this,1,_.m8(g,!1))};var WHJ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(WHJ,_.fv);var fqb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(fqb,_.fv);fqb.prototype.getExperimentIds=function(g){var u=_.uO(this,5,_.bof,3,!0);L8u(u,g);return u[g]};var J_=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(J_,_.fv);J_.prototype.getToken=function(){return _.Sp(this,2)};
J_.prototype.setToken=function(g){return _.EU(this,2,g)};var Df=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Df,_.fv);Df.prototype.setSafetyMode=function(g){return _.Uk(this,5,g)};var sz=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(sz,_.fv);sz.prototype.setClient=function(g){return _.FV(this,1,g)};var jEZ={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 JRk;_.c9=function(){var g=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Qq.addEventListener("beforeinstallprompt",function(u){u.preventDefault();g.deferredInstallPrompt=u});
_.Qq.addEventListener("appinstalled",function(){g.appInstalledEventFired=!0},{once:!0})};
JRk=function(){if(!_.Qq.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Qq.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Qq.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Qq.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Qq.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(g){return"WEB_DISPLAY_MODE_UNKNOWN"}};var e5m=function(){this.syncHeaders=!0},Grk=function(g){var u={},q=[];
"USER_SESSION_ID"in _.bL&&q.push({key:"u",value:_.FR("USER_SESSION_ID")});if(q=_.WXf(q))u.Authorization=q,q=g=g==null?void 0:g.sessionIndex,q===void 0&&(q=Number(_.FR("SESSION_INDEX",0)),q=isNaN(q)?0:q),_.w("voice_search_auth_header_removal")||(u["X-Goog-AuthUser"]=q.toString()),"INNERTUBE_HOST_OVERRIDE"in _.bL||(u["X-Origin"]=window.location.origin),g===void 0&&"DELEGATED_SESSION_ID"in _.bL&&(u["X-Goog-PageId"]=_.FR("DELEGATED_SESSION_ID"));return u};var qRa={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var mp=_.ri("ytglobal.prefsUserPrefsPrefs_")||{},QpX;_.xQ("ytglobal.prefsUserPrefsPrefs_",mp);_.aQ=function(){this.cookieName=_.FR("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.FR("ALT_PREF_COOKIE_DOMAIN","youtube.com");var g=_.sk.get(this.cookieName,void 0);g&&this.parse(g)};
_.qf=function(){QpX||(QpX=new _.aQ);return QpX};
_.aQ.prototype.get=function(g,u){L7b(g);E6b(g);g=mp[g]!==void 0?mp[g].toString():null;return g!=null?g:u?u:""};
_.aQ.prototype.set=function(g,u){L7b(g);E6b(g);if(u==null)throw Error("Oc");mp[g]=u.toString()};
_.aQ.prototype.getFlag=function(g){return!!((PH$("f"+(Math.floor(g/31)+1))||0)&1<<g%31)};
_.QX=function(g,u,q){g="f"+(Math.floor(u/31)+1);u=1<<u%31;var Q=PH$(g)||0;Q=q?Q|u:Q&~u;Q===0?delete mp[g]:(q=Q.toString(16),mp[g]=q.toString())};
_.aQ.prototype.remove=function(g){L7b(g);E6b(g);delete mp[g]};
_.aQ.prototype.save=function(){var g=!0;_.w("web_secure_pref_cookie_killswitch")&&(g=!1);_.yW(this.cookieName,this.dump(),63072E3,this.cookieDomain,g)};
_.aQ.prototype.clear=function(){_.pH.clear(mp)};
_.aQ.prototype.dump=function(){var g=[],u;for(u in mp)mp.hasOwnProperty(u)&&g.push(u+"="+encodeURIComponent(String(mp[u])));return g.join("&")};
var E6b=function(g){if(/^f([1-9][0-9]*)$/.test(g))throw Error("Pc`"+g);},L7b=function(g){if(!/^\w+$/.test(g))throw Error("Qc`"+g);
},PH$=function(g){g=mp[g]!==void 0?mp[g].toString():null;
return g!=null&&/^[A-Fa-f0-9]+$/.test(g)?parseInt(g,16):null};
_.aQ.prototype.parse=function(g){g=decodeURIComponent(g).split("&");for(var u=0;u<g.length;u++){var q=g[u].split("="),Q=q[0];(q=q[1])&&(mp[Q]=q.toString())}};var yDZ={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"},Mhm={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},thF={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},DZm={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Vb;_.Vc=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.M_=function(g,u,q){return g.addJob(u,0,q)};
_.Vc.prototype.addLowPriorityJob=function(g,u){return this.addJob(g,1,u)};
_.Ln=function(g,u,q){return g.addJob(u,2,q)};
_.gT=function(g,u,q){return g.addJob(u,3,q)};
_.Xh=function(g,u,q){return g.addJob(u,4,q)};
Vb=function(g){var u=_.ri("yt.scheduler.instance.addImmediateJob");u?u(g):g()};
_.Vc.prototype.debounce=function(g,u,q){var Q=this,L=0,E=function(){L&&Q.cancelJob(L);L=Q.addJob(g,u,q);Q.cancelDebouncedJobMap.set(E,L)};
return E};
_.Vc.prototype.cancelThrottle=function(g){(g=this.cancelThrottledJobMap.get(g))&&g()};var Xv=function(){_.Vc.apply(this,arguments)},NFX;
_.A(Xv,_.Vc);_.pT=function(){Xv.instance||(Xv.instance=new Xv);return Xv.instance};
Xv.prototype.addJob=function(g,u,q){q!==void 0&&Number.isNaN(Number(q))&&(q=void 0);var Q=_.ri("yt.scheduler.instance.addJob");return Q?Q(g,u,q):q===void 0?(g(),NaN):_.uS(g,q||0)};
Xv.prototype.cancelJob=function(g){if(g===void 0||!Number.isNaN(Number(g))){var u=_.ri("yt.scheduler.instance.cancelJob");u?u(g):_.L0(g)}};
Xv.prototype.start=function(){var g=_.ri("yt.scheduler.instance.start");g&&g()};
Xv.prototype.pause=function(){var g=_.ri("yt.scheduler.instance.pause");g&&g()};
NFX=function(){_.pT();var g=_.ri("yt.scheduler.instance.setPriorityThreshold");g&&g(4)};
_.Hv=_.pT();_.jj.prototype.set=function(g,u){u===void 0?this.mechanism.remove(g):this.mechanism.set(g,_.ek(u))};
_.jj.prototype.get=function(g){try{var u=this.mechanism.get(g)}catch(q){return}if(u!==null)try{return JSON.parse(u)}catch(q){throw"Storage: Invalid value was encountered";}};
_.jj.prototype.remove=function(g){this.mechanism.remove(g)};_.TK(f0,_.jj);var spX=function(g){this.data=g},ytW=function(g){return g===void 0||g instanceof spX?g:new spX(g)};
f0.prototype.set=function(g,u){f0.superClass_.set.call(this,g,ytW(u))};
f0.prototype.getWrapper=function(g){g=f0.superClass_.get.call(this,g);if(g===void 0||g instanceof Object)return g;throw"Storage: Invalid value was encountered";};
f0.prototype.get=function(g){if(g=this.getWrapper(g)){if(g=g.data,g===void 0)throw"Storage: Invalid value was encountered";}else g=void 0;return g};_.TK(Mu,f0);_.v68=function(g){var u=g.creation;g=g.expiration;return!!g&&g<_.WK()||!!u&&u>_.WK()};
Mu.prototype.set=function(g,u,q){if(u=ytW(u)){if(q){if(q<_.WK()){Mu.prototype.remove.call(this,g);return}u.expiration=q}u.creation=_.WK()}Mu.superClass_.set.call(this,g,u)};
Mu.prototype.getWrapper=function(g,u){var q=Mu.superClass_.getWrapper.call(this,g);if(q)if(!u&&_.v68(q))Mu.prototype.remove.call(this,g);else return q};var r2=function(){};
r2.prototype.next=function(){return Wt};
var Wt={done:!0,value:void 0},TG=function(g){return{value:g,done:!1}};
r2.prototype.__iterator__=function(){return this};
_.Df8=function(g){if(g instanceof r2)return g;if(typeof g.__iterator__=="function")return g.__iterator__(!1);if(_.xu(g)){var u=0,q=new r2;q.next=function(){for(;;){if(u>=g.length)return Wt;if(u in g)return TG(g[u++]);u++}};
return q}throw Error("Rc");};var pC2=function(g){if(g instanceof h$||g instanceof Yo||g instanceof OG)return g;if(typeof g.next=="function")return new h$(function(){return g});
if(typeof g[Symbol.iterator]=="function")return new h$(function(){return g[Symbol.iterator]()});
if(typeof g.__iterator__=="function")return new h$(function(){return g.__iterator__()});
throw Error("Sc");},h$=function(g){this.func_=g};
h$.prototype.__iterator__=function(){return new Yo(this.func_())};
h$.prototype[Symbol.iterator]=function(){return new OG(this.func_())};
h$.prototype.toEs6=function(){return new OG(this.func_())};
var Yo=function(g){this.JSC$10917_iter_=g};
_.A(Yo,r2);Yo.prototype.next=function(){return this.JSC$10917_iter_.next()};
Yo.prototype[Symbol.iterator]=function(){return new OG(this.JSC$10917_iter_)};
Yo.prototype.toEs6=function(){return new OG(this.JSC$10917_iter_)};
var OG=function(g){h$.call(this,function(){return g});
this.JSC$10920_iter_=g};
_.A(OG,h$);OG.prototype.next=function(){return this.JSC$10920_iter_.next()};var Jt$=function(){};var Kj=function(){};
_.TK(Kj,Jt$);Kj.prototype.getCount=function(){for(var g=0,u=_.N(this),q=u.next();!q.done;q=u.next())g++;return g};
Kj.prototype[Symbol.iterator]=function(){return pC2(this.__iterator__(!0)).toEs6()};
Kj.prototype.clear=function(){var g=Array.from(this);g=_.N(g);for(var u=g.next();!u.done;u=g.next())this.remove(u.value)};_.TK(ti,Kj);_.P=ti.prototype;_.P.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var g=this.storage_;if(g)try{g.setItem("__sak","1");g.removeItem("__sak");var u=!0}catch(q){u=q instanceof DOMException&&(q.name==="QuotaExceededError"||q.code===22||q.code===1014||q.name==="NS_ERROR_DOM_QUOTA_REACHED")&&g&&g.length!==0}else u=!1;this.cachedIsStorageAvailable_=u}return this.cachedIsStorageAvailable_};
_.P.set=function(g,u){xo(this);try{this.storage_.setItem(g,u)}catch(q){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.P.get=function(g){xo(this);g=this.storage_.getItem(g);if(typeof g!=="string"&&g!==null)throw"Storage mechanism: Invalid value was encountered";return g};
_.P.remove=function(g){xo(this);this.storage_.removeItem(g)};
_.P.getCount=function(){xo(this);return this.storage_.length};
_.P.__iterator__=function(g){xo(this);var u=0,q=this.storage_,Q=new r2;Q.next=function(){if(u>=q.length)return Wt;var L=q.key(u++);if(g)return TG(L);L=q.getItem(L);if(typeof L!=="string")throw"Storage mechanism: Invalid value was encountered";return TG(L)};
return Q};
_.P.clear=function(){xo(this);this.storage_.clear()};
_.P.key=function(g){xo(this);return this.storage_.key(g)};
var xo=function(g){if(g.storage_==null)throw Error("Tc");g.isAvailable()||Eb(Error("Tc"))};_.TK(JDK,ti);_.TK(j7q,ti);_.TK(ej,Kj);ej.prototype.set=function(g,u){this.mechanism_.set(this.JSC$10935_prefix_+g,u)};
ej.prototype.get=function(g){return this.mechanism_.get(this.JSC$10935_prefix_+g)};
ej.prototype.remove=function(g){this.mechanism_.remove(this.JSC$10935_prefix_+g)};
ej.prototype.__iterator__=function(g){var u=this.mechanism_[Symbol.iterator](),q=this,Q=new r2;Q.next=function(){var L=u.next();if(L.done)return L;for(L=L.value;L.slice(0,q.JSC$10935_prefix_.length)!=q.JSC$10935_prefix_;){L=u.next();if(L.done)return L;L=L.value}return TG(g?L.slice(q.JSC$10935_prefix_.length):q.mechanism_.get(L))};
return Q};_.CB=function(g){this.expiringStorage_=(g=_.G8(g))?new Mu(g):null;this.JSC$10939_domain_=document.domain||window.location.hostname};
_.P=_.CB.prototype;_.P.hasLocalStorage=function(){return!!this.expiringStorage_};
_.P.set=function(g,u,q,Q){q=q||31104E3;this.remove(g);if(this.hasLocalStorage())try{this.expiringStorage_.set(g,u,Date.now()+q*1E3);return}catch(E){}var L="";if(Q)try{L=escape(_.ek(u))}catch(E){return}else L=escape(u);_.yW(g,L,q,this.JSC$10939_domain_)};
_.P.get=function(g,u){var q=void 0,Q=!this.hasLocalStorage();if(!Q)try{q=this.expiringStorage_.get(g)}catch(L){Q=!0}if(Q&&(q=_.sk.get(g,void 0))&&(q=unescape(q),u))try{q=JSON.parse(q)}catch(L){this.remove(g),q=void 0}return q};
_.P.remove=function(g){this.hasLocalStorage()&&this.expiringStorage_.remove(g);_.PRM(g,"/",this.JSC$10939_domain_)};
_.P.getCreationTime=function(g){return this.hasLocalStorage()&&(g=(this.expiringStorage_.getWrapper(g)||{}).creation,typeof g==="number")?g:null};var MbK=function(){var g;return function(){g||(g=new _.CB("ytidb"));return g}}();var eh3;_.R0=[];eh3=!1;var Vbf=GNf||$ZF;var Bt={},jpb=(Bt.AUTH_INVALID="No user identifier specified.",Bt.EXPLICIT_ABORT="Transaction was explicitly aborted.",Bt.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Bt.MISSING_INDEX="Index not created.",Bt.MISSING_OBJECT_STORES="Object stores not created.",Bt.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Bt.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Bt.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Bt.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Bt.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Bt.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Bt.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Bt),zG={},f0n=(zG.AUTH_INVALID="ERROR",zG.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",zG.EXPLICIT_ABORT="IGNORED",
zG.IDB_NOT_SUPPORTED="ERROR",zG.MISSING_INDEX="WARNING",zG.MISSING_OBJECT_STORES="ERROR",zG.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",zG.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",zG.QUOTA_EXCEEDED="WARNING",zG.QUOTA_MAYBE_EXCEEDED="WARNING",zG.UNKNOWN_ABORT="WARNING",zG.INCOMPATIBLE_DB_VERSION="WARNING",zG),nj={},MFZ=(nj.AUTH_INVALID=!1,nj.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,nj.EXPLICIT_ABORT=!1,nj.IDB_NOT_SUPPORTED=!1,nj.MISSING_INDEX=!1,nj.MISSING_OBJECT_STORES=!1,nj.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,nj.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,nj.QUOTA_EXCEEDED=!1,nj.QUOTA_MAYBE_EXCEEDED=!0,nj.UNKNOWN_ABORT=!0,nj.INCOMPATIBLE_DB_VERSION=!1,nj),lS=function(g,u,q,Q,L){u=u===void 0?{}:u;q=q===void 0?jpb[g]:q;Q=Q===void 0?f0n[g]:Q;L=L===void 0?MFZ[g]:L;_.Ji.call(this,q,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:g},u));this.type=g;this.message=q;this.level=Q;this.retryable=L;Object.setPrototypeOf(this,lS.prototype)};
_.A(lS,_.Ji);var tFZ=function(g,u){lS.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:u,foundObjectStores:g},jpb.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,tFZ.prototype)};
_.A(tFZ,lS);var wcm=function(g,u){var q=Error.call(this);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.index=g;this.objectStore=u;Object.setPrototypeOf(this,wcm.prototype)};
_.A(wcm,Error);var cDb=["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 bS=function(g){this.executor=g},C0=function(g){var u=this;
this.state={status:"PENDING"};this.JSC$10967_onFulfilled=[];this.JSC$10967_onRejected=[];g=g.executor;var q=function(L){if(u.state.status==="PENDING"){u.state={status:"FULFILLED",value:L};L=_.N(u.JSC$10967_onFulfilled);for(var E=L.next();!E.done;E=L.next())E=E.value,E()}},Q=function(L){if(u.state.status==="PENDING"){u.state={status:"REJECTED",
reason:L};L=_.N(u.JSC$10967_onRejected);for(var E=L.next();!E.done;E=L.next())E=E.value,E()}};
try{g(q,Q)}catch(L){Q(L)}};
C0.all=function(g){return new C0(new bS(function(u,q){var Q=[],L=g.length;L===0&&u(Q);for(var E={i$jscomp$471:0};E.i$jscomp$471<g.length;E={i$jscomp$471:E.i$jscomp$471},++E.i$jscomp$471)C0.resolve(g[E.i$jscomp$471]).then(function(y){return function(v){Q[y.i$jscomp$471]=v;L--;L===0&&u(Q)}}(E)).catch(function(y){q(y)})}))};
C0.resolve=function(g){return new C0(new bS(function(u,q){g instanceof C0?g.then(u,q):u(g)}))};
C0.reject=function(g){return new C0(new bS(function(u,q){q(g)}))};
C0.prototype.then=function(g,u){var q=this,Q=g!=null?g:ZUq,L=u!=null?u:ADm;return new C0(new bS(function(E,y){q.state.status==="PENDING"?(q.JSC$10967_onFulfilled.push(function(){eNo(q,q,Q,E,y)}),q.JSC$10967_onRejected.push(function(){GzW(q,q,L,E,y)})):q.state.status==="FULFILLED"?eNo(q,q,Q,E,y):q.state.status==="REJECTED"&&GzW(q,q,L,E,y)}))};
C0.prototype.catch=function(g){return this.then(void 0,g)};
var eNo=function(g,u,q,Q,L){try{if(g.state.status!=="FULFILLED")throw Error("Wc");var E=q(g.state.value);E instanceof C0?$fb(g,u,E,Q,L):Q(E)}catch(y){L(y)}},GzW=function(g,u,q,Q,L){try{if(g.state.status!=="REJECTED")throw Error("Xc");
var E=q(g.state.reason);E instanceof C0?$fb(g,u,E,Q,L):Q(E)}catch(y){L(y)}},$fb=function(g,u,q,Q,L){u===q?L(new TypeError("Yc")):q.then(function(E){E instanceof C0?$fb(g,u,E,Q,L):Q(E)},function(E){L(E)})};var ko;ko=window;_.n0=ko.ytcsi&&ko.ytcsi.now?ko.ytcsi.now:ko.performance&&ko.performance.timing&&ko.performance.now&&ko.performance.timing.navigationStart?function(){return ko.performance.timing.navigationStart+ko.performance.now()}:function(){return(new Date).getTime()};var a0=function(g,u){this.JSC$10979_wrapped=g;this.options=u;this.transactionCount=0;this.startedMs=Math.round((0,_.n0)());this.hasUnknownAbortedTransaction=!1},Ss=function(){return _.w("idb_immediate_commit")},ct5,HWo,gG,l0W;
a0.prototype.add=function(g,u,q){return _.T8(this,[g],{mode:"readwrite",enableRetries:!0,commit:Ss()},function(Q){return Q.objectStore(g).add(u,q)})};
a0.prototype.clear=function(g){return _.T8(this,[g],{mode:"readwrite",enableRetries:!0},function(u){return u.objectStore(g).clear()})};
a0.prototype.close=function(){this.JSC$10979_wrapped.close();var g;((g=this.options)==null?0:g.closed)&&this.options.closed()};
a0.prototype.count=function(g,u){return _.T8(this,[g],{mode:"readonly",enableRetries:!0,commit:Ss()},function(q){return q.objectStore(g).count(u)})};
var dN=function(g,u,q){g=g.JSC$10979_wrapped.createObjectStore(u,q);return new oQ(g)};
a0.prototype.delete=function(g,u){return _.T8(this,[g],{mode:"readwrite",enableRetries:!0,commit:Ss()&&!(u instanceof IDBKeyRange)},function(q){return q.objectStore(g).delete(u)})};
var RN2=function(g,u){return _.T8(g,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(q){return q.objectStore("ResponseStore").index("byInterface").delete(u)})};
a0.prototype.get=function(g,u){return _.T8(this,[g],{mode:"readonly",enableRetries:!0,commit:Ss()},function(q){return q.objectStore(g).get(u)})};
a0.prototype.getAll=function(g,u,q){return _.T8(this,[g],{mode:"readonly",enableRetries:!0},function(Q){return Q.objectStore(g).getAll(u,q)})};
a0.prototype.put=function(g,u,q){return _.T8(this,[g],{mode:"readwrite",enableRetries:!0,commit:Ss()},function(Q){return Q.objectStore(g).put(u,q)})};
a0.prototype.objectStoreNames=function(){return Array.from(this.JSC$10979_wrapped.objectStoreNames)};
_.T8=function(g,u,q,Q){var L,E,y,v,J,f,t,e,G,R,H,l;return _.D(function(d){switch(d.nextAddress){case 1:var F={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof q==="string"?F.mode=q:Object.assign(F,q);L=F;g.transactionCount++;E=L.enableRetries?3:1;y=0;case 2:if(v){d.jumpTo(4);break}y++;J=Math.round((0,_.n0)());_.b8(d,5);f=g.JSC$10979_wrapped.transaction(u,L.mode);F=d.yield;var V=!!L.commit;var z=new VW(f);V=wCb(z,Q,V);return F.call(d,V,7);case 7:return t=d.yieldResult,e=Math.round((0,_.n0)()),
ct5(g,J,e,y,void 0,u.join(),L),d.return(t);case 5:G=_.rt(d);R=Math.round((0,_.n0)());H=HUT(G,g.JSC$10979_wrapped.name,u.join(),g.JSC$10979_wrapped.version);if((l=H instanceof lS&&!H.retryable)||y>=E)ct5(g,J,R,y,H,u.join(),L),v=H;d.jumpTo(2);break;case 4:return d.return(Promise.reject(v))}})};
ct5=function(g,u,q,Q,L,E,y){u=q-u;L?(L instanceof lS&&(L.type==="QUOTA_EXCEEDED"||L.type==="QUOTA_MAYBE_EXCEEDED")&&cW("QUOTA_EXCEEDED",{dbName:Ai(g.JSC$10979_wrapped.name),objectStoreNames:E,transactionCount:g.transactionCount,transactionMode:y.mode}),L instanceof lS&&L.type==="UNKNOWN_ABORT"&&(q-=g.startedMs,q<0&&q>=2147483648&&(q=0),cW("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:E,transactionDuration:u,transactionCount:g.transactionCount,dbDuration:q}),g.hasUnknownAbortedTransaction=!0),
HWo(g,!1,Q,E,u,y.tag),_.wu(L)):HWo(g,!0,Q,E,u,y.tag)};
HWo=function(g,u,q,Q,L,E){cW("TRANSACTION_ENDED",{objectStoreNames:Q,connectionHasUnknownAbortedTransaction:g.hasUnknownAbortedTransaction,duration:L,isSuccessful:u,tryCount:q,tag:E===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":E})};
a0.prototype.getName=function(){return this.JSC$10979_wrapped.name};
var oQ=function(g){this.JSC$10994_wrapped=g};
oQ.prototype.add=function(g,u){return m9(this.JSC$10994_wrapped.add(g,u))};
oQ.prototype.autoIncrement=function(){return this.JSC$10994_wrapped.autoIncrement};
oQ.prototype.clear=function(){return m9(this.JSC$10994_wrapped.clear()).then(function(){})};
var F7=function(g,u,q){g.JSC$10994_wrapped.createIndex(u,q,{unique:!1})};
oQ.prototype.count=function(g){return m9(this.JSC$10994_wrapped.count(g))};
var Atn=function(g,u){return YQ(g,{query:u},function(q){return q.delete().then(function(){return q.continue()})}).then(function(){})};
oQ.prototype.delete=function(g){return g instanceof IDBKeyRange?Atn(this,g):m9(this.JSC$10994_wrapped.delete(g))};
oQ.prototype.get=function(g){return m9(this.JSC$10994_wrapped.get(g))};
oQ.prototype.getAll=function(g,u){return"getAll"in IDBObjectStore.prototype?m9(this.JSC$10994_wrapped.getAll(g,u)):ZW8(this,g,u)};
var ZW8=function(g,u,q){var Q=[];return YQ(g,{query:u},function(L){if(!(q!==void 0&&Q.length>=q))return Q.push(L.getValue()),L.continue()}).then(function(){return Q})};
oQ.prototype.index=function(g){try{return new UG(this.JSC$10994_wrapped.index(g))}catch(u){if(u instanceof Error&&u.name==="NotFoundError")throw new wcm(g,this.JSC$10994_wrapped.name);throw u;}};
oQ.prototype.getName=function(){return this.JSC$10994_wrapped.name};
oQ.prototype.keyPath=function(){return this.JSC$10994_wrapped.keyPath};
oQ.prototype.put=function(g,u){return m9(this.JSC$10994_wrapped.put(g,u))};
var YQ=function(g,u,q){g=g.JSC$10994_wrapped.openCursor(u.query,u.direction);return l0W(g).then(function(Q){return iUZ(Q,q)})},VW=function(g){var u=this;
this.JSC$11002_wrapped=g;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(q,Q){u.JSC$11002_wrapped.addEventListener("complete",function(){q()});
u.JSC$11002_wrapped.addEventListener("error",function(L){L.currentTarget===L.target&&Q(u.JSC$11002_wrapped.error)});
u.JSC$11002_wrapped.addEventListener("abort",function(){var L=u.JSC$11002_wrapped.error;if(L)Q(L);else if(!u.aborted){L=lS;for(var E=u.JSC$11002_wrapped.objectStoreNames,y=[],v=0;v<E.length;v++){var J=E.item(v);if(J===null)throw Error("Zc");y.push(J)}L=new L("UNKNOWN_ABORT",{objectStoreNames:y.join(),dbName:u.JSC$11002_wrapped.db.name,mode:u.JSC$11002_wrapped.mode});Q(L)}})})},wCb=function(g,u,q){var Q=new Promise(function(L,E){try{var y=u(g);
q&&g.commit();y.then(function(v){L(v)}).catch(E)}catch(v){E(v),g.abort()}});
return Promise.all([Q,g.done]).then(function(L){return _.N(L).next().value})};
VW.prototype.abort=function(){this.JSC$11002_wrapped.abort();this.aborted=!0;throw new lS("EXPLICIT_ABORT");};
VW.prototype.commit=function(){if(!this.aborted){var g,u;(u=(g=this.JSC$11002_wrapped).commit)==null||u.call(g)}};
VW.prototype.objectStore=function(g){g=this.JSC$11002_wrapped.objectStore(g);var u=this.objectStoreCache.get(g);u||(u=new oQ(g),this.objectStoreCache.set(g,u));return u};
var UG=function(g){this.JSC$11004_wrapped=g};
UG.prototype.count=function(g){return m9(this.JSC$11004_wrapped.count(g))};
UG.prototype.delete=function(g){return _.kQ(this,{query:g},function(u){return u.delete().then(function(){return u.continue()})})};
UG.prototype.get=function(g){return m9(this.JSC$11004_wrapped.get(g))};
UG.prototype.getAll=function(g,u){return"getAll"in IDBIndex.prototype?m9(this.JSC$11004_wrapped.getAll(g,u)):I0X(this,g,u)};
var I0X=function(g,u,q){var Q=[];return _.kQ(g,{query:u},function(L){if(!(q!==void 0&&Q.length>=q))return Q.push(L.getValue()),L.continue()}).then(function(){return Q})};
UG.prototype.keyPath=function(){return this.JSC$11004_wrapped.keyPath};
UG.prototype.unique=function(){return this.JSC$11004_wrapped.unique};
_.kQ=function(g,u,q){g=g.JSC$11004_wrapped.openCursor(u.query===void 0?null:u.query,u.direction===void 0?"next":u.direction);return l0W(g).then(function(Q){return iUZ(Q,q)})};
gG=function(g,u){this.request=g;this.cursor=u};
l0W=function(g){return m9(g).then(function(u){return u?new gG(g,u):null})};
gG.prototype.continue=function(g){this.cursor.continue(g);return l0W(this.request)};
gG.prototype.delete=function(){return m9(this.cursor.delete()).then(function(){})};
gG.prototype.getValue=function(){return this.cursor.value};
gG.prototype.update=function(g){return m9(this.cursor.update(g))};var uu=function(g,u){this.name=g;this.options=u;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},iW8;
uu.prototype.openDb=function(g,u,q){q=q===void 0?{}:q;return bUK(g,u,q)};
uu.prototype.delete=function(g){g=g===void 0?{}:g;return _.ru(this.name,g)};
iW8=function(g,u){return new lS("INCOMPATIBLE_DB_VERSION",{dbName:g.name,oldVersion:g.options.version,newVersion:u})};
_.WW=function(g,u){if(!u)throw iS("openWithToken",Ai(g.name));return g.open()};
uu.prototype.open=function(){var g=this;if(!this.isCompatible)throw iW8(this);if(this.connectionPromise)return this.connectionPromise;var u,q=function(){g.connectionPromise===u&&(g.connectionPromise=void 0)},Q={blocking:function(E){E.close()},
closed:q,terminated:q,upgrade:this.options.upgrade},L=function(){var E,y,v,J,f,t,e,G,R,H;return _.D(function(l){switch(l.nextAddress){case 1:return y=(E=Error().stack)!=null?E:"",_.b8(l,2),l.yield(g.openDb(g.name,g.options.version,Q),4);case 4:for(var d=v=l.yieldResult,F=g.options,V=[],z=_.N(Object.keys(F.objectStores)),O=z.next();!O.done;O=z.next()){O=O.value;var W=F.objectStores[O],x=W.removedAtVersion===void 0?Number.MAX_VALUE:W.removedAtVersion;!(d.JSC$10979_wrapped.version>=W.addedAtVersion)||
d.JSC$10979_wrapped.version>=x||d.JSC$10979_wrapped.objectStoreNames.contains(O)||V.push(O)}J=V;if(J.length===0){l.jumpTo(5);break}f=Object.keys(g.options.objectStores);t=v.objectStoreNames();if(g.timesReopenedToFixMissingObjectStore<_.S8("ytidb_reopen_db_retries",0))return g.timesReopenedToFixMissingObjectStore++,v.close(),_.wu(new lS("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:g.name,expectedObjectStores:f,foundObjectStores:t})),l.return(L());if(!(g.timesDeletedToFixMissingObjectStore<_.S8("ytidb_remake_db_retries",
1))){l.jumpTo(6);break}g.timesDeletedToFixMissingObjectStore++;return l.yield(g.delete(),7);case 7:return _.wu(new lS("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:g.name,expectedObjectStores:f,foundObjectStores:t})),l.return(L());case 6:throw new tFZ(t,f);case 5:return l.return(v);case 2:e=_.rt(l);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."){l.jumpTo(8);
break}return l.yield(g.openDb(g.name,void 0,Object.assign({},Q,{upgrade:void 0})),9);case 9:G=l.yieldResult;R=G.JSC$10979_wrapped.version;if(g.options.version!==void 0&&R>g.options.version+1)throw G.close(),g.isCompatible=!1,iW8(g,R);return l.return(G);case 8:throw q(),e instanceof Error&&!_.w("ytidb_async_stack_killswitch")&&(e.stack=e.stack+"\n"+y.substring(y.indexOf("\n")+1)),HUT(e,g.name,"",(H=g.options.version)!=null?H:-1);}})};
return this.connectionPromise=u=L()};var dZk=new uu("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(g,u){u(1)&&dN(g,"databases",{keyPath:"actualName"})}});var Wcq,XcF=new function(){}(new function(){});new _.KU;var CHW=function(g,u){uu.call(this,g,u);this.options=u;HW(g)};
_.A(CHW,uu);var kNq=function(g,u){var q;return function(){q||(q=new CHW(g,u));return q}};
CHW.prototype.openDb=function(g,u,q){q=q===void 0?{}:q;return(this.options.shared?Kcf:OUf)(g,u,Object.assign({},q))};
CHW.prototype.delete=function(g){g=g===void 0?{}:g;return(this.options.shared?nZf:xZq)(this.name,g)};var bW5={},S3k=z8("ytGcfConfig",{objectStores:(bW5.coldConfigStore={addedAtVersion:1},bW5.hotConfigStore={addedAtVersion:1},bW5),shared:!1,upgrade:function(g,u){u(1)&&(F7(dN(g,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),F7(dN(g,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var dfi=function(){_.Lh.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var g=_.ri("yt.gcf.config.hotUpdateCallbacks");g?(this.localHotConfigJobQueue=[].concat(_.na(g)),this.sharedHotConfigJobQueue=g):(this.sharedHotConfigJobQueue=[],_.xQ("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.A(dfi,_.Lh);dfi.prototype.disposeInternal=function(){for(var g=_.N(this.localHotConfigJobQueue),u=g.next();!u.done;u=g.next()){var q=this.sharedHotConfigJobQueue;u=q.indexOf(u.value);u>=0&&q.splice(u,1)}this.localHotConfigJobQueue.length=0;_.Lh.prototype.disposeInternal.call(this)};var t_=function(){var g=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new dfi;this.TEST_ONLY={initializeConfigDb:function(){g.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return g.coldGlobalConfigGroup},
setHotConfigGroup:function(u){F7x(g,u)},
setHotHashData:function(u){g.setHotHashData(u)},
setColdConfigGroup:function(u){mf8(g,u)},
getColdHashData:function(){return g.coldHashData},
getHotHashData:function(){return g.hotHashData},
getHotConfigGroup:function(){return g.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return a00()},
getExportedHotConfigGroup:function(){return qc()},
getExportedColdHashData:function(){return _.ri("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.ri("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){VF8(g)},
resetInstance:function(){g.setHotHashData(void 0);XC8(g);delete t_.instance},
setDebounceTimer:function(u){g.debounceTimer=u},
getDebounceTimer:function(){return g.debounceTimer}}},rtX=function(){if(!t_.instance){var g=new t_;
t_.instance=g}return t_.instance},hNo=function(g){var u;
_.D(function(q){if(q.nextAddress==1)return _.w("start_client_gcf")||_.w("delete_gcf_config_db")?_.w("start_client_gcf")?q.yield(_.BW(),3):q.jumpTo(2):q.return();q.nextAddress!=2&&((u=q.yieldResult)&&_.p0()&&!_.w("delete_gcf_config_db")?(g.isConfigDbInitialized=!0,VF8(g)):(W7X(g),TFa(g)));return _.w("delete_gcf_config_db")?q.yield(QEb(),0):q.jumpTo(0)})},eQ=function(){var g;
return(g=qc())!=null?g:_.FR("RAW_HOT_CONFIG_GROUP")},YR0=function(g){var u,q,Q,L,E,y;
return _.D(function(v){switch(v.nextAddress){case 1:if(g.hotGlobalConfigGroup)return v.return(qc());if(!g.isConfigDbInitialized)return u=iS("getHotConfig IDB not initialized"),_.Wk(u),v.return(Promise.reject(u));q=K0();Q=_.FR("TIME_CREATED_MS");if(!q){L=iS("getHotConfig token error");_.Wk(L);v.jumpTo(2);break}return v.yield(qxf(q),3);case 3:if((E=v.yieldResult)&&E.timestamp>Q)return F7x(g,E.config),g.setHotHashData(E.hashData),v.return(qc());case 2:TFa(g);if(!(q&&g.hotGlobalConfigGroup&&g.hotHashData)){v.jumpTo(4);
break}return v.yield(UZm(g.hotGlobalConfigGroup,g.hotHashData,q,Q),4);case 4:return g.hotGlobalConfigGroup?v.return(qc()):(y=new _.Ji("Config not available in ytConfig"),_.Wk(y),v.return(Promise.reject(y)))}})},K7x=function(g){var u,q,Q,L,E,y;
return _.D(function(v){switch(v.nextAddress){case 1:if(g.coldGlobalConfigGroup)return v.return(a00());if(!g.isConfigDbInitialized)return u=iS("getColdConfig IDB not initialized"),_.Wk(u),v.return(Promise.reject(u));q=K0();Q=_.FR("TIME_CREATED_MS");if(!q){L=iS("getColdConfig");_.Wk(L);v.jumpTo(2);break}return v.yield(uTT(q),3);case 3:if((E=v.yieldResult)&&E.timestamp>Q)return mf8(g,E.config),OWo(g,E.configData),XC8(g,E.hashData),v.return(a00());case 2:W7X(g);if(!(q&&g.coldGlobalConfigGroup&&g.coldHashData&&
g.configData)){v.jumpTo(4);break}return v.yield(g_f(g.coldGlobalConfigGroup,g.coldHashData,g.configData,q,Q),4);case 4:return g.coldGlobalConfigGroup?v.return(a00()):(y=new _.Ji("Config not available in ytConfig"),_.Wk(y),v.return(Promise.reject(y)))}})},VF8=function(g){if(!g.hotGlobalConfigGroup||!g.coldGlobalConfigGroup){if(!K0()){var u=iS("scheduleGetConfigs");
_.Wk(u)}g.initJob||(g.initJob=_.Hv.addLowPriorityJob(function(){return _.D(function(q){switch(q.nextAddress){case 1:return _.b8(q,2),q.yield(YR0(g),4);case 4:_.Xx(q,3);break;case 2:_.rt(q);case 3:return _.b8(q,5),q.yield(K7x(g),7);case 7:_.Xx(q,6);break;case 5:_.rt(q);case 6:g.initJob&&(g.initJob=0),_.Wx(q)}})},100))}},oqk=function(g,u,q){var Q,L,E;
return _.D(function(y){switch(y.nextAddress){case 1:if(!_.w("start_client_gcf")){y.jumpTo(0);break}q&&F7x(g,q);g.setHotHashData(u);Q=K0();if(!Q){y.jumpTo(3);break}if(q){y.jumpTo(4);break}return y.yield(qxf(Q),5);case 5:L=y.yieldResult,q=(E=L)==null?void 0:E.config;case 4:return y.yield(UZm(q,u,Q),3);case 3:if(q)for(var v=q,J=_.N(g.configUpdateService.sharedHotConfigJobQueue),f=J.next();!f.done;f=J.next())f=f.value,f(v);_.Wx(y)}})},UyM=function(g,u,q){var Q,L,E,y;
return _.D(function(v){if(v.nextAddress==1){if(!_.w("start_client_gcf"))return v.jumpTo(0);XC8(g,u);return(Q=K0())?q?v.jumpTo(4):v.yield(uTT(Q),5):v.jumpTo(0)}v.nextAddress!=4&&(L=v.yieldResult,q=(E=L)==null?void 0:E.config);if(!q)return v.jumpTo(0);y=q.configData;return v.yield(g_f(q,u,y,Q),0)})},R5q=function(){var g=rtX(),u=(0,_.n0)()-g.debounceTimer;
if(!(g.debounceTimer!==0&&u<_.S8("send_config_hash_timer"))){u=_.ri("yt.gcf.config.coldConfigData");var q=_.ri("yt.gcf.config.hotHashData"),Q=_.ri("yt.gcf.config.coldHashData");u&&q&&Q&&(g.debounceTimer=(0,_.n0)());return{coldConfigData:u,hotHashData:q,coldHashData:Q}}},W7X=function(g){mf8(g,_.FR("RAW_COLD_CONFIG_GROUP"));
XC8(g,_.FR("SERIALIZED_COLD_HASH_DATA"));var u;OWo(g,(u=g.coldGlobalConfigGroup)==null?void 0:u.configData)},TFa=function(g){F7x(g,_.FR("RAW_HOT_CONFIG_GROUP"));
g.setHotHashData(_.FR("SERIALIZED_HOT_HASH_DATA"))},F7x=function(g,u){g.hotGlobalConfigGroup=u;
_.xQ("yt.gcf.config.hotConfigGroup",g.hotGlobalConfigGroup||null)},mf8=function(g,u){g.coldGlobalConfigGroup=u;
_.xQ("yt.gcf.config.coldConfigGroup",g.coldGlobalConfigGroup||null)};
t_.prototype.setHotHashData=function(g){this.hotHashData=g;_.xQ("yt.gcf.config.hotHashData",this.hotHashData||null)};
var XC8=function(g,u){g.coldHashData=u;_.xQ("yt.gcf.config.coldHashData",g.coldHashData||null)},OWo=function(g,u){g.configData=u;
_.xQ("yt.gcf.config.coldConfigData",g.configData||null)},qc=function(){return _.ri("yt.gcf.config.hotConfigGroup")},a00=function(){return _.ri("yt.gcf.config.coldConfigGroup")};var Pv={},xf8=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Pv.assign=function(g){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var q=u.shift();if(q){if(typeof q!=="object")throw new TypeError("bd`"+q);for(var Q in q)Object.prototype.hasOwnProperty.call(q,Q)&&(g[Q]=q[Q])}}return g};
Pv.shrinkBuf=function(g,u){if(g.length===u)return g;if(g.subarray)return g.subarray(0,u);g.length=u;return g};
var BFo={arraySet:function(g,u,q,Q,L){if(u.subarray&&g.subarray)g.set(u.subarray(q,q+Q),L);else for(var E=0;E<Q;E++)g[L+E]=u[q+E]},
flattenChunks:function(g){var u,q;var Q=q=0;for(u=g.length;Q<u;Q++)q+=g[Q].length;var L=new Uint8Array(q);Q=q=0;for(u=g.length;Q<u;Q++){var E=g[Q];L.set(E,q);q+=E.length}return L}},zN2={arraySet:function(g,u,q,Q,L){for(var E=0;E<Q;E++)g[L+E]=u[q+E]},
flattenChunks:function(g){return[].concat.apply([],g)}};
Pv.setTyped=function(){xf8?(Pv.Buf8=Uint8Array,Pv.Buf16=Uint16Array,Pv.Buf32=Int32Array,Pv.assign(Pv,BFo)):(Pv.Buf8=Array,Pv.Buf16=Array,Pv.Buf32=Array,Pv.assign(Pv,zN2))};
Pv.setTyped();var n6W=!0;try{new Uint8Array(1)}catch(g){n6W=!1}
var qih=function(g){var u,q,Q=g.length,L=0;for(u=0;u<Q;u++){var E=g.charCodeAt(u);if((E&64512)===55296&&u+1<Q){var y=g.charCodeAt(u+1);(y&64512)===56320&&(E=65536+(E-55296<<10)+(y-56320),u++)}L+=E<128?1:E<2048?2:E<65536?3:4}var v=new Pv.Buf8(L);for(u=q=0;q<L;u++)E=g.charCodeAt(u),(E&64512)===55296&&u+1<Q&&(y=g.charCodeAt(u+1),(y&64512)===56320&&(E=65536+(E-55296<<10)+(y-56320),u++)),E<128?v[q++]=E:(E<2048?v[q++]=192|E>>>6:(E<65536?v[q++]=224|E>>>12:(v[q++]=240|E>>>18,v[q++]=128|E>>>12&63),v[q++]=
128|E>>>6&63),v[q++]=128|E&63);return v};var Yxq={};Yxq=function(g,u,q,Q){var L=g&65535|0;g=g>>>16&65535|0;for(var E;q!==0;){E=q>2E3?2E3:q;q-=E;do L=L+u[Q++]|0,g=g+L|0;while(--E);L%=65521;g%=65521}return L|g<<16|0};for(var GX={},Qy,kzb=[],SRo=0;SRo<256;SRo++){Qy=SRo;for(var o60=0;o60<8;o60++)Qy=Qy&1?3988292384^Qy>>>1:Qy>>>1;kzb[SRo]=Qy}GX=function(g,u,q,Q){q=Q+q;for(g^=-1;Q<q;Q++)g=g>>>8^kzb[(g^u[Q])&255];return g^-1};var vv={};vv={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 b6S=[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],FC3=[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],uIf=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T$M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ja=Array(576);qT(ja);var fB=Array(60);qT(fB);var sr=Array(512);qT(sr);var NT=Array(256);qT(NT);var dRq=Array(29);qT(dRq);var mRq=Array(30);qT(mRq);var o_f,URS,g9T,Sx3=!1;var cv;
cv=[new wN(0,0,0,0,function(g,u){var q=65535;for(q>g.pending_buf_size-5&&(q=g.pending_buf_size-5);;){if(g.lookahead<=1){$O(g);if(g.lookahead===0&&u===0)return 1;if(g.lookahead===0)break}g.strstart+=g.lookahead;g.lookahead=0;var Q=g.block_start+q;if(g.strstart===0||g.strstart>=Q)if(g.lookahead=g.strstart-Q,g.strstart=Q,MT(g,!1),g.strm.avail_out===0)return 1;if(g.strstart-g.block_start>=g.w_size-262&&(MT(g,!1),g.strm.avail_out===0))return 1}g.insert=0;if(u===4)return MT(g,!0),g.strm.avail_out===0?3:
4;g.strstart>g.block_start&&MT(g,!1);return 1}),
new wN(4,4,8,4,O6h),new wN(4,5,16,8,O6h),new wN(4,6,32,32,O6h),new wN(4,4,16,16,RI),new wN(8,16,32,32,RI),new wN(8,16,128,128,RI),new wN(8,32,128,256,RI),new wN(32,128,258,1024,RI),new wN(32,258,258,4096,RI)];var krS={};krS=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 Q5q=Object.prototype.toString;
n_q.prototype.push=function(g,u){var q=this.strm,Q=this.options.chunkSize;if(this.ended)return!1;var L=u===~~u?u:u===!0?4:0;typeof g==="string"?q.input=qih(g):Q5q.call(g)==="[object ArrayBuffer]"?q.input=new Uint8Array(g):q.input=g;q.next_in=0;q.avail_in=q.input.length;do{q.avail_out===0&&(q.output=new Pv.Buf8(Q),q.next_out=0,q.avail_out=Q);g=z5u(q,L);if(g!==1&&g!==0)return Uf5(this,g),this.ended=!0,!1;if(q.avail_out===0||q.avail_in===0&&(L===4||L===2))if(this.options.to==="string"){var E=Pv.shrinkBuf(q.output,
q.next_out);u=E;E=E.length;if(E<65537&&(u.subarray&&n6W||!u.subarray))u=String.fromCharCode.apply(null,Pv.shrinkBuf(u,E));else{for(var y="",v=0;v<E;v++)y+=String.fromCharCode(u[v]);u=y}this.chunks.push(u)}else u=Pv.shrinkBuf(q.output,q.next_out),this.chunks.push(u)}while((q.avail_in>0||q.avail_out===0)&&g!==1);if(L===4)return(q=this.strm)&&q.state?(Q=q.state.status,Q!==42&&Q!==69&&Q!==73&&Q!==91&&Q!==103&&Q!==113&&Q!==666?g=Dv(q,-2):(q.state=null,g=Q===113?Dv(q,-3):0)):g=-2,Uf5(this,g),this.ended=
!0,g===0;L===2&&(Uf5(this,0),q.avail_out=0);return!0};
var Uf5=function(g,u){u===0&&(g.result=g.options.to==="string"?g.chunks.join(""):Pv.flattenChunks(g.chunks));g.chunks=[];g.err=u;g.msg=g.strm.msg};var gZa=typeof TextEncoder!=="undefined"?new TextEncoder:null,bEk=gZa?function(g){return gZa.encode(g)}:function(g){g=_.PS(g);
for(var u=new Uint8Array(g.length),q=0;q<u.length;q++)u[q]=g[q];return u};var zPK={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},kLm={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var LA=function(g,u){this.version=g;this.args=u};
LA.prototype.serialize=function(){return{version:this.version,args:this.args}};var s5K=function(g,u){this.topic=g;this.dataClass=u};
s5K.prototype.toString=function(){return this.topic};var uJa=_.ri("ytPubsub2Pubsub2Instance")||new _.PW;_.PW.prototype.subscribe=_.PW.prototype.subscribe;_.PW.prototype.unsubscribeByKey=_.PW.prototype.unsubscribeByKey;_.PW.prototype.publish=_.PW.prototype.publish;_.PW.prototype.clear=_.PW.prototype.clear;_.xQ("ytPubsub2Pubsub2Instance",uJa);var NOu=_.ri("ytPubsub2Pubsub2SubscribedKeys")||{};_.xQ("ytPubsub2Pubsub2SubscribedKeys",NOu);var v9u=_.ri("ytPubsub2Pubsub2TopicToKeys")||{};_.xQ("ytPubsub2Pubsub2TopicToKeys",v9u);
var yrf=_.ri("ytPubsub2Pubsub2IsAsync")||{};_.xQ("ytPubsub2Pubsub2IsAsync",yrf);_.xQ("ytPubsub2Pubsub2SkipSubKey",null);var $mk=void 0,eqk=void 0;var I3q=_.S8("max_body_size_to_compress",5E5),iEm=_.S8("min_body_size_to_compress",500),Zv=!0,mmK=0,lt=0,FXu=_.S8("compression_performance_threshold_lr",250),VPK=_.S8("slow_compressions_before_abandon_count",4),crf=!1,HEq=new Map,CUu=1;_.TK(II,rrS);II.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 q35=function(g,u,q){q||(q=0);var Q=g.W_;if(typeof u==="string")for(var L=0;L<16;L++)Q[L]=u.charCodeAt(q)<<24|u.charCodeAt(q+1)<<16|u.charCodeAt(q+2)<<8|u.charCodeAt(q+3),q+=4;else for(L=0;L<16;L++)Q[L]=u[q]<<24|u[q+1]<<16|u[q+2]<<8|u[q+3],q+=4;for(u=16;u<80;u++)q=Q[u-3]^Q[u-8]^Q[u-14]^Q[u-16],Q[u]=(q<<1|q>>>31)&4294967295;u=g.chain_[0];q=g.chain_[1];L=g.chain_[2];for(var E=g.chain_[3],y=g.chain_[4],v,J,f=0;f<80;f++)f<40?f<20?(v=E^q&(L^E),J=1518500249):(v=q^L^E,J=1859775393):f<60?(v=q&L|E&(q|L),
J=2400959708):(v=q^L^E,J=3395469782),v=(u<<5|u>>>27)+v+y+J+Q[f]&4294967295,y=E,E=L,L=(q<<30|q>>>2)&4294967295,q=u,u=v;g.chain_[0]=g.chain_[0]+u&4294967295;g.chain_[1]=g.chain_[1]+q&4294967295;g.chain_[2]=g.chain_[2]+L&4294967295;g.chain_[3]=g.chain_[3]+E&4294967295;g.chain_[4]=g.chain_[4]+y&4294967295};
II.prototype.update=function(g,u){if(g!=null){u===void 0&&(u=g.length);for(var q=u-this.blockSize,Q=0,L=this.buf_,E=this.inbuf_;Q<u;){if(E==0)for(;Q<=q;)q35(this,g,Q),Q+=this.blockSize;if(typeof g==="string")for(;Q<u;){if(L[E]=g.charCodeAt(Q),++E,++Q,E==this.blockSize){q35(this,L);E=0;break}}else for(;Q<u;)if(L[E]=g[Q],++E,++Q,E==this.blockSize){q35(this,L);E=0;break}}this.inbuf_=E;this.total_+=u}};
II.prototype.digest=function(){var g=[],u=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var q=this.blockSize-1;q>=56;q--)this.buf_[q]=u&255,u/=256;q35(this,this.buf_);for(q=u=0;q<5;q++)for(var Q=24;Q>=0;Q-=8)g[u]=this.chain_[q]>>Q&255,++u;return g};var hqf;var Pj=function(g){var u=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(t){u.databaseToken=t},
triggerThrottle:function(){u.throttledSend()},
cancelThrottle:function(){u.cancelThrottledSend()},
immediateSend:function(t){return _.D(function(e){return e.yield(u.immediateSend(t),0)})},
requestWithinAgeLimit:function(t,e){return u.requestWithinAgeLimit(t,e)},
retryQueuedRequests:function(){u.retryQueuedRequests()}};
var q;this.throttleTimeout=(q=g.throttleTimeout)!=null?q:100;var Q;this.retryMaxAttempts=(Q=g.retryMaxAttempts)!=null?Q:1;var L;this.requestAgeLimitMs=(L=g.requestAgeLimitMs)!=null?L:2592E6;var E;this.queuedRequestAgeLimitMs=(E=g.queuedRequestAgeLimitMs)!=null?E:12E4;var y;this.retryDelayMs=(y=g.retryDelayMs)!=null?y:5E3;var v;this.databaseToken=(v=g.databaseToken)!=null?v:void 0;this.enableCleaning=!!g.enableCleaning;var J;this.cleaningRate=(J=g.cleaningRate)!=null?J:.1;var f;this.potentialEsfErrorLimit=
(f=g.potentialEsfErrorLimit)!=null?f:10;g.handleError&&(this.handleError=g.handleError);g.handleWarning&&(this.handleWarning=g.handleWarning);g.disableYtIdbTransactions&&(this.disableYtIdbTransactions=g.disableYtIdbTransactions);g.bypassDbTokenDependency&&(this.bypassDbTokenDependency=g.bypassDbTokenDependency);this.getBooleanFlag=g.getBooleanFlag;this.jobManager=g.jobManager;this.logsStore=g.logsStore;this.networkManager=g.networkManager;this.sendFn=g.sendFn;this.onlineEvent=g.onlineEvent;this.offlineEvent=
g.offlineEvent;EF(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Q7i(this)},Q7i=function(g){EF(g)&&!g.disableYtIdbTransactions&&(g.initialized=!0,g.enableCleaning&&Math.random()<=g.cleaningRate&&g.logsStore.cleanLogsStore(g.databaseToken),g.retryQueuedRequests(),g.networkManager.isNetworkAvailable()&&g.throttledSend(),g.networkManager.listen(g.onlineEvent,g.throttledSend.bind(g)),g.networkManager.listen(g.offlineEvent,g.cancelThrottledSend.bind(g)))};
_.P=Pj.prototype;_.P.writeThenSend=function(g,u){var q=this;u=u===void 0?{}:u;if(EF(this)&&this.initialized){var Q={url:g,options:u,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(Q,this.databaseToken).then(function(L){Q.id=L;q.networkManager.isNetworkAvailable()&&q.immediateSend(Q)}).catch(function(L){q.immediateSend(Q);
Lco(q,L)})}else this.sendFn(g,u)};
_.P.sendThenWrite=function(g,u,q){var Q=this;u=u===void 0?{}:u;if(EF(this)&&this.initialized){var L={url:g,options:u,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(L.skipRetry=q);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!L.skipRetry){if(!L.skipRetry){var E=u.onError?u.onError:function(){};
u.onError=function(y,v){return _.D(function(J){if(J.nextAddress==1)return J.yield(Q.logsStore.set(L,Q.databaseToken).catch(function(f){Lco(Q,f)}),2);
E(y,v);_.Wx(J)})}}this.sendFn(g,u,L.skipRetry)}else this.logsStore.set(L,this.databaseToken).catch(function(y){Q.sendFn(g,u,L.skipRetry);
Lco(Q,y)})}else this.sendFn(g,u,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&q)};
_.P.sendAndWrite=function(g,u){var q=this;u=u===void 0?{}:u;if(EF(this)&&this.initialized){var Q={url:g,options:u,timestamp:this.now(),status:"NEW",sendCount:0},L=!1,E=u.onSuccess?u.onSuccess:function(){};
Q.options.onSuccess=function(y,v){Q.id!==void 0?q.logsStore.deleteRequest(Q.id,q.databaseToken):L=!0;q.networkManager.networkStatusHint&&q.getBooleanFlag&&q.getBooleanFlag("vss_network_hint")&&q.networkManager.networkStatusHint(!0);E(y,v)};
this.sendFn(Q.url,Q.options,void 0,!0);this.logsStore.set(Q,this.databaseToken).then(function(y){Q.id=y;L&&q.logsStore.deleteRequest(Q.id,q.databaseToken)}).catch(function(y){Lco(q,y)})}else this.sendFn(g,u,void 0,!0)};
_.P.throttledSend=function(){var g=this;if(!EF(this))throw Error("ed");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var u;return _.D(function(q){if(q.nextAddress==1)return q.yield(g.logsStore.getMostRecentByStatus("NEW",g.databaseToken),2);if(q.nextAddress!=3)return u=q.yieldResult,u?q.yield(g.immediateSend(u),3):(g.cancelThrottledSend(),q.return());g.intervalJob&&(g.intervalJob=0,g.throttledSend());_.Wx(q)})},this.throttleTimeout))};
_.P.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.P.immediateSend=function(g){var u=this,q;return _.D(function(Q){switch(Q.nextAddress){case 1:if(!EF(u))throw Error("fd");if(g.id===void 0){Q.jumpTo(2);break}return Q.yield(u.logsStore.markAsQueued(g.id,u.databaseToken),3);case 3:(q=Q.yieldResult)||u.handleWarning(Error("gd"));case 2:if(u.requestWithinAgeLimit(g,u.requestAgeLimitMs)){Q.jumpTo(4);break}u.handleWarning(Error("hd"));if(g.id===void 0){Q.jumpTo(5);break}return Q.yield(u.logsStore.deleteRequest(g.id,u.databaseToken),5);case 5:return Q.return();
case 4:g.skipRetry||(g=EZ$(u,g));if(!g){Q.jumpTo(0);break}if(!g.skipRetry||g.id===void 0){Q.jumpTo(8);break}return Q.yield(u.logsStore.deleteRequest(g.id,u.databaseToken),8);case 8:u.sendFn(g.url,g.options,!!g.skipRetry),_.Wx(Q)}})};
var EZ$=function(g,u){if(!EF(g))throw Error("id");var q=u.options.onError?u.options.onError:function(){};
u.options.onError=function(L,E){var y,v,J,f;return _.D(function(t){switch(t.nextAddress){case 1:y=BOq(E);(v=zqb(E))&&g.getBooleanFlag&&g.getBooleanFlag("web_enable_error_204")&&g.handleError(Error("jd"),u.url,E);if(!(g.getBooleanFlag&&g.getBooleanFlag("nwl_consider_error_code")&&y||g.getBooleanFlag&&!g.getBooleanFlag("nwl_consider_error_code")&&g.potentialEsfErrorCounter<=g.potentialEsfErrorLimit)){t.jumpTo(2);break}if(!g.networkManager.sendNetworkCheckRequest){t.jumpTo(3);break}return t.yield(g.networkManager.sendNetworkCheckRequest(),
3);case 3:if(g.networkManager.isNetworkAvailable()){t.jumpTo(2);break}q(L,E);if(!g.getBooleanFlag||!g.getBooleanFlag("nwl_consider_error_code")||((J=u)==null?void 0:J.id)===void 0){t.jumpTo(6);break}return t.yield(g.logsStore.resetRequest(u.id,g.databaseToken,!1),6);case 6:return t.return();case 2:if(g.getBooleanFlag&&g.getBooleanFlag("nwl_consider_error_code")&&!y&&g.potentialEsfErrorCounter>g.potentialEsfErrorLimit)return t.return();g.potentialEsfErrorCounter++;if(((f=u)==null?void 0:f.id)===void 0){t.jumpTo(8);
break}return u.sendCount<g.retryMaxAttempts?t.yield(g.logsStore.resetRequest(u.id,g.databaseToken,!0,v?!1:void 0),12):t.yield(g.logsStore.deleteRequest(u.id,g.databaseToken),8);case 12:g.jobManager.addLowPriorityJob(function(){g.networkManager.isNetworkAvailable()&&g.throttledSend()},g.retryDelayMs);
case 8:q(L,E),_.Wx(t)}})};
var Q=u.options.onSuccess?u.options.onSuccess:function(){};
u.options.onSuccess=function(L,E){var y;return _.D(function(v){if(v.nextAddress==1)return((y=u)==null?void 0:y.id)===void 0?v.jumpTo(2):v.yield(g.logsStore.deleteRequest(u.id,g.databaseToken),2);g.networkManager.networkStatusHint&&g.getBooleanFlag&&g.getBooleanFlag("vss_network_hint")&&g.networkManager.networkStatusHint(!0);Q(L,E);_.Wx(v)})};
return u};
Pj.prototype.requestWithinAgeLimit=function(g,u){g=g.timestamp;return this.now()-g>=u?!1:!0};
Pj.prototype.retryQueuedRequests=function(){var g=this;if(!EF(this))throw Error("kd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(u){u&&!g.requestWithinAgeLimit(u,g.queuedRequestAgeLimitMs)?g.jobManager.addLowPriorityJob(function(){return _.D(function(q){if(q.nextAddress==1)return u.id===void 0?q.jumpTo(2):q.yield(g.logsStore.resetRequest(u.id,g.databaseToken),2);g.retryQueuedRequests();_.Wx(q)})}):g.networkManager.isNetworkAvailable()&&g.throttledSend()})};
var Lco=function(g,u){g.writeError&&!g.networkManager.isNetworkAvailable()?g.writeError(u):g.handleError(u)},EF=function(g){return!!g.databaseToken||g.bypassDbTokenDependency};var n9b;var qIb={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 PR2={},EHf=z8("ServiceWorkerLogsDatabase",{objectStores:(PR2.SWHealthLog={addedAtVersion:1},PR2),shared:!0,upgrade:function(g,u){u(1)&&F7(dN(g,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Jok={},p13=0;var tyu;var Nc=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Wv=function(){if(!Nc.instance){var g=_.ri("yt.networkRequestMonitor.instance")||new Nc;
_.xQ("yt.networkRequestMonitor.instance",g);Nc.instance=g}return Nc.instance};
Nc.prototype.requestComplete=function(g,u){u&&(this.anyRequestHasSucceeded=!0);g=this.removeParams(g);this.requestMap.get(g)||this.requestMap.set(g,u)};
Nc.prototype.isEndpointCFR=function(g){g=this.removeParams(g);return(g=this.requestMap.get(g))?!1:g===!1&&this.anyRequestHasSucceeded?!0:null};
Nc.prototype.removeParams=function(g){return g.split("?")[0]};
Nc.prototype.removeParams=Nc.prototype.removeParams;Nc.prototype.isEndpointCFR=Nc.prototype.isEndpointCFR;Nc.prototype.requestComplete=Nc.prototype.requestComplete;Nc.getInstance=Wv;var sF=function(g){_.A5.call(this);var u=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=g!=null?g:{addLowPriorityJob:function(L,E){return setTimeout(L,E)},
cancelJob:function(L){clearTimeout(L)}};
var q,Q;this.isOnline=(Q=(q=window.navigator)==null?void 0:q.onLine)!=null?Q:!0;this.onNavigatorChange=function(){return _.D(function(L){return L.yield(NrW(u),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||s7a(this)};
_.A(sF,_.A5);sF.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete sF.instance};
sF.prototype.isNetworkAvailable=function(){return this.isOnline};
var s7a=function(g){g.pollingJob=g.jobManager.addLowPriorityJob(function(){var u;return _.D(function(q){if(q.nextAddress==1)return g.isOnline?((u=window.navigator)==null?0:u.onLine)?q.jumpTo(3):q.yield(NrW(g),3):q.yield(NrW(g),3);s7a(g);_.Wx(q)})},3E4)},NrW=function(g,u){return g.networkRequestPromise?g.networkRequestPromise:g.networkRequestPromise=new Promise(function(q){var Q,L,E,y;
return _.D(function(v){switch(v.nextAddress){case 1:return Q=window.AbortController?new window.AbortController:void 0,E=(L=Q)==null?void 0:L.signal,y=!1,_.b8(v,2,3),Q&&(g.abortTimeoutKey=g.jobManager.addLowPriorityJob(function(){Q.abort()},u||2E4)),v.yield(fetch("/generate_204",{method:"HEAD",
signal:E}),5);case 5:y=!0;case 3:_.Fr(v);g.networkRequestPromise=void 0;g.abortTimeoutKey&&(g.jobManager.cancelJob(g.abortTimeoutKey),g.abortTimeoutKey=0);y!==g.isOnline&&(g.isOnline=y,g.isOnline?g.dispatchEvent("networkstatus-online"):g.dispatchEvent("networkstatus-offline"));q(y);_.Xr(v,0);break;case 2:_.rt(v),y=!1,v.jumpTo(3)}})})};var yy=function(){_.A5.call(this);var g=this;this.shouldFlushErrors=!1;sF.instance||(sF.instance=new sF(_.Hv));this.sharedNetworkStatusManager=sF.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(g.shouldFlushErrors&&_.w("offline_error_handling")){var u=eE3().get("errors",!0);if(u){for(var q in u)if(u[q]){var Q=new _.Ji(q,"sent via offline_errors");Q.name=u[q].name;Q.stack=u[q].stack;Q.level=u[q].level;_.a4(Q)}eE3().set("errors",{},2592E3,!0)}}})};
_.A(yy,_.A5);var yDo=function(){if(!yy.instance){var g=_.ri("yt.networkStatusManager.instance")||new yy;_.xQ("yt.networkStatusManager.instance",g);yy.instance=g}return yy.instance};
_.P=yy.prototype;_.P.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.P.networkStatusHint=function(g){this.sharedNetworkStatusManager.isOnline=g};
_.P.getWindowStatus=function(){var g=window.navigator.onLine;return g===void 0?!0:g};
_.P.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.P.listen=function(g,u){return this.sharedNetworkStatusManager.listen(g,u)};
_.P.sendNetworkCheckRequest=function(g){g=NrW(this.sharedNetworkStatusManager,g);g.then(function(u){_.w("use_cfr_monitor")&&Wv().requestComplete("generate_204",u)});
return g};
yy.prototype.sendNetworkCheckRequest=yy.prototype.sendNetworkCheckRequest;yy.prototype.listen=yy.prototype.listen;yy.prototype.enableErrorFlushing=yy.prototype.enableErrorFlushing;yy.prototype.getWindowStatus=yy.prototype.getWindowStatus;yy.prototype.networkStatusHint=yy.prototype.networkStatusHint;yy.prototype.isNetworkAvailable=yy.prototype.isNetworkAvailable;yy.getInstance=yDo;_.rN=function(g){g=g===void 0?{}:g;_.A5.call(this);var u=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=yDo();var q=_.ri("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);q&&(g.rateLimit?(this.rateLimit=g.rateLimit,q("networkstatus-online",function(){vZn(u,"publicytnetworkstatus-online")}),q("networkstatus-offline",function(){vZn(u,"publicytnetworkstatus-offline")})):(q("networkstatus-online",function(){u.dispatchEvent("publicytnetworkstatus-online")}),q("networkstatus-offline",
function(){u.dispatchEvent("publicytnetworkstatus-offline")})))};
_.A(_.rN,_.A5);_.rN.prototype.isNetworkAvailable=function(){var g=_.ri("yt.networkStatusManager.instance.isNetworkAvailable");return g?g.bind(this.nsmInstance)():!0};
_.rN.prototype.networkStatusHint=function(g){var u=_.ri("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);u&&u(g)};
_.rN.prototype.sendNetworkCheckRequest=function(g){var u=this,q;return _.D(function(Q){q=_.ri("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(u.nsmInstance);return _.w("skip_network_check_if_cfr")&&Wv().isEndpointCFR("generate_204")?Q.return(new Promise(function(L){var E;u.networkStatusHint(((E=window.navigator)==null?void 0:E.onLine)||!0);L(u.isNetworkAvailable())})):q?Q.return(q(g)):Q.return(!0)})};
var vZn=function(g,u){g.rateLimit?g.lastJobTime?(_.Hv.cancelJob(g.schedulerJob),g.schedulerJob=_.Hv.addLowPriorityJob(function(){g.lastPublicSignalSent!==u&&(g.dispatchEvent(u),g.lastPublicSignalSent=u,g.lastJobTime=(0,_.n0)())},g.rateLimit-((0,_.n0)()-g.lastJobTime))):(g.dispatchEvent(u),g.lastPublicSignalSent=u,g.lastJobTime=(0,_.n0)()):g.dispatchEvent(u)};var coS,vj=function(){Pj.call(this,{logsStore:{cleanLogsStore:QTf,deleteRequest:qEh,getMostRecentByStatus:Umh,markAsQueued:gHZ,resetRequest:uhf,set:o9q},networkManager:_.Hrq(),handleError:function(g,u,q){var Q,L=q==null?void 0:(Q=q.error)==null?void 0:Q.code;if(L===400||L===415){var E;g=new _.Ji(g.message,u,q==null?void 0:(E=q.error)==null?void 0:E.code);_.Wk(g,void 0,void 0,void 0,!0)}else _.a4(g)},
handleWarning:_.Wk,sendFn:RET,now:_.n0,writeError:GyZ,jobManager:_.pT(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.S8("potential_esf_error_limit",10),getBooleanFlag:_.w,disableYtIdbTransactions:!(_.p0()&&_.AoZ())});this.initializationPromise=new _.KU;_.w("networkless_immediately_drop_all_requests")&&LyT();nZf("LogsDatabaseV2")};
_.A(vj,Pj);_.pca=function(){var g=_.ri("yt.networklessRequestController.instance");g||(g=new vj,_.xQ("yt.networklessRequestController.instance",g),_.w("networkless_logging")&&_.BW().then(function(u){g.databaseToken=u;Q7i(g);g.initializationPromise.resolve();g.enableCleaning&&Math.random()<=g.cleaningRate&&g.databaseToken&&NLZ(g.databaseToken);_.w("networkless_immediately_drop_sw_health_store")&&DZR(g)}));
return g};
vj.prototype.writeThenSend=function(g,u){u||(u={});u=w1J(g,u);_.p0()||(this.initialized=!1);Pj.prototype.writeThenSend.call(this,g,u)};
vj.prototype.sendThenWrite=function(g,u,q){u||(u={});u=w1J(g,u);_.p0()||(this.initialized=!1);Pj.prototype.sendThenWrite.call(this,g,u,q)};
vj.prototype.sendAndWrite=function(g,u){u||(u={});u=w1J(g,u);_.p0()||(this.initialized=!1);Pj.prototype.sendAndWrite.call(this,g,u)};
vj.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var DZR=function(g){var u;_.D(function(q){if(!g.databaseToken)throw u=iS("clearSWHealthLogsDb"),u;return q.return(sTM(g.databaseToken).catch(function(Q){g.handleError(Q)}))})};_.laJ=!1;_.ZrJ=_.Qq.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.laJ};_.xQ("ytNetworklessLoggingInitializationOptions",_.ZrJ);var c6=function(g){var u=this;this.config_=null;g?this.config_=g:LCb()&&(this.config_=_.Sj());_.M_(_.Hv,function(){xmu(u)},5E3)};
c6.prototype.isReady=function(){!this.config_&&LCb()&&(this.config_=_.Sj());return!!this.config_};
var KXS=function(g,u,q,Q){!_.FR("VISITOR_DATA")&&u!=="visitor_id"&&Math.random()<.01&&_.Wk(new _.Ji("Missing VISITOR_DATA when sending innertube request.",u,q,Q));if(!g.isReady()){var L=new _.Ji("innertube xhrclient not ready",u,q,Q);_.a4(L);throw L;}var E={headers:Q.headers||{},method:"POST",postParams:q,postBody:Q.postBody,postBodyFormat:Q.postBodyFormat||"JSON",onTimeout:function(){Q.onTimeout()},
onFetchTimeout:Q.onTimeout,onSuccess:function(e,G){if(Q.onSuccess)Q.onSuccess(G)},
onFetchSuccess:function(e){if(Q.onSuccess)Q.onSuccess(e)},
onProgress:function(e){if(Q.onProgress)Q.onProgress(e)},
onError:function(e,G){if(Q.onError)Q.onError(G)},
onFetchError:function(e){if(Q.onError)Q.onError(e)},
timeout:Q.timeout,withCredentials:!0,compress:Q.compress};E.headers["Content-Type"]||(E.headers["Content-Type"]="application/json");var y="";(L=g.config_.innertubeHostOverride)&&(y=L);var v=g.config_.innertubeUseThirdPartyAuth||!1,J=_.$RT(v,y,Q);Object.assign(E.headers,J);E.headers.Authorization&&!y&&v&&(E.headers["x-origin"]=window.location.origin);var f=_.O_(y+("/youtubei/"+g.config_.innertubeApiVersion+"/"+u),{alt:"json"}),t=function(e){e=e===void 0?!1:e;var G;if(Q.retry&&y!="www.youtube-nocookie.com"&&
(e||_.w("skip_ls_gel_retry")||E.headers["Content-Type"]!=="application/json"||(G=Yiq(u,q,J,v)),G)){var R=E.onSuccess,H=E.onFetchSuccess;E.onSuccess=function(F,V){OEq(G);R(F,V)};
q.onFetchSuccess=function(F,V){OEq(G);H(F,V)}}try{if(e&&Q.retry&&!Q.networklessOptions.bypassNetworkless)E.method="POST",Q.networklessOptions.writeThenSend?_.pca().writeThenSend(f,E):_.pca().sendAndWrite(f,E);
else if(Q.compress){var l=!Q.networklessOptions.writeThenSend;if(E.postBody){var d=E.postBody;typeof d!=="string"&&(d=JSON.stringify(E.postBody));dmf(f,d,E,_.Ek,l)}else dmf(f,JSON.stringify(E.postParams),E,hNZ,l)}else hNZ(f,E)}catch(F){if(F.name==="InvalidAccessError")G&&(OEq(G),G=0),_.Wk(Error("ld"));else throw F;}G&&_.M_(_.Hv,function(){xmu(g)},5E3)};
_.Iau()?Trb().then(function(e){t(e)}):t(!1)};var A4h=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(A4h,_.fv);var JDX=0,CFS=_.u6?"webkit":_.qM?"moz":_.xS?"ms":qZo?"o":"";_.xQ("ytDomDomGetNextId",_.ri("ytDomDomGetNextId")||function(){return++JDX});var j7$={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},KB=function(g){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(g=
g||window.event){this.event=g;for(var u in g)u in j7$||(this[u]=g[u]);this.scale=g.scale;this.rotation=g.rotation;var q=g.target||g.srcElement;q&&q.nodeType==3&&(q=q.parentNode);this.target=q;var Q=g.relatedTarget;if(Q)try{Q=Q.nodeName?Q:null}catch(L){Q=null}else this.type=="mouseover"?Q=g.fromElement:this.type=="mouseout"&&(Q=g.toElement);this.relatedTarget=Q;this.clientX=g.clientX!=void 0?g.clientX:g.pageX;this.clientY=g.clientY!=void 0?g.clientY:g.pageY;this.keyCode=g.keyCode?g.keyCode:g.which;
this.charCode=g.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=g.altKey;this.ctrlKey=g.ctrlKey;this.shiftKey=g.shiftKey;this.metaKey=g.metaKey;this.pageX_=g.pageX;this.pageY_=g.pageY}}catch(L){}},fs0=function(g){if(document.body&&document.documentElement){var u=document.body.scrollTop+document.documentElement.scrollTop;
g.pageX_=g.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);g.pageY_=g.clientY+u}};
KB.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
KB.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
KB.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Or=_.Qq.ytEventsEventsListeners||{};_.xQ("ytEventsEventsListeners",Or);var VyK=_.Qq.ytEventsEventsCounter||{count:0};_.xQ("ytEventsEventsCounter",VyK);var X13=_.DX(function(){var g=!1;try{var u=Object.defineProperty({},"capture",{get:function(){g=!0}});
window.addEventListener("test",null,u)}catch(q){}return g});_.TK(Bv,_.Lh);Bv.prototype.onMouseMove_=function(g){g.pageX_===void 0&&fs0(g);var u=g.pageX_;g.pageY_===void 0&&fs0(g);this.position_=new _.l7(u,g.pageY_)};
Bv.prototype.checkPosition_=function(){if(this.position_){var g=(0,_.n0)();if(this.previousTime_!=0){var u=this.previousPosition_,q=this.position_,Q=u.x-q.x;u=u.y-q.y;Q=Math.sqrt(Q*Q+u*u)/(g-this.previousTime_);this.cycles_[this.index_]=Math.abs((Q-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(q=u=0;q<4;q++)u+=this.cycles_[q]||0;u>=3&&this.callback_();this.previousVelocity_=Q}this.previousTime_=g;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Bv.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.roq(this.mouseListenerKey_)};var Orh={};var Spq=new _.d2("rawColdConfigGroup");var kcf=new _.d2("rawHotConfigGroup");var MbX=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(MbX,_.fv);var HIJ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(HIJ,_.fv);var fw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g,500)};
_.A(fw,_.fv);fw.prototype.getPayloadCase=function(){return _.Ea(this,tb5)};
fw.prototype.getContext=function(){return _.o0(this,HIJ,33)};
var tb5=[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 Oe3=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Oe3,_.fv);var $yJ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A($yJ,_.fv);$yJ.prototype.setVideoId=function(g){return P6(this,1,RGK,IH(g))};
$yJ.prototype.getPlaylistId=function(){return _.Sp(this,pw(this,RGK,2))};
var RGK=[1,2];var N_=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(N_,_.fv);N_.prototype.getContext=function(){return _.o0(this,sz,1)};
N_.prototype.getTier=function(){return _.j$(this,7)};
N_.prototype.getRetryCount=function(){return _.r6(this,11)};var ehx,Sa,oI;ehx=_.Qq.ytPubsubPubsubInstance||new _.PW;Sa=_.Qq.ytPubsubPubsubSubscribedKeys||{};oI=_.Qq.ytPubsubPubsubTopicToKeys||{};_.Kyq=_.Qq.ytPubsubPubsubIsSynchronous||{};_.PW.prototype.subscribe=_.PW.prototype.subscribe;_.PW.prototype.unsubscribeByKey=_.PW.prototype.unsubscribeByKey;_.PW.prototype.publish=_.PW.prototype.publish;_.PW.prototype.clear=_.PW.prototype.clear;_.xQ("ytPubsubPubsubInstance",ehx);_.xQ("ytPubsubPubsubTopicToKeys",oI);_.xQ("ytPubsubPubsubIsSynchronous",_.Kyq);
_.xQ("ytPubsubPubsubSubscribedKeys",Sa);var g9=window;var Dr=_.w("web_enable_lifecycle_monitoring")&&kyK()!==0,GNW=_.w("web_enable_lifecycle_monitoring");var $Zn=function(g){var u=this;var q=q===void 0?0:q;var Q=Q===void 0?_.pT():Q;this.JSC$11200_defaultPriority=q;this.scheduler=Q;this.completedResolver=new _.KU;this.scheduledPayloads=g;for(g={i$jscomp$495:0};g.i$jscomp$495<this.scheduledPayloads.length;g={payload$jscomp$20:void 0,i$jscomp$495:g.i$jscomp$495},g.i$jscomp$495++)g.payload$jscomp$20=this.scheduledPayloads[g.i$jscomp$495],q=function(L){return function(){L.payload$jscomp$20.job();u.scheduledPayloads[L.i$jscomp$495].processed=!0;u.scheduledPayloads.every(function(E){return E.processed===
!0})&&u.completedResolver.resolve()}}(g),Q=this.getPriority(g.payload$jscomp$20),Q=this.scheduler.addJob(q,Q),this.scheduledPayloads[g.i$jscomp$495]=Object.assign({},g.payload$jscomp$20,{job:q,
jobId:Q})};
$Zn.prototype.flushJobs=function(){var g=this,u=Array.from(this.scheduledPayloads.keys()).sort(function(Q,L){return g.getPriority(g.scheduledPayloads[L])-g.getPriority(g.scheduledPayloads[Q])});
u=_.N(u);for(var q=u.next();!q.done;q=u.next())q=this.scheduledPayloads[q.value],q.jobId===void 0||q.processed||(this.scheduler.cancelJob(q.jobId),this.scheduler.addJob(q.job,10))};
$Zn.prototype.cancel=function(){for(var g=_.N(this.scheduledPayloads),u=g.next();!u.done;u=g.next())u=u.value,u.jobId===void 0||u.processed||this.scheduler.cancelJob(u.jobId),u.processed=!0;this.completedResolver.resolve()};
$Zn.prototype.getPriority=function(g){var u;return(u=g.priority)!=null?u:this.JSC$11200_defaultPriority};var pA=function(g){this.state=g;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Dr&&SEb(this.state)};
pA.prototype.install=function(g){this.plugins.push(g);return this};
pA.prototype.uninstall=function(){var g=this;_.UT.apply(0,arguments).forEach(function(u){u=g.plugins.indexOf(u);u>-1&&g.plugins.splice(u,1)})};
pA.prototype.transition=function(g,u){var q=this;Dr&&oHS(this.state);var Q=this.transitions.find(function(E){return Array.isArray(E.from)?E.from.find(function(y){return y===q.state&&E.to===g}):E.from===q.state&&E.to===g});
if(Q){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Rhn(this,g,u);this.state=g;Dr&&SEb(this.state);Q=Q.action.bind(this);var L=this.plugins.filter(function(E){return E[g]}).map(function(E){return E[g]});
Q(wcR(this,L),u)}else throw Error("md`"+this.state+"`"+g);};
var wcR=function(g,u){var q=u.filter(function(L){return cD0(g,L)===10}),Q=u.filter(function(L){return cD0(g,L)!==10});
return g.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var L=_.UT.apply(0,arguments);return _.D(function(E){if(E.nextAddress==1)return E.yield(g.runImmediateJobsAsync.apply(g,[q].concat(_.na(L))),2);g.setJobSetWithScheduledJobs.apply(g,[Q].concat(_.na(L)));_.Wx(E)})}:function(){var L=_.UT.apply(0,arguments);
g.runImmediateJobsSync.apply(g,[q].concat(_.na(L)));g.setJobSetWithScheduledJobs.apply(g,[Q].concat(_.na(L)))}};
pA.prototype.runImmediateJobsSync=function(g){var u=_.UT.apply(1,arguments);_.pT();for(var q=_.N(g),Q=q.next(),L={};!Q.done;L={lifecycle$jscomp$2:void 0},Q=q.next())L.lifecycle$jscomp$2=Q.value,Vb(function(E){return function(){HUb(E.lifecycle$jscomp$2.name);gqS(function(){return E.lifecycle$jscomp$2.callback.apply(E.lifecycle$jscomp$2,_.na(u))});
JH(E.lifecycle$jscomp$2.name)}}(L))};
pA.prototype.runImmediateJobsAsync=function(g){var u=_.UT.apply(1,arguments),q,Q,L,E;return _.D(function(y){y.nextAddress==1&&(_.pT(),q=_.N(g),Q=q.next(),L={});if(y.nextAddress!=3){if(Q.done)return y.jumpTo(0);L.lifecycle$jscomp$3=Q.value;L.asyncJobCompletion=void 0;E=function(v){return function(){HUb(v.lifecycle$jscomp$3.name);var J=gqS(function(){return v.lifecycle$jscomp$3.callback.apply(v.lifecycle$jscomp$3,_.na(u))});
i9Z(J)?v.asyncJobCompletion=_.w("web_lifecycle_error_handling_killswitch")?J.then(function(){JH(v.lifecycle$jscomp$3.name)}):J.then(function(){JH(v.lifecycle$jscomp$3.name)},function(f){UYf(f);
JH(v.lifecycle$jscomp$3.name)}):JH(v.lifecycle$jscomp$3.name)}}(L);
Vb(E);return L.asyncJobCompletion?y.yield(L.asyncJobCompletion,3):y.jumpTo(3)}L={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};Q=q.next();return y.jumpTo(2)})};
pA.prototype.setJobSetWithScheduledJobs=function(g){var u=_.UT.apply(1,arguments),q=this,Q=g.map(function(L){return{job:function(){HUb(L.name);gqS(function(){return L.callback.apply(L,_.na(u))});
JH(L.name)},
priority:cD0(q,L)}});
Q.length&&(this.jobSet=new $Zn(Q))};
var cD0=function(g,u){var q,Q;return(Q=(q=g.overridePriority)!=null?q:u.priority)!=null?Q:0},HUb=function(g){Dr&&g&&SEb(g)},JH=function(g){Dr&&g&&oHS(g)},Rhn=function(g,u,q){GNW&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+g.constructor.name+"] '"+g.state+"' to '"+u+"'"),console.log("with message: ",q),console.groupEnd())};
_.z3.Object.defineProperties(pA.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ADR=function(g){pA.call(this,g===void 0?"none":g);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(){}}]},ZUa;
_.A(ADR,pA);ADR.prototype.runApplicationNavigationBegin=function(g,u){var q=this;this.navigationTimer=_.M_(_.Hv,function(){q.currentState==="application_navigating"&&q.transition("none")},5E3);
g(u==null?void 0:u.event)};
ADR.prototype.runApplicationNavigationEnd=function(g,u){this.navigationTimer&&(_.Hv.cancelJob(this.navigationTimer),this.navigationTimer=null);g(u==null?void 0:u.event)};
_.nqF=function(){ZUa||(ZUa=new ADR);return ZUa};var zGS=[];_.xQ("yt.logging.transport.getScrapedGelPayloads",function(){return zGS});var uD=function(){var g=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return g.totalEntries}}};
uD.prototype.storePayload=function(g,u){g=u0Z(g);this.store[g]?this.store[g].push(u):(this.memoizedKeySequences={},this.store[g]=[u]);this.totalEntries++;_.w("more_accurate_gel_parser")&&(u=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(u));return g};
uD.prototype.smartExtractMatchingEntries=function(g){if(!g.keys.length)return[];for(var u=lso(this,g.keys.splice(0,1)[0]),q=[],Q=0;Q<u.length;Q++)this.store[u[Q]]&&g.sizeLimit&&(this.store[u[Q]].length<=g.sizeLimit?(q.push.apply(q,_.na(this.store[u[Q]])),delete this.store[u[Q]]):q.push.apply(q,_.na(this.store[u[Q]].splice(0,g.sizeLimit))));this.totalEntries-=q.length;(g==null?0:g.sizeLimit)&&q.length<(g==null?void 0:g.sizeLimit)&&(g.sizeLimit-=q.length,q.push.apply(q,_.na(this.smartExtractMatchingEntries(g))));
return q};
uD.prototype.extractMatchingEntries=function(g){g=lso(this,g);for(var u=[],q=0;q<g.length;q++)this.store[g[q]]&&(u.push.apply(u,_.na(this.store[g[q]])),delete this.store[g[q]]);this.totalEntries-=u.length;return u};
uD.prototype.getSequenceCount=function(g){g=lso(this,g);for(var u=0,q=0;q<g.length;q++){var Q=void 0;u+=((Q=this.store[g[q]])==null?void 0:Q.length)||0}return u};
var lso=function(g,u){var q=u0Z(u);if(g.memoizedKeySequences[q])return g.memoizedKeySequences[q];var Q=Object.keys(g.store)||[];if(Q.length<=1&&u0Z(u)===Q[0])return Q;for(var L=[],E=0;E<Q.length;E++){var y=Q[E].split("/");if(Isa(u.auth,y[0])){var v=u.isJspb;Isa(v===void 0?"undefined":v?"true":"false",y[1])&&Isa(u.cttAuthInfo,y[2])&&(v=u.tier,v=v===void 0?"undefined":JSON.stringify(v),Isa(v,y[3])&&L.push(Q[E]))}}return g.memoizedKeySequences[q]=L},Isa=function(g,u){return g===void 0||g==="undefined"?
!0:g===u};
uD.prototype.getSequenceCount=uD.prototype.getSequenceCount;uD.prototype.extractMatchingEntries=uD.prototype.extractMatchingEntries;uD.prototype.smartExtractMatchingEntries=uD.prototype.smartExtractMatchingEntries;uD.prototype.storePayload=uD.prototype.storePayload;var CaK,IcT,beq,Lw,iUo,ugF,gyk,lcq,Zeb,fcZ,ie3,xym,c9F;CaK=_.S8("initial_gel_batch_timeout",2E3);IcT=_.S8("gel_queue_timeout_max_ms",6E4);beq=_.S8("gel_min_batch_size",5);Lw=void 0;iUo=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
ugF=new iUo;gyk=new iUo;lcq=new iUo;Zeb=new iUo;ie3=!0;xym=1;_.KHJ=new Map;c9F=_.Qq.ytLoggingTransportTokensToCttTargetIds_||{};_.xQ("ytLoggingTransportTokensToCttTargetIds_",c9F);var weK=_.Qq.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.xQ("ytLoggingTransportTokensToJspbCttTargetIds_",weK);var QC={};var Ro=_.Qq.ytLoggingGelSequenceIdObj_||{};_.xQ("ytLoggingGelSequenceIdObj_",Ro);var Llu=[];var MJ3=new Set,y7T=0,Gk3=0,ezb=0,D0q=[],vyF=[],$0M=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Flh=function(){};
Flh.prototype.getUrl=function(g,u){u=u===void 0?!1:u;return g.hasOwnProperty("shareEndpoint")?null:_.Hnq(g,null,u)};
var aRJ=function(g,u,q){g={endpoint:u,actions:[]};q=(q.path?q.path[0]:q.target).icon||"";u=q.indexOf(":");u>0&&(q=q.substr(u+1));q&&g.actions.push(q);return g};var C2k=/Command$/,inb=/Endpoint$/,Zn3=new Map;var CRb,bUX;CRb=1;_.VC=function(){this.actionRoutingMap=new Map};
_.VC.prototype.triggerAction=function(g){var u=new QcM(g,!1,_.UT.apply(1,arguments));this.handleAction(u);return u.returnValue};
_.VC.prototype.triggerOptionalAction=function(g){var u=new QcM(g,!0,_.UT.apply(1,arguments));this.handleAction(u);return u.returnValue};
_.j2=function(g,u,q){u.forEach(function(Q){var L=I7u(Q);L&&g.triggerOptionalAction(L,Q,q,void 0)})};
_.VC.prototype.handleAction=function(g){var u=this.actionRoutingMap.get(g.actionName);u&&bUX(g,u);g.optionalAction||g.returnValue.length!==0||(g=new _.Ji("Unhandled action",g.actionName),_.Wk(g))};
bUX=function(g,u){u.forEach(function(q){var Q=null;q?Q=q.apply(null,g.args):(q=Error("nd"),q.params=g.actionName,_.a4(q));g.returnValue.push(Q)})};
_.XU=function(g,u,q){q||(q=CRb++);for(var Q=_.N(Object.keys(u)),L=Q.next();!L.done;L=Q.next()){L=L.value;var E=g.actionRoutingMap.get(L);E||(E=new Map,g.actionRoutingMap.set(L,E));g.registerActionHandler(q,L,u[L],E)}return q};
_.VC.prototype.registerActionHandler=function(g,u,q,Q){Q.set(g,_.V1(q))};
_.r9=function(g,u,q){u=_.N(Object.keys(u));for(var Q=u.next();!Q.done;Q=u.next())(Q=g.actionRoutingMap.get(Q.value))&&Q.delete(q)};
_.rT(_.VC);var VJ3=function(g,u){var q=_.VC.getInstance();_.I4(function(){var Q={},L=_.XU(q,(Q[g]=u,Q));_.dB(function(){var E={};_.r9(q,(E[g]="",E),L)})})};VZT=M_b;var oyf=new Set(["For","If","Match","Watch"]),dZH={},Fc2=(dZH[WL.default]=function(){return idZ},dZH.style=function(){return idZ},dZH),mZ2;
for(mZ2 in Fc2)gB.attributes[mZ2]=Fc2[mZ2](gB.attributes[mZ2]);var Kw=new _.Fv("VISIBILITY_OBSERVER");var s1q={retrieve:function(g){return this.id.\u0275prov.token===g.\u0275prov.token?this.contextValue:this?Si(this,this.id):c6S}};var as5=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(g){}var VbW=typeof WeakRef==="function";var Xcn=function(g){this.value=g};
Xcn.prototype.deref=function(){return this.value};
var rD5=VbW?WeakRef:Xcn,Wca=function(g){this.newKeyHandler=g;this.map=new WeakMap};
Wca.prototype.add=function(g,u){this.map.has(g)||(this.newKeyHandler(g),this.map.set(g,[]));this.map.get(g).push(new rD5(u))};
Wca.prototype.get=function(g){var u=this;return function Q(){var L,E,y,v,J,f,t,e,G,R,H;return _.n3(Q,function(l){switch(l.nextAddress){case 1:_.ms(l,2);L=u.map.get(g);if(!L)return l.return();E=0;y=_.N(L);v=y.next();case 4:if(v.done){l.jumpTo(6);break}J=v.value;f=J.deref();if(!f){l.jumpTo(5);break}E++;t=_.kb;return l.yield(f,8);case 8:t(l.yieldResult);case 5:v=y.next();l.jumpTo(4);break;case 6:if(2*E<L.length){e=0;G=_.N(L);for(R=G.next();!R.done;R=G.next())H=R.value,H.deref()&&(L[e++]=H);L.length=
e}case 2:_.Fr(l),_.Xr(l,0)}})}()};var Tr0=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},j1T=new Wca(function(g){g.addEventListener("abort",MVf,{once:!0})}),JZq=new WeakMap,hh2=function(g){g=g===void 0?fA:g;
this.signal=new g};
hh2.prototype.abort=function(g){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=g,g=new Event("abort"),this.signal.dispatchEvent(g))};
var fA=function(){this.target=Tr0();this.aborted=!1;this.onabort=null};
fA.prototype.throwIfAborted=function(){pbF.call(this)};
fA.prototype.addEventListener=function(g,u,q){this.target.addEventListener(g,u,q)};
fA.prototype.removeEventListener=function(g,u,q){this.target.removeEventListener(g,u,q)};
fA.prototype.dispatchEvent=function(g){if(this.onabort&&g.type==="abort")this.onabort(g);return this.target.dispatchEvent(g)};
fA.abort=DWM;fA.timeout=tVF;fA.any=feM;var vbT=as5?AbortController:hh2,Mc=as5?AbortSignal:fA;typeof Mc.abort!=="function"&&(Mc.abort=DWM);typeof Mc.prototype.throwIfAborted!=="function"&&(Mc.prototype.throwIfAborted=pbF);typeof Mc.any!=="function"&&(Mc.any=feM);typeof Mc.timeout!=="function"&&(Mc.timeout=tVF);var B6=null,GxZ=new Map;var Y3R=function(g){g=g.clone();eS$(g);EG(g,"dg",null);EG(g,"d","0");jKH(g,null);fFx(g,null);return g},OUW=!0,KcW=function(g,u,q){var Q=q===void 0?{}:q;
q=Q.cssRowKey===void 0?void 0:Q.cssRowKey;var L=Q.combinedSignature===void 0?void 0:Q.combinedSignature;var E=Q.extraEdges===void 0?void 0:Q.extraEdges;Q=Q.callback===void 0?void 0:Q.callback;EG(g,"m",u.join(","));E&&t78(g,E);q&&(EG(g,"ck",q),L?EG(g,"rs",L):OUW&&(OUW=!1));if(Q){if(Q!=null&&!RSR.test(Q))throw Error("Ya`"+Q);EG(g,"cb",Q)}g=g.toString();_.N3(g,"/")&&(g=n$F(document.location.href)+g);return _.r0(g)};var BrW=function(g){return xZ$(g).then(function(u){return JSON.parse(u.responseText)})},xZ$=function(g){var u={},q=u.xmlHttpFactory?u.xmlHttpFactory.createInstance():Tii.createInstance();
return(new _.Ez(function(Q,L){var E;try{q.open("GET",g,!0)}catch(J){L(new tH("Error opening XHR: "+J.message,g,q))}q.onreadystatechange=function(){if(q.readyState==4){_.Qq.clearTimeout(E);var J;!(J=WWa(q.status))&&(J=q.status===0)&&(J=B6f(g),J=!(J=="http"||J=="https"||J==""));J?Q(q):L(new zhb(q.status,g,q))}};
q.onerror=function(){L(new tH("Network error",g,q))};
if(u.headers)for(var y in u.headers){var v=u.headers[y];v!=null&&q.setRequestHeader(y,v)}u.withCredentials&&(q.withCredentials=u.withCredentials);u.responseType&&(q.responseType=u.responseType);u.mimeType&&q.overrideMimeType(u.mimeType);u.timeoutMs>0&&(E=_.Qq.setTimeout(function(){q.onreadystatechange=function(){};
q.abort();L(new nZW(g,q))},u.timeoutMs));
try{q.send(null)}catch(J){q.onreadystatechange=function(){},_.Qq.clearTimeout(E),L(new tH("Error sending XHR: "+J.message,g,q))}})).thenCatch(function(Q){Q instanceof _.Gx&&q.abort();
throw Q;})},tH=function(g,u,q){_.gq.call(this,g+", url="+u);
this.url=u;this.xhr=q};
_.TK(tH,_.gq);tH.prototype.name="XhrError";var zhb=function(g,u,q){tH.call(this,"Request Failed, status="+g,u,q);this.status=g};
_.TK(zhb,tH);zhb.prototype.name="XhrHttpError";var nZW=function(g,u){tH.call(this,"Request timed out",g,u)};
_.TK(nZW,tH);nZW.prototype.name="XhrTimeoutError";Xi=Xi||{};_.TK(R2b,_.Lh);R2b.prototype.initialize=function(){};
Xi.BaseModule=R2b;wbJ.prototype.execute=function(g){this.fn_&&(this.fn_.call(this.handler_||null,g),this.fn_=this.handler_=null)};
wbJ.prototype.abort=function(){this.handler_=this.fn_=null};
Xi.ModuleLoadCallback=wbJ;_.TK(zp,_.Lh);zp.prototype.moduleConstructor_=Xi.BaseModule;zp.prototype.module_=null;zp.prototype.getId=function(){return this.JSC$11355_id_};
zp.prototype.registerCallback=function(g,u){return e2(this.onloadCallbacks_,g,u)};
var kN$=function(g,u){e2(g.onErrorCallbacks_,u)},e2=function(g,u,q){u=new Xi.ModuleLoadCallback(u,q);
g.push(u);return u};
zp.prototype.isLoaded=function(){return!!this.module_};
zp.prototype.onLoad=function(g){var u=new this.moduleConstructor_;u.initialize(g());this.module_=u;u=(u=S3H(this.earlyOnloadCallbacks_,g()))||S3H(this.onloadCallbacks_,g());u||(this.onErrorCallbacks_.length=0);return u};
zp.prototype.onError=function(g){(g=S3H(this.onErrorCallbacks_,g))&&Eb(Error("td`"+g));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var S3H=function(g,u){for(var q=[],Q=0;Q<g.length;Q++)try{g[Q].execute(u)}catch(L){Eb(L),q.push(L)}g.length=0;return q.length?q:null};
zp.prototype.disposeInternal=function(){zp.superClass_.disposeInternal.call(this);_.Fo(this.module_)};
Xi.ModuleInfo=zp;var oZW,LC0,qxW,QE0,g_W,uTb,yRH,N$0,sE5;
_.k1=function(g,u,q,Q,L){Q=Q===void 0?!1:Q;L=L===void 0?!1:L;var E=E===void 0?!0:E;this.scsReferenceUrl_=zMu(_.WT(g).toString(),E);this.cssRowKey_=u;this.combinedSignature_=q;this.useNegativeLoading_=Q;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(g=Lj(this.scsReferenceUrl_,"excm"))?g.split(","):[];this.shouldScanForCss_=L;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;nOF();_.Gn(this,M7o(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
oZW=function(g,u){if(u.href||u.getAttribute("data-href"))if(u=u.href||u.getAttribute("data-href"),OBF(u)&&!zMu(u).urlPrefix_.endsWith("_/js/")){u=M7o(zMu(u));u=_.N(u);for(var q=u.next();!q.done;q=u.next())q=q.value,g.loadedCssModuleList_.includes(q)||g.loadedCssModuleList_.push(q)}};
_.k1.prototype.loadModules=function(g,u,q){var Q=q===void 0?{}:q;u=Q.extraEdges;q=Q.onError;var L=Q.onSuccess;Q=Q.forceReload;if(!g)throw Error("ud");if(this.shouldScanForCss_){for(var E=_.N(document.getElementsByTagName("style")),y=E.next();!y.done;y=E.next())oZW(this,y.value);E=_.N(document.getElementsByTagName("link"));for(y=E.next();!y.done;y=E.next())oZW(this,y.value)}UZR(this,g_W(this,g),u,q,L,Q)};
var UZR=function(g,u,q,Q,L,E){Q=Q===void 0?function(){}:Q;
L=L===void 0?function(){}:L;
E=E===void 0?!1:E;uTb(g,u,function(y,v,J){J=J===void 0?v:J;g.enableFallbackFetch&&E?g.loadWithFetch(y,v,Q,L,J):g.load(y,v,Q,L,J,q)},q)||Q(-1)};
_.k1.prototype.loadWithFetch=function(){_.D(function(){throw Error("vd");})};
_.k1.prototype.maybeSetAdditionalFields=function(){};
LC0=function(g,u,q){if(g.useNegativeLoading_){var Q=g.scsReferenceUrl_;g={cssRowKey:g.cssRowKey_,combinedSignature:g.combinedSignature_,extraEdges:q,requestedModuleIds:qxW(g),requestedCssModuleIds:QE0(g)};var L=g===void 0?{}:g;g=L.requestedModuleIds===void 0?[]:L.requestedModuleIds;q=L.requestedCssModuleIds===void 0?[]:L.requestedCssModuleIds;var E=L.cssRowKey===void 0?void 0:L.cssRowKey;var y=L.combinedSignature===void 0?void 0:L.combinedSignature;var v=L.extraEdges===void 0?void 0:L.extraEdges;
L=L.callback===void 0?void 0:L.callback;Q=Y3R(Q);EG(Q,"d","1");jKH(Q,g);fFx(Q,q);u=KcW(Q,u,{cssRowKey:E,combinedSignature:y,extraEdges:v,callback:L})}else Q=g.scsReferenceUrl_,g={cssRowKey:g.cssRowKey_,combinedSignature:g.combinedSignature_,requestedModuleIds:qxW(g),requestedCssModuleIds:QE0(g)},v=g===void 0?{}:g,g=v.requestedCssModuleIds===void 0?[]:v.requestedCssModuleIds,q=v.cssRowKey===void 0?void 0:v.cssRowKey,E=v.combinedSignature===void 0?void 0:v.combinedSignature,y=v.extraEdges===void 0?
void 0:v.extraEdges,v=v.callback===void 0?void 0:v.callback,Q=Y3R(Q),fFx(Q,g),u=KcW(Q,u,{cssRowKey:q,combinedSignature:E,extraEdges:y,callback:v});return u};
_.Gn=function(g,u){for(var q=!1,Q=[],L=0;L<u.length;++L){var E=u[L];g.requestedModuleMap_[E]||(g.requestedModuleMap_[E]=!0,g.requestedModuleList_.push(E),q=!0,Q.push(E))}q&&(g.requestedModuleListSorted_=!1)};
_.$x=function(g,u){for(var q=[],Q=0;Q<u.length;++Q){var L=u[Q];g.requestedModuleMap_[L]&&(delete g.requestedModuleMap_[L],_.TM(g.requestedModuleList_,L),q.push(L))}};
_.k1.prototype.load=function(g,u,q,Q,L){L=L===void 0?u:L;_.WT(g);var E=this.useCors_,y=this.corsMode_,v=this.fetchPriority,J=_.oG("SCRIPT");_.jx(J,g);E&&(J.crossOrigin=y);J.async=!1;v&&J.setAttribute("fetchpriority",v);_.Gn(this,u);_.E_X(this,g,J,u,q,Q,L)};
_.E_X=function(g,u,q,Q,L,E,y){y=y===void 0?Q:y;g.lastScript_=q;g.insertPos.insertBefore(q,g.insertPos.firstChild);_.Pd5(q,Q,function(){q.parentElement.removeChild(q);g.lastScript_==q&&(g.lastScript_=null);E()},function(v){q.parentElement.removeChild(q);
g.lastScript_==q&&(g.lastScript_=null);_.$x(g,v);g.pendingModuleGraphUpdate_?g.pendingModuleGraphUpdate_.then(function(){L(-1,u)}):L(-1,u)},y)};
_.Pd5=function(g,u,q,Q,L){L=L===void 0?u:L;var E=u.length,y=function(){E=0;g.onload=null;g.onerror=null;v=function(){}},v=function(){y();
var f=L.filter(function(t){return!GQ().getModuleInfo(t).isLoaded()});
f.length!==0?Q(f,"Response was successful but was missing module(s) "+f+"."):q()},J=function(){E--;
E==0&&v()};
u.forEach(function(f){f=GQ().getModuleInfo(f);f.isLoaded()?J():(e2(f.earlyOnloadCallbacks_,J),kN$(f,J))});
g.onload=function(){return v()};
g.onerror=function(){y();Q(u)}};
qxW=function(g){g.requestedModuleListSorted_||(g.requestedModuleListSorted_=!0,g.requestedModuleList_.sort());return g.requestedModuleList_};
QE0=function(g){g=g.loadedCssModuleList_;g.sort();return g};
g_W=function(g,u){return u.filter(function(q){return!g.requestedModuleMap_[q]})};
uTb=function(g,u,q,Q){if(g.pendingModuleGraphUpdate_)return g.pendingModuleGraphUpdate_.then(function(){uTb(g,u,q,Q)}),!0;
if(!g.useNegativeLoading_){var L=[],E=Object.assign({},g.requestedModuleMap_);N$0(g,u,function(t){L.push(t.getId())},Q,function(t){return!t.isLoaded()},E);
u=L}for(E=0;E<u.length;){for(var y=u.length-E,v=E==0?u:u.slice(E,u.length),J=LC0(g,v,Q),f=_.WT(J).toString();f.length>g.urlMaxLength;)if(y>1)y-=Math.ceil((f.length-g.urlMaxLength)/6),y=Math.max(y,1),v=u.slice(E,E+y),J=LC0(g,v,Q),f=_.WT(J).toString();else return g.useNegativeLoading_?(g.useNegativeLoading_=!1,g.pendingModuleGraphUpdate_=sE5(g).then(function(t){yRH(g,t,Q)}),uTb(g,u.slice(E),q,Q)):!1;
E+=y;g.useNegativeLoading_?q(J,v):q(J,v,E===u.length?u:[])}return!0};
yRH=function(g,u,q){GQ().setAllModuleInfoString((u||{}).moduleGraph);N$0(g,qxW(g),function(Q){_.Gn(g,[Q.getId()])},q);
g.pendingModuleGraphUpdate_=null};
N$0=function(g,u,q,Q,L,E){E=E===void 0?{}:E;var y=GQ();u=_.N(u);for(var v=u.next();!v.done;v=u.next()){v=v.value;var J=y.getModuleInfo(v);if(!(E[v]||L&&!L(J))){E[v]=!0;var f=J.deps_||[];if(Q){var t=[];Q[v]&&(t=Object.keys(Q[v]));f=f.concat(t)}N$0(g,f,q,Q,L,E);q(J)}}};
sE5=function(g){g=g.scsReferenceUrl_.clone();eS$(g);EG(g,"dg",null);EG(g,"md","1");return BrW(g.toString())};var cZJ=new Uint8Array(123);var v_H=[];var DR5=function(){this.JSC$10361_loader_=null};
_.P=DR5.prototype;_.P.setBatchModeEnabled=function(){};
_.P.setAllModuleInfoString=function(){};
_.P.addExtraEdge=function(){throw Error("wd");};
_.P.removeExtraEdge=function(){throw Error("xd");};
_.P.getModuleContext=function(){return null};
_.P.isActive=function(){return!1};
_.P.isUserActive=function(){return!1};
_.P.registerInitializationCallback=function(){};
_.P.registerCallback=function(){};var Rh=function(g,u,q,Q,L){var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.name="ModuleLoadFailure";this.type=g;this.status=u;this.requestedModuleIds=q;this.url=Q;this.cause=L;this.message=this.toString()};
_.A(Rh,Error);Rh.prototype.toString=function(){return p9Z(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var p9Z=function(g){switch(g.type){case Rh.Type.UNAUTHORIZED:return"Unauthorized";case Rh.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Rh.Type.TIMEOUT:return"Timed out";case Rh.Type.OLD_CODE_GONE:return"Out of date module id";case Rh.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+g.type}};
Xi.ModuleLoadFailure=Rh;Xi.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var wG=function(){this.moduleIds_=this.JSC$10361_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11373_extraEdges_={};this.JSC$11373_callbackMap_={};this.JSC$11373_currentlyLoadingModule_=this.baseModuleInfo_=new Xi.ModuleInfo([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new D1;this.isDisposed_=this.userLastActive_=this.lastActive_=
this.batchModeEnabled_=!1};
_.TK(wG,DR5);var JRH=function(g,u){_.gq.call(this,"Error loading "+g+": "+u)};
_.TK(JRH,_.gq);wG.prototype.setBatchModeEnabled=function(g){this.batchModeEnabled_=g};
wG.prototype.setAllModuleInfoString=function(g,u){if(!(this instanceof wG))this.setAllModuleInfoString(g,u);else if(typeof g==="string"){if(g.startsWith("d$")){g=g.substring(2);for(var q=[],Q=0,L=g.indexOf("/"),E=0,y=!1,v=0;;){var J=y?g.substring(E):g.substring(E,L);if(J.length===0)Q++,E="sy"+Q.toString(36),J=[];else{var f=J.indexOf(":");if(f<0)E=J,J=[];else if(f===J.length-1)E=J.substring(0,f),J=Array(q[v-1]);else{E=J.substring(0,f);J=J.substring(f+1).split(",");f=v;for(var t=0;t<J.length;t++)f-=
J[t].length===0?1:Number(J[t]),J[t]=q[f]}f=0;if(E.length===0)f=1;else if(E.charAt(0)==="+"||E.charAt(0)==="-")f=Number(E);f!==0&&(Q+=f,E="sy"+Q.toString(36))}q.push(E);jEo(this,E,J);if(y)break;E=L+1;L=g.indexOf("/",E);L===-1&&(y=!0);v++}this.moduleIds_=q}else if(g.startsWith("p$"))fq0(this,g);else{g=g.split("/");q=[];for(Q=0;Q<g.length;Q++){v=g[Q].split(":");L=v[0];y=[];if(v[1])for(y=v[1].split(","),v=0;v<y.length;v++)y[v]=q[parseInt(y[v],36)];q.push(L);jEo(this,L,y)}this.moduleIds_=q}u&&u.length?
(_.BS(this.loadingModuleIds_,u),this.lastInitialModuleId_=_.dq(u)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11373_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11373_currentlyLoadingModule_=null,(u=this.baseModuleInfo_.onLoad((0,_.EH)(this.getModuleContext,this)))&&u.length&&MhR(this,new Xi.ModuleLoadFailure(Xi.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,u[0])),cj(this))}};
var fq0=function(g,u){var q=u.substring(2);for(u=0;u<64;u++)cZJ["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(u)]=u;var Q={buf:q,pos:0};nw(Q);var L=nw(Q),E=nw(Q)+1;u=Array(L);var y=Array(L),v=Array(L);E=Array(E);var J=0,f=0,t=Q.pos,e=Q.buf.indexOf("|",Q.pos);Q.pos=e+1;for(e=0;e<L;e++){var G=nw(Q),R=G&2,H=G&1;G>>>=2;H?(J+=G>>>1^-(G&1),G="sy"+J.toString(36)):(H=t,t+=G,G=q.substring(H,t));u[e]=G;R&&(E[f++]=G)}E[f]="";Q.pos++;f=L&-2;q=L&1;for(J=0;J<f;J+=2)t=H3m(Q),v[J]=
t&7,v[J+1]=t>>>3&7;q&&(q=H3m(Q),v[f]=q&7);Q.pos++;for(f=0;f<L;f++)v[f]===7&&(v[f]=nw(Q));Q.pos++;for(q=f=0;q<L;q++){J=v[q];t=J===0?v_H:Array(J);y[q]=t;e=f;for(R=0;R<J;R++)e-=nw(Q),t[R]=E[e];E[f]===u[q]&&f++}for(Q=0;Q<u.length;Q++)jEo(g,u[Q],y[Q]);g.moduleIds_=u};
_.P=wG.prototype;_.P.getModuleInfo=function(g){return this.moduleInfoMap[g]};
_.P.addExtraEdge=function(g,u){var q=this.getModuleInfo(g);q&&q.isLoaded()?this.load(u):(this.JSC$11373_extraEdges_[g]||(this.JSC$11373_extraEdges_[g]={}),this.JSC$11373_extraEdges_[g][u]=!0)};
_.P.removeExtraEdge=function(g,u){if(this.JSC$11373_extraEdges_[g]){delete this.JSC$11373_extraEdges_[g][u];for(var q in this.JSC$11373_extraEdges_[g])return;delete this.JSC$11373_extraEdges_[g]}};
_.P.isActive=function(){return this.loadingModuleIds_.length>0};
_.P.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var cj=function(g){var u=g.lastActive_,q=g.isActive();q!=u&&(g.executeCallbacks_(q?"active":"idle"),g.lastActive_=q);u=g.isUserActive();u!=g.userLastActive_&&(g.executeCallbacks_(u?"userActive":"userIdle"),g.userLastActive_=u)},jEo=function(g,u,q){g.moduleInfoMap[u]?(g=g.moduleInfoMap[u].deps_,g!=q&&g.splice.apply(g,[0,
g.length].concat(_.na(q)))):g.moduleInfoMap[u]=new Xi.ModuleInfo(q,u)},e5R=function(g,u,q){var Q=[];
m3b(u,Q);u=[];for(var L={},E=0;E<Q.length;E++){var y=Q[E],v=g.getModuleInfo(y);if(!v)throw Error("yd`"+y);var J=new D1;L[y]=J;v.isLoaded()?J.callback(null):(thn(g,y,v,!!q,J),g.isModuleLoading(y)||u.push(y))}u.length>0&&(g.loadingModuleIds_.length===0?g.loadModules_(u):(g.requestedModuleIdsQueue_.push(u),cj(g)));return L},thn=function(g,u,q,Q,L){q.registerCallback(L.callback,L);
kN$(q,function(E){L.errback(new JRH(u,E))});
g.isModuleLoading(u)?Q&&(GrH(g,u),cj(g)):Q&&GrH(g,u)};
wG.prototype.loadModules_=function(g,u,q){var Q=this;u=u===void 0?0:u;var L=$Rb(this,g);this.loadingModuleIds_=L;this.requestedLoadingModuleIds_=this.batchModeEnabled_?g:_.Ob(L);cj(this);if(L.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,L);g=this.JSC$10361_loader_;if(!g)throw Error("zd");if(Object.keys(this.JSC$11373_extraEdges_).length>0&&!g.supportsExtraEdges)throw Error("Ad");q=(0,_.EH)(g.loadModules,g,_.Ob(L),this.moduleInfoMap,{extraEdges:this.JSC$11373_extraEdges_,
forceReload:!!q,onError:function(E,y,v){var J=Q.requestedLoadingModuleIds_;E=E!=null?E:void 0;var f=u;v=v===void 0?!1:v;v=(v===void 0?0:v)?0:(f===void 0?0:f)+1;f=_.Ob(L);Q.requestedLoadingModuleIds_=J;L.forEach(_.uH(_.TM,Q.requestedModuleIds_),Q);E==401?(MhR(Q,new Xi.ModuleLoadFailure(Xi.ModuleLoadFailure.Type.UNAUTHORIZED,E)),Q.requestedModuleIdsQueue_.length=0):E==410?(R5$(Q,new Xi.ModuleLoadFailure(Xi.ModuleLoadFailure.Type.OLD_CODE_GONE,E)),w9$(Q)):v>=3?(R5$(Q,new Xi.ModuleLoadFailure(Xi.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
E,f,y)),w9$(Q)):Q.loadModules_(Q.requestedLoadingModuleIds_,v,E==8001||!1)},
onTimeout:(0,_.EH)(this.handleLoadTimeout_,this)});(g=Math.pow(u,2)*5E3)?_.Qq.setTimeout(q,g):q()}};
var $Rb=function(g,u){u=u.filter(function(L){return g.moduleInfoMap[L].isLoaded()?(_.Qq.setTimeout(function(){return Error("Bd`"+L)},0),!1):!0});
for(var q=[],Q=0;Q<u.length;Q++)q=q.concat(cR2(g,u[Q]));m3b(q);return!g.batchModeEnabled_&&q.length>1?(u=q.shift(),g.requestedModuleIdsQueue_=q.map(function(L){return[L]}).concat(g.requestedModuleIdsQueue_),[u]):q},cR2=function(g,u){var q=_.pH.createSet(g.requestedModuleIds_),Q=[];
q[u]||Q.push(u);u=[u];for(var L=0;L<u.length;L++)for(var E=g.getModuleInfo(u[L]).deps_,y=E.length-1;y>=0;y--){var v=E[y];g.getModuleInfo(v).isLoaded()||q[v]||(Q.push(v),u.push(v))}Q.reverse();m3b(Q);return Q};
wG.prototype.JSC$11368_setLoaded=function(){if(this.JSC$11373_currentlyLoadingModule_){var g=this.JSC$11373_currentlyLoadingModule_.getId(),u=[];if(this.JSC$11373_extraEdges_[g]){for(var q=_.N(Object.keys(this.JSC$11373_extraEdges_[g])),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var L=this.getModuleInfo(Q);L&&!L.isLoaded()&&(this.removeExtraEdge(g,Q),u.push(Q))}this.loadMultiple(u)}this.isDisposed()||((u=this.moduleInfoMap[g].onLoad((0,_.EH)(this.getModuleContext,this)))&&u.length&&MhR(this,new Xi.ModuleLoadFailure(Xi.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,u[0])),_.TM(this.userInitiatedLoadingModuleIds_,g),_.TM(this.loadingModuleIds_,g),this.loadingModuleIds_.length===0&&w9$(this),this.lastInitialModuleId_&&g==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),cj(this),this.JSC$11373_currentlyLoadingModule_=null)}};
wG.prototype.isModuleLoading=function(g){if(_.WS(this.loadingModuleIds_,g))return!0;for(var u=0;u<this.requestedModuleIdsQueue_.length;u++)if(_.WS(this.requestedModuleIdsQueue_[u],g))return!0;return!1};
wG.prototype.load=function(g,u){return e5R(this,[g],u)[g]};
wG.prototype.loadMultiple=function(g){return e5R(this,g)};
var GrH=function(g,u){_.WS(g.userInitiatedLoadingModuleIds_,u)||g.userInitiatedLoadingModuleIds_.push(u)};
wG.prototype.beforeLoadModuleCode=function(g){var u=this;this.JSC$11373_currentlyLoadingModule_&&this.JSC$11373_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11368_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[g]&&H6o(this,this.moduleInfoMap[g].deps_||[],function(q){q.module_=new Xi.BaseModule;_.TM(u.loadingModuleIds_,q.getId())},function(q){return!q.isLoaded()});
this.JSC$11373_currentlyLoadingModule_=this.getModuleInfo(g)};
wG.prototype.registerInitializationCallback=function(g){this.JSC$11373_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new Xi.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11373_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);e2(this.JSC$11373_currentlyLoadingModule_.earlyOnloadCallbacks_,g)};
wG.prototype.handleLoadTimeout_=function(){R5$(this,new Xi.ModuleLoadFailure(Xi.ModuleLoadFailure.Type.TIMEOUT));w9$(this)};
var R5$=function(g,u){g.requestedLoadingModuleIds_.length>1?g.requestedModuleIdsQueue_=g.requestedLoadingModuleIds_.map(function(q){return[q]}).concat(g.requestedModuleIdsQueue_):MhR(g,u)},MhR=function(g,u){var q=g.requestedLoadingModuleIds_;
g.loadingModuleIds_.length=0;for(var Q=[],L=0;L<g.requestedModuleIdsQueue_.length;L++){var E=g.requestedModuleIdsQueue_[L].filter(function(J){var f=cR2(this,J);return TX(q,function(t){return _.WS(f,t)})},g);
_.BS(Q,E)}for(L=0;L<q.length;L++)_.Chk(Q,q[L]);for(L=0;L<Q.length;L++){for(E=0;E<g.requestedModuleIdsQueue_.length;E++)_.TM(g.requestedModuleIdsQueue_[E],Q[L]);_.TM(g.userInitiatedLoadingModuleIds_,Q[L])}if(L=g.JSC$11373_callbackMap_.error)for(E=0;E<L.length;E++)for(var y=L[E],v=0;v<Q.length;v++)y("error",Q[v],u);for(Q=0;Q<q.length;Q++)if(g.moduleInfoMap[q[Q]])g.moduleInfoMap[q[Q]].onError(u);g.requestedLoadingModuleIds_.length=0;cj(g)},w9$=function(g){for(;g.requestedModuleIdsQueue_.length;){var u=
g.requestedModuleIdsQueue_.shift().filter(function(q){return!this.getModuleInfo(q).isLoaded()},g);
if(u.length>0){g.loadModules_(u);return}}cj(g)};
wG.prototype.registerCallback=function(g,u){Array.isArray(g)||(g=[g]);for(var q=0;q<g.length;q++){var Q=g[q],L=u,E=this.JSC$11373_callbackMap_;E[Q]||(E[Q]=[]);E[Q].push(L)}};
wG.prototype.executeCallbacks_=function(g){for(var u=this.JSC$11373_callbackMap_[g],q=0;u&&q<u.length;q++)u[q](g)};
var H6o=function(g,u,q,Q,L){Q=Q===void 0?function(){return!0}:Q;
L=L===void 0?{}:L;u=_.N(u);for(var E=u.next();!E.done;E=u.next()){E=E.value;var y=g.getModuleInfo(E);!L[E]&&Q(y)&&(L[E]=!0,H6o(g,y.deps_||[],q,Q,L),q(y))}};
wG.prototype.dispose=function(){_.mv(_.pH.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11373_callbackMap_={};this.isDisposed_=!0};
wG.prototype.isDisposed=function(){return this.isDisposed_};
_.ei=function(){return new wG};var ARn=[5E3,2E4],OZ$=function(){this.JSC$10361_loader_=null;this.JSC$11381_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11381_queue_=[];this.JSC$11381_extraEdges_=Object.create(null);this.JSC$11381_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.A(OZ$,DR5);_.P=OZ$.prototype;_.P.setAllModuleInfoString=function(){this.JSC$11381_currentlyLoadingModule_&&this.JSC$11381_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11368_setLoaded()};
_.P.getModuleInfo=function(g){var u=this.JSC$11381_moduleInfoMap_[g];u||(u=new Xi.ModuleInfo([],g),this.JSC$11381_moduleInfoMap_[g]=u);return u};
_.P.addExtraEdge=function(g,u){this.getModuleInfo(g).isLoaded()?this.load(u):(this.JSC$11381_extraEdges_[g]||(this.JSC$11381_extraEdges_[g]={}),this.JSC$11381_extraEdges_[g][u]=!0)};
_.P.removeExtraEdge=function(g,u){if(this.JSC$11381_extraEdges_[g]){delete this.JSC$11381_extraEdges_[g][u];for(var q in this.JSC$11381_extraEdges_[g])return;delete this.JSC$11381_extraEdges_[g]}};
_.P.isModuleLoading=function(g){return!!this.loadingModules_[g]};
_.P.load=function(g){Z6$(this,[g]);return lqo(this,g)};
_.P.loadMultiple=function(g){var u=this,q=Object.create(null),Q=[];g.forEach(function(L){q[L]||(q[L]=lqo(u,L),Q.push(L))});
Z6$(this,Q);return q};
_.P.beforeLoadModuleCode=function(g){var u;((u=this.JSC$11381_currentlyLoadingModule_)==null?void 0:u.getId())==="synthetic_module_overhead"&&this.JSC$11368_setLoaded();var q,Q;Iq$(this,(Q=(q=this.JSC$11381_moduleInfoMap_[g])==null?void 0:q.deps_)!=null?Q:[],function(L){L.module_=new Xi.BaseModule},function(L){return!L.isLoaded()});
this.JSC$11381_currentlyLoadingModule_=this.getModuleInfo(g)};
_.P.JSC$11368_setLoaded=function(){if(this.JSC$11381_currentlyLoadingModule_){var g=this.JSC$11381_currentlyLoadingModule_.getId(),u=[];if(this.JSC$11381_extraEdges_[g]){for(var q=_.N(Object.keys(this.JSC$11381_extraEdges_[g])),Q=q.next();!Q.done;Q=q.next())Q=Q.value,this.getModuleInfo(Q).isLoaded()||(this.removeExtraEdge(g,Q),u.push(Q));this.loadMultiple(u)}this.JSC$11381_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11381_currentlyLoadingModule_=null;(!this.isModuleLoading(g)&&/^sy[0-9a-z]{0,4}$/.test(g)||g==="synthetic_module_overhead")&&delete this.JSC$11381_moduleInfoMap_[g];this.unsetModulesAsLoading(g)}};
_.P.registerInitializationCallback=function(g){this.JSC$11381_currentlyLoadingModule_||(this.JSC$11381_moduleInfoMap_.synthetic_module_overhead=new Xi.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11381_currentlyLoadingModule_=this.JSC$11381_moduleInfoMap_.synthetic_module_overhead);e2(this.JSC$11381_currentlyLoadingModule_.earlyOnloadCallbacks_,g)};
_.P.setModulesAsLoading=function(){var g=this;_.UT.apply(0,arguments).forEach(function(u){g.loadingModules_[u]=!0})};
_.P.unsetModulesAsLoading=function(){var g=this;_.UT.apply(0,arguments).forEach(function(u){delete g.loadingModules_[u]})};
var lqo=function(g,u){return new _.Ez(function(q,Q){var L=g.getModuleInfo(u);L.isLoaded()?q(null):(L.registerCallback(function(){q(null)}),kN$(L,function(E){var y="Error loading "+u+": "+E;
E instanceof Xi.ModuleLoadFailure&&E.url&&(y=y+", requested url: "+E.url.toString());Q(Error(y))}))})},Z6$=function(g,u){u=u.filter(function(q){return!g.isModuleLoading(q)&&!g.getModuleInfo(q).isLoaded()});
u.length>0&&(g.setModulesAsLoading.apply(g,_.na(u)),g.JSC$11381_queue_.push(u),i6W(g))},i6W=function(g){for(var u={};g.activeLoads_<Infinity&&g.JSC$11381_queue_.length>0;u={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})u.ids$jscomp$37=g.JSC$11381_queue_.shift().filter(function(q){return!g.getModuleInfo(q).isLoaded()}),u.ids$jscomp$37.length>0&&(g.activeLoads_++,u.finishLoad=function(q){return function(){g.activeLoads_--;
i6W(g);q.finishLoad=function(){}}}(u),_.jk(u.ids$jscomp$37.map(function(q){return lqo(g,q)})).then(function(q){return function(){(0,q.finishLoad)()}}(u)),u.attempt$jscomp$6=0,u.load$jscomp$1=function(q){return function(){if(Object.keys(g.JSC$11381_extraEdges_).length>0&&!g.JSC$10361_loader_.supportsExtraEdges)throw Error("Ad");
g.JSC$10361_loader_.loadModules(q.ids$jscomp$37,g.JSC$11381_moduleInfoMap_,{extraEdges:g.JSC$11381_extraEdges_,onError:function(Q,L){var E=ARn[q.attempt$jscomp$6++];E!==void 0?setTimeout(function(){(0,q.load$jscomp$1)()},E):(g.unsetModulesAsLoading.apply(g,_.na(q.ids$jscomp$37)),(0,q.finishLoad)(),q.ids$jscomp$37.forEach(function(y){y=g.getModuleInfo(y);
if(!y.isLoaded())y.onError(new Xi.ModuleLoadFailure(Xi.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,Q,q.ids$jscomp$37,L))}))}})}}(u),(0,u.load$jscomp$1)())},Iq$=function(g,u,q,Q,L){Q=Q===void 0?function(){return!0}:Q;
L=L===void 0?{}:L;u=_.N(u);for(var E=u.next();!E.done;E=u.next()){E=E.value;var y=g.getModuleInfo(E);!L[E]&&Q(y)&&(L[E]=!0,Iq$(g,y.deps_||[],q,Q,L),q(y))}};var Cd$=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var leJ=Symbol("Dd");window.JSCompiler_renameProperty=function(g){return g};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var b65=!Cd$||HTMLElement.es5Shimmed||_.Qq.Reflect===void 0||_.Qq.customElements===void 0||_.Qq.customElements.polyfillWrapFlushCallback||!1,dR$,onq=function(){var g=HTMLElement;if(b65)return g;if(dR$!==void 0)return dR$;var u=_.Qq.Reflect,q=function(){return u.construct(g,[],this.constructor)};
q.prototype=g.prototype;q.prototype.constructor=q;q.es5Shimmed=!0;Object.setPrototypeOf(q,g);return dR$=q},FCx=!1;b65||FCx||(FCx=!0,_.Qq.HTMLElement=onq());/*

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 dWF=/(url\()([^)]*)(\))/g,CbZ=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,b3F,oo;var m6=!window.ShadyDOM||!window.ShadyDOM.inUse,mRa=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),aqi=!window.customElements.polyfillWrapFlushCallback,VhX;if(VhX=m6&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var X9X=new CSSStyleSheet;X9X.replaceSync("");var rRb=document.createElement("div");rRb.attachShadow({mode:"open"});rRb.shadowRoot.adoptedStyleSheets=[X9X];VhX=rRb.shadowRoot.adoptedStyleSheets[0]===X9X}catch(g){VhX=!1}
var WCH=VhX,T$2=window.Polymer&&window.Polymer.rootPath||mWq(document.baseURI||window.location.href),ff=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Yck=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,rU=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,h5$=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Fz=window.Polymer&&window.Polymer.legacyOptimizations||!1,Xz=window.Polymer&&window.Polymer.legacyWarnings||!1,Yxa=window.Polymer&&window.Polymer.syncInitialRender||
!1,tj=window.Polymer&&window.Polymer.legacyUndefined||!1,O6Z=window.Polymer&&window.Polymer.orderedComputed||!1,Hj=window.Polymer&&window.Polymer.removeNestedTemplates||!1,AH=window.Polymer&&window.Polymer.fastDomIf||!1,Zr=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,KCH=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,xR8=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var lu={},B$Z={},G3=function(){return HTMLElement.apply(this,arguments)||this};
_.A(G3,HTMLElement);G3.import=function(g,u){return g?(g=lu[g]||B$Z[g.toLowerCase()])&&u?g.querySelector(u):g:null};
G3.prototype.attributeChangedCallback=function(g,u,q){u!==q&&this.register()};
G3.prototype.register=function(g){if(g=g||this.id){if(rU&&(lu[g]||B$Z[g.toLowerCase()])!==void 0)throw lu[g]=B$Z[g.toLowerCase()]=null,Error("Ed`"+g);this.id=g;lu[g]=B$Z[g.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.z3.Object.defineProperties(G3.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var g=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;g=_.gU(this.getAttribute("assetpath")||"",g.baseURI);this.__assetpath=mWq(g)}return this.__assetpath}}});
_.z3.Object.defineProperties(G3,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
G3["import"]=G3.import;G3.prototype.modules=lu;customElements.define("dom-module",G3);var z5i=0,VVf=0,uP=[],n_$=0,aef=!1,kr5=document.createTextNode(""),Sxx,iP;(new window.MutationObserver(Xbf)).observe(kr5,{characterData:!0});_.Ih={after:function(g){return{run:function(u){return window.setTimeout(u,g)},
cancel:function(u){window.clearTimeout(u)}}},
run:function(g,u){return window.setTimeout(g,u)},
cancel:function(g){window.clearTimeout(g)}};
_.P1={run:function(g){return window.requestAnimationFrame(g)},
cancel:function(g){window.cancelAnimationFrame(g)}};
Sxx={run:function(g){return window.requestIdleCallback?window.requestIdleCallback(g):window.setTimeout(g,16)},
cancel:function(g){window.cancelIdleCallback?window.cancelIdleCallback(g):window.clearTimeout(g)}};
iP={run:function(g){aef||(aef=!0,kr5.textContent=n_$++);uP.push(g);return z5i++},
cancel:function(g){var u=g-VVf;if(u>=0){if(!uP[u])throw Error("Fd`"+g);uP[u]=null}}};var o_W=0,iu=function(g){var u=g.__mixinApplications;u||(u=new WeakMap,g.__mixinApplications=u);var q=o_W++;return function(Q){var L=Q.__mixinSet;if(L&&L[q])return Q;var E=u,y=E.get(Q);y||(y=g(Q),E.set(Q,y),Q=Object.create(y.__mixinSet||L||null),Q[q]=!0,y.__mixinSet=Q);return y}};_.j7=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(g){return ShadyDOM.patch(g)}:function(g){return g};var UR5=iu(function(g){var u=function(){var q=g.call(this)||this;q.__dataEnabled=!1;q.__dataReady=!1;q.__dataInvalid=!1;q.__data={};q.__dataPending=null;q.__dataOld=null;q.__dataInstanceProps=null;q.__dataCounter=0;q.__serializing=!1;q._initializeProperties();return q};
_.A(u,g);u.createProperties=function(q){var Q=this.prototype,L;for(L in q)L in Q||Q._createPropertyAccessor(L)};
u.attributeNameForProperty=function(q){return q.toLowerCase()};
u.typeForProperty=function(){};
u.prototype._createPropertyAccessor=function(q,Q){this._addPropertyToAttributeMap(q);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[q]||(this.__dataHasAccessor[q]=!0,this._definePropertyAccessor(q,Q))};
u.prototype._addPropertyToAttributeMap=function(q){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var Q=this.__dataAttributes[q];Q||(Q=this.constructor.attributeNameForProperty(q),this.__dataAttributes[Q]=q);return Q};
u.prototype._definePropertyAccessor=function(q,Q){Object.defineProperty(this,q,{get:function(){return this.__data[q]},
set:Q?function(){}:function(L){this._setPendingProperty(q,L,!0)&&this._invalidateProperties()}})};
u.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
u.prototype._initializeProperties=function(){for(var q in this.__dataHasAccessor)this.hasOwnProperty(q)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[q]=this[q],delete this[q])};
u.prototype._initializeInstanceProperties=function(q){Object.assign(this,q)};
u.prototype._setProperty=function(q,Q){this._setPendingProperty(q,Q)&&this._invalidateProperties()};
u.prototype._getProperty=function(q){return this.__data[q]};
u.prototype._setPendingProperty=function(q,Q){var L=this.__data[q],E=this._shouldPropertyChange(q,Q,L);E&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||q in this.__dataOld||(this.__dataOld[q]=L),this.__data[q]=Q,this.__dataPending[q]=Q);return E};
u.prototype._isPropertyPending=function(q){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(q))};
u.prototype._invalidateProperties=function(){var q=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,iP.run(function(){q.__dataInvalid&&(q.__dataInvalid=!1,q._flushProperties())}))};
u.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
u.prototype._flushProperties=function(){this.__dataCounter++;var q=this.__data,Q=this.__dataPending,L=this.__dataOld;this._shouldPropertiesChange(q,Q,L)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(q,Q,L));this.__dataCounter--};
u.prototype._shouldPropertiesChange=function(q,Q){return!!Q};
u.prototype._propertiesChanged=function(){};
u.prototype._shouldPropertyChange=function(q,Q,L){return L!==Q&&(L===L||Q===Q)};
u.prototype.attributeChangedCallback=function(q,Q,L,E){Q!==L&&this._attributeToProperty(q,L);g.prototype.attributeChangedCallback&&g.prototype.attributeChangedCallback.call(this,q,Q,L,E)};
u.prototype._attributeToProperty=function(q,Q,L){if(!this.__serializing){var E=this.__dataAttributes;q=E&&E[q]||q;this[q]=this._deserializeValue(Q,L||this.constructor.typeForProperty(q))}};
u.prototype._propertyToAttribute=function(q,Q,L){this.__serializing=!0;L=arguments.length<3?this[q]:L;this._valueToNodeAttribute(this,L,Q||this.constructor.attributeNameForProperty(q));this.__serializing=!1};
u.prototype._valueToNodeAttribute=function(q,Q,L){Q=this._serializeValue(Q);if(L==="class"||L==="name"||L==="slot")q=(0,_.j7)(q);Q===void 0?q.removeAttribute(L):q.setAttribute(L,Q===""&&window.trustedTypes?window.trustedTypes.emptyScript:Q)};
u.prototype._serializeValue=function(q){switch(typeof q){case "boolean":return q?"":void 0;default:return q!=null?q.toString():void 0}};
u.prototype._deserializeValue=function(q,Q){switch(Q){case Boolean:return q!==null;case Number:return Number(q);default:return q}};
return u});var g9b=0,rZf=[];var uIW=iu(function(g){function u(E){E=Object.getPrototypeOf(E);return E.prototype instanceof L?E:null}
function q(E){if(!E.hasOwnProperty("__ownProperties")){var y=null;if(E.hasOwnProperty("properties")){var v=E.properties;if(v){y={};for(var J in v){var f=v[J];y[J]=typeof f==="function"?{type:f}:f}}}E.__ownProperties=y}return E.__ownProperties}
var Q=UR5(g),L=function(){return Q.apply(this,arguments)||this};
_.A(L,Q);L.finalize=function(){if(!this.hasOwnProperty("__finalized")){var E=u(this);E&&E.finalize();this.__finalized=!0;this._finalizeClass()}};
L._finalizeClass=function(){var E=q(this);E&&this.createProperties(E)};
L.typeForProperty=function(E){return(E=this._properties[E])&&E.type};
L.prototype._initializeProperties=function(){g9b++;this.constructor.finalize();Q.prototype._initializeProperties.call(this)};
L.prototype.connectedCallback=function(){Q.prototype.connectedCallback&&Q.prototype.connectedCallback.call(this);this._enableProperties()};
L.prototype.disconnectedCallback=function(){Q.prototype.disconnectedCallback&&Q.prototype.disconnectedCallback.call(this)};
_.z3.Object.defineProperties(L,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var E=this;if(!this.hasOwnProperty("__observedAttributes")){WZF(this.prototype);var y=this._properties;this.__observedAttributes=y?Object.keys(y).map(function(v){return E.prototype._addPropertyToAttributeMap(v)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var E=u(this);this.__properties=Object.assign({},E&&E._properties,q(this))}return this.__properties}}});
return L});var T_m={},h2J=/-[a-z]/g,YfT=/([A-Z])/g;for(var qiZ={},Q5a=HTMLElement.prototype;Q5a;){for(var LXa=Object.getOwnPropertyNames(Q5a),E92=0;E92<LXa.length;E92++)qiZ[LXa[E92]]=!0;Q5a=Object.getPrototypeOf(Q5a)}var PUb=window.trustedTypes?function(g){return trustedTypes.isHTML(g)||trustedTypes.isScript(g)||trustedTypes.isScriptURL(g)}:function(){return!1},NOi=iu(function(g){var u=UR5(g);
g=function(){return u.apply(this,arguments)||this};
_.A(g,u);g.createPropertiesForAttributes=function(){for(var q=this.observedAttributes,Q=0;Q<q.length;Q++)this.prototype._createPropertyAccessor(qw(q[Q]))};
g.attributeNameForProperty=function(q){return Q8(q)};
g.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);u.prototype._initializeProperties.call(this)};
g.prototype._initializeProtoProperties=function(q){for(var Q in q)this._setProperty(Q,q[Q])};
g.prototype._ensureAttribute=function(q,Q){this.hasAttribute(q)||this._valueToNodeAttribute(this,Q,q)};
g.prototype._serializeValue=function(q){switch(typeof q){case "object":if(q instanceof Date)return q.toString();if(q){if(PUb(q))return q;try{return JSON.stringify(q)}catch(Q){return""}}default:return u.prototype._serializeValue.call(this,q)}};
g.prototype._deserializeValue=function(q,Q){switch(Q){case Object:try{var L=JSON.parse(q)}catch(E){L=q}break;case Array:try{L=JSON.parse(q)}catch(E){L=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+q)}break;case Date:L=isNaN(q)?String(q):Number(q);L=new Date(L);break;default:L=u.prototype._deserializeValue.call(this,q,Q)}return L};
g.prototype._definePropertyAccessor=function(q,Q){if(!qiZ[q]){var L=this[q];L!==void 0&&(this.__data?this._setPendingProperty(q,L):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[q]=L))}u.prototype._definePropertyAccessor.call(this,q,Q)};
g.prototype._hasAccessor=function(q){return this.__dataHasAccessor&&this.__dataHasAccessor[q]};
g.prototype._isPropertyPending=function(q){return!!(this.__dataPending&&q in this.__dataPending)};
return g});var s5X={"dom-if":!0,"dom-repeat":!0},yrW=!1,v9i=!1,DmR=function(){var g=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(u){return u}});
return function(u,q,Q){q=q.getAttribute(Q);g&&Q.startsWith("on-")?u.setAttribute(Q,g.createScript(q,Q)):u.setAttribute(Q,q)}}(),p$X=iu(function(g){var u=function(){return g.apply(this,arguments)||this};
_.A(u,g);u._parseTemplate=function(q,Q){if(!q._templateInfo){var L=q._templateInfo={};L.nodeInfoList=[];L.nestedTemplate=!!Q;L.stripWhiteSpace=Q&&Q.stripWhiteSpace||q.hasAttribute&&q.hasAttribute("strip-whitespace");this._parseTemplateContent(q,L,{parent:null})}return q._templateInfo};
u._parseTemplateContent=function(q,Q,L){return this._parseTemplateNode(q.content,Q,L)};
u._parseTemplateNode=function(q,Q,L){var E=!1;q.localName!="template"||q.hasAttribute("preserve-content")?q.localName==="slot"&&(Q.hasInsertionPoint=!0):E=this._parseTemplateNestedTemplate(q,Q,L)||E;if(!yrW){yrW=!0;var y=document.createElement("textarea");y.placeholder="a";v9i=y.placeholder===y.textContent}v9i&&q.localName==="textarea"&&q.placeholder&&q.placeholder===q.textContent&&(q.textContent=null);q.firstChild&&this._parseTemplateChildNodes(q,Q,L);q.hasAttributes&&q.hasAttributes()&&(E=this._parseTemplateNodeAttributes(q,
Q,L)||E);return E||L.noted};
u._parseTemplateChildNodes=function(q,Q,L){if(q.localName!=="script"&&q.localName!=="style")for(var E=q.firstChild,y=0,v;E;E=v){if(E.localName=="template"){var J=E.getAttribute("is");if(J&&s5X[J])for(v=E,v.removeAttribute("is"),E=v.ownerDocument.createElement(J),v.parentNode.replaceChild(E,v),E.appendChild(v);v.attributes.length;)J=v.attributes[0].name,DmR(E,v,J),v.removeAttribute(J)}v=E.nextSibling;if(E.nodeType===Node.TEXT_NODE){for(J=v;J&&J.nodeType===Node.TEXT_NODE;)E.textContent+=J.textContent,
v=J.nextSibling,q.removeChild(J),J=v;if(Q.stripWhiteSpace&&!E.textContent.trim()){q.removeChild(E);continue}}J={parentIndex:y,parentInfo:L};this._parseTemplateNode(E,Q,J)&&(J.infoIndex=Q.nodeInfoList.push(J)-1);E.parentNode&&y++}};
u._parseTemplateNestedTemplate=function(q,Q,L){Q=this._parseTemplate(q,Q);(Q.content=q.content.ownerDocument.createDocumentFragment()).appendChild(q.content);L.templateInfo=Q;return!0};
u._parseTemplateNodeAttributes=function(q,Q,L){for(var E=!1,y=Array.from(q.attributes),v=y.length-1,J;J=y[v];v--)E=this._parseTemplateNodeAttribute(q,Q,L,J.name,J.value)||E;return E};
u._parseTemplateNodeAttribute=function(q,Q,L,E,y){return E.slice(0,3)==="on-"?(q.removeAttribute(E),L.events=L.events||[],L.events.push({name:E.slice(3),value:y}),!0):E==="id"?(L.id=y,!0):!1};
u._contentForTemplate=function(q){var Q=q._templateInfo;return Q&&Q.content||q.content};
u.prototype._stampTemplate=function(q,Q){q&&!q.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(q);Q=Q||this.constructor._parseTemplate(q);var L=Q.nodeInfoList;q=document.importNode(Q.content||q.content,!0);q.__noInsertionPoint=!Q.hasInsertionPoint;var E=q.nodeList=Array(L.length);q.$={};for(var y=0,v=L.length,J=void 0;y<v&&(J=L[y]);y++){var f=E[y]=O3F(q,J);J.id&&(q.$[J.id]=f);var t=f,e=J,G=Q;e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=
G);if(J.events&&J.events.length)for(t=0,e=J.events,G=void 0;t<e.length&&(G=e[t]);t++)this._addMethodEventListenerToNode(f,G.name,G.value,this)}return q};
u.prototype._addMethodEventListenerToNode=function(q,Q,L,E){L=KZb(E||q,L);this._addEventListenerToNode(q,Q,L);return L};
u.prototype._addEventListenerToNode=function(q,Q,L){q.addEventListener(Q,L)};
u.prototype._removeEventListenerFromNode=function(q,Q,L){q.removeEventListener(Q,L)};
return u});var pf=0,Mw=[],Jr0={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},j5x=/[A-Z]/,f30=function(g,u,q,Q,L){var E=L?EY(g):g;if(u=u[E])for(E=0;E<u.length;E++){var y=u[E];if(y.info.lastRun!==pf&&(!L||Sfq(g,y.trigger))){y.info.lastRun=pf;y=y.info;for(var v=q,J=Q,f=0,t=v.length-1,e=-1;f<=t;){var G=f+t>>1,R=J.get(v[G].methodInfo)-J.get(y.methodInfo);if(R<0)f=G+1;else if(R>0)t=G-1;else{e=G;break}}e<
0&&(e=t+1);v.splice(e,0,y)}}},pKq=[],MP0=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"),bu=iu(function(g){var u=p$X(NOi(g));
g=function(){var q=u.call(this)||this;q.__isPropertyEffectsClient=!0;return q};
_.A(g,u);g.prototype._initializeProperties=function(){u.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};
g.prototype._registerHost=function(){if(CA.length){var q=CA[CA.length-1];q._enqueueClient(this);this.__dataHost=q}};
g.prototype._initializeProtoProperties=function(q){this.__data=Object.create(q);this.__dataPending=Object.create(q);this.__dataOld={}};
g.prototype._initializeInstanceProperties=function(q){var Q=this.__readOnly,L;for(L in q)Q&&Q[L]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[L]=this.__dataPending[L]=q[L])};
g.prototype._addPropertyEffect=function(q,Q,L){this._createPropertyAccessor(q,Q=="__readOnly");var E=kxf(this,Q,!0)[q];E||(E=this[Q][q]=[]);E.push(L)};
g.prototype._removePropertyEffect=function(q,Q,L){q=kxf(this,Q,!0)[q];L=q.indexOf(L);L>=0&&q.splice(L,1)};
g.prototype._hasPropertyEffect=function(q,Q){Q=this[Q];return!(!Q||!Q[q])};
g.prototype._hasReadOnlyEffect=function(q){return this._hasPropertyEffect(q,"__readOnly")};
g.prototype._hasNotifyEffect=function(q){return this._hasPropertyEffect(q,"__notifyEffects")};
g.prototype._hasReflectEffect=function(q){return this._hasPropertyEffect(q,"__reflectEffects")};
g.prototype._hasComputedEffect=function(q){return this._hasPropertyEffect(q,"__computeEffects")};
g.prototype._setPendingPropertyOrPath=function(q,Q,L,E){if(E||EY(Array.isArray(q)?q[0]:q)!==q){if(!E&&(E=DF(this,q),q=nbh(this,q,Q),!q||!u.prototype._shouldPropertyChange.call(this,q,Q,E)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(q,Q,L)){if(L=this.__dataLinkedPaths)for(var y in L)E=L[y],sY(y,q)?(E=y8(y,E,q),this._setPendingPropertyOrPath(E,Q,!0,!0)):sY(E,q)&&(E=y8(E,y,q),this._setPendingPropertyOrPath(E,Q,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[q])return this._setPendingProperty(q,
Q,L);this[q]=Q}return!1};
g.prototype._setUnmanagedPropertyToNode=function(q,Q,L){if(L!==q[Q]||typeof L=="object")Q==="className"&&(q=(0,_.j7)(q)),q[Q]=L};
g.prototype._setPendingProperty=function(q,Q,L){var E=this.__dataHasPaths&&Lf(q);if(this._shouldPropertyChange(q,Q,(E?this.__dataTemp:this.__data)[q])){this.__dataPending||(this.__dataPending={},this.__dataOld={});q in this.__dataOld||(this.__dataOld[q]=this.__data[q]);E?this.__dataTemp[q]=Q:this.__data[q]=Q;this.__dataPending[q]=Q;if(E||this.__notifyEffects&&this.__notifyEffects[q])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[q]=L;return!0}return!1};
g.prototype._setProperty=function(q,Q){this._setPendingProperty(q,Q,!0)&&this._invalidateProperties()};
g.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
g.prototype._enqueueClient=function(q){this.__dataPendingClients=this.__dataPendingClients||[];q!==this&&this.__dataPendingClients.push(q)};
g.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
g.prototype.__enableOrFlushClients=function(){var q=this.__dataPendingClients;if(q){this.__dataPendingClients=null;for(var Q=0;Q<q.length;Q++){var L=q[Q];L.__dataEnabled?L.__dataPending&&L._flushProperties():L._enableProperties()}}};
g.prototype._readyClients=function(){this.__enableOrFlushClients()};
g.prototype.setProperties=function(q,Q){for(var L in q)!Q&&this.__readOnly&&this.__readOnly[L]||this._setPendingPropertyOrPath(L,q[L],!0);this._invalidateProperties()};
g.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
g.prototype._propertiesChanged=function(q,Q,L){q=this.__dataHasPaths;this.__dataHasPaths=!1;var E;if(E=this.__computeEffects)if(O6Z){pf++;var y=QOh(this),v=[],J;for(J in Q)f30(J,E,v,y,q);for(;J=v.shift();)ESq(this,"",Q,L,J)&&f30(J.methodInfo,E,v,y,q);Object.assign(L,this.__dataOld);Object.assign(Q,this.__dataPending);this.__dataPending=null}else for(y=Q;Jj(this,E,y,L,q);)Object.assign(L,this.__dataOld),Object.assign(Q,this.__dataPending),y=this.__dataPending,this.__dataPending=null;E=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(Q,L,q);this._flushClients();Jj(this,this.__reflectEffects,Q,L,q);Jj(this,this.__observeEffects,Q,L,q);if(E){y=this.__notifyEffects;v=pf++;for(var f in E)if(E[f]){if(J=y){var t=y;J=v;var e=f,G=Q,R=L,H=q,l=!1,d=H?EY(e):e;if(t=t[d]){d=0;for(var F=t.length,V=void 0;d<F&&(V=t[d]);d++)V.info&&V.info.lastRun===J||H&&!Sfq(e,V.trigger)||(V.info&&(V.info.lastRun=J),V.fn(this,e,G,R,V.info,H,void 0),l=!0)}J=l}if(J)var z=!0;else{if(J=q)J=f,e=Q,G=EY(J),G!==
J?(G=Q8(G)+"-changed",UWf(this,G,e[J],J),J=!0):J=!1;J&&(z=!0)}}var O;z&&(O=this.__dataHost)&&O._invalidateProperties&&O._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
g.prototype._propagatePropertyChanges=function(q,Q,L){this.__propagateEffects&&Jj(this,this.__propagateEffects,q,Q,L);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,q,Q,L)};
g.prototype._runEffectsForTemplate=function(q,Q,L,E){var y=this,v=function(J,f){Jj(y,q.propertyEffects,J,L,f,q.nodeList);for(var t=q.firstChild;t;t=t.nextSibling)y._runEffectsForTemplate(t,J,L,f)};
q.runEffects?q.runEffects(v,Q,E):v(Q,E)};
g.prototype.linkPaths=function(q,Q){q=vo(q);Q=vo(Q);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[q]=Q};
g.prototype.unlinkPaths=function(q){q=vo(q);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[q]};
g.prototype.notifySplices=function(q,Q){var L={path:""};q=DF(this,q,L);MU3(this,q,L.path,Q)};
g.prototype.get=function(q,Q){return DF(Q||this,q)};
g.prototype.set=function(q,Q,L){L?nbh(L,q,Q):this.__readOnly&&this.__readOnly[q]||this._setPendingPropertyOrPath(q,Q,!0)&&this._invalidateProperties()};
g.prototype.push=function(q){var Q=_.UT.apply(1,arguments),L={path:""},E=DF(this,q,L),y=E.length,v=E.push.apply(E,_.na(Q));Q.length&&e7(this,E,L.path,y,Q.length,[]);return v};
g.prototype.pop=function(q){var Q={path:""};q=DF(this,q,Q);var L=!!q.length,E=q.pop();L&&e7(this,q,Q.path,q.length,0,[E]);return E};
g.prototype.splice=function(q,Q,L){var E=_.UT.apply(3,arguments),y={path:""},v=DF(this,q,y);Q<0?Q=v.length-Math.floor(-Q):Q&&(Q=Math.floor(Q));var J=arguments.length===2?v.splice(Q):v.splice.apply(v,[Q,L].concat(_.na(E)));(E.length||J.length)&&e7(this,v,y.path,Q,E.length,J);return J};
g.prototype.shift=function(q){var Q={path:""};q=DF(this,q,Q);var L=!!q.length,E=q.shift();L&&e7(this,q,Q.path,0,0,[E]);return E};
g.prototype.unshift=function(q){var Q=_.UT.apply(1,arguments),L={path:""},E=DF(this,q,L),y=E.unshift.apply(E,_.na(Q));Q.length&&e7(this,E,L.path,0,Q.length,[]);return y};
g.prototype.notifyPath=function(q,Q){if(arguments.length==1){var L={path:""};Q=DF(this,q,L);L=L.path}else L=Array.isArray(q)?vo(q):q;this._setPendingPropertyOrPath(L,Q,!0,!0)&&this._invalidateProperties()};
g.prototype._createReadOnlyProperty=function(q,Q){this._addPropertyEffect(q,"__readOnly");Q&&(this["_set"+(q[0].toUpperCase()+q.substring(1))]=function(L){this._setProperty(q,L)})};
g.prototype._createPropertyObserver=function(q,Q,L){var E={property:q,method:Q,dynamicFn:!!L};this._addPropertyEffect(q,"__observeEffects",{fn:obh,info:E,trigger:{name:q}});L&&this._addPropertyEffect(Q,"__observeEffects",{fn:obh,info:E,trigger:{name:Q}})};
g.prototype._createMethodObserver=function(q,Q){var L=jOT(q);if(!L)throw Error("Gd`"+q);vSZ(this,L,"__observeEffects",L3h,null,Q)};
g.prototype._createNotifyingProperty=function(q){this._addPropertyEffect(q,"__notifyEffects",{fn:gSb,info:{eventName:Q8(q)+"-changed",property:q}})};
g.prototype._createReflectedProperty=function(q){var Q=this.constructor.attributeNameForProperty(q);Q[0]==="-"?console.warn("Property "+q+" cannot be reflected to attribute "+Q+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(q,"__reflectEffects",{fn:uiq,info:{attrName:Q}})};
g.prototype._createComputedProperty=function(q,Q,L){var E=jOT(Q);if(!E)throw Error("Hd`"+Q);Q=vSZ(this,E,"__computeEffects",ESq,q,L);kxf(this,"__computeInfo")[q]=Q};
g.prototype._marshalArgs=function(q,Q,L){for(var E=this.__data,y=[],v=0,J=q.length;v<J;v++){var f=q[v],t=f.name,e=f.structured,G=f.wildcard,R=f.value;f.literal||(G?(f=sY(t,Q),e=fgS(E,L,f?Q:t),R={path:f?Q:t,value:e,base:f?DF(E,t):e}):R=e?fgS(E,L,t):E[t]);if(tj&&!this._overrideLegacyUndefined&&R===void 0&&q.length>1)return Mw;y[v]=R}return y};
g.addPropertyEffect=function(q,Q,L){this.prototype._addPropertyEffect(q,Q,L)};
g.createPropertyObserver=function(q,Q,L){this.prototype._createPropertyObserver(q,Q,L)};
g.createMethodObserver=function(q,Q){this.prototype._createMethodObserver(q,Q)};
g.createNotifyingProperty=function(q){this.prototype._createNotifyingProperty(q)};
g.createReadOnlyProperty=function(q,Q){this.prototype._createReadOnlyProperty(q,Q)};
g.createReflectedProperty=function(q){this.prototype._createReflectedProperty(q)};
g.createComputedProperty=function(q,Q,L){this.prototype._createComputedProperty(q,Q,L)};
g.bindTemplate=function(q){return this.prototype._bindTemplate(q)};
g.prototype._bindTemplate=function(q,Q){var L=this.constructor._parseTemplate(q),E=this.__preBoundTemplateInfo==L;if(!E)for(var y in L.propertyEffects)this._createPropertyAccessor(y);Q?(L=Object.create(L),L.wasPreBound=E,this.__templateInfo?(q=q._parentTemplateInfo||this.__templateInfo,Q=q.lastChild,L.parent=q,q.lastChild=L,(L.previousSibling=Q)?Q.nextSibling=L:q.firstChild=L):this.__templateInfo=L):this.__preBoundTemplateInfo=L;return L};
g._addTemplatePropertyEffect=function(q,Q,L){(q.hostProps=q.hostProps||{})[Q]=!0;q=q.propertyEffects=q.propertyEffects||{};(q[Q]=q[Q]||[]).push(L)};
g.prototype._stampTemplate=function(q,Q){Q=Q||this._bindTemplate(q,!0);CA.push(this);q=u.prototype._stampTemplate.call(this,q,Q);CA.pop();Q.nodeList=q.nodeList;if(!Q.wasPreBound)for(var L=Q.childNodes=[],E=q.firstChild;E;E=E.nextSibling)L.push(E);q.templateInfo=Q;L=Q.nodeList;E=Q.nodeInfoList;if(E.length)for(var y=0;y<E.length;y++){var v=L[y],J=E[y].bindings;if(J)for(var f=0;f<J.length;f++){var t=J[f],e=v,G=t;if(G.isCompound){for(var R=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),H=G.parts,
l=Array(H.length),d=0;d<H.length;d++)l[d]=H[d].literal;H=G.target;R[H]=l;G.literal&&G.kind=="property"&&(H==="className"&&(e=(0,_.j7)(e)),e[H]=G.literal)}yLk(v,this,t)}v.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(Q,this.__data,null,!1),this._flushClients());return q};
g.prototype._removeBoundDom=function(q){q=q.templateInfo;var Q=q.previousSibling,L=q.nextSibling,E=q.parent;Q?Q.nextSibling=L:E&&(E.firstChild=L);L?L.previousSibling=Q:E&&(E.lastChild=Q);q.nextSibling=q.previousSibling=null;q=q.childNodes;for(Q=0;Q<q.length;Q++)L=q[Q],(0,_.j7)((0,_.j7)(L).parentNode).removeChild(L)};
g._parseTemplateNode=function(q,Q,L){var E=u._parseTemplateNode.call(this,q,Q,L);if(q.nodeType===Node.TEXT_NODE){var y=this._parseBindings(q.textContent,Q);y&&(q.textContent=DB3(y)||" ",sOF(this,Q,L,"text","textContent",y),E=!0)}return E};
g._parseTemplateNodeAttribute=function(q,Q,L,E,y){var v=this._parseBindings(y,Q);if(v){y=E;var J="property";j5x.test(E)?J="attribute":E[E.length-1]=="$"&&(E=E.slice(0,-1),J="attribute");var f=DB3(v);f&&J=="attribute"&&(E=="class"&&q.hasAttribute("class")&&(f+=" "+q.getAttribute(E)),q.setAttribute(E,f));J=="attribute"&&y=="disable-upgrade$"&&q.setAttribute(E,"");q.localName==="input"&&y==="value"&&q.setAttribute(y,"");q.removeAttribute(y);J==="property"&&(E=qw(E));sOF(this,Q,L,J,E,v,f);return!0}return u._parseTemplateNodeAttribute.call(this,
q,Q,L,E,y)};
g._parseTemplateNestedTemplate=function(q,Q,L){var E=u._parseTemplateNestedTemplate.call(this,q,Q,L),y=q.parentNode,v=L.templateInfo,J=y.localName==="dom-if",f=y.localName==="dom-repeat";Hj&&(J||f)&&(y.removeChild(q),L=L.parentInfo,L.templateInfo=v,L.noted=!0,E=!1);q=v.hostProps;if(AH&&J)q&&(Q.hostProps=Object.assign(Q.hostProps||{},q),Hj||(L.parentInfo.noted=!0));else for(var t in q)sOF(this,Q,L,"property","_host_"+t,[{mode:"{",source:t,dependencies:[t],hostProp:!0}]);return E};
g._parseBindings=function(q,Q){for(var L=[],E=0,y;(y=MP0.exec(q))!==null;){y.index>E&&L.push({literal:q.slice(E,y.index)});E=y[1][0];var v=!!y[2];y=y[3].trim();var J=!1,f="",t=-1;E=="{"&&(t=y.indexOf("::"))>0&&(f=y.substring(t+2),y=y.substring(0,t),J=!0);t=jOT(y);var e=[];if(t){var G=t,R=G.args;G=G.methodName;for(var H=0;H<R.length;H++){var l=R[H];l.literal||e.push(l)}if((R=Q.dynamicFns)&&R[G]||t.static)e.push(G),t.dynamicFn=!0}else e.push(y);L.push({source:y,mode:E,negate:v,customEvent:J,signature:t,
dependencies:e,event:f});E=MP0.lastIndex}E&&E<q.length&&(q=q.substring(E))&&L.push({literal:q});return L.length?L:null};
g._evaluateBinding=function(q,Q,L,E,y,v){q=Q.signature?L3h(q,L,E,y,Q.signature):L!=Q.source?DF(q,Q.source):v&&Lf(L)?DF(q,L):q.__data[L];Q.negate&&(q=!q);return q};
_.z3.Object.defineProperties(g.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Jr0}}});
return g}),CA=[];var tPX=window.ShadyCSS&&window.ShadyCSS.cssBuild,dG=iu(function(g){function u(Q,L,E,y){if(!tPX){for(var v=L.content.querySelectorAll("style"),J=$BT(L),f=RBM(E),t=L.content.firstElementChild,e=0;e<f.length;e++){var G=f[e];G.textContent=Q._processStyleText(G.textContent,y);L.content.insertBefore(G,t)}for(t=f=0;t<J.length;t++)e=J[t],G=v[f],G!==e?(e=e.cloneNode(!0),G.parentNode.insertBefore(e,G)):f++,e.textContent=Q._processStyleText(e.textContent,y)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(L,
E);if(xR8&&tPX&&WCH&&(L=L.content.querySelectorAll("style"))){var R="";Array.from(L).forEach(function(H){R+=H.textContent;H.parentNode.removeChild(H)});
Q._styleSheet=new CSSStyleSheet;Q._styleSheet.replaceSync(R)}}
var q=uIW(bu(g));g=function(){return q.call(this)||this};
_.A(g,q);g._finalizeClass=function(){q._finalizeClass.call(this);var Q;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(Q=this.__ownObservers)&&this.createObservers(Q,this._properties);this._prepareTemplate()};
g._prepareTemplate=function(){var Q=this.template;Q&&(typeof Q==="string"?(console.error("template getter must return HTMLTemplateElement"),Q=null):Fz||(Q=Q.cloneNode(!0)));this.prototype._template=Q};
g.createProperties=function(Q){for(var L in Q){var E=this.prototype,y=L,v=Q[L],J=Q;v.computed&&(v.readOnly=!0);v.computed&&(E._hasReadOnlyEffect(y)?console.warn("Cannot redefine computed property '"+y+"'."):E._createComputedProperty(y,v.computed,J));v.readOnly&&!E._hasReadOnlyEffect(y)?E._createReadOnlyProperty(y,!v.computed):v.readOnly===!1&&E._hasReadOnlyEffect(y)&&console.warn("Cannot make readOnly property '"+y+"' non-readOnly.");v.reflectToAttribute&&!E._hasReflectEffect(y)?E._createReflectedProperty(y):
v.reflectToAttribute===!1&&E._hasReflectEffect(y)&&console.warn("Cannot make reflected property '"+y+"' non-reflected.");v.notify&&!E._hasNotifyEffect(y)?E._createNotifyingProperty(y):v.notify===!1&&E._hasNotifyEffect(y)&&console.warn("Cannot make notify property '"+y+"' non-notify.");v.observer&&E._createPropertyObserver(y,v.observer,J[v.observer]);E._addPropertyToAttributeMap(y)}};
g.createObservers=function(Q,L){for(var E=this.prototype,y=0;y<Q.length;y++)E._createMethodObserver(Q[y],L)};
g.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);q.prototype._initializeProperties.call(this);this.rootPath=T$2;this.importPath=this.constructor.importPath;var Q=this.constructor;if(!Q.hasOwnProperty("__propertyDefaults")){Q.__propertyDefaults=null;var L=Q._properties,E;for(E in L){var y=L[E];"value"in y&&(Q.__propertyDefaults=Q.__propertyDefaults||{},Q.__propertyDefaults[E]=y)}}if(Q=Q.__propertyDefaults)for(var v in Q)L=Q[v],
this._canApplyPropertyDefault(v)&&(L=typeof L.value=="function"?L.value.call(this):L.value,this._hasAccessor(v)?this._setPendingProperty(v,L,!0):this[v]=L)};
g.prototype._canApplyPropertyDefault=function(Q){return!this.hasOwnProperty(Q)};
g._processStyleText=function(Q,L){return FZk(Q,L)};
g._finalizeTemplate=function(Q){var L=this.prototype._template;if(L&&!L.__polymerFinalized){L.__polymerFinalized=!0;var E=this.importPath;E=E?_.gU(E):"";u(this,L,Q,E);this.prototype._bindTemplate(L)}};
g.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);q.prototype.connectedCallback.call(this)};
g.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);q.prototype.ready.call(this)};
g.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));q.prototype._readyClients.call(this)};
g.prototype._attachDom=function(Q){var L=(0,_.j7)(this);if(L.attachShadow)return Q?(L.shadowRoot||(L.attachShadow({mode:"open",shadyUpgradeFragment:Q}),L.shadowRoot.appendChild(Q),this.constructor._styleSheet&&(L.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Yxa&&window.ShadyDOM&&window.ShadyDOM.flushInitial(L.shadowRoot),L.shadowRoot):null;throw Error("Jd");};
g.prototype.updateStyles=function(Q){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,Q)};
g.prototype.resolveUrl=function(Q,L){!L&&this.importPath&&(L=_.gU(this.importPath));return _.gU(Q,L)};
g._parseTemplateContent=function(Q,L,E){L.dynamicFns=L.dynamicFns||this._properties;return q._parseTemplateContent.call(this,Q,L,E)};
g._addTemplatePropertyEffect=function(Q,L,E){!Xz||L in this._properties||E.info.part.signature&&E.info.part.signature.static||E.info.part.hostProp||Q.nestedTemplate||console.warn("Property '"+L+"' used in template but not declared in 'properties'; attribute will not be observed.");return q._addTemplatePropertyEffect.call(this,Q,L,E)};
_.z3.Object.defineProperties(g,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var Q=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof Q==="function"&&(Q=Q());if(Q===void 0){if(Q=this.hasOwnProperty("is")){Q=this.is;var L=null;if(Q&&(!rU||h5$)&&(L=G3.import(Q,"template"),rU&&!L))throw Error("Id`"+Q);Q=L}Q=Q||Object.getPrototypeOf(this.prototype).constructor.template}this._template=Q}return this._template},
set:function(Q){this._template=Q}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var Q=this.importMeta;Q?this._importPath=mWq(Q.url):this._importPath=(Q=G3.import(this.is))&&Q.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return g});var eqH=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(g){return g}}),Igk=function(g,u){Gei(g,u);
this.value=u.reduce(function(q,Q,L){return q+iTh(Q)+g[L+1]},g[0]).toString()},Gei;
Igk.prototype.toString=function(){return this.value};
_.$mH=function(g){var u=_.UT.apply(1,arguments);Gei(g,u);var q=document.createElement("template");u=u.reduce(function(Q,L,E){if(L instanceof HTMLTemplateElement)L=L.innerHTML;else if(L instanceof Igk)L=iTh(L);else throw Error("Ld`"+L);return Q+L+g[E+1]},g[0]);
eqH&&(u=eqH.createHTML(u));q.innerHTML=u;return q};
Gei=function(g,u){if(!Array.isArray(g)||!Array.isArray(g.raw)||u.length!==g.length-1)throw new TypeError("Md");};var Fk=dG(HTMLElement);var Rqi=iu(function(g){var u=dG(g);g=function(){var q=u.call(this)||this;q.__lastItems=null;q.__lastMulti=null;q.__selectedMap=null;return q};
_.A(g,u);g.prototype.__updateSelection=function(q,Q){var L=Q.path;L=="items"?(Q=Q.base||[],L=this.__lastItems,q!==this.__lastMulti&&this.clearSelection(),L&&(L=lgM(Q,L),this.__applySplices(L)),this.__lastItems=Q,this.__lastMulti=q):Q.path=="items.splices"?this.__applySplices(Q.value.indexSplices):(q=L.slice(6),Q=parseInt(q,10),q.indexOf(".")<0&&q==Q&&this.__deselectChangedIdx(Q))};
g.prototype.__applySplices=function(q){for(var Q=this,L=this.__selectedMap,E={},y=0;y<q.length;E={s$jscomp$109:void 0},y++){E.s$jscomp$109=q[y];L.forEach(function(t){return function(e,G){e<t.s$jscomp$109.index||(e>=t.s$jscomp$109.index+t.s$jscomp$109.removed.length?L.set(G,e+t.s$jscomp$109.addedCount-t.s$jscomp$109.removed.length):L.set(G,-1))}}(E));
for(var v=0;v<E.s$jscomp$109.addedCount;v++){var J=E.s$jscomp$109.index+v;L.has(this.items[J])&&L.set(this.items[J],J)}}this.__updateLinks();var f=0;L.forEach(function(t,e){t<0?(Q.multi?Q.splice("selected",f,1):Q.selected=Q.selectedItem=null,L.delete(e)):f++})};
g.prototype.__updateLinks=function(){var q=this;this.__dataLinkedPaths={};if(this.multi){var Q=0;this.__selectedMap.forEach(function(L){L>=0&&q.linkPaths("items."+L,"selected."+Q++)})}else this.__selectedMap.forEach(function(L){q.linkPaths("selected","items."+L);
q.linkPaths("selectedItem","items."+L)})};
g.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
g.prototype.isSelected=function(q){return this.__selectedMap.has(q)};
g.prototype.isIndexSelected=function(q){return this.isSelected(this.items[q])};
g.prototype.__deselectChangedIdx=function(q){var Q=this,L=this.__selectedIndexForItemIndex(q);if(L>=0){var E=0;this.__selectedMap.forEach(function(y,v){L==E++&&Q.deselect(v)})}};
g.prototype.__selectedIndexForItemIndex=function(q){if(q=this.__dataLinkedPaths["items."+q])return parseInt(q.slice(9),10)};
g.prototype.deselect=function(q){var Q=this.__selectedMap.get(q);if(Q>=0){this.__selectedMap.delete(q);var L;this.multi&&(L=this.__selectedIndexForItemIndex(Q));this.__updateLinks();this.multi?this.splice("selected",L,1):this.selected=this.selectedItem=null}};
g.prototype.deselectIndex=function(q){this.deselect(this.items[q])};
g.prototype.select=function(q){this.selectIndex(this.items.indexOf(q))};
g.prototype.selectIndex=function(q){var Q=this.items[q];this.isSelected(Q)?this.toggle&&this.deselectIndex(q):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(Q,q),this.__updateLinks(),this.multi?this.push("selected",Q):this.selected=this.selectedItem=Q)};
_.z3.Object.defineProperties(g,{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 g}),w$2=Rqi(Fk),m$=function(){return w$2.apply(this,arguments)||this};
_.A(m$,w$2);_.z3.Object.defineProperties(m$,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(m$.is,m$);var crW=window.Polymer;window.Polymer=function(g){return window.Polymer._polymerFn(g)};
crW&&Object.assign(Polymer,crW);Polymer._polymerFn=function(){throw Error("Nd");};/*

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:FZk,resolveUrl:_.gU,pathFromUrl:mWq};Polymer.DomModule=G3;Polymer.Async={timeOut:_.Ih,animationFrame:_.P1,idlePeriod:Sxx,microTask:iP};Polymer.dedupingMixin=iu;Polymer.wrap=_.j7;Polymer.PropertiesChanged=UR5;Polymer.telemetry={instanceCount:g9b,incrementInstanceCount:function(){g9b++},
registrations:rZf,register:WZF,dumpRegistrations:function(){rZf.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=uIW;Polymer.CaseMap={dashToCamelCase:qw,camelToDashCase:Q8};Polymer.PropertyAccessors=NOi;Polymer.TemplateStamp=p$X;Polymer.Path={isPath:Lf,root:EY,isAncestor:xW3,isDescendant:sY,translate:y8,matches:B_m,normalize:vo,split:z2F,get:DF,set:nbh,isDeep:Lf};Polymer.Settings={useShadow:m6,useNativeCSSProperties:mRa,useNativeCustomElements:aqi,get rootPath(){return T$2},setRootPath:function(g){T$2=g},
get sanitizeDOMValue(){return ff},setSanitizeDOMValue:function(g){ff=g},
get passiveTouchGestures(){return Yck},setPassiveTouchGestures:function(g){Yck=g},
get strictTemplatePolicy(){return rU},setStrictTemplatePolicy:function(g){rU=g},
get allowTemplateFromDomModule(){return h5$},setAllowTemplateFromDomModule:function(g){h5$=g},
get legacyOptimizations(){return Fz},setLegacyOptimizations:function(g){Fz=g},
get syncInitialRender(){return Yxa},setSyncInitialRender:function(g){Yxa=g},
get legacyUndefined(){return tj},setLegacyUndefined:function(g){tj=g},
get legacyWarnings(){return Xz},setLegacyWarnings:function(g){Xz=g},
get orderedComputed(){return O6Z},setOrderedComputed:function(g){O6Z=g},
get fastDomIf(){return AH},setFastDomIf:function(g){AH=g},
get removeNestedTemplates(){return Hj},setRemoveNestedTemplates:function(g){Hj=g},
get suppressTemplateNotifications(){return Zr},setSuppressTemplateNotifications:Zr};Polymer.rootPath!==void 0&&(T$2=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(ff=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Yck=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(rU=Polymer.strictTemplatePolicy);h5$=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Fz=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(Yxa=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(tj=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Xz=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(O6Z=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(AH=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Hj=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Zr=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return ff},
set:function(g){ff=g}});Polymer.PropertyEffects=bu;Polymer.StyleGather={stylesFromModules:GKZ,stylesFromModule:eBZ,stylesFromTemplate:$BT,stylesFromModuleImports:RBM,cssFromModules:cL3,cssFromModule:wKq,cssFromTemplate:HTS,cssFromModuleImports:function(g){return(g=G3.import(g))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(g):""}};Polymer.ElementMixin=dG;Polymer.updateStyles=function(g){window.ShadyCSS&&window.ShadyCSS.styleDocument(g)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:lgM};Polymer.html=_.$mH;Polymer.htmlLiteral=function(g){return new Igk(g,_.UT.apply(1,arguments))};Polymer.Element=Fk;Polymer.ArraySelectorMixin=Rqi;Polymer.ArraySelector=m$;var HE$=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Ar2=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,yyh=/@media\s(.*)/;var F3M=null,dBf=window.HTMLImports&&window.HTMLImports.whenReady||null,mBM;var ZEH=null,ah=null,Vy=function(){this.customStyles=[];this.enqueued=!1;agu(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},l3i=function(g){!g.enqueued&&ah&&(g.enqueued=!0,agu(ah))};
Vy.prototype.addCustomStyle=function(g){g.__seenByShadyCSS||(g.__seenByShadyCSS=!0,this.customStyles.push(g),l3i(this))};
Vy.prototype.getStyleForCustomStyle=function(g){if(g.__shadyCSSCachedStyle)return g.__shadyCSSCachedStyle;var u;g.getStyle?u=g.getStyle():u=g;return u};
Vy.prototype.processStyles=function(){for(var g=this.customStyles,u=0;u<g.length;u++){var q=g[u];if(!q.__shadyCSSCachedStyle){var Q=this.getStyleForCustomStyle(q);Q&&(Q=Q.__appliedElement||Q,ZEH&&ZEH(Q),q.__shadyCSSCachedStyle=Q)}}return g};
Vy.prototype.addCustomStyle=Vy.prototype.addCustomStyle;Vy.prototype.getStyleForCustomStyle=Vy.prototype.getStyleForCustomStyle;Vy.prototype.processStyles=Vy.prototype.processStyles;Object.defineProperties(Vy.prototype,{transformCallback:{get:function(){return ZEH},
set:function(g){ZEH=g}},
validateCallback:{get:function(){return ah},
set:function(g){var u=!1;ah||(u=!0);ah=g;u&&l3i(this)}}});var XKu=!(window.ShadyDOM&&window.ShadyDOM.inUse),VUJ,Bo;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Bo=window.ShadyCSS.cssBuild);var I3a=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?VUJ=window.ShadyCSS.nativeCss:window.ShadyCSS?(rLb(window.ShadyCSS),window.ShadyCSS=void 0):rLb(window.WebComponents&&window.WebComponents.flags);var PMq=VUJ;var iER=new Vy;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(g,u){iER.processStyles();CAM(g,u)},
styleElement:function(){iER.processStyles()},
styleDocument:function(g){iER.processStyles();CAM(document.body,g)},
getComputedStyleValue:function(g,u){return bTb(g,u)},
flushCustomStyles:function(){},
nativeCss:PMq,nativeShadow:XKu,cssBuild:Bo,disableRuntime:I3a});window.ShadyCSS.CustomStyleInterface=iER;var CUi=window.ShadyCSS.CustomStyleInterface,Xk=function(){var g=HTMLElement.call(this)||this;g._style=null;CUi.addCustomStyle(g);return g};
_.A(Xk,HTMLElement);Xk.prototype.getStyle=function(){if(this._style)return this._style;var g=this.querySelector("style");if(!g)return null;this._style=g;var u=g.getAttribute("include");u&&(g.removeAttribute("include"),g.textContent=cL3(u)+g.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Xk.prototype.getStyle=Xk.prototype.getStyle;window.customElements.define("custom-style",Xk);Polymer.CustomStyle=Xk;var rG=function(){this._timer=this._callback=this._asyncModule=null},Wj,dmW;
rG.prototype.setConfig=function(g,u){var q=this;this._asyncModule=g;this._callback=u;this._timer=this._asyncModule.run(function(){q._timer=null;Wj.delete(q);q._callback()})};
rG.prototype.cancel=function(){this.isActive()&&(bEH(this),Wj.delete(this))};
var bEH=function(g){g.isActive()&&(g._asyncModule.cancel(g._timer),g._timer=null)};
rG.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
rG.prototype.isActive=function(){return this._timer!=null};
_.Tn=function(g,u,q){g instanceof rG?bEH(g):g=new rG;g.setConfig(u,q);return g};
Wj=new Set;_.hH=function(g){Wj.add(g)};
dmW=function(){var g=!!Wj.size;Wj.forEach(function(u){try{u.flush()}catch(q){setTimeout(function(){throw q;})}});
return g};var TTq=typeof document.head.style.touchAction==="string",W3S=["mousedown","mousemove","mouseup","click"],kKh=[0,1,4,2],FXi;try{FXi=(new MouseEvent("test",{buttons:1})).buttons===1}catch(g){FXi=!1}var nSq=FXi,hBJ=!1;(function(){try{var g=Object.defineProperty({},"passive",{get:function(){hBJ=!0}});
window.addEventListener("test",null,g);window.removeEventListener("test",null,g)}catch(u){}})();
var K3K=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),xBf=[],mmX={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},s6u={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},BTZ=function(g){var u=g.sourceCapabilities;if(!u||u.firesTouchEvents)if(g.__polymerGesturesHandled={skip:!0},g.type==="click"){u=!1;for(var q=g0f(g),Q=0;Q<q.length;Q++){if(q[Q].nodeType===Node.ELEMENT_NODE)if(q[Q].localName==="label")xBf.push(q[Q]);
else if(mmX[q[Q].localName]){var L=q[Q];var E=Array.prototype.slice.call(L.labels||[]);if(!E.length){E=[];try{var y=L.getRootNode();if(L.id){var v=y.querySelectorAll("label[for = '"+L.id+"']");for(L=0;L<v.length;L++)E.push(v[L])}}catch(J){}}for(L=0;L<E.length;L++)u=u||xBf.indexOf(E[L])>-1}if(q[Q]===a30)return}u||(g.preventDefault(),g.stopPropagation())}},a30=null,Yx=null,qaK=0,Q6J=0,uEb=-1,LEq=!1;
document.addEventListener("touchend",function(g){Yx||zBZ(!0);a30=g0f(g)[0];Yx=_.Tn(Yx,_.Ih.after(2500),function(){zBZ();Yx=a30=null})},hBJ?{passive:!0}:!1);
var g0f=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(g){return g.composedPath&&g.composedPath()||[]},Aj={},co=[];
E0f({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){wU(this.info)},
mousedown:function(g){if(RK(g)){var u=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g),q=this;oSf(this.info,function(Q){RK(Q)||(Cf("up",u,Q),wU(q.info))},function(Q){RK(Q)&&Cf("up",u,Q);
wU(q.info)});
Cf("down",u,g)}},
touchstart:function(g){Cf("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g),g.changedTouches[0],g)},
touchend:function(g){Cf("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g),g.changedTouches[0],g)}});
E0f({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(g){this.moves.length>2&&this.moves.shift();this.moves.push(g)},
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;wU(this.info)},
mousedown:function(g){if(RK(g)){var u=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g),q=this,Q=function(L){var E=L.clientX,y=L.clientY;P$m(q.info,E,y)&&(q.info.state=q.info.started?L.type==="mouseup"?"end":"track":"start",q.info.state==="start"&&Ho("tap"),q.info.addMove({x:E,y:y}),RK(L)||(q.info.state="end",wU(q.info)),u&&NmZ(q.info,u,L),q.info.started=!0)};
oSf(this.info,Q,function(L){q.info.started&&Q(L);wU(q.info)});
this.info.x=g.clientX;this.info.y=g.clientY}},
touchstart:function(g){g=g.changedTouches[0];this.info.x=g.clientX;this.info.y=g.clientY},
touchmove:function(g){var u=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g);g=g.changedTouches[0];var q=g.clientX,Q=g.clientY;P$m(this.info,q,Q)&&(this.info.state==="start"&&Ho("tap"),this.info.addMove({x:q,y:Q}),NmZ(this.info,u,g),this.info.state="track",this.info.started=!0)},
touchend:function(g){var u=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g);g=g.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:g.clientX,y:g.clientY}),NmZ(this.info,u,g))}});
E0f({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(g){RK(g)&&(this.info.x=g.clientX,this.info.y=g.clientY)},
click:function(g){RK(g)&&y2M(this.info,g)},
touchstart:function(g){g=g.changedTouches[0];this.info.x=g.clientX;this.info.y=g.clientY},
touchend:function(g){y2M(this.info,g.changedTouches[0],g)}});var VPX=iu(function(g){var u=function(){return g.apply(this,arguments)||this};
_.A(u,g);u.prototype._addEventListenerToNode=function(q,Q,L){ZF(q,Q,L)||g.prototype._addEventListenerToNode.call(this,q,Q,L)};
u.prototype._removeEventListenerFromNode=function(q,Q,L){lP(q,Q,L)||g.prototype._removeEventListenerFromNode.call(this,q,Q,L)};
return u});var OF=iu(function(g){var u=function(){return g.apply(this,arguments)||this};
_.A(u,g);u.prototype._shouldPropertyChange=function(q,Q,L){return v0k(this,q,Q,L,!0)};
return u}),X$i=iu(function(g){var u=function(){return g.apply(this,arguments)||this};
_.A(u,g);u.prototype._shouldPropertyChange=function(q,Q,L){return v0k(this,q,Q,L,this.mutableData)};
_.z3.Object.defineProperties(u,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return u});
OF._mutablePropertyChange=v0k;var D$q=!1;var rr5=VPX(X$i(bu(HTMLElement))),KA=function(){var g=rr5.call(this)||this;if(rU)throw Error("Od");g.root=null;g.$=null;g.__children=null;return g};
_.A(KA,rr5);_.P=KA.prototype;_.P.attributeChangedCallback=function(){this.mutableData=!0};
_.P.connectedCallback=function(){pMh()||(this.style.display="none");this.render()};
_.P.disconnectedCallback=function(){this.__removeChildren()};
_.P.__insertChildren=function(){(0,_.j7)((0,_.j7)(this).parentNode).insertBefore(this.root,this)};
_.P.__removeChildren=function(){if(this.__children)for(var g=0;g<this.__children.length;g++)this.root.appendChild(this.__children[g])};
_.P.render=function(){var g=this;if(!this.__children){var u=u||this.querySelector("template");if(!u){var q=new MutationObserver(function(){if(u=g.querySelector("template"))q.disconnect(),g.render();else throw Error("Pd");});
q.observe(this,{childList:!0});return}this.root=this._stampTemplate(u);this.$=this.root.$;this.__children=[];for(var Q=this.root.firstChild;Q;Q=Q.nextSibling)this.__children[this.__children.length]=Q;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.z3.Object.defineProperties(KA,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",KA);Polymer.Debouncer=rG;Polymer.Gestures={gestures:Aj,recognizers:co,deepTargetFind:UBM,addListener:ZF,removeListener:lP,register:E0f,setTouchAction:_.IK,prevent:Ho,resetMouseCanceller:function(){Yx&&Yx.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:ZF,remove:lP};Polymer.GestureEventListeners=VPX;Polymer.MutableData=OF;Polymer.OptionalMutableData=X$i;Polymer.DomBind=KA;_.xx=function(){do{var g=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var u=dmW()}while(g||u)};var J2b=null;j6h.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:j6h,writable:!0}});var wMJ=bu(j6h),RdM=OF(wMJ),WXW=bu(function(){}),aK=function(g){var u=WXW.call(this)||this;
u._configureProperties(g);u.root=u._stampTemplate(u.__dataHost);var q=[];u.children=q;for(var Q=u.root.firstChild;Q;Q=Q.nextSibling)q.push(Q),Q.__templatizeInstance=u;u.__templatizeOwner&&u.__templatizeOwner.__hideTemplateChildren__&&u._showHideChildren(!0);q=u.__templatizeOptions;(g&&q.instanceProps||!q.instanceProps)&&u._enableProperties();return u};
_.A(aK,WXW);_.P=aK.prototype;_.P._configureProperties=function(g){if(this.__templatizeOptions.forwardHostProp)for(var u in this.__hostProps)this._setPendingProperty(u,this.__dataHost["_host_"+u]);for(var q in g)this._setPendingProperty(q,g[q])};
_.P.forwardHostProp=function(g,u){this._setPendingPropertyOrPath(g,u,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.P._addEventListenerToNode=function(g,u,q){var Q=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(g,u,function(E){E.model=Q;q(E)});
else{var L=this.__dataHost.__dataHost;L&&L._addEventListenerToNode(g,u,q)}};
_.P._showHideChildren=function(g){M$S(g,this.children)};
_.P._setUnmanagedPropertyToNode=function(g,u,q){g.__hideTemplateChildren__&&g.nodeType==Node.TEXT_NODE&&u=="textContent"?g.__polymerTextContent__=q:WXW.prototype._setUnmanagedPropertyToNode.call(this,g,u,q)};
_.P.dispatchEvent=function(){return!0};
_.z3.Object.defineProperties(aK.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var g=this.__parentModel;if(!g){var u;g=this;do g=g.__dataHost.__dataHost;while((u=g.__templatizeOptions)&&!u.parentModel);this.__parentModel=g}return g}}});
var edJ=OF(aK);var Bj=function(){var g=Fk.call(this)||this;g.__renderDebouncer=null;g._lastIf=!1;g.__hideTemplateChildren__=!1;return g};
_.A(Bj,Fk);_.P=Bj.prototype;_.P.__debounceRender=function(){var g=this;this.__renderDebouncer=_.Tn(this.__renderDebouncer,iP,function(){return g.__render()});
_.hH(this.__renderDebouncer)};
_.P.disconnectedCallback=function(){Fk.prototype.disconnectedCallback.call(this);var g=(0,_.j7)(this).parentNode;g&&(g.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.j7)(g).host)||this.__teardownInstance()};
_.P.connectedCallback=function(){Fk.prototype.connectedCallback.call(this);pMh()||(this.style.display="none");this.if&&this.__debounceRender()};
_.P.__ensureTemplate=function(){var g=this;if(!this.__template){var u=this._templateInfo?this:(0,_.j7)(this).querySelector("template");if(!u){var q=new MutationObserver(function(){if((0,_.j7)(g).querySelector("template"))q.disconnect(),g.__render();else throw Error("Sd");});
q.observe(this,{childList:!0});return!1}this.__template=u}return!0};
_.P.__ensureInstance=function(){var g=(0,_.j7)(this).parentNode;if(this.__hasInstance()){var u=this.__getInstanceNodes();if(u&&u.length&&(0,_.j7)(this).previousSibling!==u[u.length-1])for(var q=0,Q=void 0;q<u.length&&(Q=u[q]);q++)(0,_.j7)(g).insertBefore(Q,this)}else{if(!g||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(g)}return!0};
_.P.render=function(){_.xx()};
_.P.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Zr&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.P.__hasInstance=function(){};
_.P.__getInstanceNodes=function(){};
_.P.__createAndInsertInstance=function(){};
_.P.__teardownInstance=function(){};
_.P._showHideChildren=function(){};
_.z3.Object.defineProperties(Bj,{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:Bj.prototype.__debounceRender},restamp:{type:Boolean,observer:Bj.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var TO0=function(){var g=Bj.call(this)||this;g.__instance=null;g.__syncInfo=null;return g};
_.A(TO0,Bj);_.P=TO0.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.P.__createAndInsertInstance=function(g){var u=this,q=this.__dataHost||this;if(rU&&!this.__dataHost)throw Error("Qd");var Q=q._bindTemplate(this.__template,!0);Q.runEffects=function(L,E,y){var v=u.__syncInfo;if(u.if)v&&(u.__syncInfo=null,u._showHideChildren(),E=Object.assign(v.changedProps,E)),L(E,y);else if(u.__instance)if(v||(v=u.__syncInfo={runEffects:L,changedProps:{}}),y)for(var J in E)L=EY(J),v.changedProps[L]=u.__dataHost[L];else Object.assign(v.changedProps,E)};
this.__instance=q._stampTemplate(this.__template,Q);(0,_.j7)(g).insertBefore(this.__instance,this)};
_.P.__syncHostProperties=function(){var g=this.__syncInfo;g&&(this.__syncInfo=null,g.runEffects(g.changedProps,!1))};
_.P.__teardownInstance=function(){var g=this.__dataHost||this;this.__instance&&(g._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.P._showHideChildren=function(){var g=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==g&&(this.__instance.__hidden=g,M$S(g,this.__instance.templateInfo.childNodes));g||this.__syncHostProperties()};
var hqW=function(){var g=Bj.call(this)||this;g.__ctor=null;g.__instance=null;g.__invalidProps=null;return g};
_.A(hqW,Bj);_.P=hqW.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.children};
_.P.__createAndInsertInstance=function(g){this.__ctor||(this.__ctor=V8(this.__template,this,{mutableData:!0,forwardHostProp:function(u,q){this.__instance&&(this.if?this.__instance.forwardHostProp(u,q):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[EY(u)]=!0))}}));
this.__instance=new this.__ctor;(0,_.j7)(g).insertBefore(this.__instance.root,this)};
_.P.__teardownInstance=function(){if(this.__instance){var g=this.__instance.children;if(g&&g.length){var u=(0,_.j7)(g[0]).parentNode;if(u){u=(0,_.j7)(u);for(var q=0,Q=void 0;q<g.length&&(Q=g[q]);q++)u.removeChild(Q)}}this.__instance=this.__invalidProps=null}};
_.P.__syncHostProperties=function(){var g=this.__invalidProps;if(g){this.__invalidProps=null;for(var u in g)this.__instance._setPendingProperty(u,this.__dataHost[u]);this.__instance._flushProperties()}};
_.P._showHideChildren=function(){var g=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==g&&(this.__instance.__hidden=g,this.__instance._showHideChildren(g));g||this.__syncHostProperties()};
_.D3=AH?TO0:hqW;customElements.define(_.D3.is,_.D3);Polymer.enqueueDebouncer=_.hH;Polymer.flush=_.xx;Polymer.Templatize={templatize:V8,modelForElement:IPu};Polymer.TemplateInstanceBase=aK;Polymer.DomIf=_.D3;var Yi$=X$i(Fk),v$=function(){var g=Yi$.call(this)||this;g.__instances=[];g.__renderDebouncer=null;g.__itemsIdxToInstIdx={};g.__chunkCount=null;g.__renderStartTime=null;g.__itemsArrayChanged=!1;g.__shouldMeasureChunk=!1;g.__shouldContinueChunking=!1;g.__chunkingId=0;g.__sortFn=null;g.__filterFn=null;g.__observePaths=null;g.__ctor=null;g.__isDetached=!0;g.template=null;return g};
_.A(v$,Yi$);_.P=v$.prototype;_.P.disconnectedCallback=function(){Yi$.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var g=0;g<this.__instances.length;g++)this.__detachInstance(g);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.P.connectedCallback=function(){Yi$.prototype.connectedCallback.call(this);pMh()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var g=(0,_.j7)((0,_.j7)(this).parentNode),u=0;u<this.__instances.length;u++)this.__attachInstance(u,g);this.__chunkingId&&this.__render()}};
_.P.__ensureTemplatized=function(){var g=this;if(!this.__ctor){var u=this.template=this._templateInfo?this:this.querySelector("template");if(!u){var q=new MutationObserver(function(){if(g.querySelector("template"))q.disconnect(),g.__render();else throw Error("Td");});
q.observe(this,{childList:!0});return!1}var Q={};Q[this.as]=!0;Q[this.indexAs]=!0;Q[this.itemsIndexAs]=!0;this.__ctor=V8(u,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:Q,forwardHostProp:function(L,E){for(var y=this.__instances,v=0,J=void 0;v<y.length&&(J=y[v]);v++)J.forwardHostProp(L,E)},
notifyInstanceProp:function(L,E,y){B_m(this.as,E)&&(L=L[this.itemsIndexAs],E==this.as&&(this.items[L]=y),E=y8(this.as,"items."+L,E),this.notifyPath(E,y))}})}return!0};
_.P.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.P.__functionFromPropertyValue=function(g){if(typeof g==="string"){var u=this.__getMethodHost();return function(){return u[g].apply(u,arguments)}}return g};
_.P.__sortChanged=function(g){this.__sortFn=this.__functionFromPropertyValue(g);this.items&&this.__debounceRender(this.__render)};
_.P.__filterChanged=function(g){this.__filterFn=this.__functionFromPropertyValue(g);this.items&&this.__debounceRender(this.__render)};
_.P.__computeFrameTime=function(g){return Math.ceil(1E3/g)};
_.P.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.P.__handleObservedPaths=function(g){if(this.__sortFn||this.__filterFn)if(!g)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var u=this.__observePaths,q=0;q<u.length;q++)g.indexOf(u[q])===0&&this.__debounceRender(this.__render,this.delay)};
_.P.__itemsChanged=function(g){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(g.path,g.value)||(g.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.P.__debounceRender=function(g,u){u=u===void 0?0:u;this.__renderDebouncer=_.Tn(this.__renderDebouncer,u>0?_.Ih.after(u):iP,g.bind(this));_.hH(this.__renderDebouncer)};
_.P.render=function(){this.__debounceRender(this.__render);_.xx()};
_.P.__render=function(){var g=this;if(this.__ensureTemplatized()){var u=this.items||[],q=this.__sortAndFilterItems(u),Q=this.__calculateLimit(q.length);this.__updateInstances(u,Q,q);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){g.__chunkingId=null;g.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Zr&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.P.__sortAndFilterItems=function(g){for(var u=this,q=Array(g.length),Q=0;Q<g.length;Q++)q[Q]=Q;this.__filterFn&&(q=q.filter(function(L,E,y){return u.__filterFn(g[L],E,y)}));
this.__sortFn&&q.sort(function(L,E){return u.__sortFn(g[L],g[E])});
return q};
_.P.__calculateLimit=function(g){var u=g,q=this.__instances.length;if(this.initialCount){var Q;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(u=Math.min(g,this.initialCount),this.__chunkCount=(Q=Math.max(u-q,0))||1):(Q=Math.min(Math.max(g-q,0),this.__chunkCount),u=Math.min(q+Q,g));this.__shouldMeasureChunk=Q===this.__chunkCount;this.__shouldContinueChunking=u<g;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return u};
_.P.__continueChunking=function(){if(this.__shouldMeasureChunk){var g=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/g*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.P.__updateInstances=function(g,u,q){var Q=this.__itemsIdxToInstIdx={},L;for(L=0;L<u;L++){var E=this.__instances[L],y=q[L],v=g[y];Q[y]=L;E?(E._setPendingProperty(this.as,v),E._setPendingProperty(this.indexAs,L),E._setPendingProperty(this.itemsIndexAs,y),E._flushProperties()):this.__insertInstance(v,L,y)}for(g=this.__instances.length-1;g>=L;g--)this.__detachAndRemoveInstance(g)};
_.P.__detachInstance=function(g){g=this.__instances[g];for(var u=(0,_.j7)(g.root),q=0;q<g.children.length;q++)u.appendChild(g.children[q]);return g};
_.P.__attachInstance=function(g,u){u.insertBefore(this.__instances[g].root,this)};
_.P.__detachAndRemoveInstance=function(g){this.__detachInstance(g);this.__instances.splice(g,1)};
_.P.__stampInstance=function(g,u,q){var Q={};Q[this.as]=g;Q[this.indexAs]=u;Q[this.itemsIndexAs]=q;return new this.__ctor(Q)};
_.P.__insertInstance=function(g,u,q){g=this.__stampInstance(g,u,q);q=(q=this.__instances[u+1])?q.children[0]:this;(0,_.j7)((0,_.j7)(this).parentNode).insertBefore(g.root,q);return this.__instances[u]=g};
_.P._showHideChildren=function(g){for(var u=0;u<this.__instances.length;u++)this.__instances[u]._showHideChildren(g)};
_.P.__handleItemPath=function(g,u){var q=g.slice(6),Q=q.indexOf(".");g=Q<0?q:q.substring(0,Q);if(g==parseInt(g,10)){q=Q<0?"":q.substring(Q+1);this.__handleObservedPaths(q);if(g=this.__instances[this.__itemsIdxToInstIdx[g]])g._setPendingPropertyOrPath(this.as+(q?"."+q:""),u,!1,!0),g._flushProperties();return!0}};
_.P.itemForElement=function(g){return(g=this.modelForElement(g))&&g[this.as]};
_.P.indexForElement=function(g){return(g=this.modelForElement(g))&&g[this.indexAs]};
_.P.modelForElement=function(g){return IPu(this.template,g)};
_.z3.Object.defineProperties(v$,{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:v$.prototype.__sortChanged},filter:{type:Function,observer:v$.prototype.__filterChanged},observe:{type:String,observer:v$.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Zr,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.*)"]}}});
v$.prototype._setRenderedItemCount=function(){};
customElements.define(v$.is,v$);Polymer.DomRepeat=v$;var OEa=function(g,u){var q=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=g;this.callback=u;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){q._schedule()};
this.connect();this._schedule()},KX5=function(g){var u=(0,_.j7)(g);
if(Wo(g))return u.assignedNodes({flatten:!0});g=[];for(var q=0;q<u.childNodes.length;q++){var Q=u.childNodes[q];Wo(Q)?g.push.apply(g,_.na((0,_.j7)(Q).assignedNodes({flatten:!0}))):g.push(Q)}return g};
_.P=OEa.prototype;_.P.connect=function(){var g=this;Wo(this._target)?this._listenSlots([this._target]):(0,_.j7)(this._target).children&&(this._listenSlots((0,_.j7)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(u){g._processMutations(u)}):(this._nativeChildrenObserver=new MutationObserver(function(u){g._processMutations(u)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.P.disconnect=function(){Wo(this._target)?this._unlistenSlots([this._target]):(0,_.j7)(this._target).children&&(this._unlistenSlots((0,_.j7)(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};
_.P._schedule=function(){var g=this;this._scheduled||(this._scheduled=!0,iP.run(function(){return g.flush()}))};
_.P._processMutations=function(g){this._processSlotMutations(g);this.flush()};
_.P._processSlotMutations=function(g){if(g)for(var u=0;u<g.length;u++){var q=g[u];q.addedNodes&&this._listenSlots(q.addedNodes);q.removedNodes&&this._unlistenSlots(q.removedNodes)}};
_.P.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 g={target:this._target,addedNodes:[],removedNodes:[]},u=KX5(this._target),q=lgM(u,this._effectiveNodes),Q=0,L=void 0;Q<q.length&&(L=q[Q]);Q++)for(var E=0,y=void 0;E<L.removed.length&&(y=L.removed[E]);E++)g.removedNodes.push(y);
Q=0;for(L=void 0;Q<q.length&&(L=q[Q]);Q++)for(E=L.index;E<L.index+L.addedCount;E++)g.addedNodes.push(u[E]);this._effectiveNodes=u;u=!1;if(g.addedNodes.length||g.removedNodes.length)u=!0,this.callback.call(this._target,g);return u};
_.P._listenSlots=function(g){for(var u=0;u<g.length;u++){var q=g[u];Wo(q)&&q.addEventListener("slotchange",this._boundSchedule)}};
_.P._unlistenSlots=function(g){for(var u=0;u<g.length;u++){var q=g[u];Wo(q)&&q.removeEventListener("slotchange",this._boundSchedule)}};var zn=Element.prototype,xmi=zn.matches||zn.matchesSelector||zn.mozMatchesSelector||zn.msMatchesSelector||zn.oMatchesSelector||zn.webkitMatchesSelector,BOa=function(g,u){return xmi.call(g,u)},T3=function(g){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(g);
this.node=g},SiW;
_.P=T3.prototype;_.P.observeNodes=function(g){return new OEa(this.node,g)};
_.P.unobserveNodes=function(g){g.disconnect()};
_.P.notifyObserver=function(){};
_.P.deepContains=function(g){if((0,_.j7)(this.node).contains(g))return!0;var u=g;for(g=g.ownerDocument;u&&u!==g&&u!==this.node;)u=(0,_.j7)(u).parentNode||(0,_.j7)(u).host;return u===this.node};
_.P.getOwnerRoot=function(){return(0,_.j7)(this.node).getRootNode()};
_.P.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.j7)(this.node).assignedNodes({flatten:!0}):[]};
_.P.getDestinationInsertionPoints=function(){for(var g=[],u=(0,_.j7)(this.node).assignedSlot;u;)g.push(u),u=(0,_.j7)(u).assignedSlot;return g};
_.P.importNode=function(g,u){return(0,_.j7)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(g,u)};
_.P.getEffectiveChildNodes=function(){return KX5(this.node)};
_.P.queryDistributedElements=function(g){for(var u=this.getEffectiveChildNodes(),q=[],Q=0,L=u.length,E=void 0;Q<L&&(E=u[Q]);Q++)E.nodeType===Node.ELEMENT_NODE&&BOa(E,g)&&q.push(E);return q};
_.z3.Object.defineProperties(T3.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var g=this.node;return g._activeElement!==void 0?g._activeElement:g.activeElement}}});
var nA=function(g){this.event=g};
_.z3.Object.defineProperties(nA.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 zq0=T3;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var n90=window.ShadyDOM.Wrapper,keZ=function(){return n90.apply(this,arguments)||this};
_.A(keZ,n90);Object.getOwnPropertyNames(T3.prototype).forEach(function(g){g!="activeElement"&&g!="constructor"&&(keZ.prototype[g]=T3.prototype[g])});
C$b(keZ.prototype,["classList"]);zq0=keZ;Object.defineProperties(nA.prototype,{localTarget:{get:function(){var g=this.event.currentTarget;g=g&&_.Eg(g).getOwnerRoot();for(var u=this.path,q=0;q<u.length;q++){var Q=u[q];if(_.Eg(Q).getOwnerRoot()===g)return Q}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else ipq(),C$b(T3.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),bpF();SiW=zq0;_.Eg=function(g){g=g||document;if(g instanceof zq0)return g;if(g instanceof nA)return g;var u=g.__domApi;u||(g instanceof Event?u=new nA(g):u=new zq0(g),g.__domApi=u);return u};var o9$=/:host\(:dir\((ltr|rtl)\)\)/g,UmZ=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,gHo=/:dir\((?:ltr|rtl)\)/,uhW=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Yt=[],kx=null,hj="",qEZ=iu(function(g){uhW||kx||(hj=document.documentElement.getAttribute("dir"),kx=new MutationObserver(d$J),kx.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var u=NOi(g);g=function(){var q=u.call(this)||this;q.__autoDirOptOut=!1;return q};
_.A(g,u);g._processStyleText=function(q,Q){q=u._processStyleText.call(this,q,Q);!uhW&&gHo.test(q)&&(q=this._replaceDirInCssText(q),this.__activateDir=!0);return q};
g._replaceDirInCssText=function(q){q=q.replace(o9$,':host([dir="$1"])');return q=q.replace(UmZ,':host([dir="$2"]) $1')};
g.prototype.ready=function(){u.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
g.prototype.connectedCallback=function(){u.prototype.connectedCallback&&u.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(kx&&kx.takeRecords().length&&d$J(),Yt.push(this),this.__autoDirOptOut||this.setAttribute("dir",hj))};
g.prototype.disconnectedCallback=function(){u.prototype.disconnectedCallback&&u.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var q=Yt.indexOf(this);q>-1&&Yt.splice(q,1)}};
g.__activateDir=!1;return g});var QTW=function(g){for(;g;){var u=Object.getOwnPropertyDescriptor(g,"observedAttributes");if(u)return u.get;g=Object.getPrototypeOf(g.prototype).constructor}return function(){return[]}};
iu(function(g){var u=dG(g),q=QTW(u);g=function(){return u.call(this)||this};
_.A(g,u);g.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:u.prototype._initializeProperties.call(this)};
g.prototype._enableProperties=function(){this.__isUpgradeDisabled||u.prototype._enableProperties.call(this)};
g.prototype._canApplyPropertyDefault=function(Q){return u.prototype._canApplyPropertyDefault.call(this,Q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Q))};
g.prototype.attributeChangedCallback=function(Q,L,E,y){Q=="disable-upgrade"?this.__isUpgradeDisabled&&E==null&&(u.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.j7)(this).isConnected&&u.prototype.connectedCallback.call(this)):u.prototype.attributeChangedCallback.call(this,Q,L,E,y)};
g.prototype.connectedCallback=function(){this.__isUpgradeDisabled||u.prototype.connectedCallback.call(this)};
g.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||u.prototype.disconnectedCallback.call(this)};
_.z3.Object.defineProperties(g,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return q.call(this).concat("disable-upgrade")}}});
return g});var OY=!1,m$J=[],Kf=[];var r2h=window.ShadyDOM,WE3=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",hdk):document.readyState==="interactive"||document.readyState==="complete"?hdk():window.addEventListener("DOMContentLoaded",hdk);var KEf=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=""},YaK=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Op3=/@import[^;]*;/gim,SaF=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,o0T=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,U$K=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,g2q=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,n0h=/^@[^\s]*keyframes/,
zdK=/\s+/g;var uAZ={};var Lbb=Promise.resolve();var Lyb=new Set;var EHW=/;\s*/m,PFW=/^\s*(initial)|(inherit)\s*$/,NLo=/\s*!important/,sT2=function(){this._map={}};
sT2.prototype.set=function(g,u){g=g.trim();this._map[g]={properties:u,dependants:{}}};
sT2.prototype.get=function(g){g=g.trim();return this._map[g]||null};
var yoo=null,S2=function(){this._measureElement=this._currentElement=null;this._map=new sT2};
_.P=S2.prototype;_.P.detectMixin=function(g){g=Ar2.test(g)||HE$.test(g);Ar2.lastIndex=0;HE$.lastIndex=0;return g};
_.P.transformTemplate=function(g,u){if(g._gatheredStyle===void 0){var q=[];for(var Q=g.content.querySelectorAll("style"),L=0;L<Q.length;L++){var E=Q[L];if(E.hasAttribute("shady-unscoped")){if(!XKu){var y=E.textContent;if(!Lyb.has(y)){Lyb.add(y);var v=document.createElement("style");v.setAttribute("shady-unscoped","");v.textContent=y;document.head.appendChild(v)}E.parentNode.removeChild(E)}}else q.push(E.textContent),E.parentNode.removeChild(E)}(q=q.join("").trim())?(Q=document.createElement("style"),
Q.textContent=q,g.content.insertBefore(Q,g.content.firstChild),q=Q):q=null;g._gatheredStyle=q}return(g=g._gatheredStyle)?this.JSC$11581_transformStyle(g,u):null};
_.P.JSC$11581_transformStyle=function(g,u){u=u===void 0?"":u;var q=sAk(g);this.transformRules(q,u);g.textContent=NXf(q);return q};
_.P.transformCustomStyle=function(g){var u=this,q=sAk(g);v2m(q,function(Q){Q.selector===":root"&&(Q.selector="html");u.transformRule(Q)});
g.textContent=NXf(q);return q};
_.P.transformRules=function(g,u){var q=this;this._currentElement=u;v2m(g,function(Q){q.transformRule(Q)});
this._currentElement=null};
_.P.transformRule=function(g){g.cssText=vH2(this,g.parsedCssText,g);g.selector===":root"&&(g.selector=":host > *")};
var vH2=function(g,u,q){u=u.replace(HE$,function(Q,L,E,y){return g._produceCssProperties(Q,L,E,y,q)});
return g._consumeCssProperties(u,q)};
_.P=S2.prototype;_.P._getInitialValueForProperty=function(g){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(g)};
_.P._fallbacksFromPreviousRules=function(g){for(var u=this,q=g;q.parent;)q=q.parent;var Q={},L=!1;v2m(q,function(E){(L=L||E===g)||E.selector===g.selector&&Object.assign(Q,u._cssTextToMap(E.parsedCssText))});
return Q};
_.P._consumeCssProperties=function(g,u){for(var q;q=Ar2.exec(g);){var Q=q[0],L=q[1];q=q.index;var E=q+Q.indexOf("@apply"),y=q+Q.length;Q=g.slice(0,E);g=g.slice(y);E=u?this._fallbacksFromPreviousRules(u):{};Object.assign(E,this._cssTextToMap(Q));L=this._atApplyToCssProperties(L,E);g=Q+L+g;Ar2.lastIndex=q+L.length}return g};
_.P._atApplyToCssProperties=function(g,u){g=g.replace(EHW,"");var q=[],Q=this._map.get(g);Q||(this._map.set(g,{}),Q=this._map.get(g));if(Q){this._currentElement&&(Q.dependants[this._currentElement]=!0);var L,E=Q.properties;for(L in E){var y=u&&u[L];Q=[L,": var(",g,"_-_",L];y&&Q.push(",",y.replace(NLo,""));Q.push(")");NLo.test(E[L])&&Q.push(" !important");q.push(Q.join(""))}}return q.join("; ")};
_.P._replaceInitialOrInherit=function(g,u){var q=PFW.exec(u);q&&(u=q[1]?this._getInitialValueForProperty(g):"apply-shim-inherit");return u};
_.P._cssTextToMap=function(g,u){u=u===void 0?!1:u;g=g.split(";");for(var q,Q,L={},E=0;E<g.length;E++)if(q=g[E])Q=q.split(":"),Q.length>1&&(q=Q[0].trim(),Q=Q.slice(1).join(":"),u&&(Q=this._replaceInitialOrInherit(q,Q)),L[q]=Q);return L};
_.P._invalidateMixinEntry=function(g){if(yoo)for(var u in g.dependants)u!==this._currentElement&&yoo(u)};
_.P._produceCssProperties=function(g,u,q,Q,L){var E=this;q&&DHZ(q,function(H,l){l&&E._map.get(l)&&(Q="@apply "+l+";")});
if(!Q)return g;var y=this._consumeCssProperties(""+Q,L);L=g.slice(0,g.indexOf("--"));var v=y=this._cssTextToMap(y,!0),J=this._map.get(u),f=J&&J.properties;f?v=Object.assign(Object.create(f),y):this._map.set(u,v);var t=[],e,G=!1;for(e in v){var R=y[e];R===void 0&&(R="initial");!f||e in f||(G=!0);t.push(u+"_-_"+e+": "+R)}G&&this._invalidateMixinEntry(J);J&&(J.properties=v);q&&(L=g+";"+L);return L+t.join("; ")+";"};
S2.prototype.detectMixin=S2.prototype.detectMixin;S2.prototype.transformStyle=S2.prototype.JSC$11581_transformStyle;S2.prototype.transformCustomStyle=S2.prototype.transformCustomStyle;S2.prototype.transformRules=S2.prototype.transformRules;S2.prototype.transformRule=S2.prototype.transformRule;S2.prototype.transformTemplate=S2.prototype.transformTemplate;S2.prototype._separator="_-_";Object.defineProperty(S2.prototype,"invalidCallback",{get:function(){return yoo},
set:function(g){yoo=g}});var oh=new S2,DYa=function(){this.customStyleInterface=null;oh.invalidCallback=qQq},UF=function(g){!g.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(g.customStyleInterface=window.ShadyCSS.CustomStyleInterface,g.customStyleInterface.transformCallback=function(u){oh.transformCustomStyle(u)},g.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){g.customStyleInterface.enqueued&&g.flushCustomStyles()})})};
_.P=DYa.prototype;_.P.prepareTemplate=function(g,u){UF(this);pHq(g)===""&&(uAZ[u]=g,u=oh.transformTemplate(g,u),g._styleAst=u)};
_.P.flushCustomStyles=function(){UF(this);if(this.customStyleInterface){var g=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var u=0;u<g.length;u++){var q=this.customStyleInterface.getStyleForCustomStyle(g[u]);q&&oh.transformCustomStyle(q)}this.customStyleInterface.enqueued=!1}}};
_.P.styleSubtree=function(g,u){UF(this);u&&CAM(g,u);if(g.shadowRoot)for(this.styleElement(g),g=g.shadowRoot.children||g.shadowRoot.childNodes,u=0;u<g.length;u++)this.styleSubtree(g[u]);else for(g=g.children||g.childNodes,u=0;u<g.length;u++)this.styleSubtree(g[u])};
_.P.styleElement=function(g){UF(this);var u=g.localName,q;u?u.indexOf("-")>-1?q=u:q=g.getAttribute&&g.getAttribute("is")||"":q=g.is;u=uAZ[q];if(!(u&&pHq(u)!==""||!u||QAK(u))){if(QAK(u)||u._applyShimValidatingVersion!==u._applyShimNextVersion)this.prepareTemplate(u,q),E2K(u);if(g=g.shadowRoot)if(g=g.querySelector("style"))g.__cssRules=u._styleAst,g.textContent=NXf(u._styleAst)}};
_.P.styleDocument=function(g){UF(this);this.styleSubtree(document.body,g)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var gd=new DYa,p1x=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(g,u){gd.flushCustomStyles();gd.prepareTemplate(g,u)},
prepareTemplateStyles:function(g,u,q){window.ShadyCSS.prepareTemplate(g,u,q)},
prepareTemplateDom:function(){},
styleSubtree:function(g,u){gd.flushCustomStyles();gd.styleSubtree(g,u)},
styleElement:function(g){gd.flushCustomStyles();gd.styleElement(g)},
styleDocument:function(g){gd.flushCustomStyles();gd.styleDocument(g)},
getComputedStyleValue:function(g,u){return bTb(g,u)},
flushCustomStyles:function(){gd.flushCustomStyles()},
nativeCss:PMq,nativeShadow:XKu,cssBuild:Bo,disableRuntime:I3a};p1x&&(window.ShadyCSS.CustomStyleInterface=p1x)}window.ShadyCSS.ApplyShim=oh;var JoH;JoH=window.ShadyCSS;_.ug=iu(function(g){g=VPX(dG(g));var u=tPX?g:qEZ(g),q=QTW(u),Q={x:"pan-x",y:"pan-y",none:"none",all:"auto"};g=function(){return u.call(this)||this};
_.A(g,u);g.prototype.created=function(){};
g.prototype.__attributeReaction=function(L,E,y){(this.__dataAttributes&&this.__dataAttributes[L]||L==="disable-upgrade")&&this.attributeChangedCallback(L,E,y,null)};
g.prototype.setAttribute=function(L,E){if(KCH&&!this._legacyForceObservedAttributes){var y=this.getAttribute(L);u.prototype.setAttribute.call(this,L,E);this.__attributeReaction(L,y,String(E))}else u.prototype.setAttribute.call(this,L,E)};
g.prototype.removeAttribute=function(L){if(KCH&&!this._legacyForceObservedAttributes){var E=this.getAttribute(L);u.prototype.removeAttribute.call(this,L);this.__attributeReaction(L,E,null)}else u.prototype.removeAttribute.call(this,L)};
g.prototype._enableProperties=function(){this.__isUpgradeDisabled||u.prototype._enableProperties.call(this)};
g.prototype._canApplyPropertyDefault=function(L){return u.prototype._canApplyPropertyDefault.call(this,L)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(L))};
g.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(u.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
g.prototype.attached=function(){};
g.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(u.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
g.prototype.detached=function(){};
g.prototype.attributeChangedCallback=function(L,E,y,v){E!==y&&(L=="disable-upgrade"?this.__isUpgradeDisabled&&y==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.j7)(this).isConnected&&this.connectedCallback()):(u.prototype.attributeChangedCallback.call(this,L,E,y,v),this.attributeChanged(L,E,y)))};
g.prototype.attributeChanged=function(){};
g.prototype._initializeProperties=function(){if(Fz&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var L=Object.getPrototypeOf(this);L.hasOwnProperty("__hasRegisterFinished")||(this._registered(),L.__hasRegisterFinished=!0);u.prototype._initializeProperties.call(this);this.root=this;this.created();KCH&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
g.prototype._takeAttributes=function(){for(var L=this.attributes,E=0,y=L.length;E<y;E++){var v=L[E];this.__attributeReaction(v.name,null,v.value)}};
g.prototype._registered=function(){};
g.prototype.ready=function(){this._ensureAttributes();u.prototype.ready.call(this)};
g.prototype._ensureAttributes=function(){};
g.prototype._applyListeners=function(){};
g.prototype.serialize=function(L){return this._serializeValue(L)};
g.prototype.deserialize=function(L,E){return this._deserializeValue(L,E)};
g.prototype.reflectPropertyToAttribute=function(L,E,y){this._propertyToAttribute(L,E,y)};
g.prototype.serializeValueToAttribute=function(L,E,y){this._valueToNodeAttribute(y||this,L,E)};
g.prototype.extend=function(L,E){if(!L||!E)return L||E;for(var y=Object.getOwnPropertyNames(E),v=0,J=void 0;v<y.length&&(J=y[v]);v++){var f=Object.getOwnPropertyDescriptor(E,J);f&&Object.defineProperty(L,J,f)}return L};
g.prototype.mixin=function(L,E){for(var y in E)L[y]=E[y];return L};
g.prototype.chainObject=function(L,E){L&&E&&L!==E&&(L.__proto__=E);return L};
g.prototype.instanceTemplate=function(L){L=this.constructor._contentForTemplate(L);return document.importNode(L,!0)};
g.prototype.fire=function(L,E,y){y=y||{};E=E===null||E===void 0?{}:E;L=new Event(L,{bubbles:y.bubbles===void 0?!0:y.bubbles,cancelable:!!y.cancelable,composed:y.composed===void 0?!0:y.composed});L.detail=E;(0,_.j7)(y.node||this).dispatchEvent(L);return L};
g.prototype.listen=function(L,E,y){L=L||this;var v=this.__boundListeners||(this.__boundListeners=new WeakMap),J=v.get(L);J||(J={},v.set(L,J));v=E+y;J[v]||(J[v]=this._addMethodEventListenerToNode(L,E,y,this))};
g.prototype.unlisten=function(L,E,y){L=L||this;var v=this.__boundListeners&&this.__boundListeners.get(L);y=E+y;var J=v&&v[y];J&&(this._removeEventListenerFromNode(L,E,J),v[y]=null)};
g.prototype.setScrollDirection=function(L,E){_.IK(E||this,Q[L]||"auto")};
g.prototype.$$=function(L){return this.root.querySelector(L)};
g.prototype.distributeContent=function(){var L=_.Eg(this);window.ShadyDOM&&L.shadowRoot&&ShadyDOM.flush()};
g.prototype.getEffectiveChildNodes=function(){return _.Eg(this).getEffectiveChildNodes()};
g.prototype.queryDistributedElements=function(L){return _.Eg(this).queryDistributedElements(L)};
g.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(L){return L.nodeType===Node.ELEMENT_NODE})};
g.prototype.getEffectiveTextContent=function(){for(var L=this.getEffectiveChildNodes(),E=[],y=0,v;v=L[y];y++)v.nodeType!==Node.COMMENT_NODE&&E.push(v.textContent);return E.join("")};
g.prototype.queryEffectiveChildren=function(L){return(L=this.queryDistributedElements(L))&&L[0]};
g.prototype.queryAllEffectiveChildren=function(L){return this.queryDistributedElements(L)};
g.prototype.getContentChildNodes=function(L){return(L=this.root.querySelector(L||"slot"))?_.Eg(L).getDistributedNodes():[]};
g.prototype.getContentChildren=function(L){return this.getContentChildNodes(L).filter(function(E){return E.nodeType===Node.ELEMENT_NODE})};
g.prototype.isLightDescendant=function(L){return this!==L&&(0,_.j7)(this).contains(L)&&(0,_.j7)(this).getRootNode()===(0,_.j7)(L).getRootNode()};
g.prototype.isLocalDescendant=function(L){return this.root===(0,_.j7)(L).getRootNode()};
g.prototype.scopeSubtree=function(L,E){return Tmq(L,E===void 0?!1:E)};
g.prototype.getComputedStyleValue=function(L){return JoH.getComputedStyleValue(this,L)};
g.prototype.debounce=function(L,E,y){this._debouncers=this._debouncers||{};return this._debouncers[L]=_.Tn(this._debouncers[L],y>0?_.Ih.after(y):iP,E.bind(this))};
g.prototype.isDebouncerActive=function(L){this._debouncers=this._debouncers||{};L=this._debouncers[L];return!(!L||!L.isActive())};
g.prototype.flushDebouncer=function(L){this._debouncers=this._debouncers||{};(L=this._debouncers[L])&&L.flush()};
g.prototype.cancelDebouncer=function(L){this._debouncers=this._debouncers||{};(L=this._debouncers[L])&&L.cancel()};
g.prototype.async=function(L,E){return E>0?_.Ih.run(L.bind(this),E):~iP.run(L.bind(this))};
g.prototype.cancelAsync=function(L){L<0?iP.cancel(~L):_.Ih.cancel(L)};
g.prototype.create=function(L,E){L=document.createElement(L);if(E)if(L.setProperties)L.setProperties(E);else for(var y in E)L[y]=E[y];return L};
g.prototype.elementMatches=function(L,E){return BOa(E||this,L)};
g.prototype.toggleAttribute=function(L,E){var y=this;arguments.length===3&&(y=arguments[2]);arguments.length==1&&(E=!y.hasAttribute(L));if(E)return(0,_.j7)(y).setAttribute(L,""),!0;(0,_.j7)(y).removeAttribute(L);return!1};
g.prototype.toggleClass=function(L,E,y){y=y||this;arguments.length==1&&(E=!y.classList.contains(L));E?y.classList.add(L):y.classList.remove(L)};
g.prototype.transform=function(L,E){E=E||this;E.style.webkitTransform=L;E.style.transform=L};
g.prototype.translate3d=function(L,E,y,v){this.transform("translate3d("+L+","+E+","+y+")",v||this)};
g.prototype.arrayDelete=function(L,E){if(Array.isArray(L)){if(E=L.indexOf(E),E>=0)return L.splice(E,1)}else if(E=DF(this,L).indexOf(E),E>=0)return this.splice(L,E,1);return null};
g.prototype._logger=function(L,E){Array.isArray(E)&&E.length===1&&Array.isArray(E[0])&&(E=E[0]);switch(L){case "log":case "warn":case "error":console[L].apply(console,_.na(E))}};
g.prototype._log=function(){this._logger("log",_.UT.apply(0,arguments))};
g.prototype._warn=function(){this._logger("warn",_.UT.apply(0,arguments))};
g.prototype._error=function(){this._logger("error",_.UT.apply(0,arguments))};
g.prototype._logf=function(L){return["[%s::%s]",this.is,L].concat(_.na(_.UT.apply(1,arguments)))};
_.z3.Object.defineProperties(g.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var L=(0,_.j7)(this).getRootNode();return L instanceof DocumentFragment?L.host:L}}});
_.z3.Object.defineProperties(g,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return KCH&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],WZF(this.prototype)),this.__observedAttributes):q.call(this).concat("disable-upgrade")}}});
g.prototype.is="";return g});Polymer.FlattenedNodesObserver=OEa;Polymer.DomApi=SiW;Polymer.EventApi=nA;Polymer.dom=_.Eg;Polymer.dom.matchesSelector=BOa;Polymer.dom.flush=_.xx;Polymer.dom.addDebouncer=_.hH;Polymer.DirMixin=qEZ;Polymer.RenderStatus={beforeNextRender:_.XMT,afterNextRender:_.xt,flush:function(){for(;m$J.length||Kf.length;)FES(m$J),FES(Kf);OY=!1}};Polymer.LegacyElementMixin=_.ug;var jT8;jT8=OF._mutablePropertyChange;var fab={properties:{mutableData:Boolean},_shouldPropertyChange:function(g,u,q){return jT8(this,g,u,q,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(g,u,q){return jT8(this,g,u,q,!0)}};
Polymer.OptionalMutableDataBehavior=fab;var Jy3={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},exh={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},t0J=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},exh),MyZ=(0,_.ug)(HTMLElement),It3=function(g,u){g||console.warn("Polymer.Class requires `info` argument");u=u?u(MyZ):MyZ;u=G0q(g,u,g.behaviors);u.is=u.prototype.is=
g.is;return u};Polymer.Class=It3;Polymer.mixinBehaviors=function(g,u){return G0q({},(0,_.ug)(u),g)};
Polymer.GenerateClassFromInfo=G0q;_.ys=function(g){var u=typeof g==="function"?g:_.ys.Class(g);g._legacyForceObservedAttributes&&(u.prototype._legacyForceObservedAttributes=g._legacyForceObservedAttributes);customElements.define(u.is,u);return u};
_.ys.Class=It3;Polymer._polymerFn=_.ys;var tyi=window.onLegacyPolymerFunctionDefinedCallback;tyi&&tyi();var CiM={templatize:function(g,u){this._templatizerTemplate=g;this.ctor=V8(g,this,{mutableData:!!u,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(g){return new this.ctor(g)},
modelForElement:function(g){return IPu(this._templatizerTemplate,g)}};Polymer.Templatizer=CiM;_.qI=(0,_.ug)(HTMLElement).prototype;Polymer.Base=_.qI;var Rxq=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.nf=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.A(_.nf,PolymerFakeBaseClass);var kt=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.A(kt,PolymerFakeBaseClass);var wHm=Symbol("Ud"),CMh=[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 eEx=eEx||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Gyo;(function(g){function u(O,W,x){var k=z.get(O);if(!k){if(!x)return;k=new F;z.set(O,k)}O=k.get(W);if(!O){if(!x)return;O=new F;k.set(W,O)}return O}
function q(O,W,x){if(Q(O,W,x))return!0;W=G(W);return W!==null?q(O,W,x):!1}
function Q(O,W,x){W=u(W,x,!1);return W===void 0?!1:!!W.has(O)}
function L(O,W,x){if(Q(O,W,x))return E(O,W,x);W=G(W);if(W!==null)return L(O,W,x)}
function E(O,W,x){W=u(W,x,!1);if(W!==void 0)return W.get(O)}
function y(O,W){var x=v(O,W);O=G(O);if(O===null)return x;var k=y(O,W);if(k.length<=0)return x;if(x.length<=0)return k;W=new V;O=[];x=_.N(x);for(var LZ=x.next();!LZ.done;LZ=x.next())LZ=LZ.value,W.has(LZ)||(W.add(LZ),O.push(LZ));x=_.N(k);for(k=x.next();!k.done;k=x.next())k=k.value,W.has(k)||(W.add(k),O.push(k));return O}
function v(O,W){O=u(O,W,!1);var x=[];O&&O.forEach(function(k,LZ){return x.push(LZ)});
return x}
function J(O){return O===void 0}
function f(O){return typeof O==="object"?O!==null:typeof O==="function"}
function t(O){return typeof O==="function"}
function e(O){return typeof O==="symbol"?O:String(O)}
function G(O){var W=Object.getPrototypeOf(O);if(typeof O!=="function"||O===d||W!==d)return W;var x=Object.getPrototypeOf(O.prototype);if(x==null||x===Object.prototype)return W;x=x.constructor;return typeof x!=="function"||x===O?W:x}
function R(){function O(){this._keys=[];this._values=[];this._cache=W}
var W={};O.prototype={get size(){return this._keys.length},has:function(x){return x===this._cache?!0:this._find(x)>=0?(this._cache=x,!0):!1},
get:function(x){var k=this._find(x);if(k>=0)return this._cache=x,this._values[k]},
set:function(x,k){this.delete(x);this._keys.push(x);this._values.push(k);this._cache=x;return this},
delete:function(x){x=this._find(x);return x>=0?(this._keys.splice(x,1),this._values.splice(x,1),this._cache=W,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=W},
forEach:function(x){for(var k=this.size,LZ=0;LZ<k;++LZ){var sb=this._keys[LZ],Rm=this._values[LZ];this._cache=sb;x.call(this,Rm,sb,this)}},
_find:function(x){for(var k=this._keys,LZ=k.length,sb=0;sb<LZ;++sb)if(k[sb]===x)return sb;return-1}};
return O}
function H(){function O(){this._map=new F}
O.prototype={get size(){return this._map.length},has:function(W){return this._map.has(W)},
add:function(W){this._map.set(W,W);return this},
delete:function(W){return this._map.delete(W)},
clear:function(){this._map.clear()},
forEach:function(W,x){this._map.forEach(W,x)}};
return O}
function l(){function O(){this._key=x()}
function W(tT,mJ){for(var hT=0;hT<mJ;++hT)tT[hT]=Math.random()*255|0}
function x(){do{if(LZ)var tT=LZ.randomBytes(16);else typeof Uint8Array==="function"?(tT=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(tT):W(tT,16)):(tT=Array(16),W(tT,16));tT[6]=tT[6]&79|64;tT[8]=tT[8]&191|128;for(var mJ="",hT=0;hT<16;++hT){var Yu=tT[hT];if(hT===4||hT===6||hT===8)mJ+="-";Yu<16&&(mJ+="0");mJ+=Yu.toString(16).toLowerCase()}tT="@@WeakMap@@"+mJ}while(sb.call(Rm,tT));Rm[tT]=!0;return tT}
function k(tT,mJ){if(!sb.call(tT,M3)){if(!mJ)return;Object.defineProperty(tT,M3,{value:Object.create(null)})}return tT[M3]}
var LZ=typeof global!=="undefined"&&typeof eEx==="object"&&typeof require==="function"&&require("crypto"),sb=Object.prototype.hasOwnProperty,Rm={},M3=x();O.prototype={has:function(tT){return(tT=k(tT,!1))?this._key in tT:!1},
get:function(tT){if(tT=k(tT,!1))return tT[this._key]},
set:function(tT,mJ){k(tT,!0)[this._key]=mJ;return this},
delete:function(tT){return(tT=k(tT,!1))&&this._key in tT?delete tT[this._key]:!1},
clear:function(){this._key=x()}};
return O}
var d=Object.getPrototypeOf(Function),F=typeof Map==="function"?Map:R(),V=typeof Set==="function"?Set:H(),z=new (typeof WeakMap==="function"?WeakMap:l());g.decorate=function(O,W,x,k){if(J(k)){if(J(x)){if(!Array.isArray(O))throw new TypeError;if(!t(W))throw new TypeError;for(x=O.length-1;x>=0;--x)if(k=(0,O[x])(W),!J(k)){if(!t(k))throw new TypeError;W=k}return W}if(!Array.isArray(O))throw new TypeError;if(!f(W))throw new TypeError;x=e(x);for(k=O.length-1;k>=0;--k)(0,O[k])(W,x)}else{if(Array.isArray(O))if(f(W)){if(J(x))throw new TypeError;
if(!f(k))throw new TypeError;}else throw new TypeError;else throw new TypeError;x=e(x);for(var LZ=O.length-1;LZ>=0;--LZ){var sb=(0,O[LZ])(W,x,k);if(!J(sb)){if(!f(sb))throw new TypeError;k=sb}}return k}};
g.metadata=function(O,W){return function(x,k){if(J(k)){if(!t(x))throw new TypeError;u(x,void 0,!0).set(O,W)}else{if(!f(x))throw new TypeError;k=e(k);u(x,k,!0).set(O,W)}}};
g.defineMetadata=function(O,W){var x;if(f(W))J(x)||(x=e(x));else throw new TypeError;u(W,x,!0).set("parameters",O)};
g.hasMetadata=function(O,W,x){if(f(W))J(x)||(x=e(x));else throw new TypeError;return q(O,W,x)};
g.hasOwnMetadata=function(O,W,x){if(f(W))J(x)||(x=e(x));else throw new TypeError;return Q(O,W,x)};
g.getMetadata=function(O,W,x){if(f(W))J(x)||(x=e(x));else throw new TypeError;return L(O,W,x)};
g.getOwnMetadata=function(O,W,x){if(f(W))J(x)||(x=e(x));else throw new TypeError;return E(O,W,x)};
g.getMetadataKeys=function(O,W){if(f(O))J(W)||(W=e(W));else throw new TypeError;return y(O,W)};
g.getOwnMetadataKeys=function(O,W){if(f(O))J(W)||(W=e(W));else throw new TypeError;return v(O,W)};
g.deleteMetadata=function(O,W,x){if(f(W))J(x)||(x=e(x));else throw new TypeError;var k=u(W,x,!1);if(!J(k)){if(!k.delete(O))return!1;if(k.size>0)return!0;O=z.get(W);O.delete(x);if(O.size>0)return!0;z.delete(W);return!0}};
(function(O){if(typeof O.Reflect!=="undefined"){if(O.Reflect!==g)for(var W in g)O.Reflect[W]=g[W]}else O.Reflect=g})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Gyo||(Gyo={}));var PBJ=self;var $Y$=[0,_.b$,_.mE,_.b$];var REb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(REb,_.fv);var w18=_.lO(REb,[0,_.WM,_.XE,$Y$,_.mE,_.h2]);var Hr$=[0,_.Tw,-3,_.h2,_.WM,_.b$,_.CO$,_.Tw,dko,lOn,l$,_.dm,_.b$,function(){return co5},
_.mE],co5=[0,_.XE,function(){return Hr$},
_.WM,14,_.Tw];_.TK(_.S7,_.Lh);_.P=_.S7.prototype;_.P.start=function(){this.stop();this.usingListeners_=!1;var g=Aoo(this),u=Zr8(this);g&&!u&&this.JSC$11624_win_.mozRequestAnimationFrame?(this.JSC$11624_id_=_.Z1(this.JSC$11624_win_,"MozBeforePaint",this.callback_),this.JSC$11624_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11624_id_=g&&u?g.call(this.JSC$11624_win_,this.callback_):this.JSC$11624_win_.setTimeout(USW(this.callback_),20)};
_.P.stop=function(){if(this.isActive()){var g=Aoo(this),u=Zr8(this);g&&!u&&this.JSC$11624_win_.mozRequestAnimationFrame?Qb(this.JSC$11624_id_):g&&u?u.call(this.JSC$11624_win_,this.JSC$11624_id_):this.JSC$11624_win_.clearTimeout(this.JSC$11624_id_)}this.JSC$11624_id_=null};
_.P.fire=function(){this.stop();this.JSC$11626_doAction_()};
_.P.isActive=function(){return this.JSC$11624_id_!=null};
_.P.JSC$11626_doAction_=function(){this.usingListeners_&&this.JSC$11624_id_&&Qb(this.JSC$11624_id_);this.JSC$11624_id_=null;this.JSC$11624_listener_.call(this.handler_,_.WK())};
_.P.disposeInternal=function(){this.stop();_.S7.superClass_.disposeInternal.call(this)};
var Aoo=function(g){g=g.JSC$11624_win_;return g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.oRequestAnimationFrame||g.msRequestAnimationFrame||null},Zr8=function(g){g=g.JSC$11624_win_;
return g.cancelAnimationFrame||g.cancelRequestAnimationFrame||g.webkitCancelRequestAnimationFrame||g.mozCancelRequestAnimationFrame||g.oCancelRequestAnimationFrame||g.msCancelRequestAnimationFrame||null};_.Kr=function(g,u,q){_.Lh.call(this);this.JSC$11627_listener_=q!=null?g.bind(q):g;this.JSC$11627_interval_=u;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11627_timer_=null};
_.A(_.Kr,_.Lh);_.P=_.Kr.prototype;_.P.fire=function(g){this.args_=arguments;this.JSC$11627_timer_||this.pauseCount_?this.shouldFire_=!0:la8(this)};
_.P.stop=function(){this.JSC$11627_timer_&&(_.Qq.clearTimeout(this.JSC$11627_timer_),this.JSC$11627_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.P.pause=function(){this.pauseCount_++};
_.P.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11627_timer_||(this.shouldFire_=!1,la8(this))};
_.P.disposeInternal=function(){_.Lh.prototype.disposeInternal.call(this);this.stop()};
var la8=function(g){g.JSC$11627_timer_=MP(function(){g.JSC$11627_timer_=null;g.shouldFire_&&!g.pauseCount_&&(g.shouldFire_=!1,la8(g))},g.JSC$11627_interval_);
var u=g.args_;g.args_=null;g.JSC$11627_listener_.apply(null,u)};var Iai=function(g,u){this.childIterator_=g[_.Qq.Symbol.iterator]();this.mapFn_=u};
Iai.prototype[Symbol.iterator]=function(){return this};
Iai.prototype.next=function(){var g=this.childIterator_.next();return{value:g.done?void 0:this.mapFn_.call(void 0,g.value),done:g.done}};
var irX=function(g,u){return new Iai(g,u)};var YQq={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 ONK=/#(.)(.)(.)/,rym=/^#(?:[0-9a-f]{3}){1,2}$/i,xHF=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var CF5={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},zk=CF5;zk=CF5;var DCf,brn,dYn;DCf=function(g,u){switch(u){case 1:return g%4!=0||g%100==0&&g%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
brn=function(g,u,q,Q,L){g=new Date(g,u,q);L=L||0;return g.valueOf()+(((Q!==void 0?Q:3)-L+7)%7-((g.getDay()+6)%7-L+7)%7)*864E5};
_.Qj=function(g,u,q){typeof g==="number"?(this.date=dYn(g,u||0,q||1),FyW(this,q||1)):_.zM(g)?(this.date=dYn(g.getFullYear(),g.getMonth(),g.getDate()),FyW(this,g.getDate())):(this.date=new Date(_.WK()),g=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),FyW(this,g))};
dYn=function(g,u,q){u=new Date(g,u,q);g>=0&&g<100&&u.setFullYear(u.getFullYear()-1900);return u};
_.P=_.Qj.prototype;_.P.firstDayOfWeek_=zk.FIRSTDAYOFWEEK;_.P.firstWeekCutOffDay_=zk.FIRSTWEEKCUTOFFDAY;_.P.clone=function(){var g=new _.Qj(this.date);g.firstDayOfWeek_=this.firstDayOfWeek_;g.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return g};
_.P.getFullYear=function(){return this.date.getFullYear()};
_.P.getYear=function(){return this.getFullYear()};
_.P.getMonth=function(){return this.date.getMonth()};
_.P.getDate=function(){return this.date.getDate()};
_.P.getTime=function(){return this.date.getTime()};
_.P.getDay=function(){return this.date.getDay()};
_.P.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.P.getUTCMonth=function(){return this.date.getUTCMonth()};
_.P.getUTCDate=function(){return this.date.getUTCDate()};
_.P.getUTCDay=function(){return this.date.getDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.P.set=function(g){this.date=new Date(g.getFullYear(),g.getMonth(),g.getDate())};
_.P.setFullYear=function(g){this.date.setFullYear(g)};
_.P.setYear=function(g){this.setFullYear(g)};
_.P.setMonth=function(g){this.date.setMonth(g)};
_.P.setDate=function(g){this.date.setDate(g)};
_.P.setTime=function(g){this.date.setTime(g)};
_.P.setUTCFullYear=function(g){this.date.setUTCFullYear(g)};
_.P.setUTCMonth=function(g){this.date.setUTCMonth(g)};
_.P.setUTCDate=function(g){this.date.setUTCDate(g)};
_.P.add=function(g){if(g.years||g.months){var u=this.getMonth()+g.months+g.years*12,q=this.getYear()+Math.floor(u/12);u%=12;u<0&&(u+=12);var Q=Math.min(DCf(q,u),this.getDate());this.setDate(1);this.setFullYear(q);this.setMonth(u);this.setDate(Q)}g.days&&(q=this.getYear(),u=q>=0&&q<=99?-1900:0,g=new Date((new Date(q,this.getMonth(),this.getDate(),12)).getTime()+g.days*864E5),this.setDate(1),this.setFullYear(g.getFullYear()+u),this.setMonth(g.getMonth()),this.setDate(g.getDate()),FyW(this,g.getDate()))};
_.P.JSC$11640_toIsoString=function(g){var u=this.getFullYear(),q=u<0?"-":u>=1E4?"+":"";return[q+_.np(Math.abs(u),q?6:4),_.np(this.getMonth()+1,2),_.np(this.getDate(),2)].join(g?"-":"")};
_.P.equals=function(g){return!(!g||this.getYear()!=g.getYear()||this.getMonth()!=g.getMonth()||this.getDate()!=g.getDate())};
_.P.toString=function(){return this.JSC$11640_toIsoString()};
var FyW=function(g,u){g.getDate()!=u&&g.date.setUTCHours(g.date.getUTCHours()+(g.getDate()<u?1:-1))};
_.Qj.prototype.valueOf=function(){return this.date.valueOf()};var Et=function(g,u,q,Q,L){this.reversed=!!u;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!q;g&&L8(this,g,Q);this.depth=L!=void 0?L:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.TK(Et,r2);var L8=function(g,u,q,Q){if(g.node=u)g.tagType=typeof q==="number"?q:g.node.nodeType!=1?0:g.reversed?-1:1;typeof Q==="number"&&(g.depth=Q)};
_.P=Et.prototype;_.P.JSC$11655_copyFrom=function(g){this.node=g.node;this.tagType=g.tagType;this.depth=g.depth;this.reversed=g.reversed;this.constrained=g.constrained};
_.P.clone=function(){return new Et(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.P.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Wt;var g=this.node;var u=this.reversed?-1:1;if(this.tagType==u){var q=this.reversed?g.lastChild:g.firstChild;q?L8(this,q):L8(this,g,u*-1)}else(q=this.reversed?g.previousSibling:g.nextSibling)?L8(this,q):L8(this,g.parentNode,u*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(g=this.node)?TG(g):Wt};
_.P.equals=function(g){return g.node==this.node&&(!this.node||g.tagType==this.tagType)};
_.P.splice=function(g){var u=this.node,q=this.reversed?1:-1;this.tagType==q&&(this.tagType=q*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Et.prototype.next.call(this);this.reversed=!this.reversed;q=_.xu(arguments[0])?arguments[0]:arguments;for(var Q=q.length-1;Q>=0;Q--)_.cH(q[Q],u);_.UU(u)};var mY0=function(){},PN=function(g){for(var u=[],q=g.getTextRangeCount(),Q=0;Q<q;Q++)u.push(g.getTextRange(Q));
return u};
mY0.prototype.isReversed=function(){return!1};
mY0.prototype.getWindow=function(){return jp(_.fH(this.JSC$11657_getStartNode()))};
var aaZ=function(g,u){Et.call(this,g,u,!0)};
_.TK(aaZ,Et);var NI=function(g,u,q,Q,L){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!L;if(g){this.startNode_=g;this.startOffset_=u;this.endNode_=q;this.endOffset_=Q;if(g.nodeType==1&&g.tagName!="BR")if(g=g.childNodes,u=g[u])this.startNode_=u,this.startOffset_=0;else{g.length&&(this.startNode_=_.dq(g));var E=!0}q.nodeType==1&&((this.endNode_=q.childNodes[Q])?this.endOffset_=0:this.endNode_=q)}Et.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);E&&this.next()};
_.TK(NI,aaZ);_.P=NI.prototype;_.P.JSC$11663_getStartNode=function(){return this.startNode_};
_.P.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)};
_.P.next=function(){return this.isLast()?Wt:NI.superClass_.next.call(this)};
_.P.JSC$11655_copyFrom=function(g){this.startNode_=g.startNode_;this.endNode_=g.endNode_;this.startOffset_=g.startOffset_;this.endOffset_=g.endOffset_;this.isReversed_=g.isReversed_;NI.superClass_.JSC$11655_copyFrom.call(this,g)};
_.P.clone=function(){var g=new NI(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);g.JSC$11655_copyFrom(this);return g};BXZ.prototype.__iterator__=function(){return new NI(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};_.TK(oK,BXZ);var VyX=function(g){var u=_.fH(g).createRange();if(g.nodeType==3)u.setStart(g,0),u.setEnd(g,g.length);else if($2(g)||g.nodeType==3){for(var q,Q=g;(q=Q.firstChild)&&($2(q)||q.nodeType==3);)Q=q;u.setStart(Q,0);for(Q=g;(q=Q.lastChild)&&($2(q)||q.nodeType==3);)Q=q;u.setEnd(Q,Q.nodeType==1?Q.childNodes.length:Q.length)}else q=g.parentNode,g=Array.prototype.indexOf.call(q.childNodes,g),u.setStart(q,g),u.setEnd(q,g+1);return u},X1x=function(g,u,q,Q){var L=_.fH(g).createRange();
L.setStart(g,u);L.setEnd(q,Q);return L};
_.P=oK.prototype;_.P.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.P.getContainer=function(){return this.range_.commonAncestorContainer};
_.P.compareBrowserRangeEndpoints=function(g,u,q){return this.range_.compareBoundaryPoints(q==1?u==1?_.Qq.Range.START_TO_START:_.Qq.Range.START_TO_END:u==1?_.Qq.Range.END_TO_START:_.Qq.Range.END_TO_END,g)};
_.P.isCollapsed=function(){return this.range_.collapsed};
_.P.select=function(g){this.selectInternal(jp(_.fH(this.range_.startContainer)).getSelection(),g)};
_.P.selectInternal=function(g){g.removeAllRanges();g.addRange(this.range_)};
_.P.insertNode=function(g,u){var q=this.range_.cloneRange();q.collapse(u);q.insertNode(g);q.detach();return g};
_.P.collapse=function(g){this.range_.collapse(g)};_.TK(UY,oK);UY.prototype.selectInternal=function(g,u){!u||this.isCollapsed()?UY.superClass_.selectInternal.call(this,g,u):(g.collapse(this.range_.endContainer,this.range_.endOffset),g.extend(this.range_.startContainer,this.range_.startOffset))};_.TK(gV,oK);gV.prototype.compareBrowserRangeEndpoints=function(g,u,q){return gV.superClass_.compareBrowserRangeEndpoints.call(this,g,u,q)};
gV.prototype.selectInternal=function(g,u){u?g.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):g.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var st=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},o2q;
_.TK(st,mY0);o2q=function(g,u){var q=new st;q.browserRangeWrapper_=g;q.isReversed_=!!u;return q};
_.roa=function(g){g=_.u6?new gV(VyX(g)):_.qM?new UY(VyX(g)):new oK(VyX(g));return o2q(g)};
_.EA=function(g,u,q,Q){var L=new st;L.isReversed_=SQF(g,u,q,Q);if(_.BD(g)&&!$2(g)){var E=g.parentNode;u=Array.prototype.indexOf.call(E.childNodes,g);g=E}_.BD(q)&&!$2(q)&&(E=q.parentNode,Q=Array.prototype.indexOf.call(E.childNodes,q),q=E);L.isReversed_?(L.startNode_=q,L.startOffset_=Q,L.endNode_=g,L.endOffset_=u):(L.startNode_=g,L.startOffset_=u,L.endNode_=q,L.endOffset_=Q);return L};
_.P=st.prototype;_.P.clone=function(){var g=new st;g.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();g.startNode_=this.startNode_;g.startOffset_=this.startOffset_;g.endNode_=this.endNode_;g.endOffset_=this.endOffset_;g.isReversed_=this.isReversed_;return g};
_.P.JSC$11657_getType=function(){return"text"};
_.P.getBrowserRangeObject=function(){return yj(this).range_};
_.P.getTextRangeCount=function(){return 1};
_.P.getTextRange=function(){return this};
var yj=function(g){var u;if(!(u=g.browserRangeWrapper_)){u=g.JSC$11657_getStartNode();var q=g.JSC$11657_getStartOffset(),Q=g.JSC$11657_getEndNode(),L=g.JSC$11657_getEndOffset();u=_.u6?new gV(X1x(u,q,Q,L)):_.qM?new UY(X1x(u,q,Q,L)):new oK(X1x(u,q,Q,L));u=g.browserRangeWrapper_=u}return u};
_.P=st.prototype;_.P.getContainer=function(){return yj(this).getContainer()};
_.P.JSC$11657_getStartNode=function(){return this.startNode_||(this.startNode_=yj(this).range_.startContainer)};
_.P.JSC$11657_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=yj(this).range_.startOffset};
_.P.JSC$11657_getEndNode=function(){return this.endNode_||(this.endNode_=yj(this).range_.endContainer)};
_.P.JSC$11657_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=yj(this).range_.endOffset};
_.P.isReversed=function(){return this.isReversed_};
_.P.JSC$11657_containsRange=function(g,u){if(g.JSC$11657_getType()=="text"){var q=yj(this);g=yj(g);u=u&&!g.isCollapsed();g=g.range_;q=u?q.compareBrowserRangeEndpoints(g,0,1)>=0&&q.compareBrowserRangeEndpoints(g,1,0)<=0:q.compareBrowserRangeEndpoints(g,0,0)>=0&&q.compareBrowserRangeEndpoints(g,1,1)<=0}else q=!1;return q};
_.P.isCollapsed=function(){return yj(this).isCollapsed()};
_.P.JSC$11657_getText=function(){return yj(this).range_.toString()};
_.P.__iterator__=function(){return new NI(this.JSC$11657_getStartNode(),this.JSC$11657_getStartOffset(),this.JSC$11657_getEndNode(),this.JSC$11657_getEndOffset())};
_.P.select=function(){yj(this).select(this.isReversed_)};
_.P.JSC$11657_removeContents=function(){var g=yj(this).range_;g.extractContents();if(g.startContainer.hasChildNodes()&&(g=g.startContainer.childNodes[g.startOffset])){var u=g.previousSibling;xin(g)==""&&_.UU(g);u&&xin(u)==""&&_.UU(u)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.P.insertNode=function(g,u){g=yj(this).insertNode(g,u);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return g};
_.P.collapse=function(g){g=this.isReversed()?!g:g;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(g);g?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Wy$=function(){};
_.TK(Wy$,mY0);Wy$.prototype.JSC$11657_containsRange=function(g,u){var q=PN(this);g=PN(g);return(u?TX:_.cAK)(g,function(Q){return TX(q,function(L){return L.JSC$11657_containsRange(Q,u)})})};
Wy$.prototype.insertNode=function(g,u){u?_.wX(g,this.JSC$11657_getStartNode()):_.cH(g,this.JSC$11657_getEndNode());return g};var TL0,hE8=LH().JSC$9633_document_.documentElement;TL0=hE8.requestFullscreen?"fullscreenchange":hE8.webkitRequestFullscreen?"webkitfullscreenchange":hE8.mozRequestFullScreen?"mozfullscreenchange":hE8.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Ld=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.TK(Ld,Wy$);_.P=Ld.prototype;_.P.clone=function(){var g=new Ld;g.browserRanges_=_.Ob(this.browserRanges_);return g};
_.P.JSC$11657_getType=function(){return"mutli"};
_.P.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.P.getTextRangeCount=function(){return this.browserRanges_.length};
_.P.getTextRange=function(g){this.ranges_[g]||(this.ranges_[g]=o2q(zxJ(this.browserRanges_[g])));return this.ranges_[g]};
_.P.getContainer=function(){if(!this.container_){for(var g=[],u=this.getTextRangeCount(),q=0;q<u;q++)g.push(this.getTextRange(q).getContainer());this.container_=rk$.apply(null,g)}return this.container_};
var vN=function(g){g.sortedRanges_||(g.sortedRanges_=PN(g),g.sortedRanges_.sort(function(u,q){var Q=u.JSC$11657_getStartNode();u=u.JSC$11657_getStartOffset();var L=q.JSC$11657_getStartNode();q=q.JSC$11657_getStartOffset();return Q==L&&u==q?0:SQF(Q,u,L,q)?1:-1}));
return g.sortedRanges_};
_.P=Ld.prototype;_.P.JSC$11657_getStartNode=function(){return vN(this)[0].JSC$11657_getStartNode()};
_.P.JSC$11657_getStartOffset=function(){return vN(this)[0].JSC$11657_getStartOffset()};
_.P.JSC$11657_getEndNode=function(){return _.dq(vN(this)).JSC$11657_getEndNode()};
_.P.JSC$11657_getEndOffset=function(){return _.dq(vN(this)).JSC$11657_getEndOffset()};
_.P.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.P.JSC$11657_getText=function(){return PN(this).map(function(g){return g.JSC$11657_getText()}).join("")};
_.P.__iterator__=function(){return new DS(this)};
_.P.select=function(){var g=this.getWindow().getSelection();g.removeAllRanges();for(var u=this.getTextRangeCount(),q=0;q<u;q++)g.addRange(this.getTextRange(q).getBrowserRangeObject())};
_.P.JSC$11657_removeContents=function(){PN(this).forEach(function(g){g.JSC$11657_removeContents()})};
_.P.collapse=function(g){if(!this.isCollapsed()){var u=g?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;u.collapse(g);this.ranges_=[u];this.sortedRanges_=[u];this.browserRanges_=[u.getBrowserRangeObject()]}};
var DS=function(g){this.iterators_=null;this.currentIdx_=0;g&&(this.iterators_=vN(g).map(function(u){return _.Df8(u)}));
Et.call(this,g?this.JSC$11663_getStartNode():null,!1,!0)};
_.TK(DS,aaZ);_.P=DS.prototype;_.P.JSC$11663_getStartNode=function(){return this.iterators_[0].JSC$11663_getStartNode()};
_.P.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.P.next=function(){for(;this.currentIdx_<this.iterators_.length;){var g=this.iterators_[this.currentIdx_],u=g.next();if(u.done)this.currentIdx_++;else return L8(this,g.node,g.tagType,g.depth),u}return Wt};
_.P.JSC$11655_copyFrom=function(g){this.iterators_=_.Ob(g.iterators_);DS.superClass_.JSC$11655_copyFrom.call(this,g)};
_.P.clone=function(){var g=new DS(null);g.JSC$11655_copyFrom(this);return g};var p8=function(){_.A5.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.EH)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.EH)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.EH)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.EH)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.EH)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.EH)(this.dispatchProgressEvent_,this)};
_.TK(p8,_.A5);p8.prototype.abort=function(){try{this.reader_.abort()}catch(g){throw new f4i(g,"aborting read");}};
p8.prototype.getError=function(){return this.reader_.error&&new f4i(this.reader_.error,"reading file")};
p8.prototype.dispatchProgressEvent_=function(g){this.dispatchEvent(new DTu(g,this))};
p8.prototype.disposeInternal=function(){p8.superClass_.disposeInternal.call(this);delete this.reader_};
var OrZ=function(g){var u=new p8,q=YE$(u);u.reader_.readAsArrayBuffer(g);return q},Kya=function(g){var u=new p8,q=YE$(u);
u.reader_.readAsDataURL(g);return q},YE$=function(g){var u=new D1;
g.listen("loadend",_.uH(function(q,Q){var L=Q.reader_.result,E=Q.getError();L==null||E?q.errback(E):q.callback(L);Q.dispose()},u,g));
return u};var Jm=function(){_.A5.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11697_eventHandler_=new _.NV(this);this.JSC$11697_isInitialized_=!1};
_.TK(Jm,_.A5);var xY2=new _.NP("d"),BL5=new _.NP("beforedragstart"),zE2=new _.NP("dragstart"),nHZ=new _.NP("beforedragmove"),kyX=new _.NP("dragmove"),SE0=new _.NP("beforedragend"),oH5=new _.NP("dragend"),UYW=new _.NP("e");Jm.prototype.isDragging=function(){return!!this.JSC$11697_dragger_};
var gq5=function(g,u){u.dlgGrowthDirection_=0;u.dlgDragHoverClass_=void 0;u.dlgDragPermission=0;g.dragLists_.push(u)},u0o=function(g,u){g.getHandleForDragItem_=u};
Jm.prototype.init=function(){if(!this.JSC$11697_isInitialized_){for(var g=this.dragLists_.length,u=0;u<g;u++)for(var q=_.HH(this.dragLists_[u]),Q=q.length,L=0;L<Q;++L){var E=q[L],y=this.getHandleForDragItem_(E),v=_.ku(y);this.dragItemForHandle_[v]=E;this.dragItemHoverClasses_&&(this.JSC$11697_eventHandler_.listen(E,"mouseover",this.handleDragItemMouseover_),this.JSC$11697_eventHandler_.listen(E,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11697_eventHandler_.listen(y,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11697_eventHandler_.listen(y,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(E);this.JSC$11697_eventHandler_.listen(y,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11697_isInitialized_=!0}};
Jm.prototype.disposeInternal=function(){this.JSC$11697_eventHandler_.dispose();for(var g=this.dragLists_.length,u=0;u<g;u++){var q=this.dragLists_[u];q.dlgGrowthDirection_=void 0;q.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;qpR(this);Jm.superClass_.disposeInternal.call(this)};
var Q92=function(g,u){for(var q=g.dragLists_.length,Q=0;Q<q;Q++){var L=g.dragLists_[Q];L.dlgBounds_=gkF(L)}q=g.dragItems_.length;for(Q=0;Q<q;Q++)L=g.dragItems_[Q],L!=u&&(L.dlgBounds_=gkF(L))};
_.P=Jm.prototype;
_.P.handlePotentialDragStart_=function(g){var u=_.ku(g.currentTarget);u=this.dragItemForHandle_[u];if(u.parentElement.dlgDragPermission!=2){this.currDragItem_=u;a:{u=this.currDragItem_;for(var q=u.cloneNode(!0),Q=uv("TEXTAREA",u),L=uv("TEXTAREA",q),E=0;E<Q.length;E++)L[E].value=Q[E].value;switch(u.tagName){case "TR":u=_.e0("TABLE",null,_.e0("TBODY",null,q));break a;case "TD":case "TH":u=_.e0("TABLE",null,_.e0("TBODY",null,_.e0("TR",null,q)));break a;case "TEXTAREA":q.value=u.value;default:u=q;break a}u=
void 0}this.draggerEl_=u;this.draggerElClasses_&&Fy(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.fH(this.currDragItem_).body.appendChild(this.draggerEl_);q=_.Mi(this.currDragItem_);u=this.draggerEl_;Q=_.Mi(u);if(q instanceof _.l7){var y=q.y;q=q.x}IA(u,u.offsetLeft+(q-Q.x),u.offsetTop+(Number(y)-Q.y));this.JSC$11697_dragger_=new _.GG(this.draggerEl_);_.cgW(this.JSC$11697_dragger_,this.hysteresisDistance_);
_.Z1(this.JSC$11697_dragger_,"start",this.handleDragStart_,!1,this);_.Z1(this.JSC$11697_dragger_,"end",this.handleDragEnd_,!1,this);_.Z1(this.JSC$11697_dragger_,"earlycancel",this.JSC$11699_cleanup_,!1,this);this.dispatchEvent(new je(xY2,this,g,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_));this.JSC$11697_dragger_.startDrag(g)}};
_.P.handleDragStart_=function(g){if(this.dispatchEvent(new je(BL5,this,g.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.aWa(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Fy(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var u=o$X(this.draggerEl_);this.draggerEl_.halfWidth=u.width/2;this.draggerEl_.halfHeight=u.height/2;u=this.draggerEl_.getBoundingClientRect();
var q=g.clientY,Q=HdZ(this.JSC$11697_dragger_,g.clientX);if(Q>u.right){var L=this.currDragItem_.getBoundingClientRect();this.JSC$11697_dragger_.deltaX=Q-(Q-L.left)/L.width*u.width}q=AgR(this.JSC$11697_dragger_,q);q>u.bottom&&(this.JSC$11697_dragger_.deltaY+=q-u.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Q92(this,this.currDragItem_);this.currDragItem_.style.display="";_.Z1(this.JSC$11697_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new je(zE2,
this,g.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_))}else g.preventDefault(),this.JSC$11699_cleanup_()};
_.P.handleDragMove_=function(g){var u=_.Mi(this.draggerEl_);u=new _.l7(u.x+this.draggerEl_.halfWidth,u.y+this.draggerEl_.halfHeight);a:{var q=null;if(this.currDragItem_.style.display!="none"){q=this.currDragItem_.parentNode;var Q=gkF(q);if(LHa(u,Q))break a}Q=this.dragLists_.length;for(var L=0;L<Q;L++){var E=this.dragLists_[L];if(E!=q&&LHa(u,E.dlgBounds_)){q=E;break a}}q=null}if(q){if(q==null)throw Error("be");Q=0;L=!1;E=void 0;switch(q.dlgGrowthDirection_){case 0:Q=u.y;var y=EqW;var v=PaZ;break;case 4:L=
!0;case 2:Q=u.x;y=NvH;v=PaZ;break;case 5:L=!0;case 3:Q=u.x,y=s9R,v=y9o}for(var J=null,f,t=_.HH(q),e=t.length,G=0;G<e;G++){var R=t[G];if(R!=this.currDragItem_){var H=y(R.dlgBounds_);if(L){var l=vqo(R,u);E===void 0&&(E=l);v(Q,H)&&(f==void 0||l<E||l==E&&(v(H,f)||H==f))&&(J=R,f=H);l<E&&(E=l)}else v(Q,H)&&(f==void 0||v(H,f))&&(J=R,f=H)}}y=J!==null&&vqo(J,u)>E?null:J}else y=null;if(!this.dispatchEvent(new je(nHZ,this,g,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_,u,q,y)))return!1;if(q&&q.dlgDragPermission!=
1)this.currDragItem_.parentNode==q&&_.aWa(this.currDragItem_)==y||q.insertBefore(this.currDragItem_,y),this.currDragItem_.style.display="",q.dlgDragHoverClass_&&_.Za(q,q.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",v=this.dragLists_.length,f=0;f<v;f++)Q=this.dragLists_[f],Q.dlgDragHoverClass_&&_.Ao(Q,Q.dlgDragHoverClass_);q!=this.currHoverList_&&(this.currHoverList_=q,Q92(this,this.currDragItem_));this.dispatchEvent(new je(kyX,this,g,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_,
u,q,y));return!1};
_.P.JSC$11699_cleanup_=function(){qpR(this);this.JSC$11697_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var g=this.dragLists_.length,u=0;u<g;u++)this.dragLists_[u].dlgBounds_=null;g=this.dragItems_.length;for(u=0;u<g;u++)this.dragItems_[u].dlgBounds_=null};
_.P.handleDragEnd_=function(g){if(!this.dispatchEvent(new je(SE0,this,g,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_)))return!1;qpR(this);this.dispatchEvent(new je(oH5,this,g,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_));this.JSC$11699_cleanup_();return!0};
var qpR=function(g){_.Fo(g.JSC$11697_dragger_);var u=g.draggerEl_&&g.draggerEl_.parentElement;g.draggerEl_&&_.UU(g.draggerEl_);g.currDragItem_&&g.currDragItem_.style.display=="none"&&(g.origList_.insertBefore(g.currDragItem_,g.origNextItem_),g.currDragItem_.style.display="");g.currDragItemClasses_&&g.currDragItem_?iB8(g.currDragItem_,g.currDragItemClasses_||[]):g.currDragItem_&&(g.currDragItem_.style.visibility="");for(var q=g.dragLists_.length,Q=0;Q<q;Q++){var L=g.dragLists_[Q];L.dlgDragHoverClass_&&
_.Ao(L,L.dlgDragHoverClass_)}u&&g.dispatchEvent(new je(UYW,g,null,g.currDragItem_,g.draggerEl_,g.JSC$11697_dragger_))};
_.P=Jm.prototype;_.P.getHandleForDragItem_=function(g){return g};
_.P.handleDragItemMouseover_=function(g){Fy(g.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemMouseout_=function(g){iB8(g.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemHandleMouseover_=function(g){Fy(g.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.P.handleDragItemHandleMouseout_=function(g){iB8(g.currentTarget,this.dragItemHandleHoverClasses_||[])};
var LHa=function(g,u){return g.x>u.left&&g.x<u.left+u.width&&g.y>u.top&&g.y<u.top+u.height},vqo=function(g,u){g=g.dlgBounds_;
return Math.abs(u.y-(g.top+(g.height-1)/2))},EqW=function(g){return g.top+g.height-1},NvH=function(g){return g.left+g.width-1},s9R=function(g){return g.left||0},PaZ=function(g,u){return g<u},y9o=function(g,u){return g>u},je=function(g,u,q,Q,L,E){_.YF.call(this,g);
this.event=q;this.currDragItem=Q;this.draggerEl=L;this.JSC$11701_dragger=E};
_.TK(je,_.YF);_.TK(sA,_.Lh);var Dyb=new _.l7(0,0);sA.prototype.JSC$11705_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
sA.prototype.JSC$11705_onMouseMove=function(g){var u=this.containerIsActuallyContent_?Dyb:Qu(LH(this.containerNode_)),q=this.horizontalScrolling_?this.calculateScrollDelta(g.clientX+u.x,this.scrollBounds_.left,this.scrollBounds_.width):0,Q=this.calculateScrollDelta(g.clientY+u.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=q;this.scrollDelta_.y=Q;!(q=!q&&!Q)&&(q=this.constrainScroll_)&&(q=g.clientX+u.x,g=g.clientY+u.y,u=this.containerBounds_,q=!(u.left<=q&&u.left+u.width>=
q&&u.top<=g&&u.top+u.height>=g));q?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
sA.prototype.calculateScrollDelta=function(g,u,q){var Q=0;g<u?Q=-8:g>u+q&&(Q=8);return Q};
sA.prototype.disposeInternal=function(){sA.superClass_.disposeInternal.call(this);this.JSC$11703_eventHandler_.dispose();this.scrollTimer_.dispose()};var peX={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"}}},f8=peX;f8=peX;var MI={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 Zs=function(g){if(typeof g=="number"){var u=new uy3;u.standardOffset_=g;var q=g;if(q==0)q="Etc/GMT";else{var Q=["Etc/GMT",q<0?"-":"+"];q=Math.abs(q);Q.push(Math.floor(q/60)%100);q%=60;q!=0&&Q.push(":",_.np(q,2));q=Q.join("")}u.timeZoneId_=q;q=g;q==0?q="UTC":(Q=["UTC",q<0?"+":"-"],q=Math.abs(q),Q.push(Math.floor(q/60)%100),q%=60,q!=0&&Q.push(":",q),q=Q.join(""));g=J92(g);u.tzNames_=[q,q];u.tzNamesExt_={STD_LONG_NAME_GMT:g,STD_GENERIC_LOCATION:g};u.transitions_=[];return u}u=new uy3;u.timeZoneId_=
g.id;u.standardOffset_=-g.std_offset;u.tzNames_=g.names;u.tzNamesExt_=g.names_ext;u.transitions_=g.transitions;return u},J92=function(g){var u=["GMT"];
u.push(g<=0?"+":"-");g=Math.abs(g);u.push(_.np(Math.floor(g/60)%100,2),":",_.np(g%60,2));return u.join("")},j9R=function(g,u){u=Date.UTC(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate(),u.getUTCHours(),u.getUTCMinutes())/36E5;
for(var q=0;q<g.transitions_.length&&u>=g.transitions_[q];)q+=2;return q==0?0:g.transitions_[q-1]},fco=function(g,u){g=g.standardOffset_-j9R(g,u);
return g===-1440?0:g};var lR=function(g,u){this.patternParts_=[];this.JSC$11716_dateTimeSymbols_=u||zk;typeof g=="number"?MTZ(this,g):tT0(this,g)},eGZ=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],tm=function(g){return g.getHours?g.getHours():0},tT0=function(g,u){for(XyK&&(u=u.replace(/\u200f/g,""));u;){for(var q=u,Q=0;Q<eGZ.length;++Q){var L=u.match(eGZ[Q]);
if(L){var E=L[0];u=u.substring(E.length);Q==0&&(E=="''"?E="'":(E=E.substring(1,L[1]=="'"?E.length-1:E.length),E=E.replace(/''/g,"'")));g.patternParts_.push({text:E,type:Q});break}}if(q===u)throw Error("ce`"+u);}};
lR.prototype.format=function(g,u){if(!g)throw Error("de");var q=u?(g.getTimezoneOffset()-fco(u,g))*6E4:0,Q=q?new Date(g.getTime()+q):g,L=Q;u&&Q.getTimezoneOffset()!=g.getTimezoneOffset()&&(Q=new Date(Q.getTime()+(Q.getTimezoneOffset()-g.getTimezoneOffset())*6E4),L=new Date(g.getTime()+(q+(q>0?-864E5:864E5))));q=[];for(var E=0;E<this.patternParts_.length;++E){var y=this.patternParts_[E].text;1==this.patternParts_[E].type?q.push(GcR(this,y,g,Q,L,u)):q.push(y)}return q.join("")};
var MTZ=function(g,u){if(u<4)var q=g.JSC$11716_dateTimeSymbols_.DATEFORMATS[u];else if(u<8)q=g.JSC$11716_dateTimeSymbols_.TIMEFORMATS[u-4];else if(u<12)q=g.JSC$11716_dateTimeSymbols_.DATETIMEFORMATS[u-8],q=q.replace("{1}",g.JSC$11716_dateTimeSymbols_.DATEFORMATS[u-8]),q=q.replace("{0}",g.JSC$11716_dateTimeSymbols_.TIMEFORMATS[u-8]);else if(u===12)q=g.JSC$11716_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(u===13)q=g.JSC$11716_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{MTZ(g,10);return}tT0(g,q)},$I=function(g,u){u=String(u);
g=g.JSC$11716_dateTimeSymbols_||zk;if(g.ZERODIGIT!==void 0&&!Vt3){for(var q=[],Q=0;Q<u.length;Q++){var L=u.charCodeAt(Q);q.push(48<=L&&L<=57?String.fromCharCode(g.ZERODIGIT+L-48):u.charAt(Q))}u=q.join("")}return u},Vt3=!1,XyK=!1,RGX=function(g,u,q,Q){q=q.getFullYear();
q<=0&&Q&&(q=1-q);return $I(g,$y8(q,u))},$y8=function(g,u){u==2&&(g%=100);
g<0&&u++;return _.np(g,u)},Rx=function(g){if(!(g.getHours&&g.getSeconds&&g.getMinutes))throw Error("ee");
},weX=function(g,u){Rx(u);
u=tm(u);return g.JSC$11716_dateTimeSymbols_.AMPMS[u>=12&&u<24?1:0]},GcR=function(g,u,q,Q,L,E){var y=u.length;
switch(u.charAt(0)){case "G":return q=Q.getFullYear()>0?1:0,y>=4?g.JSC$11716_dateTimeSymbols_.ERANAMES[q]:g.JSC$11716_dateTimeSymbols_.ERAS[q];case "y":return RGX(g,y,Q,!0);case "Y":return q=(new Date(brn(Q.getFullYear(),Q.getMonth(),Q.getDate(),g.JSC$11716_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,g.JSC$11716_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),y==2&&(q%=100),$I(g,$y8(q,y));case "u":return RGX(g,y,Q,!1);case "M":a:switch(q=Q.getMonth(),y){case 5:y=g.JSC$11716_dateTimeSymbols_.NARROWMONTHS[q];
break a;case 4:y=g.JSC$11716_dateTimeSymbols_.MONTHS[q];break a;case 3:y=g.JSC$11716_dateTimeSymbols_.SHORTMONTHS[q];break a;default:y=$I(g,_.np(q+1,y))}return y;case "k":return Rx(L),$I(g,_.np(tm(L)||24,y));case "S":return $I(g,(L.getMilliseconds()/1E3).toFixed(Math.min(3,y)).slice(2)+(y>3?_.np(0,y-3):""));case "E":return q=Q.getDay(),y>=4?g.JSC$11716_dateTimeSymbols_.WEEKDAYS[q]:g.JSC$11716_dateTimeSymbols_.SHORTWEEKDAYS[q];case "a":return weX(g,L);case "b":return weX(g,L);case "B":return weX(g,
L);case "h":return Rx(L),$I(g,_.np(tm(L)%12||12,y));case "K":return Rx(L),$I(g,_.np(tm(L)%12,y));case "H":return Rx(L),$I(g,_.np(tm(L),y));case "c":a:switch(q=Q.getDay(),y){case 5:y=g.JSC$11716_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[q];break a;case 4:y=g.JSC$11716_dateTimeSymbols_.STANDALONEWEEKDAYS[q];break a;case 3:y=g.JSC$11716_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[q];break a;default:y=$I(g,_.np(q,1))}return y;case "L":a:switch(q=Q.getMonth(),y){case 5:y=g.JSC$11716_dateTimeSymbols_.STANDALONENARROWMONTHS[q];
break a;case 4:y=g.JSC$11716_dateTimeSymbols_.STANDALONEMONTHS[q];break a;case 3:y=g.JSC$11716_dateTimeSymbols_.STANDALONESHORTMONTHS[q];break a;default:y=$I(g,_.np(q+1,y))}return y;case "Q":return q=Math.floor(Q.getMonth()/3),y<4?g.JSC$11716_dateTimeSymbols_.SHORTQUARTERS[q]:g.JSC$11716_dateTimeSymbols_.QUARTERS[q];case "d":return $I(g,_.np(Q.getDate(),y));case "m":return Rx(L),$I(g,_.np(L.getMinutes?L.getMinutes():0,y));case "s":return Rx(L),$I(g,_.np(L.getSeconds(),y));case "v":return(E||Zs(q.getTimezoneOffset())).timeZoneId_;
case "V":return g=E||Zs(q.getTimezoneOffset()),y<=2?g.timeZoneId_:j9R(g,q)>0?g.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?g.tzNamesExt_.DST_GENERIC_LOCATION:g.tzNamesExt_.DST_GENERIC_LOCATION:g.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?g.tzNamesExt_.STD_GENERIC_LOCATION:g.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return q=brn(L.getFullYear(),L.getMonth(),L.getDate(),g.JSC$11716_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,g.JSC$11716_dateTimeSymbols_.FIRSTDAYOFWEEK),$I(g,_.np(Math.floor(Math.round((q-(new Date((new Date(q)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,y));case "z":return g=E||Zs(q.getTimezoneOffset()),y<4?g.tzNames_[j9R(g,q)>0?2:0]:g.tzNames_[j9R(g,q)>0?3:1];case "Z":return u=E||Zs(q.getTimezoneOffset()),y<4?(y=-fco(u,q),g=[y<0?"-":"+"],y=Math.abs(y),g.push(_.np(Math.floor(y/60)%100,2),_.np(y%60,2)),y=g.join("")):y=$I(g,J92(fco(u,q))),y;default:return""}};var c9n=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,HeX=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,VqF=function(g){this.patternParts_=[];this.JSC$11725_dateTimeSymbols_=zk;if(typeof g=="number"){g>11&&(g=10);if(g<4)var u=this.JSC$11725_dateTimeSymbols_.DATEFORMATS[g];else g<8?u=this.JSC$11725_dateTimeSymbols_.TIMEFORMATS[g-4]:(u=this.JSC$11725_dateTimeSymbols_.DATETIMEFORMATS[g-8],u=u.replace("{1}",this.JSC$11725_dateTimeSymbols_.DATEFORMATS[g-8]),u=u.replace("{0}",this.JSC$11725_dateTimeSymbols_.TIMEFORMATS[g-
8]));A98(this,u)}else A98(this,g)},A98=function(g,u){for(var q=!1,Q="",L=0;L<u.length;L++){var E=u.charAt(L);
if(c9n.test(E))for(Q.length>0&&(g.patternParts_.push({text:Q,count:0,abutStart:!1,numeric:!1}),Q=""),g.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});L<u.length-1&&u.charAt(L+1)==" ";)L++;else if(q)E=="'"?L+1<u.length&&u.charAt(L+1)=="'"?(Q+="'",L++):q=!1:Q+=E;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(E)>=0){Q.length>0&&(g.patternParts_.push({text:Q,count:0,abutStart:!1,numeric:!1}),Q="");for(var y=u.charAt(L),v=L+1;v<u.length&&u.charAt(v)==y;)v++;y=v-L;y<=0?v=!1:(v="MydhHmsSDkK".indexOf(E),
v=v>0||v==0&&y<3);g.patternParts_.push({text:E,count:y,abutStart:!1,numeric:v});L+=y-1}else E=="'"?L+1<u.length&&u.charAt(L+1)=="'"?(Q+="'",L++):q=!0:Q+=E}Q.length>0&&g.patternParts_.push({text:Q,count:0,abutStart:!1,numeric:!1});u=!1;for(q=0;q<g.patternParts_.length;q++)g.patternParts_[q].numeric?!u&&q+1<g.patternParts_.length&&g.patternParts_[q+1].numeric&&(u=!0,g.patternParts_[q].abutStart=!0):u=!1};
VqF.prototype.parse=function(g,u,q){var Q=!1,L=!1;q&&(Q=q.predictive||!1,L=q.validate||!1);if(Q)for(q=0;q<this.patternParts_.length;q++){var E=this.patternParts_[q];if(E.count>0&&("abBhHkKm".indexOf(E.text.charAt(0))<0||E.count>2||E.abutStart))throw Error("fe`"+E.text.charAt(0));}E=new Ze0;q=[0];E.dayPeriodIndex=-1;for(var y=0;y<this.patternParts_.length&&!(Q&&q[0]>=g.length);y++){if(this.patternParts_[y].count==0){a:{var v=g;var J=q,f=this.patternParts_[y],t=Q;if(f.text.match(c9n)!=null){if(f=J[0],
lca(v,J),J[0]>f){v=!0;break a}}else{if(v.indexOf(f.text,J[0])==J[0]){J[0]+=f.text.length;v=!0;break a}if(t&&f.text.indexOf(v.substring(J[0]))==0){J[0]+=v.length-J[0];v=!0;break a}}v=!1}if(v)continue;return 0}if(this.patternParts_[y].abutStart){a:{J=g;f=q;t=y;var e=f[0],G=0;for(v=t;v<this.patternParts_.length;v++){var R=this.patternParts_[v],H=R.count;if(H===0)break;if(v==t&&(H-=G,G++,H==0)){v=0;break a}var l=v>t&&R.numeric,d=f[0];if(!Icb(this,J,f,R,H,E,!1)||l&&f[0]-d<H)v=t-1,f[0]=e}v-=t}if(v<=0)return 0;
y+=v-1}else if(!Icb(this,g,q,this.patternParts_[y],0,E,Q))return 0}a:{g=L;if(u==null)throw Error("ge");E.era!=void 0&&E.year!=void 0&&E.era==0&&E.year>0&&(E.year=-(E.year-1));E.year!=void 0&&u.setFullYear(E.year);Q=u.getDate();u.setDate(1);E.month!=void 0&&u.setMonth(E.month);E.day!=void 0?u.setDate(E.day):(L=DCf(u.getFullYear(),u.getMonth()),u.setDate(Q>L?L:Q));typeof u.setHours==="function"&&(E.hours==void 0&&(E.hours=u.getHours()),E.hours<12&&(E.ampm!=void 0&&E.ampm>0?E.hours+=12:E.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(E.dayPeriodName)||["night1","night2"].includes(E.dayPeriodName)&&E.hours>=6)&&(E.hours+=12)),u.setHours(E.hours));typeof u.setMinutes==="function"&&E.minutes!=void 0&&u.setMinutes(E.minutes);typeof u.setSeconds==="function"&&E.seconds!=void 0&&u.setSeconds(E.seconds);typeof u.setMilliseconds==="function"&&E.milliseconds!=void 0&&u.setMilliseconds(E.milliseconds);if(g&&(E.year&&E.year!=u.getFullYear()||E.month&&E.month!=
u.getMonth()||E.day&&E.day!=u.getDate()||E.hours&&E.hours>=24||E.minutes&&E.minutes>=60||E.seconds&&E.seconds>=60||E.milliseconds&&E.milliseconds>=1E3))u=!1;else{E.tzOffset!=void 0&&u.setTime(u.getTime()+(E.tzOffset-u.getTimezoneOffset())*60*1E3);E.ambiguousYear&&(g=new Date,g.setFullYear(g.getFullYear()-80),u.getTime()<g.getTime()&&u.setFullYear(g.getFullYear()+100));if(E.dayOfWeek!=void 0)if(E.day==void 0)E=(7+E.dayOfWeek-u.getDay())%7,E>3&&(E-=7),g=u.getMonth(),u.setDate(u.getDate()+E),u.getMonth()!=
g&&u.setDate(u.getDate()+(E>0?-7:7));else if(E.dayOfWeek!=u.getDay()){u=!1;break a}u=!0}}return u?q[0]:0};
var Icb=function(g,u,q,Q,L,E,y){lca(u,q);if(Q.numeric&&L>0&&q[0]+L>u.length)return!1;switch(Q.text.charAt(0)){case "G":return wd(u,q,[g.JSC$11725_dateTimeSymbols_.ERAS],function(v){return E.era=v}),!0;
case "M":case "L":return iex(g,u,q,L,Q,E);case "E":return wd(u,q,[g.JSC$11725_dateTimeSymbols_.WEEKDAYS,g.JSC$11725_dateTimeSymbols_.SHORTWEEKDAYS],function(v){return E.dayOfWeek=v});
case "B":case "b":return L=[],g=[[].concat(g.JSC$11725_dateTimeSymbols_.AMPMS)],L.push("isAm"),L.push("isPm"),u=wd(u,q,g,function(v){return E.dayPeriodIndex=v},y),E.dayPeriodName=L[E.dayPeriodIndex],y?u:!0;
case "a":return u=wd(u,q,[g.JSC$11725_dateTimeSymbols_.AMPMS],function(v){return E.ampm=v},y),y?u:!0;
case "y":return CaX(g,u,q,Q,L,E);case "Q":return wd(u,q,[g.JSC$11725_dateTimeSymbols_.QUARTERS,g.JSC$11725_dateTimeSymbols_.SHORTQUARTERS],function(v){E.month=v*3;E.day=1});
case "d":return cN(g,u,q,Q,L,function(v){E.day=v}),!0;
case "S":return bea(g,u,q,L,E);case "h":case "K":case "H":case "k":return u=cN(g,u,q,Q,L,function(v){E.hours=Q.text.charAt(0)==="h"&&v===12?0:v},y),y?u:!0;
case "m":return u=cN(g,u,q,Q,L,function(v){E.minutes=v},y),y?u:!0;
case "s":return cN(g,u,q,Q,L,function(v){E.seconds=v}),!0;
case "z":case "Z":case "v":return dyx(g,u,q,E);default:return!1}},CaX=function(g,u,q,Q,L,E){var y=q[0];
L=HN(g,u,q,L);L===null&&(L=HN(g,u,q,0,!0));if(L===null)return!1;L>=0&&q[0]-y==2&&Q.count==2?(g=L,u=(new Date).getFullYear()-80,q=u%100,E.ambiguousYear=g==q,g+=Math.floor(u/100)*100+(g<q?100:0),E.year=g):E.year=L;return!0},iex=function(g,u,q,Q,L,E){return L.numeric&&cN(g,u,q,L,Q,function(y){E.month=y-1})?!0:wd(u,q,[g.JSC$11725_dateTimeSymbols_.MONTHS,
g.JSC$11725_dateTimeSymbols_.STANDALONEMONTHS,g.JSC$11725_dateTimeSymbols_.SHORTMONTHS,g.JSC$11725_dateTimeSymbols_.STANDALONESHORTMONTHS],function(y){E.month=y})},bea=function(g,u,q,Q,L){var E=q[0];
g=HN(g,u,q,Q);if(g===null)return!1;q=q[0]-E;L.milliseconds=q<3?g*Math.pow(10,3-q):Math.round(g/Math.pow(10,q-3));return!0},dyx=function(g,u,q,Q){u.indexOf("GMT",q[0])==q[0]&&(q[0]+=3);
if(q[0]>=u.length)return Q.tzOffset=0,!0;var L=q[0],E=HN(g,u,q,0,!0);if(E===null)return!1;if(q[0]<u.length&&u.charAt(q[0])==":"){var y=E*60;q[0]++;E=HN(g,u,q,0);if(E===null)return!1;y+=E}else y=E,y=y<24&&q[0]-L<=3?y*60:y%100+y/100*60;Q.tzOffset=-y;return!0},cN=function(g,u,q,Q,L,E,y){y=y||!1;
var v=q[0];g=HN(g,u,q,L);if(g===null)return!1;if(y&&q[0]-v<Q.count){if(q[0]<u.length)return!1;g*=Math.pow(10,Q.count-(q[0]-v))}E(g);return!0},wd=function(g,u,q,Q,L){L=L||!1;
for(var E,y=0;y<q.length;y++){E=u;for(var v=q[y],J=L,f=0,t=null,e=g.substring(E[0]).toLowerCase(),G=0;G<v.length;G++){var R=v[G].toLowerCase();if(J&&R.indexOf(e)==0){f=e.length;t=G;break}v[G].length>f&&e.indexOf(R)==0&&(f=v[G].length,t=G)}t!==null&&(E[0]+=f);E=t;if(E!==null)return Q(E),!0}return!1},lca=function(g,u){(g=g.substring(u[0]).match(HeX))&&(u[0]+=g[0].length)},HN=function(g,u,q,Q,L){u=Q>0?u.substring(0,q[0]+Q):u;
L=L||!1;if(g.JSC$11725_dateTimeSymbols_.ZERODIGIT){Q=[];for(var E=q[0];E<u.length;E++){var y=u.charCodeAt(E)-g.JSC$11725_dateTimeSymbols_.ZERODIGIT;Q.push(0<=y&&y<=9?String.fromCharCode(y+48):u.charAt(E))}u=Q.join("")}else u=u.substring(q[0]);g=u.match(new RegExp("^"+(L?"[+-]?":"")+"\\d+"));if(!g)return null;q[0]+=g[0].length;return parseInt(g[0],10)},Ze0=function(){};
Ze0.prototype.ambiguousYear=!1;var FH0;
FH0={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 myn={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}"]};
myn={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 acR=function(){var g={type:"unit",style:"narrow"};this.listType_=g&&g.type?g.type:"conjunction";this.listStyle_=g&&g.style?g.style:"long";this.listSymbols_=myn;g=0;switch(this.listStyle_){case "short":g=1;break;case "narrow":g=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[g];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[g];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[g];this.listEndPattern_=
this.listSymbols_.AND_END[g];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[g];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[g];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[g];this.listEndPattern_=this.listSymbols_.OR_END[g];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[g],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[g],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[g],this.listEndPattern_=this.listSymbols_.UNIT_END[g]}};
acR.prototype.format=function(g){return VTR(this,g)};
var VTR=function(g,u){var q=u.length;switch(q){case 0:return"";case 1:return String(u[0]);case 2:return g.listTwoPattern_.replace("{0}",String(u[0])).replace("{1}",String(u[1]))}for(var Q=g.listStartPattern_.replace("{0}",String(u[0])).replace("{1}",String(u[1])),L=2;L<q-1;++L)Q=g.listMiddlePattern_.replace("{0}",Q).replace("{1}",String(u[L]));return g.listEndPattern_.replace("{0}",Q).replace("{1}",String(u[q-1]))};var Xe$={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"},r98=Xe$,WH8=Xe$;WH8=r98=Xe$;var hG0,Am,lg,AUu,ZS,TvZ;
_.cc=function(g,u,q,Q){var L;if(L=u){a:if(u&&u.length===3){for(L=0;L<3;L++){var E=u[L];if(E<"A"||E>"Z"&&E<"a"||E>"z"){L=!1;break a}}L=!0}else L=!1;L=!L}if(L)throw new TypeError("he");this.intlCurrencyCode_=u?u.toUpperCase():null;this.currencyStyle_=q||0;this.overrideNumberFormatSymbols_=Q||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_=Am(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof g==="number")switch(g){case 1:ZS(this,Am(this).DECIMAL_PATTERN);break;case 2:ZS(this,Am(this).SCIENTIFIC_PATTERN);break;case 3:ZS(this,Am(this).PERCENT_PATTERN);break;case 4:g=Am(this).CURRENCY_PATTERN;u=["0"];if(q=
MI[lg(this)]){q=q[0]&7;if(q>0)for(u.push("."),Q=0;Q<q;Q++)u.push("0");g=g.replace(/0.00/g,u.join(""))}ZS(this,g);break;case 5:TvZ(this,1);break;case 6:TvZ(this,2);break;default:throw Error("ke");}else ZS(this,g)};
hG0=!1;Am=function(g){return g.overrideNumberFormatSymbols_||(hG0?WH8:r98)};
lg=function(g){return g.intlCurrencyCode_||Am(g).DEF_CURRENCY_CODE};
AUu=function(g,u){if(u>308)throw Error("je`"+u);g.maximumFractionDigits_=u;return g};
ZS=function(g,u){var q=[0];g.positivePrefix_=Yp0(g,u,q);for(var Q=q[0],L=-1,E=0,y=0,v=0,J=-1,f=u.length,t=!0;q[0]<f&&t;q[0]++)switch(u.charAt(q[0])){case "#":y>0?v++:E++;J>=0&&L<0&&J++;break;case "0":if(v>0)throw Error("qe`"+u);y++;J>=0&&L<0&&J++;break;case ",":J>0&&g.groupingArray_.push(J);J=0;break;case ".":if(L>=0)throw Error("re`"+u);L=E+y+v;break;case "E":if(g.useExponentialNotation_)throw Error("se`"+u);g.useExponentialNotation_=!0;g.minExponentDigits_=0;q[0]+1<f&&u.charAt(q[0]+1)=="+"&&(q[0]++,
g.useSignForPositiveExponent_=!0);for(;q[0]+1<f&&u.charAt(q[0]+1)=="0";)q[0]++,g.minExponentDigits_++;if(E+y<1||g.minExponentDigits_<1)throw Error("te`"+u);t=!1;break;default:q[0]--,t=!1}y==0&&E>0&&L>=0&&(y=L,y==0&&y++,v=E-y,E=y-1,y=1);if(L<0&&v>0||L>=0&&(L<E||L>E+y)||J==0)throw Error("ue`"+u);v=E+y+v;g.maximumFractionDigits_=L>=0?v-L:0;L>=0&&(g.minimumFractionDigits_=E+y-L,g.minimumFractionDigits_<0&&(g.minimumFractionDigits_=0));g.minimumIntegerDigits_=(L>=0?L:v)-E;g.useExponentialNotation_&&(g.maximumIntegerDigits_=
E+g.minimumIntegerDigits_,g.maximumFractionDigits_==0&&g.minimumIntegerDigits_==0&&(g.minimumIntegerDigits_=1));g.groupingArray_.push(Math.max(0,J));g.decimalSeparatorAlwaysShown_=L==0||L==v;Q=q[0]-Q;g.positiveSuffix_=Yp0(g,u,q);q[0]<u.length&&u.charAt(q[0])==";"?(q[0]++,g.multiplier_!=1&&(g.negativePercentSignExpected_=!0),g.negativePrefix_=Yp0(g,u,q),q[0]+=Q,g.negativeSuffix_=Yp0(g,u,q)):(g.negativePrefix_+=g.positivePrefix_,g.negativeSuffix_+=g.positiveSuffix_)};
TvZ=function(g,u){g.compactStyle_=u;ZS(g,Am(g).DECIMAL_PATTERN);g.minimumFractionDigits_=0;AUu(g,2);if(g.minimumFractionDigits_>0)throw Error("ie");g.significantDigits_=2};
_.cc.prototype.parse=function(g,u){u=u||[0];if(this.compactStyle_!==0)throw Error("le");g=g.replace(/ |\u202f/g,"\u00a0");var q=g.indexOf(this.positivePrefix_,u[0])==u[0],Q=g.indexOf(this.negativePrefix_,u[0])==u[0];q&&Q&&(this.positivePrefix_.length>this.negativePrefix_.length?Q=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(q=!1));q?u[0]+=this.positivePrefix_.length:Q&&(u[0]+=this.negativePrefix_.length);if(g.indexOf(Am(this).INFINITY,u[0])==u[0]){u[0]+=Am(this).INFINITY.length;var L=
Infinity}else{L=g;var E=!1,y=!1,v=!1,J=-1,f=1,t=Am(this).DECIMAL_SEP,e=Am(this).GROUP_SEP,G=Am(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("me");e=e.replace(/\u202f/g,"\u00a0");for(var R="";u[0]<L.length;u[0]++){var H=L.charAt(u[0]),l=Oex(this,H);if(l>=0&&l<=9)R+=l,v=!0;else if(H==t.charAt(0)){if(E||y)break;R+=".";E=!0}else if(H==e.charAt(0)&&("\u00a0"!=e.charAt(0)||u[0]+1<L.length&&Oex(this,L.charAt(u[0]+1))>=0)){if(E||y)break}else if(H==G.charAt(0)){if(y)break;R+="E";y=!0;J=u[0]}else if(H==
"+"||H=="-"){if(v&&J!=u[0]-1)break;R+=H}else if(this.multiplier_==1&&H==Am(this).PERCENT.charAt(0)){if(f!=1)break;f=100;if(v){u[0]++;break}}else if(this.multiplier_==1&&H==Am(this).PERMILL.charAt(0)){if(f!=1)break;f=1E3;if(v){u[0]++;break}}else break}this.multiplier_!=1&&(f=this.multiplier_);L=parseFloat(R)/f}if(q){if(g.indexOf(this.positiveSuffix_,u[0])!=u[0])return NaN;u[0]+=this.positiveSuffix_.length}else if(Q){if(g.indexOf(this.negativeSuffix_,u[0])!=u[0])return NaN;u[0]+=this.negativeSuffix_.length}return Q?
-L:L};
_.cc.prototype.format=function(g){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ne");if(isNaN(g))return Am(this).NAN;var u=[];var q=g;if(this.compactStyle_==0)q=Ix;else{q=Math.abs(q);var Q=KH8(this,q<=1?0:xyR(q)).divisorBase;q=KH8(this,Q+xyR(Bvo(this,ig(q,-Q)).intValue))}g=ig(g,-q.divisorBase);(Q=g<0||g==0&&1/g<0)?q.negative_prefix?u.push(q.negative_prefix):(u.push(q.prefix),u.push(this.negativePrefix_)):(u.push(q.prefix),u.push(this.positivePrefix_));if(isFinite(g))if(g*=
Q?-1:1,g*=this.multiplier_,this.useExponentialNotation_){var L=g;if(L==0)zG5(this,L,this.minimumIntegerDigits_,u),nqn(this,0,u);else{var E=Math.floor(Math.log(L)/Math.log(10)+2E-15);L=ig(L,-E);var y=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(y=E%this.maximumIntegerDigits_,y<0&&(y=this.maximumIntegerDigits_+y),L=ig(L,y),E-=y,y=1):this.minimumIntegerDigits_<1?(E++,L=ig(L,-1)):(E-=this.minimumIntegerDigits_-1,L=ig(L,this.minimumIntegerDigits_-
1));zG5(this,L,y,u);nqn(this,E,u)}}else zG5(this,g,this.minimumIntegerDigits_,u);else u.push(Am(this).INFINITY);Q?q.negative_suffix?u.push(q.negative_suffix):(isFinite(g)&&u.push(q.suffix),u.push(this.negativeSuffix_)):(isFinite(g)&&u.push(q.suffix),u.push(this.positiveSuffix_));return u.join("")};
var Bvo=function(g,u){var q=ig(u,g.maximumFractionDigits_);g.significantDigits_>0&&(q=kcW(q,g.significantDigits_,g.maximumFractionDigits_));q=Math.round(q);if(isFinite(q)){var Q=Math.floor(ig(q,-g.maximumFractionDigits_));q=Math.floor(q-ig(Q,g.maximumFractionDigits_));if(q<0||q>=ig(1,g.maximumFractionDigits_))Q=Math.round(u),q=0}else Q=u,q=0;return{intValue:Q,fracValue:q}},zG5=function(g,u,q,Q){if(g.minimumFractionDigits_>g.maximumFractionDigits_)throw Error("ne");
Q||(Q=[]);u=Bvo(g,u);var L=u.intValue,E=u.fracValue,y=g.minimumFractionDigits_>0||E>0||!1;u=g.minimumFractionDigits_;y&&(u=g.minimumFractionDigits_);for(var v="",J=L;J>1E20;)v="0"+v,J=Math.round(ig(J,-1));v=J+v;var f=Am(g).DECIMAL_SEP;J=Am(g).ZERO_DIGIT.codePointAt(0);var t=v.length,e=0;if(L>0||q>0){for(L=t;L<q;L++)Q.push(String.fromCodePoint(J));if(g.groupingArray_.length>=2)for(q=1;q<g.groupingArray_.length;q++)e+=g.groupingArray_[q];q=t-e;if(q>0){L=g.groupingArray_;e=t=0;for(var G,R=Am(g).GROUP_SEP,
H=v.length,l=0;l<H;l++)if(Q.push(String.fromCodePoint(J+Number(v.charAt(l)))),H-l>1)if(G=L[e],l<q){var d=q-l;(G===1||G>0&&d%G===1)&&Q.push(R)}else e<L.length&&(l===q?e+=1:G===l-q-t+1&&(Q.push(R),t+=G,e+=1))}else{q=v;v=g.groupingArray_;L=Am(g).GROUP_SEP;G=q.length;R=[];for(t=v.length-1;t>=0&&G>0;t--){e=v[t];for(H=0;H<e&&G-H-1>=0;H++)R.push(String.fromCodePoint(J+Number(q.charAt(G-H-1))));G-=e;G>0&&R.push(L)}Q.push.apply(Q,R.reverse())}}else y||Q.push(String.fromCodePoint(J));(g.decimalSeparatorAlwaysShown_||
y)&&Q.push(f);E=String(E);y=E.split("e+");y.length==2&&(E=String(kcW(parseFloat(y[0]),g.significantDigits_,1)),E=E.replace(".",""),E+=(0,_.wqZ)("0",parseInt(y[1],10)-E.length+1));g.maximumFractionDigits_+1>E.length&&(E="1"+(0,_.wqZ)("0",g.maximumFractionDigits_-E.length)+E);for(g=E.length;E.charAt(g-1)=="0"&&g>u+1;)g--;for(u=1;u<g;u++)Q.push(String.fromCodePoint(J+Number(E.charAt(u))))},nqn=function(g,u,q){q.push(Am(g).EXP_SYMBOL);
u<0?(u=-u,q.push(Am(g).MINUS_SIGN)):g.useSignForPositiveExponent_&&q.push(Am(g).PLUS_SIGN);u=""+u;for(var Q=Am(g).ZERO_DIGIT,L=u.length;L<g.minExponentDigits_;L++)q.push(Q);g=Q.codePointAt(0)-Sp$;for(Q=0;Q<u.length;Q++)q.push(String.fromCodePoint(g+u.codePointAt(Q)))},Oex=function(g,u){u=u.codePointAt(0);
if(48<=u&&u<58)return u-48;g=Am(g).ZERO_DIGIT.codePointAt(0);return g<=u&&u<g+10?u-g:-1},Sp$="0".codePointAt(0),Yp0=function(g,u,q){for(var Q="",L=!1,E=u.length;q[0]<E;q[0]++){var y=u.charAt(q[0]);
if(y=="'")q[0]+1<E&&u.charAt(q[0]+1)=="'"?(q[0]++,Q+="'"):L=!L;else if(L)Q+=y;else switch(y){case "#":case "0":case ",":case ".":case ";":return Q;case "\u00a4":if(q[0]+1<E&&u.charAt(q[0]+1)=="\u00a4")q[0]++,Q+=lg(g);else switch(g.currencyStyle_){case 0:y=lg(g);Q+=y in MI?MI[y][1]:y;break;case 2:y=lg(g);var v=MI[y];Q+=v?y==v[1]?y:y+" "+v[1]:y;break;case 1:y=lg(g),Q+=y in MI?MI[y][2]:y}break;case "%":if(!g.negativePercentSignExpected_&&g.multiplier_!=1)throw Error("oe");if(g.negativePercentSignExpected_&&
g.multiplier_!=100)throw Error("pe");g.multiplier_=100;g.negativePercentSignExpected_=!1;Q+=Am(g).PERCENT;break;case "\u2030":if(!g.negativePercentSignExpected_&&g.multiplier_!=1)throw Error("oe");if(g.negativePercentSignExpected_&&g.multiplier_!=1E3)throw Error("pe");g.multiplier_=1E3;g.negativePercentSignExpected_=!1;Q+=Am(g).PERMILL;break;default:Q+=y}}return Q},Ix={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},KH8=function(g,u){g=g.compactStyle_==1?f8.COMPACT_DECIMAL_SHORT_PATTERN:f8.COMPACT_DECIMAL_LONG_PATTERN;g==null&&(g=f8.COMPACT_DECIMAL_SHORT_PATTERN);if(u<3)return Ix;u=Math.min(14,u);var q=g[ig(1,u)];for(--u;!q&&u>=3;)q=g[ig(1,u)],u--;if(!q)return Ix;q=q.other;var Q=g="",L=q.indexOf(";");L>=0&&(q=q.substring(0,L),L=q.substring(L+1))&&(Q=/([^0]*)(0+)(.*)/.exec(L),g=Q[1],Q=Q[3]);return q&&q!="0"?(q=/([^0]*)(0+)(.*)/.exec(q))?{divisorBase:u+
1-(q[2].length-1),negative_prefix:g,negative_suffix:Q,prefix:q[1],suffix:q[3]}:Ix:Ix},xyR=function(g){if(!isFinite(g))return g>0?g:0;
for(var u=0;(g/=10)>=1;)u++;return u},ig=function(g,u){if(!g||!isFinite(g)||u==0)return g;
g=String(g).split("e");return parseFloat(g[0]+"e"+(parseInt(g[1]||0,10)+u))},oqH=function(g,u){return g&&isFinite(g)?ig(Math.round(ig(g,u)),-u):g},kcW=function(g,u,q){if(!g)return g;
u=u-xyR(g)-1;return u<-q?oqH(g,-q):oqH(g,u)};var Uy2,gyH=Uy2=Uy2=qO3;var ugn=function(g,u){var q=g|0;if(void 0===u){u=Math;var Q=u.min,L=g+"",E=L.indexOf(".");u=Q.call(u,E===-1?0:L.length-E-1,3)}Q=Math.pow(10,u);g={v:u,f:(g*Q|0)%Q};return q==1&&g.v==0?"one":"other"},wr=ugn;
wr=ugn;var Eyi=function(g){this.JSC$11768_pattern_=g;this.parsedPattern_=this.literals_=this.initialLiterals_=null;g=r98;var u=f8;if(qI0!==g||Qs8!==u)qI0=g,Qs8=u,Lli=new _.cc(1);this.numberFormatter_=Lli},qI0=null,Qs8=null,Lli=null,P2o=RegExp("'([{}#].*?)'","g"),NyH=RegExp("''","g");
Eyi.prototype.format=function(g){if(this.JSC$11768_pattern_){this.initialLiterals_=[];var u=ssR(this,this.JSC$11768_pattern_);this.parsedPattern_=y7b(this,u);this.JSC$11768_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Ob(this.initialLiterals_),u=[],vyn(this,this.parsedPattern_,g,!1,u),g=u.join("");this.literals_.length>0;)g=g.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else g="";return g};
var vyn=function(g,u,q,Q,L){for(var E=0;E<u.length;E++)switch(u[E].type){case 4:L.push(u[E].value);break;case 3:var y=u[E].value;var v=g,J=L,f=q[y];f===void 0?J.push("Undefined parameter - "+y):(v.literals_.push(f),J.push(v.buildPlaceholder_(v.literals_)));break;case 2:y=u[E].value;v=g;J=q;f=Q;var t=L,e=y.argumentIndex;J[e]===void 0?t.push("Undefined parameter - "+e):(e=y[J[e]],e===void 0&&(e=y.other),vyn(v,e,J,f,t));break;case 0:y=u[E].value;D0a(g,y,q,wr,Q,L);break;case 1:y=u[E].value,D0a(g,y,q,
gyH,Q,L)}},D0a=function(g,u,q,Q,L,E){var y=u.argumentIndex,v=u.argumentOffset,J=+q[y];
isNaN(J)?E.push("Undefined or invalid parameter - "+y):(v=J-v,y=u[q[y]],y===void 0&&(Q=Q(Math.abs(v)),y=u[Q],y===void 0&&(y=u.other)),u=[],vyn(g,y,q,L,u),q=u.join(""),L?E.push(q):(g=g.numberFormatter_.format(v),E.push(q.replace(/#/g,g))))},ssR=function(g,u){var q=g.initialLiterals_,Q=g.buildPlaceholder_.bind(g);
u=u.replace(NyH,function(){q.push("'");return Q(q)});
return u=u.replace(P2o,function(L,E){q.push(E);return Q(q)})},pY5=function(g){var u=0,q=[],Q=[],L=/[{}]/g;
L.lastIndex=0;for(var E;E=L.exec(g);){var y=E.index;E[0]=="}"?(q.pop(),q.length==0&&(E={type:1},E.value=g.substring(u,y),Q.push(E),u=y+1)):(q.length==0&&(u=g.substring(u,y),u!=""&&Q.push({type:0,value:u}),u=y+1),q.push("{"))}g=g.substring(u);g!=""&&Q.push({type:0,value:g});return Q},J7x=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,js5=/^\s*(\w+)\s*,\s*selectordinal\s*,/,f7Z=/^\s*(\w+)\s*,\s*select\s*,/,y7b=function(g,u){var q=[];
u=pY5(u);for(var Q=0;Q<u.length;Q++){var L={};if(0==u[Q].type)L.type=4,L.value=u[Q].value;else if(1==u[Q].type){var E=u[Q].value;switch(J7x.test(E)?0:js5.test(E)?1:f7Z.test(E)?2:/^\s*\w+\s*/.test(E)?3:5){case 2:L.type=2;L.value=MJx(g,u[Q].value);break;case 0:L.type=0;L.value=tJ8(g,u[Q].value);break;case 1:L.type=1;L.value=ez0(g,u[Q].value);break;case 3:L.type=3,L.value=u[Q].value}}q.push(L)}return q},MJx=function(g,u){var q="";
u=u.replace(f7Z,function(v,J){q=J;return""});
var Q={};Q.argumentIndex=q;u=pY5(u);for(var L=0;L<u.length;){var E=u[L].value;L++;var y=void 0;1==u[L].type&&(y=y7b(g,u[L].value));Q[E.replace(/\s/g,"")]=y;L++}return Q},tJ8=function(g,u){var q="",Q=0;
u=u.replace(J7x,function(J,f,t){q=f;t&&(Q=parseInt(t,10));return""});
var L={};L.argumentIndex=q;L.argumentOffset=Q;u=pY5(u);for(var E=0;E<u.length;){var y=u[E].value;E++;var v=void 0;1==u[E].type&&(v=y7b(g,u[E].value));L[y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=v;E++}return L},ez0=function(g,u){var q="";
u=u.replace(js5,function(v,J){q=J;return""});
var Q={};Q.argumentIndex=q;Q.argumentOffset=0;u=pY5(u);for(var L=0;L<u.length;){var E=u[L].value;L++;var y=void 0;1==u[L].type&&(y=y7b(g,u[L].value));Q[E.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=y;L++}return Q};
Eyi.prototype.buildPlaceholder_=function(g){return"\ufddf_"+(g.length-1).toString(10)+"_"};var SMJ=function(){var g={style:1},u=Gkx;this.style_=(g==null?void 0:g.style)||0;this.durationSymbols_=u||FH0},$02=function(g,u){switch(u){default:case "years":return g.durationSymbols_.YEAR;
case "months":return g.durationSymbols_.MONTH;case "weeks":return g.durationSymbols_.WEEK;case "days":return g.durationSymbols_.DAY;case "hours":return g.durationSymbols_.HOUR;case "minutes":return g.durationSymbols_.MINUTE;case "seconds":return g.durationSymbols_.SECOND}},C8=function(g,u,q){a:{q=$02(g,q);
switch(g.style_){case 1:if(q.LONG!=void 0){g=q.LONG;break a}case 2:if(q.NARROW!=void 0){g=q.NARROW;break a}default:g=q.SHORT;break a}g=void 0}return g?(new Eyi("{DURATION_VALUE,plural,"+g+"}")).format({DURATION_VALUE:u}):""};
SMJ.prototype.format=function(g){var u=[],q=g.years,Q=g.months,L=g.weeks,E=g.days,y=g.hours,v=g.minutes;g=g.seconds;q!=null&&u.push(C8(this,q,"years"));Q!=null&&u.push(C8(this,Q,"months"));L!=null&&u.push(C8(this,L,"weeks"));E!=null&&u.push(C8(this,E,"days"));y!=null&&u.push(C8(this,y,"hours"));v!=null&&u.push(C8(this,v,"minutes"));g!=null&&u.push(C8(this,g,"seconds"));return(new acR).format(u)};var Rz0;
Rz0={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 WAM=function(){this.rdtfSymbols_=wY5||Rz0;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
WAM.prototype.format=function(g,u){a:{u=c7a(this,u);switch(this.style_){case 2:if(u.NARROW!=void 0){u=u.NARROW;break a}case 1:if(u.SHORT!=void 0){u=u.SHORT;break a}default:u=u.LONG;break a}u=void 0}if(!this.alwaysNumeric_&&u&&u.R&&u.R[""+g])g=u.R[""+g];else if(u){var q=Math.abs(g);g=(new Eyi("{N,plural,"+(g>0||g==0&&1/g==Infinity?u.F:u.P)+"}")).format({N:q})}else g="";return g};
var c7a=function(g,u){switch(u){default:case 0:return g.rdtfSymbols_.YEAR;case 1:return g.rdtfSymbols_.QUARTER;case 2:return g.rdtfSymbols_.MONTH;case 3:return g.rdtfSymbols_.WEEK;case 4:return g.rdtfSymbols_.DAY;case 5:return g.rdtfSymbols_.HOUR;case 6:return g.rdtfSymbols_.MINUTE;case 7:return g.rdtfSymbols_.SECOND}};QVf.prototype.clone=function(){return new QVf(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
QVf.prototype.equals=function(g){return this.x0==g.x0&&this.y0==g.y0&&this.x1==g.x1&&this.y1==g.y1&&this.x2==g.x2&&this.y2==g.y2&&this.x3==g.x3&&this.y3==g.y3};
var Hna=function(g,u){if(u==0)return g.x0;if(u==1)return g.x3;var q=j0(g.x0,g.x1,u),Q=j0(g.x1,g.x2,u);g=j0(g.x2,g.x3,u);q=j0(q,Q,u);Q=j0(Q,g,u);return j0(q,Q,u)},A7Z=function(g,u){var q=(u-g.x0)/(g.x3-g.x0);
if(q<=0)return 0;if(q>=1)return 1;for(var Q=0,L=1,E=0,y=0;y<8;y++){E=Hna(g,q);var v=(Hna(g,q+1E-6)-E)/1E-6;if(Math.abs(E-u)<1E-6)return q;if(Math.abs(v)<1E-6)break;else E<u?Q=q:L=q,q-=(E-u)/v}for(y=0;Math.abs(E-u)>1E-6&&y<8;y++)E<u?(Q=q,q=(q+L)/2):(L=q,q=(q+Q)/2),E=Hna(g,q);return q};var bg;_.TK(yZ,_.A5);var EkZ={},L2F=0,Znx=function(g,u){var q=LH(g);Lnx(u,function(Q,L){Array.isArray(Q)||(Q=[Q]);_.Tv(Q,function(E){E=q.JSC$9635_createDom("INPUT",{type:"hidden",name:L,value:E});g.appendChild(E)})})};
_.P=yZ.prototype;_.P.JSC$11790_form_=null;_.P.JSC$11790_iframe_=null;_.P.iframeName_=null;_.P.nextIframeId_=0;_.P.JSC$11790_active_=!1;_.P.complete_=!1;_.P.success_=!1;_.P.lastContent_=null;_.P.JSC$11790_lastErrorCode_=0;_.P.iframeDisposalTimer_=null;
_.P.send=function(g,u,q,Q){if(this.JSC$11790_active_)throw Error("ve");g=new _.Ir(g);u=u?u.toUpperCase():"GET";q&&_.Bl(g);bg||(bg=_.e0("FORM"),bg.acceptCharset="utf-8",q=bg.style,q.position="absolute",q.visibility="hidden",q.top=q.left="-10px",q.width=q.height="10px",q.overflow="hidden",document.body.appendChild(bg));this.JSC$11790_form_=bg;u=="GET"&&Znx(this.JSC$11790_form_,g.JSC$10339_queryData_);Q&&Znx(this.JSC$11790_form_,Q);q=g.toString();q=IQk(q);Q=this.JSC$11790_form_;q=_.gt(Kv(q));q!==void 0&&
(Q.action=q);this.JSC$11790_form_.method=u;l7a(this);I7i(this)};
_.P.abort=function(g){if(this.JSC$11790_active_){var u=dd(this);if(u)if(yV(u))u.removeAllListeners(void 0);else if(u=vl(u)){var q=0,Q;for(Q in u.listeners)for(var L=u.listeners[Q].concat(),E=0;E<L.length;++E)Qb(L[E])&&++q}this.success_=this.JSC$11790_active_=this.complete_=!1;this.JSC$11790_lastErrorCode_=g||7;this.dispatchEvent("abort");in0(this)}};
_.P.disposeInternal=function(){this.JSC$11790_active_&&this.abort();yZ.superClass_.disposeInternal.call(this);this.JSC$11790_iframe_&&C2H(this);I7i(this);this.JSC$11790_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11790_form_=null;this.JSC$11790_lastErrorCode_=0;delete EkZ[this.JSC$11788_name_]};
_.P.isComplete=function(){return this.complete_};
_.P.isSuccess=function(){return this.success_};
_.P.isActive=function(){return this.JSC$11790_active_};
_.P.getResponseText=function(){return this.lastContent_};
_.P.getLastError=function(){return _.rMH(this.JSC$11790_lastErrorCode_)};
var l7a=function(g){g.JSC$11790_active_=!0;g.complete_=!1;g.JSC$11790_lastErrorCode_=0;g.iframeName_=g.JSC$11788_name_+"_"+(g.nextIframeId_++).toString(36);g.JSC$11790_iframe_=LH(g.JSC$11790_form_).JSC$9635_createDom("IFRAME",{name:g.iframeName_,id:g.iframeName_});var u=g.JSC$11790_iframe_.style;u.visibility="hidden";u.width=u.height="10px";u.display="none";_.u6?u.marginTop=u.marginLeft="-10px":(u.position="absolute",u.top=u.left="-10px");LH(g.JSC$11790_form_).JSC$9633_document_.body.appendChild(g.JSC$11790_iframe_);
u=g.iframeName_+"_inner";var q=Wva(g.JSC$11790_iframe_);if(document.baseURI){var Q=h9(u);Q='<head><base href="'+h9(document.baseURI)+'"></head><body><iframe id="'+Q+'" name="'+Q+'"></iframe>';Q=QT(Q)}else Q=h9(u),Q=QT('<body><iframe id="'+Q+'" name="'+Q+'"></iframe>');q.write(EP(Q));_.Z1(q.getElementById(u),"load",g.onIframeLoaded_,!1,g);Q=uv("TEXTAREA",g.JSC$11790_form_);for(var L=0,E=Q.length;L<E;L++){var y=Q[L].value;xin(Q[L])!=y&&(_.Ay(Q[L],y),Q[L].value=y)}Q=q.importNode(g.JSC$11790_form_,!0);
Q.target=u;Q.action=g.JSC$11790_form_.action;q.body.appendChild(Q);L=uv("SELECT",g.JSC$11790_form_);E=uv("SELECT",Q);y=0;for(var v=L.length;y<v;y++)for(var J=uv("OPTION",L[y]),f=uv("OPTION",E[y]),t=0,e=J.length;t<e;t++)f[t].selected=J[t].selected;L=uv("INPUT",g.JSC$11790_form_);E=uv("INPUT",Q);y=0;for(v=L.length;y<v;y++)if(L[y].type=="file"&&L[y].value!=E[y].value){g.JSC$11790_form_.target=u;Q=g.JSC$11790_form_;break}try{g.errorHandled_=!1,Q.submit(),q.close(),_.qM&&setTimeout(g.testForFirefoxSilentError_.bind(g),
250)}catch(G){_.DB(q.getElementById(u),"load",g.onIframeLoaded_,!1,g),q.close(),F9(g,2)}};
yZ.prototype.onIframeLoaded_=function(){_.DB(dd(this),"load",this.onIframeLoaded_,!1,this);try{var g=this.JSC$11790_iframe_?Wva(dd(this)):null;this.complete_=!0;this.JSC$11790_active_=!1;try{var u=g.body;this.lastContent_=u.textContent||u.innerText}catch(L){var q=1}var Q;q||typeof this.errorChecker_!="function"||(Q=this.errorChecker_(g))&&(q=4);q?F9(this,q):(this.success_=!0,this.JSC$11790_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),in0(this))}catch(L){F9(this,1)}};
var F9=function(g,u){g.errorHandled_||(g.success_=!1,g.JSC$11790_active_=!1,g.complete_=!0,g.JSC$11790_lastErrorCode_=u,g.dispatchEvent("complete"),g.dispatchEvent("error"),in0(g),g.errorHandled_=!0)},in0=function(g){C2H(g);
I7i(g);g.JSC$11790_form_=null;g.dispatchEvent("ready")},C2H=function(g){var u=g.JSC$11790_iframe_;
u&&(u.onreadystatechange=null,u.onload=null,u.onerror=null,g.iframesForDisposal_.push(u));g.iframeDisposalTimer_&&(clearTimeout(g.iframeDisposalTimer_),g.iframeDisposalTimer_=null);_.qM?g.iframeDisposalTimer_=setTimeout(g.disposeIframes_.bind(g),2E3):g.disposeIframes_();g.JSC$11790_iframe_=null;g.iframeName_=null};
yZ.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var g=this.iframesForDisposal_.pop();_.UU(g)}};
var I7i=function(g){g.JSC$11790_form_&&g.JSC$11790_form_==bg&&_.RA(g.JSC$11790_form_)},dd=function(g){return g.JSC$11790_iframe_?Wva(g.JSC$11790_iframe_).getElementById(g.iframeName_+"_inner"):null};
yZ.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11790_active_){var g=this.JSC$11790_iframe_?Wva(dd(this)):null;g&&!oBq(g,"documentUri")?(_.DB(dd(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?F9(this,3):F9(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.mm=function(g){return g=="\r"||g=="\n"||g==" "||g=="\t"};_.vU.prototype.isInputValid=function(){return this.streamState_!=3};
_.vU.prototype.done=function(){return this.streamState_===2};
var ax=function(g,u,q){g.streamState_=3;g.errorMessage_="The stream is broken @"+g.JSC$11792_pos_+"/"+q+". With input:\n"+u;throw Error(g.errorMessage_);};
_.vU.prototype.acceptsBinaryInput=function(){return!1};
_.vU.prototype.parse=function(g){function u(){for(;e<g.length;)if(_.mm(g[e]))e++,E.JSC$11792_pos_++;else break;return e<J}
function q(){for(var R;;){R=g[e++];if(!R)break;E.JSC$11792_pos_++;switch(E.state_){case 0:R==="{"?E.state_=2:R==="["?E.state_=4:_.mm(R)||ax(E,g,e);continue;case 7:case 2:if(_.mm(R))continue;if(E.state_===7)y.push(8);else if(R==="}"){L("{}");E.state_=Q();continue}else y.push(3);R==='"'?E.state_=6:ax(E,g,e);continue;case 8:case 3:if(_.mm(R))continue;R===":"?(E.state_===3&&(y.push(3),E.depth_++),E.state_=1):R==="}"?(E.depth_--,L(),E.state_=Q()):R===","?(E.state_===3&&y.push(3),E.state_=7):ax(E,g,e);
continue;case 4:case 1:if(_.mm(R))continue;if(E.state_===4)if(E.depth_++,E.state_=1,R==="]"){E.depth_--;if(E.depth_===0){E.state_=5;return}L("[]");E.state_=Q();continue}else y.push(5);R==='"'?E.state_=6:R==="{"?E.state_=2:R==="["?E.state_=4:R==="t"?E.state_=9:R==="f"?E.state_=12:R==="n"?E.state_=16:R!=="-"&&("0123456789".indexOf(R)!==-1?E.state_=20:ax(E,g,e));continue;case 5:if(R===",")y.push(5),E.state_=1,E.depth_===1&&(t=e);else if(R==="]"){E.depth_--;if(E.depth_===0)return;L();E.state_=Q()}else if(_.mm(R))continue;
else ax(E,g,e);continue;case 6:var H=e;a:for(;;){for(;E.unicodeCount_>0;)if(R=g[e++],E.unicodeCount_===4?E.unicodeCount_=0:E.unicodeCount_++,!R)break a;if(R==='"'&&!E.slashed_){E.state_=Q();break}if(R==="\\"&&!E.slashed_&&(E.slashed_=!0,R=g[e++],!R))break;if(E.slashed_)if(E.slashed_=!1,R==="u"&&(E.unicodeCount_=1),R=g[e++])continue;else break;v.lastIndex=e;R=v.exec(g);if(!R){e=g.length+1;break}e=R.index+1;R=g[R.index];if(!R)break}E.JSC$11792_pos_+=e-H;continue;case 9:if(!R)continue;R==="r"?E.state_=
10:ax(E,g,e);continue;case 10:if(!R)continue;R==="u"?E.state_=11:ax(E,g,e);continue;case 11:if(!R)continue;R==="e"?E.state_=Q():ax(E,g,e);continue;case 12:if(!R)continue;R==="a"?E.state_=13:ax(E,g,e);continue;case 13:if(!R)continue;R==="l"?E.state_=14:ax(E,g,e);continue;case 14:if(!R)continue;R==="s"?E.state_=15:ax(E,g,e);continue;case 15:if(!R)continue;R==="e"?E.state_=Q():ax(E,g,e);continue;case 16:if(!R)continue;R==="u"?E.state_=17:ax(E,g,e);continue;case 17:if(!R)continue;R==="l"?E.state_=18:
ax(E,g,e);continue;case 18:if(!R)continue;R==="l"?E.state_=Q():ax(E,g,e);continue;case 19:R==="."?E.state_=20:ax(E,g,e);continue;case 20:if("0123456789.eE+-".indexOf(R)!==-1)continue;else e--,E.JSC$11792_pos_--,E.state_=Q();continue;default:ax(E,g,e)}}}
function Q(){var R=y.pop();return R!=null?R:1}
function L(R){E.depth_>1||(R||(R=t===-1?E.JSC$11792_buffer_+g.substring(f,e):g.substring(t,e)),E.deliverMessageAsRawString_?E.result_.push(R):E.result_.push(JSON.parse(R)),t=e)}
for(var E=this,y=E.stack_,v=E.stringInputPattern_,J=g.length,f=0,t=-1,e=0;e<J;)switch(E.streamState_){case 3:return ax(E,g,e),null;case 2:return u()&&ax(E,g,e),null;case 0:if(u()){var G=g[e++];E.JSC$11792_pos_++;if(G==="["){E.streamState_=1;f=e;E.state_=4;continue}else ax(E,g,e)}return null;case 1:return q(),E.depth_===0&&E.state_==5?(E.streamState_=2,E.JSC$11792_buffer_=g.substring(e)):E.JSC$11792_buffer_=t===-1?E.JSC$11792_buffer_+g.substring(f):g.substring(t),E.result_.length>0?(G=E.result_,E.result_=
[],G):null}return null};_.TK(_.DM,Mu);pd.prototype.getValue=function(){return this.JSC$11799_value_};
pd.prototype.clone=function(){return new pd(this.JSC$11799_key_,this.JSC$11799_value_)};var Vj=function(g){this.nodes_=[];if(g)a:{if(g instanceof Vj){var u=g.getKeys();g=g.getValues();if(this.getCount()<=0){for(var q=this.nodes_,Q=0;Q<u.length;Q++)q.push(new pd(u[Q],g[Q]));break a}}else u=_.pH.getKeys(g),g=_.pH.getValues(g);for(q=0;q<u.length;q++)this.insert(u[q],g[q])}};
_.P=Vj.prototype;_.P.insert=function(g,u){var q=this.nodes_;q.push(new pd(g,u));g=q.length-1;u=this.nodes_;for(q=u[g];g>0;){var Q=g-1>>1;if(u[Q].JSC$11799_key_>q.JSC$11799_key_)u[g]=u[Q],g=Q;else break}u[g]=q};
_.P.remove=function(){var g=this.nodes_,u=g.length,q=g[0];if(!(u<=0)){if(u==1)g.length=0;else{g[0]=g.pop();g=0;u=this.nodes_;for(var Q=u.length,L=u[g];g<Q>>1;){var E=g*2+1,y=g*2+2;E=y<Q&&u[y].JSC$11799_key_<u[E].JSC$11799_key_?y:E;if(u[E].JSC$11799_key_>L.JSC$11799_key_)break;u[g]=u[E];g=E}u[g]=L}return q.getValue()}};
_.P.peek=function(){var g=this.nodes_;if(g.length!=0)return g[0].getValue()};
_.P.getValues=function(){for(var g=this.nodes_,u=[],q=g.length,Q=0;Q<q;Q++)u.push(g[Q].getValue());return u};
_.P.getKeys=function(){for(var g=this.nodes_,u=[],q=g.length,Q=0;Q<q;Q++)u.push(g[Q].JSC$11799_key_);return u};
_.P.containsValue=function(g){return this.nodes_.some(function(u){return u.getValue()==g})};
_.P.containsKey=function(g){return this.nodes_.some(function(u){return u.JSC$11799_key_==g})};
_.P.clone=function(){return new Vj(this)};
_.P.getCount=function(){return this.nodes_.length};
_.P.isEmpty=function(){return this.nodes_.length===0};
_.P.clear=function(){this.nodes_.length=0};_.P=_.Jg.prototype;_.P.getCount=function(){return this.size};
_.P.getValues=function(){X9(this);for(var g=[],u=0;u<this.JSC$11805_keys_.length;u++)g.push(this.JSC$11805_map_[this.JSC$11805_keys_[u]]);return g};
_.P.getKeys=function(){X9(this);return this.JSC$11805_keys_.concat()};
_.P.containsKey=function(g){return this.has(g)};
_.P.has=function(g){return rd(this.JSC$11805_map_,g)};
_.P.containsValue=function(g){for(var u=0;u<this.JSC$11805_keys_.length;u++){var q=this.JSC$11805_keys_[u];if(rd(this.JSC$11805_map_,q)&&this.JSC$11805_map_[q]==g)return!0}return!1};
_.P.equals=function(g,u){if(this===g)return!0;if(this.size!=g.getCount())return!1;u=u||bni;X9(this);for(var q,Q=0;q=this.JSC$11805_keys_[Q];Q++)if(!u(this.get(q),g.get(q)))return!1;return!0};
var bni=function(g,u){return g===u};
_.Jg.prototype.isEmpty=function(){return this.size==0};
_.Jg.prototype.clear=function(){this.JSC$11805_map_={};this.version_=this.size=this.JSC$11805_keys_.length=0};
_.Jg.prototype.remove=function(g){return this.delete(g)};
_.Jg.prototype.delete=function(g){return rd(this.JSC$11805_map_,g)?(delete this.JSC$11805_map_[g],--this.size,this.version_++,this.JSC$11805_keys_.length>2*this.size&&X9(this),!0):!1};
var X9=function(g){if(g.size!=g.JSC$11805_keys_.length){for(var u=0,q=0;u<g.JSC$11805_keys_.length;){var Q=g.JSC$11805_keys_[u];rd(g.JSC$11805_map_,Q)&&(g.JSC$11805_keys_[q++]=Q);u++}g.JSC$11805_keys_.length=q}if(g.size!=g.JSC$11805_keys_.length){u={};for(Q=q=0;q<g.JSC$11805_keys_.length;){var L=g.JSC$11805_keys_[q];rd(u,L)||(g.JSC$11805_keys_[Q++]=L,u[L]=1);q++}g.JSC$11805_keys_.length=Q}};
_.P=_.Jg.prototype;_.P.get=function(g,u){return rd(this.JSC$11805_map_,g)?this.JSC$11805_map_[g]:u};
_.P.set=function(g,u){rd(this.JSC$11805_map_,g)||(this.size+=1,this.JSC$11805_keys_.push(g),this.version_++);this.JSC$11805_map_[g]=u};
_.P.addAll=function(g){if(g instanceof _.Jg)for(var u=g.getKeys(),q=0;q<u.length;q++)this.set(u[q],g.get(u[q]));else for(u in g)this.set(u,g[u])};
_.P.forEach=function(g,u){for(var q=this.getKeys(),Q=0;Q<q.length;Q++){var L=q[Q],E=this.get(L);g.call(u,E,L,this)}};
_.P.clone=function(){return new _.Jg(this)};
_.P.transpose=function(){for(var g=new _.Jg,u=0;u<this.JSC$11805_keys_.length;u++){var q=this.JSC$11805_keys_[u];g.set(this.JSC$11805_map_[q],q)}return g};
_.P.keys=function(){return pC2(this.__iterator__(!0)).toEs6()};
_.P.values=function(){return pC2(this.__iterator__(!1)).toEs6()};
_.P.entries=function(){var g=this;return irX(this.keys(),function(u){return[u,g.get(u)]})};
_.P.__iterator__=function(g){X9(this);var u=0,q=this.version_,Q=this,L=new r2;L.next=function(){if(q!=Q.version_)throw Error("we");if(u>=Q.JSC$11805_keys_.length)return Wt;var E=Q.JSC$11805_keys_[u++];return TG(g?E:Q.JSC$11805_map_[E])};
return L};
var rd=function(g,u){return Object.prototype.hasOwnProperty.call(g,u)};var d02=function(g,u){if(u=g.JSC$11808_map_.get(u))u.remove(),g.insert_(u);return u};
_.P=NJT.prototype;_.P.get=function(g,u){return(g=d02(this,g))?g.value:u};
_.P.set=function(g,u){var q=d02(this,g);q?q.value=u:(q=new PJF(g,u),this.JSC$11808_map_.set(g,q),this.insert_(q))};
_.P.peek=function(){return this.JSC$11808_head_.next.value};
_.P.shift=function(){return FlZ(this,this.JSC$11808_head_.next)};
_.P.pop=function(){return FlZ(this,this.JSC$11808_head_.prev)};
_.P.remove=function(g){return(g=this.JSC$11808_map_.get(g))?(this.removeNode(g),!0):!1};
_.P.removeNode=function(g){g.remove();this.JSC$11808_map_.remove(g.key)};
_.P.getCount=function(){return this.JSC$11808_map_.getCount()};
_.P.isEmpty=function(){return this.JSC$11808_map_.isEmpty()};
_.P.getKeys=function(){return this.map(function(g,u){return u})};
_.P.getValues=function(){return this.map(function(g){return g})};
_.P.contains=function(g){return this.some(function(u){return u==g})};
_.P.containsKey=function(g){return this.JSC$11808_map_.containsKey(g)};
_.P.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11808_head_.prev)};
_.P.forEach=function(g,u){for(var q=this.JSC$11808_head_.next;q!=this.JSC$11808_head_;q=q.next)g.call(u,q.value,q.key,this)};
_.P.map=function(g,u){for(var q=[],Q=this.JSC$11808_head_.next;Q!=this.JSC$11808_head_;Q=Q.next)q.push(g.call(u,Q.value,Q.key,this));return q};
_.P.some=function(g,u){for(var q=this.JSC$11808_head_.next;q!=this.JSC$11808_head_;q=q.next)if(g.call(u,q.value,q.key,this))return!0;return!1};
_.P.every=function(g,u){for(var q=this.JSC$11808_head_.next;q!=this.JSC$11808_head_;q=q.next)if(!g.call(u,q.value,q.key,this))return!1;return!0};
_.P.insert_=function(g){g.next=this.JSC$11808_head_.next;g.prev=this.JSC$11808_head_;this.JSC$11808_head_.next=g;for(g.next.prev=g;this.getCount()>100;)this.removeNode(this.JSC$11808_head_.prev)};
var FlZ=function(g,u){g.JSC$11808_head_!=u&&g.removeNode(u);return u.value},PJF=function(g,u){this.key=g;
this.value=u};
PJF.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var m0n=function(){Vj.apply(this,arguments)};
_.A(m0n,Vj);m0n.prototype.enqueue=function(g,u){this.insert(g,u)};var a7o=function(){var g=Error();g.name="SecurityError";throw g;},X3J=function(){return{get opener(){return null},
get closed(){return!0},get location(){a7o()},get document(){a7o()},postMessage:function(){},
close:function(){},
focus:function(){}}};var sVS={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 DPk={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 VJx={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(DPk).join("|");var XYW=function(){function g(v){v.substr(-1)!==";"&&(v+=";");return y(v)}
for(var u=Object.keys(VJx).sort(vkb),q=Object.keys(DPk).sort(vkb),Q=0,L=0;Q<q.length;Q++)u[L]===q[Q]?(q[Q]+=";?",L++):q[Q]+=";";var E=new RegExp("&(?:"+q.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),y=pl3();return function(v){return String(v).replace(E,g)}}();/*

 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 r7W={};var Wlo=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"),Ty0=/[\\&]/,hz$=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),YIH=RegExp('[&<>"]',"g"),Ono=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Klb=function(g){return g.charCodeAt(0)===92?g.charAt(1):XYW(g)},x0R=function(g){return Ty0.test(g)?g.replace(hz$,Klb):g},Byb=function(g){try{var u,q="";
if(typeof L!=="string"){var Q=L;var L=";/?:@&=+$,-_.!~*'()#"}typeof Q==="undefined"&&(Q=!0);var E,y=r7W[L];if(y)var v=y;else{y=r7W[L]=[];for(E=0;E<128;E++){var J=String.fromCharCode(E);/^[0-9a-z]$/i.test(J)?y.push(J):y.push("%"+("0"+E.toString(16).toUpperCase()).slice(-2))}for(E=0;E<L.length;E++)y[L.charCodeAt(E)]=L[E];v=y}var f=0;for(u=g.length;f<u;f++){var t=g.charCodeAt(f);if(Q&&t===37&&f+2<u&&/^[0-9a-f]{2}$/i.test(g.slice(f+1,f+3)))q+=g.slice(f,f+3),f+=2;else if(t<128)q+=v[t];else if(t>=55296&&
t<=57343){if(t>=55296&&t<=56319&&f+1<u){var e=g.charCodeAt(f+1);if(e>=56320&&e<=57343){q+=encodeURIComponent(g[f]+g[f+1]);f++;continue}}q+="%EF%BF%BD"}else q+=encodeURIComponent(g[f])}return q}catch(G){return g}},zzb=function(g){switch(g){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return g}},WN=function(g,u){return YIH.test(g)?u?g.replace(Ono,zzb):g.replace(YIH,zzb):g};/*

 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 TP;if(String.fromCodePoint)TP=function(g){try{return String.fromCodePoint(g)}catch(u){if(u instanceof RangeError)return String.fromCharCode(65533);throw u;}};
else{var ny0=String.fromCharCode,kk0=Math.floor;TP=function(){var g=[],u=-1,q=arguments.length;if(!q)return"";for(var Q="";++u<q;){var L=Number(arguments[u]);if(!isFinite(L)||L<0||L>1114111||kk0(L)!==L)return String.fromCharCode(65533);if(L<=65535)g.push(L);else{L-=65536;var E=(L>>10)+55296;L=L%1024+56320;g.push(E,L)}if(u+1===q||g.length>16384)Q+=ny0.apply(null,g),g.length=0}return Q}};var SI5=function(g){this.root=this.current=g;this.entering=!0};
SI5.prototype.next=function(){var g=this.current,u=this.entering;if(g===null)return null;a:switch(g._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 q=!0;break a;default:q=!1}u&&q?g._firstChild?(this.current=g._firstChild,this.entering=!0):this.entering=!1:g===this.root?this.current=null:g._next===null?(this.current=
g._parent,this.entering=!1):(this.current=g._next,this.entering=!0);return{entering:u,node:g}};
var tg=function(g,u){this._type=g;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=u;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};
tg.prototype.appendChild=function(g){g.unlink();g._parent=this;this._lastChild?(this._lastChild._next=g,g._prev=this._lastChild):this._firstChild=g;this._lastChild=g};
tg.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 oyW=function(g,u){u.unlink();u._next=g._next;u._next&&(u._next._prev=u);u._prev=g;g._next=u;u._parent=g._parent;u._next||(u._parent._lastChild=u)};
tg.prototype.insertBefore=function(g){g.unlink();g._prev=this._prev;g._prev&&(g._prev._next=g);g._next=this;this._prev=g;g._parent=this._parent;g._prev||(g._parent._firstChild=g)};
_.z3.Object.defineProperties(tg.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(g){this._literal=g}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(g){this._destination=g}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(g){this._title=g}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(g){this._info=g}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(g){this._level=g}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(g){this._listData.type=g}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(g){this._listData.tight=g}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(g){this._listData.start=g}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(g){this._onEnter=g}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(g){this._onExit=g}}});var Jzm=/[ \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,
jVk={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 U05=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]/),
gbX=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),uaX=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),qf8=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),Q10=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),LZ2=/`+/,Ebi=/^`+/,PbX=/\.\.\./g,N_W=/--+/g,s1a=/^<([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])?)*)>/,
yZW=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,vbb=/^ *(?:\n *)?/,DW2=/^[ \t\n\x0b\x0c\x0d]/,pbn=/[ \t\n\x0b\x0c\x0d]+/g,JZa=/^\s/,j1b=/ *$/,fe2=/^ */,MVW=/^ *(?:\n|$)/,tVn=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),e2Z=/^[^\n`\[\]\\!<&*_'"]+/m,hm=function(g){var u=new tg("text");u._literal=g;return u},YI=function(g){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=g||{}};
YI.prototype.match=function(g){g=g.exec(this.subject.slice(this.pos));if(g===null)return null;this.pos+=g.index+g[0].length;return g[0]};
YI.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Ot=function(g){g.match(vbb);return!0},Gxo=function(g,u,q){var Q=0;
var L=g.pos;if(u===39||u===34)Q++,g.pos++;else for(;g.peek()===u;)Q++,g.pos++;if(Q===0)Q=null;else{var E=L===0?"\n":g.subject.charAt(L-1);var y=g.peek();y=y===-1?"\n":TP(y);var v=JZa.test(y);y=U05.test(y);var J=JZa.test(E);var f=U05.test(E);E=!v&&!(y&&!J&&!f);v=!J&&!(f&&!v&&!y);u===95?(J=E&&(!v||f),y=v&&(!E||y)):(J=u===39||u===34?E&&!v:E,y=v);g.pos=L;Q={numdelims:Q,can_open:J,can_close:y}}if(!Q)return!1;L=Q.numdelims;y=g.pos;g.pos+=L;y=u===39?"\u2019":u===34?"\u201c":g.subject.slice(y,g.pos);y=hm(y);
q.appendChild(y);g.delimiters={cc:u,numdelims:L,origdelims:L,node:y,previous:g.delimiters,next:null,can_open:Q.can_open,can_close:Q.can_close};g.delimiters.previous!==null&&(g.delimiters.previous.next=g.delimiters);return!0},$WH=function(g,u){u.previous!==null&&(u.previous.next=u.next);
u.next===null?g.delimiters=u.previous:u.next.previous=u.previous},R20=function(g,u){var q,Q,L=[],E=!1;
L[95]=u;L[42]=u;L[39]=u;L[34]=u;for(q=g.delimiters;q!==null&&q.previous!==u;)q=q.previous;for(;q!==null;){var y=q.cc;if(q.can_close){var v=q.previous;for(Q=!1;v!==null&&v!==u&&v!==L[y];){E=(q.can_open||v.can_close)&&(v.origdelims+q.origdelims)%3===0;if(v.cc===q.cc&&v.can_open&&!E){Q=!0;break}v=v.previous}var J=q;if(y===42||y===95)if(Q){var f=q.numdelims>=2&&v.numdelims>=2?2:1;var t=v.node;var e=q.node;v.numdelims-=f;q.numdelims-=f;t._literal=t._literal.slice(0,t._literal.length-f);e._literal=e._literal.slice(0,
e._literal.length-f);var G=new tg(f===1?"emph":"strong");for(f=t._next;f&&f!==e;){var R=f._next;f.unlink();G.appendChild(f);f=R}oyW(t,G);f=v;R=q;f.next!==R&&(f.next=R,R.previous=f);v.numdelims===0&&(t.unlink(),$WH(g,v));q.numdelims===0&&(e.unlink(),v=q.next,$WH(g,q),q=v)}else q=q.next;else y===39?(q.node._literal="\u2019",Q&&(v.node._literal="\u2018"),q=q.next):y===34&&(q.node._literal="\u201d",Q&&(v.node.literal="\u201c"),q=q.next);Q||E||(L[y]=J.previous,J.can_open||$WH(g,J))}else q=q.next}for(;g.delimiters!==
null&&g.delimiters!==u;)$WH(g,g.delimiters)},wb8=function(g){g=g.match(gbX);
return g===null?null:x0R(g.substr(1,g.length-2))},cZ8=function(g){var u=g.match(uaX);
if(u===null){u=g.pos;for(var q=0,Q;(Q=g.peek())!==-1;)if(Q===92)g.pos+=1,g.peek()!==-1&&(g.pos+=1);else if(Q===40)g.pos+=1,q+=1;else if(Q===41)if(q<1)break;else g.pos+=1,--q;else if(DW2.exec(TP(Q))!==null)break;else g.pos+=1;u=g.subject.substr(u,g.pos-u);return Byb(x0R(u))}return Byb(x0R(u.substr(1,u.length-2)))},H3R=function(g){g=g.match(tVn);
return g===null||g.length>1001?0:g.length},AZ5=function(g,u,q,Q){g.brackets!==null&&(g.brackets.bracketAfter=!0);
g.brackets={node:u,previous:g.brackets,previousDelimiter:g.delimiters,index:q,image:Q,active:!0}},Z3b=function(g,u){var q;
return(q=g.match(e2Z))?(g.options.smart?u.appendChild(hm(q.replace(PbX,"\u2026").replace(N_W,function(Q){var L=0,E=0;Q.length%3===0?E=Q.length/3:Q.length%2===0?L=Q.length/2:Q.length%3===2?(L=1,E=(Q.length-2)/3):(L=2,E=(Q.length-4)/3);Q="";var y;for(y=0;y<E;y++)Q+="\u2014";for(y=0;y<L;y++)Q+="\u2013";return Q}))):u.appendChild(hm(q)),!0):!1},le8=function(g,u,q){g.subject=u;
g.pos=0;u=g.pos;var Q=H3R(g);if(Q===0)return 0;var L=g.subject.substr(0,Q);if(g.peek()===58)g.pos++;else return g.pos=u,0;Ot(g);Q=cZ8(g);if(Q===null||Q.length===0)return g.pos=u,0;var E=g.pos;Ot(g);var y=wb8(g);y===null&&(y="",g.pos=E);var v=!0;g.match(MVW)===null&&(y===""?v=!1:(y="",g.pos=E,v=g.match(MVW)!==null));if(!v)return g.pos=u,0;L=fBK(L);if(L==="")return g.pos=u,0;q[L]||(q[L]={destination:Q,title:y});return g.pos-u},Ie0=function(g,u){var q,Q=g.peek();
if(Q===-1)return!1;switch(Q){case 10:g.pos+=1;if((q=u._lastChild)&&q.type==="text"&&q._literal[q._literal.length-1]===" "){var L=q._literal[q._literal.length-2]===" ";q._literal=q._literal.replace(j1b,"");u.appendChild(new tg(L?"linebreak":"softbreak"))}else u.appendChild(new tg("softbreak"));g.match(fe2);q=!0;break;case 92:q=g.subject;g.pos+=1;g.peek()===10?(g.pos+=1,q=new tg("linebreak"),u.appendChild(q)):qf8.test(q.charAt(g.pos))?(u.appendChild(hm(q.charAt(g.pos))),g.pos+=1):u.appendChild(hm("\\"));
q=!0;break;case 96:a:if(q=g.match(Ebi),q===null)q=!1;else{L=g.pos;for(var E;(E=g.match(LZ2))!==null;)if(E===q){E=new tg("code");E._literal=g.subject.slice(L,g.pos-q.length).trim().replace(pbn," ");u.appendChild(E);q=!0;break a}g.pos=L;u.appendChild(hm(q));q=!0}break;case 42:case 95:q=Gxo(g,Q,u);break;case 39:case 34:q=g.options.smart&&Gxo(g,Q,u);break;case 91:q=g.pos;g.pos+=1;L=hm("[");u.appendChild(L);AZ5(g,L,q,!1);q=!0;break;case 33:q=g.pos;g.pos+=1;g.peek()===91?(g.pos+=1,L=hm("!["),u.appendChild(L),
AZ5(g,L,q+1,!0)):u.appendChild(hm("!"));q=!0;break;case 93:var y,v=!1,J;g.pos+=1;var f=g.pos;L=g.brackets;if(L===null)u.appendChild(hm("]"));else if(L.active){q=L.image;var t=g.pos;g.peek()===40&&(g.pos++,Ot(g)&&(E=cZ8(g))!==null&&Ot(g)&&(DW2.test(g.subject.charAt(g.pos-1))&&(y=wb8(g)),1)&&Ot(g)&&g.peek()===41?(g.pos+=1,v=!0):g.pos=t);if(!v){var e=g.pos,G=H3R(g);G>2?J=g.subject.slice(e,e+G):L.bracketAfter||(J=g.subject.slice(L.index,f));G===0&&(g.pos=t);J&&(J=g.refmap[fBK(J)])&&(E=J.destination,y=
J.title,v=!0)}if(v){f=new tg(q?"image":"link");f._destination=E;f._title=y||"";for(E=L.node._next;E;)y=E._next,E.unlink(),f.appendChild(E),E=y;u.appendChild(f);R20(g,L.previousDelimiter);g.brackets=g.brackets.previous;L.node.unlink();if(!q)for(L=g.brackets;L!==null;)L.image||(L.active=!1),L=L.previous}else g.brackets=g.brackets.previous,g.pos=f,u.appendChild(hm("]"))}else u.appendChild(hm("]")),g.brackets=g.brackets.previous;q=!0;break;case 60:(q=g.match(s1a))?(q=q.slice(1,q.length-1),L=new tg("link"),
L._destination=Byb("mailto:"+q),L._title="",L.appendChild(hm(q)),u.appendChild(L),q=!0):(q=g.match(yZW))?(q=q.slice(1,q.length-1),L=new tg("link"),L._destination=Byb(q),L._title="",L.appendChild(hm(q)),u.appendChild(L),q=!0):q=!1;q||(q=g.match(Wlo),q===null?q=!1:(L=new tg("html_inline"),L._literal=q,u.appendChild(L),q=!0));break;case 38:(q=g.match(Q10))?(u.appendChild(hm(XYW(q))),q=!0):q=!1;break;default:q=Z3b(g,u)}q||(g.pos+=1,u.appendChild(hm(TP(Q))));return!0};
YI.prototype.parseInlines=function(g){this.subject=g._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Ie0(this,g););g._string_content=null;R20(this,null)};
YI.prototype.parse=YI.prototype.parseInlines;var i35=[/./,/^<(?: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")],Cbo=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],b3n=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,dWn=/^[#`~*+_=<>0-9-\|]|\|/,FZH=/[^ \t\f\v\r\n]/,mW$=/^[*+-]/,aeW=/^(\d{1,9})([.)])/,VVW=/^#{1,6}(?:[ \t]+|$)/,XbW=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,rZW=/^(?:`{3,}|~{3,})(?= *$)/,WZn=/^(?:=+|-+)[ \t]*$/,T_R=/\r\n|\n|\r/,tkk=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,eyq=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,h28={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(g){return g!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(g,u){for(g=u._firstChild;g;){if(MkF(g)&&g._next){u._listData.tight=!1;break}for(var q=g._firstChild;q;){if(MkF(q)&&(g._next||q._next)){u._listData.tight=!1;break}q=q._next}g=g._next}},
canContain:function(g){return g==="item"},
acceptsLines:!1},block_quote:{continue:function(g){var u=g.currentLine;if(g.indented||fd(u,g.nextNonspace)!==62)return 1;K8(g);xI(g,1,!1);jZ(fd(u,g.offset))&&xI(g,1,!0);return 0},
finalize:function(){},
canContain:function(g){return g!=="item"},
acceptsLines:!1},item:{continue:function(g,u){if(g.blank){if(u._firstChild==null)return 1;K8(g)}else if(g.indent>=u._listData.markerOffset+u._listData.padding)xI(g,u._listData.markerOffset+u._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(g){return g!=="item"&&!GAJ(g)},
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(g,u){var q=g.currentLine,Q=g.indent;if(u._isFenced){if((Q=Q<=3&&q.charAt(g.nextNonspace)===u._fenceChar&&q.slice(g.nextNonspace).match(rZW))&&Q[0].length>=u._fenceLength)return g.finalize(u,g.lineNumber),2;for(u=u._fenceOffset;u>0&&jZ(fd(q,g.offset));)xI(g,1,!0),u--}else if(Q>=4)xI(g,4,!0);else if(g.blank)K8(g);else return 1;return 0},
finalize:function(g,u){if(u._isFenced){var q=u._string_content,Q=q.indexOf("\n");g=q.slice(0,Q);q=q.slice(Q+1);u.info=x0R(g.trim());u._literal=q}else u._literal=u._string_content.replace(/(\n *)+$/,"\n");u._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(g,u){return!g.blank||u._htmlBlockType!==6&&u._htmlBlockType!==7?0:1},
finalize:function(g,u){u._literal=u._string_content.replace(/(\n *)+$/,"");u._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(g){return g.blank?1:0},
finalize:function(g,u){for(var q,Q=!1;fd(u._string_content,0)===91&&(q=le8(g.inlineParser,u._string_content,g.refmap));)u._string_content=u._string_content.slice(q),Q=!0;Q&&!FZH.test(u._string_content)&&u.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(g){return MM(g.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(g){return g=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(g,u){if(!u._rowIsDelimiter){g=u._isHeader?"th":"td";for(var q=u._parent._tableColumns,Q=u._string_content,L=0,E="",y,v=u._sourcepos[0][0];L<Q.length;){switch(Q[L]){case "|":y&&(y._string_content=E.trim(),E="",y=null,q--,q<=0&&(L=Q.length));break;default:if(!y){y=new tg(g,[[v,L],[v,L]]);var J=u._parent._columnAlignment,f=u._parent._tableColumns-q;J&&f<=J.length&&f>=0&&(y._alignment=J[f]);u.appendChild(y)}E+=Q[L];y._sourcepos[1][1]=L}L++}y&&(y._string_content=E.trim());u._string_content=
""}},
canContain:function(g){return g!=="row"},
acceptsLines:!1}},Yfb=[function(g){if(g.indented||fd(g.currentLine,g.nextNonspace)!==62)return 0;K8(g);xI(g,1,!1);jZ(fd(g.currentLine,g.offset))&&xI(g,1,!0);BN(g);g.addChild("block_quote",g.nextNonspace);return 1},
function(g){var u;if(!g.indented&&(u=g.currentLine.slice(g.nextNonspace).match(VVW))){K8(g);xI(g,u[0].length,!1);BN(g);var q=g.addChild("heading",g.nextNonspace);q.level=u[0].trim().length;q._string_content=g.currentLine.slice(g.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");xI(g,g.currentLine.length-g.offset);return 2}return 0},
function(g){var u;if(!g.indented&&(u=g.currentLine.slice(g.nextNonspace).match(XbW))){var q=u[0].length;BN(g);var Q=g.addChild("code_block",g.nextNonspace);Q._isFenced=!0;Q._fenceLength=q;Q._fenceChar=u[0][0];Q._fenceOffset=g.indent;K8(g);xI(g,q,!1);return 2}return 0},
function(g,u){if(!g.indented&&fd(g.currentLine,g.nextNonspace)===60){var q=g.currentLine.slice(g.nextNonspace),Q;for(Q=1;Q<=7;Q++)if(i35[Q].test(q)&&(Q<7||u.type!=="paragraph"))return BN(g),g.addChild("html_block",g.offset)._htmlBlockType=Q,2}return 0},
function(g,u){var q;if(!g.indented&&u.type==="paragraph"&&(q=g.currentLine.slice(g.nextNonspace).match(WZn))){BN(g);var Q=new tg("heading",u.sourcepos);Q.level=q[0][0]==="="?1:2;Q._string_content=u._string_content;oyW(u,Q);u.unlink();g.tip=Q;xI(g,g.currentLine.length-g.offset,!1);return 2}return 0},
function(g){return!g.indented&&b3n.test(g.currentLine.slice(g.nextNonspace))?(BN(g),g.addChild("thematic_break",g.nextNonspace),xI(g,g.currentLine.length-g.offset,!1),2):0},
function(g,u){var q,Q;if(!(Q=g.indented&&u.type!=="list")){a:{var L=u,E=g.currentLine.slice(g.nextNonspace);Q={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:g.indent};if(q=E.match(mW$))Q.type="bullet",Q.bulletChar=q[0][0];else{if(!(q=E.match(aeW))||L.type==="paragraph"&&q[1]!=="1"){q=null;break a}Q.type="ordered";Q.start=parseInt(q[1],10);Q.delimiter=q[2]}var y=fd(g.currentLine,g.nextNonspace+q[0].length);if(y!==-1&&y!==9&&y!==32||L.type==="paragraph"&&!g.currentLine.slice(g.nextNonspace+
q[0].length).match(FZH))q=null;else{K8(g);xI(g,q[0].length,!0);L=g.column;E=g.offset;do xI(g,1,!0),y=fd(g.currentLine,g.offset);while(g.column-L<5&&jZ(y));y=fd(g.currentLine,g.offset)===-1;var v=g.column-L;v>=5||v<1||y?(Q.padding=q[0].length+1,g.column=L,g.offset=E,jZ(fd(g.currentLine,g.offset))&&xI(g,1,!0)):Q.padding=q[0].length+v;q=Q}}Q=!q}if(Q)return 0;BN(g);(Q=g.tip.type!=="list")||(u=u._listData,Q=!(u.type===q.type&&u.delimiter===q.delimiter&&u.bulletChar===q.bulletChar));Q&&(u=g.addChild("list",
g.nextNonspace),u._listData=q);u=g.addChild("item",g.nextNonspace);u._listData=q;return 1},
function(g){var u;return((u=g.options.shouldParseIndentAsCodeBlock)!=null?u:1)&&g.indented&&g.tip.type!=="paragraph"&&!g.blank?(xI(g,4,!0),BN(g),g.addChild("code_block",g.offset),2):0},
function(g,u){var q=MM(g.currentLine),Q=MM(g.lookahead);if(q!==0&&Q<0&&Math.abs(q)==Math.abs(Q)&&!GAJ(u.type)){BN(g);u=g.addChild("table",g.nextNonspace);u._tableRows=1;u._tableColumns=Math.abs(q);q=g.lookahead;if(eyq.test(q)){Q=[];for(var L=0,E=!1,y=0,v=void 0;L<q.length;){var J=y>=3;switch(q[L]){case "-":y++;break;case "|":E&&(Q.push(v),v=void 0,y=0);E=!0;break;case ":":v||J||(v="left"),!v&&J&&(v="right"),v==="left"&&J&&(v="center")}L++}q=Q}else q=void 0;u._columnAlignment=q;u=g.addChild("row",
g.nextNonspace);u._isHeader=!0;xI(g,g.currentLine.length-g.offset,!1);u._string_content=g.currentLine;return 1}return 0},
function(g,u){if(u.type=="table"&&MM(g.currentLine)!==0){BN(g);var q=u;u=g.addChild("row",g.nextNonspace);MM(g.currentLine)<0?u._rowIsDelimiter=!0:q._tableRows+=1;xI(g,g.currentLine.length-g.offset,!1);u._string_content=g.currentLine;return 2}return 0}],Wab=function(){var g={shouldParseIndentAsCodeBlock:!1};
g=g===void 0?{}:g;this.lastMatchedContainer=this.doc=$Pq();this.refmap={};this.lastLineLength=0;this.inlineParser=new YI(g);this.options=g;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=h28;this.blockStarts=Yfb},O3n=function(g){g.partiallyConsumedTab&&(g.offset+=1,g.tip._string_content+=" ".repeat(4-g.column%
4));
g.tip._string_content+=g.currentLine.slice(g.offset)+"\n"};
Wab.prototype.addChild=function(g,u){for(;!this.blocks[this.tip.type].canContain(g);)this.finalize(this.tip,this.lineNumber-1);g=new tg(g,[[this.lineNumber,u+1],[0,0]]);g._string_content="";this.tip.appendChild(g);return this.tip=g};
var BN=function(g){if(!g.allClosed){for(;g.oldtip!==g.lastMatchedContainer;){var u=g.oldtip._parent;g.finalize(g.oldtip,g.lineNumber-1);g.oldtip=u}g.allClosed=!0}},xI=function(g,u,q){for(var Q=g.currentLine,L,E;u>0&&(E=Q[g.offset]);)E==="\t"?(L=4-g.column%4,q?(g.partiallyConsumedTab=L>u,L=L>u?u:L,g.column+=L,g.offset+=g.partiallyConsumedTab?0:1,u-=L):(g.partiallyConsumedTab=!1,g.column+=L,g.offset+=1,--u)):(g.partiallyConsumedTab=!1,g.offset+=1,g.column+=1,--u)},K8=function(g){g.offset=g.nextNonspace;
g.column=g.nextNonspaceColumn;g.partiallyConsumedTab=!1},KZ0=function(g){for(var u=g.currentLine,q=g.offset,Q=g.column,L;(L=u.charAt(q))!=="";)if(L===" ")q++,Q++;
else if(L==="\t")q++,Q+=4-Q%4;else break;g.blank=L==="\n"||L==="\r"||L==="";g.nextNonspace=q;g.nextNonspaceColumn=Q;g.indent=g.nextNonspaceColumn-g.column;g.indented=g.indent>=4};
Wab.prototype.finalize=function(g,u){var q=g._parent;g._open=!1;g.sourcepos[1]=[u,this.lastLineLength];this.blocks[g.type].finalize(this,g);this.tip=q};
Wab.prototype.parse=function(g){this.tip=this.doc=$Pq();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!g)return this.doc;this.options.time&&console.time("preparing input");var u=g.split(T_R),q=u.length;g.charCodeAt(g.length-1)===10&&--q;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(g=0;g<q;g++)a:{var Q=void 0,L=u[g],E=u[g+1],y=!0,v=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;L.indexOf("\x00")!==-1&&(L=L.replace(/\0/g,"\ufffd"));this.currentLine=L;for(this.lookahead=E;(Q=v._lastChild)&&Q._open;){v=Q;KZ0(this);switch(this.blocks[v.type].continue(this,v)){case 0:break;case 1:y=!1;break;case 2:this.lastLineLength=L.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!y){v=v._parent;break}}this.allClosed=v===this.oldtip;this.lastMatchedContainer=
v;Q=v.type!=="paragraph"&&h28[v.type].acceptsLines;E=this.blockStarts;for(y=E.length;!Q;){KZ0(this);if(!this.indented&&!dWn.test(L.slice(this.nextNonspace))){K8(this);break}for(var J=0;J<y;){var f=E[J](this,v);if(f===1){v=this.tip;break}else if(f===2){v=this.tip;Q=!0;break}else J++}if(J===y){K8(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){BN(this);this.blank&&v.lastChild&&(v.lastChild._lastLineBlank=!0);Q=v.type;E=this.blank&&!(Q==="block_quote"||Q==="code_block"&&v._isFenced||
Q==="item"&&!v._firstChild&&v.sourcepos[0][0]===this.lineNumber);for(y=v;y;)y._lastLineBlank=E,y=y._parent;this.blocks[Q].acceptsLines?(O3n(this),Q==="html_block"&&v._htmlBlockType>=1&&v._htmlBlockType<=5&&Cbo[v._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(v,this.lineNumber)):this.offset<L.length&&!this.blank&&(this.addChild("paragraph",this.offset),K8(this),O3n(this))}else O3n(this);this.lastLineLength=L.length}for(;this.tip;)this.finalize(this.tip,q);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");L=new SI5(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;q=L.next();)u=q.node,g=u.type,q.entering||g!=="paragraph"&&g!=="heading"&&g!=="th"&&g!="td"||this.inlineParser.parse(u);this.options.time&&console.timeEnd("inline parsing");return this.doc};RyT.prototype.render=function(g){g=new SI5(g);var u;this.buffer="";for(this.lastOut="\n";u=g.next();){var q=u.node.type;if(this[q])this[q](u.node,u.entering)}return this.buffer};
RyT.prototype.out=function(g){zP(this,g)};
var zP=function(g,u){g.buffer+=u;g.lastOut=u};
RyT.prototype.cr=function(){this.lastOut!=="\n"&&zP(this,"\n")};var xWx=/^javascript:|vbscript:|file:|data:/i,B_R=/^data:image\/(?:png|gif|jpeg|webp)/i,z2n=function(g){return xWx.test(g)&&!B_R.test(g)};
eZ.prototype=Object.create(RyT.prototype);_.P=eZ.prototype;_.P.text=function(g){this.out(g.literal)};
_.P.html_inline=function(g){this.options.safe?zP(this,"\x3c!-- raw HTML omitted --\x3e"):zP(this,g.literal)};
_.P.html_block=function(g){this.cr();this.options.safe?zP(this,"\x3c!-- raw HTML omitted --\x3e"):zP(this,g.literal);this.cr()};
_.P.softbreak=function(){zP(this,this.options.softbreak)};
_.P.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.P.link=function(g,u){var q=this.attrs(g);u?(this.options.safe&&z2n(g.destination)||q.push(["href",WN(g.destination,!0)]),g.title&&q.push(["title",WN(g.title,!0)]),this.tag("a",q)):this.tag("/a")};
_.P.image=function(g,u){u?(this.disableTags===0&&(this.options.safe&&z2n(g.destination)?zP(this,'<img src="" alt="'):zP(this,'<img src="'+WN(g.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(g.title&&zP(this,'" title="'+WN(g.title,!0)),zP(this,'" />')))};
_.P.emph=function(g,u){this.tag(u?"em":"/em")};
_.P.strong=function(g,u){this.tag(u?"strong":"/strong")};
_.P.paragraph=function(g,u){var q=g.parent.parent;g=this.attrs(g);q!==null&&q.type==="list"&&q.listTight||(u?(this.cr(),this.tag("p",g)):(this.tag("/p"),this.cr()))};
_.P.heading=function(g,u){var q="h"+g.level;g=this.attrs(g);u?(this.cr(),this.tag(q,g)):(this.tag("/"+q),this.cr())};
_.P.code=function(g){this.tag("code");this.out(g.literal);this.tag("/code")};
_.P.code_block=function(g){var u=g.info?g.info.split(/\s+/):[],q=this.attrs(g);u.length>0&&u[0].length>0&&q.push(["class","language-"+WN(u[0],!0)]);this.cr();this.tag("pre");this.tag("code",q);this.out(g.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.P.thematic_break=function(g){g=this.attrs(g);this.cr();this.tag("hr",g,!0);this.cr()};
_.P.block_quote=function(g,u){g=this.attrs(g);u?(this.cr(),this.tag("blockquote",g)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.P.list=function(g,u){var q=g.listType==="bullet"?"ul":"ol",Q=this.attrs(g);u?(g=g.listStart,g!==null&&g!==1&&Q.push(["start",g.toString()]),this.cr(),this.tag(q,Q)):(this.cr(),this.tag("/"+q));this.cr()};
_.P.item=function(g,u){g=this.attrs(g);u?this.tag("li",g):(this.tag("/li"),this.cr())};
_.P.custom_inline=function(g,u){u&&g.onEnter?zP(this,g.onEnter):!u&&g.onExit&&zP(this,g.onExit)};
_.P.custom_block=function(g,u){this.cr();u&&g.onEnter?zP(this,g.onEnter):!u&&g.onExit&&zP(this,g.onExit);this.cr()};
_.P.table=function(g,u){g=this.attrs(g);u?(this.cr(),this.tag("table",g)):(this.tag("/table"),this.cr())};
_.P.row=function(g,u){g._rowIsDelimiter||(g=this.attrs(g),u?this.tag("tr",g):this.tag("/tr"))};
_.P.td=function(g,u){var q=this.attrs(g);g._alignment&&q.push(["align",g._alignment]);u?this.tag("td",q):this.tag("/td")};
_.P.th=function(g,u){var q=this.attrs(g);g._alignment&&q.push(["align",g._alignment]);u?this.tag("th",q):this.tag("/th")};
_.P.out=function(g){zP(this,WN(g,!1))};
_.P.tag=function(g,u,q){if(!(this.disableTags>0)){this.buffer+="<"+g;if(u&&u.length>0){g=0;for(var Q;(Q=u[g])!==void 0;)this.buffer+=" "+Q[0]+'="'+Q[1]+'"',g++}q&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.P.attrs=function(g){var u=[];this.options.sourcepos&&(g=g.sourcepos)&&u.push(["data-sourcepos",String(g[0][0])+":"+String(g[0][1])+"-"+String(g[1][0])+":"+String(g[1][1])]);return u};
eZ.prototype.text=eZ.prototype.text;eZ.prototype.html_inline=eZ.prototype.html_inline;eZ.prototype.html_block=eZ.prototype.html_block;eZ.prototype.softbreak=eZ.prototype.softbreak;eZ.prototype.linebreak=eZ.prototype.linebreak;eZ.prototype.link=eZ.prototype.link;eZ.prototype.image=eZ.prototype.image;eZ.prototype.emph=eZ.prototype.emph;eZ.prototype.strong=eZ.prototype.strong;eZ.prototype.paragraph=eZ.prototype.paragraph;eZ.prototype.heading=eZ.prototype.heading;eZ.prototype.code=eZ.prototype.code;
eZ.prototype.code_block=eZ.prototype.code_block;eZ.prototype.thematic_break=eZ.prototype.thematic_break;eZ.prototype.block_quote=eZ.prototype.block_quote;eZ.prototype.list=eZ.prototype.list;eZ.prototype.item=eZ.prototype.item;eZ.prototype.custom_inline=eZ.prototype.custom_inline;eZ.prototype.custom_block=eZ.prototype.custom_block;eZ.prototype.table=eZ.prototype.table;eZ.prototype.row=eZ.prototype.row;eZ.prototype.td=eZ.prototype.td;eZ.prototype.th=eZ.prototype.th;eZ.prototype.out=eZ.prototype.out;
eZ.prototype.tag=eZ.prototype.tag;eZ.prototype.attrs=eZ.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 nbZ,kxW,BAK;(function(){function g(m,b){return m<b?-1:m>b?1:m>=b?0:NaN}
function u(m){return function(b,h){return g(m(b),h)}}
function q(){for(var m=0,b=arguments.length,h={},q3;m<b;++m){if(!(q3=arguments[m]+"")||q3 in h)throw Error("ye`"+q3);h[q3]=[]}return new Q(h)}
function Q(m){this._=m}
function L(m,b){return m.trim().split(/^|\s+/).map(function(h){var q3="",Dk=h.indexOf(".");Dk>=0&&(q3=h.slice(Dk+1),h=h.slice(0,Dk));if(h&&!b.hasOwnProperty(h))throw Error("ze`"+h);return{type:h,name:q3}})}
function E(m,b,h){for(var q3=0,Dk=m.length;q3<Dk;++q3)if(m[q3].name===b){m[q3]=hDb;m=m.slice(0,q3).concat(m.slice(q3+1));break}h!=null&&m.push({name:b,value:h});return m}
function y(m){var b=m,h=b.indexOf(":");h>=0&&(b=m.slice(0,h))!=="xmlns"&&(m=m.slice(h+1));return cb.hasOwnProperty(b)?{space:cb[b],local:m}:m}
function v(m){return function(){var b=this.ownerDocument,h=this.namespaceURI;return h==="http://www.w3.org/1999/xhtml"&&b.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?b.createElement(m):b.createElementNS(h,m)}}
function J(m){return function(){return this.ownerDocument.createElementNS(m.space,m.local)}}
function f(m){m=y(m);return(m.local?J:v)(m)}
function t(){}
function e(m){return m==null?t:function(){return this.querySelector(m)}}
function G(m){return Array(m.length)}
function R(m,b){this.ownerDocument=m.ownerDocument;this.namespaceURI=m.namespaceURI;this._next=null;this._parent=m;this.__data__=b}
function H(m){return function(){return m}}
function l(m,b,h,q3,Dk,$u){for(var Zk=0,Ff,y$=b.length,Lo=$u.length;Zk<Lo;++Zk)(Ff=b[Zk])?(Ff.__data__=$u[Zk],q3[Zk]=Ff):h[Zk]=new R(m,$u[Zk]);for(;Zk<y$;++Zk)if(Ff=b[Zk])Dk[Zk]=Ff}
function d(m,b,h,q3,Dk,$u,Zk){var Ff,y$,Lo={},DH=b.length,RR=$u.length,U0=Array(DH),Vp;for(Ff=0;Ff<DH;++Ff)if(y$=b[Ff])U0[Ff]=Vp="$"+Zk.call(y$,y$.__data__,Ff,b),Vp in Lo?Dk[Ff]=y$:Lo[Vp]=y$;for(Ff=0;Ff<RR;++Ff)Vp="$"+Zk.call(m,$u[Ff],Ff,$u),(y$=Lo[Vp])?(q3[Ff]=y$,y$.__data__=$u[Ff],Lo[Vp]=null):h[Ff]=new R(m,$u[Ff]);for(Ff=0;Ff<DH;++Ff)(y$=b[Ff])&&Lo[U0[Ff]]===y$&&(Dk[Ff]=y$)}
function F(m,b){return m<b?-1:m>b?1:m>=b?0:NaN}
function V(m){return function(){this.removeAttribute(m)}}
function z(m){return function(){this.removeAttributeNS(m.space,m.local)}}
function O(m,b){return function(){this.setAttribute(m,b)}}
function W(m,b){return function(){this.setAttributeNS(m.space,m.local,b)}}
function x(m,b){return function(){var h=b.apply(this,arguments);h==null?this.removeAttribute(m):this.setAttribute(m,h)}}
function k(m,b){return function(){var h=b.apply(this,arguments);h==null?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,h)}}
function LZ(m){return function(){this.style.removeProperty(m)}}
function sb(m,b,h){return function(){this.style.setProperty(m,b,h)}}
function Rm(m,b,h){return function(){var q3=b.apply(this,arguments);q3==null?this.style.removeProperty(m):this.style.setProperty(m,q3,h)}}
function M3(m,b){return m.style.getPropertyValue(b)||(m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView).getComputedStyle(m,null).getPropertyValue(b)}
function tT(m){return function(){delete this[m]}}
function mJ(m,b){return function(){this[m]=b}}
function hT(m,b){return function(){var h=b.apply(this,arguments);h==null?delete this[m]:this[m]=h}}
function Yu(){this.textContent=""}
function Mx(m){return function(){this.textContent=m}}
function po(m){return function(){var b=m.apply(this,arguments);this.textContent=b==null?"":b}}
function KZ(){this.innerHTML=""}
function G2(m){return function(){this.innerHTML=m}}
function Ab(m){return function(){var b=m.apply(this,arguments);this.innerHTML=b==null?"":b}}
function tb(){return null}
function lx(){var m=this.parentNode;m&&m.removeChild(this)}
function NE(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function fZ(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Xf(m,b,h){m=eX(m,b,h);return function(q3){var Dk=q3.relatedTarget;Dk&&(Dk===this||Dk.compareDocumentPosition(this)&8)||m.call(this,q3)}}
function eX(m,b,h){return function(){m.call(this,this.__data__,b,h)}}
function no(m){return m.trim().split(/^|\s+/).map(function(b){var h="",q3=b.indexOf(".");q3>=0&&(h=b.slice(q3+1),b=b.slice(0,q3));return{type:b,name:h}})}
function Co(m){return function(){var b=this.__on;if(b){for(var h=0,q3=-1,Dk=b.length,$u;h<Dk;++h)($u=b[h],m.type&&$u.type!==m.type||$u.name!==m.name)?b[++q3]=$u:this.removeEventListener($u.type,$u.listener,$u.capture);++q3?b.length=q3:delete this.__on}}}
function gC(m,b,h){var q3=WA2.hasOwnProperty(m.type)?Xf:eX;return function(Dk,$u,Zk){Dk=this.__on;var Ff;$u=q3(b,$u,Zk);if(Dk){Zk=0;for(var y$=Dk.length;Zk<y$;++Zk)if((Ff=Dk[Zk]).type===m.type&&Ff.name===m.name){this.removeEventListener(Ff.type,Ff.listener,Ff.capture);this.addEventListener(Ff.type,Ff.listener=$u,Ff.capture=h);Ff.value=b;return}}this.addEventListener(m.type,$u,h);Ff={type:m.type,name:m.name,value:b,listener:$u,capture:h};Dk?Dk.push(Ff):this.__on=[Ff]}}
function Ca(m,b,h){var q3=m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView,Dk=q3.CustomEvent;typeof Dk==="function"?Dk=new Dk(b,h):(Dk=q3.document.createEvent("Event"),h?(Dk.initEvent(b,h.bubbles,h.cancelable),Dk.detail=h.detail):Dk.initEvent(b,!1,!1));m.dispatchEvent(Dk)}
function oR(m,b){return function(){return Ca(this,m,b)}}
function jf(m,b){return function(){return Ca(this,m,b.apply(this,arguments))}}
function Ko(m,b){this._groups=m;this._parents=b}
function K9(){return new Ko([[document.documentElement]],YyE)}
function v5(){this._="@"+(++OmL).toString(36)}
function ME(m,b,h){m.prototype=b.prototype=h;h.constructor=m}
function fo(m,b){m=Object.create(m.prototype);for(var h in b)m[h]=b[h];return m}
function B5(){}
function ra(m){var b;m=(m+"").trim().toLowerCase();return(b=KFC.exec(m))?(b=parseInt(b[1],16),new UZ(b>>8&15|b>>4&240,b>>4&15|b&240,(b&15)<<4|b&15,1)):(b=x2Z.exec(m))?yp(parseInt(b[1],16)):(b=BRE.exec(m))?new UZ(b[1],b[2],b[3],1):(b=zDn.exec(m))?new UZ(b[1]*255/100,b[2]*255/100,b[3]*255/100,1):(b=nrH.exec(m))?YV(b[1],b[2],b[3],b[4]):(b=kVt.exec(m))?YV(b[1]*255/100,b[2]*255/100,b[3]*255/100,b[4]):(b=SyC.exec(m))?$F(b[1],b[2]/100,b[3]/100,1):(b=orC.exec(m))?$F(b[1],b[2]/100,b[3]/100,b[4]):TZ$.hasOwnProperty(m)?
yp(TZ$[m]):m==="transparent"?new UZ(NaN,NaN,NaN,0):null}
function yp(m){return new UZ(m>>16&255,m>>8&255,m&255,1)}
function YV(m,b,h,q3){q3<=0&&(m=b=h=NaN);return new UZ(m,b,h,q3)}
function hb(m){m instanceof B5||(m=ra(m));if(!m)return new UZ;m=m.rgb();return new UZ(m.r,m.g,m.b,m.opacity)}
function $L(m,b,h,q3){return arguments.length===1?hb(m):new UZ(m,b,h,q3==null?1:q3)}
function UZ(m,b,h,q3){this.r=+m;this.g=+b;this.b=+h;this.opacity=+q3}
function ET(m){m=Math.max(0,Math.min(255,Math.round(m)||0));return(m<16?"0":"")+m.toString(16)}
function $F(m,b,h,q3){q3<=0?m=b=h=NaN:h<=0||h>=1?m=b=NaN:b<=0&&(m=NaN);return new xF(m,b,h,q3)}
function Pq(m){if(m instanceof xF)return new xF(m.h,m.s,m.l,m.opacity);m instanceof B5||(m=ra(m));if(!m)return new xF;if(m instanceof xF)return m;m=m.rgb();var b=m.r/255,h=m.g/255,q3=m.b/255,Dk=Math.min(b,h,q3),$u=Math.max(b,h,q3),Zk=NaN,Ff=$u-Dk,y$=($u+Dk)/2;Ff?(Zk=b===$u?(h-q3)/Ff+(h<q3)*6:h===$u?(q3-b)/Ff+2:(b-h)/Ff+4,Ff/=y$<.5?$u+Dk:2-$u-Dk,Zk*=60):Ff=y$>0&&y$<1?0:Zk;return new xF(Zk,Ff,y$,m.opacity)}
function du(m,b,h,q3){return arguments.length===1?Pq(m):new xF(m,b,h,q3==null?1:q3)}
function xF(m,b,h,q3){this.h=+m;this.s=+b;this.l=+h;this.opacity=+q3}
function TF(m,b,h){return(m<60?b+(h-b)*m/60:m<180?h:m<240?b+(h-b)*(240-m)/60:b)*255}
function bP(m){if(m instanceof lh)return new lh(m.l,m.a,m.b,m.opacity);if(m instanceof lZ){if(isNaN(m.h))return new lh(m.l,0,0,m.opacity);var b=m.h*h6Z;return new lh(m.l,Math.cos(b)*m.c,Math.sin(b)*m.c,m.opacity)}m instanceof UZ||(m=hb(m));var h=Hn(m.r),q3=Hn(m.g),Dk=Hn(m.b);b=rq(.2225045*h+.7168786*q3+.0606169*Dk);if(h===q3&&q3===Dk)var $u=h=b;else $u=rq((.4360747*h+.3850649*q3+.1430804*Dk)/.96422),h=rq((.0139322*h+.0971045*q3+.7141733*Dk)/.82521);return new lh(116*b-16,500*($u-b),200*(b-h),m.opacity)}
function lh(m,b,h,q3){this.l=+m;this.a=+b;this.b=+h;this.opacity=+q3}
function rq(m){return m>U2E?Math.pow(m,1/3):m/YC0+Oln}
function nZ(m){return m>Yn?m*m*m:YC0*(m-Oln)}
function H5(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}
function Hn(m){return(m/=255)<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}
function I3(m){if(m instanceof lZ)return new lZ(m.h,m.c,m.l,m.opacity);m instanceof lh||(m=bP(m));if(m.a===0&&m.b===0)return new lZ(NaN,0,m.l,m.opacity);var b=Math.atan2(m.b,m.a)*KAx;return new lZ(b<0?b+360:b,Math.sqrt(m.a*m.a+m.b*m.b),m.l,m.opacity)}
function ix(m,b,h,q3){return arguments.length===1?I3(m):new lZ(m,b,h,q3==null?1:q3)}
function lZ(m,b,h,q3){this.h=+m;this.c=+b;this.l=+h;this.opacity=+q3}
function ZH(m,b,h,q3){if(arguments.length===1){var Dk=m;if(Dk instanceof hh)Dk=new hh(Dk.h,Dk.s,Dk.l,Dk.opacity);else{Dk instanceof UZ||(Dk=hb(Dk));var $u=Dk.g/255,Zk=Dk.b/255,Ff=(xp0*Zk+Dk.r/255*-1.7884503806-3.5172982438*$u)/(xp0+-1.7884503806-3.5172982438);Zk-=Ff;var y$=(1.97294*($u-Ff)- -.29227*Zk)/-.90649;Zk=($u=Math.sqrt(y$*y$+Zk*Zk)/(1.97294*Ff*(1-Ff)))?Math.atan2(y$,Zk)*KAx-120:NaN;Dk=new hh(Zk<0?Zk+360:Zk,$u,Ff,Dk.opacity)}}else Dk=new hh(m,b,h,q3==null?1:q3);return Dk}
function hh(m,b,h,q3){this.h=+m;this.s=+b;this.l=+h;this.opacity=+q3}
function Nk(m,b,h,q3,Dk){var $u=m*m,Zk=$u*m;return((1-3*m+3*$u-Zk)*b+(4-6*$u+3*Zk)*h+(1+3*m+3*$u-3*Zk)*q3+Zk*Dk)/6}
function $i(m){return function(){return m}}
function F4(m,b){return function(h){return m+h*b}}
function R2(m,b,h){return m=Math.pow(m,h),b=Math.pow(b,h)-m,h=1/h,function(q3){return Math.pow(m+q3*b,h)}}
function OT(m,b){var h=b-m;return h?F4(m,h>180||h<-180?h-360*Math.round(h/360):h):$i(isNaN(m)?b:m)}
function tk(m){return(m=+m)===1?QW:function(b,h){return h-b?R2(b,h,m):$i(isNaN(b)?h:b)}}
function QW(m,b){var h=b-m;return h?F4(m,h):$i(isNaN(m)?b:m)}
function NQ(m){return function(b){var h=b.length,q3=Array(h),Dk=Array(h),$u=Array(h),Zk;for(Zk=0;Zk<h;++Zk){var Ff=$L(b[Zk]);q3[Zk]=Ff.r||0;Dk[Zk]=Ff.g||0;$u[Zk]=Ff.b||0}q3=m(q3);Dk=m(Dk);$u=m($u);Ff.opacity=1;return function(y$){Ff.r=q3(y$);Ff.g=Dk(y$);Ff.b=$u(y$);return Ff+""}}}
function me(m,b){return m=+m,b-=m,function(h){return m+b*h}}
function cU(m){return function(){return m}}
function P2(m){return function(b){return m(b)+""}}
function Fx(m,b){var h=oeZ.lastIndex=U5S.lastIndex=0,q3,Dk,$u,Zk=-1,Ff=[],y$=[];m+="";for(b+="";(q3=oeZ.exec(m))&&(Dk=U5S.exec(b));)($u=Dk.index)>h&&($u=b.slice(h,$u),Ff[Zk]?Ff[Zk]+=$u:Ff[++Zk]=$u),(q3=q3[0])===(Dk=Dk[0])?Ff[Zk]?Ff[Zk]+=Dk:Ff[++Zk]=Dk:(Ff[++Zk]=null,y$.push({i:Zk,x:me(q3,Dk)})),h=U5S.lastIndex;h<b.length&&($u=b.slice(h),Ff[Zk]?Ff[Zk]+=$u:Ff[++Zk]=$u);return Ff.length<2?y$[0]?P2(y$[0].x):cU(b):(b=y$.length,function(Lo){for(var DH=0,RR;DH<b;++DH)Ff[(RR=y$[DH]).i]=RR.x(Lo);return Ff.join("")})}
function ee(m,b,h,q3,Dk,$u){var Zk,Ff,y$;if(Zk=Math.sqrt(m*m+b*b))m/=Zk,b/=Zk;if(y$=m*h+b*q3)h-=m*y$,q3-=b*y$;if(Ff=Math.sqrt(h*h+q3*q3))h/=Ff,q3/=Ff,y$/=Ff;m*q3<b*h&&(m=-m,b=-b,y$=-y$,Zk=-Zk);return{translateX:Dk,translateY:$u,rotate:Math.atan2(b,m)*BZW,skewX:Math.atan(y$)*BZW,scaleX:Zk,scaleY:Ff}}
function dU(m,b,h,q3){function Dk(Lo){return Lo.length?Lo.pop()+" ":""}
function $u(Lo,DH,RR,U0,Vp,Cv){Lo!==RR||DH!==U0?(Vp=Vp.push("translate(",null,b,null,h),Cv.push({i:Vp-4,x:me(Lo,RR)},{i:Vp-2,x:me(DH,U0)})):(RR||U0)&&Vp.push("translate("+RR+b+U0+h)}
function Zk(Lo,DH,RR,U0){Lo!==DH?(Lo-DH>180?DH+=360:DH-Lo>180&&(Lo+=360),U0.push({i:RR.push(Dk(RR)+"rotate(",null,q3)-2,x:me(Lo,DH)})):DH&&RR.push(Dk(RR)+"rotate("+DH+q3)}
function Ff(Lo,DH,RR,U0){Lo!==DH?U0.push({i:RR.push(Dk(RR)+"skewX(",null,q3)-2,x:me(Lo,DH)}):DH&&RR.push(Dk(RR)+"skewX("+DH+q3)}
function y$(Lo,DH,RR,U0,Vp,Cv){Lo!==RR||DH!==U0?(Vp=Vp.push(Dk(Vp)+"scale(",null,",",null,")"),Cv.push({i:Vp-4,x:me(Lo,RR)},{i:Vp-2,x:me(DH,U0)})):RR===1&&U0===1||Vp.push(Dk(Vp)+"scale("+RR+","+U0+")")}
return function(Lo,DH){var RR=[],U0=[];Lo=m(Lo);DH=m(DH);$u(Lo.translateX,Lo.translateY,DH.translateX,DH.translateY,RR,U0);Zk(Lo.rotate,DH.rotate,RR,U0);Ff(Lo.skewX,DH.skewX,RR,U0);y$(Lo.scaleX,Lo.scaleY,DH.scaleX,DH.scaleY,RR,U0);Lo=DH=null;return function(Vp){for(var Cv=-1,Sx=U0.length,au;++Cv<Sx;)RR[(au=U0[Cv]).i]=au.x(Vp);return RR.join("")}}}
function wt(m){return function(b,h){var q3=m((b=du(b)).h,(h=du(h)).h),Dk=QW(b.s,h.s),$u=QW(b.l,h.l),Zk=QW(b.opacity,h.opacity);return function(Ff){b.h=q3(Ff);b.s=Dk(Ff);b.l=$u(Ff);b.opacity=Zk(Ff);return b+""}}}
function LY(m){return function(b,h){var q3=m((b=ix(b)).h,(h=ix(h)).h),Dk=QW(b.c,h.c),$u=QW(b.l,h.l),Zk=QW(b.opacity,h.opacity);return function(Ff){b.h=q3(Ff);b.c=Dk(Ff);b.l=$u(Ff);b.opacity=Zk(Ff);return b+""}}}
function lU(m){return function q3(h){function Dk($u,Zk){var Ff=m(($u=ZH($u)).h,(Zk=ZH(Zk)).h),y$=QW($u.s,Zk.s),Lo=QW($u.l,Zk.l),DH=QW($u.opacity,Zk.opacity);return function(RR){$u.h=Ff(RR);$u.s=y$(RR);$u.l=Lo(Math.pow(RR,h));$u.opacity=DH(RR);return $u+""}}
h=+h;Dk.gamma=q3;return Dk}(1)}
function I5(){return G7||(z60(Ep),G7=Ym.now()+X6F)}
function Ep(){G7=0}
function u$(){this._call=this._time=this._next=null}
function EO(m,b,h){var q3=new u$;q3.restart(m,b,h);return q3}
function GP(){G7=(r_q=Ym.now())+X6F;OB=Os=0;try{I5();++OB;for(var m=Wnb,b;m;)(b=G7-m._time)>=0&&m._call.call(null,b),m=m._next;--OB}finally{OB=0;m=Wnb;for(var h=Infinity;m;)if(m._call){h>m._time&&(h=m._time);var q3=m;m=m._next}else b=m._next,m._next=null,m=q3?q3._next=b:Wnb=b;K5=q3;q$(h);G7=0}}
function Uz(){var m=Ym.now(),b=m-r_q;b>1E3&&(X6F-=b,r_q=m)}
function q$(m){OB||(Os&&(Os=clearTimeout(Os)),m-G7>24?(m<Infinity&&(Os=setTimeout(GP,m-Ym.now()-X6F)),xm&&(xm=clearInterval(xm))):(xm||(r_q=Ym.now(),xm=setInterval(Uz,1E3)),OB=1,z60(GP)))}
function NJ(m,b,h){var q3=new u$;b=b==null?0:+b;q3.restart(function(Dk){q3.stop();m(Dk+b)},b,h);
return q3}
function uZ(m,b,h,q3,Dk,$u){var Zk=m.__transition;if(!Zk)m.__transition={};else if(h in Zk)return;VT(m,h,{name:b,index:q3,group:Dk,on:gDx,tween:u8h,time:$u.time,delay:$u.delay,duration:$u.duration,ease:$u.ease,timer:null,state:0})}
function th(m,b){m=n9(m,b);if(m.state>0)throw Error("Ae");return m}
function dC(m,b){m=n9(m,b);if(m.state>2)throw Error("Be");return m}
function n9(m,b){m=m.__transition;if(!m||!(m=m[b]))throw Error("Ce");return m}
function VT(m,b,h){function q3(y$){var Lo,DH;if(h.state!==1)return $u();for(U0 in Zk){var RR=Zk[U0];if(RR.name===h.name){if(RR.state===3)return NJ(q3);RR.state===4?(RR.state=6,RR.timer.stop(),RR.on.call("interrupt",m,m.__data__,RR.index,RR.group),delete Zk[U0]):+U0<b&&(RR.state=6,RR.timer.stop(),delete Zk[U0])}}NJ(function(){h.state===3&&(h.state=4,h.timer.restart(Dk,h.delay,h.time),Dk(y$))});
h.state=2;h.on.call("start",m,m.__data__,h.index,h.group);if(h.state===2){h.state=3;Ff=Array(DH=h.tween.length);var U0=0;for(Lo=-1;U0<DH;++U0)if(RR=h.tween[U0].value.call(m,m.__data__,h.index,h.group))Ff[++Lo]=RR;Ff.length=Lo+1}}
function Dk(y$){y$=y$<h.duration?h.ease.call(null,y$/h.duration):(h.timer.restart($u),h.state=5,1);for(var Lo=-1,DH=Ff.length;++Lo<DH;)Ff[Lo].call(null,y$);h.state===5&&(h.on.call("end",m,m.__data__,h.index,h.group),$u())}
function $u(){h.state=6;h.timer.stop();delete Zk[b];for(var y$ in Zk)return;delete m.__transition}
var Zk=m.__transition,Ff;Zk[b]=h;h.timer=EO(function(y$){h.state=1;h.timer.restart(q3,h.delay,h.time);h.delay<=y$&&q3(y$-h.delay)},0,h.time)}
function O7(m,b){var h,q3;return function(){var Dk=dC(this,m),$u=Dk.tween;if($u!==h){q3=h=$u;$u=0;for(var Zk=q3.length;$u<Zk;++$u)if(q3[$u].name===b){q3=q3.slice();q3.splice($u,1);break}}Dk.tween=q3}}
function zQ(m,b,h){var q3,Dk;if(typeof h!=="function")throw Error();return function(){var $u=dC(this,m),Zk=$u.tween;if(Zk!==q3){Dk=(q3=Zk).slice();Zk={name:b,value:h};for(var Ff=0,y$=Dk.length;Ff<y$;++Ff)if(Dk[Ff].name===b){Dk[Ff]=Zk;break}Ff===y$&&Dk.push(Zk)}$u.tween=Dk}}
function Y6(m,b,h){var q3=m._id;m.each(function(){var Dk=dC(this,q3);(Dk.value||(Dk.value={}))[b]=h.apply(this,arguments)});
return function(Dk){return n9(Dk,q3).value[b]}}
function Hb(m,b){var h;return(typeof b==="number"?me:b instanceof ra?ns2:(h=ra(b))?(b=h,ns2):Fx)(m,b)}
function $D(m){return function(){this.removeAttribute(m)}}
function T9b(m){return function(){this.removeAttributeNS(m.space,m.local)}}
function hA3(m,b,h){var q3,Dk;return function(){var $u=this.getAttribute(m);return $u===h?null:$u===q3?Dk:Dk=b(q3=$u,h)}}
function B0(m,b,h){var q3,Dk;return function(){var $u=this.getAttributeNS(m.space,m.local);return $u===h?null:$u===q3?Dk:Dk=b(q3=$u,h)}}
function Yz3(m,b,h){var q3,Dk,$u;return function(){var Zk=h(this);if(Zk==null)return void this.removeAttribute(m);var Ff=this.getAttribute(m);return Ff===Zk?null:Ff===q3&&Zk===Dk?$u:$u=b(q3=Ff,Dk=Zk)}}
function zE(m,b,h){var q3,Dk,$u;return function(){var Zk=h(this);if(Zk==null)return void this.removeAttributeNS(m.space,m.local);var Ff=this.getAttributeNS(m.space,m.local);return Ff===Zk?null:Ff===q3&&Zk===Dk?$u:$u=b(q3=Ff,Dk=Zk)}}
function n5(m,b){function h(){var q3=this,Dk=b.apply(q3,arguments);return Dk&&function($u){q3.setAttributeNS(m.space,m.local,Dk($u))}}
h._value=b;return h}
function Owq(m,b){function h(){var q3=this,Dk=b.apply(q3,arguments);return Dk&&function($u){q3.setAttribute(m,Dk($u))}}
h._value=b;return h}
function q$L(m,b){return function(){th(this,m).delay=+b.apply(this,arguments)}}
function QCE(m,b){return b=+b,function(){th(this,m).delay=b}}
function LSb(m,b){return function(){dC(this,m).duration=+b.apply(this,arguments)}}
function EDp(m,b){return b=+b,function(){dC(this,m).duration=b}}
function PBz(m,b){if(typeof b!=="function")throw Error();return function(){dC(this,m).ease=b}}
function Nfh(m){return(m+"").trim().split(/^|\s+/).every(function(b){var h=b.indexOf(".");h>=0&&(b=b.slice(0,h));return!b||b==="start"})}
function sCt(m,b,h){var q3,Dk,$u=Nfh(b)?th:dC;return function(){var Zk=$u(this,m),Ff=Zk.on;if(Ff!==q3)(Dk=(q3=Ff).copy()).on(b,h);Zk.on=Dk}}
function yAb(m){return function(){var b=this.parentNode,h;for(h in this.__transition)if(+h!==m)return;b&&b.removeChild(this)}}
function vDb(m,b){var h,q3,Dk;return function(){var $u=M3(this,m),Zk=(this.style.removeProperty(m),M3(this,m));return $u===Zk?null:$u===h&&Zk===q3?Dk:Dk=b(h=$u,q3=Zk)}}
function D7E(m){return function(){this.style.removeProperty(m)}}
function p4h(m,b,h){var q3,Dk;return function(){var $u=M3(this,m);return $u===h?null:$u===q3?Dk:Dk=b(q3=$u,h)}}
function JAZ(m,b,h){var q3,Dk,$u;return function(){var Zk=M3(this,m),Ff=h(this);Ff==null&&(Ff=(this.style.removeProperty(m),M3(this,m)));return Zk===Ff?null:Zk===q3&&Ff===Dk?$u:$u=b(q3=Zk,Dk=Ff)}}
function jCt(m,b,h){function q3(){var Dk=this,$u=b.apply(Dk,arguments);return $u&&function(Zk){Dk.style.setProperty(m,$u(Zk),h)}}
q3._value=b;return q3}
function fyf(m){return function(){this.textContent=m}}
function MEZ(m){return function(){var b=m(this);this.textContent=b==null?"":b}}
function s6(m,b,h,q3){this._groups=m;this._parents=b;this._name=h;this._id=q3}
function gsJ(m){return{type:m}}
function uNM(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function KnZ(){}
function kf0(m,b){var h=new KnZ;if(m instanceof KnZ)m.each(function(Zk,Ff){h.set(Ff,Zk)});
else if(Array.isArray(m)){var q3=-1,Dk=m.length,$u;if(b==null)for(;++q3<Dk;)h.set(q3,m[q3]);else for(;++q3<Dk;)h.set(b($u=m[q3],q3,m),$u)}else if(m)for(q3 in m)h.set(q3,m[q3]);return h}
function x_m(){}
function SCX(m){return function(b){for(var h={},q3=0;q3<m.length;q3++)h[m[q3]]=b[q3]||"";return h}}
function tEx(m,b){var h=SCX(m);return function(q3,Dk){return b(h(q3),Dk,m)}}
function e_Z(m){var b=Object.create(null),h=[];m.forEach(function(q3){for(var Dk in q3)Dk in b||h.push(b[Dk]=Dk)});
return h}
function osb(m){function b(Zk,Ff){function y$(){if(Cv)return qCq;if(Sx)return Sx=!1,Up5;var Gp,p2=RR,F1;if(Zk.charCodeAt(p2)===34){for(;RR++<DH&&Zk.charCodeAt(RR)!==34||Zk.charCodeAt(++RR)===34;);(Gp=RR)>=DH?Cv=!0:(F1=Zk.charCodeAt(RR++))===10?Sx=!0:F1===13&&(Sx=!0,Zk.charCodeAt(RR)===10&&++RR);return Zk.slice(p2+1,Gp-1).replace(/""/g,'"')}for(;RR<DH;){if((F1=Zk.charCodeAt(Gp=RR++))===10)Sx=!0;else if(F1===13)Sx=!0,Zk.charCodeAt(RR)===10&&++RR;else if(F1!==$u)continue;return Zk.slice(p2,Gp)}return Cv=
!0,Zk.slice(p2,DH)}
var Lo=[],DH=Zk.length,RR=0,U0=0,Vp,Cv=DH<=0,Sx=!1;Zk.charCodeAt(DH-1)===10&&--DH;for(Zk.charCodeAt(DH-1)===13&&--DH;(Vp=y$())!==qCq;){for(var au=[];Vp!==Up5&&Vp!==qCq;)au.push(Vp),Vp=y$();Ff&&(au=Ff(au,U0++))==null||Lo.push(au)}return Lo}
function h(Zk){return Zk.map(q3).join(m)}
function q3(Zk){return Zk==null?"":Dk.test(Zk)?'"'+Zk.replace(/"/g,'""')+'"':Zk}
var Dk=new RegExp('["'+m+"\n\r]"),$u=m.charCodeAt(0);return{parse:function(Zk,Ff){var y$,Lo;Zk=b(Zk,function(DH,RR){if(y$)return y$(DH,RR-1);Lo=DH;y$=Ff?tEx(DH,Ff):SCX(DH)});
Zk.columns=Lo||[];return Zk},
parseRows:b,format:function(Zk,Ff){Ff==null&&(Ff=e_Z(Zk));return[Ff.map(q3).join(m)].concat(Zk.map(function(y$){return Ff.map(function(Lo){return q3(y$[Lo])}).join(m)})).join("\n")},
formatRows:function(Zk){return Zk.map(h).join("\n")}}}
function G7f(m){if(!m.ok)throw Error("De`"+m.status+"`"+m.statusText);return m.text()}
function g4$(m){return function(b,h,q3){arguments.length===2&&typeof h==="function"&&(q3=h,h=void 0);return fetch(b,h).then(G7f).then(function(Dk){return m(Dk,q3)})}}
function uYZ(m,b,h,q3){if(isNaN(b)||isNaN(h))return m;var Dk,$u=m._root;q3={data:q3};var Zk=m._x0,Ff=m._y0,y$=m._x1,Lo=m._y1,DH,RR,U0,Vp,Cv;if(!$u)return m._root=q3,m;for(;$u.length;)if((U0=b>=(DH=(Zk+y$)/2))?Zk=DH:y$=DH,(Vp=h>=(RR=(Ff+Lo)/2))?Ff=RR:Lo=RR,Dk=$u,!($u=$u[Cv=Vp<<1|U0]))return Dk[Cv]=q3,m;var Sx=+m._x.call(null,$u.data);var au=+m._y.call(null,$u.data);if(b===Sx&&h===au)return q3.next=$u,Dk?Dk[Cv]=q3:m._root=q3,m;do Dk=Dk?Dk[Cv]=Array(4):m._root=Array(4),(U0=b>=(DH=(Zk+y$)/2))?Zk=DH:y$=
DH,(Vp=h>=(RR=(Ff+Lo)/2))?Ff=RR:Lo=RR;while((Cv=Vp<<1|U0)===(U0=(au>=RR)<<1|Sx>=DH));return Dk[U0]=$u,Dk[Cv]=q3,m}
function NR(m,b,h,q3,Dk){this.node=m;this.x0=b;this.y0=h;this.x1=q3;this.y1=Dk}
function $7E(m){return m[0]}
function R_K(m){return m[1]}
function QPJ(m,b,h,q3,Dk,$u){this._x=m;this._y=b;this._x0=h;this._y0=q3;this._x1=Dk;this._y1=$u;this._root=void 0}
function qm$(m){for(var b={data:m.data},h=b;m=m.next;)h=h.next={data:m.data};return b}
function B9M(m,b){if((b=(m=b?m.toExponential(b-1):m.toExponential()).indexOf("e"))<0)return null;var h=m.slice(0,b);return[h.length>1?h[0]+h.slice(2):h,+m.slice(b+1)]}
function w4C(m){return m=B9M(Math.abs(m)),m?m[1]:NaN}
function cAf(m,b){return function(h,q3){for(var Dk=h.length,$u=[],Zk=0,Ff=m[0],y$=0;Dk>0&&Ff>0;){y$+Ff+1>q3&&(Ff=Math.max(1,q3-y$));$u.push(h.substring(Dk-=Ff,Dk+Ff));if((y$+=Ff+1)>q3)break;Ff=m[Zk=(Zk+1)%m.length]}return $u.reverse().join(b)}}
function Hyf(m){return function(b){return b.replace(/[0-9]/g,function(h){return m[+h]})}}
function LAS(m){return new EsS(m)}
function EsS(m){if(!(b=AAz.exec(m)))throw Error("Ee`"+m);var b;this.fill=b[1]||" ";this.align=b[2]||">";this.sign=b[3]||"-";this.symbol=b[4]||"";this.zero=!!b[5];this.width=b[6]&&+b[6];this.comma=!!b[7];this.precision=b[8]&&+b[8].slice(1);this.trim=!!b[9];this.type=b[10]||""}
function Qwx(m,b){b=B9M(m,b);if(!b)return m+"";m=b[0];b=b[1];return b<0?"0."+Array(-b).join("0")+m:m.length>b+1?m.slice(0,b+1)+"."+m.slice(b+1):m+Array(b-m.length+2).join("0")}
function Lw5(m){return m}
function Zyz(m){function b(Ff){function y$(La){var mk=F1,g0=He,HT,jO;if(p2==="c")g0=Jf(La)+g0,La="";else{La=+La;var Xt=La<0;La=Jf(Math.abs(La),au);if(Gp){var y1=La.length,Po=1,$1=-1;a:for(;Po<y1;++Po)switch(La[Po]){case ".":$1=HT=Po;break;case "0":$1===0&&($1=Po);HT=Po;break;default:if(!+La[Po])break a;$1>0&&($1=0)}La=$1>0?La.slice(0,$1)+La.slice(HT+1):La}Xt&&+La===0&&(Xt=!1);mk=(Xt?RR==="("?RR:"-":RR==="-"||RR==="("?"":RR)+mk;g0=(p2==="s"?E42[8+PYX/3]:"")+g0+(Xt&&RR==="("?")":"");if(CH)for(Xt=-1,
HT=La.length;++Xt<HT;)if(jO=La.charCodeAt(Xt),48>jO||jO>57){g0=(jO===46?Dk+La.slice(Xt+1):La.slice(Xt))+g0;La=La.slice(0,Xt);break}}Sx&&!Vp&&(La=h(La,Infinity));jO=mk.length+La.length+g0.length;Xt=jO<Cv?Array(Cv-jO+1).join(Lo):"";Sx&&Vp&&(La=h(Xt+La,Xt.length?Cv-g0.length:Infinity),Xt="");switch(DH){case "<":La=mk+La+g0+Xt;break;case "=":La=mk+Xt+La+g0;break;case "^":La=Xt.slice(0,jO=Xt.length>>1)+mk+La+g0+Xt.slice(jO);break;default:La=Xt+mk+La+g0}return $u(La)}
Ff=LAS(Ff);var Lo=Ff.fill,DH=Ff.align,RR=Ff.sign,U0=Ff.symbol,Vp=Ff.zero,Cv=Ff.width,Sx=Ff.comma,au=Ff.precision,Gp=Ff.trim,p2=Ff.type;p2==="n"?(Sx=!0,p2="g"):N78[p2]||(au==null&&(au=12),Gp=!0,p2="g");if(Vp||Lo==="0"&&DH==="=")Vp=!0,Lo="0",DH="=";var F1=U0==="$"?q3[0]:U0==="#"&&/[boxX]/.test(p2)?"0"+p2.toLowerCase():"",He=U0==="$"?q3[1]:/[%p]/.test(p2)?Zk:"",Jf=N78[p2],CH=/[defgprs%]/.test(p2);au=au==null?6:/[gprs]/.test(p2)?Math.max(1,Math.min(21,au)):Math.max(0,Math.min(20,au));y$.toString=function(){return Ff+
""};
return y$}
var h=m.grouping&&m.thousands?cAf(m.grouping,m.thousands):Lw5,q3=m.currency,Dk=m.decimal,$u=m.numerals?Hyf(m.numerals):Lw5,Zk=m.percent||"%";return{format:b,formatPrefix:function(Ff,y$){var Lo=b((Ff=LAS(Ff),Ff.type="f",Ff));Ff=Math.max(-8,Math.min(8,Math.floor(w4C(y$)/3)))*3;var DH=Math.pow(10,-Ff),RR=E42[8+Ff/3];return function(U0){return Lo(DH*U0)+RR}}}}
function cM(){this.reset()}
function swx(m,b,h){var q3=m.s=b+h,Dk=q3-b;m.t=b-(q3-Dk)+(h-Dk)}
function zAu(m){return m>1?AZ:m<-1?-AZ:Math.asin(m)}
function lyL(){}
function yWn(m){var b=m[0];m=m[1];var h=Ze(m);return[h*Ze(b),h*OR(b),OR(m)]}
function v4Z(m,b){return[m[1]*b[2]-m[2]*b[1],m[2]*b[0]-m[0]*b[2],m[0]*b[1]-m[1]*b[0]]}
function DUb(m){var b=n1S(m[0]*m[0]+m[1]*m[1]+m[2]*m[2]);m[0]/=b;m[1]/=b;m[2]/=b}
function IyZ(){var m=[],b;return{point:function(h,q3){b.push([h,q3])},
lineStart:function(){m.push(b=[])},
lineEnd:lyL,rejoin:function(){m.length>1&&m.push(m.pop().concat(m.shift()))},
result:function(){var h=m;m=[];b=null;return h}}}
function kp3(m,b,h,q3){this.x=m;this.z=b;this.o=h;this.e=q3;this.v=!1;this.n=this.p=null}
function iyE(m,b,h,q3,Dk){var $u=[],Zk=[];m.forEach(function(RR){if(!((U0=RR.length-1)<=0)){var U0,Vp=RR[0],Cv=RR[U0],Sx=Vp;if(yA(Sx[0]-Cv[0])<1E-6&&yA(Sx[1]-Cv[1])<1E-6){Dk.lineStart();for(Ff=0;Ff<U0;++Ff)Dk.point((Vp=RR[Ff])[0],Vp[1]);Dk.lineEnd()}else $u.push(U0=new kp3(Vp,RR,null,!0)),Zk.push(U0.o=new kp3(Vp,null,U0,!1)),$u.push(U0=new kp3(Cv,RR,null,!1)),Zk.push(U0.o=new kp3(Cv,null,U0,!0))}});
if($u.length){Zk.sort(b);pp8($u);pp8(Zk);var Ff=0;for(m=Zk.length;Ff<m;++Ff)Zk[Ff].e=h=!h;h=$u[0];for(var y$;;){for(var Lo=h,DH=!0;Lo.v;)if((Lo=Lo.n)===h)return;b=Lo.z;Dk.lineStart();do{Lo.v=Lo.o.v=!0;if(Lo.e){if(DH)for(Ff=0,m=b.length;Ff<m;++Ff)Dk.point((y$=b[Ff])[0],y$[1]);else q3(Lo.x,Lo.n.x,1,Dk);Lo=Lo.n}else{if(DH)for(b=Lo.p.z,Ff=b.length-1;Ff>=0;--Ff)Dk.point((y$=b[Ff])[0],y$[1]);else q3(Lo.x,Lo.p.x,-1,Dk);Lo=Lo.p}Lo=Lo.o;b=Lo.z;DH=!DH}while(!Lo.v);Dk.lineEnd()}}}
function pp8(m){if(b=m.length){for(var b,h=0,q3=m[0],Dk;++h<b;)q3.n=Dk=m[h],Dk.p=q3,q3=Dk;q3.n=Dk=m[0];Dk.p=q3}}
function CBz(m){return m.length>1}
function byn(m,b){return((m=m.x)[0]<0?m[1]-AZ-1E-6:AZ-m[1])-((b=b.x)[0]<0?b[1]-AZ-1E-6:AZ-b[1])}
function Pqf(){}
function JWx(m){return function(b,h){var q3=Ze(b),Dk=Ze(h);q3=m(q3*Dk);return[q3*Dk*OR(b),q3*OR(h)]}}
function km(m){return function(b,h){var q3=n1S(b*b+h*h),Dk=m(q3),$u=OR(Dk);Dk=Ze(Dk);return[jw$(b*$u,q3*Dk),zAu(q3&&h*$u/q3)]}}
function d7x(m){var b=0,h=m.children,q3=h&&h.length;if(q3)for(;--q3>=0;)b+=h[q3].value;else b=1;m.value=b}
function fmZ(m,b){var h=new SD(m);m=+m.value&&(h.value=m.value);var q3,Dk=[h],$u,Zk,Ff,y$;for(b==null&&(b=FSL);q3=Dk.pop();)if(m&&(q3.value=+q3.data.value),(Zk=b(q3.data))&&(y$=Zk.length))for(q3.children=Array(y$),Ff=y$-1;Ff>=0;--Ff)Dk.push($u=q3.children[Ff]=new SD(Zk[Ff])),$u.parent=q3,$u.depth=q3.depth+1;return h.eachBefore(m7H)}
function FSL(m){return m.children}
function ayn(m){m.data=m.data.data}
function m7H(m){var b=0;do m.height=b;while((m=m.parent)&&m.height<++b)}
function SD(m){this.data=m;this.depth=this.height=0;this.parent=null}
function aM(m,b,h,q3){function Dk($u){return m($u=new Date(+$u)),$u}
Dk.floor=Dk;Dk.ceil=function($u){return m($u=new Date($u-1)),b($u,1),m($u),$u};
Dk.round=function($u){var Zk=Dk($u),Ff=Dk.ceil($u);return $u-Zk<Ff-$u?Zk:Ff};
Dk.offset=function($u,Zk){return b($u=new Date(+$u),Zk==null?1:Math.floor(Zk)),$u};
Dk.range=function($u,Zk,Ff){var y$=[],Lo;$u=Dk.ceil($u);Ff=Ff==null?1:Math.floor(Ff);if(!($u<Zk&&Ff>0))return y$;do y$.push(Lo=new Date(+$u)),b($u,Ff),m($u);while(Lo<$u&&$u<Zk);return y$};
Dk.filter=function($u){return aM(function(Zk){if(Zk>=Zk)for(;m(Zk),!$u(Zk);)Zk.setTime(Zk-1)},function(Zk,Ff){if(Zk>=Zk)if(Ff<0)for(;++Ff<=0;)for(;b(Zk,-1),!$u(Zk););
else for(;--Ff>=0;)for(;b(Zk,1),!$u(Zk););})};
h&&(Dk.count=function($u,Zk){NZT.setTime(+$u);sPu.setTime(+Zk);m(NZT);m(sPu);return Math.floor(h(NZT,sPu))},Dk.every=function($u){$u=Math.floor($u);
return isFinite($u)&&$u>0?$u>1?Dk.filter(q3?function(Zk){return q3(Zk)%$u===0}:function(Zk){return Dk.count(0,Zk)%$u===0}):Dk:null});
return Dk}
function RC(m){return aM(function(b){b.setDate(b.getDate()-(b.getDay()+7-m)%7);b.setHours(0,0,0,0)},function(b,h){b.setDate(b.getDate()+h*7)},function(b,h){return(h-b-(h.getTimezoneOffset()-b.getTimezoneOffset())*6E4)/6048E5})}
function wf(m){return aM(function(b){b.setUTCDate(b.getUTCDate()-(b.getUTCDay()+7-m)%7);b.setUTCHours(0,0,0,0)},function(b,h){b.setUTCDate(b.getUTCDate()+h*7)},function(b,h){return(h-b)/6048E5})}
function VEL(m){if(0<=m.y&&m.y<100){var b=new Date(-1,m.m,m.d,m.H,m.M,m.S,m.L);b.setFullYear(m.y);return b}return new Date(m.y,m.m,m.d,m.H,m.M,m.S,m.L)}
function SzF(m){if(0<=m.y&&m.y<100){var b=new Date(Date.UTC(-1,m.m,m.d,m.H,m.M,m.S,m.L));b.setUTCFullYear(m.y);return b}return new Date(Date.UTC(m.y,m.m,m.d,m.H,m.M,m.S,m.L))}
function of(m){return{y:m,m:0,d:1,H:0,M:0,S:0,L:0}}
function X4n(m){function b(g0,HT){return function(jO){var Xt=[],y1=-1,Po=0,$1=g0.length,CS,Ns;for(jO instanceof Date||(jO=new Date(+jO));++y1<$1;)if(g0.charCodeAt(y1)===37){Xt.push(g0.slice(Po,y1));(Po=Mv8[CS=g0.charAt(++y1)])!=null?CS=g0.charAt(++y1):Po=CS==="e"?" ":"0";if(Ns=HT[CS])CS=Ns(jO,Po);Xt.push(CS);Po=y1+1}Xt.push(g0.slice(Po,y1));return Xt.join("")}}
function h(g0,HT){return function(jO){var Xt=of(1900);if(q3(Xt,g0,jO,0)!=jO.length)return null;if("Q"in Xt)return new Date(Xt.Q);"p"in Xt&&(Xt.H=Xt.H%12+Xt.p*12);if("V"in Xt){if(Xt.V<1||Xt.V>53)return null;"w"in Xt||(Xt.w=1);if("Z"in Xt){jO=SzF(of(Xt.y));var y1=jO.getUTCDay();jO=y1>4||y1===0?yPq.ceil(jO):yPq(jO);jO=tvb.offset(jO,(Xt.V-1)*7);Xt.y=jO.getUTCFullYear();Xt.m=jO.getUTCMonth();Xt.d=jO.getUTCDate()+(Xt.w+6)%7}else jO=HT(of(Xt.y)),y1=jO.getDay(),jO=y1>4||y1===0?vsq.ceil(jO):vsq(jO),jO=eCX.offset(jO,
(Xt.V-1)*7),Xt.y=jO.getFullYear(),Xt.m=jO.getMonth(),Xt.d=jO.getDate()+(Xt.w+6)%7}else if("W"in Xt||"U"in Xt)"w"in Xt||(Xt.w="u"in Xt?Xt.u%7:"W"in Xt?1:0),y1="Z"in Xt?SzF(of(Xt.y)).getUTCDay():HT(of(Xt.y)).getDay(),Xt.m=0,Xt.d="W"in Xt?(Xt.w+6)%7+Xt.W*7-(y1+5)%7:Xt.w+Xt.U*7-(y1+6)%7;return"Z"in Xt?(Xt.H+=Xt.Z/100|0,Xt.M+=Xt.Z%100,SzF(Xt)):HT(Xt)}}
function q3(g0,HT,jO,Xt){for(var y1=0,Po=HT.length,$1=jO.length,CS;y1<Po;){if(Xt>=$1)return-1;CS=HT.charCodeAt(y1++);if(CS===37){if(CS=HT.charAt(y1++),CS=mk[CS in Mv8?HT.charAt(y1++):CS],!CS||(Xt=CS(g0,jO,Xt))<0)return-1}else if(CS!=jO.charCodeAt(Xt++))return-1}return Xt}
var Dk=m.dateTime,$u=m.date,Zk=m.time,Ff=m.periods,y$=m.days,Lo=m.shortDays,DH=m.months,RR=m.shortMonths,U0=Us(Ff),Vp=gs(Ff),Cv=Us(y$),Sx=gs(y$),au=Us(Lo),Gp=gs(Lo),p2=Us(DH),F1=gs(DH),He=Us(RR),Jf=gs(RR),CH={a:function(g0){return Lo[g0.getDay()]},
A:function(g0){return y$[g0.getDay()]},
b:function(g0){return RR[g0.getMonth()]},
B:function(g0){return DH[g0.getMonth()]},
c:null,d:Gbb,e:Gbb,f:rAh,H:WSH,I:TfH,j:h_x,L:$Un,m:Y$H,M:Oyn,p:function(g0){return Ff[+(g0.getHours()>=12)]},
Q:RCX,s:wpH,S:KSb,u:x79,U:BfL,V:z_9,w:nDp,W:k7C,x:null,X:null,y:S$t,Y:oDh,Z:U7z,"%":cW$},La={a:function(g0){return Lo[g0.getUTCDay()]},
A:function(g0){return y$[g0.getUTCDay()]},
b:function(g0){return RR[g0.getUTCMonth()]},
B:function(g0){return DH[g0.getUTCMonth()]},
c:null,d:HGo,e:HGo,f:gzK,H:udn,I:qJL,j:Qkh,L:AWW,m:LMZ,M:Ezh,p:function(g0){return Ff[+(g0.getUTCHours()>=12)]},
Q:RCX,s:wpH,S:P3b,u:Nbh,U:skZ,V:ywz,w:vzx,W:Dbp,x:null,X:null,y:pVK,Y:JwE,Z:jkt,"%":cW$},mk={a:function(g0,HT,jO){return(HT=au.exec(HT.slice(jO)))?(g0.w=Gp[HT[0].toLowerCase()],jO+HT[0].length):-1},
A:function(g0,HT,jO){return(HT=Cv.exec(HT.slice(jO)))?(g0.w=Sx[HT[0].toLowerCase()],jO+HT[0].length):-1},
b:function(g0,HT,jO){return(HT=He.exec(HT.slice(jO)))?(g0.m=Jf[HT[0].toLowerCase()],jO+HT[0].length):-1},
B:function(g0,HT,jO){return(HT=p2.exec(HT.slice(jO)))?(g0.m=F1[HT[0].toLowerCase()],jO+HT[0].length):-1},
c:function(g0,HT,jO){return q3(g0,Dk,HT,jO)},
d:ZG5,e:ZG5,f:fI9,H:lmX,I:lmX,j:MGz,L:tG9,m:e4Z,M:GJE,p:function(g0,HT,jO){return(HT=U0.exec(HT.slice(jO)))?(g0.p=Vp[HT[0].toLowerCase()],jO+HT[0].length):-1},
Q:$bn,s:R4E,S:wVn,u:cwn,U:Hbz,V:Awf,w:Zbt,W:lIh,x:function(g0,HT,jO){return q3(g0,$u,HT,jO)},
X:function(g0,HT,jO){return q3(g0,Zk,HT,jO)},
y:IIh,Y:ibf,Z:C3C,"%":bbn};CH.x=b($u,CH);CH.X=b(Zk,CH);CH.c=b(Dk,CH);La.x=b($u,La);La.X=b(Zk,La);La.c=b(Dk,La);return{format:function(g0){var HT=b(g0,CH);HT.toString=function(){return g0};
return HT},
parse:function(g0){var HT=h(g0,VEL);HT.toString=function(){return g0};
return HT},
utcFormat:function(g0){var HT=b(g0,La);HT.toString=function(){return g0};
return HT},
utcParse:function(g0){var HT=h(g0,SzF);HT.toString=function(){return g0};
return HT}}}
function XP(m,b,h){var q3=m<0?"-":"";m=(q3?-m:m)+"";var Dk=m.length;return q3+(Dk<h?Array(h-Dk+1).join(b)+m:m)}
function dbz(m){return m.replace(FMZ,"\\$&")}
function Us(m){return new RegExp("^(?:"+m.map(dbz).join("|")+")","i")}
function gs(m){for(var b={},h=-1,q3=m.length;++h<q3;)b[m[h].toLowerCase()]=h;return b}
function Zbt(m,b,h){return(b=mg.exec(b.slice(h,h+1)))?(m.w=+b[0],h+b[0].length):-1}
function cwn(m,b,h){return(b=mg.exec(b.slice(h,h+1)))?(m.u=+b[0],h+b[0].length):-1}
function Hbz(m,b,h){return(b=mg.exec(b.slice(h,h+2)))?(m.U=+b[0],h+b[0].length):-1}
function Awf(m,b,h){return(b=mg.exec(b.slice(h,h+2)))?(m.V=+b[0],h+b[0].length):-1}
function lIh(m,b,h){return(b=mg.exec(b.slice(h,h+2)))?(m.W=+b[0],h+b[0].length):-1}
function ibf(m,b,h){return(b=mg.exec(b.slice(h,h+4)))?(m.y=+b[0],h+b[0].length):-1}
function IIh(m,b,h){return(b=mg.exec(b.slice(h,h+2)))?(m.y=+b[0]+(+b[0]>68?1900:2E3),h+b[0].length):-1}
function C3C(m,b,h){return(b=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(b.slice(h,h+6)))?(m.Z=b[1]?0:-(b[2]+(b[3]||"00")),h+b[0].length):-1}
function e4Z(m,b,h){return(b=mg.exec(b.slice(h,h+2)))?(m.m=b[0]-1,h+b[0].length):-1}
function ZG5(m,b,h){return(b=mg.exec(b.slice(h,h+2)))?(m.d=+b[0],h+b[0].length):-1}
function MGz(m,b,h){return(b=mg.exec(b.slice(h,h+3)))?(m.m=0,m.d=+b[0],h+b[0].length):-1}
function lmX(m,b,h){return(b=mg.exec(b.slice(h,h+2)))?(m.H=+b[0],h+b[0].length):-1}
function GJE(m,b,h){return(b=mg.exec(b.slice(h,h+2)))?(m.M=+b[0],h+b[0].length):-1}
function wVn(m,b,h){return(b=mg.exec(b.slice(h,h+2)))?(m.S=+b[0],h+b[0].length):-1}
function tG9(m,b,h){return(b=mg.exec(b.slice(h,h+3)))?(m.L=+b[0],h+b[0].length):-1}
function fI9(m,b,h){return(b=mg.exec(b.slice(h,h+6)))?(m.L=Math.floor(b[0]/1E3),h+b[0].length):-1}
function bbn(m,b,h){return(m=mbK.exec(b.slice(h,h+1)))?h+m[0].length:-1}
function $bn(m,b,h){return(b=mg.exec(b.slice(h)))?(m.Q=+b[0],h+b[0].length):-1}
function R4E(m,b,h){return(b=mg.exec(b.slice(h)))?(m.Q=+b[0]*1E3,h+b[0].length):-1}
function Gbb(m,b){return XP(m.getDate(),b,2)}
function WSH(m,b){return XP(m.getHours(),b,2)}
function TfH(m,b){return XP(m.getHours()%12||12,b,2)}
function h_x(m,b){return XP(1+eCX.count(Kt(m),m),b,3)}
function $Un(m,b){return XP(m.getMilliseconds(),b,3)}
function rAh(m,b){return $Un(m,b)+"000"}
function Y$H(m,b){return XP(m.getMonth()+1,b,2)}
function Oyn(m,b){return XP(m.getMinutes(),b,2)}
function KSb(m,b){return XP(m.getSeconds(),b,2)}
function x79(m){m=m.getDay();return m===0?7:m}
function BfL(m,b){return XP(aIn.count(Kt(m),m),b,2)}
function z_9(m,b){var h=m.getDay();m=h>=4||h===0?DpM(m):DpM.ceil(m);return XP(DpM.count(Kt(m),m)+(Kt(m).getDay()===4),b,2)}
function nDp(m){return m.getDay()}
function k7C(m,b){return XP(vsq.count(Kt(m),m),b,2)}
function S$t(m,b){return XP(m.getFullYear()%100,b,2)}
function oDh(m,b){return XP(m.getFullYear()%1E4,b,4)}
function U7z(m){m=m.getTimezoneOffset();return(m>0?"-":(m*=-1,"+"))+XP(m/60|0,"0",2)+XP(m%60,"0",2)}
function HGo(m,b){return XP(m.getUTCDate(),b,2)}
function udn(m,b){return XP(m.getUTCHours(),b,2)}
function qJL(m,b){return XP(m.getUTCHours()%12||12,b,2)}
function Qkh(m,b){return XP(1+tvb.count(xn(m),m),b,3)}
function AWW(m,b){return XP(m.getUTCMilliseconds(),b,3)}
function gzK(m,b){return AWW(m,b)+"000"}
function LMZ(m,b){return XP(m.getUTCMonth()+1,b,2)}
function Ezh(m,b){return XP(m.getUTCMinutes(),b,2)}
function P3b(m,b){return XP(m.getUTCSeconds(),b,2)}
function Nbh(m){m=m.getUTCDay();return m===0?7:m}
function skZ(m,b){return XP(VGt.count(xn(m),m),b,2)}
function ywz(m,b){var h=m.getUTCDay();m=h>=4||h===0?pyZ(m):pyZ.ceil(m);return XP(pyZ.count(xn(m),m)+(xn(m).getUTCDay()===4),b,2)}
function vzx(m){return m.getUTCDay()}
function Dbp(m,b){return XP(yPq.count(xn(m),m),b,2)}
function pVK(m,b){return XP(m.getUTCFullYear()%100,b,2)}
function JwE(m,b){return XP(m.getUTCFullYear()%1E4,b,4)}
function jkt(){return"+0000"}
function cW$(){return"%"}
function RCX(m){return+m}
function wpH(m){return Math.floor(+m/1E3)}
function wj(m){for(var b=m.length/6|0,h=Array(b),q3=0;q3<b;)h[q3]="#"+m.slice(q3*6,++q3*6);return h}
function vk(m){return XVb(m[m.length-1])}
function o1q(m){var b=m.length;return function(h){return m[Math.max(0,Math.min(b-1,Math.floor(h*b)))]}}
function Imx(m){this._context=m}
function iG$(m){this._curve=m}
function CYb(m,b,h){var q3=m._x1-m._x0;b-=m._x1;var Dk=(m._y1-m._y0)/(q3||b<0&&-0);m=(h-m._y1)/(b||q3<0&&-0);return((Dk<0?-1:1)+(m<0?-1:1))*Math.min(Math.abs(Dk),Math.abs(m),.5*Math.abs((Dk*b+m*q3)/(q3+b)))||0}
function bGR(m,b){var h=m._x1-m._x0;return h?(3*(m._y1-m._y0)/h-b)/2:b}
function JPF(m,b,h){var q3=m._x0,Dk=m._x1,$u=m._y1,Zk=(Dk-q3)/3;m._context.bezierCurveTo(q3+Zk,m._y0+Zk*b,Dk-Zk,$u-Zk*h,Dk,$u)}
function jPm(m){this._context=m}
function dUa(m){this._context=m}
function uV(m,b,h){this.k=m;this.x=b;this.y=h}
(function(m){m.length===1&&(m=u(m));return{left:function(b,h,q3,Dk){q3==null&&(q3=0);Dk==null&&(Dk=b.length);for(;q3<Dk;){var $u=q3+Dk>>>1;m(b[$u],h)<0?q3=$u+1:Dk=$u}return q3},
right:function(b,h,q3,Dk){q3==null&&(q3=0);Dk==null&&(Dk=b.length);for(;q3<Dk;){var $u=q3+Dk>>>1;m(b[$u],h)>0?Dk=$u:q3=$u+1}return q3}}})(g);
var hDb={value:function(){}};
Q.prototype=q.prototype={constructor:Q,on:function(m,b){var h=this._,q3=L(m+"",h),Dk,$u=-1,Zk=q3.length;if(arguments.length<2)for(;++$u<Zk;){var Ff;if(Ff=Dk=(m=q3[$u]).type){a:{Ff=h[Dk];for(var y$=0,Lo=Ff.length;y$<Lo;++y$)if((Dk=Ff[y$]).name===m.name){Dk=Dk.value;break a}Dk=void 0}Ff=Dk}if(Ff)return Dk}else{if(b!=null&&typeof b!=="function")throw Error("Fe`"+b);for(;++$u<Zk;)if(Dk=(m=q3[$u]).type)h[Dk]=E(h[Dk],m.name,b);else if(b==null)for(Dk in h)h[Dk]=E(h[Dk],m.name,null);return this}},
copy:function(){var m={},b=this._,h;for(h in b)m[h]=b[h].slice();return new Q(m)},
call:function(m,b){if((Dk=arguments.length-2)>0)for(var h=Array(Dk),q3=0,Dk,$u;q3<Dk;++q3)h[q3]=arguments[q3+2];if(!this._.hasOwnProperty(m))throw Error("ze`"+m);$u=this._[m];q3=0;for(Dk=$u.length;q3<Dk;++q3)$u[q3].value.apply(b,h)},
apply:function(m,b,h){if(!this._.hasOwnProperty(m))throw Error("ze`"+m);m=this._[m];for(var q3=0,Dk=m.length;q3<Dk;++q3)m[q3].value.apply(b,h)}};
var cb={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/"},FwX=function(m){return function(){return this.matches(m)}};
if(typeof document!=="undefined"){var qL=document.documentElement;if(!qL.matches){var rwH=qL.webkitMatchesSelector||qL.msMatchesSelector||qL.mozMatchesSelector||qL.oMatchesSelector;FwX=function(m){return function(){return rwH.call(this,m)}}}}var mU0=FwX;
R.prototype={constructor:R,appendChild:function(m){return this._parent.insertBefore(m,this._next)},
insertBefore:function(m,b){return this._parent.insertBefore(m,b)},
querySelector:function(m){return this._parent.querySelector(m)},
querySelectorAll:function(m){return this._parent.querySelectorAll(m)}};
var WA2={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(WA2={mouseenter:"mouseover",mouseleave:"mouseout"}));var YyE=[null];Ko.prototype=K9.prototype={constructor:Ko,select:function(m){typeof m!=="function"&&(m=e(m));for(var b=this._groups,h=b.length,q3=Array(h),Dk=0;Dk<h;++Dk)for(var $u=b[Dk],Zk=$u.length,Ff=q3[Dk]=Array(Zk),y$,Lo,DH=0;DH<Zk;++DH)(y$=$u[DH])&&(Lo=m.call(y$,y$.__data__,DH,$u))&&("__data__"in y$&&(Lo.__data__=y$.__data__),Ff[DH]=Lo);return new Ko(q3,
this._parents)},
filter:function(m){typeof m!=="function"&&(m=mU0(m));for(var b=this._groups,h=b.length,q3=Array(h),Dk=0;Dk<h;++Dk)for(var $u=b[Dk],Zk=$u.length,Ff=q3[Dk]=[],y$,Lo=0;Lo<Zk;++Lo)(y$=$u[Lo])&&m.call(y$,y$.__data__,Lo,$u)&&Ff.push(y$);return new Ko(q3,this._parents)},
data:function(m,b){if(!m)return Vp=Array(this.size()),Lo=-1,this.each(function(p2){Vp[++Lo]=p2}),Vp;
var h=b?d:l,q3=this._parents,Dk=this._groups;typeof m!=="function"&&(m=H(m));for(var $u=Dk.length,Zk=Array($u),Ff=Array($u),y$=Array($u),Lo=0;Lo<$u;++Lo){var DH=q3[Lo],RR=Dk[Lo],U0=RR.length,Vp=m.call(DH,DH&&DH.__data__,Lo,q3),Cv=Vp.length,Sx=Ff[Lo]=Array(Cv),au=Zk[Lo]=Array(Cv);U0=y$[Lo]=Array(U0);h(DH,RR,Sx,au,U0,Vp,b);RR=DH=0;for(var Gp;DH<Cv;++DH)if(U0=Sx[DH]){for(DH>=RR&&(RR=DH+1);!(Gp=au[RR])&&++RR<Cv;);U0._next=Gp||null}}Zk=new Ko(Zk,q3);Zk._enter=Ff;Zk._exit=y$;return Zk},
enter:function(){return new Ko(this._enter||this._groups.map(G),this._parents)},
exit:function(){return new Ko(this._exit||this._groups.map(G),this._parents)},
merge:function(m){var b=this._groups;m=m._groups;for(var h=b.length,q3=Math.min(h,m.length),Dk=Array(h),$u=0;$u<q3;++$u)for(var Zk=b[$u],Ff=m[$u],y$=Zk.length,Lo=Dk[$u]=Array(y$),DH,RR=0;RR<y$;++RR)if(DH=Zk[RR]||Ff[RR])Lo[RR]=DH;for(;$u<h;++$u)Dk[$u]=b[$u];return new Ko(Dk,this._parents)},
order:function(){for(var m=this._groups,b=-1,h=m.length;++b<h;)for(var q3=m[b],Dk=q3.length-1,$u=q3[Dk],Zk;--Dk>=0;)if(Zk=q3[Dk])$u&&$u!==Zk.nextSibling&&$u.parentNode.insertBefore(Zk,$u),$u=Zk;return this},
sort:function(m){function b(RR,U0){return RR&&U0?m(RR.__data__,U0.__data__):!RR-!U0}
m||(m=F);for(var h=this._groups,q3=h.length,Dk=Array(q3),$u=0;$u<q3;++$u){for(var Zk=h[$u],Ff=Zk.length,y$=Dk[$u]=Array(Ff),Lo,DH=0;DH<Ff;++DH)if(Lo=Zk[DH])y$[DH]=Lo;y$.sort(b)}return(new Ko(Dk,this._parents)).order()},
call:function(){var m=arguments[0];arguments[0]=this;m.apply(null,arguments);return this},
nodes:function(){var m=Array(this.size()),b=-1;this.each(function(){m[++b]=this});
return m},
node:function(){for(var m=this._groups,b=0,h=m.length;b<h;++b)for(var q3=m[b],Dk=0,$u=q3.length;Dk<$u;++Dk){var Zk=q3[Dk];if(Zk)return Zk}return null},
size:function(){var m=0;this.each(function(){++m});
return m},
empty:function(){return!this.node()},
each:function(m){for(var b=this._groups,h=0,q3=b.length;h<q3;++h)for(var Dk=b[h],$u=0,Zk=Dk.length,Ff;$u<Zk;++$u)(Ff=Dk[$u])&&m.call(Ff,Ff.__data__,$u,Dk);return this},
attr:function(m,b){var h=y(m);if(arguments.length<2){var q3=this.node();return h.local?q3.getAttributeNS(h.space,h.local):q3.getAttribute(h)}return this.each((b==null?h.local?z:V:typeof b==="function"?h.local?k:x:h.local?W:O)(h,b))},
style:function(m,b,h){return arguments.length>1?this.each((b==null?LZ:typeof b==="function"?Rm:sb)(m,b,h==null?"":h)):M3(this.node(),m)},
property:function(m,b){return arguments.length>1?this.each((b==null?tT:typeof b==="function"?hT:mJ)(m,b)):this.node()[m]},
text:function(m){return arguments.length?this.each(m==null?Yu:(typeof m==="function"?po:Mx)(m)):this.node().textContent},
html:function(m){return arguments.length?this.each(m==null?KZ:(typeof m==="function"?Ab:G2)(m)):this.node().innerHTML},
append:function(m){var b=typeof m==="function"?m:f(m);return this.select(function(){return this.appendChild(b.apply(this,arguments))})},
insert:function(m,b){var h=typeof m==="function"?m:f(m),q3=b==null?tb:typeof b==="function"?b:e(b);return this.select(function(){return this.insertBefore(h.apply(this,arguments),q3.apply(this,arguments)||null)})},
remove:function(){return this.each(lx)},
clone:function(m){return this.select(m?fZ:NE)},
datum:function(m){return arguments.length?this.property("__data__",m):this.node().__data__},
on:function(m,b,h){var q3=no(m+""),Dk=q3.length,$u;if(arguments.length<2){var Zk=this.node().__on;if(Zk)for(var Ff=0,y$=Zk.length,Lo;Ff<y$;++Ff){var DH=0;for(Lo=Zk[Ff];DH<Dk;++DH)if(($u=q3[DH]).type===Lo.type&&$u.name===Lo.name)return Lo.value}}else{Zk=b?gC:Co;h==null&&(h=!1);for(DH=0;DH<Dk;++DH)this.each(Zk(q3[DH],b,h));return this}},
dispatch:function(m,b){return this.each((typeof b==="function"?jf:oR)(m,b))}};
var OmL=0;v5.prototype=function(){return new v5}.prototype={constructor:v5,
get:function(m){for(var b=this._;!(b in m);)if(!(m=m.parentNode))return;return m[b]},
set:function(m,b){return m[this._]=b},
remove:function(m){return this._ in m&&delete m[this._]},
toString:function(){return this._}};
var Bu=1/.7,KFC=/^#([0-9a-f]{3})$/,x2Z=/^#([0-9a-f]{6})$/,BRE=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),zDn=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),nrH=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),kVt=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*\\)$"),
SyC=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),orC=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*\\)$"),TZ$={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};
ME(B5,ra,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
ME(UZ,$L,fo(B5,{brighter:function(m){m=m==null?Bu:Math.pow(Bu,m);return new UZ(this.r*m,this.g*m,this.b*m,this.opacity)},
darker:function(m){m=m==null?.7:Math.pow(.7,m);return new UZ(this.r*m,this.g*m,this.b*m,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"#"+ET(this.r)+ET(this.g)+ET(this.b)},
toString:function(){var m=this.opacity;m=isNaN(m)?1:Math.max(0,Math.min(1,m));return(m===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))+(m===1?")":", "+m+")")}}));
ME(xF,du,fo(B5,{brighter:function(m){m=m==null?Bu:Math.pow(Bu,m);return new xF(this.h,this.s,this.l*m,this.opacity)},
darker:function(m){m=m==null?.7:Math.pow(.7,m);return new xF(this.h,this.s,this.l*m,this.opacity)},
rgb:function(){var m=this.h%360+(this.h<0)*360,b=this.l,h=b+(b<.5?b:1-b)*(isNaN(m)||isNaN(this.s)?0:this.s);b=2*b-h;return new UZ(TF(m>=240?m-240:m+120,b,h),TF(m,b,h),TF(m<120?m+240:m-120,b,h),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 h6Z=Math.PI/180,KAx=180/Math.PI,Oln=4/29,Yn=6/29,YC0=3*Yn*Yn,U2E=Yn*Yn*Yn;ME(lh,function(m,b,h,q3){return arguments.length===1?bP(m):new lh(m,b,h,q3==null?1:q3)},fo(B5,{brighter:function(m){return new lh(this.l+18*(m==null?1:m),this.a,this.b,this.opacity)},
darker:function(m){return new lh(this.l-18*(m==null?1:m),this.a,this.b,this.opacity)},
rgb:function(){var m=(this.l+16)/116,b=isNaN(this.a)?m:m+this.a/500,h=isNaN(this.b)?m:m-this.b/200;b=.96422*nZ(b);m=1*nZ(m);h=.82521*nZ(h);return new UZ(H5(3.1338561*b-1.6168667*m-.4906146*h),H5(-.9787684*b+1.9161415*m+.033454*h),H5(.0719453*b-.2289914*m+1.4052427*h),this.opacity)}}));
ME(lZ,ix,fo(B5,{brighter:function(m){return new lZ(this.h,this.c,this.l+18*(m==null?1:m),this.opacity)},
darker:function(m){return new lZ(this.h,this.c,this.l-18*(m==null?1:m),this.opacity)},
rgb:function(){return bP(this).rgb()}}));
var xp0=1.78277*-.29227-.1347134789;ME(hh,ZH,fo(B5,{brighter:function(m){m=m==null?Bu:Math.pow(Bu,m);return new hh(this.h,this.s,this.l*m,this.opacity)},
darker:function(m){m=m==null?.7:Math.pow(.7,m);return new hh(this.h,this.s,this.l*m,this.opacity)},
rgb:function(){var m=isNaN(this.h)?0:(this.h+120)*h6Z,b=+this.l,h=isNaN(this.s)?0:this.s*b*(1-b),q3=Math.cos(m);m=Math.sin(m);return new UZ(255*(b+h*(-.14861*q3+1.78277*m)),255*(b+h*(-.29227*q3+-.90649*m)),255*(b+1.97294*q3*h),this.opacity)}}));
var ns2=function h(b){function q3($u,Zk){var Ff=Dk(($u=$L($u)).r,(Zk=$L(Zk)).r),y$=Dk($u.g,Zk.g),Lo=Dk($u.b,Zk.b),DH=QW($u.opacity,Zk.opacity);return function(RR){$u.r=Ff(RR);$u.g=y$(RR);$u.b=Lo(RR);$u.opacity=DH(RR);return $u+""}}
var Dk=tk(b);q3.gamma=h;return q3}(1),XVb=NQ(function(b){var h=b.length-1;
return function(q3){var Dk=q3<=0?q3=0:q3>=1?(q3=1,h-1):Math.floor(q3*h),$u=b[Dk],Zk=b[Dk+1];return Nk((q3-Dk/h)*h,Dk>0?b[Dk-1]:2*$u-Zk,$u,Zk,Dk<h-1?b[Dk+2]:2*Zk-$u)}});
NQ(function(b){var h=b.length;return function(q3){var Dk=Math.floor(((q3%=1)<0?++q3:q3)*h);return Nk((q3-Dk/h)*h,b[(Dk+h-1)%h],b[Dk%h],b[(Dk+1)%h],b[(Dk+2)%h])}});
var oeZ=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,U5S=new RegExp(oeZ.source,"g"),BZW=180/Math.PI,f5h={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},QJ,Mtk,ama,U_h,WMn=dU(function(b){if(b==="none")return f5h;QJ||(QJ=document.createElement("DIV"),Mtk=document.documentElement,ama=document.defaultView);QJ.style.transform=b;b=ama.getComputedStyle(Mtk.appendChild(QJ),null).getPropertyValue("transform");Mtk.removeChild(QJ);b=b.slice(7,-1).split(",");return ee(+b[0],+b[1],+b[2],+b[3],
+b[4],+b[5])},"px, ","px)","deg)"),TbE=dU(function(b){if(b==null)return f5h;
U_h||(U_h=document.createElementNS("http://www.w3.org/2000/svg","g"));U_h.setAttribute("transform",b);if(!(b=U_h.transform.baseVal.consolidate()))return f5h;b=b.matrix;return ee(b.a,b.b,b.c,b.d,b.e,b.f)},", ",")",")");
wt(OT);wt(QW);LY(OT);LY(QW);lU(OT);var ttb=lU(QW),OB=0,Os=0,xm=0,Wnb,K5,r_q=0,G7=0,X6F=0,Ym=typeof performance==="object"&&performance.now?performance:Date,z60=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(b){setTimeout(b,17)};
u$.prototype=EO.prototype={constructor:u$,restart:function(b,h,q3){if(typeof b!=="function")throw new TypeError("Ge");q3=(q3==null?I5():+q3)+(h==null?0:+h);this._next||K5===this||(K5?K5._next=this:Wnb=this,K5=this);this._call=b;this._time=q3;q$()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,q$())}};
var gDx=q("start","end","interrupt"),u8h=[],h4p=K9.prototype.constructor,Vvo=0,zC=K9.prototype;s6.prototype=function(b){return K9().transition(b)}.prototype={constructor:s6,
select:function(b){var h=this._name,q3=this._id;typeof b!=="function"&&(b=e(b));for(var Dk=this._groups,$u=Dk.length,Zk=Array($u),Ff=0;Ff<$u;++Ff)for(var y$=Dk[Ff],Lo=y$.length,DH=Zk[Ff]=Array(Lo),RR,U0,Vp=0;Vp<Lo;++Vp)(RR=y$[Vp])&&(U0=b.call(RR,RR.__data__,Vp,y$))&&("__data__"in RR&&(U0.__data__=RR.__data__),DH[Vp]=U0,uZ(DH[Vp],h,q3,Vp,DH,n9(RR,q3)));return new s6(Zk,this._parents,h,q3)},
filter:function(b){typeof b!=="function"&&(b=mU0(b));for(var h=this._groups,q3=h.length,Dk=Array(q3),$u=0;$u<q3;++$u)for(var Zk=h[$u],Ff=Zk.length,y$=Dk[$u]=[],Lo,DH=0;DH<Ff;++DH)(Lo=Zk[DH])&&b.call(Lo,Lo.__data__,DH,Zk)&&y$.push(Lo);return new s6(Dk,this._parents,this._name,this._id)},
merge:function(b){if(b._id!==this._id)throw Error();var h=this._groups;b=b._groups;for(var q3=h.length,Dk=Math.min(q3,b.length),$u=Array(q3),Zk=0;Zk<Dk;++Zk)for(var Ff=h[Zk],y$=b[Zk],Lo=Ff.length,DH=$u[Zk]=Array(Lo),RR,U0=0;U0<Lo;++U0)if(RR=Ff[U0]||y$[U0])DH[U0]=RR;for(;Zk<q3;++Zk)$u[Zk]=h[Zk];return new s6($u,this._parents,this._name,this._id)},
selection:function(){return new h4p(this._groups,this._parents)},
transition:function(){for(var b=this._name,h=this._id,q3=++Vvo,Dk=this._groups,$u=Dk.length,Zk=0;Zk<$u;++Zk)for(var Ff=Dk[Zk],y$=Ff.length,Lo,DH=0;DH<y$;++DH)if(Lo=Ff[DH]){var RR=n9(Lo,h);uZ(Lo,b,q3,DH,Ff,{time:RR.time+RR.delay+RR.duration,delay:0,duration:RR.duration,ease:RR.ease})}return new s6(Dk,this._parents,b,q3)},
call:zC.call,nodes:zC.nodes,node:zC.node,size:zC.size,empty:zC.empty,each:zC.each,on:function(b,h){var q3=this._id;return arguments.length<2?n9(this.node(),q3).on.on(b):this.each(sCt(q3,b,h))},
attr:function(b,h){var q3=y(b),Dk=q3==="transform"?TbE:Hb;return this.attrTween(b,typeof h==="function"?(q3.local?zE:Yz3)(q3,Dk,Y6(this,"attr."+b,h)):h==null?(q3.local?T9b:$D)(q3):(q3.local?B0:hA3)(q3,Dk,h+""))},
attrTween:function(b,h){var q3="attr."+b;if(arguments.length<2)return(q3=this.tween(q3))&&q3._value;if(h==null)return this.tween(q3,null);if(typeof h!=="function")throw Error();var Dk=y(b);return this.tween(q3,(Dk.local?n5:Owq)(Dk,h))},
style:function(b,h,q3){var Dk=b==="transform"?WMn:Hb;return h==null?this.styleTween(b,vDb(b,Dk)).on("end.style."+b,D7E(b)):this.styleTween(b,typeof h==="function"?JAZ(b,Dk,Y6(this,"style."+b,h)):p4h(b,Dk,h+""),q3)},
styleTween:function(b,h,q3){var Dk="style."+b;if(arguments.length<2)return(Dk=this.tween(Dk))&&Dk._value;if(h==null)return this.tween(Dk,null);if(typeof h!=="function")throw Error();return this.tween(Dk,jCt(b,h,q3==null?"":q3))},
text:function(b){return this.tween("text",typeof b==="function"?MEZ(Y6(this,"text",b)):fyf(b==null?"":b+""))},
remove:function(){return this.on("end.remove",yAb(this._id))},
tween:function(b,h){var q3=this._id;if(arguments.length<2){q3=n9(this.node(),q3).tween;for(var Dk=0,$u=q3.length,Zk;Dk<$u;++Dk)if((Zk=q3[Dk]).name===b)return Zk.value;return null}return this.each((h==null?O7:zQ)(q3,b,h))},
delay:function(b){var h=this._id;return arguments.length?this.each((typeof b==="function"?q$L:QCE)(h,b)):n9(this.node(),h).delay},
duration:function(b){var h=this._id;return arguments.length?this.each((typeof b==="function"?LSb:EDp)(h,b)):n9(this.node(),h).duration},
ease:function(b){var h=this._id;return arguments.length?this.each(PBz(h,b)):n9(this.node(),h).ease}};
var e63={time:null,delay:0,duration:250,ease:function(b){return((b*=2)<=1?b*b*b:(b-=2)*b*b+2)/2}};
K9.prototype.transition=function(b){var h;if(b instanceof s6){var q3=b._id;b=b._name}else q3=++Vvo,(h=e63).time=I5(),b=b==null?null:b+"";for(var Dk=this._groups,$u=Dk.length,Zk=0;Zk<$u;++Zk)for(var Ff=Dk[Zk],y$=Ff.length,Lo,DH=0;DH<y$;++DH)if(Lo=Ff[DH]){var RR=Lo,U0=b,Vp=q3,Cv=DH,Sx=Ff,au;if(!(au=h))a:{au=void 0;for(var Gp=q3;!(au=Lo.__transition)||!(au=au[Gp]);)if(!(Lo=Lo.parentNode)){au=(e63.time=I5(),e63);break a}}uZ(RR,U0,Vp,Cv,Sx,au)}return new s6(Dk,this._parents,b,q3)};
["e","w"].map(gsJ);["n","s"].map(gsJ);"n e s w nw ne se sw".split(" ").map(gsJ);uNM.prototype=function(){return new uNM}.prototype={constructor:uNM,
moveTo:function(b,h){this._+="M"+(this._x0=this._x1=+b)+","+(this._y0=this._y1=+h)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(b,h){this._+="L"+(this._x1=+b)+","+(this._y1=+h)},
bezierCurveTo:function(b,h,q3,Dk,$u,Zk){this._+="C"+ +b+","+ +h+","+ +q3+","+ +Dk+","+(this._x1=+$u)+","+(this._y1=+Zk)},
rect:function(b,h,q3,Dk){this._+="M"+(this._x0=this._x1=+b)+","+(this._y0=this._y1=+h)+"h"+ +q3+"v"+ +Dk+"h"+-q3+"Z"},
toString:function(){return this._}};
KnZ.prototype=kf0.prototype={constructor:KnZ,has:function(b){return" "+b in this},
get:function(b){return this[" "+b]},
set:function(b,h){this[" "+b]=h;return this},
remove:function(b){b=" "+b;return b in this&&delete this[b]},
clear:function(){for(var b in this)b[0]===" "&&delete this[b]},
keys:function(){var b=[],h;for(h in this)h[0]===" "&&b.push(h.slice(1));return b},
values:function(){var b=[],h;for(h in this)h[0]===" "&&b.push(this[h]);return b},
entries:function(){var b=[],h;for(h in this)h[0]===" "&&b.push({key:h.slice(1),value:this[h]});return b},
size:function(){var b=0,h;for(h in this)h[0]===" "&&++b;return b},
empty:function(){for(var b in this)if(b[0]===" ")return!1;return!0},
each:function(b){for(var h in this)h[0]===" "&&b(this[h],h.slice(1),this)}};
var c4=kf0.prototype;x_m.prototype=function(b,h){var q3=new x_m;if(b instanceof x_m)b.each(function(Zk){q3.add(Zk)});
else if(b){var Dk=-1,$u=b.length;if(h==null)for(;++Dk<$u;)q3.add(b[Dk]);else for(;++Dk<$u;)q3.add(h(b[Dk],Dk,b))}return q3}.prototype={constructor:x_m,
has:c4.has,add:function(b){this[" "+b]=b;return this},
remove:c4.remove,clear:c4.clear,values:c4.keys,size:c4.size,empty:c4.empty,each:c4.each};var Up5={},qCq={},YJh=osb(",").parse,Obb=osb("\t").parse;g4$(YJh);g4$(Obb);var sx=function(b,h,q3){h=new QPJ(h==null?$7E:h,q3==null?R_K:q3,NaN,NaN,NaN,NaN);return b==null?h:h.addAll(b)}.prototype=QPJ.prototype;
sx.copy=function(){var b=new QPJ(this._x,this._y,this._x0,this._y0,this._x1,this._y1),h=this._root,q3,Dk;if(!h)return b;if(!h.length)return b._root=qm$(h),b;for(q3=[{source:h,target:b._root=Array(4)}];h=q3.pop();)for(var $u=0;$u<4;++$u)if(Dk=h.source[$u])Dk.length?q3.push({source:Dk,target:h.target[$u]=Array(4)}):h.target[$u]=qm$(Dk);return b};
sx.add=function(b){var h=+this._x.call(null,b),q3=+this._y.call(null,b);return uYZ(this.cover(h,q3),h,q3,b)};
sx.addAll=function(b){var h,q3,Dk=b.length,$u,Zk,Ff=Array(Dk),y$=Array(Dk),Lo=Infinity,DH=Infinity,RR=-Infinity,U0=-Infinity;for(q3=0;q3<Dk;++q3)isNaN($u=+this._x.call(null,h=b[q3]))||isNaN(Zk=+this._y.call(null,h))||(Ff[q3]=$u,y$[q3]=Zk,$u<Lo&&(Lo=$u),$u>RR&&(RR=$u),Zk<DH&&(DH=Zk),Zk>U0&&(U0=Zk));RR<Lo&&(Lo=this._x0,RR=this._x1);U0<DH&&(DH=this._y0,U0=this._y1);this.cover(Lo,DH).cover(RR,U0);for(q3=0;q3<Dk;++q3)uYZ(this,Ff[q3],y$[q3],b[q3]);return this};
sx.cover=function(b,h){if(isNaN(b=+b)||isNaN(h=+h))return this;var q3=this._x0,Dk=this._y0,$u=this._x1,Zk=this._y1;if(isNaN(q3))$u=(q3=Math.floor(b))+1,Zk=(Dk=Math.floor(h))+1;else if(q3>b||b>$u||Dk>h||h>Zk){var Ff=$u-q3,y$=this._root,Lo;switch(Lo=(h<(Dk+Zk)/2)<<1|b<(q3+$u)/2){case 0:do{var DH=Array(4);DH[Lo]=y$;y$=DH}while(Ff*=2,$u=q3+Ff,Zk=Dk+Ff,b>$u||h>Zk);break;case 1:do DH=Array(4),DH[Lo]=y$,y$=DH;while(Ff*=2,q3=$u-Ff,Zk=Dk+Ff,q3>b||h>Zk);break;case 2:do DH=Array(4),DH[Lo]=y$,y$=DH;while(Ff*=
2,$u=q3+Ff,Dk=Zk-Ff,b>$u||Dk>h);break;case 3:do DH=Array(4),DH[Lo]=y$,y$=DH;while(Ff*=2,q3=$u-Ff,Dk=Zk-Ff,q3>b||Dk>h)}this._root&&this._root.length&&(this._root=y$)}else return this;this._x0=q3;this._y0=Dk;this._x1=$u;this._y1=Zk;return this};
sx.data=function(){var b=[];this.visit(function(h){if(!h.length){do b.push(h.data);while(h=h.next)}});
return b};
sx.extent=function(b){return arguments.length?this.cover(+b[0][0],+b[0][1]).cover(+b[1][0],+b[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
sx.find=function(b,h,q3){var Dk=this._x0,$u=this._y0,Zk,Ff,y$,Lo,DH=this._x1,RR=this._y1,U0=[],Vp=this._root,Cv;Vp&&U0.push(new NR(Vp,Dk,$u,DH,RR));q3==null?q3=Infinity:(Dk=b-q3,$u=h-q3,DH=b+q3,RR=h+q3,q3*=q3);for(;Cv=U0.pop();)if(!(!(Vp=Cv.node)||(Zk=Cv.x0)>DH||(Ff=Cv.y0)>RR||(y$=Cv.x1)<Dk||(Lo=Cv.y1)<$u))if(Vp.length){Cv=(Zk+y$)/2;var Sx=(Ff+Lo)/2;U0.push(new NR(Vp[3],Cv,Sx,y$,Lo),new NR(Vp[2],Zk,Sx,Cv,Lo),new NR(Vp[1],Cv,Ff,y$,Sx),new NR(Vp[0],Zk,Ff,Cv,Sx));if(Vp=(h>=Sx)<<1|b>=Cv)Cv=U0[U0.length-
1],U0[U0.length-1]=U0[U0.length-1-Vp],U0[U0.length-1-Vp]=Cv}else if(Cv=b-+this._x.call(null,Vp.data),Sx=h-+this._y.call(null,Vp.data),Cv=Cv*Cv+Sx*Sx,Cv<q3){var au=Math.sqrt(q3=Cv);Dk=b-au;$u=h-au;DH=b+au;RR=h+au;au=Vp.data}return au};
sx.remove=function(b){if(isNaN(Lo=+this._x.call(null,b))||isNaN(DH=+this._y.call(null,b)))return this;var h,q3=this._root,Dk,$u=this._x0,Zk=this._y0,Ff=this._x1,y$=this._y1,Lo,DH,RR,U0,Vp,Cv,Sx;if(!q3)return this;if(q3.length)for(;;){(Vp=Lo>=(RR=($u+Ff)/2))?$u=RR:Ff=RR;(Cv=DH>=(U0=(Zk+y$)/2))?Zk=U0:y$=U0;if(!(h=q3,q3=q3[Sx=Cv<<1|Vp]))return this;if(!q3.length)break;if(h[Sx+1&3]||h[Sx+2&3]||h[Sx+3&3]){var au=h;var Gp=Sx}}for(;q3.data!==b;)if(!(Dk=q3,q3=q3.next))return this;(b=q3.next)&&delete q3.next;
if(Dk)return b?Dk.next=b:delete Dk.next,this;if(!h)return this._root=b,this;b?h[Sx]=b:delete h[Sx];(q3=h[0]||h[1]||h[2]||h[3])&&q3===(h[3]||h[2]||h[1]||h[0])&&!q3.length&&(au?au[Gp]=q3:this._root=q3);return this};
sx.removeAll=function(b){for(var h=0,q3=b.length;h<q3;++h)this.remove(b[h]);return this};
sx.root=function(){return this._root};
sx.size=function(){var b=0;this.visit(function(h){if(!h.length){do++b;while(h=h.next)}});
return b};
sx.visit=function(b){var h=[],q3,Dk=this._root,$u,Zk,Ff,y$,Lo;for(Dk&&h.push(new NR(Dk,this._x0,this._y0,this._x1,this._y1));q3=h.pop();)if(!b(Dk=q3.node,Zk=q3.x0,Ff=q3.y0,y$=q3.x1,Lo=q3.y1)&&Dk.length){q3=(Zk+y$)/2;var DH=(Ff+Lo)/2;($u=Dk[3])&&h.push(new NR($u,q3,DH,y$,Lo));($u=Dk[2])&&h.push(new NR($u,Zk,DH,q3,Lo));($u=Dk[1])&&h.push(new NR($u,q3,Ff,y$,DH));($u=Dk[0])&&h.push(new NR($u,Zk,Ff,q3,DH))}};
sx.visitAfter=function(b){var h=[],q3=[],Dk;for(this._root&&h.push(new NR(this._root,this._x0,this._y0,this._x1,this._y1));Dk=h.pop();){var $u=Dk.node;if($u.length){var Zk,Ff=Dk.x0,y$=Dk.y0,Lo=Dk.x1,DH=Dk.y1,RR=(Ff+Lo)/2,U0=(y$+DH)/2;(Zk=$u[0])&&h.push(new NR(Zk,Ff,y$,RR,U0));(Zk=$u[1])&&h.push(new NR(Zk,RR,y$,Lo,U0));(Zk=$u[2])&&h.push(new NR(Zk,Ff,U0,RR,DH));(Zk=$u[3])&&h.push(new NR(Zk,RR,U0,Lo,DH))}q3.push(Dk)}for(;Dk=q3.pop();)b(Dk.node,Dk.x0,Dk.y0,Dk.x1,Dk.y1);return this};
sx.x=function(b){return arguments.length?(this._x=b,this):this._x};
sx.y=function(b){return arguments.length?(this._y=b,this):this._y};
var AAz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;LAS.prototype=EsS.prototype;EsS.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 PYX,N78={"%":function(b,h){return(b*100).toFixed(h)},
b:function(b){return Math.round(b).toString(2)},
c:function(b){return b+""},
d:function(b){return Math.round(b).toString(10)},
e:function(b,h){return b.toExponential(h)},
f:function(b,h){return b.toFixed(h)},
g:function(b,h){return b.toPrecision(h)},
o:function(b){return Math.round(b).toString(8)},
p:function(b,h){return Qwx(b*100,h)},
r:Qwx,s:function(b,h){var q3=B9M(b,h);if(!q3)return b+"";var Dk=q3[0];q3=q3[1];q3=q3-(PYX=Math.max(-8,Math.min(8,Math.floor(q3/3)))*3)+1;var $u=Dk.length;return q3===$u?Dk:q3>$u?Dk+Array(q3-$u+1).join("0"):q3>0?Dk.slice(0,q3)+"."+Dk.slice(q3):"0."+Array(1-q3).join("0")+B9M(b,Math.max(0,h+q3-1))[0]},
X:function(b){return Math.round(b).toString(16).toUpperCase()},
x:function(b){return Math.round(b).toString(16)}},E42="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),KMZ;
(function(b){return KMZ=Zyz(b)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});cM.prototype={constructor:cM,reset:function(){this.s=this.t=0},
add:function(b){swx(gtq,b,this.t);swx(this,gtq.s,this.s);this.s?this.t+=gtq.t:this.s=gtq.t},
valueOf:function(){return this.s}};
var gtq=new cM,Nw=Math.PI,AZ=Nw/2,XpW=Nw/4,xbp=Nw*2,GfK=Nw/180,yA=Math.abs,$ph=Math.atan,jw$=Math.atan2,Ze=Math.cos,OR=Math.sin,n1S=Math.sqrt;new cM;new cM;new cM;var R6h=new cM;(function(b,h,q3,Dk){return function($u){function Zk(Jf,CH){b(Jf,CH)&&$u.point(Jf,CH)}
function Ff(Jf,CH){Vp.point(Jf,CH)}
function y$(){He.point=Ff;Vp.lineStart()}
function Lo(){He.point=Zk;Vp.lineEnd()}
function DH(Jf,CH){F1.push([Jf,CH]);Sx.point(Jf,CH)}
function RR(){Sx.lineStart();F1=[]}
function U0(){DH(F1[0][0],F1[0][1]);Sx.lineEnd();var Jf=Sx.clean(),CH=Cv.result(),La=CH.length,mk;F1.pop();Gp.push(F1);F1=null;if(La)if(Jf&1){if(La=CH[0],(CH=La.length-1)>0){au||($u.polygonStart(),au=!0);$u.lineStart();for(Jf=0;Jf<CH;++Jf)$u.point((mk=La[Jf])[0],mk[1]);$u.lineEnd()}}else La>1&&Jf&2&&CH.push(CH.pop().concat(CH.shift())),p2.push(CH.filter(CBz))}
var Vp=h($u),Cv=IyZ(),Sx=h(Cv),au=!1,Gp,p2,F1,He={point:Zk,lineStart:y$,lineEnd:Lo,polygonStart:function(){He.point=DH;He.lineStart=RR;He.lineEnd=U0;p2=[];Gp=[]},
polygonEnd:function(){He.point=Zk;He.lineStart=y$;He.lineEnd=Lo;var Jf=p2,CH=Jf.length;var La=-1;for(var mk=0,g0,HT;++La<CH;)mk+=Jf[La].length;for(g0=Array(mk);--CH>=0;)for(HT=Jf[CH],La=HT.length;--La>=0;)g0[--mk]=HT[La];p2=g0;Jf=Gp;CH=Dk[0];mk=Dk[1];var jO=OR(mk);La=[OR(CH),-Ze(CH),0];HT=g0=0;R6h.reset();jO===1?mk=AZ+1E-6:jO===-1&&(mk=-AZ-1E-6);jO=0;for(var Xt=Jf.length;jO<Xt;++jO)if(Po=(y1=Jf[jO]).length){var y1,Po,$1=y1[Po-1],CS=$1[0],Ns=$1[1]/2+XpW,uzh=OR(Ns),rW8=Ze(Ns);for(Ns=0;Ns<Po;++Ns,CS=
wyf,uzh=WwH,rW8=LD,$1=qYJ){var qYJ=y1[Ns],wyf=qYJ[0];LD=qYJ[1]/2+XpW;var WwH=OR(LD),LD=Ze(LD),nt=wyf-CS,cPM=nt>=0?1:-1,Hlm=cPM*nt,QKh=Hlm>Nw;uzh*=WwH;R6h.add(jw$(uzh*cPM*OR(Hlm),rW8*LD+uzh*Ze(Hlm)));g0+=QKh?nt+cPM*xbp:nt;QKh^CS>=CH^wyf>=CH&&($1=v4Z(yWn($1),yWn(qYJ)),DUb($1),CS=v4Z(La,$1),DUb(CS),CS=(QKh^nt>=0?-1:1)*zAu(CS[2]),mk>CS||mk===CS&&($1[0]||$1[1]))&&(HT+=QKh^nt>=0?1:-1)}}Jf=(g0<-1E-6||g0<1E-6&&R6h<-1E-6)^HT&1;p2.length?(au||($u.polygonStart(),au=!0),iyE(p2,byn,Jf,q3,$u)):Jf&&(au||($u.polygonStart(),
au=!0),$u.lineStart(),q3(null,null,1,$u),$u.lineEnd());au&&($u.polygonEnd(),au=!1);p2=Gp=null},
sphere:function(){$u.polygonStart();$u.lineStart();q3(null,null,1,$u);$u.lineEnd();$u.polygonEnd()}};
return He}})(function(){return!0},function(b){var h=NaN,q3=NaN,Dk=NaN,$u;
return{lineStart:function(){b.lineStart();$u=1},
point:function(Zk,Ff){var y$=Zk>0?Nw:-Nw,Lo=yA(Zk-h);if(yA(Lo-Nw)<1E-6)b.point(h,q3=(q3+Ff)/2>0?AZ:-AZ),b.point(Dk,q3),b.lineEnd(),b.lineStart(),b.point(y$,q3),b.point(Zk,q3),$u=0;else if(Dk!==y$&&Lo>=Nw){yA(h-Dk)<1E-6&&(h-=Dk*1E-6);yA(Zk-y$)<1E-6&&(Zk-=y$*1E-6);Lo=h;var DH=q3,RR=Zk,U0,Vp,Cv=OR(Lo-RR);q3=yA(Cv)>1E-6?$ph((OR(DH)*(Vp=Ze(Ff))*OR(RR)-OR(Ff)*(U0=Ze(DH))*OR(Lo))/(U0*Vp*Cv)):(DH+Ff)/2;b.point(Dk,q3);b.lineEnd();b.lineStart();b.point(y$,q3);$u=0}b.point(h=Zk,q3=Ff);Dk=y$},
lineEnd:function(){b.lineEnd();h=q3=NaN},
clean:function(){return 2-$u}}},function(b,h,q3,Dk){b==null?(q3*=AZ,Dk.point(-Nw,q3),Dk.point(0,q3),Dk.point(Nw,q3),Dk.point(Nw,0),Dk.point(Nw,-q3),Dk.point(0,-q3),Dk.point(-Nw,-q3),Dk.point(-Nw,0),Dk.point(-Nw,q3)):yA(b[0]-h[0])>1E-6?(b=b[0]<h[0]?Nw:-Nw,q3=q3*b/2,Dk.point(-b,q3),Dk.point(0,q3),Dk.point(b,q3)):Dk.point(h[0],h[1])},[-Nw,
-AZ]);new cM;new cM;new cM;new cM;Pqf.prototype={constructor:Pqf,point:function(b,h){this.stream.point(b,h)},
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()}};
Ze(30*GfK);(function(b){return function(h){var q3=new Pqf,Dk;for(Dk in b)q3[Dk]=b[Dk];q3.stream=h;return q3}})({point:function(b,h){this.stream.point(b*GfK,h*GfK)}});
JWx(function(b){return n1S(2/(1+b))}).invert=km(function(b){return 2*zAu(b/2)});
JWx(function(b){return(b=b>1?0:b<-1?Nw:Math.acos(b))&&b/OR(b)}).invert=km(function(b){return b});
n1S(3);km($ph);km(zAu);km(function(b){return 2*$ph(b)});
SD.prototype=fmZ.prototype={constructor:SD,count:function(){return this.eachAfter(d7x)},
each:function(b){var h,q3=[this],Dk;do{var $u=q3.reverse();for(q3=[];h=$u.pop();)if(b(h),h=h.children){var Zk=0;for(Dk=h.length;Zk<Dk;++Zk)q3.push(h[Zk])}}while(q3.length);return this},
eachAfter:function(b){for(var h,q3=[this],Dk=[],$u,Zk;h=q3.pop();)if(Dk.push(h),h=h.children)for($u=0,Zk=h.length;$u<Zk;++$u)q3.push(h[$u]);for(;h=Dk.pop();)b(h);return this},
eachBefore:function(b){for(var h,q3=[this],Dk;h=q3.pop();)if(b(h),h=h.children)for(Dk=h.length-1;Dk>=0;--Dk)q3.push(h[Dk]);return this},
sum:function(b){return this.eachAfter(function(h){for(var q3=+b(h.data)||0,Dk=h.children,$u=Dk&&Dk.length;--$u>=0;)q3+=Dk[$u].value;h.value=q3})},
sort:function(b){return this.eachBefore(function(h){h.children&&h.children.sort(b)})},
path:function(b){var h=this;var q3=h;var Dk=b;if(q3!==Dk){var $u=q3.ancestors(),Zk=Dk.ancestors(),Ff=null;q3=$u.pop();for(Dk=Zk.pop();q3===Dk;)Ff=q3,q3=$u.pop(),Dk=Zk.pop();q3=Ff}for(Dk=[h];h!==q3;)h=h.parent,Dk.push(h);for(h=Dk.length;b!==q3;)Dk.splice(h,0,b),b=b.parent;return Dk},
ancestors:function(){for(var b=this,h=[b];b=b.parent;)h.push(b);return h},
links:function(){var b=this,h=[];b.each(function(q3){q3!==b&&h.push({source:q3.parent,target:q3})});
return h},
copy:function(){return fmZ(this).eachBefore(ayn)}};
(function(b,h){this._=b;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=h}).prototype=Object.create(SD.prototype);
var NZT=new Date,sPu=new Date,T72=aM(function(){},function(b,h){b.setTime(+b+h)},function(b,h){return h-b});
T72.every=function(b){b=Math.floor(b);return isFinite(b)&&b>0?b>1?aM(function(h){h.setTime(Math.floor(h/b)*b)},function(h,q3){h.setTime(+h+q3*b)},function(h,q3){return(q3-h)/b}):T72:null};
aM(function(b){b.setTime(Math.floor(b/1E3)*1E3)},function(b,h){b.setTime(+b+h*1E3)},function(b,h){return(h-b)/1E3},function(b){return b.getUTCSeconds()});
aM(function(b){b.setTime(Math.floor(b/6E4)*6E4)},function(b,h){b.setTime(+b+h*6E4)},function(b,h){return(h-b)/6E4},function(b){return b.getMinutes()});
aM(function(b){var h=b.getTimezoneOffset()*6E4%36E5;h<0&&(h+=36E5);b.setTime(Math.floor((+b-h)/36E5)*36E5+h)},function(b,h){b.setTime(+b+h*36E5)},function(b,h){return(h-b)/36E5},function(b){return b.getHours()});
var eCX=aM(function(b){b.setHours(0,0,0,0)},function(b,h){b.setDate(b.getDate()+h)},function(b,h){return(h-b-(h.getTimezoneOffset()-b.getTimezoneOffset())*6E4)/864E5},function(b){return b.getDate()-1}),aIn=RC(0),vsq=RC(1);
RC(2);RC(3);var DpM=RC(4);RC(5);RC(6);aM(function(b){b.setDate(1);b.setHours(0,0,0,0)},function(b,h){b.setMonth(b.getMonth()+h)},function(b,h){return h.getMonth()-b.getMonth()+(h.getFullYear()-b.getFullYear())*12},function(b){return b.getMonth()});
var Kt=aM(function(b){b.setMonth(0,1);b.setHours(0,0,0,0)},function(b,h){b.setFullYear(b.getFullYear()+h)},function(b,h){return h.getFullYear()-b.getFullYear()},function(b){return b.getFullYear()});
Kt.every=function(b){return isFinite(b=Math.floor(b))&&b>0?aM(function(h){h.setFullYear(Math.floor(h.getFullYear()/b)*b);h.setMonth(0,1);h.setHours(0,0,0,0)},function(h,q3){h.setFullYear(h.getFullYear()+q3*b)}):null};
aM(function(b){b.setUTCSeconds(0,0)},function(b,h){b.setTime(+b+h*6E4)},function(b,h){return(h-b)/6E4},function(b){return b.getUTCMinutes()});
aM(function(b){b.setUTCMinutes(0,0,0)},function(b,h){b.setTime(+b+h*36E5)},function(b,h){return(h-b)/36E5},function(b){return b.getUTCHours()});
var tvb=aM(function(b){b.setUTCHours(0,0,0,0)},function(b,h){b.setUTCDate(b.getUTCDate()+h)},function(b,h){return(h-b)/864E5},function(b){return b.getUTCDate()-1}),VGt=wf(0),yPq=wf(1);
wf(2);wf(3);var pyZ=wf(4);wf(5);wf(6);aM(function(b){b.setUTCDate(1);b.setUTCHours(0,0,0,0)},function(b,h){b.setUTCMonth(b.getUTCMonth()+h)},function(b,h){return h.getUTCMonth()-b.getUTCMonth()+(h.getUTCFullYear()-b.getUTCFullYear())*12},function(b){return b.getUTCMonth()});
var xn=aM(function(b){b.setUTCMonth(0,1);b.setUTCHours(0,0,0,0)},function(b,h){b.setUTCFullYear(b.getUTCFullYear()+h)},function(b,h){return h.getUTCFullYear()-b.getUTCFullYear()},function(b){return b.getUTCFullYear()});
xn.every=function(b){return isFinite(b=Math.floor(b))&&b>0?aM(function(h){h.setUTCFullYear(Math.floor(h.getUTCFullYear()/b)*b);h.setUTCMonth(0,1);h.setUTCHours(0,0,0,0)},function(h,q3){h.setUTCFullYear(h.getUTCFullYear()+q3*b)}):null};
var Mv8={"-":"",_:" ",0:"0"},mg=/^\s*\d+/,mbK=/^%/,FMZ=/[\\^$*+?|[\]().{}]/g,L6F;(function(b){L6F=X4n(b);nbZ=L6F.utcFormat;kxW=L6F.utcParse;return L6F})({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||nbZ("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||kxW("%Y-%m-%dT%H:%M:%S.%LZ");wj("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
wj("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");wj("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");wj("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");wj("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");wj("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");wj("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
wj("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");wj("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");wj("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");wj("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");wj("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Bbt=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(wj);vk(Bbt);var z4Z=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(wj);vk(z4Z);var nzh=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(wj);vk(nzh);var kJE=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(wj);
vk(kJE);var SJn=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(wj);vk(SJn);var ozK=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(wj);vk(ozK);var Ubz=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(wj);vk(Ubz);var gd9=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(wj);vk(gd9);var u2n=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(wj);vk(u2n);var qSZ=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(wj);vk(qSZ);var Qvh=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(wj);vk(Qvh);var LDn=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(wj);vk(LDn);var Edh=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(wj);vk(Edh);var Pib=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(wj);vk(Pib);var NWt=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(wj);vk(NWt);var svL=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(wj);vk(svL);var yKH=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(wj);vk(yKH);var vdh=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(wj);vk(vdh);var DoL=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(wj);vk(DoL);var pEH=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(wj);vk(pEH);var JKp=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(wj);vk(JKp);var jvK=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(wj);vk(jvK);var ftn=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(wj);vk(ftn);var McH=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(wj);vk(McH);var tch=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(wj);vk(tch);var ew9=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(wj);vk(ew9);var G_C=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(wj);vk(G_C);ttb(ZH(300,.5,0),ZH(-240,.5,1));ttb(ZH(-100,.75,.35),ZH(80,1.5,.8));ttb(ZH(260,.75,.35),ZH(80,1.5,.8));ZH();$L();o1q(wj("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
o1q(wj("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
o1q(wj("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
o1q(wj("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Imx.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(b,h){b=+b;h=+h;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(b,h):this._context.moveTo(b,h);break;case 1:this._point=2;default:this._context.lineTo(b,h)}}};
(function(b){function h(q3){return new iG$(b(q3))}
h._curve=b;return h})(function(b){return new Imx(b)});
iG$.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(b,h){this._curve.point(h*Math.sin(b),h*-Math.cos(b))}};
jPm.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:JPF(this,this._t0,bGR(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(b,h){var q3=NaN;b=+b;h=+h;if(b!==this._x1||h!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(b,h):this._context.moveTo(b,h);break;case 1:this._point=2;break;case 2:this._point=3;JPF(this,bGR(this,q3=CYb(this,b,h)),q3);break;default:JPF(this,this._t0,q3=CYb(this,b,h))}this._x0=this._x1;this._x1=b;this._y0=this._y1;this._y1=h;this._t0=q3}}};
(function(b){this._context=new dUa(b)}.prototype=Object.create(jPm.prototype)).point=function(b,h){jPm.prototype.point.call(this,h,b)};
dUa.prototype={moveTo:function(b,h){this._context.moveTo(h,b)},
closePath:function(){this._context.closePath()},
lineTo:function(b,h){this._context.lineTo(h,b)},
bezierCurveTo:function(b,h,q3,Dk,$u,Zk){this._context.bezierCurveTo(h,b,Dk,q3,Zk,$u)}};
uV.prototype={constructor:uV,scale:function(b){return b===1?this:new uV(this.k*b,this.x,this.y)},
translate:function(b,h){return b===0&h===0?this:new uV(this.k,this.x+this.k*b,this.y+this.k*h)},
apply:function(b){return[b[0]*this.k+this.x,b[1]*this.k+this.y]},
invert:function(b){return[(b[0]-this.x)/this.k,(b[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new uV(1,0,0);BAK=ra;cb.svg=cb.svg;cb.xhtml=cb.xhtml;cb.xlink=cb.xlink;cb.xml=cb.xml;cb.xmlns=cb.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 Sf$="hammer_"+(Math.random()*1E6|0),obZ=function(){var g=document||document;if(!g[Sf$]){var u=function(){(function(q,Q,L,E){function y(lh,rq,nZ){return setTimeout(G(lh,nZ),rq)}
function v(lh,rq,nZ){return Array.isArray(lh)?(J(lh,nZ[rq],nZ),!0):!1}
function J(lh,rq,nZ){var H5;if(lh)if(lh.forEach)lh.forEach(rq,nZ);else if(lh.length!==E){var Hn=0;for(H5=lh.length;Hn<H5;Hn++)rq.call(nZ,lh[Hn],Hn,lh)}else for(Hn in lh)lh.hasOwnProperty(Hn)&&rq.call(nZ,lh[Hn],Hn,lh)}
function f(lh,rq,nZ){for(var H5=Object.keys(rq),Hn=0,I3=H5.length;Hn<I3;Hn++)if(!nZ||nZ&&lh[H5[Hn]]===E)lh[H5[Hn]]=rq[H5[Hn]];return lh}
function t(lh,rq){return f(lh,rq,!0)}
function e(lh,rq,nZ){rq=rq.prototype;var H5=lh.prototype=Object.create(rq);H5.constructor=lh;H5._super=rq;nZ&&f(H5,nZ)}
function G(lh,rq){return function(){return lh.apply(rq,arguments)}}
function R(lh,rq){return typeof lh=="function"?lh.apply(rq?rq[0]||E:E,rq):lh}
function H(lh,rq,nZ){J(d(rq),function(H5){lh.addEventListener(H5,nZ,!1)})}
function l(lh,rq,nZ){J(d(rq),function(H5){lh.removeEventListener(H5,nZ,!1)})}
function d(lh){return lh.trim().split(/\s+/g)}
function F(lh,rq,nZ){if(lh.indexOf&&!nZ)return lh.indexOf(rq);for(var H5=0,Hn=lh.length;H5<Hn;H5++)if(nZ&&lh[H5][nZ]==rq||!nZ&&lh[H5]===rq)return H5;return-1}
function V(lh,rq,nZ){for(var H5=[],Hn=[],I3=0,ix=lh.length;I3<ix;I3++){var lZ=rq?lh[I3][rq]:lh[I3];F(Hn,lZ)<0&&H5.push(lh[I3]);Hn[I3]=lZ}nZ&&(H5=rq?H5.sort(function(ZH,hh){return ZH[rq]>hh[rq]}):H5.sort());
return H5}
function z(lh,rq){for(var nZ,H5=rq[0].toUpperCase()+rq.slice(1),Hn=0,I3=jf.length;Hn<I3;Hn++)if(nZ=(nZ=jf[Hn])?nZ+H5:rq,nZ in lh)return nZ;return E}
function O(lh,rq){var nZ=this;this.manager=lh;this.callback=rq;this.element=lh.element;this.target=lh.options.inputTarget;this.domHandler=function(H5){R(lh.options.enable,[lh])&&nZ.handler(H5)};
this.evEl&&H(this.element,this.evEl,this.domHandler);this.evTarget&&H(this.target,this.evTarget,this.domHandler);this.evWin&&H(q,this.evWin,this.domHandler)}
function W(lh){var rq;yp?rq=mJ:YV?rq=hT:ra?rq=Yu:rq=tT;return new rq(lh,x)}
function x(lh,rq,nZ){var H5=nZ.pointers.length,Hn=nZ.changedPointers.length,I3=rq&1&&H5-Hn===0;nZ.isFirst=!!I3;nZ.isFinal=!!(rq&12&&H5-Hn===0);I3&&(lh.session={});nZ.eventType=rq;rq=lh.session;H5=nZ.pointers;Hn=H5.length;rq.firstInput||(rq.firstInput=k(nZ));Hn>1&&!rq.firstMultiple?rq.firstMultiple=k(nZ):Hn===1&&(rq.firstMultiple=!1);I3=rq.firstInput;var ix=(Hn=rq.firstMultiple)?Hn.center:I3.center,lZ=nZ.center=LZ(H5);nZ.timeStamp=ME();nZ.deltaTime=nZ.timeStamp-I3.timeStamp;nZ.angle=M3(ix,lZ);nZ.distance=
Rm(ix,lZ);I3=nZ.center;ix=rq.offsetDelta||{};lZ=rq.prevDelta||{};var ZH=rq.prevInput||{};if(nZ.eventType===1||ZH.eventType===4)lZ=rq.prevDelta={x:ZH.deltaX||0,y:ZH.deltaY||0},ix=rq.offsetDelta={x:I3.x,y:I3.y};nZ.deltaX=lZ.x+(I3.x-ix.x);nZ.deltaY=lZ.y+(I3.y-ix.y);nZ.offsetDirection=sb(nZ.deltaX,nZ.deltaY);Hn?(I3=Hn.pointers,I3=Rm(H5[0],H5[1],$L)/Rm(I3[0],I3[1],$L)):I3=1;nZ.scale=I3;Hn?(Hn=Hn.pointers,H5=M3(H5[1],H5[0],$L)-M3(Hn[1],Hn[0],$L)):H5=0;nZ.rotation=H5;ix=rq.lastInterval||nZ;H5=nZ.timeStamp-
ix.timeStamp;nZ.eventType!=8&&(H5>25||ix.velocity===E)?(I3=ix.deltaX-nZ.deltaX,ix=ix.deltaY-nZ.deltaY,lZ=I3/H5||0,ZH=ix/H5||0,H5=lZ,Hn=ZH,lZ=v5(lZ)>v5(ZH)?lZ:ZH,I3=sb(I3,ix),rq.lastInterval=nZ):(lZ=ix.velocity,H5=ix.velocityX,Hn=ix.velocityY,I3=ix.direction);nZ.velocity=lZ;nZ.velocityX=H5;nZ.velocityY=Hn;nZ.direction=I3;rq=lh.element;a:{for(H5=nZ.srcEvent.target;H5;){if(H5==rq){H5=!0;break a}H5=H5.parentNode}H5=!1}H5&&(rq=nZ.srcEvent.target);nZ.target=rq;lh.emit("hammer.input",nZ);lh.recognize(nZ);
lh.session.prevInput=nZ}
function k(lh){for(var rq=[],nZ=0;nZ<lh.pointers.length;nZ++)rq[nZ]={clientX:K9(lh.pointers[nZ].clientX),clientY:K9(lh.pointers[nZ].clientY)};return{timeStamp:ME(),pointers:rq,center:LZ(rq),deltaX:lh.deltaX,deltaY:lh.deltaY}}
function LZ(lh){var rq=lh.length;if(rq===1)return{x:K9(lh[0].clientX),y:K9(lh[0].clientY)};for(var nZ=0,H5=0,Hn=0;Hn<rq;Hn++)nZ+=lh[Hn].clientX,H5+=lh[Hn].clientY;return{x:K9(nZ/rq),y:K9(H5/rq)}}
function sb(lh,rq){return lh===rq?1:v5(lh)>=v5(rq)?lh>0?2:4:rq>0?8:16}
function Rm(lh,rq,nZ){nZ||(nZ=hb);var H5=rq[nZ[0]]-lh[nZ[0]];lh=rq[nZ[1]]-lh[nZ[1]];return Math.sqrt(H5*H5+lh*lh)}
function M3(lh,rq,nZ){nZ||(nZ=hb);return Math.atan2(rq[nZ[1]]-lh[nZ[1]],rq[nZ[0]]-lh[nZ[0]])*180/Math.PI}
function tT(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;O.apply(this,arguments)}
function mJ(){this.evEl=Pq;this.evWin=du;O.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function hT(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};O.apply(this,arguments)}
function Yu(){O.apply(this,arguments);var lh=G(this.handler,this);this.touch=new hT(this.manager,lh);this.mouse=new tT(this.manager,lh)}
function Mx(lh,rq){this.manager=lh;this.set(rq)}
function po(lh){if(lh.indexOf("none")>-1)return"none";var rq=lh.indexOf("pan-x")>-1,nZ=lh.indexOf("pan-y")>-1;return rq&&nZ?"pan-x pan-y":rq||nZ?rq?"pan-x":"pan-y":lh.indexOf("manipulation")>-1?"manipulation":"auto"}
function KZ(lh){this.id=fo++;this.manager=null;this.options=t(lh||{},this.defaults);lh=this.options.enable;this.options.enable=lh===E?!0:lh;this.state=1;this.simultaneous={};this.requireFail=[]}
function G2(lh){return lh==16?"down":lh==8?"up":lh==2?"left":lh==4?"right":""}
function Ab(lh,rq){return(rq=rq.manager)?rq.get(lh):lh}
function tb(){KZ.apply(this,arguments)}
function lx(){tb.apply(this,arguments);this.pY=this.pX=null}
function NE(){tb.apply(this,arguments)}
function fZ(){KZ.apply(this,arguments);this._input=this._timer=null}
function Xf(){tb.apply(this,arguments)}
function eX(){tb.apply(this,arguments)}
function no(){KZ.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Co(lh,rq){rq=rq||{};var nZ=rq.recognizers;rq.recognizers=nZ===E?Co.defaults.preset:nZ;return new gC(lh,rq)}
function gC(lh,rq){rq=rq||{};this.options=t(rq,Co.defaults);this.options.inputTarget=this.options.inputTarget||lh;this.handlers={};this.session={};this.recognizers=[];this.element=lh;this.input=W(this);this.touchAction=new Mx(this,this.options.touchAction);Ca(this,!0);J(rq.recognizers,function(nZ){var H5=this.add(new nZ[0](nZ[1]));nZ[2]&&H5.recognizeWith(nZ[2]);nZ[3]&&H5.requireFailure(nZ[2])},this)}
function Ca(lh,rq){var nZ=lh.element;J(lh.options.cssProps,function(H5,Hn){nZ.style[z(nZ.style,Hn)]=rq?H5:""})}
function oR(lh,rq){var nZ=Q.createEvent("Event");nZ.initEvent(lh,!0,!0);nZ.gesture=rq;rq.target.dispatchEvent(nZ)}
var jf=" webkit moz MS ms o".split(" "),Ko=Q.createElement("div"),K9=Math.round,v5=Math.abs,ME=Date.now,fo=1,B5=/mobile|tablet|ip(ad|hone|od)|android/i,ra="ontouchstart"in q,yp=z(q,"PointerEvent")!==E,YV=ra&&B5.test(navigator.userAgent),hb=["x","y"],$L=["clientX","clientY"];O.prototype={handler:function(){},
destroy:function(){this.evEl&&l(this.element,this.evEl,this.domHandler);this.evTarget&&l(this.target,this.evTarget,this.domHandler);this.evWin&&l(q,this.evWin,this.domHandler)}};
var UZ={mousedown:1,mousemove:2,mouseup:4};e(tT,O,{handler:function(lh){var rq=UZ[lh.type];rq&1&&lh.button===0&&(this.pressed=!0);rq&2&&lh.which!==1&&(rq=4);this.pressed&&this.allow&&(rq&4&&(this.pressed=!1),this.callback(this.manager,rq,{pointers:[lh],changedPointers:[lh],pointerType:"mouse",srcEvent:lh}))}});
var ET={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},$F={2:"touch",3:"pen",4:"mouse",5:"kinect"},Pq="pointerdown",du="pointermove pointerup pointercancel";q.MSPointerEvent&&(Pq="MSPointerDown",du="MSPointerMove MSPointerUp MSPointerCancel");e(mJ,O,{handler:function(lh){var rq=this.store,nZ=!1,H5=lh.type.toLowerCase().replace("ms","");H5=ET[H5];var Hn=$F[lh.pointerType]||lh.pointerType;H5&1&&(lh.button===0||Hn=="touch")?rq.push(lh):H5&12&&(nZ=!0);var I3=F(rq,lh.pointerId,"pointerId");
I3<0||(rq[I3]=lh,this.callback(this.manager,H5,{pointers:rq,changedPointers:[lh],pointerType:Hn,srcEvent:lh}),nZ&&rq.splice(I3,1))}});
var xF={touchstart:1,touchmove:2,touchend:4,touchcancel:8};e(hT,O,{handler:function(lh){var rq=xF[lh.type];var nZ=Array.prototype.slice.call(lh.touches,0);var H5=this.targetIds;if(rq&3&&nZ.length===1)H5[nZ[0].identifier]=!0,H5=[nZ,nZ];else{var Hn,I3=Array.prototype.slice.call(lh.targetTouches,0),ix=Array.prototype.slice.call(lh.changedTouches,0),lZ=[];if(rq===1)for(nZ=0,Hn=I3.length;nZ<Hn;nZ++)H5[I3[nZ].identifier]=!0;nZ=0;for(Hn=ix.length;nZ<Hn;nZ++)H5[ix[nZ].identifier]&&lZ.push(ix[nZ]),rq&12&&
delete H5[ix[nZ].identifier];H5=lZ.length?[V(I3.concat(lZ),"identifier",!0),lZ]:void 0}H5&&this.callback(this.manager,rq,{pointers:H5[0],changedPointers:H5[1],pointerType:"touch",srcEvent:lh})}});
e(Yu,O,{handler:function(lh,rq,nZ){var H5=nZ.pointerType=="mouse";if(nZ.pointerType=="touch")this.mouse.allow=!1;else if(H5&&!this.mouse.allow)return;rq&12&&(this.mouse.allow=!0);this.callback(lh,rq,nZ)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var TF=z(Ko.style,"touchAction"),bP=TF!==E;Mx.prototype={set:function(lh){lh=="compute"&&(lh=this.compute());bP&&(this.manager.element.style[TF]=lh);this.actions=lh.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var lh=[];J(this.manager.recognizers,function(rq){R(rq.options.enable,[rq])&&(lh=lh.concat(rq.getTouchAction()))});
return po(lh.join(" "))},
preventDefaults:function(lh){if(!bP){var rq=lh.srcEvent;lh=lh.offsetDirection;if(this.manager.session.prevented)rq.preventDefault();else{var nZ=this.actions,H5=nZ.indexOf("none")>-1,Hn=nZ.indexOf("pan-y")>-1;nZ=nZ.indexOf("pan-x")>-1;if(H5||Hn&&nZ||Hn&&lh&6||nZ&&lh&24)return this.preventSrc(rq)}}},
preventSrc:function(lh){this.manager.session.prevented=!0;lh.preventDefault()}};
KZ.prototype={defaults:{},set:function(lh){f(this.options,lh);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(lh){if(v(lh,"recognizeWith",this))return this;var rq=this.simultaneous;lh=Ab(lh,this);rq[lh.id]||(rq[lh.id]=lh,lh.recognizeWith(this));return this},
dropRecognizeWith:function(lh){if(v(lh,"dropRecognizeWith",this))return this;lh=Ab(lh,this);delete this.simultaneous[lh.id];return this},
requireFailure:function(lh){if(v(lh,"requireFailure",this))return this;var rq=this.requireFail;lh=Ab(lh,this);F(rq,lh)===-1&&(rq.push(lh),lh.requireFailure(this));return this},
dropRequireFailure:function(lh){if(v(lh,"dropRequireFailure",this))return this;lh=Ab(lh,this);lh=F(this.requireFail,lh);lh>-1&&this.requireFail.splice(lh,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(lh){return!!this.simultaneous[lh.id]},
emit:function(lh){function rq(Hn){nZ.manager.emit(nZ.options.event+(Hn?H5&16?"cancel":H5&8?"end":H5&4?"move":H5&2?"start":"":""),lh)}
var nZ=this,H5=this.state;H5<8&&rq(!0);rq();H5>=8&&rq(!0)},
tryEmit:function(lh){if(this.canEmit())return this.emit(lh);this.state=32},
canEmit:function(){for(var lh=0;lh<this.requireFail.length;lh++)if(!(this.requireFail[lh].state&33))return!1;return!0},
recognize:function(lh){lh=f({},lh);R(this.options.enable,[this,lh])?(this.state&56&&(this.state=1),this.state=this.process(lh),this.state&30&&this.tryEmit(lh)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
e(tb,KZ,{defaults:{pointers:1},attrTest:function(lh){var rq=this.options.pointers;return rq===0||lh.pointers.length===rq},
process:function(lh){var rq=this.state,nZ=lh.eventType,H5=rq&6;lh=this.attrTest(lh);return H5&&(nZ&8||!lh)?rq|16:H5||lh?nZ&4?rq|8:rq&2?rq|4:2:32}});
e(lx,tb,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var lh=this.options.direction;if(lh===30)return["none"];var rq=[];lh&6&&rq.push("pan-y");lh&24&&rq.push("pan-x");return rq},
directionTest:function(lh){var rq=this.options,nZ=!0,H5=lh.distance,Hn=lh.direction,I3=lh.deltaX,ix=lh.deltaY;Hn&rq.direction||(rq.direction&6?(Hn=I3===0?1:I3<0?2:4,nZ=I3!=this.pX,H5=Math.abs(lh.deltaX)):(Hn=ix===0?1:ix<0?8:16,nZ=ix!=this.pY,H5=Math.abs(lh.deltaY)));lh.direction=Hn;return nZ&&H5>rq.threshold&&Hn&rq.direction},
attrTest:function(lh){return tb.prototype.attrTest.call(this,lh)&&(this.state&2||!(this.state&2)&&this.directionTest(lh))},
emit:function(lh){this.pX=lh.deltaX;this.pY=lh.deltaY;var rq=G2(lh.direction);rq&&this.manager.emit(this.options.event+rq,lh);this._super.emit.call(this,lh)}});
e(NE,tb,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(lh){return this._super.attrTest.call(this,lh)&&(Math.abs(lh.scale-1)>this.options.threshold||this.state&2)},
emit:function(lh){this._super.emit.call(this,lh);lh.scale!==1&&this.manager.emit(this.options.event+(lh.scale<1?"in":"out"),lh)}});
e(fZ,KZ,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(lh){var rq=this.options,nZ=lh.pointers.length===rq.pointers,H5=lh.distance<rq.threshold,Hn=lh.deltaTime>rq.time;this._input=lh;if(!H5||!nZ||lh.eventType&12&&!Hn)this.reset();else if(lh.eventType&1)this.reset(),this._timer=y(function(){this.state=8;this.tryEmit()},rq.time,this);
else if(lh.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(lh){this.state===8&&(lh&&lh.eventType&4?this.manager.emit(this.options.event+"up",lh):(this._input.timeStamp=ME(),this.manager.emit(this.options.event,this._input)))}});
e(Xf,tb,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(lh){return this._super.attrTest.call(this,lh)&&(Math.abs(lh.rotation)>this.options.threshold||this.state&2)}});
e(eX,tb,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return lx.prototype.getTouchAction.call(this)},
attrTest:function(lh){var rq=this.options.direction;if(rq&30)var nZ=lh.velocity;else rq&6?nZ=lh.velocityX:rq&24&&(nZ=lh.velocityY);return this._super.attrTest.call(this,lh)&&rq&lh.direction&&v5(nZ)>this.options.velocity&&lh.eventType&4},
emit:function(lh){var rq=G2(lh.direction);rq&&this.manager.emit(this.options.event+rq,lh);this.manager.emit(this.options.event,lh)}});
e(no,KZ,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(lh){var rq=this.options,nZ=lh.pointers.length===rq.pointers,H5=lh.distance<rq.threshold,Hn=lh.deltaTime<rq.time;this.reset();if(lh.eventType&1&&this.count===0)return this.failTimeout();if(H5&&Hn&&nZ){if(lh.eventType!=4)return this.failTimeout();nZ=this.pTime?lh.timeStamp-this.pTime<rq.interval:!0;H5=!this.pCenter||Rm(this.pCenter,lh.center)<rq.posThreshold;this.pTime=lh.timeStamp;this.pCenter=lh.center;H5&&nZ?this.count+=1:this.count=1;this._input=lh;if(this.count%rq.taps===0)return this.hasRequireFailures()?
(this._timer=y(function(){this.state=8;this.tryEmit()},rq.interval,this),2):8}return 32},
failTimeout:function(){this._timer=y(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))}});
Co.VERSION="2.0.2";Co.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Xf,{enable:!1}],[NE,{enable:!1},["rotate"]],[eX,{direction:6}],[lx,{direction:6},["swipe"]],[no],[no,{event:"doubletap",taps:2},["tap"]],[fZ]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};gC.prototype={set:function(lh){f(this.options,lh);return this},
stop:function(lh){this.session.stopped=lh?2:1},
recognize:function(lh){var rq=this.session;if(!rq.stopped){this.touchAction.preventDefaults(lh);var nZ=this.recognizers,H5=rq.curRecognizer;if(!H5||H5&&H5.state&8)H5=rq.curRecognizer=null;for(var Hn=0,I3=nZ.length;Hn<I3;Hn++){var ix=nZ[Hn];rq.stopped===2||H5&&ix!=H5&&!ix.canRecognizeWith(H5)?ix.reset():ix.recognize(lh);!H5&&ix.state&14&&(H5=rq.curRecognizer=ix)}}},
get:function(lh){if(lh instanceof KZ)return lh;for(var rq=this.recognizers,nZ=0;nZ<rq.length;nZ++)if(rq[nZ].options.event==lh)return rq[nZ];return null},
add:function(lh){if(v(lh,"add",this))return this;var rq=this.get(lh.options.event);rq&&this.remove(rq);this.recognizers.push(lh);lh.manager=this;this.touchAction.update();return lh},
remove:function(lh){if(v(lh,"remove",this))return this;var rq=this.recognizers;lh=this.get(lh);rq.splice(F(rq,lh),1);this.touchAction.update();return this},
on:function(lh,rq){var nZ=this.handlers;J(d(lh),function(H5){nZ[H5]=nZ[H5]||[];nZ[H5].push(rq)});
return this},
off:function(lh,rq){var nZ=this.handlers;J(d(lh),function(H5){rq?nZ[H5].splice(F(nZ[H5],rq),1):delete nZ[H5]});
return this},
emit:function(lh,rq){this.options.domEvents&&oR(lh,rq);var nZ=this.handlers[lh]&&this.handlers[lh].slice();if(nZ&&nZ.length){rq.type=lh;rq.preventDefault=function(){rq.srcEvent.preventDefault()};
lh=0;for(var H5=nZ.length;lh<H5;lh++)nZ[lh](rq)}},
destroy:function(){this.element&&Ca(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
f(Co,{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:gC,Input:O,TouchAction:Mx,Recognizer:KZ,AttrRecognizer:tb,Tap:no,Pan:lx,Swipe:eX,Pinch:NE,Rotate:Xf,Press:fZ,on:H,off:l,each:J,merge:t,extend:f,inherit:e,bindFn:G,prefixed:z});
q[L]=Co})(window,document,"Hammer");
return window.Hammer}.call({});
u.DOCUMENT=g;g[Sf$]=u}return g[Sf$]};/*

 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 UWW=function(g,u){if(g.length!==u.length)return!1;for(var q=0;q<g.length;++q)if(g[q]!==u[q])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var gS0=_.N(["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"]),ui$=gS0.next();!ui$.done;ui$=gS0.next()){var qcX=ui$.value,QOZ=document.createElement("link");QOZ.rel="stylesheet";QOZ.href=qcX;document.head.appendChild(QOZ)};var lBq,iYS,bYq,HYh,IB3,AzJ,wlF,czh;lBq={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};iYS={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:"*"};bYq={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};HYh=/[a-z0-9*]/;IB3=/U\+/;AzJ=/^arrow/;wlF=/^space(bar)?/;czh=/^escape$/;_.n8={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(g,u){this._imperativeKeyBindings[g]=u;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(g,u){u=F2S(u);for(var q=0;q<u.length;++q)if(CJT(u[q],g))return!0;return!1},
_collectKeyBindings:function(){var g=this.behaviors.map(function(u){return u.keyBindings});
g.indexOf(this.keyBindings)===-1&&g.push(this.keyBindings);return g},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(q){for(var Q in q)this._addKeyBinding(Q,q[Q])},this);
for(var g in this._imperativeKeyBindings)this._addKeyBinding(g,this._imperativeKeyBindings[g]);for(var u in this._keyBindings)this._keyBindings[u].sort(function(q,Q){q=q[0].hasModifiers;return q===Q[0].hasModifiers?0:q?-1:1})},
_addKeyBinding:function(g,u){F2S(g).forEach(function(q){this._keyBindings[q.event]=this._keyBindings[q.event]||[];this._keyBindings[q.event].push([q,u])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(g){var u=this._onKeyBindingEvent.bind(this,this._keyBindings[g]);this._boundKeyHandlers.push([this.keyEventTarget,g,u]);this.keyEventTarget.addEventListener(g,u)},this)},
_unlistenKeyEventListeners:function(){for(var g,u,q;this._boundKeyHandlers.length;)g=this._boundKeyHandlers.pop(),u=g[0],q=g[1],g=g[2],u.removeEventListener(q,g)},
_onKeyBindingEvent:function(g,u){this.stopKeyboardEventPropagation&&u.stopPropagation();if(!u.defaultPrevented)for(var q=0;q<g.length;q++){var Q=g[q][0],L=g[q][1];if(CJT(Q,u)&&(this._triggerKeyHandler(Q,L,u),u.defaultPrevented))break}},
_triggerKeyHandler:function(g,u,q){var Q=Object.create(g);Q.keyboardEvent=q;g=new CustomEvent(g.event,{detail:Q,cancelable:!0});this[u].call(this,g);g.defaultPrevented&&q.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
*/
_.ys({is:"iron-a11y-keys",_template:null,behaviors:[_.n8],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(g){this.keyEventTarget=g},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(g){this.fire("keys-pressed",g.detail,{})}});_.kI={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(g){this._setFocused(g.type==="focus")},
_disabledChanged:function(g){this.setAttribute("aria-disabled",g?"true":"false");this.style.pointerEvents=g?"none":"";g?(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 Se={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(g){this._detectKeyboardFocus(g);g||this._setPressed(!1)},
_detectKeyboardFocus:function(g){this._setReceivedFocusFromKeyboard(!this.pointerDown&&g)},
_userActivate:function(g){this.active!==g&&(this.active=g,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(g){g=g.detail.keyboardEvent;var u=_.Eg(g).localTarget;this.isLightDescendant(u)||(g.preventDefault(),g.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(g){g=_.Eg(g.detail.keyboardEvent).localTarget;this.isLightDescendant(g)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(g,u){u&&u!=g&&this.hasAttribute(u)&&this.removeAttribute(u)},
_activeChanged:function(g){this.toggles?this.setAttribute(this.ariaActiveAttribute,g?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},L3Z=[_.n8,
Se];_.ox={IronButtonState:L3Z,IronButtonStateImpl:Se};_.Ut={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.g5=function(g){_.g5[" "](g);this.type=g&&g.type||"default";this.key=g&&g.key;g&&"value"in g&&(this.value=g.value)};
_.g5.prototype.byKey=function(g){this.key=g;return this.value};
_.z3.Object.defineProperties(_.g5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var g=this.type,u=this.key;if(g&&u)return uG[g]&&uG[g][u]},
set:function(g){var u=this.type,q=this.key;u&&q&&(u=uG[u]=uG[u]||{},g==null?delete u[q]:u[q]=g)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var g=uG[this.type];return g?Object.keys(g).map(function(u){return uG[this.type][u]},this):[]}}});
_.g5[" "]=function(){};
var uG={};_.ys({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(g,u,q){g=new _.g5({type:g,key:u});q!==void 0&&q!==g.value?g.value=q:this.value!==g.value&&(this.value=g.value);return g},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(g){g&&(this.value=this)},
byKey:function(g){return(new _.g5({type:this.type,key:g})).value}});var ES$;ES$=null;_.qs={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){ES$=new _.g5({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return ES$&&ES$.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(g){this.invalid=g===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(g);return!this.invalid},
_getValidity:function(g){return this.hasValidator()?this._validator.validate(g):!0}};var PAn={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"}},NTo=[_.Ut,
_.qs,PAn];_.ys({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 _.g5({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(g){return this.name+":"+g},this)},
applyIcon:function(g,u){this.removeIcon(g);if(u=this._cloneIcon(u,this.rtlMirroring&&this._targetIsRTL(g))){var q=_.Eg(g.root||g);q.insertBefore(u,q.childNodes[0]);return g._svgIcon=u}return null},
removeIcon:function(g){g._svgIcon&&(_.Eg(g.root||g).removeChild(g._svgIcon),g._svgIcon=null)},
_targetIsRTL:function(g){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(g&&g.nodeType!==Node.ELEMENT_NODE&&(g=g.host),this.__targetIsRTL=g&&window.getComputedStyle(g).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 g=Object.create(null);_.Eg(this).querySelectorAll("[id]").forEach(function(u){g[u.id]=u});
return g},
_cloneIcon:function(g,u){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[g],this.size,u)},
_prepareSvgClone:function(g,u,q){if(g){g=g.cloneNode(!0);var Q=document.createElementNS("http://www.w3.org/2000/svg","svg");u=g.getAttribute("viewBox")||"0 0 "+u+" "+u;var L="pointer-events: none; display: block; width: 100%; height: 100%;";q&&g.hasAttribute("mirror-in-rtl")&&(L+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");Q.setAttribute("viewBox",u);Q.setAttribute("preserveAspectRatio","xMidYMid meet");Q.setAttribute("focusable","false");Q.style&&(Q.style.cssText=
L);Q.appendChild(g).removeAttribute("id");return Q}return null}});var sOn=function(g){this.multi=!1;this.selection=[];this.selectCallback=g};
_.P=sOn.prototype;_.P.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.P.clear=function(g){this.selection.slice().forEach(function(u){(!g||g.indexOf(u)<0)&&this.setItemSelected(u,!1)},this)};
_.P.isSelected=function(g){return this.selection.indexOf(g)>=0};
_.P.setItemSelected=function(g,u){if(g!=null&&u!==this.isSelected(g)){if(u)this.selection.push(g);else{var q=this.selection.indexOf(g);q>=0&&this.selection.splice(q,1)}this.selectCallback&&this.selectCallback(g,u)}};
_.P.select=function(g){this.multi?this.toggle(g):this.get()!==g&&(this.setItemSelected(this.get(),!1),this.setItemSelected(g,!0))};
_.P.toggle=function(g){this.setItemSelected(g,!this.isSelected(g))};_.Ar={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 sOn(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Eg(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(g){return this.items?this.items.indexOf(g):-1},
select:function(g){this.selected=g},
selectPrevious:function(){var g=this.items.length,u=g-1;this.selected!==void 0&&(u=(Number(this._valueToIndex(this.selected))-1+g)%g);this.selected=this._indexToValue(u)},
selectNext:function(){var g=0;this.selected!==void 0&&(g=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(g)},
selectIndex:function(g){this.select(this._indexToValue(g))},
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(g){this.listen(this,g,"_activateHandler")},
_removeListener:function(g){this.unlisten(this,g,"_activateHandler")},
_activateEventChanged:function(g,u){this._removeListener(u);this._addListener(g)},
_updateItems:function(){var g=_.Eg(this).queryDistributedElements(this.selectable||"*");g=Array.prototype.filter.call(g,this._bindFilterItem);this._setItems(g)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var g=this._valueToItem(this.selected);g?this._selection.select(g):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(g){return!this._excludedLocalNames[g.localName]},
_valueToItem:function(g){return g==null?null:this.items[this._valueToIndex(g)]},
_valueToIndex:function(g){if(this.attrForSelected)for(var u=0,q;q=this.items[u];u++){if(this._valueForItem(q)==g)return u}else return Number(g)},
_indexToValue:function(g){if(this.attrForSelected){if(g=this.items[g])return this._valueForItem(g)}else return g},
_valueForItem:function(g){if(!g)return null;if(!this.attrForSelected)return g=this.indexOf(g),g===-1?null:g;var u=g[qw(this.attrForSelected)];return u!=void 0?u:g.getAttribute(this.attrForSelected)},
_applySelection:function(g,u){this.selectedClass&&this.toggleClass(this.selectedClass,u,g);this.selectedAttribute&&this.toggleAttribute.call(g,this.selectedAttribute,u);this._selectionChange();this.fire("iron-"+(u?"select":"deselect"),{item:g})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(g){return _.Eg(g).observeNodes(function(u){this._updateItems();this._updateSelected();this.fire("iron-items-changed",u,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(g){g=g.target;for(var u=this.items;g&&g!=this;){var q=u.indexOf(g);if(q>=0){u=this._indexToValue(q);this._itemActivate(u,g);break}g=g.parentNode}},
_itemActivate:function(g,u){this.fire("iron-activate",{selected:g,item:u},{cancelable:!0}).defaultPrevented||this.select(g)}};var yLH={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(g){this.multi?this._toggleSelected(g):this.selected=g},
multiChanged:function(g){this._selection.multi=g;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(g){return this._indexToValue(this.indexOf(g))},this).filter(function(g){return g!=null},this)):_.Ar._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(g){g=g||[];g=(this._valuesToItems(g)||[]).filter(function(q){return q!==null&&q!==void 0});
this._selection.clear(g);for(var u=0;u<g.length;u++)this._selection.setItemSelected(g[u],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var g=this._selection.get();this.multi?(this._setSelectedItems(g),this._setSelectedItem(g.length?g[0]:null)):g!==null&&g!==void 0?(this._setSelectedItems([g]),this._setSelectedItem(g)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(g){var u=this.selectedValues.indexOf(g);u<0?this.push("selectedValues",g):this.splice("selectedValues",u,1)},
_valuesToItems:function(g){return g==null?null:g.map(function(u){return this._valueToItem(u)},this)}},vSo=[_.Ar,
yLH];var DBx;
_.QG={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(g){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var u=this._valueToItem(g);u&&u.hasAttribute("disabled")||(this._setFocusedItem(u),yLH.select.apply(this,arguments))},
_resetTabindices:function(){var g=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(u){u.setAttribute("tabindex",u===g?"0":"-1");u.setAttribute("aria-selected",this._selection.isSelected(u))},this)},
_updateMultiselectable:function(g){g?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(g){if(this._MODIFIER_KEYS.indexOf(g.key)===-1){this.cancelDebouncer("_clearSearchText");var u=this._searchText||"";u+=(g.key&&g.key.length==1?g.key:String.fromCharCode(g.keyCode)).toLocaleLowerCase();g=u.length;for(var q=0,Q;Q=this.items[q];q++)if(!Q.hasAttribute("disabled")){var L=this.attrForItemTitle||"textContent";L=(Q[L]||Q.getAttribute(L)||"").trim();if(!(L.length<g)&&L.slice(0,g).toLocaleLowerCase()==u){this._setFocusedItem(Q);break}}this._searchText=u;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var g=this.items.length,u=Number(this.indexOf(this.focusedItem)),q=1;q<g+1;q++){var Q=this.items[(u-q+g)%g];if(!Q.hasAttribute("disabled")){var L=_.Eg(Q).getOwnerRoot()||document;this._setFocusedItem(Q);if(_.Eg(L).activeElement==Q)break}}},
_focusNext:function(){for(var g=this.items.length,u=Number(this.indexOf(this.focusedItem)),q=1;q<g+1;q++){var Q=this.items[(u+q)%g];if(!Q.hasAttribute("disabled")){var L=_.Eg(Q).getOwnerRoot()||document;this._setFocusedItem(Q);if(_.Eg(L).activeElement==Q)break}}},
_applySelection:function(g,u){u?g.setAttribute("aria-selected","true"):g.setAttribute("aria-selected","false");_.Ar._applySelection.apply(this,arguments)},
_focusedItemChanged:function(g,u){u&&u.setAttribute("tabindex","-1");!g||g.hasAttribute("disabled")||this.disabled||(g.setAttribute("tabindex","0"),g.focus())},
_onIronItemsChanged:function(g){g.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var g=this.getAttribute("tabindex");_.QG._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",g);_.QG._shiftTabPressed=!1},1)},
_onFocus:function(g){!_.QG._shiftTabPressed&&(g=_.Eg(g).rootTarget,g===this||typeof g.tabIndex==="undefined"||this.isLightDescendant(g))&&(this._defaultFocusAsync=this.async(function(){var u=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);u?this._setFocusedItem(u):this.items[0]&&this._focusNext()}))},
_onUpKey:function(g){this._focusPrevious();g.detail.keyboardEvent.preventDefault()},
_onDownKey:function(g){this._focusNext();g.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var g=this.focusedItem;g&&g.blur()},
_onKeydown:function(g){this.keyboardEventMatchesKeys(g,"up down esc")||this._focusWithKeyboardEvent(g);g.stopPropagation()},
_activateHandler:function(g){_.Ar._activateHandler.call(this,g);g.stopPropagation()},
_disabledChanged:function(g){g?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};DBx=[vSo,_.n8,_.QG];_.pKa={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(g){this.focusedItem&&(this.focusedItem.click(),g.detail.keyboardEvent.preventDefault())},
_onDownKey:function(g){this.focusedItem&&(this.focusedItem.click(),g.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(g){return g.ctrlKey||g.shiftKey||g.altKey||g.metaKey},
_onLeftKey:function(g){this._isSpecialKey(g.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),g.detail.keyboardEvent.preventDefault())},
_onRightKey:function(g){this._isSpecialKey(g.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),g.detail.keyboardEvent.preventDefault())},
_onKeydown:function(g){this.keyboardEventMatchesKeys(g,"up down left right esc")||this._focusWithKeyboardEvent(g)}};
_.JL0=[DBx,_.pKa];var jOb;jOb=new Set;_.LJ={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):(jOb.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(g){this.resizerShouldNotify(g)&&this._notifyDescendant(g)},this),this._fireResize())},
assignParentResizable:function(g){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=g)&&g._interestedResizables.indexOf(this)===-1&&(g._interestedResizables.push(this),g._subscribeIronResize(this))},
stopResizeNotificationsFor:function(g){var u=this._interestedResizables.indexOf(g);u>-1&&(this._interestedResizables.splice(u,1),this._unsubscribeIronResize(g))},
_subscribeIronResize:function(g){g.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(g){g.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(g){this._notifyingDescendant?g.stopPropagation():m6||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(g){var u=_.Eg(g).rootTarget;u!==this&&(u.assignParentResizable(this),this._notifyDescendant(u),g.stopPropagation())},
_parentResizableChanged:function(g){g&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(g){this.isAttached&&(this._notifyingDescendant=!0,g.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var g=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function q(){document.removeEventListener("readystatechange",q);g()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(u){u!==this&&u._findParent()},this):(jOb.forEach(function(u){u!==this&&u._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?jOb.delete(this):jOb.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
*/
_.fg5={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(g,u){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);u&&(g==="document"?this.scrollTarget=this._doc:typeof g==="string"?this.scrollTarget=(u=this.domHost)&&u.$?u.$[g]:_.Eg(this.ownerDocument).querySelector("#"+g):this._isValidScrollTarget()&&(this._oldScrollTarget=g,this._toggleScrollListener(this._shouldHaveListener,g)))},
_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(g){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,g):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
g)},set _scrollLeft(g){this.scrollTarget===this._doc?window.scrollTo(g,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=g)},scroll:function(g,u){if(typeof g==="object"){var q=g.left;u=g.top}else q=g;q=q||0;u=u||0;this.scrollTarget===this._doc?window.scrollTo(q,u):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=q,this.scrollTarget.scrollTop=u)},
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(g,u){u=u===this._doc?window:u;g?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),u.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(u.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(g){this._shouldHaveListener=g;this._toggleScrollListener(g,this.scrollTarget)}};_.ys({is:"iron-selector",_template:null,behaviors:[vSo]});var Ed={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(g){if(g.timing)for(var u in g.timing)this.animationTiming[u]=g.timing[u];return this.animationTiming},
setPrefixedProperty:function(g,u,q){for(var Q={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[u],L,E=0;L=Q[E];E++)g.style[L]=q;g.style[u]=q},
complete:function(){}};_.ys({is:"fade-in-animation",_template:null,behaviors:[Ed],configure:function(g){return this._effect=new KeyframeEffect(g.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(g))}});_.ys({is:"fade-out-animation",_template:null,behaviors:[Ed],configure:function(g){return this._effect=new KeyframeEffect(g.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(g))}});var MUx=[{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(g,u){for(var q in u)g[q]=u[q]},
_cloneConfig:function(g){var u={isClone:!0};this._copyProperties(u,g);return u},
_getAnimationConfigRecursive:function(g,u,q){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 Q=g?this.animationConfig[g]:this.animationConfig;Array.isArray(Q)||(Q=[Q]);if(Q)for(var L,E=0;L=Q[E];E++)if(L.animatable)L.animatable._getAnimationConfigRecursive(L.type||g,u,q);else if(L.id){var y=u[L.id];
y?(y.isClone||(u[L.id]=this._cloneConfig(y),y=u[L.id]),this._copyProperties(y,L)):u[L.id]=L}else q.push(L)}},
getAnimationConfig:function(g){var u={},q=[];this._getAnimationConfigRecursive(g,u,q);for(var Q in u)q.push(u[Q]);return q}},
{_configureAnimations:function(g){var u=[],q=[];if(g.length>0)for(var Q,L=0;Q=g[L];L++){var E=document.createElement(Q.name);if(E.isNeonAnimation){var y=null;E.configure||(E.configure=function(){return null});
y=E.configure(Q);q.push({result:y,config:Q})}else console.warn(this.is+":",Q.name,"not found!")}for(g=0;g<q.length;g++){y=q[g].result;Q=q[g].config;try{typeof y.cancel!="function"&&(y=document.timeline.play(y))}catch(v){y=null,console.warn("Couldnt play","(",Q.name,").",v)}y&&u.push({neonAnimation:E,config:Q,animation:y})}return u},
_shouldComplete:function(g){for(var u=!0,q=0;q<g.length;q++)if(g[q].animation.playState!="finished"){u=!1;break}return u},
_complete:function(g){for(var u=0;u<g.length;u++)g[u].neonAnimation.complete(g[u].config);for(u=0;u<g.length;u++)g[u].animation.cancel()},
playAnimation:function(g,u){var q=this.getAnimationConfig(g);if(q){this._active=this._active||{};this._active[g]&&(this._complete(this._active[g]),delete this._active[g]);var Q=this._configureAnimations(q);if(Q.length==0)this.fire("neon-animation-finish",u,{bubbles:!1});else for(this._active[g]=Q,q=0;q<Q.length;q++)Q[q].animation.onfinish=function(){this._shouldComplete(Q)&&(this._complete(Q),delete this._active[g],this.fire("neon-animation-finish",u,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var g in this._active){var u=this._active[g],q;for(q in u)u[q].animation&&u[q].animation.cancel&&u[q].animation.cancel()}this._active={}}}];var GB=function(g,u){g=Error.call(this,g);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.arg=u;this.name=this.constructor.name;this.constructor=GB;this.__proto__=GB.prototype};
_.A(GB,Error);var tUW=iu(function(g){var u=function(){return g.apply(this,arguments)||this};
_.A(u,g);u.prototype._marshalArgs=function(q,Q,L){Q=g.prototype._marshalArgs.call(this,q,Q,L);if(this._legacyUndefinedCheck&&Q.length>1)for(L=0;L<Q.length;L++)if(Q[L]===void 0||q[L].wildcard&&Q[L].base===void 0)throw q=q[L].name,new GB("Argument '"+q+"' is undefined.",q);return Q};
u.prototype._addPropertyEffect=function(q,Q,L){return g.prototype._addPropertyEffect.call(this,q,Q,mPu(L,L&&L.info&&L.info.methodName))};
u._addTemplatePropertyEffect=function(q,Q,L){return g._addTemplatePropertyEffect.call(this,q,Q,mPu(L))};
return u}),eBo=_.ys.Class;
_.ys.Class=function(g,u){return eBo(g,function(q){return u?u(tUW(q)):tUW(q)})};
var GKo=iu(function(g){var u=tUW(g);g=function(){return u.apply(this,arguments)||this};
_.A(g,u);_.z3.Object.defineProperties(g.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return g}),$Bb=V8.mixin;
V8.mixin=$Bb?function(g){return GKo($Bb(g))}:GKo;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.PI=_.ox.IronButtonState;var iPJ=Fz;_.aBJ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var TJM=function(){return Math.random().toString(36).substring(7).split("").join(".")},W2b="@@redux/INIT"+TJM(),OYq="@@redux/REPLACE"+TJM();var K2K=typeof Symbol==="function"&&Symbol.observable||"@@observable";var RB2=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var wK$="top right bottom left width height size weight".split(" "),cLx=typeof MutationObserver!=="undefined",HT5=RB2&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,ALR=function(){this.mutationEventsAdded_=this.JSC$12064_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=xPu(this.refresh.bind(this))},ZTX=function(g,
u){var q=g.observers_;
u=q.indexOf(u);~u&&q.splice(u,1);!q.length&&g.JSC$12064_connected_&&RB2&&g.JSC$12064_connected_&&(document.removeEventListener("transitionend",g.onTransitionEnd_),window.removeEventListener("resize",g.refresh),g.mutationsObserver_&&(g.mutationsObserver_.disconnect(),HT5&&(HTMLElement.prototype.attachShadow=HT5)),g.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",g.refresh),g.mutationsObserver_=null,g.mutationEventsAdded_=!1,g.JSC$12064_connected_=!1)};
ALR.prototype.refresh=function(){lg2(this)&&this.refresh()};
var lg2=function(g){g=g.observers_.filter(function(u){return IgH(u),u.activeObservations_.length>0});
g.forEach(function(u){return iTZ(u)});
return g.length>0},CA2=function(g){if(RB2&&!g.JSC$12064_connected_){document.addEventListener("transitionend",g.onTransitionEnd_);
window.addEventListener("resize",g.refresh);if(cLx){g.mutationsObserver_=new MutationObserver(g.refresh);var u={attributes:!0,childList:!0,characterData:!0,subtree:!0};g.mutationsObserver_.observe(document,u);HT5&&(function L(Q){var E=Q.shadowRoot;E&&(g.mutationsObserver_.observe(E,u),L(E));for(Q=Q.firstElementChild;Q;)L(Q),Q=Q.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var Q=HT5.apply(this,_.UT.apply(0,arguments));
g.mutationsObserver_.observe(Q,u);return Q})}else document.addEventListener("DOMSubtreeModified",g.refresh),g.mutationEventsAdded_=!0;
g.JSC$12064_connected_=!0}};
ALR.prototype.onTransitionEnd_=function(g){var u=g.propertyName===void 0?"":g.propertyName;wK$.some(function(q){return!!~u.indexOf(q)})&&this.refresh()};
var bT0=null;var dBW=function(g,u){for(var q=_.N(Object.keys(u)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Object.defineProperty(g,Q,{value:u[Q],enumerable:!1,writable:!1,configurable:!0})};var sd=function(g){var u;return(g==null?void 0:(u=g.ownerDocument)==null?void 0:u.defaultView)||globalThis};var F32={x:0,y:0,width:0,height:0},mB2=typeof SVGGraphicsElement!=="undefined"?function(g){return g instanceof sd(g).SVGGraphicsElement}:function(g){return g instanceof sd(g).SVGElement&&typeof g.getBBox==="function"};var agi=function(g){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=g};
agi.prototype.isActive=function(){var g=this.target;if(RB2)if(mB2(g)){var u=g.getBBox();u={x:0,y:0,width:u.width,height:u.height}}else{var q=g.clientWidth,Q=g.clientHeight;if(q||Q){var L=sd(g).getComputedStyle(g);u=RM(L["padding-top"]);var E=RM(L["padding-left"]),y=E+RM(L["padding-right"]),v=u+RM(L["padding-bottom"]),J=RM(L.width),f=RM(L.height);L.boxSizing==="border-box"&&(Math.round(J+y)!==q&&(J-=BJZ(L,"left","right")+y),Math.round(f+v)!==Q&&(f-=BJZ(L,"top","bottom")+v));g!==sd(g).document.documentElement&&
(g=Math.round(J+y)-q,Q=Math.round(f+v)-Q,Math.abs(g)!==1&&(J-=g),Math.abs(Q)!==1&&(f-=Q));u={x:E,y:u,width:J,height:f}}else u=F32}else u=F32;this.contentRect_=u;return u.width!==this.broadcastWidth||u.height!==this.broadcastHeight};var VU8=function(g,u){var q=u.x;var Q=u.y;var L=u.width;u=u.height;var E=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);dBW(E,{x:q,y:Q,width:L,height:u,top:Q,right:q+L,bottom:u+Q,left:q});dBW(this,{target:g,contentRect:E})};var XKi=function(g,u){var q=bT0;this.activeObservations_=[];this.observations_=new Map;if(typeof g!=="function")throw new TypeError("Xe");this.callback_=g;this.controller_=q;this.callbackCtx_=u};
XKi.prototype.observe=function(g){if(g===void 0)throw new TypeError("Ye");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(g instanceof sd(g).Element))throw new TypeError("Ze");var u=this.observations_;u.has(g)||(u.set(g,new agi(g)),g=this.controller_,~g.observers_.indexOf(this)||g.observers_.push(this),g.JSC$12064_connected_||CA2(g),this.controller_.refresh())}};
XKi.prototype.unobserve=function(g){if(g===void 0)throw new TypeError("Ye");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(g instanceof sd(g).Element))throw new TypeError("Ze");var u=this.observations_;u.has(g)&&(u.delete(g),u.size||ZTX(this.controller_,this))}};
XKi.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();ZTX(this.controller_,this)};
var IgH=function(g){g.activeObservations_.splice(0);g.observations_.forEach(function(u){u.isActive()&&g.activeObservations_.push(u)})},iTZ=function(g){if(g.activeObservations_.length>0){var u=g.callbackCtx_,q=g.activeObservations_.map(function(Q){var L=Q.target,E=Q.contentRect_;
Q.broadcastWidth=E.width;Q.broadcastHeight=E.height;return new VU8(L,E)});
g.callback_.call(u,q,u);g.activeObservations_.splice(0)}};var yG=function(g){if(!(this instanceof yG))throw new TypeError("$e");if(!arguments.length)throw new TypeError("Ye");bT0||(bT0=new ALR);this.observer_=new XKi(g,this)};
yG.prototype.observe=function(g){this.observer_.observe(g)};
yG.prototype.unobserve=function(g){this.observer_.unobserve(g)};
yG.prototype.disconnect=function(){this.observer_.disconnect()};var VMh=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:yG;var OA={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"},BU={"2D":0,WebGL:1,WebGL2:2};BU[BU["2D"]]="2D";BU[1]="WebGL";BU[2]="WebGL2";var nkq={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},kAq={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},zyk={},oku={},UPS={},Cd=function(g){return wV("Node",g,"childNodes")},i6=function(g){return wV("Node",g,"parentNode")},b6=function(g){return wV("Node",g,"parentElement")},Fpf=function(g){return wV("Node",g,
"textContent")},zkK=function(g){return gof(g,"getRootNode")()},Ag=function(g){return g&&"host"in g?wV("ShadowRoot",g,"host"):null},ZM=function(g){return g&&"shadowRoot"in g?wV("Element",g,"shadowRoot"):null};var VZ=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
VZ.prototype.getId=function(g){if(!g)return-1;var u,q;return(q=(u=this.nodeMetaMap.get(g)||null)==null?void 0:u.id)!=null?q:-1};
VZ.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var rL0=function(g,u){var q=g.getId(u);g.idNodeMap.delete(q);u.childNodes&&u.childNodes.forEach(function(Q){return rL0(g,Q)})};
VZ.prototype.has=function(g){return this.idNodeMap.has(g)};
VZ.prototype.add=function(g,u){this.idNodeMap.set(u.id,g);this.nodeMetaMap.set(g,u)};
VZ.prototype.replace=function(g,u){var q=this.idNodeMap.get(g)||null;q&&(q=this.nodeMetaMap.get(q))&&this.nodeMetaMap.set(u,q);this.idNodeMap.set(g,u)};
VZ.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var y$q=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,voq=/^(?:[a-z+]+:)?\/\//i,D6h=/^www\..*/i,ptu=/^(data:)([^,]*),(.*)/i;var f9T=1,tsF=RegExp("[^a-z0-9-_:]"),dV,a9q,$6f=/^[^ \t\n\r\u000c]+/,GGh=/^[, \t\n\r\u000c]+/,HjT=new WeakMap;var zB,YC=function(g){return zB?function(){var u=_.UT.apply(0,arguments);try{return g.apply(null,_.na(u))}catch(q){if(!zB||zB(q)!==!0)throw q;}}:g};var vI=function(g){this.generateIdFn=g;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
vI.prototype.getId=function(g,u,q,Q){q=q||W35(this,g);g=Q||TTa(this,g);Q=q.get(u);Q||(Q=this.generateIdFn(),q.set(u,Q),g.set(Q,u));return Q};
vI.prototype.getIds=function(g,u){var q=this,Q=W35(this,g),L=TTa(this,g);return u.map(function(E){return q.getId(g,E,Q,L)})};
vI.prototype.reset=function(g){g?(this.iframeIdToRemoteIdMap.delete(g),this.iframeRemoteIdToIdMap.delete(g)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var W35=function(g,u){var q=g.iframeIdToRemoteIdMap.get(u);q||(q=new Map,g.iframeIdToRemoteIdMap.set(u,q));return q},TTa=function(g,u){var q=g.iframeRemoteIdToIdMap.get(u);
q||(q=new Map,g.iframeRemoteIdToIdMap.set(u,q));return q};var V2h=function(g){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new vI(Msm);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=g.mutationCb;this.wrappedEmit=g.wrappedEmit;this.stylesheetManager=g.stylesheetManager;this.recordCrossOriginIframes=g.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new vI(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=g.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$12128_handleMessage.bind(this))},hJZ=function(g,u){g.iframes.set(u,!0);
u.contentWindow&&g.crossOriginIframeMap.set(u.contentWindow,u)},zJM=function(g,u){g.loadListener=u},K$q=function(g,u,q){g.mutationCb({adds:[{parentId:g.mirror.getId(u),
nextId:null,node:q}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(g.recordCrossOriginIframes){var Q;(Q=u.contentWindow)==null||Q.addEventListener("message",g.JSC$12128_handleMessage.bind(g))}var L;(L=g.loadListener)==null||L.call(g,u);u.contentDocument&&u.contentDocument.adoptedStyleSheets&&u.contentDocument.adoptedStyleSheets.length>0&&M2J(g.stylesheetManager,u.contentDocument.adoptedStyleSheets,g.mirror.getId(u.contentDocument))};
V2h.prototype.JSC$12128_handleMessage=function(g){if(g.data.type==="rrweb"&&g.origin===g.data.origin&&g.source){var u=this.crossOriginIframeMap.get(g.source);u&&(u=hB8(this,u,g.data.event))&&this.wrappedEmit(u,g.data.isCheckout)}};
var hB8=function(g,u,q){switch(q.type){case 2:g.crossOriginIframeMirror.reset(u);g.crossOriginIframeStyleMirror.reset(u);YcH(g,q.data.node,u);var Q=q.data.node.id;g.crossOriginIframeRootIdMap.set(u,Q);OT2(g,q.data.node,Q);return{timestamp:q.timestamp,type:3,data:{source:0,adds:[{parentId:g.mirror.getId(u),nextId:null,node:q.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return q;case 5:return D8(g,q.data.payload,u,["id","parentId","previousId","nextId"]),q;case 3:switch(q.data.source){case 0:return q.data.adds.forEach(function(L){D8(g,
L,u,["parentId","nextId","previousId"]);YcH(g,L.node,u);var E=g.crossOriginIframeRootIdMap.get(u);E&&OT2(g,L.node,E)}),q.data.removes.forEach(function(L){D8(g,L,u,["parentId",
"id"])}),q.data.attributes.forEach(function(L){D8(g,L,u,["id"])}),q.data.texts.forEach(function(L){D8(g,L,u,["id"])}),q;
case 12:case 6:case 1:return q.data.positions.forEach(function(L){D8(g,L,u,["id"])}),q;
case 7:case 2:case 3:case 9:case 5:return D8(g,q.data,u,["id"]),q;case 8:case 13:return D8(g,q.data,u,["id"]),K3X(g,q.data,u,["styleId"]),q;case 10:return q;case 14:return q.data.ranges.forEach(function(L){D8(g,L,u,["start","end"])}),q;
case 15:return D8(g,q.data,u,["id"]),K3X(g,q.data,u,["styleIds"]),(Q=q.data.styles)==null||Q.forEach(function(L){K3X(g,L,u,["styleId"])}),q}}return!1};
V2h.prototype.replace=function(g,u,q,Q){Q=_.N(Q);for(var L=Q.next();!L.done;L=Q.next())if(L=L.value,Array.isArray(u[L])||typeof u[L]==="number")Array.isArray(u[L])?u[L]=g.getIds(q,u[L]):u[L]=g.getId(q,u[L]);return u};
var D8=function(g,u,q,Q){g.replace(g.crossOriginIframeMirror,u,q,Q)},K3X=function(g,u,q,Q){g.replace(g.crossOriginIframeStyleMirror,u,q,Q)},YcH=function(g,u,q){D8(g,u,q,["id",
"rootId"]);"childNodes"in u&&u.childNodes.forEach(function(Q){YcH(g,Q,q)})},OT2=function(g,u,q){u.type===0||u.rootId||(u.rootId=q);
"childNodes"in u&&u.childNodes.forEach(function(Q){OT2(g,Q,q)})};var L$u=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},xBW=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.P=xBW.prototype;_.P.getId=function(g){var u;return(u=this.styleIDMap.get(g))!=null?u:-1};
_.P.has=function(g){return this.styleIDMap.has(g)};
_.P.add=function(g,u){if(this.has(g))return this.getId(g);u=u===void 0?this.id++:u;this.styleIDMap.set(g,u);this.idStyleMap.set(u,g);return u};
_.P.getStyle=function(g){return this.idStyleMap.get(g)||null};
_.P.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.P.generateId=function(){return this.id++};var BTo=function(){this.length=0;this.tail=this.head=null};
BTo.prototype.get=function(g){if(g>=this.length)throw Error("af");for(var u=this.head,q=0;q<g;q++){var Q=void 0;u=((Q=u)==null?void 0:Q.next)||null}return u};
var zBo=function(g,u){var q={value:u,previous:null,next:null};u.__ln=q;if(u.previousSibling&&"__ln"in u.previousSibling){var Q=u.previousSibling.__ln.next;q.next=Q;q.previous=u.previousSibling.__ln;u.previousSibling.__ln.next=q;Q&&(Q.previous=q)}else u.nextSibling&&"__ln"in u.nextSibling&&u.nextSibling.__ln.previous?(Q=u.nextSibling.__ln.previous,q.previous=Q,q.next=u.nextSibling.__ln,u.nextSibling.__ln.previous=q,Q&&(Q.next=q)):(g.head&&(g.head.previous=q),q.next=g.head,g.head=q);q.next===null&&
(g.tail=q);g.length++};
BTo.prototype.removeNode=function(g){var u=g.__ln;this.head&&(u.previous?(u.previous.next=u.next)?u.next.previous=u.previous:this.tail=u.previous:(this.head=u.next)?this.head.previous=null:this.tail=null,g.__ln&&delete g.__ln,this.length--)};
var nSa=function(g,u){return g+"@"+u},qF3=function(){var g=this;
this.locked=this.JSC$12159_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(u){u.forEach(g.JSC$12159_processMutation);g.emit()};
this.emit=function(){if(!g.JSC$12159_frozen&&!g.locked){for(var u=[],q=new Set,Q=new BTo,L=function(e){for(var G=-2;G===-2;)G=(e=e&&e.nextSibling)&&g.mirror.getId(e);return G},E=function(e){var G=i6(e);
if(G&&kGf(e)){var R=!1;if(e.nodeType===Node.TEXT_NODE){var H=G.tagName;if(H==="TEXTAREA")return;H==="STYLE"&&g.addedSet.has(G)&&(R=!0)}G=l6(G)?g.mirror.getId(noq(e)):g.mirror.getId(G);H=L(e);if(G===-1||H===-1)return zBo(Q,e);if(R=mL(e,{doc:g.doc,mirror:g.mirror,blockClass:g.blockClass,blockSelector:g.blockSelector,maskTextClass:g.maskTextClass,maskTextSelector:g.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:g.inlineStylesheet,maskInputOptions:g.maskInputOptions,maskTextFn:g.maskTextFn,
maskInputFn:g.maskInputFn,slimDOMOptions:g.slimDOMOptions,dataURLOptions:g.dataURLOptions,recordCanvas:g.recordCanvas,inlineImages:g.inlineImages,onSerialize:function(l){l.nodeName==="IFRAME"&&g.mirror.nodeMetaMap.get(l)&&hJZ(g.iframeManager,l);B2q(l,g.mirror)&&YFK(g.stylesheetManager,l);e&&ZM(e)&&OAq(g.shadowDomManager,ZM(e),g.doc)},
onIframeLoad:function(l,d){K$q(g.iframeManager,l,d);l.contentWindow&&l.contentDocument&&xcM(g.shadowDomManager,l.contentWindow.Element,l.contentDocument)},
onStylesheetLoad:function(l,d){BGF(g.stylesheetManager,l,d)},
cssCaptured:R}))u.push({parentId:G,nextId:H,node:R}),q.add(R.id)}};g.mapRemoves.length;)rL0(g.mirror,g.mapRemoves.shift());
for(var y=_.N(g.movedSet),v=y.next();!v.done;v=y.next())v=v.value,U6m(g.removesSubTreeCache,v)&&!g.movedSet.has(i6(v))||E(v);y=_.N(g.addedSet);for(v=y.next();!v.done;v=y.next())v=v.value,ukf(g.droppedSet,v)||U6m(g.removesSubTreeCache,v)?ukf(g.movedSet,v)?E(v):g.droppedSet.add(v):E(v);for(v=null;Q.length;){y=null;if(v){var J=g.mirror.getId(i6(v.value)),f=L(v.value);J!==-1&&f!==-1&&(y=v)}if(!y)for(v=Q.tail;v;){var t=v;v=v.previous;if(t&&(J=g.mirror.getId(i6(t.value)),L(t.value)!==-1))if(J!==-1){y=t;
break}else if((J=i6(t.value))&&J.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(J=Ag(J),g.mirror.getId(J)!==-1)){y=t;break}}if(!y){for(;Q.head;)Q.removeNode(Q.head.value);break}v=y.previous;Q.removeNode(y.value);E(y.value)}E={texts:g.texts.map(function(e){var G=e.node,R=i6(G);R&&R.tagName==="TEXTAREA"&&g.genTextAreaValueMutation(R);return{id:g.mirror.getId(G),value:e.value}}).filter(function(e){return!q.has(e.id)}).filter(function(e){return g.mirror.has(e.id)}),
attributes:g.attributes.map(function(e){var G=e.attributes;if(typeof G.style==="string"){var R=JSON.stringify(e.styleDiff),H=JSON.stringify(e._unchangedStyles);R.length<G.style.length&&(R+H).split("var(").length===G.style.split("var(").length&&(G.style=e.styleDiff)}return{id:g.mirror.getId(e.node),attributes:G}}).filter(function(e){return!q.has(e.id)}).filter(function(e){return g.mirror.has(e.id)}),
removes:g.removes,adds:u};if(E.texts.length||E.attributes.length||E.removes.length||E.adds.length)g.texts=[],g.attributes=[],g.attributeMap=new WeakMap,g.removes=[],g.addedSet=new Set,g.movedSet=new Set,g.droppedSet=new Set,g.removesSubTreeCache=new Set,g.movedMap={},g.mutationCb(E)}};
this.genTextAreaValueMutation=function(u){var q=g.attributeMap.get(u);q||(q={node:u,attributes:{},styleDiff:{},_unchangedStyles:{}},g.attributes.push(q),g.attributeMap.set(u,q));var Q=Array.from(Cd(u),function(L){return Fpf(L)||""}).join("");
q.attributes.value=Eo3({element:u,maskInputOptions:g.maskInputOptions,tagName:u.tagName,type:N2J(u),value:Q,maskInputFn:g.maskInputFn})};
this.JSC$12159_processMutation=function(u){if(!OjT(u.target,g.mirror,g.slimDOMOptions))switch(u.type){case "characterData":var q=Fpf(u.target);WU(u.target,g.blockClass,g.blockSelector,!1)||q===u.oldValue||g.texts.push({value:ijm(u.target,g.maskTextClass,g.maskTextSelector,!0)&&q?g.maskTextFn?g.maskTextFn(q,YGu(u.target)):q.replace(/[\S]/g,"*"):q,node:u.target});break;case "attributes":q=u.target;var Q=u.attributeName,L=u.target.getAttribute(Q);if(Q==="value"){var E=N2J(q);L=Eo3({element:q,maskInputOptions:g.maskInputOptions,
tagName:q.tagName,type:E,value:L,maskInputFn:g.maskInputFn})}if(WU(u.target,g.blockClass,g.blockSelector,!1)||L===u.oldValue)break;E=g.attributeMap.get(u.target);if(q.tagName==="IFRAME"&&Q==="src"&&!g.keepIframeSrcFn(L))if(q.contentDocument)break;else Q="rr_src";E||(E={node:u.target,attributes:{},styleDiff:{},_unchangedStyles:{}},g.attributes.push(E),g.attributeMap.set(u.target,E));Q==="type"&&q.tagName==="INPUT"&&(u.oldValue||"").toLowerCase()==="password"&&q.setAttribute("data-rr-is-password","true");
if(!Zjf(q.tagName,Q))if(E.attributes[Q]=A$3(g.doc,q.tagName.toLowerCase(),Q.toLowerCase(),L),Q==="style"){if(!g.unattachedDoc)try{g.unattachedDoc=document.implementation.createHTMLDocument()}catch(f){g.unattachedDoc=g.doc}Q=g.unattachedDoc.createElement("span");u.oldValue&&Q.setAttribute("style",u.oldValue);L=_.N(Array.from(q.style));for(var y=L.next();!y.done;y=L.next()){y=y.value;var v=q.style.getPropertyValue(y),J=q.style.getPropertyPriority(y);v!==Q.style.getPropertyValue(y)||J!==Q.style.getPropertyPriority(y)?
E.styleDiff[y]=J===""?v:[v,J]:E._unchangedStyles[y]=[v,J]}Q=_.N(Array.from(Q.style));for(L=Q.next();!L.done;L=Q.next())L=L.value,q.style.getPropertyValue(L)===""&&(E.styleDiff[L]=!1)}else Q==="open"&&q.tagName==="DIALOG"&&(q.matches("dialog:modal")?E.attributes.rr_open_mode="modal":E.attributes.rr_open_mode="non-modal");break;case "childList":WU(u.target,g.blockClass,g.blockSelector,!0)||(u.target.tagName==="TEXTAREA"?g.genTextAreaValueMutation(u.target):(u.addedNodes.forEach(function(f){return g.genAdds(f,
u.target)}),u.removedNodes.forEach(function(f){var t=g.mirror.getId(f),e=l6(u.target)?g.mirror.getId(Ag(u.target)):g.mirror.getId(u.target);
WU(u.target,g.blockClass,g.blockSelector,!1)||OjT(f,g.mirror,g.slimDOMOptions)||g.mirror.getId(f)===-1||(g.addedSet.has(f)?(SGk(g.addedSet,f),g.droppedSet.add(f)):g.addedSet.has(u.target)&&t===-1||KpT(u.target,g.mirror)||(g.movedSet.has(f)&&g.movedMap[t+"@"+e]?SGk(g.movedSet,f):(g.removes.push({parentId:e,id:t,isShadow:l6(u.target)&&IM(u.target)?!0:void 0}),ooh(f,g.removesSubTreeCache))),g.mapRemoves.push(f))})))}};
this.genAdds=function(u,q){if(!kKZ(g.processedNodeManager,u,g)&&!g.addedSet.has(u)&&!g.movedSet.has(u)){if(g.mirror.nodeMetaMap.has(u)){if(OjT(u,g.mirror,g.slimDOMOptions))return;g.movedSet.add(u);var Q=null;q&&g.mirror.nodeMetaMap.has(q)&&(Q=g.mirror.getId(q));Q&&Q!==-1&&(g.movedMap[nSa(g.mirror.getId(u),Q)]=!0)}else g.addedSet.add(u),g.droppedSet.delete(u);WU(u,g.blockClass,g.blockSelector,!1)||(Cd(u).forEach(function(L){return g.genAdds(L)}),u&&ZM(u)&&Cd(ZM(u)).forEach(function(L){g.processedNodeManager.add(L,
g);
g.genAdds(L,u)}))}}};
_.P=qF3.prototype;_.P.init=function(g){var u=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(q){u[q]=g[q]})};
_.P.freeze=function(){this.JSC$12159_frozen=!0;this.canvasManager.freeze()};
_.P.unfreeze=function(){this.JSC$12159_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.P.isFrozen=function(){return this.JSC$12159_frozen};
_.P.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.P.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.P.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var hg=[],xC=window.Proxy,yHq=["INPUT","TEXTAREA","SELECT"],vxh=new WeakMap;var Sco=new Map,IrM=function(g,u,q){if(g&&(lru(g,u)||typeof g==="object")){u=g.constructor.name;var Q=Sco.get(q);Q||(Q=new Map,Sco.set(q,Q));Q.has(u)||Q.set(u,[]);q=Q.get(u);u=q.indexOf(g);u===-1&&(u=q.length,q.push(g));return u}},iAb=function(g,u,q){return g.map(function(Q){return ZAf(Q,u,q)})},lru=function(g,u){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(q){return typeof u[q]===
"function"}).find(function(q){return g instanceof u[q]})};var oSW=iA(["\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"]),
ykq=_.DK(oSW.join(""));var W$q=function(g){var u=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$12201_frozen=!1;this.JSC$12201_processMutation=function(J,f){if(u.rafStamps.invokeId&&u.rafStamps.latestId!==u.rafStamps.invokeId||!u.rafStamps.invokeId)u.rafStamps.invokeId=u.rafStamps.latestId;u.pendingCanvasMutations.has(J)||u.pendingCanvasMutations.set(J,[]);u.pendingCanvasMutations.get(J).push(f)};
var q=g.sampling===void 0?"all":g.sampling,Q=g.win,L=g.blockClass,E=g.blockSelector,y=g.recordCanvas,v=g.dataURLOptions;this.mutationCb=g.mutationCb;this.mirror=g.mirror;y&&q==="all"&&UB2(this,Q,L,E);y&&typeof q==="number"&&g0W(this,q,Q,L,E,{dataURLOptions:v})};
_.P=W$q.prototype;_.P.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.P.freeze=function(){this.JSC$12201_frozen=!0};
_.P.unfreeze=function(){this.JSC$12201_frozen=!1};
_.P.lock=function(){this.locked=!0};
_.P.unlock=function(){this.locked=!1};
var g0W=function(g,u,q,Q,L,E){var y=bAm(q,Q,L,!0),v=new Map,J=aKK(v$f());J.onmessage=function(H){var l=H.data.id;v.set(l,!1);"base64"in H.data&&(H=H.data,g.mutationCb({id:l,type:BU["2D"],commands:[{property:"clearRect",args:[0,0,H.width,H.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:H.base64}],type:H.type}]},0,0]}]}))};
var f=1E3/u,t=0,e=function(){var H=[];q.document.querySelectorAll("canvas").forEach(function(l){WU(l,Q,L,!0)||H.push(l)});
return H},G=function(H){t&&H-t<f||(t=H,e().forEach(function(l){var d,F,V,z,O;
return _.D(function(W){if(W.nextAddress==1){d=g.mirror.getId(l);if(v.get(d)||l.width===0||l.height===0)return W.return();v.set(d,!0);["webgl","webgl2"].includes(l.__context)&&(F=l.getContext(l.__context),((V=F)==null?void 0:(z=V.getContextAttributes())==null?void 0:z.preserveDrawingBuffer)===!1&&F.clear(F.COLOR_BUFFER_BIT));return W.yield(createImageBitmap(l),2)}O=W.yieldResult;J.postMessage({id:d,bitmap:O,width:l.width,height:l.height,dataURLOptions:E.dataURLOptions},[O]);_.Wx(W)})}));
R=requestAnimationFrame(G)};
var R=requestAnimationFrame(G);g.resetObservers=function(){y();cancelAnimationFrame(R)}},UB2=function(g,u,q,Q){uE0(g);
qaX(g);var L=bAm(u,q,Q,!1),E=Cub(g.JSC$12201_processMutation.bind(g),u,q,Q),y=F$h(g.JSC$12201_processMutation.bind(g),u,q,Q);g.resetObservers=function(){L();E();y()}},qaX=function(g){requestAnimationFrame(function(){return Q68(g)})},uE0=function(g){var u=function(q){g.rafStamps.latestId=q;
requestAnimationFrame(u)};
requestAnimationFrame(u)},Q68=function(g){g.pendingCanvasMutations.forEach(function(u,q){var Q=g.mirror.getId(q);
LEa(g,q,Q)});
requestAnimationFrame(function(){return Q68(g)})},LEa=function(g,u,q){if(!g.JSC$12201_frozen&&!g.locked){var Q=g.pendingCanvasMutations.get(u);
if(Q&&q!==-1){var L=Q.map(function(E){E=Object.assign({},E);return delete E.type,E});
g.mutationCb({id:q,type:Q[0].type,commands:L});g.pendingCanvasMutations.delete(u)}}};var Xjh=function(){this.nodeMap=new WeakMap;this.active=!1},kKZ=function(g,u,q){return(g=g.nodeMap.get(u))&&Array.from(g).some(function(Q){return Q!==q})};
Xjh.prototype.add=function(g,u){var q=this;this.active||(this.active=!0,requestAnimationFrame(function(){q.nodeMap=new WeakMap;q.active=!1}));
this.nodeMap.set(g,(this.nodeMap.get(g)||new Set).add(u))};
Xjh.prototype.destroy=function(){};var TGf=function(g){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=g.mutationCb;this.scrollCb=g.scrollCb;this.bypassOptions=g.bypassOptions;this.mirror=g.mirror;this.init()};
TGf.prototype.init=function(){this.reset();xcM(this,Element,document)};
var OAq=function(g,u,q){if(IM(u)&&!g.shadowDoms.has(u)){g.shadowDoms.add(u);var Q=Qhb(Object.assign({},g.bypassOptions,{doc:q,mutationCb:g.mutationCb,mirror:g.mirror,shadowDomManager:g}),u);g.restoreHandlers.push(function(){return Q.disconnect()});
g.restoreHandlers.push(NGb(Object.assign({},g.bypassOptions,{scrollCb:g.scrollCb,doc:u,mirror:g.mirror})));setTimeout(function(){u.adoptedStyleSheets&&u.adoptedStyleSheets.length>0&&M2J(g.bypassOptions.stylesheetManager,u.adoptedStyleSheets,g.mirror.getId(Ag(u)));g.restoreHandlers.push(t2f({mirror:g.mirror,stylesheetManager:g.bypassOptions.stylesheetManager},u))},0)}},xcM=function(g,u,q){g.restoreHandlers.push(HU(u.prototype,"attachShadow",function(Q){return function(L){L=Q.call(this,L);
var E=ZM(this);E&&kGf(this)&&OAq(g,E,q);return L}}))};
TGf.prototype.reset=function(){this.restoreHandlers.forEach(function(g){try{g()}catch(u){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var arh=function(g){this.trackedLinkElements=new WeakSet;this.styleMirror=new xBW;this.mutationCb=g.mutationCb;this.adoptedStyleSheetCb=g.adoptedStyleSheetCb},BGF=function(g,u,q){"_cssText"in q.attributes&&g.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:q.id,attributes:q.attributes}]});YFK(g,u)},YFK=function(g,u){g.trackedLinkElements.has(u)||g.trackedLinkElements.add(u)},M2J=function(g,u,q){if(u.length!==0){q={id:q,
styleIds:[]};var Q=[];u=_.N(u);for(var L=u.next(),E={};!L.done;E={sheet$jscomp$3:void 0},L=u.next())E.sheet$jscomp$3=L.value,L=void 0,g.styleMirror.has(E.sheet$jscomp$3)?L=g.styleMirror.getId(E.sheet$jscomp$3):(L=g.styleMirror.add(E.sheet$jscomp$3),Q.push({styleId:L,rules:Array.from(E.sheet$jscomp$3.rules||CSSRule,function(y){return function(v,J){return{rule:qGK(v,y.sheet$jscomp$3.href),index:J}}}(E))})),q.styleIds.push(L);
Q.length>0&&(q.styles=Q);g.adoptedStyleSheetCb(q)}};
arh.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var kC,mcq,rHT;try{if(Array.from([1],function(g){return g*2})[0]!==2){var E0W=document.createElement("iframe");
document.body.appendChild(E0W);var P$R;Array.from=((P$R=E0W.contentWindow)==null?void 0:P$R.Array.from)||Array.from;document.body.removeChild(E0W)}}catch(g){console.debug("Unable to override Array.from",g)}var nd=new VZ;var QxF="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(" "),qtM={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},u9K=null,knq=null;var LmF={},EIb=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 pNZ={text:1},sxq={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var Nmo=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,s6i={CONSTANT:{isUnwrappable:function(g){return g instanceof Cw},
unwrap:w8R},JAVASCRIPT:{isUnwrappable:function(g){return g instanceof _.vx},
unwrap:pa},HTML:{isUnwrappable:function(g){return g instanceof qa},
unwrap:function(g){return EP(g)}},
RESOURCE_URL:{isUnwrappable:function(g){return g instanceof XV},
unwrap:_.WT},STRING:{isUnwrappable:function(g){return g instanceof Object},
unwrap:function(g){return String(g)}},
STYLE:{isUnwrappable:function(g){return typeof g==="string"},
unwrap:function(g){return g}},
URL:{isUnwrappable:function(g){return xV(g)},
unwrap:_.BT}},y22={CONSTANT:Jmh,JAVASCRIPT:Jmh,HTML:function(g){g=g instanceof qa?g:QT(String(g).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return EP(g)},
RESOURCE_URL:Jmh,STRING:String,STYLE:Jmh,URL:function(g,u){g=Nmo.test(g)?g:void 0;return g===void 0?u:g}};var H8q=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,jxJ=/[\t\n\f\r ]+/,MeK=/[\t\n\f\r ,]+/g,egk=function(g,u,q){return q},gw={},v0H=function(){var g=function(){var Q={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",Q):Q}(),u=g.createHTML(""),q=g.createScript("");
g=g.createScriptURL("");return{INNOCUOUS_STRING:u,INNOCUOUS_SCRIPT:q,INNOCUOUS_URL:g}}(),UA=v0H.INNOCUOUS_STRING,cmM=v0H.INNOCUOUS_SCRIPT,wNu=v0H.INNOCUOUS_URL;var D$a=function(g){var u=AmZ(g);return function(q,Q,L,E){return E?u(E,Q,L,q):UA}}({reportHandler:function(g,u){if(g)try{throw Error(u);
}catch(q){_.Zf(q)}},
safeTypesBridge:function(g,u,q){var Q=s6i[u];return Q.isUnwrappable(g)&&(Q=Q.unwrap(g,q),Q!==q)?Q:(0,y22[u])(String(g),q)},
allowedIdentifierPrefixes:[""]});if(ff!==void 0)throw Error("cf");ff=D$a;if(ff!==D$a)throw Error("df");u1("Injectable",[]);var oIh=u1("Inject",[["token",void 0]]),gfS=u1("Optional",[]);u1("Injectable",[]);var uMS=u1("Self",[]),qdm=u1("SkipSelf",[]);u1("Host",[]);var pMZ={},J20=function(){};
J20.prototype.resolve=function(){throw Error("ff");};
J20.prototype.addProvider=function(){throw Error("ff");};var kPq=Function;var j6Z=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,fPn=function(){this._reflect=window.Reflect};
_.P=fPn.prototype;_.P.factory=function(g){return function(){return new (Function.prototype.bind.apply(g,[null].concat(_.na(_.UT.apply(0,arguments)))))}};
_.P._zipTypesAndAnnotations=function(g,u){var q=typeof g==="undefined"?Array(u.length):Array(g.length);for(var Q=0;Q<q.length;Q++)q[Q]=typeof g==="undefined"?[]:g[Q]!=Object?[g[Q]]:[],u&&lST(u[Q])&&(q[Q]=q[Q].concat(u[Q]));return q};
_.P._ownParameters=function(g,u){if(j6Z.exec(g.toString()))return null;if(g.parameters&&g.parameters!==u.parameters)return g.parameters;var q=g.ctorParameters;return q&&q!==u.ctorParameters?(u=typeof q==="function"?q():q,g=u.map(function(Q){return Q&&Q.type}),u=u.map(function(Q){return Q&&i8K(Q.decorators)}),this._zipTypesAndAnnotations(g,u)):lST(this._reflect)&&lST(this._reflect.getOwnMetadata)&&(u=this._reflect.getOwnMetadata("parameters",g),(q=this._reflect.getOwnMetadata("design:paramtypes",g))||
u)?this._zipTypesAndAnnotations(q,u):Array(g.length).fill(void 0)};
_.P.parameters=function(g){if(!g.prototype)return[];var u=Object.getPrototypeOf(g.prototype).constructor;(g=this._ownParameters(g,u))||u===Object||(g=this.parameters(u));return g||[]};
_.P._ownAnnotations=function(g,u){if(g.annotations&&g.annotations!==u.annotations)return g=g.annotations,typeof g==="function"&&g.annotations&&(g=g.annotations),g;if(g.decorators&&g.decorators!==u.decorators)return i8K(g.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",g)};
_.P.annotations=function(g){var u=Object.getPrototypeOf(g.prototype).constructor;g=this._ownAnnotations(g,u)||[];return(u!==Object?this.annotations(u):[]).concat(g)};
_.P._ownPropMetadata=function(g,u){if(g.propMetadata&&g.propMetadata!==u.propMetadata)return g=g.propMetadata,typeof g==="function"&&g.propMetadata&&(g=g.propMetadata),g;if(g.propDecorators&&g.propDecorators!==u.propDecorators){var q=g.propDecorators,Q={};Object.keys(q).forEach(function(L){Q[L]=i8K(q[L])});
return Q}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",g)};
_.P.propMetadata=function(g){var u=Object.getPrototypeOf(g.prototype).constructor,q={};if(u!==Object){var Q=this.propMetadata(u);Object.keys(Q).forEach(function(E){q[E]=Q[E]})}var L=this._ownPropMetadata(g,u);
L&&Object.keys(L).forEach(function(E){var y=[];q.hasOwnProperty(E)&&y.push.apply(y,_.na(q[E]));y.push.apply(y,_.na(L[E]));q[E]=y});
return q};
_.P.getter=function(g){return function(u){return u[g]}};
_.P.setter=function(g){return function(u,q){return u[g]=q}};
_.P.method=function(g){return function(u,q){if(!u[g])throw Error("gf`"+g);return u[g].apply(u,q)}};var M$5=function(){};var t$2=function(g){this.reflectionCapabilities=g};
_.A(t$2,M$5);_.P=t$2.prototype;_.P.factory=function(g){return this.reflectionCapabilities.factory(g)};
_.P.parameters=function(g){return this.reflectionCapabilities.parameters(g)};
_.P.annotations=function(g){return this.reflectionCapabilities.annotations(g)};
_.P.propMetadata=function(g){return this.reflectionCapabilities.propMetadata(g)};
_.P.getter=function(g){return this.reflectionCapabilities.getter(g)};
_.P.setter=function(g){return this.reflectionCapabilities.setter(g)};
_.P.method=function(g){return this.reflectionCapabilities.method(g)};var rmF=new t$2(new fPn);var pJ=function(g,u){this.token=g;this.id=u;if(g===void 0||g===null)throw Error("mf");};
_.z3.Object.defineProperties(pJ.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return qK(this.token)}}});
_.z3.Object.defineProperties(pJ,{JSC$12257_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return LV.JSC$12261_numberOfKeys}}});
var ed8=function(){this._allKeys=new Map};
ed8.prototype.get=function(g){if(g instanceof pJ)return g;if(this._allKeys.has(g))return this._allKeys.get(g);var u=new pJ(g,pJ.JSC$12257_numberOfKeys);this._allKeys.set(g,u);return u};
_.z3.Object.defineProperties(ed8.prototype,{JSC$12261_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var LV=new ed8;var QBq=function(g,u,q){this.key=g;this.optional=u;this.visibility=q},Tdq=function(g){return new QBq(g,!1,null)},Ytq=[],xIS=function(g,u,q){this.key=g;
this.resolvedFactories=u;this.multiProvider=q},O8F=function(g,u,q,Q){this.factory=g;
this.dependencies=u;this.providerClass=q;this.providerValue=Q};var JO={},jn=function(g,u){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=u===void 0?null:u;g=_.N(g);for(u=g.next();!u.done;u=g.next())this.addProvider(u.value)};
_.P=jn.prototype;_.P.addProvider=function(g){this.keyIdToIndex.set(g.key.id,this.keyIds.length);this.providers.push(g);this.keyIds.push(g.key.id);this.objs.push(JO)};
_.P.resolve=function(g,u){u=u===void 0?pMZ:u;return this._getByKey(LV.get(QD(g)),null,u)};
_.P._new=function(g){if(this.constructedKeyIds[g.key.id])throw aSF(this,g.key);this.constructedKeyIds[g.key.id]=!0;return this._instantiateProvider(g)};
_.P._instantiateProvider=function(g){if(g.multiProvider){for(var u=Array(g.resolvedFactories.length),q=0;q<g.resolvedFactories.length;++q)u[q]=this._instantiate(g,g.resolvedFactories[q]);return u}return this._instantiate(g,g.resolvedFactories[0])};
_.P._instantiate=function(g,u){var q=this,Q=u.factory;try{var L=u.dependencies.map(function(y){return q._getByReflectiveDependency(y)})}catch(y){throw y.addKey&&y.addKey(this,g.key),y;
}try{var E=Q.apply(null,_.na(L))}catch(y){throw Veb(this,y,g.key);}return E};
_.P._getByReflectiveDependency=function(g){return this._getByKey(g.key,g.visibility,g.optional?null:pMZ)};
_.P._getByKey=function(g,u,q){return g===GwX?this:u instanceof uMS?this._getByKeySelf(g,q):this._getByKeyDefault(g,q,u)};
_.P._getObjByKeyId=function(g){for(var u=0;u<this.keyIds.length;u++)if(this.keyIds[u]===g)return this.objs[u]===JO&&(this.objs[u]=this._new(this.providers[u])),this.objs[u];return JO};
_.P._throwOrNull=function(g,u){if(u!==pMZ)return u;throw mIM(this,g);};
_.P._getByKeySelf=function(g,u){var q=this._getObjByKeyId(g.id);return q!==JO?q:this._throwOrNull(g,u)};
_.P._getByKeyDefault=function(g,u,q){for(var Q=q=q instanceof qdm?this.parent:this;q instanceof jn;){var L=q._getObjByKeyId(g.id);if(L!==JO)return L;q=q.parent}L=void 0;if(q!==null)try{var E=q.resolve(g.token,u);if(E!==JO)return E}catch(y){L=y}if(!(Q instanceof jn&&Efb(g.token))){if(L)throw L;return this._throwOrNull(g,u)}for(E=Q;E.parent instanceof jn;)E=E.parent;E.addProvider(BdZ({provide:g.token,useClass:g.token}));return E.resolve(g.token,u)};
_.P.toString=function(){return this.displayName};
_.z3.Object.defineProperties(jn.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Ldh(this,function(g){return' "'+g.key.displayName+'" '}).join(", ")+"])"}}});
var GwX=LV.get(QD(J20));(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 $$i=globalThis.XRegExp;var Rd2=-1,wM8=function(g){addEventListener("pageshow",function(u){u.persisted&&(Rd2=u.timeStamp,g(u))},!0)};var Hpb=function(g,u,q){var Q=c2X,L,E;return function(y){if(u.value>=0&&(y||q)){var v;if((E=u.value-((v=L)!=null?v:0))||L===void 0)L=u.value,u.delta=E,y=u.value,u.rating=y>Q[1]?"poor":y>Q[0]?"needs-improvement":"good",g(u)}}};var A2a=function(g){requestAnimationFrame(function(){return requestAnimationFrame(function(){return g()})})};var Zpo=function(){var g=performance.getEntriesByType("navigation")[0];if(g&&g.responseStart>0&&g.responseStart<performance.now())return g};var lPR=function(){var g,u;return(u=(g=Zpo())==null?void 0:g.activationStart)!=null?u:0};var fJ=-1,IPi=new Set,ipa=function(g){if(document.visibilityState==="hidden"){if(g.type==="visibilitychange")for(var u=_.N(IPi),q=u.next();!q.done;q=u.next())q=q.value,q();isFinite(fJ)||(fJ=g.type==="visibilitychange"?g.timeStamp:0,removeEventListener("prerenderingchange",ipa,!0))}},C$0=function(){if(fJ<0){var g=lPR(),u,q;
fJ=(q=document.prerendering?void 0:(u=globalThis.performance.getEntriesByType("visibility-state").filter(function(Q){return Q.name==="hidden"&&Q.startTime>g})[0])==null?void 0:u.startTime)!=null?q:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",ipa,!0);addEventListener("prerenderingchange",ipa,!0);wM8(function(){setTimeout(function(){fJ=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return fJ},
onHidden:function(Q){IPi.add(Q)}}};var bpn=function(){var g=g===void 0?-1:g;var u=Zpo(),q="navigate";Rd2>=0?q="back-forward-cache":u&&(document.prerendering||lPR()>0?q="prerender":document.wasDiscarded?q="restore":u.type&&(q=u.type.replace(/_/g,"-")));return{name:"LCP",value:g,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:q}};var N5m=new WeakMap;var d$8=function(g){var u=u===void 0?{}:u;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var q=new PerformanceObserver(function(Q){Promise.resolve().then(function(){g(Q.getEntries())})});
q.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},u));return q}}catch(Q){}};var FE5=function(g){var u=!1;return function(){u||(g(),u=!0)}};var m$8=function(g){document.prerendering?addEventListener("prerenderingchange",function(){return g()},!0):g()};var aPb=function(g){var u=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?g():(g=FE5(g),addEventListener("visibilitychange",g,{once:!0,capture:!0}),u(function(){g();removeEventListener("visibilitychange",g,{capture:!0})}))};var PGh=function(){};
PGh.prototype._processEntry=function(g){var u;(u=this._onBeforeProcessingEntry)==null||u.call(this,g)};var c2X=[2500,4E3],cSu=function(g){var u=u===void 0?{}:u;m$8(function(){var q=C$0(),Q=bpn(),L=sBh(u),E=function(G){u.reportAllChanges||(G=G.slice(-1));G=_.N(G);for(var R=G.next();!R.done;R=G.next())R=R.value,L._processEntry(R),R.startTime<q.firstHiddenTime&&(Q.value=Math.max(R.startTime-lPR(),0),Q.entries=[R],v())},y=d$8(E);
if(y){var v=Hpb(g,Q,u.reportAllChanges);for(var J=FE5(function(){E(y.takeRecords());y.disconnect();v(!0)}),f=function(G){G.isTrusted&&(aPb(J),removeEventListener(G.type,f,{capture:!0}))},t=_.N(["keydown",
"click","visibilitychange"]),e=t.next();!e.done;e=t.next())addEventListener(e.value,f,{capture:!0});wM8(function(G){Q=bpn();v=Hpb(g,Q,u.reportAllChanges);A2a(function(){Q.value=performance.now()-G.timeStamp;v(!0)})})}})};var V$$;var XMb;_.B=function(){return XMb!==void 0?XMb:XMb=document.createElement("template")};
document.head.appendChild(_.B().content);var r2Z;_.ys({_template:function(){if(r2Z!==void 0)return r2Z;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
var u=g.content,q=u.insertBefore;V$$===void 0&&(V$$=document.createElement("template"));var Q=V$$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return r2Z=g},
is:"tp-yt-app-toolbar"});var WEx;var Tma;_.Ms=function(){};
_.Ms=_.ys({_template:function(){if(Tma!==void 0)return Tma;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;WEx===void 0&&(WEx=document.createElement("template"));var Q=WEx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Tma=g},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Ms.instance||(_.Ms.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(g){this._text===g&&(g+="\u00a0");this._text="";this.async(function(){this._text=g},this.timeout)},
_onIronAnnounce:function(g){g.detail&&g.detail.text&&this.announce(g.detail.text)}});
_.Ms.instance=null;_.Ms.requestAvailability=function(){_.Ms.instance||(_.Ms.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Ms.instance):document.addEventListener("load",function(){document.body.appendChild(_.Ms.instance)})};var hdH;var YaX;/*

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
*/
_.ys({_template:function(){if(YaX!==void 0)return YaX;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;hdH===void 0&&(hdH=document.createElement("template"));var Q=hdH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return YaX=g},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.qs,_.kI],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(g){this.$.textarea.selectionStart=g},set selectionEnd(g){this.$.textarea.selectionEnd=g},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var g=this.$.textarea.validity.valid;g&&(this.required&&this.value===""?g=!1:this.hasValidator()&&(g=_.qs.validate.call(this,this.value)));this.invalid=!g;this.fire("iron-input-validate");return g},
_bindValueChanged:function(g){this.value=g},
_valueChanged:function(g){var u=this.textarea;u&&(u.value!==g&&(u.value=g||g===0?g:""),this.bindValue=g,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(g){var u=_.Eg(g).path;this.value=u?u[0].value:g.target.value},
_constrain:function(g){var u;g=g||[""];for(u=this.maxRows>0&&g.length>this.maxRows?g.slice(0,this.maxRows):g.slice(0);this.rows>0&&u.length<this.rows;)u.push("");return u.join("\n")+"\u00a0"},
_valueForMirror:function(){var g=this.textarea;if(g)return this.tokens=g&&g.value?g.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var Opx;var KEW;_.ys({_template:function(){if(KEW!==void 0)return KEW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
var u=g.content,q=u.insertBefore;Opx===void 0&&(Opx=document.createElement("template"));var Q=Opx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return KEW=g},
is:"tp-yt-iron-collapse",behaviors:[_.LJ],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(g,u){g=g==="auto"?"":g;u=u&&!this.noAnimation&&this.isAttached&&this._desiredSize!==g;this._desiredSize=g;this._updateTransition(!1);u&&(u=this._calcSize(),g===""&&(this.style[this._dimensionMax]="",g=this._calcSize()),this.style[this._dimensionMax]=u,this.scrollTop=this.scrollTop,this._updateTransition(!0),u=g!==u);this.style[this._dimensionMax]=g;u||this._transitionEnd()},
enableTransition:function(g){_.qI._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!g},
_updateTransition:function(g){this.style.transitionDuration=g&&!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(g){_.Eg(g).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var x$5;var Bm$;var zdX=void 0,n0Z={properties:{sizingTarget:{type:Object,value:function(){var g;return(g=this.hostElement)!=null?g: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 g,
u=_.Eg((g=this.hostElement)!=null?g:this).parentNode;u&&u.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(u=u.host);return u},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 g;this._memoizedIsRTL=window.getComputedStyle((g=this.hostElement)!=
null?g:this).direction=="rtl"}return this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var g;window.getComputedStyle((g=this.hostElement)!=null?g: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 g,u=window.getComputedStyle((g=this.hostElement)!=null?g:this);g=window.getComputedStyle(this.sizingTarget);var q,Q,L;this._fitInfo={inlineStyle:{top:((q=this.hostElement)!=null?q:this).style.top||"",left:((Q=this.hostElement)!=null?Q:this).style.left||"",position:((L=this.hostElement)!=null?L:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:u.top!=="auto"?"top":u.bottom!=="auto"?"bottom":null,horizontally:u.left!=="auto"?"left":u.right!=="auto"?"right":null},sizedBy:{height:g.maxHeight!=="none",width:g.maxWidth!=="none",minWidth:parseInt(g.minWidth,10)||0,minHeight:parseInt(g.minHeight,10)||0},margin:{top:parseInt(u.marginTop,10)||0,right:parseInt(u.marginRight,10)||0,bottom:parseInt(u.marginBottom,10)||0,left:parseInt(u.marginLeft,10)||0}}}},
resetFit:function(){var g=this._fitInfo||{},u;for(u in g.sizerInlineStyle)this.sizingTarget.style[u]=g.sizerInlineStyle[u];for(u in g.inlineStyle){var q=void 0;((q=this.hostElement)!=null?q:this).style[u]=g.inlineStyle[u]}this._fitInfo=null},
refit:function(){var g=this.sizingTarget.scrollLeft,u=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=g;this.sizingTarget.scrollTop=u},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var g;((g=this.hostElement)!=null?g:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var u;((u=this.hostElement)!=null?u:this).style.left="0px";var q;((q=this.hostElement)!=null?q:this).style.top="0px";var Q,L=((Q=this.hostElement)!=null?Q:this).getBoundingClientRect();q=this.__getNormalizedRect(this.positionTarget);Q=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(Q={left:Q.left+24,right:Q.right-24,top:Q.top+24,bottom:Q.bottom-24});if(this.expandSizingTargetForScrollbars){var E=this.sizingTarget.offsetWidth;var y=this.sizingTarget.offsetHeight;var v=this.sizingTarget.clientWidth;var J=this.sizingTarget.clientHeight}g=this._fitInfo.margin;var f={width:L.width+g.left+g.right,height:L.height+g.top+g.bottom};u=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,f,L,q,Q);this.addSpacing&&(q.left-f.width===u.left?u.left-=8:q.top-f.height===u.top?u.top-=
8:q.right===u.left?u.left+=8:q.bottom===u.top&&(u.top+=8));f=u.left+g.left;var t=u.top+g.top;q=Math.min(Q.right-g.right,f+L.width);var e=Math.min(Q.bottom-g.bottom,t+L.height);f=Math.max(Q.left+g.left,Math.min(f,q-this._fitInfo.sizedBy.minWidth));t=Math.max(Q.top+g.top,Math.min(t,e-this._fitInfo.sizedBy.minHeight));q=Math.max(q-f,this._fitInfo.sizedBy.minWidth);e=Math.max(e-t,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=q+"px";this.sizingTarget.style.maxHeight=e+"px";f-=L.left;
L=t-L.top;var G;((G=this.hostElement)!=null?G:this).style.left=f+"px";var R;((R=this.hostElement)!=null?R:this).style.top=L+"px";if(this.expandSizingTargetForScrollbars){G=this.sizingTarget.offsetHeight;y=G-this.sizingTarget.clientHeight-(y-J);if(y>0){this.sizingTarget.style.maxHeight=Math.min(Q.height-g.top-g.bottom,e+y)+"px";y=this.sizingTarget.offsetHeight;J=y-G;var H;u.verticalAlign==="top"?H=L:u.verticalAlign==="middle"?H=L-J/2:u.verticalAlign==="bottom"&&(H=L-J);H=Math.max(Q.top+g.top,Math.min(H,
Q.bottom-g.bottom-y));var l;((l=this.hostElement)!=null?l:this).style.top=H+"px"}H=this.sizingTarget.offsetWidth;E=H-this.sizingTarget.clientWidth-(E-v);if(E>0){zdX!==void 0?v=zdX:(v=document.createElement("div"),Object.assign(v.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),l=document.createElement("div"),l.style.width="200px",l.style.height="200px",v.appendChild(l),document.body.appendChild(v),zdX=Math.abs(v.offsetWidth-100)>1?v.offsetWidth-v.clientWidth:
0,document.body.removeChild(v),v=zdX);this.sizingTarget.style.maxWidth=Math.min(Q.width-g.left-g.right,q+E-v)+"px";E=this.sizingTarget.offsetWidth+v;v=E-H;var d;u.horizontalAlign==="left"?d=f:u.horizontalAlign==="center"?d=f-v/2:u.horizontalAlign==="right"&&(d=f-v);d=Math.max(Q.left+g.left,Math.min(d,Q.right-g.right-E));var F;((F=this.hostElement)!=null?F:this).style.left=d+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var g=this._fitInfo;if(!g.positionedBy.vertically){var u;((u=this.hostElement)!=null?u:this).style.position="fixed";var q;((q=this.hostElement)!=null?q:this).style.top="0px"}if(!g.positionedBy.horizontally){var Q;((Q=this.hostElement)!=null?Q:this).style.position="fixed";var L;((L=this.hostElement)!=null?L:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var E;u=((E=this.hostElement)!=null?E:this).getBoundingClientRect();
g.sizedBy.height||this.__sizeDimension(u,g.positionedBy.vertically,"top","bottom","Height");g.sizedBy.width||this.__sizeDimension(u,g.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(g,u,q,Q,L){this.__sizeDimension(g,u,q,Q,L)},
__sizeDimension:function(g,u,q,Q,L){var E=this._fitInfo,y=this.__getNormalizedRect(this.fitInto);y=L==="Width"?y.width:y.height;g=(u=u===Q)?y-g[Q]:g[q];q=E.margin[u?q:Q];Q="offset"+L;var v;E=((v=this.hostElement)!=null?v:this)[Q]-this.sizingTarget[Q];this.sizingTarget.style["max"+L]=y-q-g-E+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var g=this._fitInfo.positionedBy;if(!g.vertically||!g.horizontally){var u;((u=this.hostElement)!=null?u:this).style.position="fixed";if(!g.vertically){var q;((q=this.hostElement)!=null?q:this).style.top="0px"}if(!g.horizontally){var Q;((Q=this.hostElement)!=null?Q:this).style.left="0px"}var L;u=((L=this.hostElement)!=null?L:this).getBoundingClientRect();L=this.__getNormalizedRect(this.fitInto);if(!g.vertically){q=L.top-u.top+(L.height-
u.height)/2;var E;((E=this.hostElement)!=null?E:this).style.top=q+"px"}if(!g.horizontally){g=L.left-u.left+(L.width-u.width)/2;var y;((y=this.hostElement)!=null?y:this).style.left=g+"px"}}}},
__getNormalizedRect:function(g){return g===document.documentElement||g===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:g.getBoundingClientRect()},
__getOffscreenArea:function(g,u,q){return Math.abs(Math.min(0,g.top)+Math.min(0,q.bottom-(g.top+u.height)))*u.width+Math.abs(Math.min(0,g.left)+Math.min(0,q.right-(g.left+u.width)))*u.height},
__getPosition:function(g,u,q,Q,L,E){var y=[{verticalAlign:"top",horizontalAlign:"left",top:L.top+this.verticalOffset,left:L.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:L.top+this.verticalOffset,left:L.right-q.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:L.bottom-q.height-this.verticalOffset,left:L.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:L.bottom-q.height-this.verticalOffset,left:L.right-q.width-
this.horizontalOffset}];if(this.noOverlap){for(var v=0,J=y.length;v<J;v++){var f={},t;for(t in y[v])f[t]=y[v][t];y.push(f)}y[0].top=y[1].top+=L.height;y[2].top=y[3].top-=L.height;y[4].left=y[6].left+=L.width;y[5].left=y[7].left-=L.width}u=u==="auto"?null:u;g=g==="auto"?null:g;g&&g!=="center"||(y.push({verticalAlign:"top",horizontalAlign:"center",top:L.top+this.verticalOffset+(this.noOverlap?L.height:0),left:L.left-Q.width/2+L.width/2+this.horizontalOffset}),y.push({verticalAlign:"bottom",horizontalAlign:"center",
top:L.bottom-q.height-this.verticalOffset-(this.noOverlap?L.height:0),left:L.left-Q.width/2+L.width/2+this.horizontalOffset}));u&&u!=="middle"||(y.push({verticalAlign:"middle",horizontalAlign:"left",top:L.top-Q.height/2+L.height/2+this.verticalOffset,left:L.left+this.horizontalOffset+(this.noOverlap?L.width:0)}),y.push({verticalAlign:"middle",horizontalAlign:"right",top:L.top-Q.height/2+L.height/2+this.verticalOffset,left:L.right-q.width-this.horizontalOffset-(this.noOverlap?L.width:0)}));u==="middle"&&
g==="center"&&y.push({verticalAlign:"middle",horizontalAlign:"center",top:L.top-Q.height/2+L.height/2+this.verticalOffset,left:L.left-Q.width/2+L.width/2+this.horizontalOffset});for(v=0;v<y.length;v++){Q=y[v];L=Q.verticalAlign===u;J=Q.horizontalAlign===g;if(!this.dynamicAlign&&!this.noOverlap&&L&&J){var e=Q;break}f=(!u||L)&&(!g||J);if(this.dynamicAlign||f){Q.offscreenArea=this.__getOffscreenArea(Q,q,E);if(Q.offscreenArea===0&&f){e=Q;break}Q.alignsOk=L+J;e=e||Q;L=Q.offscreenArea-e.offscreenArea;if(L<
0||L===0&&Q.alignsOk>e.alignsOk)e=Q}}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 tO,kw0,San;tO=Element.prototype;kw0=tO.matches||tO.matchesSelector||tO.mozMatchesSelector||tO.msMatchesSelector||tO.oMatchesSelector||tO.webkitMatchesSelector;San=function(){};
_.U$X=function(g){var u=o0b,q=[];return u._collectTabbableNodes(g,q)?u._sortByTabIndex(q):q};
_.P=San.prototype;_.P.isFocusable=function(g){return kw0.call(g,"input, select, textarea, button, object")?kw0.call(g,":not([disabled])"):kw0.call(g,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.P._normalizedTabIndex=function(g){return this.isFocusable(g)?(g=g.getAttribute("tabindex")||0,Number(g)):-1};
_.P._collectTabbableNodes=function(g,u){if(g.nodeType!==Node.ELEMENT_NODE||!this._isVisible(g))return!1;var q=this._normalizedTabIndex(g),Q=q>0;q>=0&&u.push(g);if(g.localName==="content"||g.localName==="slot")q=_.Eg(g).getDistributedNodes();else{var L;q=((L=_.Eg(g).shadowRoot)!=null?L:_.Eg(g.root||g)).children}for(g=0;g<q.length;g++)Q=this._collectTabbableNodes(q[g],u)||Q;return Q};
_.P._isVisible=function(g){var u=g.style;return u.visibility!=="hidden"&&u.display!=="none"?(u=window.getComputedStyle(g),u.visibility!=="hidden"&&u.display!=="none"):!1};
_.P._sortByTabIndex=function(g){var u=g.length;if(u<2)return g;var q=Math.ceil(u/2);u=this._sortByTabIndex(g.slice(0,q));g=this._sortByTabIndex(g.slice(q));return this._mergeSortByTabIndex(u,g)};
_.P._mergeSortByTabIndex=function(g,u){for(var q=[];g.length>0&&u.length>0;)this._hasLowerTabOrder(g[0],u[0])?q.push(u.shift()):q.push(g.shift());return q.concat(g,u)};
_.P._hasLowerTabOrder=function(g,u){g=Math.max(g.tabIndex,0);u=Math.max(u.tabIndex,0);return g===0||u===0?u>g:g>u};
var o0b=new San;var g2$;var uAo;_.ys({_template:function(){if(uAo!==void 0)return uAo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;g2$===void 0&&(g2$=document.createElement("template"));var Q=g2$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return uAo=g},
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&&_.Eg(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Eg(this.parentNode).removeChild(this)},
_onTransitionend:function(g){g&&g.target===this&&this.complete()},
_openedChanged:function(g){g?this.prepare():(g=window.getComputedStyle(this),g.transitionDuration!=="0s"&&g.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 en=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;ZF(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)};
en.prototype._bringOverlayAtIndexToFront=function(g){var u=this._overlays[g];if(u){var q=this._overlays.length-1,Q=this._overlays[q];Q&&this._shouldBeBehindOverlay(u,Q)&&q--;if(!(g>=q)){Q=Math.max(this._getZ(_.qQ$(this)),this._minimumZ);for(this._getZ(u)<=Q&&this._applyOverlayZ(u,Q);g<q;)this._overlays[g]=this._overlays[g+1],g++;this._overlays[q]=u}}};
en.prototype.addOverlay=function(g){var u=this._overlays.indexOf(g);if(u>=0)this._bringOverlayAtIndexToFront(u);else{u=this._overlays.length;var q=this._overlays[u-1],Q=Math.max(this._getZ(q),this._minimumZ),L=this._getZ(g);q&&this._shouldBeBehindOverlay(g,q)&&(this._applyOverlayZ(q,Q),u--,Q=Math.max(this._getZ(this._overlays[u-1]),this._minimumZ));L<=Q&&this._applyOverlayZ(g,Q);this._overlays.splice(u,0,g)}this.trackBackdrop()};
en.prototype.removeOverlay=function(g){g=this._overlays.indexOf(g);g!==-1&&(this._overlays.splice(g,1),this.trackBackdrop())};
_.qQ$=function(g){return g._overlays[g._overlays.length-1]};
_.P=en.prototype;_.P.trackBackdrop=function(){var g=this._overlayWithBackdrop();if(g||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(g)-1,this.backdropElement.opened=!!g,this.backdropElement.prepare()};
_.P._overlayWithBackdrop=function(){for(var g=this._overlays.length-1;g>=0;g--)if(this._overlays[g].withBackdrop)return this._overlays[g]};
_.P._getZ=function(g){var u=this._minimumZ;if(g){var q,Q,L=Number(((q=g.hostElement)!=null?q:g).style.zIndex||window.getComputedStyle((Q=g.hostElement)!=null?Q:g).zIndex);L===L&&(u=L)}return u};
_.P._setZ=function(g,u){var q;((q=g.hostElement)!=null?q:g).style.zIndex=u};
_.P._applyOverlayZ=function(g,u){this._setZ(g,u+2)};
_.P._overlayInPath=function(g){g=g||[];for(var u=0;u<g.length;u++){var q=void 0;if(((q=g[u].polymerController)!=null?q:g[u])._manager===this)return g[u]}};
_.P._onCaptureClick=function(g){var u=this._overlays.length-1;if(u!==-1)for(var q=_.Eg(g).path,Q,L;(Q=this._overlays[u])&&this._overlayInPath(q)!==((L=Q.hostElement)!=null?L:Q);)if(Q._onCaptureClick(g),Q.allowClickThrough)u--;else break};
_.P._onCaptureFocus=function(g){var u=_.qQ$(this);u&&u._onCaptureFocus(g)};
_.P._onCaptureKeyDown=function(g){var u=_.qQ$(this);u&&(_.n8.keyboardEventMatchesKeys(g,"esc")?u._onCaptureEsc(g):_.n8.keyboardEventMatchesKeys(g,"tab")&&u._onCaptureTab(g))};
_.P._shouldBeBehindOverlay=function(g,u){return!g.alwaysOnTop&&u.alwaysOnTop&&!u.contains(g)};
_.z3.Object.defineProperties(en.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 g=document.activeElement;g&&g instanceof Element!==!1||(g=document.body);for(;g.root&&_.Eg(g.root).activeElement;)g=_.Eg(g.root).activeElement;return g}}});
_.Go=new en;var yOS=0,vfZ=0,Dsq=null,pIu=[],PX=["wheel","mousewheel","DOMMouseScroll"],JOb;_.w("web_no_lock_on_touchstart_killswitch")&&(PX.push("touchstart"),PX.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;_.$f={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:_.Go},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var g;return this._focusedChild||_.Eg((g=this.hostElement)!=null?g:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var g;return _.U$X((g=this.hostElement)!=null?g: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 g;this._observer=_.Eg((g=this.hostElement)!=null?g:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var g;_.Eg((g=this.hostElement)!=null?g:this).unobserveNodes(this._observer)}this._observer=null;for(var u in this.__rafs)this.__rafs[u]!==null&&cancelAnimationFrame(this.__rafs[u]);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(g){this.fire("iron-overlay-canceled",g,{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 g;((g=this.hostElement)!=null?g:this).style.outline="none";var u;((u=this.hostElement)!=null?u:this).style.display="none"}},
_openedChanged:function(g){if(g){var u;((u=this.hostElement)!=null?u:this).removeAttribute("aria-hidden")}else{var q;((q=this.hostElement)!=null?q: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 g;if(this.withBackdrop&&!((g=this.hostElement)!=null?g:this).hasAttribute("tabindex")){var u;((u=this.hostElement)!=null?u:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var q;((q=this.hostElement)!=null?q: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 g;((g=this.hostElement)!=null?g:this).style.display="none";var u;((u=this.hostElement)!=null?u:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var g,u;((g=this.hostElement)!=null?g:this).style.transition=((u=this.hostElement)!=null?u:this).style.webkitTransition="none";var q,Q;((q=this.hostElement)!=null?q:this).style.transform=((Q=this.hostElement)!=null?Q:this).style.webkitTransform="none";var L;((L=this.hostElement)!=null?L:this).style.display=""},
_finishPositioning:function(){var g;((g=this.hostElement)!=null?g:this).style.display="none";this.scrollTop=this.scrollTop;var u,q;((u=this.hostElement)!=null?u:this).style.transition=((q=this.hostElement)!=null?q:this).style.webkitTransition="";var Q,L;((Q=this.hostElement)!=null?Q:this).style.transform=((L=this.hostElement)!=null?L:this).style.webkitTransform="";var E;((E=this.hostElement)!=null?E:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var g=this._manager.deepActiveElement,u;if(!(u=g===document.body))a:{for(;g;g=g.assignedSlot||g.parentNode||g.host)if(g===this){u=!0;break a}u=!1}u&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(g){this.noCancelOnOutsideClick||this.cancel(g)},
_onCaptureFocus:function(g){if(this.withBackdrop){var u=_.Eg(g).path;u.indexOf(this)===-1?(g.stopPropagation(),this._applyFocus()):this._focusedChild=u[0]}},
_onCaptureEsc:function(g){this.noCancelOnEscKey||this.cancel(g)},
_onCaptureTab:function(g){if(this.withBackdrop){this.__ensureFirstLastFocusables();var u=g.shiftKey,q=u?this.__firstFocusableNode:this.__lastFocusableNode;u=u?this.__lastFocusableNode:this.__firstFocusableNode;if(q===u)q=!0;else{var Q=this._manager.deepActiveElement;q=Q===q||Q===this}q&&(g.preventDefault(),this._focusedChild=u,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 g=this._focusableNodes;this.__firstFocusableNode=g[0];this.__lastFocusableNode=g[g.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(g,u){var q=this.__rafs;q[g]!==null&&cancelAnimationFrame(q[g]);q[g]=requestAnimationFrame(function(){q[g]=null;u.call(this)}.bind(this))},
__updateScrollObservers:function(g,u,q){g&&u&&this.__isValidScrollAction(q)?(q==="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),JOb=_._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()):(g=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),g!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(g,1),JOb=_._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(m6)for(var g=this;g;)g.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&g.host&&this.__rootNodes.push(g),g=g.host||g.assignedSlot||g.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(u){u.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(g){g.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(g){return g==="lock"||g==="refit"||g==="cancel"},
__onCaptureScroll:function(g){if(!(this.__isAnimating||_.Eg(g).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(g)}},
__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)}};
_.RB=[n0Z,_.LJ,_.$f];_.ys({_template:function(){if(Bm$!==void 0)return Bm$;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;x$5===void 0&&(x$5=document.createElement("template"));var Q=x$5;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Bm$=g},
is:"tp-yt-iron-dropdown",behaviors:[_.kI,_.n8,_.RB,MUx],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 g=_.Eg(this.$.content).getDistributedNodes(),u=0,q=g.length;u<q;u++)if(g[u].nodeType===Node.ELEMENT_NODE)return g[u]},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(),_.$f._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.$f._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.$f._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var g=this.containedElement,u=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),q=0;q<u.length;q++)u[q].node=g;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(g){this._readied&&(g?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var g=this.focusTarget||this.containedElement;g&&this.opened&&!this.noAutoFocus?g.focus():_.$f._applyFocus.apply(this,arguments)}});var QAX;var Lb0;/*

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 E2X=new _.g5({type:"iconset"});
_.ys({_template:function(){if(Lb0!==void 0)return Lb0;var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;QAX===void 0&&(QAX=document.createElement("template"));
var Q=QAX;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Lb0=g},
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(g){g=(g||"").split(":");this._iconName=g.pop();this._iconsetName=g.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&&_.Eg(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=E2X.byKey(this._iconsetName)){var g=this._iconset.applyIcon(this,this._iconName,this.theme);g&&g.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,_.Eg(this.root).appendChild(this._img)}});var PM$;var NXW;_.ys({_template:function(){if(NXW!==void 0)return NXW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
var u=g.content,q=u.insertBefore;PM$===void 0&&(PM$=document.createElement("template"));var Q=PM$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return NXW=g},
is:"tp-yt-iron-input",behaviors:[_.qs],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(){_.Ms.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Eg(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Eg(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 g=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":g=/[0-9.,e-]/}return g},_bindValueChanged:function(g,u){u&&(g===void 0?u.value=null:g!==u.value&&(this.inputElement.value=g),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:g}))},
_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(g){var u=g.keyCode==19||g.keyCode==20||g.keyCode==45||g.keyCode==46||g.keyCode==144||g.keyCode==145||g.keyCode>32&&g.keyCode<41||g.keyCode>111&&g.keyCode<124;return!(g.keyCode==8||g.keyCode==9||g.keyCode==13||g.keyCode==27)&&!(g.charCode==0&&u)},
_onKeypress:function(g){if(this.allowedPattern||this.inputElement.type==="number"){var u=this._patternRegExp;if(u&&!(g.metaKey||g.ctrlKey||g.altKey)){this._patternAlreadyChecked=!0;var q=String.fromCharCode(g.charCode);this._isPrintable(g)&&!u.test(q)&&(g.preventDefault(),this._announceInvalidCharacter("Invalid character "+q+" not entered."))}}},
_checkPatternValidity:function(){var g=this._patternRegExp;if(!g)return!0;for(var u=0;u<this.inputElement.value.length;u++)if(!g.test(this.inputElement.value[u]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var g=this.inputElement.checkValidity();g&&(this.required&&this.bindValue===""?g=!1:this.hasValidator()&&(g=_.qs.validate.call(this,this.bindValue)));this.invalid=!g;this.fire("iron-input-validate");return g},
_announceInvalidCharacter:function(g){this.fire("iron-announce",{text:g})},
_computeValue:function(g){return g}});var sAH;var yyZ;var v2R=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),DHo=v2R&&v2R[1]>=8;
_.ys({_template:function(){if(yyZ!==void 0)return yyZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;sAH===void 0&&(sAH=document.createElement("template"));var Q=sAH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return yyZ=g},
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:[CiM,_.LJ,_.fg5,fab],_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 _.Eg(_.Eg(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var g=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,g-this._physicalCount)},set _virtualStart(g){g=this._clamp(g,0,this._maxVirtualStart);this.grid&&(g-=g%this._itemsPerRow);this._virtualStartVal=g},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(g){g%=this._physicalCount;g<0&&(g=this._physicalCount+g);this.grid&&(g-=g%this._itemsPerRow);this._physicalStartVal=g},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(g){this._physicalCountVal=g},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 g=this._firstVisibleIndexVal;if(g==null){var u=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
g=this._iterateItems(function(q,Q){u+=this._getPhysicalSizeIncrement(q);if(u>this._scrollPosition)return this.grid?Q-Q%this._itemsPerRow:Q;if(this.grid&&this._virtualCount-1===Q)return Q-Q%this._itemsPerRow})||0}return g},
get lastVisibleIndex(){var g=this._lastVisibleIndexVal;if(g==null){if(this.grid)g=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var u=this._physicalTop+this._scrollOffset;this._iterateItems(function(q,Q){u<this._scrollBottom&&(g=Q);u+=this._getPhysicalSizeIncrement(q)})}this._lastVisibleIndexVal=g}return g},
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,_.P1);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(g){this.style.webkitOverflowScrolling=g===this?"touch":"";this.style.overflowY=g===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.P1)},
updateViewportBoundaries:function(){var g=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(g["padding-top"],10);this._isRTL=g.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var g=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),u=g-this._scrollPosition,q=u>=0;this._scrollPosition=g;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(u)>this._physicalSize&&this._physicalSize>0?(u-=this._scrollOffset,q=Math.round(u/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=q,this._physicalStart+=q,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(g=this._getReusables(q),q?(this._physicalTop=g.physicalTop,this._virtualStart+=g.indexes.length,this._physicalStart+=g.indexes.length):(this._virtualStart=this._virtualStart-g.indexes.length,this._physicalStart=this._physicalStart-g.indexes.length),this._update(g.indexes,q?null:g.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),iP))},
_getReusables:function(g){var u=[],q=this._hiddenContentSize*this._ratio,Q=this._virtualStart,L=this._virtualEnd,E=this._physicalCount,y=this._physicalTop+this._scrollOffset;var v=this._physicalBottom+this._scrollOffset;var J=this._scrollPosition,f=this._scrollBottom;if(g){var t=this._physicalStart;v=J-y}else t=this._physicalEnd,v-=f;for(;;){var e=this._getPhysicalSizeIncrement(t);v-=e;if(u.length>=E||v<=q)break;if(g){if(L+u.length+1>=this._virtualCount)break;if(y+e>=J-this._scrollOffset)break;u.push(t);
y+=e;t=(t+1)%E}else{if(Q-u.length<=0)break;if(y+this._physicalSize-e<=f)break;u.push(t);y-=e;t=t===0?E-1:t-1}}return{indexes:u,physicalTop:y-this._scrollOffset}},
_update:function(g,u){if(!(g&&g.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(g);this._updateMetrics(g);if(u)for(;u.length;)g=u.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(g);this._positionItems();this._updateScrollerSize()}},
_createPool:function(g){this._ensureTemplatized();var u,q=Array(g);for(u=0;u<g;u++){var Q=this.stamp(null);q[u]=Q.root.querySelector("*");this._itemsParent.appendChild(Q.root)}return q},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(g){g=this._clamp(this._physicalCount+g,3,this._virtualCount-this._virtualStart);g=this._convertIndexToCompleteRow(g);if(this.grid){var u=g%this._itemsPerRow;u&&g-u<=this._physicalCount&&(g+=this._itemsPerRow);g-=u}g-=this._physicalCount;u=Math.round(this._physicalCount*.5);if(!(g<0)){if(g>0){u=window.performance.now();[].push.apply(this._physicalItems,this._createPool(g));for(var q=0;q<g;q++)this._physicalSizes.push(0);this._physicalCount+=g;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=g);this._update();this._templateCost=(window.performance.now()-u)/g;u=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||u===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,u)),Sxx):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,u),iP))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var g=this._getReusables(!0);this._physicalTop=g.physicalTop;this._virtualStart+=g.indexes.length;this._physicalStart+=g.indexes.length;this._update(g.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 g={__key__:!0};g[this.as]=!0;g[this.indexAs]=!0;g[this.selectedAs]=!0;g.tabIndex=!0;this._instanceProps=g;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(g,u){typeof u!=="undefined"&&(this.notifyResize(),_.xx(),g&&this._updateGridMetrics())},
_itemsChanged:function(g){if(g.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,
_.P1);else if(g.path==="items.splices"){this._adjustVirtualIndex(g.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(g.value.indexSplices.some(function(q){return q.addedCount>0||q.removed.length>0})){var u=this._getActiveElement();
this.contains(u)&&u.blur()}g=g.value.indexSplices.some(function(q){return q.index+q.addedCount>=this._virtualStart&&q.index<=this._virtualEnd},this);
this._isClientFull()&&!g||this._debounce("_render",this._render,_.P1)}else g.path!=="items.length"&&this._forwardItemPath(g.path,g.value)},
_forwardItemPath:function(g,u){g=g.slice(6);var q=g.indexOf(".");q===-1&&(q=g.length);var Q,L=this.modelForElement(this._offscreenFocusedItem),E=parseInt(g.substring(0,q),10);if(Q=this._isIndexRendered(E)){var y=this._getPhysicalIndex(E);var v=this.modelForElement(this._physicalItems[y])}else L&&(v=L);v&&v[this.indexAs]===E&&(g=g.substring(q+1),g=this.as+(g?"."+g:""),v._setPendingPropertyOrPath(g,u,!1,!0),v._flushProperties&&v._flushProperties(),Q&&(this._updateMetrics([y]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(g){g.forEach(function(u){u.removed.forEach(this._removeItem,this);u.index<this._virtualStart&&(u=Math.max(u.addedCount-u.removed.length,u.index-this._virtualStart),this._virtualStart+=u,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=u))},this)},
_removeItem:function(g){this.$.selector.deselect(g);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===g&&this._removeFocusedItem()},
_iterateItems:function(g,u){var q,Q;if(arguments.length===2&&u)for(Q=0;Q<u.length;Q++){var L=u[Q];var E=this._computeVidx(L);if((q=g.call(this,L,E))!=null)return q}else{L=this._physicalStart;for(E=this._virtualStart;L<this._physicalCount;L++,E++)if((q=g.call(this,L,E))!=null)return q;for(L=0;L<this._physicalStart;L++,E++)if((q=g.call(this,L,E))!=null)return q}},
_computeVidx:function(g){return g>=this._physicalStart?this._virtualStart+(g-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+g},
_assignModels:function(g){this._iterateItems(function(u,q){var Q=this._physicalItems[u],L=this.items&&this.items[q];if(L!=null){var E=this.modelForElement(Q);E.__key__=null;this._forwardProperty(E,this.as,L);this._forwardProperty(E,this.selectedAs,this.$.selector.isSelected(L));this._forwardProperty(E,this.indexAs,q);this._forwardProperty(E,"tabIndex",this._focusedVirtualIndex===q?0:-1);this._physicalIndexForKey[E.__key__]=u;E._flushProperties&&E._flushProperties(!0);Q.removeAttribute("hidden")}else Q.setAttribute("hidden",
"")},g)},
_updateMetrics:function(g){_.xx();var u=0,q=0,Q=this._physicalAverageCount,L=this._physicalAverage;this._iterateItems(function(E){q+=this._physicalSizes[E];this._physicalSizes[E]=this._physicalItems[E].offsetHeight;u+=this._physicalSizes[E];this._physicalAverageCount+=this._physicalSizes[E]?1:0},g);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(q=this._itemsPerRow===1?q:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+u-q,this._itemsPerRow=1);this._physicalAverageCount!==Q&&(this._physicalAverage=Math.round((L*Q+u)/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 g=this._physicalTop;if(this.grid){var u=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(q,Q){var L=Math.floor(Q%this._itemsPerRow*this._itemWidth+u);this._isRTL&&(L*=-1);this.translate3d(L+"px",g+"px",0,this._physicalItems[q]);this._shouldRenderNextRow(Q)&&(g+=this._rowHeight)})}else this._iterateItems(function(q){this.translate3d(0,g+"px",0,this._physicalItems[q]);
g+=this._physicalSizes[q]})},
_getPhysicalSizeIncrement:function(g){return this.grid?this._computeVidx(g)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[g]},
_shouldRenderNextRow:function(g){return g%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var g=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(g!==0){this._physicalTop=this._physicalTop-g;var u=this._scrollPosition;!DHo&&u>0&&this._resetScrollPosition(u-g)}},
_resetScrollPosition:function(g){this.scrollTarget&&g>=0&&(this._scrollPosition=this._scrollTop=g)},
_updateScrollerSize:function(g){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((g=(g=(g=g||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(g){return this.scrollToIndex(this.items.indexOf(g))},
scrollToIndex:function(g){if(!(typeof g!=="number"||g<0||g>this.items.length-1)&&(_.xx(),this._physicalCount!==0)){g=this._clamp(g,0,this._virtualCount-1);if(!this._isIndexRendered(g)||g>=this._maxVirtualStart)this._virtualStart=this.grid?g-this._itemsPerRow*2:g-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var u=this._physicalStart,q=this._virtualStart,Q=0,L=this._hiddenContentSize;q<g&&
Q<=L;)Q+=this._getPhysicalSizeIncrement(u),u=(u+1)%this._physicalCount,q++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+Q);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)},_.P1)},
selectItem:function(g){return this.selectIndex(this.items.indexOf(g))},
selectIndex:function(g){if(!(g<0||g>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(g)){var u=this.modelForElement(this._physicalItems[this._getPhysicalIndex(g)]);u&&(u[this.selectedAs]=!0);this.updateSizeForIndex(g)}this.$.selector.selectIndex(g)}},
deselectItem:function(g){return this.deselectIndex(this.items.indexOf(g))},
deselectIndex:function(g){g<0||g>=this._virtualCount||(this._isIndexRendered(g)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(g)])[this.selectedAs]=!1,this.updateSizeForIndex(g)),this.$.selector.deselectIndex(g))},
toggleSelectionForItem:function(g){return this.toggleSelectionForIndex(this.items.indexOf(g))},
toggleSelectionForIndex:function(g){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(g):this.$.selector.isSelected(this.items[g]))?this.deselectIndex(g):this.selectIndex(g)},
clearSelection:function(){this._iterateItems(function(g){this.modelForElement(this._physicalItems[g])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(g){(g?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(g){var u=this.modelForElement(g.target);if(u){var q=_.Eg(g).path[0];g=this._getActiveElement();var Q=this._physicalItems[this._getPhysicalIndex(u[this.indexAs])];if(q.localName!=="input"&&q.localName!=="button"&&q.localName!=="select"){q=u.tabIndex;u.tabIndex=-100;var L=g?g.tabIndex:-1;u.tabIndex=q;g&&Q!==g&&Q.contains(g)&&L!==-100||this.toggleSelectionForItem(u[this.as])}}},
_multiSelectionChanged:function(g){this.clearSelection();this.$.selector.multi=g},
updateSizeForItem:function(g){return this.updateSizeForIndex(this.items.indexOf(g))},
updateSizeForIndex:function(g){if(!this._isIndexRendered(g))return null;this._updateMetrics([this._getPhysicalIndex(g)]);this._positionItems();return null},
_manageFocus:function(){var g=this._focusedVirtualIndex;g>=0&&g<this._virtualCount?this._isIndexRendered(g)?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(g){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(g/this._itemsPerRow)*this._itemsPerRow:g},
_isIndexRendered:function(g){return g>=this._virtualStart&&g<=this._virtualEnd},
_isIndexVisible:function(g){return g>=this.firstVisibleIndex&&g<=this.lastVisibleIndex},
_getPhysicalIndex:function(g){return(this._physicalStart+(g-this._virtualStart))%this._physicalCount},
focusItem:function(g){this._focusPhysicalItem(g)},
_focusPhysicalItem:function(g){if(!(g<0||g>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(g)||this.scrollToIndex(g);var u=this._physicalItems[this._getPhysicalIndex(g)],q=this.modelForElement(u),Q;q.tabIndex=-100;u.tabIndex===-100&&(Q=u);Q||(Q=_.Eg(u).querySelector('[tabindex="-100"]'));q.tabIndex=0;this._focusedVirtualIndex=g;Q&&Q.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 g=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var u=this.stamp(null);this._focusBackfillItem=u.root.querySelector("*");this._itemsParent.appendChild(u.root)}this._offscreenFocusedItem=this._physicalItems[g];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[g]=this._focusBackfillItem;this._focusedPhysicalIndex=g;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var g=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),u=this._physicalItems[g];if(u){var q=this.modelForElement(u),Q=this.modelForElement(this._offscreenFocusedItem);q[this.as]===Q[this.as]?(this._focusBackfillItem=u,q.tabIndex=-1,this._physicalItems[g]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(g){g=this.modelForElement(g.target);var u=this.modelForElement(this._focusedItem),q=this._offscreenFocusedItem!==null,Q=this._focusedVirtualIndex;g&&(u===g?this._isIndexVisible(Q)||this.scrollToIndex(Q):(this._restoreFocusedItem(),u&&(u.tabIndex=-1),g.tabIndex=0,this._focusedVirtualIndex=Q=g[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(Q),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],q&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(g){switch(g.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&g.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&&g.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(g)}},
_clamp:function(g,u,q){return Math.min(q,Math.max(u,g))},
_debounce:function(g,u,q){this._debouncers=this._debouncers||{};this._debouncers[g]=_.Tn(this._debouncers[g],q,u.bind(this));_.hH(this._debouncers[g])},
_forwardProperty:function(g,u,q){g._setPendingProperty(u,q)},
_forwardHostPropV2:function(g,u){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(q){q&&this.modelForElement(q).forwardHostProp(g,u)},this)},
_notifyInstancePropV2:function(g,u,q){B_m(this.as,u)&&(g=g[this.indexAs],u==this.as&&(this.items[g]=q),this.notifyPath(y8(this.as,"items."+g,u),q))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(g,u,q){u.indexOf(this.as+".")===0&&this.notifyPath("items."+g.__key__+"."+u.slice(this.as.length+1),q)},
_forwardParentPath:function(g,u){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(q){q&&this.modelForElement(q).notifyPath(g,u)},this)},
_forwardParentProp:function(g,u){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(q){q&&(this.modelForElement(q)[g]=u)},this)},
_getActiveElement:function(){var g=this._itemsParent.node.domHost;return _.Eg(g?g.root:document).activeElement},
_scrollTargetChanged:function(g,u){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(u)if(g==="document")this.scrollTarget=this._doc;else if(typeof g==="string"){var q,Q;this.scrollTarget=(u=(Q=(q=this.domHost)==null?void 0:q.polymerController)!=null?Q:this.domHost)&&u.$?u.$[g]:_.Eg(this.ownerDocument).querySelector("#"+g)}else this._isValidScrollTarget()&&(this._oldScrollTarget=g,this._toggleScrollListener(this._shouldHaveListener,g))}});var pHa;var Jyx;var jA8=function(g,u,q,Q){g-=q;u-=Q;return Math.sqrt(g*g+u*u)},fXi=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
jBT.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var f8m=function(g){g.maxRadius=0;g.mouseDownStart=0;g.mouseUpStart=0;g.xStart=0;g.yStart=0;g.xEnd=0;g.yEnd=0;g.containerMetrics=new jBT(g.element)};
Mnf.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var g=fXi()-this.mouseDownStart;this.mouseUpStart&&(g-=this.mouseUpElapsed);return g},get mouseUpElapsed(){return this.mouseUpStart?fXi()-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 g=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(g*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-g/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 g=this.radius/(this.containerMetrics.size/2);var u=this.xNow-this.containerMetrics.width/2;var q=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+u+"px, "+q+"px)";this.waveContainer.style.transform="translate3d("+u+"px, "+q+"px, 0)";this.wave.style.webkitTransform="scale("+g+","+g+")";this.wave.style.transform="scale3d("+g+","+g+",1)"},
downAction:function(g){var u=this.containerMetrics.width/2,q=this.containerMetrics.height/2;f8m(this);this.mouseDownStart=fXi();this.center?(this.xStart=u,this.yStart=q):(this.xStart=g?g.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=g?g.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=u,this.yEnd=q);g=this.containerMetrics;u=this.xStart;q=this.yStart;this.maxRadius=Math.max(jA8(u,q,0,0),jA8(u,q,
g.width,0),jA8(u,q,0,g.height),jA8(u,q,g.width,g.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=fXi())},
remove:function(){_.Eg(_.Eg(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.ys({_template:function(){if(Jyx!==void 0)return Jyx;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;pHa===void 0&&(pHa=document.createElement("template"));var Q=pHa;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Jyx=g},
is:"tp-yt-paper-ripple",behaviors:[_.n8],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(){_.Eg(this).parentNode.nodeType==11?this.keyEventTarget=_.Eg(this).getOwnerRoot().host:this.keyEventTarget=_.Eg(this).parentNode;var g=this.keyEventTarget;this.listen(g,"up","uiUpAction");this.listen(g,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(g){g.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var g=0;g<this.ripples.length;++g)if(!this.ripples[g].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(g){this.noink||this.downAction(g)},
downAction:function(g){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(g),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(g){this.noink||this.upAction(g)},
upAction:function(g){this.holdDown||(this.ripples.forEach(function(u){u.upAction(g)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var g=0;g<this.ripples.length;++g){var u=this.ripples[g];u.isOpacityFullyDecayed&&!u.isRestingAtMaxRadius&&this.removeRipple(u)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var g=new Mnf(this);_.Eg(this.$.waves).appendChild(g.waveContainer);this.$.background.style.backgroundColor=g.color;this.ripples.push(g);this._setAnimating(!0);return g},
removeRipple:function(g){var u=this.ripples.indexOf(g);u<0||(this.ripples.splice(u,1),g.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var g;for(g=0;g<this.ripples.length;++g){var u=this.ripples[g];u.draw();this.$.background.style.opacity=u.outerOpacity;u.isOpacityFullyDecayed&&!u.isRestingAtMaxRadius&&this.removeRipple(u)}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(g,u){u!==void 0&&(g?this.downAction():this.upAction())}});var w5={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(g){Se._downHandler.call(this,g);this.pressed&&this.ensureRipple(g)},
ensureRipple:function(g){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var u=this._rippleContainer||this.root;u&&_.Eg(u).appendChild(this._ripple);if(g){u=_.Eg(this._rippleContainer||this);var q=_.Eg(g).rootTarget;u.deepContains(q)&&this._ripple.uiDownAction(g)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(g){this.hasRipple()&&(this._ripple.noink=g)}};var M0H={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 g=1;this.disabled?g=0:this.active||this.pressed?g=4:this.receivedFocusFromKeyboard&&(g=3);this._setElevation(g)},
_computeKeyboardClass:function(g){this.toggleClass("keyboard-focus",g)},
_spaceKeyDownHandler:function(g){Se._spaceKeyDownHandler.call(this,g);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(g){Se._spaceKeyUpHandler.call(this,g);this.hasRipple()&&this._ripple.uiUpAction()}},t08=[L3Z,
_.kI,w5,M0H];_.exZ={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(g){g&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=g)},
_createRipple:function(){var g=w5._createRipple();g.id="ink";g.setAttribute("center","");g.classList.add("circle");return g}};
_.G0$=[L3Z,_.kI,w5,_.exZ];_.$Ho=[_.G0$,NTo,{_checkedChanged:function(){PAn._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){w5._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Rx$;var wHR;var cy5=function(){};
_.P=cy5.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._createRipple=function(){};
_.P._noinkChanged=function(){};
_.P._computeKeyboardClass=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setElevation=function(){};
cy5=_.ys({_template:function(){if(wHR!==void 0)return wHR;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
var u=g.content,q=u.insertBefore;Rx$===void 0&&(Rx$=document.createElement("template"));var Q=Rx$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return wHR=g},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[t08],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?M0H._calculateElevation.apply(this):this._setElevation(0)}});var HN5;var Ay5;var ZNX={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(g){_.w("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(g)},
_onDialogClickWrapped:function(g){_.w("dialog_behavior_no_tap_killswitch")||this._onDialogClick(g)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(g,u){u&&(g?(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(g){if(g){var u;((u=this.hostElement)!=null?u:this).setAttribute("aria-modal","true")}else{var q;((q=this.hostElement)!=null?q:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(g){this.closingReason=this.closingReason||{};this.closingReason.confirmed=g},
_onDialogClick:function(g){for(var u=_.Eg(g).path,q=0,Q,L=u.indexOf((Q=this.hostElement)!=null?Q:this);q<L;q++)if(Q=u[q],Q.hasAttribute&&(Q.hasAttribute("dialog-dismiss")||Q.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(Q.hasAttribute("dialog-confirm"));this.close();g.stopPropagation();break}}},lXa=[_.RB,
ZNX];var IXH=document.createElement("template");_.Z(IXH,'<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(IXH.content);var iNZ=document.createElement("template");_.Z(iNZ,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(iNZ.content);_.ys({_template:function(){if(Ay5!==void 0)return Ay5;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
var u=g.content,q=u.insertBefore;HN5===void 0&&(HN5=document.createElement("template"));var Q=HN5;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Ay5=g},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[lXa,MUx],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 CMZ;var bNX;_.ys({_template:function(){if(bNX!==void 0)return bNX;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;CMZ===void 0&&(CMZ=document.createElement("template"));var Q=CMZ;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return bNX=g},
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 g,u,q;if(((g=window.ShadyDOM)==null?void 0:g.noPatch)!==!0&&((u=window.ShadyDOM)==null?void 0:u.noPatch)!=="on-demand"||((q=this.__shady_parentNode)==null?void 0:q.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(ZNX)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var dH$=_.CT(['<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>']),Fb2=_.$mH(dH$);Fb2.setAttribute("style","display: none;");document.head.appendChild(Fb2.content);var mHH;var aXR;var V0X;var XH0;_.ys({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Ed],configure:function(g){var u=g.node,q=u.getBoundingClientRect().height;return this._effect=new KeyframeEffect(u,[{height:q/2+"px"},{height:q+"px"}],this.timingFromConfig(g))}});
_.ys({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Ed],configure:function(g){var u=g.node,q=u.getBoundingClientRect().width;return this._effect=new KeyframeEffect(u,[{width:q/2+"px"},{width:q+"px"}],this.timingFromConfig(g))}});
_.ys({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Ed],configure:function(g){var u=g.node,q=u.getBoundingClientRect().width;return this._effect=new KeyframeEffect(u,[{width:q+"px"},{width:q-q/20+"px"}],this.timingFromConfig(g))}});
_.ys({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Ed],configure:function(g){var u=g.node,q=u.getBoundingClientRect().height;this.setPrefixedProperty(u,"transformOrigin","0 0");return this._effect=new KeyframeEffect(u,[{height:q+"px",transform:"translateY(0)"},{height:q/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(g))}});var cI={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},ryR=function(){};
_.P=ryR.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._focusBlurHandler=function(){};
_.P._changedControlState=function(){};
_.P._setFocused=function(){};
ryR=_.ys({_template:function(){if(XH0!==void 0)return XH0;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;V0X===void 0&&(V0X=document.createElement("template"));var Q=V0X;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return XH0=g},
is:"tp-yt-paper-menu-button",behaviors:[_.n8,_.kI],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:cI.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:cI.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:cI.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 g=_.Eg(this.$.content).getDistributedNodes(),u=0,q=g.length;u<q;u++)if(g[u].nodeType===Node.ELEMENT_NODE)return g[u]},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(g,u){g?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):u!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(g){_.kI._disabledChanged.apply(this,arguments);g&&this.opened&&this.close()},
__onIronOverlayCanceled:function(g){var u=this.$.trigger;_.Eg(g.detail).path.indexOf(u)>-1&&g.preventDefault()}});
Object.keys(cI).forEach(function(g){ryR[g]=cI[g]});var Wbn=_.ox.IronButtonState,TXn=(0,_.ug)(HTMLElement);
_.ys({_template:function(){if(aXR!==void 0)return aXR;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;mHH===void 0&&(mHH=document.createElement("template"));var Q=mHH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return aXR=g},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Wbn,_.kI,w5,_.Ut,_.qs],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(g){var u=(0,_.j7)(this);u.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:g});u.shadowRoot.appendChild(g);return TXn.prototype._attachDom.call(this,g)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var g=this.contentElement;g&&g.selectedItem&&this._setSelectedItem(g.selectedItem)},
get contentElement(){for(var g=_.Eg(this.$.content).getDistributedNodes(),u=0,q=g.length;u<q;u++)if(g[u].nodeType===Node.ELEMENT_NODE)return g[u]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(g){this._setSelectedItem(g.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(g){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g)===this&&this.open()},
_selectedItemChanged:function(g){var u="";g?u=g.label||g.getAttribute("label")||g.textContent.trim():u="";this.value=u;this._setSelectedItemLabel(u)},
_computeMenuVerticalOffset:function(g,u){return u?u:g?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var g=this.opened?"true":"false",u=this.contentElement;u&&u.setAttribute("aria-expanded",g)},
_computeLabelClass:function(g,u,q){var Q="label";if(g)q&&(Q+=" label-is-hidden");else if(q||u)Q+=" label-is-floating";return Q},
_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 hx0;var YQ$;_.ys({is:"tp-yt-paper-icon-button",_template:function(){if(YQ$!==void 0)return YQ$;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;hx0===void 0&&(hx0=document.createElement("template"));var Q=hx0;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return YQ$=g},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.G0$],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(g,u){var q=this.getAttribute("aria-label");q&&u!=q||this.setAttribute("aria-label",g)}});var ONX;var Kb0;_.HI=[L3Z,_.kI,{hostAttributes:{role:"option",tabindex:"0"}}];_.ys({_template:function(){if(Kb0!==void 0)return Kb0;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;ONX===void 0&&(ONX=document.createElement("template"));var Q=ONX;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Kb0=g},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.HI]});var xHn;var BXo;var zx8={attached:function(){this.fire("addon-attached")},
update:function(){}};var n20=1,k0$=1,SQn=1,o2$=[_.kI,_.n8,{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();!Fk&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(g,u){g?g=g+" "+u:g=u;return g},
_onAddonAttached:function(g){g=_.Eg(g).rootTarget;if(g.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,g.id);else{var u="paper-input-add-on-"+k0$++;g.id=u;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,u)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(g){_.kI._focusBlurHandler.call(this,g);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var g=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",g);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(g){try{var u=this.inputElement.selectionStart;this.value=g;this.inputElement.selectionStart=u;this.inputElement.selectionEnd=u}catch(q){this.value=g}},
_computeAlwaysFloatLabel:function(g,u){return u||g},
_updateAriaLabelledBy:function(){var g=_.Eg(this.root).querySelector("label");if(g){if(g.id)var u=g.id;else u="paper-input-label-"+n20++,g.id=u;this._ariaLabelledBy=u}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+SQn++)},
_onChange:function(g){this.shadowRoot&&this.fire(g.type,{sourceEvent:g},{node:this,bubbles:g.bubbles,cancelable:g.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var g=document.activeElement;g instanceof HTMLElement&&g!==document.body&&g!==document.documentElement||this._focusableElement.focus()}}}];var UHn;var gkn;_.ys({_template:function(){if(gkn!==void 0)return gkn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;UHn===void 0&&(UHn=document.createElement("template"));var Q=UHn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return gkn=g},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[zx8],properties:{_charCounterStr:{type:String,value:"0"}},update:function(g){if(g.inputElement){g.value=g.value||"";var u=g.value.toString().length.toString();g.inputElement.hasAttribute("maxlength")&&(u+="/"+g.inputElement.getAttribute("maxlength"));this._charCounterStr=u}}});var uyx;var qOx;_.ys({_template:function(){if(qOx!==void 0)return qOx;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;uyx===void 0&&(uyx=document.createElement("template"));var Q=uyx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return qOx=g},
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 qw(this.attrForValue)},get _inputElement(){return _.Eg(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(g){this._addons||(this._addons=[]);g=g.target;this._addons.indexOf(g)===-1&&(this._addons.push(g),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(g){this._handleValueAndAutoValidate(g.target)},
_onValueChanged:function(g){var u=g.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,u.value===void 0||u.value===""))return;this._handleValueAndAutoValidate(g.target)},
_handleValue:function(g){var u=this._inputElementValue;u||u===0||g.type==="number"&&!g.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:g,value:u,invalid:this.invalid})},
_handleValueAndAutoValidate:function(g){this.autoValidate&&g&&(this.invalid=!(g.validate?g.validate(this._inputElementValue):g.checkValidity()));this._handleValue(g)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(g){if(this._addons)for(var u,q=0;u=this._addons[q];q++)u.update(g)},
_computeInputContentClass:function(g,u,q,Q,L){var E="input-content";g?(L&&(E+=" label-is-hidden"),Q&&!this.noUnfloatedLabelError&&(E+=" is-invalid")):(g=this.querySelector("label"),u||L?(E+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",Q?E+=" is-invalid":q&&(E+=" label-is-highlighted")):(g&&(this.$.labelAndInputContainer.style.position="relative"),Q&&!this.noUnfloatedLabelError&&(E+=" is-invalid")));q&&(E+=" focused");return E},
_computeUnderlineClass:function(g,u){var q="underline";u?q+=" is-invalid":g&&(q+=" is-highlighted");return q},
_computeAddOnContentClass:function(g,u){var q="add-on-content";u?q+=" is-invalid":g&&(q+=" is-highlighted");return q}});var QVW;var L2n;_.ys({_template:function(){if(L2n!==void 0)return L2n;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;QVW===void 0&&(QVW=document.createElement("template"));var Q=QVW;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return L2n=g},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[zx8],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(g){this._setInvalid(g.invalid)}});_.ys({is:"tp-yt-paper-input",_template:function(){if(BXo!==void 0)return BXo;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;xHn===void 0&&(xHn=document.createElement("template"));var Q=xHn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return BXo=g},
behaviors:[o2$,_.Ut],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 Eko;var PJn;_.ys({_template:function(){if(PJn!==void 0)return PJn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=
g.content,q=u.insertBefore;Eko===void 0&&(Eko=document.createElement("template"));var Q=Eko;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return PJn=g},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.HI]});var NJb;var sV5;_.ys({_template:function(){if(sV5!==void 0)return sV5;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
var u=g.content,q=u.insertBefore;NJb===void 0&&(NJb=document.createElement("template"));var Q=NJb;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return sV5=g},
is:"tp-yt-paper-item-body"});var yz2;var vk0;var DPH=function(){};
_.P=DPH.prototype;_.P.indexOf=function(){};
_.P.selectPrevious=function(){};
_.P.selectNext=function(){};
_.P.selectIndex=function(){};
_.P.forceSynchronousItemUpdate=function(){};
_.P._checkFallback=function(){};
_.P._addListener=function(){};
_.P._removeListener=function(){};
_.P._activateEventChanged=function(){};
_.P._updateItems=function(){};
_.P._selectSelected=function(){};
_.P._filterItem=function(){};
_.P._valueToItem=function(){};
_.P._valueToIndex=function(){};
_.P._indexToValue=function(){};
_.P._valueForItem=function(){};
_.P._observeItems=function(){};
_.P._itemActivate=function(){};
_.P.multiChanged=function(){};
_.P._updateAttrForSelected=function(){};
_.P._updateSelected=function(){};
_.P._selectMulti=function(){};
_.P._selectionChange=function(){};
_.P._toggleSelected=function(){};
_.P._valuesToItems=function(){};
_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P.select=function(){};
_.P._resetTabindices=function(){};
_.P._updateMultiselectable=function(){};
_.P._focusWithKeyboardEvent=function(){};
_.P._clearSearchText=function(){};
_.P._focusPrevious=function(){};
_.P._focusNext=function(){};
_.P._applySelection=function(){};
_.P._focusedItemChanged=function(){};
_.P._onIronItemsChanged=function(){};
_.P._onShiftTabDown=function(){};
_.P._onFocus=function(){};
_.P._onUpKey=function(){};
_.P._onDownKey=function(){};
_.P._onEscKey=function(){};
_.P._onKeydown=function(){};
_.P._activateHandler=function(){};
_.P._disabledChanged=function(){};
_.P._setSelectedItem=function(){};
_.P._setItems=function(){};
_.P._setSelectedItems=function(){};
_.P._setFocusedItem=function(){};
DPH=_.ys({_template:function(){if(vk0!==void 0)return vk0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
var u=g.content,q=u.insertBefore;yz2===void 0&&(yz2=document.createElement("template"));var Q=yz2;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return vk0=g},
is:"tp-yt-paper-listbox",behaviors:[DBx],hostAttributes:{role:"listbox"}});var plx;var JzR;var jVH={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(g,u){return[g||u?"active":"",u?"cooldown":""].join(" ")},
__activeChanged:function(g,u){this.__setAriaHidden(!g);this.__coolingDown=!g&&u},
__altChanged:function(g){this.setAttribute("aria-label",g||"loading")},
__setAriaHidden:function(g){g?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.ys({_template:function(){if(JzR!==void 0)return JzR;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;plx===void 0&&(plx=document.createElement("template"));var Q=plx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return JzR=g},
is:"tp-yt-paper-spinner",behaviors:[jVH]});var fBX;var Mkn;_.ys({_template:function(){if(Mkn!==void 0)return Mkn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;fBX===void 0&&(fBX=document.createElement("template"));var Q=fBX;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Mkn=g},
is:"tp-yt-paper-spinner-lite",behaviors:[jVH]});var tkH;var ey$;_.ys({_template:function(){if(ey$!==void 0)return ey$;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;tkH===void 0&&(tkH=document.createElement("template"));var Q=tkH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return ey$=g},
is:"tp-yt-paper-tab",behaviors:[_.kI,_.ox.IronButtonState,w5],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 g=_.Eg(this).parentNode;return!!g&&!!g.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(g){if(this.link){var u=this.queryEffectiveChildren("a");u&&g.target!==u&&u.click()}}});var GA8;var $Pa;var Ryb=_.CT(['<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>']),wln=_.$mH(Ryb);document.head.appendChild(wln.content);_.ys({_template:function(){if($Pa!==void 0)return $Pa;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;GA8===void 0&&(GA8=document.createElement("template"));var Q=GA8;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return $Pa=g},
is:"tp-yt-paper-tabs",behaviors:[_.LJ,_.JL0],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(g){_.Eg(this).querySelectorAll("tp-yt-paper-tab").forEach(g?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(g){g.setAttribute("noink","")},
_removeNoinkAttribute:function(g){g.removeAttribute("noink")},
_computeScrollButtonClass:function(g,u,q,Q){return!u||q?"hidden":g?Q?"hidden":"not-visible":""},
_computeTabsContentClass:function(g,u){var q="tabs-content";g&&(q+=" scrollable");if(!g||u)q+=" fit-container";return q},
_computeSelectionBarClass:function(g,u){var q="selection-bar";g?q+=" hidden":u&&(q+=" align-bottom");return q},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(g){return""+g},
_onIronSelect:function(g){this._tabChanged(g.detail.item,this._previousTab);this._previousTab=g.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();_.QG._activateHandler.apply(this,arguments)},
_scheduleActivation:function(g,u){this._pendingActivationItem=g;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,u)},
_delayedActivationHandler:function(){var g=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;g.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(g){g.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(g,u){this.scrollable&&this._affectScroll(u&&-u.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(g){this.$.tabsContainer.scrollLeft+=g;g=this.$.tabsContainer.scrollLeft;this._leftHidden=g===0||this.hideScrollButtons;this._rightHidden=g===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(g,u){if(g){var q=this.$.tabsContent.getBoundingClientRect(),Q=q.width,L=g.getBoundingClientRect();q=L.left-q.left;this._pos={width:this._calcPercent(L.width,Q),left:this._calcPercent(q,Q)};if(this.noSlide||u==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var E=u.getBoundingClientRect();u=this.items.indexOf(u);g=this.items.indexOf(g);this.$.selectionBar.classList.add("expand");
g=u<g;this._isRTL&&(g=!g);g?this._positionBar(this._calcPercent(L.left+L.width-E.left,Q)-5,this._left):this._positionBar(this._calcPercent(E.left+E.width-L.left,Q)-5,this._calcPercent(q,Q)+5);this.scrollable&&this._scrollToSelectedIfNeeded(L.width,q)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(g,u){u-=this.$.tabsContainer.scrollLeft;u<0?this.$.tabsContainer.scrollLeft+=u:(u+=g-this.$.tabsContainer.offsetWidth,u>0&&(this.$.tabsContainer.scrollLeft+=u))},
_calcPercent:function(g,u){return 100*g/u},
_positionBar:function(g,u){g=g||0;u=u||0;this._width=g;this._left=u;this.transform("translateX("+u+"%) scaleX("+g/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var g=this.$.selectionBar.classList;g.contains("expand")?(g.remove("expand"),g.add("contract"),this._positionBar(this._pos.width,this._pos.left)):g.contains("contract")&&g.remove("contract")}});var czZ;var HYZ;_.ys({_template:function(){if(HYZ!==void 0)return HYZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;czZ===void 0&&(czZ=document.createElement("template"));var Q=czZ;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return HYZ=g},
is:"tp-yt-paper-textarea",behaviors:[o2$,_.Ut],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(g){this.$.input.textarea.selectionStart=g},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(g){this.$.input.textarea.selectionEnd=g},_ariaLabelledByChanged:function(g){this._focusableElement.setAttribute("aria-labelledby",g)},
_ariaDescribedByChanged:function(g){this._focusableElement.setAttribute("aria-describedby",g)},
get _focusableElement(){return this.inputElement.textarea}});var Az8;var ZYR;/*

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 lBa=function(){};
_.P=lBa.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
lBa=_.ys({is:"tp-yt-paper-toggle-button",_template:function(){if(ZYR!==void 0)return ZYR;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Az8===void 0&&(Az8=document.createElement("template"));var Q=Az8;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return ZYR=g},
behaviors:[_.$Ho],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");_.xt(this,function(){_.IK(this,"pan-y")})},
_ontrack:function(g){g=g.detail;g.state==="start"?this._trackStart(g):g.state==="track"?this._trackMove(g):g.state==="end"&&this._trackEnd(g)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(g){g=g.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+g:g)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+g:g));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 g=w5._createRipple();g.id="ink";g.setAttribute("recenters","");g.classList.add("circle","toggle-ink");return g}});var IBx;var iY5;_.ys({_template:function(){if(iY5!==void 0)return iY5;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;IBx===void 0&&(IBx=document.createElement("template"));var Q=IBx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return iY5=g},
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 g=_.Eg(this).parentNode,u=_.Eg(this).getOwnerRoot(),q;this.for?q=_.Eg(u).querySelector("#"+this.for):q=g.nodeType==Node.DOCUMENT_FRAGMENT_NODE?u.host:g;return q},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(g){g==="entry"?this.show():g==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Eg(this).textContent.trim()===""){for(var g=!0,u=_.Eg(this).getEffectiveChildNodes(),q=0;q<u.length;q++)if(u[q].textContent.trim()!==""){g=!1;break}if(g)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 g=this.offset;this.marginTop!=14&&this.offset==14&&(g=this.marginTop);var u=this.offsetParent.getBoundingClientRect(),q=this._target.getBoundingClientRect(),Q=this.getBoundingClientRect(),L=(q.width-Q.width)/2,E=(q.height-Q.height)/2,y=q.left-u.left,v=q.top-u.top;switch(this.position){case "top":var J=y+L;var f=v-Q.height-g;break;case "bottom":J=y+L;f=v+q.height+g;break;case "left":J=y-Q.width-g;f=v+E;break;case "right":J=y+q.width+
g,f=v+E}this.fitToVisibleBounds?(u.left+J+Q.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,J)+"px",this.style.right="auto"),u.top+f+Q.height>window.innerHeight?(this.style.bottom=u.height+"px",this.style.top="auto"):(this.style.top=Math.max(-u.top,f)+"px",this.style.bottom="auto")):(this.style.left=J+"px",this.style.top=f+"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(g){g!==500&&this.updateStyles({"--paper-tooltip-delay-in":g+"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(g){if(g==="entry"&&this.animationEntry!=="")return this.animationEntry;if(g==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[g]&&typeof this.animationConfig[g][0].name==="string"){if(this.animationConfig[g][0].timing&&this.animationConfig[g][0].timing.delay&&this.animationConfig[g][0].timing.delay!==0){var u=this.animationConfig[g][0].timing.delay;g==="entry"?this.updateStyles({"--paper-tooltip-delay-in":u+"ms"}):g==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":u+
"ms"})}return this.animationConfig[g][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 CJb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(CJb,_.fv);var bYa=_.lO(CJb,[0,_.h2]);var AO=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(AO,_.fv);var dPZ=[3,4],F25=[5,6];var mPi=[0,dPZ,F25,_.Y2,-1,_.rm,_.OQ,-1,T0X,heR];var aB8=_.lO(AO,mPi),Vk0=_.iO(mPi);var Xl0=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Xl0,_.fv);var rz0=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(rz0,_.fv);var W20=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(W20,_.fv);var TJ2=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(TJ2,_.fv);var hyb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(hyb,_.fv);var Z8=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Z8,_.fv);Z8.prototype.getSource=function(){return _.j$(this,1)};
Z8.prototype.getMessage=function(){return _.J2(this,4)};
Z8.prototype.getData=function(){return _.o0(this,hyb,8)};var YOZ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(YOZ,_.fv);var lG=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(lG,_.fv);var IB=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(IB,_.fv);var iG=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(iG,_.fv);iG.prototype.getUrl=function(){return _.J2(this,1)};
iG.prototype.setUrl=function(g){return _.EU(this,1,g)};
iG.prototype.hasUrl=function(){return _.C9(_.Uc(this,1))!=null};var OY$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(OY$,_.fv);var K2X=[3];var xPi=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(xPi,_.fv);var CJ=function(g){var u=new xPi;return _.Uk(u,2,g)};
xPi.prototype.getLanguage=function(){return M$(this,4,bG)};
var BJo=function(g){var u=CJ(1);return _.mG(u,6,bG,g)},bG=[3,
4,5,6];var zyH=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(zyH,_.fv);var d5=function(g){var u=new zyH;return _.Uk(u,1,g)},FM=function(g,u){return _.mG(g,2,nka,u)},nka=[2,
3,4,5];var kAa=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(kAa,_.fv);var md=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(md,_.fv);var SOi=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(SOi,_.fv);var oki=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(oki,_.fv);var UP5=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(UP5,_.fv);var goW=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(goW,_.fv);var uvn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(uvn,_.fv);var qGX=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(qGX,_.fv);var aB=function(g){return _.o0(g,IB,5)};var QQb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(QQb,_.fv);QQb.prototype.getValue=function(){return DP(this,1)};var Lp$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Lp$,_.fv);var VG=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(VG,_.fv);VG.prototype.getMetadata=function(){return _.t2(this,goW,7,XM)};
VG.prototype.hasMetadata=function(){return _.QE(this,goW,7,XM)};
var Eox=_.vAq(VG),XM=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var r5=function(g){this.JSC$12483_name_=g;this.files_=[];this.directories_=[];this.directoryMap_={}};
r5.prototype.getName=function(){return this.JSC$12483_name_};var To=function(g,u){this.callback_=u;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new r5("");PEo(this,g,this.rootDirectory_);WI(this)},PEo=function(g,u,q){for(var Q=0;Q<u.length;Q++){var L=u[Q];
L.isFile?(g.fileOps_++,L.file((0,_.EH)(g.handleFileSuccess_,g,q),(0,_.EH)(g.handleFileError_,g))):g.unscannedDirectories_.push(new N28(L,q))}},WI=function(g){if(g.unscannedDirectories_.length>0&&g.directoryOps_<5&&!g.hasError_){g.directoryOps_++;
var u=g.unscannedDirectories_.shift(),q=u.entry,Q=new r5(q.name);u=u.parent;u.directoryMap_[Q.getName()]=Q;u.directories_.push(Q);q=q.createReader();q.readEntries((0,_.EH)(g.handleDirectorySuccess_,g,q,Q),(0,_.EH)(g.handleDirectoryError_,g))}g.directoryOps_!=0||g.fileOps_!=0||g.unscannedDirectories_.length!=0&&!g.hasError_||g.callback_(g.rootDirectory_.files_,g.rootDirectory_.directories_,g.hasError_)};
To.prototype.handleDirectorySuccess_=function(g,u,q){PEo(this,q,u);q.length==0?(this.directoryOps_--,WI(this)):g.readEntries((0,_.EH)(this.handleDirectorySuccess_,this,g,u),(0,_.EH)(this.handleDirectoryError_,this))};
To.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;WI(this)};
To.prototype.handleFileSuccess_=function(g,u){g.files_.push(u);this.fileOps_--;WI(this)};
To.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;WI(this)};
var N28=function(g,u){this.entry=g;this.parent=u};var hO=function(g){_.A5.call(this);_.Z1(g,"drop",this.onObjectsDropped_,!1,this);_.Z1(g,"dragenter",this.onFilesDragged_,!1,this);_.Z1(g,"dragover",this.onFilesDragged_,!1,this);_.Z1(g,"dragleave",this.onDragLeave_,!1,this);_.Z1(g,"dragend",this.onDragLeave_,!1,this)};
_.TK(hO,_.A5);var sQn=function(g,u){_.YF.call(this,"f");this.files=g;this.directories=u};
_.TK(sQn,_.YF);var y$$=function(){_.YF.call(this,"h")};
_.TK(y$$,_.YF);var vo$=function(){_.YF.call(this,"i")};
_.TK(vo$,_.YF);var D6Z=function(){_.YF.call(this,"g")};
_.TK(D6Z,_.YF);hO.prototype.onObjectsDropped_=function(g){var u=this;g.preventDefault();var q=g.event_.dataTransfer;if((g=q&&q.items)&&g.length>0&&g[0].webkitGetAsEntry){q=[];for(var Q=[],L=0;L<g.length;L++){var E=g[L].webkitGetAsEntry();E?q.push(E):Q.push(g[L])}new To(q,function(y,v,J){J?u.dispatchEvent(new D6Z("Error occurred while reading from the file system.")):u.dispatchEvent(new sQn(y,v,Q))})}else(g=q&&q.files)&&this.dispatchEvent(new sQn(Array.from(g),[]))};
hO.prototype.onFilesDragged_=function(g){g.type==="dragenter"&&this.dispatchEvent(new y$$);g.preventDefault()};
hO.prototype.onDragLeave_=function(){this.dispatchEvent(new vo$)};var pti=function(g,u){this.JSC$12506_name_=g;this.inputElement_=u};
pti.prototype.getName=function(){return this.JSC$12506_name_};
pti.prototype.getInputElement=function(){return this.inputElement_};var Yf=function(g,u,q){u=u===void 0?"single_file":u;q=q===void 0?[]:q;_.A5.call(this);this.overlayTarget_=g;this.parentOverlay_=g!=null?g.parentNode:_.oG("scotty-overlay-parent");this.selectorType_=u;this.acceptTypes_=q;this.overlay_=J$X(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.A(Yf,_.A5);
var J$X=function(g,u,q,Q){var L=document.createElement("input");L.setAttribute("type","file");L.setAttribute("name","Filedata");_.Z1(L,"change",g.onFilesSelected_,!1,g);q==="multiple_file"&&(L.multiple="true");q==="single_directory"&&(L.webkitdirectory="true");Q.length>0&&L.setAttribute("accept",Q.join(","));L.style.position="absolute";L.style.overflow="hidden";L.style.height="0px";L.style.width="0px";L.style.opacity="0";L.setAttribute("aria-hidden","true");L.setAttribute("tabIndex",-1);if(g.overlayTarget_!=
null)return L.style.height=u.offsetHeight+"px",L.style.width=u.offsetWidth+"px",g.parentOverlay_&&(g.parentOverlay_.style.position="relative"),_.cH(L,u),IA(L,new _.l7(u.offsetLeft,u.offsetTop)),L;g.parentOverlay_.appendChild(L);return L};
Yf.prototype.click=function(){this.overlay_.click()};
Yf.prototype.onFilesSelected_=function(g){a:{try{var u=(new XMLHttpRequest).upload!==void 0;break a}catch(f){}u=!1}if(u){var q;g=Array.from((q=g.target.files)!=null?q:[]);q=[];if(this.selectorType_==="single_directory"&&(_.u6||Ok||_.qM)){q=new r5("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(u=0;u<g.length;u++)for(var Q=g[u],L=Q.webkitRelativePath.split("/"),E=q,y=0;y<L.length;y++){var v=L[y];if(y==L.length-1){v!="."&&E.files_.push(Q);break}var J=E.directoryMap_[v];J==void 0&&(v=
J=new r5(v),E.directoryMap_[v.getName()]=v,E.directories_.push(v));E=J}q=q.directories_}this.dispatchEvent(new jQ2(g,q,null))}else g=g.target.value,g.match(/^c:\\fakepath\\/i)&&(g=g.substring(12)),this.dispatchEvent(new jQ2([],[],new pti(g,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=J$X(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var jQ2=function(g,u){_.YF.call(this,"j");this.files=g;this.directories=u};
_.A(jQ2,_.YF);var f9b=function(g){this.uploadUrl_=g};var MsR=function(){_.A5.call(this)};
_.TK(MsR,_.A5);var Od=function(g){_.YF.call(this,g)};
_.TK(Od,_.YF);var KJ=function(g){_.YF.call(this,g)};
_.TK(KJ,_.YF);var tsn=function(g,u,q,Q,L){_.A5.call(this);q=document.createElement("form");q.setAttribute("method",u);q.setAttribute("enctype","multipart/form-data");q.setAttribute("encoding","multipart/form-data");u=document.createElement("input");u.setAttribute("type","hidden");u.setAttribute("name","metadata");u.setAttribute("value",L);q.appendChild(u);q.appendChild(Q);this.JSC$12523_form_=q;g=new _.Ir(g);_.WD(g,"upload_protocol","multipart");this.JSC$12523_url_=g.toString();this.JSC$12523_request_=new yZ;this.state_=
"Ready";this.JSC$12523_errorDescription_=null;this.JSC$12523_eventHandler_=new _.NV(this);_.z$(this,this.JSC$12523_eventHandler_);this.JSC$12523_eventHandler_.listen(this.JSC$12523_request_,"success",this.onTransferSuccess_);this.JSC$12523_eventHandler_.listen(this.JSC$12523_request_,"error",this.onTransferError_)};
_.A(tsn,MsR);_.P=tsn.prototype;_.P.run=function(){this.state_="Transferring";var g=this.JSC$12523_request_,u=this.JSC$12523_form_;if(g.JSC$11790_active_)throw Error("ve");var q=new _.Ir(this.JSC$12523_url_||u.action);g.JSC$11790_form_=u;u=g.JSC$11790_form_;q=_.gt(q.toString());q!==void 0&&(u.action=q);l7a(g)};
_.P.getResponseCode=function(){return null};
_.P.getResponseText=function(){return this.JSC$12523_request_&&this.JSC$12523_request_.getResponseText()||null};
_.P.JSC$30533_getErrorDescription=function(){return this.JSC$12523_errorDescription_};
_.P.cancel=function(){this.JSC$12523_request_&&this.JSC$12523_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Od("o"))};
_.P.pause=function(){};
_.P.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Od("l"))};
_.P.onTransferError_=function(){this.JSC$12523_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Od("n"))};var xf=function(){_.GA.call(this)};
_.A(xf,_.GA);xf.prototype.createXhr=function(){var g=_.GA.prototype.createXhr.call(this);g.upload&&(g.upload.onprogress=(0,_.EH)(this.onProgress_,this));return g};
xf.prototype.onProgress_=function(g){this.dispatchEvent(g)};var eko=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},$6W=function(g,u){var q=g.attempt_+1;
if(g.maxAttempts_>0&&q>g.maxAttempts_)return!1;q==0?u():g.delayCallId_=MP(function(){g.delayCallId_=null;u()},GGZ(g),g);
g.attempt_=q;return!0};
eko.prototype.reset=function(){this.delayCallId_&&_.Qq.clearTimeout(this.delayCallId_);this.attempt_=-1};
var GGZ=function(g){var u=250*Math.pow(2,g.attempt_);g.maxDelayMs_>=0&&(u=Math.min(u,g.maxDelayMs_));return u};var e0m=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var BI=function(){_.A5.call(this);this.JSC$12533_request_=this.state_=null;this.JSC$12533_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12533_bytesTransferred_=0;this.retryIterator_=new eko;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12533_errorDescription_=null;this.JSC$12533_eventHandler_=new _.NV(this);_.z$(this,this.JSC$12533_eventHandler_);this.JSC$12533_url_=this.blob_=null;this.JSC$12533_method_=void 0;this.chunkSize_=this.JSC$12533_metadata_=
this.JSC$12533_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12533_responseText_=this.JSC$12533_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.TK(BI,MsR);_.P=BI.prototype;_.P.run=function(){zo(this)};
_.P.getResponseCode=function(){return this.JSC$12533_responseCode_};
_.P.getResponseText=function(){return this.JSC$12533_responseText_};
_.P.JSC$30533_getErrorDescription=function(){return this.JSC$12533_errorDescription_};
_.P.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12533_eventHandler_.removeAll();this.JSC$12533_request_&&this.JSC$12533_request_.abort();this.retryIterator_.reset();var g=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(g==="Upload"||g==="Query")g=new xf,g.JSC$10103_withCredentials_=this.JSC$12533_withCredentials_,g.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12533_bytesTransferred_=
0;this.dispatchEvent(new Od("o"))}};
_.P.pause=function(){this.pauseRequested_=!0};
var zo=function(g){var u=g.state_;g.pauseRequested_?(g.pauseRequested_=!1,g.stateAfterUnpausing_=u,g.state_="Paused"):$6W(g.retryIterator_,function(){switch(g.state_){case "Start":g.JSC$12533_request_=new xf;var q=_.pH.clone(g.JSC$12533_headers_);g.blob_.size!=null&&(q["Content-Length"]=g.blob_.size);q=GoF(q);q["X-Goog-Upload-Protocol"]="resumable";q["X-Goog-Upload-Command"]="start";g.JSC$12533_eventHandler_.removeAll();g.JSC$12533_eventHandler_.listen(g.JSC$12533_request_,"complete",g.onStartComplete_);
g.JSC$12533_request_.JSC$10103_withCredentials_=g.JSC$12533_withCredentials_;g.JSC$12533_request_.send(g.JSC$12533_url_,g.JSC$12533_method_,g.JSC$12533_metadata_,q);g.lastCommandResponseCode_=null;g.dispatchEvent(new KJ("q"));break;case "Upload":q=g.transferHandle_.uploadUrl_;var Q=g.blob_.size;if(t_W()){var L=g.chunkSize_;var E=g.offset_+L>=Q;Q=M_0(g.blob_,g.offset_,E?Q:g.offset_+L)}else g.offset_=0,Q=g.blob_,E=!0;g.JSC$12533_request_=new xf;g.JSC$12533_request_.JSC$10103_withCredentials_=g.JSC$12533_withCredentials_;
g.JSC$12533_eventHandler_.removeAll();g.JSC$12533_eventHandler_.listen(g.JSC$12533_request_,"progress",g.onUploadProgress_);L=(0,_.EH)(g.JSC$12535_onUploadComplete_,g,g.offset_+Q.size,E);g.JSC$12533_eventHandler_.listen(g.JSC$12533_request_,"complete",L);g.lastCommandResponseCode_=null;g.dispatchEvent(new KJ("q"));E=Object.assign({},g.JSC$12533_headers_||{},{"X-Goog-Upload-Command":"upload"+(E?", finalize":""),"X-Goog-Upload-Offset":g.offset_});g.JSC$12533_request_.send(q,"POST",Q,E);break;case "Query":g.JSC$12533_request_=
new xf;g.JSC$12533_eventHandler_.removeAll();g.JSC$12533_eventHandler_.listen(g.JSC$12533_request_,"complete",g.onQueryComplete_);q=Object.assign({},g.JSC$12533_headers_||{},{"X-Goog-Upload-Command":"query"});g.JSC$12533_request_.send(g.transferHandle_.uploadUrl_,"POST","",q);g.lastCommandResponseCode_=null;g.dispatchEvent(new KJ("q"));break;default:throw Error("nf");}})||nJ(g,"Transfer encountered too many consecutive failures.")},nJ=function(g,u){g.state_="Error";
g.JSC$12533_errorDescription_=u;g.dispatchEvent(new Od("n"))};
BI.prototype.onStartComplete_=function(g){var u=g.target;this.lastCommandResponseCode_=u.getStatus();this.dispatchEvent(new KJ("r"));if(Rk5(u))wt2(this,u);else if(c$o(u)){g=Kh(g.target.getAllResponseHeaders());for(var q in g)_.N3(q.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Od("m"));q=NK(g,"X-Goog-Upload-URL");g=(g=NK(g,"X-Goog-Upload-Chunk-Granularity"))?parseInt(g,10):1;q===void 0||isNaN(g)||g<=0?nJ(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
g)*g,this.transferHandle_=new f9b(q),this.dispatchEvent(new Od("p")),this.state_="Upload",this.retryIterator_.reset(),zo(this))}else zo(this)};
BI.prototype.onUploadProgress_=function(g){this.JSC$12533_bytesTransferred_=this.offset_+g.loaded;this.dispatchEvent(new Od("k"))};
BI.prototype.JSC$12535_onUploadComplete_=function(g,u,q){var Q=this,L,E;return _.D(function(y){switch(y.nextAddress){case 1:L=q.target;Q.lastCommandResponseCode_=L.getStatus();Q.dispatchEvent(new KJ("r"));if(Hjb(L)||L.getStatus()==404)return Q.JSC$12533_bytesTransferred_=g,wt2(Q,L),y.return();if(c$o(L)){y.jumpTo(2);break}if(!(E=Q.detectCorruptedBlobEnabled_)){y.jumpTo(3);break}return y.yield(A$x(Q),4);case 4:E=y.yieldResult;case 3:if(E)return nJ(Q,"Blob has been modified or corrupted."),y.return();
Q.requireUploadRequestModification_=L.getStatus()==400;Q.state_="Query";zo(Q);return y.return();case 2:if(u)return nJ(Q,"Got a non-final success response after issuing a finalize command."),y.return();Q.JSC$12533_bytesTransferred_=g;Q.offset_=g;Q.retryIterator_.reset();zo(Q);return y.return()}})};
BI.prototype.onQueryComplete_=function(g){var u=g.target;this.lastCommandResponseCode_=u.getStatus();this.dispatchEvent(new KJ("r"));Rk5(u)?(u.getStatus()===200&&(this.JSC$12533_bytesTransferred_=this.blob_.size),wt2(this,u)):c$o(u)?(g=Kh(g.target.getAllResponseHeaders()),g=parseInt(NK(g,"X-Goog-Upload-Size-Received"),10),isNaN(g)?nJ(this,"Server did not respond with current offset."):g<this.offset_?nJ(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
g+"."):this.requireUploadRequestModification_&&this.offset_===g?nJ(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<g&&this.retryIterator_.reset(),this.offset_=this.JSC$12533_bytesTransferred_=g,this.state_="Upload",zo(this))):zo(this)};
var wt2=function(g,u){g.JSC$12533_responseCode_=u.getStatus();var q=Kh(u.getAllResponseHeaders());$sm(q);g.JSC$12533_responseText_=u.getResponseText();g.state_="Response received";g.dispatchEvent(new Od("l"))},c$o=function(g){var u=g.getStatus();
g=Kh(g.getAllResponseHeaders());g=NK(g,"X-Goog-Upload-Status");return u===200&&g==="active"},Hjb=function(g){g=Kh(g.getAllResponseHeaders());
return NK(g,"X-Goog-Upload-Status")==="final"},Rk5=function(g){if(Hjb(g))return!0;
g=g.getStatus();return g>=400&&g<500},A$x=function(g){var u;
return _.D(function(q){if(q.nextAddress==1){if(!g.blob_||g.originalBlobSize_<=0)return q.return(!1);if(g.blob_.size!==g.originalBlobSize_)return q.return(!0);_.b8(q,2);if(u=M_0(g.blob_,0,1)){var Q=q.yield,L=new p8,E=YE$(L);L.reader_.readAsBinaryString(u);q=Q.call(q,E,4)}else q=q.return(!0);return q}if(q.nextAddress!=2)return q.return(g.blob_.size!==g.originalBlobSize_);_.rt(q);return q.return(!0)})};var ZjW=function(g,u,q,Q,L,E){_.A5.call(this);this.payload_=Q;this.JSC$12536_url_=g;this.JSC$12536_method_=u;this.JSC$12536_headers_=q;this.JSC$12536_metadata_=L;this.encoding_=E||"binary";g=new _.Qj;this.boundary_="uploader-"+Vx()+"-"+g.JSC$11640_toIsoString();this.JSC$12536_responseText_=this.JSC$12536_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12536_errorDescription_=null;this.JSC$12536_eventHandler_=new _.NV(this);_.z$(this,this.JSC$12536_eventHandler_)};
_.A(ZjW,MsR);_.P=ZjW.prototype;
_.P.run=function(){var g=_.pH.clone(this.JSC$12536_headers_);this.payload_.length!=null&&(g["Content-Length"]=this.payload_.length);g=GoF(g);g["X-Goog-Upload-Protocol"]="multipart";g["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new xf;this.JSC$12536_eventHandler_.removeAll();this.JSC$12536_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12536_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12536_url_,this.JSC$12536_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12536_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",g)};
_.P.getResponseCode=function(){return this.JSC$12536_responseCode_};
_.P.getResponseText=function(){return this.JSC$12536_responseText_};
_.P.JSC$30533_getErrorDescription=function(){return this.JSC$12536_errorDescription_};
_.P.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12536_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Od("o")))};
_.P.pause=function(){};
_.P.onTransferProgress_=function(){this.dispatchEvent(new Od("k"))};
_.P.onTransferComplete_=function(g){var u=g.target.getStatus();u===void 0||u===-1?(this.JSC$12536_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Od("n"))):(this.JSC$12536_responseCode_=u,g=g.target,u=Kh(g.getAllResponseHeaders()),$sm(u),this.JSC$12536_responseText_=g.getResponseText(),this.state_="Complete",this.dispatchEvent(new Od("l")))};_.l9x=function(g,u,q,Q){Q=Q===void 0?!1:Q;if(q instanceof pti)return new tsn(g,"POST",u,q.getInputElement(),"");if(typeof q==="string"||q instanceof String)return new ZjW(g,"POST",u,q,"");var L=new BI(void 0);L.JSC$12533_url_=g;L.JSC$12533_method_="POST";L.JSC$12533_headers_=u;L.blob_=q;L.originalBlobSize_=q.size;L.JSC$12533_metadata_="";Q&&(L.JSC$12533_withCredentials_=Q);L.state_="Start";return L};var kf=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(kf,_.fv);_.P=kf.prototype;_.P.getEnableSsEngine=function(){return _.vM(this,2)};
_.P.getEnableAwr=function(){return _.vM(this,3)};
_.P.getAlohaAutoGaRollout=function(){return _.vM(this,5)};
_.P.getEnableConfigurator=function(){return _.vM(this,6)};
_.P.getEnableMweb=function(){return _.vM(this,7)};
var ijR=function(){var g=I9i();return _.vX(g,7,!0)};
kf.prototype.getEnableCtlConsentCheckbox=function(){return _.vM(this,8)};
kf.prototype.getEnableIframe=function(){return _.vM(this,9)};
var I9i=function(){var g=new kf;g=_.vX(g,5,!0);g=_.vX(g,2,!0);g=_.vX(g,4,!1);g=_.vX(g,8,!0);return _.vX(g,9,!0)};
kf.prototype.getEnableScreenshotNudge=function(){return _.vM(this,10)};
var CEn=function(){var g=ijR();return _.vX(g,10,!0)};
kf.prototype.getEnableWebStartupConfigEndpoint=function(){return _.vM(this,11)};
kf.prototype.getEnableJunkNudge=function(){return _.vM(this,12)};
var WdT=function(){var g=CEn();return _.vX(g,12,!0)};
_.P=kf.prototype;_.P.getEnableConfiguratorLocale=function(){return _.vM(this,13)};
_.P.getEnableTinyNoPointer=function(){return _.vM(this,14)};
_.P.getEnableSupportSessionLogging=function(){return _.vM(this,15)};
_.P.getEnableFileUploadForScreenshot=function(){return _.vM(this,16)};
_.P.getEnableDirectDeflectionForSingleCategory=function(){return _.vM(this,17)};
_.P.getEnableImageSanitization=function(){return _.vM(this,18)};
_.P.getEnableAlohaBinarySplit=function(){return _.vM(this,19)};
_.P.getEnableDbFeedbackIntents=function(){return _.vM(this,20)};
_.P.getEnableMarkMandatoryFieldsWithRequired=function(){return _.vM(this,21)};
_.P.getEnableFeedbackCategoryCustomUi=function(){return _.vM(this,22)};
_.P.getEnableRealtimeCtl=function(){return _.vM(this,23)};var rOf=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(rOf,_.fv);var R03=[/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 cOb="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 HJS=_.CT(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),AOF=_.CT(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var sg=function(){var g=Error.call(this,"Form is either loading or already opened");this.message=g.message;"stack"in g&&(this.stack=g.stack);this.name="DuplicateFormError"};
_.A(sg,Error);var l8Z,CGM,I8q,bJq;var Sn,bja;
Sn=function(g,u,q){g.timeOfStartCall=(new Date).getTime();var Q=q||_.Qq,L=Q.document,E=g.nonce||_.yT(Q.document);E&&!g.nonce&&(g.nonce=E);if(g.flow=="help"){var y=_.ri("document.location.href",Q);!g.helpCenterContext&&y&&(g.helpCenterContext=y.substring(0,1200));y=!0;if(u&&JSON&&JSON.stringify){var v=JSON.stringify(u);(y=v.length<=1200)&&(g.psdJson=v)}y||(u={invalidPsd:!0})}u=[g,u,q];Q.GOOGLE_FEEDBACK_START_ARGUMENTS=u;q=g.feedbackServerUri||"//www.google.com/tools/feedback";if(y=Q.GOOGLE_FEEDBACK_START)y.apply(Q,u);
else{Q=q+"/load.js?";for(var J in g)u=g[J],u==null||_.zM(u)||(Q+=encodeURIComponent(J)+"="+encodeURIComponent(u)+"&");g=LH(L).createElement("SCRIPT");E&&g.setAttribute("nonce",E);_.jx(g,_.r0(Q));L.body.appendChild(g)}};
bja=function(g,u,q,Q){var L,E;return _.D(function(y){L=q||_.Qq;var v=g.serverEnvironment==="DEV",J=q||_.Qq;J=g.nonce||_.yT(J.document);v={integrationKeys:{productId:g.productId,feedbackBucket:g.bucket,triggerId:g.triggerId},callbacks:{onClose:g.callback,onLoad:g.onLoadCallback},formContent:{locale:g.locale,disableScreenshot:g.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:g.abuseLink,additionalDataConsent:g.additionalDataConsent},initializationData:{isLocalServer:v,nonce:J,useNightlyRelease:v,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:g.feedbackServerUri,colorScheme:g.colorScheme},extraData:{productVersion:g.productVersion,authUser:g.authuser,configuratorId:g.configuratorId,customZIndex:g.customZIndex,tinyNoPointer:g.tinyNoPointer,
allowNonLoggedInFeedback:g.allowNonLoggedInFeedback,enableAnonymousFeedback:g.enableAnonymousFeedback}};u&&(J=new Map(Object.entries(u)),v.extraData.productSpecificData=J);E=v;return y.yield(a8u(E,Q,L),0)})};
_.d6a=function(g,u,q){try{if(g.flow==="help"){var Q=g.helpCenterPath.replace(/^\//,"");_.sP(q||window,"https://support.google.com/"+Q)}else g.flow==="submit"?Sn(g,u,q):T5q(g.productId,g.feedbackServerUri).then(function(L){L=_.o0(L,kf,1);var E=!Lzx||(L==null?void 0:L.getEnableMweb()),y=!g.tinyNoPointer||(L==null?void 0:L.getEnableTinyNoPointer());!L||L.getAlohaAutoGaRollout()&&E&&y?bja(g,u,q,L).catch(function(v){!v||v instanceof sg||Sn(g,u,q)}):Sn(g,u,q)},function(L){!L||L instanceof sg||Sn(g,u,q)})}catch(L){bja(g,
u,q,null).catch(function(E){!E||E instanceof sg||Sn(g,u,q)})}};
_.xQ("userfeedback.api.startFeedback",_.d6a);var h0S=/https?:\/\/\S+\.\S+/,Ydb=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],OJu=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var omF=function(g){var u=g.split(""),q=[-263237435,15,u,function(Q,L,E){var y=L.length;E.forEach(function(v,J,f){this.push(f[J]=L[(L.indexOf(v)-L.indexOf(this[J])+J+y--)%L.length])},Q.split(""))},
function(Q,L){Q=(Q%L.length+L.length)%L.length;L.splice(-Q).reverse().forEach(function(E){L.unshift(E)})},
"response",function(){for(var Q=64,L=[];++Q-L.length-32;){switch(Q){case 58:Q-=14;case 91:case 92:case 93:continue;case 123:Q=47;case 94:case 95:case 96:continue;case 46:Q=95}L.push(String.fromCharCode(Q))}return L},
null,12,1540023973,65941107,null,u,function(Q,L){for(Q=(Q%L.length+L.length)%L.length;Q--;)L.unshift(L.pop())},
695603893,function(Q){for(var L=Q.length;L;)Q.push(Q.splice(--L,1)[0])},
"'[;'[(",function(Q,L){Q.push(L)},
null,function(Q,L,E,y,v){return L(E,y,v)},
"continuation",u,function(Q,L){if(Q.length!=0){L=(L%Q.length+Q.length)%Q.length;var E=Q[0];Q[0]=Q[L];Q[L]=E}},
function(){for(var Q=64,L=[];++Q-L.length-32;){switch(Q){case 91:Q=44;continue;case 123:Q=65;break;case 65:Q-=18;continue;case 58:Q=96;continue;case 46:Q=95}L.push(String.fromCharCode(Q))}return L},
'"),/]];'];q[7]=q;q[11]=q;q[18]=q;try{(((0,q[15])(q[21]),q[22])(q[11],q[9]),q[22])(q[new Date("1970-01-01T04:30:12.000+04:30")/1E3],q[1]),((0,q[22])(q[11],q[23]),q[4])(q[10],q[18]),(0,q[20])(q[21],q[14])<<(0,q[17])(q[18],q[1]),(0,q[4])(q[8],q[21]),(0,q[19])((0,q[19])((0,q[17])(q[7],q[9]),q[3],q[20],(0,q[6])(),q[2]),q[3],q[5],(0,q[15])(),q[2])}catch(Q){return"aTlOUOubTO4AP____8P_"+g}return u.join("")};_.FpW=new _.d2("runAttestationCommand");var m60=new _.d2("verifyCommand");_.L3=new _.d2("accessibilityContext");var a9a=new _.d2("accessibilityData");var VsR=new _.d2("profileCardCommand");var h3q=new _.d2("signInEndpoint");var THk=new _.d2("signOutEndpoint");var r$Z;_.XtX=new _.d2("accountItemSectionRenderer");r$Z=new _.d2("accountItemRenderer");_.WpZ=new _.d2("saveCommandToSessionStorageAction");var T2a=new _.d2("crossAccountChannelTransferEndpoint");var ml3=new _.d2("getAccountMenuEndpoint");_.aEb=new _.d2("getAccountSwitcherEndpoint");var Fjq=new _.d2("getAccountsListEndpoint");var hki=new _.d2("getAccountsListInnertubeEndpoint");_.YGi=new _.d2("addToToastAction");var Ojb=new _.d2("hideEnclosingAction");_.oB=new _.d2("replaceEnclosingAction");var Kpb=new _.d2("buttonRefreshAction");var x60=new _.d2("adsControlFlowOpportunityReceivedCommand");var B2$=new _.d2("openAdAllowlistInstructionCommand");var zkX=new _.d2("videoMastheadAdPrimaryVideoRenderer");var noa=new _.d2("displayAdRenderer");_.kGW=new _.d2("inFeedAdLayoutRenderer");var SGH=new _.d2("sequenceItemInPlayerAdLayoutRenderer");_.ooZ=new _.d2("adSlotRenderer");var U6R=new _.d2("adAvatarViewModel");var gxo=new _.d2("adBadgeViewModel");var ukW=new _.d2("adButtonViewModel");var qFx=new _.d2("adImageViewModel");var Q$u=new _.d2("reelsAdCardButtonedViewModel");var Qh0=new _.d2("reelsPlayerOverlayLayoutViewModel");var L$i=new _.d2("formDataDecoratorCommand");var Exb=new _.d2("updateConversationIdCommand");var PuR=new _.d2("showSchedulingPanelCommand");var NG0=new _.d2("backstageCommentsRenderer");var sh5=new _.d2("backstageImageRenderer");var yHa=new _.d2("backstagePostRenderer");var vxZ=new _.d2("backstageZeroStateRenderer");var DcH=new _.d2("postRenderer");var pj5=new _.d2("sharedPostRenderer");var JHa=new _.d2("createBackstagePostEndpoint");var jhn=new _.d2("getPostVideoPreviewEndpoint");var frR=new _.d2("updateBackstagePostEndpoint");var M28=new _.d2("filterChipTransformCommand");var t2W=new _.d2("insertRichSectionCommand");var lTq=new _.d2("talkToRecsDeselectCommand");var eJW=new _.d2("talkToRecsNextCommand");var ZRh=new _.d2("talkToRecsSelectCommand");var Gn0=new _.d2("talkToRecsUpdateTextCommand");_.kZ=new _.d2("browseEndpoint");_.$cZ=new _.d2("confirmDialogEndpoint");var RJR=new _.d2("expandOnHoverCardRenderer");var wjn=new _.d2("lumiereShelfDetailsRenderer");var cH$=new _.d2("revealBusinessEmailCommand");var HAo=new _.d2("validateChannelHandleCommand");var AH8=new _.d2("channelCreationFormEndpoint");var ZAW=new _.d2("aboutChannelViewModel");var lri=new _.d2("channelThumbnailWithLinkRenderer");var Ir2=new _.d2("channelCreationServiceEndpoint");var iA0=new _.d2("updateChannelPageSettingsEndpoint");var Ud=function(g){this.delegate=g},gS=function(){Ud.apply(this,arguments)};
_.A(gS,Ud);_.z3.Object.defineProperties(gS.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(g){this.delegate.entityMetadata=g}}});var Cu0=function(){gS.apply(this,arguments)};
_.A(Cu0,gS);Cu0.prototype.getAssociations=function(){return[]};
Cu0.prototype.getTypeName=function(){return"channelHandle"};var bAR=new _.d2("webResponseContextExtensionData");var Wxf=new _.d2("webThumbnailDetailsExtensionData");_.jJ=new _.d2("commandContext");var dco=new _.d2("addVideoLinkAction");var F$Z=new _.d2("banAuthorAction");var mca=new _.d2("createCommentAction");var arZ=new _.d2("createCommentReplyAction");var V2Z=new _.d2("createPollAction");var XjZ=new _.d2("hideIdentityChipAction");var rHb=new _.d2("openUpdateCommentDialogAction");var W$$=new _.d2("pinCommentAction");var TGW=new _.d2("removeCommentAction");var hJo=new _.d2("unpinCommentAction");var uk=new _.d2("updateBackstagePollAction");var YFX=new _.d2("updateCommentVoteAction");var OA$=new _.d2("commentThreadRenderer");var K$$=function(){gS.apply(this,arguments)};
_.A(K$$,gS);K$$.prototype.getAssociations=function(){return[]};
K$$.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var xc2=function(){gS.apply(this,arguments)};
_.A(xc2,gS);xc2.prototype.getAssociations=function(){return[]};
xc2.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.BGn=new _.d2("commentDialogRenderer");var zJ2=new _.d2("reloadCommentsCommand");var nxx=new _.d2("updateCommentsSettingsEndpoint");var kna=new _.d2("commentViewModel");var SFH=new _.d2("triStateButtonViewModel");var oxW=new _.d2("voiceReplyContainerViewModel");_.zg=new _.d2("commandExecutorCommand");var Da=new _.d2("emoji");var Ucb=new _.d2("updateCreatorChannelInnertubeCommand");_.gIi=new _.d2("appendContinuationItemsAction");_.u9X=new _.d2("changeEngagementPanelVisibilityAction");_.fe=new _.d2("continuationCommand");var qt2=new _.d2("hideReportedCommentAction");var Qxn=new _.d2("listMutationCommand");_.q4=new _.d2("openPopupAction");var Lmn=new _.d2("persistSubscriptionsDisplayPreferencesCommand");var pNo;_.EI0=new _.d2("playlistRemoveVideosAction");_.PgZ=new _.d2("updatePlaylistAction");_.Nd8=new _.d2("addToPlaylistCommand");_.sxa=new _.d2("endPlaylistCommand");_.ymx=new _.d2("recoverPlaylistCommand");_.vI2=new _.d2("refreshPlaylistCommand");_.DIH=new _.d2("refreshFormCommand");pNo=new _.d2("openOnePickAddVideoModalCommand");var Yuf=new _.d2("reloadContinuationItemsCommand");var JmZ=new _.d2("restoreCachedContinuableDataCommand");_.jx8=new _.d2("scrollToEngagementPanelCommand");var fSH=new _.d2("selectCountryCommand");var MeX=new _.d2("showReloadUiCommand");var te5=new _.d2("undoFeedbackAction");var egH=new _.d2("updateButtonAction");var GPn=new _.d2("updateSubscribeButtonAction");var $In=new _.d2("updateToggleAction");var RgX=new _.d2("webNativeShareCommand");_.S_=new _.d2("webCommandMetadata");_.QP=new _.d2("webHandleServiceEndpointExtension");var npu=new _.d2("webNavigationEndpointData");var wNi=new _.d2("backgroundAudioPlaybackCommand");var cm2=new _.d2("copyLinkCommand");var H8a=new _.d2("playlistVotingRefreshPopupCommand");var Amo=new _.d2("selectChipCommand");var Z8H=new _.d2("setCookieCommand");var lSb=new _.d2("setLocalStorageCommand");var ISi=new _.d2("setPrefStorageEntryCommand");var dIZ;_.i8X=new _.d2("settingsUpdateCheckboxCommand");_.Cgo=new _.d2("settingsUpdateTextCommand");_.b82=new _.d2("settingsUpdateOptionsCommand");dIZ=new _.d2("settingsUpdateSwitchCommand");_.Fm8=new _.d2("settingsUpdateConnectedAppRendererCommand");var mI2=new _.d2("showCreatorChatbotEngagementPanelCommand");var aSn=new _.d2("updateTextInputFormFieldRendererCommand");var Ve0=new _.d2("updateToggleButtonStateCommand");var XNb=new _.d2("updateUrlParamCommand");var rmn=new _.d2("webSubmitFormCommand");var Wm8=new _.d2("channelSwitcherPageRenderer"),Td$=new _.d2("updateChannelSwitcherPageAction");_.V5=new _.d2("continuationItemRenderer");_.Lq=new _.d2("richItemRenderer");var hg8=new _.d2("richSectionRenderer");_.Yta=new _.d2("richShelfRenderer");_.O8n=new _.d2("metadataBadgeRenderer");_.KmH=new _.d2("multiPageMenuNotificationSectionRenderer");_.xI5=new _.d2("playlistLoopButtonStateRenderer");var Bdo=new _.d2("claimLegacyYoutubeChannelEndpoint");var zgi=new _.d2("getNotificationMenuEndpoint");var nIX=new _.d2("getSearchInVideoCommand");_.kPa=new _.d2("getTranscriptEndpoint");_.kJ=new _.d2("signalServiceEndpoint");var Stn=new _.d2("verifyAgeEndpoint");var gPh=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(gPh,_.fv);gPh.prototype.getPath=function(){return _.J2(this,1)};
gPh.prototype.getValue=function(){return _.J2(this,2)};var oIZ=[0,_.mE,-1];var UI5=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(UI5,_.fv);var U9J=_.lO(UI5,[0,_.XE,oIZ]);var gf5=new _.d2("dismissalEndpoint");var uM5=new _.d2("elementsCommand");_.Jo=new _.d2("innertubeCommand");var lAZ=new _.d2("multipleInlinePlaybackCommand");var djq=new _.d2("loggingDirectives");var qdR=new _.d2("acknowledgeChannelTouStrikeCommand");var QBa=function(){gS.apply(this,arguments)};
_.A(QBa,gS);QBa.prototype.getAssociations=function(){return[]};
QBa.prototype.getTypeName=function(){return"booleanEntity"};var LdZ=function(){gS.apply(this,arguments)};
_.A(LdZ,gS);LdZ.prototype.getAssociations=function(){return[]};
LdZ.prototype.getTypeName=function(){return"stringEntity"};var Zc=new _.d2("entityBatchUpdate");_.Ef0=new _.d2("entityUpdateCommand");var PGZ=function(){gS.apply(this,arguments)};
_.A(PGZ,gS);PGZ.prototype.getAssociations=function(){var g=[];this.delegate.alternateChannel&&g.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&g.push.apply(g,_.na(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&g.push(this.delegate.oneofChannelEntity);return[].concat(_.na(new Set(g)))};
PGZ.prototype.getTypeName=function(){return"fakeChannel"};var N5R=function(){gS.apply(this,arguments)};
_.A(N5R,gS);N5R.prototype.getAssociations=function(){var g=[];this.delegate.entryCollection&&g.push(this.delegate.entryCollection);return[].concat(_.na(new Set(g)))};
N5R.prototype.getTypeName=function(){return"fakePlaylist"};
var sBZ=function(){gS.apply(this,arguments)};
_.A(sBZ,gS);sBZ.prototype.getAssociations=function(){var g=[];this.delegate.parentPlaylist&&g.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var u=_.N(this.delegate.entries),q=u.next();!q.done;q=u.next())g.push.apply(g,_.na((new yO5(q.value)).getAssociations()));return[].concat(_.na(new Set(g)))};
sBZ.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var yO5=function(){Ud.apply(this,arguments)};
_.A(yO5,Ud);yO5.prototype.getAssociations=function(){var g=[];this.delegate.video&&g.push(this.delegate.video);return[].concat(_.na(new Set(g)))};var vfo=function(){gS.apply(this,arguments)};
_.A(vfo,gS);vfo.prototype.getAssociations=function(){var g=[];this.delegate.descriptionEntity&&g.push(this.delegate.descriptionEntity);this.delegate.creators&&g.push.apply(g,_.na(this.delegate.creators));this.delegate.theBiggestFan&&g.push(this.delegate.theBiggestFan);return[].concat(_.na(new Set(g)))};
vfo.prototype.getTypeName=function(){return"fakeVideo"};
var Ds$=function(){gS.apply(this,arguments)};
_.A(Ds$,gS);Ds$.prototype.getAssociations=function(){return[]};
Ds$.prototype.getTypeName=function(){return"fakeVideoDescription"};var pIi=new _.d2("fantasyRosterViewModel");var JO0=new _.d2("addFollowUpSurveyCommand");var jBb=new _.d2("getSurveyCommand");var f8R=new _.d2("ratingSurveyOptionRenderer");_.MB=new _.d2("feedbackEndpoint");var MnW=new _.d2("reportHistoryTableCellRenderer"),tna=new _.d2("reportHistoryTableTextCellRenderer"),e0R=new _.d2("reportHistoryTableReasonCellRenderer");_.Gon=new _.d2("flagEndpoint");var $sR=new _.d2("deleteFlowStepsCommand");_.R0x=new _.d2("flowNextStepCommand");_.wIH=new _.d2("flowPrevStepCommand");var cO0=new _.d2("getFlowCommand");var HJ5=new _.d2("submitFormWithValidationFlowCommand");_.AOn=new _.d2("updateFlowCommand");var ZJx=function(){gS.apply(this,arguments)};
_.A(ZJx,gS);ZJx.prototype.getAssociations=function(){return[]};
ZJx.prototype.getTypeName=function(){return"flowStateEntity"};var l8o=new _.d2("flowFormState");_.Ew=new _.d2("flowStepRenderer");var I8$=new _.d2("gameCardRenderer");var iJR=new _.d2("accountLinkingStateChangedCommand");var CG2=function(){gS.apply(this,arguments)};
_.A(CG2,gS);CG2.prototype.getAssociations=function(){return[]};
CG2.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var bJ$=new _.d2("changeMiniAppPlayStateCommand");var ds$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(ds$,_.fv);var PF=[1,2,3];var Fd5=[0,PF,XTi,_.VE,ivH];var ms5=_.lO(ds$,Fd5),a8i=_.iO(Fd5);var Vnx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Vnx,_.fv);var XI5=[0,_.I6,_.mE];var rOW=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(rOW,_.fv);var Wdb=[0,_.mE,_.I6,-1];var N4=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(N4,_.fv);var T5$=_.iO([0,1,XI5,_.h2,Wdb,_.mE,-1]);var h05=new _.d2("miniAppScoreChallengeViewModel");var Yd0=new _.d2("miniGameCardViewModel");var OJi=new _.d2("teaserCardViewModel");var Kdi=function(){gS.apply(this,arguments)};
_.A(Kdi,gS);Kdi.prototype.getAssociations=function(){return[]};
Kdi.prototype.getTypeName=function(){return"logoEntity"};var xsW=new _.d2("feedbackItemRenderer");var B58=function(){gS.apply(this,arguments)};
_.A(B58,gS);B58.prototype.getAssociations=function(){return[]};
B58.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.z0x=new _.d2("playerInterstitialRenderer");var nfZ=new _.d2("getKidsBlocklistPickerCommand");_.koa=new _.d2("updateKidsBlacklistEndpoint");_.sw=new _.d2("likeEndpoint");var Sda,of8,Us8;Sda=new _.d2("addChatItemAction");of8=new _.d2("removeChatItemAction");Us8=new _.d2("markChatItemAsDeletedAction");_.glW=new _.d2("setLiveChatCollapsedStateAction");var uu2=function(){gS.apply(this,arguments)};
_.A(uu2,gS);uu2.prototype.getAssociations=function(){return[]};
uu2.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var qwo=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(qwo,_.fv);qwo.prototype.getPayloadCase=function(){return _.Ea(this,QnW)};
var QnW=[3,4];var LBX=[0,_.XE,[0,[1,2],_.VE,_.rm,[0,_.a6,1,_.a6]]];var Elb=[0,_.mE,-1];var PkR=[0,[1],_.VE];var yP=[0,[1,2],_.VE,_.rm,[0,_.h2]];var vF=[0,_.mE];var NSn=[0,[0,_.dm,_.b$,[0,_.a6,_.Y0,_.a6]],1,[0,_.dm]];var snR=[0,i$];var yna=[0,i$];var vla=[0,yna,snR];var D4b=[0,_.XE,[0,[1,2],_.VE,-1],_.dm];var pFb=[0,[2],1,_.rm,[0,_.a6,-1,D4b]];var Jn8=[0,[1],_.rm,[0,_.a6,_.mE,_.Y0,1,D4b]];var jna=[0,_.b$,-1,IO0,_.h2];var fLn=[0,[0,l$,-3],-4];var DL=[0,_.dm,-3,_.mE,_.dm,_.Y2,_.dm,LBX,_.dm,-2];var pq=[0,_.XE,[0,[1,2],_.VE,-1],_.dm,_.mE];var MW0=[0,[3],yP,[0,[2,3,4],YTX,_.VE,-2],_.rm,[0,_.mE],_.I6];var tW0=[0,[3,5],_.mE,_.Cp,_.rm,[0,1,_.I6,_.h2],_.h2,_.rm,[0,_.h2,_.I6]];var e9o=[0,2,_.Cp,_.mE,-1];var GZZ=[0,aOH];var $4x=[0,[3,4],2,bv$,_.VE,_.mE];var R9o=[0,_.h2,-2,1,_.mE];var wF5=[0,_.mE,-1,_.h2];var cni=[0,vF,function(){return Jn},
vF,_.mE],HqW=[0,_.h2,vF,yP,function(){return Jn},
_.mE],Jn=[-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],vF,_.Cp,[0,_.dm,1,_.dm,1,_.dm,1,_.h2,-1,vF],[0,1,_.dm,2,_.dm,_.h2,_.dm],1,_.Cp,-1,_.mE,_.Cp,2,l$,[0,l$,_.Cp],_.mE,1,NSn,1,yP,_.Y2,1,[0,[0,_.XE,[0,_.mE,_.dm,_.h2]]],[0,_.dm,[0,_.I6,[0,_.Y0]],_.I6,1,[0,FGZ,-1]],_.mE,[0,1,_.mE],76,_.rm,[0,yP,pq,NSn,1,[0,_.XE,pq]],1,_.rm,[0,yP,_.mE,
_.dm],_.rm,[0,yP,PkR],_.rm,[0,yP,PkR,_.Cp],_.rm,[0,yP,PkR],_.rm,[0,yP,_.XE,vF,yP,re8],_.rm,[0,yP,vF,_.mE],_.rm,[0,yP,_.dm,DL,-1,_.dm],4,_.rm,[0,yP,_.dm,_.Cp,DL,_.dm],_.rm,[0,[4,9],yP,_.h2,_.Cp,_.VE,pq,1,NSn,_.mE,_.VE,R9o],_.rm,[0,yP,vF,yP,_.h2,_.mE],_.rm,[0,_.dm,yP,DL,_.dm,_.mE],_.rm,[0,yP,vF,yP,_.h2,_.mE],1,_.rm,[0,yP,_.h2,_.mE,DL],_.rm,[0,yP,_.h2,[0,_.mE,_.Cp],_.mE,_.Cp,_.mE,_.Tw,-2,3,wF5,_.XE,wF5,wF5,R9o],_.rm,[0,yP,_.h2,Jn8,_.XE,[0,yna,pFb],vF,_.XE,vla,_.mE,1,_.h2,jna,fLn,lOn,-1],_.rm,[0,yP,[0,
_.Y0,-1,Jn8,_.XE,[0,yna,pFb,snR],[0,_.OQ],1,_.a6],vF,_.mE],_.rm,[0,yP,pq,_.mE,[0,_.b$]],_.rm,function(){return HqW},
_.rm,[0,yP,_.Cp,_.mE,-1,_.dm],_.rm,[0,[6,7],yP,_.XE,e9o,_.h2,pq,1,_.rm,$4x,_.rm,GZZ],_.rm,[0,_.XE,e9o,_.h2,_.dm],_.rm,[0,_.mE,wvW,-1],_.rm,[0,vF,_.XE,vla,_.mE],_.rm,[0,yP,vF,_.mE],_.rm,[0,_.Tw,_.mE],_.rm,[0,Elb],_.rm,[0,Elb],_.rm,[0,pq],_.rm,[0,vF,pq],_.rm,function(){return cni},
_.rm,[0,vF,_.mE],_.rm,[0,vF,_.mE],1,_.rm,[0,_.dm,yP,DL,_.dm,DL],_.rm,[0,_.OQ],1,_.rm,[0],1,_.rm,[0,vF,_.h2,yP,_.h2],_.rm,[0,[1,2],_.rm,$4x,_.rm,GZZ,_.Cp],_.rm,[0,_.OQ,pq,tW0,_.mE,_.Cp],_.rm,[0,tW0,_.mE,_.Cp],_.rm,[0,jna,pq,_.dm,fLn],_.rm,MW0,_.rm,[0],_.rm,[0,_.mE,-1,_.I6],_.rm,[0,vF,_.mE],_.rm,[0,MW0,_.I6,_.mE],_.rm,[0,yP,DL,_.dm],_.rm,[0,yP,DL,_.dm],_.rm,[0,jna,fLn,pq,_.Y2,_.dm,lOn,-1],_.rm,[0,yP,DL,_.dm],_.rm,[0,_.Cp]];var An$=[0,_.XE,Jn];var Zq8=_.lO(qwo,[0,QnW,1,_.I6,_.rm,[0,[18,22,24],An$,3,[0,An$],1,_.I6,[0,_.XE,[0,_.Cp,l$],_.Cp],1,Jn,-1,[0,_.FE,-2,_.Y2,_.FE,-1,_.Y2,_.FE,LBX,_.FE,-2],Aeo,[!0,_.mE,[0,PkR,2,_.mE,_.Cp,_.dm,2,_.mE,_.Tw]],[0,[1,2,3],[5,6],_.rm,[0,_.a6],_.rm,[0,_.a6,-1],_.rm,[0,_.a6],1,_.rm,Elb,_.rm,[0,_.mE]],[0,Jn,-1],_.OQ,Jn,_.rm,Jn,[0,An$],_.I6,Jn,_.rm,Jn,_.mE,_.rm,Jn,Jn],_.rm,co5,_.I6]);var lLW=new _.d2("liveChatEndpoint");var ILx=new _.d2("liveChatItemContextMenuEndpoint");var iqo=new _.d2("liveChatReplayEndpoint");_.CkZ=new _.d2("emojiPickerRenderer");var bqX=new _.d2("liveChatAuthorBadgeViewModel");var d4W=new _.d2("deleteLiveChatMessageCommand");var FBX=new _.d2("liveChatActionEndpoint");var m45=new _.d2("createLiveChatPollEndpoint");var aL8=new _.d2("manageLiveChatUserEndpoint");var VWZ=new _.d2("moderateLiveChatEndpoint");_.XFo=new _.d2("sendLiveChatMessageEndpoint");var rn0=new _.d2("sendLiveChatVoteEndpoint");var WB$=new _.d2("clearLocationCommand");var TS0=new _.d2("resolveLocationCommand");var h9i=new _.d2("interactionLoggingCommandMetadata");var Ywx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Ywx,_.fv);var OqZ=function(g,u){return _.OU(g,1,u)};var KBn=[0,_.dm];var x4$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(x4$,_.fv);var BSH=function(g,u){return v6(g,1,Ywx,u)};x4$.prototype.JSC$12632_serializeBinary=yBq([0,_.XE,KBn]);var pFT={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 z9W={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"},
nlH={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 ybb={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"};_.RQK=new _.d2("logFlowLoggingEventCommand");_.uF=new _.d2("loggingContext");var kZ$=new _.d2("audioTrackSelectActionCommand");var SwW=new _.d2("captionLanguageSelectActionCommand");var ol0=new _.d2("showAudioTrackPickerActionCommand");var U4Z=new _.d2("showCaptionLanguageSelectActionCommand");var gai=new _.d2("dismissDialogEndpoint");var uC8=new _.d2("dismissPlayerOverlayCommand");var q1X=new _.d2("hideItemSectionVideosByIdCommand");var Qc2=new _.d2("showMiniplayerCommand");var L_x=function(){gS.apply(this,arguments)};
_.A(L_x,gS);L_x.prototype.getAssociations=function(){return[]};
L_x.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var Eao=function(){gS.apply(this,arguments)};
_.A(Eao,gS);Eao.prototype.getAssociations=function(){return[]};
Eao.prototype.getTypeName=function(){return"downloadStatusEntity"};var PoW=function(){gS.apply(this,arguments)};
_.A(PoW,gS);PoW.prototype.getAssociations=function(){return[]};
PoW.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var NEa=function(){gS.apply(this,arguments)};
_.A(NEa,gS);NEa.prototype.getAssociations=function(){var g=[];this.delegate.downloadsList&&g.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&g.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&g.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&g.push(this.delegate.refresh);return[].concat(_.na(new Set(g)))};
NEa.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var sc$=function(){gS.apply(this,arguments)};
_.A(sc$,gS);sc$.prototype.getAssociations=function(){var g=[];this.delegate.refresh&&g.push(this.delegate.refresh);if(this.delegate.downloads)for(var u=_.N(this.delegate.downloads),q=u.next();!q.done;q=u.next())g.push.apply(g,_.na((new y4i(q.value)).getAssociations()));return[].concat(_.na(new Set(g)))};
sc$.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var y4i=function(){Ud.apply(this,arguments)};
_.A(y4i,Ud);y4i.prototype.getAssociations=function(){var g=[];this.delegate.video&&g.push(this.delegate.video);this.delegate.playlist&&g.push(this.delegate.playlist);this.delegate.videoItem&&g.push(this.delegate.videoItem);this.delegate.playlistItem&&g.push(this.delegate.playlistItem);return[].concat(_.na(new Set(g)))};var vai=function(){gS.apply(this,arguments)};
_.A(vai,gS);vai.prototype.getAssociations=function(){var g=[];this.delegate.localImageEntities&&g.push.apply(g,_.na(this.delegate.localImageEntities));return[].concat(_.na(new Set(g)))};
vai.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var DG8=function(){gS.apply(this,arguments)};
_.A(DG8,gS);DG8.prototype.getAssociations=function(){var g=[];this.delegate.playbackData&&g.push(this.delegate.playbackData);this.delegate.localImageEntities&&g.push.apply(g,_.na(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&g.push(this.delegate.videoDownloadContextEntity);return[].concat(_.na(new Set(g)))};
DG8.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var pd0=function(){gS.apply(this,arguments)};
_.A(pd0,gS);pd0.prototype.getAssociations=function(){return[]};
pd0.prototype.getTypeName=function(){return"offlineabilityEntity"};var J4a=function(){gS.apply(this,arguments)};
_.A(J4a,gS);J4a.prototype.getAssociations=function(){var g=[];this.delegate.fakeChildren&&g.push.apply(g,_.na(this.delegate.fakeChildren));return[].concat(_.na(new Set(g)))};
J4a.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var jcb=function(){gS.apply(this,arguments)};
_.A(jcb,gS);jcb.prototype.getAssociations=function(){var g=[];this.delegate.video&&g.push(this.delegate.video);this.delegate.playbackData&&g.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&g.push(this.delegate.offlineVideoPolicy);return[].concat(_.na(new Set(g)))};
jcb.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var fVn=function(){gS.apply(this,arguments)};
_.A(fVn,gS);fVn.prototype.getAssociations=function(){return[]};
fVn.prototype.getTypeName=function(){return"continuationTokenEntity"};var M92=function(){gS.apply(this,arguments)};
_.A(M92,gS);M92.prototype.getAssociations=function(){var g=[];this.delegate.channelOwner&&g.push(this.delegate.channelOwner);this.delegate.videos&&g.push.apply(g,_.na(this.delegate.videos));this.delegate.collaboratorChannels&&g.push.apply(g,_.na(this.delegate.collaboratorChannels));this.delegate.downloadState&&g.push(this.delegate.downloadState);this.delegate.refresh&&g.push(this.delegate.refresh);return[].concat(_.na(new Set(g)))};
M92.prototype.getTypeName=function(){return"mainPlaylistEntity"};var t9W=function(){gS.apply(this,arguments)};
_.A(t9W,gS);t9W.prototype.getAssociations=function(){var g=[];this.delegate.video&&g.push(this.delegate.video);this.delegate.channelContributor&&g.push(this.delegate.channelContributor);return[].concat(_.na(new Set(g)))};
t9W.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var ePx=function(){Ud.apply(this,arguments)};
_.A(ePx,Ud);ePx.prototype.getAssociations=function(){var g=[];this.delegate.recommendedVideoMetadata&&g.push.apply(g,_.na((new GLo(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.na(new Set(g)))};
var GLo=function(){Ud.apply(this,arguments)};
_.A(GLo,Ud);GLo.prototype.getAssociations=function(){var g=[];this.delegate.localImageEntities&&g.push.apply(g,_.na(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&g.push(this.delegate.videoDownloadContextEntity);return[].concat(_.na(new Set(g)))};var $GH=function(){Ud.apply(this,arguments)};
_.A($GH,Ud);$GH.prototype.getAssociations=function(){var g=[];this.delegate.playbackPosition&&g.push(this.delegate.playbackPosition);return[].concat(_.na(new Set(g)))};var RPb=function(){gS.apply(this,arguments)};
_.A(RPb,gS);RPb.prototype.getAssociations=function(){var g=[];this.delegate.owner&&g.push(this.delegate.owner);this.delegate.downloadState&&g.push(this.delegate.downloadState);this.delegate.userState&&g.push.apply(g,_.na((new $GH(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&g.push.apply(g,_.na((new ePx(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.na(new Set(g)))};
RPb.prototype.getTypeName=function(){return"mainVideoEntity"};var wdH=function(){gS.apply(this,arguments)};
_.A(wdH,gS);wdH.prototype.getAssociations=function(){var g=[];this.delegate.userChannelDetails&&g.push(this.delegate.userChannelDetails);return[].concat(_.na(new Set(g)))};
wdH.prototype.getTypeName=function(){return"ytMainChannelEntity"};var c4X=function(){gS.apply(this,arguments)};
_.A(c4X,gS);c4X.prototype.getAssociations=function(){var g=[];this.delegate.channelOwner&&g.push(this.delegate.channelOwner);this.delegate.playbackPosition&&g.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&g.push.apply(g,_.na(this.delegate.localImageEntities));this.delegate.downloadStatus&&g.push(this.delegate.downloadStatus);return[].concat(_.na(new Set(g)))};
c4X.prototype.getTypeName=function(){return"ytMainVideoEntity"};var Nom=new _.d2("downloadsPageSmartDownloadsOptInBannerParams");var D5K=new _.d2("downloadsPageUpsellBannerParams");var HI8=function(){gS.apply(this,arguments)};
_.A(HI8,gS);HI8.prototype.getAssociations=function(){return[]};
HI8.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var A4Z=function(){gS.apply(this,arguments)};
_.A(A4Z,gS);A4Z.prototype.getAssociations=function(){return[]};
A4Z.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var ZI5=function(){gS.apply(this,arguments)};
_.A(ZI5,gS);ZI5.prototype.getAssociations=function(){return[]};
ZI5.prototype.getTypeName=function(){return"macroMarkerEntity"};var lV0=function(){gS.apply(this,arguments)};
_.A(lV0,gS);lV0.prototype.getAssociations=function(){return[]};
lV0.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var IV0=function(){gS.apply(this,arguments)};
_.A(IV0,gS);IV0.prototype.getAssociations=function(){return[]};
IV0.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var iIo=function(){gS.apply(this,arguments)};
_.A(iIo,gS);iIo.prototype.getAssociations=function(){return[]};
iIo.prototype.getTypeName=function(){return"playerStateEntity"};var Cob=function(){gS.apply(this,arguments)};
_.A(Cob,gS);Cob.prototype.getAssociations=function(){return[]};
Cob.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var bIX=function(){gS.apply(this,arguments)};
_.A(bIX,gS);bIX.prototype.getAssociations=function(){return[]};
bIX.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var dGo=function(){gS.apply(this,arguments)};
_.A(dGo,gS);dGo.prototype.getAssociations=function(){return[]};
dGo.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.cK=new _.d2("dislikeButtonViewModel");_.wT=new _.d2("likeButtonViewModel");var F_X=new _.d2("videoSummaryContentViewModel");var mG5=new _.d2("videoSummaryParagraphViewModel");var aVn=new _.d2("changeTimelyActionVisibilityCommand");var V9b=new _.d2("hideEngagementPanelEndpoint");var Xdi=new _.d2("refreshPanelEndpoint");var r4i=new _.d2("scrollToSectionEndpoint");var W_R=new _.d2("seekToVideoTimestampCommand");_.fT=new _.d2("showEngagementPanelEndpoint");var TEi=new _.d2("showTransientPlayerScrimOverlayCommand");var hP$=new _.d2("toggleEngagementPanelCommand");var Y1X=new _.d2("aiResponseBoxViewModel");_.OI$=new _.d2("createBroadcastCommand");var K_i=new _.d2("metadataUpdateCommand");var xG$=function(){gS.apply(this,arguments)};
_.A(xG$,gS);xG$.prototype.getAssociations=function(){return[]};
xG$.prototype.getTypeName=function(){return"featuredProductsEntity"};var BE2=function(){gS.apply(this,arguments)};
_.A(BE2,gS);BE2.prototype.getAssociations=function(){return[]};
BE2.prototype.getTypeName=function(){return"pinnedProductEntity"};var zPX=function(){gS.apply(this,arguments)};
_.A(zPX,gS);zPX.prototype.getAssociations=function(){return[]};
zPX.prototype.getTypeName=function(){return"trendingOfferEntity"};_.na$=new _.d2("merchandiseShelfRenderer");var kLR=new _.d2("shoppingContentLineItemViewModel");var S1n=new _.d2("shoppingDescriptionItemViewModel");var oao=new _.d2("gridMovieRenderer");_.UGR=new _.d2("movieRenderer");var gKo=function(){gS.apply(this,arguments)};
_.A(gKo,gS);gKo.prototype.getAssociations=function(){return[]};
gKo.prototype.getTypeName=function(){return"compositeSourceEntity"};var uKb=function(){gS.apply(this,arguments)};
_.A(uKb,gS);uKb.prototype.getAssociations=function(){var g=[];this.delegate.compositeSourceKeys&&g.push.apply(g,_.na(this.delegate.compositeSourceKeys));return[].concat(_.na(new Set(g)))};
uKb.prototype.getTypeName=function(){return"multiviewStagingEntity"};var qvR=function(){gS.apply(this,arguments)};
_.A(qvR,gS);qvR.prototype.getAssociations=function(){var g=[];this.delegate.trackDownloadMetadatas&&g.push.apply(g,_.na(this.delegate.trackDownloadMetadatas));return[].concat(_.na(new Set(g)))};
qvR.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var Qgx=function(){gS.apply(this,arguments)};
_.A(Qgx,gS);
Qgx.prototype.getAssociations=function(){var g=[];this.delegate.downloadedTracks&&g.push.apply(g,_.na(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&g.push.apply(g,_.na(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&g.push.apply(g,_.na(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&g.push.apply(g,_.na(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&g.push.apply(g,_.na(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
g.push.apply(g,_.na(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&g.push.apply(g,_.na(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&g.push.apply(g,_.na(this.delegate.metadataOnlyTracks));return[].concat(_.na(new Set(g)))};
Qgx.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var L58=function(){gS.apply(this,arguments)};
_.A(L58,gS);L58.prototype.getAssociations=function(){var g=[];this.delegate.trackDownloadMetadatas&&g.push.apply(g,_.na(this.delegate.trackDownloadMetadatas));return[].concat(_.na(new Set(g)))};
L58.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var EKR=function(){gS.apply(this,arguments)};
_.A(EKR,gS);EKR.prototype.getAssociations=function(){var g=[];this.delegate.playbackData&&g.push(this.delegate.playbackData);this.delegate.localImageEntities&&g.push.apply(g,_.na(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&g.push(this.delegate.videoDownloadContextEntity);return[].concat(_.na(new Set(g)))};
EKR.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var PwZ=function(){gS.apply(this,arguments)};
_.A(PwZ,gS);
PwZ.prototype.getAssociations=function(){var g=[];this.delegate.musicLibraryStatusEntity&&g.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&g.push.apply(g,_.na(this.delegate.primaryArtists));this.delegate.details&&g.push(this.delegate.details);this.delegate.userDetails&&g.push(this.delegate.userDetails);this.delegate.tracks&&g.push.apply(g,_.na(this.delegate.tracks));this.delegate.share&&g.push(this.delegate.share);this.delegate.downloadMetadata&&g.push(this.delegate.downloadMetadata);this.delegate.refresh&&
g.push(this.delegate.refresh);return[].concat(_.na(new Set(g)))};
PwZ.prototype.getTypeName=function(){return"musicAlbumRelease"};
var Ng0=function(){gS.apply(this,arguments)};
_.A(Ng0,gS);Ng0.prototype.getAssociations=function(){var g=[];this.delegate.albumRelease&&g.push(this.delegate.albumRelease);this.delegate.tracks&&g.push.apply(g,_.na(this.delegate.tracks));return[].concat(_.na(new Set(g)))};
Ng0.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var sg0=function(){gS.apply(this,arguments)};
_.A(sg0,gS);sg0.prototype.getAssociations=function(){var g=[];this.delegate.albumRelease&&g.push(this.delegate.albumRelease);return[].concat(_.na(new Set(g)))};
sg0.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var ya$=function(){gS.apply(this,arguments)};
_.A(ya$,gS);ya$.prototype.getAssociations=function(){var g=[];this.delegate.details&&g.push(this.delegate.details);this.delegate.userDetails&&g.push(this.delegate.userDetails);return[].concat(_.na(new Set(g)))};
ya$.prototype.getTypeName=function(){return"musicArtist"};
var vK2=function(){gS.apply(this,arguments)};
_.A(vK2,gS);vK2.prototype.getAssociations=function(){var g=[];this.delegate.parentArtist&&g.push(this.delegate.parentArtist);return[].concat(_.na(new Set(g)))};
vK2.prototype.getTypeName=function(){return"musicArtistDetail"};
var D8i=function(){gS.apply(this,arguments)};
_.A(D8i,gS);D8i.prototype.getAssociations=function(){var g=[];this.delegate.parentArtist&&g.push(this.delegate.parentArtist);return[].concat(_.na(new Set(g)))};
D8i.prototype.getTypeName=function(){return"musicArtistUserDetail"};var p2$=function(){gS.apply(this,arguments)};
_.A(p2$,gS);p2$.prototype.getAssociations=function(){return[]};
p2$.prototype.getTypeName=function(){return"musicLibraryEdit"};var Jab=function(){gS.apply(this,arguments)};
_.A(Jab,gS);Jab.prototype.getAssociations=function(){return[]};
Jab.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var jgW=function(){gS.apply(this,arguments)};
_.A(jgW,gS);
jgW.prototype.getAssociations=function(){var g=[];this.delegate.tracks&&g.push.apply(g,_.na(this.delegate.tracks));this.delegate.refresh&&g.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&g.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&g.push(this.delegate.details);this.delegate.downloadMetadata&&g.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&g.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&g.push(this.delegate.userDetails);this.delegate.entryCollection&&
g.push(this.delegate.entryCollection);this.delegate.share&&g.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&g.push.apply(g,_.na((new fxW(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.na(new Set(g)))};
jgW.prototype.getTypeName=function(){return"musicPlaylist"};
var fxW=function(){Ud.apply(this,arguments)};
_.A(fxW,Ud);fxW.prototype.getAssociations=function(){var g=[];this.delegate.creatorEntity&&g.push(this.delegate.creatorEntity);return[].concat(_.na(new Set(g)))};var M3Z=function(){gS.apply(this,arguments)};
_.A(M3Z,gS);M3Z.prototype.getAssociations=function(){return[]};
M3Z.prototype.getTypeName=function(){return"musicShare"};var t3R=function(){gS.apply(this,arguments)};
_.A(t3R,gS);
t3R.prototype.getAssociations=function(){var g=[];this.delegate.musicLibraryStatusEntity&&g.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&g.push.apply(g,_.na(this.delegate.artists));this.delegate.audioModeVersion&&g.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&g.push(this.delegate.videoModeVersion);this.delegate.userDetails&&g.push(this.delegate.userDetails);this.delegate.details&&g.push(this.delegate.details);this.delegate.albumRelease&&g.push(this.delegate.albumRelease);this.delegate.share&&
g.push(this.delegate.share);this.delegate.libraryEdit&&g.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&g.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&g.push(this.delegate.playbackPosition);this.delegate.lyrics&&g.push(this.delegate.lyrics);return[].concat(_.na(new Set(g)))};
t3R.prototype.getTypeName=function(){return"musicTrack"};
var e80=function(){gS.apply(this,arguments)};
_.A(e80,gS);e80.prototype.getAssociations=function(){var g=[];this.delegate.parentTrack&&g.push(this.delegate.parentTrack);return[].concat(_.na(new Set(g)))};
e80.prototype.getTypeName=function(){return"musicTrackDetail"};
var GT8=function(){gS.apply(this,arguments)};
_.A(GT8,gS);GT8.prototype.getAssociations=function(){var g=[];this.delegate.parentTrack&&g.push(this.delegate.parentTrack);return[].concat(_.na(new Set(g)))};
GT8.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Fa=new _.d2("musicResponsiveListItemRenderer");var xlF=new _.d2("addToPlaylistEndpoint");var $8Z=new _.d2("captionPickerEndpoint");var R8R=new _.d2("suggestStats");var w2i=new _.d2("backstageImageUploadEndpoint");var cao=new _.d2("createBackstagePostDialogEndpoint");_.HKb=new _.d2("createCommentReplyDialogEndpoint");_.Aai=new _.d2("updateCommentDialogEndpoint");_.ZK5=new _.d2("updateCommentReplyDialogEndpoint");var lx$=new _.d2("menuEndpoint");var xjq=new _.d2("modalEndpoint");var Ixi=new _.d2("playlistEditorEndpoint");var iKX=new _.d2("copyTextEndpoint");var CwX,bK5;CwX=new _.d2("shareEndpoint");bK5=new _.d2("shareEntityEndpoint");_.d8b=new _.d2("shareEntityServiceEndpoint");_.VrJ=new _.d2("userFeedbackEndpoint");_.l1=new _.d2("watchEndpoint");var x2b=new _.d2("watchPlaylistEndpoint");var F5b=new _.d2("addUpcomingEventReminderEndpoint");_.jW=new _.d2("getCommentsFromInboxCommand");var m8o=new _.d2("notificationOptOutEndpoint");var ax$=new _.d2("recordNotificationInteractionsEndpoint");var V3$=new _.d2("removeUpcomingEventReminderEndpoint");_.I9=new _.d2("getDownloadActionCommand");_.X2a=new _.d2("offlineOrchestrationActionCommand");var raX=function(){gS.apply(this,arguments)};
_.A(raX,gS);raX.prototype.getAssociations=function(){return[]};
raX.prototype.getTypeName=function(){return"captionTrack"};var W5H=function(){gS.apply(this,arguments)};
_.A(W5H,gS);W5H.prototype.getAssociations=function(){return[]};
W5H.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var Tgb=function(){gS.apply(this,arguments)};
_.A(Tgb,gS);Tgb.prototype.getAssociations=function(){return[]};
Tgb.prototype.getTypeName=function(){return"offlineVideoPolicy"};var h8n=function(){gS.apply(this,arguments)};
_.A(h8n,gS);h8n.prototype.getAssociations=function(){return[]};
h8n.prototype.getTypeName=function(){return"offlineVideoStreams"};var Yvo=function(){gS.apply(this,arguments)};
_.A(Yvo,gS);Yvo.prototype.getAssociations=function(){var g=[];this.delegate.transfer&&g.push(this.delegate.transfer);this.delegate.adsPlaybackData&&g.push.apply(g,_.na(this.delegate.adsPlaybackData));this.delegate.drmLicense&&g.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&g.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&g.push(this.delegate.videoDownloadContextEntity);return[].concat(_.na(new Set(g)))};
Yvo.prototype.getTypeName=function(){return"playbackData"};var OKo=function(){gS.apply(this,arguments)};
_.A(OKo,gS);OKo.prototype.getAssociations=function(){return[]};
OKo.prototype.getTypeName=function(){return"refresh"};var K5X=function(){gS.apply(this,arguments)};
_.A(K5X,gS);K5X.prototype.getAssociations=function(){var g=[];this.delegate.offlineVideoStreams&&g.push.apply(g,_.na(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&g.push.apply(g,_.na(this.delegate.captionTrack));return[].concat(_.na(new Set(g)))};
K5X.prototype.getTypeName=function(){return"transfer"};var x8$=function(){gS.apply(this,arguments)};
_.A(x8$,gS);x8$.prototype.getAssociations=function(){return[]};
x8$.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var Bga=new _.d2("showMoreDrawerCommand");var z8i=new _.d2("updateEngagementPanelContentCommand");var nKx=new _.d2("getPdgBuyFlowCommand");var kT2=new _.d2("liveChatPurchaseMessageEndpoint");var Sv5=new _.d2("openSuperStickerBuyFlowCommand");var oKx=new _.d2("updatePdgFeatureEnablementCommand");var U85=function(){gS.apply(this,arguments)};
_.A(U85,gS);U85.prototype.getAssociations=function(){return[]};
U85.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var g3X=function(){gS.apply(this,arguments)};
_.A(g3X,gS);g3X.prototype.getAssociations=function(){return[]};
g3X.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.u68=new _.d2("pdgCommentChipRenderer");_.q6Z=new _.d2("permissionRoleBottomBarRenderer");_.QzH=new _.d2("updatePermissionRoleCommand");var L45=new _.d2("prefetchWatchCommand");var E3o=new _.d2("updatePlayerErrorMessageCommand");var VoJ=new _.d2("toggleCaptionsVisibilityCommand");var PTZ=new _.d2("playerDisclosureViewModel");_.NxZ=new _.d2("quickActionsViewModel");var sz8=new _.d2("playerResponse");var yXn=new _.d2("playlistRenderer");_.v3b=new _.d2("playlistVideoListRenderer");_.fq=new _.d2("playlistEditEndpoint");var DJ0=new _.d2("createImagePollCommand");var pOx=new _.d2("createQuizCommand");var JX8=new _.d2("quizRenderer");var jz5=new _.d2("uploadedVideoRenderer");var fC0=new _.d2("decorateMessageEndpoint");var MC2=new _.d2("lpOfferCardOptionViewModel");var tCW=new _.d2("sfvAudioItemPlaybackCommand");var eVX=function(){gS.apply(this,arguments)};
_.A(eVX,gS);eVX.prototype.getAssociations=function(){return[]};
eVX.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.M4=new _.d2("reelNonVideoContentEndpoint");_.g$=new _.d2("reelWatchEndpoint");var GRR=new _.d2("reelActionBarViewModel");_.tn=new _.d2("reelItemRenderer");var $Jb=new _.d2("reelMetapanelViewModel");_.RV8=new _.d2("reelNonVideoContentRenderer");_.wO5=new _.d2("reelPlayerOverlayRenderer");var cXR=new _.d2("shortsLockupViewModel");var HF5=new _.d2("sponsorButtonViewModel");var AXZ=new _.d2("reelItemWatchResponse");var ZFo=new _.d2("textBadgeRenderer");_.eW=new _.d2("buttonRenderer");_.GZ=new _.d2("toggleButtonRenderer");var S2M=new _.d2("switchButtonViewModel");_.lCX=new _.d2("confirmDialogRenderer");var ICW;ICW=new _.d2("menuRenderer");_.iFX=new _.d2("menuFlexibleItemRenderer");var CT0=new _.d2("pollRenderer");_.bF$=new _.d2("backgroundPromoRenderer");var F42;_.dJX=new _.d2("chipCloudRenderer");F42=new _.d2("chipCloudChipRenderer");var mJ2=new _.d2("dropdownRenderer");var aC$=new _.d2("gridVideoRenderer");_.VCi=new _.d2("itemSectionRenderer");_.XO2=new _.d2("messageRenderer");var rXR=new _.d2("sortFilterHeaderRenderer");_.W4X=new _.d2("videoRenderer");var Txo=new _.d2("resolveUrlCommandMetadata");var hVR=function(){gS.apply(this,arguments)};
_.A(hVR,gS);hVR.prototype.getAssociations=function(){return[]};
hVR.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.Y6i=new _.d2("getAnswerCommand");_.Sb=new _.d2("searchEndpoint");var OFR=new _.d2("genAiRichTextViewModel");var O$3=new _.d2("overviewAnswerViewModel");var K4b=new _.d2("videoOverviewViewModel");var xJ2=new _.d2("addToPlaylistServiceEndpoint");var BxX=new _.d2("clearSearchHistoryEndpoint");var zVx=new _.d2("clearWatchHistoryEndpoint");var n3i=new _.d2("webSerializedServiceEndpointExtension");_.kR8=new _.d2("createCommentEndpoint");var S6X=new _.d2("createCommentReplyEndpoint");var o32=new _.d2("performCommentActionEndpoint");var UJx=new _.d2("updateCommentEndpoint");var geW=new _.d2("updateCommentReplyEndpoint");_.$l=new _.d2("createPlaylistServiceEndpoint");var uqo=new _.d2("deletePlaylistEndpoint");var qMn=new _.d2("deleteVideoEndpoint");var Kj3=new _.d2("getReportFormEndpoint");var Q_H=new _.d2("modifyChannelNotificationPreferenceEndpoint");var uBT;_.ne=new _.d2("offlinePlaylistEndpoint");uBT={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 q4q;_.zc=new _.d2("offlineVideoEndpoint");q4q={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 LfZ=new _.d2("pingingEndpoint");_.Eeb=new _.d2("selectActiveIdentityEndpoint");var PpH=new _.d2("setSettingEndpoint");var ITZ=new _.d2("undoFeedbackEndpoint");var NoR=new _.d2("unsubscribeEndpoint");_.s_i=new _.d2("updatedMetadataEndpoint");var yF5=function(){gS.apply(this,arguments)};
_.A(yF5,gS);yF5.prototype.getAssociations=function(){return[]};
yF5.prototype.getTypeName=function(){return"settingEntity"};_.vex=new _.d2("updateLocalAppSettingCommand");var D5X=new _.d2("saveImageToDeviceEndpoint");var p_a=new _.d2("shareImageCommand");var JF5=new _.d2("sharingProviderDataCommand");var j_X=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(j_X,_.fv);var fh5=[0,_.mE,-1];j_X.prototype.JSC$12839_serializeBinary=yBq(fh5);var MB0=_.iO(fh5);var tBa=new _.d2("userMentionSuggestionRenderer");var eOa=new _.d2("liveChatTunnelCommand");var Gu5=new _.d2("showSponsorshipsGiftOfferDialogCommand");var $5a=new _.d2("sponsorshipsScrollableShelfViewModel");var ROH=new _.d2("updateUpcomingEventReminderButtonStateCommand");var w_n=new _.d2("upcomingEventReminderButtonStateRenderer");var cF5=new _.d2("subscribeEndpoint");var H1R=new _.d2("registerTasksCommand");var AF5=new _.d2("hideSheetCommand");var Z1$=new _.d2("hideSnackbarCommand");var lha=new _.d2("showDialogCommand");_.q0=new _.d2("showSheetCommand");var Ih8=new _.d2("showSnackbarCommand");var i1b=function(){gS.apply(this,arguments)};
_.A(i1b,gS);i1b.prototype.getAssociations=function(){return[]};
i1b.prototype.getTypeName=function(){return"chipEntity"};var Cpn=function(){gS.apply(this,arguments)};
_.A(Cpn,gS);Cpn.prototype.getAssociations=function(){return[]};
Cpn.prototype.getTypeName=function(){return"dismissState"};_.fn=new _.d2("avatarViewModel");var b12=new _.d2("badgeViewModel");_.Rn=new _.d2("buttonViewModel");_.wS=new _.d2("chipViewModel");var d50=new _.d2("contentPreviewImageViewModel");var FfR=new _.d2("decoratedAvatarViewModel");_.Mwf=new _.d2("engagementBarViewModel");_.m5$=new _.d2("imageBannerViewModel");var ahi=new _.d2("lockupContentMetadataRowExtension");_.VB$=new _.d2("lockupMetadataViewModel");var X_8=new _.d2("lockupViewModel");var rFo=new _.d2("avatarStackViewModel");_.Wf8=new _.d2("contentMetadataViewModel");var Tob=function(){gS.apply(this,arguments)};
_.A(Tob,gS);Tob.prototype.getAssociations=function(){return[]};
Tob.prototype.getTypeName=function(){return"pageHeaderEntity"};_.hOo=new _.d2("pageHeaderViewModel");var YMZ=new _.d2("snackbarViewModel");var O1b=new _.d2("thumbnailHoverOverlayToggleActionsViewModel");_.cF=new _.d2("toggleButtonViewModel");var Kfn=function(){gS.apply(this,arguments)};
_.A(Kfn,gS);Kfn.prototype.getAssociations=function(){return[]};
Kfn.prototype.getTypeName=function(){return"votingEntity"};_.twF=new _.d2("votingViewModel");var x5a=new _.d2("sectionHeaderViewModel");var Boo=new _.d2("notifyDropdownOptionSelectedCommand");var AdK=new _.d2("listViewModel");_.Q4=new _.d2("listItemViewModel");var zO0=new _.d2("dialogHeaderViewModel");var ne8=function(){gS.apply(this,arguments)};
_.A(ne8,gS);ne8.prototype.getAssociations=function(){return[]};
ne8.prototype.getTypeName=function(){return"dataFreshnessEntity"};var dhS=new _.d2("suspenseViewModel");var kuZ=new _.d2("tooltipViewModel");var SM8=function(){gS.apply(this,arguments)};
_.A(SM8,gS);SM8.prototype.getAssociations=function(){return[]};
SM8.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var oeo=function(){gS.apply(this,arguments)};
_.A(oeo,gS);oeo.prototype.getAssociations=function(){return[]};
oeo.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var U55=function(){gS.apply(this,arguments)};
_.A(U55,gS);U55.prototype.getAssociations=function(){return[]};
U55.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.gs8=new _.d2("transcriptSubmitCaptionCorrectionCommand");var uN2=function(){gS.apply(this,arguments)};
_.A(uN2,gS);uN2.prototype.getAssociations=function(){return[]};
uN2.prototype.getTypeName=function(){return"buttonEntity"};var FTZ=new _.d2("unpluggedStringRunImage");var qCa=new _.d2("tabViewModel");var QP8=new _.d2("tabbedViewModel");var LA5=function(){gS.apply(this,arguments)};
_.A(LA5,gS);LA5.prototype.getAssociations=function(){return[]};
LA5.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Es5=new _.d2("updateDescriptionAction");var PqW=new _.d2("updateToggleButtonTextAction");var NZb=new _.d2("showFullscreenPlayerControlsCommand");var sPi=new _.d2("updateVideoMetadataCommand");_.yP$=new _.d2("autoplaySwitchButtonRenderer");var eU;_.vs$=new _.d2("multiMarkersPlayerBarRenderer");eU=new _.d2("chapterRenderer");var Dp2=new _.d2("heatMarkerRenderer");var TIf=new _.d2("heatmapRenderer");var pyo=new _.d2("smartSkipPlayerScrimOverlayRenderer");var JPn=new _.d2("timedMarkerDecorationRenderer");var Lqm=new _.d2("postWebToNativeMessageCommand");var f3=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(f3,_.fv);f3.prototype.getMethodName=function(){return _.J2(this,1)};var jPR=[0,_.mE,-2];f3.prototype.JSC$12861_serializeBinary=yBq(jPR);var f5Z=_.lO(f3,jPR);var MtH=new _.d2("whitelistEditEndpoint");var tt0=new _.d2("clearUrlParamCommand");var e6x=new _.d2("commerceActionCommand");_.GfX=new _.d2("getPaymentInstrumentsParamsCommand");var $pZ=new _.d2("getPaymentsClientTokenCommand");var R6Z=new _.d2("googlePaymentBillingCommand");var wyW=new _.d2("googlePaymentPurchaseManagerCommand");_.cP2=new _.d2("logGtmCommand");var HlR=new _.d2("updateCardItemOnClickCommand");_.APi=new _.d2("ypcPauseSubscriptionCommand");_.Zlb=new _.d2("ypcResumeSubscriptionCommand");var l5X=function(){gS.apply(this,arguments)};
_.A(l5X,gS);l5X.prototype.getAssociations=function(){return[]};
l5X.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var I5i=function(){gS.apply(this,arguments)};
_.A(I5i,gS);I5i.prototype.getAssociations=function(){return[]};
I5i.prototype.getTypeName=function(){return"commerceCartListEntity"};var ilb=function(){gS.apply(this,arguments)};
_.A(ilb,gS);ilb.prototype.getAssociations=function(){return[]};
ilb.prototype.getTypeName=function(){return"iconBadgeEntity"};var CqW=function(){gS.apply(this,arguments)};
_.A(CqW,gS);CqW.prototype.getAssociations=function(){return[]};
CqW.prototype.getTypeName=function(){return"pdpStateEntity"};var bl5=function(){gS.apply(this,arguments)};
_.A(bl5,gS);bl5.prototype.getAssociations=function(){return[]};
bl5.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var bxJ=new _.d2("ypcOffersEndpoint");var dp$=new _.d2("cardItemRenderer"),FA0=new _.d2("cardItemTextRenderer");var mp$=new _.d2("commerceCartItemQuantityPickerRenderer");var a5a=new _.d2("linkCardRenderer");var SNh=new _.d2("quantityIncrementerButtonViewModel");var Vtx=new _.d2("quantityIncrementerViewModel");var XyX=new _.d2("themedImageViewModel");_.rPW=new _.d2("ypcCancelRecurrenceEndpoint");var hCZ=new _.d2("ypcCompleteTransactionEndpoint");_.YmR=new _.d2("ypcGetCartEndpoint");_.Is=new _.d2("ypcGetOffersEndpoint");_.HF=new _.d2("ypcHandleTransactionEndpoint");var OGZ=new _.d2("ypcLogWalletAnalyticDataEndpoint");_.Kw0=new _.d2("ypcRedeemCodeEndpoint");var xU$=new _.d2("ypcUpdateFopEndpoint");FM(d5(1),CJ(4));tx$((new MessageChannel).port2);var B72=function(){this.register=new Map},jnq=function(g,u,q){g=g+"_"+u;
An.register.has(g)?q=An.register.get(g):(q=q(),An.register.set(g,q));return q},zC0=function(g){g=_.N(g.register.values());
for(var u=g.next();!u.done;u=g.next())_.o1(u.value,"ABORTED")};
B72.prototype.clear=function(){zC0(this);this.register.clear()};
var An=new B72;var z03=Date.now().toString();var Sdq=koq();var ElT={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 n4o;n4o=1;_.pV=function(g){this.veData=g};
_.Lr=function(g){return new _.pV({trackingParams:g})};
_.Yq=function(g,u,q,Q,L,E){var y=n4o++;return new _.pV({veType:g,veCounter:y,elementIndex:q,dataElement:u,youtubeData:Q,jspbYoutubeData:L,loggingDirectives:E})};
_.P=_.pV.prototype;
_.P.getAsJson=function(){var g={};this.veData.trackingParams!==void 0?g.trackingParams=this.veData.trackingParams:(g.veType=this.veData.veType,this.veData.veCounter!==void 0&&(g.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(g.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(g.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(g.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(g.isCounterfactual=!0);
return g};
_.P.getAsJspb=function(){var g=new uSo;this.veData.trackingParams!==void 0?g.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.e$(g,2,this.veData.veType),this.veData.veCounter!==void 0&&_.e$(g,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.e$(g,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.OU(g,5,!0));if(this.veData.dataElement!==void 0){var u=this.veData.dataElement.getAsJspb();_.FV(g,7,u)}this.veData.youtubeData!==void 0&&_.FV(g,8,this.veData.jspbYoutubeData);
return g};
_.P.toString=function(){return JSON.stringify(this.getAsJson())};
_.P.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.P.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.xQ("yt_logging_screen.getRootVeType",qwZ);_.xQ("yt_logging_screen.getCurrentCsn",_.j_);_.xQ("yt_logging_screen.getCttAuthInfo",fV);_.xQ("yt_logging_screen.setCurrentScreen",_.MK);var kbo=function(){this.events=new Map},Smn=function(g){var u=[];
g=_.N(g.events.values());for(var q=g.next();!q.done;q=g.next())u.push(q.value);return u};
kbo.prototype.clear=function(){this.events.clear()};var UU2=function(){this.logTransport=new o48;this.loggedEventRegister=new kbo;this.unloggedEventRegister=new kbo;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12898_flushTimer=new _.vD(this.flushInterval);this.JSC$12898_flushTimer.listen("tick",this.flush,!1,this)};
UU2.prototype.flush=function(){if(this.eventsCount){var g={loggedEvents:Smn(this.loggedEventRegister),unloggedEvents:Smn(this.unloggedEventRegister)};if(_.w("export_player_version_to_ytconfig")){var u;(u=_.FR("PLAYER_CLIENT_VERSION"))?(u=u.split("-")[0].replace(/\./g,""),u=isNaN(Number(u))?"0":u):u="";var q=_.FR("PLAYER_CLIENT_VERSION");if(q){q=q.split("-");var Q="";q.length>1&&(Q=q[q.length-1]);q=B5J(Q.startsWith("canary_experiment")?"canary":Q.startsWith("canary_control")?"control":"none")}else q=
"CLIENT_CANARY_STATE_UNKNOWN";g.dimensions={playerClientVersion:u,playerCanaryState:q}}this.logTransport.flush(g);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12898_flushTimer.enabled&&this.JSC$12898_flushTimer.stop()}};
var grR=function(g){ZL==null&&(ZL=new UU2);var u=ZL;var q=u.loggedEventRegister;g.dimensions=g.dimensions||{};g.dimensions.csn=_.j_()||"";var Q=snm(g.dimensions).join(";");if(g.records!=null)if(q.events.has(Q)){var L;(L=q.events.get(Q).records)==null||L.push.apply(L,_.na(g.records))}else q.events.set(Q,g);u.JSC$12898_flushTimer.enabled||u.JSC$12898_flushTimer.start();u.eventsCount++;u.eventsCount>=100&&u.flush()};var o48=function(){};
o48.prototype.flush=function(g,u){_.w("enable_client_sli_logging")&&_.H6("sliEventBatch",g,{sendIsolatedPayload:!!u})};var ZL;var qy$;qy$=function(g){var u=us8;g=g===void 0?{}:g;u=u.name;var q=JnJ("SUCCESS");grR({dimensions:g,records:[{name:u,state:"SLI_STATE_END",status:q}]})};
_.fLF=function(g,u,q,Q){this.name=g;this.sliId=u;this.timeoutMs=q;this.statusOnTimeout=Q;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.fLF.prototype.getId=function(){return this.sliId};
_.SV=function(g,u){u=u===void 0?{}:u;g.ongoing||(g.ongoing=!0,g.dimensions=u,g.logSliId=Vkb(),grR({dimensions:g.dimensions,records:[{name:g.name,state:"SLI_STATE_START",sliId:g.logSliId}]}),g.timeoutMs>0&&(g.timeoutHandle=setTimeout(function(){_.o1(g,g.statusOnTimeout)},g.timeoutMs)))};
_.o1=function(g,u){g.ongoing&&(g.timeoutMs>0&&clearTimeout(g.timeoutHandle),g.ongoing=!1,u={dimensions:g.dimensions,records:[{name:g.name,status:JnJ(u),state:"SLI_STATE_END",sliId:g.logSliId}]},An.register.delete(g.name+"_"+g.sliId),grR(u))};var us8=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Qd8=function(){gS.apply(this,arguments)};
_.A(Qd8,gS);Qd8.prototype.getAssociations=function(){return[]};
Qd8.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var LFx=new _.d2("highlightTextDecoratorColorMapExtension");var Erb=new _.d2("styleRunColorMapExtension");var wFS=_.CT(["data-"]),Anq={};var lLf={};var lk=function(g){this.wrappedPromise_=g===void 0?null:g;this.state_=0;this.JSC$12929_value_=null};
lk.prototype.then=function(g,u,q){return this.wrappedPromise_?this.wrappedPromise_.then(g,u,q):this.state_===1&&g?(g=g.call(q,this.JSC$12929_value_))&&typeof g.then==="function"?g:_.In(g):this.state_===2&&u?(g=u.call(q,this.JSC$12929_value_))&&typeof g.then==="function"?g:_.P5Z(g):this};
lk.prototype.getValue=function(){return this.JSC$12929_value_};
lk.prototype.isRejected=function(){return this.state_==2};
JMi(lk);_.P5Z=function(g){var u=new lk;g=g===void 0?null:g;u.state_=2;u.JSC$12929_value_=g===void 0?null:g;return u};
_.In=function(g){var u=new lk;g=g===void 0?null:g;u.state_=1;u.JSC$12929_value_=g===void 0?null:g;return u};var Yw3="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var NRH=["load","abort","error"],ik=function(g,u,q){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12949_maxAspectRatio_=g;this.disableAnimation_=u===void 0?!1:u;this.disableExifRotation_=q===void 0?!1:q;this.JSC$12949_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12949_reject_=this.resolve_=null};
ik.prototype.transform=function(g){var u=this;this.mime_=g.type;aV(Kya(g),this.dataUrlRead_,this.readError_,this);aV(OrZ(g.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(q,Q){u.resolve_=q;u.JSC$12949_reject_=Q})};
ik.prototype.dataUrlRead_=function(g){this.dataUrl_=g;this.angle_!=null&&sdb(this)};
ik.prototype.exifRead_=function(g){if(this.disableExifRotation_)this.angle_=0;else{a:if(g=new DataView(g),g.byteLength<2||g.getUint16(0)!==65496)g=-2;else{for(var u=2,q=g.byteLength;u<q;){var Q=g.getUint16(u),L=g.getUint16(u+2);if(Q===65505){u+=4;Q=g.getUint32(u);L=g.getUint16(u+4);if(Q!==1165519206||L!==0)break;u+=6;Q=g.getUint16(u)===18761;u+=g.getUint32(u+4,Q);L=g.getUint16(u,Q);u+=2;for(var E=0;E<L;E++){if(g.getUint16(u,Q)===274){u+=8;g=g.getUint16(u,Q);break a}u+=12}}else if(Q>>8!==255)break;
else u+=L+2}g=-1}switch(g){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&&sdb(this)};
ik.prototype.readError_=function(){this.JSC$12949_reject_()};
var sdb=function(g){fh(g.JSC$12949_image_,NRH,g.completeTransform_,!1,g);g.JSC$12949_image_.src=_.SO(g.dataUrl_).toString();g.JSC$12949_image_.src!=kV.toString()&&g.JSC$12949_image_.src.substr(0,11)==="data:image/"||g.JSC$12949_reject_()};
ik.prototype.completeTransform_=function(){if(this.JSC$12949_image_.src!=kV.toString()){var g=_.SO(this.dataUrl_),u=this.JSC$12949_image_.naturalHeight?this.JSC$12949_image_.naturalWidth/this.JSC$12949_image_.naturalHeight:null;this.invalidAspectRatio=u>this.JSC$12949_maxAspectRatio_||u<1/this.JSC$12949_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var q=this.JSC$12949_image_.naturalWidth,Q=this.JSC$12949_image_.naturalHeight,L=u=0,E=this.JSC$12949_image_.naturalHeight?this.JSC$12949_image_.naturalWidth/
this.JSC$12949_image_.naturalHeight:null;E>this.JSC$12949_maxAspectRatio_?(q=this.JSC$12949_maxAspectRatio_*Q,u=(q-this.JSC$12949_image_.naturalWidth)/2,this.cropped=!0):E<1/this.JSC$12949_maxAspectRatio_?(Q=this.JSC$12949_maxAspectRatio_*q,L=(Q-this.JSC$12949_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)E=q,q=Q,Q=E,E=u,u=L,L=E;switch(this.angle_){case 90:L-=q;break;case 180:u-=q;L-=Q;break;case 270:u-=
Q}this.cropped||this.angle_%360!==0?(g=document.createElement("canvas"),g.width=q||1,g.height=Q||1,this.JSC$12949_image_.naturalWidth&&this.JSC$12949_image_.naturalHeight&&(q=g.getContext("2d"),q.rotate(Math.PI/180*this.angle_),q.drawImage(this.JSC$12949_image_,u,L,this.JSC$12949_image_.naturalWidth,this.JSC$12949_image_.naturalHeight)),this.transformedData=_.SO(g.toDataURL(this.mime_))):this.transformedData=g}else this.transformedData=g;this.resolve_(this)}};var Cq=function(g,u){_.YF.call(this,g);this.value=u};
_.A(Cq,_.YF);
var bk=function(g,u,q,Q,L,E,y){y=y===void 0?!1:y;_.A5.call(this);var v=this;this.JSC$12954_url_=g;this.channelId_=u;this.maxFileSizeMb_=q;this.JSC$12954_maxAspectRatio_=Q;this.dropZoneEl_=L;this.rejectInvalidAspectRatio_=y;this.selectButtonEl_=E;this.JSC$12954_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new hO(this.dropZoneEl_);this.selectOverlay_=new Yf(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12954_image_=this.transfer_=null;this.handler_=new _.NV(this);_.z$(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(E,"click",function(){v.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.A(bk,_.A5);bk.prototype.disposeInternal=function(){for(var g=this.selectButtonEl_.nextSibling;g&&g.parentNode&&g.tagName=="INPUT";)g.parentNode.removeChild(g),g=this.selectButtonEl_.nextSibling;this.cancel();_.A5.prototype.disposeInternal.call(this)};
bk.prototype.uploadPromise=function(){if(this.JSC$12954_image_==null)return null;this.uploadPromise_||yVo(this);return this.uploadPromise_};
bk.prototype.cancel=function(){vr8(this);this.JSC$12954_image_=null};
var vr8=function(g){g.transfer_&&g.transfer_.cancel();g.transfer_=null;g.uploadPromise_=null;g.resolve_=null;g.JSC$12954_reject_=null},yVo=function(g){vr8(g);
g.transfer_=_.l9x(g.JSC$12954_url_,{"X-YouTube-ChannelId":g.channelId_},g.JSC$12954_image_);g.handler_.listenOnce(g.transfer_,"l",g.JSC$12956_onUploadComplete_);g.handler_.listenOnce(g.transfer_,"n",g.onUploadError_);g.transfer_.run();g.uploadPromise_=new Promise(function(u,q){g.resolve_=u;g.JSC$12954_reject_=q})};
_.P=bk.prototype;_.P.onChange_=function(g){g.files.length&&(this.JSC$12954_image_=g.files[0],this.JSC$12954_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12954_image_=null,this.dispatchEvent(new Cq("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(yVo(this),(new ik(this.JSC$12954_maxAspectRatio_)).transform(this.JSC$12954_image_).then((0,_.EH)(this.onPreview_,this),(0,_.EH)(this.onPreviewError_,this))))};
_.P.onPreview_=function(g){if(g.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12954_image_=null),this.dispatchEvent(new Cq("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;g.cropped&&this.dispatchEvent(new Cq("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Cq("yt.comments.ImageUploadOverlay.CHANGE_EVENT",g.transformedData))};
_.P.onPreviewError_=function(){this.JSC$12954_image_=null;this.dispatchEvent(new Cq("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.P.onHover_=function(g){g.stopPropagation();g.preventDefault();if(g.type==="dragover")g=!0;else if(g.type==="dragleave")g=!1;else return;this.dispatchEvent(new Cq("yt.comments.ImageUploadOverlay.HOVER_EVENT",g))};
_.P.JSC$12956_onUploadComplete_=function(){var g=(0,_.Xk2)(this.transfer_.getResponseText());this.resolve_(g.encryptedBlobId)};
_.P.onUploadError_=function(){this.JSC$12954_reject_();vr8(this)};var D25=function(g){g=g||{};var u={},q={};this.url=g.url||"";this.args=g.args||_.pH.clone(u);this.assets=g.assets||{};this.attrs=g.attrs||_.pH.clone(q);this.fallback=g.fallback||null;this.fallbackMessage=g.fallbackMessage||null;this.html5=!!g.html5;this.disable=g.disable||{};this.loaded=!!g.loaded;this.messages=g.messages||{}};
D25.prototype.clone=function(){var g=new D25,u;for(u in this)if(this.hasOwnProperty(u)){var q=this[u];_.EZ(q)=="object"?g[u]=_.pH.clone(q):g[u]=q}return g};var kZq=function(g,u,q){q=q===void 0?{}:q;this.name=g;this.id=X1.nextSpanId++;this.sessionId=X1.sessionId;this.attributes=u;this.status="SPAN_STATUS_UNSET";var Q;this.startTime=(Q=q.startTime)!=null?Q:(0,_.n0)();this.isActiveSpan=q.active;if(g=X1.stack[X1.stack.length-1])this.parentId=g.id,g.children||(g.children=[]),g.children.push(this);g=_.N(X1.processors);for(u=g.next();!u.done;u=g.next()){u=u.value;try{var L=Q=void 0;(L=(Q=u).onSpanStart)==null||L.call(Q,this)}catch(E){_.Io(E)}}q.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",q.endTime))};
kZq.prototype.end=function(g,u){g=g===void 0?"SPAN_STATUS_OK":g;this.endTime=u=u===void 0?(0,_.n0)():u;this.duration=this.endTime-this.startTime;this.status=g;this.isActiveSpan!==!1&&(X1.stack[X1.stack.length-1]===this?X1.stack.pop():_.Io(Error("Df`"+String(this.name))));g=_.N(X1.processors);for(u=g.next();!u.done;u=g.next()){u=u.value;try{var q=void 0,Q=void 0;(Q=(q=u).onSpanEnd)==null||Q.call(q,this)}catch(L){_.Io(L)}}};
kZq.prototype.addAttributes=function(g){Object.assign(this.attributes,g)};
var Swf={end:function(){},
addAttributes:function(){}},X1={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},nlk={rootSpan:function(){return X1.stack[0]}};var Tg={};var t6m=function(g){this.observers=[];this.value=g};
_.P=t6m.prototype;_.P.subscribe=function(g){var u=this;if(g.idx!=null)throw Error("Ff");g.idx=this.observers.length;this.observers.push(g);try{g(this.value)}catch(q){}return function(){var q=u.observers[u.observers.length-1];u.observers[g.idx]=q;q.idx=g.idx;u.observers.pop()}};
_.P.update=function(g){this.value=g(this.value);this.notify()};
_.P.mutate=function(g){g(this.value);this.notify()};
_.P.set=function(g){this.value=g;this.notify()};
_.P.notify=function(){for(var g=_.N(this.observers),u=g.next();!u.done;u=g.next()){u=u.value;try{u(this.value)}catch(q){}}};var pwR,JV0,jdZ,d_,MmR,tmn,eD2,GVx,$2b,RD$,ww8,cVa,Hm8,AV2,ZmW,lG0,IG0,ima,C5a,bmW,d2W,FFx,m2x,aGH,Vmo,XwX,rV0,WF8,TRo,pgm,hDH,Yyx,Omi,KFa,x20,BRx,zD5,nrR,kVW,Sya,DLM,ora,U2x,gDZ,u82,q$i,QCx,LSH,ED$,PB8,Nfb,sCW,yAH,vDH,D7x,p4b,dS,JA0,jCW,fyX,ME0,tEZ,e_0,G7X,$7x,R_n,w4a,cAX,HyX,AA8,Zy8,lyi,Iy0,iyx,CB8,by5,yNK,d7Z,FSi,m7R,ay5,VEi,X45,rA2,WSR,TfR,h_Z,Y$R,Oy5,KSH,x7o,Bfi,z_o,nD$,k7a,S$W,oD2,U78,gzn,ud5,qJi,Qk2;pwR=["account/accounts_list"];JV0=["acknowledge_channel_tou_strike"];jdZ=["notification/add_upcoming_event_reminder"];
_.fG8=["att/get"];d_=["browse","music/browse","streaming_browse","unplugged/browse"];MmR=["channel/claim_legacy_youtube_channel"];tmn=["history/clear_search_history"];eD2=["history/clear_watch_history"];GVx=["comment/perform_comment_action"];$2b=["comment/get_comment_replies"];RD$=["ypc/commerce_action"];ww8=["backstage/create_post"];cVa=["live/create_broadcast"];Hm8=["channel/create_channel"];AV2=["comment/create_comment_reply"];ZmW=["comment/create_comment"];lG0=["live_chat/create_poll"];IG0=["playlist/create"];
ima=["decorate_message"];C5a=["live_chat/delete_message"];bmW=["playlist/delete"];d2W=["video/delete"];FFx=["like/dislike"];m2x=["dismissal/dismiss"];aGH=["flag/flag"];Vmo=["flow"];XwX=["account/account_menu"];rV0=["playlist/get_add_to_playlist"];WF8=["get_answer"];TRo=["channel/get_channel_creation_form"];pgm=["offline/get_download_action"];hDH=["kids/get_kids_blocklist_picker"];Yyx=["live_chat/get_item_context_menu"];Omi=["live_chat/get_live_chat_message_buy_flow"];KFa=["live_chat/get_live_chat_replay"];
x20=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];BRx=["live_chat/get_live_chat_super_sticker_buy_flow"];zD5=["notification/get_notification_menu"];nrR=["playlist/get_settings_editor"];kVW=["backstage/get_post_video_preview"];Sya=["account/get_profile_card"];DLM=["share/get_share_panel"];ora=["share/get_sharing_provider_data"];U2x=["get_survey"];gDZ=["notification/get_unseen_count"];u82=["get_user_mention_suggestions"];q$i=["get_watch"];QCx=["guide"];
LSH=["feedback"];ED$=["kids/update_blacklist"];PB8=["like/like"];Nfb=["live_chat/live_chat_action"];sCW=["live_chat/manage_user"];yAH=["video_manager/metadata_update"];vDH=["live_chat/moderate"];D7x=["notification/modify_channel_preference"];p4b=["notification/opt_out"];dS=["get_panel","get_posts_by_host_panel"];JA0=["player"];jCW=["browse/edit_playlist"];fyX=["notification/record_interactions"];ME0=["reel/reel_item_watch"];tEZ=["reel/reel_watch_sequence"];e_0=["like/removelike"];G7X=["notification/remove_upcoming_event_reminder"];
$7x=["flag/get_form"];R_n=["miniapp/report_value"];w4a=["navigation/resolve_url"];cAX=["channel/reveal_business_email"];HyX=["in_video/search"];AA8=["search","sfv/search","unplugged/search"];Zy8=["live_chat/send_message"];lyi=["live_chat/send_live_chat_vote"];Iy0=["account/set_setting"];iyx=["submit_caption_correction"];CB8=["submit_form"];by5=["subscription/subscribe"];yNK=["get_transcript"];d7Z=["resolve_location","unplugged/resolve_location"];FSi=["subscription/unsubscribe"];m7R=["backstage/update_post"];
ay5=["channel_edit/update_channel_page_settings"];VEi=["comment/update_comment_reply"];X45=["comment/update_comment"];rA2=["comment/update_comments_settings"];WSR=["creator/update_creator_channel"];TfR=["pdg/update_enablement"];h_Z=["updated_metadata"];Y$R=["channel_edit/validate_channel_handle"];Oy5=["verify_age"];KSH=["next","unplugged/watch_next"];x7o=["whitelist/edit"];Bfi=["ypc/cancel_recurrence"];z_o=["ypc/complete_transaction"];nD$=["ypc/get_cart"];k7a=["ypc/get_fix_instrument_params"];
S$W=["ypc/get_offers"];oD2=["ypc/get_payment_instruments_params"];U78=["ypc/handle_transaction"];gzn=["ypc/log_payment_server_analytics"];ud5=["ypc/pause_subscription"];qJi=["ypc/redeem_code"];Qk2=["ypc/resume_subscription"];var LM0=[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 or=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.xQ("yt.msgs_",or);var Fu=new _.Fv("ACTION_ROUTER_TOKEN");_.mB=function(){this.autonavState_=_.w("kevlar_is_pupi_enabled")?2:vau()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.mB.prototype.getState=function(){return this.autonavState_};
_.mB.prototype.pause=function(g){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=g):this.autonavState_==1&&(this.disabledAutonavPauseReason_=g)};
_.mB.prototype.setState=function(g,u,q){u&&(this.autoplayChangedByUser=!0);u=this.autonavState_===3||g===3;this.autonavState_!=g&&(this.autonavState_=g,g!=3&&_.DGJ(g==2),g=_.w("kevlar_is_pupi_enabled")?q||u:!0,_.VC.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,g,q))};
_.mB.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.rT(_.mB);var an=function(){this.q6=!1};var VP={},wdk=(VP.auto_search="LATENCY_ACTION_AUTO_SEARCH",VP.ad_to_ad="LATENCY_ACTION_AD_TO_AD",VP.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",VP.app_startup="LATENCY_ACTION_APP_STARTUP",VP.browse="LATENCY_ACTION_BROWSE",VP.cast_splash="LATENCY_ACTION_CAST_SPLASH",VP.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",VP.channels="LATENCY_ACTION_CHANNELS",VP.chips="LATENCY_ACTION_CHIPS",VP.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",VP.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
VP.editor="LATENCY_ACTION_EDITOR",VP.embed="LATENCY_ACTION_EMBED",VP.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",VP.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",VP.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",VP.explore="LATENCY_ACTION_EXPLORE",VP.favorites="LATENCY_ACTION_FAVORITES",VP.home="LATENCY_ACTION_HOME",VP.inboarding="LATENCY_ACTION_INBOARDING",VP.landing="LATENCY_ACTION_LANDING",VP.learning="LATENCY_ACTION_LEARNING",
VP.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",VP.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",VP.library="LATENCY_ACTION_LIBRARY",VP.live="LATENCY_ACTION_LIVE",VP.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",VP.management="LATENCY_ACTION_MANAGEMENT",VP.mini_app="LATENCY_ACTION_MINI_APP_PLAY",VP.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",VP.onboarding="LATENCY_ACTION_ONBOARDING",VP.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
VP.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",VP.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",VP.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",VP.prebuffer="LATENCY_ACTION_PREBUFFER",VP.prefetch="LATENCY_ACTION_PREFETCH",VP.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",VP.profile_switcher="LATENCY_ACTION_LOGIN",VP.projects="LATENCY_ACTION_PROJECTS",VP.reel_watch="LATENCY_ACTION_REEL_WATCH",VP.results="LATENCY_ACTION_RESULTS",VP.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
VP.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",VP.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",VP.review="LATENCY_ACTION_REVIEW",VP.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",VP.search_ui="LATENCY_ACTION_SEARCH_UI",VP.search_suggest="LATENCY_ACTION_SUGGEST",VP.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",VP.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",VP.seek="LATENCY_ACTION_PLAYER_SEEK",VP.settings="LATENCY_ACTION_SETTINGS",VP.store="LATENCY_ACTION_STORE",
VP.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",VP.tenx="LATENCY_ACTION_TENX",VP.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",VP.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",VP.watch="LATENCY_ACTION_WATCH",VP.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",VP["watch,watch7"]="LATENCY_ACTION_WATCH",VP["watch,watch7_html5"]="LATENCY_ACTION_WATCH",VP["watch,watch7ad"]="LATENCY_ACTION_WATCH",VP["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",VP.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
VP.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",VP.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",VP.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",VP.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",VP.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",VP.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",VP.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",VP),Ezb=0;var TEu=function(g,u){LA.call(this,1,arguments);this.timer=u};
_.A(TEu,LA);var W_m=new s5K("aft-recorded",TEu);var ZIS=_.Qq.ytLoggingGelSequenceIdObj_||{};_.xQ("ytLoggingGelSequenceIdObj_",ZIS);var Xu=_.Qq.ytLoggingLatencyUsageStats_||{};_.xQ("ytLoggingLatencyUsageStats_",Xu);var rS=function(){this.cleanupJob=0},iIZ=function(){rS.instance||(rS.instance=new rS);
return rS.instance};
_.P=rS.prototype;_.P.baseline=function(g,u,q){WF(this,"baseline_"+g)||_.H6("latencyActionBaselined",{clientActionNonce:g},{timestamp:u,cttAuthInfo:q})};
_.P.tick=function(g,u,q,Q){WF(this,"tick_"+g+"_"+u)||_.H6("latencyActionTicked",{tickName:g,clientActionNonce:u},{timestamp:q,cttAuthInfo:Q})};
_.P.info=function(g,u,q){var Q=Object.keys(g).join("");WF(this,"info_"+Q+"_"+u)||(g=Object.assign({},g),g.clientActionNonce=u,_.H6("latencyActionInfo",g,{cttAuthInfo:q}))};
_.P.jspbInfo=function(g,u,q){for(var Q="",L=0;L<Wn(g).length;L++)Wn(g)[L]!==void 0&&(Q=L===0?Q.concat(""+L):Q.concat("_"+L));WF(this,"info_"+Q+"_"+u)||(_.EU(g,2,u),u={cttAuthInfo:q},q=_.w("jspb_sparse_encoded_pivot")?new fw([{}]):new fw,_.mG(q,7,tb5,g),lVb("latencyActionInfo",q,u))};
_.P.span=function(g,u,q){var Q=Object.keys(g).join("");WF(this,"span_"+Q+"_"+u)||(g.clientActionNonce=u,_.H6("latencyActionSpan",g,{cttAuthInfo:q}))};
var WF=function(g,u){Xu[u]=Xu[u]||{count:0};var q=Xu[u];q.count++;q.time=(0,_.n0)();g.cleanupJob||(g.cleanupJob=_.M_(_.Hv,function(){var Q=(0,_.n0)(),L;for(L in Xu)Xu[L]&&Q-Xu[L].time>6E4&&delete Xu[L];g&&(g.cleanupJob=0)},5E3));
return q.count>5?(q.count===6&&Math.random()*1E5<1&&(q=new _.Ji("CSI data exceeded logging limit with key",u.split("_")),u.indexOf("plev")>=0||_.Io(q)),!0):!1};var P3H,Nb2;P3H=window;Nb2=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.yX=P3H.performance||P3H.mozPerformance||P3H.msPerformance||P3H.webkitPerformance||new Nb2;var r4u=!1,bIK=!1,hPq=(0,_.EH)(_.yX.clearResourceTimings||_.yX.webkitClearResourceTimings||_.yX.mozClearResourceTimings||_.yX.msClearResourceTimings||_.yX.oClearResourceTimings||_.vH,_.yX);var pmf=_.V1(function(g,u,q,Q,L,E,y){if(!_.w("web_csi_action_sampling_enabled")||!_.LW(E).actionDisabled){var v=y==null?void 0:y.spanStatus;y=y==null?void 0:y.rootSpanNonce;var J=_.ER(E);if(J.gelSpans)J.gelSpans[g]=!0;else{var f={};J.gelSpans=(f[g]=!0,f)}Ezb++;g={spanName:g,spanLengthUsec:String(Math.round(u*1E3)),spanNonce:Ezb,rootSpanNonce:y||Ezb};v&&(g.spanStatus=v);Q&&(g.spanInfo=Q);L&&(g.parentSpanNonce=L);q&&(g.spanStartTimeUsec=String(Math.round(q*1E3)));_.PC(E||"").span[String(g.spanName)]=
g;q=_.ER(E);q.gelSpans||(q.gelSpans={});_.e_(q.gelSpans,g);q=eP3(E);E=_.LW(E).cttAuthInfo;iIZ().span(g,q,E);return g.spanNonce}}),sk0=window;
sk0.ytcsi&&(sk0.ytcsi.infoGel=_.pW,sk0.ytcsi.tick=_.fW);var UGm=function(g){LA.call(this,1,arguments);this.csn=g};
_.A(UGm,LA);var Jrb=new s5K("screen-created",UGm),fxf=[],oaZ=jgf,M3h=0,$6=new Map,gKZ=new Map,uKT=new Map;var NIq=Symbol("Hf"),bH=new WeakMap;var TZ=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},qY=function(){TZ.instance||(TZ.instance=new TZ);
return TZ.instance};
_.P=TZ.prototype;_.P.setClient=function(g){this.client=g};
_.P.JSC$13053_newScreen=function(){this.clear();this.csn=_.j_()};
_.P.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.P.reportShown=function(g,u,q,Q){var L=this.JSC$13053_getTrackingParams(g),E=g.visualElement?g.visualElement:L;u=this.shownElements.has(E);var y=this.visibleState.get(E);this.shownElements.add(E);this.visibleState.set(E,!0);g.impressionLog&&!u&&g.impressionLog();if(L||g.visualElement)if(q=yw8(this,g,q))if(E=vzZ(this,g),hn(this,g)||E){L=g.visualElement?g.visualElement:_.Lr(L);var v=g.interactionLoggingClientData;E||u?hn(this,g)&4?y||yaq(this.client,q,L,v):hn(this,g)&1&&!u&&Pwh(this.client,q,L,v,Q):
Pwh(this.client,q,L,v,Q)}};
_.P.reportHidden=function(g,u,q,Q){var L=this.JSC$13053_getTrackingParams(g),E=g.visualElement?g.visualElement:L;u=this.hiddenElements.has(E);var y=this.visibleState.get(E);this.hiddenElements.add(E);this.visibleState.set(E,!1);if(y===!1)return!0;if(!L&&!g.visualElement)return!1;q=yw8(this,g,q);if(!q||!hn(this,g)&&vzZ(this,g))return!1;L=g.visualElement?g.visualElement:_.Lr(L);hn(this,g)&8?vKM(this.client,q,L,void 0,void 0,Q):hn(this,g)&2&&!u&&(g=this.client,Q=Gz({cttAuthInfo:fV(q)||void 0,automatedLogEventSource:Q},
q),u={csn:q,ve:L.getAsJson(),eventType:2},q==="UNDEFINED_CSN"?wF("visualElementHidden",Q,u):g?w9("visualElementHidden",u,g,Q):_.H6("visualElementHidden",u,Q));return!0};
_.P.JSC$13053_getTrackingParams=function(g){var u=this.getData(g),q,Q;if(_.w("il_use_view_model_logging_context")&&(u==null?0:(q=u.context)==null?0:(Q=q.loggingContext)==null?0:Q.loggingDirectives))return u.context.loggingContext.loggingDirectives.trackingParams||"";var L,E;if(u==null?0:(L=u.rendererContext)==null?0:(E=L.loggingContext)==null?0:E.loggingDirectives)return u.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(u==null?0:u.loggingDirectives)return u.loggingDirectives.trackingParams||
"";var y;return((y=g.veContainer)==null?0:y.trackingParams)?g.veContainer.trackingParams:(u==null?void 0:u.trackingParams)||""};
_.P.JSC$13053_elementShouldLogGesture=function(g,u){g=this.getData(g);return!!((Math.floor(Number(g&&g.loggingDirectives&&g.loggingDirectives.gestures&&g.loggingDirectives.gestures.types||""))||0)&u)};
_.P.JSC$13053_getNearestParentVe=function(g){var u=this.JSC$13053_getTrackingParams(g);return g.visualElement?g.visualElement:u?_.Lr(u):g.parentElement?this.JSC$13053_getNearestParentVe(g.parentElement):null};
var yw8=function(g,u,q){var Q=_.j_(q);return g.csn===null||Q===g.csn||q?Q:(g=new _.Ji("VisibilityLogger called before newScreen",{caller:u.tagName,previous_csn:g.csn,current_csn:Q}),_.Io(g),null)};
TZ.prototype.getData=function(g){var u,q=g.data||((u=g.props)==null?void 0:u.data);if(!q||g.isWebComponentWrapper){var Q;q=(Q=bH.get(g))==null?void 0:Q[NIq]}return q};
var vzZ=function(g,u){var q;return!((q=g.getData(u))==null||!q.loggingDirectives)},hn=function(g,u){g=g.getData(u);
return Math.floor(Number(g&&g.loggingDirectives&&g.loggingDirectives.visibility&&g.loggingDirectives.visibility.types||""))||1};var Yl;Yl=function(){};
_.o5=function(){Yl.instance||(Yl.instance=new Yl);return Yl.instance};
Yl.prototype.setClient=function(g){_.V1(qY().setClient).bind(qY())(g)};
_.Db$=function(){_.o5();_.V1(qY().JSC$13053_newScreen).bind(qY())()};
Yl.prototype.clear=function(){_.V1(qY().clear).bind(qY())()};
Yl.prototype.reportShown=function(g,u,q,Q){_.V1(qY().reportShown).bind(qY())(g,u,q,Q)};
Yl.prototype.reportHidden=function(g,u,q,Q){return _.V1(qY().reportHidden).bind(qY())(g,u,q,Q)};
var tYT=function(g,u){return _.V1(qY().JSC$13053_getTrackingParams).bind(qY())(u)},syq=function(g,u){return _.V1(qY().JSC$13053_getNearestParentVe).bind(qY())(u)};var Ow,pVn;Ow=function(){this.graftQueue=[];this.stateChangedQueue=[];this.backHistoryStack=[];this.forwardHistoryStack=[];this.afterNewScreenOneOffJobs=[];this.afterNewScreenRecurringJobs=[];this.cachedVisualElements=new Map;this.cachedRootVisualElements=new Map;this.pendingScreenCreation=new Set;this.recurringGrafts=new Map};
_.gL=function(){Ow.instance||(Ow.instance=new Ow);return Ow.instance};
Ow.prototype.setClient=function(g){this.client=g};
pVn=function(g,u,q){q=q===void 0?{}:q;_.V1(function(){var Q,L,E,y=((Q=_.c(u==null?void 0:u.commandMetadata,_.S_))==null?void 0:Q.rootVe)||((L=_.c(u==null?void 0:u.commandMetadata,h9i))==null?void 0:(E=L.screenVisualElement)==null?void 0:E.uiType);if(y){Q=_.c(u==null?void 0:u.commandMetadata,Txo);if(Q==null?0:Q.parentTrackingParams){var v=_.Lr(Q.parentTrackingParams);if(Q.parentCsn)var J=Q.parentCsn}else q.clickedVisualElement?v=q.clickedVisualElement:u.clickTrackingParams&&(v=_.Lr(u.clickTrackingParams));
a:{Q=_.c(u,_.l1);L=_.c(u,x2b);if(Q){if(L=pdb(Q,"VIDEO")){Q={token:L,videoId:Q.videoId};break a}}else if(L&&(Q=pdb(L,"PLAYLIST"))){Q={token:Q,playlistId:L.playlistId};break a}Q=void 0}q=Object.assign({},{cttAuthInfo:Q,parentCsn:J},q);if(_.w("expectation_logging")){var f;q.loggingExpectations=((f=_.c(u==null?void 0:u.commandMetadata,h9i))==null?void 0:f.loggingExpectations)||void 0}_.Kq(g,y,v,q)}else _.Io(new _.Ji("Error: Trying to create a new screen without a rootVeType",u))})()};
_.Kq=function(g,u,q,Q){Q=Q===void 0?{}:Q;_.V1(function(){LM0.includes(u)||(_.Io(new _.Ji("createClientScreen() called with a non-page VE",u)),u=83769);Q.isHistoryNavigation||(g.forwardHistoryStack=[],g.backHistoryStack.push({rootVe:u,key:Q.key||""}));g.graftQueue=[];g.stateChangedQueue=[];Q.dataPromises?Jwx(g,u,q,Q):jkW(g,u,q,Q)})()};
_.fIo=function(g,u,q){q=q===void 0?0:q;_.V1(function(){u.then(function(Q){g.pendingScreenCreation.has(q)&&g.pendingScreenFn&&g.pendingScreenFn();var L=_.j_(q),E=_.JJ(q);if(L&&E){var y={automatedLogEventSource:3},v;(Q==null?0:(v=Q.response)==null?0:v.trackingParams)&&Rp(g.client,L,E,_.Lr(Q.response.trackingParams),!1,y);var J;(Q==null?0:(J=Q.playerResponse)==null?0:J.trackingParams)&&Rp(g.client,L,E,_.Lr(Q.playerResponse.trackingParams),!1,y)}})})()};
Ow.prototype.graftServerVe=function(g,u,q){var Q=this;return _.V1(function(){var L=_.Lr(g);_.xl(Q,L,u,q);return L})()};
_.ySf=function(g,u,q,Q){return _.w("enable_client_ve_spec")&&u.clientVeSpec?(u=_.Yq(u.clientVeSpec.uiType,void 0,u.clientVeSpec.elementIndex,u.clientVeSpec.clientYoutubeData,void 0,u),_.xl(g,u,q,Q)?u:null):u.trackingParams?g.graftServerVe(u.trackingParams,q,Q):null};
_.Ui=function(g,u,q,Q){return _.V1(function(){if(!u.veType)return _.lD(new _.Ji("Error: Trying to graft a client VE without a veType.")),null;if(u.visibilityTypes){var L=u.visibilityTypes.reduce(function(E,y){return E|y});
L={visibility:{types:String(L)}}}L=_.Yq(u.veType,u.visualElement,u.elementIndex,u.clientYouTubeData,void 0,L);return _.xl(g,L,q,Q)?L:null})()};
_.xl=function(g,u,q,Q){Q=Q===void 0?0:Q;return _.V1(function(){if(g.pendingScreenCreation.has(Q))return g.graftQueue.push([u,q]),!0;var L=_.j_(Q),E=q||_.JJ(Q);if(L&&E){if(_.w("combine_ve_grafts")){var y=g.cachedVisualElements.get(E.toString());y?y.push(u):(g.cachedRootVisualElements.set(E.toString(),E),g.cachedVisualElements.set(E.toString(),[u]));g.attachTimeout||(g.attachTimeout=_.M_(_.Hv,function(){MG8(g,L)},1200))}else Rp(g.client,L,E,u);
return!0}return!1})()};
_.BF=function(g,u,q){q=q===void 0?0:q;var Q=g.recurringGrafts.get(q)||new Map;if(_.w("smarter_ve_dedupping"))for(var L=Array.from(Q.keys()),E=0;E<L.length;E++){var y=void 0,v=void 0;var J=u;var f=L[E];f.isClientVe()&&J.isClientVe()?(y=J.getAsJson(),v=f.getAsJson(),J=y.veType!==v.veType||y.elementIndex!==v.elementIndex||y.dataElement!==v.dataElement||J.getLoggingDirectives()!==f.getLoggingDirectives()?!1:!0):J=f.veData.trackingParams!==void 0&&J.veData.trackingParams!==void 0?((v=J.veData)==null?void 0:
v.trackingParams)===((y=f.veData)==null?void 0:y.trackingParams):!1;if(J)return}else if(Q.has(u))return;Q.set(u,void 0);g.recurringGrafts.set(q,Q);_.j_(q)==="UNDEFINED_CSN"||g.pendingScreenCreation.has(q)||_.xl(g,u,void 0,q)};
_.zZ=function(g,u,q,Q){Q=_.j_(Q===void 0?0:Q);if(!Q)return!1;p2q(g.client,Q,u,q);return!0};
_.nq=function(g,u,q,Q){if(!u)return!1;Q=_.j_(Q===void 0?0:Q);if(!Q)return!1;p2q(g.client,Q,_.Lr(u),q);return!0};
_.$q=function(g,u){var q=u.getScreenLayer&&u.getScreenLayer();if(u.visualElement)return _.zZ(g,u.visualElement,void 0,q);u=tYT(_.o5(),u);return _.nq(g,u,void 0,q)};
Ow.prototype.clickCommand=function(g,u,q){return _.nq(this,g.clickTrackingParams,u,q===void 0?0:q)};
Ow.prototype.stateChanged=function(g,u,q){this.visualElementStateChanged(_.Lr(g),u,q===void 0?0:q)};
Ow.prototype.visualElementStateChanged=function(g,u,q){q=q===void 0?0:q;q===0&&this.pendingScreenCreation.has(q)?this.stateChangedQueue.push([g,u]):this.logStateChanged(g,u,q)};
Ow.prototype.logStateChanged=function(g,u,q){q=q===void 0?0:q;var Q=_.j_(q);g=g||_.JJ(q);return Q&&g?(JaT(this.client,Q,g,u),!0):!1};
var Jwx=function(g,u,q,Q){Q=Q===void 0?{}:Q;g.pendingScreenCreation.add(Q.layer||0);g.pendingScreenFn=function(){jkW(g,u,q,Q);var y=_.JJ(Q.layer);if(y){for(var v=_.N(g.graftQueue),J=v.next();!J.done;J=v.next())J=J.value,_.xl(g,J[0],J[1]||y,Q.layer);y=_.N(g.stateChangedQueue);for(v=y.next();!v.done;v=y.next())v=v.value,g.logStateChanged(v[0],v[1])}};
q||_.j_(Q.layer)||g.pendingScreenFn();if(Q.dataPromises)for(var L=_.N(Q.dataPromises),E=L.next();!E.done;E=L.next())_.fIo(g,E.value,Q.layer);else _.Zf(Error("If"))},jkW=function(g,u,q,Q){Q=Q===void 0?{}:Q;
var L=void 0;Q.layer||(Q.layer=0);L=Q.parentLayer!==void 0?Q.parentLayer:Q.layer;var E=_.j_(L);L=_.JJ(L);var y=q||L,v;y&&(Q.parentCsn!==void 0?v={clientScreenNonce:Q.parentCsn,visualElement:y}:E&&E!=="UNDEFINED_CSN"&&(v={clientScreenNonce:E,visualElement:y}));var J,f=_.FR("EVENT_ID");E==="UNDEFINED_CSN"&&f&&(J={servletData:{serializedServletEventId:f}});_.w("combine_ve_grafts")&&E&&MG8(g,E);_.w("no_client_ve_attach_unless_shown")&&y&&E&&EKm(y,E);try{var t=_.qvm(g.client,u,v,Q.csnToClone,Q.cttAuthInfo,
J,Q.implicitGestureType,void 0,Q.loggingExpectations,Q.automatedLogEventSource)}catch(R){_.iD(R,{rootVeType:u,rootVe:L,parentVisualElement:q,currentCsn:E,parentEl:v,csnToClone:Q.csnToClone});_.Zf(R);return}_.MK(t,u,Q.layer,Q.cttAuthInfo);E&&E!=="UNDEFINED_CSN"&&L&&!Pkm(E)&&vKM(g.client,E,L,!0);g.backHistoryStack[g.backHistoryStack.length-1]&&!g.backHistoryStack[g.backHistoryStack.length-1].csn&&(g.backHistoryStack[g.backHistoryStack.length-1].csn=t||"");_.pW({clientScreenNonce:t});_.Db$();var e=_.JJ(Q.layer);
E&&E!=="UNDEFINED_CSN"&&e&&_.w("music_web_mark_root_visible")&&_.At(t,e);g.pendingScreenCreation.delete(Q.layer||0);g.pendingScreenFn=void 0;var G;(G=g.recurringGrafts.get(Q.layer))==null||G.forEach(function(R,H){R?_.xl(g,H,R,Q.layer):e&&_.xl(g,H,e,Q.layer)});
tGo(g)},tGo=function(g){for(var u=0;u<g.afterNewScreenOneOffJobs.length;u++){var q=g.afterNewScreenOneOffJobs[u];
try{q()}catch(Q){_.Zf(Q)}}for(u=g.afterNewScreenOneOffJobs.length=0;u<g.afterNewScreenRecurringJobs.length;u++){q=g.afterNewScreenRecurringJobs[u];try{q()}catch(Q){_.Zf(Q)}}},MG8=function(g,u){if(u===void 0)for(var q=LBK(),Q=0;Q<q.length;Q++)q[Q]!==void 0&&MG8(g,q[Q]);
else g.cachedVisualElements.forEach(function(L,E){(E=g.cachedRootVisualElements.get(E))&&Qg3(g.client,u,E,L)}),g.cachedVisualElements.clear(),g.cachedRootVisualElements.clear(),g.attachTimeout=void 0};var kl=function(g){g=g===void 0?{layer:0}:g;this.q6=!1;this.createScreenConfig=g;g={};this.uMz=(g.response=!1,g.playerResponse=!1,g)};
_.A(kl,an);kl.prototype.validate=function(g){return!(!g.data||!g.data.response&&!g.data.playerResponse)};
kl.prototype.handle=function(g){var u=_.gL(),q=this.createScreenConfig.layer;g.data.response&&g.data.response.trackingParams&&!this.uMz.response&&(u.graftServerVe(g.data.response.trackingParams,void 0,q),this.uMz.response=!0);g.data.playerResponse&&g.data.playerResponse.trackingParams&&!this.uMz.playerResponse&&(u.graftServerVe(g.data.playerResponse.trackingParams,void 0,q),this.uMz.playerResponse=!0)};var SW=function(){this.xV=_.A9();this.wd=[];this.uYB=0};
SW.prototype.processChunk=function(g){if(g){for(var u=_.N(this.wd),q=u.next();!q.done;q=u.next())q=q.value,q.validate(g)&&(q.handle(g),q.q6=!0);_.fW("np"+this.uYB);this.uYB++}};var iRS,e40,R4x;_.ze=function(g,u,q,Q,L,E,y,v){y=y===void 0?[]:y;v=v===void 0?[]:v;this.buildCommandPayload=g;this.navigate=u;this.handleServiceRequest=q;this.sendAction=Q;this.JSC$13088_screenManager=L;this.commandResolverMap=E;this.autoLogResolverAllowlist=y;this.metaCommandClickLoggingDenylist=v;this.pendingCommands=new Set;this.isTracingEnabled=!1;e40(this)};
iRS=function(g,u,q){var Q=[_.Ef0,eJW],L=fTZ,E=M53,y=_.gL(),v=GJx;q=q===void 0?[]:q;Q=Q===void 0?[]:Q;_.ze.instance=new _.ze(g,u,L,E,y,v,q,Q)};
e40=function(g){if(!g.isTracingEnabled&&rw("command")){var u=g.resolveCommand;g.resolveCommand=function(q,Q){a:{for(L in q)if(Object.prototype.hasOwnProperty.call(q,L)){var L={commandType:L};break a}L={}}return _.WX("command",L,u.bind(this,q,Q))};
g.isTracingEnabled=!0}};
R4x=function(g,u,q){if(!g.commandResolverMap)return!1;var Q=R8m(u,g.commandResolverMap);return Q?((g.autoLogResolverAllowlist.some(function(L){return!!_.c(u,L)})||(q==null?0:q.forceClickLogging))&&$b5(g,u,q),Q instanceof Promise?Q.then(function(L){L.resolve(u,q)}):Q.resolve(u,q),!0):!1};
_.ze.prototype.resolveCommand=function(g,u){var q=this,Q=wV5(g);if((u==null||!u.skipCommandResolverMap)&&R4x(this,g,u))return!0;if(Q)return cw5(this,g,u);if(!this.buildCommandPayload)return e8b(g,"Unhandled command by buildCommandPayload"),!1;var L=this.buildCommandPayload(g,u);if(u==null?0:u.commandController)L.commandController=u.commandController;if(L.type===0){if(!this.navigate)return GTJ(g,"navigate"),!1;if(!Hb8(L.command))return e8b(g,"Page requests need to specify a url"),!1;_.w("logging_avoid_blocking_during_navigation")&&
_.nqF().transition("application_navigating");g=this.navigate(L)||[];$qX(g).then(function(){q.pendingCommands.delete(L.command)});
return!0}if(L.type===1){if(!this.handleServiceRequest)return GTJ(g,"handleServiceRequest"),!1;(u==null?0:u.forceClickLogging)&&$b5(this,L.command,u);g=this.handleServiceRequest(L);$qX(g).then(function(){q.pendingCommands.delete(L.command)});
return!0}if(L.type===2){if(!this.sendAction)return GTJ(g,"sendAction"),!1;$b5(this,L.command,u);this.sendAction(L);return!0}return!1};
var $b5=function(g,u,q){if((q==null||!q.disableClickTracking)&&g.JSC$13088_screenManager)if(u.clickTrackingParams&&_.w("log_click_with_layer_from_element_in_command_handler")){var Q;q=q==null?void 0:(Q=q.form)==null?void 0:Q.element;g.JSC$13088_screenManager.clickCommand(u,null,q&&q.getScreenLayer&&q.getScreenLayer())}else u.clickTrackingParams?g.JSC$13088_screenManager.clickCommand(u):!_.w("disable_clicked_visual_element_in_command_handler")&&(q==null?0:q.clickedVisualElement)&&_.zZ(g.JSC$13088_screenManager,
q.clickedVisualElement)},wV5=function(g){var u=!!_.c(g,_.zg),q;
g=((q=_.c(g,_.kJ))==null?void 0:q.signal)==="CLIENT_SIGNAL";return u||g},cw5=function(g,u,q){var Q=_.c(u,_.zg);
if(Q)var L=(Q==null?void 0:Q.commands)||[];else{var E;if(((E=_.c(u,_.kJ))==null?void 0:E.signal)==="CLIENT_SIGNAL"){var y;L=((y=_.c(u,_.kJ))==null?void 0:y.actions)||[]}}if(L){(Q=AwX(g,L))&&$b5(g,u,q);u=_.N(L);for(L=u.next();!L.done;L=u.next()){L=L.value;try{var v=Object.assign({},q);Q&&(v.disableClickTracking=!0);g.resolveCommand(L,v)}catch(J){J instanceof Error&&_.Zf(J)}}return!0}e8b(u,"Could not handle the meta command");return!1},AwX=function(g,u){return u.every(function(q){return g.metaCommandClickLoggingDenylist.some(function(Q){return!!_.c(q,
Q)})})},Hb8=function(g){var u;
return!((u=_.c(g==null?void 0:g.commandMetadata,_.S_))==null||!u.url)};var on=function(){an.apply(this,arguments)};
_.A(on,an);on.prototype.validate=function(g){var u,q;return!this.q6&&!!((u=g.data.response)==null?0:(q=u.onResponseReceivedEndpoints)==null?0:q.length)};
on.prototype.handle=function(g){var u=_.ze.instance;g=_.N(g.data.response.onResponseReceivedEndpoints);for(var q=g.next();!q.done;q=g.next())u.resolveCommand(q.value)};var ZbW,lI2,gE;
ZbW=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=_.BX();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.Uw=function(){lI2||(lI2=new ZbW);return lI2};
gE=function(){var g=_.Uw();g.miniplayerButtonActivation=!1;g.userActivation=!1;g.playlistWatchPageActivation=!1;g.productDetailsPageActivation=!1;g.miniAppPageActivation=!1;g.playablesDestPageActivation=!1;g.lockupActivation=!1;g.showMiniplayerCommandActivation=!1;g.playlistSuggestionsShelfActivation=!1;g.mediaSessionPipActivation=!1;g.watchPipActivation=!1;g.watchWhileActivation=!1;g.shortsPipActivation=!1;g.companionCanvasActivation=!1};
_.II2=function(){var g=_.Uw(),u=g.mediaSessionPipActivation,q=g.watchPipActivation,Q=g.watchWhileActivation,L=g.playlistWatchPageActivation,E=g.lockupActivation,y=g.showMiniplayerCommandActivation,v=g.navigatingAwayFromWatchDeletedVideo,J=g.shortsPipActivation,f=g.playlistSuggestionsShelfActivation,t=g.productDetailsPageActivation,e=g.miniAppPageActivation,G=g.playablesDestPageActivation,R=g.companionCanvasActivation;return!g.miniplayerButtonActivation&&!L&&!f&&!t&&!e&&!G&&!E&&!y&&!u&&!q&&!Q&&!J&&
!R||v};var Lrk;_.uo=_.FS("FEwhat_to_watch","/",3854);_.EjS=_.FS("FEdownloads","/feed/downloads",42352);Lrk=_.FS("FEmusic_offline","browse/FEmusic_offline",42352);var CU=function(g,u){u=u===void 0?[]:u;var q=q===void 0?[]:q;u=Xlb.apply(null,[rzb.apply(null,_.na(u))].concat(_.na(q)));this.store=YOh(g,void 0,u)};
CU.prototype.getState=function(){return this.store.getState()};
CU.prototype.dispatch=function(g){return this.store.dispatch(g)};
CU.prototype.subscribe=function(g){return this.store.subscribe(g)};
CU.prototype.replaceReducer=function(g){return this.store.replaceReducer(g)};
CU.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.qG=function(g,u,q){var Q=u(g.getState());return g.subscribe(function(){var L=u(g.getState());if(L!==Q){var E=Q;Q=L;q(L,E)}})};var pO3;_.u2=function(g,u,q){return _.rF({type:"REPLACE_ENTITY",payload:{entityPayload:q,entityType:g,key:u}})};
pO3=function(g){return _.rF({type:"REPLACE_ENTITIES",payload:g})};
_.JZ=function(g,u,q,Q){return _.rF({type:"UPDATE_ENTITY",payload:{entityPayload:q,entityType:g,key:u,mergeOption:Q}})};var m8Z=function(g){var u=this;g=g===void 0?[]:g;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;g.forEach(function(q){u.append(q)})};
_.P=m8Z.prototype;_.P.getLength=function(){return this.totalLength};
_.P.append=function(g){var u=this.arrays.length===0?!1:(u=this.arrays[this.arrays.length-1])&&u.buffer===g.buffer&&u.byteOffset+u.length===g.byteOffset;u?(u=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(u.buffer,u.byteOffset,u.length+g.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(g);this.totalLength+=g.length};
_.P.split=function(g){for(var u=new m8Z,q=new m8Z,Q=_.N(this.arrays),L=Q.next();!L.done;L=Q.next())L=L.value,g>=L.length?(u.append(L),g-=L.length):g?(u.append(new Uint8Array(L.buffer,L.byteOffset,g)),q.append(new Uint8Array(L.buffer,L.byteOffset+g,L.length-g)),g=0):q.append(L);return{headView:u,tailView:q}};
_.P.isFocused=function(g){return g>=this.arrayPos&&g<this.arrayPos+this.arrays[this.arrayIdx].length};
_.P.focus=function(g){if(!this.isFocused(g))for(g<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=g&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var ibX=function(g,u){g.focus(u);return g.arrays[g.arrayIdx][u-g.arrayPos]};(function(){var g=function(Q){return new Uint8Array(Q)},u=function(Q){for(var L=new Uint8Array(Q.length),E=0;E<Q.length;E++)L[E]=Q[E];
return L},q=new Uint8Array([1]);
return q.length===1&&q[0]===1?g:u})();
var Ixu=Array(1024),lxq=window.TextDecoder?new TextDecoder:void 0,CwK=window.TextEncoder?new TextEncoder:void 0;var F5T=function(g){this.arrayView=g;this.pos=0;this.pendingTagAndType=-1},WC=function(g){var u=ibX(g.arrayView,g.pos);
++g.pos;if(u<128)return u;for(var q=u&127,Q=1;u>=128;)u=ibX(g.arrayView,g.pos),++g.pos,Q*=128,q+=(u&127)*Q;return q},axq=function(g,u){var q=g.pendingTagAndType;
for(g.pendingTagAndType=-1;g.pos+1<=g.arrayView.totalLength;){q<0&&(q=WC(g));var Q=q>>3,L=q&7;if(Q===u)return!0;if(Q>u){g.pendingTagAndType=q;break}q=-1;switch(L){case 0:WC(g);break;case 1:g.pos+=8;break;case 2:Q=WC(g);g.pos+=Q;break;case 5:g.pos+=4}}return!1};var X2q=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=d8T(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},KW=function(g,u){u=g.pos+u;
if(!(g.buf.length>=u)){for(var q=g.buf.length*2;q<u;)q*=2;g.buf=d8T(q,g.wasm,g.buf.subarray(0,g.pos));g.view=new DataView(g.buf.buffer,g.buf.byteOffset,g.buf.byteLength)}},ht=function(g,u){if(u>268435455){KW(g,4);
for(var q=u&1073741823,Q=0;Q<4;Q++)g.view.setUint8(g.pos,q&127|128),q>>=7,g.pos+=1;u=Math.floor(u/268435456)}for(KW(g,4);u>127;)g.view.setUint8(g.pos,u&127|128),u>>=7,g.pos+=1;g.view.setUint8(g.pos,u);g.pos+=1};for(var raK={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},V3q={},C3a=_.N(Object.entries(raK)),bb5=C3a.next();!bb5.done;bb5=C3a.next()){var db8=_.N(bb5.value),FM0=db8.next().value,mbn=db8.next().value,aI5=FM0,VGW=mbn;VGW&&(V3q[VGW]=aI5)};var TgT=function(g,u){g=g===void 0?{}:g;switch(u.type){case "ENTITY_LOADED":return u.payload.reduce(function(Q,L){var E,y=(E=L.options)==null?void 0:E.persistenceOption;if(y&&y!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&y!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Q;if(!L.entityKey)return _.Zf(Error("Kf")),Q;if(L.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!L.payload)return L=new _.Ji("REPLACE entity mutation is missing a payload",{entityKey:L.entityKey}),_.Zf(L),Q;var v=(0,_.pH.getAnyKey)(L.payload);
return YvZ(Q,v,L.entityKey,L.payload[v])}if(L.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{L=L.entityKey;try{var J=_.Tz(L).entityType;v=YvZ(Q,J,L);break a}catch(e){if(e instanceof Error){L=new _.Ji("Failed to deserialize entity key",{entityKey:L,originalMessage:e.message});_.Zf(L);v=Q;break a}throw e;}v=void 0}return v}if(L.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!L.payload)return L=new _.Ji("UPDATE entity mutation is missing a payload",{entityKey:L.entityKey}),_.Zf(L),Q;v=(0,_.pH.getAnyKey)(L.payload);
var f,t;return OKZ(Q,v,L.entityKey,L.payload[v],(f=L.fieldMask)==null?void 0:(t=f.mergeOptions)==null?void 0:t.repeatedFieldsMergeOption)}return Q},g);
case "REPLACE_ENTITY":var q=u.payload;return YvZ(g,q.entityType,q.key,q.entityPayload);case "REPLACE_ENTITIES":return Object.keys(u.payload).reduce(function(Q,L){var E=u.payload[L];return Object.keys(E).reduce(function(y,v){return YvZ(y,L,v,E[v])},Q)},g);
case "UPDATE_ENTITY":return q=u.payload,OKZ(g,q.entityType,q.key,q.entityPayload,q.mergeOption);default:return g}};var K5K;var XVH=!1,QN,LI,E1,Pd,NG,rwR=function(g){_.Lh.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!XVH){var u,q=new Uint8Array(256),Q=new Uint8Array(256);var L=1;for(u=0;u<256;u++)q[L]=u,Q[u]=L,L^=L<<1^(L>>7&&283);QN=new Uint8Array(256);LI=zz(256);E1=zz(256);Pd=zz(256);NG=zz(256);for(var E=0;E<256;E++){L=E?Q[255^q[E]]:0;L^=L<<1^L<<2^L<<3^L<<4;L=L&255^L>>>8^99;QN[E]=L;u=L<<1^(L>>7&&283);var y=u^L;LI[E]=u<<24|L<<16|L<<8|y;E1[E]=y<<24|LI[E]>>>8;Pd[E]=L<<24|E1[E]>>>
8;NG[E]=L<<24|Pd[E]>>>8}XVH=!0}L=zz(44);for(q=0;q<4;q++)L[q]=g[4*q]<<24|g[4*q+1]<<16|g[4*q+2]<<8|g[4*q+3];for(Q=1;q<44;q++)g=L[q-1],q%4||(g=(QN[g>>16&255]^Q)<<24|QN[g>>8&255]<<16|QN[g&255]<<8|QN[g>>>24],Q=Q<<1^(Q>>7&&283)),L[q]=L[q-4]^g;this.key=L};
_.A(rwR,_.Lh);
rwR.prototype.encrypt=function(g){var u=g.length;g=new Uint8Array(g.buffer.slice(g.byteOffset,g.byteOffset+u));for(var q=this.cipherBlock,Q=0;Q<u&&this.blockOffset<16;)g[Q++]^=q[this.blockOffset++];for(var L=u-(u-Q)%16;Q<L;)WM5(this),g[Q++]^=q[0],g[Q++]^=q[1],g[Q++]^=q[2],g[Q++]^=q[3],g[Q++]^=q[4],g[Q++]^=q[5],g[Q++]^=q[6],g[Q++]^=q[7],g[Q++]^=q[8],g[Q++]^=q[9],g[Q++]^=q[10],g[Q++]^=q[11],g[Q++]^=q[12],g[Q++]^=q[13],g[Q++]^=q[14],g[Q++]^=q[15];if(Q<u)for(WM5(this),this.blockOffset=0;Q<u;)g[Q++]^=
q[this.blockOffset++];return g};
var WM5=function(g){for(var u=g.key,q=g.counter[0]^u[0],Q=g.counter[1]^u[1],L=g.counter[2]^u[2],E=g.counter[3]^u[3],y=3;y>=0&&!(g.counter[y]=-~g.counter[y]);y--);for(var v,J,f=4;f<40;)y=LI[q>>>24]^E1[Q>>16&255]^Pd[L>>8&255]^NG[E&255]^u[f++],v=LI[Q>>>24]^E1[L>>16&255]^Pd[E>>8&255]^NG[q&255]^u[f++],J=LI[L>>>24]^E1[E>>16&255]^Pd[q>>8&255]^NG[Q&255]^u[f++],E=LI[E>>>24]^E1[q>>16&255]^Pd[Q>>8&255]^NG[L&255]^u[f++],q=y,Q=v,L=J;g=g.cipherBlock;y=u[40];g[0]=QN[q>>>24]^y>>>24;g[1]=QN[Q>>16&255]^y>>16&255;g[2]=
QN[L>>8&255]^y>>8&255;g[3]=QN[E&255]^y&255;y=u[41];g[4]=QN[Q>>>24]^y>>>24;g[5]=QN[L>>16&255]^y>>16&255;g[6]=QN[E>>8&255]^y>>8&255;g[7]=QN[q&255]^y&255;y=u[42];g[8]=QN[L>>>24]^y>>>24;g[9]=QN[E>>16&255]^y>>16&255;g[10]=QN[q>>8&255]^y>>8&255;g[11]=QN[Q&255]^y&255;y=u[43];g[12]=QN[E>>>24]^y>>>24;g[13]=QN[q>>16&255]^y>>16&255;g[14]=QN[Q>>8&255]^y>>8&255;g[15]=QN[L&255]^y&255};var Tbx=!1;(function(){var g=function(Q){return new Uint8Array(Q)},u=function(Q){for(var L=new Uint8Array(Q.length),E=0;E<Q.length;E++)L[E]=Q[E];
return L},q=new Uint8Array([1]);
return q.length===1&&q[0]===1?g:u})();
var s1;var ObH=function(g){a:{if(!Tbx&&!Ok){if(s1){var u=s1;break a}s1=(u=window.crypto)==null?void 0:u.subtle;var q,Q,L;if(((q=s1)==null?0:q.importKey)&&((Q=s1)==null?0:Q.sign)&&((L=s1)==null?0:L.encrypt)){u=s1;break a}s1=void 0}u=void 0}u&&(this.nativeEncryptor=new h4$(g,u));this.encryptorPolyfill=new YJ2(g)};
ObH.prototype.encrypt=function(g,u){var q=this,Q;return _.D(function(L){switch(L.nextAddress){case 1:if(!q.nativeEncryptor){L.jumpTo(2);break}_.b8(L,3);return L.yield(q.nativeEncryptor.encrypt(g,u),5);case 5:return L.return(L.yieldResult);case 3:Q=_.rt(L),_.Io(Q),Tbx=!0,q.nativeEncryptor=void 0;case 2:return L.return(q.encryptorPolyfill.encrypt(g,u))}})};
ObH.prototype.decrypt=function(g,u){return this.encrypt(g,u)};
var h4$=function(g,u){this.JSC$13161_aesKey=g;this.subtleCrypto=u};
h4$.prototype.encrypt=function(g,u){var q=this,Q;return _.D(function(L){if(L.nextAddress==1)return _.b8(L,2),L.yield(KM0(q,g,u),4);if(L.nextAddress!=2)return L.return(L.yieldResult);Q=_.rt(L);_.Io(Q);Tbx=!0;throw Q;})};
var KM0=function(g,u,q){var Q,L;return _.D(function(E){switch(E.nextAddress){case 1:if(g.cryptoKey){E.jumpTo(2);break}return E.yield(g.subtleCrypto.importKey("raw",g.JSC$13161_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:g.cryptoKey=E.yieldResult;case 2:return Q={name:"AES-CTR",counter:q,length:128},E.yield(g.subtleCrypto.encrypt(Q,g.cryptoKey,u),4);case 4:return L=E.yieldResult,E.return(new Uint8Array(L))}})},YJ2=function(g){this.JSC$13164_aesKey=g};
YJ2.prototype.encrypt=function(g,u){this.encryptor||(this.encryptor=new rwR(this.JSC$13164_aesKey));for(var q=this.encryptor,Q=0;Q<4;Q++)q.counter[Q]=u[Q*4]<<24|u[Q*4+1]<<16|u[Q*4+2]<<8|u[Q*4+3];q.blockOffset=16;return this.encryptor.encrypt(g)};
YJ2.prototype.decrypt=function(g,u){return this.encrypt(g,u)};var xb$={},z8u=z8("yt-idb-pref-storage",{objectStores:(xb$.prefs={addedAtVersion:1},xb$),shared:!1,upgrade:function(g,u){u(1)&&F7(dN(g,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.yN=function(g){this.token=g};
_.yN.getInstance=function(){return _.D(function(g){return g.return(new Promise(function(u){_.BW().then(function(q){q?(_.yN.instance||(_.yN.instance=new _.yN(q)),u(_.yN.instance)):u(void 0)})}))})};
_.yN.prototype.get=function(g){var u=this,q,Q,L;return _.D(function(E){if(E.nextAddress==1)return E.yield(nK3(u.token),2);if(E.nextAddress!=3)return q=E.yieldResult,E.yield(q.get("prefs",g),3);Q=E.yieldResult;if(!Q)return E.return();L=(0,_.n0)();return Q.expirationTimestampMs<=L?E.return():E.return(Q.value)})};
_.yN.prototype.set=function(g,u,q){q=q===void 0?31536E3:q;var Q=this,L,E,y;return _.D(function(v){if(v.nextAddress==1)return L=(0,_.n0)(),E={key:g,value:u,expirationTimestampMs:L+q*1E3},v.yield(nK3(Q.token),2);y=v.yieldResult;return v.yield(y.put("prefs",E),0)})};
_.yN.prototype.remove=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(nK3(u.token),2);q=Q.yieldResult;return Q.yield(q.delete("prefs",g),0)})};var vd={},BbW=(vd.INVALID_ENCODER_VERSION="Invalid encoder version",vd.KEY_CREATION_FAILED="Failed to create encoder key",vd.UNKNOWN_DECODE_ERROR="Failed to decode PES data",vd.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",vd.WRONG_DATA_TYPE="Encoder cannot process the data type",vd),nW=function(g,u){u=u===void 0?{}:u;_.Ji.call(this,BbW[g],Object.assign({},{name:"PESEncoderError",type:g},u));this.type=g;this.level="WARNING";Object.setPrototypeOf(this,nW.prototype)};
_.A(nW,_.Ji);var DV=function(){};
DV.prototype.encode=function(g,u){try{return this.encodeImpl(g,u)}catch(q){U8S(q,SvS)}};
DV.prototype.decode=function(g,u){try{return this.decodeImpl(g,u)}catch(q){U8S(q,oK3)}};
var z40=function(g,u,q){var Q;return _.D(function(L){if(L.nextAddress==1)return _.b8(L,2),L.yield(g.decodeAsyncImpl(u,q),4);if(L.nextAddress!=2)return L.return(L.yieldResult);Q=_.rt(L);U8S(Q,oK3);_.Wx(L)})};
DV.prototype.decodeAsyncImpl=function(g,u){return Promise.resolve(this.decodeImpl(g,u))};var pI=function(g,u){this.aesEncryptor=g;this.aesEncryptorAsync=u};
_.A(pI,DV);pI.prototype.encodeImpl=function(g,u){u=g3K(u);g=(new TextEncoder).encode(JSON.stringify(g));return this.aesEncryptor.encrypt(g,u)};
pI.prototype.decodeImpl=function(g,u){if(!(g instanceof Uint8Array))throw kTM(1);var q=new TextDecoder;u=g3K(u);g=this.aesEncryptor.decrypt(g,u);return JSON.parse(q.decode(g))};
pI.prototype.decodeAsyncImpl=function(g,u){var q=this,Q,L,E;return _.D(function(y){if(y.nextAddress==1){if(!(g instanceof Uint8Array))throw kTM(1);Q=new TextDecoder;L=g3K(u);return y.yield(q.aesEncryptorAsync.decrypt(g,L),2)}E=y.yieldResult;return y.return(JSON.parse(Q.decode(E)))})};var u6J={accountLinkStatusEntity:CG2,booleanEntity:QBa,buttonEntity:uN2,captionTrack:raX,channelHandle:Cu0,chipEntity:i1b,commerceAcquisitionClientPayloadEntity:l5X,commerceCartListEntity:I5i,compositeSourceEntity:gKo,multiviewStagingEntity:uKb,contextNoteFeedEntityPayload:K$$,contextNoteUserRatingEntityPayload:xc2,continuationTokenEntity:fVn,downloadQualityPickerEntity:L_x,downloadsPageRefreshTokenEntity:PoW,downloadsPageViewConfigurationEntity:HI8,downloadStatusEntity:Eao,dismissState:Cpn,sfvAudioItemCurrentlyPlayingEntity:eVX,
emojiFountainDataEntity:oeo,emojiCustomizationSetEntity:SM8,fakeChannel:PGZ,fakePlaylist:N5R,fakePlaylistEntryCollection:sBZ,fakeVideo:vfo,fakeVideoDescription:Ds$,featuredProductsEntity:xG$,flowStateEntity:ZJx,iconBadgeEntity:ilb,interstitialInteractionStateEntity:B58,likeButtonAnimationEntity:A4Z,liveChatPollStateEntity:uu2,dataFreshnessEntity:ne8,liveViewerLeaderboardChatEntryPointStateEntity:U85,liveViewerLeaderboardPointsEntity:g3X,liveReactionsDataEntity:U55,logoEntity:Kdi,macroMarkerEntity:ZI5,
mainDownloadsLibraryEntity:NEa,mainDownloadsListEntity:sc$,mainPlaylistDownloadStateEntity:vai,mainPlaylistEntity:M92,mainPlaylistVideoEntity:t9W,mainVideoDownloadStateEntity:DG8,mainVideoEntity:RPb,markersEngagementPanelSyncEntity:lV0,markersVisibilityOverrideEntity:IV0,musicAlbumReleaseDetail:Ng0,musicAlbumReleaseDownloadMetadataEntity:qvR,musicAlbumRelease:PwZ,musicAlbumReleaseUserDetail:sg0,musicArtistDetail:vK2,musicArtist:ya$,musicArtistUserDetail:D8i,musicDownloadsLibraryEntity:Qgx,musicLibraryEdit:p2$,
musicLibraryStatusEntity:Jab,musicPlaylist:jgW,musicPlaylistDownloadMetadataEntity:L58,musicShare:M3Z,musicTrackDetail:e80,musicTrackDownloadMetadataEntity:EKR,musicTrack:t3R,musicTrackUserDetail:GT8,offlineOrchestrationActionWrapperEntity:W5H,offlineVideoPolicy:Tgb,offlineVideoStreams:h8n,offlineabilityEntity:pd0,orchestrationWebSamplingEntity:J4a,pageHeaderEntity:Tob,pdpStateEntity:CqW,pinnedProductEntity:BE2,playbackData:Yvo,playerStateEntity:iIo,quantityIncrementerEntity:bl5,refresh:OKo,saveToPlaylistListEntity:hVR,
selectedChipIndexEntityPayload:Cob,settingEntity:yF5,stringEntity:LdZ,suggestedFeedbackChipStateEntity:bIX,transfer:K5X,trendingOfferEntity:zPX,videoDownloadContextEntity:x8$,videoOverviewAsyncDataEntity:Qd8,videoPlaybackPositionEntity:LA5,votingEntity:Kfn,ytMainChannelEntity:wdH,youchatPendingResponseEntity:dGo,ytMainDownloadedVideoEntity:jcb,ytMainVideoEntity:c4X};var nz2,SJ5,gr,yXF,v3T,gdo,qS0,u25,Ub8;nz2=function(g,u){this.JSC$13183_wrapped=g;this.JSC$13183_encoderRegistry=u;this.changedKeys={}};
SJ5=function(g,u){return kJx(g.JSC$13183_encoderRegistry,u.version).decode(u.data,u.key)};
_.ozn=function(g,u,q){return g.JSC$13183_wrapped.objectStore("EntityStore").get(u).then(function(Q){if(Q){if(q&&Q.entityType!==q)throw Error("Lf");return SJ5(g,Q)}})};
gr=function(g,u,q){return q?(q=q.map(function(Q){return _.ozn(g,Q,u)}),C0.all(q)):g.JSC$13183_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(u)).then(function(Q){return Q.map(function(L){return SJ5(g,L)})})};
_.szJ=function(g,u,q){var Q=W5k(u),L=kJx(g.JSC$13183_encoderRegistry,1),E=Object.assign({},u);return g.JSC$13183_wrapped.objectStore("EntityStore").get(Q).then(function(y){if(y){if(y.entityType!==q)throw Error("Lf");E.entityMetadata||(y=SJ5(g,y),E.entityMetadata=y.entityMetadata)}}).then(function(){var y={key:Q,
entityType:q,data:L.encode(E,Q),version:1};return C0.all([g.JSC$13183_wrapped.objectStore("EntityStore").put(y),Ub8(g,E,q)])}).then(function(){gdo(g,Q,q);
return Q})};
yXF=function(g,u){var q=_.Tz(u).entityType;return C0.all([g.JSC$13183_wrapped.objectStore("EntityStore").delete(u),u25(g,u)]).then(function(){gdo(g,u,q)})};
v3T=function(g,u,q,Q){var L=kJx(g.JSC$13183_encoderRegistry,1);return _.ozn(g,u,Q).then(function(E){if(E){E=ZKS(E,q);var y={key:u,entityType:Q,data:L.encode(E,u),version:1};return C0.all([g.JSC$13183_wrapped.objectStore("EntityStore").put(y),Ub8(g,E,Q)])}}).then(function(){gdo(g,u,Q);
return u})};
gdo=function(g,u,q){var Q=g.changedKeys[q];Q||(Q=new Set,g.changedKeys[q]=Q);Q.add(u)};
qS0=function(g,u,q){var Q=W5k(u);q=q6h(q);if(!q)return C0.resolve([]);q=new q(u);g=g.JSC$13183_wrapped.objectStore("EntityAssociationStore");u=[];q=_.N(q.getAssociations());for(var L=q.next();!L.done;L=q.next())u.push(g.put({parentEntityKey:Q,childEntityKey:L.value}));return C0.all(u).then(function(E){return E.map(function(y){return y[1]})})};
u25=function(g,u){return g.JSC$13183_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(u))};
Ub8=function(g,u,q){var Q=W5k(u);return u25(g,Q).then(function(){return qS0(g,u,q)})};var Qvb=function(){};
_.A(Qvb,DV);Qvb.prototype.encodeImpl=function(g){return g};
Qvb.prototype.decodeImpl=function(g){if(g instanceof Uint8Array)throw kTM(0);return g};var E3Z=function(){this.cacheMap={};this.cacheMap[0]=new Qvb;if(!_.w("aes_pes_encoder_killswitch")){var g=this.cacheMap;try{var u=_.DQ();var q=g3K(u);var Q=new pI(new YJ2(q),new ObH(q))}catch(L){throw g=L instanceof Error?new nW("KEY_CREATION_FAILED",{originalMessage:L.message}):new nW("KEY_CREATION_FAILED"),_.Zf(g),g;}g[1]=Q}},kJx=function(g,u){u=u===void 0?0:u;
g=g.cacheMap[u];if(!g)throw u=new nW("INVALID_ENCODER_VERSION",{encoderVersion:u}),_.Zf(u),u;return g};var SF=function(g,u){_.Lh.call(this);this.token=g;this.JSC$13197_encoderRegistry=u;this.observers=[];g=new _.Qq.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.DQ());g.onmessage=this.JSC$13197_handleMessage.bind(this);this.channel=g};
_.A(SF,_.Lh);_.UR=function(g,u,q){var Q,L,E,y;return _.D(function(v){if(v.nextAddress==1)return v.yield(Bgq(g.token),2);if(v.nextAddress!=3)return Q=v.yieldResult,v.yield(_.T8(Q,["EntityStore","EntityAssociationStore"],u,function(J){L=new nz2(J,g.JSC$13197_encoderRegistry);return q(L)}),3);
E=v.yieldResult;L&&(y=L.changedKeys,Object.keys(y).length>0&&(g.channel.postMessage(y),LD5(g,y)));return v.return(E)})};
SF.prototype.observe=function(g){var u=this;this.observers.push(g);return function(){var q=u.observers.indexOf(g);q>=0&&u.observers.splice(q,1)}};
var bMq=function(g){var u;return _.D(function(q){if(q.nextAddress==1)return q.yield(_.UR(g,{mode:"readonly",enableRetries:!0},function(Q){return Q.JSC$13183_wrapped.objectStore("EntityStore").getAll()}),2);
u=q.yieldResult;return q.return(Promise.all(u.filter(function(Q){return!!Q}).map(function(Q){var L,E;
return _.D(function(y){if(y.nextAddress==1){L=Q.key;E=Q.entityType;var v=y.yield;var J=z40(kJx(g.JSC$13197_encoderRegistry,Q.version),Q.data,Q.key);return v.call(y,J,2)}return y.return({key:L,entityType:E,data:y.yieldResult})})})))})};
SF.prototype.JSC$13197_handleMessage=function(g){LD5(this,g.data)};
var LD5=function(g,u){g=_.N(g.observers);for(var q=g.next();!q.done;q=g.next())q=q.value,q(u)};
SF.prototype.disposeInternal=function(){this.channel.close()};
var Qzk;var J4,PiH,iFK;J4={};_.Edb=(J4.mainVideoEntity="mainVideoEntityActionMetadata",J4.mainPlaylistEntity="mainPlaylistEntityActionMetadata",J4.musicTrack="musicTrackEntityActionMetadata",J4.musicPlaylist="musicPlaylistEntityActionMetadata",J4);PiH=new _.Fv("DOWNLOADS_ENTITY_TYPE_MAP");_.s3=_.x6("","downloadsPageViewConfigurationEntity");iFK=_.x6("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.yFS=_.x6("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.x6("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.x6("SMART_DOWNLOADS_ENABLED","settingEntity");_.x6("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var fCb=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var wOS=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var NWW={isLeaderTab:!0};var S6K={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var j9=window,R7=j9.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",kuh=j9.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||wr,I5u=j9.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||zk,wY5=j9.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Rz0,Gkx=j9.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||FH0,Z5m=j9.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||WH8;var neJ;Zs({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 h6h=ilT(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(g){return g}}}),Khu=ilT(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(g){return g}}}),FAb=new Map;var OlF=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],rPf;var svi=function(g){return _.rF({type:"SET_EPHEMERAL_ACTION",payload:g})};var yKR={ephemeralAction:null};var vd2=$C({ephemeralAction:function(g,u){g=g===void 0?yKR.ephemeralAction:g;switch(u.type){case "SET_EPHEMERAL_ACTION":return u.payload;default:return g}}});var Doi=function(g){return _.rF({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:g})};var pER={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var JK$={sharedUi:pER,a11y:yKR,entities:{}},fmh={sharedUi:function(g,u){g=g===void 0?pER:g;switch(u.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},g,{animatedThumbnailEnabled:u.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},g,{inlinePreviewEnabled:u.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},g,{currentPageType:u.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},g,{currentPageSubType:u.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},g,{persistentPanelVisible:u.payload});default:return g}},
a11y:vd2,entities:h8F};var kfb={playlistId:"",inviteLinkURL:""};var jvn={continuationCommand:{}};var N7J=$C({continuationCommand:function(g,u){g=g===void 0?jvn.continuationCommand:g;switch(u.type){case "SET_CONTINUATION_COMMAND":return u.payload.continuationCommand;default:return g}}});var osT={currentFormId:"",commandsMap:{}};var sw3=$C({isLeaderTab:function(g,u){g=g===void 0?NWW.isLeaderTab:g;switch(u.type){case "SET_IS_LEADER_TAB":var q,Q;return(Q=u==null?void 0:(q=u.payload)==null?void 0:q.isLeaderTab)!=null?Q:g;default:return g}}});var McR;_.ft5=function(g){return _.rF({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:g}})};
McR=function(g){return _.rF({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:g}})};var fI={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var jwq=$C({isDesktopSmallWidth:function(g,u){g=g===void 0?fI.isDesktopSmallWidth:g;switch(u.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return u.payload.isDesktopSmallWidth;default:return g}},
isShortsActive:function(g,u){g=g===void 0?fI.isShortsActive:g;switch(u.type){case "SET_IS_SHORTS_ACTIVE":return u.payload.isShortsActive;default:return g}},
isWatchWhileMode:function(g,u){g=g===void 0?fI.isWatchWhileMode:g;switch(u.type){case "SET_IS_WATCH_WHILE_MODE":return u.payload.isWatchWhileMode;default:return g}},
playerState:function(g,u){g=g===void 0?fI.playerState:g;switch(u.type){case "SET_PLAYER_STATE":return u.payload.playerState;default:return g}},
isFullscreen:function(g,u){g=g===void 0?fI.isFullscreen:g;switch(u.type){case "SET_IS_FULLSCREEN":return u.payload.isFullscreen;default:return g}},
isSmallScreenSqueezeback:function(g,u){g=g===void 0?fI.isSmallScreenSqueezeback:g;switch(u.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return u.payload.isSmallScreenSqueezeback;default:return g}},
isShortsPipActive:function(g,u){g=g===void 0?fI.isShortsPipActive:g;switch(u.type){case "SET_IS_SHORTS_PIP_ACTIVE":return u.payload.isShortsPipActive;default:return g}},
isPlaybackStarted:function(g,u){g=g===void 0?fI.isPlaybackStarted:g;switch(u.type){case "SET_IS_PLAYBACK_STARTED":return u.payload.isPlaybackStarted;default:return g}}});var g4q={currentMode:"canvas-hidden"};var tvT=function(){return function(g){return function(u){var q=g(u);_.YJ(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[u],!0);return q}}};var tcb,BHf;tcb=new _.KU;_.rv=new _.Fv("WATCH_PLAYER_PROMISE_TOKEN");_.ewo=new _.KU;_.G_a=new _.Fv("SHORTS_PLAYER_PROMISE_TOKEN");BHf=new _.Fv("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var eCK=function(){return function(g){return function(u){u.type==="ENTITY_LOADED"&&_.Bk().resolve(_.rv).then(function(q){var Q;(Q=q.dispatchReduxAction)==null||Q.call(q,u)});
return g(u)}}};var $oo={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var yWF=$C({additionalContext:function(g,u){g=g===void 0?$oo.additionalContext:g;switch(u.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var q;return(q=u.payload)!=null?q:"";default:return g}},
impersonatedChannelUrl:function(g,u){g=g===void 0?$oo.impersonatedChannelUrl:g;switch(u.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var q;return(q=u.payload)!=null?q:"";default:return g}},
selectedVideoIds:function(g,u){g=g===void 0?$oo.selectedVideoIds:g;switch(u.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var q={};return Object.assign({},g,(q[u.payload]=!0,q));case "VIDEO_UNSELECTED":return u=u.payload,g=Object.assign({},g),delete g[u],g;default:return g}}});var Rwx={parentClickTrackingParams:""};var v4h=$C({parentClickTrackingParams:function(g,u){g=g===void 0?Rwx.parentClickTrackingParams:g;switch(u.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return u.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return g}}});var wEn=function(g){return _.rF({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:g})},cKn=function(g){return _.rF({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:g})};var HP2={stepStates:{}};var DUT=$C({stepStates:function(g,u){g=g===void 0?HP2.stepStates:g;switch(u.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_RESET_STEP_STATE":var q=u.payload,Q=Object.assign({},g);delete Q[q.stepId];return Q;case "TALK_TO_RECS_UPDATE_SELECTION":var L=g,E=u.payload,y;g={};u={selectionStates:Object.assign({},(y=(q=L[E.stepId])==null?void 0:q.selectionStates)!=null?y:{},(g[E.token]={isSelected:E.isSelected},g)),userQuery:(Q=L[E.stepId])==null?void 0:Q.userQuery};q={};return Object.assign({},
L,(q[E.stepId]=u,q));case "TALK_TO_RECS_UPDATE_USER_QUERY":return q=g,Q=u.payload,y={selectionStates:Object.assign({},(E=(L=q[Q.stepId])==null?void 0:L.selectionStates)!=null?E:{}),userQuery:{userQuery:Q.userQuery,token:Q.userQueryToken}},L={},Object.assign({},q,(L[Q.stepId]=y,L));default:return g}}});var AKa,ZP$,Itx;AKa=function(g){return _.rF({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:g})};
ZP$=function(g){return _.rF({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:g})};
_.JL=function(g){return _.rF({type:"SET_CURRENT_PAGE_TYPE",payload:g})};
_.lt2=function(g){return _.rF({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:g})};
Itx=function(g){return _.rF({type:"SET_CHIP_BAR_IS_STICKY",payload:g})};var qmq={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"};_.MG=function(g){return _.rF({type:"SET_PLAYER_STATE",payload:{playerState:g}})};var t4={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:LwS(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var ppJ=$C({isTheaterMode:function(g,u){g=g===void 0?LwS():g;switch(u.type){case "SET_IS_THEATER_MODE":return u.payload.isTheaterMode;default:return g}},
isWatchActive:function(g,u){g=g===void 0?t4.isWatchActive:g;switch(u.type){case "SET_IS_WATCH_ACTIVE":return u.payload.isWatchActive;default:return g}},
isLearningJourneyActive:function(g,u){g=g===void 0?t4.isLearningJourneyActive:g;switch(u.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return u.payload.isLearningJourneyActive;default:return g}},
isWatchFullscreen:function(g,u){g=g===void 0?t4.isWatchFullscreen:g;switch(u.type){case "SET_IS_WATCH_FULLSCREEN":return u.payload.isWatchFullscreen;default:return g}},
isWatchNarrowWidth:function(g,u){g=g===void 0?t4.isWatchNarrowWidth:g;switch(u.type){case "SET_IS_WATCH_NARROW_WIDTH":return u.payload.isWatchNarrowWidth;default:return g}},
isSwatcherooActive:function(g,u){g=g===void 0?t4.isSwatcherooActive:g;switch(u.type){case "SET_IS_SWATCHEROO_ACTIVE":return u.payload.isSwatcherooActive;default:return g}},
isWatchRetroMode:function(g,u){g=g===void 0?t4.isWatchRetroMode:g;switch(u.type){case "SET_IS_WATCH_RETRO_MODE":return u.payload.isWatchRetroMode;default:return g}},
isLiveChatCollapsed:function(g,u){g=g===void 0?t4.isLiveChatCollapsed:g;switch(u.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return u.payload.isLiveChatCollapsed;default:return g}},
openEngagementPanels:function(g,u){g=g===void 0?t4.openEngagementPanels:g;var q=[].concat(_.na(g));switch(u.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return q.push(u.payload.panelToAdd),q;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return q.splice(q.indexOf(u.payload.panelToRemove),1),q;default:return g}},
playerState:function(g,u){g=g===void 0?t4.playerState:g;switch(u.type){case "SET_PLAYER_STATE":return u.payload.playerState;default:return g}},
watchScrollTop:function(g,u){g=g===void 0?t4.watchScrollTop:g;switch(u.type){case "SET_WATCH_SCROLL_TOP":return u.payload.watchScrollTop;default:return g}},
watchWindowSize:function(g,u){g=g===void 0?t4.watchWindowSize:g;switch(u.type){case "SET_WATCH_WINDOW_SIZE":return u.payload.watchWindowSize;default:return g}}});var iP8={surveyFeedbackData:{feedbackTokens:[]}};var JW3=$C({surveyFeedbackData:function(g,u){g=g===void 0?iP8.surveyFeedbackData:g;switch(u.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return u.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},g,u.payload);default:return g}}});var E4M={};var $UF=void 0;_.w("web_enable_redux_store_on_demand")||($UF=GbT());var Ci2=function(g,u,q){var Q=this;this.listId=g;this.JSC$13342_updateCallback=u;this.isOfflineVideoCallback=q;_.bR().subscribe(function(){Q.handleUpdate()})};
Ci2.prototype.getPlaylistData=function(){var g=_.bR().getState().entities;if(this.listId&&this.listId!=="PPSV"){var u=W4K(g,this.listId,!0),q=_.x6(this.listId,"mainPlaylistEntity"),Q,L;g=g==null?void 0:(Q=g.mainPlaylistEntity)==null?void 0:(L=Q[q])==null?void 0:L.title;return RCK(u,g,this.listId)}u=_.cXm(fhS(g));g=_.cXm(_.yv(g));g=u.concat(g);return RCK(g)};
Ci2.prototype.getPlaylistId=function(){return this.listId};
Ci2.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13342_updateCallback(this.listId,this.getPlaylistData(),{})};var e9=function(g,u,q,Q){Q=Q===void 0?[]:Q;this.JSC$13345_playlistNetworkManager=g;this.listId=u;this.JSC$13345_updateCallback=q;this.videoIds=Q;this.pendingUpdates=[];this.currentIndex=0};
e9.prototype.JSC$13345_setCurrentIndex=function(g){this.currentIndex=g};
e9.prototype.setListId=function(g){this.listId=g};
var bP8=function(g,u){g.currentCreateRequest&&g.currentCreateRequest.cancel(u);g.currentUpdateRequest&&g.currentUpdateRequest.cancel(u);g.currentRefreshRequest&&g.currentRefreshRequest.cancel(u)};
e9.prototype.delete=function(){bP8(this,"PROXY DELETED")};
e9.prototype.addVideos=function(g,u,q){var Q=this;q!==void 0?this.videoIds.splice.apply(this.videoIds,[q,0].concat(_.na(g))):this.videoIds.push.apply(this.videoIds,_.na(g));this.listId||this.currentCreateRequest?(g.forEach(function(L,E){L={addedVideoId:L,action:"ACTION_ADD_VIDEO"};q&&(L.addedVideoPosition=q+E);Q.pendingUpdates.push(L)}),GL(this)):do2(this,u.onCreateListCommand)};
var FD2=function(g,u,q,Q,L){rTq(g.videoIds,u,q);u>g.currentIndex&&q<=g.currentIndex?g.JSC$13345_setCurrentIndex(g.currentIndex+1):u===g.currentIndex?g.JSC$13345_setCurrentIndex(q):u<g.currentIndex&&q>=g.currentIndex&&g.JSC$13345_setCurrentIndex(g.currentIndex-1);g.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:Q,movedSetVideoIdPredecessor:L});GL(g)},do2=function(g,u){bP8(g,"OBSOLETE");
g.currentCreateRequest=moR(g.JSC$13345_playlistNetworkManager,u,g.videoIds);_.fY(g.currentCreateRequest,function(){g.currentCreateRequest=void 0}).then(function(q){g.setListId(q.playlistId);
g.pendingUpdates.length>0?GL(g):ato(g)})},GL=function(g){if(g.pendingUpdates.length!==0&&(g.currentRefreshRequest&&g.currentRefreshRequest.cancel("OBSOLETE"),!g.currentUpdateRequest&&!g.currentCreateRequest)){var u=g.pendingUpdates.splice(0,g.pendingUpdates.length);
g.currentUpdateRequest=g.JSC$13345_playlistNetworkManager.updatePlaylist(g.listId,u);_.fY(g.currentUpdateRequest,function(){g.currentUpdateRequest=void 0}).then(function(){g.pendingUpdates.length>0?GL(g):ato(g)}).thenCatch(function(){g.pendingUpdates.unshift.apply(g.pendingUpdates,_.na(u))})}},ato=function(g){g.currentRefreshRequest=_.VcH(g.JSC$13345_playlistNetworkManager,g.listId,g.currentIndex,g.videoIds[g.currentIndex]);
_.fY(g.currentRefreshRequest,function(){g.currentRefreshRequest=void 0}).then(function(u){g.JSC$13345_updateCallback(u.playlistId,u.playlistPanelRenderer,u.autoplayRenderer)})};
e9.prototype.size=function(){return this.videoIds.length};var XE2=function(g,u,q,Q){Q=Q===void 0?[]:Q;e9.call(this,g,u,q,Q);this.JSC$13345_playlistNetworkManager=g;this.listId=u;this.JSC$13345_updateCallback=q;this.videoIds=Q};
_.A(XE2,e9);_.$a=function(g,u,q,Q,L,E,y){L=L===void 0?[]:L;y=y===void 0?Y$:y;e9.call(this,g,u,q,L);this.JSC$13345_playlistNetworkManager=g;this.listId=u;this.JSC$13345_updateCallback=q;this.onAuthChange=Q;this.videoIds=L;this.storage=E;this.cookieReader=y;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Xh(_.Hv,this.checkLoggedInStatusChange.bind(this),1E3)};
_.A(_.$a,e9);_.P=_.$a.prototype;_.P.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Xh(_.Hv,this.checkLoggedInStatusChange.bind(this),1E3)};
_.P.JSC$13345_setCurrentIndex=function(g){e9.prototype.JSC$13345_setCurrentIndex.call(this,g);this.store()};
_.P.delete=function(){_.Hv.cancelJob(this.queueSapisIdJob);e9.prototype.delete.call(this)};
_.P.setListId=function(g){e9.prototype.setListId.call(this,g);this.store()};
_.P.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var rKa=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],WDR=["playerResponse","videoDetails"],TWi=["response","currentVideoEndpoint","watchEndpoint","videoId"],hw0=["response","currentVideoEndpoint","watchEndpoint","playlistId"],YS2=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],OPi=["response","contents","twoColumnWatchNextResults","playlist","playlist"],KDH=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
xo8=["response","contents","twoColumnWatchNextResults"];var Rc={},ZGS=(Rc.WEB_UNPLUGGED="^unplugged/",Rc.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Rc.WEB_UNPLUGGED_OPS="^unplugged/",Rc.WEB_UNPLUGGED_PUBLIC="^unplugged/",Rc.WEB_CREATOR="^creator/",Rc.WEB_KIDS="^kids/",Rc.WEB_EXPERIMENTS="^experiments/",Rc.WEB_MUSIC="^music/",Rc.WEB_REMIX="^music/",Rc.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Rc.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Rc);var Syq,moR;Syq=function(g,u){this.networkManager=g;this.innertubeTransportService=u};
moR=function(g,u,q){if(!_.c(u,_.$l))return _.NY(Error("Pf"));_.c(u,_.$l).videoIds=q;q={create_playlist_title:_.Ug("QUEUE",void 0,"Queue")};return HGZ(_.ce(g.innertubeTransportService,u,q),wpk)};
_.VcH=function(g,u,q,Q){u={videoId:Q,playlistId:u,playlistIndex:q};q=_.dr(KSH);return HGZ(_.wE(g.innertubeTransportService,u,q),AWf)};
Syq.prototype.updatePlaylist=function(g,u){return HGZ(_.ce(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:g,actions:u}}),cWq)};var BW$=function(g){this.storage=g},zwn;
BW$.prototype.store=function(g,u){u=u===void 0?0:u;if(this.storage&&g.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",g),this.storage.set("TLPQindex",String(u)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(q){}};
BW$.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
BW$.prototype.getPlaylistId=function(){if(!this.storage)return null;var g=null;try{g=this.storage.get("TLPQplaylist")}catch(u){}return g};var CYT=["navigationEndpoint","watchEndpoint","videoId"],iGq=["nextButtonVideo","watchEndpoint","videoId"];_.qR=new _.Fv("NETWORK_TOKEN");_.ba=new _.Fv("PAGE_TOKEN");_.cd=new _.Fv("PLAYLIST_TOKEN");var ndn;ndn=new _.Fv("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.QY=new _.Fv("INNERTUBE_TRANSPORT_TOKEN");var k_b,Hd,od5,Uox,uG2,qWX;k_b=new Set(["ci","cr","carml"]);Hd=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13392_parkedJobs=new Map;this.parkedProcessors=new Map};
_.A4=function(){Hd.instance||(Hd.instance=new Hd);return Hd.instance};
Hd.prototype.onAny=function(g){return _.SSW(this,g,2)};
Hd.prototype.parkOrScheduleJob=function(g,u,q,Q,L){_.ZV(this,q)?_.pT().addJob(g,u,Q):(L&&(g=od5(g),Uox(this,g,u,q,L)),L=this.JSC$13392_parkedJobs.get(q),L||(this.JSC$13392_parkedJobs.set(q,[]),L=this.JSC$13392_parkedJobs.get(q)),L.push({job:g,priority:u,delay:Q}))};
Hd.prototype.addListener=function(g,u,q){q&&(u=od5(u),Uox(this,u,0,g,q));q=this.parkedProcessors.get(g);q||(this.parkedProcessors.set(g,[]),q=this.parkedProcessors.get(g));q.push(u)};
Hd.prototype.processSignal=function(g){if(!_.ZV(this,g)){this.inProgressSignals.add(g);var u=this.JSC$13392_parkedJobs.get(g);if(u){u=_.N(u);for(var q=u.next();!q.done;q=u.next())q=q.value,_.pT().addJob(q.job,q.priority,q.delay);this.JSC$13392_parkedJobs.delete(g)}if(u=this.parkedProcessors.get(g)){u=_.N(u);for(q=u.next();!q.done;q=u.next())q=q.value,q();this.parkedProcessors.delete(g)}this.signals.push(g);this.inProgressSignals.delete(g)}};
_.ZV=function(g,u){return k_b.has(u)||_.mW("IS_HOMEPAGE_COLD")||_.mW("IS_RESULTS_PAGE_COLD")||_.mW("IS_WATCH_PAGE_COLD")?g.signals.indexOf(u)>=0:!0};
od5=function(g){var u=!1;return function(){u||(u=!0,g())}};
Uox=function(g,u,q,Q,L){if(gE0.has(Q))_.pT().addJob(u,q,L);else{var E=g.compoundSignals.get(Q);E&&_.pT().addJob(function(){_.ZV(g,Q)||(E.isTimeoutConditionSatisfied?_.pT().addJob(u,q):E.timeoutConditionObservers.push(function(){_.pT().addJob(u,q)}))},q,L)}};
_.SSW=function(g,u,q){if(u.length>1){var Q=[],L=Object.create(null);u=_.N(u);for(var E=u.next();!E.done;E=u.next())E=E.value,L[E]||(Q.push(E),L[E]=!0);u=Q}if(u.length===1)return u[0];E=u;Q="";L=q===2?"|":"&";E.sort();E=_.N(E);for(var y=E.next();!y.done;y=E.next())Q+=y.value+L;if(!g.compoundSignals.get(Q)){L=0;E=[];y=_.N(u);for(var v=y.next();!v.done;v=y.next())v=v.value,L++,_.ZV(g,v)||E.push(v);(q=q===2)&&L>E.length||!q&&!E.length?g.signals.push(Q):uG2(g,Q,q,u,E)}return Q};
uG2=function(g,u,q,Q,L){var E=L.length,y=function(){q||--E===0?g.processSignal(u):qWX(g,u)};
L=_.N(L);for(var v=L.next();!v.done;v=L.next())g.addListener(v.value,y);g.compoundSignals.set(u,{signals:Q,isOnAny:q,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});qWX(g,u)};
qWX=function(g,u){if(!_.ZV(g,u)){var q=g.compoundSignals.get(u);if(q&&!q.isTimeoutConditionSatisfied){for(var Q=!1,L=0,E=0,y=_.N(q.signals),v=y.next();!v.done;v=y.next()){var J=v.value;v=!_.ZV(g,J);gE0.has(J)?Q=!0:(J=g.compoundSignals.get(J))?v&&!J.isTimeoutConditionSatisfied&&(E++,q.isInitialized||J.timeoutConditionObservers.push(function(){qWX(g,u)})):v&&L++}q.isInitialized=!0;
q.isOnAny?Q&&(q.isTimeoutConditionSatisfied=!0):L===0&&E===0&&(q.isTimeoutConditionSatisfied=!0);if(q.isTimeoutConditionSatisfied)for(q=_.N(q.timeoutConditionObservers),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q()}}};
Hd.prototype.processSignal=Hd.prototype.processSignal;Hd.prototype.parkOrScheduleJob=Hd.prototype.parkOrScheduleJob;Hd.prototype.onAny=Hd.prototype.onAny;_.xQ("ytsignals.getInstance",_.A4);Hd.prototype.onAny=Hd.prototype.onAny;Hd.prototype.parkOrScheduleJob=Hd.prototype.parkOrScheduleJob;Hd.prototype.processSignal=Hd.prototype.processSignal;var gE0=new Set(["eop","eocs","dl","pcl"]);_.RO=new _.Fv("MINIPLAYER_SERVICE");var lo,QSZ,L0b;lo=function(g,u,q){var Q=_.VC.getInstance();if(!zwn){var L=new j7q;var E=void 0,y=_.FR("ID_TOKEN");y&&L.isAvailable()&&(E=new ej(L,"yt-queue"+y));zwn=new BW$(E)}L=zwn;E=_.A4();this.JSC$13399_actionRouter=Q;this.JSC$13399_pageManager=g;this.playlistManager=u;this.JSC$13399_playlistNetworkManager=q;this.storage=L;this.signals=E;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Ic=function(){if(!QSZ){var g=_.Bk(),u=g.resolve(_.xv(_.ba)),q=g.resolve(_.xv(_.qR)),Q=g.resolve(_.xv(_.cd));g=g.resolve(_.QY);QSZ=new lo(u,Q,new Syq(q,g))}return QSZ};
L0b=function(g,u,q){if(q){var Q;if(((Q=g.responsePlaylistData)==null?void 0:Q.playlistId)!==q)return}g.responsePlaylistData&&(q=VvZ(u,g.responsePlaylistData),g.responsePlaylistData=(0,_.pH.unsafeClone)(g.responsePlaylistData),rWJ(g.responsePlaylistData,q));q=g.temporaryItems.findIndex(function(L){return L.videoId===u});
q>-1&&g.temporaryItems.splice(q,1);_.io(g,_.CI(g,g.response?g.response.autoplayRenderer:void 0))};
_.EE5=function(g,u){if(g.responsePlaylistData){var q=Xpf(u,g.responsePlaylistData);rWJ(g.responsePlaylistData,q);if(g.queueProxy){var Q=g.queueProxy;q<0||(Q.videoIds.splice(q,1),q<Q.currentIndex&&Q.JSC$13345_setCurrentIndex(Q.currentIndex-1),Q.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:u}),GL(Q))}}_.io(g,_.CI(g,g.response?g.response.autoplayRenderer:void 0))};
lo.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.io(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
lo.prototype.setPlaylistData=function(g,u,q){this.temporaryItems=[];this.listId=g;this.responsePlaylistData=u;_.io(this,_.CI(this,q))};
var PCi=function(g){return(g==null?0:g.playlistId)?g.playlistId:"PPSV"},N4W=function(g){return g&&g.playlistId?g.playlistId==="PPSV"?!0:XOM(_.bR().getState().entities,g.playlistId):!1};
lo.prototype.isPlayingOfflineVideo=function(){return this.response?N4W(this.response):!1};
lo.prototype.closeMiniplayer=function(g){var u=this.queueProxy&&this.queueProxy.size()<=1,q=_.Bk().resolve(_.RO);if(!this.queueProxy||u)this.queueProxy&&this.clearQueue(),q.close(!0);else{q.pipController.getWindow()&&window.focus();u=this.responsePlaylistData;var Q=this.temporaryItems.length+(u&&u.contents?u.contents.length:0);u=_.Ug("QUEUE_CLEARED_UNPLURALIZED")||_.gF("QUEUE_CLEARED",Q);u=_.mc(u);q=_.Ug("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");Q=_.Ug("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.gF("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",Q);var L=_.Ug("MINIPLAYER_CLOSE",void 0,"Close"),E=_.Ug("CANCEL",void 0,"Cancel");_.j2(this.JSC$13399_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.I7(q),dialogMessages:[_.I7(Q)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I7(L),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
u]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.I7(E)}}}}}}],g)}};
_.CI=function(g,u){var q={},Q=g.response;q.autoplayRenderer=u;if(!g.responsePlaylistData&&!g.temporaryItems.length)return!Q||!Q.hasRelatedVideoData&&_.w("kevlar_prefetch_data_augments_network_data")||(q.playerData={rvs:Q.relatedVideoArgs,endScreenRenderer:Q.endScreenRenderer}),q;q.playerData={};if(g.index===void 0)return _.Zf(Error("Rf")),q;q.panel=g.responsePlaylistData?(0,_.pH.unsafeClone)(g.responsePlaylistData):{titleText:_.I7(_.Ug("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
u=q.panel;if(u.contents)for(var L=_.N(g.temporaryItems),E=L.next();!E.done;E=L.next())u.contents.push({playlistPanelVideoRenderer:E.value});g.queueProxy&&Q&&Q.playingVideo&&Q.playingVideoId&&!amq(Q.playingVideoId,q.panel)&&(u=Q.playingVideo,L=q.panel,E=g.index,L.contents&&L.contents.splice(E===void 0?0:E,0,{playlistPanelVideoRenderer:u}));Q&&Q.playingVideoId&&(u=g.index,L=q.panel,u=!L.contents||u>=L.contents.length?void 0:L.contents[u].playlistPanelVideoRenderer,u&&u.videoId===Q.playingVideoId||(u=
VvZ(Q.playingVideoId,q.panel),g.index=u!==-1?u:g.index?g.index-1:0));u=mUb(g.index+1,q.panel);L=void 0;g.index>0&&(L=mUb(g.index-1,q.panel));if(L||u)q.autoplayRenderer=bGm(u,L,q.autoplayRenderer);!u&&(Q==null?0:Q.relatedVideoArgs)&&(q.playerData.rvs=Q.relatedVideoArgs);Q=Q?Q.playlistIndexOffset:0;g.queueProxy?hCh(q.panel,g.index,Q,FwK,!0,!0,!0):hCh(q.panel,g.index,Q);q.playerData.playlistPanelRenderer=q.panel;return q};
lo.prototype.isMiniplayerActive=function(){return _.Bk().resolve(_.RO).isMiniplayerActive()};
_.io=function(g,u){g.playlistManager.setAutoplayRenderer(u.autoplayRenderer||null);g.playlistManager.setPlaylistData(u.panel||null);u.playerData&&g.playlistManager.setPlayerPlaybackControlData(u.playerData)};var Ymm="#";var sS0={},y80={},vEW={},DNH={},pQ$={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:(sS0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",sS0),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:(y80.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",y80),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:(vEW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",vEW),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:(DNH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",DNH),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 AVM=[{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:pQ$},{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:pQ$}}];var fGJ;_.O3=[[["bXFraW5kI2Fkczg2dXQ5cDA=","YWx1ZSNpMnUxOTVrbGVhNml2"],"VEFSVCNibzR4b2gzY2NlbXVBRF9QTEFDRU1FTlRfS0lORF9T"]];
fGJ=[[["cmltYXJ5I29odmY1MHRsMWZw",null,null],[null,["Z295dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciN4ZDhhdnJzcTQ1","cmU3c29zdHlsZS1zY29wZSNuMXdmaDY0"],null],["cHlkbHBtYXN0aGVhZC1hZCNuZGY3NWJl",["ZGVyZXIjdjI3eXNlZjV1ejUxeXRkLXJpY2gtZ3JpZC1yZW4="],null],[null,["ZW5kZXJlciM0azJhMWRwOHZlZHl0ZC1yaWNoLWdyaWQtcg==","dm5rajFzdHlsZS1zY29wZSM3bWY0azA0"],null],[null,["ZXIjN3p6ZW5qeTk1ZjgxeXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","NGpyNXFzdHlsZS1zY29wZSMyajI0bnll"],null],[null,["ZW5kZXJlciM5MnYxdGhkdjd6N2h5dGQtYWQtc2xvdC1y"],
null]],[["dGJiaGpoeXBsYXllci1hZHMjNTZwM2I=",null,null]]];_.YZ=["bG9iYWxDYWxsYmFja3MjaXAyZWd3Y3RlNXdn","dGVjdGVkI3VlNG9oZTJkcHh3d29uQWJub3JtYWxpdHlEZQ==","Y3pzbHBna2NucW5vbkFkU2tpcCNp","cmVzcG9uc2UjYnlqa3Zha3EwNW1ocmF3X3BsYXllcl8=","I256ZGJubGI3cTc5b2FkU2xvdHM="];_.bo="bG9iYWxDYWxsYmFja3MjaXAyZWd3Y3RlNXdn dGVjdGVkI3VlNG9oZTJkcHh3d29uQWJub3JtYWxpdHlEZQ== Y3pzbHBna2NucW5vbkFkU2tpcCNp cmVzcG9uc2UjYnlqa3Zha3EwNW1ocmF3X3BsYXllcl8= a2htandlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNqOGd6OW13Yw== dXB4YnBoNzQwendhYl9zYV9lZiNi I256ZGJubGI3cTc5b2FkU2xvdHM=".split(" ");var dE;dE=function(g,u,q){this.lhY=g;this.uF1=u;this.rBn=q};
_.XwK=[new dE("b.f_",!1,0),new dE("j.s_",!1,2),new dE("r.s_",!1,4),new dE("e.h_",!1,6),new dE("i.s_",!0,8),new dE("s.t_",!1,10),new dE("p.h_",!1,12),new dE("s.i_",!1,14),new dE("f.i_",!1,16),new dE("a.b_",!1,18),new dE("a.o_",!1),new dE("g.o_",!1,22),new dE("p.i_",!1,24),new dE("p.m_",!1),new dE("n.k_",!0,20),new dE("i.f_",!1),new dE("a.s_",!0),new dE("m.c_",!1),new dE("n.h_",!1,26),new dE("o.p_",!1),new dE("m.p_",!0,28),new dE("o.a_",!1),new dE("d.p_",!1),new dE("e.i_",!1)].reduce(function(g,u){g[u.lhY]=
u;return g},{});var J8$=function(){};
J8$.prototype.flush=function(g,u){g=g===void 0?[]:g;u=u===void 0?!1:u;if(_.w("enable_client_streamz_web")){g=_.N(g);for(var q=g.next();!q.done;q=g.next())q=Jf2(q.value),this.rootSpec&&_.FV(q,2,this.rootSpec),q={serializedIncrementBatch:_.om(q.JSC$9914_serializeBinary())},_.H6("streamzIncremented",q,{sendIsolatedPayload:u})}};
var zCb=function(){};
_.A(zCb,J8$);var jS5=function(g){var u=new PX0;var q=new QYn;q=_.EU(q,1,"botguard");g=_.EU(q,2,g);this.rootSpec=_.mG(u,1,NBW,g)};
_.A(jS5,J8$);var Wc,fd2=new Map;var GV3,kbZ,ErT,UUM,qyq,JVb,RDq,D2S;GV3=2;kbZ=2;ErT=2;UUM=2;qyq=2;JVb=2;RDq=2;D2S=new Pt8;var tuH,eio;tuH=function(){this.ongoingFlowNonces=new Map};
_.Bc=function(){eio||(eio=new tuH);return eio};
_.xZ=function(g,u,q){return{eventType:{flowEventNamespace:g,flowEventType:u},metadata:q,statusCode:void 0,csn:void 0,can:void 0}};
_.WFJ=function(g,u){var q=_.Bc(),Q=GIR(q,u,!0);q.logFlowEvent(g,u,Q,void 0)};
tuH.prototype.logFlowEvent=function(g,u,q,Q){u={flowNonce:q||GIR(this,u),flowType:u,flowEventType:g.eventType};g.metadata&&(u.flowMetadata=g.metadata);g.statusCode!==void 0&&(u.flowEventStatus=g.statusCode);g.csn&&(u.csn=g.csn);g.can&&(u.can=g.can);_.H6("flowEvent",u,Q)};
var GIR=function(g,u,q){q=q===void 0?!1:q;var Q=g.ongoingFlowNonces.get(u);if(!Q||q)Q=D4(16),g.ongoingFlowNonces.set(u,Q);return Q};_.$N$=new EOW;var KFq={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 FC=function(g,u,q,Q,L,E,y){q=q===void 0?!1:q;Q=Q===void 0?!1:Q;E=E===void 0?_.Ic():E;this.q6=!1;this.cVn=g;this.oYn=u;this.iFM=q;this.fromHistory=Q;this.previousVideoId=L;this.woq=E;this.tempData=y;this.jcY=new _.NN0};
_.A(FC,an);FC.prototype.validate=function(g){return!(!g.data.playerResponse||g.data.page!=="watch"&&g.data.page!=="learning_journey_watch"&&g.data.page!=="shorts"||this.q6)};
FC.prototype.handle=function(g){var u=this,q=_.c(g.endpoint,_.l1),Q=_.c(g.endpoint,_.g$);if(_.w("kevlar_continue_playback_without_player_response")&&(q==null?0:q.videoId)&&this.previousVideoId&&(q==null?void 0:q.videoId)===this.previousVideoId&&(q==null?0:q.continuePlayback)&&!this.fromHistory)this.cVn.resolve();else{var L={};q?L.watch_endpoint=q:Q&&(L.watch_endpoint=Q,Q.endTimeSeconds&&(L.end=Q.endTimeSeconds));g.data.page==="watch"?(g.data.filler||this.iFM||(_.Mf("cfg"),_.VC.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(L,RiX(this,g.endpoint)),_.w("enable_masthead_quartile_ping_fix")&&Object.assign(L,wQa(this)),Object.assign(L,void 0),g.data.forceExternalPlaylist&&(L.external_list=!0)):g.data.page==="shorts"?_.VC.getInstance().triggerAction("yt-start-loading-shorts"):g.data.page==="learning_journey_watch"&&_.VC.getInstance().triggerAction("yt-start-loading-learning-journey");if(q=this.oYn()){try{q.loadVideoWithPlayerResponse(g.data.playerResponse,L),q.getPlayerPromise().then(this.cVn.resolve)}catch(E){_.Zf(E),
this.cVn.resolve()}this.q6=!0;q.getPlayerPromise().then(function(E){E.addEventListener("onAbnormalityDetected",function(){var y=g.data.playerResponse,v=E.getVideoData().cpn;RDq=0;_.MuR=v;if(v=VmZ(y))u.jcY.increment("IN_PLAYER"),_.zN(5),_.w("ab_st_vid_ks")?E.pauseVideo(!0):E.stopVideo(),y.playabilityStatus=Object.assign({},y.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:v}}),y.videoDetails=void 0,_.VC.getInstance().triggerOptionalAction("yt-updated-playability-status",
y.playabilityStatus)})})}else _.Io(Error("Uf"))}};
var RiX=function(g,u){var q=_.c(u,_.l1);if(u&&q&&q.playlistId&&q.videoId&&(g=g.woq,g.queueProxy?(g=g.queueProxy,q=g.listId===q.playlistId?g.attributionData.get(q.videoId):void 0):q=void 0,q))return{queue_info:q}},wQa=function(g){var u;
if((u=g.tempData)==null?0:u.adpings)return{adpings:g.tempData.adpings}};var m_=function(g,u,q){this.q6=!1;this.g0x=g;this.bDy=u;this.o0Y=q};
_.A(m_,an);m_.prototype.validate=function(g){return!!_.pH.getValueByKeys.apply(null,[g.data].concat(_.na(xo8)))};
m_.prototype.handle=function(g){var u=this;this.g0x.promise.then(function(){var q=g.data;var Q=_.pH.getValueByKeys.apply(null,[q].concat(_.na(rKa))),L=_.pH.getValueByKeys.apply(null,[q].concat(_.na(OPi))),E=_.pH.getValueByKeys.apply(null,[q].concat(_.na(TWi)));var y=(y=_.pH.getValueByKeys.apply(null,[q].concat(_.na(WDR))))?{videoId:y.videoId,thumbnail:y.thumbnail,title:y.title?_.I7(y.title):void 0,shortBylineText:y.author?_.I7(y.author):void 0}:void 0;var v=void 0;_.w("web_get_playlist_id_from_current_endpoint_ks")||
(v=_.pH.getValueByKeys.apply(null,[q].concat(_.na(hw0))));var J=_.pH.getValueByKeys.apply(null,[q].concat(_.na(KDH))),f=_.pH.getValueByKeys.apply(null,[q].concat(_.na(YS2))),t=!!J||!!f&&!!f.results&&f.results.length>0,e=0;L&&L.currentIndex&&L.localCurrentIndex&&(e=L.currentIndex-L.localCurrentIndex);L&&L.playlistId&&(v=L.playlistId);q={rawResponse:q,autoplayRenderer:Q,hasRelatedVideoData:t,playingVideo:y,playingVideoId:E,playlistPanelRenderer:L,playlistId:v,playlistIndex:L&&L.currentIndex,relatedVideoArgs:J,
endScreenRenderer:f,playlistIndexOffset:e};a:{Q=u.o0Y;L=u.bDy;Q.response=q;if(N4W(q))Q.downloadPlaylistProxy&&Q.downloadPlaylistProxy.getPlaylistId()===PCi(q)||(Q.downloadPlaylistProxy=new Ci2(PCi(q),Q.setPlaylistData.bind(Q),Q.isPlayingOfflineVideo.bind(Q))),Q.responsePlaylistData=Q.downloadPlaylistProxy.getPlaylistData(),Q.listId=PCi(q),Q.index=0;else if(q.playlistPanelRenderer&&q.playlistId&&q.autoplayRenderer)q.playlistId.startsWith("TLPQ")?Q.queueProxy?Q.listId===q.playlistId?(Q.index=q.playlistIndex,
Q.responsePlaylistData=q.playlistPanelRenderer,Q.queueProxy.JSC$13345_setCurrentIndex(Q.index)):q.playingVideoId&&Q.index!==void 0&&L.clientParams.autoSaveToQueue&&(Q.index+=1,Q.queueProxy.JSC$13345_setCurrentIndex(Q.index),Q.queueProxy.addVideos([q.playingVideoId],{},Q.index)):(Q.queueProxy=new _.$a(Q.JSC$13399_playlistNetworkManager,q.playlistId,Q.setPlaylistData.bind(Q),Q.clearQueue.bind(Q),_.Wwk(q.playlistPanelRenderer),Q.storage),Q.responsePlaylistData=q.playlistPanelRenderer,Q.listId=q.playlistId,
Q.index=q.playlistIndex):(Q.index=q.playlistIndex,Q.listId!==q.playlistId&&Q.clearQueue(),Q.responsePlaylistData=q.playlistPanelRenderer,Q.listId=q.playlistId,Q.playlistProxy=new XE2(Q.JSC$13399_playlistNetworkManager,q.playlistId,Q.setPlaylistData.bind(Q),_.Wwk(q.playlistPanelRenderer)));else if(!Q.queueProxy)Q.responsePlaylistData=void 0;else if(q.playingVideoId&&L.clientParams.autoSaveToQueue){if(Q.index===void 0){_.Zf(Error("Qf"));Q.clearQueue();break a}Q.queueProxy.videoIds.includes(q.playingVideoId)||
(Q.index+=1,Q.queueProxy.JSC$13345_setCurrentIndex(Q.index),Q.queueProxy.addVideos([q.playingVideoId],{},Q.index))}_.io(Q,_.CI(Q,Q.response.autoplayRenderer))}})};var c88=function(g,u){u=u===void 0?_.Ic():u;SW.call(this);this.wd.push(new m_(this.xV,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},u));this.wd.push(new FC(this.xV,g,!1,!1));_.w("web_response_commands_chunk_processor")&&this.wd.push(new on)};
_.A(c88,SW);c88.prototype.processChunk=function(g){g&&g.data.player===void 0&&this.xV.resolve();SW.prototype.processChunk.call(this,g)};var ac=function(g,u){g=g===void 0?{layer:0}:g;this.q6=!1;this.createScreenConfig=g;this.gm1=u;this.createScreenConfig.automatedLogEventSource=9};
_.A(ac,an);ac.prototype.validate=function(g){return!(this.q6||!g.endpoint)};
ac.prototype.handle=function(g){var u=_.gL(),q,Q,L=(Q=_.c((q=g.endpoint)==null?void 0:q.commandMetadata,_.S_))==null?void 0:Q.rootVe;this.gm1&&L?_.Kq(u,L,this.gm1,this.createScreenConfig):pVn(u,g.endpoint,this.createScreenConfig);this.q6=!0};var VN=function(g,u){this.q6=!1;this.uQx=g;this.previousVideoId=u};
_.A(VN,an);VN.prototype.validate=function(g){return _.w("kevlar_continue_playback_without_player_response")&&(g=_.c(g.endpoint,_.l1),(g==null?0:g.videoId)&&this.previousVideoId&&(g==null?void 0:g.videoId)===this.previousVideoId&&(g==null?0:g.continuePlayback))?!1:this.uQx.uYB===0};
VN.prototype.handle=function(g){_.VC.getInstance().triggerAction("yt-stop-old-player",g.data,!0)};var HXi=function(g){g=g===void 0?{layer:0}:g;SW.call(this);this.wd.push(new VN(this));this.wd.push(new ac(g));this.wd.push(new kl(g))};
_.A(HXi,SW);var XC=function(){an.apply(this,arguments)};
_.A(XC,an);XC.prototype.validate=function(g){return!!g.data.preconnect};
XC.prototype.handle=function(g){_.fW("bc");g=_.N(g.data.preconnect);for(var u=g.next();!u.done;u=g.next())u=u.value,(new Image).src=u};var A8X=function(g,u,q,Q,L,E,y){q=q===void 0?{layer:0}:q;E=E===void 0?_.Ic():E;SW.call(this);if(Q)if(L){L=E;this.wd.push(new m_(this.xV,u,L));this.wd.push(new XC);var v,J;this.wd.push(new FC(this.xV,g,!1,!((v=u.clientParams)==null||!v.fromHistory),(J=u.clientParams)==null?void 0:J.previousVideoId,L,u.tempData));var f;this.wd.push(new VN(this,(f=u.clientParams)==null?void 0:f.previousVideoId));var t;(t=u.clientParams)!=null&&t.fromHistory||(q.layer||(q=Object.assign({},q,{layer:0})),this.wd.push(new ac(q,
y)),this.wd.push(new kl(q)))}else this.wd.push(new m_(this.xV,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},E)),this.wd.push(new FC(this.xV,g,!1,!1));else this.wd.push(new VN(this)),this.wd.push(new ac(q)),this.wd.push(new kl(q));_.w("web_response_commands_chunk_processor")&&Q&&this.wd.push(new on)};
_.A(A8X,SW);A8X.prototype.processChunk=function(g){g&&g.data.player===void 0&&this.xV.resolve();SW.prototype.processChunk.call(this,g)};var ZXW=function(){this.q6=this.q6=!1};
_.A(ZXW,an);ZXW.prototype.validate=function(g){return!this.q6&&!(!g.data.csn||!g.data.rootVe)};
ZXW.prototype.handle=function(g){this.q6=!0;_.MK(g.data.csn,g.data.rootVe,3)};var ld2=function(g,u,q){q=q===void 0?{layer:0}:q;SW.call(this);this.wd.push(new FC(this.xV,g));this.wd.push(new ac(q));this.wd.push(new kl(q))};
_.A(ld2,SW);var Idi=function(g,u,q,Q,L){q=q===void 0?{layer:0}:q;Q=Q===void 0?_.Ic():Q;SW.call(this);var E=!!u&&!!u.clientParams&&!!u.clientParams.miniplayer;E&&this.wd.push(new ZXW);this.wd.push(new m_(this.xV,u,Q));this.wd.push(new XC);var y,v;this.wd.push(new FC(this.xV,g,E,!((y=u.clientParams)==null||!y.fromHistory),(v=u.clientParams)==null?void 0:v.previousVideoId,Q,u.tempData));var J;this.wd.push(new VN(this,(J=u.clientParams)==null?void 0:J.previousVideoId));var f;(f=u.clientParams)!=null&&f.fromHistory||
(q.layer||(q=Object.assign({},q,{layer:E?3:0})),this.wd.push(new ac(q,L)),this.wd.push(new kl(q)));_.w("web_response_commands_chunk_processor")&&this.wd.push(new on)};
_.A(Idi,SW);var rE,bXo;rE={};
_.iX8=(rE["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rE["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rE["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rE["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rE["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rE["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rE["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rE);_.Wd=new _.CB("yt-edu");_.CCn=function(){this.JSC$13497_eduDisplayedThisLoad_={}};
bXo=function(g){var u=_.CCn.getInstance();var q=_.S8("kevlar_tooltip_impression_cap");u=q&&parseInt(_.Wd.get(g+"-impression")||0,10)>=q||_.Wd.get(g+"-dismissed")?!1:(q=_.iX8[g])&&!u.JSC$13497_eduDisplayedThisLoad_[q.setKey||g]&&(q.titleText&&_.Ug(q.titleText)||q.bodyText&&_.Ug(q.bodyText))?!0:!1;if(!u)return null;u=_.iX8[g];if(!u)return null;q=u.bodyText?_.Ug(u.bodyText):void 0;var Q=u.titleText?_.Ug(u.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:u.position,popup:{bubbleHintRenderer:{text:Q?
_.I7(Q):void 0,detailsText:q?_.I7(q):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I7(_.Ug("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:g}}]}}}}}}}},{eduImpressionAction:{key:g}}]};
_.rT(_.CCn);var TRZ=!1;for(var dNW="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),F0n=[],TL=6;TL>=1;TL--)F0n.push({columnCount:TL,query:TL==1?0:TL*2*107-4+32,className:"grid-"+TL+"-columns",width:TL*2*107+"px"});_.h4=function(g){this.actionRouter_=g=g===void 0?_.VC.getInstance():g;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.mNa(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.mNa=function(g){var u=g.documentWidth_-(g.miniGuideVisible_?72:0)-(g.guidePersistentAndVisible_?240:0)-(g.persistentPanelVisible_?400:0);return F0n.find(function(q){return u>q.query})};
_.rT(_.h4);var adH=function(){var g=this;this.JSC$13509_keyboardInUse=!1;document.addEventListener("keydown",function(){g.onKeydown()});
document.addEventListener("mousedown",function(){g.JSC$13509_keyboardInUse=!1})},Vu2;
adH.prototype.isKeyBoardInUse=function(){return this.JSC$13509_keyboardInUse};
adH.prototype.onKeydown=function(){this.JSC$13509_keyboardInUse=!0};var XQZ,KI;_.Ya=new _.CB("yt-mentions");_.O1=function(){};
XQZ=function(g,u){return KI(u,"drag-to-reorder-edu-displayed")};
KI=function(g,u,q,Q,L,E){q=q===void 0?"OPEN_POPUP_POSITION_TOP":q;if(u){if(_.Ya.get(u))return;_.Ya.set(u,!0,Q)}if(L&&E!==void 0){u=Number(_.Ya.get(L)||0);if(u>=E)return;_.Ya.set(L,u+1)}return[{openPopupAction:{popupType:"HINT",position:q,popup:{bubbleHintRenderer:{detailsText:g,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.rT(_.O1);var r8o,W0H,T4i;r8o=function(g,u,q,Q){this.JSC$13519_taskManager_=g;this.onFulfilled_=typeof u==="function"?u:null;this.onRejected_=typeof q==="function"?q:null;this.JSC$13519_context_=Q};
W0H=function(g,u){g.onFulfilled_&&_.Ln(g.JSC$13519_taskManager_,function(){g.onFulfilled_.call(g.JSC$13519_context_,u)})};
T4i=function(g,u){g.onRejected_&&_.Ln(g.JSC$13519_taskManager_,function(){g.onRejected_.call(g.JSC$13519_context_,u)})};
_.xa=function(g){this.JSC$13522_taskManager_=g;this.callbacks_=[]};
_.xa.prototype.then=function(g,u,q){this.callbacks_.push(new r8o(this.JSC$13522_taskManager_,g,u,q));return this};
_.xa.prototype.onSuccess=function(g){this.callbacks_.forEach(function(u){W0H(u,g)})};
_.xa.prototype.onFailure=function(g){this.callbacks_.forEach(function(u){T4i(u,g)})};
_.xa.prototype.cancel=function(){this.callbacks_.length=0};
JMi(_.xa);_.BR3=null;_.UE=new _.Fv("ACTIVITY_TOKEN");var hia;_.vK=new _.Fv("PAGE_REQUEST_TOKEN");hia=new _.Fv("FETCH_PBJ_TOKEN");_.YWR=function(g){if(g.validatedFragments_.length==0)return null;if(!g.mergedPrefetchedData_){for(var u=[],q=_.N(g.validatedFragments_),Q=q.next();!Q.done;Q=q.next()){Q=_.N(g.fragmentConfiguration_[Q.value].graftedKeys);for(var L=Q.next();!L.done;L=Q.next())(L=g.prefetchedData_[L.value].trackingParams)&&u.push(L)}g.mergedPrefetchedData_={};Object.assign(g.mergedPrefetchedData_,g.prefetchedData_,{clientSideGrafts:u})}return g.mergedPrefetchedData_};var OXi;_.Bd=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
OXi=function(g,u,q){if(_.zDS(u))return g.prefetchCache_.get(_.nrm(u,q))};_.zL=new _.Fv("NAVIGATION_TOKEN");var K0a=function(g){var u=this;var q=q===void 0?orq():q;var Q=Q===void 0?_.Bk().resolve(_.zL):Q;this.onePickCommand=g;this.JSC$13594_playlistNetworkManager=q;this.navigationManager=Q;this.videoPickerBuilder=_.kVf("yt-addtoplaylist");_.IF0(DK$(pXa(vJR(this.videoPickerBuilder.setTitle(g.modalTitle).setSize(1E3).addView(HfZ()).addView(cjZ())).addView("youtube"),g.selectButtonLabel)),function(L){u.handleAction(L)})};
K0a.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
K0a.prototype.handleAction=function(g){var u=this;if(g&&this.onePickCommand.listId&&g.action==="picked"&&g.docs){var q=[];g.docs.forEach(function(Q){q.push({addedVideoId:Q.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13594_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,q).then(function(){_.w("playlist_add_video_hard_reload_killswitch")?u.navigationManager.reload():xNo(u.navigationManager)})}};var B4X=function(){if(this.constructor===B4X)throw new TypeError("Wf");};
_.P=B4X.prototype;_.P.dispose=function(){};
_.P.disconnect=function(){};
_.P.reconnect=function(){};
_.P.observe=function(g,u,q){return{element:g,option:q}};
_.P.unobserveByKey=function(){};var U23=function(g,u){u=u===void 0?0:u;B4X.call(this);this.viewroot=g;this.defaultPrescanHeight=u;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),g?{root:g,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.A(U23,B4X);_.P=U23.prototype;_.P.dispose=function(){this.disconnect();this.handlers.clear()};
_.P.disconnect=function(g){this.isConnected=!1;this.pauseObservingUntilReconnect=g===void 0?!1:g;this.observer.disconnect();g=_.N(this.prescanObservers.values());for(var u=g.next();!u.done;u=g.next())u.value.disconnect()};
_.P.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var g=_.N(this.handlers),u=g.next();!u.done;u=g.next()){var q=_.N(u.value);u=q.next().value;var Q=q.next().value;q=!1;Q=_.N(Q.keys());for(var L=Q.next();!L.done;L=Q.next())if((L=L.value)&&L.state==="prescan"){q=!0;break}q&&ziR(this,u).observe(u);this.observer.observe(u)}}};
_.P.handleObserveEvent=function(g){g=_.N(g);for(var u=g.next();!u.done;u=g.next()){u=u.value;var q=this.handlers.get(u.target);if(q){var Q=u.isIntersecting;q=_.N(q);for(var L=q.next();!L.done;L=q.next()){var E=_.N(L.value);L=E.next().value;E=E.next().value;L&&(L.state==="visible"&&Q||L.state==="hidden"&&!Q)&&(E(u.target,L.state),L.calledOnce&&this.unobserveByKey({element:u.target,option:L}))}}}};
_.P.handlePrescanEvent=function(g){g=_.N(g);for(var u=g.next();!u.done;u=g.next()){u=u.value;var q=this.handlers.get(u.target);if(q&&u.isIntersecting){q=_.N(q);for(var Q=q.next();!Q.done;Q=q.next()){var L=_.N(Q.value);Q=L.next().value;L=L.next().value;Q&&Q.state==="prescan"&&(L(u.target,Q.state),Q.calledOnce&&this.unobserveByKey({element:u.target,option:Q}))}}}};
_.P.observe=function(g,u,q){var Q=(Q=this.handlers.get(g))&&Q.has(q)?{element:g,option:q}:void 0;if(Q)return Q;Q={element:g,option:q};this.handlers.has(g)||this.handlers.set(g,new Map);var L=this.handlers.get(g);L&&!L.has(q)&&L.set(q,u);this.pauseObservingUntilReconnect||(q.state==="prescan"&&ziR(this,g).observe(g),this.observer.observe(g));return Q};
_.P.unobserveByKey=function(g){var u=this.handlers.get(g.element);if(u&&u.has(g.option)){u.delete(g.option);if(g&&g.option.state==="prescan")for(var q=_.N(this.prescanObservers.values()),Q=q.next();!Q.done;Q=q.next())Q.value.unobserve(g.element);u.size===0&&(this.handlers.delete(g.element),this.observer.unobserve(g.element))}};
var ziR=function(g,u){var q=g.defaultPrescanHeight;u.hasAttribute("prescan-height")&&(u=Number(u.getAttribute("prescan-height")),isNaN(u)||(q=u));if(g.prescanObservers.has(q))return g.prescanObservers.get(q);u="-0.1px -0.1px "+q+"px -0.1px";u=new IntersectionObserver(g.handlePrescanEvent.bind(g),g.viewroot?{root:g.viewroot,rootMargin:u}:{rootMargin:u});g.prescanObservers.set(q,u);return u};var nE0=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],kIo=function(){var g,u=this;this.JSC$13611_actionRouter=g=g===void 0?_.VC.getInstance():g;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return u.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return u.visibilityObservedElementHandlerKeys}}},SWW,nI,g7Z;
kIo.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.w("kevlar_use_vimio_behavior")&&_.FR("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=gDh())};
kIo.prototype.dispose=function(){this.visibilityMonitor&&_.DB(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
kIo.prototype.handleVisibilityRefreshed=function(){for(var g=_.N(this.targetMap.entries()),u=g.next();!u.done;u=g.next()){var q=_.N(u.value);u=q.next().value;q=q.next().value;_.oEb(this,u,q)}};
_.ka=function(g,u,q){nI(g,q);var Q=_.UNW(g,u);Q.element=q;g.targetedElements.set(q,u);_.oEb(g,u,Q)};
nI=function(g,u){var q=g.targetedElements.get(u);if(q){var Q=g.targetMap.get(q);Q&&(delete Q.element,g.targetMap.set(q,Q));g.targetedElements.delete(u);g.visibilityObserver&&g.visibilityObservedElementHandlerKeys&&(q=g.visibilityObservedElementHandlerKeys.get(u))&&(g.visibilityObserver.unobserveByKey(q),g.visibilityObservedElementHandlerKeys.delete(u))}};
_.oEb=function(g,u,q){var Q=q.action,L=q.element;L&&Q&&(nE0.includes(u)||_.FR("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||g.visibilityMonitor&&g.visibilityMonitor.isNodeVisible(L)?g7Z(g,u,q):g.visibilityObserver&&(g.visibilityObservedElementHandlerKeys||(g.visibilityObservedElementHandlerKeys=new WeakMap),Q=g.visibilityObserver.observe(L,function(){g7Z(g,u,q);g.visibilityObservedElementHandlerKeys.delete(L)},{calledOnce:!0,
state:"visible"}),g.visibilityObservedElementHandlerKeys.set(L,Q)))};
g7Z=function(g,u,q){var Q=q.action;(q=q.element)&&Q&&(_.j2(g.JSC$13611_actionRouter,[Q],q),g.targetMap.delete(u),g.targetedElements.delete(q),g.triggeredTargets.add(u))};
_.UNW=function(g,u){var q=g.targetMap.get(u);q||(q={},g.targetMap.set(u,q));return q};
_.S9=function(){SWW||(SWW=new kIo);return SWW};var uHn=document.createElement("div");uHn.style.touchAction="pan-down";var u8M=uHn.style.touchAction==="pan-down";var qnb,QNR;qnb=function(){this.hammerFn=obZ();this.JSC$13619_screenManager=_.gL();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Yq(83615);_.BF(this.JSC$13619_screenManager,this.ve);q$u()};
_.oc=function(){QNR||(QNR=new qnb);return QNR};
qnb.prototype.registerTouchEvents=function(g,u,q){var Q=_.UT.apply(3,arguments),L=this.hammerFn(g,{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}]]});q&&L.set({touchAction:q});this.nodeManagerMapping.set(g,L);var E=
QC3(u);Q=_.N(Q);for(var y=Q.next();!y.done;y=Q.next()){y=y.value;if(y.includes("swipe")||y.includes("pinch")||y.includes("pan"))y.includes("swipe")?L.get("swipe").set({enable:!0,direction:E,velocity:.2}):y.includes("pinch")?L.get("pinch").set({enable:!0}):y.includes("pan")&&(L.get("pan").set({enable:!0,direction:E}),L.get("swipe").set({enable:!0,direction:E,velocity:.2}),L.get("swipe").recognizeWith("pan"));LKX(this,g,L,y)}};
var LKX=function(g,u,q,Q){q.on(Q,function(L){if(Q.includes("pinch"))g.lastPinchTime=Date.now();else if(Q.includes("swipe")&&Date.now()-g.lastPinchTime<400)return;L.pointerType!=="mouse"&&(L=Q==="doubletap"?{coordinates:L.center}:Q.includes("pan")?L:Q.includes("swipe")?{target:L.target}:{},u.dispatchEvent(new CustomEvent(Q,{bubbles:!0,composed:!0,detail:L})))})};
qnb.prototype.unregisterTouchEvents=function(g){var u=_.UT.apply(1,arguments),q=this.nodeManagerMapping.get(g);if(q){u=_.N(u);for(var Q=u.next();!Q.done;Q=u.next())q.off(Q.value);this.nodeManagerMapping.delete(g);g.style.touchAction="unset"}};var E7R=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.L6={getLocalStorage:_.DX(function(){try{var g=new JDK;var u=g.isAvailable()?g:null}catch(q){return null}return u?new _.DM(u):null}),
getSessionStorage:_.DX(function(){var g=new j7q;return g.isAvailable()?new _.DM(g):null})};var Pl2=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},G7K=function(){Pl2.instance||(Pl2.instance=new Pl2);
return Pl2.instance},$73=function(g){var u=g.networkEvents;
g.networkEvents=[];return u};var Nnb;Nnb={};_.sN5=z8("yt-serviceworker-metadata",{objectStores:(Nnb.auth={addedAtVersion:1},Nnb["resource-manifest-assets"]={addedAtVersion:2},Nnb),shared:!0,upgrade:function(g,u){u(1)&&dN(g,"resource-manifest-assets");u(2)&&dN(g,"auth")},
version:2});var NfT=self.location.origin+"/";sCf([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);sCf([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);sCf([/\.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\//]);sCf([/purge_shell=1/]);var yQH=void 0;yQH=yQH===void 0?[]:yQH;
for(var v7X=[],DFZ=_.N(nJb),pRo=DFZ.next();!pRo.done;pRo=DFZ.next())v7X.push({key:pRo.value});for(var JQH=_.N(yQH),jN$=JQH.next();!jN$.done;jN$=JQH.next())v7X.push(jN$.value);var fw$,v9=_.Qq==null?void 0:(fw$=_.Qq.performance)==null?void 0:fw$.memory,D73=!1,R_F={},jCf={},Dq={},p6=navigator;var U1=function(g){this.JSC$13664_expiringStorage=new Mu(g)};
U1.prototype.set=function(g,u,q){q=q!==void 0?Date.now()+q:void 0;this.JSC$13664_expiringStorage.set(g,u,q)};
U1.prototype.get=function(g){return this.JSC$13664_expiringStorage.get(g)};
U1.prototype.remove=function(g){this.JSC$13664_expiringStorage.remove(g)};var Iyb=_.CT(["https://www.youtube.com/",""]),iy3=_.CT(["https://studio.youtube.com/",""]),m7m="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",byS=null,WSm;var Mzb=_.CT(["https://www.youtube.com/iframe_api"]),gg=function(){this.playerResolver_=_.A9();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.vH;this.playbackDurationSeconds_=0},tzo=function(g){var u=function(){return window.YT&&typeof window.YT.ready==="function"};
if(u())return _.BX(window.YT);var q=_.A9(),Q=_.oG("SCRIPT");Q.onload=Q.onreadystatechange=function(){Q.readyState&&Q.readyState!="loaded"&&Q.readyState!="complete"||(Q.onload=_.vH,Q.onreadystatechange=_.vH,Q.onerror=_.vH,u()?q.resolve(window.YT):q.reject(new _.Ji("Failed to load the iframe player library","script.onload",Q.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
Q.onerror=function(L){Q.onload=_.vH;Q.onreadystatechange=_.vH;Q.onerror=_.vH;q.reject(new _.Ji("Failed to load the iframe player library","script.onerror",L&&L.target&&L.target.src))};
_.jx(Q,_.A1(Mzb));g.insertBefore(Q,g.firstChild);return q.promise},eTW=function(g,u,q){var Q,L;
_.D(function(E){switch(E.nextAddress){case 1:return g.playbackEndedCallback_=q,_.b8(E,2),E.yield(tzo(u.parentElement||null),4);case 4:Q=E.yieldResult;_.Xx(E,3);break;case 2:return L=_.rt(E),L instanceof _.Ji&&L.args&&L.args[0]=="script.onerror"?_.Io(L):_.Zf(L),E.return();case 3:Q.ready(function(){return new Q.Player(u,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:g.onPlayerReady_.bind(g),onStateChange:g.onPlayerStateChange_.bind(g),
onCueRangeExit:g.onCueRangeExit_.bind(g)}})}),_.Wx(E)}})};
_.P=gg.prototype;_.P.getPlayerPromise=function(){return this.playerPromise_};
_.P.onPlayerReady_=function(g){this.playerResolver_.resolve(g.target)};
_.P.onPlayerStateChange_=function(g){if(g.data==YT.PlayerState.PLAYING){g=g.target;var u=g.getCurrentTime();g.addCueRange("playback",u,u+this.playbackDurationSeconds_)}};
_.P.onCueRangeExit_=function(g){g.data=="playback"&&(g.target.stopVideo(),this.playbackEndedCallback_())};
_.P.stopVideo=function(){this.playerPromise_.then(function(g){g.stopVideo()})};
var GHo=function(g){g.playerVars_&&g.playerPromise_.then(function(u){typeof u.cueVideoByPlayerVars!="function"?_.Io(new _.Ji("vmh: player API not ready","cueVideoByPlayerVars",typeof u.cueVideoByPlayerVars)):u.cueVideoByPlayerVars(g.playerVars_)})};
gg.prototype.playVideo=function(){var g=this;this.playerVars_&&this.playerPromise_.then(function(u){typeof u.loadVideoByPlayerVars!="function"?(u=new _.Ji("vmh: player API not ready","loadVideoByPlayerVars",typeof u.loadVideoByPlayerVars),_.Zf(u)):u.loadVideoByPlayerVars(g.playerVars_)})};
var $Fi=function(g,u,q,Q,L){u&&(q===void 0&&(q=0),Q===void 0&&(Q=0),g.playbackDurationSeconds_=Q/1E3,g.playerVars_={adformat:"17_8",videoId:u,suggestedQuality:"hd720",startSeconds:q/1E3,player_params:L})};
gg.prototype.mute=function(){this.playerPromise_.then(function(g){g.mute()})};
gg.prototype.unMute=function(){this.playerPromise_.then(function(g){g.unMute()})};var Bfu=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var uw;uw=function(){this.tokenJars={};if(this.cookiesEnabled=_.vW()){var g=_.sk.get("CONSISTENCY",void 0);g&&RTW(this,{encryptedTokenJarContents:g})}};
_.nDq=function(){uw.instance||(uw.instance=new uw);return uw.instance};
uw.prototype.handleResponse=function(g,u){if(!u)throw Error("ag");var q,Q;u=((q=u.innerTubeRequest.context)==null?void 0:(Q=q.request)==null?void 0:Q.consistencyTokenJars)||[];var L;(g=(L=g.responseContext)==null?void 0:L.consistencyTokenJar)&&this.replace(u,g)};
uw.prototype.replace=function(g,u){g=_.N(g);for(var q=g.next();!q.done;q=g.next())delete this.tokenJars[q.value.encryptedTokenJarContents];RTW(this,u)};
var RTW=function(g,u){if(u.encryptedTokenJarContents&&(g.tokenJars[u.encryptedTokenJarContents]=u,typeof u.expirationSeconds==="string")){var q=Number(u.expirationSeconds);setTimeout(function(){delete g.tokenJars[u.encryptedTokenJarContents]},q*1E3);
g.cookiesEnabled&&_.yW("CONSISTENCY",u.encryptedTokenJarContents,q,void 0,!0)}};var wRn,q8;wRn=window.location.hostname.split(".").slice(-2).join(".");_.H9=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var g=_.FR("LOCATION_PLAYABILITY_TOKEN");_.FR("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=cQW(this))&&(g=this.localStorage.get("yt-location-playability-token"));g&&(this.locationPlayabilityToken=g,this.mostRecentPosition=void 0)};
_.H9.getInstance=function(){q8=_.ri("yt.clientLocationService.instance");q8||(q8=new _.H9,_.xQ("yt.clientLocationService.instance",q8));return q8};
_.H9.prototype.setLocationOnInnerTubeContext=function(g){g.client||(g.client={});if(this.mostRecentPosition)g.client.locationInfo||(g.client.locationInfo={}),g.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),g.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),g.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),g.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)g.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.H9.prototype.handleResponse=function(g){var u;g=(u=g.responseContext)==null?void 0:u.locationPlayabilityToken;g!==void 0&&(this.locationPlayabilityToken=g,this.mostRecentPosition=void 0,_.FR("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=cQW(this))&&this.localStorage.set("yt-location-playability-token",g,15552E3):_.yW("YT_CL",JSON.stringify({loctok:g}),15552E3,wRn,!0))};
var cQW=function(g){return g.localStorage===void 0?new _.CB("yt-client-location"):g.localStorage};
_.H9.prototype.clearLocationPlayabilityToken=function(g){g==="TVHTML5"?(this.localStorage=cQW(this))&&this.localStorage.remove("yt-location-playability-token"):_.PRM("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.H9.prototype.getCurrentPositionFromGeolocation=function(){var g=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("bg"));var u=!1,q=1E4;_.FR("INNERTUBE_CLIENT_NAME")==="MWEB"&&(u=!0,q=15E3);return new Promise(function(Q,L){navigator.geolocation.getCurrentPosition(function(E){g.mostRecentPosition=E;Q(E)},function(E){L(E)},{enableHighAccuracy:u,
maximumAge:0,timeout:q})})};
_.H9.prototype.createUnpluggedLocationInfo=function(g){var u={};g=g.coords;if(g==null?0:g.latitude)u.latitudeE7=Math.floor(g.latitude*1E7);if(g==null?0:g.longitude)u.longitudeE7=Math.floor(g.longitude*1E7);if(g==null?0:g.accuracy)u.locationRadiusMeters=Math.round(g.accuracy);return u};
_.H9.prototype.createLocationInfo=function(g){var u={};g=g.coords;if(g==null?0:g.latitude)u.latitudeE7=Math.floor(g.latitude*1E7);if(g==null?0:g.longitude)u.longitudeE7=Math.floor(g.longitude*1E7);return u};var Hi0=function(g,u){var q=$J();g||(g="unknown");u||(u="unknown");g="MAIN_APP_WEB_PAGE_TYPE_"+g.toUpperCase();g in z9W||(g="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");u="MAIN_APP_WEB_REQUEST_TYPE_"+u.toUpperCase();u in nlH||(u="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.SV(q,{mainAppWeb:{pageType:g,requestType:u,isShellLoad:_.mW("IS_SHELL_LOAD",!1)}})},AQb={start:function(){_.SV(tWb(),{mainAppWeb:_.Zq()})},
success:function(){_.o1(tWb(),"SUCCESS")},
failure:function(){_.o1(tWb(),"FAILURE")},
cancelled:function(){_.o1(tWb(),"CANCELLED")}};var ZiZ,lw5,U7J;ZiZ=_.CT(["/sw.js"]);lw5=_.CT(["/sw.js?0"]);_.IwZ=_.A1(ZiZ);U7J=_.A1(lw5);var iiZ=function(){var g=Error.apply(this,arguments);this.message=g.message;"stack"in g&&(this.stack=g.stack)};
_.A(iiZ,Error);_.id.prototype.load=function(g){this.megabloxUrl_=_.FR("YPC_MB_URL");_.Rr(this.megabloxUrl_,(0,_.EH)(function(){g&&g()},this))};
_.qou=function(g,u,q,Q,L,E,y,v,J,f,t){_.udS(J);g.load((0,_.EH)(function(){try{var e=E?E:_.FR("HL"),G=_.FR("SESSION_INDEX");_.EaZ("client",function(){GXX("59",{helpCenterPath:"/youtube",locale:e,window:window}).JSC$10282_loadChatSupport({authuser:String(G)})})}catch(R){throw ld(10,t,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),L&&L(R),_.Zf(R),R;
}ClH(this,u,q,Q,L,E,y,v,J,f,t)},g))};
_.id.prototype.openFixFlowDialog=function(g,u,q,Q){this.load((0,_.EH)(function(){try{biX(this,_.ri("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(g).withIntegratorCallback(u).load(q,Q)}catch(L){throw _.Zf(L),L;}},this))};
var biX=function(g,u,q,Q){var L=u.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.w("enable_window_constrained_buy_flow_dialog")&&(L=L.usingPopupStyle(_.ri("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));Q&&(L=L.usingCloseCallback(Q));u.bootstrap.fromPaymentsUrl(g.megabloxUrl_);g=u.bootstrap.asMashupMode(L);q=q?q:_.FR("HL");g.usingGaiaIndex(_.FR("SESSION_INDEX")).usingLocale(q).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.w("enable_google_payments_buyflow_material2_style_web")?
g.usingStyle(":m2;pc=#444;ac=#065fd4"):g.usingStyle(":md;pc=#444;ac=#065fd4");return g},ClH=function(g,u,q,Q,L,E,y,v,J,f,t){try{var e=_.ri("payments.business.integration");
if(!e)throw new iiZ("payments.business.integration is undefined");var G=e.standaloneContextAuthId.forUserId(),R=biX(g,e,E,function(){QkM(!1);v&&v()});
y&&R.usingServerAnalyticsEventHandler(y);var H=R.inStandaloneContext(G).buyFlow(function(l){if(l&&(!l.integratorData||l.integratorData===""||l.error))if(l.error!=null)if(String(l.error)==="-1")_.qJu(J);else{var d=String(l.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";ld(10,t,d,l.debugCode);_.IE(d,J,l.debugCode);d=new _.Ji("PAYMENT_ERROR_MESSAGE::"+l.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+l.internalErrorDetails);
_.Zf(d)}else ld(10,t,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.IE("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",J,"EMPTY_INTEGRATOR_DATA"),_.Zf(Error("dg"));q&&(QkM(!1),q(l))}).withEncryptedParameters(u);
f&&H.withClientParameters(JTh(_.OZq(f)));H.load(function(){ld(24,t);_.tt("ttc",void 0,"commerce_transaction");Jt("commerce_transaction");Q&&(Q(),QkM(!0))},function(l){if(l==null?0:l.debugCode)var d=l==null?void 0:l.debugCode;
else if(!l||(l==null?0:l.debugCode))d="EMPTY_LOAD_FAILURE_ERROR",_.Zf(Error(d));else{d="EMPTY_LOAD_FAILURE_DEBUG_CODE";var F=new _.Ji("LOAD_FAILURE:"+l.message," DEBUG_CODE:"+d);_.Zf(F)}ld(10,t,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",d);_.IE("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",J,d);_.Zf(l);L&&L(l)})}catch(l){throw l instanceof iiZ&&(ld(10,t,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),L&&L(l)),_.Zf(l),l;
}};var dF$;dF$=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.ULu=function(g,u){u=u===void 0?!1:u;g=dF$.test(g)?_.r0(g):null;!u&&window.payments||!g?(g=_.A9(),u=g.promise,g.resolve()):u=_.Uw2(g,{attributes:{"data-payments-main":"",id:"payment-lib"}});return u};var FKR;FKR=_.CT(["//www.googletagmanager.com/gtm.js?id=",""]);_.QU=function(g,u){_.a9(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:u}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.FR("GL")}),u=_.oG("SCRIPT"),u.async=!0,_.jx(u,_.A1(FKR,g)),u.id="gtm",g=document.getElementsByTagName("script"),g.length==0?document.head.appendChild(u):(g=g[0],g.parentNode.insertBefore(u,g)))};
_.LK=function(g){if(g=JSON.parse(g))window.dataLayer=window.dataLayer||[],window.dataLayer.push(g)};var mFa,aw8;mFa=_.CT(["https://clients2.google.com/gr/gr_sync.js"]);_.SjK=function(){};
_.SjK.prototype.init=function(){if(aw8()){var g=_.A9();g.resolve();return g.promise}return _.Uw2(_.A1(mFa)).then(function(){if(!aw8())throw Error("eg");},function(){throw Error("fg");
})};
_.oPq=function(){if(!aw8())return"";var g=window.google.gr;g.init({async:{schedule:"sync"},merchantId:"youtube"});g.start();g=g.finish();return g==null?"":g};
aw8=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.X=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.A(_.X,PolymerFakeBaseClassWithoutHtml);_.gO=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.A(_.gO,PolymerFakeBaseClassWithoutHtml);var LMb=window.ShadyDOM;var h4q,WMS,Obk,KMb,Bbf,z4b,Ev,W9;h4q=_.w("enable_shadydom_free_scoped_query_methods");WMS=_.w("enable_shadydom_free_scoped_node_methods");Obk=_.w("enable_shadydom_free_scoped_readonly_properties_batch_one");KMb=_.w("enable_shadydom_free_parent_node");Bbf=_.w("enable_shadydom_free_children");z4b=_.w("enable_shadydom_free_last_child");Ev=window.ShadyDOM;_.K6=Ev&&Ev.noPatch&&Ev.wrap?Ev.wrap:Ev?function(g){return Ev.patch(g)}:function(g){return g};
W9=function(g){if(g instanceof ShadowRoot)this.host=(0,_.K6)(g.host),this.root=g;else if(g.$$){this.host=(0,_.K6)(g);var u;this.root=(u=g.root)!=null?u:this.host}else if(g.polymerController){this.host=(0,_.K6)(g);var q;this.root=(q=this.host.shadowRoot)!=null?q:this.host}else this.root=this.host=(0,_.K6)(g)};
Tb3();YJM();nzM();kJ3();xbq();var Vz8={querySelector:function(g,u){u=tGZ(u,mC(g));return _.w("sunnydom_native_scoped_query_selectors")?P3k(g,u):P3k(_.aE(g),u)},
querySelectorAll:function(g,u){u=tGZ(u,mC(g));return _.w("sunnydom_native_scoped_query_selectors")?Array.from(NbM(g,u)):NbM(_.aE(g),u)}},XR8={appendChild:function(g,u){var q=mC(g),Q=_.FT(u);
return _.XVk(_.aE(g),q?_.XT(u,q,Q):u)},
cloneNode:function(g,u){var q=_.FT(g);g=_.aE(g);u=d$(g).prototype.cloneNode.call(g,u);return q?r$(u,q):u},
contains:function(g,u){var q=mC(g),Q=_.FT(u);return q!==Q?!1:rwm(g,u)},
insertBefore:function(g,u,q){var Q=mC(g),L=_.FT(u);g=_.aE(g);u=Q?_.XT(u,Q,L):u;return d$(g).prototype.insertBefore.call(g,u,q)},
removeChild:function(g,u){var q=mC(g);g=_.aE(g);u=q?r$(u,q):u;return d$(g).prototype.removeChild.call(g,u)},
replaceChild:function(g,u,q){var Q=mC(g),L=_.FT(u);u=Q?_.XT(u,Q,L):L?r$(u,L):u;q=Q?r$(q,Q):q;g=_.aE(g);return d$(g).prototype.replaceChild.call(g,u,q)},
getRootNode:function(g,u){u=u===void 0?{composed:!0}:u;var q;if(((q=u)!=null?q:{}).composed)g=VGf(g);else{u=g;for(g=ywJ(g);g;)u=g,g=GJ3(g);g=u}return g}},ozF=Obk?{firstChild:C3q,
nextSibling:lIM,previousSibling:ibK,firstElementChild:bbS,lastElementChild:FMb,nextElementSibling:Zbf,previousElementSibling:IIM,childNodes:mbF}:{};KMb&&(ozF.parentNode=AwK);Bbf&&(ozF.children=aIS);z4b&&(ozF.lastChild=dbJ);h4q&&SJS(Vz8);WMS&&SJS(XR8);UbJ();var gdZ=function(g){this.node=g instanceof ShadowRoot?g.host:g};
u2S();qSb();var EdT=new WeakMap;var NWf=Symbol("Dd");var pEm=new Set(["tap","track","down","up"]),JKq=_.w("pbcm_fi_query_decorators");var N8=function(){return _.gO.apply(this,arguments)||this};
_.A(N8,_.gO);_.P=N8.prototype;_.P.getState=function(){return this.store.getState()};
_.P.dispatch=function(g){this.store.dispatch(g)};
_.P.beforeRegister=function(){if(this&&typeof this==="object"){var g;var u=!!this.useSignals||!((g=this.polymerController)==null||!g.useSignals)}else u=!1;if(!u&&this.properties)for(u=_.N(Object.keys(this.properties)),g=u.next();!g.done;g=u.next()){var q=g.value;g=this.properties[q];if(g.selector){if(g.computed)throw Error("mg");q=["reduxPropertiesRecomputeTrigger",'"'+q+'"'].concat(_.na(g.selectorArgs||[])).join(",");g.computed="recomputeReduxSelector("+q+")"}}};
_.P.attached=function(){var g=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){g.reduxPropertiesRecomputeTrigger++}));
_.w("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.P.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.P.recomputeReduxSelector=function(g,u){var q=_.UT.apply(2,arguments),Q=this.properties[u].selector;if(!Q)throw Error("kg`"+u);return Q.apply(null,[this.store.getState()].concat(_.na(q)))};
_.P.select=function(g){var u=_.UT.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return g.apply(null,[this.store.getState()].concat(_.na(u)))};
_.z3.Object.defineProperties(N8.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("lg");}}});
N8.prototype.recomputeReduxSelector=N8.prototype.recomputeReduxSelector;_.Y([_.a(),_.K("design:type",Number)],N8.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.Y([_.uU()],N8);var sv=[],tcT={},Jr=function(){return kt.apply(this,arguments)||this};
_.A(Jr,kt);Jr.prototype._addPropertyEffect=function(g,u,q){if(u==="__observeEffects"&&q){var Q,L=(Q=q.info.method)!=null?Q:q.info.methodName;if(L){var E=this[L];this[L]=function(){sv.push(L);try{E==null||E.apply(this,arguments)}finally{sv.pop()}}}}_.qI._addPropertyEffect.apply(this,[g,
u,q])};
Jr.prototype._setPendingProperty=function(g,u,q){if(sv.length){var Q=sv[sv.length-1],L;(L=tcT[this.is])!=null&&L.has(Q)||(ewZ(this.is,Q),_.H6("polymerPropertyChangedInObserver",{componentName:this.is,observerName:Q}))}return _.qI._setPendingProperty.apply(this,[g,u,q])};
_.Y([HNS()],Jr);var G_q=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Rw3,LE={};_.w("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=LE);var Nm=function(){return _.gO.apply(this,arguments)||this};
_.A(Nm,_.gO);Nm.prototype._setUnmanagedPropertyToNode=function(g,u,q){g.loggingStatus&&(g.loggingStatus.isDeclarativeExternal=!0);if(q!==g[u]||typeof q==="object")g[u]=q;g.is&&g.polymerController&&g.polymerController!==g&&Ei(g.is,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");g.loggingStatus&&(g.loggingStatus.isDeclarativeExternal=!1)};
_.Y([_.uU()],Nm);$oZ()&&(aK.prototype._setUnmanagedPropertyToNode=(new Nm)._setUnmanagedPropertyToNode);_.atZ={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(g){},set polymerController(g){}}]};var pE=function(){var g=kt.apply(this,arguments)||this;g.json=function(){};
return g};
_.A(pE,kt);pE.prototype.equals=function(g,u){return g===u};
pE.prototype.isEmpty=function(g){var u;(u=!g)||(u=_.xu(g)&&g.length===0);return u};
_.Y([HNS()],pE);var rQX=function(g){g=nIK(g);jn.call(this,g)};
_.A(rQX,jn);rQX.prototype.addProvider=function(g){g=g.key?g:nIK([g])[0];var u=this.keyIdToIndex.get(g.key.id);if(u){if(ZPq(g,this.providers[u]))throw Error("ng`"+g.key.displayName);}else jn.prototype.addProvider.call(this,g)};
var WK0=new rQX([]);var Tnx=!1;var doM={};Tnx||(bPJ(),Tnx=!0);
doM.InjectBehavior={initializeInjection:function(){var g=this.provide;try{if((g=g!=null?g:[])&&g.length>0)for(var u=nIK(g),q=_.N(u),Q=q.next();!Q.done;Q=q.next())WK0.addProvider(Q.value);var L=new Set;ltM(this.behaviors||[],L);u={};for(var E=_.N(L),y=E.next();!y.done;y=E.next()){var v=y.value;v.inject&&Object.assign(u,v.inject)}this.inject&&Object.assign(u,this.inject);for(var J=_.N(Object.keys(u)),f=J.next();!f.done;f=J.next()){var t=f.value,e=u[t];try{this[t]=WK0.resolve(e)}catch(G){throw G;}}}catch(G){throw Error(G.message);
}}};var mom;var Vck=/\bclass\b/.test(function(){}.toString()),WDm=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var hT8=function(g){this.wasDefined=!0;Array.isArray(g)||g instanceof Array?(this.JSC$13822_getImpl=g[0],this.JSC$13822_setImpl=g[1]):this.JSC$13822_getImpl=g};
_.P=hT8.prototype;_.P.getWithPath=function(g){return YSM(this.JSC$13822_getImpl(),g)};
_.P.setWithPath=function(g,u){var q=this;if(g.length)throw Error("og");if(!this.JSC$13822_setImpl)throw Error("pg");$G(function(){q.JSC$13822_setImpl(u)})};
_.P.notifyPath=function(){throw Error("qg");};
_.P.notifySplices=function(){throw Error("rg");};
_.P.getChangeRecordSignal=function(g,u){var q=this;if(g.length)throw Error("sg");return function(){var Q=q.getWithPath(g);return{path:u!=null?u:"",base:Q,value:Q}}};
_.P.getSplicesSignal=function(){throw Error("tg");};
_.P.getPathMutationSignal=function(){throw Error("ug");};
_.P.pop=function(){throw Error("vg");};
_.P.push=function(){throw Error("wg");};
_.P.splice=function(){throw Error("xg");};
_.P.unshift=function(){throw Error("yg");};var yU=function(g){var u=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(g)||g instanceof Array?(this.JSC$13827_getImpl=g[0],this.JSC$13827_setImpl=g[1]):this.JSC$13827_getImpl=g;this.wasDefined=!1;_.D6(function(){u.wasDefined=u.JSC$13827_getImpl()!==void 0})};
yU.prototype.getWithPath=function(g){return YSM(this.JSC$13827_getImpl(),g)};
yU.prototype.setWithPath=function(g,u){var q=this;if(g[g.length-1]!=="*"&&g[g.length-1]!=="splices"){var Q=_.D6(function(){return q.getWithPath([])});
if(g.length===0){if(!this.JSC$13827_setImpl)throw Error("zg");if(Q===u)return;this.wasDefined||(this.wasDefined=u!==void 0);$G(function(){q.JSC$13827_setImpl(u)})}else{for(var L=0;L<g.length-1;L++){if(!Q)return;
Q=Q[g[L]]}L=g[g.length-1];Q&&(Q[L]=u);this.wasDefined||(this.wasDefined=g.length>1||u!==void 0)}Ynn(this,g,{pathComponents:g,value:u})}};
yU.prototype.notifyPath=function(g,u){g.length===0?u&&this.setWithPath(g,u.value):Ynn(this,g,{pathComponents:g,value:u==null?void 0:u.value,fallbackWhenUndefined:u==null?void 0:u.value})};
var Ynn=function(g,u,q,Q){if(g.setMutationSignal){var L=++g.mutationIndex,E=[g.observedPath],y=g.observedPath,v;u.length===0&&(v=y);for(var J=0;J<u.length;J++){var f=y.subPaths[u[J]];if(!f)break;E.push(f);y=f;J===u.length-1&&(v=f)}for(u=!1;E.length;)y=E.shift(),y.data={index:L,mutation:q,spliceMutationIndex:Q},u||(u=y===v),u&&E.push.apply(E,_.na(Object.values(y.subPaths)));$G(function(){g.setMutationSignal(L)})}};
yU.prototype.notifySplices=function(g,u){var q=this,Q=_.D6(function(){return q.getWithPath(g)}),L=[].concat(_.na(g),["splices"]);
Ynn(this,L,{pathComponents:L,value:{indexSplices:u}});if(Q==null?0:Q.length)u=this.mutationIndex,L=[].concat(_.na(g),["length"]),Ynn(this,L,{pathComponents:L,value:Q.length},u)};
var OiZ=function(g,u,q,Q,L,E){g.notifySplices(q,[{index:Q,addedCount:L,removed:E,object:u,type:"splice"}])},KKo=function(g,u){g=g.observedPath;
for(var q=0;q<u.length;q++){var Q=u[q],L=g.subPaths[Q];L||(L={pathComponents:u.slice(0,q+1),subPaths:{}},g.subPaths[Q]=L);g=L}},Bni=function(g,u,q){KKo(g,u);
if(!g.getMutationSignal){var Q=_.N(_.jR(g.mutationIndex,void 0,"sNBMCd"));g.getMutationSignal=Q.next().value;g.setMutationSignal=Q.next().value}var L=g.getMutationSignal;return _.G9(function(){L();return q(xFZ(g,u))},void 0,"zvsXEd")};
yU.prototype.getChangeRecordSignal=function(g,u){var q=this,Q=this.mutationIndex,L;return Bni(this,g,function(E){if(E&&E.index>Q){var y=E.mutation;Q=E.index;L=void 0}E=_.D6(function(){return q.getWithPath(g)});
if(y){var v=y.pathComponents[y.pathComponents.length-1],J=[].concat(_.na(y.pathComponents));if(v==="splices"||v==="length")return{base:E,path:(u?[u].concat(_.na(J)):J).join("."),value:y.value};var f=g.length>J.length?g:J,t;return{base:E!=null?E:y.fallbackWhenUndefined,path:(u?[u].concat(_.na(f)):f).join("."),value:(t=_.D6(function(){return q.getWithPath(f)}))!=null?t:y.fallbackWhenUndefined}}L||(L={base:E,
path:(u?[u].concat(_.na(g)):g).join("."),value:E});return L})};
yU.prototype.getSplicesSignal=function(g){var u=this.mutationIndex,q;return Bni(this,g,function(Q){if(Q&&Q.index>u&&Q.spliceMutationIndex!==u){var L=Q.mutation;u=Q.index;q=void 0}return L&&L.pathComponents[L.pathComponents.length-1]==="splices"?q=Q=L.value:q})};
yU.prototype.getPathMutationSignal=function(g){var u=this;KKo(this,g);if(!this.getMutationSignal){var q=_.N(_.jR(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=q.next().value;this.setMutationSignal=q.next().value}var Q=this.getMutationSignal,L=this.mutationIndex,E;return _.G9(function(){Q();var y=xFZ(u,g);if(y&&y.index>L&&y.mutation&&OPu(y.mutation.pathComponents,g)){var v=y.mutation;L=y.index}if(!E||L!==E.index){var J,f;y=(f=_.D6(function(){return u.getWithPath(g)}))!=null?f:(J=v)==null?
void 0:J.fallbackWhenUndefined;
E={index:L,value:y}}return E},void 0,"RXYC9b")};
var xFZ=function(g,u){g=g.observedPath;u=_.N(u);for(var q=u.next();!q.done;q=u.next())g=g.subPaths[q.value];return g.data};
yU.prototype.pop=function(g){var u=this,q=_.D6(function(){return u.getWithPath(g)});
if(!(q instanceof Array))throw Error("Ag");var Q=q.length>0,L=q.pop();Q&&OiZ(this,q,g,q.length,0,[L]);return L};
yU.prototype.push=function(g){var u=_.UT.apply(1,arguments),q=this,Q=_.D6(function(){return q.getWithPath(g)});
if(!(Q instanceof Array))throw Error("Bg");var L=Q.length,E=Q.push.apply(Q,_.na(u));u.length&&OiZ(this,Q,g,L,u.length,[]);return E};
yU.prototype.splice=function(g,u,q){var Q=_.UT.apply(3,arguments),L=this,E=_.D6(function(){return L.getWithPath(g)});
if(!(E instanceof Array))throw Error("Cg");u<0?u=E.length-Math.floor(-u):u&&(u=Math.floor(u));var y=E.splice.apply(E,[u,q].concat(_.na(Q)));(Q.length||y.length)&&OiZ(this,E,g,u,Q.length,y);return y};
yU.prototype.unshift=function(g){var u=_.UT.apply(1,arguments),q=this,Q=_.D6(function(){return q.getWithPath(g)});
if(!(Q instanceof Array))throw Error("Dg");var L=Q.unshift.apply(Q,_.na(u));u.length&&OiZ(this,Q,g,0,u.length,[]);return L};var v2=function(g,u,q){this.model=g;this.unknownSignalResolver=u;this.options=q;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];u=_.N(Uo3());g=u.next().value;u=u.next().value;this.owner=g;this.disposeImpl=u};
v2.prototype.dispose=function(){if(!this.isDisposed){for(var g=_.N(this.childSignalProxies),u=g.next();!u.done;u=g.next())u.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var zT$=function(g,u){g=kF(g.owner);try{u()}finally{kF(g)}};
v2.prototype.effect=function(g){zT$(this,function(){_.C2(g,"j")})};
var n78=function(g,u){g.options!=null||(g.options={});var q;(q=g.options).immutableProps!=null||(q.immutableProps=new Set);g.options.immutableProps.add(u)},HXu=function(g,u){u=""+u;
kHa(g,u);var q,Q;if((q=g.options)==null?0:(Q=q.immutableProps)==null?0:Q.has(u))return!0;var L;if((L=g.model.__signalCache)==null?0:L.has(u))q=g.model.__signalCache.get(u),Array.isArray(q)&&n78(g,u);var E,y,v;return(v=(E=g.options)==null?void 0:(y=E.immutableProps)==null?void 0:y.has(u))!=null?v:!1},Sn$=function(g,u){var q;
g.unknownSignalResolver&&(q=g.unknownSignalResolver(u));var Q,L;((Q=g.options)==null?0:(L=Q.immutableProps)==null?0:L.has(u))?q!=null||(q=new hT8(_.jR(g.model[u],void 0,"By5iP"))):q!=null||(q=new yU(_.jR(g.model[u],void 0,"CXghNc")));var E=g.model.hostElement;Object.defineProperty(g.model,u,{get:function(){cKF(E,u);return q.getWithPath([])},
set:function(y){P$(E,u);g.setWithPath([u],y)},
configurable:!0});return q},kHa=function(g,u){var q,Q,L;
((q=g.model.__signalCache)==null||!q.has(u))&&((Q=g.options)==null?0:(L=Q.externalSignalProps)==null?0:L.has(u))&&g.model[u]},eP=function(g,u){u=""+u;
var q=g.signalCache[u];if(q!==void 0)return q;q=!1;kHa(g,u);var Q;if((Q=g.model.__signalCache)==null?0:Q.has(u))if(q=g.model.__signalCache.get(u),Array.isArray(q))q=!0,n78(g,u);else return g.signalCache[u]=g.model.__signalCache.get(u).signal,g.signalCache[u];var L,E;Q=(E=(L=g.options)==null?void 0:L.reactivityMode)!=null?E:0;var y,v;if(!((y=g.options)==null?0:(v=y.reactiveProps)==null?0:v.has(u))&&!q&&Q===1)throw Error("Eg`"+u);L=q?o7W(g,u):Sn$(g,u);return g.signalCache[u]=L},o7W=function(g,u){var q=
Object.getOwnPropertyDescriptor(g.model.constructor.prototype,u),Q=function(){return g.model[u]};
return new hT8(q&&q.get&&!q.set?Q:[Q,function(L){g.model[u]=L}])};
v2.prototype.getWithPath=function(g){var u=_.N(g);g=u.next().value;u=OH(u);cKF(this.model.hostElement,""+g);return eP(this,g).getWithPath(u)};
v2.prototype.setWithPath=function(g,u){if(g.length){P$(this.model.hostElement,g.join("."));var q=_.N(g);g=q.next().value;q=OH(q);eP(this,g).setWithPath(q,u)}};
v2.prototype.getPathMutationSignal=function(g){var u=_.N(g);g=u.next().value;u=OH(u);return eP(this,g).getPathMutationSignal(u)};
v2.prototype.notifyPath=function(g,u){var q=_.N(g);g=q.next().value;q=OH(q);eP(this,g).notifyPath(q,u)};
var UFW=function(g,u){if(u.type==="literal")return function(){return{rootWasDefined:!0,value:u.value}};
var q=Mm(u.path),Q=_.N(q),L=Q.next().value;Q=OH(Q);var E,y;if(u.type==="path"&&(q.length===1||((E=g.options)==null?0:(y=E.immutableProps)==null?0:y.has(L))))return function(){var e=g.getWithPath(q.slice(0,1));e=YSM(e,q.slice(1));return{rootWasDefined:eP(g,q[0]).wasDefined,value:e}};
var v=eP(g,L);if(u.type==="path"){var J=v.getPathMutationSignal(Q);return function(){var e,G=(e=J())==null?void 0:e.value;return{rootWasDefined:v.wasDefined,value:G}}}if(u.type==="splices"){var f=v.getSplicesSignal(Q);
return function(){var e=f();return{rootWasDefined:v.wasDefined,value:e}}}var t=v.getChangeRecordSignal(Q,""+L);
return function(){var e=t();return{rootWasDefined:v.wasDefined,value:e}}},k_T=function(g,u,q){var Q=q.map(function(v){return UFW(g,v)}),L=q.length===0,E=[],y=q.length!==1||q[0].type!=="path"?!1:!0;
g.effect(function(){for(var v=Q.length,J=[],f=!!E.length,t=0;t<v;t++){var e=Q[t](),G=e.rootWasDefined;e=e.value;L||(L=G);J[t]=e;y&&(J[t+v]=f?E[t]:J[t],E[t]=e)}L&&aY(g.owner,function(){return void u.apply(null,_.na(J))})})},KDk=function(g,u,q,Q,L){var E=eP(g,u);
L!==void 0&&E.setWithPath([],L);k_T(g,function(){var y=_.UT.apply(0,arguments);P$(g.model.hostElement,u,!0);E.setWithPath([],q.apply(null,_.na(y)))},Q)};
v2.prototype.arrayPush=function(g){var u=_.UT.apply(1,arguments),q=_.N(g),Q=q.next().value;q=OH(q);Q=eP(this,Q);return Q.push.apply(Q,[q].concat(_.na(u)))};
v2.prototype.arraySplice=function(g,u,q){var Q=_.UT.apply(3,arguments),L=_.N(g),E=L.next().value;L=OH(L);E=eP(this,E);return E.splice.apply(E,[L,u,q].concat(_.na(Q)))};
v2.prototype.arrayUnshift=function(g){var u=_.UT.apply(1,arguments),q=_.N(g),Q=q.next().value;q=OH(q);Q=eP(this,Q);return Q.unshift.apply(Q,[q].concat(_.na(u)))};
v2.prototype.notifySplices=function(g,u){var q=_.N(g);g=q.next().value;q=OH(q);eP(this,g).notifySplices(q,u)};var gY5=!0,uFi=!1,AQT=!1,qex=!1,QD8=0;qex=!1;QD8=0;gY5=!0;uFi=AQT=!1;var EES=/([^\s]+?)\(([\s\S]*)\)/,qWK=/\.([^.]+)$/,N4f=/\\,/g,gEb=/&comma;/g,uGM=/\\(.)/g,PCu=[],QSh={"*":"wildcard",splices:"splices"};var tuk=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"),J8q=/[A-Z]/,LiX=["class","hidden","id","on-dom-change"],GIm=new Set([].concat(_.na(LiX),
["if","notify-dom-change","restamp"])),$Nq=new Set([].concat(_.na(LiX),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),RiK=new Set(["restamp"]);var Gjk=new Set(["className","id"]);var ZXf=Symbol(),F0F=window;var hiq=window;var nEb=0,K0q=0,Ge=[],zim=0,OXu=!1,B4K=document.createTextNode("");(new window.MutationObserver(xNZ)).observe(B4K,{characterData:!0});var R5=new Map,$9=0,EYH=function(g){this.mappedHandleId=g},SWf=function(g,u,q,Q){this.mappedHandleId=g;
var L=this;this.mappedHandleId=g;this.callback=u;this.waitTime=q;this.schedulerPriority=Q;this.handleId=_.Hv.addJob(function(){L.callback();R5.delete(L.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.A(SWf,EYH);SWf.prototype.cancel=function(){_.Hv.cancelJob(this.handleId);R5.delete(this.mappedHandleId)};
var oET=function(g,u){this.mappedHandleId=g;var q=this;this.mappedHandleId=g;this.callback=u;this.handleId=kIZ(function(){q.callback();R5.delete(q.mappedHandleId)})};
_.A(oET,EYH);oET.prototype.cancel=function(){var g=this.handleId-K0q;g<0||Ge.length<=g||(Ge[g]=null);R5.delete(this.mappedHandleId)};var qnT=function(){};
qnT.prototype.cancel=function(){this.jobHandle!==void 0&&(UNf(this.jobHandle),this.jobHandle=void 0)};
qnT.prototype.run=function(g,u,q){var Q=this;this.cancel();this.callback=g;this.jobHandle=_.wO(function(){g();Q.callback=void 0},u,q)};
qnT.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var g7h=new WeakMap;var PWH=iu(function(g){for(var u=g,q=0;q<3;q++)u=Object.getPrototypeOf(u);delete u.prototype.connectedCallback;var Q=function(){return g.apply(this,arguments)||this};
_.A(Q,g);Q.prototype._attachDom=function(L){if(!L)return null;var E=(0,_.K6)(this.hostElement);E.attachShadow({mode:"open",shadyUpgradeFragment:L});E.shadowRoot.appendChild(L);return E.shadowRoot};
Q.prototype._takeAttributes=function(){for(var L=this.hostElement.attributes,E=0;E<L.length;E++){var y=L[E],v=void 0,J=void 0;(J=(v=this).__attributeReaction)==null||J.call(v,y.name,null,y.value)}};
Q.prototype._readyClients=function(){g.prototype._readyClients.call(this);this.root=this};
Q.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);g.prototype.connectedCallback.call(this)};
_.z3.Object.defineProperties(Q,{template:{configurable:!0,enumerable:!0,get:function(){return Q.prototype._template}}});
return Q}),NAi=iu(function(g){var u=function(){return g.apply(this,arguments)||this};
_.A(u,g);u.prototype.created=function(){if(this.__notifyEffects)for(var q=_.N(Object.values(this.__notifyEffects)),Q=q.next();!Q.done;Q=q.next()){Q=_.N(Q.value);for(var L=Q.next();!L.done;L=Q.next())L.value.fn=PlM}if(this.__reflectEffects)for(q=_.N(Object.values(this.__reflectEffects)),Q=q.next();!Q.done;Q=q.next())for(Q=_.N(Q.value),L=Q.next();!L.done;L=Q.next())L.value.fn=NnT};
u.prototype._addEventListenerToNode=function(q,Q,L){q=H$(q);ZF(q,Q,L)||g.prototype._addEventListenerToNode.call(this,q,Q,L)};
u.prototype._removeEventListenerFromNode=function(q,Q,L){q=H$(q);lP(q,Q,L)||g.prototype._removeEventListenerFromNode.call(this,q,Q,L)};
u.prototype._propertiesChanged=function(q,Q,L){if(this.__dataToNotify&&this.__notifyEffects)for(var E=_.N(Object.keys(this.__dataToNotify)),y=E.next();!y.done;y=E.next()){y=y.value;var v=E7m(y);this.__notifyEffects[v]||delete this.__dataToNotify[y]}else this.__dataToNotify=null;g.prototype._propertiesChanged.call(this,q,Q,L)};
u.prototype.fire=function(q,Q,L){Q=Q===void 0?{}:Q;var E;return _.hJ(H$((E=L==null?void 0:L.node)!=null?E:this),q,Q,L)};
u.prototype._ensureAttribute=function(q,Q){var L=H$(this);L.hasAttribute(q)||tr(L,Q,q)};
u.prototype.isLightDescendant=function(q){var Q=H$(this);return H$(Q)!==q&&_.Tr(Q).contains(q)&&_.Tr(Q).getRootNode()===_.Tr(q).getRootNode()};
return u});
_.kI.ready=function(){var g;((g=this.hostElement)!=null?g:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var u;((u=this.hostElement)!=null?u:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.LJ._subscribeIronResize=function(g){var u;((u=g.hostElement)!=null?u:g).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.LJ._unsubscribeIronResize=function(g){var u;((u=g.hostElement)!=null?u:g).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var v7K=[Array,Boolean,Date,Number,Object,String],Z3=function(g,u,q,Q){this.polySiInfo=g;this.polySiParams=u;this.polySiContext=q;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;Q||this instanceof HTMLElement&&(Q=this);if(!Q)throw Error("Lg");this.allowedProps=u.allowedProps;this.hostElement=Q;this.is=g.is;this.upgradeDisabled=!!u.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");g=new Set(u.reactiveSchemas.filter(function(L){return L.type!==
"observe"}).map(function(L){return L.propertyKey}));
this.signalProxy=new v2(this,void 0,{reactiveProps:g,reactivityMode:u.reactivityMode});this.__dataHasAccessor={};u=_.N(u.reactiveSchemas);for(g=u.next();!g.done;g=u.next())g=g.value,g.type==="signal"&&(this.__dataHasAccessor[g.propertyKey]=!0);this.upgradeDisabled||sDb(this)};
Z3.prototype.getExtraMethodsToForward=function(){return[]};
var sDb=function(g){g.polySiContext.didRegister||(g.registered(),g.polySiContext.didRegister=!0);g.polySiContext.finalizedTemplate||(g.polySiContext.finalizedTemplate={},g.polySiParams.templateGetter&&(g.polySiContext.finalizedTemplate.processedTemplate=YWm(g.polySiParams.templateGetter,g.polySiParams.is)));y0W(g);var u=g.hostElement;u.loggingStatus!=null||(u.loggingStatus={});u.loggingStatus.isInitializing=!0;_.D6(function(){return void g.created()});
u.loggingStatus.isInitializing=!1;g.isPolySiElementConnected&&vY$(g)},vY$=function(g){g.didCallReady||(_.D6(function(){return void g.ready()}),g.didCallReady=!0);
g.isAttached=!0;g.attached()};
_.P=Z3.prototype;_.P.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||vY$(this)};
_.P.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.P.attributeChangedCallback=function(g,u,q){if(this.upgradeDisabled)g==="disable-upgrade"&&q===null&&(this.upgradeDisabled=!1,sDb(this));else if(u!==q){var Q=_.oM(g),L=this.polySiContext.typesForSignals[Q];if(L&&(!this.reflecting||_.w("polysi_attribute_changed_serializing_killswitch"))){switch(L){case Object:try{var E=JSON.parse(q)}catch(v){E=q}break;case Array:try{E=JSON.parse(q)}catch(v){E=null}break;case Date:E=isNaN(q)?String(q):Number(q);E=new Date(E);break;case Boolean:E=q!==null;break;case Number:E=
Number(q);break;default:E=q}this[Q]=E}Q=_.N(this.polySiParams.behaviors);for(L=Q.next();!L.done;L=Q.next())E=void 0,(E=L.value.attributeChanged)==null||E.call(this,g,u,q);var y;(y=this.attributeChanged)==null||y.call(this,g,u,q)}};
_.P.attributeChangedCallbackWrapper=function(g,u,q){this.attributeChangedCallback(g,u,q)};
_.P.setPropertiesFromInitialAttributeValues=function(){for(var g=0;g<this.hostElement.attributes.length;g++){var u=this.hostElement.attributes[g];(u.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(u.name))&&this.attributeChangedCallback(u.name,null,u.value)}};
_.P.created=function(){this.provide=this.polySiParams.provide;var g;(g=this.initializeInjection)==null||g.call(this);g=_.N(this.polySiParams.reactiveSchemas);for(var u=g.next();!u.done;u=g.next())u=u.value,u.type==="signal"&&(this.mutablePropNames.add(u.propertyKey),eP(this.signalProxy,u.propertyKey));yQk(this,this.polySiInfo,this.polySiParams.behaviors);g=_.N(this.polySiParams.reactiveSchemas);for(u=g.next();!u.done;u=g.next())u=u.value,u.type==="signal"&&u.value!==void 0&&(this.signalProxy.model[u.propertyKey]=
typeof u.value==="function"?u.value.call(this):u.value);if(this.polySiParams.signalProperties)for(g=_.N(this.polySiParams.signalProperties),u=g.next();!u.done;u=g.next()){u=u.value;var q=void 0;((q=this.__signalCache)==null?0:q.has(u))||(this.signalProxy.model[u]=void 0)}qex||Dr5(this);sNS(this);g=_.N(this.polySiParams.behaviors);for(u=g.next();!u.done;u=g.next())q=void 0,(q=u.value.created)==null||q.call(this);var Q;(Q=this.polySiInfo.created)==null||Q.call(this)};
_.P.registered=function(){var g=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var u=Object.getPrototypeOf(this);u.addReactiveSchema=function(v){g.polySiParams.reactiveSchemas.push(v)};
for(var q=_.N(this.polySiParams.behaviors),Q=q.next();!Q.done;Q=q.next()){var L=void 0;(L=Q.value.beforeRegister)==null||L.call(u)}var E;(E=this.polySiInfo.beforeRegister)==null||E.call(u);u.addReactiveSchema=pRZ;q=_.N(this.polySiParams.behaviors);for(Q=q.next();!Q.done;Q=q.next())L=void 0,(L=Q.value.registered)==null||L.call(u);var y;(y=this.polySiInfo.registered)==null||y.call(u)};
_.P.ready=function(){var g;(g=this.beforeReady)==null||g.call(this);qex&&Dr5(this);var u;if(g=(u=this.polySiContext.finalizedTemplate)==null?void 0:u.processedTemplate){g=T4u(g.template,g.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:g.hasInsertionPoint,thisCtx:this});u=g.nodesById;g=g.root;var q=this.hostElement;var Q=Q===void 0?!1:Q;q=(0,_.K6)(q);if(!q.attachShadow)throw Error("Jd");if(!q.shadowRoot||Q)q.attachShadow({mode:"open",shadyUpgradeFragment:g}),q.shadowRoot.appendChild(g);
this.root=q.shadowRoot;this.$=u}pi5(this);Q=_.N(this.polySiParams.behaviors);for(u=Q.next();!u.done;u=Q.next())g=void 0,(g=u.value.ready)==null||g.call(this);var L;(L=this.polySiInfo.ready)==null||L.call(this)};
_.P.attached=function(){for(var g=_.N(this.polySiParams.behaviors),u=g.next();!u.done;u=g.next()){var q=void 0;(q=u.value.attached)==null||q.call(this)}var Q;(Q=this.polySiInfo.attached)==null||Q.call(this)};
_.P.detached=function(){for(var g=_.N(this.polySiParams.behaviors),u=g.next();!u.done;u=g.next()){var q=void 0;(q=u.value.detached)==null||q.call(this)}var Q;(Q=this.polySiInfo.detached)==null||Q.call(this)};
var y0W=function(g){for(var u=_.N(g.polySiParams.behaviors),q=u.next();!q.done;q=u.next())if(q=q.value,q.listeners)for(var Q in q.listeners)W0k(g,g.hostElement,Q,q.listeners[Q]);if(g.polySiInfo.listeners)for(var L in g.polySiInfo.listeners)W0k(g,g.hostElement,L,g.polySiInfo.listeners[L])},W0k=function(g,u,q,Q,L){g=hwb(g,Q,L);
ZF(u,q,g)||u.addEventListener(q,g);return g},Dr5=function(g){for(var u=_.N(g.polySiParams.reactiveSchemas),q=u.next();!q.done;q=u.next())q=q.value,q.type==="compute"||q.type==="computeWithMethod"?xoJ(g.signalProxy,q,g):q.type==="redux"?ndF(g.signalProxy,q,g.store):q.type==="signal"&&q.readOnly&&zwF(g.signalProxy,q)},pi5=function(g){for(var u=_.N(g.polySiParams.reactiveSchemas),q=u.next(),Q={};!q.done;Q={schema$jscomp$12:void 0},q=u.next())Q.schema$jscomp$12=q.value,Q.schema$jscomp$12.type==="notify"?
SSf(g.signalProxy,Q.schema$jscomp$12,g.hostElement):Q.schema$jscomp$12.type==="observe"?odS(g.signalProxy,Q.schema$jscomp$12,g):Q.schema$jscomp$12.type==="reflect"&&g.signalProxy.effect(function(E){return function(){var y=g.signalProxy.getWithPath([E.schema$jscomp$12.propertyKey]);
g.reflecting=!0;y8b(g.hostElement,E.schema$jscomp$12.propertyKey,y,!0);g.reflecting=!1}}(Q));
if(g.reflectedAttributes)for(u=_.N(Object.entries(g.reflectedAttributes)),Q=u.next(),q={};!Q.done;q={key$jscomp$940:void 0,value$jscomp$10338:void 0},Q=u.next()){var L=_.N(Q.value);Q=L.next().value;L=L.next().value;q.key$jscomp$940=Q;q.value$jscomp$10338=L;g.signalProxy.effect(function(E){return function(){g.reflecting=!0;y8b(g.hostElement,E.key$jscomp$940,(0,E.value$jscomp$10338)(),!0);g.reflecting=!1}}(q))}};
_.P=Z3.prototype;_.P._setPendingProperty=function(g,u){this.set(g,u);return!1};
_.P._enableProperties=function(){};
_.P._setPendingPropertyOrPath=function(g,u){this.notifyPath(g,u);return!1};
_.P._addPropertyEffect=function(){};
_.P._stampTemplate=function(){throw Error("Mg");};
_.P.fire=function(g,u,q){u=u===void 0?{}:u;q=q===void 0?{}:q;var Q,L,E={bubbles:(Q=q.bubbles)!=null?Q:!0,cancelable:!!q.cancelable,composed:(L=q.composed)!=null?L:!0},y;return _.hJ(JQk((y=q.node)!=null?y:this.hostElement),g,u,E)};
_.P.isLightDescendant=function(g){return this.hostElement!==g&&_.Tr(this.hostElement).contains(g)&&_.Tr(this.hostElement).getRootNode()===_.Tr(g).getRootNode()};
_.P.get=function(g,u){var q=Mm(g);return u?YSM(u,q):g==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(q)};
_.P.linkPaths=function(){};
_.P.listen=function(g,u,q){g=JQk(g);this.boundListeners!=null||(this.boundListeners=new WeakMap);var Q=this.boundListeners.get(g);Q||(Q={},this.boundListeners.set(g,Q));var L=u+q;Q[L]||(Q[L]=W0k(this,g,u,q))};
_.P.notifyPath=function(g,u){this.signalProxy.notifyPath(Mm(g),arguments.length===2?{value:u}:void 0)};
_.P.canNotifyPath=function(g){return this.mutablePropNames.has(g)&&!HXu(this.signalProxy,g)};
_.P.notifySplices=function(g,u){this.signalProxy.notifySplices(Mm(g),u)};
_.P.pop=function(g){var u=this.signalProxy;g=Mm(g);var q=_.N(g);g=q.next().value;q=OH(q);return eP(u,g).pop(q)};
_.P.push=function(g){var u=_.UT.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Mm(g)].concat(_.na(u)))};
_.P.set=function(g,u,q){if(q)throw Error("Ng");g==="hidden"?this.hostElement.hidden=!!u:this.signalProxy.setWithPath(Mm(g),u)};
_.P.setProperties=function(g){g=_.N(Object.entries(g));for(var u=g.next();!u.done;u=g.next()){var q=_.N(u.value);u=q.next().value;q=q.next().value;this[u]=q}};
_.P.splice=function(g,u,q){var Q=_.UT.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Mm(g),u,q].concat(_.na(Q)))};
_.P.unlinkPaths=function(){};
_.P.unlisten=function(g,u,q){g=JQk(g);if(this.boundListeners){var Q=this.boundListeners.get(g);if(Q){q=u+q;var L=Q[q];L&&(lP(g,u,L)||g.removeEventListener(u,L),delete Q[q])}}};
_.P.unshift=function(g){var u=_.UT.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Mm(g)].concat(_.na(u)))};
_.z3.Object.defineProperties(Z3.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 Hib=[Array,Boolean,Date,Number,Object,String];var lwS=!1;var Dx=function(){var g=HTMLElement.apply(this,arguments)||this;g.restamp=!1;g.notifyDomChange=!1;g.JSC$13935_didCallConnected=!1;g.JSC$13935_renderDebouncer=null;g.disableTemplateUpdateSignalImpl=iU()?void 0:_.jR(!1,void 0,"kCcqO");var u;g.getDisableTemplateUpdate=(u=g.disableTemplateUpdateSignalImpl)==null?void 0:u[0];var q;g.setDisableTemplateUpdate=(q=g.disableTemplateUpdateSignalImpl)==null?void 0:q[1];return g};
_.A(Dx,HTMLElement);var J0R=function(g){g.conditionSignalImpl!=null||(g.conditionSignalImpl=new yU(_.jR(!1,void 0,"ahkyAc")));return g.conditionSignalImpl};
_.P=Dx.prototype;_.P.showHideChildren=function(g){jDi(this,g,this.if)};
_.P.attributeChangedCallback=function(g,u,q){if(this.JSC$13935_didCallConnected)throw Error("Rg`"+g);g==="notify-dom-change"?this.notifyDomChange=q!==null:g==="restamp"&&(this.restamp=q!==null)};
_.P.debounceRender=function(){this.JSC$13935_renderDebouncer=_.Tn(this.JSC$13935_renderDebouncer,iP,this.JSC$13935_renderImpl.bind(this));_.hH(this.JSC$13935_renderDebouncer)};
_.P.disconnectedCallback=function(){var g=(0,_.K6)(this).parentNode;(!g||g.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in g&&!g.host)&&f_Z(this)};
_.P.connectedCallback=function(){var g=this;if(_.w("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13935_didCallConnected=!0,gY5?Iwh():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.w("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){J0R(g).getWithPath([]);g.debounceRender()});
else{var u=(0,_.K6)(this).parentNode,q={parentNode:u==null?void 0:u.nodeName};u instanceof Element&&(q.parentClassName=u.className);_.Io(new _.Ji("PsDomIf connected with undefined parentSignalProxy",q))}};
_.P.render=function(){_.xx()};
_.P.JSC$13935_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var g=this.if,u=!1;if(g){this.hasInstance()||(Md$(this),u=!0);a:{var q=(0,_.K6)(this).parentNode;if(this.hasInstance()){var Q=this.instance.children;if((Q==null?0:Q.length)&&(0,_.K6)(this).previousSibling!==Q[Q.length-1])for(var L=0;L<Q.length;L++)(0,_.K6)(q).insertBefore(Q[L],this)}else{if(!q){q=!1;break a}td$(this,q)}q=!0}if(!q)return}else this.restamp&&f_Z(this);jDi(this,!1,g);g&&!u&&Md$(this);uFi&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.P.hasInstance=function(){return!!this.instance};
var td$=function(g,u){var q=g.parentSignalProxy;if(iU()){var Q=_.N(_.jR(!0,void 0,"QNXUce"));var L=Q.next().value;Q=Q.next().value;q=g.parentSignalProxy}else{var E;var y=new v2((E=eaX(g))!=null?E:{},function(J){var f=eP(g.parentSignalProxy,J).getChangeRecordSignal([]);J=_.jR(void 0,void 0,"mIYvwe");var t=new yU(J);y.effect(function(){if(g.getDisableTemplateUpdate&&!g.getDisableTemplateUpdate()){var e=f();t.notifyPath(Mm(e.path),{value:e.value})}});
return t});
g.parentSignalProxy.childSignalProxies.push(y);var v=q=y}q=T4u(g.templateInfo,g.templateInfo.nodeInfoList,q,{eventListenerHost:g.eventListenerHost,hasInsertionPoint:g.templateInfo.hasInsertionPoint,thisCtx:g.eventListenerHost,enabledSignal:iU()?L:void 0,getModel:function(){return eaX(g)}}).root;
g.instance={root:q,children:[],hidden:!1,signalProxy:v,getTemplateUpdatesEnabled:L,setTemplateUpdatesEnabled:Q};v=_.N(q.childNodes);for(L=v.next();!L.done;L=v.next())g.instance.children.push(L.value);(0,_.K6)(u).insertBefore(g.instance.root,g)},eaX=function(g){if((g=g.parentSignalProxy.model)&&!g.hostElement){var u={},q;
for(q in g)g.hasOwnProperty(q)&&(u[q]=g[q]);return u}},f_Z=function(g){if(g.instance){var u=g.instance.children;
if(u.length){var q=(0,_.K6)(u[0]).parentNode;if(q){q=(0,_.K6)(q);for(var Q=0;Q<u.length;Q++)q.removeChild(u[Q])}}iU()?g.instance.setTemplateUpdatesEnabled(!1):g.instance.signalProxy.dispose();g.instance=void 0}},jDi=function(g,u,q){u=u||!q;
g.instance&&g.instance.hidden!==u&&(g.instance.hidden=u,Zih(u,g.instance.children))},Md$=function(g){if(iU()){var u=g.instance;
u&&aY(g.parentSignalProxy.owner,function(){return!u.getTemplateUpdatesEnabled()})&&u.setTemplateUpdatesEnabled(!0)}else g.setDisableTemplateUpdate(!1)};
_.z3.Object.defineProperties(Dx.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var g=this;return aY(this.parentSignalProxy.owner,function(){return J0R(g).getWithPath([])})},
set:function(g){g||(iU()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));J0R(this).setWithPath([],!!g)}}});
_.z3.Object.defineProperties(Dx,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Dx);var GjH=[],pK=function(){var g=HTMLElement.apply(this,arguments)||this;g.as="item";g.indexAs="index";g.itemsIndexAs="itemsIndex";g.targetFramerate=20;g.notifyDomChange=!1;g.isDetached=!1;g.JSC$13942_renderDebouncer=null;g.instances=[];g.chunkingId=null;g.chunkCount=null;g.shouldMeasureChunk=!1;g.shouldContinueChunking=!1;g.renderStartTime=null;g.JSC$13942_didCallConnected=!1;return g};
_.A(pK,HTMLElement);var $rn=function(g){g.itemSignalImpl!=null||(g.itemSignalImpl=new yU(_.jR(GjH,void 0,"fBC3h")));return g.itemSignalImpl},Ra8=function(g,u){Array.isArray(u)||(u=GjH);
$rn(g).setWithPath([],u)};
_.P=pK.prototype;_.P.showHideChildren=function(g){for(var u=_.N(this.instances),q=u.next();!q.done;q=u.next())Zih(g,q.value.children)};
_.P.notifyPath=function(g,u){g=Mm(g);g[0]==="items"&&(g.length===1?Ra8(this,u):$rn(this).setWithPath(g.slice(1),u))};
_.P.canNotifyPath=function(g){return g==="items"};
_.P.attributeChangedCallback=function(g,u,q){if(this.JSC$13942_didCallConnected)throw Error("Sg`"+g);g==="as"?this.as=q:g==="index-as"?this.indexAs=q:g==="items-index-as"?this.itemsIndexAs=q:g==="initial-count"?this.initialCount=Number(q):g==="notify-dom-change"?this.notifyDomChange=q!==null:g==="target-framerate"&&(this.targetFramerate=Number(q))};
_.P.disconnectedCallback=function(){this.isDetached=!0;for(var g=0;g<this.instances.length;g++)wii(this,g);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.P.connectedCallback=function(){var g=this;if(_.w("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var u=$rn(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var L=u(),E=Mm(L.path);if(E[0]===void 0||E[0]==="splices"||E[0]==="length")g.debounceRender();else{var y=E[0];if(y=g.instances[typeof y==="string"?Math.floor(Number(y)):y])E=[g.as].concat(_.na(E.slice(1))),y.signalProxy.notifyPath(E,L)}});
this.JSC$13942_didCallConnected=!0;gY5?Iwh():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var q=(0,_.K6)((0,_.K6)(this).parentNode),Q=0;Q<this.instances.length;Q++)q.insertBefore(this.instances[Q].root,this);this.chunkingId&&this.render()}}else q=(0,_.K6)(this).parentNode,Q={parentNode:q==null?void 0:q.nodeName},q instanceof Element&&(Q.parentClassName=q.className),_.Io(new _.Ji("PsDomRepeat connected with undefined parentSignalProxy",Q))};
_.P.debounceRender=function(){this.JSC$13942_renderDebouncer=_.Tn(this.JSC$13942_renderDebouncer,iP,this.JSC$13942_renderImpl.bind(this));_.hH(this.JSC$13942_renderDebouncer)};
_.P.render=function(){this.debounceRender();_.xx()};
_.P.JSC$13942_renderImpl=function(){var g=this;if(!this.parentSignalProxy.isDisposed){var u=this.items,q=c02(this,u.length);Hzb(this,u,q);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){g.chunkingId=null;if(g.shouldMeasureChunk){var Q=performance.now()-g.renderStartTime;g.chunkCount=Math.round(Math.ceil(1E3/g.targetFramerate)/Q*g.chunkCount)||1}g.shouldContinueChunking&&g.debounceRender()}));
uFi&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var c02=function(g,u){var q=u,Q=g.instances.length;if(g.initialCount){if(g.chunkCount){var L=Math.min(Math.max(u-Q,0),g.chunkCount);q=Math.min(Q+L,u)}else q=Math.min(u,g.initialCount),L=Math.max(q-Q,0),g.chunkCount=L||1;g.shouldMeasureChunk=L===g.chunkCount;g.shouldContinueChunking=q<u;g.renderStartTime=performance.now()}return q},Hzb=function(g,u,q){for(var Q=0;Q<q;Q++){var L=g.instances[Q],E=u[Q];
L?(L.signalProxy.setWithPath([g.as],E),L.signalProxy.setWithPath([g.indexAs],Q)):A0$(g,E,Q)}for(u=g.instances.length-1;u>=Q;u--)q=g,L=u,wii(q,L),_.N(q.instances.splice(L,1)).next().value.signalProxy.dispose()},wii=function(g,u){g=g.instances[u];
u=(0,_.K6)(g.root);for(var q=0;q<g.children.length;q++)u.appendChild(g.children[q])},A0$=function(g,u,q){var Q={};
u=Object.assign({},Zzx(g),(Q[g.as]=u,Q[g.indexAs]=q,Q[g.itemsIndexAs]=q,Q));var L=new v2(u,function(y){if(y!==g.as&&y!==g.indexAs){if(y===g.itemsIndexAs)return eP(L,g.indexAs);var v=eP(g.parentSignalProxy,y).getChangeRecordSignal([]);y=_.jR(void 0,void 0,"Y7rQEe");var J=new yU(y);L.effect(function(){var f=v();J.notifyPath(Mm(f.path),{value:f.value})});
return J}});
g.parentSignalProxy.childSignalProxies.push(L);Q=T4u(g.templateInfo,g.templateInfo.nodeInfoList,L,{eventListenerHost:g.eventListenerHost,getModel:function(){var y={};return Object.assign({},Zzx(g),(y[g.as]=L.model[g.as],y[g.indexAs]=L.model[g.indexAs],y[g.itemsIndexAs]=L.model[g.indexAs],y))},
hasInsertionPoint:g.templateInfo.hasInsertionPoint,thisCtx:g.eventListenerHost,methodInvocationRequirement:QD8,enabledSignal:g.stampingEnabled}).root;u={root:Q,children:[],signalProxy:L};Q=_.N(Q.childNodes);for(var E=Q.next();!E.done;E=Q.next())u.children.push(E.value);Q=(Q=g.instances[q+1])?Q.children[0]:g;(0,_.K6)((0,_.K6)(g).parentNode).insertBefore(u.root,Q);g.instances[q]=u},Zzx=function(g){if((g=g.parentSignalProxy.model)&&!g.hostElement){var u={},q;
for(q in g)g.hasOwnProperty(q)&&(u[q]=g[q]);return u}};
pK.prototype.itemForElement=function(g){var u=this,q=this.instances.find(function(Q){return Q.children.includes(g)});
if(q)return aY(this.parentSignalProxy.owner,function(){return q.signalProxy.getWithPath([u.as])})};
pK.prototype.indexForElement=function(g){var u=this.instances.findIndex(function(q){return q.children.includes(g)});
return u>=0?u:void 0};
_.z3.Object.defineProperties(pK.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var g=this;return aY(this.parentSignalProxy.owner,function(){return $rn(g).getWithPath([])})},
set:function(g){Ra8(this,g)}},
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}}});
_.z3.Object.defineProperties(pK,{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",pK);var l_5,I_0;_.Ja=new _.Fv("STATE_STORE_TOKEN");l_5=new _.Fv("SELECT_TOKEN");I_0=new _.Fv("DISPATCH_TOKEN");var mFq={getSelectFn:function(){var g;return(g=_.Bk().resolve(_.xv(l_5)))!=null?g:iih},
getDispatchFn:function(){var g;return(g=_.Bk().resolve(_.xv(I_0)))!=null?g:_.CE().dispatch.bind(_.CE())},
getAppStore:function(){return _.Bk().resolve(_.Ja)}},Clk,FKm=!1;var hTJ=function(){};var rQK=void 0;var iz8=function(){};
iz8.prototype.hasAttribute=function(g){if(g==="dir")return!1;if(g==="disable-upgrade"){var u,q;return(q=(u=this.hostElement)==null?void 0:u.hasAttribute("disable-upgrade"))!=null?q:!1}throw Error("Tg`"+g);};
iz8.prototype.attributeChangedCallbackWrapper=function(g,u,q){if(g==="disable-upgrade"&&this.__isUpgradeDisabled&&q===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var Q;((Q=this.hostElement)!=null?Q:this).isConnected&&this.connectedCallback()}else u===q||this.__isReflecting||this.attributeChangedCallback(g,u,q)};
iz8.prototype.getExtraMethodsToForward=function(){for(var g=this,u=[],q=_.N(CWb),Q=q.next(),L={};!Q.done;L={tagName$jscomp$67:void 0,name$jscomp$631:void 0},Q=q.next())L.name$jscomp$631=Q.value,Q=void 0,L.name$jscomp$631==="_setPendingProperty"?(L.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),Q=function(E){return function(y,v,J){Ei(E.tagName$jscomp$67,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return g._setPendingProperty(y,v,J)}}(L)):Q=function(E){return function(){return g[E.name$jscomp$631].apply(g,
_.na(_.UT.apply(0,arguments)))}}(L),u.push([L.name$jscomp$631,
Q]);return u};
for(var KKZ=NAi(PWH((0,_.ug)(iz8))),n7J=["disabled","disable-upgrade"],bzo=(0,_.ug)(function(){}),drn=new Set(Object.getOwnPropertyNames(bzo.prototype)),gYS=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.na(drn))),Snq=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),CWb=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Fi$=new Set([].concat(_.na(Snq),_.na(CWb),_.na(drn))),mr$=_.N(Fi$),a_$=mr$.next();!a_$.done;a_$=mr$.next())G_q.add(a_$.value);var UFf={created:function(){sNS(this);this.initializeInjection()}};var y0f=!1,rO=window.ShadyDOM,tdq=["appendChild","insertBefore","removeChild","replaceChild"],Mdq=[Node];rO&&Mdq.push(rO.Wrapper);var HzT,A0q,I_b={};var W$,Fiq=new WeakMap,CWT=new Set;var r0u=new Set("context didCallReady is info params signalProxy".split(" ")),TAk="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),hab="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Vdo=$C({entities:h8F}),Xib=new CU(Vdo);var r0i=function(){return _.gO.apply(this,arguments)||this};
_.A(r0i,_.gO);_.z3.Object.defineProperties(r0i.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Xib}}});
_.Y([_.uU()],r0i);_.j3=[N8.prototype,r0i.prototype];_.fK={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var g=this,u={};setTimeout(function(){var q;return _.hJ((q=g.hostElement)!=null?q:g,"yt-live-chat-add-tooltip-target",u)},0);
this.handler_=u.handler},
detached:function(){if(this.handler_){var g;this.handler_.removeElementFromSupportingTooltips((g=this.hostElement)!=null?g:this)}this.handler_=null}}};_.B$=new _.Fv("ICON_MANAGER_TOKEN");var Wi5=[48,20,18,16,15,13,12],EpF=new Map,uOu=new Set,oYF=new Set,gpb=new Set,Sek=new Set,Urb=new Set,QUS=new Promise(function(g){var u=!1,q=!1,Q=!1,L=[],E=function(y){if("detail"in y)if(y=y.detail,y.name==="yt-icons")qLb(y),u=!0;else if(y.name==="yt-sys-icons")qLb(y),q=!0;else{var v;((v=y.name)==null?0:v.includes("yt-sys-icons"))&&y.size!==24&&(qLb(y,!0),L.push(y.size),L.length===Wi5.length&&(Q=!0))}u&&q&&Q&&(window.removeEventListener("iron-iconset-added",E),g())};
window.addEventListener("iron-iconset-added",E)}),TAH=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"]]);_.M8={};_.M8.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.iR,computeHref_:function(g,u){u=u===void 0?!1:u;if(!g||g.commandExecutorCommand)return null;var q=m0F(g,u);return u||q!==null?q?_.w("enable_polymer_resin")?_.SO(q).toString():q:null:(_.Io(new _.Ji("computeHref was null",this.is,g)),null)},
computeOptionalHref_:function(g){return this.computeHref_(g,!0)},
computeNofollow_:function(g){return g?A7h(g)?"nofollow":null:null},
computeIcon_:function(g){return g&&g.iconType?_.x9(g.iconType):""},
resolveCommand:function(g,u,q){u=u===void 0?{}:u;return _.nE(g,this.hostElement,u,q===void 0?!1:q)}};var Yeb,ta;_.ha0={};Yeb=null;
ta={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_=gDh(this.viewroot));_.wO(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var g=this;this.unobserve_();if(_.w("kevlar_vimio_use_shared_monitor"))SP(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 u=[];this.visibilityOptionVisible_&&u.push(this.visibilityObserver.observe(this.hostElement,function(){return g.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&u.push(this.visibilityObserver.observe(this.hostElement,function(){return g.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&u.push(this.visibilityObserver.observe(this.hostElement,function(){return g.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=u}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Pfu(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 g=_.ep(this.parentNode,function(q){var Q,L=(Q=q.polymerController)!=null?Q:q;return!!L.getVisibilityObserverForChild&&L.getVisibilityObserverForChild()},!0);
if(g){var u;this.localVisibilityObserver_=((u=g.polymerController)!=null?u:g).getVisibilityObserverForChild()}else Yeb||(Yeb=gDh()),this.localVisibilityObserver_=Yeb;return this.localVisibilityObserver_},visibilityCallback:function(g){g?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.w("kevlar_use_vimio_behavior")||(ta={});ta&&!_.w("kevlar_use_vimio_behavior")&&(delete ta.attached,delete ta.detached);_.ha0.YtVisibilityObserverBehavior=[ta];var Ozb={};Ozb.YtVisualElementBehavior=[_.ha0.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.w("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.w("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var g=this.getScreenLayer&&this.getScreenLayer(),u=this.getVisibilityLogger();u&&u.reportShown(this,void 0,g)}},
onHidden:function(){if(_.w("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.w("kevlar_vimio_use_shared_monitor")){var g=this.getScreenLayer&&this.getScreenLayer(),u=this.getVisibilityLogger();u&&u.reportHidden(this,void 0,g)}},
getVisibilityLogger:function(){return _.w("kevlar_use_vimio_behavior")?_.o5():null},
shouldSkipLogging:function(){if(_.FR("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var g=this.getParentRenderer&&this.getParentRenderer();if(!g)return!1;var u,q=(u=g.polymerController)!=null?u:g;if(!q.data)return!1;g=this.data.trackingParams;g=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:g;var Q;u=(Q=q.data)==null?void 0:Q.trackingParams;var L,E;u=((L=q.data)==null?0:L.loggingDirectives)?(E=q.data)==null?void 0:E.loggingDirectives.trackingParams:u;return g&&u&&g===
u}}];var phZ=new Map,EE;var PsF=function(g){this.layer=g},Uf=function(g){return g.layer!==void 0?g.layer:g.parent?Uf(g.parent):g.layer=0};var eQq;_.n={};eQq=0;_.n.YtRendererBehavior=[_.M8.YtComponentBehavior,Ozb.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_:_.w("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var g,u;(u=(g=this.monitorScrollElement)!=null?g:this.hostElement)==null||u.removeEventListener("scroll",_.zr(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();vpq(this.hostElement);nI(_.S9(),this.hostElement);bH.delete(this.hostElement)},
registerRenderer:function(g){var u;((u=g.polymerController)!=null?u:g).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(g),this.markDirty())},
unregisterRenderer_:function(g){this.useVimio_||(this.childCache_.delete(g),this.markDirty())},
attached:function(){var g=this,u=this.getParentRenderer();if(u){var q,Q,L;(Q=(q=(L=u.polymerController)!=null?L:u).registerRenderer)==null||Q.call(q,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var E,y;(y=(E=this.monitorScrollElement)!=null?E:this.hostElement)==null||y.addEventListener("scroll",_.zr(this,this.onScroll))}_.Hv.addJob(function(){JpK(g.hostElement)},8);
q=new PsF(this.screenLayer||void 0);(u=bH.get(u))&&u.layerNode&&(q.parent=u.layerNode);u={};t3m(this.hostElement,(u.isRenderer=!0,u.layerNode=q,u[NIq]=this.data,u))},
getParentRenderer:function(){for(var g=this.hostElement.parentNode,u,q;g&&((u=bH.get(g))==null||!u.isRenderer)&&!((q=g.polymerController)!=null?q:g).isRenderer_;)g=g.parentNode||g.host;return g},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.w("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.mW("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.w("debug_web_ve_data")&&this.data.trackingParams){var g="";try{g=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(q){_.Zf(q)}if(g){var u=q3S(g,1);u!==void 0&&(this.hostElement.dataset.veIndex=String(u));g=q3S(g,2);
g!==void 0&&(this.hostElement.dataset.ve=String(g))}}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,_.w("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Lr(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Ui(_.gL(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var g=this.data.targetId;_.ka(_.S9(),g,this.hostElement)}else nI(_.S9(),this.hostElement)},
onScroll:function(){var g=Date.now();g-this.lastHandledScroll_<50||(this.lastHandledScroll_=g,this.markDirty())},
markDirty:function(){_.w("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():G6u(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var g=this.getParentRenderer();if(g&&(g=bH.get(g))&&g.layerNode)return Uf(g.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.na(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var g=0;g<this.data.impressionEndpoints.length;g++)this.sendImpression(this.data.impressionEndpoints[g]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(g){g.clickTrackingParams&&delete g.clickTrackingParams;var u,q;(g==null?0:(u=g.commandMetadata)==null?0:(q=u.webCommandMetadata)==null?0:q.sendPost)?_.KV(this.hostElement,[g,{impression:!0}]):_.xJ(this.hostElement,[g],this.hostElement)},
logExplicitClick:function(g){var u=_.j_(this.getScreenLayer());if(u){var q,Q=(q=g.polymerController)!=null?q:g;g=Q.visualElement;Q=Q.trackingParams||Q.clickTrackingParams;!g&&Q&&(g=_.Lr(Q));g&&_.Ip(u,g)}}}];var Ki$={},e3=function(){return _.gO.apply(this,arguments)||this};
_.A(e3,_.gO);e3.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
e3.prototype.onPdgItemBehaviorClick=e3.prototype.onPdgItemBehaviorClick;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],e3.prototype,"data",void 0);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],e3.prototype,"onPdgItemBehaviorClick",null);_.Y([_.uU()],e3);Ki$.YtPdgLiveChatItemBehavior=[e3.prototype,_.n.YtRendererBehavior];var xro;var BAX;_.GT={};_.GT.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var $K=function(){var g=kt.apply(this,arguments)||this;g.switchTemplateAtRegistration=!1;return g};
_.A($K,kt);$K.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||cpZ(this),_.QNm(this,"doRender"),this.doRender())};
$K.prototype.debounceRender=function(){this.templatingFn&&_.c$(this,"doRender",this.doRender)};
$K.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Zf(Error("ch"))};
$K.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.Y([HNS()],$K);var zab=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Rg={},lUq=(Rg[1]={filterString:null,isUnwrappable:null,unwrap:null},Rg[2]={filterString:function(g,u,q){return h9(q)},
isUnwrappable:function(g){return g instanceof qa},
unwrap:function(g){return EP(g)}},Rg[3]={filterString:function(g,u,q){return zab.test(q)?q:kV.toString()},
isUnwrappable:function(g){return xV(g)},
unwrap:function(g){return _.BT(g)}},Rg[4]={filterString:function(){return kV.toString()},
isUnwrappable:function(g){return g instanceof XV},
unwrap:function(g){return _.WT(g).toString()}},Rg[5]={filterString:function(g,u,q){return q},
isUnwrappable:function(g){return typeof g==="string"},
unwrap:function(g){return g.toString()}},Rg[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(g){return g instanceof _.vx},
unwrap:function(g){return pa(g)}},Rg[8]={filterString:function(g,u,q){q=String(q).toLowerCase();
return BUq(g,u,q)?q:"zClosurez"},
isUnwrappable:null,unwrap:null},Rg[10]={filterString:null,isUnwrappable:null,unwrap:null},Rg);h_[WL["default"]]=i_M;var Cfk=[];(function(){var g=z9;z9=function(u){g==null||g(u);sE(function(){for(var q=0;q<u.length;q++)b_m(u[q])})}})();var nYR=function(){var g=_.gO.apply(this,arguments)||this;g.hasUnmounted=!1;return g};
_.A(nYR,_.gO);_.P=nYR.prototype;_.P.beforeRegister=function(){var g=this.doIdomRender;this.templatingFn?_.Zf(Error("bh")):(this.templatingFn=g,this.switchTemplateAtRegistration=!0,Z_m(this))};
_.P.attached=function(){};
_.P.detached=function(){b_m(this.hostElement)};
_.P.renderIdom=function(){throw Error("eh");};
_.P.doIdomRender=function(){var g=this;KlT(this.hostElement,function(){g.renderIdom()})};
_.Y([_.uU()],nYR);var kjn=[$K.prototype,nYR.prototype];var SeH,oYn=function(){return SeH!==void 0?SeH:SeH=document.createElement("template")};
document.head.appendChild(oYn().content);var Ur0;var gp0,uOi=function(){return gp0!==void 0?gp0:gp0=document.createElement("template")};
document.head.appendChild(uOi().content);var qL0;var QU5=document.head,LT2=QU5.appendChild,Epn;if(qL0===void 0){var Pfi=document.createElement("template");_.Z(Pfi,"\x3c!--css-build:shady--\x3e");Pfi.content.insertBefore(uOi().content.cloneNode(!0),Pfi.content.firstChild);qL0=Pfi}Epn=qL0;LT2.call(QU5,Epn.content);var NKZ,sU8=function(){return NKZ!==void 0?NKZ:NKZ=document.createElement("template")};
document.head.appendChild(sU8().content);var yp2;var vp$=document.head,Dji=vp$.appendChild,pho;if(yp2===void 0){var JpX=document.createElement("template");_.Z(JpX,"\x3c!--css-build:shady--\x3e");JpX.content.insertBefore(sU8().content.cloneNode(!0),JpX.content.firstChild);yp2=JpX}pho=yp2;Dji.call(vp$,pho.content);var jUX=document.head,fU2=jUX.appendChild,MYn;if(Ur0===void 0){var tYb=document.createElement("template");_.Z(tYb,"\x3c!--css-build:shady--\x3e");tYb.content.insertBefore(oYn().content.cloneNode(!0),tYb.content.firstChild);Ur0=tYb}MYn=Ur0;fU2.call(jUX,MYn.content);var eQ$,G6i=function(){return eQ$!==void 0?eQ$:eQ$=document.createElement("template")};
document.head.appendChild(G6i().content);var $j5;_.gy=new _.Fv("DARK_THEME_TOKEN");var RQX=new _.d2("accessibilityProperties");var whX=new _.d2("layoutProperties");var cpo=new _.d2("imageType");var H_X={};if("ytAttributedStringLinkHoverColor"in H_X)throw Error("hh`ytAttributedStringLinkHoverColor");(function(g,u){H_X[g]="value"in u&&"unit"in u?aUF(g,u):function(q){try{return u(q)}catch(Q){throw Error("fh`"+g+"`"+Q.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Ap$=function(g){var u=this;this.holdTime=g===void 0?500:g;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(q){var Q=new CustomEvent("LONG_PRESS"),L;(L=q.changedTouches[0].target)==null||L.dispatchEvent(Q)};
this.ontouchstart=function(q){u.longPressTimeout=_.gT(_.Hv,function(){u.onlongpress(q);u.longPressOccurred=!0},u.holdTime)};
this.ontouchmove=function(){_.Hv.cancelJob(u.longPressTimeout);u.longPressTimeout=NaN;u.longPressOccurred=!1;u.moveOccurred=!0};
this.ontouchend=function(q){if(u.longPressTimeout&&!u.longPressOccurred&&!u.moveOccurred){var Q;(Q=q.changedTouches[0].target)==null||Q.dispatchEvent(new Event("click"))}_.Hv.cancelJob(u.longPressTimeout);u.longPressTimeout=NaN;u.longPressOccurred=!1;u.moveOccurred=!1}};var gnS=function(g,u){Ap$.call(this,u);var q=this;this.callback=g;this.onlongpress=function(Q){var L;(L=q.callback)==null||L.call(q,Q)}};
_.A(gnS,Ap$);var uem=function(g,u){var q=Object.assign({},u);g=_.N(new Map([["ontouchstart",g.ontouchstart],["ontouchend",g.ontouchend],["ontouchmove",g.ontouchmove]]));for(var Q=g.next(),L={};!Q.done;L={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},Q=g.next()){var E=_.N(Q.value);Q=E.next().value;E=E.next().value;L.eventName$jscomp$103=Q;L.eventHandler$jscomp$2=E;u[L.eventName$jscomp$103]=function(y){return function(v){var J;(J=q[y.eventName$jscomp$103])==null||J.call(q,v);(0,y.eventHandler$jscomp$2)(v)}}(L)}};_.Gy=new _.Fv("COMMAND_HANDLER_TOKEN");var XhJ=new _.d2("parallelCommand");var TKb=new _.d2("performOnceCommand");var WTf=new _.d2("serialCommand");var hQh=void 0;var Z_R=function(){this.data=[];this.consumer=null};
Z_R.prototype.push=function(g){this.consumer?this.consumer(g):this.data.push(g)};var l2={};_.jR(l2,void 0,"sgPmTd");_.jR(null,void 0,"jypsq");_.jR(null,void 0,"mWiOof");var uZM=new Z_R;var k6b=[P70,Njo,sW2,vBi,y1W,EBR,DSx,pqo];var lUa=new _.d2("bracketTextDecorator");var wL=new _.d2("highlightTextDecorator");_.cY=new _.Fv("APP_DIRECTION_TOKEN");var vnF={calledOnce:!1,state:"visible"},yqk={calledOnce:!1,state:"hidden"};var IU0=new _.Fv("ICON_WIZ_COMPONENT_TOKEN");_.B1=_.r(function(g){var u=g.icon;var q=g.active;var Q=g.className;var L=g.style;var E=g.dataSelected;var y=g.dataDisabled;var v=g.role;var J=g.animateIcon;var f=g.themeOverride;var t=g.ariaHidden;var e=g.ariaExpanded;var G=g.ariaLabel;var R=g.tabindex;var H=g.id;var l=g.size;var d=g.iconFilter;var F=g.gradientColor;var V=g.onKeydown;var z=g.title;return _.p(_.M,{cond:u,then:function(){var O=_.Bk().resolve(IU0);return _.p(O,{icon:u,dataSelected:E,dataDisabled:y,animateIcon:J,themeOverride:f,ariaExpanded:e,
tabindex:R,id:H,active:q,size:l,role:v,className:Q,ariaHidden:t,ariaLabel:G,style:function(){return L!=null&&L()||l==null||!l()?L==null?void 0:L():"width: "+(l==null?void 0:l())+"px;height: "+((l==null?void 0:l())+"px;")},
title:z,iconFilter:d,gradientColor:F,onKeydown:V})}})},"p");
_.B1.idomCompat={callbacks:{onKeydown:!0}};var $Xk=new _.d2("borderImageProcessor");var cqh=window.devicePixelRatio||1;var l$K=new Map([["yt_outline_bag_black_24","bag"]]);var wg=function(g){var u=this;this.margin=.1;this.whenInViewportWithMargin=g;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){u.requestScan()});
window.addEventListener("touchend",function(){u.requestScan()});
window.addEventListener("updateui",function(){u.requestScan()});
var q=new _.Kr((0,_.EH)(this.requestScan,this),100);window.addEventListener("scroll",function(){q.fire()},!0);
window.addEventListener("resize",(0,_.EH)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){u.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.EH)(this.requestScan,this))};
wg.prototype.observe=function(g){this.observationTargets.includes(g)||this.observationTargets.push(g)};
wg.prototype.unobserve=function(g){this.observationTargets=this.observationTargets.filter(function(u){return u!==g})};
wg.prototype.requestScan=function(){var g=this;this.scanRequested||(sE(function(){i_2(g)}),this.scanRequested=!0)};
var i_2=function(g){var u=(1+g.margin)*(document.documentElement.clientHeight||window.innerHeight);g.observationTargets=g.observationTargets.filter(function(q){var Q=q.getBoundingClientRect();(Q=u>Q.top&&!!Q.height)&&g.whenInViewportWithMargin(q);return!Q&&q.parentNode});
g.scanRequested=!1};
wg.prototype.disconnect=function(){this.observationTargets=[]};var CfH,dja;CfH=_.N(_.jR(dXF(),void 0,"O3X2wd"));_.b_R=CfH.next().value;dja=CfH.next().value;window.addEventListener("resize",function(){dja(dXF())});var FTo={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},mjo=void 0,aUn=window.innerWidth,VYZ=window.innerHeight;window.addEventListener("resize",function(){mjo=void 0});var Xh8;if("IntersectionObserver"in window)Xh8=a$3();else{if(mjo===void 0){var rpo;rpo="matchMedia"in window?window.matchMedia(FTo.landscape+","+FTo.portrait).matches:void 0;mjo=rpo!==void 0?rpo:aUn>=930&&VYZ>=550||aUn>=550&&VYZ>=930}Xh8=mjo?{observe:function(g){sE(function(){var u;(u=g.onViewportEntered)==null||u.call(g)})},
unobserve:function(){}}:new wg(function(g){sE(function(){var u;
(u=g.onViewportEntered)==null||u.call(g)})})}var Fxk=Xh8;var WTW=_.r(function(g){var u=!1,q=_.Hk("img",function(Q){_.dB(function(){u=!0;Q.onload=null})});
_.bX(function(){var Q,L=(Q=g.data)==null?void 0:Q.call(g),E,y=(E=g.getSrc)==null?void 0:E.call(g).cb,v;Q=(v=g.config)==null?void 0:v.call(g);if(v=q.value)if(E=function(f,t){if(!u)return y?y(f,t):f},rqS(v,Q),_.w("web_image_dont_reload_same_src")&&Xuq(v,L,E))_.w("web_image_dont_reload_same_src_simulate_load")&&v.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var J;V43(v,L||null,E,Q,(J=g.lazy)==null?void 0:J.call(g))}},"zS0jKb");
return _.p("img",{el:q})},"r");
WTW.idomCompat=!0;_.IT=_.r(function(g){var u=function(){var q,Q=g.data(),L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k,LZ,sb,Rm,M3,tT,mJ,hT,Yu,Mx;var po={contentMode:(L=g.contentMode)==null?void 0:L.call(g),loadedClass:(E=g.loadedClass)==null?void 0:E.call(g),isPreloaded:(y=g.isPreloaded)==null?void 0:y.call(g),notifyOnLoaded:(v=g.notifyOnLoaded)==null?void 0:v.call(g),notifyOnUnloaded:(J=g.notifyOnUnloaded)==null?void 0:J.call(g),preferredThumbnail:(f=g.preferredThumbnail)==null?void 0:f.call(g),preserveHeight:(t=g.preserveHeight)==
null?void 0:t.call(g),preserveWidth:(e=g.preserveWidth)==null?void 0:e.call(g),objectPosition:(G=g.objectPosition)==null?void 0:G.call(g),targetWidth:(R=g.targetWidth)==null?void 0:R.call(g),targetHeight:(H=g.targetHeight)==null?void 0:H.call(g),shouldShowPlaceholder:(l=g.shouldShowPlaceholder)==null?void 0:l.call(g),useWidth:(d=g.useWidth)==null?void 0:d.call(g),isToggled:(F=g.isToggled)==null?void 0:F.call(g),alt:(V=g.alt)==null?void 0:V.call(g),className:(z=g.className)==null?void 0:z.call(g),
onerror:g.onerror,onload:g.onload,style$:((O=g.style$)==null?void 0:O.call(g))||((W=g.style)==null?void 0:W.call(g)),color:(x=g.color)==null?void 0:x.call(g),width:(k=g.width)==null?void 0:k.call(g),height:(LZ=g.height)==null?void 0:LZ.call(g),"aria-hidden$":(Yu=(sb=g["aria-hidden$"])==null?void 0:sb.call(g))!=null?Yu:(Rm=g.ariaHidden)==null?void 0:Rm.call(g),draggable:(M3=g.draggable)==null?void 0:M3.call(g),"data-disabled$":(Mx=(tT=g["data-disabled$"])==null?void 0:tT.call(g))!=null?Mx:(mJ=g.dataDisabled)==
null?void 0:mJ.call(g),size:(hT=g.size)==null?void 0:hT.call(g)};return Tzq(Q,po,(q=g.hideOn404)==null?void 0:q.call(g))};
return _.p(_.wi,null,_.p(_.Gv,{when:function(){var q;return((q=u())==null?void 0:q.type)==="image"}},function(){return _.p(WTW,{data:function(){return u().image},
getSrc:{cb:function(q,Q){var L=u().image.sources,E=u().config.isPreloaded,y=u().config.useWidth,v=u().config.targetWidth,J=u().config.targetHeight,f=u().config.preferredThumbnail;return _.HtK(Q,L,E,y,v,J,f)||""}},
config:function(){var q=u().config,Q;for(Q in q)q[Q]===void 0&&delete q[Q];return q},
lazy:g.renderLazy})}),_.p(_.Gv,{when:function(){var q;
return((q=u())==null?void 0:q.type)==="icon"}},function(){return _.p(_.B1,{icon:function(){return u().iconName},
role:function(){return u().config.role},
className:function(){return u().config.className},
style:function(){return u().config.style$+";width: "+(u().config.width+"px;height: ")+(u().config.height+"px;color: ")+(u().config.color+";")},
ariaLabel:function(){return u().config["aria-label$"]},
ariaHidden:function(){return u().config["aria-hidden$"]},
dataDisabled:function(){return u().config["data-disabled$"]},
active:function(){return u().config.isToggled},
size:function(){return u().config.size}})}))},"s");
_.IT.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var TK0=_.r(function(g){var u=function(L){var E,y,v=_.lF(function(R){E=L();y=FP(function(){for(var H=_.N(e()),l=H.next();!l.done;l=H.next()){l=KxK(l.value);l=typeof l==="string"?document.createTextNode(l):l;if(!(l instanceof Node)){H=new _.Ji("Part is not a node",l,typeof l);_.Zf(H);break}R.appendChild(l)}})}),J=_.dO(g.config),f=function(){var R,H=L();
return!((R=J())==null||!R.ariaLabel)||!(H.commandRuns&&H.commandRuns.length!==0||H.paragraphStyleRuns&&H.paragraphStyleRuns.length!==0)},t=YB3(J,{isEqual:BzT}),e=function(){var R=L(),H=t(),l=[],d=R.content.length,F,V=(F=_.Bk().resolve(_.xv(_.gy)))==null?void 0:F();
if(R.paragraphStyleRuns)for(var z=_.N(R.paragraphStyleRuns),O=z.next();!O.done;O=z.next()){var W=l.push,x=W.apply;var k=void 0,LZ=O.value;if((k=LZ.listGroup)!=null&&k.listItems){var sb=[];b:switch(LZ.listGroup.listType){case "LIST_TYPE_BULLET":var Rm="ul";break b;default:Rm="span"}sb.push($H({run:LZ,textLength:d,tag:Rm,config:{className:"yt-core-attributed-string__list-group"},startIndex:LZ.startIndex,length:LZ.length}));for(var M3=_.N(LZ.listGroup.listItems),tT=M3.next();!tT.done;tT=M3.next()){var mJ=
tT.value;b:switch(LZ.listGroup.listType){case "LIST_TYPE_BULLET":var hT="li";break b;default:hT="span"}sb.push($H({run:LZ,textLength:d,tag:hT,startIndex:mJ.startIndex,length:mJ.length}))}var Yu=sb}else Yu=[];x.call(W,l,_.na(Yu))}if(R.styleRuns&&(H==null||!H.noStyleRuns))for(var Mx=_.N(R.styleRuns),po=Mx.next();!po.done;po=Mx.next()){var KZ=po.value,G2=KZ,Ab=V,tb=H,lx=Lx3({extension:_.c(G2.styleRunExtensions,Erb),isDarkTheme:Ab===void 0?!1:Ab,runColor:G2.fontColor}),NE=void 0,fZ=G2,Xf=[];lx&&Xf.push("yt-core-attributed-string--link-inherit-color");
fZ.italic&&Xf.push("yt-core-attributed-string--italicized");fZ.underline&&fZ.strikethrough?Xf.push("yt-core-attributed-string--underline-strikethrough",Pym(fZ.underline)):fZ.underline?Xf.push("yt-core-attributed-string--underlined",Pym(fZ.underline)):fZ.strikethrough&&Xf.push("yt-core-attributed-string--strikethrough",Pym(fZ.strikethrough));if(fZ.baselineOffset){a:switch(fZ.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":NE="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":NE=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:NE="yt-core-attributed-string--baseline-offset-unknown"}Xf.push(NE)}var eX=Xf.join(" ");var no=G2,Co=lx,gC={};if(no.weight||no.weightLabel)gC.fontWeight=Enu(no,tb==null?void 0:tb.isHeadline).toString();Co&&(gC.color=Co);l.push($H({run:KZ,textLength:d,tag:"span",config:{className:eX,style:gC},startIndex:KZ.startIndex,length:KZ.length}))}if(R.decorationRuns)for(var Ca=_.N(R.decorationRuns),oR=Ca.next();!oR.done;oR=Ca.next()){var jf=
oR.value,Ko={};if(jf.textDecorator){var K9=jf.textDecorator,v5=V===void 0?!1:V,ME=[],fo=_.c(K9,wL),B5=_.c(K9,lUa);if(fo){var ra=ME,yp=ra.concat,YV=[],hb=Lx3({extension:_.c(fo.highlightTextDecoratorExtensions,LFx),isDarkTheme:v5,runColor:fo.backgroundColor});hb&&YV.push("background-color: "+hb+";");fo.backgroundCornerRadius!==void 0&&YV.push("border-radius: "+fo.backgroundCornerRadius+"px;");fo.leftPadding!==void 0&&YV.push("padding-left: "+fo.leftPadding+"px;");fo.rightPadding!==void 0&&YV.push("padding-right: "+
fo.rightPadding+"px;");fo.topPadding!==void 0&&YV.push("padding-top: "+fo.topPadding+"px;");fo.bottomPadding!==void 0&&YV.push("padding-bottom: "+fo.bottomPadding+"px;");ME=yp.call(ra,YV)}else if(B5){var $L=ME,UZ=$L.concat,ET=v5?"#2ba640":"#107516",$F=B5.color?QJb(B5.color):ET;ME=UZ.call($L,["padding: 2px;","border-top: solid "+$F+" 2px;","border-bottom: solid "+$F+" 2px;","background: linear-gradient(135deg, "+$F+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+$F+" 3px, rgba(0, 0, 0, 0) 3px);"])}var Pq=
ME.join(" ");Ko.style$=Pq;var du=jf.textDecorator,xF=[],TF=_.c(du,lUa);_.c(du,wL)?xF.push("yt-core-attributed-string--highlight-text-decorator"):TF&&xF.push("yt-core-attributed-string--bracket-text-decorator");var bP=xF.join(" ");Ko.className=bP;Ko.dir="auto"}var lh=_.c(jf.textDecorator,wL),rq=_.c(jf.textDecorator,lUa),nZ=_.c(jf.textDecorator,wL),H5=_.c(jf.textDecorator,lUa);l.push($H({run:jf,textLength:d,tag:"span",config:Ko,startIndex:(lh==null?void 0:lh.startIndex)||(rq==null?void 0:rq.startIndex)||
0,length:(nZ==null?void 0:nZ.length)||(H5==null?void 0:H5.length)||0}))}if(R.commandRuns&&(H==null||!H.noEndpoints))for(var Hn=_.N(R.commandRuns),I3=Hn.next();!I3.done;I3=Hn.next()){var ix=I3.value,lZ=qBT(ix,H);l.push($H({run:ix,textLength:d,tag:"a",config:lZ,startIndex:ix.startIndex,length:ix.length}))}if(R.attachmentRuns)for(var ZH=_.N(R.attachmentRuns),hh=ZH.next();!hh.done;hh=ZH.next()){var Nk=hh.value,$i=void 0,F4=void 0,R2={className:"yt-core-attributed-string--inline-block-mod"};if((F4=Nk.element)==
null?0:F4.properties){var OT=($i=Nk.element)==null?void 0:$i.properties,tk=[],QW=_.c(OT,whX);if(QW==null?0:QW.margin){var NQ=QW.margin,me=_.FR("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",cU=me?NQ.end||NQ.right:NQ.start||NQ.left,P2=me?NQ.start||NQ.left:NQ.end||NQ.right;cU&&tk.push("margin-left: "+pr(cU)+";");P2&&tk.push("margin-right: "+pr(P2)+";");NQ.top&&tk.push("margin-top: "+pr(NQ.top)+";");NQ.bottom&&tk.push("margin-bottom: "+pr(NQ.bottom)+";")}var Fx=tk.length!==0?tk.join(" "):
void 0;R2.style$=Fx}var ee=R2,dU=void 0,wt={alt:"",preserveHeight:!0,preserveWidth:!0},LY=["yt-core-attributed-string__image-element"];if(Nk.alignment){a:switch(Nk.alignment){case "ALIGNMENT_BASELINE":var lU="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":lU="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:lU="yt-core-attributed-string__image-element--image-alignment-bottom"}LY.push(lU)}if((dU=
Nk.element)==null?0:dU.properties){var I5=[],Ep=_.c(Nk.element.properties,whX);(Ep==null?0:Ep.height)&&I5.push("height: "+pr(Ep.height)+";");(Ep==null?0:Ep.width)&&I5.push("width: "+pr(Ep.width)+";");var u$=I5.length!==0?I5.join(" "):void 0;wt.style$=u$;var EO=void 0;var GP=((EO=_.c(Nk.element.properties,RQX))==null?void 0:EO.label)||"";wt.alt=GP}wt.className=LY.join(" ");var Uz=wt,q$=void 0;var NJ=void 0,uZ=void 0;var th=((uZ=Nk.element)==null?0:uZ.type)?(NJ=_.c(Nk.element.type,cpo))==null?void 0:
NJ.image:void 0;l.push($H({run:Nk,textLength:d,tag:"img",image:th,imageConfig:Uz,imageWrapperConfig:ee,startIndex:Nk.startIndex,length:(q$=Nk.length)!=null?q$:0}))}if(H==null?0:H.headerRuns)for(var dC=_.N(H.headerRuns),n9=dC.next();!n9.done;n9=dC.next()){var VT=n9.value;if(VT.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(VT.headerMapping)){a:{switch(VT.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var O7=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":O7="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":O7="yt-core-attributed-string--heading-3";break a}O7=void 0}l.push($H({run:VT,textLength:d,tag:"span",config:O7?{className:O7}:void 0,startIndex:VT.startIndex,length:VT.length}))}}var zQ=t();if(zQ==null?0:zQ.userInput)for(var Y6=_.N(l),Hb=Y6.next();!Hb.done;Hb=Y6.next()){var $D=Hb.value;if($D.tag!=="a"&&
$D.tag!=="li"){var T9b=void 0;(T9b=$D).config||(T9b.config={});$D.config.dir=$D.tag==="ul"?_.Bk().resolve(_.cY):"auto"}}if(L().content){var hA3=L().content;f$q(l);for(var B0={data:null,start:0,end:hA3.length,parts:[]},Yz3=_.N(l),zE=Yz3.next();!zE.done;zE=Yz3.next()){var n5=zE.value;JqS(B0,n5.startIndex,n5.endIndex,n5)}jJS(hA3,B0);var Owq=B0.parts}else Owq=[];return Owq},G=!0;
_.bX(function(){L();t();if(G&&(G=!1,Ot3(L(),E)))return;var R=e();Promise.resolve().then(function(){var H=v.value;if(H){H.innerText="";var l;(l=y)==null||l();y=_.ZY(H,function(){return _.p(xXm,{parts:R})},"t")}})},"Dfzccf");
return _.p("span",{el:v,class:function(){var R;if(R=L()){R=L();var H=J(),l=[];l.push("yt-core-attributed-string");(H==null?0:H.className)&&l.push(H==null?void 0:H.className);(H==null?0:H.ellipsisTruncate)?l.push("yt-core-attributed-string--ellipsis-truncate"):(H==null?0:H.noWrap)?l.push("yt-core-attributed-string--white-space-no-wrap"):(H==null?0:H.noPreWrap)||l.push("yt-core-attributed-string--white-space-pre-wrap");(H==null?0:H.linkInheritColor)&&l.push("yt-core-attributed-string--link-inherit-color");
R.alignment&&l.push(Nzq(R.alignment));R.lineBreakMode&&l.push("yt-core-attributed-string--word-wrapping");R=l.join(" ")}return R},
dir:function(){var R;return((R=J())==null?0:R.userInput)?"auto":void 0},
"aria-label":function(){var R;return f()?(R=J())==null?void 0:R.ariaLabel:void 0},
role:function(){return f()?"text":void 0}})},q=YB3(function(){var L,E=(L=g.text)==null?void 0:L.call(g);
if(E)return L=_.H1(E)?E:_.v1(E),(L==null?0:L.content)?L:void 0},{isEqual:Ot3}),Q;
return((Q=g.config)==null?0:Q.contentAsserted)?u(q):_.p(_.M,{cond:q,then:u})},"v");
TK0.idomCompat=!0;_.c2=_.r(function(g){var u=_.dO(g.text),q=zpT(g);g.contentAsserted!==void 0&&(q.contentAsserted=!0);return _.p(TK0,{text:u,config:q})},"w");
_.c2.idomCompat=!0;var nnk=function(g,u,q){u=u===void 0?"unknown":u;q=q===void 0?{}:q;_.Ji.call(this,g+" ("+u+")",Object.assign({},{name:"YtWcwError",tagName:u},q));Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(nnk,_.Ji);_.bF=new WeakMap;_.Cr=!1;var gwK,unK,UXS;_.H2=Symbol("jh");_.iF=Symbol("kh");gwK=Symbol("lh");unK=new Set(Object.getOwnPropertyNames(Element.prototype));UXS=Symbol("mh");var hQZ=_.r(function(g){return _.p("yt-attributed-string",{"aria-label":g.ariaLabel,hidden:g.hidden,id:g.id,class:g.className,"force-default-style":g.forceDefaultStyle},_.p(_.c2,{text:g.data,ariaLabel:g.ariaLabel,ellipsisTruncate:g.ellipsisTruncate,isOverlay:g.isOverlay,linkInheritColor:g.linkInheritColor,noPreWrap:g.noPreWrap,noWrap:g.noWrap,userInput:g.userInput,noEndpoints:g.noEndpoints,headerRuns:g.headerRuns,isHeadline:g.isHeadline}))},"x");
_.w("web_wiz_attributed_string")&&_.dL(hQZ,"yt-attributed-string",{props:{ariaHidden:_.H2,ariaLabel:_.H2,className:_.H2,ellipsisTruncate:_.H2,isOverlay:_.H2,linkInheritColor:_.H2,noEndpoints:_.H2,noStyleRuns:_.H2,noLinkColor:_.H2,noPreWrap:_.H2,noWrap:_.H2,skipOnClick:_.H2,userInput:_.H2,headerRuns:_.H2,isHeadline:_.H2,id:_.H2,data:_.H2,hidden:_.H2,forceDefaultStyle:_.H2,text:_.iF,disableUpgrade:_.iF,disable:_.iF,slot:_.iF}});var Aa=function(){return _.X.apply(this,arguments)||this};
_.A(Aa,_.X);Aa.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 g=this.data,u=this.config;g&&(g=_.H1(g)?g:_.v1(g),g!=null&&g.content&&(u=u||{},u.contentAsserted=!0,btJ(TK0)({text:g,config:u})))}};
_.Y([_.I(kjn),_.K("design:type",Object)],Aa.prototype,"ytIdomTemplatingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Aa.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Aa.prototype,"ariaLabel",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Aa.prototype,"disable",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Aa.prototype,"ellipsisTruncate",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Aa.prototype,"isOverlay",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],Aa.prototype,"linkInheritColor",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Aa.prototype,"noPreWrap",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Aa.prototype,"noWrap",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Aa.prototype,"userInput",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Aa.prototype,"noEndpoints",void 0);_.Y([_.a(),_.K("design:type",Array)],Aa.prototype,"headerRuns",void 0);
_.Y([_.jP({is:"yt-attributed-string",disableElementRegistration:!0})],Aa);
_.w("web_wiz_attributed_string")||_.T(Aa,"yt-attributed-string",function(){if($j5===void 0){var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
g.content.insertBefore(G6i().content.cloneNode(!0),g.content.firstChild);$j5=g}g=$j5;return g},{mode:2});var YL$,O_a,sbq;YL$=function(){this.firstThumbnailLoaded=!1};
_.KTx=function(){O_a||(O_a=new YL$);return O_a};
sbq=function(g){var u=_.KTx();u.firstThumbnailLoaded||(u.firstThumbnailLoaded=!0,_.fW("ftl",g))};
YL$.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Qbb=0,NPu=new WeakMap,EwM=0,aT=new Set;var xj$,BKR=function(){return xj$!==void 0?xj$:xj$=document.createElement("template")};
document.head.appendChild(BKR().content);var zQ8;var pJM,jbu,Zx;_.rL=_.Qq.caches;Zx=function(){};
Zx.prototype.open=function(g){return _.rL.open(npi(g))};
Zx.prototype.has=function(g){return _.rL.has(npi(g))};
Zx.prototype.delete=function(g){return _.rL.delete(npi(g))};
Zx.prototype.match=function(g,u){var q=this,Q,L,E,y,v,J;return _.D(function(f){switch(f.nextAddress){case 1:return f.yield(q.keys(),2);case 2:Q=f.yieldResult,L=_.N(Q),E=L.next();case 3:if(E.done){f.jumpTo(5);break}y=E.value;return f.yield(q.open(y),6);case 6:return v=f.yieldResult,f.yield(v.match(g,u),7);case 7:if(J=f.yieldResult)return f.return(J);E=L.next();f.jumpTo(3);break;case 5:return f.return()}})};
var flq=function(){};
_.A(flq,Zx);var npi=function(g){if(g.includes(":"))throw Error("ph`"+g);return g+":"+_.DQ("CacheStorage get")};
flq.prototype.keys=function(){var g,u,q,Q,L,E,y,v,J;return _.D(function(f){if(f.nextAddress==1)return g=[],u=_.DQ("CacheStorage keys"),f.yield(_.rL.keys(),2);q=f.yieldResult;Q=_.N(q);for(L=Q.next();!L.done;L=Q.next())E=L.value,y=_.DeM(E),v=y.originalName,J=y.datasyncId,J===u&&g.push(v);return f.return(g)})};var lw=function(){var g=_.X.apply(this,arguments)||this;g.objectURL=null;g.loadTime=Infinity;return g};
_.A(lw,_.X);_.P=lw.prototype;
_.P.renderIdom=function(){vwF(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("sh");this.setConfig();if(this.config){var g=this.config,u=this.shouldRenderLazy;btJ(_.IT)({contentMode:g.contentMode,loadedClass:g.loadedClass,isPreloaded:g.isPreloaded,notifyOnLoaded:g.notifyOnLoaded,notifyOnUnloaded:g.notifyOnUnloaded,preferredThumbnail:g.preferredThumbnail,preserveHeight:g.preserveHeight,preserveWidth:g.preserveWidth,objectPosition:g.objectPosition,targetWidth:g.targetWidth,
targetHeight:g.targetHeight,shouldShowPlaceholder:g.shouldShowPlaceholder,useWidth:g.useWidth,isToggled:g.isToggled,alt:g.alt,className:g.className,onerror:g.onerror,onload:g.onload,style$:g.style$,color:g.color,width:g.width,height:g.height,"aria-hidden$":g["aria-hidden$"],draggable:g.draggable,"data-disabled$":g["data-disabled$"],data:this.data,callback:void 0,renderLazy:u===void 0?!0:u,hideOn404:!1})}}};
_.P.objectFitToContentMode=function(g){switch(g){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.P.logThumbnailFailureVe=function(){var g=_.Yq(197497);_.xl(_.gL(),g);var u=_.j_();u&&g&&u&&_.Z0(u,[g])};
_.P.loadImageFromCacheIfExists=function(g){var u=this,q=g.target;(q==null?0:q.src)&&tIZ(q.src).then(function(Q){u.objectURL=_.o3(Q).toString();u.setSrc(q,u.objectURL)}).catch(function(){})};
_.P.onError=function(g){var u=this;if(_.w("web_use_cache_for_image_fallback")){var q=g.target;q&&tIZ(q.src).then(function(Q){u.objectURL=_.o3(Q).toString();u.setSrc(q,u.objectURL)}).catch(function(){_.w("kevlar_woffle_log_thumbnail_failure_ve")&&u.logThumbnailFailureVe();
_.w("kevlar_woffle_fallback_image")&&u.setSrc(q,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.P.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.P.setConfig=function(){var g=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(u){g.loadImageFromCacheIfExists(u);g.revokeObjectURL();ysh(g.hostElement)},
onerror:function(u){g.onError(u)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.w("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.P.setSrc=function(g,u){u&&(g.src=u)};
_.Y([_.I(kjn),_.K("design:type",Object)],lw.prototype,"ytIdomTemplatingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],lw.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],lw.prototype,"alt",void 0);_.Y([_.a(),_.K("design:type",Boolean)],lw.prototype,"ftlEligible",void 0);_.Y([_.a(),_.K("design:type",Number)],lw.prototype,"height",void 0);_.Y([_.a(),_.K("design:type",Boolean)],lw.prototype,"notifyOnLoaded",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],lw.prototype,"notifyOnUnloaded",void 0);_.Y([_.a(),_.K("design:type",String)],lw.prototype,"objectFit",void 0);_.Y([_.a(),_.K("design:type",String)],lw.prototype,"objectPosition",void 0);_.Y([_.a(),_.K("design:type",String)],lw.prototype,"preferredThumbnail",void 0);_.Y([_.a(),_.K("design:type",Boolean)],lw.prototype,"preserveHeight",void 0);_.Y([_.a(),_.K("design:type",Boolean)],lw.prototype,"preserveWidth",void 0);
_.Y([_.a({value:!0}),_.K("design:type",Boolean)],lw.prototype,"useWidth",void 0);_.Y([_.a({value:function(){return!_.mW("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.K("design:type",Boolean)],lw.prototype,"shouldRenderLazy",void 0);_.Y([_.a(),_.K("design:type",Number)],lw.prototype,"width",void 0);_.Y([_.jP({is:"yt-image",disableElementRegistration:!0})],lw);
_.T(lw,"yt-image",function(){if(zQ8===void 0){var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);g.content.insertBefore(BKR().content.cloneNode(!0),g.content.firstChild);
zQ8=g}g=zQ8;return g},{mode:2});var Ig=function(){return _.X.apply(this,arguments)||this};
_.A(Ig,_.X);Ig.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var g=_.jy(this.data.onVisibleCommand);g&&this.ytComponentBehavior.resolveCommand(g)}};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Ig.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.GT.YtVisibilityBehavior),_.K("design:type",Object)],Ig.prototype,"ytVisibilityBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ig.prototype,"data",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Ig);
_.T(Ig,"yt-bumper-user-edu-content-view-model",function(){if(BAX===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;xro===void 0&&(xro=document.createElement("template"));var Q=xro;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);BAX=g}g=BAX;return g},{mode:0});var k60;var SL$,opX=function(){if(SL$!==void 0)return SL$;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;k60===void 0&&(k60=document.createElement("template"));var Q=k60;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return SL$=g};var Uj0;_.iw={};Uj0=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"]);_.iw.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var g=this.getContext_();return g?g.getTaskManager():_.Hv},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var g=_.hJ(this.hostElement,"yt-get-context-provider",{});g.detail&&g.detail.contextProvider?this.cachedProviderNode_=g.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Uj0.has(this.hostElement.localName)},
getNetworkManager:function(){var g=this.getContext_();if(g)return g.getNetworkManager()}};var csq,gn5,qBb,ueR;_.CK=function(g){var u=gn5.get(g);if(u&&(u=u.pop()))return ueR++,u;qBb++;try{var q=document.createElement(g)}catch(Q){throw new _.Ji("ElementPool failed to create element",g,Q.message);}return q};
csq=function(g){var u=g.is;if(u){var q=gn5.get(u);q||(q=[],gn5.set(u,q));var Q=_.FR("ELEMENT_POOL_CONFIG")||{};q.length>=(Q[u]!==void 0?Q[u]:_.FR("ELEMENT_POOL_DEFAULT_CAP",0))||q.push(g)}else _.Io(new _.Ji("Element pool should only handle custom elements:",g.nodeName))};
gn5=new Map;qBb=0;ueR=0;var W1=new WeakMap,wJh=new WeakMap;var Lxx;_.bw=function(g,u,q){q=q===void 0?_.pT():q;this.JSC$14209_defaultPriority=g;this.signal=u;this.scheduler=q;this.nextJobDescriptor=0;this.JSC$14209_parkedJobs=[];this.scheduledJobs=new Map};
_.dg=function(g,u){if(u){var q=_.A4();g.signal&&!_.ZV(q,g.signal)?(q.addListener(g.signal,function(){g.processSignal()}),g.JSC$14209_parkedJobs.push({job:u,
priority:void 0})):QJ0(g,u)}};
Lxx=function(g,u){if(u!==g.JSC$14209_defaultPriority){g.JSC$14209_defaultPriority=u;for(var q=_.N(g.scheduledJobs.values()),Q=q.next();!Q.done;Q=q.next())Q=Q.value,g.scheduler.cancelJob(Q.jobId),Q.jobId=g.scheduler.addJob(Q.jobWrapper,u)}};
_.bw.prototype.flushJobs=function(){Lxx(this,10);this.processSignal()};
_.bw.prototype.cancel=function(){for(var g=_.N(this.scheduledJobs),u=g.next();!u.done;u=g.next()){var q=_.N(u.value);u=q.next().value;q=q.next().value;this.scheduler.cancelJob(q.jobId);this.scheduledJobs.delete(u)}this.JSC$14209_parkedJobs=[]};
_.bw.prototype.processSignal=function(){for(var g=_.N(this.JSC$14209_parkedJobs),u=g.next();!u.done;u=g.next())u=u.value,QJ0(this,u.job,u.priority);this.JSC$14209_parkedJobs=[]};
var QJ0=function(g,u,q){q=q||g.JSC$14209_defaultPriority;if(q===10)Vb(u);else{var Q=g.nextJobDescriptor++,L=function(){u();g.scheduledJobs.delete(Q)},E=g.scheduler.addJob(L,q);
g.scheduledJobs.set(Q,{jobWrapper:L,jobId:E,priority:q})}};var Eni;_.FK={};Eni={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.FK.YtRendererstamperBehavior=[_.iw.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 g in this.stampDom){var u=this.stampDom[g];u&&u.id&&this.addReactiveSchema({type:"observe",method:{methodName:GYk(u.id),args:[{type:"wildcard",path:g}]}})}else{(g=(this.constructor.generatedFrom||this).observers)||(g=[]);for(u in this.stampDom){var q=this.stampDom[u];q&&q.id&&g.push(GYk(q.id)+"("+u+".*)")}this.constructor.generatedFrom.observers=g}},
addStampDomObserverFns_:function(){for(var g in this.stampDom){var u=this.stampDom[g];u.id?(this[GYk(u.id)]=this.rendererStamperObserver_.bind(this,g,u.id),this.hasDataPath_[g]=!1):(u=new _.Ji("Bad rendererstamper config",this.is+":"+g),_.Zf(u))}},
rendererStamperObserver_:function(g,u,q){if(q.path==g){if(q.value===void 0&&!this.hasDataPath_[g])return;this.hasDataPath_[g]=q.value!==void 0}this.rendererStamperApplyChangeRecord_(g,u,q)},
rendererStamperApplyChangeRecord_:function(g,u,q){var Q=this.renderJobsMap_[u],L=null;g==q.path?(q=q.value,_.xu(q)||(q=q===void 0||q===null?[]:[q]),g=this.stampDom[g],g.mapping&&(L=this.stampDomArray_.bind(this,q,u,g.mapping,g.reuseComponents,g.events,g.stamperStableList)),Q&&Q.cancel(),q=g.usePageScheduler?this.getTaskManager():void 0,Q||g.initialRenderPriority==void 0)?g.renderPriority==void 0||Q||(Q=new _.bw(g.renderPriority,g.waitForSignal,q),this.renderJobsMap_[u]=Q):(Q=new _.bw(g.initialRenderPriority,
g.waitForSignal,q),this.renderJobsMap_[u]=Q,L=function(E,y){E();Lxx(y,10)}.bind(this,L,Q)):L=g+".splices"==q.path?this.stampDomArraySplices_.bind(this,g,u,q.value):this.forwardRendererStamperChanges_.bind(this,g,u,q);
Q?_.dg(Q,L):L()},
forwardRendererStamperChanges_:function(g,u,q){var Q=q.path.slice(g.length+1),L=this.getStampContainer_(u),E=Q.indexOf("."),y=Q.substring(0,E),v=!1,J=0,f=parseInt(y,0);if(y[0]=="#"){v=parseInt(y.substring(1),0);f=this.get(g);var t=this.get([g,y]);f[v]==t?J=v:J=f.indexOf(t);v=!0}else isNaN(f)||(J=f,v=!0);v&&(Q=Q.substring(y.length+1),E=Q.indexOf("."));y=this.polymerDom(L).children[J];var e;if(L=(e=y==null?void 0:y.polymerController)!=null?e:y)Q="data"+Q.slice(E),typeof L.notifyPath!=="function"?_.Io(new _.Ji("notifyPath missing",
this.is+": "+g+", "+u)):q.value?L.notifyPath(Q,q.value):L.notifyPath(Q)},
stampDomArraySplices_:function(g,u,q){if(q&&q.indexSplices){var Q=this.getStampContainer_(u);if(Q){for(var L=this.polymerDom(Q),E=RZf(this.stampDom[g].reuseComponents),y=q.indexSplices.length,v=0;v<y;v++){for(var J=q.indexSplices[v],f=L.children[J.index],t=J.removed.length;t>0;t--)f&&f.parentElement&&(this.polymerDom(f.parentElement).removeChild(f),E&&csq(f),f=L.children[J.index]);t=this.stampDom[g].mapping;for(var e=J.index+J.addedCount,G=document.createDocumentFragment(),R=E,H=J.index;H<e;H++){var l=
J.object[H],d=eZZ(t,l);if(d){var F=t[d];l=l[d];d=this.getComponentName_(F,l);var V=f?W1.has(f):!1;R&&f&&f.is==d&&V?(d=f,this.telemetry_.reuse++,f=f.nextElementSibling):R&&f&&V?(d=this.createComponent_(F,l,E),V=this.polymerDom(f).nextElementSibling,L.insertBefore(d,V),AsK(this.is,L,f,E),f=V):(R=!1,d=this.createComponent_(F,l,E),G.appendChild(d));this.deferRenderStamperBinding_(d,F,l)}else F=new _.Ji("Unimplemented type",g,u,Q.tagName,Object.keys(l)[0]),_.Zf(F)}L.insertBefore(G,f)}this.flushRenderStamperComponentBindings_();
this.stampDom[g].events&&_.hJ(this.hostElement,"yt-rendererstamper-finished",{container:Q})}else g=new _.Ji("Container object not found",u,this.hostElement?this.hostElement.is:""),_.Zf(g)}},
stampDomArray_:function(g,u,q,Q,L,E){var y=this.getStampContainer_(u);if(y)if(u=this.polymerDom(y),Q=RZf(Q),g){var v=0,J=0,f;if(E=E===void 0?_.mW("STAMPER_STABLE_LIST",!1):E||!1)for(f=u.firstElementChild;f&&!W1.has(f)&&g.length>J;){E=g[J];var t=eZZ(q,E);if(t){if(this.getComponentName_(q[t],E[t])!=f.is){var e=this.createComponent_(q[t],E[t],Q),G=this.polymerDom(f).nextElementSibling;G?u.insertBefore(e,G):u.appendChild(e);AsK(this.is,u,f,Q);f=e}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(f,
q[t],E[t]);v++;J++;f=this.polymerDom(f).nextElementSibling}else J++}llq(this.is,u,v,Q);v=f;if(g.length>J){E=document.createDocumentFragment();for(t=g.length;J<t;J++)if(e=g[J],G=eZZ(q,e))f=this.createComponent_(q[G],e[G],Q),this.deferRenderStamperBinding_(f,q[G],e[G]),E.appendChild(f);v&&this.polymerDom(v).parentNode&&f&&!W1.has(f)?u.insertBefore(E,v):u.appendChild(E)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();L&&_.hJ(this.hostElement,"yt-rendererstamper-finished",
{container:y})}else llq(this.is,u,0,Q);else g=new _.Ji("Container object not found",u,this.hostElement?this.hostElement.is:""),_.Zf(g)},
polymerDom:function(g){return this.minimizePipBreakages?g:_.Eg(g)},
getStampContainer_:function(g){return this.$&&this.$[g]||_.Tr(this.hostElement).querySelector("#"+g)},
getComponentName_:function(g,u){return typeof g==="string"?g:g.matcher?g.matcher.call(this,u):g.component},
createComponent_:function(g,u,q){g=this.getComponentName_(g,u);try{var Q=CWT.has(g);if(q&&!Q){var L=_.CK(g);try{_.x_(L)}catch(E){q="Failed to clear styles for "+g+".",E.message&&(q+=" Original error: "+E.message),_.Io(new _.Ji(q))}}else L=document.createElement(g)}catch(E){return L="YtRendererStamperBehavior failed to create "+g+".",E.message&&(L+=" Original description: "+E.message),E.message="YtRendererStamperBehavior failed to create element",_.iD(E,L),Eni.hasOwnProperty(g)?_.Io(E):_.Zf(E),document.createElement("SPAN")}this.telemetry_.create++;
return L},
deferRenderStamperBinding_:function(g,u,q){this.deferredBindingTasks_.push({component:g,typeOrConfig:u,data:q})},
flushRenderStamperComponentBindings_:function(){for(var g=0,u=this.deferredBindingTasks_.length;g<u;g++){var q=this.deferredBindingTasks_[g];if(!q)break;ZQZ(this,q.component,q.typeOrConfig,q.data)}this.deferredBindingTasks_.length=0}}];_.dL(_.r(function(g){function u(){q().seconds&&E(x5q({seconds:Number(q().seconds)-Date.now()/1E3}))}
var q=g.targetTimestamp;g=g.className;var Q=_.N(_.jR("",void 0,"U1Q8Ae")),L=Q.next().value,E=Q.next().value;_.lL(function(){u();var y=setInterval(function(){u()},1E3);
_.dB(function(){clearInterval(y)})});
return _.p("yt-countdown",{class:_.Ty("ytCountDownHost",g)},_.p("div",null,L))},"z"),"yt-countdown",{props:{targetTimestamp:_.H2,
className:_.iF}});_.m5=new _.Fv("KEY_MANAGER_TOKEN");var alh={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"};_.ag=_.r(function(g){var u=_.Hk("a",g.ref),q=g.aTagConfig?g.aTagConfig:_.G9(function(){var Q,L,E,y,v;var J=(v=_.jy((E=g.command)==null?void 0:E.call(g)))!=null?v:(y=g.command)==null?void 0:y.call(g);return _.MY({innertubeCommand:J,skipOnClick:(Q=g.skipOnClick)==null?void 0:Q.call(g),defaultTarget:(L=g.target)==null?void 0:L.call(g)})||{}},void 0,"TAvz0");
_.bX(function(){_.w("mweb_get_endpoint_from_atag_command")||(u.value._data=q()._data,u.value.params=q().params)},"dcjvAe");
return _.p("a",{el:u,href:function(){return q().href$},
rel:function(){return q().rel$},
class:function(){var Q,L;return(L=q().className)!=null?L:(Q=g.className)==null?void 0:Q.call(g)},
style:function(){var Q;if((Q=g.style)==null?0:Q.call(g))return g.style();var L;return((L=g.disabled)==null?0:L.call(g))?"pointer-events:none":""},
"aria-haspopup":function(){return!!q()["aria-haspopup$"]},
"force-new-state":OE(function(){return q()["force-new-state$"]}),
title:OE(function(){var Q,L;return(L=q().title$)!=null?L:(Q=g.title)==null?void 0:Q.call(g)}),
role:OE(function(){var Q;return((Q=g.role)==null?void 0:Q.call(g))||q().role$}),
target:OE(function(){return q().target$}),
dir:OE(function(){var Q;return((Q=g.dir)==null?void 0:Q.call(g))||q().dir}),
tabindex:function(){var Q;return q().tabindex$?Number(q().tabindex$):(Q=g.tabIndex)==null?void 0:Q.call(g)},
"aria-hidden":function(){var Q,L;return(L=q()["aria-hidden$"])!=null?L:(Q=g.ariaHidden)==null?void 0:Q.call(g)},
"aria-label":function(){var Q,L;return(L=q()["aria-label$"])!=null?L:(Q=g.ariaLabel)==null?void 0:Q.call(g)},
"aria-current":g.ariaCurrent,"aria-disabled":g.disabled,"aria-labelledby":g.ariaLabelledby,"aria-describedby":g.ariaDescribedby,"aria-selected":g.ariaSelected,"tab-identifier":g.tabIdentifier,"on:pointerdown":_.YH(function(Q){var L,E;return void((E=(L=q()).onpointerdown)==null?void 0:E.call(L,Q))}),
"on:click":_.YH(function(Q){var L,E;(E=(L=q()).onclick)==null||E.call(L,Q);var y;(y=g.onClick)==null||y.call(g,Q)}),
"on:focusin":_.YH(function(Q){var L;(L=g.onFocusin)==null||L.call(g,Q)}),
"on:focusout":_.YH(function(Q){var L;(L=g.onFocusout)==null||L.call(g,Q)})},g.children)},"B");var Y5S={duration:1E3,easing:"ease",fill:"forwards"};hZq.componentType=wB;var xeq={duration:1E3,easing:"ease",fill:"forwards"},sJW=_.r(function(g){var u=_.Hk("animated-rolling-character"),q=void 0,Q=function(){var v,J;return i1((v=g.character)==null?void 0:v.call(g))||i1((J=g.previousCharacter)==null?void 0:J.call(g))},L=_.N(_.jR(0,void 0,"CYT8Ob")),E=L.next().value,y=L.next().value;
_.lL(function(){if(window.ResizeObserver&&_.w("web_fix_rolling_numbers_zoom_safari")){var v=new _.Kr(function(){var f,t,e=Math.round(((t=(f=u.value.querySelector("div"))==null?void 0:f.getBoundingClientRect().height)!=null?t:0)*100)/100;e&&y(e)},500),J=new ResizeObserver(function(){v.fire()});
J.observe(u.value);_.dB(function(){J.disconnect();v.dispose()})}});
_.bX(function(){var v=_.w("web_fix_rolling_numbers_zoom_safari")?E:g.marginMultiplier;if(v()){var J;(J=q)==null||J.cancel();if(Q()){var f;J=((f=g.previousCharacter)==null?0:f.call(g))?Number(g.previousCharacter())+10:g.rollUp()?0:30;var t;if((t=g.shouldAnimate)==null||!t.call(g)){var e,G;J-=K1K((e=g.character)==null?void 0:e.call(g),(G=g.previousCharacter)==null?void 0:G.call(g),g.rollUp(),J)}}else{J=g.rollUp()?0:2;var R;(R=g.shouldAnimate)!=null&&R.call(g)||(f=J,t=g.rollUp()?-1:1,J=f-t)}u.value.style.marginTop=
"-"+J*v()+"px";var H;if((H=g.shouldAnimate)==null?0:H.call(g)){var l,d;q=BPJ(u.value,(l=g.character)==null?void 0:l.call(g),(d=g.previousCharacter)==null?void 0:d.call(g),g.rollUp(),J,Q(),v())}else{var F;u.value.style.display=((F=g.character)==null?0:F.call(g))?"":"none"}}},"CA6Pmf");
return _.p("animated-rolling-character",{el:u,class:"animatedRollingCharacterHost"},_.p(_.M,{cond:Q,then:function(){return _.p(PyR,null)},
else:function(){return _.p(Nza,{character:g.character})}}))},"E");
sJW.idomCompat=!0;var zZq=_.w("web_enable_sink_animated_rolling_character_and_number")?sJW:hZq,yqH=_.w("web_enable_sink_animated_rolling_character_and_number")?sJW:OQm(hZq),PyR=_.r(function(){for(var g=[],u=1;u<30;u++)g.push(_.p("div",null,u%10));return _.p(_.U9,null,_.p("div",null,"\u00a0"),g,_.p("div",null,"\u00a0"))},"F"),Nza=_.r(function(g){var u=g.character;
return _.p(_.U9,null,_.p("div",null,"\u00a0"),_.p(_.M,{cond:function(){return!(u==null?0:u())||_.vS(u==null?void 0:u())},
then:function(){return _.p("div",null,"\u00a0")},
else:function(){return _.p("div",null,u)}}),_.p("div",null,"\u00a0"))},"G");nwq.componentType=wB;var vnn=_.r(function(g){var u=void 0,q=void 0,Q=function(){var E;return((E=g.fontSizeMultiplier)==null?0:E.call(g))?g.heightPx()*g.fontSizeMultiplier():g.heightPx()},L=_.G9(function(){if(!g.numberText())return[];
var E,y,v=((E=g.forceRollUp)==null?void 0:E.call(g))||!q||!((y=g.numberValue)==null?0:y.call(g))||q<g.numberValue(),J,f=g.numberText();E=Q();y=!((J=g.shouldAnimate)==null||!J.call(g));J=[];var t=0,e=0,G=(u?u.replace(/\D/g,"").length:0)-(f?f.replace(/\D/g,"").length:0),R=u?u.split(/(\d)/).filter(Boolean):[];for(f=f.split(/(\d)/).filter(Boolean);G<0;){var H=f[e];J.push({character:H,rollUp:v,marginMultiplier:E,shouldAnimate:y});e++;i1(H)&&G++}for(;t<G;)H=R[t],J.push({previousCharacter:H,rollUp:v,marginMultiplier:E,
shouldAnimate:y}),t++,i1(H)||G++;for(;e<f.length;)G=f[e],H=R[t],i1(G)===i1(H)?(e++,t++):i1(G)?(t++,G=void 0):i1(H)&&(e++,H=void 0),J.push({character:G,previousCharacter:H,rollUp:v,marginMultiplier:E,shouldAnimate:y});u=g.numberText();var l;q=(l=g.numberValue)==null?void 0:l.call(g);return J},void 0,"kWiBv");
return _.p("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return g.numberText()?["height: "+Q()+"px;","line-height: "+g.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.p(_.R4,{each:L,keyBy:"INDEX"},function(E){return _.p(yqH,{character:function(){return E().character},
previousCharacter:function(){return E().previousCharacter},
marginMultiplier:function(){return E().marginMultiplier},
rollUp:function(){return E().rollUp},
shouldAnimate:function(){return E().shouldAnimate}})}))},"H");
vnn.idomCompat=!0;_.DXi=_.w("web_enable_sink_animated_rolling_character_and_number")?vnn:OQm(nwq);var pu$=function(g,u){this.fillAnimation=new Animation(Ueq(g),document.timeline);this.strokeAnimation=new Animation(gMh(u),document.timeline)};
pu$.prototype.play=function(){var g,u;(u=(g=this.fillAnimation).play)==null||u.call(g);var q,Q;(Q=(q=this.strokeAnimation).play)==null||Q.call(q)};
pu$.prototype.cancel=function(){var g,u;(u=(g=this.fillAnimation).cancel)==null||u.call(g);var q,Q;(Q=(q=this.strokeAnimation).cancel)==null||Q.call(q)};_.VU=_.r(function(g){var u=g.model;var q=g.pointerDownEvent;var Q=g.pointerUpEvent;var L=g.pointerLeaveEvent;var E=g.hovered;g=_.Hk("yt-touch-feedback-shape");var y=_.Hk("div"),v=_.Hk("div"),J=_.N(_.mX(function(){return(Q==null?0:Q())||(L==null?0:L())?!1:!(q==null||!q())||!1})),f=J.next().value,t=J.next().value,e=void 0,G=function(){!e&&v.value&&y.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(e=new pu$(v.value,y.value));
var V;(V=e)==null||V.play()},R=function(){var V;
(V=e)==null||V.cancel()},H=function(){var V;
(V=e)==null||V.cancel()};
_.bX(function(){(Q==null?0:Q())&&G()},"bg756c");
_.bX(function(){(q==null?0:q())&&R()},"QAes8c");
_.bX(function(){(L==null?0:L())&&H()},"YaFbrc");
J=_.YH(function(){G();t(!1)});
var l=_.YH(function(){R();t(!0)}),d=_.YH(function(){H();
t(!1)});
_.dB(function(){if(e){var V;(V=e)==null||V.cancel();e=void 0}});
var F={};f=_.Ty("yt-spec-touch-feedback-shape",function(){return uXM(u().color)},function(){return q8m(u().thumbnailSize,!!u().isExtended)},(F["yt-spec-touch-feedback-shape--focused"]=function(){return!!u().focused&&!u().disabled},F["yt-spec-touch-feedback-shape--circular"]=function(){return!!u().circular},F["yt-spec-touch-feedback-shape--down"]=f,F["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!u().triggerEvents},F["yt-spec-touch-feedback-shape--hovered"]=function(){return E==
null?void 0:E()},F));
return _.p("yt-touch-feedback-shape",{el:g,class:f,style:_.xH({"margin-top":function(){return u().customTopExtend?"-"+u().customTopExtend+"px":void 0}}),
"on:mousedown":l,"on:mouseup":J,"on:pointerleave":d,"on:touchstart":l,"on:touchend":J,"aria-hidden":!0},_.p(_.M,{cond:function(){return!!u().hoverEffect},
then:function(){return _.p("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.xH({"border-radius":function(){return u().borderRadius},
background:function(){var V;if(V=u().hoverEffect){for(var z=[],O=_.N((V==null?void 0:V.lightingTechniques)||[]),W=O.next();!W.done;W=O.next())switch(W.value){case 2:var x=W=void 0,k=void 0,LZ=void 0;z.push("linear-gradient(180deg, "+((W=V)==null?void 0:(x=W.palette)==null?void 0:x.keyLight)+", "+((k=V)==null?void 0:(LZ=k.palette)==null?void 0:LZ.background)+")")}var sb,Rm;z.push((sb=u().hoverEffect)==null?void 0:(Rm=sb.palette)==null?void 0:Rm.background);V=z.join(", ")}else V=void 0;return V}})})}}),
_.p("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.xH({"border-radius":function(){return u().borderRadius},
"border-color":function(){var V,z;return(V=u().touchEffect)==null?void 0:(z=V.palette)==null?void 0:z.background}}),
el:y}),_.p("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.xH({"border-radius":function(){return u().borderRadius},
"background-color":function(){var V,z;return(V=u().touchEffect)==null?void 0:(z=V.palette)==null?void 0:z.background}}),
el:v}))},"L");
_.VU.idomCompat=!0;var Jq5={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 XK=_.GM();XK=XK.toLowerCase();if(_.pZ(XK,"android")){var jJ5=XK.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);jJ5&&parseFloat(jJ5[1])<100||XK.match("("+Object.keys(Jq5).join("|")+")")};var f$a=_.r(function(g){return _.p(_.M,{cond:g.aTagConfig,then:function(u){return _.p(_.ag,{aTagConfig:u,disabled:g.disabled,className:g.className,style:g.style,title:g.title,ariaLabel:g.ariaLabel,ariaCurrent:function(){var q,Q;return((q=g.toggleable)==null?void 0:q.call(g))&&((Q=g.toggled)==null?void 0:Q.call(g))},
ref:g.ref},g.children)},
else:function(){return _.p("button",{el:_.lF(g.ref),"on:click":_.YH(function(u){var q;return(q=g.onClick)==null?void 0:q.call(g,u)}),
class:g.className,title:g.title,style:g.style,disabled:g.disabled,"aria-pressed":function(){var u,q;return((u=g.toggleable)==null?0:u.call(g))?!((q=g.toggled)==null||!q.call(g)):void 0},
"aria-label":g.ariaLabel,"aria-disabled":g.visiblyDisabled,"aria-hidden":g.ariaHidden,tabindex:g.tabIndex},g.children)}})},"M"),t4n=_.r(function(g){var u=g.data;
var q=g.hasIconLeading;var Q=g.hasIconLeadingTrailing;var L=g.hasIconTrailing;var E=g.iconButton;var y=g.iconClassName;var v=g.secondaryIconClassName;var J=g.icon;var f=g.secondaryIcon;var t=g.textContentClassName;return _.p(rg,{className:"",style:"display: inherit; justify-content: center"},_.p(_.M,{debugInstance:"V4z1Uc",cond:function(){return J&&(q()||Q()||(E==null?void 0:E()))},
then:function(){return _.p(rg,null,_.p("div",{class:y,"aria-hidden":"true"},J==null?void 0:J()))}}),_.p(_.M,{debugInstance:"ok3btb",
cond:function(){return(u().buttonText||u().animatedTextProps||u().formattedButtonText)&&!(E==null?0:E())},
then:function(){return _.p(rg,null,_.p(M48,{className:t,iconPosition:function(){return u().iconPosition},
text:function(){return u().buttonText},
oneOffCustomTextWrap:function(){return u().oneOffCustomTextWrap},
formattedButtonText:function(){return u().formattedButtonText},
animatedTextProps:function(){return u().animatedTextProps}}))}}),_.p(_.M,{debugInstance:"DO5Rz",
cond:L,then:function(){return _.p(rg,null,_.p("div",{class:y},J==null?void 0:J()))}}),_.p(_.M,{debugInstance:"bnojSc",
cond:Q,then:function(){return _.p(rg,null,_.p("div",{class:v},f==null?void 0:f()))}}),_.p(_.M,{debugInstance:"HN3kad",
cond:function(){return!u().disabled&&!0},
then:function(){return _.p(_.VU,{model:function(){var e=u();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"),M48=_.r(function(g){var u=function(){var q,Q;
return((q=g.iconPosition)==null?void 0:q.call(g))==="icon-with-label"||((Q=g.oneOffCustomTextWrap)==null?void 0:Q.call(g))};
return _.p("div",{class:g.className,"aria-hidden":function(){var q,Q,L;return((q=g.ariaHidden)==null?void 0:q.call(g))&&(!((Q=g.animatedTextProps)==null||!Q.call(g))||!((L=g.formattedButtonText)==null||!L.call(g)))}},_.p(_.wi,null,_.p(_.Gv,{when:function(){var q;
return(q=g.animatedTextProps)==null?void 0:q.call(g)}},function(){return _.p(_.DXi,{numberText:function(){return g.animatedTextProps().numberText},
numberValue:function(){return g.animatedTextProps().numberValue},
heightPx:function(){return g.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return g.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return g.animatedTextProps().shouldAnimate},
forceRollUp:function(){return g.animatedTextProps().forceRollUp}})}),_.p(_.Gv,{when:function(){var q;
return(q=g.formattedButtonText)==null?void 0:q.call(g)}},function(){return _.p(_.c2,{text:function(){return Object.assign({},g.formattedButtonText(),{lineBreakMode:u()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":g.formattedButtonText().lineBreakMode,
alignment:u()?"TEXT_ALIGNMENT_CENTER":g.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!u()}})}),_.p(_.Gv,{when:function(){var q,Q;
return((q=g.iconPosition)==null?void 0:q.call(g))==="icon-with-label"&&((Q=g.text)==null?void 0:Q.call(g))}},function(){return _.p(_.c2,{text:function(){return{content:g.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.p(_.$v,null,function(){return g.text})))},"O"),ep5=_.r(function(g){return _.p(_.M,{debugInstance:"kM7Sgc",
cond:g.hasLabel,then:function(){var u;return _.p("label",{class:g.className},g.children,(u=g.textContent)==null?void 0:u.call(g))},
else:function(){return g.children}})},"P"),rg=_.r(function(g){return g.children},"Q");var GCi=_.r(function(g){function u(){E(void 0);v(void 0);f(void 0)}
var q=_.lF(),Q=_.N(_.jR(void 0,void 0,"Ug77pc")),L=Q.next().value,E=Q.next().value;Q=_.N(_.jR(void 0,void 0,"XGf7Zb"));var y=Q.next().value,v=Q.next().value,J=_.N(_.jR(void 0,void 0,"w55oqd"));Q=J.next().value;var f=J.next().value;J=_.N(_.jR(0,void 0,"rBgpzc"));var t=J.next().value,e=J.next().value;J=_.YH(function(){switch(t()){case 1:e(2);break;case 3:var R,H;(H=(R=q.value).hidePopover)==null||H.call(R);e(0);u()}});
_.bX(function(){if(g.show()){var R;E((R=g.children)==null?void 0:R.call(g));var H;v((H=g.location)==null?void 0:H.call(g));var l;f((l=g.classNames)==null?void 0:l.call(g));switch(t()){case 0:var d,F;(F=(d=q.value).showPopover)==null||F.call(d);e(1);break;case 3:e(1);var V,z;(z=(V=q.value).hidePopover)==null||z.call(V);var O,W;(W=(O=q.value).showPopover)==null||W.call(O)}}else switch(t()){case 2:e(3);break;case 1:var x,k;(k=(x=q.value).hidePopover)==null||k.call(x);u();e(0)}},"Z8V4Qb");
_.I4(function(){});
var G={};return _.p("yt-popover",{popover:"manual",el:q,style:_.xH({left:function(){var R;return(R=y())==null?void 0:R.left},
top:function(){var R;return(R=y())==null?void 0:R.top},
bottom:function(){var R;return(R=y())==null?void 0:R.bottom},
right:function(){var R;return(R=y())==null?void 0:R.right}}),
class:_.Ty("ytPopoverComponentHost",Q,(G.ytPopoverComponentHostClosing=function(){return t()===3},G.ytPopoverComponentHostSeeThrough=function(){var R;
return((R=g.seeThrough)==null?void 0:R.call(g))===!0},G)),
"on:animationend":J},L)},"S");var $XH={left:"0px",right:"auto",top:"0px",bottom:"auto"},RpX=function(){var g=this;this.registerTooltipElement=function(q){var Q;g.tooltipElement=(Q=q.querySelector("yt-popover"))!=null?Q:void 0};
var u=_.N(_.jR(void 0,void 0,"EIh5sc"));this.state=u.next().value;this.setState=u.next().value;u=_.N(_.jR(void 0,void 0,"PC1M0b"));this.schedulerJobID=u.next().value;this.setSchedulerJobID=u.next().value},Dzk=function(g,u){var q=nr,Q=_.Hv.addJob(function(){var L=wuZ(q,g,u);
q.currentConfig=u;q.setState({text:u.text,location:_.w("web_tooltip_location_fix")?void 0:L,anchor:g,offset:u.offset,style:u.style})},4,u.delay);
q.setSchedulerJobID(Q)},prK=function(){var g=nr,u=g.schedulerJobID();
u&&(_.Hv.cancelJob(u),g.setSchedulerJobID(void 0));g.setState(void 0);g.currentConfig=void 0};
RpX.prototype.notify=function(g,u){var q;((q=this.state())==null?void 0:q.anchor)===g&&(q=wuZ(this,g,u),this.currentConfig=u,this.setState({text:u.text,location:_.w("web_tooltip_location_fix")?void 0:q,anchor:g,offset:u.offset,style:u.style}))};
var wuZ=function(g,u,q){var Q=u.getBoundingClientRect();u=window.innerWidth;var L=window.innerHeight,E=q.location,y=q.offset;q=q.text;if(g=g.tooltipElement){var v=getComputedStyle(g);g=v.font;var J=zy(v.lineHeight),f=zy(v.paddingLeft),t=zy(v.paddingRight),e=zy(v.paddingTop);v=zy(v.paddingBottom);var G=document.createElement("canvas").getContext("2d");G.font=g;q={width:G.measureText(q).width+f+t,height:J+e+v}}else q=void 0;g=q;if(!g)return $XH;q=g.width;g=g.height;f=y+g;e=y+q;J=Q.top>=f;f=L-Q.bottom>=
f;t=Q.left>=e;e=u-Q.right>=e;v=E;switch(E){case "top":!J&&f&&(v="bottom");break;case "bottom":!f&&J&&(v="top");break;case "left":!t&&e&&(v="right");break;case "right":!e&&t&&(v="left")}switch(v){case "top":E=Q.left+Q.width/2-q/2;Q=Q.top-g-y;break;case "bottom":E=Q.left+Q.width/2-q/2;Q=Q.bottom+y;break;case "left":E=Q.left-q-y;Q=Q.top+Q.height/2-g/2;break;case "right":E=Q.right+y;Q=Q.top+Q.height/2-g/2;break;default:E=Q.left+Q.width/2-q/2,Q=Q.bottom+y}y=Object.assign({},$XH);E+q>u?(y.right="0px",y.left=
"auto"):(y.left=Math.round(Math.max(0,E)+window.scrollX)+"px",y.right="auto");Q+g>L?(y.bottom="0px",y.top="auto"):(y.top=Math.round(Math.max(0,Q)+window.scrollY)+"px",y.bottom="auto");return y};var nr;nr=new RpX;_.cqZ=_.r(function(){var g=_.G9(function(){var L;return(L=nr.state())==null?void 0:L.anchor},void 0,"tiGUn"),u=_.G9(function(){var L;
return(L=nr.state())==null?void 0:L.text},void 0,"TA2GQe"),q=_.G9(function(){var L;
return(L=nr.state())==null?void 0:L.style},void 0,"ucvFsf"),Q=_.w("web_tooltip_location_fix")?_.G9(function(){var L=g();
var E=nr.currentConfig;if(L&&E)return wuZ(nr,L,E)},void 0,"EpDz6"):_.G9(function(){var L;
return(L=nr.state())==null?void 0:L.location},void 0,"aRJtfd");
return _.p("yt-tooltip",{class:"ytTooltipContainerHost",el:_.lF(nr.registerTooltipElement),"aria-hidden":"true"},_.p(GCi,{classNames:function(){switch(q()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:Q,show:function(){return!!u()&&!!Q()},
seeThrough:!0},u))},"T");var LZM=o2("stamper-context");_.W2=_.r(function(g){var u=g.data;var q=g.icon;var Q=g.iconName;var L=g.animateIcon;var E=g.secondaryIcon;var y=g.secondaryIconName;var v=g.focusedOverride;var J=g.clientOnlyWizTooltipsEnabled;jqS();var f=QqF(u),t=f.size,e=f.style;g=f.disabled;var G=f.onTap,R=f.alignByText,H=f.aTagConfig,l=f.customColors,d=f.segmentedPosition,F=f.toggled,V=f.toggleable,z=f.accessibilityLabel,O=f.onToggle,W=f.iconPosition,x=f.oneOffCustomTextWrap,k=f.disableTextEllipsis,LZ=f.disableBackdropFilter,sb=f.tooltipText,
Rm=f.ariaHidden,M3=f.tabIndex,tT=f.buttonText,mJ=f.formattedButtonText,hT=f.animatedTextProps,Yu=f.onClickRateLimitMs,Mx=Nhk(u,q,E,Q,y,v,L),po=Mx.type;q=Mx.shouldFocus;Q=Mx.hasIconLeading;L=Mx.hasIconTrailing;var KZ=Mx.hasIconLeadingTrailing,G2=Mx.hasIconOnly;E=Mx.hasIconOnly40;var Ab=Mx.hasIconWithLabel;y=Mx.iconButton;var tb=Mx.visiblyDisabled;v=Mx.overrideSmallSizeIcon;var lx=Mx.iconToRender;Mx=Mx.secondaryIconToRender;var NE=_.N(Juh(sb,f.tooltipShape)).next().value,fZ=function(Co){G==null||G(Co);
V()&&(O==null||O(Co))},Xf=_.G9(function(){return Yu==null?void 0:Yu()},void 0,"siKywb"),eX=_.G9(function(){return Xf()?g$8(fZ,Xf()):fZ},void 0,"wDTcN");
f={};var no={};return _.p(ep5,{className:_.Ty("yt-spec-button-shape-with-label",(f["yt-spec-button-shape-with-label--is-overlay"]=function(){return e()==="overlay"||e()==="overlay-dark"},f)),
hasLabel:Ab,textContent:function(){return _.p(M48,{text:tT,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:x,iconPosition:W,formattedButtonText:mJ,animatedTextProps:hT})}},_.p(f$a,{aTagConfig:H,
className:_.Ty("yt-spec-button-shape-next",function(){return sqK(po())},function(){return tb()?void 0:yuT(e())},function(){return vMJ(t())},(no["yt-spec-button-shape-next--disabled"]=tb,no["yt-spec-button-shape-next--focused"]=q,no["yt-spec-button-shape-next--icon-trailing"]=L,no["yt-spec-button-shape-next--icon-leading"]=Q,no["yt-spec-button-shape-next--icon-leading-trailing"]=KZ,no["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return KZ()&&!(tT()||mJ())},no["yt-spec-button-shape-next--icon-button"]=
function(){return G2()||Ab()},no["yt-spec-button-shape-next--icon-only-default"]=E,no["yt-spec-button-shape-next--align-by-text"]=R,no["yt-spec-button-shape-next--segmented-start"]=function(){return d()==="start"},no["yt-spec-button-shape-next--segmented-end"]=function(){return d()==="end"},no["yt-spec-button-shape-next--override-small-size-icon"]=v,no["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=x,no["yt-spec-button-shape-next--disable-text-ellipsis"]=k,no["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!LZ()&&!_.w("web_disable_backdrop_filter")},no)),
style:function(){var Co=l();if(Co){var gC=Co.color;var Ca=Co.backgroundColor;Co=Co.borderColor;var oR="";gC&&(oR+="color: "+gC+";");Ca&&(oR+="background-color: "+Ca+";");Co&&(oR+="border-color: "+Co+";");gC={style:oR}}else gC={};return gC.style},
onClick:function(Co){eX()(Co)},
disabled:g,ariaLabel:z,toggleable:V,toggled:F,title:function(){return(J==null?0:J())||!sb()?"":sb()},
visiblyDisabled:tb,ariaHidden:Rm,tabIndex:M3,ref:function(Co){(J==null?0:J())&&NE(Co)}},_.p(t4n,{data:u,
hasIconLeading:Q,hasIconLeadingTrailing:KZ,hasIconTrailing:L,iconButton:y,icon:lx,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:Mx})))},"V");
_.W2.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.TT=_.r(function(g){var u=g.data;var q=g.className;var Q=g.style;var L=g.useOutlinedIcon;var E=g.buttonOverrides;var y=g.animatedTextProps;var v=g.onClick;var J=g.target;var f=_.Hk("button-view-model",function(W){W.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var x=u().targetId;x&&_.ka(_.S9(),x,W);return function(){nI(_.S9(),W)}}),t=function(){return u().iconName},e=function(){var W;
return(W=u())==null?void 0:W.entityKey},G=_.Sy(function(W){a:{var x=e(),k=u().buttonEntitySelectorType;
if(k&&x)switch(k){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":W=(W=_.ho(W,x))?{isHidden:W.adsState==="ADS_STATE_NONE"||W.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:W={isHidden:!1};break a}W=void 0}return W}),R,H=(R=_.Bk().resolve(_.xv(_.gy)))==null?void 0:R(),l=function(){var W=u();
var x=E==null?void 0:E(),k=y==null?void 0:y(),LZ=J==null?void 0:J();if(W){var sb=wrJ(W.type);var Rm=!!W.title||!!W.titleFormatted;var M3=!(!W.iconName&&!W.iconImage);Rm=M3&&!Rm?"icon-only":M3?W.iconTrailing||W.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Rm==="icon-only-40"&&(sb="text");var tT;M3=(tT=x==null?void 0:x.state)!=null?tT:cuh(W.state);var mJ,hT=(mJ=x==null?void 0:x.disabled)!=null?mJ:W.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||W.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.w("web_button_vm_refactor_disabled")){var Yu;hT=(Yu=x==null?void 0:x.disabled)!=null?Yu:M3==="disabled"}k=k&&k.numberText&&!isNaN(Number(k.numberValue))?k:void 0;mJ=Object;Yu=mJ.assign;tT=W.title;var Mx=W.titleFormatted,po=W.accessibilityText,KZ=RXq(W.style),G2=HgS(W.buttonSize);LZ=$zu(W,f,hT,v,LZ);hT=hT&&!W.onDisabledTap;var Ab=eXS(W,f),tb=W.customFontColor,lx=W.customBackgroundColor;var NE=W.customBorderColor;var fZ=W.customDarkThemeFontColor,Xf=W.customDarkThemeBackgroundColor,eX=W.customDarkThemeBorderColor;
tb=H&&fZ?fZ:tb;lx=H&&Xf?Xf:lx;NE=H&&eX?eX:NE;NE={color:tb?_.jh(tb):void 0,backgroundColor:lx?_.jh(lx):void 0,borderColor:NE?_.jh(NE):void 0};if(eX=_.c(W.tooltipData,kuZ)){var no;lx={text:(no=eX.tooltipText)!=null?no:"",location:Mr3(eX.placement),style:eX.style}}else lx=void 0;W=Yu.call(mJ,{},{buttonText:tT,formattedButtonText:Mx,animatedTextProps:k,accessibilityLabel:po,style:KZ,type:sb,state:M3,size:G2,iconPosition:Rm,onTap:LZ,disabled:hT,aTagConfig:Ab,customColors:NE,tooltipText:W.tooltip,tooltipShape:lx},
x)}else W={style:"mono",type:"text",state:"active",size:"M"};W.focused=V();return W},d=function(){return EMF(l(),!!u().iconName)};
g=_.N(_.jR(!1,void 0,"yZ8hab"));R=g.next().value;var F=g.next().value,V=R;g=_.YH(function(){var W=_.Bk().resolve(_.xv(_.m5));W&&F(W.isKeyBoardInUse());return!0});
R=_.YH(function(){F(!1);return!0});
_.bX(function(){var W,x=_.c(u==null?void 0:(W=u())==null?void 0:W.onVisible,_.Jo);x&&_.fr(x,{disableClickTracking:!0})},"G9MlKd");
var z=function(){var W;return(u==null?0:(W=u())==null?0:W.iconImage)?{sources:[u().iconImage]}:void 0},O=_.w("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.p("button-view-model",{el:f,class:_.Ty("ytSpecButtonViewModelHost",q),"on:focusin":g,"on:focusout":R},_.p(_.M,{cond:function(){var W,x;return!((x=e()&&u().buttonEntitySelectorType&&((W=G())==null?void 0:W.isHidden))!=null&&x)},
then:function(){return _.p(_.M,{cond:z,then:function(W){return _.p(_.W2,{data:l,icon:function(){return _.p(_.IT,{data:W,alt:"",targetWidth:d,targetHeight:d,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:O})},
else:function(){return _.p(_.W2,{data:l,icon:function(){return _.p(_.B1,{icon:t,active:function(){return(L==null?0:L())?!1:l().toggled},
animateIcon:function(){var W;return!!(Q==null?0:(W=Q())==null?0:W.animateIcon)},
size:d})},
clientOnlyWizTooltipsEnabled:O})}})}}))},"X");
_.TT.idomCompat={callbacks:{onClick:!0}};_.dL(_.r(function(g){return _.p("yt-button-view-model",{id:g.id,class:_.Ty(g.scopingClassName,g.classes),icon:function(){var u;return(u=g.icon)==null?void 0:u.call(g)},
"dialog-dismiss":function(){var u;return((u=g.dialogDismiss)==null?0:u.call(g))?"":void 0}},_.p(_.TT,{data:function(){var u;
return(u=g.data)==null?void 0:u.call(g)},
className:function(){var u;return(u=g.className)==null?void 0:u.call(g)},
style:function(){var u;return(u=g.style)==null?void 0:u.call(g)},
useOutlinedIcon:function(){var u;return(u=g.useOutlinedIcon)==null?void 0:u.call(g)},
buttonOverrides:function(){var u;return(u=g.buttonOverrides)==null?void 0:u.call(g)},
animatedTextProps:function(){var u;return(u=g.animatedTextProps)==null?void 0:u.call(g)},
onClick:function(u){var q;return(q=g.onClick)==null?void 0:q.call(g,u)}}))},"Y"),"yt-button-view-model",{props:{data:_.H2,
className:_.H2,style:_.H2,useOutlinedIcon:_.H2,buttonOverrides:_.H2,animatedTextProps:_.H2,onClick:_.iF,scopingClassName:_.H2,id:_.H2,icon:_.H2,dialogDismiss:_.H2,classes:_.H2,target:_.iF}});_.dL(_.r(function(g){var u=g.data;var q=g.id;var Q=g.className;var L=g.iconName;var E=g.animateIcon;var y=g.secondaryIconName;g=_.N(_.jR(!1,void 0,"TtJl8"));var v=g.next().value,J=g.next().value,f=function(){var e=_.Bk().resolve(_.xv(_.m5));e&&J(e.isKeyBoardInUse())},t=function(){J(!1)};
g=_.Hk("yt-button-shape",function(e){if(_.Bk().resolve(_.xv(_.m5)))return e.addEventListener("focusin",f),e.addEventListener("focusout",t),function(){e.removeEventListener("focusin",f);e.removeEventListener("focusout",t)}});
return _.p("yt-button-shape",{el:g,id:q,class:Q},_.p(_.M,{cond:u,then:function(){return _.p(_.W2,{data:u,iconName:L,secondaryIconName:y,focusedOverride:v,animateIcon:E})}}))},"Z"),"yt-button-shape",{props:{data:_.H2,
id:_.H2,className:_.H2,iconName:_.H2,animateIcon:_.H2,secondaryIconName:_.H2,clientOnlyWizTooltipsEnabled:_.H2,disableUpgrade:_.H2},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var ha=function(){var g=_.X.apply(this,arguments)||this;g.isGoalActive=!0;return g};
_.A(ha,_.X);ha.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
ha.prototype.progressBarChanged=function(){var g=_.Tr(this.hostElement).querySelector("#progress-bar-progress"),u,q,Q,L=(Q=Number((u=this.creatorGoalState)==null?void 0:u.currentGoalCount)/Number((q=this.creatorGoalState)==null?void 0:q.totalGoalCount)*100)!=null?Q:0,E;g.style.width=((E=Math.min(L,100))!=null?E:0)+"%"};
ha.prototype.goalStateChanged=function(){var g;this.isGoalActive=((g=this.creatorGoalState)==null?void 0:g.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var u;g={"--yt-progress-bar-color":$jS((u=this.creatorGoalState)==null?void 0:u.progressBarColor)};_.x_(this.hostElement,g)};
ha.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.z3.Object.defineProperties(ha.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var g;return this.isGoalActive&&!((g=this.creatorGoalState)==null||!g.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.creatorGoalState)==null?0:g.endTimestampMs){var u;g=Number((u=this.creatorGoalState)==null?void 0:u.endTimestampMs)/1E3;return{seconds:String(g)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.creatorGoalState)==null?0:g.themedTargetImage){var u;g=_.c((u=this.creatorGoalState)==null?void 0:u.themedTargetImage,XyX);return this.isAppDarkTheme()?g==null?void 0:g.imageDark:g==null?void 0:g.imageLight}}}});
_.z3.Object.defineProperties(ha,{template:{configurable:!0,enumerable:!0,get:function(){return opX()}}});
ha.prototype.goalStateChanged=ha.prototype.goalStateChanged;ha.prototype.progressBarChanged=ha.prototype.progressBarChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],ha.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);
_.Y([_.a({selectorArgs:["data.creatorGoalEntityKey"],selector:function(g,u){return _.BC(g.entities,"creatorGoalEntity",u)}}),
_.K("design:type",Object)],ha.prototype,"creatorGoalState",void 0);_.Y([_.a(),_.K("design:type",Object)],ha.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],ha.prototype,"isGoalActive",void 0);_.Y([_.C("creatorGoalState","isGoalActive"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ha.prototype,"shouldShowCountdown",null);_.Y([_.C("creatorGoalState"),_.K("design:type",Object),_.K("design:paramtypes",[])],ha.prototype,"endTimestamp",null);
_.Y([_.C("creatorGoalState"),_.K("design:type",Object),_.K("design:paramtypes",[])],ha.prototype,"targetIconThemedImage",null);_.Y([_.k_("creatorGoalState.currentGoalCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ha.prototype,"progressBarChanged",null);_.Y([_.k_("creatorGoalState.creatorGoalState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ha.prototype,"goalStateChanged",null);
_.Y([_.jP({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],ha);_.T(ha,"yt-creator-goal-progress-flow-view-model",function(){return opX()},{mode:0});var HtX;var AqH;var YK=function(){return _.X.apply(this,arguments)||this};
_.A(YK,_.X);YK.prototype.attached=function(){var g,u,q;if(this==null?0:(g=this.data)==null?0:(u=g.pdgPurchasedBumperLoggingDirectives)==null?0:(q=u.loggingDirectives)==null?0:q.trackingParams){var Q,L,E;lRm(this==null?void 0:(Q=this.data)==null?void 0:(L=Q.pdgPurchasedBumperLoggingDirectives)==null?void 0:(E=L.loggingDirectives)==null?void 0:E.trackingParams)}};
YK.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],YK.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],YK.prototype,"data",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],YK);
_.T(YK,"yt-live-chat-item-bumper-view-model",function(){if(AqH===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;HtX===void 0&&(HtX=document.createElement("template"));var Q=HtX;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);AqH=g}g=AqH;return g},{mode:0});var Zt5;var l$X;_.la=function(g,u){this.data=g;this.actions=u;this.data=g;this.actions=u};
_.Gc=function(){};_.Ov={};_.Ov.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(g,u){IRk(this.hostElement,g,u)},
getNavigationEndpointPopupAction:function(g){return igZ(g,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(g,u){CKK(this.hostElement,g,u,this.openPopupConfig)}};var ThT=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.KK={};
_.KK.YtEndpointBehavior=[_.Ov.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.FR("openPopupConfig");(this.useClickHandler=_.mW("useClickHandler",!1))?this.hostElement.addEventListener("click",B9(this,this.onEndpointClick_)):(ZF(this.hostElement,"tap",B9(this,this.onEndpointTap_)),ZF(this.hostElement,"touchend",B9(this,this.onEndpointTouchEnd_)));ZF(this.hostElement,"touchstart",B9(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
B9(this,this.onEndpointTapStart_))},
onEndpointClick_:function(g){FuF(this.hostElement,g,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(g){var u=this.hostElement,q=this.openPopupConfig,Q=this.disableCommandHandlerOverride;Q=Q===void 0?!1:Q;var L=bg3(g);if(L){L.href&&eh(L.href);var E=g.detail;var y=E.sourceEvent;E=E.preventer;y=y.button!==void 0?y.button===0&&!oT(y):E?!oT(E):!0;L.data&&y&&dzT(u,L,g,q,Q)}},
onEndpointTouchEnd_:function(g){oT(g)||bg3(g)&&g.preventDefault()},
onEndpointTapStart_:function(g){ru3(g)}}];_.xK={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(g){for(var u=_.VC.getInstance(),q=_.N(Object.keys(g)),Q=q.next();!Q.done;Q=q.next()){var L=Q.value;Q=g[L];if(this&&this[Q]){var E=u.actionRoutingMap.get(L);E||(E=new Map,u.actionRoutingMap.set(L,E));u.registerActionHandler(this,L,this[Q].bind(this),E)}else L=Error("od"),L.params=Q,_.a4(L)}},
unregisterActionMap:function(g){_.r9(_.VC.getInstance(),g,this)}}]};var ua=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_"+(_.w("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.w("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.w("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:_.w("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:_.w("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:_.w("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var gv;var qy=new Map;var Bhf=window.matchMedia("(forced-colors: active)").matches;var I$0;var itZ;var Cy5=new _.Fv("LOTTIE_LOADER_TOKEN");_.B2=_.r(function(g){var u=g.data;var q=g.className;var Q=g.animationName;var L=g.animationRef;var E=g.elRefForInterop;var y=_.AM("lottie-component"),v;_.dB(function(){var f;return void((f=v)==null?void 0:f.destroy())});
var J;_.bX(function(){var f=_.mV(Q);if(f!==J){J=f;var t=Object.assign({},{animationName:f,animationRef:_.mV(L)},_.mV(u));try{_.Bk().resolve(Cy5)().then(function(R){var H;(H=v)==null||H.destroy();var l,d;H=(d=E==null?void 0:(l=E())==null?void 0:l.value)!=null?d:y.value;l=t.animationRef;d=t.listeners;R=R.loadAnimation(Object.assign({},{container:H},t.animationConfig));l&&(l.lottieEl=R);if(d)for(H=_.N(Object.entries(d)),l=H.next();!l.done;l=H.next())d=_.N(l.value),l=d.next().value,(d=d.next().value)&&
R.addEventListener(l,d);v=R})}catch(R){f=R;
var e="LottieComponent error.";f.message&&(e+=" Original description: "+f.message);_.iD(f,e);_.Io(f);var G;((G=t.listeners)==null?0:G.error)&&t.listeners.error(f)}}},"nrJISd");
return _.p(l4q,{cond:function(){return!(E==null?0:E())},
then:function(){return _.p("lottie-component",{class:_.Ty("ytLottieComponentHost",q),el:y})}})},"aa");_.dL(_.r(function(g){return _.p("ytd-lottie-player",{id:g.id,hidden:g.hidden,class:g.className,"aria-label":g.ariaLabel,style:"display: block;"},_.p(_.B2,{data:g.data,animationName:function(){var u;return((u=g.data().animationConfig)==null?void 0:u.name)||""},
animationRef:function(){return g.data().animationRef}}))},"ba"),"ytd-lottie-player",{props:{data:_.H2,
id:_.H2,hidden:_.H2,className:_.H2,ariaLabel:_.H2}});var zT=function(){var g=_.X.apply(this,arguments)||this;g.animationRef={};g.delhiIconsEnabled=_.w("enable_web_delhi_icons");return g};
_.A(zT,_.X);_.P=zT.prototype;
_.P.handlePropertyChange=function(){var g=this.animatedIcon,u=this.active,q=this.isDarkTheme;if(g){var Q=this.previousActive!==u;this.previousActive=u;this.animationRef.lottieEl?Q?this.toggleAnimation(u,g.totalFrames):_.w("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(u,g.totalFrames):u?this.initializeAnimationAsToggled(g.lottiePlayerProps,g.totalFrames):this.initializeAnimationAsUntoggled(g.lottiePlayerProps);g.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
g.type;this.lottiePlayerProps=this.computeLottiePlayerProps(g,q)}};
_.P.computeLottiePlayerProps=function(g,u){var q=this.deepCloneLottiePlayerProps(g);u?(u=g.nameDarkTheme,g=g.pathDarkTheme):(u=g.name,g=g.path);q.animationConfig.name=u;(u=qy.get(g))?q.animationConfig.animationData=u:q.animationConfig.path=g;return q};
_.P.initializeAnimationAsToggled=function(g,u){g.animationConfig.initialSegment=[u-1,u]};
_.P.initializeAnimationAsUntoggled=function(g){g.animationConfig.initialSegment=void 0};
_.P.toggleAnimation=function(g,u){if(g){var q;(q=this.animationRef.lottieEl)==null||q.playSegments([0,u],!0)}else{var Q;(Q=this.animationRef.lottieEl)==null||Q.playSegments([0,1],!0)}};
_.P.setAnimationState=function(g,u){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(g?u-1:0,!0)};
_.P.deepCloneLottiePlayerProps=function(g){var u=Object.assign({},g.lottiePlayerProps.animationConfig);g=Object.assign({},g.lottiePlayerProps);g.animationConfig=u;return g};
zT.prototype.handlePropertyChange=zT.prototype.handlePropertyChange;_.Y([_.a(),_.K("design:type",Object)],zT.prototype,"animatedIcon",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],zT.prototype,"active",void 0);_.Y([_.a(),_.K("design:type",Boolean)],zT.prototype,"isDarkTheme",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],zT.prototype,"animatedIconType",void 0);_.Y([_.a(),_.K("design:type",Boolean)],zT.prototype,"previousActive",void 0);
_.Y([_.a(),_.K("design:type",Object)],zT.prototype,"lottiePlayerProps",void 0);_.Y([_.a(),_.K("design:type",Object)],zT.prototype,"animationRef",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],zT.prototype,"delhiIconsEnabled",void 0);_.Y([_.k_("animatedIcon","active","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zT.prototype,"handlePropertyChange",null);_.Y([_.jP({is:"yt-animated-icon",disableElementRegistration:!0})],zT);
_.T(zT,"yt-animated-icon",function(){if(itZ===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;I$0===void 0&&(I$0=document.createElement("template"));var Q=I$0;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);itZ=g}g=itZ;return g},{mode:2});var bt8;var dXn;_.Q0=_.r(function(g){var u={value:null,cancelled:!1};_.dB(function(){u.cancelled=!0});
var q=_.G9(g.data,{equals:function(Q,L){return Q.iconName===L.iconName&&Q.iconStyle===L.iconStyle&&Q.iconSize===L.iconSize&&Q.iconSetName===L.iconSetName&&Q.iconSelected===L.iconSelected}},"ck24jb");
return _.p("span",{class:"yt-icon-shape",el:_.lF(function(Q){_.bX(function(){var L,E=(L=g.options)==null?void 0:L.call(g);L=q();oMf(Q,u,L,E)},"v878Je")})})},"da");
_.Q0.idomCompat=!0;var $Lm=["youtube_fill","youtube_outline"];var FxH=new _.g5({type:"iconset",value:void 0}),nK=function(){var g=_.X.apply(this,arguments)||this;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.iconName="";g.iconsetName="yt-icons";g.iconset=null;g.missingIconSet=!1;g.iconType=null;g.iconShapeDataSignal=_.jR(void 0,void 0,"TaEgXd");g.renderingOptionsSignal=_.jR({iconWidth:"100%",iconHeight:"100%",iconFilter:g.iconFilter,iconColor:g.gradientColor},void 0,"a1vqYe");g.wizHasRendered=!1;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return g};
_.A(nK,_.X);nK.prototype.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.isDarkTheme=g)};
nK.prototype.handlePropertyChange=function(){var g=this,u,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F;return _.D(function(V){switch(V.nextAddress){case 1:if(u=!g.icon&&!g.iconName||!g.isAttached)return V.return();q=g;Q=q.icon;L=q.size;E=q.defaultToFilled;y=q.active;v=q.targetContainer;g.toggleContainerClass(v);_.w("kevlar_use_wil_icons")&&Q&&(J=kjF(Q),g.iconType=J.length?J[1]:null);if(Q){V.jumpTo(2);break}g.iconsetName="";g.iconName="";return V.yield(g.renderIcon(v,Q),3);case 3:return V.return();case 2:f=mX2(Q);
t=kjF(f);t.length&&(g.iconsetName=t[0],g.iconName=t[1]);if(!_.w("kevlar_use_wil_icons")){V.jumpTo(4);break}e=nK;G=a$x;R=g.iconType;H=g.active;l=g.defaultToFilled;d=g.size;F=g.iconsetName;return V.yield(V4x(),6);case 6:return V.yield(G.call(e,R,H,l,d,F,V.yieldResult),5);case 5:g.iconShapeData=V.yieldResult;case 4:if(g.shouldRenderIconShape(v)){V.jumpTo(7);break}return V.yield(g.determineIconSet(f,y,E,L,v),7);case 7:return V.yield(g.renderIcon(v,Q),0)}})};
nK.prototype.toggleContainerClass=function(g){g?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var mX2=function(g){return!_.w("default_to_innertube_icon")||g.indexOf(":")>0?g:_.x9(g)};
_.P=nK.prototype;_.P.determineIconSet=function(g,u,q,Q){var L=this;return _.D(function(E){return E.nextAddress==1?_.w("kevlar_system_icons")||_.FR("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.FR("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?E.yield(L.switchToYtSysIconset(g,u,q,Q),3):E.jumpTo(2):E.nextAddress!=2?E.return():E.yield(L.useYtSysIconsetForMissingIcons(g,u,q,Q),0)})};
_.P.switchToYtSysIconset=function(g,u,q,Q){var L=this,E,y,v,J,f,t,e;return _.D(function(G){switch(G.nextAddress){case 1:if(!g||L.iconsetName!=="yt-icons"&&L.iconsetName!=="yt-sys-icons"){G.jumpTo(0);break}E=kjF(g);y=E[1];var R=y;if(LTM(R))y=R;else{var H=R=R.toLowerCase();(R=TAH.get(R))&&(H=R);y=H}_.w("enable_polymer_icons_replace_underscores_dash")&&y.includes("_filled")&&(y=y.replace(/_filled/g,"-filled"));return G.yield(KE(y,!0),3);case 3:return v=G.yieldResult,G.yield(KE(y,!1),4);case 4:if((J=
G.yieldResult)||u&&v)L.iconsetName="yt-sys-icons";L.iconName=L.getIconName(y,u,q,J,v);if(Q===24){G.jumpTo(0);break}f="yt-sys-icons"+Q+":"+L.iconName;return G.yield(KE(f,!1,!0),6);case 6:return t=G.yieldResult,G.yield(KE(f,!0,!0),7);case 7:e=G.yieldResult;L.iconName=L.getIconName(y,u,q,t,e);if(!u&&t||u&&e)L.iconsetName="yt-sys-icons"+Q;_.Wx(G)}})};
_.P.getIconName=function(g,u,q,Q,L){g.includes("-filled")&&(g=g.replace("-filled",""));return L&&(u||q)?g+"-filled":g};
_.P.useYtSysIconsetForMissingIcons=function(g,u,q,Q){var L=this,E,y;return _.D(function(v){if(v.nextAddress==1)return L.iconsetName!=="yt-icons"?v.jumpTo(0):v.yield(KE(L.iconName,!1,!1,!0),3);if(v.nextAddress!=4)return E=v.yieldResult,v.yield(KE(L.iconName,!1),4);y=v.yieldResult;if(E||!y)return v.jumpTo(0);L.iconsetName="yt-sys-icons";return v.yield(L.switchToYtSysIconset(g,u,q,Q),0)})};
_.P.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var V4x=function(){return _.D(function(g){try{return g.return(_.Bk().resolve(_.B$))}catch(u){return g.return(new Promise(function(q){_.A4().parkOrScheduleJob(function(){q(_.Bk().resolve(_.B$))},2,"ci")}))}})},a$x=function(g,u,q,Q,L,E){Q=Q===void 0?24:Q;
if(g){g=g.toLowerCase();var y=g.endsWith("_filled")||g.endsWith("-filled");u={iconName:g,iconStyle:(u===void 0?0:u)||(q===void 0?0:q)||y?"youtube_fill":"youtube_outline",iconSize:Q,iconSetName:L===void 0?"yt-icons":L};q=!!E.resolveIcon(u);q||(u.iconSize=void 0,q=!!E.resolveIcon(u));!q&&y&&(u.iconName=g.substring(0,g.length-7),u.iconSize=Q,q=!!E.resolveIcon(u),q||(u.iconSize=void 0,q=!!E.resolveIcon(u)));q||(u.iconStyle=void 0,q=!!E.resolveIcon(u));q||_.Io(new _.Ji("Icon not supported",{iconName:u.iconName,
iconStyle:u.iconStyle,iconSize:u.iconSize,iconType:g}));return q?u:void 0}};
_.P=nK.prototype;_.P.shouldRenderIconShape=function(g){if(!_.w("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;g=this.getContainer(g);return!zXf(g,this.icon)};
_.P.renderIcon=function(g,u){var q=this,Q,L,E,y,v,J,f,t;return _.D(function(e){switch(e.nextAddress){case 1:if(u&&q.icon!==u)return e.return();Q=q.getContainer(g);L=zXf(Q,q.icon);if(q.shouldRenderIconShape(g)&&q.iconType)return q.applyIconShape(L,Q),e.return();q.removeIconShape();if(!Q)return e.return();q.iconName===""&&q.iconset&&Q&&(q.removeStaticIcon(q.iconset,Q),L&&q.removeAnimatedIcon(Q));if(q.iconName===""&&q.iconset||!q.iconsetName||!FxH)return e.return();q.iconset=FxH.byKey(q.iconsetName);
if(!q.iconset)return q.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.zr(q,q.onIconsetAdded)),e.return();q.missingIconSet&&(q.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.zr(q,q.onIconsetAdded)));y=(E=L||q.isAnimatedIcon?Kuq(q.icon):void 0)&&!E.lazyLoad;J=E&&((v=E)==null?void 0:v.lazyLoad)&&(E.lottiePlayerProps.animationConfig.animationData?!0:qy.get(q.isDarkTheme?E.pathDarkTheme:E.path)?!0:!1);if(y||J)return q.applyAnimatedIcon(Q,E,q.iconset),e.return();if(J||
(f=E)==null||!f.lazyLoad){e.jumpTo(2);break}t=k4u(E,q.isDarkTheme);q.applyStaticIcon(q.iconset,Q,q.iconName,g,L);return e.yield(t,3);case 3:return e.yield(q.renderIcon(q.targetContainer,q.icon),4);case 4:return e.return();case 2:q.applyStaticIcon(q.iconset,Q,q.iconName,g,L),_.Wx(e)}})};
_.P.getContainer=function(g){var u,q=(u=VGf(this.hostElement))==null?void 0:u.host;u=!!q&&!!q.polymerController;if(!g||u)return g?this.getTargetContainer(g,q):this.hostElement};
_.P.getTargetContainer=function(g,u){var q=_.Tr(u).querySelector("#"+g);q||(g=new _.Ji("yt-icon container missing",u.is,g),_.Zf(g));return q};
_.P.applyStaticIcon=function(g,u,q,Q,L){L&&this.removeAnimatedIcon(u);this.removeIconShape();L=L&&!!this.iconType&&!!this.iconShapeData&&_.w("kevlar_use_wil_icons");try{L?this.applyIconShape(!1,u):g.applyIcon(u,q)}catch(E){this.handleError(E,Q,u)}};
_.P.applyIconShape=function(g,u){this.iconset&&u&&(this.removeStaticIcon(this.iconset,u),g&&this.removeAnimatedIcon(u));g={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var q=_.N(this.iconShapeDataSignal);u=q.next().value;q=q.next().value;var Q=_.N(this.renderingOptionsSignal),L=Q.next().value;Q=Q.next().value;q(this.iconShapeData);Q(g);if(!this.wizHasRendered)for(this.wizHasRendered=!0,g=_.N(Uzh(u,L)).next().value;g.firstChild;)_.Tr(this.hostElement).appendChild(g.firstChild)};
_.P.removeIconShape=function(){if(_.w("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.P.removeStaticIcon=function(g,u){g.removeIcon(u)};
_.P.applyAnimatedIcon=function(g,u,q){this.removeStaticIcon(q,g);this.removeIconShape();var Q;q=this.animatedIconElement&&((Q=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:Q.type)===u.type;if(this.animatedIconElement&&q){this.animatedIconElement.polymerController.animatedIcon=u;var L;((L=this.animatedIconElement)==null?void 0:L.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(g),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=u,this.animatedIconElement.polymerController.active=this.active,_.w("delhi_modern_web_player_icons")?(u=xzq(g,this.icon)&&g.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=u?u.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.w("kevlar_use_wil_icons")?
g.insertBefore(this.animatedIconElement,g.childNodes[0]):(g=_.Tr(g),g.insertBefore(this.animatedIconElement,g.childNodes[0]))};
_.P.removeAnimatedIcon=function(g){_.w("kevlar_use_wil_icons")?this.animatedIconElement&&g.contains(this.animatedIconElement)&&g.removeChild(this.animatedIconElement):(g=_.Tr(g),this.animatedIconElement&&g.contains(this.animatedIconElement)&&g.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.P.handleError=function(g,u,q){_.iD(g,this.iconName,u,q);u=zXf(q,this.icon);var Q=!1;window.location.href.includes("JpymaW6Lh2w")?Q=!0:q._svgIcon&&(q=(q=q._svgIcon.parentNode)?q.tagName:"unknown",_.iD(g,q),q==="YT-ICON"&&g.name==="NotFoundError"?Q=!0:g.name==="NotFoundError"&&u&&(Q=!0));Q?_.Io(g):_.Zf(g)};
_.z3.Object.defineProperties(nK,{template:{configurable:!0,enumerable:!0,get:function(){if(dXn===void 0){var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;
bt8===void 0&&(bt8=document.createElement("template"));var Q=bt8;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);dXn=g}g=dXn;return g}}});
nK.prototype.handlePropertyChange=nK.prototype.handlePropertyChange;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],nK.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",String)],nK.prototype,"icon",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],nK.prototype,"active",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],nK.prototype,"defaultToFilled",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],nK.prototype,"isAnimatedIcon",void 0);
_.Y([_.a({value:24}),_.K("design:type",Number)],nK.prototype,"size",void 0);_.Y([_.a({value:""}),_.K("design:type",String)],nK.prototype,"targetContainer",void 0);_.Y([_.a(),_.K("design:type",Object)],nK.prototype,"animatedIconElement",void 0);_.Y([_.a(),_.K("design:type",Object)],nK.prototype,"isDarkTheme",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],nK.prototype,"ariaHidden",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],nK.prototype,"ariaLabel",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],nK.prototype,"role",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],nK.prototype,"tabindex",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],nK.prototype,"title",void 0);_.Y([_.a(),_.K("design:type",String)],nK.prototype,"style",void 0);_.Y([_.a(),_.K("design:type",String)],nK.prototype,"iconFilter",void 0);_.Y([_.a(),_.K("design:type",String)],nK.prototype,"gradientColor",void 0);
_.Y([_.k_("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],nK.prototype,"handlePropertyChange",null);_.Y([_.jP({is:"yt-icon",noInjection:!0})],nK);var gcZ="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),quq=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Xu$={};Xu$.YtPlaintextBehavior=[_.n8,{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(g){g.preventDefault();g=g.clipboardData.getData("text/plain");document.execCommand("insertText",!1,g)},
preventRichTextFormatting_:function(g){_.nT&&(g=g.detail.keyboardEvent,g.stopImmediatePropagation(),g.preventDefault())}}];var rq5;var WxW;var kK=function(){var g=_.X.apply(this,arguments)||this;g.ignoreShadyDom=!1;g.hasChange_=!1;g.hasSetTitle_=!1;g.useIOObserverForVisibilityLogging_=_.w("kevlar_use_vimio_behavior")&&_.FR("INNERTUBE_CLIENT_NAME")==="WEB";g.ytFormattedStringObserverHandlerKeys_=void 0;return g};
_.A(kK,_.X);_.P=kK.prototype;_.P.created=function(){this.useIOObserverForVisibilityLogging_=_.w("kevlar_use_vimio_behavior")&&_.FR("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.P.ready=function(){_.FR("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_()};
_.P.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.P.detached=function(){this.unobserveIOObservers_()};
_.P.clearContents_=function(){for(var g=this.getRoot(),u=g.lastChild;u&&u.tagName!=="STYLE";){try{g.removeChild(u)}catch(q){break}u=g.lastChild}};
_.P.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var g=_.N(this.ytFormattedStringObserverHandlerKeys_),u=g.next();!u.done;u=g.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(u.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.P.resetForAttributedString=function(){var g=this.getRoot();!g.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),g.appendChild(this.ytAttributedStringElementRef))};
_.P.resetForFormattedString=function(){var g=this.getRoot(),u=g.querySelector("yt-attributed-string");u&&(this.ytAttributedStringElementRef=g.removeChild(u))};
_.P.textChanged=function(){this.textChanged_(this.text)};
_.P.textChanged_=function(g){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!g||!g.runs&&!g.simpleText;if(_.w("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var u=this.hostElement.firstChild;u&&u.nodeName==="FONT";){var q=u;u=u.nextSibling;this.hostElement.removeChild(q)}u=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
q=g.simpleText;var Q;!q&&((Q=g.runs)==null?void 0:Q.length)===1&&this.isSimpleString_(g.runs[0])&&(q=g.runs[0].text);q!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.FR("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(q!==void 0){try{u.textContent=q}catch(L){}u.textContent||(this.isEmpty=!0)}else g=g.runs,q!==void 0&&(g=[{text:q}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),g&&this.updateText_(g),
u.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.P.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)};
_.P.computeAriaLabel_=function(g){return g};
_.P.computeEllipsisTruncateStyling=function(g,u){return g&&!u};
_.P.computeUseAttributedString=function(g){return _.w("web_replace_formatted_with_attributed_string")&&mjZ(g)&&!this.disableAttributedString&&!this.enableContentEditable};
_.P.setNodeStyle_=function(g,u){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.w("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?u.removeAttribute("dir"):u.setAttribute("dir","auto");u.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");u.style.color="";var q=null;this.noStyles||(g.bold&&(u.classList.add("bold"),q="bold"),g.deemphasize&&(u.classList.add("deemphasize"),q="deemphasize"),g.italics&&u.classList.add("italic"),
g.strikethrough&&u.classList.add("strikethrough"),g.errorUnderline&&(u.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),g.bracket&&u.classList.add("bracket"),g.textColor&&(u.style.color=_.JR(g.textColor)));q!==u.getAttribute("style-target")&&(q?u.setAttribute("style-target",q):u.removeAttribute("style-target"))};
_.P.setUpVisibilityLogging_=function(g,u){var q=this;this.setNodeTrackingParams_(g,u);var Q;((Q=u.data)==null?0:Q.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(g=this.ytRendererBehavior.visibilityObserver.observe(u,function(L){var E=q.ytRendererBehavior.getVisibilityLogger();E&&E.reportShown(L)},this.ytRendererBehavior.visibilityOptionVisible_),u=this.ytRendererBehavior.visibilityObserver.observe(u,function(L){var E=q.ytRendererBehavior.getVisibilityLogger();
E&&E.reportHidden(L)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(g),this.ytFormattedStringObserverHandlerKeys_.push(u))};
_.P.setNodeTrackingParams_=function(g,u){u.data||(u.data={});if((g=g.loggingDirectives?g.loggingDirectives.trackingParams:null)||u.data.trackingParams)u.data.trackingParams=g};
_.P.computeHasLinkOnly_=function(g){return!(!g||g.length!==1||this.noEndpoints||!g[0].navigationEndpoint)};
_.P.getRoot=function(){var g=this.buildScopeDomOptions();return this.enableContentEditable?_.Tr(_.Tr(this.hostElement,g).querySelector("[contenteditable]")):_.Tr(this.hostElement,g)};
_.P.fixContenteditableScope=function(){var g=function(u){u&&(u.nodeType===1&&u.classList&&(u.classList.add("style-scope"),u.classList.add("yt-formatted-string")),u.childNodes&&u.childNodes.forEach(function(q){g(q)}))};
g(this.getRoot())};
_.P.updateText_=function(g){for(var u=g.length,q=this.getRoot(),Q=q.firstChild;Q&&Q.nodeName==="STYLE";)Q=Q.nextSibling;for(var L=0;L<u&&Q;){var E=g[L],y=_.w("remove_cr_char")&&E.text?E.text.replace("\r",""):E.text;if(this.isSimpleString_(E)&&!this.useMixedDirectionFormattedStrings)if(Q.nodeName==="#text"){Q.textContent!=y&&(Q.textContent=y);L++;Q=Q.nextSibling;continue}else break;if(_.c(E,Da))break;else if(!this.noEndpoints&&E.navigationEndpoint){if(Q.nodeName!=="A")break;this.setDataOnAnchor_(Q,
E.navigationEndpoint)}else if(Q.nodeName!=="SPAN")break;this.setNodeStyle_(E,Q);this.setUpVisibilityLogging_(E,Q);Q.textContent!=y&&(Q.textContent=y);L++;Q=Q.nextSibling}if(Q)for(E=q.lastChild,Q=L?Q.previousSibling:null;E&&E!=Q;){try{q.removeChild(E)}catch(v){break}E=q.lastChild}L!==u&&this.addTextNodes_(g,L)};
_.P.addTextNodes_=function(g,u){for(var q=document.createDocumentFragment(),Q=g.length;u<Q;u++){var L=g[u],E=_.w("remove_cr_char")&&L.text?L.text.replace("\r",""):L.text;if(this.isSimpleString_(L)&&!this.useMixedDirectionFormattedStrings)q.appendChild(document.createTextNode(E));else{var y=_.c(L,Da);if(y){if(y.image){var v=document.createElement("img");y.isCustomEmoji||v.classList.add("small-emoji");v.classList.add("emoji");y.isCustomEmoji&&(v.dataset.emojiId=y.emojiId);v.src=_.Fh(y.image.thumbnails,
this.emojiSize);(L=this.get("image.accessibility.accessibilityData.label",y))?v.alt=L:y.shortcuts&&y.shortcuts.length>0?v.alt=y.shortcuts[0]:y.emojiId&&(v.alt=y.emojiId);q.appendChild(v);this.hasEmoji=!0}}else!this.noEndpoints&&L.navigationEndpoint?(v=document.createElement("a"),v.classList.add("yt-simple-endpoint"),v.setAttribute("spellcheck","false"),this.setDataOnAnchor_(v,L.navigationEndpoint)):v=document.createElement("span"),this.setNodeStyle_(L,v),this.setUpVisibilityLogging_(L,v),v.appendChild(document.createTextNode(E)),
q.appendChild(v)}}this.getRoot().appendChild(q)};
_.P.isSimpleString_=function(g){return(this.noEndpoints||!g.navigationEndpoint)&&!_.c(g,Da)&&(this.noStyles||!(g.bold||g.deemphasize||g.italics||g.strikethrough||g.errorUnderline||g.bracket||g.textColor))&&!g.loggingDirectives};
_.P.getRawText=function(){return _.iR(this.text)};
_.P.getFirstRunText=function(){var g;if(((g=this.text)==null?0:g.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.P.setFirstRunText=function(g){var u;((u=this.text)==null?0:u.runs)&&this.text.runs[0]&&(this.text.runs[0].text=g,this.textChanged_(this.text))};
_.P.setDataOnAnchor_=function(g,u){var q=this;!_.w("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(u)||this.isSignalServiceEndpoint_(u)?(g.onclick=this.serviceEndpointHandler_(u),u8(g,"#")):c7q({text:this.text,command:u},function(){a7Z(g,u,q.target)})};
_.P.isServiceEndpoint_=function(g){var u;return!((u=_.c(g==null?void 0:g.commandMetadata,_.S_))==null||!u.sendPost)};
_.P.isSignalServiceEndpoint_=function(g){return!!_.c(g,_.kJ)};
_.P.serviceEndpointHandler_=function(g){var u=this;return function(q){_.KV(u.hostElement,[g]);q.preventDefault()}};
_.P.overrideAriaLabelChanged_=function(){var g=this.getRoot();this.enableContentEditable&&g&&g.setAttribute("aria-label",this.overrideAriaLabel)};
_.P.enableContentEditableChanged_=function(){var g=this,u=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),u=_.Tr(this.hostElement,u),!u.lastChild||u.lastChild instanceof HTMLElement&&u.lastChild.id!=="contenteditable-root"){var q=document.createElement("div");q.id="contenteditable-root";q.setAttribute("contenteditable","true");q.setAttribute("dir","auto");q.onfocus=function(){g.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
u.appendChild(q);this.overrideAriaLabel&&q.setAttribute("aria-label",this.overrideAriaLabel)}}else q=_.hR(this.hostElement).firstChild,q instanceof HTMLElement&&q.id==="contenteditable-root"&&_.Tr(this.hostElement,u).removeChild(q)};
_.P.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.P.getNodesForVisibilityLogging_=function(){return _.Oc(this.getRoot().childNodes,function(g){var u;return!((u=g.data)==null||!u.trackingParams)})};
_.P.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.P.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var g=this.ytRendererBehavior.getVisibilityLogger();g&&this.getNodesForVisibilityLogging_().forEach(function(u){g.reportShown(u)})}};
_.P.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var g=this.ytRendererBehavior.getVisibilityLogger();g&&this.getNodesForVisibilityLogging_().forEach(function(u){g.reportHidden(u)})}};
_.z3.Object.defineProperties(kK.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.w("enable_mixed_direction_formatted_strings")}}});
kK.prototype.enableContentEditableChanged_=kK.prototype.enableContentEditableChanged_;kK.prototype.overrideAriaLabelChanged_=kK.prototype.overrideAriaLabelChanged_;kK.prototype.ellipsisTruncateChanged_=kK.prototype.ellipsisTruncateChanged_;kK.prototype.textChanged=kK.prototype.textChanged;_.Y([_.I(Xu$.YtPlaintextBehavior),_.K("design:type",Object)],kK.prototype,"ytPlaintextBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],kK.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],kK.prototype,"text",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"noEndpoints",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"noStyles",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],kK.prototype,"isDarkTheme",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],kK.prototype,"splitLines",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],kK.prototype,"forceDefaultStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],kK.prototype,"ellipsisTruncate",void 0);_.Y([_.a(),_.K("design:type",Object)],kK.prototype,"ignoreShadyDom",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.K("design:type",Boolean)],kK.prototype,"ellipsisTruncateStyling",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.K("design:type",String)],kK.prototype,"ariaLabel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],kK.prototype,"isEmpty",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.K("design:type",Boolean)],kK.prototype,"hasLinkOnly_",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"hasEmoji",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"disableAttributedString",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"isOverlay",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"linkInheritColor",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"noPreWrap",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"userInput",void 0);_.Y([_.a({value:16}),_.K("design:type",Number)],kK.prototype,"emojiSize",void 0);_.Y([_.a(),_.K("design:type",String)],kK.prototype,"target",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"enableContentEditable",void 0);_.Y([_.a(),_.K("design:type",String)],kK.prototype,"overrideAriaLabel",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"respectHtmlDir",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kK.prototype,"respectLangDir",void 0);_.Y([_.C("plaintextOnly"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],kK.prototype,"useMixedDirectionFormattedStrings",null);_.Y([_.a({computed:"computeUseAttributedString(text)"}),_.K("design:type",Boolean)],kK.prototype,"useYtAttributedString",void 0);
_.Y([_.k_("text"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kK.prototype,"textChanged",null);_.Y([_.k_("ellipsisTruncate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kK.prototype,"ellipsisTruncateChanged_",null);_.Y([_.k_("overrideAriaLabel"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kK.prototype,"overrideAriaLabelChanged_",null);
_.Y([_.k_("enableContentEditable"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kK.prototype,"enableContentEditableChanged_",null);_.Y([_.jP({is:"yt-formatted-string",disableElementRegistration:!0})],kK);
_.T(kK,"yt-formatted-string",function(){if(WxW===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;rq5===void 0&&(rq5=document.createElement("template"));var Q=rq5;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);WxW=g}g=WxW;return g});var Tza;var hp8;var YBx;var Otx;var S3=function(){var g=_.X.apply(this,arguments)||this;g.focused=!1;g.disabled=!1;g.isOverlay=!1;return g};
_.A(S3,_.X);S3.prototype.triggerDown=function(){if(!this.disabled){_.Y_(this.hostElement,"down",!0);var g;(g=this.currentAnimation)==null||g.cancel()}};
S3.prototype.triggerUp=function(){if(!this.disabled){_.Y_(this.hostElement,"down",!1);var g=this.fillElement;var u=this.strokeElement;typeof GroupEffect==="function"?(g=new GroupEffect([Ueq(g),gMh(u)]),g=new Animation(g,document.timeline)):g=new pu$(g,u);this.currentAnimation=g;var q;(q=this.currentAnimation)==null||q.play()}};
_.Y([_.oE(".stroke"),_.K("design:type",HTMLElement)],S3.prototype,"strokeElement",void 0);_.Y([_.oE(".fill"),_.K("design:type",HTMLElement)],S3.prototype,"fillElement",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],S3.prototype,"focused",void 0);_.Y([_.a(),_.K("design:type",Object)],S3.prototype,"disabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],S3.prototype,"isOverlay",void 0);_.Y([_.jP({is:"yt-interaction",disableElementRegistration:!0})],S3);
_.T(S3,"yt-interaction",function(){if(Otx===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;YBx===void 0&&(YBx=document.createElement("template"));var Q=YBx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Otx=g}g=Otx;return g},{mode:2});var og=function(){return _.X.apply(this,arguments)||this};
_.A(og,_.X);_.P=og.prototype;_.P.ready=function(){var g=this,u=_.Tr(this.hostElement).querySelector("#button");u.addEventListener("focus",function(){Vu2||(Vu2=new adH);g.keyboardFocused=Vu2.isKeyBoardInUse()});
u.addEventListener("blur",function(){g.keyboardFocused=!1;g.rippleUp_()})};
_.P.computeTabIndex_=function(g){return g?-1:0};
_.P.computeButtonAriaPressed_=function(g){if(this.toggleable)return g?"true":"false"};
_.P.rippleDown_=function(){_.Tr(this.hostElement).querySelector("#interaction").triggerDown()};
_.P.rippleUp_=function(){_.Tr(this.hostElement).querySelector("#interaction").triggerUp()};
_.P.onPressedChanged_=function(){var g=_.hR(_.Tr(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.hR(_.Tr(this.hostElement).querySelector("#button")).children[0];g&&(g.active=this.pressed)};
og.prototype.onPressedChanged_=og.prototype.onPressedChanged_;og.prototype.rippleUp_=og.prototype.rippleUp_;og.prototype.rippleDown_=og.prototype.rippleDown_;_.Y([_.a(),_.K("design:type",String)],og.prototype,"label",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],og.prototype,"disabled",void 0);_.Y([_.a(),_.K("design:type",Boolean)],og.prototype,"pressed",void 0);_.Y([_.a(),_.K("design:type",Object)],og.prototype,"toggleable",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],og.prototype,"untabbable",void 0);_.Y([_.a(),_.K("design:type",Boolean)],og.prototype,"keyboardFocused",void 0);_.Y([_.n6("down"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],og.prototype,"rippleDown_",null);_.Y([_.n6("up"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],og.prototype,"rippleUp_",null);
_.Y([_.k_("pressed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],og.prototype,"onPressedChanged_",null);_.Y([_.jP({is:"yt-icon-button",disableElementRegistration:!0})],og);
_.T(og,"yt-icon-button",function(){if(hp8===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Tza===void 0&&(Tza=document.createElement("template"));var Q=Tza;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);hp8=g}g=hp8;return g},{mode:2});var KxX;var xXR=function(){var g=document.body,u=g.appendChild;if(KxX===void 0){var q=document.createElement("template");_.Z(q,'\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>');
KxX=q}q=KxX;u.call(g,q.content)};
document.body?xXR():window.addEventListener("DOMContentLoaded",xXR);var Bzb=_.CT(["aria-"]),Uv={};Uv.YtRenderButtonBehavior=[_.n.YtRendererBehavior,_.KK.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!!_.Bk().resolve(_.xv(_.m5))&&_.w("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 g=this.computeHref_(this.endpoint,!0);g?u8(this.elements_.endpoint,g):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){g=this.buttonClass.split(" ");g=_.N(g);for(var u=g.next();!u.done;u=g.next())u=u.value,_.Y_(this.hostElement,u,!0),this.elements_.button&&_.Y_(this.elements_.button,u,!0),this.elements_.text&&_.Y_(this.elements_.text,u,!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&&(g=null,this.buttonAccessibility&&(g=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=g:g?_.Ma([_.cq(Bzb)],this.elements_.button,"aria-label",g):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var g=_.Bk().resolve(_.xv(_.m5));g&&(this.keyboardFocused=g.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.CK("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,_.Eg(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Eg(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(g,u){if(u)for(g=u.split(" "),g=_.N(g),u=g.next();!u.done;u=g.next())u=u.value,_.Y_(this.hostElement,u,!1),this.elements_.button&&_.Y_(this.elements_.button,u,!1),this.elements_.text&&_.Y_(this.elements_.text,u,!1)},
buttonIconChanged_:function(g){this.elements_.icon?g?(this.elements_.icon.icon=g,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Eg(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Ox(this.hostElement,"is-paper-button-with-icon",!1)):g&&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"&&_.Eg(this.elements_.button).appendChild(this.elements_.icon):_.Eg(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Ox(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(g){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,g){var u=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(g){case "yt_icon_button_with_label":u=!0;_.Y_(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();g=_.Eg(this.elements_.button).firstElementChild;
this.elements_.icon=g;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Eg(this.elements_.endpoint).appendChild(this.elements_.button);_.Eg(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.CK("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;_.Eg(this.elements_.button).appendChild(this.elements_.text);_.Eg(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":u=!0,this.elements_.button=this.getYtIconButton_(),g=_.Eg(this.elements_.button).firstElementChild,this.elements_.icon=g,this.setIconActive_(this.elements_.icon),
_.Eg(this.elements_.endpoint).appendChild(this.elements_.button)}_.Ox(this.hostElement,"is-icon-button",u);_.Ox(this.hostElement,"is-paper-button",!u);_.Ox(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 q;_.Tr((q=this.container.hostElement)!=null?q:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Eg(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(g){if(g!=void 0||this.disabled)this.disabled=g,this.elements_.button&&(this.elements_.button.disabled=g)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(g){_.w("kevlar_system_icons")&&g&&this.data&&(this.data.isSelected!==void 0?g.active=this.data.isSelected:this.data.isToggled!==void 0&&(g.active=this.data.isToggled))},
observeBasicPalette_:function(g){_.Le(this.hostElement,g)},
disabledChanged_:function(g){this.data&&this.set("data.isDisabled",g)},
onYtButtonTap_:function(g){if(this.disabled)g.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.KV(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(g=this.disableCommandHandlerOverride,!this.data||!this.data.command||g||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.w("handle_service_request_actions")||_.KV(this.hostElement,[this.serviceEndpoint]),
_.hJ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.w("handle_service_request_actions")?(g=[],this.serviceEndpoint&&g.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&g.push(this.data.command),g.length&&_.xJ(this.hostElement,g,this.hostElement)):this.data&&this.data.command&&(g=this.data.command,g.accountUnlinkCommand||g.accountLinkCommand||g.insertAdCommand||g.insertHighlightMarkerCommand||
g.createLivestreamHighlightClipCommand||g.getVideoUploadFeedbackCommand||g.musicDeletePrivatelyOwnedEntityCommand||g.ypcCancelRecurrenceEndpoint||g.getMultiSelectCommandEndpoint?_.KV(this.hostElement,[g]):_.xJ(this.hostElement,[g],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 g,u=_.Tr((g=this.container.hostElement)!=null?g:this.container);u.lastChild&&u.lastChild.tagName!="STYLE";)try{u.removeChild(u.lastChild)}catch(q){break}},
getYtIconButton_:function(){var g=this.reuseEnabled_()?_.CK("yt-icon-button"):document.createElement("yt-icon-button"),u=_.Eg(g).firstElementChild;if(u&&u.is!="yt-icon"){for(u=_.Eg(g);u.lastChild;)u.removeChild(u.lastChild);u=null}u||(u=this.getIcon_(),this.setIconActive_(u),_.Eg(g).appendChild(u));return g},
reuseEnabled_:function(){return _.w("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.CK("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.CK("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.zpb={};
_.zpb.YtButtonBehavior=[Uv.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var g=this.data;g&&(this._setEndpoint(this.computeEndpoint_(g)),this._setServiceEndpoint(this.computeServiceEndpoint_(g)),this._setCommand(this.computeCommand_(g)),this._setButtonIcon(this.computeButtonIcon_(g)),this._setButtonText(this.computeButtonText_(g,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(g)),this._setButtonTooltip(this.computeTooltip_(g)),this._setButtonClass(this.computeButtonClass_(g)),this._setIconPositionType(this.computeIconPositionType_(g)),this.updateRenderedElements())},
setPressedState:function(g){var u;if((u=this.elements_)==null?0:u.button)this.elements_.button.pressed=!!g},
computeIconPositionType_:function(g){return g&&g.iconPosition||null},
computeEndpoint_:function(g){var u=g&&g.navigationEndpoint,q=this.get("data.command.commandMetadata.webCommandMetadata.url"),Q=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return u?u:g&&g.command&&g.command.modalEndpoint?g.command:q&&!Q&&g.command?g.command:null},
computeServiceEndpoint_:function(g){var u=g&&g.serviceEndpoint,q=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return u?u:q&&g.command?g.command:null},
computeCommand_:function(g){return g&&g.command||null},
computeButtonIcon_:function(g){return g&&g.icon&&g.icon.iconType?_.x9(g.icon.iconType):null},
computeButtonText_:function(g,u){return!u&&g&&g.text||null},
computeAccessibility_:function(g){return this.get("accessibilityData.accessibilityData",g)||g&&g.accessibility||(g&&g.text?{label:this.getSimpleString(g.text)}:null)},
computeTooltip_:function(g){return g?g.isDisabled&&g.disabledTooltip||g.tooltip||null:null},
computeButtonClass_:function(g){var u=g&&g.style?g.style.toLowerCase().replace(/_/g,"-")+" ":"";u+=g&&g.size?g.size.toLowerCase().replace(/_/g,"-")+" ":"";g.colorData&&g.colorData.basicColorPaletteData&&g.colorData.basicColorPaletteData.borderColor&&(u+="palette-with-border");return u.trim()}}];var Pe={};var nnH;var kCZ;var SBi,ona=function(){return SBi!==void 0?SBi:SBi=document.createElement("template")};
document.head.appendChild(ona().content);var UX5;var gwX,unX=function(){return gwX!==void 0?gwX:gwX=document.createElement("template")};
document.head.appendChild(unX().content);var q5H;var Qb0,L12=function(){return Qb0!==void 0?Qb0:Qb0=document.createElement("template")};
document.head.appendChild(L12().content);var Ew2;var Prb=document.head,NPi=Prb.appendChild,sba;if(Ew2===void 0){var ysZ=document.createElement("template");_.Z(ysZ,"\x3c!--css-build:shady--\x3e");ysZ.content.insertBefore(L12().content.cloneNode(!0),ysZ.content.firstChild);Ew2=ysZ}sba=Ew2;NPi.call(Prb,sba.content);var vwn=document.head,De2=vwn.appendChild,pJ2;if(q5H===void 0){var Js$=document.createElement("template");_.Z(Js$,"\x3c!--css-build:shady--\x3e");Js$.content.insertBefore(unX().content.cloneNode(!0),Js$.content.firstChild);q5H=Js$}pJ2=q5H;De2.call(vwn,pJ2.content);var jbi=document.head,fl$=jbi.appendChild,MIZ;if(UX5===void 0){var tIo=document.createElement("template");_.Z(tIo,"\x3c!--css-build:shady--\x3e");tIo.content.insertBefore(ona().content.cloneNode(!0),tIo.content.firstChild);UX5=tIo}MIZ=UX5;fl$.call(jbi,MIZ.content);var eZo;_.Ny("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");eZo=_.w("web_button_rework")&&_.mW("BUTTON_REWORK")||_.w("web_button_rework_with_live");_.gx=function(){return _.X.apply(this,arguments)||this};
_.A(_.gx,_.X);_.gx.prototype.created=function(){this.openPopupConfig=_.FR("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.gx.prototype.onYtNavigate_=function(g){var u=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(g.detail.endpoint);u&&(this.ytOpenPopupBehavior.openPopup(u),g.stopPropagation(),g.preventDefault())};
_.z3.Object.defineProperties(_.gx,{template:{configurable:!0,enumerable:!0,get:function(){if(kCZ===void 0){var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
var u=g.content,q=u.insertBefore;nnH===void 0&&(nnH=document.createElement("template"));var Q=nnH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);kCZ=g}g=kCZ;return g}}});
_.gx.prototype.onYtNavigate_=_.gx.prototype.onYtNavigate_;_.Y([_.I(_.Ov.YtOpenPopupBehavior),_.K("design:type",Object)],_.gx.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.I(_.zpb.YtButtonBehavior),_.K("design:type",Object)],_.gx.prototype,"ytButtonBehavior",void 0);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],_.gx.prototype,"onYtNavigate_",null);
_.Y([_.jP({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:eZo})],_.gx);var GYH;var $eX=_.w("web_button_rework")&&_.mW("BUTTON_REWORK")||_.w("web_button_rework_with_live"),uT=function(){var g=_.X.apply(this,arguments)||this;g.isPressed=!1;g.forceIconButton=!1;g.forceIconOnly=!1;g.forceModernIconButton=!1;g.skipCommandHandling=!1;g.alignByText=!1;g.fitToVisibleBounds=!0;g.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};g.onTap=function(u){_.hJ(g.hostElement,"yt-service-request-sent-button-renderer",u)};
return g};
_.A(uT,_.X);_.P=uT.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.P.onClick=function(g){var u,q=this.disabled||((u=this.data)==null?void 0:u.isDisabled);u=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");q&&u&&g.stopPropagation()};
_.P.computeIcon=function(){var g,u,q=(g=this.data)==null?void 0:(u=g.icon)==null?void 0:u.iconType;if(q)return _.x9(q)};
_.P.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.P.handleUpdateButtonAction=function(g){g=_.c(g,egH);var u=_.c(g==null?void 0:g.updatedButton,_.eW);if(this.data&&g&&u){var q=this.data;q.targetId&&g.targetId&&q.targetId===g.targetId&&(this.data=u)}};
_.z3.Object.defineProperties(uT.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var g=this;if(this.data){var u=saT({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.hJ(g.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.hJ(g.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});u.alignByText=this.alignByText;return u}}}});
_.z3.Object.defineProperties(uT,{template:{configurable:!0,enumerable:!0,get:function(){if(GYH===void 0){var g=document.createElement("template");_.Z(g,'\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>');GYH=g}g=GYH;return g}}});
uT.prototype.onClick=uT.prototype.onClick;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],uT.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],uT.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"isPressed",void 0);
_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"forceIconButton",void 0);_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"forceIconOnly",void 0);_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"forceModernIconButton",void 0);_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"skipCommandHandling",void 0);_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"alignByText",void 0);_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"buttonTooltipPosition",void 0);
_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"fitToVisibleBounds",void 0);_.Y([_.a({computed:"computeTooltip(data)"}),_.K("design:type",Object)],uT.prototype,"tooltip",void 0);_.Y([_.a(),_.K("design:type",Object)],uT.prototype,"overrides",void 0);_.Y([_.a(),_.K("design:type",Boolean)],uT.prototype,"disabled",void 0);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],uT.prototype,"onClick",null);
_.Y([_.C("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.K("design:type",Object),_.K("design:paramtypes",[])],uT.prototype,"computedButtonShape",null);_.Y([_.jP({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!$eX,cssBuildOptOut:!0}),_.jP({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!$eX,cssBuildOptOut:!0})],uT);var RZW;var wJZ;var qJ=function(){var g=_.X.apply(this,arguments)||this;g.empty_=!0;g.loadTime=Infinity;g.pendingPaint=!1;g.hasChange_=!1;g.oldThumbnail_=null;g.oldDelayedSrc_="";g.objectURL_=null;return g};
_.A(qJ,_.X);_.P=qJ.prototype;_.P.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.P.ready=function(){var g=this.shouldShowPlaceholder_();_.Y_(this.hostElement,"no-transition",!0);g&&this.hostElement.classList.add("with-placeholder")};
_.P.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.P.isThumbPreloaded_=function(g){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",g)};
_.P.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||csa};
_.P.computeThumbnailSrc_=function(g){return g&&g.thumbnails?_.Fh(g.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.P.computeAlt_=function(){var g=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&g||""};
_.P.thumbnailChanged_=function(){var g=_.N([this.thumbnail,this.oldThumbnail_]),u=g.next().value;g=g.next().value;this.oldThumbnail_=u;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(g=this.computeThumbnailSrc_(g),this.computeThumbnailSrc_(u)===g))return;_.w("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(u)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):u&&_.mW("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.xt(this,this.onReload_):_.xt(this,this.onShow_):this.resetImage_();u&&(this.hostElement.style.opacity=""+u.opacity)}};
_.P.delayedSrcChanged_=function(){var g=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===g||this.resetImage_()};
_.P.setSrc_=function(g){g?(_.Tr(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Tr(this.hostElement).querySelector("#img").src=g):(_.Tr(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.P.resetImage_=function(){vwF(this.hostElement);this.empty_=!0;this.setSrc_(csa);this.ytRendererBehavior.invalidate(!1)};
_.P.observePlaceholderColor_=function(){var g=this.thumbnail&&this.thumbnail.placeholderColor;g?this.hostElement.style.backgroundColor=_.JR(g):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.P.onLoad_=function(){_.Tr(this.hostElement).querySelector("#img").src&&_.Tr(this.hostElement).querySelector("#img").src!==csa&&(ysh(this.hostElement),this.notifyOnLoaded&&_.hJ(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.P.onError_=function(){var g=this;if(_.w("web_use_cache_for_image_fallback"))tIZ(_.Tr(this.hostElement).querySelector("#img").src).then(function(u){g.objectURL_=_.o3(u).toString();g.setSrc_(g.objectURL_)}).catch(function(){_.w("kevlar_woffle_fallback_image")&&g.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.P.onPrescanVisible=function(){this.onShow_()};
_.P.onVisible=function(){if(_.w("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.P.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var g=this.computeSrc_();g!==_.Tr(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(g))}};
_.P.onReload_=function(){this.empty_=!1;var g=this.computeSrc_();g!==_.Tr(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(g))};
_.P.shouldShowPlaceholder_=function(){return _.w("kevlar_thumbnail_bg")};
qJ.prototype.observePlaceholderColor_=qJ.prototype.observePlaceholderColor_;qJ.prototype.delayedSrcChanged_=qJ.prototype.delayedSrcChanged_;qJ.prototype.thumbnailChanged_=qJ.prototype.thumbnailChanged_;_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],qJ.prototype,"alt",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],qJ.prototype,"ariaHidden",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],qJ.prototype,"ariaLabel",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qJ.prototype,"hidden",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],qJ.prototype,"id",void 0);_.Y([_.I(_.GT.YtVisibilityBehavior),_.K("design:type",Object)],qJ.prototype,"ytVisibilityBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",String)],qJ.prototype,"delayedSrc",void 0);
_.Y([_.a(),_.K("design:type",Object)],qJ.prototype,"thumbnail",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],qJ.prototype,"loaded",void 0);_.Y([_.a(),_.K("design:type",Boolean)],qJ.prototype,"notifyOnLoaded",void 0);_.Y([_.a(),_.K("design:type",Number)],qJ.prototype,"height",void 0);_.Y([_.a(),_.K("design:type",Number)],qJ.prototype,"width",void 0);_.Y([_.a({value:function(){return"width"}}),
_.K("design:type",String)],qJ.prototype,"dimension",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qJ.prototype,"fit",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qJ.prototype,"fitHeight",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qJ.prototype,"fitWidth",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],qJ.prototype,"objectFit",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],qJ.prototype,"objectPosition",void 0);_.Y([_.a(),_.K("design:type",String)],qJ.prototype,"preferredThumbnail",void 0);_.Y([_.a({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.K("design:type",String)],qJ.prototype,"alt_",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],qJ.prototype,"sharedTooltipText",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],qJ.prototype,"ftlEligible",void 0);_.Y([_.a({value:void 0}),_.K("design:type",String)],qJ.prototype,"observeHiddenOption",void 0);_.Y([_.a({value:"observe_once"}),_.K("design:type",String)],qJ.prototype,"observePrescanOption",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qJ.prototype,"roundedContainer",void 0);
_.Y([_.qm("thumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qJ.prototype,"thumbnailChanged_",null);_.Y([_.qm("delayedSrc"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qJ.prototype,"delayedSrcChanged_",null);_.Y([_.k_("thumbnail.placeholderColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qJ.prototype,"observePlaceholderColor_",null);
_.Y([_.jP({is:"yt-img-shadow",disableElementRegistration:!0})],qJ);var csa=_.mW("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Te()(qJ,"yt-img-shadow",function(){if(wJZ===void 0){var g=document.createElement("template");_.Z(g,'\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">');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;RZW===void 0&&(RZW=document.createElement("template"));var Q=RZW;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);wJZ=g}g=wJZ;return g},{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 RlT;_.QA=new _.Fv("SCREEN_MANAGER_TOKEN");RlT=new _.Fv("LOG_INITIAL_SCREEN_TOKEN");var HQ0=y0({entities:{}});_.LF=ve(HQ0)(HQ0.entities,{selectSfvAudioItemPlaybackState:function(g,u){var q,Q;g=(Q=_.BC(g,"sfvAudioItemCurrentlyPlayingEntity",u))!=null?Q:void 0;return(q=g==null?void 0:g.sfvAudioItemPlaybackState)!=null?q:void 0},
playlistLoopStateEntitySelector:DlK,toggleMenuServiceItemEntitySelector:pZb});_.E6=_.r(function(g){function u(k){return _.c(k,_.Rn)}
function q(){var k=Q().isTogglingDisabled||l()&&Q().toggledIsTogglingDisabled,LZ=k||G()?l():!l();d(LZ);V(!1);if(!k){var sb;(sb=y)==null||sb(!!LZ)}var Rm;((Rm=E)==null?0:Rm())||_.nq(_.Bk().resolve(_.QA),Q().trackingParams);var M3;if(!LZ||!u(Q().defaultButtonViewModel)||(M3=E)!=null&&M3()){var tT;!u(Q().toggledButtonViewModel)||((tT=E)==null?0:tT())||_.nq(_.Bk().resolve(_.QA),u(Q().toggledButtonViewModel).trackingParams)}else _.nq(_.Bk().resolve(_.QA),u(Q().defaultButtonViewModel).trackingParams)}
var Q=g.data,L=g.buttonShapeOverrides,E=g.disableExplicitClickLogging,y=g.onToggle,v=g.style,J=g.useOutlinedIcon,f=g.className,t=function(){var k,LZ;return l()?(k=g.animatedTextPropsToggled)==null?void 0:k.call(g):(LZ=g.animatedTextPropsDefault)==null?void 0:LZ.call(g)},e=_.G9(function(){return t()?Object.assign({},t(),{shouldAnimate:F()}):void 0},void 0,"Zp4uoe"),G=function(){var k;
return((k=W())==null?void 0:k.isToggled)!==void 0},R=_.N(_.mX(function(){var k,LZ,sb;
return G()?(k=W())==null?void 0:k.isToggled:(sb=L==null?void 0:(LZ=L())==null?void 0:LZ.toggled)!=null?sb:Q().isToggled})),H=R.next().value;
R=R.next().value;var l=H,d=R;R=_.N(_.mX(function(){var k,LZ;return(k=g.animatedTextPropsToggled)==null?void 0:(LZ=k.call(g))==null?void 0:LZ.shouldAnimate}));
H=R.next().value;R=R.next().value;var F=H,V=R;H=_.N(_.jR(!1,void 0,"mq3Zfe"));var z=H.next().value,O=H.next().value,W=_.Sy(function(k){a:{var LZ=Q().entityKey,sb=Q().toggledStateEntitySelectorType;if(sb)switch(sb){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!LZ)break;k=_.LF.selectSfvAudioItemPlaybackState(k,LZ);if(k==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){k={isToggled:!0};break a}if(k){k={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":k={isToggled:_.MoF(k).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":k={isToggled:_.MoF(k).includes("engagement-panel-live-chat-item-section")};break a;default:_.Io(new _.Ji("Error: entitySelectorType defined but not matched in selector.",k,sb))}k=void 0}return k}),x=function(){return Object.assign({},L==null?void 0:L(),{onToggle:q,
toggleable:!0,toggled:l(),focused:z()})};
return _.p("toggle-button-view-model",{"on:focusin":_.YH(function(){var k=_.Bk().resolve(_.xv(_.m5));k&&O(k.isKeyBoardInUse());return!1}),
"on:focusout":_.YH(function(){O(!1);return!1})},_.p(_.M,{cond:function(){return l()?u(Q().toggledButtonViewModel):u(Q().defaultButtonViewModel)},
then:function(k){return _.p(_.TT,{data:k,className:f,style:v,useOutlinedIcon:J,buttonOverrides:x,animatedTextProps:e})}}))},"fa");
_.E6.idomCompat={callbacks:{onToggle:!0}};_.dL(_.r(function(g){return _.p("yt-toggle-button-view-model",{class:function(){var u;return(u=g.scopingClassName)==null?void 0:u.call(g)}},_.p(_.E6,{data:function(){var u;
return(u=g.data)==null?void 0:u.call(g)},
buttonShapeOverrides:function(){var u;return(u=g.overrides)==null?void 0:u.call(g)},
animatedTextPropsDefault:function(){var u;return(u=g.animatedTextPropsDefault)==null?void 0:u.call(g)},
animatedTextPropsToggled:function(){var u;return(u=g.animatedTextPropsToggled)==null?void 0:u.call(g)},
disableExplicitClickLogging:function(){var u;return(u=g.disableExplicitClickLogging)==null?void 0:u.call(g)},
onToggle:function(u){var q;return(q=g.onToggle)==null?void 0:q.call(g,u)},
style:function(){var u;return(u=g.style)==null?void 0:u.call(g)},
useOutlinedIcon:function(){var u;return(u=g.useOutlinedIcon)==null?void 0:u.call(g)},
className:function(){var u;return(u=g.className)==null?void 0:u.call(g)}}))},"ga"),"yt-toggle-button-view-model",{props:{data:_.H2,
buttonShapeOverrides:_.H2,overrides:_.H2,animatedTextPropsDefault:_.H2,animatedTextPropsToggled:_.H2,disableExplicitClickLogging:_.H2,onToggle:_.iF,style:_.H2,useOutlinedIcon:_.H2,className:_.H2,scopingClassName:_.H2}});var PO=function(){return _.X.apply(this,arguments)||this};
_.A(PO,_.X);PO.prototype.onTap=function(g){g.stopPropagation();g=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.JZ("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:g})):this.ytLiveChatReduxBehavior.dispatch(_.u2("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:g}))};
_.z3.Object.defineProperties(PO.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.engagementState)==null?void 0:g.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g=_.c(this.data.toggleButton,_.cF),u;if(Number(((u=this.likeCountState)==null?void 0:u.likeCountIfIndifferentNumber)||"0")===0){var q;u=((q=this.data.likeCountPlaceholder)==null?void 0:q.content)||""}else{var Q,L,E;u=((Q=this.likeCountState)==null?void 0:(L=Q.likeCountIfIndifferent)==null?void 0:L.content)||((E=this.data.likeCountPlaceholder)==null?void 0:E.content)||""}var y,v;q=((y=this.likeCountState)==null?void 0:(v=
y.likeCountIfLiked)==null?void 0:v.content)||"1";y=_.c(g.toggledButtonViewModel,_.Rn);return Object.assign({},g,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.c(g.defaultButtonViewModel,_.Rn),{title:u})},toggledButtonViewModel:{buttonViewModel:Object.assign({},y,{title:q})}})}}}});
PO.prototype.onTap=PO.prototype.onTap;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],PO.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],PO.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],PO.prototype,"data",void 0);
_.Y([_.a({selectorArgs:["data.likeCountEntityKey"],selector:toS}),_.K("design:type",Object)],PO.prototype,"likeCountState",void 0);_.Y([_.a({selectorArgs:["data.engagementStateKey"],selector:AuJ}),_.K("design:type",Object)],PO.prototype,"engagementState",void 0);_.Y([_.C("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],PO.prototype,"isLiked",null);
_.Y([_.C("data","likeCountState","isLiked"),_.K("design:type",Object),_.K("design:paramtypes",[])],PO.prototype,"toggleButton",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],PO.prototype,"onTap",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],PO);
_.T(PO,"yt-live-chat-like-button-view-model",function(){if(l$X===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Zt5===void 0&&(Zt5=document.createElement("template"));var Q=Zt5;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);l$X=g}g=l$X;return g},{mode:0});var AsX;var ZQo;var vO=function(){return _.X.apply(this,arguments)||this};
_.A(vO,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vO.prototype,"data",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],vO);
_.T(vO,"yt-live-chat-paid-message-footer-renderer",function(){if(ZQo===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;AsX===void 0&&(AsX=document.createElement("template"));var Q=AsX;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ZQo=g}g=ZQo;return g},{mode:0});var lla;var Il$;var iQi;var Cr2,bQx=function(){if(Cr2!==void 0)return Cr2;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;iQi===void 0&&(iQi=document.createElement("template"));var Q=iQi;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Cr2=g};var DC=function(){return _.X.apply(this,arguments)||this};
_.A(DC,_.X);DC.prototype.onTap=function(g){g.stopPropagation()};
_.z3.Object.defineProperties(DC.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g=_.c(this.data.replyButton,_.Rn),u,q,Q,L,E,y,v,J=Number(((u=this.replyCountState)==null?void 0:u.replyCountNumber)||"0")===0?(q=this.data)==null?void 0:(Q=q.replyCountPlaceholder)==null?void 0:Q.content:((L=this.replyCountState)==null?void 0:(E=L.replyCount)==null?void 0:E.content)||((y=this.data)==null?void 0:(v=y.replyCountPlaceholder)==null?void 0:v.content)||"",f;return Object.assign({},
g,{title:J,accessibilityText:(f=this.replyCountState)==null?void 0:f.replyButtonAccessibilityText})}}}});
_.z3.Object.defineProperties(DC,{template:{configurable:!0,enumerable:!0,get:function(){return bQx()}}});
DC.prototype.onTap=DC.prototype.onTap;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],DC.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],DC.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],DC.prototype,"data",void 0);
_.Y([_.a({selectorArgs:["data.replyCountEntityKey"],selector:function(g,u){return _.BC(g.entities,"replyCountEntity",u)}}),
_.K("design:type",Object)],DC.prototype,"replyCountState",void 0);_.Y([_.C("data","replyCountState"),_.K("design:type",Object),_.K("design:paramtypes",[])],DC.prototype,"buttonViewModel",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],DC.prototype,"onTap",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],DC);_.T(DC,"yt-live-chat-reply-button-view-model",function(){return bQx()},{mode:0});var deZ;var F10;var pF=function(){var g=_.X.apply(this,arguments)||this;g.ariaLabel="";return g};
_.A(pF,_.X);
pF.prototype.dataChanged=function(){for(var g=(0,_.K6)(_.Tr(this.hostElement).querySelector("#image"));g.firstChild;)g.removeChild(g.firstChild);if(this.data)if(this.data.icon){var u=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(u.polymerController.icon="yt-sys-icons:shield_empty",u.polymerController.defaultToFilled=!0):u.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();g.appendChild(u)}else if(this.data.customThumbnail){u=document.createElement("img");
var q=_.q5k(this.data.customThumbnail.thumbnails,16);q?(u.src=q,g.appendChild(u),u.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Io(new _.Ji("Could not compute URL for thumbnail",this.data.customThumbnail))}};
pF.prototype.identity=function(g){return g};
pF.prototype.computeType=function(g){return Y9(g||void 0)};
pF.prototype.dataChanged=pF.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],pF.prototype,"data",void 0);_.Y([_.a({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.K("design:type",Object)],pF.prototype,"ariaLabel",void 0);_.Y([_.a({computed:"computeType(data)",reflectToAttribute:!0}),_.K("design:type",String)],pF.prototype,"type",void 0);
_.Y([_.a({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.K("design:type",String)],pF.prototype,"sharedTooltipText",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_new_shield_moderator_badge")}}),
_.K("design:type",Boolean)],pF.prototype,"enableNewModeratorBadge",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pF.prototype,"dataChanged",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],pF);
_.T(pF,"yt-live-chat-author-badge-renderer",function(){if(F10===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;deZ===void 0&&(deZ=document.createElement("template"));var Q=deZ;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);F10=g}g=F10;return g},{mode:0});var meX;var alZ;var JX=function(){return _.X.apply(this,arguments)||this};
_.A(JX,_.X);_.P=JX.prototype;_.P.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"}}}}};
_.P.computeBadgesInsideChip=function(g){return g?g.filter(function(u){return Y9(u.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.P.computeBadgesOutsideChip=function(g){return this.prependChatBadges||!g?[]:g.filter(function(u){u=Y9(u.liveChatAuthorBadgeRenderer);return u!=="verified"&&u!=="owner"})};
_.P.computeBadgesBeforeChip=function(g){return this.prependChatBadges&&g?g.filter(function(u){u=Y9(u.liveChatAuthorBadgeRenderer);return u!=="verified"&&u!=="owner"}):[]};
_.P.computeIsHighlighted=function(g,u){var q=!!Kiq(g,"owner"),Q=!!Kiq(g,"verified");g=!!Kiq(g,"moderator");return(q||Q&&!g)&&!u};
_.P.computeAuthorType=function(g){return OzT(g)};
_.P.computeAuthorClass=function(g,u){return u?(g?g+" ":"")+"single-line":g};
_.P.onSeedColorChanged=function(){_.w("live_chat_author_name_color_usernames")||_.w("live_chat_seed_color_usernames")||_.w("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):_.w("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
JX.prototype.onSeedColorChanged=JX.prototype.onSeedColorChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],JX.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],JX.prototype,"authorName",void 0);_.Y([_.a(),_.K("design:type",Array)],JX.prototype,"authorBadges",void 0);
_.Y([_.a({computed:"computeAuthorType(authorBadges)"}),_.K("design:type",String)],JX.prototype,"authorType",void 0);_.Y([_.a({computed:"computeAuthorClass(authorType, singleLine)"}),_.K("design:type",String)],JX.prototype,"authorClass",void 0);_.Y([_.a({computed:"computeBadgesInsideChip(authorBadges)"}),_.K("design:type",Array)],JX.prototype,"badgesInsideChip",void 0);_.Y([_.a({computed:"computeBadgesOutsideChip(authorBadges)"}),_.K("design:type",Array)],JX.prototype,"badgesOutsideChip",void 0);
_.Y([_.a({computed:"computeBadgesBeforeChip(authorBadges)"}),_.K("design:type",Array)],JX.prototype,"badgesBeforeChip",void 0);_.Y([_.a({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.K("design:type",Boolean)],JX.prototype,"isHighlighted",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_new_shield_moderator_badge")}}),
_.K("design:type",Boolean)],JX.prototype,"enableNewModeratorTextColor",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],JX.prototype,"singleLine",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],JX.prototype,"disableHighlighting",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],JX.prototype,"dashboardMoneyFeed",void 0);_.Y([_.a({value:_.w("live_chat_prepend_badges"),reflectToAttribute:!0}),_.K("design:type",Boolean)],JX.prototype,"prependChatBadges",void 0);
_.Y([_.a(),_.K("design:type",String)],JX.prototype,"authorNameColor",void 0);_.Y([_.oE("#author-name"),_.K("design:type",HTMLDivElement)],JX.prototype,"username",void 0);_.Y([_.k_("authorNameColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JX.prototype,"onSeedColorChanged",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],JX);
_.T(JX,"yt-live-chat-author-chip",function(){if(alZ===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;meX===void 0&&(meX=document.createElement("template"));var Q=meX;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);alZ=g}g=alZ;return g},{mode:0});var VI$;var XJb;var jC=function(){var g=_.X.apply(this,arguments)||this;g.debounceCommand=_.pN(function(u){g.ytComponentBehavior.resolveCommand(u)},1500);
return g};
_.A(jC,_.X);jC.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var g=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",u,q,Q=this.isHearted?(u=this.data)==null?void 0:u.unheartCommand:(q=this.data)==null?void 0:q.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.JZ("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:g}));(g=_.jy(Q))&&this.debounceCommand(g)}};
_.z3.Object.defineProperties(jC.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var g,u;if(!((g=this.data)==null?0:(u=g.creatorThumbnail)==null?0:u.sources))return{};g={thumbnails:[]};u={};u.url=this.data.creatorThumbnail.sources[0].url;g.thumbnails.push(u);return g}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((u=this.engagementState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((u=this.engagementState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((u=this.engagementState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((q=this.engagementState)==null?void 0:q.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}}});
jC.prototype.onTap=jC.prototype.onTap;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],jC.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],jC.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],jC.prototype,"data",void 0);
_.Y([_.a({selectorArgs:["data.engagementStateKey"],selector:AuJ}),_.K("design:type",Object)],jC.prototype,"engagementState",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],jC.prototype,"thumbnailDetails",null);_.Y([_.C("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jC.prototype,"isHearted",null);_.Y([_.C("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jC.prototype,"isEditable",null);
_.Y([_.C("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jC.prototype,"showCreatorView",null);_.Y([_.C("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jC.prototype,"showButton",null);_.Y([_.C("data","isHearted"),_.K("design:type",String),_.K("design:paramtypes",[])],jC.prototype,"label",null);_.Y([_.C("data","isHearted"),_.K("design:type",Object),_.K("design:paramtypes",[])],jC.prototype,"heartHoverText",null);
_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jC.prototype,"onTap",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],jC);
_.T(jC,"yt-live-chat-creator-heart-view-model",function(){if(XJb===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;VI$===void 0&&(VI$=document.createElement("template"));var Q=VI$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);XJb=g}g=XJb;return g},{mode:0});var rs0=function(){this.internalMap={}};
_.P=rs0.prototype;_.P.contains=function(g){return Object.prototype.hasOwnProperty.call(this.internalMap,g)};
_.P.get=function(g){if(this.contains(g))return this.internalMap[g]};
_.P.set=function(g,u){this.internalMap[g]=u};
_.P.getKeys=function(){return Object.keys(this.internalMap)};
_.P.remove=function(g){delete this.internalMap[g]};var fF=function(){this.mappings=new rs0;this.errorCallbacks=new Set};
fF.prototype.getModuleId=function(g){return g.serviceId.getModuleId()};
fF.prototype.get=function(g){a:{var u=this.mappings.get(g.toString());switch(u.type){case "mapping":g=u.value;break a;case "factory":u=u.value();this.mappings.set(g.toString(),{type:"mapping",value:u});g=u;break a;default:g=_.qE(u)}}return g};
fF.prototype.registerService=function(g,u){this.mappings.set(g.toString(),{type:"mapping",value:u});return g};
fF.prototype.onLoadError=function(g){var u=this;this.errorCallbacks.add(g);return function(){u.errorCallbacks.delete(g)}};
new fF;var W1b=function(){};
_.P=W1b.prototype;
_.P.JSC$14483_getRequest=function(g,u,q){u=u===void 0?{}:u;q=q===void 0?qRa:q;var Q=u;if(this.isNavigationCommand()){var L,E=(L=_.c(g==null?void 0:g.commandMetadata,_.S_))==null?void 0:L.url;Q=_.AR(g.clickTrackingParams,!0,!1,E,this.JSC$14483_getClientScreen(Q))}else Q=_.AR(g.clickTrackingParams,!1,this.includeCsn);Q={context:Q};if(L=this.getExtension(g))return this.JSC$14483_buildRequest(Q,L,u),L=this.getApiUrl(g),E=Object.assign({},{command:g},this.getRequestConfig(g,u)),Q={input:L,requestShell:AJ(L),
innerTubeRequest:Q,config:E},Q.config.authStrategy?Q.config.authStrategy.identity=q:Q.config.authStrategy={identity:q},(g=this.JSC$14483_getRequestKey(g,u))&&!Q.config.requestKey&&(Q.config.requestKey=g),Q;g=new _.Ji("Error: Failed to create Request from Command.",g);_.Zf(g)};
_.P.getApiUrl=function(g){var u=_.dr(this.getApiPaths(g)),q;(g=(q=_.c(g.commandMetadata,_.S_))==null?void 0:q.apiUrl)&&(u=g);return d4f(bqK(u))};
_.P.isNavigationCommand=function(){return!1};
_.P.JSC$14483_getClientScreen=function(){};
_.P.JSC$14483_getRequestKey=function(){};
_.P.getRequestConfig=function(){};
_.z3.Object.defineProperties(W1b.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var MJ=function(){};
_.A(MJ,W1b);MJ.prototype.JSC$14490_getStoreKey=function(){};
MJ.prototype.JSC$14483_getRequestKey=function(g,u){u=u===void 0?{}:u;return this.JSC$14490_getStoreKey(g,u)};var tX=function(){};
_.A(tX,MJ);tX.prototype.JSC$14483_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:AJ("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
tX.prototype.getApiPaths=function(){return[]};
tX.prototype.getExtension=function(){};
tX.prototype.JSC$14483_buildRequest=function(){};var TPX={},hZa=(TPX.GET_DATASYNC_IDS=My(tX),TPX);var Y55,OQR,K1X,ow$,kY$,eC,nwa,xea,zZ$,BP8;Y55="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" ");OQR=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.R9=function(g,u,q,Q,L,E,y,v,J){this.endpointMap=g;this.networkManager=u;this.authService=q;this.responseProcessorMap=Q;this.innertubeResponseStore=L;this.contextProcessors=E;this.asyncContextProcessors=y;this.localInnertubeRouter=v;this.requestSequencer=J;this.inflightRequests=new Map;g.signalEndpointMap||(g.signalEndpointMap={});g.signalEndpointMap=Object.assign({},hZa,g.signalEndpointMap)};
K1X=function(g,u,q,Q,L,E,y,v,J){if(_.R9.instance!==void 0){if(Q=_.R9.instance,g=[g!==Q.endpointMap,u!==Q.networkManager,q!==Q.authService,L!==Q.innertubeResponseStore,E!==Q.contextProcessors,y!==Q.asyncContextProcessors,v!==Q.localInnertubeRouter],g.some(function(f){return f}))throw new _.Ji("InnerTubeTransportService is already initialized",g);
}else _.R9.instance=new _.R9(g,u,q,Q,L,E,y,v,J)};
_.ce=function(g,u,q){var Q=Q===void 0?qRa:Q;var L=xea(g,u);return L?new _.Ez(function(E,y){var v,J,f,t,e;return _.D(function(G){switch(G.nextAddress){case 1:return G.yield(L,2);case 2:v=G.yieldResult;J=v.JSC$14483_getRequest(u,q,Q);if(!J){y(new _.Ji("Error: Failed to build request for command.",u));G.jumpTo(0);break}eh(J.input);t=((f=J.requestShell)==null?void 0:f.mode)==="cors"?"cors":void 0;if(g.authService.syncHeaders){e=BP8(J.config,t);G.jumpTo(4);break}return G.yield(zZ$(J.config,t),5);case 5:e=
G.yieldResult;case 4:E(nwa(g,J,e)),_.Wx(G)}})}):_.NY(new _.Ji("Error: No request builder found for command.",u))};
ow$=function(g,u,q,Q){var L=L===void 0?qRa:L;var E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x;return _.D(function(k){switch(k.nextAddress){case 1:E=R1S(u,g.endpointMap);if(!E)throw new _.Ji("Error: No streaming request builder found for command",u);y=E.JSC$14483_getRequest(u,q,L);if(!y)throw new _.Ji("Failed to build YtRequest for streaming Command",u);if((v=g.localInnertubeRouter)==null||!v.shouldPreferLocalResponse(y.input,y.innerTubeRequest)){k.jumpTo(2);break}return k.yield(g.localInnertubeRouter.localInnertubeResponse(y.input,
y.innerTubeRequest),3);case 3:return J=k.yieldResult,f={},J.playerResponse&&(eC(g,J.playerResponse,y),f.player=J.playerResponse,(t=Q)==null||t(f,J)),J.watchNextResponse&&(eC(g,J.watchNextResponse,y),f.content=J.watchNextResponse,(e=Q)==null||e(f,J)),k.return(f);case 2:return k.yield(kY$(g,y),4);case 4:R=((G=y.requestShell)==null?void 0:G.mode)==="cors"?"cors":void 0;if(g.authService.syncHeaders){H=BP8(y.config,R);k.jumpTo(5);break}return k.yield(zZ$(y.config,R),6);case 6:H=k.yieldResult;case 5:return F=
(d=(l=y.requestShell)==null?void 0:l.headers)!=null?d:{},y.requestShell=Object.assign({},y.requestShell,{headers:Object.assign({},F,H)}),V=Object.assign({},y.requestShell),z=JSON.stringify(y.innerTubeRequest),y.requestShell.method==="POST"&&(V=Object.assign({},V,{body:z})),O=function(LZ,sb){eC(g,sb.playerResponse||sb.watchNextResponse||sb.reelItemWatchResponse||sb.reelWatchSequenceResponse,y);Q==null||Q(LZ,sb);sb.playerResponse&&NFX()},W={},k.yield(S5i(g.networkManager,y.input,V,O),7);
case 7:return W=k.yieldResult,((x=y.config)==null?0:x.responseTick)&&_.fW(y.config.responseTick),k.return(W)}})};
_.wE=function(g,u,q,Q,L){L=L===void 0?{authStrategy:{identity:qRa}}:L;var E=E===void 0?!0:E;var y=function(){};
y=S1F(naq(q));u.context||(u.context=_.AR(Q,E));return new _.Ez(function(v){var J,f,t,e,G;return _.D(function(R){if(R.nextAddress==1)return J=bqK(q),f=_.HX(J),g.authService.syncHeaders?(t=BP8(L,f),R.jumpTo(2)):R.yield(zZ$(L,f),3);R.nextAddress!=2&&(t=R.yieldResult);e=d4f(bqK(q));G={input:e,requestShell:AJ(e),innerTubeRequest:u,config:L};v(nwa(g,G,t,y));_.Wx(R)})})};
kY$=function(g,u){var q,Q,L,E,y,v,J,f,t,e,G;return _.D(function(R){switch(R.nextAddress){case 1:if(!((q=u)==null?0:(Q=q.innerTubeRequest)==null?0:Q.context)){R.jumpTo(0);break}L=u.innerTubeRequest.context;if(!(g.asyncContextProcessors&&g.asyncContextProcessors.length>0)){R.jumpTo(3);break}E=[];y=_.N(g.asyncContextProcessors);for(v=y.next();!v.done;v=y.next())J=v.value,f=J.processContext(u),f.wrappedPromise_&&E.push(f.wrappedPromise_);if(!(E.length>0)){R.jumpTo(3);break}return R.yield(Promise.all(E),
3);case 3:t=_.N(g.contextProcessors||[]),e=t.next();case 6:if(e.done){R.jumpTo(0);break}G=e.value;return R.yield(G.processContext(L),7);case 7:e=t.next(),R.jumpTo(6)}})};
eC=function(g,u,q){var Q;if(u&&!(u==null?0:(Q=u.sequenceMetaData)==null?0:Q.skipProcessing)&&g.responseProcessorMap){Q=_.N(Y55);for(var L=Q.next();!L.done;L=Q.next())L=L.value,g.responseProcessorMap[L]&&g.responseProcessorMap[L].handleResponse(u,q)}};
nwa=function(g,u,q,Q){Q=Q===void 0?function(){}:Q;
var L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k,LZ,sb,Rm,M3,tT,mJ,hT,Yu,Mx,po;return _.D(function(KZ){switch(KZ.nextAddress){case 1:y=(L=u.config)==null?void 0:(E=L.storeStrategy)==null?void 0:E.storeKey;if(!(y&&g.innertubeResponseStore&&g.innertubeResponseStore.has(y))||((v=u.config)==null?0:(J=v.storeStrategy)==null?0:J.disableCache)){KZ.jumpTo(2);break}return KZ.yield(g.innertubeResponseStore.get(y),3);case 3:f=KZ.yieldResult;if(!f||f.isExpired()){KZ.jumpTo(2);break}t=_.Tx(f);if(!_.w("web_process_response_store_responses")||
f.isProcessed()){KZ.jumpTo(5);break}eC(g,t,u);return KZ.yield(g.innertubeResponseStore.markAsProcessed(y),5);case 5:return KZ.return(Promise.resolve(t));case 2:return KZ.yield(kY$(g,u),7);case 7:if((e=g.localInnertubeRouter)==null||!e.shouldPreferLocalResponse(u.input,u.innerTubeRequest)){KZ.jumpTo(8);break}return KZ.yield(g.localInnertubeRouter.localInnertubeResponse(u.input,u.innerTubeRequest),9);case 9:return G=KZ.yieldResult,eC(g,G,u),KZ.return(G);case 8:return(l=(H=u.config)==null?void 0:H.requestKey)&&
g.inflightRequests.has(l)?R=g.inflightRequests.get(l):(d=JSON.stringify(u.innerTubeRequest),z=(V=(F=u.requestShell)==null?void 0:F.headers)!=null?V:{},u.requestShell=Object.assign({},u.requestShell,{headers:Object.assign({},z,q)}),O=Object.assign({},u.requestShell),u.requestShell.method==="POST"&&(O=Object.assign({},O,{body:d})),((W=u.config)==null?0:W.requestTick)&&_.fW(u.config.requestTick),x=function(){return g.networkManager.fetch(u.input,O,u.config)},R=g.requestSequencer?Ue$(g.requestSequencer,
u,x):x(),l&&g.inflightRequests.set(l,R)),KZ.yield(R,10);
case 10:(k=KZ.yieldResult)&&_.w("web_streaming_player")&&Array.isArray(k)&&(k=k[0].playerResponse);if(k&&"error"in k&&((LZ=k)==null?0:(sb=LZ.error)==null?0:sb.details))for(Rm=k.error.details,M3=_.N(Rm),tT=M3.next();!tT.done;tT=M3.next())mJ=tT.value,(hT=mJ["@type"])&&OQR.indexOf(hT)>-1&&(delete mJ["@type"],k=mJ);l&&g.inflightRequests.has(l)&&g.inflightRequests.delete(l);((Yu=u.config)==null?0:Yu.responseTick)&&_.fW(u.config.responseTick);if(k||(Mx=g.localInnertubeRouter)==null||!Mx.canProvideFallbackResponse(u.input,
u.innerTubeRequest)){KZ.jumpTo(11);break}return KZ.yield(g.localInnertubeRouter.localFallbackInnertubeResponse(u.input,u.innerTubeRequest),12);case 12:k=KZ.yieldResult;case 11:return eC(g,k,u),((po=u.config)==null?0:po.processorTick)&&_.fW(u.config.processorTick),Q(),KZ.return(k||void 0)}})};
_.wv=function(g,u){return $lq(u,g.endpointMap)};
xea=function(g,u){g=wZm(u,g.endpointMap);if(g!==void 0)return Promise.resolve(g)};
zZ$=function(g,u){var q,Q,L,E;return _.D(function(y){if(y.nextAddress==1){L=(q=g)==null?void 0:(Q=q.authStrategy)==null?void 0:Q.sessionIndex;var v=y.yield;var J=_.BX(Grk({sessionIndex:L}));return v.call(y,J,2)}E=y.yieldResult;return y.return(Promise.resolve(Object.assign({},cGF(u),E)))})};
BP8=function(g,u){var q;g=g==null?void 0:(q=g.authStrategy)==null?void 0:q.sessionIndex;q=Grk({sessionIndex:g});return Object.assign({},cGF(u),q)};var gMZ,uX2,q8R,Qqn,LuH,EMn,sqX,yub,Rz,vM8,DzH,NhH,prX;gMZ=0;uX2=/tone[1-5]/;q8R=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Qqn="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
LuH=Number.MAX_SAFE_INTEGER;EMn=RegExp("\ufe0f","g");_.GR=function(g){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;g&&_.PKi(this,g)};
_.PKi=function(g,u){try{_.Ek(u,{context:g,onSuccess:function(Q,L){Array.isArray(L)?g.load(L):(Q=new _.Ji("Emoji manager JSON response was not an array!",{response:L}),_.Zf(Q))},
onError:function(Q){Q=new _.Ji("Failed to retrieve emoji manager initial JSON data!",{url:u,statusCode:_.gu(Q).toString()});_.Io(Q)}})}catch(Q){var q=new _.Ji("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:u});
_.Io(q)}};
_.GR.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.GR.prototype.load=function(g,u){if(u)if(g.length)g=g.concat(u.emojis);else{this.emojis=u.emojis;this.emojiMap=u.emojiMap;this.emojiShortcutMap=u.emojiShortcutMap;this.emojiShortcutCharMap=NhH(u);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=u.emojiRegex;return}this.emojis=[].concat(_.na(new Set(this.emojis.concat(g))));this.hasInitializedShortcutCharMap=!1;g=Array(this.emojis.length);for(u=0;u<this.emojis.length;u++){var q=this.emojis[u];if(q.emojiId){this.emojiMap[q.emojiId]=q;this.emojiMap[q.emojiId].index=
u;for(var Q=0;q.shortcuts&&Q<q.shortcuts.length;Q++)this.emojiShortcutMap[q.shortcuts[Q].toLocaleLowerCase()]=q;g[u]=q.isCustomEmoji&&q.shortcuts?q.shortcuts[0]:q.emojiId}}g.sort(function(L,E){return E.length-L.length});
if(g.length)try{this.emojiRegex=new RegExp(g.join("|").replace("*","\\*"),"gi")}catch(L){this.emojiRegex=/$./}else this.emojiRegex=/$./};
sqX=function(g,u){u=_.N(u);for(var q=u.next();!q.done;q=u.next()){var Q=q.value;if(Q.emojiId&&g.emojiMap[Q.emojiId]){q=Object.assign({},g.emojiMap[Q.emojiId],Q);g.emojiMap[Q.emojiId]=q;var L=void 0;q.index&&((L=g.emojis[q.index])==null?void 0:L.emojiId)===Q.emojiId&&(g.emojis[q.index]=q);Q=void 0;if((Q=q.shortcuts)==null?0:Q.length)for(g.hasInitializedShortcutCharMap=!1,Q=_.N(q.shortcuts),L=Q.next();!L.done;L=Q.next())g.emojiShortcutMap[L.value.toLocaleLowerCase()]=q}}};
yub=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.yN.getInstance(),2);if(Q.nextAddress!=3)return(u=Q.yieldResult)?Q.yield(u.get("ytlc-emoji-pref"),3):Q.return();(q=Q.yieldResult)&&sqX(g,Object.keys(q).map(function(L){return{emojiId:L,stickyPrefId:q[L]}}).filter(function(L){return!!L.emojiId&&!!L.stickyPrefId}));
_.Wx(Q)})};
_.$3=function(g,u,q){return(g=g.emojiMap[u])&&(!g.isLocked||q!==void 0&&q)?g:void 0};
Rz=function(g,u,q){q=_.$3(g,u,q===void 0?!1:q);var Q=u.match("\u200d");q&&g.skinTone!==0&&(g=(Q==null?void 0:Q.length)===1?_.$3(g,u.replace("\u200d",q8R[g.skinTone]+"\u200d")):_.$3(g,u+q8R[g.skinTone]))&&(q=g);return q};
vM8=function(g,u){var q=g.emojiMap[u];return(q==null?0:q.stickyPrefId)?g.emojiMap[q.stickyPrefId]:Rz(g,u)};
_.h7=function(g,u){g=g.emojiShortcutMap[u.toLocaleLowerCase()];return!g||g.isLocked?null:g};
DzH=function(g,u,q){return NhH(g,q===void 0?!1:q)[u]||{}};
NhH=function(g,u){u=u===void 0?!1:u;if(!g.hasInitializedShortcutCharMap){g.hasInitializedShortcutCharMap=!0;for(var q=0;q<g.emojis.length;q++){var Q=g.emojis[q];if(!(Q.isLocked||u&&Q.isCustomEmoji&&Q.emojiId&&!g.pickerCustomEmojiIds.includes(Q.emojiId)))for(var L=0;Q.shortcuts&&L<Q.shortcuts.length;L++){var E=Q.shortcuts[L];E.startsWith(":_")&&Q.isCustomEmoji&&(g.emojiShortcutCharMap[":_"]==null&&(g.emojiShortcutCharMap[":_"]=Object.create(null)),g.emojiShortcutCharMap[":_"][E]=Q);if(!(E.length<3||
!Q.isCustomEmoji&&uX2.test(E))){var y=E.substr(0,3).toLocaleLowerCase();g.emojiShortcutCharMap[y]==null&&(g.emojiShortcutCharMap[y]=Object.create(null));g.emojiShortcutCharMap[y][E]=Q}}}}return g.emojiShortcutCharMap};
_.GR.prototype.createEmoji=function(g,u){u=u===void 0?!0:u;var q=document.createElement("img");g.isCustomEmoji||q.classList.add("small-emoji");q.classList.add("emoji");q.classList.add("yt-formatted-string");q.src=g.image?_.Fh(g.image.thumbnails,this.emojiSize)||"":"";var Q=void 0;g.image&&g.image.accessibility&&g.image.accessibility.accessibilityData&&(Q=g.image.accessibility.accessibilityData.label);q.alt=Q?Q:(g.isCustomEmoji&&g.shortcuts?g.shortcuts[0]:g.emojiId)||"";g.isCustomEmoji&&(q.dataset.emojiId=
g.emojiId);_.xS&&(q.setAttribute("contenteditable","false"),q.setAttribute("unselectable","on"));u&&(g.shortcuts&&g.shortcuts.length&&q.setAttribute("shared-tooltip-text",g.shortcuts[0]),q.id="emoji-"+gMZ++);return q};
_.GR.prototype.createDocumentFragment=function(g,u,q,Q){u=u===void 0?!1:u;q=q===void 0?!0:q;Q=Q===void 0?!1:Q;g=g.replace(EMn,"");for(var L=document.createDocumentFragment(),E=0,y,v=0;(y=this.emojiRegex.exec(g))!=null;){var J=_.$3(this,y[0])||_.h7(this,y[0]);!J||J.isCustomEmoji&&!u||(J=this.createEmoji(J,q),E!==y.index&&L.appendChild(document.createTextNode(g.substring(E,y.index))),L.appendChild(J),E=y.index+y[0].length,v++)}if(!Q||v)return L.appendChild(document.createTextNode(g.substr(E))),L};
prX=function(g,u,q){var Q,L,E,y,v,J,f,t,e;return _.D(function(G){if(G.nextAddress==1){if(!u.emojiId||!g.emojiMap[u.emojiId])return G.return();Q=Object.assign({},g.emojiMap[u.emojiId],{stickyPrefId:q});g.emojiMap[u.emojiId]=Q;u.index&&((L=g.emojis[u.index])==null?void 0:L.emojiId)===u.emojiId&&(g.emojis[u.index]=Q);if((E=u.shortcuts)==null?0:E.length)for(g.hasInitializedShortcutCharMap=!1,y=_.N(u.shortcuts),v=y.next();!v.done;v=y.next())J=v.value,g.emojiShortcutMap[J.toLocaleLowerCase()]=Q;return G.yield(_.yN.getInstance(),
2)}if(G.nextAddress!=4)return(f=G.yieldResult)?G.yield(f.get("ytlc-emoji-pref"),4):G.jumpTo(0);e=(t=G.yieldResult)!=null?t:{};e[u.emojiId]=q;return G.yield(f.set("ytlc-emoji-pref",e,LuH),0)})};
_.wx=new _.GR;var fRi;_.cO={};
fRi={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.w("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:_.w("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 lR(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 g=_.Tr(this.hostElement||this).querySelector("#inline-action-button-container");g&&g.setAttribute("aria-hidden","true");this.menuButton=_.Tr(this.hostElement).querySelector("#menu-button")},
attached:function(){var g=this.menuButton;g&&(g.addEventListener("focusin",_.zr(this,this.onMenuButtonFocus_)),g.addEventListener("focusout",_.zr(this,this.onMenuButtonBlur_)))},
detached:function(){var g=this.menuButton;g&&(g.removeEventListener("focusin",_.zr(this,this.onMenuButtonFocus_)),g.removeEventListener("focusout",_.zr(this,this.onMenuButtonBlur_)))},
identity:_.am,truthy:function(g){return!!g},
computeTimestampString:function(g){return g?g.timestampText?this.getSimpleString(g.timestampText):this.TIME_FORMATTER.format(new Date(g.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(g){return g},
computeMenuVisible_:function(g,u){return g||u},
computeHasInlineActionButtons:function(g){if(!g)return!1;var u,q;return!((u=g.inlineActionButtons)==null||!u.length)||!((q=g.additionalInlineActionButtons)==null||!q.length)},
createDocumentFragmentFromString:function(g){var u=_.wx.createDocumentFragment.bind(_.wx),q;if((q=this.participantsManager)==null||!q.viewerRegex)return u(g);q=document.createDocumentFragment();for(var Q=0,L;(L=this.participantsManager.viewerRegex.exec(g))!=null;){if(L.index>0){var E=":"+L[0]+":";if((_.$3(_.wx,E)||_.h7(_.wx,E))&&g.indexOf(E)===L.index-1)continue}q.appendChild(u(g.substring(Q,L.index)));Q=document.createElement("span");Q.appendChild(u(L[0]));Q.classList.add("mention");q.appendChild(Q);
Q=L.index+L[0].length}q.appendChild(u(g.substring(Q)));return q},
createDocumentFragment:function(g){var u=document.createDocumentFragment();if(g.simpleText)return u.appendChild(this.createDocumentFragmentFromString(g.simpleText)),u;if(!g.runs)return u;for(var q=0;q<g.runs.length;q++){var Q=g.runs[q];if(Q.emoji)u.appendChild(_.wx.createEmoji(Q.emoji));else if(Q.text)if(Q.navigationEndpoint){var L=document.createElement("a");L.classList.add("yt-simple-endpoint");a7Z(L,Q.navigationEndpoint);_.Tr(L).appendChild(this.createDocumentFragmentFromString(Q.text));u.appendChild(L)}else u.appendChild(this.createDocumentFragmentFromString(Q.text))}return u},
hasModerationOverlayVisible:function(){var g;return((g=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:g.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(g){g.composedPath().some(function(u){return(u=u instanceof Element?u:null)?u.tagName&&(u.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||u.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.w("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(g)},
colorFromDecimal:function(g){return $jS(g)},
markAsDeleted:function(g,u){this.set("data.deletedStateMessage",g);this.set("data.showOriginalContentMessage",u)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(g){if(this.data.contextMenuEndpoint){var u=_.Bk().resolve(_.qR),q=this.data.contextMenuEndpoint,Q;(Q=_.R9.instance)&&_.wv(Q,q)?(u=JuZ(u,q),Q=_.wE(Q,{},u)):Q=_.jq5(u,q);Q.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);g&&g.stopPropagation()}},
handleGetContextMenuResponse_:function(g){var u=_.R9.instance;u&&_.wv(u,{liveChatEndpoint:{}})||(g=g.response);g.liveChatItemContextMenuSupportedRenderers&&g.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(g.liveChatItemContextMenuSupportedRenderers.menuRenderer);g.actions&&_.YJ(this.hostElement,"yt-live-chat-actions",[g.actions])},
handleGetContextMenuError:function(g){if(g instanceof Error||g instanceof Object||g instanceof String)var u=g;_.Zf(new _.Ji("Error encountered calling GetLiveChatItemContextMenu",u))},
showContextMenu_:function(g){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:g}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.hJ(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.hJ(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.cO.YtLiveChatItemBehavior=[fRi,_.M8.YtComponentBehavior,_.Ov.YtOpenPopupBehavior];_.HO=function(){};var Mrx;var trR;var eX5;var G48;var AX=function(){var g=_.X.apply(this,arguments)||this;g.active=!1;g.identity=_.am;return g};
_.A(AX,_.X);AX.prototype.dataChanged=function(){this.active=!1};
AX.prototype.onClick=function(){_.hJ(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
AX.prototype.dataChanged=AX.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],AX.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],AX.prototype,"active",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AX.prototype,"dataChanged",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],AX);
_.T(AX,"yt-live-chat-text-input-field-suggestion",function(){if(G48===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;eX5===void 0&&(eX5=document.createElement("template"));var Q=eX5;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);G48=g}g=G48;return g},{mode:0});_.ZC=function(g,u,q){return CustomEvent.call(this,g,{detail:{value:u,path:q}})||this};
_.A(_.ZC,CustomEvent);_.lT=function(){var g=_.X.apply(this,arguments)||this;g.viewerName=null;g.actionMap={"yt-live-chat-actions":"onChatMessage_"};g.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];g.PARTICIPANT_TIME_USEC_=3E8;return g};
_.A(_.lT,_.X);_.P=_.lT.prototype;_.P.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.P.addParticipant=function(g){var u=_.VKq(this.participants,g,function(Q,L){Q=Q[Object.keys(Q)[0]];L=L[Object.keys(L)[0]];Q=String(_.iR(Q.authorName)).toLowerCase();L=String(_.iR(L.authorName)).toLowerCase();return Q<L?-1:Q==L?0:1}.bind(this));
if(u>=0){var q=this.participants[u];q[Object.keys(q)[0]].timestampUsec&&this.splice("participants",u,1,g)}else this.splice("participants",-u-1,0,g);g=g[Object.keys(g)[0]];u=_.iR(g.authorName).toLocaleLowerCase();q=u.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(q)||(this.allParticipantsCharMap_[q]={});this.allParticipantsCharMap_[q][u]=g};
_.P.getAuthorsFromPrefix=function(g){return this.allParticipantsCharMap_.hasOwnProperty(g)?this.allParticipantsCharMap_[g]:null};
_.P.computeViewerRegex_=function(g){if(!g)return null;g=g.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var u=g.indexOf("@")===0&&_.w("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(u+g.replace(/ /g,"\\s*")+"|^"+g.replace(/ /g,"\\s*")+"$|^"+g.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+g.replace(/ /g,"\\s*")+"$|(?<=\\s)"+g.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.P.checkForStaleParticipants_=function(){var g=this;this.trimOldParticipants_();this.asyncHandle_&&UNf(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.wO(function(){g.checkForStaleParticipants_()},3E4))};
_.P.onChatMessage_=function(g){var u=this,q=Date.now()*1E3;g.forEach(function(Q){if(Q=_.c(Q,Sda)){Q=Q.item;var L=Object.keys(Q)[0];u.SUPPORTED_ITEM_TYPES_.indexOf(L)!=-1&&Q[L].timestampUsec>=q-u.PARTICIPANT_TIME_USEC_&&u.addParticipant(Q)}},this);
this.checkForStaleParticipants_()};
_.P.trimOldParticipants_=function(){for(var g=Date.now()*1E3,u=this.participants.length-1;u>=0;u--){var q=this.participants[u];q=q[Object.keys(q)[0]];q.timestampUsec&&q.timestampUsec<g-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",u,1)}};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],_.lT.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],_.lT.prototype,"viewerName",void 0);_.Y([_.a({computed:"computeViewerRegex_(viewerName)"}),_.K("design:type",Object)],_.lT.prototype,"viewerRegex",void 0);_.Y([_.a({value:function(){return[]},
notify:!0}),_.K("design:type",Array)],_.lT.prototype,"participants",void 0);_.Y([_.jP({is:"yt-live-chat-participants-manager",noInjection:!0})],_.lT);var $zi=/.*([:@#].*?)$/,Iz=/\u00a0/g,RXa=String.fromCharCode(160),wr8={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"},iT=function(){var g=_.X.apply(this,arguments)||this;g.disabled=!1;g.liveChatRichMessageInput=null;g.messageInput=null;g.isValidWithNoInputText=!1;g.suggestions=[];g.emojiManager=_.wx;g.inputMethodEditorActive=
!1;g.suggestionIndex=-1;g.JSC$14541_lastSuggestionRange=null;return g};
_.A(iT,_.X);_.P=iT.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.P.attached=function(){_.qM&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.P.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.P.dataChanged=function(){if(!this.ignoreColorMapping){var g=!1,u={},q;for(q in wr8)this.data&&this.data.hasOwnProperty(q)&&(u[wr8[q]]=this.colorFromDecimal(this.data[q]),g=!0);g&&_.x_(this.hostElement,u)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.P.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.P.colorFromDecimal=function(g){g=Math.floor(Number(g));return"rgba("+[g>>16&255,g>>8&255,g&255,(g>>24&255)/255].join()+")"};
_.P.preventDrag=function(g){g.dataTransfer&&(g.dataTransfer.dropEffect="none");g.preventDefault()};
_.P.preventResize=function(g){g.returnValue=!1};
_.P.onInputChange=function(){var g=this.characterCount,u=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&u&&u.remove();if(!u&&this.characterCount>this.maxCharacterLimit){var q=window.getSelection();if(q){var Q=q.getRangeAt(0);q.removeAllRanges();q.addRange(Q)}}if(q=this.getCurrentRange())Q=this.calculateTextBeforeRange(q),this.completeEmojisInRange(q,Q,!0)||this.updateSuggestions(q,Q);Q=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Q);
_.hJ(this.hostElement,"yt-live-chat-message-input-change",Q);u&&this.characterCount===0&&u.remove();q&&q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>g):q&&!q.collapsed&&q.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(g=this.input.childNodes.length-1;g>=0;g--)this.input.childNodes[g].nodeName==="BR"&&this.input.childNodes[g].remove()};
_.P.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.P.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var g=this.getCurrentRange();g&&g.commonAncestorContainer.parentElement.id==="input"&&g.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.mergeOverflowText=function(g){if(g){var u=document.createRange();u.selectNodeContents(g);u=u.extractContents();this.input.insertBefore(u,g)}};
_.P.checkRangeAtEndOfInput=function(){var g=this.getCurrentRange();if(g){var u=_.Tr(this.hostElement).querySelector("#overflow-text"),q=document.createRange();u&&u.previousSibling?u.previousSibling instanceof HTMLImageElement?q.selectNode(u.previousSibling):q.selectNodeContents(u.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?q.selectNode(this.input.lastChild):q.selectNodeContents(this.input.lastChild));q.collapse(!1);return q.isPointInRange(g.startContainer,
g.startOffset)}return!1};
_.P.handleOverflowText=function(g){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var u=_.Tr(this.hostElement).querySelector("#overflow-text"),q=this.getCurrentRange();this.input.normalize();g=this.checkRangeAtEndOfInput()&&g;this.mergeOverflowText(u);for(var Q,L=0,E=0,y,v=this.input.childNodes,J=0;J<v.length;J++){var f=v[J];f instanceof Text?(E+=f.textContent.length,E>this.maxCharacterLimit&&(Q=f,L=this.maxCharacterLimit+f.textContent.length-E)):f instanceof HTMLImageElement&&
(Q=void 0,E=f.dataset.emojiId&&((Q=this.data)==null?0:Q.emojiCharacterCount)?E+this.data.emojiCharacterCount:E+f.alt.length,Q=this.input,L=J);if(E>this.maxCharacterLimit&&Q){y=document.createRange();y.collapse(!1);u?(E=this.input.lastChild.previousSibling,E instanceof Text?y.setEnd(this.input.lastChild.previousSibling,E.textContent.length):E instanceof HTMLImageElement&&y.setEnd(this.input,this.input.childNodes.length-1)):y.selectNodeContents(this.input);y.setStart(Q,L);break}}y&&(Q=!1,q&&(g=y.isPointInRange(q.startContainer,
q.startOffset-1)),u||(u=document.createElement("span"),u.id="overflow-text",u.textContent="",u.setAttribute("contenteditable","true"),_.Tr(_.Tr(this.hostElement).querySelector("#input")).appendChild(u),Q=!0),u&&(q=y.extractContents(),u.insertBefore(q,u.firstChild),g&&u.firstChild&&(q=document.createRange(),Q?q.setStartAfter(u.lastChild):q.setStartAfter(u.firstChild),q.collapse(!0),u=window.getSelection(),u.removeAllRanges(),u.addRange(q))))}};
_.P.checkForDuplicateSpans=function(){for(var g=0;g<this.input.childNodes.length;g++){var u=this.input.childNodes[g];if(u.nodeName==="SPAN"){var q=document.createRange();q.selectNodeContents(u);q=q.extractContents();this.input.insertBefore(q,u);u.remove()}}this.handleOverflowText(!0)};
_.P.getCurrentRange=function(){var g=window.getSelection();return g&&g.rangeCount?g.getRangeAt(0).cloneRange():null};
_.P.getInputRange=function(){var g=this.getCurrentRange();if(g){for(var u=g.commonAncestorContainer,q=!1,Q=_.Tr(this.hostElement).querySelector("#input");u;){if(u===Q){q=!0;break}u=u.parentNode}q||(g=null)}g||(g=this.getRangeAtEnd());return g};
_.P.getRangeAtEnd=function(){var g=document.createRange(),u=_.Tr(this.hostElement).querySelector("#input").lastChild;!u||u.nodeName!=="#text"&&u.nodeName!=="SPAN"?(g.selectNodeContents(_.Tr(this.hostElement).querySelector("#input")),g.collapse(!1)):u.nodeName==="#text"?g.setStart(u,u.textContent.length):g.setStart(u,u.childNodes.length);return g};
_.P.getChatParticipantSuggestions=function(g,u,q,Q){var L=_.w("live_chat_enable_handles_web_text_input_update");if(u)for(var E in u)if(E.indexOf(g)===0||L&&E.indexOf(q+g)===0){var y=u[E],v=_.iR(y.authorName);Q.push({suggestion:{author:!0,authorType:q,image:y.authorPhoto,alt:v,text:v}});if(Q.length>=64)break}};
_.P.getSuggestions=function(g){var u=[],q=g.substring(0,3),Q=DzH(_.wx,q,!0);if(Q)for(var L in Q)if(L.toLocaleLowerCase().indexOf(g)===0){var E=Q[L];if(E&&E.emojiId){if(E=vM8(_.wx,E.emojiId)){var y=void 0,v=void 0,J=void 0,f=void 0,t=((y=E.image)==null?0:(v=y.accessibility)==null?0:(J=v.accessibilityData)==null?0:J.label)||E.isCustomEmoji?(f=E.shortcuts)==null?void 0:f[0]:E.emojiId;u.push({suggestion:{emoji:!0,image:E.image,alt:t,text:L,textToInsertWhenSelected:E.isCustomEmoji?L:t}})}if(u.length>=
64)break}}if(!this.participantsManager)return null;if(q.indexOf("@")===0||q.indexOf("#")===0)Q=q.charAt(0),g=g.substring(1),L=_.w("live_chat_enable_handles_web_text_input_update"),q.indexOf("@")===0&&L&&(L=this.participantsManager.getAuthorsFromPrefix(q.substring(0,2)),this.getChatParticipantSuggestions(g,L,Q,u)),q=q.substring(1),q=this.participantsManager.getAuthorsFromPrefix(q),this.getChatParticipantSuggestions(g,q,Q,u);return u?u.sort(function(e,G){return G.suggestion.text<e.suggestion.text?-1:
G.suggestion.text===e.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(g){var u=_.w("live_chat_enable_handles_web_text_input_update"),q=g.authorType;u=g.text.indexOf(q)===0&&u?g.text+RXa:q+g.text+RXa;g.emoji?this.insertTextAtRange(this.JSC$14541_lastSuggestionRange,g.textToInsertWhenSelected||""):g.author&&this.insertTextAtRange(this.JSC$14541_lastSuggestionRange,u)};
_.P.updateSuggestionsAtCaret=function(){var g=this.getCurrentRange();g&&this.updateSuggestions(g,this.calculateTextBeforeRange(g))};
_.P.offsetStartOfRangeBy=function(g,u){for(;u>0;)if(g.startOffset-u>=0){g.setStart(g.startContainer,g.startOffset-u);break}else{u=g.startContainer instanceof HTMLImageElement?u-g.startContainer.alt.length:u-g.startOffset;var q=g.startContainer.previousSibling;if(!q){g.setStart(g.startContainer,0);break}if(_.w("live_chat_require_space_for_autocomplete_emoji")){var Q=void 0,L=void 0;g.setStart(q,((Q=q)==null?void 0:(L=Q.textContent)==null?void 0:L.length)||0)}else g.setStart(q,q.childNodes.length||
0)}};
_.P.updateSuggestions=function(g,u){var q=this;this.JSC$14541_lastSuggestionRange&&(this.JSC$14541_lastSuggestionRange.detach(),this.JSC$14541_lastSuggestionRange=null);if((u=$zi.exec(u))&&u.length&&(u=u[u.length-1].toLocaleLowerCase(),u.length>2&&(this.offsetStartOfRangeBy(g,u.length),this.JSC$14541_lastSuggestionRange=g,(g=this.getSuggestions(u))&&g.length))){this.suggestions=g;_.xt(this,function(){_.Tr(q.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(g.length-1);return}this.dropdown.opened=!1};
_.P.completeEmojisInRange=function(g,u,q){var Q=u.replace(/[\s\xa0]+$/,"");u=u.length-Q.length;Q=Q.split(" ");Q=Q[Q.length-1].trim().toLocaleLowerCase();var L=Q.lastIndexOf(":");if(q&&!u&&L!==Q.length-1)return!1;L!==-1&&(q=Q.lastIndexOf(":",L-1),q!==-1&&(Q=Q.substring(q)));if((q=_.h7(_.wx,Q))&&q.emojiId){q=vM8(_.wx,q.emojiId)||null;this.offsetStartOfRangeBy(g,Q.length+u);var E,y,v,J;Q=(((E=q)==null?0:E.isCustomEmoji)?(y=q)==null?void 0:(v=y.shortcuts)==null?void 0:v[0]:(J=q)==null?void 0:J.emojiId)||
"";u&&(Q+=RXa);this.insertTextAtRange(g,Q);this.dropdown.opened=!1;return!0}return!1};
_.P.onSuggestion=function(g){this.insertSuggestion(g.detail);this.dropdown.opened=!1};
_.P.onKeyPress=function(g){g.keyCode===13&&(g.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.hJ(this.hostElement,"yt-live-chat-send-message"))};
_.P.completeEmojis=function(){var g=document.createRange(),u=_.Tr(this.hostElement).querySelector("#input").lastChild;u?g.setStart(u,u.childNodes.length):(g.selectNodeContents(_.Tr(this.hostElement).querySelector("#input")),g.collapse(!1));this.completeEmojisInRange(g,this.calculateTextBeforeRange(g),_.w("live_chat_require_space_for_autocomplete_emoji"))};
_.P.maybePreventTextFormatting=function(g){!_.nT||!g.ctrlKey&&!g.metaKey||g.keyCode!==66&&g.keyCode!==73||(g.stopImmediatePropagation(),g.preventDefault())};
_.P.onKeyDown=function(g){this.maybePreventTextFormatting(g);if(this.dropdown.opened)switch(g.keyCode){case 27:this.dropdown.opened=!1;g.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;g.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);g.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),g.preventDefault()}};
_.P.onKeyUp=function(g){switch(g.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.xS)this.onInputChange()};
_.P.changeSuggestionIndex=function(g){if(this.dropdown.opened){var u=_.Tr(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<u.children.length&&(u.children[this.suggestionIndex].active=!1);var q=this.suggestions.length;this.suggestionIndex=(g+q)%q;g=u.children[this.suggestionIndex];g.active=!0;u.scrollTop=g.offsetTop}};
_.P.onInputPaste=function(g){g.preventDefault();(g=g.clipboardData)&&g.types&&(g=g.getData("text/plain")||"",g=g.replace(/\n/g,""),this.insertText(g));(g=this.getCurrentRange())&&g.commonAncestorContainer.parentElement.id==="input"&&g.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.onFocus=function(){this._setFocused(!0)};
_.P.onBlur=function(){this._setFocused(!1)};
_.P.insertText=function(g){this.insertTextAtRange(this.getInputRange(),g)};
_.P.insertTextAtRange=function(g,u){if(g&&(g.collapsed||g.deleteContents(),u=_.wx.createDocumentFragment(u,!0,!1))){for(var q=_.N((u==null?void 0:u.childNodes)||[]),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var L=void 0,E=void 0,y=void 0,v=void 0,J=void 0;(y=(L=window)==null?void 0:(E=L.ShadyCSS)==null?void 0:E.ScopingShim)==null||(J=(v=y).scopeNode)==null||J.call(v,Q,this.hostElement.localName)}q=u.lastChild;g.insertNode(u);this.focused||this.input.focus();if(this.focused){g=g.cloneRange();g.selectNodeContents(q);
g.collapse(!1);if(u=window.getSelection())u.removeAllRanges(),u.addRange(g);g.commonAncestorContainer.parentElement.id==="input"&&g.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}g=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(g);_.hJ(this.hostElement,"yt-live-chat-message-input-change",g)}};
_.P.setLiveChatRichMessageInput=function(g){_.Tr(_.Tr(this.hostElement).querySelector("#input")).textContent="";if(g&&g.textSegments){for(var u=0;u<g.textSegments.length;u++){var q=g.textSegments[u];q.text?_.Tr(_.Tr(this.hostElement).querySelector("#input")).appendChild(_.wx.createDocumentFragment(q.text,!0,!1)):q.emojiId&&(q=_.$3(_.wx,q.emojiId))&&_.Tr(_.Tr(this.hostElement).querySelector("#input")).appendChild(_.wx.createEmoji(q,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.P.setText=function(g){this.setLiveChatRichMessageInput(g?{textSegments:[{text:g}]}:null)};
_.P.calculateTextBeforeRange=function(g){var u="",q=g.startContainer;if(q&&q instanceof Text){var Q;u=((Q=q.textContent)==null?void 0:Q.substring(0,g.startOffset))||"";q=q.previousSibling}for(;q&&q instanceof Text;)u=q.textContent+u,q=q.previousSibling;return u.replace(Iz," ")};
_.P.calculateLiveChatRichMessageInput=function(){for(var g=[],u="",q=_.Tr(_.Tr(this.hostElement).querySelector("#input")).childNodes,Q=0;Q<q.length;Q++){var L=q[Q];L instanceof Text?u+=L.textContent:L instanceof HTMLImageElement&&(L.dataset.emojiId?(u&&(g.push({text:u.replace(Iz," ")}),u=""),g.push({emojiId:L.dataset.emojiId})):u+=L.alt)}u&&g.push({text:u.replace(Iz," ")});if(q=_.Tr(this.hostElement).querySelector("#overflow-text")){u="";q=q.childNodes;for(Q=0;Q<q.length;Q++)L=q[Q],L instanceof Text?
u+=L.textContent:L instanceof HTMLImageElement&&(L.dataset.emojiId?(u&&(g.push({text:u.replace(Iz," ")}),u=""),g.push({emojiId:L.dataset.emojiId})):u+=L.alt);u&&g.push({text:u.replace(Iz," ")})}return{textSegments:g}};
_.P.computeCharacterCount=function(g){if(!g||!g.textSegments)return 0;for(var u=0,q=0;q<g.textSegments.length;q++){var Q=g.textSegments[q];if(Q.text)u+=Q.text.length;else if(Q.emojiId){var L=void 0;if((L=this.data)==null?0:L.emojiCharacterCount)u+=this.data.emojiCharacterCount;else{var E=L=void 0,y=void 0;u+=((E=_.$3(_.wx,(L=Q)==null?void 0:L.emojiId))==null?void 0:(y=E.shortcuts)==null?void 0:y[0].length)||0}}}return u};
_.P.characterCountChanged=function(){_.hJ(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.P.focusedChanged=function(){this.hostElement.dispatchEvent(new _.ZC("focused-changed",this.focused))};
_.P.focus=function(){this.setFocus(!1)};
_.P.focusAtEnd=function(){this.setFocus(!0)};
_.P.setFocus=function(g){g=g?this.getRangeAtEnd():this.getInputRange();_.Tr(this.hostElement).querySelector("#input").focus();var u=window.getSelection();u&&(u.removeAllRanges(),u.addRange(g))};
_.P.insertEmoji=function(g){var u,q=((g==null?0:g.isCustomEmoji)?(u=g.shortcuts)==null?void 0:u[0]:g==null?void 0:g.emojiId)||"";this.insertText(q)};
_.P.computeText=function(g){if(!g||!g.textSegments)return"";for(var u="",q=0;q<g.textSegments.length;q++){var Q=g.textSegments[q];if(Q.text)u+=Q.text;else if(Q.emojiId){var L=void 0,E=void 0,y=void 0;u+=((E=_.$3(_.wx,(L=Q)==null?void 0:L.emojiId))==null?void 0:(y=E.shortcuts)==null?void 0:y[0])||""}}return u};
_.P.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.z3.Object.defineProperties(iT.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.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}}});
iT.prototype.focusedChanged=iT.prototype.focusedChanged;iT.prototype.characterCountChanged=iT.prototype.characterCountChanged;iT.prototype.onSuggestion=iT.prototype.onSuggestion;iT.prototype.onMessageSet=iT.prototype.onMessageSet;iT.prototype.dataChanged=iT.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],iT.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],iT.prototype,"disabled",void 0);_.Y([_.C("disabled"),_.K("design:type",Number),_.K("design:paramtypes",[])],iT.prototype,"inputTabIndex",null);_.Y([_.C("data.maxCharacterLimit"),_.a({readOnly:!0,notify:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],iT.prototype,"maxCharacterLimit",null);
_.Y([_.C("liveChatRichMessageInput"),_.a({readOnly:!0,notify:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],iT.prototype,"characterCount",null);_.Y([_.C("maxCharacterLimit, characterCount"),_.a({readOnly:!0,notify:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],iT.prototype,"remainingCharacterCount",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],iT.prototype,"isChatMessageInput",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],iT.prototype,"inputExpanded",void 0);_.Y([_.a({readOnly:!0,notify:!0}),_.K("design:type",Object)],iT.prototype,"liveChatRichMessageInput",void 0);_.Y([_.a(),_.K("design:type",Object)],iT.prototype,"messageInput",void 0);_.Y([_.a(),_.K("design:type",Boolean)],iT.prototype,"ignoreColorMapping",void 0);_.Y([_.C("characterCount"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],iT.prototype,"hasText",null);
_.Y([_.a(),_.K("design:type",Object)],iT.prototype,"isValidWithNoInputText",void 0);_.Y([_.C("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.a(),_.K("design:type",Boolean),_.K("design:paramtypes",[])],iT.prototype,"isInputValid",null);_.Y([_.a({readOnly:!0,value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],iT.prototype,"focused",void 0);_.Y([_.a(),_.K("design:type",Array)],iT.prototype,"suggestions",void 0);
_.Y([_.a(),_.K("design:type",_.GR)],iT.prototype,"emojiManager",void 0);_.Y([_.a(),_.K("design:type",_.lT)],iT.prototype,"participantsManager",void 0);_.Y([_.a(),_.K("design:type",Boolean)],iT.prototype,"noUnderline",void 0);_.Y([_.a(),_.K("design:type",Object)],iT.prototype,"inputMethodEditorActive",void 0);_.Y([_.oE("#dropdown"),_.K("design:type",Object)],iT.prototype,"dropdown",void 0);_.Y([_.oE("#input"),_.K("design:type",HTMLElement)],iT.prototype,"input",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iT.prototype,"dataChanged",null);_.Y([_.k_("messageInput"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iT.prototype,"onMessageSet",null);_.Y([_.n6("yt-live-chat-select-suggestion"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],iT.prototype,"onSuggestion",null);
_.Y([_.k_("characterCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iT.prototype,"characterCountChanged",null);_.Y([_.k_("focused"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iT.prototype,"focusedChanged",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],iT);
_.cuZ=_.T(iT,"yt-live-chat-text-input-field-renderer",function(){if(trR===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Mrx===void 0&&(Mrx=document.createElement("template"));var Q=Mrx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);trR=g}g=trR;return g},{mode:0});var CF=function(){var g=_.X.apply(this,arguments)||this;g.buttonOverrides={style:"overlay",type:"filled"};g.allowAnimations=!1;g.modern=_.w("web_button_rework_with_live");g.noPadding=!1;return g};
_.A(CF,_.X);_.P=CF.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.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"}}}}};
_.P.ready=function(){var g=document.querySelector("yt-live-chat-app");g&&g.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.attached=function(){this.allowAnimations=!1};
_.P.dataChanged=function(){if(this.data){var g={"--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)};_.x_(this.hostElement,g);this.allowAnimations=!0}};
_.P.messageChanged=function(){var g,u=(g=this.data)==null?void 0:g.message;g=_.Tr(_.Tr(this.hostElement).querySelector("#message"));g.textContent="";u&&g.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(u))};
_.P.computeShowOnlyHeader=function(g,u){return!g||g.pdgLikeButton||g.replyButton||g.buyFlowButton?!1:this.isEmpty(g,u)&&!g.footer};
_.P.computeShowFooterDivider=function(g,u,q){return g?!!g.footer&&!this.isEmpty(g,u)&&!q:!1};
_.P.computeIsUserEditable=function(g){return!!g.inputField};
_.P.computeHasHeartButton=function(g){return(g==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(g==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(g==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.P.computeNoveltyImage=function(g){if(g.headerOverlayImage&&g.headerOverlayImage.thumbnails.length){var u=g.headerOverlayImage.thumbnails[0],q,Q;if((q=g.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Q=q.loggingDirectives)==null?0:Q.trackingParams){var L,E;lRm((L=g.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(E=L.loggingDirectives)==null?void 0:E.trackingParams)}return u.width||0}return 0};
_.P.computeAuthorPhotoSize=function(g){return(g==null?0:g.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.P.inputFocus=function(){var g=_.Tr(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");g&&g.focus()};
_.P.inputInsertEmoji=function(g){var u=_.Tr(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");u&&u.insertEmoji(g)};
_.P.inputMessage=function(){var g=_.Tr(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),u;return g&&((u=this.data)==null?0:u.inputField)?(g.completeEmojis(),_.eT(g.liveChatRichMessageInput)):null};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.P.isEmpty=function(g,u){return g?g.empty||!(g.message||g.inputField||u):!0};
_.P.onLowerBuyButtonClick=function(){var g,u=_.c((g=this.data)==null?void 0:g.buyButton,_.eW);u&&u.trackingParams&&!whK(u.command)&&(g=_.Lr(u.trackingParams))&&(u=_.j_())&&_.Ip(u,g)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.z3.Object.defineProperties(CF.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
CF.prototype.isDeletedChanged=CF.prototype.isDeletedChanged;CF.prototype.messageChanged=CF.prototype.messageChanged;CF.prototype.dataChanged=CF.prototype.dataChanged;_.Y([_.I(Ki$.YtPdgLiveChatItemBehavior),_.K("design:type",Object)],CF.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],CF.prototype,"ytLiveChatReduxBehavior",void 0);
_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],CF.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],CF.prototype,"data",void 0);_.Y([_.a({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:AuJ}),_.K("design:type",Object)],CF.prototype,"engagementState",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.K("design:type",Boolean)],CF.prototype,"isUserEditable",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.K("design:type",Boolean)],CF.prototype,"hasHeartButton",void 0);_.Y([_.a({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.K("design:type",Boolean)],CF.prototype,"showOnlyHeader",void 0);
_.Y([_.a({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.K("design:type",Boolean)],CF.prototype,"showFooterDivider",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Object)],CF.prototype,"allowAnimations",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],CF.prototype,"dashboardMoneyFeed",void 0);_.Y([_.a({computed:"computeNoveltyImage(data)"}),_.K("design:type",Number)],CF.prototype,"noveltyWidth",void 0);
_.Y([_.a({computed:"computeAuthorPhotoSize(data)"}),_.K("design:type",Number)],CF.prototype,"authorPhotoSize",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],CF.prototype,"modern",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],CF.prototype,"noPadding",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CF.prototype,"dataChanged",null);
_.Y([_.k_("data.message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CF.prototype,"messageChanged",null);_.Y([_.C("data","dashboardMoneyFeed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],CF.prototype,"hideLowerBumper",null);_.Y([_.k_("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CF.prototype,"isDeletedChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],CF);
_.T(CF,"yt-live-chat-paid-message-renderer",function(){if(Il$===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;lla===void 0&&(lla=document.createElement("template"));var Q=lla;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Il$=g}g=Il$;return g},{mode:0});var Hg5;var Au8;var bT=function(){var g=_.gO.apply(this,arguments)||this;g._noAccessors=!0;return g};
_.A(bT,_.gO);bT.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.FR("openPopupConfig")};
_.Y([_.I(_.Ov.YtOpenPopupBehavior),_.K("design:type",Object)],bT.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.uU()],bT);_.dx=[_.Ov.YtOpenPopupBehavior,bT.prototype];var Zgn;var TQF=[_.kZ,AH8,_.MB,_.Y6i,_.I9,_.kPa,_.fq,_.g$,_.Sb,_.s_i,_.l1];_.w("web_show_ep_endpoint_response_received")&&TQF.push(_.fT);var WJ8=new _.Fv("RESPONSE_RECEIVED_COMMANDS"),WjS=new _.Fv("RESPONSE_RECEIVED_COMMANDS");var dlS="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),b$m=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],CQm=["GET_UNSEEN_NOTIFICATION_COUNT"];var F6=function(){var g=_.gO.apply(this,arguments)||this;g._noAccessors=!0;g.serviceEndpointHandlers=[];return g};
_.A(F6,_.gO);F6.prototype.created=function(){var g=this;this.endpointHandlerActionMap={"yt-service-request":function(u,q,Q,L){var E;return i$J(g.hostElement,u,q,Q,L,g.serviceEndpointHandlers,(E=g.onEntitiesUpdated)==null?void 0:E.bind(g))}}};
F6.prototype.attached=function(){_.XU(_.VC.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
F6.prototype.detached=function(){_.r9(_.VC.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.Y([_.uU()],F6);_.lRR=[F6.prototype];var IRH,igo=function(){return IRH!==void 0?IRH:IRH=document.createElement("template")};
document.head.appendChild(igo().content);var CKX;var bgx=document.head,dzb=bgx.appendChild,Fun;if(CKX===void 0){var mz2=document.createElement("template");_.Z(mz2,"\x3c!--css-build:shady--\x3e");mz2.content.insertBefore(igo().content.cloneNode(!0),mz2.content.firstChild);CKX=mz2}Fun=CKX;dzb.call(bgx,Fun.content);var aR8,Vr8=function(){return aR8!==void 0?aR8:aR8=document.createElement("template")};
document.head.appendChild(Vr8().content);var XrR;var rux=document.head,Wu5=rux.appendChild,Thb;if(XrR===void 0){var hX0=document.createElement("template");_.Z(hX0,"\x3c!--css-build:shady--\x3e");hX0.content.insertBefore(Vr8().content.cloneNode(!0),hX0.content.firstChild);XrR=hX0}Thb=XrR;Wu5.call(rux,Thb.content);var Y8i;_.Ny("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Ny("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Y8i=_.w("web_button_rework")&&_.mW("BUTTON_REWORK")||_.w("web_button_rework_with_live");_.m4=function(){var g=_.X.apply(this,arguments)||this;g.isPressed=!1;g.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return g};
_.A(_.m4,_.X);_.P=_.m4.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.onHintIdChanged=function(){var g=this,u,q,Q=(u=this.ytButtonBehavior.data)==null?void 0:(q=u.hint)==null?void 0:q.hintRenderer;if(Q&&Q.hintId){u=_.Og(this.hostElement,"yt-get-opened-popups-action");u=(u&&u.length===1?u[0]:[]).length>0;var L=null;Q.hintId!=="sponsor-pre-purchase"||u?Q.hintId.startsWith("sponsor-post-purchase")&&!u?L=bXo("membership-manage"):Q.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!u&&(L=bXo("membership-freebie-join")):L=bXo("membership-join");L&&_.Hv.addLowPriorityJob(function(){for(var E=
_.N(L),y=E.next();!y.done;y=E.next())g.ytComponentBehavior.resolveCommand(y.value)})}};
_.P.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.P.onYtNavigate=function(g){var u=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(g.detail.endpoint);u&&(g.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(u))};
_.P.onYtServiceRequestSent=function(g,u){this.handleServiceRequestActions(u);_.hJ(this.hostElement,"yt-service-request-sent-button-renderer")};
_.P.onServiceRequestCompleted=function(g,u){this.handleServiceRequestActions(u);_.hJ(this.hostElement,"yt-service-request-completed-button-renderer")};
_.P.updateButton=function(g){var u;if(g=(u=_.c(g,egH))==null?void 0:u.updatedButton)this.ytButtonBehavior.data=_.c(g,_.eW)};
_.P.handleUpdateButtonAction=function(g){var u=this.ytButtonBehavior.data;u.targetId&&g.updateButtonAction.targetId&&u.targetId===g.updateButtonAction.targetId&&this.updateButton(g)};
_.P.handleServiceRequestActions=function(g){if(g=g.actions)for(var u=0;u<g.length;u++)this.updateButton(g[u])};
_.z3.Object.defineProperties(_.m4,{template:{configurable:!0,enumerable:!0,get:function(){if(Zgn===void 0){var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);Zgn=g}g=Zgn;return g}}});
_.m4.prototype.onServiceRequestCompleted=_.m4.prototype.onServiceRequestCompleted;_.m4.prototype.onYtServiceRequestSent=_.m4.prototype.onYtServiceRequestSent;_.m4.prototype.onYtNavigate=_.m4.prototype.onYtNavigate;_.m4.prototype.onPressedStateChanged=_.m4.prototype.onPressedStateChanged;_.m4.prototype.onHintIdChanged=_.m4.prototype.onHintIdChanged;_.Y([_.a(),_.K("design:type",Object)],_.m4.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],_.m4.prototype,"isPressed",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],_.m4.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.zpb.YtButtonBehavior),_.K("design:type",Object)],_.m4.prototype,"ytButtonBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],_.m4.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],_.m4.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(Uv.YtRenderButtonBehavior),_.K("design:type",Object)],_.m4.prototype,"ytRenderButtonBehavior",void 0);_.Y([_.k_("data.hint.hintRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],_.m4.prototype,"onHintIdChanged",null);_.Y([_.k_("isPressed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],_.m4.prototype,"onPressedStateChanged",null);
_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],_.m4.prototype,"onYtNavigate",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],_.m4.prototype,"onYtServiceRequestSent",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],_.m4.prototype,"onServiceRequestCompleted",null);_.Y([_.fE({is:"ytd-button-renderer",disableElementRegistration:Y8i})],_.m4);var az=function(){var g=_.X.apply(this,arguments)||this;g.modern=_.w("web_button_rework_with_live");g.buttonOverrides={style:"overlay",type:"filled"};return g};
_.A(az,_.X);_.P=az.prototype;_.P.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"}}}}};
_.P.ready=function(){var g=document.querySelector("yt-live-chat-app");g&&g.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.dataChanged=function(){if(this.data&&this.data.sticker){var g=_.Fh(this.data.sticker.thumbnails,this.stickerWidth);g||_.BQb(g).thenCatch(function(){_.Io(new _.Ji("Failed to load Super Sticker with url",g))})}};
_.P.computeAuthorPhotoSize=function(g){return(g==null?0:g.isV2Style)?32:40};
_.P.computeIsV2Style=function(g){return(g==null?0:g.isV2Style)?!0:!1};
_.P.onStickerLoaded=function(g){var u,q,Q;(u=_.bd(g))==null||(q=u.parentNode)==null||(Q=q.classList)==null||Q.add("sticker-loaded")};
_.P.computeNoveltyImageWidth=function(g){var u,q;if(g==null?0:(u=g.headerOverlayImage)==null?0:(q=u.thumbnails)==null?0:q.length){u=g.headerOverlayImage.thumbnails[0];var Q,L;if((Q=g.pdgPurchasedNoveltyLoggingDirectives)==null?0:(L=Q.loggingDirectives)==null?0:L.trackingParams){var E,y;lRm((E=g.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(y=E.loggingDirectives)==null?void 0:y.trackingParams)}return u.width||0}return 0};
_.P.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.P.updateStickerStyles=function(){var g=this.data;g&&(g={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(g.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(g.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(g.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(g.authorNameTextColor)},
_.x_(this.hostElement,g))};
_.P.onBuyButtonClick=function(){var g,u=_.c((g=this.data)==null?void 0:g.buyButton,_.eW);u&&!whK(u.command)&&this.ytRendererBehavior.logExplicitClick(u)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.z3.Object.defineProperties(az.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 g;return((g=this.data)==null?0:g.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
az.prototype.updateStickerStyles=az.prototype.updateStickerStyles;az.prototype.isDeletedChanged=az.prototype.isDeletedChanged;az.prototype.onStickerLoaded=az.prototype.onStickerLoaded;az.prototype.dataChanged=az.prototype.dataChanged;_.Y([_.I(Ki$.YtPdgLiveChatItemBehavior),_.K("design:type",Object)],az.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],az.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],az.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],az.prototype,"data",void 0);
_.Y([_.a({computed:"computeAuthorPhotoSize(data)"}),_.K("design:type",Number)],az.prototype,"authorPhotoSize",void 0);_.Y([_.a(),_.K("design:type",Boolean)],az.prototype,"isDeleted",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],az.prototype,"dashboardMoneyFeed",void 0);_.Y([_.a({computed:"computeNoveltyImageWidth(data)"}),_.K("design:type",Number)],az.prototype,"noveltyWidth",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],az.prototype,"modern",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.K("design:type",Boolean)],az.prototype,"isV2Style",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],az.prototype,"dataChanged",null);_.Y([_.n6("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],az.prototype,"onStickerLoaded",null);
_.Y([_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],az.prototype,"stickerWidth",null);_.Y([_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],az.prototype,"stickerHeight",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],az.prototype,"hasHeartButton",null);_.Y([_.C("data","dashboardMoneyFeed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],az.prototype,"hideLowerBumper",null);
_.Y([_.k_("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],az.prototype,"isDeletedChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],az.prototype,"updateStickerStyles",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],az);
_.T(az,"yt-live-chat-paid-sticker-renderer",function(){if(Au8===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Hg5===void 0&&(Hg5=document.createElement("template"));var Q=Hg5;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Au8=g}g=Au8;return g},{mode:0});var Ogi;var Ku$;var xza,BhW=function(){return xza!==void 0?xza:xza=document.createElement("template")};
document.head.appendChild(BhW().content);var zXW,nM0=function(){return zXW!==void 0?zXW:zXW=document.createElement("template")};
document.head.appendChild(nM0().content);var k4i;var S8x,oMW=function(){return S8x!==void 0?S8x:S8x=document.createElement("template")};
document.head.appendChild(oMW().content);var UzZ;var gco=document.head,u5o=gco.appendChild,qu$;if(UzZ===void 0){var QaZ=document.createElement("template");_.Z(QaZ,"\x3c!--css-build:shady--\x3e");QaZ.content.insertBefore(oMW().content.cloneNode(!0),QaZ.content.firstChild);UzZ=QaZ}qu$=UzZ;u5o.call(gco,qu$.content);var LjX=document.head,Ecn=LjX.appendChild,PQa;if(k4i===void 0){var VA=document.createElement("template");_.Z(VA,"\x3c!--css-build:shady--\x3e");VA.content.insertBefore(nM0().content.cloneNode(!0),VA.content.firstChild);VA.content.insertBefore(BhW().content.cloneNode(!0),VA.content.firstChild);k4i=VA}PQa=k4i;Ecn.call(LjX,PQa.content);var X6=function(){var g=_.gO.apply(this,arguments)||this;g.focusedIndex=0;g.verticalOffset=0;g.verticalAlign="top";g.dynamicAlign=!0;return g};
_.A(X6,_.gO);X6.prototype.emojiUrl=function(g){g=_.$3(this.emojiManager,g);if(!g)return"";var u;g=(u=g.image)==null?void 0:u.thumbnails;return _.Fh(g,24)||""};
var NQb=function(g){var u;g.emojiVariants&&(u=g.data)!=null&&u.target&&_.xt(g,function(){g.set("verticalOffset",-1*g.hostElement.clientHeight);var q=_.Tr(g.hostElement).querySelector("img");q&&q.focus()})};
_.P=X6.prototype;_.P.onKeyboardEnter=function(){};
_.P.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.P.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.P.onKeyDown=function(g){switch(g.keyCode){case 13:this.onKeyboardEnter();g.preventDefault();break;case 40:this.changeFocus(1);g.preventDefault();break;case 38:this.changeFocus(-1);g.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.P.onYtEmojiSelect=function(g){var u=this,q,Q,L,E,y,v,J,f;return _.D(function(t){if(t.nextAddress==1)return Q=(q=u.data)==null?void 0:q.emoji,y=((L=Q)==null?void 0:L.stickyPrefId)||((E=Q)==null?void 0:E.emojiId),J=(v=g.detail)==null?void 0:v.emojiId,y&&J&&y!==J?t.yield((f=u.emojiManager)==null?void 0:prX(f,Q,J),2):t.return();_.YJ(u.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[Q,J]);_.Wx(t)})};
_.P.changeFocus=function(g){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+g+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(g=_.Tr(this.hostElement).querySelector("#variants"))&&g.children[this.focusedIndex].focus())};
_.z3.Object.defineProperties(X6.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
X6.prototype.onYtEmojiSelect=X6.prototype.onYtEmojiSelect;X6.prototype.onKeyDown=X6.prototype.onKeyDown;X6.prototype.onEmojiVariantsChanged=X6.prototype.onEmojiVariantsChanged;X6.prototype.onVerticalOffsetOrPositionTargetChanged=X6.prototype.onVerticalOffsetOrPositionTargetChanged;_.Y([_.I(_.RB),_.K("design:type",Object)],X6.prototype,"ironOverlayBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],X6.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",_.GR)],X6.prototype,"emojiManager",void 0);
_.Y([_.a(),_.K("design:type",Object)],X6.prototype,"emojiVariants",void 0);_.Y([_.a(),_.K("design:type",Object)],X6.prototype,"focusedIndex",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],X6.prototype,"positionTarget",null);_.Y([_.a({reflectToAttribute:!0}),_.C("verticalOffset","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],X6.prototype,"isPositioned",null);_.Y([_.a(),_.K("design:type",Object)],X6.prototype,"verticalOffset",void 0);
_.Y([_.a(),_.K("design:type",Object)],X6.prototype,"verticalAlign",void 0);_.Y([_.a(),_.K("design:type",Object)],X6.prototype,"dynamicAlign",void 0);_.Y([_.k_("verticalOffset","positionTarget"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],X6.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.Y([_.k_("emojiVariants"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],X6.prototype,"onEmojiVariantsChanged",null);
_.Y([_.n6("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],X6.prototype,"onKeyDown",null);_.Y([_.n6("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype",Promise)],X6.prototype,"onYtEmojiSelect",null);_.Y([_.uU()],X6);var sab=[X6.prototype];var yGR;var vc8;var DlX=/medium-light|medium-dark|light|medium|dark/,pZ0=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,JGZ=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),rx=function(){var g=_.X.apply(this,arguments)||this;g.userSelection={left:null,right:null};g.scrollAction="lock";g.isEmojiDraftInProgress=!1;return g};
_.A(rx,_.X);_.P=rx.prototype;_.P.onClick=function(g){g=_.bd(g);g instanceof HTMLImageElement&&this.selectOrUpdateEmoji(g)};
_.P.selectOrUpdateEmoji=function(g){var u=g.getAttribute("selection");u&&(u==="default"?_.hJ(this.hostElement,"yt-emoji-select",_.$3(this.emojiManager,g.id)):u==="left"?this.userSelection=Object.assign({},this.userSelection,{left:g.src}):u==="right"?this.userSelection=Object.assign({},this.userSelection,{right:g.src}):u==="user"&&this.userSelection.left&&this.userSelection.right&&_.hJ(this.hostElement,"yt-emoji-select",_.$3(this.emojiManager,g.id)))};
_.P.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.P.onMultiSelectorThumbnailRowChanged=function(){var g,u,q;((g=this.data)==null?0:(u=g.emoji)==null?0:(q=u.multiSelectorThumbnailRow)==null?0:q.length)&&this.openSelector()};
_.P.getThumbnailFromEmojiRow=function(g){var u,q;return(g==null?void 0:(u=g.thumbnails)==null?void 0:(q=u[0])==null?void 0:q.url)||""};
_.P.getEmojiAltTextForPartialSelector=function(g){var u;return((u=this.getThumbnailFromEmojiRow(g).match(pZ0))==null?void 0:u[0])||""};
_.P.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.P.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.P.getRowSelection=function(g){return["left","right"][g]};
_.P.getIdFromComposedEmoji=function(g){return(g==null?void 0:g.emojiId)||""};
_.P.getEmojiFromPartialSelections=function(g,u){if(!g&&!u)return null;var q,Q,L=(q=this.data)==null?void 0:(Q=q.emoji)==null?void 0:Q.variantIds;if(!L||!L.length)return null;var E;g=(E=g.match(DlX))==null?void 0:E[0];var y;u=(y=u.match(DlX))==null?void 0:y[0];if(!g||!u)return null;var v=JGZ.get(g);y=JGZ.get(u);if(v===y){y=Array.from(JGZ.values()).filter(function(f){return f!==v}).join("|");
var J=new RegExp("^((?!("+y+")).)*"+v+"$")}else J=new RegExp(v+".*"+y);return(L=L.find(function(f){return J.test(f)}))&&_.$3(this.emojiManager,L)||null};
_.P.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var g,u=this.ytEmojiSelectorBehavior.emojiUrl(((g=this.data.emoji)==null?void 0:g.emojiId)||"");_.Tr(this.hostElement).querySelector('[selection="user"]').src.includes(u)||(this.isEmojiDraftInProgress=!0)}};
_.P.onDomChange=function(){NQb(this.ytEmojiSelectorBehavior)};
_.P.getFocusableElements=function(){return _.Tr(this.hostElement).querySelectorAll("img").filter(function(g){return g.getAttribute("role")==="option"})};
_.P.changeFocus=function(g){var u=this.getFocusableElements();u!=null&&u.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+g+u.length)%u.length,this.ytEmojiSelectorBehavior.focusedIndex<u.length&&(g=u[this.ytEmojiSelectorBehavior.focusedIndex])&&g.focus())};
_.P.onKeyboardEnter=function(){var g=this.getFocusableElements();g!=null&&g.length&&(g=g[this.ytEmojiSelectorBehavior.focusedIndex])&&g instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(g),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.z3.Object.defineProperties(rx.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var g=this,u,q,Q;return this.emojiManager&&((u=this.data)==null?0:(q=u.emoji)==null?0:(Q=q.variantIds)==null?0:Q.length)?this.data.emoji.variantIds.map(function(L){return!!L&&_.$3(g.emojiManager,L)}).filter(function(L){return!!L}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var g,u=(g=this.userSelection)==null?void 0:g.left,q;g=(q=this.userSelection)==null?void 0:q.right;return u&&g?this.getEmojiFromPartialSelections(u,g):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.composedEmojiSelection)==null?0:g.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var u;g=(u=this.userSelection)==null?void 0:u.left;var q;u=(q=this.userSelection)==null?void 0:q.right;if(!g&&!u){var Q;return this.ytEmojiSelectorBehavior.emojiUrl(((Q=this.data.emoji)==null?void 0:Q.emojiId)||"")}return g&&!u?g:!g&&u?u:""}}});
rx.prototype.onMultiSelectorThumbnailRowChanged=rx.prototype.onMultiSelectorThumbnailRowChanged;rx.prototype.onClick=rx.prototype.onClick;_.Y([_.I(_.RB),_.K("design:type",Object)],rx.prototype,"ironOverlayBehavior",void 0);_.Y([_.I(sab),_.K("design:type",Object)],rx.prototype,"ytEmojiSelectorBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],rx.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",_.GR)],rx.prototype,"emojiManager",void 0);
_.Y([_.a(),_.K("design:type",Object)],rx.prototype,"userSelection",void 0);_.Y([_.a(),_.K("design:type",Object)],rx.prototype,"scrollAction",void 0);_.Y([_.a(),_.K("design:type",Object)],rx.prototype,"isEmojiDraftInProgress",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rx.prototype,"emojiVariants",null);_.Y([_.C("data","userSelection"),_.K("design:type",Object),_.K("design:paramtypes",[])],rx.prototype,"composedEmojiSelection",null);
_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],rx.prototype,"onClick",null);_.Y([_.k_("data.emoji.multiSelectorThumbnailRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rx.prototype,"onMultiSelectorThumbnailRowChanged",null);_.Y([_.C("data","userSelection","composedEmojiSelection"),_.K("design:type",String),_.K("design:paramtypes",[])],rx.prototype,"draftEmojiUrl",null);
_.Y([_.jP({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],rx);
_.T(rx,"yt-emoji-multi-person-selector",function(){if(vc8===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;yGR===void 0&&(yGR=document.createElement("template"));var Q=yGR;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);vc8=g}g=vc8;return g},{mode:2});var jaH;var fE8;var WO=function(){var g=_.X.apply(this,arguments)||this;g.tooltip_=null;return g};
_.A(WO,_.X);_.P=WO.prototype;_.P.dataChanged_=function(){var g;if((g=this.data)==null?0:g.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Tr(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.K6)(this.tooltip_).textContent=this.data.tooltip};
_.P.computeTargetId=function(){var g;return((g=this.data)==null?void 0:g.targetId)||""};
_.P.computeId_=function(g){return g};
_.P.computeIcon_=function(g){return _.x9(g)};
_.P.onTap_=function(){this.active=!this.active;_.hJ(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.P.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("active-changed",this.active))};
_.z3.Object.defineProperties(WO.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var g,u;if((g=this.data)==null?0:(u=g.icon)==null?0:u.iconType)return this.data.icon.iconType==="SUPER_STICKER";var q,Q;return((q=this.data)==null?void 0:(Q=q.icon)==null?void 0:Q.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
WO.prototype.activeChangedForBinding=WO.prototype.activeChangedForBinding;WO.prototype.dataChanged_=WO.prototype.dataChanged_;_.Y([_.I(_.fK.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],WO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],WO.prototype,"data",void 0);_.Y([_.a({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.K("design:type",String)],WO.prototype,"id",void 0);
_.Y([_.a({computed:"computeTargetId(data.targetId)"}),_.K("design:type",String)],WO.prototype,"targetId",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],WO.prototype,"active",void 0);_.Y([_.a({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.K("design:type",String)],WO.prototype,"icon",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WO.prototype,"dataChanged_",null);
_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WO.prototype,"iconFilled",null);_.Y([_.k_("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WO.prototype,"activeChangedForBinding",null);_.Y([_.jP({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],WO);
_.T(WO,"yt-emoji-picker-category-button-renderer",function(){if(fE8===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;jaH===void 0&&(jaH=document.createElement("template"));var Q=jaH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);fE8=g}g=fE8;return g},{mode:2});var Mon;var to5;var TR=function(){var g=_.X.apply(this,arguments)||this;g.ariaLabel=null;g.ariaActivedescendant=null;g.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};g.JSC$14606_ignoreNextFocus_=!1;g.longPressTimeoutId=-1;return g};
_.A(TR,_.X);_.P=TR.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var g=_.gL(),u=0;u<this.emoji.length;u++){var q={veType:88013,elementIndex:u},Q=this.emoji[u];Q.isCustomEmoji&&(Q=document.querySelector(("#"+Q.emojiId).replace("/","\\/")))&&(q=_.Ui(g,q))&&(Q.visualElement=q)}};
_.P.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.P.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.P.emojiSkinToneChanged_=function(g){this.skinTone=g};
_.P.dataChanged=function(){this.data&&this.data.emojiData&&sqX(this.emojiManager,this.data.emojiData)};
_.P.emojiUrl=function(g){g=this.getEmoji(g);if(!g)return"";var u;g=(u=g.image)==null?void 0:u.thumbnails;return _.Fh(g,24)||""};
_.P.emojiAlt=function(g){var u=this.get("image.accessibility.accessibilityData.label",g);return u?u:g.isCustomEmoji?g.shortcuts[0]:g.emojiId};
_.P.emojiAriaLabel=function(g){return g.shortcuts?g.shortcuts[0]:""};
_.P.emojiAriaSelected=function(g,u,q){return g&&q==u?"true":"false"};
_.P.getEmoji=function(g){if(this.emojiManager)return this.shouldUseStickyPreferences?vM8(this.emojiManager,g):Rz(this.emojiManager,g)};
_.P.computeId_=function(g){return g.categoryId||""};
_.P.computeEmoji=function(g){var u=this;return this.emojiManager?g.emojiIds?g.emojiIds.map(function(q){return q?_.$3(u.emojiManager,q):null}).filter(z1Z):g.emojiData?g.emojiData.map(function(q){var Q=!!q.emojiId&&_.$3(u.emojiManager,q.emojiId);
return Q?Object.assign({},Q,q):null}).filter(z1Z):[]:[]};
_.P.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.P.computeAriaLabel_=function(g){return _.iR(g)};
_.P.computeAriaActivedescendant_=function(g,u){return g&&g[u]?g[u].emojiId||"":""};
_.P.handleLongPressEmojiWithVariants=function(g,u){this.changeFocusToEmoji(g.emojiId,!1);this.openVariantSelector(g,u)};
_.P.onMouseDown=function(g){var u=this;this.hostElement!==document.activeElement&&(this.JSC$14606_ignoreNextFocus_=!0);if(g.button===0){var q=_.bd(g);if(q instanceof HTMLImageElement){var Q=_.Tr(this.hostElement).querySelector("#repeat").itemForElement(q);this.emojiContainsVariants(Q)&&(this.longPressTimeoutId=setTimeout(function(){u.handleLongPressEmojiWithVariants(Q,q)},500))}}};
_.P.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.P.onFocus=function(){this.JSC$14606_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14606_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.emojiContainsVariants=function(g){return!!(g&&g.variantIds&&g.variantIds.length)};
_.P.onClick=function(g){clearTimeout(this.longPressTimeoutId);g=_.bd(g);if(g instanceof HTMLImageElement){var u=g.id;this.changeFocusToEmoji(u,!1);var q=this.getEmoji(u),Q;if(Q=this.shouldUseStickyPreferences&&this.emojiContainsVariants(q)){var L;Q=!((L=this.emojiManager.emojiMap[u])!=null&&L.stickyPrefId)}Q?(L=_.Tr(this.hostElement).querySelector("#repeat").itemForElement(g),this.openVariantSelector(L,g)):_.hJ(this.hostElement,"yt-emoji-select",q)}};
_.P.isActiveEmojiWithVariants=function(g,u){return g&&u?u.stickyPrefId?g===u.stickyPrefId:g===u.emojiId:!1};
_.P.onCloseEmojiVariantSelector=function(g){this.activeEmojiWithVariantsId===g&&(this.activeEmojiWithVariantsId="")};
_.P.onMouseOver_=function(g){g=_.bd(g);g instanceof HTMLImageElement&&_.hJ(this.hostElement,"yt-emoji-hover",_.$3(this.emojiManager,g.id))};
_.P.changeFocus_=function(g,u){this.focusedIndex=(this.focusedIndex+g+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(g=this.emoji[this.focusedIndex],u&&(this.showFocus=!0,_.Tr(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.hJ(this.hostElement,"yt-emoji-hover",g)))};
_.P.changeFocusToEmoji=function(g,u){if(g){var q=this.emoji.findIndex(function(Q){return Q.emojiId===g});
q!==-1&&this.changeFocus_(q-this.focusedIndex,u)}};
_.P.onKeyDown_=function(g){switch(g.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var u=this.emoji[this.focusedIndex];if(u&&u.emojiId){if(this.emojiContainsVariants(u)){var q=_.Tr(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(u,q)}else _.hJ(this.hostElement,"yt-emoji-select",Rz(this.emojiManager,u.emojiId)),this.hostElement.focus();g.preventDefault()}}break;case 40:this.changeFocus_(1,!0);g.preventDefault();break;case 38:this.changeFocus_(-1,!0),
g.preventDefault()}};
_.P.onEmojiStickyPreferenceChanged=function(g,u){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&g.emojiId&&g.variantIds&&g.variantIds.includes(u)&&this.activeEmojiWithVariantsId!==u&&this.setStickyEmojiPreference(g.emojiId,u)};
_.P.openVariantSelector=function(g,u){this.activeEmojiWithVariantsId=g.stickyPrefId||g.emojiId||"";_.hJ(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:g,target:u})};
_.P.setStickyEmojiPreference=function(g,u){if(this.data){var q=this.emoji.findIndex(function(L){return L.emojiId===g});
if(q!==-1){var Q=this.emoji[q];Q.stickyPrefId=u;this.set("emoji."+q,Object.assign({},Q));this.activeEmojiWithVariantsId=u}}};
TR.prototype.onKeyDown_=TR.prototype.onKeyDown_;TR.prototype.onMouseOver_=TR.prototype.onMouseOver_;TR.prototype.onClick=TR.prototype.onClick;TR.prototype.onBlur_=TR.prototype.onBlur_;TR.prototype.onFocus=TR.prototype.onFocus;TR.prototype.onMouseUp=TR.prototype.onMouseUp;TR.prototype.onMouseDown=TR.prototype.onMouseDown;TR.prototype.dataChanged=TR.prototype.dataChanged;TR.prototype.disableIncrementalLoadingChanged_=TR.prototype.disableIncrementalLoadingChanged_;TR.prototype.emojiManagerChanged_=TR.prototype.emojiManagerChanged_;
TR.prototype.emojiChanged_=TR.prototype.emojiChanged_;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],TR.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],TR.prototype,"data",void 0);_.Y([_.a({computed:"computeId_(data)"}),_.K("design:type",String)],TR.prototype,"id",void 0);_.Y([_.a({computed:"computeEmoji(data)"}),_.K("design:type",Array)],TR.prototype,"emoji",void 0);_.Y([_.a(),_.K("design:type",Number)],TR.prototype,"skinTone",void 0);
_.Y([_.a(),_.K("design:type",_.GR)],TR.prototype,"emojiManager",void 0);_.Y([_.a(),_.K("design:type",Boolean)],TR.prototype,"disableIncrementalLoading",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],TR.prototype,"focusedIndex",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],TR.prototype,"showFocus",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.K("design:type",Object)],TR.prototype,"ariaLabel",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.K("design:type",Object)],TR.prototype,"ariaActivedescendant",void 0);_.Y([_.a({value:60}),_.K("design:type",Number)],TR.prototype,"domRepeatTargetFramerate",void 0);_.Y([_.a({value:1}),_.K("design:type",Number)],TR.prototype,"domRepeatInitialCount",void 0);_.Y([_.a({value:""}),_.K("design:type",String)],TR.prototype,"activeEmojiWithVariantsId",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],TR.prototype,"shouldUseStickyPreferences",void 0);_.Y([_.k_("emoji"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TR.prototype,"emojiChanged_",null);_.Y([_.k_("emojiManager"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TR.prototype,"emojiManagerChanged_",null);
_.Y([_.k_("disableIncrementalLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TR.prototype,"disableIncrementalLoadingChanged_",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TR.prototype,"dataChanged",null);_.Y([_.n6("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],TR.prototype,"onMouseDown",null);
_.Y([_.n6("mouseup"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TR.prototype,"onMouseUp",null);_.Y([_.n6("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TR.prototype,"onFocus",null);_.Y([_.n6("blur"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TR.prototype,"onBlur_",null);
_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],TR.prototype,"onClick",null);_.Y([_.n6("mouseover"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],TR.prototype,"onMouseOver_",null);_.Y([_.n6("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],TR.prototype,"onKeyDown_",null);
_.Y([_.jP({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],TR);
_.T(TR,"yt-emoji-picker-category-renderer",function(){if(to5===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Mon===void 0&&(Mon=document.createElement("template"));var Q=Mon;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);to5=g}g=to5;return g},{mode:2});var e1R;var Gin;var $l$;var R15;var hX=function(){var g=_.X.apply(this,arguments)||this;g.ariaLabel=null;g.ariaActivedescendant=null;g.getFormattedStringRawText=_.iR;g.JSC$14612_ignoreNextFocus_=!1;return g};
_.A(hX,_.X);_.P=hX.prototype;_.P.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")};
_.P.emojiUrl=function(g){var u,q;g=(u=Rz(this.emojiManager,g,!0))==null?void 0:(q=u.image)==null?void 0:q.thumbnails;return _.Fh(g,24)||""};
_.P.emojiAlt=function(g){var u=this.get("image.accessibility.accessibilityData.label",g);return u?u:g.isCustomEmoji?g.shortcuts[0]:g.emojiId};
_.P.emojiId=function(g){return"emoji"+g};
_.P.computeId_=function(g){return g.categoryId||""};
_.P.computeAriaActivedescendant_=function(g){return this.emoji&&g<this.emoji.length?this.emojiId(g):""};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var g=_.gL(),u=0;u<this.emoji.length;u++){var q={veType:88013,elementIndex:u},Q=this.emoji[u];Q.isCustomEmoji&&(Q=document.querySelector(("#"+Q.emojiId).replace("/","\\/")))&&(q=_.Ui(g,q))&&(Q.visualElement=q)}};
_.P.computeEmoji_=function(g){var u=this;return this.emojiManager?g.emojiIds.map(function(q){return _.$3(u.emojiManager,q,!0)}).filter(ncq):[]};
_.P.titleOffsetChanged_=function(){var g=this.hostElement.getBoundingClientRect(),u=_.Tr(this.hostElement).querySelector("#title").getBoundingClientRect();g=Math.max(0,Math.min(this.titleOffset,g.height-u.height));_.Tr(this.hostElement).querySelector("#title").style.top=g+"px"};
_.P.onEmojiMouseOver_=function(g){_.hJ(this.hostElement,"yt-emoji-hover",g.model.item)};
_.P.onEmojiTap_=function(g){this.data.command&&(g=aRJ(_.Bk().resolve(_.xv(mn)),this.data.command,g),_.hJ(this.hostElement,"yt-navigate",g))};
_.P.emojiAriaLabel=function(g){return g.shortcuts[0]};
_.P.emojiAriaSelected=function(g,u,q){return g&&q==u?"true":"false"};
_.P.changeFocus_=function(g,u){var q=this.emoji.length;this.focusedIndex=(this.focusedIndex+g+q)%q;g=this.emoji[this.focusedIndex];if(u){var Q;(Q=_.Tr(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||Q.scrollIntoView(!1);_.hJ(this.hostElement,"yt-emoji-hover",g)}};
_.P.onMouseDown_=function(){this.JSC$14612_ignoreNextFocus_=!0};
_.P.onFocus_=function(){this.JSC$14612_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14612_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.onKeyDown_=function(g){switch(g.keyCode){case 13:this.onEmojiTap_(g);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);g.preventDefault();break;case 38:this.changeFocus_(-1,!0),g.preventDefault()}};
hX.prototype.onKeyDown_=hX.prototype.onKeyDown_;hX.prototype.onBlur_=hX.prototype.onBlur_;hX.prototype.onFocus_=hX.prototype.onFocus_;hX.prototype.onMouseDown_=hX.prototype.onMouseDown_;hX.prototype.onEmojiTap_=hX.prototype.onEmojiTap_;hX.prototype.titleOffsetChanged_=hX.prototype.titleOffsetChanged_;hX.prototype.emojiChanged_=hX.prototype.emojiChanged_;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],hX.prototype,"ytComponentBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],hX.prototype,"data",void 0);_.Y([_.a({computed:"computeId_(data)"}),_.K("design:type",String)],hX.prototype,"id",void 0);_.Y([_.a({computed:"computeEmoji_(data)"}),_.K("design:type",Array)],hX.prototype,"emoji",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],hX.prototype,"titleOffset",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.K("design:type",Object)],hX.prototype,"ariaLabel",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.K("design:type",Object)],hX.prototype,"ariaActivedescendant",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],hX.prototype,"showFocus",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],hX.prototype,"focusedIndex",void 0);_.Y([_.a(),_.K("design:type",_.GR)],hX.prototype,"emojiManager",void 0);
_.Y([_.k_("emoji"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hX.prototype,"emojiChanged_",null);_.Y([_.k_("titleOffset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hX.prototype,"titleOffsetChanged_",null);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],hX.prototype,"onEmojiTap_",null);
_.Y([_.n6("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hX.prototype,"onMouseDown_",null);_.Y([_.n6("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hX.prototype,"onFocus_",null);_.Y([_.n6("blur"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hX.prototype,"onBlur_",null);
_.Y([_.n6("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],hX.prototype,"onKeyDown_",null);_.Y([_.jP({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],hX);
_.T(hX,"yt-emoji-picker-upsell-category-renderer",function(){if(R15===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;$l$===void 0&&($l$=document.createElement("template"));var Q=$l$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);R15=g}g=R15;return g},{mode:2});var wZR;var cGn;var Y3=function(){var g=_.X.apply(this,arguments)||this;g.scrollAction="lock";g.verticalAlign="top";return g};
_.A(Y3,_.X);_.P=Y3.prototype;_.P.onClick=function(g){g=_.bd(g);g instanceof HTMLImageElement&&_.hJ(this.hostElement,"yt-emoji-select",_.$3(this.emojiManager,g.id))};
_.P.openSelector=function(){this.ironOverlayBehavior.open()};
_.P.onDomChange=function(){NQb(this.ytEmojiSelectorBehavior)};
_.P.computeIsFamilySelector=function(g){var u;return(g==null?void 0:(u=g.emoji)==null?void 0:u.emojiId)==="\ud83d\udc6a"};
_.P.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var g=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];g&&g.emojiId&&(_.hJ(this.hostElement,"yt-emoji-select",_.$3(this.emojiManager,g.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.z3.Object.defineProperties(Y3.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var g=this,u,q,Q;return this.emojiManager&&((u=this.data)==null?0:(q=u.emoji)==null?0:(Q=q.variantIds)==null?0:Q.length)?this.data.emoji.variantIds.map(function(L){return!!L&&_.$3(g.emojiManager,L)}).filter(function(L){return!!L}):[]}}});
Y3.prototype.onClick=Y3.prototype.onClick;_.Y([_.I(_.RB),_.K("design:type",Object)],Y3.prototype,"ironOverlayBehavior",void 0);_.Y([_.I(sab),_.K("design:type",Object)],Y3.prototype,"ytEmojiSelectorBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Y3.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",_.GR)],Y3.prototype,"emojiManager",void 0);_.Y([_.a(),_.K("design:type",Object)],Y3.prototype,"scrollAction",void 0);_.Y([_.a(),_.K("design:type",Object)],Y3.prototype,"verticalAlign",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.K("design:type",Boolean)],Y3.prototype,"isFamilySelector",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Y3.prototype,"emojiVariants",null);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],Y3.prototype,"onClick",null);_.Y([_.jP({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Y3);
_.T(Y3,"yt-emoji-variant-selector",function(){if(cGn===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;wZR===void 0&&(wZR=document.createElement("template"));var Q=wZR;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);cGn=g}g=cGn;return g},{mode:2});var H$W=/:/g,AGW=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],O6=function(){var g=_.X.apply(this,arguments)||this;g.emojiVariantSelector=null;g.emojiMultiPersonSelector=null;g.identity=_.am;g.lastAnimationTime_=0;g.animationStart_=null;g.animationEnd_=null;return g};
_.A(O6,_.X);_.P=O6.prototype;
_.P.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}}};
_.P.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.wx)};
_.P.attached=function(){_.xS&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&yub(this.emojiManager)};
_.P.dataChanged=function(){var g;if((g=this.data)==null?0:g.categories){g=this.emojiManager;var u=this.getCustomEmojiIds();g.pickerCustomEmojiIds=[].concat(_.na(Qqn),_.na(u))}};
_.P.getCustomEmojiIds=function(){var g,u=(g=this.data.categories)==null?void 0:g.find(function(E){var y;return((y=E.emojiPickerCategoryRenderer)==null?void 0:y.categoryId)&&AGW.includes(E.emojiPickerCategoryRenderer.categoryId)}),q;
g=(q=this.data.categories)==null?void 0:q.find(function(E){return E.emojiPickerUpsellCategoryRenderer});
var Q,L;return[u==null?void 0:(Q=u.emojiPickerCategoryRenderer)==null?void 0:Q.emojiIds,g==null?void 0:(L=g.emojiPickerUpsellCategoryRenderer)==null?void 0:L.emojiIds].flat().filter(function(E){return!!E})};
_.P.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.P.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.P.updateCategoriesAndPlaceholderInternal=function(g,u){var q=this;g&&u&&(this.categories=g.categories||[],this.categoryButtons=g.categoryButtons||[],this.resetPlaceholder(),this.search="",_.wO(function(){q.updateButtons_()}))};
_.P.computeId_=function(g){return g.id||""};
_.P.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(g){return g.emojiPickerCategoryRenderer&&g.emojiPickerCategoryRenderer.emojiData}):!1};
_.P.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.P.onShowEmojiVariantSelector=function(g){var u=g.detail.emojiData;u.variantIds&&u.variantIds.length&&(u.multiSelectorThumbnailRow&&u.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:u,target:g.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:u,target:g.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onIronOverlayClosed=function(g){var u=vM8(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");u&&g.composedPath&&(g.composedPath().includes(_.Tr(this.hostElement).querySelector("#emoji-variant-selector"))||g.composedPath().includes(_.Tr(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.YJ(this.hostElement,"yt-close-emoji-variant-selector",[u.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onEmojiVariantSelectorMouseup=function(g){var u=g.target.firstChild;this.variantSelectorOpened&&u&&_.wO(function(){u.noCancelOnOutsideClick=!1},100)};
_.P.onEmojiVariantSelectorMousedown=function(g){g=g.target.firstChild;this.variantSelectorOpened&&g&&(g.noCancelOnOutsideClick=!1)};
_.P.onSelectCategory_=function(g){var u=this.search!="";this.search="";for(var q=_.Tr(this.hostElement).querySelector("#categories").children,Q=0;Q<q.length;Q++){var L=q[Q];if(L.id==g.detail.categoryId){u?(_.Tr(this.hostElement).querySelector("#categories").scrollTop=L.offsetTop,this.updateButtons_()):(this.animationStart_=_.Tr(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=L.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.P.onEmojiHover_=function(g){this.placeholder=g.detail.shortcuts?g.detail.shortcuts[0]:""};
_.P.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.P.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.P.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.P.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.P.computeSearchCategory_=function(g){g=g.replace(H$W,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();g=g.split(" ");for(var u=[],q=this.emojiManager.emojis,Q=0;Q<q.length;Q++){var L=q[Q];if(L.searchTerms)for(var E=0;E<L.searchTerms.length;E++){for(var y=L.searchTerms[E].toLocaleLowerCase(),v=!1,J=0;J<g.length;J++)if(y.indexOf(g[J])!=-1){v=!0;break}if(v&&(!L.isCustomEmoji||!L.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(L.emojiId))){u.push(L.emojiId);
break}}}return{categoryId:-1,emojiIds:u}};
_.P.computeSearchEmptyMessage_=function(g,u){return g&&u&&u.emojiIds&&u.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.P.computeSearching_=function(g){return this.emojiManager&&g.replace(H$W,"").length>1};
_.P.computeSkinToneHidden=function(){var g;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((g=this.data)==null||!g.hideSkinTonePicker)};
_.P.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.P.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.P.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.P.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.P.selectSkinTone_=function(g){g=Number(g.target.getAttribute("tone"));this.set("emojiManager.skinTone",g);_.YJ(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[g]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.P.skinToneChanged_=function(){_.Tr(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var g=_.Tr(this.hostElement).querySelector("#dropdown-content").children,u=0;u<g.length;u++)u===this.skinTone?g[u].setAttribute("selected",""):g[u].removeAttribute("selected")};
_.P.animateScroll_=function(g){this.lastAnimationTime_||(this.lastAnimationTime_=g);g-=this.lastAnimationTime_;g<200?(_.Tr(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*g/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Tr(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.P.searchChanged_=function(){this.updateButtons_()};
_.P.updateButtons_=function(){var g=null;if(!this.search)for(var u=_.Tr(this.hostElement).querySelector("#categories").scrollTop,q=_.Tr(this.hostElement).querySelector("#categories").children,Q=0;Q<q.length;Q++){var L=q[Q];L.offsetTop<=u&&(g=L.id)}u=_.Tr(this.hostElement).querySelector("#category-buttons").children;for(q=0;q<u.length;q++)Q=u[q],Q.active=Q.id===g};
O6.prototype.searchChanged_=O6.prototype.searchChanged_;O6.prototype.skinToneChanged_=O6.prototype.skinToneChanged_;O6.prototype.onEmojiHover_=O6.prototype.onEmojiHover_;O6.prototype.onSelectCategory_=O6.prototype.onSelectCategory_;O6.prototype.onShowEmojiVariantSelector=O6.prototype.onShowEmojiVariantSelector;O6.prototype.updateCategoriesAndPlaceholder_=O6.prototype.updateCategoriesAndPlaceholder_;O6.prototype.dataChanged=O6.prototype.dataChanged;
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],O6.prototype,"data",void 0);_.Y([_.a({value:function(){return[]}}),
_.K("design:type",Array)],O6.prototype,"categories",void 0);_.Y([_.a({value:function(){return[]}}),
_.K("design:type",Array)],O6.prototype,"categoryButtons",void 0);_.Y([_.a({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.K("design:type",Boolean)],O6.prototype,"disableScroll",void 0);_.Y([_.a({computed:"computeId_(data)",reflectToAttribute:!0}),_.K("design:type",String)],O6.prototype,"id",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],O6.prototype,"selected",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],O6.prototype,"disableIncrementalLoading",void 0);_.Y([_.a(),_.K("design:type",String)],O6.prototype,"placeholder",void 0);_.Y([_.a({value:""}),_.K("design:type",String)],O6.prototype,"search",void 0);_.Y([_.a({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.K("design:type",Boolean)],O6.prototype,"searching",void 0);_.Y([_.a({computed:"computeSearchCategory_(search)"}),_.K("design:type",Object)],O6.prototype,"searchCategory",void 0);
_.Y([_.a({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.K("design:type",Object)],O6.prototype,"searchEmptyMessage",void 0);_.Y([_.a({computed:"identity(emojiManager.skinTone)"}),_.K("design:type",Number)],O6.prototype,"skinTone",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],O6.prototype,"skinToneOpened",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],O6.prototype,"variantSelectorOpened",void 0);
_.Y([_.a({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.K("design:type",Boolean)],O6.prototype,"skinToneHidden",void 0);_.Y([_.a(),_.K("design:type",_.GR)],O6.prototype,"emojiManager",void 0);_.Y([_.a(),_.K("design:type",Object)],O6.prototype,"emojiVariantSelector",void 0);_.Y([_.a(),_.K("design:type",Object)],O6.prototype,"emojiMultiPersonSelector",void 0);
_.Y([_.a({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.K("design:type",Boolean)],O6.prototype,"shouldUseStickyPreferences",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O6.prototype,"dataChanged",null);_.Y([_.k_("data","selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O6.prototype,"updateCategoriesAndPlaceholder_",null);
_.Y([_.n6("yt-show-emoji-variant-selector"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],O6.prototype,"onShowEmojiVariantSelector",null);_.Y([_.n6("yt-emoji-picker-select-category"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],O6.prototype,"onSelectCategory_",null);_.Y([_.n6("yt-emoji-hover"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],O6.prototype,"onEmojiHover_",null);
_.Y([_.k_("skinTone"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O6.prototype,"skinToneChanged_",null);_.Y([_.k_("search"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O6.prototype,"searchChanged_",null);_.Y([_.jP({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],O6);
_.T(O6,"yt-emoji-picker-renderer",function(){if(Gin===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;e1R===void 0&&(e1R=document.createElement("template"));var Q=e1R;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Gin=g}g=Gin;return g},{mode:2});var KF=function(){var g=_.X.apply(this,arguments)||this;g.emojiManager=_.wx;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.selectedIndex=1;g.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return g};
_.A(KF,_.X);_.P=KF.prototype;_.P.handleEmojiCustomizationVisible=function(g){this.emojiPickerRenderer.selected=g;this.selectedIndex=1;g?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.P.emojiCustomizationSetChanged=function(){var g;(g=this.data)!=null&&g.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.SK(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.P.updateSaveButtonState=function(g){var u;(u=this.data)!=null&&u.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.u2("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:g}))};
_.P.emojiUrl=function(g){g=_.$3(this.emojiManager,g);if(!g)return"";var u;g=(u=g.image)==null?void 0:u.thumbnails;return _.Fh(g,24)||""};
_.P.emojiAlt=function(g){var u=_.$3(this.emojiManager,g);if(!u)return g;var q,Q,L,E=(u==null?void 0:(q=u.image)==null?void 0:(Q=q.accessibility)==null?void 0:(L=Q.accessibilityData)==null?void 0:L.label)||"";return E?E:u.isCustomEmoji?u.shortcuts[0]:u.emojiId||g};
_.P.emojiAriaLabel=function(g){var u,q;return((u=_.$3(this.emojiManager,g))==null?void 0:(q=u.shortcuts)==null?void 0:q[0])||g};
_.P.onEmojiClick=function(g){g.model.index!==0&&(this.selectedIndex=g.model.index)};
_.P.onEmojiSelect=function(g){g=g.detail;var u,q;((u=this.data)==null?0:u.emojiCustomizationSetEntityKey)&&((q=this.emojiCustomizationSet)==null?0:q.emojiId)&&g.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,g.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.u2("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,g.emojiId,this.selectedIndex)}))};
_.P.canEditEmoji=function(g,u,q){g=g.indexOf(u);return g===q||g===0||q===0?!1:!0};
_.P.getUpdatedEmojiIdList=function(g,u,q){var Q=g.indexOf(u);g=[].concat(_.na(g));Q>=0&&(g[Q]=g[q]);g[q]=u;return g};
_.z3.Object.defineProperties(KF,{template:{configurable:!0,enumerable:!0,get:function(){if(Ku$===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Ogi===void 0&&(Ogi=document.createElement("template"));var Q=Ogi;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Ku$=g}g=Ku$;return g}}});
KF.prototype.onEmojiSelect=KF.prototype.onEmojiSelect;_.Y([_.I(_.j3),_.K("design:type",Object)],KF.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],KF.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.oE("yt-emoji-picker-renderer"),_.K("design:type",Object)],KF.prototype,"emojiPickerRenderer",void 0);
_.Y([_.a({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(g,u){return _.BC(g.entities,"emojiCustomizationSetEntity",u)},
observer:"emojiCustomizationSetChanged"}),_.K("design:type",Object)],KF.prototype,"emojiCustomizationSet",void 0);_.Y([_.a(),_.K("design:type",Object)],KF.prototype,"originalEmojiSet",void 0);_.Y([_.a(),_.K("design:type",_.GR)],KF.prototype,"emojiManager",void 0);_.Y([_.a(),_.K("design:type",Object)],KF.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],KF.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",Object)],KF.prototype,"selectedIndex",void 0);
_.Y([_.n6("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],KF.prototype,"onEmojiSelect",null);_.Y([_.jP({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],KF);var Z$b;var lE2;var IEn;var i$8;var x3=function(){var g=_.X.apply(this,arguments)||this;g.authorBadges=[];return g};
_.A(x3,_.X);_.P=x3.prototype;_.P.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.P.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]]"}}}}}};
_.P.dataChanged=function(){var g=OzT(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",g)};
_.P.updateMessage=function(){var g=this.data.message,u=_.Tr(_.Tr(this.hostElement).querySelector("#message"));u.textContent="";g&&u.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(g))};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.P.onShowOriginalClick=function(g){g.preventDefault();this.showOriginal=!0};
_.P.computeShowBar=function(g,u,q){return g&&u||q};
_.P.computeAuthorBadges=function(g){return g.authorBadges||[]};
_.P.computeAuthorIsOwner=function(g){return!!Kiq(g.authorBadges,"owner")};
_.P.computeAuthorNameColor=function(g){var u;if(_.w("live_chat_author_name_color_usernames")&&(g==null?0:(u=g.authorName)==null?0:u.simpleText))return _.zaT(_.nYm(g.authorName.simpleText));if(_.w("live_chat_seed_color_usernames")&&(g==null?0:g.authorSeedColorArgb))return _.zaT(_.Oi(g.authorSeedColorArgb));if(_.w("live_chat_colored_usernames"))return"#cc0000";var q;return _.w("live_chat_simple_color_usernames")&&(g==null?0:(q=g.authorName)==null?0:q.simpleText)&&(g==null?0:g.authorUsernameColorLight)&&
(g==null?0:g.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Oi(g.authorUsernameColorDark):_.Oi(g.authorUsernameColorLight):""};
x3.prototype.updateMessage=x3.prototype.updateMessage;x3.prototype.dataChanged=x3.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],x3.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],x3.prototype,"data",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],x3.prototype,"showOriginal",void 0);_.Y([_.a({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.K("design:type",Boolean)],x3.prototype,"isDimmed",void 0);_.Y([_.a({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.K("design:type",Boolean)],x3.prototype,"showBar",void 0);
_.Y([_.a({computed:"computeAuthorBadges(data)"}),_.K("design:type",Array)],x3.prototype,"authorBadges",void 0);_.Y([_.a({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],x3.prototype,"authorIsOwner",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],x3.prototype,"inCollapsedBanner",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],x3.prototype,"inBanner",void 0);
_.Y([_.a({value:_.w("live_chat_hide_avatars"),reflectToAttribute:!0}),_.K("design:type",Boolean)],x3.prototype,"avatarHidden",void 0);_.Y([_.a({computed:"computeAuthorNameColor(data)"}),_.K("design:type",String)],x3.prototype,"authorNameColor",void 0);_.Y([_.a(),_.K("design:type",_.lT)],x3.prototype,"participantsManager",void 0);_.Y([_.a({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.K("design:type",Object)],x3.prototype,"filledButtonOverrides",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],x3.prototype,"dataChanged",null);_.Y([_.k_("data.message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],x3.prototype,"updateMessage",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],x3);
_.T(x3,"yt-live-chat-text-message-renderer",function(){if(i$8===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;IEn===void 0&&(IEn=document.createElement("template"));var Q=IEn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);i$8=g}g=i$8;return g},{mode:0});var BO=function(){var g=_.X.apply(this,arguments)||this;g.tonalButtonOverrides={type:"tonal",style:"overlay"};return g};
_.A(BO,_.X);
BO.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]]"}}}}}};
BO.prototype.shouldSupportInlineActionButtons=function(){return!0};
BO.prototype.shouldSupportWholeItemClick=function(){return!0};
_.z3.Object.defineProperties(BO.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],BO.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BO.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",_.lT)],BO.prototype,"participantsManager",void 0);
_.Y([_.a(),_.K("design:type",Object)],BO.prototype,"tonalButtonOverrides",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.infoDialogButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],BO.prototype,"hasInfoDialogButton",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],BO);
_.T(BO,"yt-live-chat-auto-mod-message-renderer",function(){if(lE2===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Z$b===void 0&&(Z$b=document.createElement("template"));var Q=Z$b;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);lE2=g}g=lE2;return g},{mode:0});var CQR;var b$R;var dl5;var Fj$=function(){return _.X.apply(this,arguments)||this};
_.A(Fj$,_.X);_.Y([_.a(),_.K("design:type",Object)],Fj$.prototype,"data",void 0);_.Y([_.fE({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Fj$);
_.T(Fj$,"ytd-factoid-renderer",function(){if(dl5!==void 0)return dl5;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return dl5=g},{mode:1});var zR=function(){return _.X.apply(this,arguments)||this};
_.A(zR,_.X);zR.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.Y([_.a(),_.K("design:type",Object)],zR.prototype,"data",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],zR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],zR);
_.T(zR,"yt-live-chat-channel-activity-reputation-renderer",function(){if(b$R===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;CQR===void 0&&(CQR=document.createElement("template"));var Q=CQR;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);b$R=g}g=b$R;return g},{mode:0});var mlx;var aE0;var nF=function(){return _.X.apply(this,arguments)||this};
_.A(nF,_.X);nF.prototype.ready=function(){var g=document.querySelector("yt-live-chat-app");g&&g.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Boolean)],nF.prototype,"menuFocused",void 0);_.Y([_.a(),_.K("design:type",Object)],nF.prototype,"data",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],nF.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],nF);
_.T(nF,"yt-live-chat-donation-announcement-renderer",function(){if(aE0===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;mlx===void 0&&(mlx=document.createElement("template"));var Q=mlx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);aE0=g}g=aE0;return g},{mode:0});var Vo8;var XZZ,rGi=function(){if(XZZ!==void 0)return XZZ;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Vo8===void 0&&(Vo8=document.createElement("template"));var Q=Vo8;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return XZZ=g};var k3=function(){return _.X.apply(this,arguments)||this};
_.A(k3,_.X);_.z3.Object.defineProperties(k3,{template:{configurable:!0,enumerable:!0,get:function(){return rGi()}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],k3.prototype,"data",void 0);_.Y([_.jP({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],k3);_.T(k3,"yt-live-chat-empty-feed-view-model",function(){return rGi()},{mode:0});var Wj5;var TQn;var SC=function(){return _.X.apply(this,arguments)||this};
_.A(SC,_.X);SC.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"}}}}}};
_.z3.Object.defineProperties(SC.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var g,u;return{runs:[{text:(g=this.data)==null?void 0:(u=g.channelName)==null?void 0:u.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var g=[],u;if((u=this.data)==null||!u.channelBadges)return g;var q;u=_.N((q=this.data)==null?void 0:q.channelBadges);for(q=u.next();!q.done;q=u.next()){q=_.c(q.value,bqX);var Q=void 0,L=void 0;if((Q=q)==null?0:(L=Q.badgeImage)==null?0:L.sources)Q=void 0,L={liveChatAuthorBadgeRenderer:{tooltip:q.tooltip,accessibility:{accessibilityData:{label:(Q=_.c(q.rendererContext,_.L3))==null?void 0:Q.label}}}},q.badgeImage.sources[0].clientResource?L.liveChatAuthorBadgeRenderer.icon=
{iconType:q.badgeImage.sources[0].clientResource.imageName}:L.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:q.badgeImage.sources},g.push(L)}return g}}});
_.Y([_.a(),_.K("design:type",Object)],SC.prototype,"data",void 0);_.Y([_.C("data.channelName"),_.K("design:type",Object),_.K("design:paramtypes",[])],SC.prototype,"channelName",null);_.Y([_.C("data.channelBadges"),_.K("design:type",Array),_.K("design:paramtypes",[])],SC.prototype,"channelBadges",null);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],SC);
_.T(SC,"yt-live-chat-identity-view-model",function(){if(TQn===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Wj5===void 0&&(Wj5=document.createElement("template"));var Q=Wj5;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);TQn=g}g=TQn;return g},{mode:0});var h1Z;var YuW;var O$x;var Kjx;var oz=function(){var g=_.X.apply(this,arguments)||this;g.hidden=!1;g.supportsInlineActionButtons=!0;return g};
_.A(oz,_.X);oz.prototype.ready=function(){var g;((g=document.querySelector("yt-live-chat-app"))==null?0:g.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
oz.prototype.dataChanged=function(g){var u=(0,_.K6)(_.Tr(this.hostElement).querySelector("#detail-text"));u.textContent="";(g==null?0:g.detailText)&&u.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(g.detailText))};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],oz.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a({observer:"dataChanged"}),_.K("design:type",Object)],oz.prototype,"data",void 0);
_.Y([_.a({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.K("design:type",Object)],oz.prototype,"hidden",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],oz);
_.T(oz,"yt-live-chat-legacy-paid-message-renderer",function(){if(Kjx===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;O$x===void 0&&(O$x=document.createElement("template"));var Q=O$x;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Kjx=g}g=Kjx;return g},{mode:0});var xln;var BQ0;var z1o={},U6=function(){return _.gO.apply(this,arguments)||this};
_.A(U6,_.gO);U6.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
U6.prototype.onLiveChatMembershipItemBehaviorClick=U6.prototype.onLiveChatMembershipItemBehaviorClick;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],U6.prototype,"data",void 0);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],U6.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.Y([_.uU()],U6);
z1o.YtLiveChatMembershipItemBehavior=[U6.prototype,_.n.YtRendererBehavior];var go=function(){var g=_.X.apply(this,arguments)||this;g.supportsInlineActionButtons=!0;g.hasPrimaryHeaderText=!1;g.showOnlyHeader=!1;g.authorBadges=[];g.modern=_.w("web_button_rework_with_live");g.buttonOverrides={style:"overlay",type:"filled"};return g};
_.A(go,_.X);_.P=go.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.P.ready=function(){var g=document.querySelector("yt-live-chat-app");g&&g.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.P.messageChanged=function(){var g=this.data.message,u=(0,_.K6)(_.Tr(this.hostElement).querySelector("#message"));u.textContent="";g&&u.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(g))};
_.P.computeHasPrimaryHeaderText=function(g){return!(!g||!g.headerPrimaryText)};
_.P.computeShowOnlyHeader=function(g,u){return this.isMessageEmpty(g,u)};
_.P.computeAuthorBadges=function(g){return g.authorBadges||[]};
_.P.isMessageEmpty=function(g,u){return!g||g.empty?!0:!g.message&&!g.inputField&&!u};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.P.getInputElement=function(){return _.Tr(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.P.inputFocus=function(){var g=this.getInputElement();g&&g.focus()};
_.P.inputInsertEmoji=function(g){var u=this.getInputElement();u&&u.insertEmoji(g)};
_.P.inputMessage=function(){var g=this.getInputElement();return g&&this.data.inputField?(g.completeEmojis(),_.eT(g.liveChatRichMessageInput)):null};
_.P.onFooterButtonClick=function(){this.data.footerButton&&_.hJ(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.P.shouldSupportWholeItemClick=function(){return!0};
go.prototype.isDeletedChanged=go.prototype.isDeletedChanged;go.prototype.messageChanged=go.prototype.messageChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],go.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.I(z1o.YtLiveChatMembershipItemBehavior),_.K("design:type",Object)],go.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],go.prototype,"data",void 0);_.Y([_.a({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.K("design:type",Object)],go.prototype,"hasPrimaryHeaderText",void 0);_.Y([_.a({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.K("design:type",Object)],go.prototype,"showOnlyHeader",void 0);
_.Y([_.a({computed:"computeAuthorBadges(data)"}),_.K("design:type",Array)],go.prototype,"authorBadges",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],go.prototype,"modern",void 0);_.Y([_.k_("data.message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],go.prototype,"messageChanged",null);_.Y([_.k_("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],go.prototype,"isDeletedChanged",null);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],go);
_.T(go,"yt-live-chat-membership-item-renderer",function(){if(BQ0===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;xln===void 0&&(xln=document.createElement("template"));var Q=xln;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);BQ0=g}g=BQ0;return g},{mode:0});var nc$;var ki0;var up=function(){return _.X.apply(this,arguments)||this};
_.A(up,_.X);up.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],up.prototype,"data",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],up);
_.T(up,"yt-live-chat-mode-change-message-renderer",function(){if(ki0===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;nc$===void 0&&(nc$=document.createElement("template"));var Q=nc$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ki0=g}g=ki0;return g},{mode:0});var SuZ;var ocX;var q5=function(){return _.X.apply(this,arguments)||this};
_.A(q5,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],q5.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],q5.prototype,"data",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],q5);
_.T(q5,"yt-live-chat-moderation-message-renderer",function(){if(ocX===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;SuZ===void 0&&(SuZ=document.createElement("template"));var Q=SuZ;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ocX=g}g=ocX;return g},{mode:0});var UlR;var gh5;var QR=function(){return _.X.apply(this,arguments)||this};
_.A(QR,_.X);QR.prototype.onClick=function(){var g;if((g=this.data)!=null&&g.onClickCommand){var u;_.ze.instance.resolveCommand((u=this.data)==null?void 0:u.onClickCommand)}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],QR.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],QR.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],QR.prototype,"data",void 0);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],QR);
_.T(QR,"yt-live-chat-offer-click-count-message-renderer",function(){if(gh5===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;UlR===void 0&&(UlR=document.createElement("template"));var Q=UlR;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);gh5=g}g=gh5;return g},{mode:0});var upi;var qV5=function(){return _.X.apply(this,arguments)||this};
_.A(qV5,_.X);_.Y([_.a(),_.K("design:type",Object)],qV5.prototype,"data",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],qV5);
_.T(qV5,"yt-live-chat-placeholder-item-renderer",function(){if(upi===void 0){var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);upi=g}g=upi;return g},{mode:0});var Ql0;var Lo8;var Ehn=new lR(7),L1=function(){var g=_.X.apply(this,arguments)||this;g.data={};return g};
_.A(L1,_.X);L1.prototype.dataChanged=function(){var g;((g=this.data)==null?0:g.class)&&_.Y_(this.hostElement,this.data.class,!0);var u;((u=this.oldData)==null?0:u.class)&&_.Y_(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
L1.prototype.computeTimestampString=function(g){return Ehn.format(new Date(g/1E3))};
L1.prototype.dataChanged=L1.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],L1.prototype,"data",void 0);_.Y([_.a({computed:"computeTimestampString(data.timestampUsec)"}),_.K("design:type",String)],L1.prototype,"timestampString",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L1.prototype,"dataChanged",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],L1);
_.T(L1,"yt-live-chat-server-error-message",function(){if(Lo8===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Ql0===void 0&&(Ql0=document.createElement("template"));var Q=Ql0;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Lo8=g}g=Lo8;return g},{mode:0});var PNX;var NHR;var EM=function(){var g=_.X.apply(this,arguments)||this;g.defaultToFilledIcon=!1;return g};
_.A(EM,_.X);EM.prototype.computeHasPrimaryColorIcon=function(g){return g==="SPARK"||g==="SPONSORSHIP_STAR"};
EM.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],EM.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],EM.prototype,"defaultToFilledIcon",void 0);_.Y([_.a(),_.K("design:type",Object)],EM.prototype,"data",void 0);
_.Y([_.a({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.K("design:type",Boolean)],EM.prototype,"hasPrimaryColorIcon",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],EM);
_.T(EM,"yt-live-chat-viewer-engagement-message-renderer",function(){if(NHR===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;PNX===void 0&&(PNX=document.createElement("template"));var Q=PNX;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);NHR=g}g=NHR;return g},{mode:0});var sli;var P_=function(){var g=_.X.apply(this,arguments)||this;g.modernUpdate=!1;g.buttonStyle="overlay";g.buttonType="filled";return g};
_.A(P_,_.X);P_.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
P_.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],P_.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],P_.prototype,"modernUpdate",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],P_.prototype,"buttonStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],P_.prototype,"buttonType",void 0);
_.Y([_.fE({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],P_);
_.T(P_,"ytd-ad-hover-text-button-renderer",function(){if(sli!==void 0)return sli;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return sli=g},{mode:1});var yYH;var N5=function(){var g=_.X.apply(this,arguments)||this;g.buttonOverrides={size:"XS"};return g};
_.A(N5,_.X);N5.prototype.onHelpTap=function(g){this.data&&this.data.informationDialog&&(_.hJ(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),g.preventDefault(),g.stopPropagation())};
_.Y([_.a(),_.K("design:type",Object)],N5.prototype,"buttonOverrides",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],N5.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],N5);
_.T(N5,"ytd-live-chat-purchased-product-message-renderer",function(){if(yYH!==void 0)return yYH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return yYH=g},{mode:1});var vh2;var Dnn;var sM=function(){var g=_.X.apply(this,arguments)||this;g.isContainerDeleted=!1;return g};
_.A(sM,_.X);sM.prototype.onContextMenuClick=function(g){this.ytLiveChatItemBehavior.showContextMenu(g)};
sM.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))};
sM.prototype.isContainerDeletedChanged=sM.prototype.isContainerDeletedChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],sM.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sM.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],sM.prototype,"isContainerDeleted",void 0);
_.Y([_.a(),_.K("design:type",String)],sM.prototype,"deletedStateMessage",void 0);_.Y([_.k_("isContainerDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sM.prototype,"isContainerDeletedChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],sM);
_.T(sM,"ytd-sponsorships-live-chat-header-renderer",function(){if(Dnn!==void 0)return Dnn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Dnn=g},{mode:1});var yR=function(){var g=_.X.apply(this,arguments)||this;g.modern=_.w("web_button_rework_with_live");g.buttonOverrides={style:"overlay",type:"filled"};return g};
_.A(yR,_.X);yR.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]]"}}}}}};
yR.prototype.onCtaButtonClick=function(){var g,u=_.c((g=this.data)==null?void 0:g.optInPrompt,_.eW);if(g=this.maybeGetButtonCommand(u)){var q;(q=_.gL())==null||q.clickCommand(g)}};
yR.prototype.maybeGetButtonCommand=function(g){return!g||!g.command||_.c(g.command,Gu5)===void 0&&_.c(g.command,eOa)===void 0?null:g.command};
yR.prototype.shouldHideOptinPrompt=function(g,u){return!g||u};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],yR.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yR.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],yR.prototype,"modern",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],yR);
_.T(yR,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(vh2!==void 0)return vh2;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return vh2=g},{mode:1});var p3n;var v_=function(){return _.X.apply(this,arguments)||this};
_.A(v_,_.X);v_.prototype.onContextMenuClick=function(g){this.ytLiveChatItemBehavior.showContextMenu(g)};
v_.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))};
v_.prototype.isDeletedChanged=v_.prototype.isDeletedChanged;_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],v_.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],v_.prototype,"data",void 0);_.Y([_.k_("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v_.prototype,"isDeletedChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],v_);
_.T(v_,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(p3n!==void 0)return p3n;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return p3n=g},{mode:1});var Dh=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return g};
_.A(Dh,_.X);_.P=Dh.prototype;
_.P.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"}}}};
_.P.handleLiveChatAction=function(g){_.c(g,Us8)?this.handleMarkChatItemAsDeletedAction(_.c(g,Us8)):_.c(g,of8)&&this.handleRemoveChatItemAction(_.c(g,of8))};
_.P.handleLiveChatActions=function(g){g.forEach(this.handleLiveChatAction,this)};
_.P.handleMarkChatItemAsDeletedAction=function(g){var u=this,q;((q=this.data)==null?0:q.items)&&this.data.items.forEach(function(Q,L){var E=Object.keys(Q)[0];Object.values(Q)[0].id===g.targetItemId&&u.markAsDeleted("data.items",L,E,g.deletedStateMessage,g.showOriginalContentMessage)})};
_.P.handleRemoveChatItemAction=function(g){var u=this,q;((q=this.data)==null?0:q.items)&&this.data.items.forEach(function(Q,L){Object.values(Q)[0].id===g.targetItemId&&u.splice("data.items",L,1)})};
_.P.markAsDeleted=function(g,u,q,Q,L){g=[g,u,q].join(".");this.set(g+".deletedStateMessage",Q);this.set(g+".showOriginalContentMessage",L)};
_.Y([_.a(),_.K("design:type",Object)],Dh.prototype,"data",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Dh.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Dh);
_.T(Dh,"yt-live-chat-item-display-list-renderer",function(){if(YuW===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;h1Z===void 0&&(h1Z=document.createElement("template"));var Q=h1Z;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);YuW=g}g=YuW;return g},{mode:0});var JY2;var jlo,fui=function(){if(jlo!==void 0)return jlo;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;JY2===void 0&&(JY2=document.createElement("template"));var Q=JY2;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return jlo=g};var p1=function(){var g=_.X.apply(this,arguments)||this;g.isHeader=!1;return g};
_.A(p1,_.X);p1.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.z3.Object.defineProperties(p1,{template:{configurable:!0,enumerable:!0,get:function(){return fui()}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],p1.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],p1.prototype,"isHeader",void 0);_.Y([_.jP({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],p1);_.T(p1,"yt-live-chat-item-display-renderer",function(){return fui()},{mode:0});var MH5,tHW,w3x,R32;
MH5={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}};tHW={home:"eohps",search:"eosps",watch:"eowps"};_.e3a=["watch","search","home"];
_.JF=function(){this.JSC$14723_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14723_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.FR("PRECONSTRUCTION_DELAY",0);this.signals_=_.A4();this.targetPage_=""};
_.JF.prototype.init=function(g,u){g=g===void 0?"":g;u=u===void 0?null:u;if(this.JSC$14723_isInitialized_)this.abort();else if(this.JSC$14723_isInitialized_=!0,g&&_.Gd5(this,g),u){var q=_.ZV(this.signals_,"pcl")?0:10,Q=function(){for(var L=0,E;E=_.e3a[L++];)E!=g&&E!=u&&this.pendingPages_.push(E);_.$n2(this)}.bind(this);
this.signals_.parkOrScheduleJob(Q,q,"pcl")}};
_.JF.prototype.abort=function(){this.fragmentJobId_&&(_.Hv.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);R32(this)};
_.Gd5=function(g,u){g.JSC$14723_isInitialized_&&!g.targetPage_&&(g.targetPage_=u,w3x(g,u),g.isInitialPass_=!1,w3x(g,u),g.signals_.processSignal(tHW[g.targetPage_]),R32(g),_.$n2(g))};
_.$n2=function(g){g.pendingPages_.length&&!g.pagePreparerJobId_&&(g.pagePreparerJobId_=_.M_(_.Hv,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Gd5(this,this.pendingPages_.shift())}.bind(g),g.DEFAULT_DELAY_))};
w3x=function(g,u){if(u=MH5[u])for(var q in u){var Q=!1,L=q;q.charAt(0)=="~"&&(Q=!0,L=q.substring(1));var E=u[q];E=typeof E=="object"?E:{count:E};u[q]=E;E.componentName=L;E.count>0&&(g.isInitialPass_?Q||g.isSeenDuringInitialPass_[L]||(g.JSC$14723_queue_.push({componentName:L,count:1,signals:E.signals}),g.isSeenDuringInitialPass_[L]=!0,E.count--):g.JSC$14723_queue_.push(E))}};
R32=function(g){g.JSC$14723_queue_.length=0;g.targetPage_="";g.isInitialPass_=!0;g.signals_.processSignal("eop")};
_.JF.getInstance=function(){return _.r_(_.JF)};var cYx=function(){this.signals=_.A4();this.init()};
cYx.prototype.startPreconstruction=function(){_.JF.getInstance().init(_.mW("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
cYx.prototype.init=function(){HsW(this);window.Polymer&&Twx&&hDk();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var g=_.Qq.ytcsi;if(g&&g.gt&&(g=g.gt())&&g.tick&&(g.tick.aft>0||g.tick.pbs>0)&&(_.mW("IS_HOMEPAGE_COLD")||_.mW("IS_RESULTS_PAGE_COLD")||_.mW("IS_WATCH_PAGE_COLD"))){AYZ(this);break a}Dmm(W_m,this.onNotifications,this)}};
var HsW=function(g){var u=function(){g.signals.processSignal("dl")};
document.readyState==="complete"?(_.Wk(Error("vh"),"WARNING"),u()):_.Wyq(window,"load",u)};
cYx.prototype.onNotifications=function(g){g.timer||(_.mW("IS_HOMEPAGE_COLD")||_.mW("IS_RESULTS_PAGE_COLD")||_.mW("IS_WATCH_PAGE_COLD"))&&AYZ(this)};
var AYZ=function(g){g.signals.parkOrScheduleJob(function(){g.signals.processSignal("eocs")},10,"eor")};
new cYx;var Zsa=function(){return _.gO.apply(this,arguments)||this};
_.A(Zsa,_.gO);_.z3.Object.defineProperties(Zsa.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_entity_store_from_dependency_injection")?_.CE():_.bR()}}});
_.Y([_.uU()],Zsa);_.jB=[N8.prototype,Zsa.prototype];var luH=["ytd-rich-shelf-renderer"],f1=function(){var g=_.gO.apply(this,arguments)||this;g._noAccessors=!0;g.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";g.followUpDialogPromise=null;g.followUpDialogPromiseResolve=null;g.followUpDialogPromiseReject=null;return g};
_.A(f1,_.gO);_.P=f1.prototype;_.P.dismissibleItemIsDismissedChanged_=function(g){_.w("kevlar_fluid_dismiss")&&(g?_.hJ(this.hostElement,"yt-dismissible-item-dismissed"):_.hJ(this.hostElement,"yt-dismissible-item-undismissed"))};
_.P.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.P.dismissibleItemReset_=function(){var g=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 _.Ez(function(u,q){g.followUpDialogPromiseResolve=u;g.followUpDialogPromiseReject=q});
_.hJ(this.hostElement,"yt-enable-lockup-interaction")};
_.P.dismissibleItemOnYtServiceRequestSent_=function(g,u){u.actions&&this.dismissibleItemProcessActions(u.actions,g)};
_.P.dismissibleItemOnRequestSent=function(g){for(var u=_.N(g.detail),q=u.next();!q.done;q=u.next()){var Q=void 0;(q=(Q=_.c(q.value,_.kJ))==null?void 0:Q.actions)&&this.dismissibleItemProcessActions(q,g)}};
_.P.dismissibleItemOnCommandSent=function(g,u){u&&this.dismissibleItemProcessActions(u,g)};
_.P.setAndGetDismissedContentId=function(g){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+g};
_.P.replayDismissAction=function(g){this.dismissibleItemProcessActions([g])};
_.P.dismissibleItemProcessActions=function(g,u){for(var q=0;q<g.length;q++){var Q=g[q],L=void 0;((L=_.c(Q,_.zg))==null?0:L.commands)&&this.dismissibleItemProcessActions(_.c(Q,_.zg).commands,u);if(_.c(Q,_.oB)){if(L=_.c(Q,_.oB),!L.replaceParentSection||luH.includes(this.hostElement.nodeName.toLowerCase()))L.groupDismissal&&kib(this,L.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(L),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.u2("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:Q})),Q=void 0,(Q=u)==null||Q.stopPropagation()}else if(_.c(Q,Ojb))this.dismissibleItemHandleHideEnclosingAction_(),Q=void 0,(Q=u)==null||Q.stopPropagation();else if(_.c(Q,te5))Q=_.c(Q,te5),L=void 0,((L=Q)==null?0:L.targetGroupId)&&kib(this,{targetGroupId:Q.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.u2("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
Q=void 0,(Q=u)==null||Q.stopPropagation();else if(_.c(Q,_.kJ))(Q=_.c(Q,_.kJ).actions)&&_.xJ(this.hostElement,Q,this.hostElement),Q=void 0,(Q=u)==null||Q.stopPropagation();else{var E=L=void 0;((L=_.c(Q,_.FU))==null?void 0:L.signal)!=="TELL_US_WHY"||((E=_.c(Q,_.FU))==null?0:E.targetId)&&_.w("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),Q=void 0,(Q=u)==null||Q.stopPropagation())}}};
_.P.dismissibleItemOnYtServiceRequestCompleted_=function(g,u){var q=this.get("feedbackResponses.0.followUpDialog",u.data);q?this.followUpDialogPromiseResolve(q):u.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(u.actions,g)};
_.P.dismissibleItemHandleReplaceEnclosingAction_=function(g){this.dismissedRenderer=g.item;this.isDismissed=!0;var u=null;(u=_.Tr(this.hostElement).querySelector("#dismissed"))&&_.xt(this,function(){_.YO(u)});
_.hJ(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.P.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.P.dismissibleItemHandleUndoFeedbackAction_=function(){_.hJ(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.P.dismissibleItemHandleTellUsWhySignalAction_=function(){var g=this;this.followUpDialogPromise.then(function(u){g.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:u}})})};
f1.prototype.dismissibleItemOnYtServiceRequestCompleted_=f1.prototype.dismissibleItemOnYtServiceRequestCompleted_;f1.prototype.dismissibleItemOnCommandSent=f1.prototype.dismissibleItemOnCommandSent;f1.prototype.dismissibleItemOnRequestSent=f1.prototype.dismissibleItemOnRequestSent;f1.prototype.dismissibleItemOnYtServiceRequestSent_=f1.prototype.dismissibleItemOnYtServiceRequestSent_;f1.prototype.dismissibleItemDataChanged_=f1.prototype.dismissibleItemDataChanged_;
f1.prototype.dismissibleItemIsDismissedChanged_=f1.prototype.dismissibleItemIsDismissedChanged_;_.Y([_.I(_.dx),_.K("design:type",Object)],f1.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],f1.prototype,"ytdReduxBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],f1.prototype,"isDismissed",void 0);_.Y([_.a(),_.K("design:type",Object)],f1.prototype,"dismissedRenderer",void 0);
_.Y([_.k_("isDismissed"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean]),_.K("design:returntype")],f1.prototype,"dismissibleItemIsDismissedChanged_",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],f1.prototype,"dismissibleItemDataChanged_",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],f1.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.Y([_.n6("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],f1.prototype,"dismissibleItemOnRequestSent",null);
_.Y([_.n6("yt-dismissible-item-action"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Array]),_.K("design:returntype")],f1.prototype,"dismissibleItemOnCommandSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],f1.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.Y([_.uU()],f1);_.M5=[_.dx,_.jB,f1.prototype];var tF=function(){var g=_.gO.apply(this,arguments)||this;g.disableGridStateAware=!1;g.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};g.currentGridClass="";return g};
_.A(tF,_.gO);tF.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.xt(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var g=this.gridStateAwareGetElement();_.Y_(g,"grid",!0)}};
tF.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
tF.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Tr(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
tF.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var g="grid-disabled";else{g=_.h4.getInstance();var u=this.get("pageSubtype");g=u&&dNW.includes(u)?"grid-disabled":g.currentSnapState_?g.currentSnapState_.className:null}(u=this.gridStateAwareGetElement())&&g!==this.currentGridClass&&(g&&_.Y_(u,g,!0),this.currentGridClass&&_.Y_(u,this.currentGridClass,!1),this.currentGridClass=g)};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],tF.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",String)],tF.prototype,"gridStateAwareSizingElementSelector",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tF.prototype,"disableGridStateAware",void 0);_.Y([_.uU()],tF);_.eB=[tF.prototype,_.xK.YtActionHandlerBehavior];_.Gu=new _.Fv("GUIDE_TOKEN");var R_;_.$e={};R_=function(){var g=_.gO.apply(this,arguments)||this;g.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 g};
_.A(R_,_.gO);_.P=R_.prototype;_.P.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var g=_.Bk().resolve(_.xv(_.Gu));g&&(this.guidePersistentAndVisible=g.getGuidePersistentAndVisible(),this.activeEndpoint=g.getActiveEndpoint(),this.guideOpened=g.getGuideOpened(),this.miniGuideVisible=g.getMiniGuideVisible())};
_.P.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.P.handleGuideStateAction=function(g){this.guidePersistentAndVisible=g};
_.P.handleMiniGuideStateAction=function(g){this.miniGuideVisible=g};
_.P.handleGuideOpenedAction=function(g){this.guideOpened=g};
_.P.handleActiveEndpointAction=function(g){this.activeEndpoint=g};
R_.prototype.onActiveEndpointChange=R_.prototype.onActiveEndpointChange;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],R_.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],R_.prototype,"guidePersistentAndVisible",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],R_.prototype,"miniGuideVisible",void 0);_.Y([_.a(),_.K("design:type",Object)],R_.prototype,"activeEndpoint",void 0);
_.Y([_.k_("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],R_.prototype,"onActiveEndpointChange",null);_.Y([_.a(),_.K("design:type",Boolean)],R_.prototype,"guideOpened",void 0);_.Y([_.uU()],R_);_.$e.YtdGuideStateAwareBehavior=[];_.$e.YtdGuideStateAwareBehavior.push(R_.prototype,_.xK.YtActionHandlerBehavior);var IuR=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],wo=function(){var g=_.gO.apply(this,arguments)||this;g.hoverJobId=0;g.JSC$14750_touched=!1;return g};
_.A(wo,_.gO);_.P=wo.prototype;_.P.created=function(){this.useExpandableTooltip=!IuR.includes(this.is)};
_.P.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.P.detached=function(){this.useExpandableTooltip=!1};
_.P.lockupOnDown=function(g){this.interactionElement&&!_.ia(_.C6(g),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.P.lockupOnUp=function(g){this.interactionElement&&!_.ia(_.C6(g),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.P.onTouchStart=function(){this.JSC$14750_touched=!0};
_.P.lockupOnMouseEnter=function(){var g=this,u=_.S8("kevlar_lockup_hover_delay",-1);this.JSC$14750_touched&&u>=0?(_.Hv.cancelJob(this.hoverJobId),this.hoverJobId=_.Hv.addJob(function(){g.lockupIsHovered=!0},8,u),this.JSC$14750_touched=!1):this.lockupIsHovered=!0};
_.P.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Hv.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.P.lockupOnPopupClosed=function(g,u){var q;((q=u.popupRenderer)==null?void 0:q.is)==="ytd-menu-popup-renderer"&&(g=u.popupRenderer.veData,u=_.j_(),g&&u&&_.lH(u,[g]))};
_.P.lockupOnLockupRequested=function(g){var u=g.detail.videoIds[0],q;g.detail&&u===((q=this.data)==null?void 0:q.videoId)&&(g.detail.returnValue=[this.data])};
_.P.lockupOnYtServiceRequestSent=function(g,u){if(g=u.actions)for(var q=0;q<g.length;q++){var Q=g[q];if(Q.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&u.ajaxPromise){var L=void 0,E=(L=_.c(u.endpoint,_.fq))==null?void 0:L.playlistId;L=void 0;Q=(L=Q.removedVideoId)!=null?L:"";L0b(_.Ic(),Q,E)}else Q.action==="ACTION_REMOVE_VIDEO"&&u.ajaxPromise&&(E=void 0,Q=(E=Q.setVideoId)!=null?E:"",_.EE5(_.Ic(),Q))}};
_.P.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.P.lockupOnLockupEnabled=function(){if(!this.$){var g=_.Bk().resolve(_.ba).getCurrentPage(),u=this.getParentRenderer?this.getParentRenderer():void 0;_.Io(new _.Ji("component not ready",this.is,this.isAttached,g==null?void 0:g.is,u==null?void 0:u.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
wo.prototype.lockupOnLockupEnabled=wo.prototype.lockupOnLockupEnabled;wo.prototype.lockupOnLockupDisabled=wo.prototype.lockupOnLockupDisabled;wo.prototype.lockupOnYtServiceRequestSent=wo.prototype.lockupOnYtServiceRequestSent;wo.prototype.lockupOnLockupRequested=wo.prototype.lockupOnLockupRequested;wo.prototype.lockupOnPopupClosed=wo.prototype.lockupOnPopupClosed;wo.prototype.lockupOnMouseLeave=wo.prototype.lockupOnMouseLeave;wo.prototype.lockupOnMouseEnter=wo.prototype.lockupOnMouseEnter;
wo.prototype.onTouchStart=wo.prototype.onTouchStart;wo.prototype.lockupOnUp=wo.prototype.lockupOnUp;wo.prototype.lockupOnDown=wo.prototype.lockupOnDown;_.Y([_.a(),_.K("design:type",Object)],wo.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],wo.prototype,"lockupIsHovered",void 0);_.Y([_.a(),_.K("design:type",Boolean)],wo.prototype,"lockupTouchTriggered",void 0);_.Y([_.a(),_.K("design:type",Boolean)],wo.prototype,"useExpandableTooltip",void 0);
_.Y([_.oE("#interaction"),_.K("design:type",Object)],wo.prototype,"interactionElement",void 0);_.Y([_.n6("down"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],wo.prototype,"lockupOnDown",null);_.Y([_.n6("up"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],wo.prototype,"lockupOnUp",null);
_.Y([_.n6("touchstart"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wo.prototype,"onTouchStart",null);_.Y([_.n6("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wo.prototype,"lockupOnMouseEnter",null);_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wo.prototype,"lockupOnMouseLeave",null);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],wo.prototype,"lockupOnPopupClosed",null);_.Y([_.n6("yt-lockup-requested"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],wo.prototype,"lockupOnLockupRequested",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],wo.prototype,"lockupOnYtServiceRequestSent",null);_.Y([_.n6("yt-disable-lockup-interaction"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wo.prototype,"lockupOnLockupDisabled",null);
_.Y([_.n6("yt-enable-lockup-interaction"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wo.prototype,"lockupOnLockupEnabled",null);_.Y([_.uU()],wo);_.c_=[wo.prototype];_.is5={YtdReduxBehavior:[]};_.is5.YtdReduxBehavior.push.apply(_.is5.YtdReduxBehavior,_.jB);var H_=function(){var g=_.gO.apply(this,arguments)||this;g._noAccessors=!0;g.disableNowPlaying=!1;g.disableTooltips=!1;g.useHoveredProperty=!1;g.hovered=!1;g.isThumbnailHovered_=!1;g.addBackground=_.w("kevlar_thumbnail_bg");g.nowPlaying=!1;g.disableRounding=!1;g.size="small";return g};
_.A(H_,_.gO);_.P=H_.prototype;_.P.computeThumbnailOverlaySidePanelWidth_=function(g,u){return g-u};
_.P.computeSize=function(g,u){if(!this.disableRounding){if(!g&&!u)return"small";g=Math.max(g||0,u||0);return g>=256?"large":g>=96?"medium":"small"}};
_.P.computeFinalHoveredState_=function(g,u,q){return this.nowPlaying?!1:_.w("kevlar_thumbnail_fluid")&&g?u:q};
_.P.computeHoverOverlays_=function(g,u){return g&&u?u:void 0};
_.P.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.P.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.P.checkMiniplayer_=function(){var g;if(((g=this.data)==null?0:g.playlistSetVideoId)&&_.w("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{g=_.Uw();var u=g.currentEndpoint;!this.disableNowPlaying&&u&&_.c(u,_.l1)&&this.data?(u=_.c(u,_.l1),this.nowPlaying=this.data.playlistId?u.playlistId===this.data.playlistId:u.videoId===this.data.videoId,this.isVideoPlaying=g==null?void 0:g.isVideoPlaying):this.nowPlaying=!1}};
H_.prototype.checkMiniplayer_=H_.prototype.checkMiniplayer_;H_.prototype.onMouseLeave_=H_.prototype.onMouseLeave_;H_.prototype.onMouseEnter_=H_.prototype.onMouseEnter_;H_.prototype.computeHoverOverlays_=H_.prototype.computeHoverOverlays_;H_.prototype.computeFinalHoveredState_=H_.prototype.computeFinalHoveredState_;H_.prototype.computeSize=H_.prototype.computeSize;H_.prototype.computeThumbnailOverlaySidePanelWidth_=H_.prototype.computeThumbnailOverlaySidePanelWidth_;
_.Y([_.I(_.jB),_.K("design:type",Object)],H_.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],H_.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],H_.prototype,"height",void 0);_.Y([_.a(),_.K("design:type",Boolean)],H_.prototype,"bottomSidePanel",void 0);_.Y([_.a(),_.K("design:type",Number)],H_.prototype,"width",void 0);_.Y([_.a(),_.K("design:type",Object)],H_.prototype,"disableNowPlaying",void 0);
_.Y([_.a({selector:_.jb}),_.K("design:type",Boolean)],H_.prototype,"miniplayerIsActive",void 0);_.Y([_.a(),_.K("design:type",Object)],H_.prototype,"disableTooltips",void 0);_.Y([_.a(),_.K("design:type",Object)],H_.prototype,"useHoveredProperty",void 0);_.Y([_.a(),_.K("design:type",Object)],H_.prototype,"hovered",void 0);_.Y([_.a(),_.K("design:type",Object)],H_.prototype,"isThumbnailHovered_",void 0);
_.Y([_.a({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.K("design:type",Boolean)],H_.prototype,"finalHoveredState_",void 0);_.Y([_.a({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.K("design:type",Number)],H_.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],H_.prototype,"addBackground",void 0);
_.Y([_.a({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.K("design:type",Object)],H_.prototype,"hoverOverlays_",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],H_.prototype,"nowPlaying",void 0);_.Y([_.a(),_.K("design:type",Boolean)],H_.prototype,"isVideoPlaying",void 0);_.Y([_.a(),_.K("design:type",Object)],H_.prototype,"disableRounding",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.K("design:type",Object)],H_.prototype,"size",void 0);_.Y([_.n6("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H_.prototype,"onMouseEnter_",null);_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H_.prototype,"onMouseLeave_",null);
_.Y([_.k_("data","disableNowPlaying","miniplayerIsActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H_.prototype,"checkMiniplayer_",null);_.Y([_.uU()],H_);var CNZ=[H_.prototype];_.AF={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(g,u){return g+":"+_.ku(u)},
getPlayerListener_:function(g,u,q){g=this.getPlayerListenerKey_(g,u);u=this.playerListeners_.get(g);q&&this.playerListeners_.delete(g);return u},
savePlayerListener_:function(g,u){var q=u.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(g,u),q);return q},
listenToPlayerEvent:function(g,u,q){q=this.savePlayerListener_(u,q);g.addEventListener(u,q)},
listenToPlayerEvents:function(g,u){u.forEach(function(q,Q){this.listenToPlayerEvent(g,Q,q)}.bind(this))},
unlistenFromPlayerEvent:function(g,u,q){q=this.getPlayerListener_(u,q,!0);g.removeEventListener(u,q)},
unlistenFromPlayerEvents:function(g,u){u.forEach(function(q,Q){this.unlistenFromPlayerEvent(g,Q,q)}.bind(this))}}};
_.Zh=function(){};_.bso=new _.Fv("PLAYER_API_TOKEN");var ghS=!1,LoJ,qVS=!1,PNK;var V0=function(g,u,q,Q,L){_.Lh.call(this);var E=this;this.playerId=u;this.webPlayerContextConfig=Q;this.tK3=L;this.rmi=!1;this.api={};this.c5z=this.vLd=null;this.bHk=new _.PW;this.yX={};this.mXm=this.fQY=this.elementId=this.niR=this.config=null;this.kkW=!1;this.yA=this.j71=null;this.el1={};this.nn1=["onReady"];this.lastError=null;this.trE=NaN;this.rrz={};this.l8N=0;this.jl=this.targetElement=g;_.z$(this,this.bHk);dn8(this);q?this.l8N=setTimeout(function(){E.loadNewVideoConfig(q)},0):Q&&(FoZ(this),
mnW(this))};
_.A(V0,_.Lh);V0.prototype.getId=function(){return this.playerId};
V0.prototype.loadNewVideoConfig=function(g){if(!this.isDisposed()){this.l8N&&(clearTimeout(this.l8N),this.l8N=0);var u=g||{};u instanceof D25||(u=new D25(u));this.config=u;this.setConfig(g);mnW(this);this.isReady()&&auX(this)}};
var FoZ=function(g){var u;g.webPlayerContextConfig?u=g.webPlayerContextConfig.rootElementId:u=g.config.attrs.id;g.elementId=u||g.elementId;g.elementId==="video-player"&&(g.elementId=g.playerId,g.webPlayerContextConfig?g.webPlayerContextConfig.rootElementId=g.playerId:g.config.attrs.id=g.playerId);var q;((q=g.jl)==null?void 0:q.id)===g.elementId&&(g.elementId+="-player",g.webPlayerContextConfig?g.webPlayerContextConfig.rootElementId=g.elementId:g.config.attrs.id=g.elementId)};
V0.prototype.setConfig=function(g){this.niR=g;this.config=VHZ(g);FoZ(this);if(!this.fQY){var u;this.fQY=X38(this,((u=this.config.args)==null?void 0:u.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var q;if((q=this.config)==null?0:q.attrs)g=this.config.attrs,(u=g.width)&&this.jl&&(this.jl.style.width=lM(Number(u)||u,!0)),(g=g.height)&&this.jl&&(this.jl.style.height=lM(Number(g)||g,!0))};
V0.prototype.getConfig=function(){return this.niR};
var auX=function(g){if(g.config&&g.config.loaded!==!0)if(g.config.loaded=!0,!g.config.args||g.config.args.autoplay!=="0"&&g.config.args.autoplay!==0&&g.config.args.autoplay!==!1){var u;g.api.loadVideoByPlayerVars((u=g.config.args)!=null?u:null)}else g.api.cueVideoByPlayerVars(g.config.args)},WoW=function(g){var u=!0,q=g.getPlayerElement();
q&&g.config&&(u=q.dataset.version===rYa(g));return u&&!!_.ri("yt.player.Application.create")},mnW=function(g){if(!g.isDisposed()&&!g.kkW){var u=WoW(g);
if(u&&(g.getPlayerElement()?"html5":null)==="html5")g.mXm="html5",g.isReady()||THH(g);else if(h3$(g),g.mXm="html5",u&&g.yA&&g.targetElement)g.targetElement.appendChild(g.yA),THH(g);else{g.config&&(g.config.loaded=!0);var q=!1;g.j71=function(){q=!0;var Q=YV8(g,"player_bootstrap_method")?_.ri("yt.player.Application.createAlternate")||_.ri("yt.player.Application.create"):_.ri("yt.player.Application.create");var L=g.config?VHZ(g.config):void 0;Q&&Q(g.targetElement,L,g.webPlayerContextConfig,g.tK3);THH(g)};
g.kkW=!0;u?g.j71():(_.Rr(rYa(g),g.j71),(u=Osb(g))&&y4u(u||""),KoX(g)&&!q&&_.xQ("yt.player.Application.create",null))}}};
V0.prototype.getPlayerElement=function(){var g=_.a9(document,this.elementId);!g&&this.jl&&this.jl.querySelector&&(g=this.jl.querySelector("#"+this.elementId));return g};
var THH=function(g){if(!g.isDisposed()){var u=g.getPlayerElement(),q=!1;u&&u.getApiInterface&&u.getApiInterface()&&(q=!0);if(q){g.kkW=!1;if(!YV8(g,"html5_remove_not_servable_check_killswitch")){var Q;if((u==null?0:u.isNotServable)&&g.config&&(u==null?0:u.isNotServable((Q=g.config.args)==null?void 0:Q.video_id)))return}xn$(g)}else g.trE=setTimeout(function(){THH(g)},50)}},xn$=function(g){dn8(g);
g.rmi=!0;var u=g.getPlayerElement();if(u){g.vLd=BHW(g,u,"addEventListener");g.c5z=BHW(g,u,"removeEventListener");var q=u.getApiInterface();q=q.concat(u.getInternalApiInterface());for(var Q=g.api,L=0;L<q.length;L++){var E=q[L];Q[E]||(Q[E]=BHW(g,u,E))}}for(var y in g.yX)g.yX.hasOwnProperty(y)&&g.vLd&&g.vLd(y,g.yX[y]);auX(g);g.fQY&&g.fQY(g.api);g.bHk.publish("onReady",g.api)},BHW=function(g,u,q){var Q=u[q];
return function(){var L=_.UT.apply(0,arguments);try{return g.lastError=null,Q.apply(u,L)}catch(E){if(q!=="sendAbandonmentPing")throw E.params=q,g.lastError=E,L=new _.Ji("PlayerProxy error in method call",{error:E,method:q,playerId:g.playerId}),L.level="WARNING",L;}}},dn8=function(g){g.rmi=!1;
if(g.c5z)for(var u in g.yX)g.yX.hasOwnProperty(u)&&g.c5z(u,g.yX[u]);for(var q in g.rrz)g.rrz.hasOwnProperty(q)&&clearTimeout(Number(q));g.rrz={};g.vLd=null;g.c5z=null;u=g.api;for(var Q in u)u.hasOwnProperty(Q)&&(u[Q]=null);u.addEventListener=function(L,E){g.addEventListener(L,E)};
u.removeEventListener=function(L,E){g.removeEventListener(L,E)};
u.destroy=function(){g.dispose()};
u.getLastError=function(){return g.getLastError()};
u.getPlayerType=function(){return g.getPlayerType()};
u.getCurrentVideoConfig=function(){return g.getConfig()};
u.loadNewVideoConfig=function(L){g.loadNewVideoConfig(L)};
u.isReady=function(){return g.isReady()}};
V0.prototype.isReady=function(){return this.rmi};
V0.prototype.addEventListener=function(g,u){var q=this;this.isDisposed();var Q=X38(this,u);Q&&(_.WS(this.nn1,g)||this.yX[g]||(u=z3o(this,g),this.vLd&&this.vLd(g,u)),this.bHk.subscribe(g,Q),g==="onReady"&&this.isReady()&&setTimeout(function(){Q(q.api)},0))};
V0.prototype.removeEventListener=function(g,u){this.isDisposed()||(u=X38(this,u))&&this.bHk.unsubscribe(g,u)};
var X38=function(g,u){var q=u;if(typeof u==="string"){if(g.el1[u])return g.el1[u];q=function(){var Q=_.UT.apply(0,arguments),L=_.ri(u);if(L)try{L.apply(_.Qq,Q)}catch(E){throw Q=new _.Ji("PlayerProxy error when executing callback",{error:E}),Q.level="ERROR",Q;}};
g.el1[u]=q}return q?q:null},z3o=function(g,u){var q=function(Q){var L=function(){g.isDisposed();
if(!g.isDisposed())try{g.bHk.publish(u,Q!=null?Q:void 0)}catch(v){var y=new _.Ji("PlayerProxy error when creating global callback",{error:v.message,event:u,playerId:g.playerId,data:Q,originalStack:v.stack,componentStack:v.componentStack});y.level="WARNING";throw y;}};
if(YV8(g,"web_player_publish_events_immediately"))L();else{var E=setTimeout(function(){L();_.pH.remove(g.rrz,String(E))},0);
_.pH.add(g.rrz,String(E),!0)}};
return g.yX[u]=q};
V0.prototype.getPlayerType=function(){return this.mXm||(this.getPlayerElement()?"html5":null)};
V0.prototype.getLastError=function(){return this.lastError};
var h3$=function(g){g.cancel();dn8(g);g.mXm=null;g.config&&(g.config.loaded=!1);var u=g.getPlayerElement();u&&(WoW(g)||!KoX(g)?g.yA=u:(u&&u.destroy&&u.destroy(),g.yA=null));g.targetElement&&_.RA(g.targetElement)};
V0.prototype.cancel=function(){this.j71&&_.IL3(rYa(this),this.j71);clearTimeout(this.trE);this.kkW=!1};
V0.prototype.disposeInternal=function(){h3$(this);if(this.yA&&this.config&&this.yA.destroy)try{this.yA.destroy()}catch(u){var g=new _.Ji("PlayerProxy error during disposal",{error:u});g.level="ERROR";throw g;}this.el1=null;for(g in this.yX)this.yX.hasOwnProperty(g)&&delete this.yX[g];this.niR=this.config=this.api=null;delete this.targetElement;delete this.jl;_.Lh.prototype.disposeInternal.call(this)};
var KoX=function(g){var u,q;g=(u=g.config)==null?void 0:(q=u.args)==null?void 0:q.fflags;return!!g&&g.indexOf("player_destroy_old_version=true")!==-1},rYa=function(g){return g.webPlayerContextConfig?g.webPlayerContextConfig.jsUrl:(g=g.config.assets)?g.js:""},Osb=function(g){return g.webPlayerContextConfig?g.webPlayerContextConfig.cssUrl:(g=g.config.assets)?g.css:""},YV8=function(g,u){if(g.webPlayerContextConfig)var q=g.webPlayerContextConfig.serializedExperimentFlags;
else{var Q;if((Q=g.config)==null?0:Q.args)q=g.config.args.fflags}return(q||"").split("&").includes(u+"=true")},VHZ=function(g){for(var u={},q=_.N(Object.keys(g)),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;
var L=g[Q];u[Q]=typeof L==="object"?_.pH.clone(L):L}return u};var DnF={},vhM="player_uid_"+(Math.random()*1E9>>>0);var lp=function(g,u,q,Q,L,E){u=u===void 0?document.createElement("div"):u;this.webPlayerContextConfig=g;this.container=u;this.commandResolver=q;this.apiResolver=jlZ();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.KU;Q||E?nhX(this):kdX(this);this.pendingPlayerResponse=Q;this.pendingWatchNextResponse=L;this.pendingPlayerVars=E;SVH(this)};
lp.prototype.loadVideoWithPlayerResponse=function(g,u,q){this.loadVideo(g,u,q)};
lp.prototype.loadVideoWithPlayerVars=function(g){return this.loadVideo(void 0,void 0,g)};
lp.prototype.destroy=function(g){if(g=_.a9(document,g))g=vhM+"_"+_.ku(g),(g=DnF[g])&&g.dispose()};
var UnW=function(g,u){var q;_.D(function(Q){if(Q.nextAddress==1)return g.pendingWatchNextResponse=u,g.synchronousApi?(q=g.synchronousApi,Q.jumpTo(2)):Q.yield(g.api,3);Q.nextAddress!=2&&(q=Q.yieldResult);if(!oh2(g,q))return Q.return();g.pendingWatchNextResponse&&(q.updateVideoData({raw_watch_next_response:g.pendingWatchNextResponse}),g.pendingWatchNextResponse=void 0);_.Wx(Q)})},oh2=function(g,u){var q;
if(!(u==null?0:(q=u.isReady)==null?0:q.call(u))){var Q;_.Io(new _.Ji("playerApi is falsey",{synchronousApi:g.synchronousApi,apiResolved:g.apiResolver.resolved,playerApiUndefined:u===void 0,playerApiNull:u===null,playerApiReady:(u==null?void 0:(Q=u.isReady)==null?void 0:Q.call(u))===!0,playerApiMethods:u?Object.keys(u):[]}));return!1}return!0},g8X=function(g,u){if(typeof g[u]==="function")return g[u]()},uBb=function(g){var u=window,q,Q=(q=u.ytplayer)==null?void 0:q.bootstrapPlayerContainer;
if((q=Q==null?void 0:Q.firstElementChild)&&_.dJ(q,"html5-video-player")){var L,E,y=(L=u.ytplayer)==null?void 0:(E=L.bootstrapWebPlayerContextConfig)==null?void 0:E.contextId;L=g.webPlayerContextConfig.contextId;if(y&&y===L){Q!==g.container&&(Q=!1,g8X(q,"getPlayerState")===2&&(Q=!0),g.container.appendChild(q),Q||g8X(q,"playVideo"));var v;if((v=u.ytplayer)==null?0:v.bootstrapPlayerResponse)g.bootstrapPlayerResponse=u.ytplayer.bootstrapPlayerResponse}}},SVH=function(g){var u,q,Q,L,E;
_.D(function(y){if(y.nextAddress==1)return g.pageReadyOrDataAvailable?y.jumpTo(2):y.yield(g.pageReadyOrDataAvailableResolver.promise,2);if(y.nextAddress!=4)return!_.w("kevlar_player_unified_player_loading")||upu()&&Qlb()?y.jumpTo(4):y.yield(slu(),4);uBb(g);if(g.pendingPlayerResponse||g.pendingPlayerVars)u=yYk(g.pendingPlayerResponse,g.pendingWatchNextResponse,g.pendingPlayerVars),g.pendingPlayerResponse&&g.pendingPlayerResponse===g.bootstrapPlayerResponse&&(u.loaded=!0),g.bootstrapPlayerResponse=
void 0;q=JYM(g.container,u,g.webPlayerContextConfig);((Q=u)==null?0:Q.loaded)&&g.pendingWatchNextResponse?(UnW(g,g.pendingWatchNextResponse),g.pendingPlayerResponse=void 0,g.pendingPlayerVars=void 0):q4a(g);L=function(v){q.removeEventListener("onReady",L);g.synchronousApi=v;g.apiResolver.resolve(v)};
q.addEventListener("onReady",L);g.commandResolver!==void 0&&(E=g.commandResolver,q.addEventListener("innertubeCommand",function(v){E(v)}));
_.Wx(y)})};
lp.prototype.loadVideo=function(g,u,q){var Q=this,L,E,y,v,J,f,t,e,G;return _.D(function(R){if(R.nextAddress==1)return Q.pendingPlayerResponse=g,Q.pendingWatchNextResponse=u,Q.pendingPlayerVars=q,nhX(Q),Q.synchronousApi?(L=Q.synchronousApi,R.jumpTo(2)):R.yield(Q.api,3);R.nextAddress!=2&&(L=R.yieldResult);if(!oh2(Q,L))return R.return(new Promise(function(){}));
y=new Promise(function(H){E=H});
v=function(){var H=L.getPlayerResponse();H&&(L.removeEventListener("onVideoDataChange",v),E(H))};
L.addEventListener("onVideoDataChange",v);if(Q.pendingPlayerResponse||Q.pendingPlayerVars)Q.pendingPlayerResponse&&Q.pendingPlayerResponse===Q.bootstrapPlayerResponse?(E(Q.pendingPlayerResponse),Q.pendingWatchNextResponse&&UnW(Q,Q.pendingWatchNextResponse)):(J=yYk(Q.pendingPlayerResponse,Q.pendingWatchNextResponse,Q.pendingPlayerVars),(G=(f=Q.pendingPlayerResponse)==null?void 0:(t=f.playerConfig)==null?void 0:(e=t.playbackStartConfig)==null?void 0:e.startPaused)?L.cueVideoByPlayerVars(J.args):L.loadVideoByPlayerVars(J.args)),
q4a(Q),Q.bootstrapPlayerResponse=void 0;return R.return(y)})};
var kdX=function(g){if(document.readyState==="complete"||document.readyState==="interactive")nhX(g);else{var u=function(){document.removeEventListener("DOMContentLoaded",u);nhX(g)};
document.addEventListener("DOMContentLoaded",u)}},nhX=function(g){g.pageReadyOrDataAvailable=!0;
g.pageReadyOrDataAvailableResolver.resolve()},q4a=function(g){g.pendingPlayerResponse=void 0;
g.pendingWatchNextResponse=void 0;g.pendingPlayerVars=void 0};
_.z3.Object.defineProperties(lp.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var I_=function(g){pA.call(this,g===void 0?"document_active":g);var u=this;this.overridePriority=10;this.JSC$14783_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(q){u.transition("document_disposed",{event:q})});
window.addEventListener("beforeunload",function(q){u.transition("document_disposed_preventable",{event:q})});
window.addEventListener("unload",function(q){u.transition("document_disposed",{event:q});u.JSC$14783_hasRun=new Map})};
_.A(I_,pA);
I_.prototype.runPreventableDispose=function(g,u){if(!this.JSC$14783_hasRun.get("document_disposed_preventable")){g(u==null?void 0:u.event);var q,Q;if((u==null?0:(q=u.event)==null?0:q.defaultPrevented)||(u==null?0:(Q=u.event)==null?0:Q.returnValue)){u.event.returnValue||(u.event.returnValue=!0);u.event.defaultPrevented||u.event.preventDefault();this.JSC$14783_hasRun=new Map;this.transition("document_active");return}}this.JSC$14783_hasRun.set("document_disposed_preventable",!0);this.JSC$14783_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
I_.prototype.runDispose=function(g,u){this.JSC$14783_hasRun.get("document_disposed")?this.transition("document_active"):(g(u==null?void 0:u.event),this.JSC$14783_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
I_.prototype.runFlush=function(g,u){g(u==null?void 0:u.event);this.transition("document_active")};
I_.prototype.runActive=function(){};var ip=function(g){pA.call(this,g===void 0?"document_visibility_unknown":g);var u=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(q){document.visibilityState==="visible"?u.transition("document_visible",{event:q}):u.transition("document_hidden",
{event:q})});
_.w("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(q){u.transition("document_backgrounded",{event:q})}),window.addEventListener("focus",function(q){u.transition("document_foregrounded",{event:q})}))};
_.A(ip,pA);ip.prototype.runVisible=function(g,u){g(u==null?void 0:u.event);_.w("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
ip.prototype.runHidden=function(g,u){g(u==null?void 0:u.event);_.w("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
ip.prototype.runBackgrounded=function(g,u){g(u==null?void 0:u.event)};
ip.prototype.runForegrounded=function(g,u){g(u==null?void 0:u.event)};var C1=function(){this.teardownLifecycle=new I_;this.visibilityLifecycle=new ip};
C1.prototype.install=function(){var g=_.UT.apply(0,arguments),u=this;g.forEach(function(q){u.teardownLifecycle.install(q)});
g.forEach(function(q){u.visibilityLifecycle.install(q)})};var bp=function(){C1.call(this);var g={};this.install((g.document_disposed={callback:this.abortSlisAndFlush},g));_.w("combine_ve_grafts")&&(g={},this.install((g.document_disposed={callback:this.flushInteractionLoggingAttachVes},g)));g={};this.install((g.flush_logs={callback:this.logFinalPayload},g));_.w("web_log_cfg_cee_ks")||_.M_(_.Hv,Q8Z)};
_.A(bp,C1);var fuu=function(){bp.loggingInstance||(bp.loggingInstance=new bp);return bp.loggingInstance};
bp.prototype.logFinalPayload=function(){if(_.w("web_fp_via_jspb")){var g=new MbX,u=_.j_();u&&_.EU(g,1,u);u=_.w("jspb_sparse_encoded_pivot")?new fw([{}]):new fw;_.mG(u,380,tb5,g);lVb("finalPayload",u);_.w("web_fp_via_jspb_and_json")&&_.H6("finalPayload",{csn:_.j_()})}else _.H6("finalPayload",{csn:_.j_()})};
bp.prototype.abortSlisAndFlush=function(){zC0(An);ZL!=null&&ZL.flush()};
bp.prototype.flushInteractionLoggingAttachVes=function(){MG8(_.gL())};
var Q8Z=function(){var g=_.FR("CLIENT_EXPERIMENT_EVENTS");if(g){var u=viq();g=_.N(g);for(var q=g.next();!q.done;q=g.next())q=q.value,u(q)&&_.H6("genericClientExperimentEvent",{eventType:q});delete _.bL.CLIENT_EXPERIMENT_EVENTS}};var LOX={};
LOX.YtPlayerBehavior=[_.AF.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 g=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.KU;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;MHS(function(){g.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.IK(this,"pan-down"),_.w("kevlar_pinch_fullscreen")&&_.oc().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.w("kevlar_pinch_fullscreen")&&_.oc().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(g,u,q){var Q=this;X0(this.useUnifiedPlayer_());if(this.mainAppPlayer_)X0(!1,"MainAppPlayer already created.");else{var L=_.w("kevlar_player_container_query_killswitch")?this.$.container:_.Tr(this.hostElement).querySelector("#container");this.mainAppPlayer_=new lp(this.getWebPlayerContextConfig_(),L,function(E){return _.nE(E,Q.hostElement)},g,u,q);
this.mainAppPlayer_.api.then(function(E){Q.player_=E;Q.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&tcb.resolve(E)})}},
loadVideoWithPlayerResponse:function(g,u){var q=this;if(this.useUnifiedPlayer_()){var Q=this.watchNextData,L,E=(L=g.videoDetails)==null?void 0:L.videoId,y,v,J;(L=(y=this.watchNextData)==null?void 0:(v=y.currentVideoEndpoint)==null?void 0:(J=v.watchEndpoint)==null?void 0:J.videoId)&&E!=L&&(Q=void 0,_.w("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(g,Q,u):this.createMainAppPlayer_(g,Q,u);this.mainAppPlayer_.api.then(function(){_.hJ(q.hostElement,
"yt-player-updated")})}else this.update(Suh(g,u))},
loadVideoWithPlayerVars:function(g){var u=this;this.useUnifiedPlayer_()?(_.w("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(g):this.createMainAppPlayer_(void 0,void 0,g),this.mainAppPlayer_.api.then(function(){_.hJ(u.hostElement,"yt-player-updated")})):this.update({args:g})},
update:function(g){var u=this;if(this.useUnifiedPlayer_())X0(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(g);var q=XFZ(g.args);q&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==q&&Object.assign(g.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(g).then(function(Q){_.hJ(u.hostElement,"yt-player-updated",_.w("kevlar_player_updated_obsolete_player_killswitch")?
Q:void 0)})}_.lD(new _.Ji("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(u.getPlayerPromise(),2);q=Q.yieldResult;if(!q)throw Error("xh");g&&u.updatePlayerPlaylist_(g);_.Wx(Q)})},
acquireApi_:function(g){var u=this;if(this.useUnifiedPlayer_())X0(!1,"Invalid method call in kevlar_unified_player.");else return _.Hv.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(X0(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(q){u.shouldAutoplay_(g)?q.loadVideoByPlayerVars(g.args):q.cueVideoByPlayerVars(g.args)})):this.initPlayerPromise_=this.initPlayerContainer_(g),this.initPlayerPromise_},
initPlayerContainer_:function(g){var u=this;if(this.useUnifiedPlayer_())X0(!1,"Invalid method call in kevlar_unified_player.");else return X0(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Io(Error("yh")),X0(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.w("kevlar_player_container_query_killswitch")?this.$.container:_.Tr(this.hostElement).querySelector("#container"),slu().then(function(){var q=u.initPlayer_(g);u.playerResolver_.resolve(q);
return q})},
onPlayerReady_:function(g,u){this.useUnifiedPlayer_()?X0(!1,"Invalid method call in kevlar_unified_player."):(g.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&tcb.resolve(g),u(g))},
maybeCallApiMethodOnElement_:function(g,u){if(typeof g[u]==="function")return g[u]()},
maybeAdoptBootstrapPlayer_:function(){var g=window,u,q=(u=g.ytplayer)==null?void 0:u.bootstrapPlayerContainer;if((u=q==null?void 0:q.firstElementChild)&&u.classList.contains("html5-video-player")){var Q,L,E=(Q=g.ytplayer)==null?void 0:(L=Q.bootstrapWebPlayerContextConfig)==null?void 0:L.contextId;Q=this.getWebPlayerContextConfig_().contextId;if(E&&E===Q){q!==this.playerContainer_&&(q=!1,this.maybeCallApiMethodOnElement_(u,"getPlayerState")===2&&(q=!0),this.playerContainer_.appendChild(u),q||this.maybeCallApiMethodOnElement_(u,
"playVideo"));var y;if((y=g.ytplayer)==null?0:y.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=g.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(g){var u=this;if(this.useUnifiedPlayer_())X0(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(q){u.maybeAdoptBootstrapPlayer_();var Q=g?ocK(g):void 0;Q&&Q==u.bootstrapPlayerResponse_&&(g.loaded=!0);Q=u.playerContainer_;var L=u.getWebPlayerContextConfig_();Q=JYM(Q,g,L);u.player_=Q;u.onPlayerReadyEvent_=u.onPlayerReady_.bind(u,u.player_,q);u.player_.addEventListener("onReady",u.onPlayerReadyEvent_);u.player_.addEventListener("innertubeCommand",
u.onPlayerInnerTubeCommand_.bind(u))})},
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(g){g.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(g){g.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var g=_.Bk().resolve(_.ba).getCurrentPage();g&&g.getScrollTop()<=0?_.IK(this,"pan-down"):_.IK(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(g){g.isFullscreen()||g.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(g){g.isFullscreen()&&g.toggleFullscreen()})},
updatePlayerPlaylist_:function(g){var u=this,q,Q,L;return _.D(function(E){if(E.nextAddress==1)return q=_.Bk().resolve(_.xv(_.cd)),Q=!!(q&&q.playlistComponent&&q.playlistComponent.loopOn),E.yield(u.getPlayerPromise(),2);var y=L=E.yieldResult,v=y.updatePlaylist,J=[];if(_.w("kevlar_player_playlist_use_local_index")){var f,t;var e=(t=(f=g.localCurrentIndex)!=null?f:g.currentIndex)!=null?t:0}else{var G;e=(G=g.currentIndex)!=null?G:0}if(g.contents)for(f=0;f<g.contents.length;f++)if((t=g.contents[f])&&t.playlistPanelVideoRenderer)if(dUq(t)){t=
t.playlistPanelVideoRenderer;G="";t.shortBylineText&&(G=_.iR(t.shortBylineText));var R="";t.title?R=_.iR(t.title):t.unplayableText&&(R=_.iR(t.unplayableText));J.push({author:G,title:R,encrypted_id:t.videoId})}else f<e&&--e;v.call(y,{index:e,list:g.playlistId?g.playlistId:"",loop:Q,playlist_title:g.title,playlist_length:J.length,video:J,fetch:0,external_list:"1",title:g.title?g.title:"",playlist_author:g.ownerName?_.iR(g.ownerName):void 0});_.Wx(E)})},
focusOnPlayer:function(){_.xt(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var g=this.playerContainer_.querySelector(".html5-video-player");g&&(_.Fq(_.Bk().resolve(_.UE)),g.focus())}})},
preparePlayer:function(){var g=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(u){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")u();else{var q=function(){document.removeEventListener("DOMContentLoaded",q);u()};
document.addEventListener("DOMContentLoaded",q)}})).then(function(){return slu()}).then(function(){g.initPlayerPromise_||g.preparePlayerJobId_||(g.preparePlayerJobId_=_.M_(_.Hv,function(){g.initPlayerPromise_||(g.initPlayerPromise_=g.initPlayerContainer_())}))}):_.lD(new _.Ji("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(g){this.useUnifiedPlayer_()?X0(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(g)||(g.args.autoplay="0")},
shouldAutoplay_:function(g){if(this.useUnifiedPlayer_())X0(!1,"Invalid method call in kevlar_unified_player.");else{var u=this.get("args.el",g);return u&&u!="detailpage"&&this.isMiniplayerActive_()||u&&(u=="sponsorshipsoffer"||u=="handlesclaiming")&&this.get("args.autoplay",g)=="0"?!1:(g=ocK(g))&&this.get("playerConfig.playbackStartConfig.startPaused",g)?!1:!0}},
isMiniplayerActive_:function(){return _.Bk().resolve(_.RO).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var g=this.getPlayer();if(g){var u=g.getPlayerState();_.w("kevlar_player_check_ad_state_on_stop")&&(u=g.getPlayerState(g.getPresentingPlayerType()));u!=5&&g.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(g,u,q){q=q===void 0?!1:q;var Q=this,L,E,y,v;return _.D(function(J){if(J.nextAddress==1)return u||(u=Q.hostElement),L=Q.useUnifiedPlayer_()?!!Q.mainAppPlayer_:!!Q.initPlayerPromise_,L?J.yield(Q.getPlayerPromise(),2):(q?g.insertBefore(u,g.firstChild):g.appendChild(u),J.return());E=J.yieldResult;y=E.getPlayerState(E.getPresentingPlayerType());v=!1;if(y==-1||y==1||y==3)v=!0;q?g.insertBefore(u,g.firstChild):g.appendChild(u);v&&E.playVideo();E.setSize(NaN,NaN);_.Wx(J)})},
watchNextDataChanged_:function(g){var u=this;g&&(this.useUnifiedPlayer_()&&_.w("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&UnW(this.mainAppPlayer_,g):this.getPlayerPromise().then(function(q){q.updateVideoData(u.computeWatchNextPlayerVars_(g))}))},
computeWatchNextPlayerVars_:function(g){if(this.useUnifiedPlayer_()&&_.w("kevlar_unified_player_update_watch_next_killswitch"))X0(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:g}},
maybeSendAbandonmentPing_:function(){var g=this.getPlayer();g&&g.getPlayerState()!=5&&g.getPlayerState()!=0&&g.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var g=_.FR("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(g=Object.assign({},g),g.rootElementId=this.playerId);g.serializedExperimentIds&&g.serializedExperimentFlags||_.Io(Error("zh"));return g},
hasWebPlayerContextConfig_:function(){return!!_.FR("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(g){this.useUnifiedPlayer_()?X0(!1,"Invalid method call in kevlar_unified_player."):_.nE(g,this.hostElement)},
useUnifiedPlayer_:function(){var g=_.w("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.w("kevlar_unified_player")||g}}];var E82={};E82.YtPlaylistPanelBehavior=[_.n.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(g){g=g.detail;if(g.actions.loop!=void 0||g.actions["yt-icons:loop"]!=void 0)this.loopOn=g.actions.loop||g.actions["yt-icons:loop"];if(g.actions.shuffle!=void 0||g.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=g.actions.shuffle||g.actions["yt-icons:shuffle"]},
setMenuData_:function(g){if(!g||!g.playlistButtons||g.isInfinite)return null;for(var u=g.playlistButtons.menuRenderer.topLevelButtons,q=u.length,Q=0;Q<q;Q++)if(u[Q].toggleButtonRenderer){var L=u[Q].toggleButtonRenderer;L.defaultIcon.iconType=="LOOP"&&this.loopOn?L.isToggled=this.loopOn:L.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(L.isToggled=this.shuffleOn)}return g.playlistButtons}}];_.mf={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(g,u,q){var Q=this.getClickTarget_(u);if(Q&&this.isClickAllowed_(Q)){u.preventDefault();g=(0,_.pH.unsafeClone)(g);var L=this.getContainerBoundingRect();u=this.getRelativeClickXy_(u,L);this.expandEndpointUrlMacros_(g,{NX:u[0],NY:u[1],NB:Q.code});q&&this.truncateWebCommendMetadataUrl_(g);_.hJ(this.hostElement,"yt-navigate",{endpoint:g})}},
getClickTarget_:function(g){if(!this.clickTargetMap)return null;g=_.C6(g)||[];g=_.N(g);for(var u=g.next();!u.done;u=g.next()){u=u.value;if(u===_.Tr(this.hostElement).querySelector("#menu"))break;if(u=this.clickTargetMap.get(u.id))return u}return null},
getRelativeClickXy_:function(g,u){var q=Math.round(g.detail.x-u.left);g=Math.round(g.detail.y-u.top);return q<0||g<0?[null,null]:[q,g]},
getContainerBoundingRect:function(){return _.Tr(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(g,u){for(var q=_.N(g.loggingUrls||[]),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q.baseUrl&&(Q.baseUrl=xVT(Q.baseUrl,u));g.urlEndpoint&&g.urlEndpoint.url&&(g.urlEndpoint.url=xVT(g.urlEndpoint.url,u));g.commandMetadata&&g.commandMetadata.webCommandMetadata&&g.commandMetadata.webCommandMetadata.url&&(g.commandMetadata.webCommandMetadata.url=xVT(g.commandMetadata.webCommandMetadata.url,u))},
truncateWebCommendMetadataUrl_:function(g){if(g.commandMetadata&&g.commandMetadata.webCommandMetadata&&g.commandMetadata.webCommandMetadata.url){var u=g.commandMetadata.webCommandMetadata.url,q=u.indexOf("&pp=");if(q>0){var Q=u.indexOf("&",q+1);g.commandMetadata.webCommandMetadata.url=Q>q&&Q<u.length?u.slice(0,q)+u.slice(Q):u.slice(0,q)}}},
configureClickTargets:function(g,u,q){this.containerId=g;this.clickTargetMap=new Map;g=_.N(u);for(u=g.next();!u.done;u=g.next())if(u=u.value,u.location){var Q=q.get(u.location);Q&&(_.Y_(_.Tr(this.hostElement).querySelector("#"+Q),"yt-simple-endpoint",this.isClickAllowed_(u)),this.clickTargetMap.set(Q,u))}},
isClickAllowed_:function(g){return g.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||g.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||g.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||g.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.a_={};
_.a_.YtLazyListBehavior=[_.iw.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 g=(this.constructor.generatedFrom||this).observers;g||(g=[]);g.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
g}},
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 g=this.renderElementsOutsideVisibleArea_;g&&(Lxx(g,4),g.processSignal())},
deepLazyListObserver_:function(g){var u=this;if(g){var q=g.value||[];if(this.itemsPath==g.path){var Q=this.nonDeferredItemCount;g=0;Q>-1&&q.length>Q&&(g=_.FR("REMAINING_DOVA_DEFERRED_CHUNKS",-1));g>0?(Q>0&&(Q=q.slice(0,Q),this.setInitialItemsOnDataChanged(Q)),(Q=this.renderElementsOutsideVisibleArea_)?Q.cancel():(Q=this.renderElementsOutsideVisibleArea_=new _.bw(2,"eocs"),_.Wyq(window,"scroll",function(){return u.renderDeferredElements()})),_.dg(Q,function(){u.setInitialItemsOnDataChanged(q)}),_.di("REMAINING_DOVA_DEFERRED_CHUNKS",
g-1)):this.setInitialItemsOnDataChanged(q)}else if(this.itemsPath+".splices"==g.path)this.onItemsUpdated_(q);
else Q="shownItems"+g.path.substr(this.itemsPath.length),this.useSignals&&Q==="shownItems.length"||this.notifyPath(Q,g.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(g){g&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(g),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(g){g=g.indexSplices;for(var u=0,q=g.length;u<q;u++){var Q=g[u];if(Q.index<this.shownCount&&(Q.removed&&this.splice("shownItems",Q.index,Q.removed.length),Q.addedCount)){var L=Q.object.slice(Q.index,Q.index+Q.addedCount);Q=["shownItems",Q.index,0];Q.push.apply(Q,L);this.splice.apply(this,Q)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(g){this.cancelPendingTasks_();g||(g=[]);this.items_=g;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&&(_.mW("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.xt(this,this.tryRenderChunk_)))},
fillRange_:function(g,u){this.canShowMore&&this.items_&&(g=this.items_.slice(g,u),g.unshift("shownItems"),this.push.apply(this,g),this.shownCount=u,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var g=this;this.canShowMore&&_.c$(this,"renderChunk",function(){g.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.mW("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Ln(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var g=this.renderElementsOutsideVisibleArea_;g&&(g.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var g=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(g-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=g;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(g){return Math.ceil(1E3/g)},
onCanShowMoreUpdated_:function(g){this.data&&this.items_!==null&&(g?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(g){!this.shouldUseTaskManager()&&this.data&&(!g&&this.canShowMore?(_.QNm(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):g&&this.partiallyRenderedItems_.has(this.items_)&&(_.w("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var ro;_.VR={};
ro=function(){var g=_.gO.apply(this,arguments)||this;g.atStart=!0;g.atEnd=!0;g.startIndex=0;g.endIndex=0;g.scrollCount=0;g.initialStartIndex=0;g.disableScrollEventListener=!1;g.useFloorScrolling=!1;g.isSearch=!1;g.dragging=!1;g.dragMouseStart=0;g.dragOffsetStart=0;g.disableWheelScroll=!1;g.centerListItems=!1;g.offset=0;g.minComponentWidth=0;g.marginWidthRight=0;g.marginWidthLeft=0;g.setButtonsStateRequested=!1;g.itemsVisibilityObserver=null;g.fullyVisibleItemsIndices=[];g.JSC$14812_onWheelScroll=function(u){if(g.isSearch&&
!g.disableWheelScroll&&_.w("desktop_enable_dmpanel_wheel_scroll")){var q=u.shiftKey?Math.abs(u.deltaY)>Math.abs(u.deltaX)?u.deltaY:u.deltaX:u.deltaX;q!==0&&(u.preventDefault(),g.ytLazyListBehavior.fillRemainingListItems(),g.offset+=q,Xq(g),g.reposition_())}};
g.onPointerDown=function(u){Pen(g)&&(g.dragMouseStart=u.clientX,g.dragOffsetStart=g.offset,g.dragging=!0)};
g.onPointerMove=function(u){Pen(g)&&g.dragging&&(g.ytLazyListBehavior.fillRemainingListItems(),g.offset=g.dragOffsetStart-(u.clientX-g.dragMouseStart),Xq(g),g.reposition_())};
g.onPointerUp=function(){Pen(g)&&(g.dragging=!1)};
return g};
_.A(ro,_.gO);var N12=function(g){var u=_.Tr(g.hostElement).querySelector("#items").children;if(!u)return 0;var q=0;g=_.N(g.fullyVisibleItemsIndices);for(var Q=g.next();!Q.done;Q=g.next())q+=u[Q.value].clientWidth;return q},Pen=function(g){return g.isSearch&&_.w("desktop_enable_dmpanel_click_drag_scroll")};
ro.prototype.created=function(){this.cachedViewportWidth=_.FR("initialInnerWidth")||window.innerWidth;this.JSC$14812_cachedViewportHeight=_.FR("initialInnerHeight")||window.innerHeight;_.FR("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.di("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
ro.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.w("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();s8a(this)};
ro.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.w("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var g;(g=this.itemsVisibilityObserver)==null||g.disconnect();this.itemsVisibilityObserver=null;var u;(u=this.itemsObserver)==null||u.disconnect()};
var s8a=function(g){var u=_.Tr(g.hostElement).querySelector("#scroll-container");if(u){if(!g.itemsVisibilityObserver){var q=window.getComputedStyle(u).marginRight;g.itemsVisibilityObserver=new IntersectionObserver(function(Q){yEi(g,Q)},{root:u,
rootMargin:q,threshold:.98})}if(u=_.Tr(g.hostElement).querySelector("#items"))g.itemsObserver=new OEa(u,function(Q){v85(g,Q)})}},v85=function(g,u){DD5(g)&&(Array.from(u.addedNodes).filter(function(q){return q.nodeType===Node.ELEMENT_NODE}).forEach(function(q){g.itemsVisibilityObserver&&g.itemsVisibilityObserver.observe(q)}),Array.from(u.removedNodes).filter(function(q){return q.nodeType===Node.ELEMENT_NODE}).forEach(function(q){g.itemsVisibilityObserver&&g.itemsVisibilityObserver.unobserve(q)}))},
yEi=function(g,u){var q=new Set(g.fullyVisibleItemsIndices);
u=_.N(u);for(var Q=u.next();!Q.done;Q=u.next()){Q=Q.value;var L=Q.target.parentElement;L?(L=Array.from(L.children).indexOf(Q.target),Q.isIntersecting?q.add(L):q.has(L)&&q.delete(L)):_.Io(new _.Ji("Parent element not found",Q.target.nodeName))}g.fullyVisibleItemsIndices=Array.from(q).sort(function(E,y){return E-y});
q.size===0?_.Io(new _.Ji("No visible entries in horizontal list")):(g.startIndex=g.fullyVisibleItemsIndices[0],g.endIndex=g.fullyVisibleItemsIndices[g.fullyVisibleItemsIndices.length-1])},DD5=function(g){g.data?g=(g=g.data)&&g.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===g.itemSizeConstraint:!1:g=!1;
return g};
_.P=ro.prototype;_.P.addScrollEventListeners=function(){var g=_.Tr(this.hostElement).querySelector("#scroll-container");g.style.touchAction="pan-y";g.addEventListener("wheel",this.JSC$14812_onWheelScroll);g.addEventListener("pointerdown",this.onPointerDown);g.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.P.removeScrollEventListeners=function(){var g=_.Tr(this.hostElement).querySelector("#scroll-container");g.removeEventListener("wheel",this.JSC$14812_onWheelScroll);g.removeEventListener("pointerdown",this.onPointerDown);g.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.P.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.xt(this,this.setStartIndex,[this.initialStartIndex])};
_.P.reposition_=function(){var g=_.FR("HTML_DIR")=="rtl"?"":"-",u=_.Tr(this.hostElement).querySelector("#items");u&&(u.style.transform="translateX("+g+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.P.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.xt(this,this.setButtonsState_))};
_.P.setButtonsState_=function(){this.setButtonsStateRequested=!1;var g=_.Tr(this.hostElement).querySelector("#items").firstElementChild;if(g){this.minComponentWidth||(this.minComponentWidth=pBZ(this,g));g=_.Tr(this.hostElement).querySelector("#scroll-container").clientWidth;var u=_.Tr(this.hostElement).querySelector("#items");u=_.w("kevlar_horizontal_list_scroll_width_killswitch")?u.clientWidth:u.scrollWidth;var q=this.get(this.ytLazyListBehavior.itemsPath,this);if(q){var Q=Math.round(g/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+Q,q.length)-1)}this.ytLazyListBehavior.canShowMore?u+this.minComponentWidth>=this.offset+g&&(this.atEnd=!1):this.atEnd=this.offset+g>=u-20?!0:!1;this.atStart=this.offset<=20}};
_.P.setStartIndex=function(g){if(!this.minComponentWidth){var u=_.Tr(this.hostElement).querySelector("#items").firstElementChild;if(!u)return;this.minComponentWidth=pBZ(this,u)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*g;Xq(this);this.reposition_()};
_.P.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.xx();var g=_.Tr(this.hostElement).querySelector("#scroll-container").clientWidth;_.w("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=pBZ(this,_.Tr(this.hostElement).querySelector("#items").firstElementChild));g=this.useFloorScrolling?Math.floor(g/this.minComponentWidth)||1:Math.round(g/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&JE2(this);this.offset+=DD5(this)?
N12(this):g*this.minComponentWidth;Xq(this);this.reposition_();this.scrollCount++};
_.P.prevClick_=function(){var g=_.Tr(this.hostElement).querySelector("#scroll-container").clientWidth;g=this.useFloorScrolling?Math.floor(g/this.minComponentWidth)||1:Math.round(g/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=DD5(this)?N12(this):this.minComponentWidth*this.scrollCount-1):this.offset-=DD5(this)?N12(this):g*this.minComponentWidth;this.centerListItems&&JE2(this);Xq(this);this.reposition_()};
_.P.onIronResize_=function(){this.resizeSupportEnabled&&_.xt(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.P.onItemsTransitionEnd_=function(g){_.bd(g)===_.Tr(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.P.onChildElementFocus_=function(g){g=g.target.closest("#items > *");var u=_.Tr(this.hostElement).querySelector("#scroll-container");if(u.contains(g)){if(_.w("web_horizontal_list_behavior_focus_killswitch"))if(g.offsetLeft<this.offset)this.offset=Math.abs(g.offsetLeft)<g.clientWidth?0:g.offsetLeft;else if(g.offsetLeft+g.clientWidth>this.offset+u.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.xx(),this.offset=g.offsetLeft+g.clientWidth-u.clientWidth;else return;else{var q=_.Tr(this.hostElement).querySelector("#items"),
Q=_.FR("HTML_DIR")==="rtl",L=Q?q.clientWidth-g.offsetLeft:g.offsetLeft;q=Q?q.clientWidth-(g.offsetLeft+g.clientWidth):g.offsetLeft+g.clientWidth;var E=Q?L>this.offset+u.clientWidth:L<this.offset,y=Q?q<this.offset:q>this.offset+u.clientWidth,v=Q?E:y;if(Q?y:E)u=Q?q:L,this.offset=Math.abs(u)<g.clientWidth?0:u;else if(v)this.ytLazyListBehavior.fillRemainingListItems(),_.xx(),this.offset=(Q?L:q)-u.clientWidth;else return}Xq(this);this.reposition_()}};
_.P.observeShownItems_=function(){this.reset()};
_.P.checkComponentWidthResize=function(){var g=_.Tr(this.hostElement).querySelector("#items").firstElementChild;g&&(g=pBZ(this,g),this.centerListItems||g!==this.minComponentWidth)&&(this.minComponentWidth=g,this.offset=g*this.scrollCount,this.centerListItems&&JE2(this),Xq(this),this.reposition_())};
var pBZ=function(g,u){var q=window.getComputedStyle(u).marginRight;q=Math.floor(Number(q.replace("px","")));var Q=window.getComputedStyle(u).marginLeft;Q=Math.floor(Number(Q.replace("px","")));g.centerListItems&&!g.marginWidthRight&&(g.marginWidthRight=q,g.marginWidthLeft=Q);return g.resizeSupportEnabled?u.getBoundingClientRect().width+q:u.offsetWidth+q},Xq=function(g){var u=_.Tr(g.hostElement).querySelector("#scroll-container").clientWidth,q=_.Tr(g.hostElement).querySelector("#items").clientWidth;
g.offset<0?g.offset=0:g.offset+u>=q&&(g.offset=q-u)},JE2=function(g){g.offset-=(_.Tr(g.hostElement).querySelector("#scroll-container").clientWidth+g.marginWidthRight-g.minComponentWidth)/2-g.marginWidthLeft};
_.z3.Object.defineProperties(ro.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var g=_.FR("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(g==-1)g=this.JSC$14812_cachedViewportHeight,g=g>1320?5:g>1020?4:g>730?3:g>430?2:1;else if(g==0)return 0;_.di("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",g-1);g=_.FR("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(g>-1)return g;g=this.cachedViewportWidth;g=g>1600?6:g>1400?5:g>1300?4:g>1090?5:g>870?4:g>660?3:2;_.di("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
g);return g},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.w("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
ro.prototype.observeShownItems_=ro.prototype.observeShownItems_;ro.prototype.onChildElementFocus_=ro.prototype.onChildElementFocus_;ro.prototype.onItemsTransitionEnd_=ro.prototype.onItemsTransitionEnd_;ro.prototype.onIronResize_=ro.prototype.onIronResize_;ro.prototype.prevClick_=ro.prototype.prevClick_;ro.prototype.nextClick_=ro.prototype.nextClick_;ro.prototype.setButtonsState_=ro.prototype.setButtonsState_;ro.prototype.requestButtonsStateUpdate_=ro.prototype.requestButtonsStateUpdate_;
ro.prototype.reposition_=ro.prototype.reposition_;ro.prototype.reset=ro.prototype.reset;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.a_.YtLazyListBehavior),_.K("design:type",Object)],ro.prototype,"ytLazyListBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ro.prototype,"atStart",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ro.prototype,"atEnd",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"startIndex",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"endIndex",void 0);_.Y([_.a({value:6}),_.K("design:type",Number)],ro.prototype,"initialCount",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"scrollCount",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"initialStartIndex",void 0);
_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"disableScrollEventListener",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"supportComponentResize",void 0);_.Y([_.a({value:function(){var g=this;return function(){return g.prevClick_()}}}),
_.K("design:type",Function)],ro.prototype,"boundPrevClick",void 0);_.Y([_.a({value:function(){var g=this;return function(){return g.nextClick_()}}}),
_.K("design:type",Function)],ro.prototype,"boundNextClick",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"useFloorScrolling",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"isSearch",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"dragging",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"dragMouseStart",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"dragOffsetStart",void 0);
_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"disableWheelScroll",void 0);_.Y([_.a(),_.K("design:type",Object)],ro.prototype,"centerListItems",void 0);_.Y([_.n6("iron-resize"),_.k_("guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ro.prototype,"onIronResize_",null);_.Y([_.n6("transitionend"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],ro.prototype,"onItemsTransitionEnd_",null);
_.Y([_.n6("focusin"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],ro.prototype,"onChildElementFocus_",null);_.Y([_.k_("shownItems"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ro.prototype,"observeShownItems_",null);_.Y([_.uU()],ro);_.VR.YtdHorizontalListBehavior=[];_.VR.YtdHorizontalListBehavior.push(_.LJ,_.n.YtRendererBehavior,_.a_.YtLazyListBehavior,_.$e.YtdGuideStateAwareBehavior,ro.prototype);var e3q=["APP_STATE","PI"];var W_,Tu=function(g){this.hostElement=g},hF=function(g,u){if(u&&(w33(u.viewableCommands)||w33(u.endOfSessionCommands))){var q=Hsf(u.viewableCommands);
u=Hsf(u.endOfSessionCommands);if(!W_){var Q=_.S8("custom_active_view_tos_timeout_ms");W_=Q>0&&Q!==36E5?new Blk(cY3(),Q):new Blk(cY3())}ngf(W_,g.hostElement);kqF(W_,g.hostElement,q,u)}},Ye=function(g){W_&&ngf(W_,g.hostElement)};var j8i=_.CT(["about:blank"]),fzR={pushState:window.history.pushState,replaceState:window.history.replaceState};var OM=function(g){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=g;this.internalPushState=g.pushState.bind(g);this.internalReplaceState=g.replaceState.bind(g)};
OM.prototype.init=function(){this.initialized=!0};
OM.prototype.pushState=function(g,u){this.initialized||this.init();this.internalPushState&&this.internalPushState(g,"",u)};
OM.prototype.replaceState=function(g,u){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(g,"",u)};
OM.prototype.getState=function(){return this.history&&this.history.state};var MAn=function(g){var u=function(){var q=g.apply(this,arguments)||this;q.boundHistoryPushState=!1;q.boundHistoryReplaceState=!1;q.debugInfo={};return q};
_.A(u,g);u.prototype.init=function(){var q=_.oG("IFRAME");_.Px(q,_.A1(j8i));q.sandbox="allow-same-origin";q.style.display="none";this.iframe=q;document.body.appendChild(q);this.bindHistoryStateFunctions();g.prototype.init.call(this)};
u.prototype.bindHistoryStateFunctions=function(){var q=this,Q=[],L;this.iframe&&((L=this.iframe.contentWindow)==null?0:L.history)&&(L=this.iframe.contentWindow.history)&&(Q.push(L),Object.getPrototypeOf(L)&&Q.push(Object.getPrototypeOf(L)));window.history&&Q.push(window.history);L=window.history;Object.getPrototypeOf(L)&&Q.push(Object.getPrototypeOf(L));Q.push(fzR);L=function(y){for(var v=null,J=0;J<Q.length;J++){var f=Q[J][y];if(typeof f==="function"){v=f.bind(window.history);q.debugInfo[y]=J;break}}return v};
if(!this.boundHistoryReplaceState){var E=L("replaceState");E&&(this.internalReplaceState=E,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(L=L("pushState"))&&(this.internalPushState=L,this.boundHistoryPushState=!0)};
return u}(OM),tAR=function(){return MAn.call(this,window.history)||this};
_.A(tAR,MAn);tAR.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var K1=function(g){this.browserHistory=g;this.initialized=!1};
K1.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
K1.prototype.pushState=function(g,u){this.initialized||this.init();this.browserHistory.pushState(g,u)};
K1.prototype.replaceState=function(g,u){this.initialized||this.init();this.browserHistory.replaceState(g,u)};
K1.prototype.handlePopstate=function(g){return g.state};_.erH=function(g,u,q,Q,L){this.endpoint=g;this.forward=u;this.historyEntry=q;this.JSC$31231_savedComponentState=Q;this.legacyBorder=L===void 0?!1:L};var GS0=function(g,u){this.rootData=g;this.scrollTop=u};_.xe=new _.Fv("EPHEMERAL_STORE_TOKEN");_.B_=function(g){this.data=Object.assign({},g);var u;(u=this.data.innertubeResponse)==null||delete u.frameworkUpdates};
_.B_.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.n0)()};
_.B_.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.Tx=function(g){return Object.assign({},g.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var $DH=function(){this.maxSize=100;this.timeToDataCache=new Map};
$DH.prototype.get=function(g){var u=this.timeToDataCache.get(g);u&&(this.timeToDataCache.delete(g),this.timeToDataCache.set(g,u));if(u&&u.rootData&&(_.w("web_use_response_store_for_history_cache")||_.w("mweb_use_new_history_manager"))){var q=_.Bk().resolve(_.xe),Q=Rrb(u),L=!!Q;if(Q){if(Q.content){var E=zu(q,Q.content);L&&E?u.rootData.response=_.Tx(E):L=!1}Q.player&&(E=zu(q,Q.player),L&&E?u.rootData.playerResponse=_.Tx(E):L=!1);Q.reelSequence&&(q=zu(q,Q.reelSequence),L&&q?u.rootData.reelWatchSequenceResponse=
_.Tx(q):L=!1)}L||(this.timeToDataCache.delete(g),u=void 0)}return u};
$DH.prototype.set=function(g,u){if(u.rootData&&(_.w("web_use_response_store_for_history_cache")||_.w("mweb_use_new_history_manager"))){var q=Rrb(u),Q=Object.assign({},u.rootData);q&&(q.content&&u.rootData.response&&(wBZ(this,q.content,u.rootData.response),Q.response=null),q.player&&u.rootData.playerResponse&&(wBZ(this,q.player,u.rootData.playerResponse),Q.playerResponse=null),q.reelSequence&&u.rootData.reelWatchSequenceResponse&&(wBZ(this,q.reelSequence,u.rootData.reelWatchSequenceResponse),Q.reelWatchSequenceResponse=
null));u=new GS0(Q,u.scrollTop)}this.timeToDataCache.has(g)?this.timeToDataCache.delete(g):this.timeToDataCache.size>=this.maxSize&&(q=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(q.value));this.maxSize!==0&&this.timeToDataCache.set(g,u)};
$DH.prototype.clear=function(){this.timeToDataCache.clear()};
var Rrb=function(g){var u=_.Bk().resolve(_.xv(_.vK)),q;if((q=g.rootData)==null?0:q.endpoint)return u==null?void 0:d3$(u,g.rootData.endpoint);var Q;_.Io(new _.Ji("History snapshot response data does not contain endpoint",(Q=g.rootData)==null?void 0:Q.url));return null},wBZ=function(g,u,q){if(g.maxSize>0){var Q;
(g=(Q=q.responseContext)==null?void 0:Q.maxAgeSeconds)&&Number(g)>0&&(Q=_.Bk().resolve(_.xe),q=Tc(q,g),Q.put(u,new _.B_(q)))}};var cEa=function(g,u,q){this.endpoint=u;this.JSC$31237_savedComponentState=q===void 0?null:q;this.entryTime=g};var Zsq=1;var n1=function(g){var u=function(){var q=g.apply(this,[].concat(_.na(_.UT.apply(0,arguments))))||this;q.historyEntryTime=0;q.historySnapshotCache=q.createHistoryCache();return q};
_.A(u,g);u.prototype.createHistoryCache=function(){return new $DH};
u.prototype.saveAndReplace=function(q,Q,L){var E=window.location.href;var y=y===void 0?{}:y;var v=(v=this.browserHistory.getState())&&v.entryTime?v.entryTime:luk();q=this.createNewHistoryEntry(q,y,v);this.saveSnapshot(v,Q,L);this.replaceState(q,E||window.location.href)};
u.prototype.saveAndPush=function(q,Q,L,E,y){y=y===void 0?{}:y;this.saveSnapshot(this.historyEntryTime,L,E);L=this.historySnapshotCache;E=this.historyEntryTime;var v=L.timeToDataCache.keys();v=_.N(v);for(var J=v.next();!J.done;J=v.next())J=J.value,J>E&&L.timeToDataCache.delete(J);Q=this.createNewHistoryEntry(Q,y);this.pushState(Q,q)};
u.prototype.saveSnapshot=function(q,Q,L){this.historySnapshotCache.set(q,new GS0(Q,L))};
u.prototype.createNewHistoryEntry=function(q,Q,L){L=L===void 0?luk():L;return new cEa(L,q,Q)};
u.prototype.handlePopstate=function(q){var Q=g.prototype.handlePopstate.call(this,q),L=null,E=null,y=!1,v=null;Q&&Q.entryTime&&(v=this.historySnapshotCache.get(Q.entryTime)||null,y=Q.entryTime>this.historyEntryTime,this.historyEntryTime=Q.entryTime,L=Q.endpoint,E=Q.JSC$31237_savedComponentState);this.handleHistoryCacheLoad(new _.erH(L,y,v,E),q);return Q};
u.prototype.pushState=function(q,Q){Number(q==null?void 0:q.entryTime)>=0&&(this.historyEntryTime=q.entryTime);g.prototype.pushState.call(this,q,Q)};
u.prototype.replaceState=function(q,Q){Number(q==null?void 0:q.entryTime)>=0&&(this.historyEntryTime=q.entryTime);g.prototype.replaceState.call(this,q,Q)};
u.prototype.handleHistoryCacheLoad=function(){};
return u}(K1),H4o=function(){var g=n1.call(this,new tAR)||this;
g.dispatchElement=null;g.entryIndex=0;return g};
_.A(H4o,n1);_.P=H4o.prototype;_.P.init=function(g){g=g===void 0?!0:g;n1.prototype.init.call(this);this.initialized||(g||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.P.handlePopstate=function(g){var u=null;g.state||(u="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return n1.prototype.handlePopstate.call(this,g);var q=new CustomEvent("yt-history-pop",{cancelable:!0});_.YJ(this.dispatchElement,"yt-history-pop",[q,{errorMsg:u}]);_.Og(this.dispatchElement,"yt-close-all-popups-action");if(!q.defaultPrevented){q=_.Bk().resolve(_.ba);u=q.getCurrentData();var Q=q.getCurrentPage();q=0;Q?(Q=_.YJ(this.dispatchElement,"yt-get-page-offset",
[Q]),Q.length>0&&(q=Q[0])):_.Io(new _.Ji("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:u?u.page:"undefined"}));u&&(u.csn=_.j_());this.saveSnapshot(this.historyEntryTime,u,q)}return n1.prototype.handlePopstate.call(this,g)};
_.P.handleHistoryCacheLoad=function(g,u){g.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.N(_.Og(this.dispatchElement,"yt-history-will-navigate",[u])).next().value||_.YJ(this.dispatchElement,"yt-history-load",[u,g]))};
_.P.pushState=function(g,u){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var q=new _.Ji("history.pushState is not a function",this.getDebugString());_.Zf(q)}n1.prototype.pushState.call(this,g,u)};
_.P.replaceState=function(g,u){if(!this.browserHistory.boundHistoryReplaceState){var q=new _.Ji("history.replaceState is not a function",this.getDebugString());_.Zf(q)}n1.prototype.replaceState.call(this,g,u)};
_.P.saveAndPush=function(g,u,q,Q,L){L=L===void 0?{}:L;q&&(q.csn=_.j_());n1.prototype.saveAndPush.call(this,g,u,q,Q,L)};
_.P.getDebugString=function(){var g=[];this.initialized&&g.push("i");this.browserHistory.boundHistoryReplaceState&&g.push("bhr");this.browserHistory.boundHistoryPushState&&g.push("bhs");"replaceState"in this.browserHistory.debugInfo&&g.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&g.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&g.push("ei:"+String(this.entryIndex));return g.join(",")};
_.ke=function(g,u){g.init(!0);var q=g.browserHistory.getState();g.replaceState(q,We(u))};
H4o.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.SB=new _.Fv("DESKTOP_HISTORY_MANAGER_TOKEN");var AEx=[10,20,30,40,50,60],o_=function(){this.currentPartitionIndex=0},Z4Z=function(g){qy$({mainAppWeb:_.Zq(),
survivalSli:{partitionMinute:g,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},lz2=function(g){qy$({mainAppWeb:_.Zq(),
survivalSli:{partitionMinute:g,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Iz2=function(g){return g.currentPartitionIndex>=0&&g.currentPartitionIndex<AEx.length?AEx[g.currentPartitionIndex]:-1},i4X=function(g){return g.currentPartitionIndex>0&&g.currentPartitionIndex-1<AEx.length?AEx[g.currentPartitionIndex-1]:-1};
o_.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var g=i4X(this);g>0&&lz2(g);g=Iz2(this);g>0&&Z4Z(g);CeX(this)}};
var CeX=function(g){var u=Iz2(g);if(u>0){var q=i4X(g);q<0&&(q=0);g.intervalId=_.Hv.addJob(function(){var Q=i4X(g);Q>0&&lz2(Q);Q=Iz2(g);Q>0&&Z4Z(Q);CeX(g)},3,(u-q)*6E4);
g.currentPartitionIndex+=1}else g.currentPartitionIndex=-1};var b4o=function(g){sA.call(this,g,132);this.isDocument=g===document.documentElement};
_.A(b4o,sA);b4o.prototype.calculateScrollDelta=function(g,u,q){var Q=0;g<u?Q=g<u-100?-48:-8:g>u+q&&(Q=g>u+q+100?48:8);return Q};
b4o.prototype.JSC$11705_onMouseMove=function(g){this.isDocument||(g.clientX=g.event_.pageX,g.clientY=g.event_.pageY);sA.prototype.JSC$11705_onMouseMove.call(this,g)};_.dD2=function(g,u){var q=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14866_dragListGroup=null;this.onDraggerCreated=function(Q){var L=Q.JSC$11701_dragger;L.scrollTarget_=q.scrollElement;Q=Q.draggerEl;L&&Q.menuOpened&&L.setEnabled(!1)};
this.onDragStart=function(Q){var L=Q.draggerEl;Q=Q.currDragItem;var E=Object.assign({},Q==null?void 0:Q.data);E.trackingParams=void 0;L.data=E;L.style.position="absolute";L.style.width=(Q==null?void 0:Q.clientWidth)+"px";L.style.zIndex="2030";L.onDrag&&L.onDrag();Q=_.fH(L);(E=Q.querySelector("ytd-app"))?_.Tr(E).appendChild(L):Q.body.appendChild(L);q.dragScrollSupport=new b4o(q.scrollElement);q.dragScrollSupport.horizontalScrolling_=!1;L=q.dragScrollSupport;L.constrainScroll_=!!L.margin_&&!1};
this.onDrop=function(Q){q.handleDrop(Q);q.dragScrollSupport&&(_.Fo(q.dragScrollSupport),q.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(q.JSC$14866_dragListGroup){var Q=q.JSC$14866_dragListGroup;Q92(Q,Q.currDragItem_)}};
this.handleDrop=u};
_.UM=function(g){g.JSC$14866_dragListGroup&&(_.DB(g.JSC$14866_dragListGroup,zE2,g.onDragStart),_.DB(g.JSC$14866_dragListGroup,oH5,g.onDragStart),g.JSC$14866_dragListGroup.dispose(),g.JSC$14866_dragListGroup=null);g.dragScrollSupport&&(_.Fo(g.dragScrollSupport),g.dragScrollSupport=null);g.scrollElement.removeEventListener("scroll",g.onReorderableScroll)};
_.FOo=function(g,u,q,Q){Q=Q===void 0?"":Q;_.UM(g);q&&(g.scrollElement=q);g.JSC$14866_dragListGroup=new Jm;g.JSC$14866_dragListGroup.hysteresisDistance_=2;gq5(g.JSC$14866_dragListGroup,u);g.JSC$14866_dragListGroup.draggerElClasses_=jK("dragging").split(" ");Q&&u0o(g.JSC$14866_dragListGroup,function(L){var E=L||document,y=null;E.getElementsByClassName?y=E.getElementsByClassName(Q)[0]:y=ck$("*",Q,L);return y||L});
_.Z1(g.JSC$14866_dragListGroup,xY2,g.onDraggerCreated);_.Z1(g.JSC$14866_dragListGroup,zE2,g.onDragStart);_.Z1(g.JSC$14866_dragListGroup,oH5,g.onDrop);g.JSC$14866_dragListGroup.init();g.scrollElement.addEventListener("scroll",g.onReorderableScroll,{passive:!0})};
_.z3.Object.defineProperties(_.dD2.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var mDW=function(){this.skipNextNavigation=!1},azR=function(g,u,q){if(!u)return!1;
if(g.skipNextNavigation)return g.skipNextNavigation=!1;if(_.c(q,_.ao))return!1;var Q,L,E;if((Q=_.c(q,_.kZ))==null?0:(L=Q.browseEndpointContextSupportedConfigs)==null?0:(E=L.browseEndpointContextMainConfig)==null?0:E.skipConfirmation)return!1;var y;return((y=_.c(u.commandMetadata,_.S_))==null?void 0:y.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
mDW.prototype.showConfirmationDialog=function(g,u){this.navigateParams=u;this.customConfirmationCommand?_.Bk().resolve(_.Gy).resolveCommand(this.customConfirmationCommand):(u={openPopupAction:{popup:{confirmDialogRenderer:{title:_.I7(_.Ug("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.I7(_.Ug("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.I7(_.Ug("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.I7(_.Ug("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.VC.getInstance().triggerAction("yt-open-popup-action",u,g))};
mDW.prototype.cancelPendingNavigation=function(){var g;((g=this.navigateParams)==null?void 0:g.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var VA8=function(){},rE8=function(g,u,q,Q,L,E,y){q=q===void 0?{}:q;
y=y===void 0?{}:y;var v=_.Bk().resolve(_.vK),J,f=(J=_.c(u,_.ao))==null?void 0:J.url;return f?Gmq(v,f,q,window.location.href,function(t,e){XB0(g,t,e,!1,!0,q,E,Q)},function(){return!1}):HK(v,u,q,window.location.href,o7(u),function(t,e){XB0(g,t,e,!1,!0,q,E,Q)},L,y)},XB0=function(g,u,q,Q,L,E,y,v){if(!g.JSC$14881_chunkHandler)if(q.page==="learning_journey_watch"&&_.w("web_enable_canvas_on_learning_journey")){var J=!_.c(v,_.kZ);
L=L||Q;if(J)if(L){if(_.w("kevlar_continue_playback_without_player_response")){var f;var t=(f=_.c(v,_.l1))==null?void 0:f.videoId}Q={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Q,previousVideoId:t},tempData:E}}else Q={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else Q={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};g.JSC$14881_chunkHandler=new A8X(_.F0,Q,y,J,L)}else if(q.page==="watch"||q.page==="learning_journey_watch")if(L||Q){if(_.w("kevlar_continue_playback_without_player_response")){var e;
J=(e=_.c(v,_.l1))==null?void 0:e.videoId}g.JSC$14881_chunkHandler=new Idi(_.F0,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Q,previousVideoId:J},tempData:E},y)}else g.JSC$14881_chunkHandler=new c88(_.F0);else q.page==="shorts"&&L&&!Q?g.JSC$14881_chunkHandler=new ld2(_.F0,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:E},y):g.JSC$14881_chunkHandler=new HXi(y);g.JSC$14881_chunkHandler.processChunk({endpoint:u,data:q});return g.JSC$14881_chunkHandler.xV.promise},
WOn=function(g,u,q,Q,L){(q=_.YWR(q))&&XB0(g,u,q,!1,!0,Q,void 0,L)};_.T15=new _.Fv("NAVIGATION_SERVICE_TOKEN");var hri=function(){this.pendingNavigationPromise=null};
_.P=hri.prototype;_.P.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.P.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.P.addEventListener=function(){throw Error("Ah");};
_.P.dispatchEvent=function(){throw Error("Ah");};
_.P.removeEventListener=function(){throw Error("Ah");};var Y4R=new _.Fv("APP_ROOT");var isS=null;var O4R=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],gZ=function(){_.A5.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];KO5(this)};
_.A(gZ,_.A5);gZ.prototype.verifyUser=function(){var g=KO5(this),u=g.logout;if(!g.sessionChange)return!0;this.dispatchEvent("ytsessionchange");u&&this.dispatchEvent("ytuserinvalid");return!1};
var KO5=function(g){var u=O4R.map(function(L){var E;return(E=_.sk.get(L))!=null?E:""}),q=u.some(function(L,E){return g.sessionCookies&&g.sessionCookies[E]!==""&&L===""}),Q=u.some(function(L,E){return g.sessionCookies&&g.sessionCookies[E]!==L});
g.sessionCookies=u;return{logout:q,sessionChange:Q}};
gZ.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Hv.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var auK=new _.Fv("POSTMESSAGE_TUNNEL_TOKEN");var dnJ=["/parent_tools","/file_download","/artist_roster"],rYq=[P70,Njo,sW2,vBi,y1W,EBR,DSx,pqo];var uq=new _.Fv("NAVIGATION_CONFIRMATION_SERVICE");var xD5="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),B1i=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],qp=function(g,u){this.pendingNavigationPromise=null;this.JSC$14904_clientRoot=g;this.historyManager=u;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 VA8;this.debugString=g.is;g={"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};_.XU(_.VC.getInstance(),g,this.JSC$14904_clientRoot)},o8Z,UDi,g5W,uQW,S4R;
_.A(qp,hri);qp.prototype.reload=function(){_.Gr(window.location.href)};
var xNo=function(g){g.currentEndpoint&&_.c(g.currentEndpoint,_.g$)?g.reload():g.currentEndpoint&&g.navigate(g.currentEndpoint,!0,void 0,{disableCache:!0})};
qp.prototype.navigate=function(g,u,q,Q,L,E,y,v){u=u===void 0?!1:u;q=q===void 0?{}:q;Q=Q===void 0?{}:Q;var J=_.Bk().resolve(uq),f;if(!y&&azR(J,(f=this.currentEndpoint)!=null?f:void 0,g))return J.showConfirmationDialog(this.JSC$14904_clientRoot.parentElement,{endpoint:g,reload:u,params:q,tempData:Q,requestType:L,createScreenConfig:E}),!1;var t=_.A4();_.ZV(t,"eocs")||t.parkOrScheduleJob(function(){t.processSignal("eocs")},10,"eor");
CNh();y=o7(g);J=Q.autonav==="1";f=_.j_();gZ.instance||(gZ.instance=new gZ);var e=gZ.instance.verifyUser(),G;if(_.w("enable_dark_theme_only_on_shorts")){var R=document.documentElement.hasAttribute("dark"),H=_.RE(!0)==="USER_INTERFACE_THEME_DARK";if(y==="shorts"){if(!R)if(_.w("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var l;_.Gr((l=_.c(g==null?void 0:g.commandMetadata,_.S_))==null?void 0:l.url,void 0,void 0,window.top)}}else{var d;_.Gr(_.O_((d=_.c(g==
null?void 0:g.commandMetadata,_.S_))==null?void 0:d.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.w("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!R){var F;_.Gr(_.O_((F=_.c(g==null?void 0:g.commandMetadata,_.S_))==null?void 0:F.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(H!==R){var V;_.Gr(_.O_((V=_.c(g==null?void 0:g.commandMetadata,_.S_))==null?void 0:V.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(y==="watch"){if(zrW(_.Bk().resolve(_.RO),
g)&&(e||_.w("fix_miniplayer_navigation_killswitch")))return!1;_.w("block_all_player_prefetch_requests")||(G=OXi(_.r_(_.Bd),g,J))}else{var z,O=(z=_.c(this.currentEndpoint,_.l1))==null?void 0:z.videoId;O&&_.yN.getInstance().then(function(mJ){mJ&&mJ.set("yt-miniplayer-shown-video-id",O)})}G&&(q.frags=G.missingFragments_.join(","));
l=null;var W;d=(W=_.c(g==null?void 0:g.commandMetadata,_.S_))==null?void 0:W.ignoreNavigation;if(!d)if(_.w("kevlar_command_url")){var x;l=(x=_.c(g==null?void 0:g.commandMetadata,_.S_))==null?void 0:x.url}else l=_.Hnq(g,q);if(l&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&l==this.lastNavigationUrl)return _.pW({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.o1($J(),"CANCELLED")}l&&(this.lastNavigationUrl=l);rVb();_.di("IS_HOMEPAGE_COLD",
!1);_.di("IS_RESULTS_PAGE_COLD",!1);_.di("IS_WATCH_PAGE_COLD",!1);g.loggingUrls&&g.loggingUrls.forEach(function(mJ){mJ.baseUrl&&_.VI(mJ.baseUrl)});
_.YVJ(g,E?E.layer:0)&&_.w("kevlar_flush_logs_on_away_navigation")&&_.A_();if(Wof(g))return!1;Hi0(y,L);if(!l)return d||_.Io(new _.Ji("Can't construct url for endpoint",g)),_.o1($J(),"FAILURE"),!1;_.bsZ();W=g&&_.c(g,_.kZ)&&_.c(g,_.kZ).browseId.startsWith("UC");q=(x=_.w("enable_dark_theme_only_on_shorts")&&y==="shorts"?!1:_.w$()&&document.documentElement.hasAttribute("dark")!==_.$_())?{themeRefresh:1}:{};x&&!_.vW()&&_.RE()==="USER_INTERFACE_THEME_DARK"&&(q.theme="dark");W=x||n8i(l)&&!W&&!_.w("kevlar_disable_url_allowlist");
e||(W=!0);if(W||_.FR("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var k;var LZ=(k=window.top)==null?void 0:k.location.href}catch(mJ){var sb;LZ=(sb=mJ)==null?void 0:sb.message}_.Io(new _.Ji("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:LZ}))}g=_.w("kevlar_redirect_on_window_killswitch")?window.top:window;eh(l);_.Gr(_.O_(l,q),void 0,void 0,g);_.o1($J(),"ABORTED");return!1}_.w("kevlar_early_popup_close")&&_.YJ(this.JSC$14904_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14881_chunkHandler=void 0;var Rm;LZ=o7((Rm=this.currentEndpoint)!=null?Rm:void 0);(Rm=y==="shorts"&&LZ==="shorts")||_.OIq();_.V1(dGZ)("nr",void 0);J&&_.pW({webInfo:{navigationReason:"an"}});g.clickTrackingParams&&(Q.itct=g.clickTrackingParams,Q.csn=f);FSu(Q);Q.endpoint=JSON.stringify(g);_.w("enable_unknown_lact_fix_on_html5")&&(_.Bk().resolve(_.UE),Q.lact=_.nB());_.pH.isEmpty(Q)||_.CV(l,Q);!_.w("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(E=Object.assign({},{layer:0},E,{parentLayer:3}));this.pendingNavigationPromise=E=rE8(this.pageFetcher,g,Q,this.currentEndpoint,this.JSC$14904_isNetworkPromiseStale.bind(this),E,v);E=E.then(this.handleNavigateSuccess.bind(this,E,g,G,Q),this.handleNavigateFail.bind(this,E,g));_.Uw().navigationFinishPromise=E;u={endpoint:g,pageType:y,url:We(l),reload:!!u,noProgressBar:Rm};L&&(u.type=L);var M3;L=_.nU((M3=this.currentEndpoint)!=null?M3:null);M3=_.nU(g!=null?g:null);this.fireEvent("yt-navigate-start",
u);var tT;(tT=_.Bk().resolve(_.xv(_.T15)))==null||tT.publish("navigation-start",{sourcePageSubtype:L,destinationPageSubtype:M3});G&&WOn(this.pageFetcher,g,G,Q,this.currentEndpoint);return!0};
qp.prototype.JSC$14904_isNetworkPromiseStale=function(g){return g!=this.pendingNavigationPromise};
var kS$=function(g,u,q,Q,L){var E=o7(u);u={endpoint:u,pageType:E};L&&(u.errorMessage=L);_.Io(q);u.navigationDoneMs=_.fW("nd");u.navigationErrorReason=Q;g.fireEvent("yt-navigate-error",u)};
qp.prototype.handleNavigateFail=function(g,u,q){var Q=void 0;q instanceof _.Gx&&(Q=q,wYS(q));if(this.JSC$14904_isNetworkPromiseStale(g))return _.NY(Q);_.o1($J(),"FAILURE");kS$(this,u,q,"101");return _.NY(q)};
qp.prototype.handleNavigateSuccess=function(g,u,q,Q,L){if(this.JSC$14904_isNetworkPromiseStale(g))return _.BX();this.pendingNavigationPromise=null;if(!L)return u=new _.Ji("Missing data in response for navigation endpoint",u),_.NY(u);if(L.reload)return window.location.reload(!0),_.BX();q&&(g={},_.pH.extend(g,_.YWR(q),L),L=g);var E,y;q=(E=L)==null?void 0:(y=E.timing)==null?void 0:y.responseStart;q!=null&&_.fW("srt",q);_.fW("pdc");var v,J;E=(v=L)==null?void 0:(J=v.timing)==null?void 0:J.info;E!=null&&
(v=_.V1(_.aVF)(E),_.pW(v));_.o1($J(),"SUCCESS");S4R(this,u,L,1,Q);return _.BX()};
var n8i=function(g){var u=g;_.w("kevlar_no_redirect_to_classic_2_ks")||(u=(new _.Ir(g)).getPath());if(u==="/"||u==="/red")return!1;var q=!0;xD5.forEach(function(Q){g.indexOf(Q)===0&&(q=!1)});
B1i.forEach(function(Q){var L=Q.url;_.w(Q.expFlag)&&g.indexOf(L)===0&&(q=!1)});
return q};
qp.prototype.publishPageData=function(g){this.fireEvent("yt-page-data-fetched",{pageData:g})};
o8Z=function(g,u,q,Q,L,E){var y=null;u.page!=="watch"&&u.page!=="learning_journey_watch"||Q?u.filler||_.YJ(g.JSC$14904_clientRoot,"yt-stop-old-player",[u]):y=XB0(g.pageFetcher,L,u,q,!1,E,void 0,g.currentEndpoint);if(y)return y.then(g.publishPageData.bind(g,u));g.publishPageData(u);return _.BX()};
UDi=function(g,u,q){var Q=null;if(!q)return Q=new _.Ji("Empty data",g.debugString,u);var L=q.response;if(!L)return Q;var E={endpointType:o7(u)||"unknown"};L.responseContext?(L=L.responseContext.errors)&&(Q=new _.Ji("Errors in response context",g.debugString,u,L,E)):Q=L.error||L.errorMetadata?new _.Ji("Errors in response",g.debugString,u,L.error,L.errorMetadata,E):new _.Ji("responseContext missing",g.debugString,u,Object.keys(L).sort().join(","),E);var y,v,J,f;if(g=q==null?void 0:(y=q.response)==null?
void 0:(v=y.responseContext)==null?void 0:(J=v.webResponseContextExtensionData)==null?void 0:(f=J.webResponseContextDebugData)==null?void 0:f.debugErrorMessages)for(y=0;y<g.length;y++);return Q};
g5W=function(g){var u,q,Q,L;return g==null?void 0:(u=g.response)==null?void 0:(q=u.responseContext)==null?void 0:(Q=q.errors)==null?void 0:(L=Q.error)==null?void 0:L["0"]};
uQW=function(g,u){var q;if(q=u.url&&!u.url.startsWith("/clip"))q=u.url,q=!_.w("webfe_parse_debug_param_in_resolveurl_service")&&g.searchDebugUrlMatcher.test(q)||mfJ(q)?!0:!1;if(q)mfJ(u.url)&&_.Yv(window.location.href).themeRefresh?(u=_.g6(u.url,"themeRefresh"),_.ke(g.historyManager,u)):u.url&&!AYh(u.url)&&_.ke(g.historyManager,u.url);else if(u.endpoint){var Q,L,E;(q=(Q=u.endpoint)==null?void 0:(L=Q.commandMetadata)==null?void 0:(E=L.webCommandMetadata)==null?void 0:E.url)&&!AYh(q)&&_.ke(g.historyManager,
q);q&&u.url&&q!=u.url&&!u.url.match("playnext=1")&&new _.Ji("Response url mismatch in response data",g.debugString,q,u.url)}};
_.qK0=function(g,u,q,Q,L,E,y,v){E=E===void 0?!1:E;var J=_.Bk().resolve(uq),f;if(!v&&azR(J,(f=g.currentEndpoint)!=null?f:void 0,u))return J.showConfirmationDialog(g.JSC$14904_clientRoot.parentElement,{endpoint:u,data:q,navigationType:Q,tempData:L,isMiniplayer:E,isForwardHistoryNavigation:y==null?void 0:y.forward}),_.BX();g.pageFetcher.JSC$14881_chunkHandler=void 0;return S4R(g,u,q,Q,L,E)};
S4R=function(g,u,q,Q,L,E){E=E===void 0?!1:E;g.isMiniplayerExpansion=E;var y=Q===2;g.currentEndpoint=u;g.numNavigations++;g.numNavigations&&(R_F.navigationCount=g.numNavigations);_.di("NUM_NAV",g.numNavigations);var v=UDi(g,u,q);if(v)return kS$(g,u,v,"102",g5W(q)),_.NY(v);var J,f,t,e;v=q.rootVe||(q==null?void 0:(J=q.response)==null?void 0:(f=J.responseContext)==null?void 0:(t=f.webResponseContextExtensionData)==null?void 0:(e=t.ytConfigData)==null?void 0:e.rootVisualElementType);!y&&q&&uQW(g,q);var G,
R;J=q==null?void 0:(G=q.response)==null?void 0:(R=G.responseContext)==null?void 0:R.maxAgeSeconds;if(!y&&!isNaN(J)){var H;_.w("kevlar_use_response_ttl_to_invalidate_cache")?H=(0,_.n0)()+1E3*J:_.w("kevlar_always_invalidate_cache")&&(H=0);isNaN(H)||(q.expirationTime=H)}_.r_(_.Bd).prefetchCache_.clear();y||q.page!=="watch"||Q!==1?Q=o8Z(g,q,y,!!E,u,L):(g.publishPageData(q),Q=_.BX());L=Q.then(function(){var l=o7(u);l={endpoint:u,pageType:l,fromHistory:y,response:q};l.navigationDoneMs=_.fW("nd");g.fireEvent("yt-navigate-finish",
l);var d;(d=_.Bk().resolve(_.xv(_.T15)))==null||d.publish("navigation-end")});
q.csn&&v&&q.clientSideGrafts&&Q.then(g.attachClientSideGrafts.bind(g,q,_.JJ()));return L};
_.P=qp.prototype;_.P.attachClientSideGrafts=function(g,u){g.clientSideGrafts&&u&&g.clientSideGrafts.forEach(function(q){if(u&&q){var Q=_.Lr(q);_.w("combine_ve_grafts")?_.gL().graftServerVe(q,u):_.cC(g.csn,u,Q)}})};
_.P.handleSignalActionHistoryBack=function(){window.history.back()};
_.P.handleSignalActionCloseWindow=function(){window.close()};
_.P.handleSignalActionReloadPage=function(){this.reload()};
_.P.handleSignalActionSoftReloadPage=function(){xNo(this)};
_.P.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.P.fireEvent=function(g,u){g=new CustomEvent(g,{bubbles:!0,cancelable:!1,composed:!0,detail:u});this.dispatchEvent(g)};
_.P.addEventListener=function(g,u){this.JSC$14904_clientRoot.addEventListener(g,u)};
_.P.dispatchEvent=function(g){return this.JSC$14904_clientRoot.dispatchEvent(g)};
_.P.removeEventListener=function(g,u){this.JSC$14904_clientRoot.removeEventListener(g,u)};
qp[zv]=[Y4R,_.SB];var Qex;var Lho=function(){return _.X.apply(this,arguments)||this};
_.A(Lho,_.X);_.z3.Object.defineProperties(Lho,{template:{configurable:!0,enumerable:!0,get:function(){if(Qex===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);Qex=g}g=Qex;return g}}});
_.Y([_.I(LOX.YtPlayerBehavior),_.K("design:type",Object)],Lho.prototype,"ytPlayerBehavior",void 0);_.Y([_.fE({is:"ytd-player"})],Lho);var E5X;var P4n;var N3R;var QH=function(){var g=_.X.apply(this,arguments)||this;g.forceModernIconButton=!1;g.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return g};
_.A(QH,_.X);QH.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]]"}}}}}};
QH.prototype.handleAccountLinkingStateChangedCommand=function(g){if(g=_.c(g,iJR)){var u,q=(u=this.data)==null?void 0:u.providerKey;u=g.providerKey;q&&u&&q.id===u.id&&q.subject===u.subject&&(g=g.linked,g!==void 0&&(this.set("data.linked",g),this.notifyPath("data.linked"),_.w("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(g)))}};
QH.prototype.setPlayerAccountLinkState=function(g){var u=new x4$;BSH(u,OqZ(new Ywx,g));var q=_.F0();q&&q.getPlayerPromise().then(function(Q){Q.setAccountLinkState(_.om(u.JSC$12632_serializeBinary(),4));Q.updateAccountLinkingConfig(g)})};
QH.prototype.handleShowAccountLinkDialog=function(){var g=this.get("button.buttonRenderer.command");g&&_.nV([g],this.hostElement)};
_.z3.Object.defineProperties(QH.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}}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.Y([_.I([_.xK.YtActionHandlerBehavior]),_.K("design:type",Object)],QH.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],QH.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],QH.prototype,"overrides",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],QH.prototype,"forceModernIconButton",void 0);_.Y([_.a({value:"bottom"}),_.K("design:type",String)],QH.prototype,"buttonTooltipPosition",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],QH.prototype,"forceIconButton",void 0);_.Y([_.a(),_.K("design:type",Boolean)],QH.prototype,"disableTextTransform",void 0);
_.Y([_.C("data","data.linked","data.isWarning"),_.K("design:type",Object),_.K("design:paramtypes",[])],QH.prototype,"button",null);_.Y([_.fE({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],QH);
_.T(QH,"ytd-account-link-button-renderer",function(){if(N3R!==void 0)return N3R;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return N3R=g},{mode:1});var seH;var yd2=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Ll=function(){return _.X.apply(this,arguments)||this};
_.A(Ll,_.X);Ll.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Ll.prototype.updateButtonActiveState=function(){var g=this,u=!!yd2.find(function(q){return g.currentState===q});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.w("enable_web_delhi_icons")&&(u=!1);this.button&&(this.button.isPressed=u)};
_.z3.Object.defineProperties(Ll.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.playlistLoopStateEntity)==null?void 0:g.state)||((u=this.data)==null?void 0:u.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var g=void 0,u;if(this.currentState&&((u=this.data)==null?0:u.states)){u=_.N(this.data.states);for(var q=u.next();!q.done;q=u.next()){q=_.c(q.value,_.xI5);var Q=void 0;if(((Q=q)==null?void 0:Q.state)===this.currentState){g=q;break}}}return g}}});
Ll.prototype.updateButtonActiveState=Ll.prototype.updateButtonActiveState;_.Y([_.I(_.jB),_.K("design:type",Object)],Ll.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.LF.playlistLoopStateEntitySelector}),_.K("design:type",Object)],Ll.prototype,"playlistLoopStateEntity",void 0);_.Y([_.a(),_.K("design:type",Object)],Ll.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Ll.prototype,"forceIconOnly",void 0);_.Y([_.oE("ytd-button-renderer"),_.K("design:type",_.m4)],Ll.prototype,"button",void 0);
_.Y([_.C("data","playlistLoopStateEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ll.prototype,"currentState",null);_.Y([_.k_("currentButtonStateRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ll.prototype,"updateButtonActiveState",null);_.Y([_.C("currentState"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ll.prototype,"currentButtonStateRenderer",null);
_.Y([_.fE({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Ll);
_.T(Ll,"ytd-playlist-loop-button-renderer",function(){if(seH!==void 0)return seH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return seH=g},
{mode:1});var v5x;var DOx=_.Ug("DOWNLOAD",{},"Download"),pGH=_.Ug("DOWNLOADING",{},"Downloading"),Jd2=_.Ug("DOWNLOADED",{},"Downloaded"),jeZ=_.Ug("RETRY",{},"Retry"),EC=function(){var g=_.X.apply(this,arguments)||this;g.forceIconButton=!1;g.forceIconOnly=!1;g.overrides=!1;g.buttonTooltipPosition=!1;g.styleActionButton=!1;g.disableTextTransform=!1;g.downloadProgress=0;g.isDownloadComplete=!1;g.isHidden=!0;g.transferState="TRANSFER_STATE_UNKNOWN";g.isVideoDeletedByUser=!1;g.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return g};
_.A(EC,_.X);_.P=EC.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var g;(g=this.data)!=null&&g.text||(g=_.tD(_.bR().getState(),this.videoId),this.updateButtonState(g))};
_.P.computeVideoId=function(g){return g};
_.P.computePlayerStateEntityKey=function(g){return g};
_.P.showHideButton=function(){this.updateButtonVisibility()};
_.P.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var g;((g=this.playerStateEntity)==null?void 0:g.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};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(g){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==pGH||!_.qZ(g))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(g){case "TRANSFER_STATE_UNKNOWN":g=DOx;var u="OFFLINE_DOWNLOAD";var q="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":g=jeZ;u="OFFLINE_DOWNLOAD";q="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":g=Jd2;u="OFFLINE_PIN";q="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":g=
pGH;u="OFFLINE_DOWNLOADING_ZERO";q="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":g=jeZ;u="OFFLINE_DOWNLOAD";q="ACTION_RETRY";break;default:g=DOx,u="OFFLINE_DOWNLOAD",q="ACTION_ADD"}this.isVideoDeletedByUser&&(g=DOx,u="OFFLINE_DOWNLOAD",q="ACTION_ADD");var Q=Object.assign({},this.data);Q.text=_.I7(g);Q.tooltip=g;Q.icon={iconType:u};Q.size="SIZE_DEFAULT";Q.style="STYLE_DEFAULT";_.c(Q.command,_.zc)&&(_.c(Q.command,_.zc).action=q);this.set("data",Q)}};
_.P.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var g="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?g="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?g="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?g="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?g="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?g="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(g="OFFLINE_PIN",this.isDownloadComplete=!0);var u;g!==((u=this.data.icon)==null?void 0:u.iconType)&&(u=Object.assign({},this.data),u.text=_.I7(pGH),u.tooltip=pGH,u.icon={iconType:g},_.c(u.command,_.zc)&&(_.c(u.command,_.zc).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",u))}};
EC.prototype.updateProgress=EC.prototype.updateProgress;EC.prototype.onTransferStateChanged=EC.prototype.onTransferStateChanged;EC.prototype.showHideButton=EC.prototype.showHideButton;EC.prototype.dataChanged=EC.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],EC.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],EC.prototype,"forceIconButton",void 0);
_.Y([_.a(),_.K("design:type",Object)],EC.prototype,"forceIconOnly",void 0);_.Y([_.a(),_.K("design:type",Object)],EC.prototype,"overrides",void 0);_.Y([_.a(),_.K("design:type",Object)],EC.prototype,"buttonTooltipPosition",void 0);_.Y([_.a(),_.K("design:type",Object)],EC.prototype,"styleActionButton",void 0);_.Y([_.a(),_.K("design:type",Object)],EC.prototype,"disableTextTransform",void 0);
_.Y([_.a({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.K("design:type",String)],EC.prototype,"videoId",void 0);_.Y([_.a({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.K("design:type",String)],EC.prototype,"playerStateEntityKey",void 0);_.Y([_.a(),_.K("design:type",Object)],EC.prototype,"data",void 0);_.Y([_.a({selector:GN,selectorArgs:["videoId"]}),_.K("design:type",Object)],EC.prototype,"downloadProgress",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],EC.prototype,"isDownloadComplete",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],EC.prototype,"isHidden",void 0);_.Y([_.a({selector:_.tD,selectorArgs:["videoId"]}),_.K("design:type",String)],EC.prototype,"transferState",void 0);_.Y([_.a({selector:_.ToT,selectorArgs:["videoId"]}),_.K("design:type",Object)],EC.prototype,"isVideoDeletedByUser",void 0);
_.Y([_.a({selector:m5q,selectorArgs:["videoId"]}),_.K("design:type",Object)],EC.prototype,"offlineabilityState",void 0);_.Y([_.a({selector:_.ho,selectorArgs:["playerStateEntityKey"]}),_.K("design:type",Object)],EC.prototype,"playerStateEntity",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],EC.prototype,"showTooltips",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],EC.prototype,"sendCommandWhenDisabled",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],EC.prototype,"disabled",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EC.prototype,"dataChanged",null);_.Y([_.qm("offlineabilityState","playerStateEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EC.prototype,"showHideButton",null);
_.Y([_.qm("transferState","isVideoDeletedByUser"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EC.prototype,"onTransferStateChanged",null);_.Y([_.qm("downloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EC.prototype,"updateProgress",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],EC);
_.T(EC,"ytd-download-button-renderer",function(){if(v5x!==void 0)return v5x;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return v5x=g},{mode:2});var f2$;var MlW,tlH=function(){if(MlW!==void 0)return MlW;var g=document.createElement("template");_.Z(g,'\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 MlW=g};var ec$=_.w("web_button_rework")&&_.mW("BUTTON_REWORK")||_.w("web_button_rework_with_live"),Gtx=_.S8("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Py=function(){var g=_.X.apply(this,arguments)||this;g.isPressed=!1;g.forceIconButton=!1;g.forceIconOnly=!1;g.forceModernIconButton=!1;g.alignByText=!1;g.isShorts=!1;g.animatedText=!1;g.shouldAnimate=!1;g.JSC$14942_browserSupportsAnimation=_.w("web_supports_animations_api");g.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};g.onTap=function(){var u;if((u=g.data)==null||!u.defaultNavigationEndpoint){var q;u=!((q=g.data)==null?0:q.isToggled);var Q;if((Q=g.data)==null||!Q.preventAutoToggle){g.shouldAnimate=!1;g.disableTextUpdateJobId&&_.Hv.cancelJob(g.disableTextUpdateJobId);g.disableTextUpdateJobId=_.Hv.addLowPriorityJob(function(){g.disableTextUpdateJobId=void 0},Gtx);
var L;g.set("data.isToggled",!((L=g.data)==null?0:L.isToggled));q=g.getInnertubeIcon();Q={toggled:u,actions:{}};q&&(Q.actions[q.toLowerCase()]=u);_.hJ(g.hostElement,"yt-toggle-button",Q)}}};
return g};
_.A(Py,_.X);_.P=Py.prototype;_.P.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Hv.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.toggle=function(g){var u;this.set("data.isToggled",g!==void 0?g:!((u=this.data)==null?0:u.isToggled))};
_.P.handleUpdateToggleButtonStateCommand=function(g){if(this.data){g=_.c(g,Ve0);var u,q,Q,L=(u=this.data)==null?void 0:(q=u.toggleButtonSupportedData)==null?void 0:(Q=q.toggleButtonIdData)==null?void 0:Q.id;L&&g&&L===(g==null?void 0:g.buttonId)&&this.set("data.isToggled",g.toggled)}};
_.P.handleUpdateToggleButtonTextAction=function(g){if(this.data){g=_.c(g,PqW);var u,q,Q,L=(u=this.data)==null?void 0:(q=u.toggleButtonSupportedData)==null?void 0:(Q=q.toggleButtonIdData)==null?void 0:Q.id;L&&g&&L===(g==null?void 0:g.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=g.defaultNumericalValue,this.set("data.defaultText",g.defaultText),this.set("data.toggledText",g.toggledText),this.shouldAnimate=!1)}};
_.P.getInnertubeIcon=function(){var g=this.data;if(g){var u,q,Q=((u=g.defaultIcon)==null?0:u.iconType)?(q=g.defaultIcon)==null?void 0:q.iconType:null,L,E;u=((L=g.toggledIcon)==null?0:L.iconType)?(E=g.toggledIcon)==null?void 0:E.iconType:Q;return g.isToggled?u:Q}};
_.P.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.z3.Object.defineProperties(Py.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g={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$14942_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var u=g.renderer;var q=g.element;var Q=g.toggled;var L=g.onTapCallback;var E=g.commandClientArgs;var y=g.overrides;var v=g.forceIcon;var J=g.forceModernIconButton;var f=g.forceDisabled;var t=g.useAnimatedText;var e=g.animatedTextProps;g=xnq(u,Q);v=!u.defaultIcon||!v&&u.defaultText?u.defaultIcon?"leading":void 0:J?"icon-only":"icon-only-40";v==="icon-only-40"&&(g.type="text");var G;J=Object;var R=J.assign,H;a:switch((H=
u.style)==null?void 0:H.styleType){case "STYLE_COMPACT_GRAY":H={size:"S"};break a;default:H={size:"M"}}var l=!!Q;var d=(d=Q&&u.toggledText||u.defaultText)?_.v1(d):void 0;t?(t=_.iR(Q&&u.toggledText||u.defaultText))&&e&&!isNaN(Number(e.numberValue))?(e.numberText=t,Q&&(e.numberValue+=1),t=e):t=void 0:t=void 0;var F,V,z,O;var W=(e=((V=Q?u.toggledAccessibilityData||((W=u.toggledText)==null?void 0:W.accessibility):u.accessibilityData||((F=u.defaultText)==null?void 0:F.accessibility))==null?void 0:(z=V.accessibilityData)==
null?void 0:z.label)||((O=u.accessibility)==null?void 0:O.label))?e:_.iR(Q&&u.toggledText||u.defaultText);f=f===void 0?u.isDisabled:f;q=KoK(u,Q,L,q,E);Q=OsT(u,Q);Q!=null&&Q.length?(Q=_.MY({innertubeCommand:zQJ(Q),forceNewState:!0}),Q=to(Q)?Q:void 0):Q=void 0;u=R.call(J,{},g,H,{iconPosition:v},y,{focused:!1,toggled:l,toggleable:!0,formattedButtonText:d,animatedTextProps:t,accessibilityLabel:W,disabled:f,onTap:q,aTagConfig:Q},Qah((G=u.colorData)==null?void 0:G.basicColorPaletteData));u.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(u.type="filled");return u}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var g=this.getInnertubeIcon();if(g)return _.x9(g)}}});
Py.prototype.resetAnimation=Py.prototype.resetAnimation;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Py.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Py.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"isPressed",void 0);_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"forceIconButton",void 0);_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"forceIconOnly",void 0);_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"forceModernIconButton",void 0);_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"alignByText",void 0);_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"overrides",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],Py.prototype,"disabled",void 0);_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"isShorts",void 0);_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"buttonTooltipPosition",void 0);_.Y([_.a(),_.K("design:type",Object)],Py.prototype,"animatedText",void 0);_.Y([_.a(),_.K("design:type",String)],Py.prototype,"textNumberValue",void 0);_.Y([_.a({computed:"computeTooltip(data, data.isToggled)"}),_.K("design:type",Object)],Py.prototype,"tooltip",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"resetAnimation",null);_.Y([_.C("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.K("design:type",Object),_.K("design:paramtypes",[])],Py.prototype,"computedButtonShape",null);_.Y([_.C("data.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],Py.prototype,"computedIcon",null);
_.Y([_.fE({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Py);ec$&&_.T(Py,"ytd-toggle-button-renderer",tlH,{mode:2});var $O5=_.r(function(g){function u(f){var t;return _.D(function(e){if(e.nextAddress==1)return(t=!z3Z(f,v())||!v().enabled)?e.jumpTo(2):e.yield(Unf(),3);e.nextAddress!=2&&(t=e.yieldResult);if(t)return e.return();q();setTimeout(function(){y(!1)},1500);
_.Wx(e)})}
function q(){setTimeout(function(){y(!0);var f;(f=Q.lottieEl)==null||f.goToAndPlay(0)},150)}
var Q=_.xq(),L=_.N(_.jR(!1,void 0,"UfUosc")),E=L.next().value,y=L.next().value,v=_.dO(g.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.I4(function(){var f,t;((f=g.settings)==null?void 0:(t=f.call(g))==null?void 0:t.uniqueId)==="this is not intended behavior"&&_.Io(new _.Ji("Smartimation Settings is undefined"))});
_.bX(function(){v().experimentEnabled&&(v().enabled?nhK(u):(y(!1),kdK(u)),_.dB(function(){kdK(u)}))},"IHhVmc");
_.bX(function(){v().timings.join("");v().experimentEnabled&&(SVk(v()),_.dB(function(){ohM(v())}))},"fsfhOe");
var J=_.G9(function(){var f=Q,t=v().uniqueId+"-border",e,G;var R="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((G=(e=_.Bk().resolve(_.xv(_.gy)))==null?void 0:e())!=null&&G?"dark":"light")+"_v2.json";return{animationRef:f,animationConfig:{name:t,autoplay:!1,loop:!1,path:R}}},void 0,"UWvUGe");
L={};return _.p("yt-smartimation",{class:_.Ty(g.className,"smartimation",(L["smartimation--experiment-enabled"]=function(){return v().experimentEnabled},L["smartimation--active-border"]=E,L["smartimation--enable-masking"]=g8K(),L))},_.p(_.M,{cond:function(){return v().experimentEnabled},
then:function(){return _.p("div",{class:"smartimation__border"},_.p(_.B2,{className:"smartimation__border-gradient",data:J,animationName:function(){return J().animationConfig.name}}))}}),_.p("div",{class:"smartimation__content"},g.children))},"ja");
$O5.idomCompat=!0;_.dL($O5,"yt-smartimation",{props:{className:_.H2,settings:_.H2}});var Np=function(){var g=_.X.apply(this,arguments)||this;g.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};g.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};g.shouldEnableSmartimation=!1;return g};
_.A(Np,_.X);Np.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Np.prototype.onDataChanged=function(){var g,u;this.shouldEnableSmartimation=(((g=this.data)==null?void 0:(u=g.timedAnimationData)==null?void 0:u.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Np.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var g=_.c(this.data.likeButton,_.GZ),u=_.c(this.data.dislikeButton,_.GZ);return!!((g==null?0:g.isToggled)||(u==null?0:u.isToggled))};
Np.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]]"}}}}}};
_.z3.Object.defineProperties(Np.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var g,u,q=((g=this.data)==null?void 0:(u=g.timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:"like-dislike",timings:q,enabled:this.shouldEnableSmartimation,experimentEnabled:q.length>0}}}});
Np.prototype.onDataChanged=Np.prototype.onDataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Np.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Np.prototype,"likeButtonOverride",void 0);_.Y([_.a(),_.K("design:type",Object)],Np.prototype,"dislikeButtonOverride",void 0);
_.Y([_.C("shouldEnableSmartimation"),_.K("design:type",Object),_.K("design:paramtypes",[])],Np.prototype,"smartimationSettings",null);_.Y([_.k_("data"),_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Np.prototype,"onDataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Np);
_.T(Np,"ytd-segmented-like-dislike-button-renderer",function(){if(f2$!==void 0)return f2$;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return f2$=g},{mode:1});var Rcb;var wGH;(wGH=document.body)==null||wGH.setAttribute("rounded-container","");var cdZ={};cdZ.YtToggleButtonBehavior=[_.xK.YtActionHandlerBehavior,Uv.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 g=this.data.isToggled;if(!this.isModal_(g)){if(!this.data.preventAutoToggle){this.toggle();var u={toggled:this.data.isToggled,actions:{}};u.actions[this.buttonIcon]=this.data.isToggled;_.hJ(this.hostElement,"yt-toggle-button",u)}u=this.data.defaultServiceEndpoint||null;var q=this.data.toggledServiceEndpoint||null;if(u&&q||u&&this.data.preventAutoToggle)g=g?q:u,u=this.disableCommandHandlerOverride,_.w("killswitch_toggle_button_behavior_resolve_command")||u?_.KV(this.hostElement,
[g]):_.nE(g,this.hostElement),_.hJ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:g})}},
stateChanged_:function(){var g=this.data;if(g){var u=g.isToggled;this._setEndpoint(this.computeEndpoint_(g));this._setServiceEndpoint(this.computeServiceEndpoint_(g));this._setButtonIcon(this.computeButtonIcon_(g,u));this._setButtonText(this.computeButtonText_(g,u));this._setButtonAccessibility(this.computeAccessibility_(g,u));this._setButtonTooltip(this.computeTooltip_(g,u));this._setButtonClass(this.computeButtonClass_(g,u));this._setIconPositionType(this.computeIconPositionType_(g));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=u):this.elements_.button.setAttribute("aria-pressed",u));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=u)}},
shouldSetIconActiveState_:function(){return _.w("kevlar_system_icons")},
toggle:function(g){this.set("data.isToggled",g!==void 0?g:!this.data.isToggled);_.w("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(g){if(g){var u,q;return!!((u=this.data)==null?0:(q=u.toggledServiceEndpoint)==null?0:q.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(g){return g&&g.defaultNavigationEndpoint||null},
computeButtonIcon_:function(g,u){var q=g&&g.defaultIcon?_.x9(g.defaultIcon.iconType):null;g=g&&g.toggledIcon?_.x9(g.toggledIcon.iconType):q;return u?g:q},
handleUpdateToggleButtonStateCommand_:function(g){g=g.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==g.buttonId&&this.toggle(g.toggled)},
computeButtonText_:function(g,u){return g?u&&g.toggledText||g.defaultText||null:null},
computeAccessibility_:function(g,u){return g?(u?this.get("toggledAccessibilityData.accessibilityData",g):this.get("accessibilityData.accessibilityData",g))||g.accessibility||null:null},
computeTooltip_:function(g,u){return g?u&&g.toggledTooltip||g.defaultTooltip||null:null},
computeButtonClass_:function(g,u){if(!g)return"";var q="",Q=g.toggledStyle||g.style;if(u=u?Q:g.style){u.styleType&&(u=u.styleType);try{q+=u.toLowerCase().replace(/_/g,"-")+" "}catch(L){_.iD(L,u,typeof u),_.Io(L)}}if(g=g.size){g.sizeType&&(g=g.sizeType);try{q+=g.toLowerCase().replace(/_/g,"-")+" "}catch(L){_.iD(L,g,typeof g),_.Io(L)}}return q.trim()},
computeIconPositionType_:function(g){return g&&g.iconPosition||null},
computeServiceEndpoint_:function(g){var u=g&&g.serviceEndpoint,q=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return u?u:q&&g.command?g.command:null},
handleUpdateToggleButtonTextAction_:function(g){g=g.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==g.buttonId&&(this.set("data.defaultText",g.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",g.toggledText),this.notifyPath("data.toggledText"))}}];_.Ny("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Hu2=_.w("web_button_rework")&&_.mW("BUTTON_REWORK")||_.w("web_button_rework_with_live"),sC=function(){var g=_.X.apply(this,arguments)||this;g.systemIcons=_.w("kevlar_system_icons");g.roundedContainer=!0;return g};
_.A(sC,_.X);sC.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
sC.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var g=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var u={toggled:!!this.data.isToggled,actions:{}};u.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var q,Q;u.actions.playlistId=(q=this.data.defaultServiceEndpoint)==null?void 0:(Q=q.playlistEditEndpoint)==null?void 0:Q.playlistId;_.hJ(this.hostElement,"yt-toggle-button",u)}(g=g?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(g)}};
sC.prototype.onYtNavigate=function(g){var u=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(g.detail.endpoint);u&&(g.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(u))};
_.z3.Object.defineProperties(sC,{template:{configurable:!0,enumerable:!0,get:function(){if(Rcb===void 0){var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);Rcb=g}g=Rcb;return g}}});
sC.prototype.onYtNavigate=sC.prototype.onYtNavigate;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],sC.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],sC.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(cdZ.YtToggleButtonBehavior),_.K("design:type",Object)],sC.prototype,"ytToggleButtonBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],sC.prototype,"data",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],sC.prototype,"showTooltips",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],sC.prototype,"systemIcons",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],sC.prototype,"roundedContainer",void 0);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],sC.prototype,"onYtNavigate",null);
_.Y([_.fE({is:"ytd-toggle-button-renderer",disableElementRegistration:Hu2})],sC);var AdX,Zuo;_.yH=new _.Fv("PANEL_CONTROLLER_TOKEN");_.vy=new _.Fv("SHEET_CONTROLLER_TOKEN");_.D5=new _.Fv("DIALOG_CONTROLLER_TOKEN");AdX=new _.Fv("DIALOG_CONTAINER_TOKEN");Zuo=new _.Fv("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.pl=new _.Fv("PERSISTENT_PANEL_CONTROLLER_TOKEN");var yEu=_.Ug("DOWNLOAD",{},"Download"),v8S=_.Ug("DOWNLOADING",{},"Downloading"),DDS=_.Ug("DOWNLOADED",{},"Downloaded"),pBh=_.Ug("RETRY",{},"Retry");var l2$=_.r(function(g){var u=tAm,q=function(){return""},Q=JEM(g.data),L=j8u(g.data),E=fzm(g.data),y=MAF(g.data);
u=function(){var v=g.data(),J=N1M(v,Q(),L(),E(),y()),f=!!v.videoId,t=J.text;return{title:f?t:void 0,tooltip:f?void 0:t,accessibilityText:t,onTap:J.onTap,iconName:J.iconType,style:v.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:J.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:v.buttonSize}};
q={};q=_.Ty("ytDownloadButtonViewModelHost",(q.ytDownloadButtonViewModelIsHidden=function(){var v=g.data(),J=y();return v.playlistId||J()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||J()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},q));
return _.p("download-button-view-model",{class:q},_.p(_.TT,{data:u}))},"ka");
l2$.idomCompat=!0;var Z4h=new _.Fv("SUBMIT_API_SERVICE_TOKEN");var cEq,H4Z,lzM={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var zrf=new _.Fv("RENDERER_LOGGER_TOKEN");var O4m=new _.Fv("RENDERER_STAMPER_OPTIONS_TOKEN");var i4K;_.o9=new NJT;i4K=new Map;var KOS="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),B1u=["notificationTextRenderer","notificationMultiActionRenderer"],
xDS="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),Y4m=CeK(function(g){return _.mV(g==null?void 0:g.targetId)}).useUpdatableData;var mDf=null;var hru=0,WOF=new Set;_.Up.debugName="EjJbCe";var I25=_.r(function(g){var u=g.data;g=g.className;_.lL(function(){u().formId||_.Zf(Error("Eh"))});
var q=_.wBh(function(){return u().formId},function(){return u().beforeSubmitCommand},function(){return u().afterSubmitCommand}),Q=q.submitForm,L=q.isValid,E=q.isSubmitting,y=function(){return{state:u().isDisabled||!L()||E()?"disabled":"active"}};
return _.p("yt-submit-button-view-model",{class:_.Ty("ytSubmitButtonViewModelHost",g)},_.p(_.Up,{data:function(){return u().button}},{buttonViewModel:function(v){return _.p(_.TT,{data:v.data,
buttonOverrides:y,onClick:Q})}}))},"na");var C40=_.r(function(g){var u=g.backgroundLottieRef;var q=g.foregroundLottieRef;var Q=g.children;var L=g.wrapperClass;var E=g.disableAnimation;g=function(){return(_.w("web_animated_actions")||_.w("web_animated_actions_v2"))&&!(E==null?0:E())};
return _.p("yt-animated-action",{class:_.Ty("ytAnimatedActionHost",L)},_.p("div",{class:"ytAnimatedActionContentWithBackground"},_.p(_.M,{cond:g,then:function(){return _.p(iu2,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:u==null?void 0:u(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(n8u()?"dark":"light")+"_v5.json"}}}})}}),Q),_.p(_.M,{cond:g,
then:function(){return _.p(iu2,{lottiePlayerProps:function(){return{animationRef:q==null?void 0:q(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(n8u()?"dark":"light")+"_v4.json"}}}})}}))},"oa");
C40.idomCompat=!0;var iu2=_.r(function(g){var u=g.wrapperClass;var q=g.lottieClass;var Q=g.lottiePlayerProps;return _.p("div",{class:_.Ty("ytAnimatedActionLottie",u),"aria-hidden":"true"},_.p(_.B2,{className:q,data:Q,animationName:function(){return Q().animationConfig.name}}))},"pa");var kSq={isOpen:!1};var o8h={isAllowed:!1};var g5f={errorMessage:"",title:"",privacy:"",isDisabled:!0};var qKb={isOpen:!1};var LhZ={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var bu$={response:void 0};var P4F=function(g,u){g=g===void 0?bu$:g;switch(u.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},g,{response:u.payload});default:return g}};var dO$={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var N3m=function(g,u){g=g===void 0?dO$:g;switch(u.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},g,{nextDisabled:u.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},g,{nextCommand:u.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},g,{footerSubmissionData:u.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},g,{isImpersonationValid:u.payload});default:return g}};var Fhx={reportFormData:void 0,reportDetailsFormData:void 0};var sek=function(g,u){g=g===void 0?Fhx:g;switch(u.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},g,{reportFormData:u.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},g,{reportDetailsFormData:u.payload});default:return g}};var mOo=void 0;_.w("mweb_enable_redux_store_on_demand")||(mOo=new CU(ydM()));var JP=_.w("enable_web_delhi_icons");var a2i=_.r(function(g){g=_.FI(g,{themeOverride:void 0,animationRef:{}});var u=g.animatedIconType,q=g.active,Q=g.themeOverride,L=g.animationRef;g=g.staticIconFn;var E=_.N(_.jR(void 0,void 0,"l48agc")),y=E.next().value,v=E.next().value,J=function(){a:{var d=u();var F=Q==null?void 0:Q();var V;F=(F==null?void 0:F.useDarkTheme)||((V=_.Bk().resolve(_.xv(_.gy)))==null?void 0:V());switch(d){case "LIKE":mOo||(mOo=new CU(ydM()));d=(d=meK(mOo.getState()))&&d.animationLightUrl&&d.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:F?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:F?d.animationDarkUrl:d.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(d){F=d;break a}F="animated_like_icon_"+(F?"dark":"light")+"_"+(JP?"v5":"v4");F={lottiePlayerProps:{animationConfig:{name:F,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+F+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(JP?" animated-like-icon-delhi":"")}}},totalFrames:JP?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":F={lottiePlayerProps:{animationConfig:{name:F?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(F?"dark":"light")+(JP?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(JP?" animated-subscribe-icon-delhi":"")}}},totalFrames:JP?120:79,lazyLoad:!1};break a}F=
void 0}return F},f=function(){var d,F;
return(F=(d=J())==null?void 0:d.lottiePlayerProps.animationConfig.name)!=null?F:""},t=function(){if(J()){var d=J().lottiePlayerProps.animationConfig.path;
return qy.get(d)||y()}};
E=_.N(_.jR(!1,void 0,"sDrGId"));var e=E.next().value;E=E.next().value;var G=DO3(E),R=function(){var d=J(),F,V,z;return(z=d==null?void 0:(F=d.lottiePlayerProps.animationConfig)==null?void 0:(V=F.rendererSettings)==null?void 0:V.className)!=null?z:""},H=void 0,l=void 0;
_.bX(function(){var d=J(),F=f(),V=t(),z=e(),O=q();if(d&&(l!==F&&(l=F,H=O,F=L(),G.animationConfig=d.lottiePlayerProps.animationConfig,G.animationRef=F,V&&(G.animationConfig.animationData=V,G.animationConfig.path=void 0),F=d.lottiePlayerProps.animationConfig.path,!qy.get(F)&&d.lazyLoad&&F&&v53(F,v)),!(z||d.lazyLoad&&!V))){if(V=!L().lottieEl)O?(z=d.totalFrames,G.animationConfig.initialSegment=[z-1,z]):G.animationConfig.initialSegment=void 0;if(H!==O&&!V)if(V=L(),O){var W;(W=V.lottieEl)==null||W.playSegments([0,
d.totalFrames],!0)}else{var x;(x=V.lottieEl)==null||x.playSegments([0,1],!0)}H=O}},"RQVZ1d");
return _.p("animated-icon",{class:"ytAnimatedIconHost"},_.p(_.M,{cond:function(){var d,F;return!((d=J())==null||!d.lottiePlayerProps.animationConfig.path||((F=J())==null?0:F.lazyLoad)&&!t()||e())},
then:function(){return _.p(_.B2,{data:G,animationName:f,className:R,animationRef:L})},
else:g}))},"ra");_.jt=_.r(function(g){var u=_.Hk("yt-subscribe-button-view-model"),q=_.Hk("div"),Q=_.Hk("div"),L=_.xq(),E=_.xq(),y=_.xq(),v=_.kq(f2q,function(){return g.data().stateEntityStoreKey}),J=_.kq(Mlf,function(){var KZ,G2;
return(G2=(KZ=g.data().notificationStateEntityStoreKeys)==null?void 0:KZ.subsNotificationStateKey)!=null?G2:""}),f=function(){return!g.data().enableSubscribeButtonPostClickAnimation},t=_.N(_.jR(0,void 0,"YtsSKb")),e=t.next().value,G=t.next().value;
t=_.N(_.jR(0,void 0,"V6JxRe"));var R=t.next().value,H=t.next().value;t=_.N(_.jR(!1,void 0,"JUCSZ"));var l=t.next().value,d=t.next().value;t=_.N(_.jR(!1,void 0,"oV6jwf"));var F=t.next().value,V=t.next().value;t=_.N(_.jR(!1,void 0,"hK1Whe"));var z=t.next().value,O=t.next().value,W;t=_.N(_.jR(!1,void 0,"Asaolf"));var x=t.next().value,k=t.next().value,LZ=function(){V(!0);_.Ln(_.Hv,function(){V(!1)},1500)};
_.bX(function(){var KZ=F();_.D6(function(){KZ&&!f()&&v()&&iuM(L,E,y)})},"Qq6Hsf");
_.bX(function(){var KZ=v();_.D6(function(){if(!f()&&KZ){var G2;((G2=g.animateWidth)==null?0:G2.call(g))&&I2S(u.value,!!KZ.subscribed,e(),R());var Ab,tb;((Ab=W)==null?0:Ab.subscribed)||!KZ.subscribed||KZ.key!==((tb=W)==null?void 0:tb.key)||LZ();W=KZ}})},"hog8te");
t=_.G9(function(){var KZ,G2,Ab,tb=g.data(),lx=!((KZ=v())==null||!KZ.subscribed);KZ=!((G2=g.isOverlay)==null||!G2.call(g));G2=l()?u:void 0;var NE=(Ab=J())==null?void 0:Ab.state;Ab=x();l2q(tb,NE);return jeh({model:tb,subscribed:lx,isOverlay:KZ,element:G2,notificationState:NE,disableTextEllipsis:!0,focused:Ab})},void 0,"hc1PRd");
var sb=function(){var KZ;if(!f()&&((KZ=g.animateWidth)==null?0:KZ.call(g))&&(q==null?0:q.value)&&(Q==null?0:Q.value)&&!z()){KZ=v();var G2=_.N((KZ==null?0:KZ.subscribed)?[q,Q]:[Q,q]),Ab=G2.next().value;G2=G2.next().value;Ab=Math.ceil(Ab.value.getBoundingClientRect().width);G2=Math.ceil(G2.value.getBoundingClientRect().width);G(Ab);H(G2);I2S(u.value,!(KZ==null||!KZ.subscribed),Ab,G2);O(!0)}},Rm=_.YH(function(KZ){sb();
var G2=v();G2&&(KZ.detail.endpoint.subscribeEndpoint||KZ.detail.endpoint.unsubscribeEndpoint)&&HuM(u.value,!G2.subscribed,G2)}),M3=function(){var KZ=_.Bk().resolve(_.xv(_.m5));
KZ&&k(KZ.isKeyBoardInUse())},tT=function(){k(!1)};
_.W6("yt-player-subscribe",function(KZ){var G2=v();G2&&KZ===g.data().channelId&&HuM(u.value,!0,G2)});
_.W6("yt-player-unsubscribe",function(KZ){var G2=v();G2&&KZ===g.data().channelId&&HuM(u.value,!1,G2)});
_.W6("yt-update-subscribe-button-action",function(KZ){KZ=_.c(KZ,GPn);var G2=v();G2&&KZ&&KZ.channelId===g.data().channelId&&HuM(u.value,!!KZ.subscribed,G2)});
_.I4(function(){u.value&&(u.value.addEventListener("focusin",M3),u.value.addEventListener("focusout",tT));var KZ=_.M_(_.Hv,function(){sb()});
d(!0);_.dB(function(){_.Hv.cancelJob(KZ);u.value&&(u.value.removeEventListener("focusin",M3),u.value.removeEventListener("focusout",tT))})});
var mJ=function(){var KZ,G2,Ab;if(Ab=!((KZ=v())==null||!KZ.subscribed))KZ=!!g.data().disableNotificationBell,Ab=(G2=J())==null?void 0:G2.state,Ab=!KZ&&!!Ab;return Ab},hT=function(){var KZ;
return!((KZ=v())==null?0:KZ.subscribed)},Yu=function(){var KZ,G2;
if(G2=hT()){G2=!!g.data().disableNotificationBell;var Ab=(KZ=J())==null?void 0:KZ.state;G2=!G2&&!!Ab}return G2},Mx={},po={};
return _.p("yt-subscribe-button-view-model",{class:_.Ty(g.className,"ytSubscribeButtonViewModelHost",(Mx.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var KZ,G2;return!((KZ=v())==null||!KZ.subscribed)&&((G2=g.animateWidth)==null?void 0:G2.call(g))&&F()},Mx.ytSubscribeButtonViewModelHostHidden=function(){var KZ;
return!((KZ=v())==null?0:KZ.subscribed)&&g.data().hideWhenUnsubscribed},Mx)),
el:u,"on:yt-service-request-sent":Rm},_.p(C40,{backgroundLottieRef:L,foregroundLottieRef:E,wrapperClass:_.Ty("ytSubscribeButtonViewModelAnimatedActionWrapper",(po.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var KZ;return((KZ=g.animateWidth)==null?void 0:KZ.call(g))&&F()},po.ytSubscribeButtonViewModelStaticWidth=function(){var KZ;
return!((KZ=g.animateWidth)==null?0:KZ.call(g))},po)),
disableAnimation:f},_.p("div",{el:q,class:"ytSubscribeButtonViewModelContainer"},_.p(_.W2,{data:t,icon:function(){return _.p(_.M,{cond:mJ,then:function(){var KZ=function(){var G2;return cdh((G2=J())==null?void 0:G2.state)};
return _.p(_.M,{cond:function(){return f()||KZ()!=="NOTIFICATIONS_NONE"},
then:function(){return _.p(_.B1,{icon:KZ})},
else:function(){return _.p(a2i,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:y})}})}})},
secondaryIconName:function(){return mJ()?"EXPAND":void 0}}))),_.p("div",{el:Q,
class:"ytSubscribeButtonViewModelInvisible"},_.p(_.M,{cond:function(){var KZ;return((KZ=g.animateWidth)==null?void 0:KZ.call(g))&&!f()&&!z()},
then:function(){return _.p(_.W2,{data:_.G9(function(){var KZ;return jeh({model:g.data(),subscribed:hT(),isOverlay:!((KZ=g.isOverlay)==null||!KZ.call(g)),element:u,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var KZ;return Yu()?cdh((KZ=J())==null?void 0:KZ.state):void 0},
secondaryIconName:function(){return Yu()?"EXPAND":void 0}})}})))},"ua");
_.jt.idomCompat=!0;var VlX=_.r(function(g){var u=g.data;var q=_.kq(f2q,function(){return u().subscriptionStateEntityKey});
return _.p(_.M,{cond:function(){var Q=u(),L=q();return!Q.hideWhenUnsubscribed||(L==null?0:L.subscribed)?_.c(u().button,_.Rn):void 0},
then:function(Q){return _.p("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.p(_.TT,{data:Q,buttonOverrides:function(){return{toggled:!0}}}))}})},"va");
VlX.idomCompat=!0;var XGX,fl;XGX=_.r(function(g){return _.p(_.Up,{data:function(){return g.actionRow().actions}},{buttonViewModel:function(u){var q=u.data;
return _.p(fl,{isRow:g.isRow,isIconOnlyButton:function(){return C4b(q())},
useIntrinsicWidth:g.useIntrinsicWidth},_.p(_.TT,{data:q}))},
subscribeButtonViewModel:function(u){return _.p(fl,{isRow:g.isRow},_.p(_.jt,{data:u.data,isOverlay:!1,animateWidth:function(){return!g.isRow()}}))},
downloadButtonViewModel:function(u){var q=u.data;return _.p(fl,{isRow:g.isRow,isIconOnlyButton:function(){return!!q().playlistId}},_.p(l2$,{data:q}))},
submitButtonViewModel:function(u){var q=u.data;return _.p(fl,{isRow:g.isRow,isIconOnlyButton:function(){var Q=q();return C4b(_.c(Q==null?void 0:Q.button,_.Rn))}},_.p(I25,{data:q}))},
toggleButtonViewModel:function(u){var q=u.data;return _.p(fl,{isRow:g.isRow,isIconOnlyButton:function(){var Q=q();return C4b(_.c(Q.isToggled?Q.toggledButtonViewModel:Q.defaultButtonViewModel,_.Rn))}},_.p(_.E6,{data:q}))},
subscribePlusButtonViewModel:function(u){return _.p(fl,{isRow:g.isRow},_.p(VlX,{data:u.data}))}})},"wa");
fl=_.r(function(g){var u={};return _.p("div",{class:_.Ty("ytFlexibleActionsViewModelAction",(u.ytFlexibleActionsViewModelActionRowAction=g.isRow,u.ytFlexibleActionsViewModelActionIntrinsicWidth=g.useIntrinsicWidth,u.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,u.ytFlexibleActionsViewModelActionIconOnlyButton=g.isIconOnlyButton,u))},g.children)},"xa");
_.Mp=_.r(function(g){var u=function(){var Q;return((Q=g.layout)==null?void 0:Q.call(g))===1},q={};
return _.p("yt-flexible-actions-view-model",{class:_.Ty("ytFlexibleActionsViewModelHost",g.className,(q.ytFlexibleActionsViewModelInline=function(){return!u()},q.ytFlexibleActionsViewModelScrollable=function(){return g.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},q))},_.p(_.R4,{each:function(){return g.data().actionsRows||[]}},function(Q){return _.p(_.M,{cond:u,
then:function(){return _.p("div",{class:"ytFlexibleActionsViewModelActionRow"},_.p(XGX,{actionRow:Q,isRow:u,useIntrinsicWidth:function(){return!!g.data().respectActionIntrinsicWidth}}))},
else:function(){return _.p(XGX,{actionRow:Q,isRow:u})}})}))},"ya");_.dL(_.Mp,"yt-flexible-actions-view-model",{props:{data:_.H2,layout:_.H2,justifyContentOverride:_.H2,className:_.H2}});_.tP=_.r(function(g){var u=_.kq(_.jT,function(){var L;return(L=g.data().dislikeEntityKey)!=null?L:""}),q=_.G9(function(){var L=u();
return L?L.likeStatus==="DISLIKE":_.c(g.data().toggleButtonViewModel,_.cF).isToggled},void 0,"fNr9he"),Q=_.G9(function(){return Object.assign({},_.c(g.data().toggleButtonViewModel,_.cF),{isToggled:q()})},void 0,"AezoCc");
return _.p("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.p(_.E6,{data:Q,buttonShapeOverrides:g.buttonShapeOverrideables,onToggle:function(L){var E=u();E&&L!==(E.likeStatus==="DISLIKE")&&E.key&&_.bU(_.JZ("likeStatusEntity",E.key,{likeStatus:L?"DISLIKE":"INDIFFERENT",hadUserInteraction:L}))}}))},"za");
_.tP.idomCompat=!0;_.et=_.r(function(g){var u=_.w("web_supports_animations_api"),q=YB3(function(G){var R=f();if(!G){var H,l;return{numberText:(l=R==null?void 0:(H=R.likeCountIfIndifferent)==null?void 0:H.content)!=null?l:"",numberValue:Number(R==null?void 0:R.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var d;H=(R==null?void 0:(d=R.likeCountIfIndifferent)==null?void 0:d.content)!==G.numberText;if(v()||!H)return G;var F;return{numberText:(R==null?void 0:(F=R.likeCountIfIndifferent)==null?void 0:F.content)||
"",numberValue:Number(R==null?void 0:R.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!R}}),Q=YB3(function(G){var R=f();
if(!G){var H,l;return{numberText:(l=R==null?void 0:(H=R.likeCountIfLiked)==null?void 0:H.content)!=null?l:"",numberValue:Number(R==null?void 0:R.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var d;H=(R==null?void 0:(d=R.likeCountIfIndifferent)==null?void 0:d.content)!==G.numberText;if(v()||!H)return G;var F;return{numberText:(R==null?void 0:(F=R.likeCountIfLiked)==null?void 0:F.content)||"",numberValue:Number(R==null?void 0:R.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!R}}),L=_.N(_.jR(void 0,
void 0,"xYSlUe")),E=L.next().value,y=L.next().value,v=E,J=_.kq(_.jT,function(){var G,R;
return(R=(G=g.data())==null?void 0:G.likeStatusEntityKey)!=null?R:""}),f=_.kq(toS,function(){var G,R;
return((G=g.likeCountEntity)==null?void 0:(R=G.call(g))==null?void 0:R.key)||""}),t=_.G9(function(){var G;
return((G=J())==null?void 0:G.likeStatus)==="LIKE"},void 0,"DG5Osd"),e=function(){var G;
return u&&!((G=g.likeCountEntity)==null||!G.call(g))};
return _.p("like-button-view-model",{class:_.Ty("ytLikeButtonViewModelHost",g.className)},_.p(_.E6,{data:function(){var G=Object,R=G.assign,H;var l=_.c((H=g.data())==null?void 0:H.toggleButtonViewModel,_.cF);return R.call(G,{},l||{},{isToggled:t()})},
buttonShapeOverrides:g.buttonShapeOverrideables,animatedTextPropsDefault:function(){return e()?q():void 0},
animatedTextPropsToggled:function(){return e()?Q():void 0},
onToggle:function(G){buq(G,J(),v(),y)},
style:function(){var G;return((G=g.disableIconAnimation)==null?0:G.call(g))?void 0:{animateIcon:"true"}}}))},"Aa");
_.et.idomCompat=!0;var rda=_.r(function(g){var u=function(){return _.c(g.data().likeButtonViewModel,_.wT)},q=function(){var L;
return((L=u())==null?void 0:L.likeStatusEntityKey)||""},Q=_.G9(function(){var L,E;
var y=(E=_.kq(_.jT,q)())!=null?E:(L=u())==null?void 0:L.likeStatusEntity;L=g.data();var v;L=(L==null?void 0:(v=L.timedAnimationData)==null?void 0:v.animationTiming)||[];return{uniqueId:"like-dislike",timings:L,enabled:(y==null?void 0:y.likeStatus)==="INDIFFERENT"&&L.length>0,experimentEnabled:L.length>0}},void 0,"zZ3GQb");
return _.p("segmented-like-dislike-button-view-model",{class:_.Ty("ytSegmentedLikeDislikeButtonViewModelHost",g.className),"button-renderer":!0},_.p($O5,{settings:Q},_.p("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.p(_.M,{cond:u,then:function(L){return _.p(_.et,{data:L,likeCountEntity:function(){return g.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.w("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.p(_.M,{cond:function(){return _.c(g.data().dislikeButtonViewModel,_.cK)},
then:function(L){return _.p(_.tP,{data:L,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Ba");
rda.idomCompat=!0;_.dL(rda,"segmented-like-dislike-button-view-model",{props:{data:_.H2,className:_.H2}});var Wh5=_.r(function(g){var u=g.data;var q=g.className;var Q=g.setMinWidth;var L=g.forceIconOnly;var E=_.Hk("account-link-button-view-model"),y=_.kq(_.dOq,function(){var G;return(G=u().accountLinkStatusEntityKey)!=null?G:""}),v=_.kq(_.dOq,function(){var G;
return(G=u().accountLinkStatusSecondaryEntityKey)!=null?G:""}),J=function(){if(!_.w("web_account_link_secondary_killswitch")){var G,R;
return((G=y())==null?void 0:G.linked)||((R=v())==null?void 0:R.linked)}var H;return(H=y())==null?void 0:H.linked};
_.bX(function(){var G=y();if(G){var R=BSH(new x4$,OqZ(new Ywx,!!G.linked));_.Op().then(function(H){H&&(H.setAccountLinkState(_.om(R.JSC$12632_serializeBinary(),4)),H.updateAccountLinkingConfig(!!G.linked))})}},"IvZF7");
var f=function(){return _.c(u().toggleButtonViewModel,_.cF)};
_.W6("yt-signal-action-show-account-link-dialog",function(){if(f()){var G=J()?f().toggledButtonViewModel:f().defaultButtonViewModel;G=_.c(G,_.Rn);var R;if((R=y())==null?0:R.isWarning){R=_.c(u().warningButtonViewModel,_.Rn);if(!R){_.Wk(Error("Fh"));return}G=R}var H;(R=_.jy((H=G)==null?void 0:H.onTap))&&_.nV([R],E.value)}else _.Wk(Error("Gh"))});
var t=function(){var G=f();return Object.assign({},G,{isToggled:J()})},e=function(){return(L==null?0:L())?{iconPosition:"icon-only"}:{}};
return _.p("account-link-button-view-model",{class:_.Ty("ytwAccountLinkButtonViewModelHost",q,function(){return(Q==null?0:Q())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:E,"button-renderer":!0},_.p("div",null,_.p(_.M,{cond:function(){var G;if((G=y())==null?0:G.isWarning)return(G=_.c(u().warningButtonViewModel,_.Rn))||_.Wk(Error("Fh")),G},
then:function(G){return _.p(_.TT,{data:G,buttonOverrides:e})},
else:function(){return _.p(_.E6,{data:t,buttonShapeOverrides:e})}})))},"Da");_.dL(Wh5,"account-link-button-view-model",{props:{data:_.H2,className:_.iF,setMinWidth:_.iF,forceIconOnly:_.iF}});_.Ny("menuRenderer","menuRenderer","ytd-menu-renderer");
var T3W={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"}},
hc2=_.w("web_fix_missing_action_buttons")?100:200,Gf=function(){var g=_.X.apply(this,arguments)||this;g.safeArea=!_.w("kevlar_flex_menu_safe_area_killswitch");g.tonalOverride=!1;g.threeDotSize="M";g.isOverlay=!1;g.useOverlayDark=!1;g.topLevelIconsOnly=!1;g.JSC$15077_lastWidth=0;g.maybeUpdateFlexibleMenu=function(){_.w("web_fix_missing_action_buttons")?requestAnimationFrame(g.maybeUpdateFlexibleMenuImpl):g.maybeUpdateFlexibleMenuImpl()};
g.maybeUpdateFlexibleMenuImpl=function(){var u;if((u=g.data)!=null&&u.flexibleItems){g.maybeFlushDebouncer();u=g.hostElement.clientWidth;var q=u>g.JSC$15077_lastWidth,Q,L=((Q=g.topLevelButtonsContainer)==null?void 0:Q.scrollHeight)||0,E;Q=((E=g.flexibleItemButtonsContainer)==null?void 0:E.scrollHeight)||0;E=g.hostElement.scrollHeight>Math.max(L,Q)+8;q?(g.resetFlexibleItems(),g.JSC$15077_lastWidth=g.hostElement.clientWidth,g.maybeUpdateFlexibleMenu()):E&&(g.shrinkFlexibleMenu(),g.JSC$15077_lastWidth=
u)}};
g.computeThreeDotButtonShape=function(){if(g.tonalOverride)return Object.assign({},{onTap:function(){g.onOverflowTap()},
iconPosition:"icon-only",style:g.isOverlay?g.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:g.threeDotSize,state:"active",accessibilityLabel:g.computeAccessibilityLabel(g.data)},g.threeDotButtonOverride)};
g.onOverflowTap=function(){var u,q,Q,L,E,y,v,J,f,t,e;_.D(function(G){switch(G.nextAddress){case 1:if((u=g.data)==null?0:u.fetchMenuCommand)return q=_.Bk().resolve(_.Gy),q.resolveCommand(g.data.fetchMenuCommand,{form:{element:g.hostElement}}),G.return();if(((Q=g.data)==null?0:Q.isDisabled)&&((L=g.data)==null?0:L.disabledCommand))return _.nE(g.data.disabledCommand,g.hostElement),G.return();E=g.createMenuRendererVe();y={items:g.items};if((v=g.data)==null?0:v.menuPopupAccessibility)y.menuPopupAccessibility=
g.data.menuPopupAccessibility;if((J=g.data)==null?0:J.footer)y.footer=g.data.footer;f={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:y},veData:E}};t=_.Bk().resolve(_.vy);if(!_.w("ytd-menu-singleton-sheet-killswitch")){G.jumpTo(2);break}return G.yield(t.openSheet({openPopupActionCommand:f},g.hostElement),3);case 3:return G.return();case 2:return G.yield(t.isSheetOpen(),4);case 4:return(e=G.yieldResult)?G.yield(t.closeSheet(),0):G.yield(t.openSheet({openPopupActionCommand:f},g.hostElement),
0)}})};
return g};
_.A(Gf,_.X);_.P=Gf.prototype;_.P.updateButtonOverrides=function(){if(!_.w("menu_renderer_label_update_upkillswitch")){var g=_.Tr(this.hostElement).querySelector("yt-button-view-model");g&&(g.buttonOverrides=this.buttonOverrides)}};
_.P.computeHasItems=function(){var g;return((g=this.topLevelButtonData)==null?void 0:g.length)||this.hasFlexibleItems};
_.P.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.P.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.x_(this.hostElement,{"--ytd-menu-renderer-button-color":_.JR(this.data.iconColor)}))};
_.P.onStamperFinished=function(){this.JSC$15077_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.P.setupFlexibleMenu=function(){var g=this,u;(u=this.data)!=null&&u.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Kr(this.maybeUpdateFlexibleMenu,hc2,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){g.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))};
_.P.maybeFlushDebouncer=function(){if(_.w("web_replace_formatted_with_attributed_string")){var g;(g=this.topLevelButtons)==null||g.forEach(function(q){var Q;(q=(Q=q.getElementsByTagName("yt-attributed-string"))==null?void 0:Q[0])&&LKK(q)});
var u;(u=this.flexibleItemButtons)==null||u.forEach(function(q){var Q;(q=(Q=q.getElementsByTagName("yt-attributed-string"))==null?void 0:Q[0])&&LKK(q)})}};
_.P.resetFlexibleItems=function(){var g;if((g=this.data)!=null&&g.flexibleItems){_.w("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var u;this.flexAsTopLevelButtons=(u=this.data.flexibleItems)==null?void 0:u.map(function(q){return _.c(q,_.iFX).topLevelButton});
_.w("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.P.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.P.shrinkFlexibleMenu=function(){var g;(g=this.flexAsTopLevelButtons)!=null&&g.length&&(this.flexAsTopLevelButtons=[].concat(_.na(this.flexAsTopLevelButtons.slice(0,-1))))};
_.P.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:T3W,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:T3W,events:!0}}};
_.P.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.detached=function(){this.icon="MORE_VERT"};
_.P.computeTopLevelButtonData=function(g){if(!g)return[];var u;g=(u=g==null?void 0:g.topLevelButtons)!=null?u:[];return _.pH.unsafeClone([].concat(_.na(g)))};
_.P.computeItems=function(g,u){if(!g)return[];var q=[];if(u){var Q=(g.flexibleItems||[]).map(function(y){return _.c(y,_.iFX)});
Q=_.N(Q);for(var L=Q.next();!L.done;L=Q.next())L=L.value,u.includes(L.topLevelButton)||(L=L.menuItem)&&q.push(L)}var E;g=(E=g==null?void 0:g.items)!=null?E:[];return[].concat(_.na(q),_.na(g))};
_.P.computeMenuActive=function(g,u){return g||u};
_.P.onPopupOpened=function(){this.overlayOpen=!0;_.hJ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.P.onPopupClosed=function(){this.overlayOpen=!1;_.hJ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.onPopupCanceled=function(){this.overlayOpen=!1;_.hJ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.computeAccessibilityLabel=function(g){return this.get("accessibility.accessibilityData.label",g)};
_.P.isHidden=function(g,u){return this.tonalOverride||!g?!0:g.fetchMenuCommand||g.isDisabled&&g.disabledCommand?!1:!(u==null?0:u.length)};
_.P.isModernOverflowHidden=function(g,u){return this.tonalOverride&&g?g.fetchMenuCommand?!1:!(u==null?0:u.length):!0};
_.P.createMenuRendererVe=function(){var g=this.data.trackingParams,u=_.j_(),q=_.JJ();return g&&u&&q?(g=_.Lr(g),q=_.Yq(7591),_.w("combine_ve_grafts")?_.xl(_.gL(),q,g):_.cC(u,g,q),q):null};
_.z3.Object.defineProperties(Gf.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.flexAsTopLevelButtons)==null||!g.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Gf.prototype.onPopupCanceled=Gf.prototype.onPopupCanceled;Gf.prototype.onPopupClosed=Gf.prototype.onPopupClosed;Gf.prototype.onPopupOpened=Gf.prototype.onPopupOpened;Gf.prototype.tonalOverrideChanged=Gf.prototype.tonalOverrideChanged;Gf.prototype.resetFlexibleItems=Gf.prototype.resetFlexibleItems;Gf.prototype.setupFlexibleMenu=Gf.prototype.setupFlexibleMenu;Gf.prototype.iconButtonColorChanged=Gf.prototype.iconButtonColorChanged;Gf.prototype.updateButtonOverrides=Gf.prototype.updateButtonOverrides;
_.Y([_.I(_.dx),_.K("design:type",Object)],Gf.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.oE("#button-shape"),_.K("design:type",HTMLElement)],Gf.prototype,"buttonShape",void 0);_.Y([_.oE("#button"),_.K("design:type",Object)],Gf.prototype,"button",void 0);
_.Y([_.a(),_.K("design:type",Object)],Gf.prototype,"data",void 0);_.Y([_.a({computed:"computeTopLevelButtonData(data)"}),_.K("design:type",Array)],Gf.prototype,"topLevelButtonData",void 0);_.Y([_.a(),_.K("design:type",Array)],Gf.prototype,"flexAsTopLevelButtons",void 0);_.Y([_.a({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.K("design:type",Array)],Gf.prototype,"items",void 0);_.Y([_.a({value:"MORE_VERT"}),_.K("design:type",String)],Gf.prototype,"icon",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Gf.prototype,"safeArea",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.K("design:type",Boolean)],Gf.prototype,"menuActive",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Gf.prototype,"menuFocused",void 0);_.Y([_.a({value:"bottom"}),_.K("design:type",String)],Gf.prototype,"buttonTooltipPosition",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Gf.prototype,"overlayOpen",void 0);
_.Y([_.a({value:!0}),_.K("design:type",Boolean)],Gf.prototype,"forceIconButton",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Gf.prototype,"styleActionButton",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Gf.prototype,"disableTextTransformOnButtons",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Gf.prototype,"tonalOverride",void 0);_.Y([_.a(),_.K("design:type",Object)],Gf.prototype,"threeDotSize",void 0);
_.Y([_.a(),_.K("design:type",Object)],Gf.prototype,"threeDotButtonOverride",void 0);_.Y([_.a(),_.K("design:type",Object)],Gf.prototype,"isOverlay",void 0);_.Y([_.a(),_.K("design:type",Object)],Gf.prototype,"useOverlayDark",void 0);_.Y([_.a({computed:"computeButtonOverride(tonalOverride)"}),_.K("design:type",Object)],Gf.prototype,"buttonOverride",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Gf.prototype,"minimizePipBreakages",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Gf.prototype,"hasCustomIconColor",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("flexAsTopLevelButtons"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gf.prototype,"hasFlexibleItems",null);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.K("design:type",Boolean)],Gf.prototype,"hasItems",void 0);_.Y([_.a(),_.K("design:type",Object)],Gf.prototype,"topLevelIconsOnly",void 0);
_.Y([_.k_("topLevelIconsOnly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gf.prototype,"updateButtonOverrides",null);_.Y([_.C("topLevelIconsOnly"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gf.prototype,"buttonOverrides",null);_.Y([_.oE("#top-level-buttons-computed"),_.K("design:type",HTMLElement)],Gf.prototype,"topLevelButtonsContainer",void 0);_.Y([_.Ux(".top-level-buttons > *"),_.K("design:type",Array)],Gf.prototype,"topLevelButtons",void 0);
_.Y([_.oE("#flexible-item-buttons"),_.K("design:type",HTMLElement)],Gf.prototype,"flexibleItemButtonsContainer",void 0);_.Y([_.Ux("#flexible-item-buttons > *"),_.K("design:type",Array)],Gf.prototype,"flexibleItemButtons",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gf.prototype,"iconButtonColorChanged",null);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gf.prototype,"setupFlexibleMenu",null);_.Y([_.qm("topLevelIconsOnly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gf.prototype,"resetFlexibleItems",null);_.Y([_.k_("tonalOverride"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gf.prototype,"tonalOverrideChanged",null);
_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gf.prototype,"onPopupOpened",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gf.prototype,"onPopupClosed",null);_.Y([_.n6("yt-popup-canceled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gf.prototype,"onPopupCanceled",null);
_.T(Gf,"ytd-menu-renderer",function(){if(P4n===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);P4n=g}g=P4n;return g},{mode:2});var YK$;var Oua;_.$s=_.r(function(g){var u=g.data;var q=function(){if(u().icon)a:{var L={iconName:u().icon};for(var E=_.Bk().resolve(_.B$),y=_.N([12,24]),v=y.next();!v.done;v=y.next()){var J=v.value;v=Object.assign({},L,{iconStyle:"youtube_fill",iconSize:J});J=Object.assign({},L,{iconStyle:"youtube_outline",iconSize:J});if(E.resolveIcon(v)){L=v;break a}if(E.resolveIcon(J)){L=J;break a}}L=void 0}else L=void 0;return L};
g={};var Q={};return _.p("badge-shape",{class:_.Ty("yt-badge-shape",function(){return rdq(u().type)},(g["yt-badge-shape--overlay"]=function(){return u().isOverlay},g["yt-badge-shape--ads-include-dot"]=function(){return u().adsIncludeDot},g["yt-badge-shape--thumbnail-badge"]=function(){a:switch(u().type){case 17:case 18:case 19:var L=!0;
break a;default:L=!1}return L},g["yt-badge-shape--status-badge"]=function(){a:switch(u().type){case 12:case 13:case 14:case 15:case 16:var L=!0;
break a;default:L=!1}return L},g["yt-badge-shape--no-text"]=function(){return!u().text},g["yt-badge-shape--modern"]=function(){return u().modern||_.w("web_modern_badge_shape")},g["yt-badge-shape--typography"]=function(){a:{var L=u();
if(L.shouldInheritTypography)switch(L.type){case 0:case 1:case 9:L=!0;break a;default:L=!1}else L=!1}return!L},g)),
style:_.xH({"background-color":function(){var L;return(L=u().customColors)==null?void 0:L.backgroundColor}}),
role:function(){return u().accessibilityText?"img":void 0},
"aria-label":function(){return u().accessibilityText}},_.p(_.M,{cond:function(){return u().animation},
then:function(L){return _.p(_.B2,{className:"yt-badge-shape__icon",data:L,animationName:function(){return L().animationConfig.name||""}})}}),_.p(_.M,{cond:function(){var L;
return q()&&!((L=u())==null?0:L.animation)},
then:function(){return _.p("div",{class:"yt-badge-shape__icon"},_.p(_.Q0,{data:function(){return q()}}))}}),_.p("div",{class:_.Ty("yt-badge-shape__text",(Q["yt-badge-shape__text--clip-text-overflow"]=function(){return u().clipTextOverflow},Q["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(u().numBadgesInRow||0)>1},Q))},function(){var L;
return(L=u())==null?void 0:L.text}))},"Ea");
_.$s.idomCompat=!0;_.dL(_.$s,"badge-shape",{props:{data:_.H2}});var RP=function(){var g=_.X.apply(this,arguments)||this;g.systemIcons=_.w("kevlar_system_icons");g.animated=_.w("animated_live_badge_icon");g.useBadgeShape=_.w("web_badge_shape_defrag");return g};
_.A(RP,_.X);_.P=RP.prototype;_.P.addTooltips=function(){for(var g=_.Tr(this.hostElement).querySelectorAll(".badge"),u=0,q;q=g[u++];){var Q=this.repeatElement.itemForElement(q);q=_.Tr(q);q.lastChild&&q.lastChild.is==="tp-yt-paper-tooltip"&&q.removeChild(q.lastChild);if(Q=Q.metadataBadgeRenderer&&Q.metadataBadgeRenderer.tooltip){var L=_.CK("tp-yt-paper-tooltip");(0,_.K6)(L).textContent=Q;L.setAttribute("position","top");L.setAttribute("aria-hidden","true");q.appendChild(L)}}};
_.P.badgesChanged=function(){var g=this;_.A4().parkOrScheduleJob(function(){g.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.P.standaloneRoundedBadgeChanged=function(){var g=this.useRoundedBadge?this.useRoundedBadge:void 0;g&&(this.useRoundedBadge=g)};
_.P.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.computeStyle=function(g){_.w("kevlar_ytb_live_badges")&&g==="BADGE_STYLE_TYPE_LIVE_NOW"&&(g="badge-style-type-live-now-alternate");return g?g.toLowerCase().replace(/_/g,"-"):""};
_.P.computeRole=function(g){return this.computeAriaLabel(g)?"img":"status"};
_.P.computeAriaLabel=function(g){var u;return(g==null?void 0:(u=g.accessibilityData)==null?void 0:u.label)||(g==null?void 0:g.label)};
_.P.computeBadgeShape=function(g){if(g){var u,q;var Q=VlK(g.style);var L=XGK(g.style),E=g.label,y=((u=g.accessibilityData)==null?void 0:u.label)||g.label;a:switch(g.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":u=!0;break a;default:u=!1}var v=(q=g.icon)==null?void 0:q.iconType;a:switch(g.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":g=!0;break a;default:g=!1}Q={type:Q,brNzRatingBadgeType:L,text:E,accessibilityText:y,
isOverlay:u,icon:v!=="PREMIUM"?v:void 0,modern:_.w("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:g}}else Q={};return Q};
_.P.updateComputedBadges=function(g,u,q){var Q=this;(u=u?[u]:q?[q]:void 0)?this.computedBadges=u:this.computedBadges=g==null?void 0:g.filter(function(L){var E;if((E=L.metadataBadgeRenderer)==null?0:E.groups){E=!1;L=_.N(L.metadataBadgeRenderer.groups);for(var y=L.next();!y.done;y=L.next()){y=y.value;var v=void 0;E=E||((v=Q.hiddenBadgeGroups)==null?void 0:v.includes(y))}return!E}return!0})};
_.P.useFilledIcons=function(g){return _.w("kevlar_system_icons")&&(g==="AUDIO_BADGE"||g==="CHECK_CIRCLE_THICK"||g==="OFFICIAL_ARTIST_BADGE"||g==="SPONSORSHIP_STAR"||g==="PERSON_RADAR_FILLED"||g==="PERSON_RADAR")};
_.P.computeBadgeShapeStyle=function(g){return this.useBadgeShape?g==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||g==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":g==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.P.computeIcon=function(g){var u,q;g=g==null?void 0:(u=g.metadataBadgeRenderer)==null?void 0:(q=u.icon)==null?void 0:q.iconType;if(g!=="PREMIUM"&&g)return _.x9(g)};
_.P.computeStandaloneBadge=function(g){var u;g=g==null?void 0:(u=g.icon)==null?void 0:u.iconType;return g==="PREMIUM_STANDALONE"||g==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
RP.prototype.hiddenBadgeGroupsChanged=RP.prototype.hiddenBadgeGroupsChanged;RP.prototype.standaloneBadgeChanged=RP.prototype.standaloneBadgeChanged;RP.prototype.standaloneRoundedBadgeChanged=RP.prototype.standaloneRoundedBadgeChanged;RP.prototype.badgesChanged=RP.prototype.badgesChanged;_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"hidden",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],RP.prototype,"componentBehavior",void 0);
_.Y([_.a(),_.K("design:type",Array)],RP.prototype,"badges",void 0);_.Y([_.a(),_.K("design:type",Object)],RP.prototype,"topStandaloneBadge",void 0);_.Y([_.a(),_.K("design:type",Object)],RP.prototype,"bottomStandaloneBadge",void 0);_.Y([_.a(),_.K("design:type",Object)],RP.prototype,"computedBadges",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"mediumFontAdBadge",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"useRoundedBadge",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"largeFontAdBadge",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"overlayAd",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"overlayPremium",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"noDotAdBadge",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"collectionTruncate",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"isThumbnailBadge",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],RP.prototype,"wrapBadges",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Number)],RP.prototype,"numBadgesInRow",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],RP.prototype,"systemIcons",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],RP.prototype,"animated",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],RP.prototype,"useBadgeShape",void 0);_.Y([_.a({value:[]}),_.K("design:type",Array)],RP.prototype,"hiddenBadgeGroups",void 0);_.Y([_.oE("#repeat"),_.K("design:type",v$)],RP.prototype,"repeatElement",void 0);_.Y([_.qm("badges"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RP.prototype,"badgesChanged",null);
_.Y([_.qm("useRoundedBadge"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RP.prototype,"standaloneRoundedBadgeChanged",null);_.Y([_.qm("topStandaloneBadge","bottomStandaloneBadge"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RP.prototype,"standaloneBadgeChanged",null);_.Y([_.qm("hiddenBadgeGroups"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RP.prototype,"hiddenBadgeGroupsChanged",null);
_.Y([_.fE({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],RP);
var Khi=_.Te()(RP,"ytd-badge-supported-renderer",function(){if(Oua===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);Oua=g}g=Oua;return g},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:2});var wZ=function(){var g=_.X.apply(this,arguments)||this;g.iconType="STAR";g.plaMedium=_.w("enable_pla_resizing_for_desktop_medium");g.plaLarge=_.w("enable_pla_resizing_for_desktop_large");g.plaExtraLarge=_.w("enable_pla_resizing_for_desktop_extra_large");g.standardizeIconSize=_.w("kevlar_system_icons");g.mediaHoverOverlayInitialVisibility=_.w("enable_top_landscape_image_button_command_web");g.noBottomMargin=!1;g.thumbnailObjectFit="CONTAIN";g.thumbnailFitHeight=!0;g.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return g};
_.A(wZ,_.X);_.P=wZ.prototype;_.P.created=function(){this.activeView=new Tu(this.hostElement)};
_.P.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"}}}};
_.P.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",wZ.JSC$15090_DEFAULT_CLICK_LOCATION_BEHAVIOR,wZ.JSC$15090_CLICK_LOCATION_ID_MAP))};
_.P.onTap=function(g){this.onTapOrClick(g)};
_.P.onTapOrClick=function(g){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,g,!1)};
_.P.updateMediaBackgroundImage=function(){var g=this.get("data.image.thumbnail.thumbnails");g&&(g=_.Fh(g,0))&&_.x_(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+g+")"})};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var g=0;g<this.data.impressionEndpoints.length;g++){var u=this.data.impressionEndpoints[g];u.clickTrackingParams&&delete u.clickTrackingParams;_.Bk().resolve(_.Gy).resolveCommand(u,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var q;((q=this.data)==null?0:q.activeView)&&hF(this.activeView,this.data.activeView)}};
_.P.handleMuteAd=function(){};
_.P.attached=function(){var g=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ye(g.activeView)})};
_.P.detached=function(){_.w("stop_av_measurement_on_detach")&&Ye(this.activeView)};
_.z3.Object.defineProperties(wZ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.titleText)return"";var u;return _.Ug("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((u=this.data)==null?void 0:u.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.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 g;return!((g=this.data)==null||!g.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"}}});
wZ.prototype.onTap=wZ.prototype.onTap;wZ.prototype.dataChanged=wZ.prototype.dataChanged;
wZ.JSC$15090_CLICK_LOCATION_ID_MAP=_.w("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"]]);
wZ.JSC$15090_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.w("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"}];_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.M5),_.K("design:type",Object)],wZ.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],wZ.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],wZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.I([_.xK.YtActionHandlerBehavior]),_.K("design:type",Object)],wZ.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wZ.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],wZ.prototype,"clickCommand",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],wZ.prototype,"miniMode",void 0);_.Y([_.a(),_.K("design:type",String)],wZ.prototype,"iconType",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wZ.prototype,"plaMedium",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wZ.prototype,"plaLarge",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wZ.prototype,"plaExtraLarge",void 0);_.Y([_.C("data.titleText"),_.K("design:type",String),_.K("design:paramtypes",[])],wZ.prototype,"titleAriaLabel",null);_.Y([_.C("data.rating"),_.K("design:type",Object),_.K("design:paramtypes",[])],wZ.prototype,"getRating",null);_.Y([_.C("data.price"),_.K("design:type",Object),_.K("design:paramtypes",[])],wZ.prototype,"getPrice",null);
_.Y([_.C("data.thirdLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],wZ.prototype,"getThirdLine",null);_.Y([_.C("data.fourthLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],wZ.prototype,"getFourthLine",null);_.Y([_.C("data.fifthLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],wZ.prototype,"getFifthLine",null);_.Y([_.C("getRating"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wZ.prototype,"computeRatingHidden",null);
_.Y([_.C("getPrice"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wZ.prototype,"computePriceHidden",null);_.Y([_.C("getThirdLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wZ.prototype,"computeThirdLineHidden",null);_.Y([_.C("getFourthLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wZ.prototype,"computeFourthLineHidden",null);_.Y([_.C("getFifthLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wZ.prototype,"computeFifthLineHidden",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.energyIcon"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wZ.prototype,"hasEnergyIcon",null);_.Y([_.C("computePriceHidden","computeRatingHidden"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wZ.prototype,"computeSecondaryTextHidden",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wZ.prototype,"standardizeIconSize",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wZ.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wZ.prototype,"noBottomMargin",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.layout"),_.K("design:type",String),_.K("design:paramtypes",[])],wZ.prototype,"layout",null);_.Y([_.C("data.layout"),_.K("design:type",Object),_.K("design:paramtypes",[])],wZ.prototype,"mediaThumbnailWidth",null);
_.Y([_.C("layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wZ.prototype,"useRoundedBadge",null);_.Y([_.a(),_.K("design:type",String)],wZ.prototype,"thumbnailObjectFit",void 0);_.Y([_.a(),_.K("design:type",Object)],wZ.prototype,"thumbnailFitHeight",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wZ.prototype,"dataChanged",null);
_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],wZ.prototype,"onTap",null);_.Y([_.fE({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],wZ);
_.T(wZ,"ytd-display-ad-renderer",function(){if(YK$!==void 0)return YK$;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return YK$=g},{mode:1});var xOb;var B3Z;var zcn;var WhS=new Map;var n5$=!1;var cy=function(){var g=_.X.apply(this,arguments)||this;g.DEFAULT_TOOLTIP_OFFSET="10";g.TOOLTIP_OFFSET_NO_BANNER="-8";g.badges=null;g.noEndpoints=!1;g.wrapText=!1;g.forceVerified=!1;g.tooltipPosition="top";g.compactStyle=!1;g.height=0;g.lineHeight=0;return g};
_.A(cy,_.X);_.P=cy.prototype;_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.P.attached=function(){var g=this;this.observer=new MutationObserver(function(u,q){g.handleResized();q.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.P.detached=function(){this.observer&&this.observer.disconnect()};
_.P.logTooltipEvent=function(){_.w("kevlar_wiz_tooltip_event_killswitch")||n5$||(_.T3f("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),n5$=!0)};
_.P.handleWindowResized=function(){this.handleResized()};
_.P.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")))};
_.P.onHeightChanged=function(){if(this.verified){var g=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.FR("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=g:this.textContainerEl.style.marginRight=g}};
_.P.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.FR("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.P.handleResized=function(){var g=this;this.verified&&_.Hv.addLowPriorityJob(function(){g.fitBackgroundToText();var u=getComputedStyle(g.hostElement).lineHeight;u&&(u=u.match(/\d+/))&&u.length&&(g.lineHeight=Number(u[0]));g.height=g.lineHeight&&!g.wrapText?g.lineHeight:g.textEl.offsetHeight})};
_.P.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var g=document.createRange(),u=_.Tr(this.textEl).children;u.length>0?g.selectNodeContents(u[0]):g.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(g.getBoundingClientRect().width)+"px"}};
_.P.computeChannelBadgeStyle=function(g){var u;if((g==null?0:(u=g.runs)==null?0:u.length)&&g.runs[0].textColor)return"--ytd-badge-icon-color:"+_.JR(g.runs[0].textColor)+";"};
_.z3.Object.defineProperties(cy.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"?_.I7(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var g=this.get("badges.0.metadataBadgeRenderer.tooltip");if(g)return g}return _.iR(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
cy.prototype.onLineHeightChanged=cy.prototype.onLineHeightChanged;cy.prototype.onHeightChanged=cy.prototype.onHeightChanged;cy.prototype.onChannelNameChanged=cy.prototype.onChannelNameChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],cy.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cy.prototype,"badges",void 0);_.Y([_.a(),_.K("design:type",Object)],cy.prototype,"channelName",void 0);
_.Y([_.a(),_.K("design:type",Object)],cy.prototype,"noEndpoints",void 0);_.Y([_.a(),_.K("design:type",Object)],cy.prototype,"wrapText",void 0);_.Y([_.a(),_.K("design:type",Object)],cy.prototype,"forceVerified",void 0);_.Y([_.a(),_.K("design:type",Object)],cy.prototype,"tooltipPosition",void 0);_.Y([_.a(),_.K("design:type",String)],cy.prototype,"tooltip",void 0);_.Y([_.a(),_.K("design:type",Boolean)],cy.prototype,"hasChannelArt",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],cy.prototype,"compactStyle",void 0);_.Y([_.oE("#text-container"),_.K("design:type",HTMLElement)],cy.prototype,"textContainerEl",void 0);_.Y([_.oE("#text"),_.K("design:type",Object)],cy.prototype,"textEl",void 0);_.Y([_.oE("#verified-tooltip"),_.K("design:type",HTMLElement)],cy.prototype,"verifiedTooltip",void 0);_.Y([_.a(),_.K("design:type",Object)],cy.prototype,"height",void 0);
_.Y([_.a(),_.K("design:type",Object)],cy.prototype,"lineHeight",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("badges","forceVerified"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cy.prototype,"verified",null);_.Y([_.C("badges","verified"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cy.prototype,"hideBadges",null);_.Y([_.C("channelName"),_.K("design:type",Object),_.K("design:paramtypes",[])],cy.prototype,"formattedName",null);
_.Y([_.C("badges","verified","formattedName"),_.K("design:type",String),_.K("design:paramtypes",[])],cy.prototype,"tooltipText",null);_.Y([_.C("hasChannelArt"),_.K("design:type",String),_.K("design:paramtypes",[])],cy.prototype,"tooltipOffset",null);_.Y([_.k_("channelName"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cy.prototype,"onChannelNameChanged",null);
_.Y([_.k_("height"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cy.prototype,"onHeightChanged",null);_.Y([_.k_("lineHeight","height"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cy.prototype,"onLineHeightChanged",null);_.Y([_.fE({is:"ytd-channel-name",disableElementRegistration:!0})],cy);
_.T(cy,"ytd-channel-name",function(){if(zcn!==void 0)return zcn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return zcn=g},{mode:2});var Hy=function(){var g=_.X.apply(this,arguments)||this;g.standardizeIconSize=_.w("kevlar_system_icons");return g};
_.A(Hy,_.X);Hy.prototype.basicPaletteChanged=function(){var g;(g=this.data.color)!=null&&g.basicColorPaletteData&&_.Le(this.hostElement,this.data.color.basicColorPaletteData)};
Hy.prototype.useFilledIcons=function(g){return _.w("kevlar_system_icons")&&(g==="CHECK_CIRCLE_THICK"||g==="OFFICIAL_ARTIST_BADGE")};
_.z3.Object.defineProperties(Hy.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return this.data.authorCreator||((g=this.data)==null?void 0:(u=g.color)==null?void 0:(q=u.basicColorPaletteData)==null?void 0:q.backgroundColor)}}});
Hy.prototype.basicPaletteChanged=Hy.prototype.basicPaletteChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Hy.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Hy.prototype,"standardizeIconSize",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.authorUnifiedVerified"),_.K("design:type",Object),_.K("design:paramtypes",[])],Hy.prototype,"verified",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Hy.prototype,"creator",null);_.Y([_.k_("data.color.basicColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hy.prototype,"basicPaletteChanged",null);_.Y([_.fE({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Hy);
_.T(Hy,"ytd-author-comment-badge-renderer",function(){if(B3Z!==void 0)return B3Z;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return B3Z=g},{mode:1});var ktX;var AP=function(){return _.X.apply(this,arguments)||this};
_.A(AP,_.X);AP.prototype.computeThumbnailWidth=function(g){if(g==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],AP.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],AP.prototype,"icon",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],AP.prototype,"surface",void 0);
_.Y([_.a({reflectToAttribute:!0,value:_.w("enable_shrink_image_size_on_web_posts_singleton")}),_.K("design:type",Boolean)],AP.prototype,"searchSxsUx",void 0);_.Y([_.a({reflectToAttribute:!0,value:_.w("enable_community_page_on_desktop")}),_.K("design:type",Boolean)],AP.prototype,"useSmallerPostImageAttachments",void 0);_.Y([_.fE({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],AP);
_.T(AP,"ytd-backstage-image-renderer",function(){if(ktX!==void 0)return ktX;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ktX=g},{mode:1});var SKR;var Z5=function(){var g=_.X.apply(this,arguments)||this;g.isLoading=!1;g.selectedItemIndex=-1;return g};
_.A(Z5,_.X);_.P=Z5.prototype;_.P.computeIsChannelOwner=function(g){if(!g)return!0;g=g[0];return!(g&&(g.signinEndpoint||g.selectServiceEndpoint))};
_.P.computeIsImagePoll=function(g){return(g==null?void 0:g.type)==="POLL_TYPE_IMAGE"};
_.P.computeIsTotalVotesDisabled=function(g){return!(g==null?0:g.totalVotes)};
_.P.thumbnailSrc=function(g){var u,q,Q,L;return(g==null?0:(u=g.thumbnails)==null?0:(q=u[0])==null?0:q.url)?_.SO((Q=g.thumbnails)==null?void 0:(L=Q[0])==null?void 0:L.url):void 0};
_.P.progressWidth=function(g){return"width:"+(g?g*100:0)+"%;"};
_.P.textAreaWidth=function(g){return this.isImagePoll?null:"width:"+(g?g*100:0)+"%;"};
_.P.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.P.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var g=this.data.choices,u=0;u<g.length;u++)if(g[u].selected){this.selectedItemIndex=u;break}};
_.P.onPopupClosed=function(g,u){g=Number(this.pollVotes.selected);u.confirmed&&(this.selectChoice(g,!1),_.YJ(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.P.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.P.onYtCommentPollRevert=function(g,u){u&&(this.selectChoice(u.selectedChoiceIndex,!0),this.set("data.totalVotes",u.totalVotes))};
_.P.onYtServiceRequestSent=function(g,u){if(u.actions)for(g=0;g<u.actions.length;g++){var q=u.actions[g];_.c(q,uk)&&this.set("data.totalVotes",_.c(q,uk).totalVotes)}};
_.P.onYtServiceRequestCompleted=function(g){var u=this.get("detail.data.actionResults.0.feedback",g);g=this.get("detail.data.actionResults.0.status",g);if(u==="FEEDBACK_DESELECT"||u==="FEEDBACK_SELECT")this.isLoading=!1,g==="STATUS_FAILED"?_.hJ(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.P.getEndpoint=function(g,u){return u===g?this.data.choices[u].deselectServiceEndpoint||null:this.data.choices[g].selectServiceEndpoint||null};
_.P.selectChoice=function(g,u){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var q=0;q<this.data.choices.length;q++){var Q;if(g===this.selectedItemIndex){var L=!1;var E=Q=null}else Q=(L=q===g)?this.data.choices[q].voteRatioIfSelected:this.data.choices[q].voteRatioIfNotSelected,E=L?this.data.choices[q].votePercentageIfSelected:this.data.choices[q].votePercentageIfNotSelected;this.set("data.choices."+q+".voteRatio",Q);
this.set("data.choices."+q+".votePercentage",E);this.set("data.choices."+q+".selected",L)}u||(this.isLoading=!0,(u=this.getEndpoint(g,this.selectedItemIndex))&&_.Bk().resolve(_.Gy).resolveCommand(u,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===g?-1:g};
_.z3.Object.defineProperties(Z5.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Z5.prototype.onYtServiceRequestCompleted=Z5.prototype.onYtServiceRequestCompleted;Z5.prototype.onYtServiceRequestSent=Z5.prototype.onYtServiceRequestSent;Z5.prototype.onYtCommentPollRevert=Z5.prototype.onYtCommentPollRevert;Z5.prototype.onPopupClosed=Z5.prototype.onPopupClosed;Z5.prototype.dataChanged=Z5.prototype.dataChanged;_.Y([_.I(_.HI),_.K("design:type",Object)],Z5.prototype,"paperItemBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],Z5.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Z5.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Z5.prototype,"isLoading",void 0);_.Y([_.a({computed:"computeIsChannelOwner(data.choices)"}),_.K("design:type",Boolean)],Z5.prototype,"isChannelOwner",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.K("design:type",Boolean)],Z5.prototype,"isImagePoll",void 0);_.Y([_.a({computed:"computeIsTotalVotesDisabled(data)"}),_.K("design:type",Boolean)],Z5.prototype,"isTotalVotesDisabled",void 0);_.Y([_.a(),_.K("design:type",Object)],Z5.prototype,"previousPollInfo",void 0);_.Y([_.a(),_.K("design:type",Object)],Z5.prototype,"selectedItemIndex",void 0);_.Y([_.oE("#poll-votes"),_.K("design:type",Object)],Z5.prototype,"pollVotes",void 0);
_.Y([_.C("isChannelOwner"),_.K("design:type",Object),_.K("design:paramtypes",[])],Z5.prototype,"endpointStyle",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Z5.prototype,"dataChanged",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Z5.prototype,"onPopupClosed",null);
_.Y([_.n6("yt-comment-poll-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Z5.prototype,"onYtCommentPollRevert",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],Z5.prototype,"onYtServiceRequestSent",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Z5.prototype,"onYtServiceRequestCompleted",null);_.Y([_.fE({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Z5);
_.T(Z5,"ytd-backstage-poll-renderer",function(){if(SKR!==void 0)return SKR;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return SKR=g},{mode:2});var o50;var UOb={autoplay:!1,loop:!1},gNa={simpleText:""},lq=function(){var g=_.X.apply(this,arguments)||this;g.isLoading=!1;g.usesPanelLockup=!1;g.selectedItemIndex=-1;g.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},UOb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});g.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},UOb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});g.correctnessAnimationProps=[];g.correctnessAnimationRefs=[];return g};
_.A(lq,_.X);_.P=lq.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.P.computeIsChannelOwner=function(g){if(!g)return!0;g=g[0];return!(g&&(g.signinEndpoint||g.selectServiceEndpoint))};
_.P.computeIsTotalVotesDisabled=function(g){return!(g==null?0:g.totalVotes)};
_.P.computeIsImageQuiz=function(g){return(g==null?void 0:g.type)==="POLL_TYPE_IMAGE"};
_.P.onExplanationChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var g=this.data.choices;if(g){this.maybeInitializeQuizLotties(g);for(var u=0;u<g.length;u++)if(g[u].isSelected||this.isChannelOwner&&g[u].isCorrect){this.selectedItemIndex=u;return}this.selectedItemIndex=-1}}};
_.P.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var g=this.selectedItemIndex,u=Number(this.quizVotes.selected);this.selectChoice(u);this.sendVoteAction(u,g);this.quizVotes.selected=-1;var q;g=!((q=this.data)==null?0:q.enableAnimation);this.maybePlayAnswerAnimations(g)}};
_.P.onYtCommentPollRevert=function(g,u){u&&(this.selectChoice(u.selectedChoiceIndex),this.set("data.totalVotes",u.totalVotes))};
_.P.onYtServiceRequestSent=function(g,u){if(u.actions)for(g=_.N(u.actions),u=g.next();!u.done;u=g.next())(u=_.c(u.value,uk))&&this.set("data.totalVotes",u.totalVotes)};
_.P.onYtServiceRequestCompleted=function(g){var u=this.get("detail.data.actionResults.0.feedback",g);g=this.get("detail.data.actionResults.0.status",g);if(u==="FEEDBACK_DESELECT"||u==="FEEDBACK_SELECT")this.isLoading=!1,g==="STATUS_FAILED"?_.hJ(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.P.getAnimationPropsForChoiceIndex=function(g,u){return u[g]};
_.P.maybePlayAnswerAnimations=function(g){g=g===void 0?!1:g;var u;if((u=this.data)!=null&&u.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){u=_.N(this.correctnessAnimationRefs);for(var q=u.next();!q.done;q=u.next()){var Q=void 0,L=void 0;(Q=q.value)==null||(L=Q.lottieEl)==null||L.stop()}if(!(this.selectedItemIndex<0)){u=0;g&&(u=this.isCorrect?37:25);var E,y;(E=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(y=E.lottieEl)==null||y.goToAndPlay(g?u:0,!0);if(!(this.isCorrect||
(E=this.data.choices.findIndex(function(t){return t.isCorrect}),E<0))){var v,J;
(J=(v=this.correctnessAnimationRefs[E])==null?void 0:v.lottieEl)==null||J.goToAndPlay(37,!0);var f;v=(f=this.fadeContainers)==null?void 0:f.item(E);!g&&v&&this.fadeIn(v)}}}};
_.P.thumbnailSrc=function(g){var u,q,Q,L;return(g==null?0:(u=g.thumbnails)==null?0:(q=u[0])==null?0:q.url)?_.SO((Q=g.thumbnails)==null?void 0:(L=Q[0])==null?void 0:L.url):void 0};
_.P.a11yVotedText=function(g,u){var q,Q,L=((q=this.data)==null?void 0:(Q=q.correctVotedText)==null?void 0:Q.simpleText)||"",E,y;q=((E=this.data)==null?void 0:(y=E.votedText)==null?void 0:y.simpleText)||"";if(!u)return"";var v,J;if((v=this.data)==null?0:(J=v.choices)==null?0:J[g].isCorrect)return L;var f,t;return((f=this.data)==null?0:(t=f.choices)==null?0:t[g].isSelected)?q:""};
_.P.getEndpoint=function(g,u){return u===g?this.data.choices[g].deselectServiceEndpoint||null:this.data.choices[g].selectServiceEndpoint||null};
_.P.sendVoteAction=function(g,u){if(g=this.getEndpoint(g,u))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(g)};
_.P.selectChoice=function(g){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var u=0;u<this.data.choices.length;u++)this.set("data.choices."+u+".isSelected",g===this.selectedItemIndex?!1:u===g);this.selectedItemIndex=this.selectedItemIndex===g?-1:g};
_.P.maybeInitializeQuizLotties=function(g){var u=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=g.map(function(q){return{animationConfig:q.isCorrect?u.baseCorrectLottiePlayerAnimationConfig:u.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){u.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(q){return q.animationRef||{}})};
_.P.fadeIn=function(g){g.classList.add("fade-in");_.Xh(_.Hv,function(){g.classList.remove("fade-in")},900)};
_.z3.Object.defineProperties(lq.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.iR(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 g,u;return((g=this.data)==null?void 0:(u=g.choices)==null?void 0:u.some(function(q){return q.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null||!g.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?gNa:this.data.choices[this.selectedItemIndex].explanation||gNa}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null||!g.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
lq.prototype.onYtServiceRequestCompleted=lq.prototype.onYtServiceRequestCompleted;lq.prototype.onYtServiceRequestSent=lq.prototype.onYtServiceRequestSent;lq.prototype.onYtCommentPollRevert=lq.prototype.onYtCommentPollRevert;lq.prototype.dataChanged=lq.prototype.dataChanged;lq.prototype.onExplanationChanged=lq.prototype.onExplanationChanged;_.Y([_.I(_.HI),_.K("design:type",Object)],lq.prototype,"paperItemBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],lq.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.iw.YtTaskEmitterBehavior),_.K("design:type",Object)],lq.prototype,"ytTaskEmitterBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],lq.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],lq.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],lq.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",Object)],lq.prototype,"usesPanelLockup",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.K("design:type",Boolean)],lq.prototype,"isChannelOwner",void 0);_.Y([_.a({computed:"computeIsTotalVotesDisabled(data)"}),_.K("design:type",Boolean)],lq.prototype,"isTotalVotesDisabled",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.K("design:type",Boolean)],lq.prototype,"isImageQuiz",void 0);_.Y([_.a(),_.K("design:type",Object)],lq.prototype,"previousQuizInfo",void 0);_.Y([_.a(),_.K("design:type",Object)],lq.prototype,"selectedItemIndex",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data","usesPanelLockup"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lq.prototype,"shouldUseModernUi",null);
_.Y([_.Ux(".fade-container"),_.K("design:type",Object)],lq.prototype,"fadeContainers",void 0);_.Y([_.a(),_.K("design:type",Array)],lq.prototype,"correctnessAnimationProps",void 0);_.Y([_.C("explanation","showCorrectAnswer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lq.prototype,"showExplanation",null);_.Y([_.C("isChannelOwner","isAttempted"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lq.prototype,"showCorrectAnswer",null);
_.Y([_.C("isChannelOwner","isAttempted","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lq.prototype,"isQuizAnsweringDisabled",null);_.Y([_.C("isQuizAnsweringDisabled"),_.K("design:type",Object),_.K("design:paramtypes",[])],lq.prototype,"endpointStyle",null);_.Y([_.C("data","selectedItemIndex"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lq.prototype,"isAttempted",null);
_.Y([_.C("data","selectedItemIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],lq.prototype,"explanation",null);_.Y([_.C("data","selectedItemIndex"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lq.prototype,"isCorrect",null);_.Y([_.oE("ytd-expander"),_.K("design:type",Object)],lq.prototype,"expander",void 0);_.Y([_.oE("#quiz-votes"),_.K("design:type",Object)],lq.prototype,"quizVotes",void 0);
_.Y([_.k_("explanation"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lq.prototype,"onExplanationChanged",null);_.Y([_.k_("data","isChannelOwner"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lq.prototype,"dataChanged",null);_.Y([_.n6("yt-comment-quiz-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],lq.prototype,"onYtCommentPollRevert",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],lq.prototype,"onYtServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],lq.prototype,"onYtServiceRequestCompleted",null);_.Y([_.fE({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],lq);
_.T(lq,"ytd-backstage-quiz-renderer",function(){if(o50!==void 0)return o50;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return o50=g},{mode:1});var ujZ;var IP=function(){return _.X.apply(this,arguments)||this};
_.A(IP,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],IP.prototype,"data",void 0);_.Y([_.fE({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],IP);
_.T(IP,"ytd-post-uploaded-video-renderer",function(){if(ujZ!==void 0)return ujZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ujZ=g},{mode:1});var qX8;var iq=function(){return _.X.apply(this,arguments)||this};
_.A(iq,_.X);iq.prototype.useFilledIcons=function(g){return g==="SPONSORSHIP_STAR"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],iq.prototype,"data",void 0);_.Y([_.fE({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],iq);
var QX8=_.Te()(iq,"ytd-sponsors-only-badge-renderer",function(){if(qX8===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);qX8=g}g=qX8;return g},{allowedProps:["data"],
mode:1});var LYi;var Cl=function(){return _.X.apply(this,arguments)||this};
_.A(Cl,_.X);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Cl.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Cl.prototype,"data",void 0);_.Y([_.fE({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Cl);
_.T(Cl,"ytd-child-video-renderer",function(){if(LYi!==void 0)return LYi;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return LYi=g},{mode:1});var ENZ;var PnH;var bq=function(){var g=_.X.apply(this,arguments)||this;g.size=0;g.fallbackImageSize={height:void 0,width:9999};g.webModernCollections=!1;return g};
_.A(bq,_.X);_.P=bq.prototype;_.P.computeBlurredImageSize=function(g){return g?{height:g*2,width:g*2}:this.fallbackImageSize};
_.P.computeImageSize=function(g){return g?{height:g,width:g}:this.fallbackImageSize};
_.P.computeObjectFit=function(g){return g?"FILL":"CONTAIN"};
_.P.computePreserve=function(g){return g?!0:!1};
_.P.setBackground=function(){var g,u;if((g=this.data)==null?0:(u=g.thumbnail)==null?0:u.sampledThumbnailColor)g=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+g.red+","+g.green+","+g.blue+",1)"};
bq.prototype.setBackground=bq.prototype.setBackground;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],bq.prototype,"watchFeedThumbnail",void 0);_.Y([_.a(),_.K("design:type",Object)],bq.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],bq.prototype,"size",void 0);
_.Y([_.a({computed:"computeBlurredImageSize(size)"}),_.K("design:type",Object)],bq.prototype,"blurredImageSize",void 0);_.Y([_.a({computed:"computeImageSize(size)"}),_.K("design:type",Object)],bq.prototype,"imageSize",void 0);_.Y([_.a({computed:"computePreserve(size)"}),_.K("design:type",String)],bq.prototype,"preserve",void 0);_.Y([_.a({computed:"computeObjectFit(size)"}),_.K("design:type",String)],bq.prototype,"objectFit",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],bq.prototype,"webModernCollections",void 0);_.Y([_.k_("data.thumbnail.sampledThumbnailColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bq.prototype,"setBackground",null);_.Y([_.fE({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],bq);
_.T(bq,"ytd-playlist-custom-thumbnail-renderer",function(){if(PnH!==void 0)return PnH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return PnH=g},{mode:1});var Nei;var dZ=function(){return _.X.apply(this,arguments)||this};
_.A(dZ,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],dZ.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],dZ.prototype,"width",void 0);_.Y([_.fE({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],dZ);
_.T(dZ,"ytd-playlist-video-thumbnail-renderer",function(){if(Nei!==void 0)return Nei;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Nei=g},{mode:1});var sX0;var FN=function(){return _.X.apply(this,arguments)||this};
_.A(FN,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],FN.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],FN.prototype,"width",void 0);_.Y([_.fE({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],FN);
_.T(FN,"ytd-show-custom-thumbnail-renderer",function(){if(sX0!==void 0)return sX0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return sX0=g},{mode:1});var y3a;var mA=function(){return _.X.apply(this,arguments)||this};
_.A(mA,_.X);mA.prototype.useFilledIcons=function(g){return g==="MUSIC"||g==="COURSE"};
mA.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=f6(this.overlayColor,"0.8");else if(this.overlayColor){var g=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+g.red+","+g.green+","+g.blue+",0.8)"}};
_.z3.Object.defineProperties(mA.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)}}});
mA.prototype.overlayColorChanged=mA.prototype.overlayColorChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],mA.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],mA.prototype,"overlayColor",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.icon","data.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],mA.prototype,"overlayStyle",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.icon","data.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],mA.prototype,"overlayTextStyle",null);_.Y([_.k_("overlayColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mA.prototype,"overlayColorChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],mA);
_.T(mA,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(y3a!==void 0)return y3a;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return y3a=g},{mode:1});var vNo;var aP=function(){var g=_.X.apply(this,arguments)||this;g.active=!1;return g};
_.A(aP,_.X);aP.prototype.computeIsSpinnerHidden=function(g){return(g==null?void 0:g.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
aP.prototype.computeOverlayIcon=function(g){return(g==null?void 0:g.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(g==null?void 0:g.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],aP.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],aP.prototype,"active",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],aP);
_.T(aP,"ytd-thumbnail-overlay-downloading-renderer",function(){if(vNo!==void 0)return vNo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return vNo=g},{mode:1});var Dvb;var VH=function(){return _.X.apply(this,arguments)||this};
_.A(VH,_.X);_.z3.Object.defineProperties(VH.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],VH.prototype,"data",void 0);_.Y([_.C("data.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],VH.prototype,"text",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],VH);
_.T(VH,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(Dvb!==void 0)return Dvb;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Dvb=g},{mode:1});var psa,J3b=function(){if(psa!==void 0)return psa;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return psa=g};var XN=function(){return _.X.apply(this,arguments)||this};
_.A(XN,_.X);_.z3.Object.defineProperties(XN,{template:{configurable:!0,enumerable:!0,get:function(){return J3b()}}});
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],XN.prototype,"animateEqualizer",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],XN);_.Te()(XN,"ytd-thumbnail-overlay-equalizer",function(){return J3b()},{allowedProps:["animateEqualizer"],
mode:1});var jXR;var rZ=function(){var g=_.X.apply(this,arguments)||this;g.nowPlayingBadge=_.w("web_now_playing_badge");g.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return g};
_.A(rZ,_.X);rZ.prototype.activeChanged=function(){var g=this;_.w("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.xt(this,function(){_.hJ(g.hostElement,"yt-playlist-lockup-now-playing-active",g)})};
rZ.prototype.onMiniplayerPlayStateChanged=function(g){var u,q=(u=_.c(_.Uw().currentEndpoint,_.l1))==null?void 0:u.videoId;this.isVideoPlaying=g&&(_.w("web_limit_now_playing_animation_killswitch")||this.videoId===q)};
rZ.prototype.activeChanged=rZ.prototype.activeChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],rZ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],rZ.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],rZ.prototype,"isVideoPlaying",void 0);_.Y([_.a(),_.K("design:type",String)],rZ.prototype,"videoId",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],rZ.prototype,"equalizerOnly",void 0);_.Y([_.a(),_.K("design:type",Boolean)],rZ.prototype,"isActive",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rZ.prototype,"nowPlayingBadge",void 0);_.Y([_.k_("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rZ.prototype,"activeChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],rZ);
_.T(rZ,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(jXR!==void 0)return jXR;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return jXR=g},{mode:1});var fob;var Wy=function(){return _.X.apply(this,arguments)||this};
_.A(Wy,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Wy.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Wy);
_.T(Wy,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(fob!==void 0)return fob;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return fob=g},{mode:2});var ML2;var Tf=function(){return _.X.apply(this,arguments)||this};
_.A(Tf,_.X);Tf.prototype.onDurationChanged=function(){var g,u;_.Tr(this.hostElement).querySelector("#progress").style.width=((u=(g=this.data)==null?void 0:g.percentDurationWatched)!=null?u:0)+"%"};
Tf.prototype.onDurationChanged=Tf.prototype.onDurationChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Tf.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Tf.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Tf.prototype,"isLive",void 0);_.Y([_.k_("data.percentDurationWatched"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tf.prototype,"onDurationChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Tf);
_.T(Tf,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(ML2!==void 0)return ML2;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ML2=g},{mode:1});var tLZ;var hP=function(){var g=_.X.apply(this,arguments)||this;g.bottomPanel=!1;g.richGridOverlay=!1;g.watchFeedOverlay=!1;g.isCompact=!1;return g};
_.A(hP,_.X);hP.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.z3.Object.defineProperties(hP.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:(u=g.icon)==null?void 0:u.iconType)==="PLAY_ALL"&&_.w("kevlar_system_icons")}}});
hP.prototype.widthChanged=hP.prototype.widthChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],hP.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],hP.prototype,"width",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],hP.prototype,"bottomPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],hP.prototype,"richGridOverlay",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],hP.prototype,"watchFeedOverlay",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],hP.prototype,"isCompact",void 0);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hP.prototype,"isIconFilled",null);_.Y([_.k_("width","watchFeedOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hP.prototype,"widthChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],hP);
_.T(hP,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(tLZ!==void 0)return tLZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return tLZ=g},{mode:1});var eR5;var G5W=["CLIP","SHORTS"],Ys=function(){var g=_.X.apply(this,arguments)||this;g.animated=_.w("animated_live_badge_icon");g.hasIcon=!1;g.updateTimerIntervalId=0;g.timeSinceLive=0;return g};
_.A(Ys,_.X);_.P=Ys.prototype;_.P.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.P.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.P.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.P.hasIconOrText=function(){var g,u;return!!(((g=this.data)==null?0:g.icon)||((u=this.data)==null?0:u.text))};
_.P.initializeLiveBadgeTimer=function(){var g=this,u,q=(u=this.liveBadgeData)==null?void 0:u.startTimestampSec;if(q&&this.canShowLiveBadgeTimer()){var Q;u=Number((Q=this.liveBadgeData)==null?void 0:Q.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(q);this.updateTimerIntervalId=_.qu(function(){g.canShowLiveBadgeTimer()?g.timeSinceLive++:(g.timeSinceLive=0,window.clearInterval(g.updateTimerIntervalId))},u)}else this.timeSinceLive=0};
_.P.canShowLiveBadgeTimer=function(){var g=Date.now(),u,q;return g<(Number((u=this.liveBadgeData)==null?void 0:u.endTimestampSec)-1)*1E3&&g>Number((q=this.liveBadgeData)==null?void 0:q.startTimestampSec)*1E3};
_.z3.Object.defineProperties(Ys.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.hcM(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 g;return(g=this.data)==null?void 0:g.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 G5W.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Ys.prototype.initializeLiveBadgeTimer=Ys.prototype.initializeLiveBadgeTimer;Ys.prototype.dataChanged=Ys.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Ys.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ys.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],Ys.prototype,"icon",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ys.prototype,"animated",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.K("design:type",Boolean)],Ys.prototype,"hideTimeStatus",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ys.prototype,"hasIcon",void 0);_.Y([_.a(),_.K("design:type",Object)],Ys.prototype,"timeSinceLive",void 0);_.Y([_.C("data","timeSinceLive"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ys.prototype,"badgeShapeData",null);
_.Y([_.C("data","overlayType"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ys.prototype,"hideBadgeShape",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ys.prototype,"dataChanged",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.style"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ys.prototype,"overlayStyle",null);
_.Y([_.C("data.liveBadgeData"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ys.prototype,"liveBadgeData",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.type"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ys.prototype,"overlayType",null);_.Y([_.C("overlayType","overlayStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ys.prototype,"useFilledIcon",null);
_.Y([_.qm("liveBadgeData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ys.prototype,"initializeLiveBadgeTimer",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Ys);
_.T(Ys,"ytd-thumbnail-overlay-time-status-renderer",function(){if(eR5!==void 0)return eR5;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return eR5=g},{mode:2});var $vH;var OC=function(){return _.X.apply(this,arguments)||this};
_.A(OC,_.X);OC.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"}}}}};
OC.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(g){if(this.hasPlaybackProgressBar)return{percentDurationWatched:g.percentDurationWatched}};
OC.prototype.computeHasPlaybackProgressBar=function(g){return!!g.percentDurationWatched&&g.percentDurationWatched>0};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],OC.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.K("design:type",Boolean)],OC.prototype,"hasPlaybackProgressBar",void 0);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],OC);
_.T(OC,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if($vH!==void 0)return $vH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return $vH=g},{mode:1});var RRa;var wsb=_.r(function(g){var u=g.data;var q=g.children;var Q=function(){return!!u().doubleStack},L=function(){return!!u().includeStackHeight};
return _.p("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!u().experimentEnabled}},_.p(_.M,{cond:u,
then:function(){var E={};return _.p(_.U9,null,_.p(_.M,{cond:L,then:function(){var y={};return _.p("div",{class:_.Ty("ytCollectionsStackSpacer",(y.ytCollectionsStackSpacerDoubleStack=Q,y))})}}),_.p("div",{class:_.Ty((E.ytCollectionsStackRelativeStack=L,E))},_.p(_.M,{cond:Q,
then:function(){var y={};return _.p("div",{class:_.Ty("ytCollectionsStackCollectionStack2",function(){return u().customClassName2ndStack},(y.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return u().enableResponsiveMode},y)),
style:_.xH({"background-color":function(){return Ouq(u())}})})}}),_.p("div",{class:_.Ty("ytCollectionsStackCollectionStack1",function(){return u().customClassName1stStack},function(){return YKq(u().thumbnailSize?u().thumbnailSize:"medium")}),
style:_.xH({"background-color":function(){return Ouq(u())}})}),q))}}))},"Fa");_.dL(wsb,"yt-collections-stack",{props:{data:_.H2}});var Kl=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};g.webModernCollections=!1;g.isSearch=!1;g.isDoubleStack=!1;g.thumbnailSize="medium";return g};
_.A(Kl,_.X);_.P=Kl.prototype;
_.P.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]]"}}}}}};
_.P.getThumbnailDetails=function(g){if(g!=null&&g.thumbnailRenderer){var u=g.thumbnailRenderer,q;if((q=u.playlistVideoThumbnailRenderer)==null?0:q.thumbnail)return u.playlistVideoThumbnailRenderer.thumbnail;var Q;if((Q=u.playlistCustomThumbnailRenderer)==null?0:Q.thumbnail)return u.playlistCustomThumbnailRenderer.thumbnail;g=g.thumbnailRenderer;var L;if((L=g.showCustomThumbnailRenderer)==null?0:L.thumbnail)return g.showCustomThumbnailRenderer.thumbnail}};
_.P.computeOverlayColor=function(g){var u,q;if((u=this.getThumbnailDetails(g))==null?0:(q=u.darkColorPalette)==null?0:q.section2Color)return this.getThumbnailDetails(g).darkColorPalette.section2Color;var Q;return(Q=this.getThumbnailDetails(g))==null?void 0:Q.sampledThumbnailColor};
_.P.computeWebModernCollections=function(g){if(g==null||!g.thumbnailOverlays)return!1;g=_.N(g.thumbnailOverlays);for(var u=g.next();!u.done;u=g.next()){var q=void 0;if((q=u.value)==null?0:q.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.P.computeNavigationEndpoint=function(g){return HKT(g==null?void 0:g.navigationEndpoint)};
_.z3.Object.defineProperties(Kl.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var g=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:g==null?void 0:g.sampledThumbnailColor,vibrantColorPalette:g==null?void 0:g.vibrantColorPalette,darkColorPalette:g==null?void 0:g.darkColorPalette,experimentEnabled:!0}}}});
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Kl.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(CNZ),_.K("design:type",Object)],Kl.prototype,"ytdThumbnailBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Kl.prototype,"componentBehavior",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],Kl.prototype,"watchFeedThumbnail",void 0);_.Y([_.a(),_.K("design:type",Number)],Kl.prototype,"customThumbnailSize",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],Kl.prototype,"hideAria",void 0);_.Y([_.a(),_.K("design:type",Object)],Kl.prototype,"data",void 0);_.Y([_.a({computed:"computeOverlayColor(data)"}),_.K("design:type",Object)],Kl.prototype,"overlayColor",void 0);
_.Y([_.a({computed:"computeWebModernCollections(data)"}),_.K("design:type",Object)],Kl.prototype,"webModernCollections",void 0);_.Y([_.a({computed:"computeNavigationEndpoint(data)"}),_.K("design:type",Object)],Kl.prototype,"computedNavigationEndpoint",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Kl.prototype,"isSearch",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Kl.prototype,"isDoubleStack",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],Kl.prototype,"thumbnailSize",void 0);_.Y([_.C("data","isDoubleStack","thumbnailSize"),_.K("design:type",Object),_.K("design:paramtypes",[])],Kl.prototype,"collectionStack",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Kl);
_.T(Kl,"ytd-playlist-thumbnail",function(){if(RRa!==void 0)return RRa;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return RRa=g},{mode:2});var c3W;_.dL(_.r(function(g){return _.p("yt-text-view-model",{class:_.Ty("ytTextViewModelHost")},_.p(_.c2,{text:function(){return g.data().text}}))},"Ga"),"yt-text-view-model",{props:{data:_.H2}});var xs=function(){var g=_.X.apply(this,arguments)||this;g.noEndpoints=!1;g.amsterdamPostMvp=_.w("web_amsterdam_post_mvp_playlists");g.badges=[];g.transferState="TRANSFER_STATE_UNKNOWN";return g};
_.A(xs,_.X);_.P=xs.prototype;_.P.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.P.getMetadata=function(g){if(!g)return[];var u=[],q=g.shortViewCountText||g.viewCountText;q&&u.push(_.iR(q));g.publishedTimeText&&u.push(_.iR(g.publishedTimeText));g.upcomingEventData&&g.upcomingEventData.upcomingEventText&&u.push(_.EI(_.iR(g.upcomingEventData.upcomingEventText),Number(g.upcomingEventData.startTime)));return u};
_.P.observeDataForBylineSeparator=function(){this.data&&_.Y_(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.P.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.JR(this.metadataColor)};
_.P.getSimpleString=function(g){return _.iR(g)};
_.P.isBylineHidden=function(g){return this.noByline||!((g==null?0:g.longBylineText)||(g==null?0:g.shortBylineText))};
_.P.isMetadataHidden=function(g){var u;return((u=this.getMetadata(g))==null?void 0:u.length)===0};
_.P.isBylineMetadataSeparatorHidden=function(g){return this.isMetadataHidden(g)||!this.shouldShowVideoInfo};
_.P.isLongByline=function(g,u){return u&&!(g==null||!g.longBylineText)};
_.z3.Object.defineProperties(xs.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var g;return this.amsterdamPostMvp&&!((g=this.data)==null||!g.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 g;return!((g=this.data)==null||!g.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
xs.prototype.metadataColorChanged=xs.prototype.metadataColorChanged;xs.prototype.observeDataForBylineSeparator=xs.prototype.observeDataForBylineSeparator;_.Y([_.I(_.jB),_.K("design:type",Object)],xs.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],xs.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],xs.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],xs.prototype,"noEndpoints",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],xs.prototype,"isSlimShort",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],xs.prototype,"radioMeta",void 0);_.Y([_.a({selector:_.J9}),_.K("design:type",Object)],xs.prototype,"isGridViewEnabled",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],xs.prototype,"richMeta",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],xs.prototype,"amsterdamPostMvp",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],xs.prototype,"noByline",void 0);_.Y([_.a({computed:"isLongByline(data, radioMeta)"}),_.K("design:type",Boolean)],xs.prototype,"longByline",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],xs.prototype,"truncateMetadataLine",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],xs.prototype,"miniMode",void 0);_.Y([_.a(),_.K("design:type",Number)],xs.prototype,"metadataColor",void 0);
_.Y([_.a(),_.K("design:type",Array)],xs.prototype,"badges",void 0);_.Y([_.a({selector:_.tD,selectorArgs:["data.videoId"]}),_.K("design:type",String)],xs.prototype,"transferState",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],xs.prototype,"isDownloading",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],xs.prototype,"typographyBump",void 0);_.Y([_.oE("#metadata-line"),_.K("design:type",HTMLElement)],xs.prototype,"metadataLine",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xs.prototype,"observeDataForBylineSeparator",null);_.Y([_.k_("metadataColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xs.prototype,"metadataColorChanged",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],xs.prototype,"shouldShowVideoInfo",null);
_.Y([_.C("badges"),_.K("design:type",String),_.K("design:paramtypes",[])],xs.prototype,"inlineBadgeClass",null);_.Y([_.C("longByline"),_.K("design:type",String),_.K("design:paramtypes",[])],xs.prototype,"longBylineClass",null);_.Y([_.C("data","longByline"),_.K("design:type",Object),_.K("design:paramtypes",[])],xs.prototype,"bylineText",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xs.prototype,"hasAttributedBylineText",null);
_.Y([_.C("isGridViewEnabled","data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xs.prototype,"watchFeedBigThumbs",null);_.Y([_.fE({is:"ytd-video-meta-block",disableElementRegistration:!0})],xs);
_.T(xs,"ytd-video-meta-block",function(){if(c3W!==void 0)return c3W;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return c3W=g},{mode:2});_.Ny("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var By=function(){var g=_.X.apply(this,arguments)||this;g.displayItemCount=2;g.isBackstagePlaylist=!1;g.isPostCompactPlaylist=!1;g.shouldShowChannelThumbnail=!1;return g};
_.A(By,_.X);_.P=By.prototype;_.P.computeFirstVideos=function(g,u){return g===void 0||u===void 0?[]:g.slice(0,u)};
_.P.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var g=this.data.thumbnailRenderer;g.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",g.playlistVideoThumbnailRenderer.thumbnail);g.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",g.playlistCustomThumbnailRenderer.thumbnail)}};
_.P.computeThumbnailHeight=function(g,u,q,Q,L){return Q?L==="BIG"?280:L==="MASSIVE"?337:234:q?240:u?72:g?118:138};
_.P.computeThumbnailWidth=function(g,u,q,Q,L){return Q?L==="MEDIUM"?450:L==="BIG"?500:L==="MASSIVE"?600:420:q?360:u?128:g?210:246};
_.P.computeUseBiggerThumbs=function(g){return g&&_.w("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelThumbnail=function(g,u){return g&&!(u==null||!u.channelThumbnail)};
_.z3.Object.defineProperties(By.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
By.prototype.dataChanged=By.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],By.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],By.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],By.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],By.prototype,"displayItemCount",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],By.prototype,"isBackstagePlaylist",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],By.prototype,"isPostCompactPlaylist",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],By.prototype,"isSearch",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.K("design:type",Boolean)],By.prototype,"useBiggerThumbs",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.o4("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],By.prototype,"biggerThumbsStyle",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],By.prototype,"isDownloads",void 0);_.Y([_.a({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.K("design:type",Object)],By.prototype,"shouldShowChannelThumbnail",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],By.prototype,"dataChanged",null);
_.Y([_.C("isSearch"),_.K("design:type",String),_.K("design:paramtypes",[])],By.prototype,"stackThumbnailSize",null);_.Y([_.fE({is:"ytd-playlist-renderer",disableElementRegistration:!0})],By);
_.T(By,"ytd-playlist-renderer",function(){if(ENZ===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);ENZ=g}g=ENZ;return g},{mode:1});var H7$;var A3$;var zf=function(){var g=_.X.apply(this,arguments)||this;g.startX=0;return g};
_.A(zf,_.X);zf.prototype.onEndpointMouseDown=function(g){this.startX=g.clientX};
zf.prototype.onEndpointClick=function(g){this.startX!==g.clientX&&(g.preventDefault(),g.stopPropagation())};
zf.prototype.computeObjectFit=function(g){return g==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||g==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||g==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
zf.prototype.computeCardStyle=function(g){return g?g.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.z3.Object.defineProperties(zf.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:(u=g.searchRefinementCardRendererStyle)==null?void 0:u.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}}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zf.prototype,"data",void 0);_.Y([_.a({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.K("design:type",Number)],zf.prototype,"objectFit",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.K("design:type",String)],zf.prototype,"cardStyle",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],zf.prototype,"roundContainer",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],zf.prototype,"isAlbumCard",null);_.Y([_.C("data","isAlbumCard"),_.K("design:type",Object),_.K("design:paramtypes",[])],zf.prototype,"collectionStack",null);_.Y([_.fE({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],zf);
_.T(zf,"ytd-search-refinement-card-renderer",function(){if(A3$!==void 0)return A3$;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return A3$=g},{mode:1});var Z7X;var nl=function(){var g=_.X.apply(this,arguments)||this;g.isRichGrid=!1;return g};
_.A(nl,_.X);_.Y([_.a(),_.K("design:type",Object)],nl.prototype,"data",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],nl.prototype,"componentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],nl.prototype,"ytdReduxBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],nl.prototype,"isRichGrid",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],nl.prototype,"miniMode",void 0);
_.Y([_.fE({is:"ytd-game-details-renderer",disableElementRegistration:!0})],nl);
_.T(nl,"ytd-game-details-renderer",function(){if(Z7X!==void 0)return Z7X;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Z7X=g},{mode:1});var lo$;var Io2;var ks=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return g};
_.A(ks,_.X);_.P=ks.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(g){var u=g||this.data;return u&&u.states&&u.currentStateId!=null?u.states.find(function(q){return q.stateId===u.currentStateId})||null:null};
_.P.currentStateRendererData=function(g){return(g=this.currentStateData(g))&&g.state&&g.state.buttonRenderer?g.state.buttonRenderer:null};
_.P.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())};
_.P.computeButtonIcon=function(g){g=this.currentStateRendererData(g);var u;return(g==null?0:(u=g.icon)==null?0:u.iconType)?g.icon.iconType.toLowerCase():null};
_.P.computeAccessibility=function(g){return(g=this.currentStateRendererData(g))&&g.accessibilityData?g.accessibilityData.accessibilityData||null:null};
_.P.computeButtonClass=function(g){var u=this.currentStateRendererData(g);if(!u)return"";g="";var q=u.style;q&&(g+=q.toLowerCase().replace(/_/g,"-")+" ");(u=u.size)&&(g+=u.toLowerCase().replace(/_/g,"-")+" ");return g.trim()};
_.P.computeServiceEndpoint=function(g){if(!g)return null;var u=g&&g.serviceEndpoint,q=this.get("command.commandMetadata.webCommandMetadata.sendPost",g);return u?u:q&&g.command?g.command:null};
_.P.computeBellMenuItemParams=function(g){var u;g=(u=_.c(g==null?void 0:g.command,_.zg))==null?void 0:u.commands;if(!g||g.length===0)return null;u=_.c(g[0],_.q4);var q,Q;return(u==null?0:(q=u.popup)==null?0:(Q=q.menuPopupRenderer)==null?0:Q.items)?u.popup.menuPopupRenderer.items.map(function(L){return L.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(g){var u=g.trackingParams,q=this.computeBellMenuItemParams(this.data);this.data&&u&&q&&q.includes(u)&&this.ytRenderButtonBehavior._setButtonIcon(g.icon.iconType.toLowerCase())};
_.P.onYtServiceRequestCompleted=function(g,u){(g=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",u))&&this.set("data",g)};
_.P.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.P.resetState=function(){this.set("data.currentStateId",3)};
_.P.onYtButtonTapHandler=function(){if(this.data){var g=this.currentStateRendererData(this.data);g&&this.ytRendererBehavior.logExplicitClick(g)}};
ks.prototype.onYtServiceRequestError=ks.prototype.onYtServiceRequestError;ks.prototype.onYtServiceRequestCompleted=ks.prototype.onYtServiceRequestCompleted;ks.prototype.stateChanged=ks.prototype.stateChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ks.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(Uv.YtRenderButtonBehavior),_.K("design:type",Object)],ks.prototype,"ytRenderButtonBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ks.prototype,"data",void 0);_.Y([_.qm("data","data.currentStateId"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ks.prototype,"stateChanged",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],ks.prototype,"onYtServiceRequestCompleted",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ks.prototype,"onYtServiceRequestError",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],ks);
_.T(ks,"ytd-subscription-notification-toggle-button-renderer",function(){if(Io2!==void 0)return Io2;var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Io2=g},{mode:1});var i7R;var St=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};g.tapHandler=function(){if(g.data){var u=g.currentStateRendererData();u&&g.ytRendererBehavior.logExplicitClick(u)}};
return g};
_.A(St,_.X);_.P=St.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(){var g=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(u){return u.stateId===g.data.currentStateId})||null:null};
_.P.currentStateRendererData=function(){var g=this.currentStateData();return g&&g.state&&g.state.buttonRenderer?g.state.buttonRenderer:null};
_.P.computeAccessibilityLabel=function(){var g,u,q;return(g=this.currentStateRendererData())==null?void 0:(u=g.accessibilityData)==null?void 0:(q=u.accessibilityData)==null?void 0:q.label};
_.P.computeBellMenuItemParams=function(){var g,u,q=(u=_.c((g=this.data)==null?void 0:g.command,_.zg))==null?void 0:u.commands;if(!q||q.length===0)return null;g=_.c(q[0],_.q4);var Q,L;return(g==null?0:(Q=g.popup)==null?0:(L=Q.menuPopupRenderer)==null?0:L.items)?g.popup.menuPopupRenderer.items.map(function(E){return E.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(g){var u=g.trackingParams,q=this.computeBellMenuItemParams();if(this.data&&u&&q&&q.includes(u)&&(g==null||!g.isDisabled)){var Q;((Q=_.c(g.serviceEndpoint,_.kJ))==null?void 0:Q.signal)!=="CLIENT_SIGNAL"&&(this.icon=g.icon.iconType)}};
_.P.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.P.onYtServiceRequestCompleted=function(g,u){if(g=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",u))this.icon=void 0,this.set("data",g)};
_.P.onYtServiceRequestError=function(){this.icon=void 0};
_.z3.Object.defineProperties(St.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g=this.data,u=this.textLabel,q=this.hostElement,Q=this.computeAccessibilityLabel(),L=this.tapHandler,E=this.isOverlay?"overlay":"mono",y=(g==null?0:g.disableButton)?"disabled":"active";u=u?_.v1(u):void 0;return{style:E,type:"tonal",state:y,size:"M",focused:!1,formattedButtonText:u,iconPosition:"leading-trailing",onTap:xOT(g,L,q),accessibilityLabel:Q}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var g=this.currentStateRendererData(),u,q,Q=(q=this.icon)!=null?q:g==null?void 0:(u=g.icon)==null?void 0:u.iconType;if(Q)return _.x9(Q)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.data)==null?void 0:(u=g.secondaryIcon)==null?void 0:u.iconType;if(q)return _.x9(q)}}});
St.prototype.onYtServiceRequestError=St.prototype.onYtServiceRequestError;St.prototype.onYtServiceRequestCompleted=St.prototype.onYtServiceRequestCompleted;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],St.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],St.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],St.prototype,"textLabel",void 0);
_.Y([_.a(),_.K("design:type",String)],St.prototype,"icon",void 0);_.Y([_.a(),_.K("design:type",Boolean)],St.prototype,"isOverlay",void 0);_.Y([_.C("data.*","textLabel"),_.K("design:type",Object),_.K("design:paramtypes",[])],St.prototype,"computedButtonShape",null);_.Y([_.C("data.*","icon"),_.K("design:type",Object),_.K("design:paramtypes",[])],St.prototype,"computedIcon",null);_.Y([_.C("computedIcon"),_.K("design:type",Object),_.K("design:paramtypes",[])],St.prototype,"computedAnimateIcon",null);
_.Y([_.C("data.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],St.prototype,"computedSecondaryIcon",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],St.prototype,"onYtServiceRequestCompleted",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],St.prototype,"onYtServiceRequestError",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],St);_.T(St,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(i7R!==void 0)return i7R;var g=document.createElement("template");_.Z(g,'\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 i7R=g},{mode:2});var Cnx;_.dL(C40,"yt-animated-action",{props:{backgroundLottieRef:_.H2,foregroundLottieRef:_.H2,wrapperClass:_.H2,disableAnimation:_.H2},unsafeExternallySettableAttributes:new Set(["key"])});var oP=function(){var g=_.X.apply(this,arguments)||this;g.animatedActionEnabled=_.w("web_animated_actions");g.foregroundLottieRef={};g.backgroundLottieRef={};g.forceIconOnly=!1;g.showTextWhileAnimating=!1;g.keyboardFocused=!1;g.isAnimating=!1;g.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return g};
_.A(oP,_.X);_.P=oP.prototype;_.P.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.P.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]]"}}}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onYtServiceRequestSent=function(g,u){(this.get("endpoint.subscribeEndpoint",u)||this.get("endpoint.unsubscribeEndpoint",u))&&this.updateSubscriptionState(!this.subscribed)};
_.P.onYtServiceRequestCompleted=function(g,u){(g=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",u.data))&&this.bellButton&&(this.bellButton.data=g)};
_.P.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.x_(this.hostElement)};
_.P.onPlayerSubscribe=function(g){this.isCompactRed()||g!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.P.onPlayerUnsubscribe=function(g){this.isCompactRed()||g!==this.data.channelId||this.updateSubscriptionState(!1)};
_.P.handleUpdateSubscribeButtonAction=function(g){g=_.c(g,GPn);var u;g&&g.channelId===((u=this.data)==null?void 0:u.channelId)&&this.updateSubscriptionState(!!g.subscribed)};
_.P.computeButtonStyle=function(g){return this.get("style.styleType",g)||null};
_.P.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.P.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.P.updateSubscriptionState=function(g){if(g!==this.subscribed){this.set("data.subscribed",g);var u,q=(u=this.data)==null?void 0:u.subscribedEntityKey;q&&this.ytdReduxBehavior.dispatch(_.u2("subscriptionStateEntity",q,{key:q,subscribed:g}));this.isCompactRed()||_.hJ(this.hostElement,"yt-subscription-changed",g);g||(_.YJ(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!g),g&&this.hasBellButton&&this.startAnimation())}};
_.P.startAnimation=function(){var g=this;if(!this.isAnimating){var u=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var q;(q=this.backgroundLottieRef.lottieEl)==null||q.goToAndPlay(0);var Q;(Q=this.foregroundLottieRef.lottieEl)==null||Q.goToAndPlay(0);_.Hv.addJob(function(){g.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Hv.addJob(function(){g.updateContainerToFitContent(!!g.subscribed,!0)},2,1500);
_.Hv.addJob(function(){g.isAnimating=!1},2,u)}};
_.P.maybeAnimateBellIcon=function(){var g=_.hR(this.hostElement).querySelector("yt-animated-icon");if(g){var u;(u=g.animationRef.lottieEl)==null||u.goToAndPlay(0)}};
_.P.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.P.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.P.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var g;this.unsubscribedWidth=(g=this.subscribeButtonShape)==null?void 0:g.getBoundingClientRect().width}var u;this.subscribedWidth=(u=this.bellButton)==null?void 0:u.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.P.updateContainerToFitContent=function(g,u){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(g?(g=this.subscribedWidth,u=this.isAnimating&&!u,this.subscribedIconOnlyWidth===void 0||u||(g=this.subscribedIconOnlyWidth),this.hostElement.style.width=g+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.P.clearContainerSize=function(){this.hostElement.style.width=""};
_.P.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.P.maybeSetSubscribedButtonIconOnlyWidth=function(){var g=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 u;g.subscribedIconOnlyWidth=(u=g.bellButton)==null?void 0:u.getBoundingClientRect().width;requestAnimationFrame(function(){if(g.bellButton){var q;g.bellButton.textLabel=
(q=g.data)==null?void 0:q.subscribedButtonText}})})))};
_.z3.Object.defineProperties(oP.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 g;return(g=this.data)==null?void 0:g.subscribedButtonText}var u;return this.forceIconOnly?void 0:(u=this.data)==null?void 0:u.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var g,u,q=((g=this.data)==null?void 0:(u=g.timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:"subscribe",timings:q,enabled:q.length>0&&!this.subscribed,experimentEnabled:q.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var g;return!this.subscribed&&((g=this.data)==null?void 0:g.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 g={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var u=g.renderer;var q=g.element;var Q=g.subscribed;var L=g.commandController;var E=g.isOverlay;g=g.stopPropagation;var y=ktK(u,Q);E&&(y.style="overlay");E=Object;var v=E.assign,J;a:switch((J=u.style)==null?void 0:J.styleType){case "COMPACT_GRAY":case "COMPACT_RED":J={size:"S"};break a;default:J={size:"M"}}var f=n5q(u,
Q);var t=(t=Q?u.subscribedButtonText:u.unsubscribedButtonText)?_.v1(t):void 0;return v.call(E,{},y,J,{focused:!1,toggled:Q,accessibilityLabel:f,formattedButtonText:t,onTap:zcF(u,Q,q,L,g)})}}}});
oP.prototype.onMouseDown=oP.prototype.onMouseDown;oP.prototype.onDataChanged=oP.prototype.onDataChanged;oP.prototype.observedSubscribed=oP.prototype.observedSubscribed;oP.prototype.onYtServiceRequestCompleted=oP.prototype.onYtServiceRequestCompleted;oP.prototype.onYtServiceRequestSent=oP.prototype.onYtServiceRequestSent;oP.prototype.maybeUpdateBellButtonText=oP.prototype.maybeUpdateBellButtonText;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],oP.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],oP.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],oP.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],oP.prototype,"data",void 0);
_.Y([_.a({selectorArgs:["data.subscribedEntityKey"],selector:f2q}),_.K("design:type",Object)],oP.prototype,"subscriptionStateEntity",void 0);_.Y([_.a({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.K("design:type",Boolean)],oP.prototype,"subscribed",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],oP.prototype,"branded",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],oP.prototype,"animatedActionEnabled",void 0);
_.Y([_.a(),_.K("design:type",Object)],oP.prototype,"foregroundLottieRef",void 0);_.Y([_.a(),_.K("design:type",Object)],oP.prototype,"backgroundLottieRef",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],oP.prototype,"overlayButton",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.K("design:type",Object)],oP.prototype,"buttonStyle",void 0);_.Y([_.a(),_.K("design:type",Object)],oP.prototype,"forceIconOnly",void 0);
_.Y([_.a(),_.K("design:type",Object)],oP.prototype,"showTextWhileAnimating",void 0);_.Y([_.a({value:function(){return!!_.Bk().resolve(_.xv(_.m5))&&_.w("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.K("design:type",Boolean)],oP.prototype,"useKeyboardFocused",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],oP.prototype,"keyboardFocused",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],oP.prototype,"isAnimating",void 0);_.Y([_.C("data.notificationPreferenceButton.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],oP.prototype,"hasBellButton",null);
_.Y([_.k_("subscribedButtonText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oP.prototype,"maybeUpdateBellButtonText",null);_.Y([_.C("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],oP.prototype,"subscribedButtonText",null);_.Y([_.C("data.timedAnimationData.animationTiming","subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],oP.prototype,"smartimationSettings",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],oP.prototype,"subscribeButtonHidden",null);_.Y([_.a({reflectToAttribute:!0}),_.C("subscribed","hasBellButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],oP.prototype,"subscribeButtonInvisible",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],oP.prototype,"unsubscribeButtonHidden",null);_.Y([_.oE("ytd-subscription-notification-toggle-button-renderer-next"),_.K("design:type",Object)],oP.prototype,"bellButton",void 0);_.Y([_.oE("#subscribe-button-shape"),_.K("design:type",HTMLElement)],oP.prototype,"subscribeButtonShape",void 0);
_.Y([_.C("overlayButton","subscribed","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],oP.prototype,"buttonShape",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],oP.prototype,"onYtServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],oP.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.k_("subscribed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oP.prototype,"observedSubscribed",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oP.prototype,"onDataChanged",null);_.Y([_.n6("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],oP.prototype,"onMouseDown",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],oP);
_.T(oP,"ytd-subscribe-button-renderer",function(){if(Cnx!==void 0)return Cnx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Cnx=g},{mode:1});var UC=function(){var g=_.X.apply(this,arguments)||this;g.isRichGrid=!1;return g};
_.A(UC,_.X);UC.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],UC.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],UC.prototype,"isRichGrid",void 0);_.Y([_.fE({is:"ytd-game-card-renderer",disableElementRegistration:!0})],UC);
_.T(UC,"ytd-game-card-renderer",function(){if(lo$!==void 0)return lo$;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return lo$=g},{mode:1});var g7={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.w("defer_menus")&&!E7R?0:void 0,waitForSignal:"eocs"};var b7x;var dvx;var uY=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return g};
_.A(uY,_.X);_.P=uY.prototype;_.P.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.P.onSeriesReminderStateEntityChange=function(){var g,u,q;((g=this.eventReminderStateEntity)==null?0:g.key)&&((u=this.seriesReminderStateEntity)==null?void 0:u.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((q=this.eventReminderStateEntity)==null?void 0:q.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.u2("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.P.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.P.onYtServiceRequestError=function(){var g;this.updateReminderStateEntitiesFromButtonState((g=this.data)==null?void 0:g.currentState)};
_.P.handleUpdateUpcomingEventReminderButtonStateCommand=function(g){if(g=_.c(g,ROH)){var u,q=(u=this.data)==null?void 0:u.targetId;q&&g.targetId===q&&_.wO(this.updateReminderStateEntitiesFromButtonState.bind(this,g.state))}};
_.P.getButtonStateFromReminderState=function(){var g;if(((g=this.seriesReminderStateEntity)==null?void 0:g.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var u;if(((u=this.eventReminderStateEntity)==null?void 0:u.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var q,Q;if(((q=this.seriesReminderStateEntity)==null?void 0:q.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((Q=this.eventReminderStateEntity)==
null?void 0:Q.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var L;return(L=this.data)==null?void 0:L.currentState};
_.P.updateReminderStateEntitiesFromButtonState=function(g){if(g){switch(g){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":g="UPCOMING_EVENT_REMINDER_STATE_NONE";var u="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":g="UPCOMING_EVENT_REMINDER_STATE_SINGLE";u="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":g="UPCOMING_EVENT_REMINDER_STATE_NONE";u="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var q;
((q=this.eventReminderStateEntity)==null?0:q.key)&&this.ytdReduxBehavior.dispatch(_.u2("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:g})));var Q;((Q=this.seriesReminderStateEntity)==null?0:Q.key)&&this.ytdReduxBehavior.dispatch(_.u2("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:u})))}};
_.z3.Object.defineProperties(uY.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var g=this.getButtonStateFromReminderState(),u,q;if(g&&((u=this.data)==null?0:(q=u.states)==null?0:q.length))for(u=_.N(this.data.states),q=u.next();!q.done;q=u.next()){q=q.value;var Q=void 0;if(((Q=_.c(q,w_n))==null?void 0:Q.state)===g)return _.c(q,w_n)}}}});
uY.prototype.onYtServiceRequestError=uY.prototype.onYtServiceRequestError;uY.prototype.onYtServiceRequestCompleted=uY.prototype.onYtServiceRequestCompleted;uY.prototype.onSeriesReminderStateEntityChange=uY.prototype.onSeriesReminderStateEntityChange;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],uY.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],uY.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],uY.prototype,"data",void 0);_.Y([_.a({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:tlk}),_.K("design:type",Object)],uY.prototype,"eventReminderStateEntity",void 0);
_.Y([_.a({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(g,u){return _.BC(g.entities,"sportsSeriesReminderStateEntity",u)}}),
_.K("design:type",Object)],uY.prototype,"seriesReminderStateEntity",void 0);_.Y([_.C("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],uY.prototype,"currentButtonStateRenderer",null);_.Y([_.k_("seriesReminderStateEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uY.prototype,"onSeriesReminderStateEntityChange",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uY.prototype,"onYtServiceRequestCompleted",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uY.prototype,"onYtServiceRequestError",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],uY);
_.T(uY,"ytd-upcoming-event-reminder-button-renderer",function(){if(dvx!==void 0)return dvx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return dvx=g},{mode:1});var FYR;var qU=function(){return _.X.apply(this,arguments)||this};
_.A(qU,_.X);qU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.z3.Object.defineProperties(qU.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(_.w("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qU.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],qU.prototype,"shelfDismissal",void 0);_.Y([_.C("data.responseText"),_.K("design:type",Object),_.K("design:paramtypes",[])],qU.prototype,"text",null);
_.Y([_.C("data.responseText"),_.K("design:type",Object),_.K("design:paramtypes",[])],qU.prototype,"textAriaLabel",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],qU);
_.T(qU,"ytd-notification-multi-action-renderer",function(){if(FYR!==void 0)return FYR;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return FYR=g},{mode:1});var mv$;var QL=function(){return _.X.apply(this,arguments)||this};
_.A(QL,_.X);QL.prototype.ready=function(){var g=this;_.Tr(this.hostElement).querySelector("#undo").addEventListener("tap",function(){g.onUndoTap()})};
QL.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],QL.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],QL);
_.T(QL,"ytd-notification-text-renderer",function(){if(mv$!==void 0)return mv$;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return mv$=g},{mode:1});var aoX;var LG=function(){var g=_.X.apply(this,arguments)||this;g.mouseOverDelayJobId=0;g.fadeInImageDelayJobId=0;g.startTimeMs=-1;g.loadingStartTimeMs=-1;g.loadingEndTimeMs=-1;g.hasVideoPreview=!1;return g};
_.A(LG,_.X);_.P=LG.prototype;_.P.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.P.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.showThumbnail=function(){var g=this;this.csn=_.j_();_.Mf("fmth");_.Hv.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Xh(_.Hv,function(){g.loadingStartTimeMs=(0,_.n0)();var u=_.Tr(g.hostElement).querySelector("#thumbnail");u.complete?g.displayMouseOverImage():u.addEventListener("load",_.zr(g,g.displayMouseOverImage))},150):_.Y_(_.Tr(this.hostElement).querySelector("#play"),"show",!0)};
_.P.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.P.onTap=function(){this.removeVideoPreview()};
_.P.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var g=this.videoId,u=this.csn,q=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,Q=this.startTimeMs,L=this.hasVideoPreview,E=_.Lr(this.trackingParams),y={isMovingThumbnail:L};L&&Q>0&&(q>0&&(y.movingThumbnailLoadingDurationMs=Math.round(q)),y.durationHoveredMs=Math.round((0,_.n0)()-Q));g&&(y.videoId=g);_.iH(u,E,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:y});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.P.removeVideoPreview=function(){_.Hv.cancelJob(this.mouseOverDelayJobId);_.Hv.cancelJob(this.fadeInImageDelayJobId);var g=_.Tr(this.hostElement).querySelector("#thumbnail");_.Y_(g,"fade-in",!1);g.removeEventListener("load",_.zr(this,this.displayMouseOverImage));g=_.Tr(this.hostElement).querySelector("#play");_.Y_(g,"fade-in",!1);_.Y_(g,"show",!1)};
_.P.displayMouseOverImage=function(){var g=_.Tr(this.hostElement).querySelector("#thumbnail"),u=_.Tr(this.hostElement).querySelector("#play");this.isImageAvailable(g)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.n0)(),this.startTimeMs=(0,_.n0)(),this.fadeInImageDelayJobId=_.Xh(_.Hv,function(){_.Y_(g,"fade-in",!0)},50)):_.Y_(u,"fade-in",!0)};
_.P.computeThumbnail=function(g,u){var q;g&&g.movingThumbnailDetails&&g.movingThumbnailDetails.thumbnails&&u?q=_.Fh(g.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):q=u?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(q)return _.SO(q)};
_.P.isImageAvailable=function(g){return!(!g.src||g.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||g.naturalWidth===120)};
LG.prototype.onTap=LG.prototype.onTap;LG.prototype.dataChanged=LG.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],LG.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],LG.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],LG.prototype,"csn",void 0);_.Y([_.a(),_.K("design:type",Object)],LG.prototype,"trackingParams",void 0);
_.Y([_.a(),_.K("design:type",String)],LG.prototype,"videoId",void 0);_.Y([_.a(),_.K("design:type",Boolean)],LG.prototype,"isAttachedAndDataSet",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],LG.prototype,"dataChanged",null);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],LG.prototype,"onTap",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],LG);
_.T(LG,"ytd-moving-thumbnail-renderer",function(){if(aoX!==void 0)return aoX;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return aoX=g},{mode:1});var VLn;_.zx=function(g){this.hostElement=g;this.eventSink=null;this.eventList=[]};
_.zx.prototype.shouldForward=function(){var g,u;return(u=(g=this.eventSink)==null?void 0:g.isConnected)!=null?u:document.body.contains(this.eventSink)};
_.zx.prototype.start=function(g,u){this.eventSink&&this.stop();for(var q=0;q<g.length;q++)this.hostElement.addEventListener(g[q],_.zr(this,this.forwardEvent));var Q;this.eventSink=(Q=u.hostElement)!=null?Q:u;this.eventList=g};
_.zx.prototype.stop=function(){for(var g=0;g<this.eventList.length;g++)this.hostElement.removeEventListener(this.eventList[g],_.zr(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.zx.prototype.forwardEvent=function(g,u){this.shouldForward()&&(g.stopPropagation(),this.eventSink instanceof Element?_.hJ(this.eventSink,g.type,u):_.Io(new _.Ji("eventSink is not an element")))};_.Em={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.zx(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(g,u){this.forwarder_.start(g,u)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Pp=function(){return _.X.apply(this,arguments)||this};
_.A(Pp,_.X);_.P=Pp.prototype;_.P.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=_.FR("HTML_DIR")==="rtl"?"right":"left"};
_.P.dataChanged=function(){this.popupOpen=!1};
_.P.computeAriaLabel=function(g){return _.c(g,a9a).label};
_.P.onTap=function(g){g.stopPropagation();g.preventDefault();this.data.command&&_.Bk().resolve(_.Gy).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Pp.prototype.onPopupClosed=Pp.prototype.onPopupClosed;Pp.prototype.onPopupOpened=Pp.prototype.onPopupOpened;Pp.prototype.onTap=Pp.prototype.onTap;Pp.prototype.dataChanged=Pp.prototype.dataChanged;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],Pp.prototype,"eventForwardingBehavior",void 0);_.Y([_.I(_.PI),_.K("design:type",Object)],Pp.prototype,"ironButtonState",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Pp.prototype,"componentBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],Pp.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:-1}),_.K("design:type",Number)],Pp.prototype,"tabindex",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.K("design:type",Object)],Pp.prototype,"ariaLabel",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],Pp.prototype,"disableTooltips",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Pp.prototype,"popupOpen",void 0);
_.Y([_.a(),_.K("design:type",Element)],Pp.prototype,"eventSink",void 0);_.Y([_.oE("#tooltip"),_.K("design:type",Object)],Pp.prototype,"tooltip",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pp.prototype,"dataChanged",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Pp.prototype,"onTap",null);
_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pp.prototype,"onPopupOpened",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pp.prototype,"onPopupClosed",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Pp);
_.T(Pp,"ytd-thumbnail-overlay-button-renderer",function(){if(VLn!==void 0)return VLn;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return VLn=g},{mode:1});var Xsx;var NU=function(){return _.X.apply(this,arguments)||this};
_.A(NU,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],NU.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],NU.prototype,"disableAnimation",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],NU.prototype,"rounded",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],NU.prototype,"transparentBackground",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],NU.prototype,"noPadding",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],NU);
_.T(NU,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(Xsx!==void 0)return Xsx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Xsx=g},{mode:1});var r35;var sm=function(){return _.X.apply(this,arguments)||this};
_.A(sm,_.X);sm.prototype.computeIconPosition=function(g){return this.get("iconPosition",g)||null};
sm.prototype.computeIconStyle=function(g){return this.get("iconStyle",g)||null};
sm.prototype.computeIsIconStyleFilled=function(g){if(!g)return!1;var u;return g.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((u=g.icon)==null?void 0:u.iconType)==="ERROR_BLACK"};
_.Y([_.a(),_.K("design:type",Object)],sm.prototype,"data",void 0);_.Y([_.a({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.K("design:type",Object)],sm.prototype,"iconPosition",void 0);_.Y([_.a({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.K("design:type",Object)],sm.prototype,"iconStyle",void 0);_.Y([_.a({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],sm.prototype,"iconStyleFilled",void 0);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],sm);
_.T(sm,"ytd-thumbnail-overlay-icon-renderer",function(){if(r35!==void 0)return r35;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return r35=g},{mode:1});var WYW;var yL=function(){return _.X.apply(this,arguments)||this};
_.A(yL,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yL.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],yL);
_.T(yL,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(WYW!==void 0)return WYW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return WYW=g},{mode:1});var Te2;var vp=function(){var g=_.X.apply(this,arguments)||this;g.isPreviewLoading=!1;return g};
_.A(vp,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vp.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],vp.prototype,"isPreviewLoading",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],vp);
_.T(vp,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Te2!==void 0)return Te2;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Te2=g},{mode:1});var hR$;var Dm=function(){return _.X.apply(this,arguments)||this};
_.A(Dm,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Dm.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Dm);
_.T(Dm,"ytd-thumbnail-overlay-pinking-renderer",function(){if(hR$!==void 0)return hR$;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return hR$=g},{mode:1});var YXn;var pG=function(){var g=_.X.apply(this,arguments)||this;g.disableTooltips=!1;g.isLoading=!1;g.useExpandableTooltip=!1;g.toggled=!1;g.hovered=!1;g.mouseoverDelayJobId=0;g.toggleDelayJobId=0;g.expandAnimationDelayJobId=0;return g};
_.A(pG,_.X);_.P=pG.prototype;_.P.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");_.Tr(this.hostElement).querySelector("#tooltip").position=_.FR("HTML_DIR")==="rtl"?"right":"left"};
_.P.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Hv.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Hv.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Hv.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.P.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Hv.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Hv.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Hv.cancelJob(this.expandAnimationDelayJobId)};
_.P.computeIcon=function(g,u,q){return(g=q?u:g)&&g.iconType?_.x9(g.iconType):void 0};
_.P.computeAriaLabel=function(g,u,q){return _.c(q?u:g,a9a).label};
_.P.computeTooltip=function(g,u,q){return q?u:g};
_.P.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.P.computeIconOnHover=function(g,u){if((g==null?0:g.iconType)&&!u)return _.x9(g.iconType)};
_.P.onTap=function(g){var u=this;g.stopPropagation();g.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(g=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(g),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Xh(_.Hv,function(){u.hovered=!1;u.data&&!u.data.toggledServiceEndpoint&&(u.expandAnimationDelayJobId=_.Xh(_.Hv,function(){u.set("data.isToggled",
!1)},200))},2E3))};
_.P.onMouseenter=function(){var g=this;this.mouseoverDelayJobId=_.Xh(_.Hv,function(){g.hovered=!0},300)};
_.P.onMouseleave=function(){_.Hv.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.P.onServiceRequestCompleted=function(g,u){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(u)||this.set("data.isToggled",!this.data.isToggled)};
_.P.serviceRequestWasSuccessful=function(g){return _.c(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.fq)?g.data.status==="STATUS_SUCCEEDED":!0};
pG.prototype.onServiceRequestCompleted=pG.prototype.onServiceRequestCompleted;pG.prototype.onPopupClosed=pG.prototype.onPopupClosed;pG.prototype.onPopupOpened=pG.prototype.onPopupOpened;pG.prototype.onMouseleave=pG.prototype.onMouseleave;pG.prototype.dataChanged=pG.prototype.dataChanged;_.Y([_.I(_.PI),_.K("design:type",Object)],pG.prototype,"ironButtonState",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],pG.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],pG.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pG.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.K("design:type",Object)],pG.prototype,"ariaLabel",void 0);_.Y([_.a(),_.K("design:type",Object)],pG.prototype,"disableTooltips",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],pG.prototype,"popupOpen",void 0);_.Y([_.a(),_.K("design:type",Object)],pG.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",Element)],pG.prototype,"eventSink",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],pG.prototype,"useExpandableTooltip",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.K("design:type",Object)],pG.prototype,"toggled",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],pG.prototype,"hovered",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.K("design:type",Object)],pG.prototype,"iconOnHover",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pG.prototype,"dataChanged",null);
_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pG.prototype,"onMouseleave",null);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pG.prototype,"onPopupOpened",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pG.prototype,"onPopupClosed",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],pG.prototype,"onServiceRequestCompleted",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],pG);
_.T(pG,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(YXn!==void 0)return YXn;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return YXn=g},{mode:2});var O7H;var KYZ=_.r(function(g){var u=g.data;var q=g.thumbnailSize;var Q=function(){return u().enableSegmentView};
return _.p("yt-thumbnail-overlay-progress-bar-view-model",{class:_.Ty("ytThumbnailOverlayProgressBarHost",function(){return SKm(q==null?void 0:q())})},_.p(_.M,{cond:Q,
then:function(){return _.p("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.p("div",{class:_.N0("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+u().startPercent+"%"}}),_.p("div",{class:_.N0("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+u().segmentDurationPercent+"%"}},_.p("div",{class:_.N0("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.p("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.p("div",null," ",function(){return u().segmentLabel})),_.p("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.p("div",{class:_.N0("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.p(_.M,{cond:function(){return!Q()&&u().startPercent},
then:function(){var L={};return _.p("div",{class:_.N0("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(L.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.w("web_enable_modern_progress_bar_overlay"),L))},_.p("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+u().startPercent+"%"}}))}}))},"Ha");
KYZ.idomCompat=!0;_.xvX=_.r(function(g){var u=_.xq(),q=_.Sy(function(L){var E,y,v;a:{var J=(E=g.data())==null?void 0:E.animationActivationTargetId;E=((y=g.data())==null?void 0:y.animationActivationEntityKey)||"";y=(v=g.data())==null?void 0:v.animationActivationEntitySelectorType;if(E&&J)switch(y){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":L=_.ho(L,E);v=_.Bk().resolve(_.xv(_.RO));J=!!(L&&L.videoId===J&&(v==null?0:v.isMiniplayerActive()));J={activated:J,playAnimation:J&&L.playerState==="PLAYER_STATE_PLAYING"};
break a}J=void 0}return J});
_.bX(function(){var L;if((L=q())==null?0:L.activated){var E;if((E=q())==null?0:E.playAnimation){var y;(y=u.lottieEl)==null||y.goToAndPlay(0)}else{var v;(v=u.lottieEl)==null||v.goToAndStop(0)}}},"DbQiXd");
var Q=function(){var L,E=!((L=q())==null||!L.activated);if(g.data()){L=g.data();var y=void 0;L.icon&&(y=_.GCu(L.icon),y=I$b(y));var v=void 0,J;if((J=L.backgroundColor)==null?0:J.lightTheme){var f;v={backgroundColor:f6((f=L.backgroundColor)==null?void 0:f.lightTheme,"0.8")}}if(L.text||y||E){if(E&&L.lottieData&&u){f=L.lottieData;var t,e,G;J={animationConfig:{name:f.url,path:f.url,autoplay:(t=f.settings)==null?void 0:t.autoplay,loop:(G=(e=f.settings)==null?void 0:e.loop)!=null?G:!0},animationRef:u}}else J=
void 0;if(E)t=17;else b:switch(L.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":t=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":t=19;break b;default:t=17}E={type:t,text:E&&L.animatedText?L.animatedText:L.text,icon:y,customColors:v,animation:J}}else E=void 0}else E=void 0;return E};
return _.p("yt-thumbnail-badge-view-model",{class:_.Ty("ytThumbnailBadgeViewModelHost",g.class)},_.p(_.M,{cond:Q,then:function(){return _.p(_.$s,{data:function(){return Q()}})}}))},"Ja");var Be8=_.r(function(g){var u={},q={};return _.p("yt-thumbnail-bottom-overlay-view-model",{class:_.Ty("ytThumbnailBottomOverlayViewModelHost",(u.ytThumbnailBottomOverlayViewModelHostBackground=function(){return g.data().enableGradientBackground},u))},_.p(_.Up,{data:function(){return g.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(Q){return _.p(KYZ,{data:Q.data,
thumbnailSize:g.thumbnailSize})}}),_.p("div",{class:_.Ty("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var Q;
return o5b((Q=g.thumbnailSize)==null?void 0:Q.call(g))},(q.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var Q;
return(Q=g.isClip)==null?void 0:Q.call(g)},q.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var Q;
return!_.w("web_enable_modern_progress_bar_overlay")&&((Q=g.thumbnailSize)==null?void 0:Q.call(g))==="small"},q))},_.p(_.Up,{data:function(){return g.data().badge}},{thumbnailBadgeViewModel:function(Q){return _.p(_.xvX,{data:Q.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.p(_.Up,{data:function(){return g.data().badges}},{thumbnailBadgeViewModel:function(Q){return _.p(_.xvX,{data:Q.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ka");
Be8.idomCompat=!0;_.dL(Be8,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.iF,thumbnailSize:_.iF,isClip:_.iF}});var JW=_.r(function(g){var u=g.data;var q=g.className;g=g.alwaysShow;var Q=_.gNq(),L={};return _.p("thumbnail-hover-overlay-view-model",{el:_.lF(_.J7(function(){return u().rendererContext})),
class:_.Ty("ytThumbnailHoverOverlayViewModelHost",q,(L.ytThumbnailHoverOverlayViewModelHostForceHover=g,L)),"aria-label":function(){var E;return(E=_.c(u().rendererContext,_.L3))==null?void 0:E.label},
role:function(){return _.D7(u().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.D7(u().rendererContext)!==void 0?0:void 0},
"on:keypress":Q},_.p("div",{class:_.Ty("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(u().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var E="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:E="ytThumbnailHoverOverlayViewModelStyleCover"}return E})},_.p(_.M,{cond:function(){return u().icon},
then:function(E){return _.p(_.IT,{data:E,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.p(_.M,{cond:function(){return u().text},
then:function(E){return _.p(_.c2,{text:E,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ma");
JW.idomCompat=!0;var zRi=_.r(function(g){var u=g.data;return _.p(_.Up,{data:function(){return u==null?void 0:u().overlays}},{thumbnailHoverOverlayViewModel:JW})},"Na");
zRi.idomCompat=!0;var nNi={};var k55=_.r(function(g){var u=g.data;var q=g.image;var Q=g.state;var L=g.iconType;var E=g.overlays;var y=g.isOverlay;var v=_.AM("div");g=_.N(_.jR(!0,void 0,"AA4e7b"));var J=g.next().value,f=g.next().value,t=function(){return!!u().onTap},e=_.dO(L,"LIVE");
_.bX(function(){var R=u();requestAnimationFrame(function(){if(v.value===null)var H=!0;else{var l=v.value;H=R.badgeText;var d=sXb(R.size);H in nNi?l=nNi[H]:(l=l.clientWidth,nNi[H]=l);(H=l>d)?v.value.style.display="none":v.value.style.visibility="visible"}f(H)})},"vNdN8b");
var G=function(){var R={};return R["yt-spec-avatar-shape__image"]=!0,R["yt-spec-avatar-shape__image--ads-app"]=u().type===1,R["yt-spec-avatar-shape__image--inscribed-square"]=u().type===2,R};
return _.p("yt-avatar-shape",null,_.p("div",{el:_.lF(vNZ(t,{keydown:function(R){if(R.key==="Enter"){var H;(H=R.currentTarget)==null||H.click()}},
click:function(R){var H,l;return void((l=(H=u()).onTap)==null?void 0:l.call(H,R))}})),
class:function(){var R={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},H=u();R=(R[H.clusterLayoutConfig?J3T(H.clusterLayoutConfig):jXm(H.size)]=!0,R["yt-spec-avatar-shape__button--tappable"]=t(),R);(H=u().avatarButtonCustomClassName)&&(R[H]=!0);return _.N0(R)},
"aria-label":function(){return t()?u().accessibilityText:""},
role:function(){return t()?"button":void 0},
tabindex:function(){return t()?0:void 0}},_.p("div",{class:function(){var R,H=u(),l=Q==null?void 0:Q(),d=y==null?void 0:y(),F=!((R=H.decorations)==null||!R.includes(2)||H.size!=="medium"&&H.size!=="large"),V=H.size==="tiny"||H.size==="extra-small",z,O,W,x,k={};
R=(k["yt-spec-avatar-shape--live-ring"]=!!(((z=H.decorations)==null?0:z.includes(0))&&MLM(H.size)),k["yt-spec-avatar-shape--stories-watched"]=F&&!(l==null||!l.storiesWatched),k["yt-spec-avatar-shape--stories-unwatched"]=F&&!(l==null?0:l.storiesWatched),k["yt-spec-avatar-shape--background-border"]=tLh(H.decorations)&&!V,k["yt-spec-avatar-shape--background-border-thin"]=tLh(H.decorations)&&V,k["yt-spec-avatar-shape__on-select-border"]=!((O=H.decorations)==null||!O.includes(4)),k["yt-spec-avatar-shape__white-border"]=
!((W=H.decorations)==null||!W.includes(5)),k["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((x=H.decorations)==null?0:x.includes(5))&&V),k["yt-spec-avatar-shape--is-overlay"]=!!d,k);return _.N0(R)},
style:function(){a:{var R=u().clusterLayoutConfig;if(R){b:{var H=R.numAvatarsInCluster;var l=R.avatarIndex;if(l!==H-1){switch(R.clusterSize){case "small":R="32";break;case "medium":R="36";break;case "40":R="40";break;default:H=void 0;break b}H="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+R+"x"+R+"_avatars_"+H+"_index_"+l+".svg"}else H=void 0}if(H){H=_.xH({"-webkit-mask-image":"url("+H+")","mask-image":"url("+H+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}H=void 0}return H}},_.p("div",{class:function(){var R={};
var H=u();R=(R[H.clusterLayoutConfig?DvT(H.clusterLayoutConfig):psq(H.size)]=!0,R["yt-spec-avatar-shape--no-margin"]=tLh(u().decorations),R["yt-spec-avatar-shape--square"]=u().type===2,R);return _.N0(R)}},_.p(_.IT,{data:q,
alt:function(){return!t()&&u().accessibilityText?u().accessibilityText:""},
targetWidth:function(){return foT(u().size)},
targetHeight:function(){return foT(u().size)},
className:function(){return _.N0(G())}}),_.p(_.M,{cond:function(){var R;
return((R=u().decorations)==null?void 0:R.includes(0))&&MLM(u().size)},
then:function(){return _.p("div",{class:function(){var R={};R=(R["yt-spec-avatar-shape__live-badge"]=!0,R["yt-spec-avatar-shape__live-badge--badge-small"]=u().size==="small",R["yt-spec-avatar-shape__live-badge--badge-medium"]=u().size==="medium"||u().size==="48",R["yt-spec-avatar-shape__live-badge--badge-large"]=u().size==="large",R["yt-spec-avatar-shape__live-badge--badge-extra-large"]=u().size==="extra-large"||u().size==="extra-extra-large"||u().size==="giant",R);return _.N0(R)}},_.p(_.M,{cond:function(){return u().badgeText},
then:function(R){return _.p("div",{class:"yt-spec-avatar-shape__badge-text",el:v},R)}}),_.p(_.M,{cond:J,
then:function(){return _.p("div",{class:"yt-spec-avatar-shape__badge-icon"},_.p(_.B1,{icon:e,size:function(){a:switch(u().size){case "extra-large":var R=16;break a;default:R=13}return R}}))}}))}}),_.p(_.M,{cond:function(){var R,H;
return((R=u().decorations)==null?void 0:R.includes(1))||((H=u().decorations)==null?void 0:H.includes(0))&&!MLM(u().size)},
then:function(){return _.p("div",{class:function(){var R=u(),H,l,d={};var F=(d["yt-spec-avatar-shape__live-dot"]=!((H=R.decorations)==null||!H.includes(0)||MLM(R.size)),d["yt-spec-avatar-shape__new-content"]=!((l=R.decorations)==null||!l.includes(1)),d);return _.N0(F)}})}}),_.p(_.M,{cond:function(){return!!E},
then:function(){return _.p("div",{class:function(){var R={};R=Object.assign((R["yt-spec-avatar-shape__image-overlays"]=!0,R),G());return _.N0(R)}},E==null?void 0:E())}})))))},"Qa");
k55.idomCompat={callbacks:{overlays:!0}};_.jv=_.r(function(g){function u(){q().endpoint&&_.ey(q().endpoint)}
var q=g.data;var Q=g.decorations;var L=g.avatarButtonCustomClassName;var E=g.isOverlay;var y=g.clusterLayoutConfig;return _.p("avatar-view-model",null,_.p(_.M,{cond:function(){return q().image},
then:function(v){return _.p(k55,{data:function(){return G5f({data:q(),onTap:q().endpoint?u:void 0,decorations:Q==null?void 0:Q(),badgeText:void 0,accessibilityText:q().accessibilityText,avatarButtonCustomClassName:L==null?void 0:L(),clusterLayoutConfig:y==null?void 0:y()})},
image:v,iconType:"RADAR_LIVE",overlays:function(){return _.p(zRi,{data:q})},
isOverlay:E})}}))},"Ra");
_.jv.idomCompat=!0;_.fG=_.r(function(g){var u=g.data;g=g.className;var q=_.AM("yt-decorated-avatar-view-model"),Q=function(){return _.c(u().avatar,_.fn)},L=_.G9(function(){var E,y=u(),v=Q(),J=_.D7(u().rendererContext),f=(E=q.value)!=null?E:void 0,t;
if(v){f={data:y,avatar:v,onTap:J,element:f};E=f.data;y=f.avatar;v=f.onTap;J=f.element;f=f.commandController;v=v?c3f(v,J,f):void 0;J=[];E.liveData&&J.push(0);var e;f=(e=E.liveData)==null?void 0:e.liveBadgeText;e=(t=_.c(E.rendererContext,_.L3))==null?void 0:t.label;t=G5f({data:y,onTap:v,decorations:J,badgeText:f,accessibilityText:e?e:E.a11yLabel})}else t={size:"medium"};return t},void 0,"c00kWd");
return _.p("yt-decorated-avatar-view-model",{class:_.Ty("ytDecoratedAvatarViewModelHost",g),el:q},_.p(_.M,{cond:function(){var E;return(E=Q())==null?void 0:E.image},
then:function(E){return _.p(k55,{data:L,image:E,iconType:"RADAR_LIVE",overlays:function(){return _.p(zRi,{data:Q})}})}}))},"Sa");
_.fG.idomCompat=!0;_.MU=_.r(function(g){var u=function(){var v;return Object.assign({},g.data(),(v=g.overrides)==null?void 0:v.call(g))},q=function(){return _.pn(u().rendererContext)},Q=function(){var v=u().avatars,J,f;
return(f=(J=(v==null?0:v[0])?_.c(v[0],_.fn):void 0)==null?void 0:J.avatarImageSize)!=null?f:"AVATAR_SIZE_UNKNOWN"},L=function(){return wsT(u())},E=function(){if(u().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var v=void 0;
else if((v=g.decorations)==null?0:v.call(g))v=g.decorations();else{v=u();var J=0;v.avatars&&(J+=v.avatars.length);v.decoratedText&&(J+=1);v=J>1?[3]:[]}return v},y={};
return _.p("yt-avatar-stack-view-model",{el:_.lF(_.J7(function(){return u().rendererContext})),
class:_.Ty("yt-avatar-stack-view-model",g.className,(y["yt-avatar-stack-view-model--tappable"]=q,y["yt-avatar-stack-view-model--is-overlay"]=g.isOverlay,y["yt-avatar-stack-view-model--medium-text"]=g.useMediumText,y)),tabindex:function(){return q()?0:void 0},
role:function(){return q()?"link":void 0},
"aria-label":function(){var v,J;return(J=(v=_.c(u().rendererContext,_.L3))==null?void 0:v.label)!=null?J:""}},_.p(_.M,{cond:function(){var v;
return u().avatars&&!((v=g.hideAvatar)==null?0:v.call(g))},
then:function(){return _.p("div",{class:"yt-avatar-stack-view-model__avatars"},_.p(_.M,{cond:function(){return u().decoratedText},
then:function(v){var J={};return _.p("div",{class:_.Ty("yt-avatar-stack-view-model__text-container",(J["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return Q()==="AVATAR_SIZE_XXS"||Q()==="AVATAR_SIZE_XS"},J["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var f;
return((f=g.isOverlay)==null?void 0:f.call(g))&&(Q()==="AVATAR_SIZE_XXS"||Q()==="AVATAR_SIZE_XS")},J)),
style:_.xH({width:function(){return L().avatarSizeInPx+"px"},
height:function(){return L().avatarSizeInPx+"px"}})},_.p(_.c2,{text:v,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.p("div",{style:function(){return _.xH(L().avatarStackStyle)()},
class:function(){return L().avatarStackClass}},_.p(_.Up,{data:function(){return L().avatars.reverse()}},{avatarViewModel:function(v,J){return _.p("div",{style:function(){var f,t;
return _.xH((t=(f=L()).avatarStyle)==null?void 0:t.call(f,J()))()},
class:function(){return L().avatarClass}},_.p(_.jv,{data:v.data,
decorations:E,avatarButtonCustomClassName:function(){return L().avatarButtonCustomClassName},
isOverlay:g.isOverlay,clusterLayoutConfig:function(){var f,t;return(t=(f=L()).clusterLayoutConfig)==null?void 0:t.call(f,J())}}))},
decoratedAvatarViewModel:function(v,J){return _.p("div",{style:function(){var f,t;return _.xH((t=(f=L()).avatarStyle)==null?void 0:t.call(f,J()))()},
class:function(){return L().avatarClass}},_.p(_.fG,{data:v.data}))}})))}}),_.p(_.M,{cond:function(){return u().text},
then:function(v){return _.p(_.c2,{text:v,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ta");
_.MU.idomCompat=!0;_.dL(_.r(function(g){var u=g.data;var q=g.thumbnailSize;return _.p("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.p("div",{class:_.Ty("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return H7q(q==null?void 0:q())})},_.p(_.Up,{data:function(){return u().avatarStack}},{avatarStackViewModel:function(Q){return _.p(_.MU,{data:Q.data,
decorations:[5]})}})))},"Ua"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.H2,
thumbnailSize:_.H2}});var SX0=_.r(function(g){g=_.FI(g,{hidden:!1});var u=g.data;g=g.hidden;return _.p("yt-thumbnail-overlay-title-view-model",{class:_.Ty("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(u().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var q="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:q="ytThumbnailOverlayTitleViewModelPositionTop"}return q}),
hidden:g},_.p(_.M,{cond:function(){return u().leadingContent},
then:function(q){return _.p("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.p(_.Up,{data:q},{decoratedAvatarViewModel:_.fG}))}}),_.p("div",null,_.p(_.c2,{text:function(){return u().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.p(_.M,{cond:function(){return u().subtitle},
then:function(){return _.p(_.c2,{text:function(){return u().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Va");
SX0.idomCompat=!0;_.dL(SX0,"yt-thumbnail-overlay-title-view-model",{props:{data:_.H2,hidden:_.H2}});_.oNx=_.r(function(g){g=_.FI(g,{isClip:!1});var u=g.data,q=g.thumbnailSize,Q={};return _.p("yt-thumbnail-overlay-badge-view-model",{class:_.Ty("yt-thumbnail-overlay-badge-view-model",function(){a:switch(u().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var L="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:L="yt-thumbnail-overlay-badge-view-model--bottom-end"}return L},function(){return A3q(q==null?void 0:q())},(Q["yt-thumbnail-overlay-badge-view-model--clip"]=g.isClip,
Q))},_.p(_.Up,{data:function(){return u().thumbnailBadges}},{thumbnailBadgeViewModel:function(L){return _.p(_.xvX,{data:L.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Wa");
_.oNx.idomCompat=!0;_.dL(_.oNx,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.H2,thumbnailSize:_.H2,isClip:_.H2}});var Uvi=_.r(function(g){var u=g.data;g=g.hidden;var q=_.G9(function(){return u().indicatorCount||0},void 0,"AbKnMc"),Q={};
return _.p("yt-page-indicator-view-model",{class:_.Ty("ytPageIndicatorViewModelHost",(Q.ytPageIndicatorViewModelIndicatorHidden=function(){return!u().indicatorCount},Q)),
hidden:g},_.p(_.R4,{each:function(){return Array(q())}},function(L,E){var y={};
return _.p("div",{class:_.Ty("ytPageIndicatorViewModelIndicator",(y.ytPageIndicatorViewModelIndicatorSelected=function(){return u().selectedIndex===E()},y))})}))},"Xa");
Uvi.idomCompat=!0;_.dL(Uvi,"yt-page-indicator-view-model",{props:{data:_.H2,hidden:_.H2}});var tW=function(){var g=_.X.apply(this,arguments)||this;g.eventSink=function(){return g};
g.disableInteraction=!1;g.noRoundedCorners=!1;g.isPreviewLoading=!1;g.isOriginalAspectRatio=!1;g.computedObjectFit=!1;g.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return g};
_.A(tW,_.X);_.P=tW.prototype;
_.P.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:_.w("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"}}};
_.P.onImageLoaded=function(){this.loaded=!0};
_.P.onImageUnloaded=function(){this.loaded=!1};
_.P.computeRichThumbnail=function(g,u,q,Q){if(g&&u&&!Q&&!_.w("disable_moving_thumbs_handling")&&!q)return u};
_.P.computeImageWidth=function(g,u){return u||9999};
_.P.computeIsOriginalAspectRatio=function(g){return g};
_.P.computeIsLive=function(g){if(g==null?0:g.badges)for(var u=0;u<g.badges.length;u++){var q=g.badges[u];if(q.metadataBadgeRenderer&&q.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(g==null?0:g.thumbnailOverlays)for(u=0;u<g.thumbnailOverlays.length;u++)if(q=g.thumbnailOverlays[u],q.thumbnailOverlayTimeStatusRenderer&&q.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.P.computeObjectFit=function(g,u){return u||(g?"CONTAIN":"")};
_.P.computeNavigationEndpoint=function(g,u,q){return g?u:q};
_.P.computeHasClip=function(g){g=_.N(g||[]);for(var u=g.next();!u.done;u=g.next())if(u.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.P.computeOverlayColor=function(g){var u;return(g==null?0:(u=g.darkColorPalette)==null?0:u.section2Color)?g.darkColorPalette.section2Color:g==null?void 0:g.sampledThumbnailColor};
_.z3.Object.defineProperties(tW.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.S5u(this.width)}}});
tW.prototype.onImageUnloaded=tW.prototype.onImageUnloaded;tW.prototype.onImageLoaded=tW.prototype.onImageLoaded;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],tW.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(CNZ),_.K("design:type",Object)],tW.prototype,"ytdThumbnailBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],tW.prototype,"componentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],tW.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tW.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],tW.prototype,"circular",void 0);
_.Y([_.a({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.K("design:type",Object)],tW.prototype,"richThumbnail",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.K("design:type",Boolean)],tW.prototype,"hasClip",void 0);_.Y([_.a(),_.K("design:type",Object)],tW.prototype,"eventSink",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],tW.prototype,"queued",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],tW.prototype,"richGridThumbnail",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],tW.prototype,"useExpandableTooltip",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],tW.prototype,"useUntranslatedNavigationEndpoint",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tW.prototype,"disableInteraction",void 0);
_.Y([_.a({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.K("design:type",Object)],tW.prototype,"computedNavigationEndpoint",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],tW.prototype,"nowPlayingEqualizerOnly",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tW.prototype,"hidePlaybackStatus",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],tW.prototype,"objectFit",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tW.prototype,"noRoundedCorners",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],tW.prototype,"watchFeedThumbnail",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tW.prototype,"isPreviewLoading",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.K("design:type",Object)],tW.prototype,"isOriginalAspectRatio",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.K("design:type",Object)],tW.prototype,"computedObjectFit",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.K("design:type",Boolean)],tW.prototype,"isLiveVideo",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tW.prototype,"loaded",void 0);_.Y([_.a({computed:"computeOverlayColor(data.thumbnail)"}),_.K("design:type",Object)],tW.prototype,"overlayColor",void 0);_.Y([_.a(),_.K("design:type",Boolean)],tW.prototype,"minimizePipBreakages",void 0);_.Y([_.a({selector:_.cFS}),_.K("design:type",Boolean)],tW.prototype,"inlinePreviewIsEnabled",void 0);_.Y([_.a(),_.K("design:type",Number)],tW.prototype,"width",void 0);
_.Y([_.C("inlinePreviewIsEnabled"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],tW.prototype,"isPreviewDisabled",null);_.Y([_.C("width"),_.K("design:type",String),_.K("design:paramtypes",[])],tW.prototype,"thumbnailSize",null);_.Y([_.n6("image-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tW.prototype,"onImageLoaded",null);
_.Y([_.n6("image-unloaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tW.prototype,"onImageUnloaded",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-thumbnail"})],tW);
_.Te()(tW,"ytd-thumbnail",function(){if(O7H===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);O7H=g}g=O7H;return g},{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 IoM=function(g){var u=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15350_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15350_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(q){ggH(u,q)};
this.onLockupMouseLeaveFn=function(q){q=q.relatedTarget;var Q,L;((Q=document.getElementsByTagName("ytd-video-preview"))==null?0:(L=Q.item(0))==null?0:L.contains(q))||(u.terminateVideoPreview(),ev(u))};
this.onThumbnailMouseDownFn=function(){u.terminateVideoPreview();ev(u)};
this.onTouchStart=function(){u.JSC$15350_touched=!0};
this.mediaRenderer=g.mediaRenderer;this.thumbnailElement=g.thumbnailElement;this.lockupElement=g.lockupElement;this.videoPreviewOptsInput=g.videoPreviewOpts;uLi(this);Gb(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)):
_.Io(Error("Hh")):_.Io(Error("Ih")):qlW(this)},a1=function(g){qlW(g);
var u;(u=g.lockupElement)==null||u.removeEventListener("mouseenter",g.onMouseMoveFn);var q;(q=g.lockupElement)==null||q.removeEventListener("mouseleave",g.onLockupMouseLeaveFn);var Q;(Q=g.lockupElement)==null||Q.removeEventListener("touchstart",g.onTouchStart);var L;(L=g.thumbnailElement)==null||L.removeEventListener("mousedown",g.onThumbnailMouseDownFn);ev(g)},uLi=function(g){g.inlinePreviewIsEnabledForUser=_.bR().getState().ui.inlinePreviewIsEnabled;
g.unsubscribeFromInlinePreviewIsEnabled=_.qG(_.bR(),_.cFS,function(u){(g.inlinePreviewIsEnabledForUser=u)||ev(g)});
g.JSC$15350_unsubscribeFromInlinePreviewIsActive=_.qG(_.bR(),_.w_F,function(u){(g.inlinePreviewIsActive=u)||ev(g)})},qlW=function(g){g.unsubscribeFromInlinePreviewIsEnabled();
g.unsubscribeFromInlinePreviewIsEnabled=function(){};
g.JSC$15350_unsubscribeFromInlinePreviewIsActive();g.JSC$15350_unsubscribeFromInlinePreviewIsActive=function(){}},ggH=function(g,u){u.buttons>0||(u=_.S8("kevlar_lockup_hover_delay",-1),g.JSC$15350_touched&&u>=0?(_.Hv.cancelJob(g.videoPreviewJobId),g.videoPreviewJobId=_.Xh(_.Hv,function(){Qii(g)},u),g.JSC$15350_touched=!1):Qii(g))},IAf=function(g){g.videoPreviewJobId=_.Xh(_.Hv,function(){return _.D(function(u){return u.yield(LQi(g,{isAutoplay:!0}),0)})})},Qii=function(g){!g.previewTriggered&&Gb(g)&&
(g.inlinePreviewIsActive&&g.terminateVideoPreview(),g.previewTriggered=!0,g.mediaRenderer.isInlinePreviewTriggered=!0,_.Hv.cancelJob(g.videoPreviewJobId),g.videoPreviewJobId=_.Xh(_.Hv,function(){return _.D(function(u){return u.yield(LQi(g),0)})}))},LQi=function(g,u){u=u===void 0?{}:u;
var q=u.isAutoplay===void 0?!1:u.isAutoplay;var Q,L,E,y;return _.D(function(v){if(v.nextAddress==1){if(!Gb(g))return v.return();Q=g.getVideoPreviewOpts();if(!Q)return v.return();q&&(Q.isAutoplay=!0);return(E=(L=_.Og(g.mediaRenderer.hostElement,"yt-open-video-preview-action",[Q]))&&L[0])?v.yield(L[0],3):v.jumpTo(2)}v.nextAddress!=2&&(E=v.yieldResult===1);if(E){var J=(y=g.mediaRenderer)==null?void 0:y.data;J&&(loq(J)?delete J.inlinePlayerData:"inlinePlaybackEndpoint"in J&&delete J.inlinePlaybackEndpoint)}_.Wx(v)})};
IoM.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var g,u;if((u=(g=this.videoPreviewOptsInput)==null?void 0:g.videoPreviewData)!=null)g=u;else if(g=this.mediaRenderer.data)if(loq(g))g={inlinePlaybackEndpoint:_.jy(g.inlinePlayerData.onVisible),navigationEndpoint:_.jy(g.onTap),thumbnail:"image"in g?g.image:g.thumbnail,thumbnailOverlays:void 0,accessibilityText:Z7K(g)};else if("multipleInlinePlaybackEndpoint"in g){var q=_.c(_.c(g.multipleInlinePlaybackEndpoint,uM5),lAZ);if(q!=
null&&q.playerDescriptors){u=[];q=_.N(q.playerDescriptors);for(var Q=q.next();!Q.done;Q=q.next())Q=Q.value,u.push({inlinePlaybackEndpoint:Q.inlinePlaybackEndpoint,navigationEndpoint:Q.navigationEndpoint,thumbnail:Q.thumbnail,thumbnailOverlays:Q.thumbnailOverlays,accessibilityText:Z7K(g)});g=u}else g=void 0}else g={inlinePlaybackEndpoint:g.inlinePlaybackEndpoint,navigationEndpoint:g.navigationEndpoint,thumbnail:g.thumbnail,thumbnailOverlays:g.thumbnailOverlays,accessibilityText:Z7K(g)};else g=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:g,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Gb=function(g){var u;if(u=g.inlinePreviewIsEnabledForUser)u=(g=g.mediaRenderer.data)?"inlinePlaybackEndpoint"in g&&g.inlinePlaybackEndpoint||loq(g)&&g.inlinePlayerData||"multipleInlinePlaybackEndpoint"in g&&g.multipleInlinePlaybackEndpoint?!0:!1:!1;return u};
IoM.prototype.terminateVideoPreview=function(){_.YJ(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var ev=function(g){_.Hv.cancelJob(g.videoPreviewJobId);g.inlinePreviewIsActive=!1;g.previewTriggered=!1;g.mediaRenderer.isInlinePreviewTriggered=!1};var Eg2=_.CT(["#"]),$4=function(){var g=_.X.apply(this,arguments)||this;g.isDisabled=!1;return g};
_.A($4,_.X);_.P=$4.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":g7,"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"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.getMetadata=function(g){var u=[];if(g.metadataText&&Object.keys(g.metadataText).length>0){var q=this.ytRendererBehavior.getSimpleString(g.metadataText);g.upcomingEventData&&g.upcomingEventData.upcomingEventText&&(q=_.EI(q,Number(g.upcomingEventData.startTime)));u.push(q)}else g.shortViewCountText&&u.push(this.ytRendererBehavior.getSimpleString(g.shortViewCountText)),g.publishedTimeText&&u.push(this.ytRendererBehavior.getSimpleString(g.publishedTimeText)),g.upcomingEventData&&g.upcomingEventData.upcomingEventText&&
(q=this.ytRendererBehavior.getSimpleString(g.upcomingEventData.upcomingEventText),u.push(_.EI(q,Number(g.upcomingEventData.startTime))));return u};
_.P.calculateBylineText=function(g){return g.shortBylineText?g.shortBylineText:g.bylineText?g.bylineText:null};
_.P.calculateIsDisabled=function(g){return!!g.isDisabled};
_.P.computeHrefWithDefault=function(g){return this.ytComponentBehavior.computeHref_(g)||_.Hah(Eg2)};
_.P.onDetailsTap=function(g){var u=this.data&&this.data.navigationEndpoint;u&&!_.ia(_.C6(g)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.w("kevlar_grid_video_renderer_killswitch")?_.hJ(this.hostElement,"yt-navigate",{endpoint:u}):this.ytComponentBehavior.resolveCommand(u))};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15357_inlinePreviewHoverListener=M0({mediaRenderer:this,lockupElement:_.Tr(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Tr(this.hostElement).querySelector("ytd-thumbnail")})};
_.P.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$15357_inlinePreviewHoverListener)==null||a1(g)};
_.P.computeThumbnailWidth=function(g,u){return u&&u>0?u:g?360:210};
_.P.computeNumBadgesInRow=function(g){var u;return((u=g.badges)==null?void 0:u.length)||0};
_.P.computeShowChannelThumbnail=function(g,u){var q;return u&&!!(g==null?0:(q=g.channelThumbnailSupportedRenderers)==null?0:q.channelThumbnailWithLinkRenderer)};
_.z3.Object.defineProperties($4.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$15357_inlinePreviewHoverListener)==null?0:Gb(g))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
$4.prototype.dataChanged=$4.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],$4.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],$4.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.I(_.c_),_.K("design:type",Object)],$4.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],$4.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],$4.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],$4.prototype,"noEndpoints",void 0);_.Y([_.a({computed:"calculateBylineText(data)"}),_.K("design:type",Object)],$4.prototype,"bylineText",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],$4.prototype,"isSearch",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],$4.prototype,"isDownloading",void 0);_.Y([_.a({reflectToAttribute:!0,value:0}),_.K("design:type",Number)],$4.prototype,"width",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.K("design:type",Object)],$4.prototype,"isDisabled",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$4.prototype,"dataChanged",null);_.Y([_.C("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$4.prototype,"isHovered",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$4.prototype,"hasAttributedBylineText",null);
_.Y([_.C("bylineText","hasAttributedBylineText"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$4.prototype,"showBylineText",null);_.Y([_.fE({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],$4);
_.T($4,"ytd-grid-video-renderer",function(){if(b7x!==void 0)return b7x;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return b7x=g},{mode:2});var Pz8;var Rw=function(){var g=_.X.apply(this,arguments)||this;g.roundedContainer=!0;g.skipRoundingTop=!1;g.disableTopPadding=!1;g.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");g.extractOverlay=!1;return g};
_.A(Rw,_.X);Rw.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Rw.prototype.onClick=function(g){var u,q=(u=this.data)==null?void 0:u.sourceEndpoint;!_.ia(_.C6(g),this.hostElement,["A".toString()])&&q&&_.hJ(this.hostElement,"yt-navigate",{endpoint:q})};
_.z3.Object.defineProperties(Rw.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 g;return!((g=this.data)==null||!g.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=(g=this.data)==null?void 0:g.paragraphMaxLines)!=null?u:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Rw.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rw.prototype,"showVerticalDividers",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rw.prototype,"roundedContainer",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rw.prototype,"skipRoundingTop",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rw.prototype,"disableTopPadding",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Rw.prototype,"amsterdamEnabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rw.prototype,"extractOverlay",void 0);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rw.prototype,"showMetadataAtTop",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rw.prototype,"showMetadataBelowTitle",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.menu"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rw.prototype,"hasMenu",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.truncateParagraphs"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rw.prototype,"truncateParagraphs",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.paragraphMaxLines"),_.K("design:type",Number),_.K("design:paramtypes",[])],Rw.prototype,"paragraphMaxLines",null);
_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.C("data.background"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rw.prototype,"background",null);_.Y([_.fE({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Rw);
_.T(Rw,"ytd-info-panel-content-renderer",function(){if(Pz8!==void 0)return Pz8;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Pz8=g},{mode:2});var NlW;var sia;var yv8;var vg0;var w7=function(){return _.X.apply(this,arguments)||this};
_.A(w7,_.X);w7.prototype.computeStyle=function(g){return g};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],w7.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],w7.prototype,"style_",void 0);_.Y([_.jP({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],w7);
_.T(w7,"yt-channel-thumbnail-with-link-renderer",function(){if(vg0===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;yv8===void 0&&(yv8=document.createElement("template"));var Q=yv8;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);vg0=g}g=vg0;return g},{mode:2});var cp=function(){return _.X.apply(this,arguments)||this};
_.A(cp,_.X);cp.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"}}}};
cp.prototype.computeTitleStyle=function(g){return g||null};
cp.prototype.computeAvatarStyle=function(g){return g||null};
cp.prototype.computeShowNavigationButton=function(g,u){return!(g==null||!g.navigationButton||u)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cp.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.K("design:type",String)],cp.prototype,"titleStyle",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.K("design:type",String)],cp.prototype,"avatarStyle",void 0);_.Y([_.a(),_.K("design:type",Boolean)],cp.prototype,"hideNavigationButton",void 0);_.Y([_.fE({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],cp);
_.T(cp,"ytd-rich-list-header-renderer",function(){if(sia!==void 0)return sia;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return sia=g},{mode:2});var Hp=function(){return _.X.apply(this,arguments)||this};
_.A(Hp,_.X);Hp.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]]"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Hp.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],Hp.prototype,"isSearch",void 0);_.Y([_.fE({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Hp);
_.T(Hp,"ytd-preview-card-renderer",function(){if(NlW!==void 0)return NlW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return NlW=g},{mode:1});var DhZ;var AW=function(){return _.X.apply(this,arguments)||this};
_.A(AW,_.X);AW.prototype.configureRendererStamper=function(){return{"data.menu":g7}};
AW.prototype.dataChanged=function(){var g=this.get("colorExtractionPalette.section1Color",this.data);g=_.JR(g);_.x_(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":g})};
AW.prototype.computeCardStyle=function(g){return this.get("style.value",g)||null};
AW.prototype.dataChanged=AW.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],AW.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],AW.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.K("design:type",String)],AW.prototype,"cardStyle",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AW.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],AW);
_.T(AW,"ytd-compact-channel-recommendation-card-renderer",function(){if(DhZ!==void 0)return DhZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return DhZ=g},{mode:1});var pAo;var Jv5;var Zm=function(){var g=_.X.apply(this,arguments)||this;g.alignAuto=!1;g.collapsed=!0;g.isToggled=!1;g.alwaysCollapsed=!1;g.canToggle=!0;g.collapsedHeight=80;g.disableToggle=!1;g.alwaysToggleable=!1;g.reversed=!1;g.shouldUseNumberOfLines=!1;g.recomputeOnResize=!1;g.canToggleJobId=0;g.lastReversed=!1;return g};
_.A(Zm,_.X);_.P=Zm.prototype;_.P.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.P.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.P.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var g=_.Tr(this.hostElement),u=g.childNodes,q=document.createDocumentFragment(),Q=g.childNodes.length-1;Q>=0;Q--)_.Tr(q).appendChild(u[Q]);_.w("enable_shadydom_free_scoped_node_methods")?_.hR(this.hostElement).appendChild(q):g.appendChild(q)}};
_.P.ready=function(){var g=this;_.wO(function(){g.initChildrenObserver()},1)};
_.P.attached=function(){var g;(g=this.resizeObserver)==null||g.observe(this.content)};
_.P.detached=function(){this.detachObserver()};
_.P.toggle=function(g,u){this.canToggle&&(this.isToggled=u,_.hJ(this.hostElement,"yt-refit"),g&&g.stopPropagation())};
_.P.reset=function(){this.childrenChanged()};
_.P.onIronResize=function(){this.recomputeOnResize&&!_.w("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.P.computeIsMoreVisible=function(g,u){return g&&!u};
_.P.computeShouldUseNumberOfLines=function(g){try{return!!g&&window.CSS.supports("-webkit-line-clamp","1")}catch(u){}return!1};
_.P.computeIsLessVisible=function(g,u){return g&&u};
_.P.observeCollapsedHeightAndMaxLines=function(){var g=this.collapsedHeight,u=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.x_(this.hostElement,{"--ytd-expander-max-lines":""+u,"--ytd-expander-collapsed-height":""}):_.x_(this.hostElement,{"--ytd-expander-collapsed-height":g+"px","--ytd-expander-max-lines":""})};
_.P.handleMoreTap=function(g){this.disableToggle||(_.hJ(this.hostElement,"yt-expander-more-tapped"),this.toggle(g,!0))};
_.P.handleLessTap=function(g){_.hJ(this.hostElement,"yt-expander-less-tapped");this.toggle(g,!1)};
_.P.initChildrenObserver=function(){var g=this;this.observer=new MutationObserver(function(){g.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.w("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Kr(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var u;(u=g.resizeThrottle)==null||u.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.P.childrenChanged=function(){var g=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Vb(function(){g.canToggleJobId=0;g.calculateCanCollapse()})}))};
_.P.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};
_.P.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.P.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("collapsed-changed",this.collapsed))};
_.P.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("is-toggled-changed",this.isToggled))};
_.P.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("can-toggle-changed",this.canToggle))};
_.z3.Object.defineProperties(Zm.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Zm.prototype.canToggleChangedForBinding=Zm.prototype.canToggleChangedForBinding;Zm.prototype.isToggledChangedForBinding=Zm.prototype.isToggledChangedForBinding;Zm.prototype.collapsedChangedForBinding=Zm.prototype.collapsedChangedForBinding;Zm.prototype.observeCollapsedHeightAndMaxLines=Zm.prototype.observeCollapsedHeightAndMaxLines;Zm.prototype.onIronResize=Zm.prototype.onIronResize;Zm.prototype.reversedChanged=Zm.prototype.reversedChanged;Zm.prototype.toggledChanged=Zm.prototype.toggledChanged;
Zm.prototype.alwaysToggleableChanged=Zm.prototype.alwaysToggleableChanged;_.Y([_.I(_.LJ),_.K("design:type",Object)],Zm.prototype,"ironResizableBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Zm.prototype,"alignAuto",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Zm.prototype,"collapsed",void 0);_.Y([_.a(),_.K("design:type",Object)],Zm.prototype,"isToggled",void 0);_.Y([_.a(),_.K("design:type",Object)],Zm.prototype,"alwaysCollapsed",void 0);
_.Y([_.a(),_.K("design:type",Object)],Zm.prototype,"canToggle",void 0);_.Y([_.a(),_.K("design:type",Object)],Zm.prototype,"collapsedHeight",void 0);_.Y([_.a(),_.K("design:type",Object)],Zm.prototype,"disableToggle",void 0);_.Y([_.a(),_.K("design:type",Object)],Zm.prototype,"alwaysToggleable",void 0);_.Y([_.a(),_.K("design:type",Object)],Zm.prototype,"reversed",void 0);_.Y([_.a(),_.K("design:type",Number)],Zm.prototype,"maxNumberOfLines",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.K("design:type",Object)],Zm.prototype,"shouldUseNumberOfLines",void 0);_.Y([_.a(),_.K("design:type",Object)],Zm.prototype,"recomputeOnResize",void 0);_.Y([_.oE("#content"),_.K("design:type",HTMLDivElement)],Zm.prototype,"content",void 0);_.Y([_.qm("alwaysToggleable"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"alwaysToggleableChanged",null);
_.Y([_.qm("isToggled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"toggledChanged",null);_.Y([_.C("canToggleJobId"),_.K("design:type",Object),_.K("design:paramtypes",[])],Zm.prototype,"isResetting",null);_.Y([_.k_("reversed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"reversedChanged",null);
_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"onIronResize",null);_.Y([_.k_("maxNumberOfLines","collapsedHeight"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"observeCollapsedHeightAndMaxLines",null);_.Y([_.k_("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"collapsedChangedForBinding",null);
_.Y([_.k_("isToggled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"isToggledChangedForBinding",null);_.Y([_.k_("canToggle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"canToggleChangedForBinding",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-expander"})],Zm);
_.T(Zm,"ytd-expander",function(){if(Jv5!==void 0)return Jv5;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Jv5=g},{mode:1});var lY=function(){return _.X.apply(this,arguments)||this};
_.A(lY,_.X);lY.prototype.computeIsCarousel=function(g){return!!g.isCarousel};
lY.prototype.observeLightsourcePalette=function(){var g,u=(g=this.data)==null?void 0:g.vibrantsourceColorPaletteData;u&&_.Le(this.hostElement,u)};
lY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
lY.prototype.observeLightsourcePalette=lY.prototype.observeLightsourcePalette;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],lY.prototype,"data",void 0);_.Y([_.a({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],lY.prototype,"isCarousel",void 0);
_.Y([_.k_("data.vibrantsourceColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lY.prototype,"observeLightsourcePalette",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],lY);
_.T(lY,"ytd-media-upsell-renderer",function(){if(pAo!==void 0)return pAo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return pAo=g},{mode:2});var jiX;var Iw=function(){var g=_.X.apply(this,arguments)||this;g.JSC$15384_playerEvents=new Map;g.listeningToPlayer=!1;g.startX=0;g.active=!1;g.shouldShowButtons=_.w("web_buttons_hidden_killswitch");g.isHighlighted=!1;g.useHighlightStyling=_.w("web_enable_deeper_metadata_highlight_styling");g.enableProblemWalkthrough=_.w("problem_walkthrough_sd");return g};
_.A(Iw,_.X);_.P=Iw.prototype;
_.P.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}}}}}};
_.P.created=function(){this.JSC$15384_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.zr(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.zr(this,this.onActiveUpdate))};
_.P.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.zr(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.zr(this,this.onActiveUpdate))};
_.P.onDataChanged=function(){this.removePlayerListeners()};
_.P.onColorPaletteChange=function(){var g={},u;if(_.RE()==="USER_INTERFACE_THEME_DARK"&&((u=this.data)==null?0:u.darkColorPalette)){var q=this.data.darkColorPalette;g["--ytd-macro-markers-list-item-background-color"]=_.jh(this.get("section2Color",q))}else{var Q;_.RE()==="USER_INTERFACE_THEME_LIGHT"&&((Q=this.data)==null?0:Q.lightColorPalette)&&(q=this.data.lightColorPalette,g["--ytd-macro-markers-list-item-background-color"]=_.jh(this.get("section3Color",q)))}q?(g["--ytd-macro-markers-list-item-title-color"]=
_.jh(this.get("primaryTitleColor",q)),g["--ytd-macro-markers-list-item-secondary-color"]=_.jh(this.get("secondaryTitleColor",q)),g["--ytd-macro-markers-list-item-timestamp-background-color"]=_.jh(this.get("section1Color",q)),this.customButtonProperties={customColors:{color:_.jh(this.get("primaryTitleColor",q))}},this.useColorSampling=!0):(g["--ytd-macro-markers-list-item-background-color"]="initial",g["--ytd-macro-markers-list-item-title-color"]="initial",g["--ytd-macro-markers-list-item-secondary-color"]=
"initial",g["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.x_(this.hostElement,g)};
_.P.onEndpointMouseDown=function(g){this.startX=g.clientX};
_.P.onEndpointClick=function(g){var u=this,q,Q,L;return _.D(function(E){if(E.nextAddress==1){if(u.startX!==g.clientX)return g.preventDefault(),E.return();u.data&&u.ytRendererBehavior.logExplicitClick(u.data);if(!u.seekWithAnimationOnClick)return E.jumpTo(0);if(g.button!==0||g.shiftKey||g.altKey||g.metaKey||g.ctrlKey||_.ia(_.C6(g),u.hostElement,["BUTTON".toString()]))return E.return();g.stopPropagation();g.preventDefault();return u.data?E.yield(_.mH().getPlayerPromise(),3):E.return()}q=E.yieldResult;
L=(Q=_.c(u.data.onTap,_.l1))==null?void 0:Q.startTimeSeconds;L!==void 0&&q.seekToTimeWithAnimation(L*1E3,_.iR(u.data.title));_.Wx(E)})};
_.P.computeLayout=function(g){return g};
_.P.computeIsHighlighted=function(g){return!!g};
_.P.computeCarouselType=function(g){return g};
_.P.hideCarousel=function(g){return this.hideThumbnail(g)};
_.P.hideThumbnail=function(g){return this.enableProblemWalkthrough&&g!==null&&g==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.P.onRepeatButtonToggle=function(g){var u=this;g.detail.toggled&&_.mH().getPlayerPromise().then(function(q){u.ytPlayerListenerBehavior.listenToPlayerEvents(q,u.JSC$15384_playerEvents);u.listeningToPlayer=!0})};
_.P.onLoopRangeChange=function(g){var u=_.Tr(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(u){var q=u.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",u.polymerController.data);if(q){var Q=Number(q.endTimeMs);if(Number(q.startTimeMs)!==(g==null?void 0:g.startTimeMs)||Q!==(g==null?void 0:g.endTimeMs))u.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.P.removePlayerListeners=function(){var g=this;this.listeningToPlayer&&_.mH().getPlayerPromise().then(function(u){g.ytPlayerListenerBehavior.unlistenFromPlayerEvents(u,g.JSC$15384_playerEvents);g.listeningToPlayer=!1})};
_.P.onActiveUpdate=function(g){this.active=g.detail.active};
Iw.prototype.onColorPaletteChange=Iw.prototype.onColorPaletteChange;Iw.prototype.onDataChanged=Iw.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],Iw.prototype,"ytPlayerListenerBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],Iw.prototype,"data",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Iw.prototype,"useCustomColors",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Iw.prototype,"active",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Iw.prototype,"shouldShowButtons",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.K("design:type",String)],Iw.prototype,"layout",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.K("design:type",Object)],Iw.prototype,"isHighlighted",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Iw.prototype,"useHighlightStyling",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Iw.prototype,"enableProblemWalkthrough",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.K("design:type",String)],Iw.prototype,"carouselType",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Iw.prototype,"useColorSampling",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Iw.prototype,"seekWithAnimationOnClick",void 0);_.Y([_.a(),_.K("design:type",Object)],Iw.prototype,"customButtonProperties",void 0);
_.Y([_.oE("#repeat-button"),_.K("design:type",HTMLElement)],Iw.prototype,"repeatButton",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Iw.prototype,"onDataChanged",null);_.Y([_.k_("data.lightColorPalette","data.darkColorPalette"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Iw.prototype,"onColorPaletteChange",null);
_.Y([_.fE({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Iw);
_.T(Iw,"ytd-macro-markers-list-item-renderer",function(){if(jiX!==void 0)return jiX;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return jiX=g},{mode:1});var fZ2;var MSn;var iY=function(){return _.X.apply(this,arguments)||this};
_.A(iY,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],iY.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],iY);
_.T(iY,"ytd-title-and-button-list-header-renderer",function(){if(MSn!==void 0)return MSn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return MSn=g},{mode:1});var tSi;var eba=new _.Fv("BUTTON_RENDERER_TOKEN");_.CG=_.r(function(g){var u=_.Bk().resolve(eba);return _.p(u,Object.assign({},g,{overrides:g.buttonOverrides}))},"Ya");var Gqn=_.r(function(g){var u=g.data,q=_.dO(g.useSquareAspectRatio,!1);return _.p("dismissed-mini-game-card-view-model",null,_.p(_.M,{cond:function(){var Q,L;return(Q=u().responseText)==null?void 0:(L=Q.runs)==null?void 0:L.length},
then:function(){var Q={};return _.p("div",{class:_.Ty("yt-mini-game-card-view-model__dismissed-card",(Q["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!q()},Q["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.w("web_game_card_force_2_by_3")},Q["yt-mini-game-card-view-model--dismissed-square-card"]=q,Q))},_.p("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.p(_.M,{cond:function(){return u().responseText.runs[0].text},
then:function(L){return _.p("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:L},L)}}),_.p(_.Up,{data:function(){return u().buttons}},{buttonRenderer:_.CG,
buttonViewModel:_.TT})))}}))},"Za");var $hW=_.r(function(g){var u=g.data;return _.p("br-nz-badge-shape",{class:_.Ty(function(){return i7m(u().brNzRatingBadgeType)}),
role:function(){return u().accessibilityText?"img":void 0},
"aria-label":function(){return u().accessibilityText}},function(){var q;
return(q=u())==null?void 0:q.text})},"$a");_.bY=_.r(function(g){var u=function(){var q=g.data(),Q,L,E,y,v;if(q){var J=!((Q=g.workaroundShortsIsThumbnailBadge)==null||!Q.call(g));Q=(L=g.modern)==null?void 0:L.call(g);L=(E=g.numBadgesInRow)==null?void 0:E.call(g);E=(y=g.clipTextOverflow)==null?void 0:y.call(g);y=(v=g.inheritTypography)==null?void 0:v.call(g);var f;a:switch(q.badgeStyle){case "BADGE_OVERLAY":v=!0;break a;default:v=!1}q={type:J?17:Cn3(q.badgeStyle),brNzRatingBadgeType:b73(q.badgeStyle),text:q.badgeText,icon:q.iconName,isOverlay:v,
modern:Q||_.w("web_modern_badge_view_model"),accessibilityText:q.accessibilityLabel||((f=_.c(q.rendererContext,_.L3))==null?void 0:f.label),numBadgesInRow:L,clipTextOverflow:E,shouldInheritTypography:y}}else q=void 0;return q};
return _.p("yt-badge-view-model",{class:_.Ty("ytBadgeViewModelHost",g.class)},_.p(_.wi,null,_.p(_.Gv,{when:function(){var q;return!((q=u())==null||!q.brNzRatingBadgeType)}},function(){return _.p($hW,{data:function(){return u()}})}),_.p(_.Gv,{when:function(){return!!u()&&!u().brNzRatingBadgeType}},function(){return _.p(_.$s,{data:function(){return u()}})})))},"ab");
_.bY.idomCompat=!0;var IZ2=_.r(function(g){g=_.FI(g,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var u=g.data,q=g.useFullWidth,Q=g.isDesktopWeb,L=g.addSearchResultTopMargin,E=function(){return u().layout},y=function(){return u().title},v=function(){return u().metadataText?u().metadataText:u().genre},J=function(){return u().channelName},f=function(){return u().image},t=function(){return u().colorPalette},e=function(){return u().actionButton},G=function(){return u().overflowButton},
R=function(){return u().avatar},H=function(){return u().ageRating},l=function(){var z={};
z=_.Ty("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(z["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return Q()},z));
return _.p("div",{class:z},_.p(RbZ,{imageData:f,colorPalette:t}),_.p(wAx,{onTap:function(){return u().onTap},
imageData:f,accessibilityText:function(){return u().accessibilityText},
overlayBadgeText:function(){return u().overlayBadgeText},
iconName:function(){return u().iconName},
unplayableInlinePlaybackIconName:function(){return u().unplayableInlinePlaybackIconName},
isDesktopWeb:Q}),_.p(_.M,{cond:function(){return!Q()},
then:function(){return _.p(_.U9,null,_.p(cvW,{layout:E,colorPalette:t,isDesktopWeb:Q,overflowButton:G,avatar:R,onTap:function(){return u().onTap},
genre:v,title:y,channelName:J}),_.p(Hxa,{actionButton:e}))}}))},d=function(){var z={};
z=_.Ty((z["yt-mini-game-card-view-model--search-result-desktop"]=function(){return Q()},z["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!Q()},z["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return L()},z));
return _.p("div",{class:z},l(),_.p(Av$,{description:function(){return u().description},
isDesktopWeb:Q,title:y,genre:v,onTap:function(){return u().onTap},
actionButton:e,overflowButton:G,avatar:R,channelName:J}))},F=function(){var z={};
z=_.Ty("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(z["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return Q()},z["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return Q()&&u().width===135},z["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return Q()},z["yt-mini-game-card-view-model--big-metadata-font"]=function(){return u().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},z["yt-mini-game-card-view-model--use-full-width"]=
function(){return q()},z["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.w("web_game_card_force_2_by_3")},z));
return _.p("div",{class:z},_.p(Zx$,{colorPalette:t,isDesktopWeb:Q,onTap:function(){return u().onTap},
accessibilityText:function(){return u().accessibilityText},
overlayBadgeText:function(){return u().overlayBadgeText},
iconName:function(){return u().iconName},
unplayableInlinePlaybackIconName:function(){return u().unplayableInlinePlaybackIconName},
actionButton:e,imageData:f}),_.p(cvW,{layout:E,colorPalette:t,isDesktopWeb:Q,overflowButton:G,avatar:R,onTap:function(){return u().onTap},
genre:v,title:y,channelName:J}),_.p(_.M,{cond:H,then:function(O){return _.p(lZb,{ageRating:O})}}))},V=function(){var z={};
z=_.Ty("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(z["yt-mini-game-card-view-model--square-card-desktop"]=function(){return Q()},z["yt-mini-game-card-view-model--use-full-width"]=function(){return q()},z));
return _.p("div",{class:z},_.p(wAx,{onTap:function(){return u().onTap},
imageData:f,accessibilityText:function(){return u().accessibilityText},
overlayBadgeText:function(){return u().overlayBadgeText},
iconName:function(){return u().iconName},
unplayableInlinePlaybackIconName:function(){return u().unplayableInlinePlaybackIconName},
isDesktopWeb:Q}),_.p(cvW,{layout:E,colorPalette:t,isDesktopWeb:Q,overflowButton:G,avatar:R,onTap:function(){return u().onTap},
genre:v,title:y,channelName:J}),_.p(_.M,{cond:H,then:function(O){return _.p(lZb,{ageRating:O})}}))};
return _.p("mini-game-card-view-model",{class:g.className},_.p(_.wi,null,_.p(_.Gv,{when:function(){return E()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return F()}),_.p(_.Gv,{when:function(){return E()==="MINI_APP_LAYOUT_SQUARE"}},function(){return V()}),_.p(_.Gv,{when:function(){return E()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return d()})))},"bb");
IZ2.idomCompat=!0;var Hxa=_.r(function(g){var u=_.dO(g.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.p(_.Up,{data:g.actionButton},{buttonViewModel:function(q){return _.p("div",{class:u},_.p(_.TT,{data:q.data}))}})},"cb"),wAx=_.r(function(g){var u=g.onTap;
var q=g.imageData;var Q=g.accessibilityText;var L=g.overlayBadgeText;var E=g.iconName;var y=g.unplayableInlinePlaybackIconName;g=g.isDesktopWeb;return _.p(_.ag,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:u},_.p(_.IT,{data:q,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(Q==null?void 0:Q())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.p(ixa,{overlayBadgeText:L,iconName:E,unplayableInlinePlaybackIconName:y,isDesktopWeb:g}))},"db"),ixa=_.r(function(g){var u=g.overlayBadgeText;
var q=g.iconName;var Q=g.unplayableInlinePlaybackIconName;var L=g.isDesktopWeb;return _.p("div",{class:"yt-mini-game-card-view-model__badge-container"},_.p(_.M,{cond:q,then:function(E){return _.p("div",{class:"yt-mini-game-card-view-model__badge"},_.p("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.p(_.B1,{icon:E,className:"yt-mini-game-card-view-model__icon",size:12}),_.p("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},u)))}}),_.p(_.M,{cond:function(){return!q()&&
u()},
then:function(){return _.p("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},u)}}),_.p(_.M,{cond:function(){return Q()&&L()},
then:function(){return _.p("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.p(_.B1,{icon:Q,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"eb"),RbZ=_.r(function(g){var u=g.colorPalette;
var q=g.imageData;var Q=function(){return u().vibrantColorPalette?u().vibrantColorPalette.section2Color:u().sectionTwoColor};
return _.p(_.U9,null,_.p("div",{class:"yt-mini-game-card-view-model__background-base",style:_.xH({"background-color":function(){return f6(Q(),"1")}})}),_.p("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.xH({"background-image":function(){return"url("+q().sources[0].url+")"}})}),_.p("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.xH({background:function(){return"linear-gradient(180deg,\n    "+f6(Q(),".8")+" 0%,\n    "+f6(Q(),".4")+" 25%,\n    "+f6(u().vibrantColorPalette?u().vibrantColorPalette.section4Color:u().sectionFourColor,".8")+" 100%)"}})}))},"fb"),cvW=_.r(function(g){var u=g.layout;
var q=g.colorPalette;var Q=g.overflowButton;var L=g.avatar;var E=g.onTap;var y=g.title;var v=g.channelName;var J=g.genre;var f=function(){var t;return u()!=="MINI_APP_LAYOUT_SQUARE"&&((t=q())==null?0:t.textPrimaryColor)?"color: "+f6(q().textPrimaryColor,".7"):""};
return _.p("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.p(_.M,{cond:L,then:function(){return _.p("div",{class:"yt-mini-game-card-view-model__avatar"},_.p(_.Up,{data:L},{avatarViewModel:_.jv}))}}),_.p(_.ag,{command:E,
className:"yt-mini-game-card-view-model__metadata-details"},_.p("h3",{class:"yt-mini-game-card-view-model__title",title:y},y),_.p(_.M,{cond:L,then:function(){return _.p("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.p("span",{class:"yt-mini-game-card-view-model__genre",title:v,style:f},v),_.p("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:f},J))},
else:function(){return _.p("span",{class:"yt-mini-game-card-view-model__genre",title:J},J)}})),_.p("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.p(_.Up,{data:Q},{buttonViewModel:function(t){var e=t.data;
return _.p(_.TT,{data:function(){return Object.assign({},e(),{customFontColor:u()==="MINI_APP_LAYOUT_SINGLETON"?e().customFontColor:void 0})}})}})))},"gb"),Zx$=_.r(function(g){var u=g.colorPalette;
var q=g.isDesktopWeb;var Q=g.onTap;var L=g.accessibilityText;var E=g.overlayBadgeText;var y=g.iconName;var v=g.unplayableInlinePlaybackIconName;var J=g.actionButton;g=g.imageData;return _.p("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.p(RbZ,{imageData:g,colorPalette:u}),_.p(wAx,{onTap:Q,imageData:g,accessibilityText:L,overlayBadgeText:E,iconName:y,unplayableInlinePlaybackIconName:v,isDesktopWeb:q}),_.p(_.M,{cond:function(){return J==null?void 0:J()},
then:function(){return _.p(Hxa,{actionButton:J})}}))},"hb"),Av$=_.r(function(g){var u=g.description;
var q=g.isDesktopWeb;var Q=g.title;var L=g.genre;var E=g.onTap;var y=g.actionButton;var v=g.overflowButton;var J=g.avatar;g=g.channelName;var f={};f=_.Ty("yt-mini-game-card-view-model--search-result-metadata-wrapper",(f["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=q,f["yt-mini-game-card-view-model--show-unplayable-on-hover"]=q,f["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!q()},f));
var t={};t=_.Ty("yt-mini-game-card-view-model__search-result-info-row",(t["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!q()},t));
return _.p("div",{class:f},_.p("div",{class:t},_.p(_.ag,{command:E,className:"yt-mini-game-card-view-model__metadata-details"},_.p("h3",{class:"yt-mini-game-card-view-model__title",title:Q},Q),_.p("span",{class:"yt-mini-game-card-view-model__genre",title:L},L)),_.p(Hxa,{actionButton:y,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.p("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.p(_.Up,{data:v},{buttonViewModel:_.TT}))),_.p("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.p("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.p("div",{class:"yt-mini-game-card-view-model__avatar"},_.p(_.Up,{data:J},{avatarViewModel:function(e){var G=e.data;return _.p(_.jv,{data:function(){return Object.assign({},G(),{avatarImageSize:q()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.p(_.ag,{command:E,
className:"yt-mini-game-card-view-model__description"},_.p("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},g)),_.p(_.ag,{command:E,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.p("div",null)))),_.p(_.M,{cond:q,then:function(){return _.p(_.ag,{command:E,className:"yt-mini-game-card-view-model__description"},u)}}))},"ib"),lZb=_.r(function(g){var u=g.ageRating;
return _.p("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.p(_.IT,{data:function(){return{sources:[{url:u().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.p(_.bY,{data:function(){return{badgeText:u().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"jb");_.dL(IZ2,"mini-game-card-view-model",{props:{data:_.H2,className:_.H2,useFullWidth:_.H2,isDesktopWeb:_.H2,addSearchResultTopMargin:_.H2}});_.dL(Gqn,"dismissed-mini-game-card-view-model",{props:{data:_.H2,useSquareAspectRatio:_.H2}});var d7=function(){var g=_.X.apply(this,arguments)||this;g.isSearch=!1;g.isRichGrid=!1;return g};
_.A(d7,_.X);_.P=d7.prototype;_.P.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.P.dismissibleItemOnYtServiceRequestSent=function(g,u){u.actions&&this.dismissibleItemProcessActions(g,u.actions)};
_.P.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.P.dataChanged=function(){this.dismissibleItemReset()};
_.P.dismissibleItemProcessActions=function(g,u){for(var q=0;q<u.length;q++){var Q=u[q];_.c(Q,_.oB)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.c(Q,_.oB)),g.stopPropagation())}};
_.P.dismissibleItemHandleReplaceEnclosingAction=function(g){this.dismissedRenderer=g.item;this.isDismissed=!0};
_.z3.Object.defineProperties(d7.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var g;return!!this.data&&!((g=this.dismissedRenderer)==null?0:g.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.dismissedRenderer)==null||!g.notificationMultiActionRenderer)}}});
d7.prototype.dataChanged=d7.prototype.dataChanged;d7.prototype.dismissibleItemOnRequestSent=d7.prototype.dismissibleItemOnRequestSent;d7.prototype.dismissibleItemOnYtServiceRequestSent=d7.prototype.dismissibleItemOnYtServiceRequestSent;_.Y([_.a(),_.K("design:type",Object)],d7.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],d7.prototype,"isSearch",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],d7.prototype,"isDismissed",void 0);
_.Y([_.a(),_.K("design:type",Object)],d7.prototype,"dismissedRenderer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],d7.prototype,"isRichGrid",void 0);_.Y([_.C("data.layout"),_.K("design:type",Object),_.K("design:paramtypes",[])],d7.prototype,"useSquareAspectRatio",null);_.Y([_.C("data","dismissedRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],d7.prototype,"showCard",null);
_.Y([_.C("data","dismissedRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],d7.prototype,"showDismissed",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],d7.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.Y([_.n6("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],d7.prototype,"dismissibleItemOnRequestSent",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],d7.prototype,"dataChanged",null);_.Y([_.jP({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],d7);
_.T(d7,"ytd-mini-game-card-view-model",function(){if(tSi!==void 0)return tSi;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return tSi=g},{mode:2});var Cz5;var bx8;var FY=function(){return _.nf.apply(this,arguments)||this};
_.A(FY,_.nf);FY.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
FY.prototype.getContinuationUrl=function(g){var u={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(u.itct=this.data.clickTrackingParams);return _.Sg(g,u)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],FY.prototype,"data",void 0);_.Y([_.jP({is:"yt-reload-continuation",noInjection:!0})],FY);var dh5;var FQ2;var mw=function(){var g=_.X.apply(this,arguments)||this;g.notificationData={};return g};
_.A(mw,_.X);_.P=mw.prototype;_.P.isMenuExpanded=function(g){return g&&g.length<=1?"undefined":"false"};
_.P.dataChanged_=function(){this.selected=void 0;var g=this.computeSelectedIndex_(this.data);g>=0&&(this.selected=g);g=this.data&&this.data.length>1;_.Y_(this.hostElement,"has-items",g);_.Tr(this.hostElement).querySelector("#label").tabIndex=g?0:-1};
_.P.onDropdownOpen=function(){var g=_.j_();if(this.parentTrackingParams&&this.data){var u=_.Lr(this.parentTrackingParams);this.data.forEach(function(q){g&&u&&q.trackingParams&&(q=_.Lr(q.trackingParams),_.cC(g,u,q),_.Z0(g,[q]))})}else this.parentTrackingParams||_.Io(new _.Ji("No parent tracking params passed in for yt-dropdown-menu."))};
_.P.hasNotification=function(g){var u;if(g.targetId&&((u=this.notificationData)==null?0:u.targetId)){var q;return g.targetId===((q=this.notificationData)==null?void 0:q.targetId)}};
_.P.computeSelectedIndex_=function(g){if(g)for(var u=0,q=g.length;u<q;u++)if(g[u].selected)return u;return-1};
_.P.computeLabel_=function(g){return this.data&&g!=void 0?this.data[g].title:""};
_.P.computeShowIcon_=function(g,u){return!u&&!!g};
_.P.computeVerticalOffset_=function(g){return g?36:0};
_.P.computeEndpoint_=function(g){return g.endpoint||g.navigationEndpoint};
_.P.onLabelClick_=function(g){this.data&&this.data.length<=1?g.stopPropagation():this.menuExpanded="true"};
_.P.onIronActivate_=function(g){g=g.detail.item;var u=_.Tr(this.hostElement).querySelector("#repeat").itemForElement(g);if(u&&u.trackingParams){var q=_.j_(),Q=_.Lr(u.trackingParams);q&&_.Ip(q,Q)}if(u&&u.serviceEndpoint)_.w("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(u.serviceEndpoint):_.KV(this.hostElement,[u.serviceEndpoint]),_.hJ(this.hostElement,"yt-playlist-reloading");else a:{if((u=g.querySelector("yt-supported-renderers"))&&
(u=u.rendererElement)&&u.is=="yt-reload-continuation"){u.trigger();break a}(g=g.querySelector("yt-reload-continuation"))&&g.trigger()}};
_.P.onTap_=function(g){g.preventDefault()};
_.P.onItemTap_=function(g){this.ytEndpointBehavior.onEndpointTap_(g)};
_.P.onLinkFocus_=function(g){try{var u=g.target}catch(Q){}if(u){var q=u.querySelector("tp-yt-paper-item");q&&_.c$(this,"focus",function(){q.focus()})}};
_.P.onMenuClose_=function(){this.menuExpanded="false"};
_.P.isLabelIconActive_=function(g){return g==="true"};
_.P.computeHasSubtitle_=function(g){return!!g};
_.P.computeHrefForItem_=function(g){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(g))};
_.P.updateSelectedFromBinding=function(g){this.selected=g.detail.value};
_.z3.Object.defineProperties(mw.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
mw.prototype.onMenuClose_=mw.prototype.onMenuClose_;mw.prototype.onTap_=mw.prototype.onTap_;mw.prototype.onIronActivate_=mw.prototype.onIronActivate_;mw.prototype.onDropdownOpen=mw.prototype.onDropdownOpen;mw.prototype.dataChanged_=mw.prototype.dataChanged_;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],mw.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.KK.YtEndpointBehavior),_.K("design:type",Object)],mw.prototype,"ytEndpointBehavior",void 0);
_.Y([_.a(),_.K("design:type",Array)],mw.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],mw.prototype,"parentTrackingParams",void 0);_.Y([_.a(),_.K("design:type",Object)],mw.prototype,"selected",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],mw.prototype,"useLabel",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],mw.prototype,"useComputedAriaLabel",void 0);_.Y([_.a(),_.K("design:type",String)],mw.prototype,"icon",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],mw.prototype,"iconLabel",void 0);_.Y([_.a(),_.K("design:type",String)],mw.prototype,"ariaLabel",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],mw.prototype,"disabled",void 0);_.Y([_.a({computed:"isMenuExpanded(data)"}),_.K("design:type",String)],mw.prototype,"menuExpanded",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],mw.prototype,"closeOnActivate",void 0);
_.Y([_.a({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.K("design:type",Boolean)],mw.prototype,"modernButtons",void 0);_.Y([_.a(),_.K("design:type",Object)],mw.prototype,"notificationData",void 0);_.Y([_.C("ariaLabel, selected"),_.a(),_.K("design:type",String),_.K("design:paramtypes",[])],mw.prototype,"computedAriaLabel",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mw.prototype,"dataChanged_",null);
_.Y([_.n6("paper-dropdown-open"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],mw.prototype,"onDropdownOpen",null);_.Y([_.n6("iron-activate"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],mw.prototype,"onIronActivate_",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mw.prototype,"onTap_",null);
_.Y([_.n6("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],mw.prototype,"onMenuClose_",null);_.Y([_.jP({is:"yt-dropdown-menu",disableElementRegistration:!0})],mw);
_.T(mw,"yt-dropdown-menu",function(){if(FQ2===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;dh5===void 0&&(dh5=document.createElement("template"));var Q=dh5;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);FQ2=g}g=FQ2;return g},{mode:2});var aw=function(){var g=_.X.apply(this,arguments)||this;g.hasNotification=!1;return g};
_.A(aw,_.X);aw.prototype.computeId=function(g){return g};
aw.prototype.computeHorizontalAlign=function(g){return g?"right":"left"};
aw.prototype.computeAccessibilityLabel=function(g){var u,q;return((u=g.accessibility)==null?void 0:(q=u.accessibilityData)==null?void 0:q.label)||null};
aw.prototype.notificationDataChanged=function(){var g;this.hasNotification=!!this.notificationData&&!((g=this.data)==null?0:g.icon)};
aw.prototype.notificationDataChanged=aw.prototype.notificationDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.fK.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],aw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],aw.prototype,"data",void 0);_.Y([_.a({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",String)],aw.prototype,"id",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],aw.prototype,"isRightAligned",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],aw.prototype,"disabled",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],aw.prototype,"closeOnActivate",void 0);_.Y([_.a(),_.K("design:type",Object)],aw.prototype,"notificationData",void 0);_.Y([_.a(),_.K("design:type",Object)],aw.prototype,"hasNotification",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],aw.prototype,"useComputedAriaLabel",void 0);_.Y([_.k_("notificationData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aw.prototype,"notificationDataChanged",null);_.Y([_.jP({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],aw);
_.T(aw,"yt-sort-filter-sub-menu-renderer",function(){if(bx8===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Cz5===void 0&&(Cz5=document.createElement("template"));var Q=Cz5;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);bx8=g}g=bx8;return g},{mode:2});var mh0=_.r(function(g){var u=g.data;var q=_.YH(function(){var E=u().onTap;(E=_.c(E,_.Jo))&&_.Bk().resolve(_.Gy).resolveCommand(E);return!1}),Q=function(){return{sources:[{url:u().thumbnailUrl,
width:120,height:90}]}},L=function(){return u().rating&&u().ratingA11yLabel&&u().reviewsCount&&u().reviewsCountA11yLabel};
return _.p("place-data-view-model",null,_.p(_.M,{cond:function(){return u().placeName&&u().placeCategory},
then:function(){return _.p("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":q},_.p(_.IT,{data:Q,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.p(_.ag,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return u().onTap}},_.p("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return u().placeName}},function(){return u().placeName})),_.p("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.p(_.M,{cond:L,
then:function(){return _.p("div",{class:_.Ty("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.p("span",{class:"score",title:function(){return u().ratingA11yLabel}},function(){return u().rating}),_.p("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.p(_.B1,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.p("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return u().reviewsCountA11yLabel}},function(){return u().reviewsCount}))},
else:function(){return _.p("div",{class:_.Ty("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.p("div",{class:_.Ty("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.p("span",{class:"category",
title:function(){return u().placeCategory}},function(){return u().placeCategory}))))}}))},"kb");
mh0.idomCompat=!0;_.dL(mh0,"place-data-view-model",{props:{data:_.H2}});var aZZ=new _.Fv("INLINE_PLAYBACK_HOOK_TOKEN");var VSW=y0({sharedUi:pER});_.wy=ve(VSW)(VSW.sharedUi,{animatedThumbnailEnabledSelector:function(g){return g.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(g){return g.inlinePreviewEnabled},
currentPageTypeSelector:function(g){return g.currentPageType},
currentPageSubTypeSelector:function(g){return g.currentPageSubType},
persistentPanelVisibleSelector:function(g){return g.persistentPanelVisible}});var XAn=function(g){this.setActiveSlideIndex=g;this.jobIds=[];this.isSlideshowPlaying=!1},Tlb=function(g,u){g.isSlideshowPlaying||(g.isSlideshowPlaying=!0,rvW(g),WQH(g,u,0))},rvW=function(g){_.Xh(_.Hv,function(){g.setActiveSlideIndex(0)},1)},WQH=function(g,u,q){g.jobIds.push(_.Xh(_.Hv,function(){var Q=q<u-1?q+1:0;
g.setActiveSlideIndex(Q);WQH(g,u,Q)},1800))};var hb$,Ox2;hb$=new _.Fv("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.Yl0=new _.Fv("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");Ox2=new _.Fv("COMMON_MARK_VIEW_MODEL_TOKEN");var KQi=new _.Fv("IMAGE_ON_LOAD_HANDLER_TOKEN");var xh2=_.r(function(g){return _.p("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.p(_.M,{cond:function(){var u;return(u=g.data())==null?void 0:u.thumbnail},
then:function(u){return _.p(_.IT,{data:u,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"lb");_.BlH=_.r(function(g){var u=g.data;var q=g.lockupExperiments;g={};return _.p("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.p("div",{class:_.Ty("ytThumbnailOverlayButtonViewModelButton",(g.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var Q;return q&&((Q=q())==null?void 0:Q.useLegacySizedIconButton)},g))},_.p(_.Up,{data:function(){return u().overlayButton}},{buttonViewModel:function(Q){return _.p(_.TT,{data:Q.data,
buttonOverrides:function(){var L;return q&&((L=q())==null?0:L.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"mb");
_.BlH.idomCompat=!0;var zba=_.r(function(g){return _.p("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.YH(function(u){u.preventDefault();return!1})},_.p(_.Up,{data:function(){return g.data().buttons}},{toggleButtonViewModel:function(u){return _.p("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.p(_.E6,{data:u.data}))}}))},"nb");
zba.idomCompat=!0;var ngW=_.r(function(g){var u=function(){var q;return((q=_.c(g.data().rendererContext,_.L3))==null?void 0:q.label)||""};
return _.p("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.p(_.M,{cond:function(){return g.data().image},
then:function(){return _.p("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.p(_.IT,{data:function(){return g.data().image},
alt:u}))}}),_.p(_.M,{cond:function(){return g.data().text},
then:function(){return _.p("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return g.data().text})}}))},"ob");var kqn=_.wy.animatedThumbnailEnabledSelector,VL=_.r(function(g){var u=[],q=function(){var G,R;return _.S5u((G=g.width)==null?void 0:G.call(g),(R=g.height)==null?void 0:R.call(g))},Q=_.Bk().resolve(_.xv(KQi)),L=_.Hk("yt-thumbnail-view-model",function(){u.push("elRef.value set");
var G;(G=g.playbackRef)==null||G.call(g,{thumbnailElRef:L,thumbnail:g.data().image,thumbnailOverlays:g.data().overlays,thumbnailSize:q()})});
_.I4(function(){u.push("onInit");_.dB(function(){u.push("onCleanup")})});
var E=_.Sy(kqn),y=function(){var G,R;return(R=(G=g.aspectRatio)==null?void 0:G.call(g))!=null?R:0},v=function(){return(g.data().image?_.epS(g.data().image):y())<=1&&y()===0},J=function(){return v()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},f=function(){L.value||_.Io(new _.Ji("Thumbnail elRef.value is null",u.join("\n")));
Q&&L.value&&Q(L.value)},t=function(){var G,R;
return((G=g.hovered)==null?void 0:G.call(g))&&q()!=="large"&&((R=g.data().overlays)==null?void 0:R.some(function(H){return _.c(H,O1b)}))},e={};
return _.p("yt-thumbnail-view-model",{class:_.Ty("ytThumbnailViewModelHost",g.className,function(){return FYm(y())},function(){var G,R;
a:{var H=q(),l=(G=g.disableRounding)==null?void 0:G.call(g);G=(R=g.isClip)==null?void 0:R.call(g);if(!l&&!G)switch(H){case "large":R="ytThumbnailViewModelLarge";break a;case "small":R="ytThumbnailViewModelSmall";break a;default:R="ytThumbnailViewModelMedium";break a}R=void 0}return R},(e.ytThumbnailViewModelCinematic=v,e)),
style:_.xH({"background-color":function(){var G,R=v()?(G=g.data().backgroundColor)==null?void 0:G.lightTheme:void 0;return R?f6(R,"1"):void 0}}),
el:L},_.p(_.M,{cond:v,then:function(){return _.p("div",{class:"ytThumbnailViewModelBlurredImage"},_.p(_.IT,{data:function(){return g.data().image},
alt:"",contentMode:J,targetWidth:g.width,onload:f}))}}),_.p("div",{class:"ytThumbnailViewModelImage"},_.p(_.IT,{data:function(){return g.data().image},
alt:"",contentMode:J,targetWidth:g.width,onload:f}),null),_.p(_.Up,{data:function(){return t()?void 0:g.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:SX0,thumbnailOverlayBadgeViewModel:function(G){return _.p(_.oNx,{data:G.data,thumbnailSize:q,isClip:g.isClip})},
thumbnailBottomOverlayViewModel:function(G){return _.p(Be8,{data:G.data,thumbnailSize:q,isClip:g.isClip})},
thumbnailOverlayFullViewModel:ngW,thumbnailOverlayButtonViewModel:function(G){return _.p(_.BlH,{data:G.data,lockupExperiments:g.lockupExperiments})},
channelDisclosureViewModel:function(G){G=G.data;var R;return _.p("div",null,(R=_.Bk().resolve(_.xv(hb$)))==null?void 0:R({data:G}))}}),_.p(_.Up,{data:function(){var G;
return((G=g.hovered)==null?0:G.call(g))?g.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(G){return _.p(JW,{data:G.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:zba}),_.p(_.Up,{data:function(){var G;return((G=g.hovered)==null?0:G.call(g))&&E()?g.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:xh2}),_.p(_.M,{cond:g.isClip,then:function(){return _.p("div",{class:"ytPinkingNsHost"},_.p("svg",{class:"ytPinkingNsPinkingLeft"},_.p("defs",null,_.p("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.p("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.p("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.p("svg",{class:"ytPinkingNsPinkingRight"},_.p("defs",null,_.p("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.p("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.p("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"pb");
VL.idomCompat={callbacks:{playbackRef:!0}};var Sln=_.r(function(g){var u=_.N(_.jR(-1,void 0,"RW2Ole")),q=u.next().value,Q=u.next().value;_.I4(function(){var L=new XAn(Q);Tlb(L,g.data().thumbnails.length);_.dB(function(){if(L.isSlideshowPlaying){L.isSlideshowPlaying=!1;for(var E=L.jobIds,y=0,v=E.length;y<v;y++)_.Hv.cancelJob(E[y]);L.jobIds.length=0}})});
return _.p("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.p(_.Up,{data:function(){return g.data().thumbnails}},{thumbnailViewModel:function(L,E){return _.p("div",{class:function(){var y=!g.data().primaryThumbnail,v=E(),J=q(),f=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
y&&v===0&&f.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");v<=J&&f.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return f.join(" ")}},_.p(VL,{data:L.data,
disableRounding:g.disableRounding}))}}))},"qb");
Sln.idomCompat=!0;var mvq=new _.Fv("DWELL_DETECTOR_REGISTRY_TOKEN");var Uh$=_.r(function(g){var u=aoK(g.triggeringElement),q=function(){return!!g.data().primaryThumbnail},Q=function(){var E,y=(E=g.data())==null?void 0:E.maxHeight,v;
E=(v=g.maxHeight)==null?void 0:v.call(g);return y!=null&&E!=null?Math.min(y,E):E!=null?E:y},L=function(){var E=Q();
if(E){var y;if(q()&&(y=g.includeStackHeight)!=null&&y.call(g)){var v;y=((v=g.doubleStack)==null?0:v.call(g))?8:4}else y=0;E=E-y-1;if(!(E<0)){v=Math;y=v.ceil;var J,f;var t=kYq((f=(J=g.aspectRatio)==null?void 0:J.call(g))!=null?f:0);return y.call(v,E*t)}}};
return _.p("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.xH({height:function(){return Q()?Q()+"px":void 0},
width:function(){return L()?L()+"px":void 0}})},_.p(ogi,{stackEnabled:q,
thumbnailSize:function(){var E,y;return _.S5u((E=g.width)==null?void 0:E.call(g),(y=g.height)==null?void 0:y.call(g))},
doubleStack:g.doubleStack,stackColor:function(){return g.data().stackColor},
includeStackHeight:g.includeStackHeight},_.p(_.Up,{data:function(){return g.data().primaryThumbnail}},{thumbnailViewModel:function(E){var y={};
return _.p(VL,{data:E.data,width:g.width,height:g.height,aspectRatio:g.aspectRatio,disableRounding:g.disableRounding,className:_.Ty((y.ytCollectionThumbnailViewModelHostHasStacks=q,y)),hovered:g.hovered,playbackRef:g.playbackRef})}}),_.p(_.M,{cond:function(){var E;
return u()&&((E=g.data().thumbnails)==null?void 0:E.length)},
then:function(){return _.p("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.p(Sln,{data:g.data,disableRounding:function(){return!q()}}))}})))},"rb");
Uh$.idomCompat={callbacks:{playbackRef:!0}};
var ogi=_.r(function(g){var u=g.children;var q=g.stackEnabled;var Q=g.thumbnailSize;var L=g.doubleStack;var E=g.stackColor;var y=g.includeStackHeight;var v,J=(v=_.Bk().resolve(_.xv(_.gy)))==null?void 0:v();return _.p(_.M,{cond:q,then:function(){return _.p(wsb,{data:function(){var f,t;return{experimentEnabled:!0,thumbnailSize:Q(),doubleStack:L==null?void 0:L(),color:J?E==null?void 0:(f=E())==null?void 0:f.darkTheme:E==null?void 0:(t=E())==null?void 0:t.lightTheme,enableResponsiveMode:!1,includeStackHeight:y==
null?void 0:y()}}},u)},
else:function(){return u}})},"sb");var gWo=new _.Fv("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");_.umo=_.r(function(g){var u=g.data;g=_.Hk("ad-card-badge-view-model");return _.p("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:g},_.p(_.M,{cond:function(){return u().imageBadge},
then:function(q){return _.p(_.IT,{data:q,alt:""})}}))},"tb");var r7;_.XY={calledOnce:!0,state:"visible"};r7={calledOnce:!0,state:"hidden"};_.Wp=_.r(function(g){var u=_.FI(g,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});g=Object.assign({},u);var q=u.data;u=u.customCommandResolver;var Q=(delete g.data,delete g.customCommandResolver,g);g=_.x1({visibilityCallback:function(v,J){var f,t=(f=q().interaction)==null?void 0:f.onFirstVisible;v&&(t&&_.ey(t),Q.setOnErrorHandler()&&VLF(J))},
showOption:_.XY});u=_.eJ(function(){return q().interaction},u,function(){var v;
return(v=Q.listenToTapEvent)==null?void 0:v.call(Q)});
var L=_.N(_.jR(!1,void 0,"wAC0Lc")),E=L.next().value,y=L.next().value;L=_.YH(function(v){var J;((J=Q.setTouchEndHandler)==null?0:J.call(Q))&&!E()&&(v.currentTarget.click(),y(!0),setTimeout(function(){y(!1)},100));
return!1});
return _.p("ad-image-view-model",{class:function(){var v,J=[((v=q().interaction)==null?0:v.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],f;((f=Q.isGridViewEnabled)==null?0:f.call(Q))&&J.push("ytwAdImageViewModelHostInGridView");return J.join(" ")},
el:_.lF(g,u),"on:touchend":L},_.p("div",{class:"ytwAdImageViewModelHostImageContainer"},_.p(_.IT,{data:function(){var v;return{sources:q().imageSources,contentMode:(v=q().imageProperties)==null?void 0:v.contentMode}},
alt:function(){var v,J;return((v=q().interaction)==null?void 0:(J=v.accessibility)==null?void 0:J.label)||""},
targetHeight:Q.targetHeight,targetWidth:Q.targetWidth,preserveHeight:Q.preserveHeight,preserveWidth:Q.preserveWidth,useWidth:Q.useWidth,style:function(){var v,J;return"vertical-align: bottom;"+(((v=q().background)==null?0:v.color)?"background-color:"+_.JR((J=q().background)==null?void 0:J.color)+";":"")},
className:function(){return Q.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var v,J;return(J=(v=Q.setDraggable)==null?void 0:v.call(Q))!=null?J:void 0}})))},"vb");var qD8=_.r(function(g){var u=g.data;var q=g.customCommandResolver;return _.p("carousel-ad-card-image-view-model",{class:function(){var Q;return((Q=u().interaction)==null?0:Q.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.lF(_.x1({visibilityCallback:function(Q){var L,E=(L=u().interaction)==null?void 0:L.onFirstVisible;Q&&E&&_.ey(E)},
showOption:_.XY}),_.eJ(function(){return u().interaction},q)),
"aria-label":function(){var Q,L;return(Q=u().interaction)==null?void 0:(L=Q.accessibility)==null?void 0:L.label}},_.p(_.Up,{data:function(){return u().adImage}},{adImageViewModel:function(Q){return _.p(_.Wp,{data:Q.data,
customCommandResolver:q})}}),_.p("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.p(_.Up,{data:function(){return u().badge}},{adCardBadgeViewModel:_.umo})),_.p(_.VU,{model:{color:4}}))},"wb");var Q$i=_.r(function(g){var u=_.N(_.jR(0,void 0,"JJ0QQc")),q=u.next().value;u.next();var Q=u.next().value,L=_.N(_.jR(!1,void 0,"f6YICe"));u=L.next().value;var E=L.next().value,y;_.dB(function(){clearTimeout(y)});
L=_.YH(function(){var f;((f=g.animate)==null?0:f.call(g))?(E(!0),y=setTimeout(function(){E(!1);v()},200)):v();
return!1});
var v=function(){Q(function(f){return(f+g.numShownItems())%g.data().length})},J={};
return _.p("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.p("div",{class:_.Ty("ytwHorizontalCarouselCarouselWrapper")},_.p("div",{class:_.Ty("ytwHorizontalCarouselCarouselInnerWrapper",(J.ytwHorizontalCarouselAnimating=u,J))},_.p(_.R4,{each:g.data,keyBy:"INDEX"},function(f,t){return _.p("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.xH({"flex-basis":function(){return"calc((100% - (8px * "+(g.numShownItems()-1)+")) / "+g.numShownItems()+")"},
order:function(){var e=t-q();e<0&&(e+=g.data().length);return e}})},g.children(f,t))}))),_.p("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":L},g.nextButton()))},"xb");var PIR=_.r(function(g){var u=g.data;var q=g.customCommandResolver;var Q=g.expansive;var L=g.isLockupAttachment;return _.p("carousel-ad-card-collection-view-model",{el:_.lF(_.x1({visibilityCallback:function(E){var y,v=(y=u().interaction)==null?void 0:y.onFirstVisible;E&&v&&_.ey(v)},
showOption:_.XY})),class:"ytwCarouselAdCardCollectionViewModelHost"},_.p(_.M,{cond:function(){return L==null?void 0:L()},
then:function(){return _.p(LP5,{data:u,customCommandResolver:q})},
else:function(){return _.p(EW5,{data:u,customCommandResolver:q,expansive:Q})}}))},"yb"),LP5=_.r(function(g){var u=g.data;
var q=g.customCommandResolver;return _.p("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel",tabindex:0},_.p(_.Up,{data:function(){return u().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(Q){return _.p("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},_.p(qD8,{data:Q.data,
customCommandResolver:q}))}}))},"zb"),EW5=_.r(function(g){var u=g.data;
var q=g.customCommandResolver;var Q=g.expansive;return _.p(Q$i,{data:function(){var L;return((L=u())==null?void 0:L.carouselAdCards)||[]},
nextButton:function(){return _.p(_.Up,{data:function(){return u().nextButton}},{buttonViewModel:function(L){var E=L.data;
return _.p(_.TT,{data:function(){return(Q==null?0:Q())?Object.assign({},E(),{style:"mono"}):E()},
className:_.w("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(L){return _.p(_.Up,{data:L},{carouselAdCardImageViewModel:function(E){return _.p(qD8,{data:E.data,customCommandResolver:q})}})})},"Ab");_.Tb=_.r(function(g){var u=g.data;var q=g.customCommandResolver;var Q=g.className;var L=g.delayedClassName;var E=g.animationEntityKey;var y=g.isCompactWidth;var v=g.isContentWidth;g=_.N(_.jR(!1,void 0,"B1koDf"));var J=g.next().value,f=g.next().value,t=_.dO(E,""),e=_.kq(deh,t),G=function(){var M3,tT;return(tT=(M3=e())==null?void 0:M3.value)!=null?tT:!1},R=function(){_.bU(_.u2("booleanEntity",t(),{key:t(),
value:!0}));W=void 0};
E=_.N(_.mX(G));var H=E.next().value,l=E.next().value;E=_.N(_.mX(G));var d=E.next().value,F=E.next().value;E=_.N(_.mX(function(){var M3;return G()?(M3=u().styleTransitionConfig)==null?void 0:M3.destinationStyle:void 0}));
var V=E.next().value,z=E.next().value,O=function(){var M3=Object.assign({},u(),V()&&{style:V()});var tT,mJ,hT=M3.label,Yu=(tT=M3.interaction)==null?void 0:(mJ=tT.accessibility)==null?void 0:mJ.label;tT=M3.iconImage?M3.label&&M3.label.content?M3.iconLeading?"leading":"trailing":"icon-only":void 0;M3={formattedButtonText:hT,accessibilityLabel:Yu,style:TeM(M3.style),type:hRq(M3.style),state:"active",size:WYf(M3.size),iconPosition:tT,disabled:!1,aTagConfig:r3S(M3,q)};M3.focused=J();return M3},W;
E=_.x1({visibilityCallback:function(M3){var tT,mJ=(tT=u().interaction)==null?void 0:tT.onFirstVisible;M3&&mJ&&_.ey(mJ)},
showOption:_.XY});var x=function(){return EMF(O(),!!u().iconImage)};
g={};var k={};Q=_.Ty(function(){return"ytwAdButtonViewModelHost"},function(){return u().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var M3=!!u().delayedAppearanceConfig,tT=H();
return M3?tT?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var M3=!!u().delayedAppearanceConfig,tT=d();
return M3?tT?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!u().delayedAppearanceConfig||H()?L==null?void 0:L():""},(g.ytwAdButtonViewModelHostCompactWidth=function(){return y==null?void 0:y()},g),(k.ytwAdButtonViewModelHostContentWidth=function(){return v==null?void 0:v()},k),Q!=null?Q:"");
var LZ=function(){var M3,tT=(M3=u().delayedAppearanceConfig)==null?void 0:M3.delayedInvisibleSeconds;tT&&(W=_.Ln(_.Hv,function(){l(!0);sb()},tT*1E3))},sb=function(){var M3,tT=(M3=u().delayedAppearanceConfig)==null?void 0:M3.delayedVisibleSeconds;
tT&&(W=_.Ln(_.Hv,function(){F(!0);Rm()},tT*1E3))},Rm=function(){var M3,tT=(M3=u().styleTransitionConfig)==null?void 0:M3.styleTransitionSeconds,mJ,hT=(mJ=u().styleTransitionConfig)==null?void 0:mJ.destinationStyle;
tT&&hT?W=_.Ln(_.Hv,function(){z(hT);R()},tT*1E3):R()};
_.I4(function(){LZ()});
_.dB(function(){W&&_.Hv.cancelJob(W)});
return _.p("ad-button-view-model",{"on:focusin":_.YH(function(){var M3=_.Bk().resolve(_.xv(_.m5));M3&&f(M3.isKeyBoardInUse());return!1}),
"on:focusout":_.YH(function(){f(!1);return!1}),
class:Q,el:_.lF(E),style:_.xH({"transition-duration":"0.3s"})},_.p(_.M,{cond:O,then:function(){return _.p(_.W2,{data:O,icon:function(){return _.p(_.M,{cond:function(){return u().iconImage},
then:function(M3){return _.p(_.IT,{data:M3,alt:"",targetWidth:x,targetHeight:x,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Bb");var ND8=_.r(function(g){var u=g.data;g=function(){return u().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var q=_.x1({visibilityCallback:function(E){var y,v=(y=u().interaction)==null?void 0:y.onFirstVisible;E&&v&&_.ey(v)},
showOption:_.XY}),Q={},L={};return _.p("ad-button-group-view-model",{class:_.Ty("ytwAdButtonGroupViewModelHost",(Q.ytwAdButtonGroupViewModelHostCompactWidth=g,Q)),el:_.lF(q)},_.p("div",{class:_.Ty("ytwAdButtonGroupViewModelHostSecondaryButton",(L.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=g,L))},_.p(_.Up,{data:function(){return u().secondaryAdButton}},{adButtonViewModel:function(E){return _.p(_.Tb,{data:E.data})}})),_.p("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.p(_.Up,
{data:function(){return u().primaryAdButton}},{adButtonViewModel:function(E){return _.p(_.Tb,{data:E.data})}})))},"Cb");var s$i=_.r(function(g){var u=function(){var q;return((q=g.data())==null?void 0:q.answers)||[]};
return _.p("yt-survey-icons",{class:"ytSurveyIconsHost"},_.p("div",{class:"ytSurveyIconsHeader"},_.p("div",{class:"ytSurveyIconsTitle"},function(){var q;return(q=g.data())==null?void 0:q.text}),_.p("div",null,_.p(_.W2,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var q;(q=g.onDismiss)==null||q.call(g)}}},
iconName:"DISMISSAL"}))),_.p("div",null,_.p("div",{class:"ytSurveyIconsAnswers"},_.p(_.R4,{each:function(){return u()},
keyBy:"INDEX"},function(q,Q){return _.p("div",null,_.p(_.W2,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var L;(L=g.onSelect)==null||L.call(g,q(),Q)}}},
icon:function(){return _.p(_.B1,{icon:function(){var L,E;return(L=q())==null?void 0:(E=L.icon)==null?void 0:E.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.p("div",{class:"ytSurveyIconsAnswersText"},_.p("div",null,function(){return u().length?u()[0].text:""}),_.p("div",null,function(){return u().length?u()[u().length-1].text:""}))))},"Db");var ylb=_.r(function(g){var u=_.lF(_.J7(function(){var J;return(J=g.data())==null?void 0:J.rendererContext},void 0,void 0,void 0,!0)),q=_.N(_.jR(!1,void 0,"GW0yjf")),Q=q.next().value,L=q.next().value,E=_.kq(Fh3,function(){var J;
return(J=g.data().keys)==null?void 0:J.surveyEntityKey}),y=_.kq(mOZ,function(){var J;
return(J=g.data().keys)==null?void 0:J.surveyStateEntityKey});
_.W6("ytd-slimline-survey-show-action",function(){L(!1)});
var v=function(){var J,f;var t=(J=y())==null?void 0:(f=J.questionStack)==null?void 0:f[0];if(t!==void 0){var e,G;return(e=E())==null?void 0:(G=e.questions)==null?void 0:G[t]}};
q={};return _.p("yt-slimline-survey-view-model",{el:u,class:_.Ty("ytSlimlineSurveyViewModelHost",(q.ytSlimlineSurveyViewModelCollapsed=function(){return Q()},q))},_.p("div",{class:"ytSlimlineSurveyViewModelContainer"},_.p(_.M,{cond:function(){var J;
return((J=v())==null?void 0:J.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.p(s$i,{data:function(){return v()},
onSelect:function(J,f){var t,e;return _.D(function(G){L(!0);if(e=(t=g.data())==null?void 0:t.onSelectRating)_.ey(e),_.bU(AKa(f));_.Wx(G)})},
onDismiss:function(){L(!0);var J;var f=(J=E())==null?void 0:J.dismissalFeedbackToken;J=f?{feedbackEndpoint:{feedbackToken:f}}:void 0;J&&_.fr(J,{form:{element:u.value}})}})}})))},"Eb");var vWH=_.r(function(g){return _.p("yt-table-view-model",{class:_.Ty("ytTableViewModelHost",g.className)},_.p(_.R4,{each:function(){return g.data().rows||[]}},function(u){var q={};
return _.p("div",{class:_.Ty("ytTableViewModelRow",(q.ytTableViewModelRowBottomBorder=function(){return g.data().showSeparators},q))},_.p(_.R4,{each:function(){return(u==null?void 0:u.cells)||[]}},function(Q,L){var E,y={};
return _.p("span",{class:_.Ty((y.ytTableViewModelRowLabel=function(){return L()===0&&g.data().showHorizontalHeaders},y.ytTableViewModelCell=function(){return!g.data().showHorizontalHeaders||L()>0},y))},(E=Q.text)==null?void 0:E.content)}))}))},"Fb");var DCW=_.r(function(g){return _.p("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.p(_.Up,{data:function(){var u;return(u=g.data())==null?void 0:u.attachments}},{flexibleActionsViewModel:function(u){return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.p(_.Mp,{data:u.data,
layout:function(){var q;return((q=g.lockupStyle())==null?void 0:q.arrangement)===1?0:1},
justifyContentOverride:function(){var q;return((q=g.lockupStyle())==null?void 0:q.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(u){return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.p(ylb,{data:u.data}))},
expandableMetadataViewModel:function(u){u=u.data;var q;return _.p("div",{class:_.Ty("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(q=_.Bk().resolve(_.xv(gWo)))==null?void 0:q({data:u}))},
adButtonGroupViewModel:function(u){return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.p(ND8,{data:u.data}))},
adButtonViewModel:function(u){return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.p(_.Tb,{data:u.data,isCompactWidth:!0}))},
tableViewModel:function(u){return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.p(vWH,{data:u.data}))},
aiCompanionAttachmentViewModel:function(u){u=u.data;var q;return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},(q=_.Bk().resolve(_.xv(_.Yl0)))==null?void 0:q({data:u}))},
carouselAdCardCollectionViewModel:function(u){return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.p(PIR,{data:u.data,isLockupAttachment:!0}))}}))},"Gb");var zRu=_.S8("rich_grid_min_item_width",310),xvK=_.S8("rich_grid_max_item_width",500);var Qiu,qlf;Qiu=16/9;qlf=2/3;_.hW=_.r(function(g){var u=g.data;var q=g.className;var Q=g.imageSizeConfig;var L=g.notifyOnLoaded;var E=function(){return u().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},y=function(){var G;
return _.pn((G=u())==null?void 0:G.rendererContext)};
g={};g=(g.ytContentPreviewImageViewModelHost=!0,g.ytContentPreviewImageViewModelCircleImage=function(){return E()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},g.ytContentPreviewImageViewModelTappable=function(){return y()},g);
var v=function(){var G,R;return(R=(G=_.c(u().rendererContext,_.L3))==null?void 0:G.label)!=null?R:""},J=function(){return EgM(u())},f=function(){var G=LQu(E(),u().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",Q==null?void 0:Q(),PzJ(J()),u().layoutWidth,u().layoutHeight),R=Object.assign({},G);
G.width&&(R.width=Math.round(G.width));G.height&&(R.height=Math.round(G.height));G.maxWidth&&(R.maxWidth=Math.round(G.maxWidth));G.maxHeight&&(R.maxHeight=Math.round(G.maxHeight));return R},t=_.G9(function(){return f().height},void 0,"CxFlJb"),e=_.G9(function(){return f().width},void 0,"lb8Jhd");
return _.p("yt-content-preview-image-view-model",{el:_.lF(_.J7(function(){var G;return(G=u())==null?void 0:G.rendererContext})),
role:function(){return y()?"link":void 0},
tabindex:function(){return y()?0:void 0},
class:_.Ty(q,g,function(){var G=E();var R=Q==null?void 0:Q();G=G==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||G==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||G==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||G==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(R==null?void 0:R.size)!=null&&R.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(R==null?void 0:R.size)!=null&&R.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return G}),
style:function(){var G=f(),R=[];G.width&&R.push("width: "+G.width+"px");G.height&&R.push("height: "+G.height+"px");G.maxWidth&&R.push("max-width: "+G.maxWidth+"px");G.maxHeight&&R.push("max-height: "+G.maxHeight+"px");G.fullWidth&&R.push("width: 100%");return R.join(";")}},_.p(_.M,{cond:J,
then:function(G){return _.p(_.IT,{data:G,alt:v,"data-disabled$":function(){return!v()},
notifyOnLoaded:L,targetWidth:e,targetHeight:t,preserveWidth:function(){return!!e()},
preserveHeight:function(){return!!t()}})}}),_.p(_.Up,{data:function(){var G;
return(G=u())==null?void 0:G.overlays}},{thumbnailHoverOverlayViewModel:JW,
thumbnailOverlayButtonViewModel:_.BlH}))},"Hb");
_.hW.idomCompat=!0;var Y4=_.r(function(g){var u=g.data;var q=g.className;var Q=g.useSmallLayout;var L=g.useMediumText;var E=g.useHeavyText;var y=function(){return!(L==null||!L())||!(E==null||!E())};
g={};return _.p("yt-attribution-view-model",{el:_.lF(_.J7(function(){var v;return(v=u())==null?void 0:v.rendererContext})),
class:_.Ty(q,(g.ytAttributionViewModelHost=!0,g.ytAttributionViewModelMediumText=L,g.ytAttributionViewModelHeavyText=E,g))},_.p(_.M,{cond:function(){return _.pn(u().rendererContext)},
then:function(){return _.p("button",{class:"ytAttributionViewModelTappable"},_.p(pfR,{data:u,useSmallLayout:Q,badgesShouldInheritTypography:y}))},
else:function(){return _.p(pfR,{data:u,useSmallLayout:Q,badgesShouldInheritTypography:y})}}))},"Ib"),pfR=_.r(function(g){var u=g.data;
var q=g.useSmallLayout;var Q=g.badgesShouldInheritTypography;var L=function(){return{size:(q==null?0:q())?16:24}};
return _.p(_.U9,null,_.p(_.Up,{data:function(){return u().contentPreviewImage}},{contentPreviewImageViewModel:function(E){return _.p(_.hW,{data:E.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:L})}}),_.p(_.Up,{data:function(){return u().badge}},{badgeViewModel:function(E){return _.p(_.bY,{data:E.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:Q})}}),_.p(_.M,{cond:function(){return u().text},
then:function(){return _.p(_.c2,{text:function(){return u().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.p(_.M,{cond:function(){return u().suffix},
then:function(){return _.p(_.c2,{text:function(){return u().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Jb");
Y4.idomCompat=!0;var JlR,j$Z,fjW,Mqn,tqo;JlR=_.r(function(g){var u=g.delimiter;var q=g.max;var Q=g.index;var L=g.isStandalone;return _.p(_.M,{cond:function(){return q()-1>Q()},
then:function(){var E={};return _.p("span",{class:_.Ty("yt-content-metadata-view-model__delimiter",(E["yt-content-metadata-view-model__delimiter--standalone"]=L,E)),"aria-hidden":!0},u)}})},"Kb");
j$Z=_.r(function(g){var u=g.metadataPart;var q=g.maxLines;return _.p(_.c2,{text:function(){return u().text},
linkInheritColor:!0,className:function(){return Nlf(q())},
userInput:!0})},"Lb");
fjW=_.r(function(g){var u=g.metadataPart;var q=g.maxLines;return _.p(_.M,{cond:function(){return u().tooltip},
then:function(Q){return _.p("span",{title:Q,role:"tooltip"},_.p(j$Z,{metadataPart:u,maxLines:q}))},
else:function(){return _.p(j$Z,{metadataPart:u,maxLines:q})}})},"Mb");
Mqn=_.r(function(g){var u=g.metadataPart;var q=g.isOverlay;var Q=g.useMediumText;var L=g.hideAvatar;var E=function(){return u().maxLines!==void 0?u().maxLines:1};
return _.p(_.U9,null,_.p(_.Up,{data:function(){return u().avatarStack}},{avatarStackViewModel:function(y){return _.p(_.MU,{data:y.data,
isOverlay:q,useMediumText:Q,hideAvatar:L})},
badgeViewModel:_.bY}),_.p(_.M,{cond:function(){return u().leadingIcon},
then:function(y){return _.p(_.B1,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return y().name},
size:function(){return y().width}})}}),_.p(_.M,{cond:function(){return u().text},
then:function(){return _.p(fjW,{metadataPart:u,maxLines:E})}}),_.p(_.M,{cond:function(){return u().icon},
then:function(y){return _.p(_.B1,{className:"yt-content-metadata-view-model__icon",icon:function(){return y().name},
size:function(){return y().width}})}}))},"Nb");
tqo=_.r(function(g){var u=g.metadataRow;var q=g.isInline;var Q=g.delimiter;var L=g.isOverlay;var E=g.useMediumText;var y=g.extensions;var v=function(){var f,t=y==null?void 0:(f=y())==null?void 0:f.lockupMetadata;f=u();var e,G;return!!((t==null?0:(e=t.byline)==null?0:e.hideAvatar)&&((G=_.c(f,ahi))==null?void 0:G.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},J=function(){return u().metadataParts||[]};
g={};return _.p("div",{class:_.Ty("yt-content-metadata-view-model__metadata-row",(g["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=q,g["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var f,t=y==null?void 0:(f=y())==null?void 0:f.lockupMetadata;f=u();var e,G;return!!((t==null?0:(e=t.byline)==null?0:e.addPadding)&&((G=_.c(f,ahi))==null?void 0:G.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},g["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var f;
return!!(y==null?0:(f=y())==null?0:f.lockupMetadata)&&u().badges&&!u().metadataParts},g))},_.p(_.Up,{data:function(){return u().badges}},{badgeViewModel:function(f){return _.p("div",{class:"yt-content-metadata-view-model__badge"},_.p(_.bY,{data:f.data,
numBadgesInRow:function(){var t,e;return((t=u())==null?void 0:(e=t.badges)==null?void 0:e.length)||0}}))}}),_.p(_.R4,{each:J},function(f,t){return _.p(_.U9,null,_.p(Mqn,{metadataPart:f,
isOverlay:L,useMediumText:E,hideAvatar:v}),_.p(JlR,{delimiter:Q,max:function(){return J().length},
index:t,isStandalone:!1}))}),_.p(_.M,{cond:function(){return u().isSpacerRow&&!q()},
then:function(){return _.p("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Ob");
_.Om=_.r(function(g){g=_.FI(g,{layout:0,isOverlay:!1});var u=g.data,q=g.layout,Q=g.isOverlay,L=g.useMediumText,E=g.extensions,y=function(){return q()===0},v=function(){var f;
return((f=u().metadataRows)==null?void 0:f.filter(function(t){var e,G=E==null?void 0:(e=E())==null?void 0:e.lockupMetadata,R,H;e=!!((G==null?0:(R=G.description)==null?0:R.hideDescription)&&((H=_.c(t,ahi))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var l,d;return!((G==null?0:(l=G.spacer)==null?0:l.hideSpacer)&&((d=_.c(t,ahi))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||e)}))||[]},J={};
return _.p("yt-content-metadata-view-model",{class:_.Ty(g.className,"yt-content-metadata-view-model",(J["yt-content-metadata-view-model--inline"]=y,J["yt-content-metadata-view-model--tappable"]=function(){return _.pn(u().rendererContext)},J["yt-content-metadata-view-model--medium-text"]=L,J)),
el:_.lF(_.J7(function(){return u().rendererContext}))},_.p(_.R4,{each:v},function(f,t){return _.p(_.U9,null,_.p(tqo,{metadataRow:f,
isInline:y,delimiter:function(){return u().delimiter},
isOverlay:Q,useMediumText:L,extensions:E}),_.p(_.M,{cond:function(){return y()&&!f.isSpacerRow},
then:function(){return _.p(JlR,{delimiter:function(){return u().delimiter},
max:function(){return v().length},
index:t,isStandalone:!0})}}))}))},"Pb");
_.Om.idomCompat=!0;var eoH=_.r(function(g){var u=_.Bk().resolve(_.xv(_.gy)),q={};return _.p("yt-lockup-metadata-view-model",{class:_.Ty("yt-lockup-metadata-view-model",function(){a:{var Q=g.lockupStyle();if(Q==null?0:Q.isOverlay)Q="yt-lockup-metadata-view-model--overlay";else switch(Q==null?void 0:Q.arrangement){case 1:Q="yt-lockup-metadata-view-model--horizontal";break a;default:Q="yt-lockup-metadata-view-model--vertical"}}return Q},function(){a:{var Q=g.lockupStyle();
switch(Q==null?void 0:Q.titleMaxLines){case 1:Q="yt-lockup-metadata-view-model--title-max-lines-1";break a}Q=void 0}return Q},function(){a:{var Q=g.lockupStyle();
if(Q==null?0:Q.isTiny)Q="yt-lockup-metadata-view-model--tiny";else switch(Q==null?void 0:Q.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":Q="yt-lockup-metadata-view-model--compact";break a;default:Q="yt-lockup-metadata-view-model--standard"}}return Q},(q["yt-lockup-metadata-view-model--overlay"]=function(){var Q;
return(Q=g.lockupStyle())==null?void 0:Q.isOverlay},q["yt-lockup-metadata-view-model--card"]=function(){var Q;
return(Q=g.lockupStyle())==null?void 0:Q.isCard},q["yt-lockup-metadata-view-model--centered"]=function(){var Q;
return(Q=g.lockupStyle())==null?void 0:Q.isCentered},q["yt-lockup-metadata-view-model--typography-bump"]=function(){var Q;
return(Q=g.lockupStyle())==null?void 0:Q.typographyBump},q["yt-lockup-metadata-view-model--legacy-typography"]=function(){var Q;
return(Q=g.lockupStyle())==null?void 0:Q.useLegacyTypography},q["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var Q;
return(Q=g.lockupStyle())==null?void 0:Q.useRichGridLegacyTypography},q))},_.p(_.Up,{data:function(){return g.data().image}},{avatarStackViewModel:function(Q){return _.p("div",{class:"yt-lockup-metadata-view-model__avatar"},_.p(_.MU,{data:Q.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(Q){return _.p("div",{class:"yt-lockup-metadata-view-model__avatar"},_.p(_.jv,{data:Q.data}))},
decoratedAvatarViewModel:function(Q){return _.p("div",{class:"yt-lockup-metadata-view-model__avatar"},_.p(_.fG,{data:Q.data}))}}),_.p("div",{class:"yt-lockup-metadata-view-model__text-container"},_.p("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var Q;return(Q=g.data().title)==null?void 0:Q.content}},_.p(_.M,{cond:function(){return g.data().title},
then:function(Q){return _.p(_.ag,{command:g.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.xH({color:function(){var L;a:{var E=g.lockupStyle();var y=(L=g.hovered)==null?void 0:L.call(g);L=!(u==null||!u());var v;if((E==null?0:(v=E.onFocusEffect)==null?0:v.textPrimaryColor)&&y&&(E=L?E.onFocusEffect.textPrimaryColor.darkTheme:E.onFocusEffect.textPrimaryColor.lightTheme)){E=MR(E);break a}E=void 0}return E}}),
ariaLabel:g.lockupAccessibilityLabel},_.p(_.c2,{text:Q,userInput:!0}))}})),_.p("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.xH({color:function(){var Q;a:{var L=g.lockupStyle();var E=(Q=g.hovered)==null?void 0:Q.call(g);Q=!(u==null||!u());var y;if((L==null?0:(y=L.onFocusEffect)==null?0:y.textSecondaryColor)&&E&&(L=Q?L.onFocusEffect.textSecondaryColor.darkTheme:L.onFocusEffect.textSecondaryColor.lightTheme)){L=MR(L);break a}L=void 0}return L}})},_.p(_.Up,{data:function(){return g.data().metadata}},{contentMetadataViewModel:function(Q){return _.p(_.Om,{data:Q.data,
layout:function(){var L,E;return(E=(L=g.layout)==null?void 0:L.call(g))!=null?E:1},
useMediumText:function(){var L,E;return((L=g.lockupStyle())==null?void 0:L.typographyBump)||((E=g.lockupStyle())==null?void 0:E.useRichGridLegacyTypography)},
extensions:function(){var L,E,y,v;return{lockupMetadata:{byline:{hideAvatar:((L=g.lockupStyle())==null?void 0:L.arrangement)===0,addPadding:((E=g.lockupStyle())==null?void 0:E.arrangement)===1},description:{hideDescription:!((y=g.lockupStyle())==null||!y.compactMetadata)},spacer:{hideSpacer:!((v=g.lockupStyle())==null||!v.compactMetadata)}}}}})}})),_.p(_.Up,{data:function(){return g.data().attribution}},{attributionViewModel:function(Q){return _.p("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.p(Y4,{data:Q.data,
useSmallLayout:!0}))}})),_.p("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.p(_.Up,{data:function(){return g.data().menuButton}},{buttonViewModel:function(Q){return _.p(_.TT,{data:Q.data,
buttonOverrides:function(){var L;return((L=g.lockupStyle())==null?0:L.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qb");
eoH.idomCompat=!0;var GD2=_.r(function(g){var u=_.Hk("notification-multi-action-renderer");_.lL(function(){requestAnimationFrame(function(){_.YO(u.value)})});
var q={},Q={},L={};return _.p("notification-multi-action-renderer",{class:_.Ty("ytNotificationMultiActionRendererHost",(q.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var E;return(E=g.useLegacyShelfStyle)==null?void 0:E.call(g)},q)),
el:u},_.p("span",{"aria-live":"polite",class:_.Ty("ytNotificationMultiActionRendererTextContainer",(Q.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var E;return(E=g.useLegacyShelfStyle)==null?void 0:E.call(g)},Q))},_.p(_.c2,{text:function(){return g.data().responseText}})),_.p("div",{class:_.Ty("ytNotificationMultiActionRendererButtonContainer",(L.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var E;
return(E=g.useLegacyShelfStyle)==null?void 0:E.call(g)},L))},_.p(_.Up,{data:function(){var E;
return(E=g.data().buttons)==null?void 0:E.map(function(y){if(y=y.buttonRenderer){var v,J=Object,f=J.assign,t=(v=y.icon)==null?void 0:v.iconType;v=(v=y.command||y.serviceEndpoint||y.navigationEndpoint)?{innertubeCommand:v}:void 0;y={buttonViewModel:f.call(J,{},{iconName:t,onTap:v,trackingParams:y.trackingParams,titleFormatted:y.text?_.v1(y.text):void 0},yvJ(y))}}else y=void 0;return y}).filter(function(y){return!!y})}},{buttonViewModel:function(E,y){return _.p("div",null,_.p(_.TT,{data:E.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var v;return((v=g.useModernStyles)==null?0:v.call(g))?{type:y()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Sb");var $Cb=_.r(function(g){var u=_.Hk("notification-text-renderer");_.lL(function(){requestAnimationFrame(function(){_.YO(u.value)})});
return _.p("notification-text-renderer",{el:u,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.p(_.c2,{text:function(){return g.data().successResponseText}}))},"Ub");_.KG=_.r(function(g){var u=_.kq(wGk,function(){var Q;return vgb((Q=g.contentId)==null?void 0:Q.call(g))}),q=function(){var Q;
return _.c((Q=u())==null?void 0:Q.command,_.oB)};
return _.p(_.M,{cond:function(){var Q;if(!(Q=q())){var L;Q=_.c((L=u())==null?void 0:L.command,Ojb)}return Q},
then:function(){return _.p(_.M,{cond:q,then:function(){var Q={};return _.p("div",{class:_.Ty("ytDismissibleItemReplacedContent",function(){var L;return Dhh((L=g.aspectRatio)==null?void 0:L.call(g))})},_.p("div",{class:_.Ty((Q.ytDismissibleItemAspectRatioContainer=function(){var L;
return((L=g.aspectRatio)==null?void 0:L.call(g))!==void 0},Q))},_.p(_.Up,{data:function(){var L;
return(L=q())==null?void 0:L.item}},{notificationMultiActionRenderer:function(L){return _.p(GD2,{data:L.data,
useModernStyles:g.useModernStyle,useLegacyShelfStyle:g.useLegacyShelfStyle})},
notificationTextRenderer:$Cb})))}})},
else:g.children})},"Vb");_.Ro8=_.r(function(g){var u=g.data;var q=g.customCommandResolver;g=_.lF(_.x1({visibilityCallback:function(E){var y,v=(y=u().interaction)==null?void 0:y.onFirstVisible;E&&v&&_.ey(v)},
showOption:_.XY}));var Q=function(){var E;return((E=u().interaction)==null?0:E.onTap)?function(y){var v;Xs3(y,(v=u().interaction)==null?void 0:v.onTap,q)}:void 0},L=function(){var E,y=u(),v=Q(),J=(E=_.c(u().rendererContext,_.L3))==null?void 0:E.label;
a:switch(y.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":E=1;break a;default:E=0}return{size:jiK(y.size),type:E,onTap:v,accessibilityText:J}};
return _.p("ad-avatar-view-model",{class:function(){var E;return((E=u().interaction)==null?0:E.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:g},_.p(_.M,{cond:function(){return u().image},
then:function(E){return _.p(k55,{data:L,image:E})}}))},"Wb");_.x4=_.r(function(g){var u=_.FI(g,{hasDot:!1,usedInMasthead:!1}),q=Object.assign({},u),Q=u.data,L=u.hasDot;g=u.customCommandResolver;var E=u.usedInMasthead,y=(delete q.data,delete q.hasDot,delete q.customCommandResolver,delete q.usedInMasthead,q);u=function(){return Q().style};
u!==void 0&&u!==null||_.Wk(Error("Jh"));g=_.eJ(function(){return Q().interaction},g);
return _.p("ad-badge-view-model",{class:_.Ty(function(){var v;return((v=Q().interaction)==null?0:v.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var v=y.adRenderingContextType(),J=E();
Q();return v!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||J?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.lF(g)},_.p(_.$s,{data:function(){var v;Q();return{type:2,text:(v=Q().label)==null?void 0:v.content,adsIncludeDot:L(),isOverlay:Q().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xb");var wfi;_.Bp=_.r(function(g){var u=g.data;var q=g.customCommandResolver;var Q=g.adRenderingContextType;return _.p("ad-details-line-view-model",{class:function(){var L;return((L=u().interaction)==null?0:L.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.lF(_.x1({visibilityCallback:function(L){var E,y=(E=u().interaction)==null?void 0:E.onFirstVisible;L&&y&&_.ey(y)},
showOption:_.XY}),_.eJ(function(){return u().interaction},q))},_.p(_.M,{cond:function(){return u().style},
then:function(L){return _.p(_.R4,{each:function(){var E;return((E=u())==null?void 0:E.attributes)||[]},
keyBy:"INDEX"},function(E){return _.p(wfi,{attribute:E,style:L,adRenderingContextType:function(){return Q()}})})}}))},"Yb");
wfi=_.r(function(g){var u=g.attribute;var q=g.style;var Q=g.adRenderingContextType;return _.p(_.M,{cond:function(){return u().text},
then:function(L){return _.p(_.c2,{text:L,className:function(){var E=Q();q();return E==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Zb");var cl$=_.r(function(g){var u=g.data;var q=g.typographyBump;var Q=function(){return u().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},L=function(){return{size:"M"}};
g={};return _.p(_.U9,null,_.p("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.p(_.c2,{text:function(){return u().headline},
className:_.Ty((g.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.w("enable_desktop_vdc_components")},g.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.w("enable_desktop_vdc_components")},g.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return Q==null?void 0:Q()},g.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(q==null?void 0:q())&&!(Q==null?0:Q())},g)),
linkInheritColor:!0}),_.p(_.M,{cond:function(){return u().description},
then:function(E){var y={};return _.p(_.c2,{text:E,className:_.Ty("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(y.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return Q==null?void 0:Q()},y.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(q==null?void 0:q())&&!(Q==null?0:Q())},y)),
linkInheritColor:!0})}}),_.p(_.M,{cond:function(){return u().secondaryDescription},
then:function(E){var y={};return _.p(_.c2,{text:E,className:_.Ty("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(y.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return q==null?void 0:q()},y)),
linkInheritColor:!0})}}),_.p("div",{class:function(){return Q()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.p(_.M,{cond:function(){return u().adAvatar},
then:function(){return _.p("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.p(_.Up,{data:function(){return u().adAvatar}},{adAvatarViewModel:_.Ro8}))}}),_.p(_.Up,{data:function(){return u().adBadge}},{adBadgeViewModel:function(E){return _.p(_.x4,{data:E.data,
hasDot:function(){return!!u().adDetailsLine},
adRenderingContextType:function(){return u().adRenderingContextType}})}}),_.p(_.Up,{data:function(){return u().adDetailsLine}},{adDetailsLineViewModel:function(E){return _.p(_.Bp,{data:E.data,
adRenderingContextType:function(){return u().adRenderingContextType}})}}))),_.p("div",{class:function(){return _.w("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":Q()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.p(_.Up,{data:function(){return u().menu}},{buttonViewModel:function(E){return _.p(_.TT,{data:E.data,
buttonOverrides:_.w("enable_desktop_vdc_components")?L:function(){a:switch(u().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var y="S";break a;default:y="M"}return{size:y}}})}})))},"$b"),HL0=_.r(function(g){var u=g.data;
var q=g.noBottomMargin;var Q=g.useVideoLockupTopPadding;var L=g.typographyBump;g={};g=_.Ty("ytwFeedAdMetadataViewModelHostMetadata",(g.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return q==null?void 0:q()},g.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Q==null?void 0:Q()},g));
var E=function(){return u().adBadge};
E!==void 0&&E!==null||_.Wk(Error("Kh"));E={};var y={};return _.p(_.U9,null,_.p(_.M,{cond:function(){return u().adAvatar},
then:function(){return _.p("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.p(_.Up,{data:function(){return u().adAvatar}},{adAvatarViewModel:function(v){return _.p(_.Ro8,{data:v.data})}}))}}),_.p("div",{class:g},_.p("div",{class:_.Ty("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(E.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return L==null?void 0:L()},E.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(L==
null?void 0:L())&&_.w("web_enable_typography_bump_v2")},E))},_.p(_.c2,{text:function(){return u().headline},
linkInheritColor:!0})),_.p(_.M,{cond:function(){return u().description},
then:function(v){return _.p(_.c2,{text:v,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.p("div",{class:function(){return u().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.w("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.p(_.Up,{data:function(){return u().adBadge}},
{adBadgeViewModel:function(v){return _.p(_.x4,{data:v.data,
hasDot:function(){return!!u().adDetailsLine},
adRenderingContextType:function(){return u().adRenderingContextType}})}}),_.p(_.Up,{data:function(){return u().adDetailsLine}},{adDetailsLineViewModel:function(v){return _.p(_.Bp,{data:v.data,
adRenderingContextType:function(){return u().adRenderingContextType}})}})),_.p(_.M,{cond:function(){return u().secondaryDescription},
then:function(v){return _.p(_.c2,{text:v,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.p("div",{class:_.Ty("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Q==null?void 0:Q()},y))},_.p(_.Up,{data:function(){return u().menu}},{buttonViewModel:_.TT})))},"ac"),zb=_.r(function(g){var u=g.data;
var q=g.noBottomMargin;var Q=g.listenToTapEvent;var L=g.setTouchEndHandler;var E=g.useVideoLockupTopPadding;var y=g.typographyBump;g=_.x1({visibilityCallback:function(e){var G,R=(G=u().interaction)==null?void 0:G.onFirstVisible;e&&R&&_.ey(R)},
showOption:_.XY});var v=_.eJ(function(){return u().interaction},void 0,function(){return Q==null?void 0:Q()}),J=_.N(_.jR(!1,void 0,"KSFskc")),f=J.next().value,t=J.next().value;
J=_.YH(function(e){(L==null?0:L())&&!f()&&(e.currentTarget.click(),t(!0),setTimeout(function(){t(!1)},100));
return!1});
return _.p("feed-ad-metadata-view-model",{class:function(){var e;return((e=u().interaction)==null?0:e.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.lF(g,v),"on:touchend":J},_.p(_.wi,null,_.p(_.Gv,{when:function(){return u().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.p(cl$,{data:u,
typographyBump:y})}),_.p(_.Gv,{when:function(){return u().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.p(HL0,{data:u,
noBottomMargin:q,useVideoLockupTopPadding:E,typographyBump:y})})))},"bc");var Al5,ZLa;Al5=_.wy.inlinePreviewEnabledSelector;_.nG=_.r(function(g){return _.p("yt-lockup-view-model",{class:_.Ty(g.className,"yt-lockup-view-model--wrapper")},_.p(_.KG,{contentId:function(){return g.data().contentId},
useModernStyle:!0,aspectRatio:function(){var u,q;return((u=g.containerType)==null?void 0:u.call(g))!==3?ggk(g.data().contentType,(q=g.force16By9ThumbnailAspectRatio)==null?void 0:q.call(g)):void 0}},function(){return _.p(ZLa,Object.assign({},g))}))},"cc");
ZLa=_.r(function(g){g=_.FI(g,{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 u=g.data,q=g.containerLayoutConfig,Q=g.containerType,L=g.sizing,E=g.protectBackground,y=g.typographyBump,v=g.force16By9ThumbnailAspectRatio,J=g.thumbnailFixedWidth,f=g.thumbnailTargetWidth,t=g.lockupExperiments,
e=g.elementsPerRow,G=g.useOverlayStyling,R=_.Bk().resolve(_.xv(_.gy));g=_.lF(_.J7(function(){var Yu;return(Yu=u())==null?void 0:Yu.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 H=_.Sy(Al5),l=_.Bk().resolve(_.xv(aZZ)),d=l?{}:void 0,F=function(){var Yu,Mx,po;return(po=(Mx=_.c((Yu=u())==null?void 0:Yu.rendererContext,_.L3))==null?void 0:Mx.label)!=null?po:void 0},V=function(){var Yu;
return(Yu=_.c(u().metadata,_.VB$))==null?void 0:Yu.endorsement},z=function(){var Yu=q==null?void 0:q(),Mx;
if(Yu==null?0:Yu.containerType){var po=(Mx=u())==null?void 0:Mx.contentType;Mx=t();var KZ=y(),G2=f(),Ab=E();Yu=Object.assign({},uLu(k5S(Yu),$y(Yu.responsiveSize),KZ,po,Yu.force16By9ThumbnailAspectRatio,G2,Ab,void 0,Mx),{thumbnailFixedWidth:Yu.contentPreviewWidth})}else Yu=uLu(Q(),L(),y(),(po=u())==null?void 0:po.contentType,v(),f(),E(),G(),t());return Yu};
l&&d&&l({enabled:function(){return H()},
itemPlaybackModel:function(){return u().itemPlayback},
thumbnailElRef:function(){return d.thumbnailElRef},
containerElRef:g,options:function(){var Yu=d.thumbnailOverlays||[],Mx=V(),po;!Mx||((po=t())==null?0:po.onFocusEffect)||Yu.push(Mx);var KZ,G2;return{thumbnail:d.thumbnail,thumbnailOverlays:Yu,accessibilityText:F(),thumbnailSize:d.thumbnailSize,enableRounding:z().isCollection,containPlayerWithinThumbnail:z().isCollection,mouseleaveCallback:function(){x(!1)},
trackingParams:(KZ=_.c(u().rendererContext,_.uF))==null?void 0:(G2=KZ.loggingDirectives)==null?void 0:G2.trackingParams}}});
var O=0;l=_.N(_.jR(!1,void 0,"hPOYMe"));var W=l.next().value,x=l.next().value;l=_.N(_.jR(!1,void 0,"oGMpeb"));var k=l.next().value,LZ=l.next().value;l=_.YH(function(){k()?(_.Hv.cancelJob(O),O=_.Hv.addJob(function(){x(!0)},8,32)):x(!0);
return!0});
var sb=_.YH(function(Yu){Yu=Yu.relatedTarget;var Mx=document.querySelector("ytd-video-preview");Yu&&Mx&&Mx.contains(Yu)||(O&&(_.Hv.cancelJob(O),O=0),x(!1))});
_.dB(function(){O&&(_.Hv.cancelJob(O),O=0)});
var Rm=JvS(function(){LZ(!0)}),M3=Rm.touchFeedbackEvents,tT=Rm.touchFeedbackOnPointerUp,mJ=Rm.touchFeedbackOnPointerDown;
Rm=Rm.touchFeedbackOnPointerLeave;var hT={};return _.p(_.U9,null,_.p("div",{el:g,class:_.Ty("yt-lockup-view-model",function(){a:{var Yu=z();if(Yu.metadataOnThumbnail)Yu="yt-lockup-view-model--metadata-on-thumbnail";else switch(Yu.arrangement){case 1:Yu="yt-lockup-view-model--horizontal";break a;default:Yu="yt-lockup-view-model--vertical"}}return Yu},function(){a:{var Yu=z();
if(Yu.metadataOnThumbnail)Yu="yt-lockup-view-model--metadata-on-thumbnail";else{switch(Yu.collectionStackNumber){case 1:Yu="yt-lockup-view-model--collection-stack-1";break a;case 2:Yu="yt-lockup-view-model--collection-stack-2";break a}Yu=void 0}}return Yu},function(){var Yu;
return _.siq((Yu=u())==null?void 0:Yu.contentId)},(hT["yt-lockup-view-model--card"]=function(){return z().isCard},hT["yt-lockup-view-model--compact"]=function(){return z().isTiny||z().sizing!=="STANDARD"},hT["yt-lockup-view-model--protect-background"]=E,hT["yt-lockup-view-model--add-margins"]=function(){return z().addMarginForFullbleed},hT["yt-lockup-view-model--centered"]=function(){return z().isCentered},hT["yt-lockup-view-model--fullbleed"]=function(){return z().fullbleed},hT["yt-lockup-view-model--single-column-grid"]=
function(){return e()===1&&Q()===2},hT["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Yu;
return(Yu=t())==null?void 0:Yu.useRichGridLegacyMargin},hT["yt-lockup-view-model--flex-none"]=function(){return!_.w("lockup_flex_none_killswitch")},hT)),
"on:mousedown":mJ,"on:mouseleave":sb,"on:mouseup":tT,"on:mouseover":l,"on:touchstart":mJ,"on:touchend":tT,"on:pointerleave":Rm},_.p(_.VU,{model:function(){var Yu,Mx,po=Object,KZ=po.assign,G2=(d==null?void 0:d.thumbnailSize)||"small";a:{var Ab=z();var tb=!!(V()&&((Yu=t())==null?0:Yu.onFocusEffect));switch((d==null?void 0:d.thumbnailSize)||"small"){case "small":Yu=4;break;case "large":Yu=12;break;default:Yu=8}if(tb)Ab=Yu+12;else{switch(Ab.collectionStackNumber){case 1:Ab=Yu+8;break a;case 2:Ab=Yu+12;
break a}Ab=void 0}}G2={thumbnailSize:G2,triggerEvents:!0,customTopExtend:Ab};var lx;Ab=(Mx=t())==null?void 0:Mx.onFocusEffect;tb=!(R==null||!R());if(Ab){var NE,fZ;Mx=tb?(NE=Ab.onFocusColor)==null?void 0:NE.darkTheme:(fZ=Ab.onFocusColor)==null?void 0:fZ.lightTheme;var Xf,eX;NE=tb?(Xf=Ab.keyLightColor)==null?void 0:Xf.darkTheme:(eX=Ab.keyLightColor)==null?void 0:eX.lightTheme;var no;Xf=tb?(lx=Ab.touchResponseColor)==null?void 0:lx.darkTheme:(no=Ab.touchResponseColor)==null?void 0:no.lightTheme;lx={background:Mx!==
void 0?MR(Mx):void 0,keyLight:NE!==void 0?MR(NE):void 0};no=[];eX=_.N(Ab.lightingTechniques||[]);for(NE=eX.next();!NE.done;NE=eX.next())switch(NE.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":no.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":no.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":no.push(3)}lx={hoverEffect:{palette:lx,lightingTechniques:no},touchEffect:{palette:{background:Xf!==void 0?MR(Xf):void 0}}}}else lx={};return KZ.call(po,{},G2,lx)},
hovered:function(){return W()},
pointerDownEvent:M3.pointerDownEvent,pointerUpEvent:M3.pointerUpEvent,pointerLeaveEvent:M3.pointerLeaveEvent}),_.p(_.M,{cond:function(){var Yu;return V()&&W()&&((Yu=t())==null?void 0:Yu.onFocusEffect)},
then:function(){return _.p("div",{class:"yt-lockup-view-model__endorsement"},_.p(_.Up,{data:function(){return V()}},{attributionViewModel:function(Yu){return _.p(Y4,{data:Yu.data,
useHeavyText:!0})}}))}}),_.p(_.ag,{command:function(){var Yu;
return _.D7((Yu=u())==null?void 0:Yu.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(J()||z().thumbnailFixedWidth)&&z().arrangement===1?"width: "+(J()||z().thumbnailFixedWidth):""}},_.p(_.Up,{data:function(){var Yu;
return(Yu=u())==null?void 0:Yu.contentImage}},{thumbnailViewModel:function(Yu){return _.p(VL,{data:Yu.data,
aspectRatio:function(){return z().aspectRatio},
disableRounding:function(){return z().disableRounding},
width:f,hovered:function(){return W()&&!(H()&&u().itemPlayback)},
isClip:function(){var Mx;return((Mx=u())==null?void 0:Mx.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:dv3(d),lockupExperiments:function(){return t()}})},
collectionThumbnailViewModel:function(Yu){return _.p(Uh$,{data:Yu.data,aspectRatio:function(){return z().aspectRatio},
disableRounding:function(){return z().disableRounding},
width:f,doubleStack:function(){return z().collectionStackNumber===2},
hovered:function(){return W()&&!(H()&&u().itemPlayback)},
playbackRef:dv3(d)})},
decoratedAvatarViewModel:_.fG})),_.p("div",{class:"yt-lockup-view-model__metadata"},_.p(_.Up,{data:function(){var Yu;return(Yu=u())==null?void 0:Yu.metadata}},{lockupMetadataViewModel:function(Yu){return _.p(eoH,{data:Yu.data,
hovered:W,lockupStyle:z,lockupCommand:function(){var Mx;return _.D7((Mx=u())==null?void 0:Mx.rendererContext)},
lockupAccessibilityLabel:function(){return F()},
layout:function(){var Mx;return((Mx=t())==null?0:Mx.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(Yu){return _.p(zb,{data:Yu.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:y})}}),_.p(_.Up,{data:function(){var Yu;
return(Yu=u())==null?void 0:Yu.attachmentSlot}},{lockupAttachmentsViewModel:function(Yu){return _.p(DCW,{data:Yu.data,
lockupStyle:z})}}))),_.p(_.Up,{data:function(){var Yu;
return(Yu=u())==null?void 0:Yu.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Yu){return _.p(DCW,{data:Yu.data,
lockupStyle:z})}}))},"dc");
_.nG.idomCompat=!0;_.dL(_.nG,"yt-lockup-view-model",{props:{data:_.H2,containerLayoutConfig:_.H2,containerType:_.H2,sizing:_.H2,protectBackground:_.H2,typographyBump:_.H2,thumbnailFixedWidth:_.H2,thumbnailTargetWidth:_.H2,force16By9ThumbnailAspectRatio:_.H2,className:_.H2,lockupExperiments:_.H2,elementsPerRow:_.H2,useOverlayStyling:_.H2}});var ebq,ljW=_.r(function(g){var u=_.FI(g,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),q=u.text,Q=u.alwaysShowTruncationText;g=u.truncationText;var L=u.onTextClick,E=u.maxLines,y=u.disableTextMask,v=u.textStyle,J=u.accessibilityLabel,f=u.textSize,t=u.alwaysTruncateAtMaxLines,e=u.expandOnClick;u=_.N(_.jR(!1,void 0,"EzA1q"));var G=u.next().value,R=u.next().value;u=_.YH(function(){e()&&R(!G());L==null||L()});
var H=function(){a:switch(f()){case "medium":var k=2;break a;case "large":k=2.2;break a;default:k=1.8}return k},l=Rbh(q,function(){return G()?Infinity:E()},H,y,t,G),d=l.isTruncated;
q=l.displayText;t=l.contentRef;var F=l.hiddenRef,V=l.placeholderTruncationTextRef,z=l.hiddenTruncationTextRef;l=l.truncationTextRef;var O={},W={},x={};return _.p("truncated-text",{class:_.Ty((O["yt-truncated-text"]=!0,O["yt-truncated-text--overlay"]=function(){return v()==="overlay"},O["yt-truncated-text--medium-text"]=function(){return f()==="medium"},O["yt-truncated-text--large-text"]=function(){return f()==="large"},O["yt-truncated-text--primary-text"]=function(){return v()==="primary-text"},O)),
"on:click":u,style:function(){return"line-height: "+H()+"rem;"}},_.p("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:t,style:function(){return G()?"":"max-height: "+E()*H()+"rem;"}},_.p(_.c2,{text:q}),_.p("button",{"aria-disabled":!0,
disabled:!0,class:_.Ty((W["yt-truncated-text__inline-button"]=!0,W["yt-truncated-text--hidden"]=function(){return!(!G()&&(Q!=null&&Q()||d()))},W)),
el:V,style:function(){return"line-height: "+H()+"rem;"}},_.p(_.c2,{text:g}))),_.p("truncated-text-content",{class:_.Ty("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:F,style:function(){return G()?"":"max-height: "+E()*H()+"rem;"},
"aria-hidden":"true"},_.p(_.c2,{text:q}),_.p("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:z,style:function(){return"line-height: "+H()+"rem;"}},_.p(_.c2,{text:g}))),_.p("button",{"aria-label":J,
class:_.Ty((x["yt-truncated-text__absolute-button"]=function(){return!y()},x["yt-truncated-text__bottom-button"]=function(){return y()},x["yt-truncated-text--hidden"]=function(){return!(!G()&&(Q!=null&&Q()||d()))},x)),
el:l,style:function(){return"line-height: "+H()+"rem;"}},_.p(_.c2,{text:g})))},"fc");
ljW.idomCompat={callbacks:{onTextClick:!0}};var CI5=_.r(function(g){var u=g.data;g=g.className;var q=_.G9(function(){return cvf(u())},void 0,"uDhDke"),Q=_.p(_.U9,null,_.p(_.M,{cond:function(){return u().heroText||u().image},
then:function(){return _.p(Ijb,{data:u})}}),_.p(iLZ,{data:u,
sizeSmall:function(){return u().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.p("yt-video-attribute-view-model",{class:g},_.p("div",{class:function(){var L=u();a:switch(L.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var E="yt-video-attribute-view-model--vertical";break a;default:E="yt-video-attribute-view-model--horizontal"}a:switch(L.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var y="yt-video-attribute-view-model--image-small";break a;default:y="yt-video-attribute-view-model--image-large"}a:switch(L.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var v=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":v="yt-video-attribute-view-model--image-avatar";break a;default:v=""}a:switch(L.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var J="yt-video-attribute-view-model--metadata-header";break a;default:J=""}a:switch(L.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var f="yt-video-attribute-view-model--container-card";break a;default:f=""}return["yt-video-attribute-view-model",E,y,
v,J,f,cvf(L)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.xH({"background-color":function(){var L=u();if(L.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var E="";else{E=L.lightColorPalette;L=L.darkColorPalette;var y,v=((y=_.Bk().resolve(_.xv(_.gy)))==null?0:y())&&L?L:E;E=(E=v==null?void 0:v.section2Color)?_.jh(E):""}return E}})},_.p(_.M,{cond:q,
then:function(){return _.p(_.ag,{className:"yt-video-attribute-view-model__content-container",command:q,role:"group",ariaLabel:function(){return u().title}},Q)},
else:function(){return _.p("div",{class:"yt-video-attribute-view-model__content-container"},Q)}})))},"gc");
CI5.idomCompat=!0;var Ijb=_.r(function(g){var u=g.data;var q,Q=(q=_.Bk().resolve(_.xv(_.gy)))==null?void 0:q(),L=function(){return Q&&u().darkThemeImage?u().darkThemeImage:u().image},E=_.G9(function(){return Hxq(u())},void 0,"UDqj0b");
return _.p("div",{class:"yt-video-attribute-view-model__hero-section"},_.p(_.wi,null,_.p(_.Gv,{when:L},function(){return _.p(_.IT,{data:function(){return L()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.p(_.Gv,{when:function(){return u().heroText}},function(){return _.p("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.p("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return u().heroText}))})),_.p(_.M,{cond:function(){return u().overflowMenuOnTap},
then:function(){return _.p("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.p(_.W2,{data:E,iconName:"MORE_VERT"}))}}))},"hc");
Ijb.idomCompat=!0;var iLZ=_.r(function(g){var u=g.data;g=g.sizeSmall;var q=function(){return u().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},Q=_.G9(function(){return to(_.MY({innertubeCommand:cvf(u())}))?"link":cvf(u())?"button":"group"},void 0,"e2MmYe"),L={};
return _.p("div",{class:_.Ty("yt-video-attribute-view-model__metadata",(L["yt-video-attribute-view-model--small-font"]=g,L)),role:Q},_.p("h1",{class:"yt-video-attribute-view-model__title"},function(){return u().title}),_.p(_.M,{cond:function(){return u().subtitle},
then:function(){return _.p("h4",{class:"yt-video-attribute-view-model__subtitle"},_.p(_.M,{cond:q,then:function(){return _.p(ljW,{text:function(){return wA3(u().subtitle)},
truncationText:function(){return wA3(u().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.p("span",null,function(){return u().subtitle})}}))}}),_.p(_.M,{cond:function(){return u().secondarySubtitle},
then:function(E){return _.p("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.p(_.c2,{text:function(){var y=E();if(y!=null&&y.attachmentRuns){for(var v=[],J=_.N(y.attachmentRuns),f=J.next();!f.done;f=J.next())f=f.value,f.element&&v.push(Object.assign({},f,{element:Object.assign({},f.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));y=Object.assign({},y,{attachmentRuns:v})}return y}}))}}),_.p(_.Up,
{data:function(){return u().buttonViewModel}},{buttonViewModel:function(E){return _.p(_.TT,{data:E.data,
className:"yt-video-attribute-view-model__button"})}}))},"ic");
iLZ.idomCompat=!0;_.dL(CI5,"yt-video-attribute-view-model",{props:{data:_.H2,className:_.H2}});var k4=function(){var g=_.X.apply(this,arguments)||this;g.useHighlightStyling=_.w("web_enable_deeper_metadata_highlight_styling");g.isSearch=!1;g.JSC$15609_lastScrollContainerWidth=NaN;g.pageLoadingFromNavigation=!1;g.currentIndex=0;g.supportComponentResize=!1;return g};
_.A(k4,_.X);_.P=k4.prototype;
_.P.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}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.zr(this,this.onPageChange))};
_.P.detached=function(){document.removeEventListener("yt-page-type-changed",_.zr(this,this.onPageChange))};
_.P.getItemsPath=function(){return"data.cards"};
_.P.onIronResize=function(){this.updateListStyles()};
_.P.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var g;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(g=this.data)==null?void 0:g.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.w("problem_walkthrough_sd")&&!!this.centerItems};
_.P.computeCardListStyle=function(g){return g||null};
_.P.computeEmpty=function(g){return!this.get("cards.length",g)};
_.P.computeThumbnailStyle=function(g){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",g)||null};
_.P.computeHasSubtitle=function(g){return!!this.get("header.richListHeaderRenderer.subtitle",g)};
_.P.computeInitialCountNumber=function(g){return this.hasSquareMiniApp&&g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.P.computeUseFloorScrolling=function(g){return g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.P.computeHasGameCard=function(g){return(g=this.get("cards",g))?g.some(function(u){return u.gameCardRenderer}):!1};
_.P.computeCenterHeaderTitle=function(g){return!(g==null||!g.centerHeaderTitle)};
_.P.computeHasPortraitMiniApp=function(g){return(g=g==null?void 0:g.cards)?g.some(function(u){return u.miniGameCardViewModel&&u.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.P.computeHasSquareMiniApp=function(g){return(g=g==null?void 0:g.cards)?g.some(function(u){return u.miniGameCardViewModel&&u.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.P.computeHasSkinnyWidthPortraitMiniApp=function(g){return(g=g==null?void 0:g.cards)?g.some(function(u){return u.miniGameCardViewModel&&u.miniGameCardViewModel.width===135}):!1};
_.P.computeCenterItems=function(g){return!!g};
_.P.computeHasInfoPanel=function(g){var u;return g==null?void 0:(u=g.cards)==null?void 0:u.some(function(q){return q.infoPanelContentRenderer})};
_.P.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.P.getItemByIndex=function(g){var u=this.items.children;return u&&u.length>g?u[g]:void 0};
_.P.onPageChange=function(){var g=this;this.pageLoadingFromNavigation=!0;_.Hv.addJob(function(){g.pageLoadingFromNavigation=!1;_.Og(g.hostElement,"yt-terminate-video-preview-action")},8)};
_.P.updateListStyles=function(){if(_.w("problem_walkthrough_sd")&&this.JSC$15609_scrollContainer!==void 0){var g=this.JSC$15609_scrollContainer.clientWidth;g!==this.JSC$15609_lastScrollContainerWidth&&(this.JSC$15609_lastScrollContainerWidth=g,_.x_(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(g*.8,415)+"px"}),_.hJ(this.hostElement,"iron-resize"))}};
_.z3.Object.defineProperties(k4.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.w("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return!!((g=this.data)==null?0:(u=g.cards)==null?0:(q=u[0])==null?0:q.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return!!((g=this.data)==null?0:(u=g.cards)==null?0:(q=u[0])==null?0:q.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return _.w("enable_desktop_amsterdam_info_panels")&&!!((g=this.data)==null?0:(u=g.cards)==null?0:(q=u[0])==null?0:q.infoPanelContentRenderer)}}});
k4.prototype.dataChanged=k4.prototype.dataChanged;k4.prototype.onIronResize=k4.prototype.onIronResize;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.VR.YtdHorizontalListBehavior),_.K("design:type",Object)],k4.prototype,"ytdHorizontalListBehavior",void 0);
_.Y([_.I(_.M5),_.K("design:type",Object)],k4.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],k4.prototype,"data",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],k4.prototype,"useCustomColors",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],k4.prototype,"useHighlightStyling",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.K("design:type",Object)],k4.prototype,"cardListStyle",void 0);_.Y([_.a({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.K("design:type",Boolean)],k4.prototype,"empty",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.K("design:type",Boolean)],k4.prototype,"hasSubtitle",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.K("design:type",Boolean)],k4.prototype,"thumbnailStyle",void 0);_.Y([_.a({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.K("design:type",Boolean)],k4.prototype,"hasGameCard",void 0);_.Y([_.a({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.K("design:type",Boolean)],k4.prototype,"centerHeaderTitle",void 0);
_.Y([_.a({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.K("design:type",Boolean)],k4.prototype,"hasPortraitMiniApp",void 0);_.Y([_.a({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.K("design:type",Boolean)],k4.prototype,"hasSquareMiniApp",void 0);_.Y([_.a({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.K("design:type",Boolean)],k4.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.Y([_.a({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.K("design:type",Boolean)],k4.prototype,"hasInfoPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],k4.prototype,"isSearch",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],k4.prototype,"inlineStructuredDescription",void 0);_.Y([_.oE("#scroll-container"),_.K("design:type",HTMLDivElement)],k4.prototype,"JSC$15609_scrollContainer",void 0);
_.Y([_.a({computed:"computeInitialCountNumber(data.style.type)"}),_.K("design:type",Number)],k4.prototype,"initialCount",void 0);_.Y([_.a({computed:"computeUseFloorScrolling(data.style.type)"}),_.K("design:type",Boolean)],k4.prototype,"useFloorScrolling",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.K("design:type",Boolean)],k4.prototype,"centerItems",void 0);_.Y([_.a(),_.K("design:type",Object)],k4.prototype,"pageLoadingFromNavigation",void 0);
_.Y([_.a(),_.K("design:type",Object)],k4.prototype,"currentIndex",void 0);_.Y([_.a(),_.K("design:type",Number)],k4.prototype,"scrollCount",void 0);_.Y([_.a(),_.K("design:type",Object)],k4.prototype,"supportComponentResize",void 0);_.Y([_.oE("#items"),_.K("design:type",HTMLDivElement)],k4.prototype,"items",void 0);_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k4.prototype,"onIronResize",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k4.prototype,"dataChanged",null);_.Y([_.a({reflectToAttribute:!0}),_.C("inlineStructuredDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],k4.prototype,"hideNavigationButton",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],k4.prototype,"modernChapters",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],k4.prototype,"hasVideoAttributeViewModels",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],k4.prototype,"modernInfoPanels",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],k4);
_.T(k4,"ytd-horizontal-card-list-renderer",function(){if(fZ2!==void 0)return fZ2;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return fZ2=g},{mode:2});var bL8=_.r(function(g){var u=g.data;var q={};return _.p("video-summary-content-view-model",{class:_.Ty("videoSummaryContentViewModelHost",g.className,(q.videoSummaryContentViewModelHostIsSearch=g.isSearch,q))},_.p(_.R4,{each:function(){var Q=[],L=u().paragraphs;if(L==null||!L.length)return[];for(var E=0;E<L.length;E++){var y=_.c(L[E],mG5),v=void 0;E>0&&(v=_.c(L[E-1],mG5));v&&!!v.marker===!!y.marker?Q[Q.length-1].paragraphs.push(y):Q.push({isList:!!y.marker,paragraphs:[y]})}return Q},
keyBy:"INDEX"},function(Q){return _.p(_.M,{cond:function(){return Q().isList},
then:function(){return _.p("ul",{class:"videoSummaryContentViewModelList"},_.p(_.R4,{each:function(){return Q().paragraphs},
keyBy:"INDEX"},function(L){return _.p("li",{class:"videoSummaryContentViewModelListItem"},_.p(_.c2,{text:function(){return L().text}}))}))},
else:function(){return _.p("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.p(_.R4,{each:function(){return Q().paragraphs},
keyBy:"INDEX"},function(L){return _.p("p",{class:"videoSummaryContentViewModelParagraph"},_.p(_.c2,{text:function(){return L().text}}))}))}})}),_.p(_.M,{cond:function(){return!!_.c(u().likeButtonViewModel,_.wT)&&!!_.c(u().dislikeButtonViewModel,_.cK)},
then:function(){return _.p("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.p("div",{class:"videoSummaryContentViewModelLikeButton"},_.p(_.et,{data:function(){return _.c(u().likeButtonViewModel,_.wT)},
disableIconAnimation:!0})),_.p(_.tP,{data:function(){return _.c(u().dislikeButtonViewModel,_.cK)}}))}}))},"jc");
bL8.idomCompat=!0;_.dL(bL8,"video-summary-content-view-model",{props:{data:_.H2,isSearch:_.H2,className:_.H2}});var Sv=function(){var g=_.X.apply(this,arguments)||this;var u,q;g.isExpanded=(q=(u=g.data)==null?void 0:u.isExpanded)!=null?q:!1;g.disableExpand=!1;g.showProminentLabel=!1;g.showRightSideLabel=!0;g.toggleExpandableContent=function(Q){g.disableExpand||(Q.stopPropagation(),_.Ce(_.C6(Q),g.hostElement,["info","expanded-subtitle"])||(g.isExpanded=!g.isExpanded,g.ytRendererBehavior.logExplicitClick(g.data),g.JSC$15620_cardList&&!_.w("expandable_metadata_a11y_fix_ks")&&_.xt(g,function(){_.h6(g.hostElement)})))};
g.useSquareThumbnail=!1;g.startX=0;return g};
_.A(Sv,_.X);_.P=Sv.prototype;_.P.computeUseSquareThumbnail=function(){var g;return(g=this.data)==null?void 0:g.useSquareThumbnail};
_.P.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"}}}}};
_.P.dataChanged=function(){if(this.data){var g,u;this.isExpanded=(u=(g=this.data)==null?void 0:g.isExpanded)!=null?u:!1;var q,Q,L,E;if(g=this.isDarkTheme()?(q=this.data)==null?void 0:(Q=q.colorData)==null?void 0:Q.darkColorPalette:(L=this.data)==null?void 0:(E=L.colorData)==null?void 0:E.lightColorPalette){var y,v;if((y=this.data)==null?0:(v=y.colorData)==null?0:v.vibrantColorPalette)g.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Le(this.hostElement,g)}}};
_.P.isExpandedChanged=function(){this.isExpanded&&this.JSC$15620_cardList&&_.hJ(this.JSC$15620_cardList,"iron-resize")};
_.P.computeIsExpanded=function(g){return!!g.isExpanded};
_.P.computeShowProminentLabel=function(g,u){var q;return!!(g==null?0:(q=g.header)==null?0:q.showLeadingCollapsedLabel)&&!u};
_.P.computeShowRightSideLabel=function(g,u){var q;return!(g==null?0:(q=g.header)==null?0:q.showLeadingCollapsedLabel)&&!u};
_.P.captureContentClick=function(g){if(!this.disableExpand)if(_.w("expandable_metadata_fix_killswitch")){var u=g.target;_.B6W(u,"ytd-macro-markers-list-item-renderer")||g.stopPropagation();(u==null?void 0:u.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Ce(_.C6(g),this.hostElement,["items"])||_.ia(_.C6(g),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.P.timestampClick=function(g){g.stopPropagation();var u,q;(g=(u=this.data)==null?void 0:(q=u.header)==null?void 0:q.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(g)};
_.P.onDown=function(g){g.stopPropagation();this.startX=g.detail?g.detail.x:0};
_.P.onUp=function(g){this.skipKeyInteraction(g)&&g.stopPropagation()};
_.P.skipKeyInteraction=function(g){var u=g.target;if((u==null?void 0:u.id)==="scroll-container"||(u==null?void 0:u.id)==="items"||g.detail&&g.detail.x!==this.startX)return!0;g=_.C6(g);g=_.N(g);for(u=g.next();!u.done;u=g.next()){u=u.value;if(u===this.hostElement)break;if(u.hasAttribute&&u.hasAttribute("skip-key-interaction"))return!0}return!1};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.z3.Object.defineProperties(Sv.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.c((g=this.data)==null?void 0:g.expandedContent,F_X)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.c((g=this.data)==null?void 0:g.expandedContent,X_8)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var g,u;return!((g=this.data)==null||!g.useCustomColors)&&!((u=this.data)==null||!u.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var g,u;return!!((g=this.data)==null?0:(u=g.header)==null?0:u.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var g,u;return!!((g=this.data)==null?0:(u=g.header)==null?0:u.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.data)==null?void 0:(u=g.header)==null?void 0:u.expandedSubtitleTapCommand;g=q&&_.c(q,_.ao);return _.w("web_open_ai_support_links_external_window")&&(g==null?void 0:g.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.data)==null?void 0:(u=g.header)==null?void 0:u.expandedSubtitleTapCommand;g=q&&_.c(q,_.ao);return _.w("web_open_ai_support_links_external_window")&&(g==null?void 0:g.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var g,u;return!!((g=this.data)==null?0:(u=g.header)==null?0:u.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Sv.prototype.onUp=Sv.prototype.onUp;Sv.prototype.onDown=Sv.prototype.onDown;Sv.prototype.isExpandedChanged=Sv.prototype.isExpandedChanged;Sv.prototype.dataChanged=Sv.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Sv.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Sv.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Sv.prototype,"isExpanded",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Sv.prototype,"disableExpand",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],Sv.prototype,"isSearch",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Sv.prototype,"isWatch",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.K("design:type",Object)],Sv.prototype,"showProminentLabel",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.K("design:type",Object)],Sv.prototype,"showRightSideLabel",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sv.prototype,"hasVideoSummary",null);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sv.prototype,"hasLockupViewModel",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data","isWatch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sv.prototype,"useCustomColors",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sv.prototype,"showInfoButton",null);_.Y([_.C("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sv.prototype,"showTimestamp",null);_.Y([_.C("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sv.prototype,"showExpandedSubtitle",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sv.prototype,"expandedSubtitleTarget",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sv.prototype,"expandedSubtitleRel",null);_.Y([_.C("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sv.prototype,"showThumbnail",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sv.prototype,"useVppShoppingDestinationStyle",null);
_.Y([_.a(),_.K("design:type",Object)],Sv.prototype,"toggleExpandableContent",void 0);_.Y([_.oE("ytd-horizontal-card-list-renderer"),_.K("design:type",Object)],Sv.prototype,"JSC$15620_cardList",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.K("design:type",Object)],Sv.prototype,"useSquareThumbnail",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sv.prototype,"dataChanged",null);
_.Y([_.k_("isExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sv.prototype,"isExpandedChanged",null);_.Y([_.n6("down"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Sv.prototype,"onDown",null);_.Y([_.n6("up"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Sv.prototype,"onUp",null);
_.Y([_.fE({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Sv);
_.T(Sv,"ytd-expandable-metadata-renderer",function(){if(H7$!==void 0)return H7$;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return H7$=g},{mode:1});var dCR,FP5=function(){if(dCR!==void 0)return dCR;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return dCR=g};_.dL(_.MU,"yt-avatar-stack-view-model",{props:{className:_.H2,data:_.H2,overrides:_.H2,isOverlay:_.H2,useMediumText:_.H2,decorations:_.H2,hideAvatar:_.H2}});_.Ny("itemSectionRenderer","videoRenderer","ytd-video-renderer");var ow=function(){var g=_.X.apply(this,arguments)||this;g.disableExpand=!1;g.shouldShowChannelInfo=!1;g.hasAttributedBylineText=!1;g.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return g};
_.A(ow,_.X);_.P=ow.prototype;_.P.computeUseSearchUi=function(){var g,u;return this.isSearch||((g=this.data)==null?void 0:(u=g.style)==null?void 0:u.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.computeUseThreeLineTitle=function(){var g;return((g=this.data)==null?void 0:g.maxTitleLines)===3};
_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.w("polymer_video_renderer_defer_menu")&&!E7R?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"}}}};
_.P.attached=function(){_.Y_(this.hostElement,"blue-links",_.w("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Ox(_.Tr(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var g=this.get("data.buttons.buttonRenderer.serviceEndpoint"),u;g&&((u=_.c(g.commandMetadata,_.QP))==null?0:u.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(g);this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15625_inlinePreviewHoverListener=M0({mediaRenderer:this,lockupElement:this.JSC$15625_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.P.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$15625_inlinePreviewHoverListener)==null||a1(g)};
_.P.onTextWrapperClick=function(g){var u,q,Q=this.hideTranslation?(u=this.data)==null?void 0:u.untranslatedNavigationEndpoint:(q=this.data)==null?void 0:q.navigationEndpoint;u=_.Ce(_.C6(g),this.hostElement,["expandable-metadata"]);!Q||u&&!_.w("expandable_metadata_fix_killswitch")||_.ia(_.C6(g),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.hJ(this.hostElement,"yt-navigate",{endpoint:Q})};
_.P.computeThumbnailWidth=function(g,u,q,Q,L){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:Q?L==="MASSIVE"?600:L==="BIG"?500:L==="MEDIUM"?450:420:q?360:u?128:g?210:246};
_.P.computeUseBiggerThumbs=function(g){return g&&_.w("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.P.computeHasAttributedBylineText=function(){var g;return!((g=this.data)==null||!g.attributedBylineText)};
_.P.computeVideoStyle=function(){if(_.w("enable_video_style")){var g,u;return(g=this.data)==null?void 0:(u=g.style)==null?void 0:u.value}};
_.P.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.handleHideItemSectionVideosByIdCommand=function(g){var u;g=(u=_.c(g,q1X))==null?void 0:u.videoId;this.data&&this.data.videoId===g&&(this.isHidden=!0)};
_.P.getMetadataSnippetContainerClass=function(g){return g?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.P.computeTitleText=function(g,u,q){return g?q:u};
_.P.computeDescriptionSnippet=function(g,u,q){return g?q:u};
_.P.computeSnippetText=function(g,u,q){return g?q:u};
_.P.computeNavigationEndpoint=function(g,u){return g?u==null?void 0:u.untranslatedNavigationEndpoint:u==null?void 0:u.navigationEndpoint};
_.P.hideInlineTitleIcon=function(g,u){return g||!u};
_.z3.Object.defineProperties(ow.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 g;return(g=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?g:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return!!(this==null?0:(g=this.data)==null?0:(u=g.channelThumbnailSupportedRenderers)==null?0:(q=u.channelThumbnailWithLinkRenderer)==null?0:q.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.c((g=this.data)==null?void 0:g.avatar,rFo)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$15625_inlinePreviewHoverListener)==null?0:Gb(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.z3.Object.defineProperties(ow,{template:{configurable:!0,enumerable:!0,get:function(){return FP5()}}});
ow.prototype.dataChanged=ow.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ow.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],ow.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.I(_.c_),_.K("design:type",Object)],ow.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ow.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],ow.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ow.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ow.prototype,"isBackstageVideo",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ow.prototype,"isPostCompactVideo",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ow.prototype,"isHistory",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ow.prototype,"isRichGridVideoPost",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ow.prototype,"isHidden",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ow.prototype,"isSearch",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.K("design:type",Boolean)],ow.prototype,"useSearchUi",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.K("design:type",Boolean)],ow.prototype,"useThreeLineTitle",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.K("design:type",Boolean)],ow.prototype,"useBiggerThumbs",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.K("design:type",Object)],ow.prototype,"videoStyle",void 0);_.Y([_.a({computed:"computeDisableExpand(videoStyle)"}),_.K("design:type",Object)],ow.prototype,"disableExpand",void 0);
_.Y([_.a({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.K("design:type",Object)],ow.prototype,"shouldShowChannelInfo",void 0);_.Y([_.a({computed:"computeHasAttributedBylineText(data)"}),_.K("design:type",Object)],ow.prototype,"hasAttributedBylineText",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.o4("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],ow.prototype,"biggerThumbsStyle",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.K("design:type",String)],ow.prototype,"inlineTitleIcon",void 0);_.Y([_.a({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.K("design:type",Object)],ow.prototype,"computedNavigationEndpoint",void 0);_.Y([_.a({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(g,u){return _.BC(g.entities,"searchVideoResultEntity",u)}}),
_.K("design:type",Object)],ow.prototype,"searchVideoResultEntity",void 0);_.Y([_.oE("ytd-thumbnail"),_.K("design:type",HTMLElement)],ow.prototype,"thumbnail",void 0);_.Y([_.oE("#dismissible"),_.K("design:type",HTMLElement)],ow.prototype,"JSC$15625_dismissibleMedia",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ow.prototype,"dataChanged",null);
_.Y([_.C("searchVideoResultEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ow.prototype,"hideTranslation",null);_.Y([_.C("searchVideoResultEntity"),_.K("design:type",Array),_.K("design:paramtypes",[])],ow.prototype,"hiddenBadgeGroups",null);_.Y([_.C("data","useAvatar"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ow.prototype,"shouldShowChannelThumbnail",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ow.prototype,"useAvatar",null);
_.Y([_.C("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ow.prototype,"isHovered",null);_.Y([_.fE({is:"ytd-video-renderer",disableElementRegistration:!0})],ow);_.T(ow,"ytd-video-renderer",function(){return FP5()},{mode:2});var Um=function(){var g=_.X.apply(this,arguments)||this;g.editDialog=null;g.roundedContainer=!0;g.isLoading=!1;g.isRichGrid=!1;g.isRichGridRepost=!1;g.reduceSidePaddings=_.w("reduce_side_paddings_in_shelf");g.JSC$15632_spinnerEl=null;return g};
_.A(Um,_.X);_.P=Um.prototype;
_.P.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"}}}};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){var g=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var u=0,q=this.data.actions&&this.data.actions.length;u<q;u++)this.openEditDialog(_.c(this.data.actions[u],rHb));if((u=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(u=this.get("buttonRenderer.hint.hintRenderer.hintId",u))&&u.startsWith("share-post-hint")){var Q=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(Q){_.O1.getInstance();var L=KI(_.I7(_.Ug("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Hv.addLowPriorityJob(function(){_.xJ(g.hostElement,L,Q)})}}}};
_.P.updatePoll=function(g){g>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15632_spinnerEl||(this.JSC$15632_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Tr(this.hostElement).appendChild(this.JSC$15632_spinnerEl));this.JSC$15632_spinnerEl&&(this.JSC$15632_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(g){var u=this.get("updateCommentDialogEndpoint",g.detail.endpoint);u&&(this.openEditDialog(u),g.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(g,u){u&&this.updatePoll(u.selectedChoiceIndex)};
_.P.onYtServiceRequestSent=function(g,u){var q;u.endpoint&&(_.c(u.endpoint,UJx)||_.c(u.endpoint,o32)&&((q=_.c(u.endpoint,o32))==null||!q.clientActions))&&(this.isLoading=!0);if(u.actions)for(g=0;g<u.actions.length;g++)q=u.actions[g],_.c(q,uk)&&(q=this.get("updateBackstagePollAction.selectedChoiceIndex",q),q==void 0&&(q=-1),this.updatePoll(q))};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(g){g&&g.dialog&&(this.editDialog=g.dialog,g=this.editDialogEl.firstElementChild)&&(g.focus(),g.openDialog&&g.openDialog())};
_.P.computeIsPostHidden=function(g,u){return!!g||u};
_.P.computeSurfaceType=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.P.computeUsesCompactLockup=function(g){return g==="BACKSTAGE_SURFACE_TYPE_HOME"||g==="BACKSTAGE_SURFACE_TYPE_SEARCH"||g==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||g==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||g==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||g==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeShowWithoutToolbar=function(g){return!g.actionButtons&&!g.actionMenu};
_.P.computePostAttachment=function(g){if(g.backstageAttachment){if(_.c(g.backstageAttachment,CT0))return"poll";if(_.c(g.backstageAttachment,JX8))return"quiz";if(_.c(g.backstageAttachment,_.W4X))return"video";if(_.c(g.backstageAttachment,jz5))return"uploaded-videos";if(_.c(g.backstageAttachment,sh5))return g.contentText?"image":"image-only";if(_.c(g.backstageAttachment,yXn))return"playlist"}return"none"};
_.P.computePostTabIndex=function(g){return g?0:-1};
_.P.computeButtonTooltipPosition=function(g){return this.computeUsesCompactLockup(g)?"top":"bottom"};
_.P.computeHasText=function(g){return!(g==null||!g.contentText)};
_.P.onTap=function(g){var u,q;if(((u=this.data)==null?0:u.navigationEndpoint)&&((q=this.data)==null?void 0:q.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var Q;((Q=this.data)==null?0:Q.navigationEndpoint)&&!_.ia(_.C6(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.z3.Object.defineProperties(Um.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.voteCount)||_.I7("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,CT0))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,jz5))}}});
Um.prototype.onYtServiceRequestCompleted=Um.prototype.onYtServiceRequestCompleted;Um.prototype.onYtServiceRequestSent=Um.prototype.onYtServiceRequestSent;Um.prototype.onYtCommentPollRevert=Um.prototype.onYtCommentPollRevert;Um.prototype.onYtCommentboxDismiss=Um.prototype.onYtCommentboxDismiss;Um.prototype.onYtNavigate=Um.prototype.onYtNavigate;Um.prototype.isLoadingChanged=Um.prototype.isLoadingChanged;Um.prototype.dataChanged=Um.prototype.dataChanged;Um.prototype.contentTextChanged=Um.prototype.contentTextChanged;
_.Y([_.I(_.M5),_.K("design:type",Object)],Um.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Um.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Um.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],Um.prototype,"editDialog",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Um.prototype,"roundedContainer",void 0);_.Y([_.a(),_.K("design:type",Object)],Um.prototype,"isLoading",void 0);_.Y([_.a({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.K("design:type",String)],Um.prototype,"surface",void 0);
_.Y([_.a({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Um.prototype,"usesCompactLockup",void 0);_.Y([_.a({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Um.prototype,"showWithoutToolbar",void 0);_.Y([_.a({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.K("design:type",String)],Um.prototype,"attachment",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Um.prototype,"isRichGrid",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Um.prototype,"isRichGridRepost",void 0);_.Y([_.a({reflectToAttribute:!0,value:_.w("use_better_post_dismissals")}),_.K("design:type",Boolean)],Um.prototype,"useBetterPostDismissals",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Um.prototype,"reduceSidePaddings",void 0);
_.Y([_.a({computed:"computeHasText(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Um.prototype,"hasText",void 0);_.Y([_.oE("#expander"),_.K("design:type",Object)],Um.prototype,"expander",void 0);_.Y([_.oE("#action-buttons"),_.K("design:type",Object)],Um.prototype,"actionButtons",void 0);_.Y([_.oE("#edit-dialog"),_.K("design:type",HTMLElement)],Um.prototype,"editDialogEl",void 0);
_.Y([_.k_("data.contentText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Um.prototype,"contentTextChanged",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Um.prototype,"dataChanged",null);_.Y([_.k_("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Um.prototype,"isLoadingChanged",null);
_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Um.prototype,"onYtNavigate",null);_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Um.prototype,"onYtCommentboxDismiss",null);_.Y([_.n6("yt-comment-poll-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Um.prototype,"onYtCommentPollRevert",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],Um.prototype,"onYtServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],Um.prototype,"onYtServiceRequestCompleted",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Um.prototype,"voteCount",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Um.prototype,"commentCount",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Um.prototype,"hasPoll",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Um.prototype,"hasUploadedVideo",null);_.Y([_.fE({is:"ytd-post-renderer",disableElementRegistration:!0})],Um);
_.T(Um,"ytd-post-renderer",function(){if(xOb!==void 0)return xOb;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return xOb=g},{mode:1});var mCx;var ajn;var gR=function(){return _.X.apply(this,arguments)||this};
_.A(gR,_.X);gR.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.VR.YtdHorizontalListBehavior),_.K("design:type",Object)],gR.prototype,"ytdHorizontalListBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],gR.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],gR.prototype,"data",void 0);
_.Y([_.a({value:"$.items.children"}),_.K("design:type",String)],gR.prototype,"itemsPath",void 0);_.Y([_.a({value:1}),_.K("design:type",Number)],gR.prototype,"initialCount",void 0);_.Y([_.a({reflectToAttribute:!0,value:_.w("enable_community_page_on_desktop")}),_.K("design:type",Boolean)],gR.prototype,"useSmallerPostImageAttachments",void 0);_.Y([_.a(),_.K("design:type",String)],gR.prototype,"surface",void 0);_.Y([_.fE({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],gR);
_.T(gR,"ytd-post-multi-image-renderer",function(){if(ajn!==void 0)return ajn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ajn=g},{mode:2});var Vqn={"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"}}},
u5=function(){var g=_.X.apply(this,arguments)||this;g.hasInlineCommentSection=!1;g.editDialog=null;g.isLoading=!1;g.shouldHideAuthor=!1;g.shouldShowVideoTime=!1;g.isInEngagementPanel=!1;g.hideBorder=!1;g.usesFullLockup=!1;g.shouldShowMenuInCompactView=!1;g.JSC$15647_spinnerEl=null;g.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return g};
_.A(u5,_.X);_.P=u5.prototype;_.P.configureRendererStamper=function(){return Vqn};
_.P.computeIsPollHeaderEnabled=function(g){return(g==null?void 0:g.pollMetadataIcon)!=null};
_.P.getPublishTimeStampString=function(g,u){u=new Date((Number(u)-60*((new Date).getTimezoneOffset()-(new Date(Number(u)*1E3)).getTimezoneOffset()))*1E3);u=(new lR(10)).format(u);if(g&&g.runs&&g.runs.length)for(var q=0;q<g.runs.length;q++)g.runs[q].text&&(g.runs[q].text=g.runs[q].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",u));return g};
_.P.created=function(){this.JSC$15647_spinnerEl=null};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var g;if((g=this.data)==null?0:g.actions){g=_.N(this.data.actions);for(var u=g.next();!u.done;u=g.next())this.openEditDialog(_.c(u.value,rHb))}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){_.Tr(this.hostElement).querySelector("#action-buttons").reply()};
_.P.updatePoll=function(g,u){u&&this.set("data.pollMetadataVoteCountText",u);this.hasInlineCommentSection&&(g=g>=0,u=_.Tr(this.hostElement).querySelector("#action-buttons"),g?u.reply():u.hideReplyDialog())};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15647_spinnerEl||(this.JSC$15647_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Tr(this.hostElement).appendChild(this.JSC$15647_spinnerEl));this.JSC$15647_spinnerEl&&(this.JSC$15647_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(g){var u=this.get("updateCommentDialogEndpoint",g.detail.endpoint);u&&(this.openEditDialog(u),g.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(g,u){u&&this.updatePoll(u.selectedChoiceIndex,u.totalVotes)};
_.P.onYtServiceRequestSent=function(g,u){g.stopPropagation();g=_.c(u.endpoint,o32);if(_.c(u.endpoint,UJx)||g&&!g.clientActions)this.isLoading=!0;if(u.actions)for(g=0;g<u.actions.length;g++){var q=u.actions[g],Q=_.c(q,uk);Q&&(q=this.get("updateBackstagePollAction.selectedChoiceIndex",q),q===void 0&&(q=-1),this.updatePoll(q,Q.totalVotes))}};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(g){g&&g.dialog&&(this.editDialog=g.dialog,g=this.editDialogElement.firstElementChild)&&(g.focus(),g.openDialog&&g.openDialog())};
_.P.computeIsBodyHidden=function(g,u){return!!g||u};
_.z3.Object.defineProperties(u5.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var g=this.data,u=g.showPostAuthorBackgroundHighlight,q=g.postAuthorBadgeType,Q=g.authorEndpoint;if(!u&&q!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&q!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var L,E,y;g=_.I7(((L=g.authorText)==null?void 0:(E=L.runs)==null?void 0:(y=E[0])==null?void 0:y.text)||"");L=void 0;switch(q){case "POST_AUTHOR_BADGE_TYPE_ARTIST":L={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":L={iconType:u?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:g,authorEndpoint:Q,authorCreator:u,icon:L}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var g,u;if((g=this.data)==null?0:(u=g.pollMetadataIcon)==null?0:u.iconType)return _.x9(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.voteCount)||_.I7("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,CT0))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,JX8))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,jz5))}}});
u5.prototype.onYtServiceRequestCompleted=u5.prototype.onYtServiceRequestCompleted;u5.prototype.onYtServiceRequestSent=u5.prototype.onYtServiceRequestSent;u5.prototype.onYtCommentPollRevert=u5.prototype.onYtCommentPollRevert;u5.prototype.onYtCommentboxDismiss=u5.prototype.onYtCommentboxDismiss;u5.prototype.onYtNavigate=u5.prototype.onYtNavigate;u5.prototype.isLoadingChanged=u5.prototype.isLoadingChanged;u5.prototype.dataChanged=u5.prototype.dataChanged;u5.prototype.contentTextChanged=u5.prototype.contentTextChanged;
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],u5.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],u5.prototype,"rendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],u5.prototype,"rendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],u5.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.oE("#contentTextExpander"),_.K("design:type",Object)],u5.prototype,"expander",void 0);_.Y([_.oE("#edit-dialog"),_.K("design:type",Element)],u5.prototype,"editDialogElement",void 0);_.Y([_.a(),_.K("design:type",Object)],u5.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],u5.prototype,"hasInlineCommentSection",void 0);_.Y([_.a(),_.K("design:type",Object)],u5.prototype,"editDialog",void 0);_.Y([_.a(),_.K("design:type",Object)],u5.prototype,"isLoading",void 0);
_.Y([_.a({computed:"computeIsPollHeaderEnabled(data)"}),_.K("design:type",Boolean)],u5.prototype,"isPollHeaderEnabled",void 0);_.Y([_.a(),_.K("design:type",Object)],u5.prototype,"shouldHideAuthor",void 0);_.Y([_.a(),_.K("design:type",Object)],u5.prototype,"shouldShowVideoTime",void 0);_.Y([_.a(),_.K("design:type",Object)],u5.prototype,"isInEngagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],u5.prototype,"hideBorder",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],u5.prototype,"usesFullLockup",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],u5.prototype,"shouldShowMenuInCompactView",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],u5.prototype,"authorCommentBadge",null);_.Y([_.C("isInEngagementPanel"),_.K("design:type",Number),_.K("design:paramtypes",[])],u5.prototype,"postTextMaxLines",null);
_.Y([_.C("data.icon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],u5.prototype,"pollIcon",null);_.Y([_.k_("data.contentText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u5.prototype,"contentTextChanged",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u5.prototype,"dataChanged",null);
_.Y([_.k_("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u5.prototype,"isLoadingChanged",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],u5.prototype,"onYtNavigate",null);_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u5.prototype,"onYtCommentboxDismiss",null);
_.Y([_.n6("yt-comment-poll-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],u5.prototype,"onYtCommentPollRevert",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],u5.prototype,"onYtServiceRequestSent",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],u5.prototype,"onYtServiceRequestCompleted",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],u5.prototype,"voteCount",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],u5.prototype,"commentCount",null);
_.Y([_.C("data.backstageAttachment"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],u5.prototype,"hasPoll",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],u5.prototype,"hasQuiz",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],u5.prototype,"hasUploadedVideo",null);_.Y([_.fE({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],u5);
_.T(u5,"ytd-backstage-post-renderer",function(){if(mCx!==void 0)return mCx;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return mCx=g},{mode:1});var Xf8;var q2=function(){var g=_.X.apply(this,arguments)||this;g.editDialog=null;g.showExpandButton=!1;g.isRichGrid=!1;g.usesFullLockup=!1;return g};
_.A(q2,_.X);_.P=q2.prototype;_.P.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"}}}};
_.P.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.P.computeShowExpandButton=function(g){return this.usesCompactLockup||g&&g.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.P.computeUsesCompactLockup=function(g){return!!g.condensedContent};
_.P.computeShowFullContentText=function(g){return!g};
_.P.onYtNavigate=function(g){g=this.get("updateCommentDialogEndpoint",g.detail.endpoint);this.openEditDialog(g)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.openEditDialog=function(g){g&&g.dialog&&(this.editDialog=g.dialog,g=this.repostEditDialogEl.firstElementChild)&&(g.focus(),g.openDialog&&g.openDialog())};
_.P.onTap=function(g){if(this.data){var u=null;this.usesCompactLockup&&!_.ia(_.C6(g)||[],this.hostElement,["YT-IMG-SHADOW"])?u=this.get("navigationEndpoint",this.data):g.target===this.moreButtonEl&&(u=this.get("navigationEndpoint",g.target.data));u&&_.hJ(this.hostElement,"yt-navigate",{endpoint:u})}};
q2.prototype.onYtCommentboxDismiss=q2.prototype.onYtCommentboxDismiss;q2.prototype.onYtNavigate=q2.prototype.onYtNavigate;q2.prototype.dataChanged=q2.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],q2.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],q2.prototype,"editDialog",void 0);_.Y([_.a({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],q2.prototype,"usesCompactLockup",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],q2.prototype,"showExpandButton",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],q2.prototype,"isRichGrid",void 0);
_.Y([_.a({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.K("design:type",Boolean)],q2.prototype,"showFullContentText",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],q2.prototype,"usesFullLockup",void 0);_.Y([_.oE("#more"),_.K("design:type",Object)],q2.prototype,"moreButtonEl",void 0);_.Y([_.oE("#repost-content-text"),_.K("design:type",HTMLElement)],q2.prototype,"repostContentTextEl",void 0);
_.Y([_.oE("#repost-edit-dialog"),_.K("design:type",HTMLElement)],q2.prototype,"repostEditDialogEl",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q2.prototype,"dataChanged",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],q2.prototype,"onYtNavigate",null);
_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q2.prototype,"onYtCommentboxDismiss",null);_.Y([_.fE({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],q2);
_.T(q2,"ytd-shared-post-renderer",function(){if(Xf8!==void 0)return Xf8;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Xf8=g},{mode:1});var rli;var WPR;var Qh=function(){return _.X.apply(this,arguments)||this};
_.A(Qh,_.X);Qh.prototype.attached=function(){var g=this;this.networkStatusManager||(this.networkStatusManager=new _.rN,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){g.onlineHandler()}))};
Qh.prototype.detached=function(){var g=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){g.onlineHandler()}),delete this.networkStatusManager)};
Qh.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Qh.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Qh.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Qh);
_.T(Qh,"ytd-reload-page-button-renderer",function(){if(WPR!==void 0)return WPR;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return WPR=g},{mode:1});var TDH={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"},Lm=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(Lm,_.X);_.P=Lm.prototype;_.P.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.P.computeHasBodyText=function(g){return!!g.bodyText};
_.P.computeButtons=function(g){var u=[];g.ctaButton&&u.push(g.ctaButton);g.secondaryButton&&u.push(g.secondaryButton);return u};
_.P.computeRendererStyle=function(g){return g.style?g.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():g.icon?"":"no-icon"};
_.P.getIconName=function(g,u){u=u===void 0?!1:u;if(g===void 0)return"";g=this.get("icon.iconType",g);var q;_.w("enable_hlp_client_icon_pick")?q=this.getThemedIcon(g,u):q=g;(u=TDH[q])||(u="yt-icons");return[u,q].join(":")};
_.P.getThemedIcon=function(g,u){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(g)?u?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(g)?u?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":g};
_.P.isThumbnail=function(g){return!!g.thumbnail};
_.P.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Lm.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Lm.prototype,"data",void 0);
_.Y([_.a({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],Lm.prototype,"rendererStyle",void 0);_.Y([_.a({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.K("design:type",String)],Lm.prototype,"iconName",void 0);_.Y([_.a({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Lm.prototype,"thumbnail",void 0);_.Y([_.a({computed:"computeButtons(data)"}),_.K("design:type",Array)],Lm.prototype,"buttons",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Lm.prototype,"isDarkTheme",void 0);_.Y([_.a({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Lm.prototype,"hasBodyText",void 0);_.Y([_.fE({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Lm);
_.Te()(Lm,"ytd-background-promo-renderer",function(){if(rli===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);rli=g}g=rli;return g},{allowedProps:["data"],
mode:1});var ho2;var Ey=function(){return _.X.apply(this,arguments)||this};
_.A(Ey,_.X);_.z3.Object.defineProperties(Ey.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q,L,E;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(g=this.data)==null?void 0:(u=g.thumbnail)==null?void 0:u.sampledThumbnailColor,vibrantColorPalette:(q=this.data)==null?void 0:(Q=q.thumbnail)==null?void 0:Q.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(E=L.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:!0}}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ey.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ey.prototype,"collectionStack",null);_.Y([_.fE({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Ey);
_.T(Ey,"ytd-compact-station-renderer",function(){if(ho2!==void 0)return ho2;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ho2=g},{mode:1});var YD5;var Pw=function(){var g=_.X.apply(this,arguments)||this;g.isRichGrid=!1;return g};
_.A(Pw,_.X);Pw.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]]"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Pw.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Pw.prototype,"isRichGrid",void 0);_.Y([_.fE({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Pw);
_.T(Pw,"ytd-grid-channel-renderer",function(){if(YD5!==void 0)return YD5;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return YD5=g},{mode:1});var OLo;var N2=function(){return _.X.apply(this,arguments)||this};
_.A(N2,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],N2.prototype,"data",void 0);_.Y([_.fE({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],N2);
_.T(N2,"ytd-grid-movie-playlist-renderer",function(){if(OLo!==void 0)return OLo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return OLo=g},{mode:1});var KP0;var sy=function(){var g=_.X.apply(this,arguments)||this;g.downloadProgress=0;g.transferState="TRANSFER_STATE_UNKNOWN";g.modernButtons=_.w("web_modern_buttons");return g};
_.A(sy,_.X);sy.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
sy.prototype.configureRendererStamper=function(){return{"data.menu":g7}};
sy.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
sy.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.w("woffle_playlist_renderer_killswitch")){var g,u=z6b(this.entityInfo,this.transferState,this.downloadProgress,(g=this.data)==null?void 0:g.playlistId,this.isOnline);g=u.viewPlaylistText;var q=u.badges;u=u.thumbnailOverlays;this.isDownloads=!!g||!!q;this.set("data.viewPlaylistText",g);q&&q.length>0&&this.set("data.badges",q);u&&u.length>0&&this.set("data.thumbnailOverlays",
u)}};
_.z3.Object.defineProperties(sy.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 g;return!((g=this.data)==null?0:g.menu)}}});
sy.prototype.transferStateChanged=sy.prototype.transferStateChanged;sy.prototype.dataChanged=sy.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],sy.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],sy.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a({selector:_.b1M,selectorArgs:["data.playlistId"]}),_.K("design:type",Object)],sy.prototype,"downloadProgress",void 0);_.Y([_.a({selector:_.eb,selectorArgs:["data.playlistId"]}),_.K("design:type",Object)],sy.prototype,"transferState",void 0);_.Y([_.a({selector:CpF,selectorArgs:["data.playlistId"]}),_.K("design:type",Object)],sy.prototype,"entityInfo",void 0);_.Y([_.a({selector:_.MZ}),_.K("design:type",Boolean)],sy.prototype,"isOnline",void 0);
_.Y([_.a(),_.K("design:type",Object)],sy.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],sy.prototype,"downloadRenderData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],sy.prototype,"modernButtons",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],sy.prototype,"isDownloads",void 0);_.Y([_.C("transferState"),_.a({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],sy.prototype,"downloadState",null);
_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sy.prototype,"menuHidden",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sy.prototype,"dataChanged",null);_.Y([_.qm("transferState","downloadProgress","isOnline"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sy.prototype,"transferStateChanged",null);
_.Y([_.fE({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],sy);
_.T(sy,"ytd-grid-playlist-renderer",function(){if(KP0!==void 0)return KP0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return KP0=g},{mode:1});var xCZ;var yh=function(){return _.X.apply(this,arguments)||this};
_.A(yh,_.X);yh.prototype.configureRendererStamper=function(){return{"data.menu":g7,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z3.Object.defineProperties(yh.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q,L,E;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(g=this.data)==null?void 0:(u=g.thumbnail)==null?void 0:u.sampledThumbnailColor,vibrantColorPalette:(q=this.data)==null?void 0:(Q=q.thumbnail)==null?void 0:Q.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(E=L.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:!0}}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],yh.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],yh.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yh.prototype,"data",void 0);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],yh.prototype,"collectionStack",null);_.Y([_.fE({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],yh);
_.T(yh,"ytd-grid-radio-renderer",function(){if(xCZ!==void 0)return xCZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return xCZ=g},{mode:1});var BD$;var vw=function(){return _.X.apply(this,arguments)||this};
_.A(vw,_.X);vw.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
vw.prototype.computeNavigationEndpoint=function(g){return HKT(g==null?void 0:g.navigationEndpoint)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],vw.prototype,"ytdLockupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vw.prototype,"data",void 0);_.Y([_.a({computed:"computeNavigationEndpoint(data)"}),_.K("design:type",Object)],vw.prototype,"computedNavigationEndpoint",void 0);
_.Y([_.fE({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],vw);
_.T(vw,"ytd-grid-show-renderer",function(){if(BD$!==void 0)return BD$;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return BD$=g},{mode:1});var zoX;_.DG=function(g){this.playerClient=g};
_.nWi=function(g,u,q){q=q===void 0?{}:q;return g.playerClient.setOption("ad",u,q)};
_.DG.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.DG.prototype.executeCommand=function(g,u){this.getOptions().includes("executeCommand")?_.nWi(this,"executeCommand",{command:g,layoutId:u}):_.HY("Calling executeCommand when adModule is not loaded")};var pm=function(){return _.X.apply(this,arguments)||this};
_.A(pm,_.X);pm.prototype.getLayoutId=function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.layoutId:null};
pm.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var g=_.F0(),u=this.getLayoutId(),q=this.data.clickthroughEndpoint;g&&u&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?g.getPlayerPromise().then(function(Q){(new _.DG(Q)).executeCommand(q,u)}):_.hJ(this.hostElement,"yt-navigate",{endpoint:q})}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pm.prototype,"data",void 0);_.Y([_.fE({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],pm);
_.T(pm,"ytd-shopping-companion-item-renderer",function(){if(zoX!==void 0)return zoX;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return zoX=g},{mode:1});var kDx;var JV=function(){var g=_.X.apply(this,arguments)||this;g.isExpandableContent=!1;return g};
_.A(JV,_.X);_.z3.Object.defineProperties(JV.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.data)==null?void 0:g.price)||((u=this.data)==null?void 0:(q=u.dealsData)==null?void 0:q.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var g,u;if((g=this.data)!=null&&g.dealsData&&((u=this.data)==null||!u.priceReplacementText)){g=this.data.dealsData;var q,Q,L;return((q=g.salesData)==null?void 0:q.originalPrice)||((Q=g.priceDropData)==null?void 0:Q.referencePrice)||((L=g.promotionData)==null?void 0:L.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var g,u;return(g=this.data)==null?void 0:(u=g.dealsData)==null?void 0:u.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],JV.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],JV.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],JV.prototype,"isExpandableContent",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"showCta",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"ctaText",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"hasPriceTopPosition",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"hasPriceBottomPosition",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"useNewStyle",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"showPriceReplacementText",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"priceValue",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"showDeal",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"showAffiliateDisclaimer",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"useSaleStyle",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"useFromBrandCtaStyle",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"useFromVendorCtaStyle",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JV.prototype,"useShoppingCollectionCtaStyle",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],JV);
_.T(JV,"ytd-vertical-product-card-renderer",function(){if(kDx!==void 0)return kDx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return kDx=g},{mode:1});var SD8;var jm=function(){return _.X.apply(this,arguments)||this};
_.A(jm,_.X);jm.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],jm.prototype,"ytdLockupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],jm.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],jm);
_.T(jm,"ytd-grid-movie-renderer",function(){if(SD8!==void 0)return SD8;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return SD8=g},{mode:1});var oWi;var fm=function(){var g=_.X.apply(this,arguments)||this;g.roundedFix=_.w("web_enable_merch_item_rounding_fix");g.itemStyle="small-item";return g};
_.A(fm,_.X);fm.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var g,u,q,Q,L=(u=_.c((g=this.data)==null?void 0:g.buttonCommand,_.YGi))==null?void 0:(q=u.item)==null?void 0:(Q=q.notificationTextRenderer)==null?void 0:Q.successResponseText;L&&_.Avq(this.hostElement,L)}};
_.z3.Object.defineProperties(fm.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:g.isProductPlaceholder)!==void 0&&((u=this.data)==null?void 0:u.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.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}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],fm.prototype,"roundedFix",void 0);_.Y([_.a(),_.K("design:type",Object)],fm.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],fm.prototype,"itemStyle",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],fm.prototype,"hasPrice",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],fm.prototype,"hasPriceReplacementText",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],fm.prototype,"hasAdditionalFeesText",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],fm.prototype,"hasAffiliateDisclaimer",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],fm.prototype,"isProductPlaceholder",null);
_.Y([_.a(),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],fm.prototype,"hideOpenInNewIcon",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],fm.prototype,"ariaLabel",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],fm);
_.T(fm,"ytd-merch-shelf-item-renderer",function(){if(oWi!==void 0)return oWi;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return oWi=g},{mode:1});_.dL(_.r(function(g){return _.p("button-card-view-model",{el:_.lF(_.J7(function(){return g.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return g.data().title},
role:"button"},_.p(_.VU,{model:{}}),_.p("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.p("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.p(_.M,{cond:function(){return g.data().image},
then:function(u){return _.p(_.IT,{data:u,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.p("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return g.data().title})))},"kc"),"button-card-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){g=_.FI(g,{className:void 0});var u=g.data;g=g.className;var q=_.G9(function(){return u().onTapCommand},void 0,"SXkP9e");
return _.p("ytd-shopping-item-card",{class:_.Ty("ytdShoppingItemCardHost",g)},_.p(_.ag,{command:q,className:"ytdShoppingItemCardHostLink"},_.p("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.p(_.Up,{data:function(){return u().thumbnailViewModel}},{thumbnailViewModel:function(Q){return _.p(VL,{data:Q.data,
aspectRatio:3})}})),_.p("div",null,_.p("p",{class:"ytdShoppingItemCardHostItemTitle"},_.p(_.c2,{text:function(){return u().itemTitle}})),_.p("p",{class:"ytdShoppingItemCardHostPrice"},_.p(_.c2,{text:function(){return u().priceOrStatus}})))))},"lc"),"ytd-shopping-item-card",{props:{data:_.H2,
className:_.H2}});var UCo={isAdsVideo:!0},gjH={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},ulR={showPlayerControls:!1,videoPreviewDurationMs:15E3},q2R={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},QF0={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var Z7=null,Zxq={};var ixq="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(" "),M2={},CzS=(M2.FEwhat_to_watch="home",M2.FEhashtag="hashtag",M2.FEtrending="trending",M2.FEhistory="history",M2.SPunlimited="premium",M2.FEmemberships_and_purchases="paid_memberships",M2.SPredeem_code="redeem",M2.SPverify_location="locate",M2.SPminor_moment="minor_moment",
M2.FEmini_app_container="mini_app",M2.FEnews_destination="news",M2.SPopen_in_app="open_in_app",M2.FEexplore="explore",M2.FEsubscriptions="subscriptions",M2.FEsfv_audio_pivot="sfv_audio_pivot",M2.FEplaylist_aggregation="playlist_aggregation",M2);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");_.BX("init");var LrH,Ej5,Np$,sFn,PjX;LrH=function(){};
_.KrM=_.r(function(g){var u=g.data;var q=g.inlineMetadata;var Q=g.aspectRatio;var L=g.scrimStyle;var E=g.className;var y=g.useDefaultStyle;var v=g.titleStyle;var J=new LrH,f=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",t=_.G9(function(){return(y==null?0:y())?f==="SHORTS_LOCKUP_STYLE_SLIM":u().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),e=_.G9(function(){return _.mV(q)||t()||!1},void 0,"GaU7Ef"),G=function(){return(L==null?void 0:
L())!==void 0?L==null?void 0:L():1},R=_.G9(function(){return u().belowThumbnailMetadata||!e()},void 0,"vsyhaf");
g=_.x1({visibilityCallback:function(LZ){var sb=u().onFirstVisible;LZ&&sb&&_.ey(sb)},
showOption:{calledOnce:!0,state:"visible"}});var H=_.lF(),l={},d=_.Ty(function(){return t(),"shortsLockupViewModelHostThumbnailContainer"},(l.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.mV(Q)===1},l.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.mV(Q)===2},l.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.w("web_shorts_2_by_3_lockups_study")&&!_.w("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
l)),F=_.G9(function(){if(_.mV(Q)===1)return 1;
_.mV(Q);return 2},void 0,"bBJLCd"),V,z=function(){if(J){var LZ;
(LZ=V)==null||a1(LZ);var sb;if(J.hostElement&&((sb=J.data)==null?0:sb.inlinePlayerData)){var Rm,M3;LZ=((Rm=J.data)==null?0:(M3=Rm.inlinePlayerData)==null?0:M3.enableAudioControl)?Object.assign({},QF0):Object.assign({},q2R);var tT,mJ;((tT=J.data)==null?void 0:(mJ=tT.inlinePlayerData)==null?void 0:mJ.maxPlaybackLengthSec)!==void 0&&(LZ.videoPreviewDurationMs=J.data.inlinePlayerData.maxPlaybackLengthSec*1E3);V=M0({mediaRenderer:J,lockupElement:J.hostElement,thumbnailElement:H.value,videoPreviewOpts:LZ})}}};
_.bX(function(){J&&(J.data=u(),z())},"r1zbOc");
var O=_.G9(function(){return u().thumbnail},void 0,"wZj8b");
l=_.G9(function(){return u().badge},void 0,"qOKyU");
var W=_.G9(function(){return u().onTap},void 0,"p3kB9e"),x={},k={};
return _.p("ytm-shorts-lockup-view-model",{el:_.lF(function(LZ){J&&(J.hostElement=LZ)},z,g),
class:_.Ty("shortsLockupViewModelHost",E)},_.p(_.U9,null,_.p(_.ag,{command:W,className:_.Ty("shortsLockupViewModelHostEndpoint",(x.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!R()},x),"reel-item-endpoint",""),
ariaHidden:function(){return!e()},
tabIndex:function(){return e()?0:-1}},_.p("div",{el:H,
class:_.Ty("shortsLockupViewModelHostThumbnailParentContainer",(k.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!t()},k))},_.p(_.M,{cond:O,
then:function(){return _.p("div",{class:d},_.p(_.IT,{data:function(){var LZ;return(LZ=O==null?void 0:O())!=null?LZ:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.p(_.Up,{data:function(){return u().thumbnailViewModel}},{thumbnailViewModel:function(LZ){return _.p(VL,{data:LZ.data,
aspectRatio:function(){return F()},
disableRounding:function(){return t()}})}}),null),_.p(_.M,{cond:e,
then:function(){return _.p(Ej5,{data:u,scrimStyle:G,useDefaultStyle:y,titleStyle:v})}}),_.p(_.Up,{data:l},{badgeViewModel:function(LZ){return _.p(_.bY,{data:LZ.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.p(_.M,{cond:function(){return e()&&u().menuOnTap},
then:function(){return _.p(PjX,{data:u,inlineMetadata:!0})}}),_.p(_.M,{cond:R,
then:function(){return _.p(Np$,{data:u,useDefaultStyle:y,inlineMetadata:e})}})))},"nc");
Ej5=_.r(function(g){var u=g.data;var q=g.scrimStyle;var Q=g.useDefaultStyle;var L=g.titleStyle;var E=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",y=Q&&_.w("web_hide_primary_text_for_pivot_panel"),v=_.G9(function(){return(Q==null?0:Q())?E==="SHORTS_LOCKUP_STYLE_SLIM":u().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ou5zO");
g={};g=_.Ty("shortsLockupViewModelHostInlineMetadata",(g.shortsLockupViewModelHostMetadataRounded=function(){return!v()},g.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(q==null?void 0:q())===3&&!_.w("enable_shorts_lockup_new_scrim")},g.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(q==null?void 0:q())===3&&_.w("enable_shorts_lockup_new_scrim")},g.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(q==null?void 0:q())===2||(q==null?void 0:
q())===4},g.shortsLockupViewModelHostShowOverPlayer=function(){return!0},g),"image-overlay-text");
var J={};return _.p("div",{class:g},_.p("h3",{class:_.Ty("shortsLockupViewModelHostMetadataTitle",(J.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(q==null?void 0:q())===4},J.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return u().belowThumbnailMetadata},J.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(L==null?void 0:L())===1},J.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(L==null?void 0:L())===2},J)),
"aria-label":function(){return u().accessibilityText}},_.p(_.M,{cond:function(){var f;
return!((f=u().overlayMetadata)==null||!f.primaryText)&&!y},
then:function(){return _.p(_.c2,{text:function(){var f;return(f=u().overlayMetadata)==null?void 0:f.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.p(_.M,{cond:function(){var f;
return(f=u().overlayMetadata)==null?void 0:f.secondaryText},
then:function(){return _.p(sFn,{data:u,scrimStyle:q,className:void 0})}}))},"oc");
Np$=_.r(function(g){var u=g.data;var q=g.useDefaultStyle;var Q=g.inlineMetadata;var L=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",E=_.G9(function(){return(q==null?0:q())?L==="SHORTS_LOCKUP_STYLE_SLIM":u().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"WbzRH"),y=_.lF(),v;
g=_.YH(function(R){if(_.vY(_.y4(R),y.value,["AVATAR-VIEW-MODEL"]))return!1;var H;(H=v)==null||H.click();return!1});
var J=_.G9(function(){return u().belowThumbnailMetadata||u().overlayMetadata},void 0,"nDfetf"),f=function(){return u().menuOnTap&&!Q()},t=function(){var R;
return(R=J())==null?void 0:R.avatar},e={},G={};
return _.p("div",{class:_.Ty(function(){return E()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(e.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!t()},e.shortsLockupViewModelHostOutsideMetadataHasMenu=f,e)),
"on:click":g,el:y,role:"presentation"},_.p(_.Up,{data:t},{avatarViewModel:function(R){return _.p(_.jv,{data:R.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.p("div",null,_.p("h3",{class:_.Ty("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(G.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var R,H;
return!((R=J())==null?0:(H=R.primaryText)==null?0:H.content)},G.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=Q,G)),
role:"presentation"},_.p(_.ag,{ref:function(R){return void(v=R)},
command:function(){return u().onTap},
className:_.Ty("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var R,H;return(R=J())==null?void 0:(H=R.primaryText)==null?void 0:H.content},
"aria-label":function(){return u().accessibilityText}},_.p(_.M,{cond:function(){var R;
return(R=J())==null?void 0:R.primaryText},
then:function(R){return _.p(_.c2,{text:R,noEndpoints:!0,noStyleRuns:!0})}}))),_.p(_.M,{cond:function(){var R;
return(R=J())==null?void 0:R.secondaryText},
then:function(R){return _.p("div",{class:_.Ty("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.p(_.c2,{text:R,noStyleRuns:!0}))}})),_.p(_.M,{cond:f,
then:function(){return _.p(PjX,{data:u,inlineMetadata:!1})}}))},"pc");
sFn=_.r(function(g){var u=g.data;var q=g.scrimStyle;g=g.className;var Q={};return _.p("div",{class:_.Ty((Q.shortsLockupViewModelHostMetadataSubhead=function(){return(q==null?void 0:q())!==4},Q.shortsLockupViewModelHostMetadataSubheadNew=_.w("enable_shorts_lockup_new_scrim"),Q.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(q==null?void 0:q())===4},Q),g),
"aria-hidden":"true"},_.p(_.c2,{text:function(){var L;return(L=u().overlayMetadata)==null?void 0:L.secondaryText},
noStyleRuns:!0}))},"qc");
PjX=_.r(function(g){var u=g.data;var q=g.inlineMetadata;g={};g=_.Ty((g.shortsLockupViewModelHostInlineMetadataMenu=function(){return q()},g.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!q()},g.shortsLockupViewModelHostShowOverPlayer=function(){return!0},g),"image-overlay-text");
return _.p("div",{class:g},_.p(_.W2,{data:function(){return{style:q()?"overlay":"mono",accessibilityLabel:u().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(Q){Q.preventDefault();Q.stopPropagation();var L=_.MY({elementsCommand:u().menuOnTap,forceNewState:!0});if(L==null?0:L.onclick)L.onclick(Q)}}},
iconName:"MORE_VERT"}))},"rc");var BpZ=_.r(function(g){var u=g.data;var q=g.inlineMetadata;var Q=g.aspectRatio;var L=g.scrimStyle;var E=g.className;var y=g.useDefaultStyle;g=_.G9(function(){var v=u().entityId;return v?v.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.p("ytm-shorts-lockup-view-model-v2",{class:_.Ty("shortsLockupViewModelHost",E)},_.p(_.KG,{contentId:g,aspectRatio:function(){return(Q==null?void 0:Q())===1?1:(Q==null?void 0:Q())===2?2:4}},function(){return _.p(_.KrM,{data:u,
inlineMetadata:q,aspectRatio:Q,scrimStyle:L,className:E,useDefaultStyle:y})}))},"sc");_.dL(BpZ,"ytm-shorts-lockup-view-model-v2",{props:{data:_.iF,inlineMetadata:_.iF,aspectRatio:_.iF,scrimStyle:_.iF,className:_.iF,useDefaultStyle:_.iF,titleStyle:_.iF}});var yxW=16/9*210,tV=function(){var g=_.X.apply(this,arguments)||this;g.isExpandableContent=!1;g.hideShelfHeader=!1;g.engagementPanel=!1;g.buttonClasses=["arrow"];g.isSearch=!1;g.disableScrollEventListener=!1;g.containsLockup=!1;g.overrideArrowPositionForProductCard=!1;g.overrideArrowPositionForShoppingItemCard=!1;g.overrideArrowPositionForReelItems=!1;g.overrideArrowPositionForGridMovie=!1;g.overrideArrowPositionToCenter=!1;g.isSearchPostShelf=!1;g.overrideArrowPositionForMixedShelf=!1;g.overrideArrowPositionForMixedShelfShortsOnly=
!1;g.hasBigThumbsReelItems=!1;g.shouldUseMixedListHeight=!1;g.shouldUseShortsListHeight=!1;g.gridVideoWidth=0;g.isSearchVodShelf=!1;g.disableWheelScroll=!1;g.sizing="COMPACT";g.shortsLockupAspectRatio=0;return g};
_.A(tV,_.X);_.P=tV.prototype;
_.P.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]]"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.w("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.P.computeInitialCountNumber=function(g){if(!g)return 6;var u=g.items.some(function(E){return!!E.topicRecommendationsChipRenderer}),q=g.items.some(function(E){return!!E.displayAdRenderer}),Q=this.computeShouldListItemsHaveEqualHeight(g),L=g.items.some(function(E){return!!E.gridPlaylistRenderer});
g=g.items.some(function(E){return!!E.shoppingItemCardViewModel});
return u?9:q?8:L||Q?10:g?7:6};
_.P.computeContainsPost=function(g){return!!g&&!!g.items&&g.items.some(function(u){return!!u.postRenderer})};
_.P.computeContainsLockup=function(){if(_.w("web_horizontal_list_lockup_arrow_killswitch"))return!1;var g,u;return(g=this.data)==null?void 0:(u=g.items)==null?void 0:u.some(function(q){return!!q.lockupViewModel})};
_.P.maybeUpdateLockupAspectRatio=function(){var g,u;if(this.computeContainsLockup()&&((g=this.data)==null?0:(u=g.items)==null?0:u.length)){var q;g=ggk((q=this.data.items[0].lockupViewModel)==null?void 0:q.contentType,this.data.force16By9ThumbnailAspectRatio);q=owq(g);q=this.computeLockupWidth()/q;_.x_(this.hostElement,{"--yt-horizontal-list-content-height":q+"px"})}};
_.P.computeOverrideArrowPositionForProductCard=function(g){if(this.isExpandableContent)return!1;var u;return!!(g==null?0:(u=g.items)==null?0:u.some(function(q){return!!q.verticalProductCardRenderer}))};
_.P.computeOverrideArrowPositionForShoppingItemCard=function(g){var u;return!!(g==null?0:(u=g.items)==null?0:u.some(function(q){return!!q.shoppingItemCardViewModel}))};
_.P.computeOverrideArrowPositionForReelItemRenderer=function(g){return this.containsReelItemRenderer(g)};
_.P.computeHasBigThumbsReelItems=function(g,u){return g&&this.containsReelItemRenderer(u)};
_.P.computeShouldListItemsHaveEqualHeight=function(g){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(g==null?void 0:g.itemSizeConstraint)};
_.P.computeShouldListItemsHaveShortsHeight=function(g){return this.computeShouldListItemsHaveEqualHeight(g)&&!this.containsGridVideoRenderer(g)};
_.P.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.P.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.P.containsReelItemRenderer=function(g){var u;return!!(g==null?0:(u=g.items)==null?0:u.some(function(q){return!(!q.reelItemRenderer&&!q.shortsLockupViewModel)}))};
_.P.containsGridVideoRenderer=function(g){var u;return!!(g==null?0:(u=g.items)==null?0:u.some(function(q){return!!q.gridVideoRenderer||!!q.lockupViewModel}))};
_.P.computeContainsGridMovieRenderer=function(g){var u;return!!(g==null?0:(u=g.items)==null?0:u.some(function(q){return!!q.gridMovieRenderer}))};
_.P.computeOverrideArrowPositionToCenter=function(g){return this.computeIsSearchPostShelf(g)};
_.P.computeIsSearchPostShelf=function(g){var u;return!!(g==null?0:(u=g.items)==null?0:u.some(function(q){var Q,L;return((L=(Q=q.postRenderer)==null?void 0:Q.surface)!=null?L:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.P.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(g){var u;return!!(g==null?0:(u=g.items)==null?0:u.some(function(q){var Q,L,E;return((E=(Q=q.backgroundPromoRenderer)==null?void 0:(L=Q.style)==null?void 0:L.value)!=null?E:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.P.computeIsSearchVodShelf=function(g,u){return g&&this.containsGridVideoRenderer(u)};
_.P.computeDisableWheelScroll=function(g,u){return this.computeIsSearchVodShelf(g,u)};
_.P.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.P.computeShortsLockupAspectRatio=function(){return 1};
_.P.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.x_(this.hostElement,{"--ytd-reel-item-thumbnail-height":yxW+"px"})};
tV.prototype.dataChanged=tV.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.VR.YtdHorizontalListBehavior),_.K("design:type",Object)],tV.prototype,"ytdHorizontalListBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tV.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],tV.prototype,"isExpandableContent",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"hideShelfHeader",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"engagementPanel",void 0);_.Y([_.a(),_.K("design:type",Array)],tV.prototype,"buttonClasses",void 0);_.Y([_.a(),_.K("design:type",Object)],tV.prototype,"isSearch",void 0);
_.Y([_.a(),_.K("design:type",Object)],tV.prototype,"disableScrollEventListener",void 0);_.Y([_.a({computed:"computeInitialCountNumber(data)"}),_.K("design:type",Number)],tV.prototype,"initialCount",void 0);_.Y([_.a({computed:"computeContainsPost(data)"}),_.K("design:type",Boolean)],tV.prototype,"supportComponentResize",void 0);_.Y([_.a({computed:"computeContainsPost(data)"}),_.K("design:type",Boolean)],tV.prototype,"containsPost",void 0);
_.Y([_.a({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"containsLockup",void 0);_.Y([_.a({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],tV.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.Y([_.a({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"overrideArrowPositionForProductCard",void 0);_.Y([_.a({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.Y([_.a({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"overrideArrowPositionForReelItems",void 0);_.Y([_.a({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"overrideArrowPositionForGridMovie",void 0);
_.Y([_.a({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"overrideArrowPositionToCenter",void 0);_.Y([_.a({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"isSearchPostShelf",void 0);_.Y([_.a({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.Y([_.a({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.Y([_.a({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"hasBigThumbsReelItems",void 0);
_.Y([_.a({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"shouldUseMixedListHeight",void 0);_.Y([_.a({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"shouldUseShortsListHeight",void 0);_.Y([_.a({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"gridVideoWidth",void 0);
_.Y([_.a({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"isSearchVodShelf",void 0);_.Y([_.a({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.K("design:type",Object)],tV.prototype,"disableWheelScroll",void 0);_.Y([_.a({computed:"computeSizing(isSearch)"}),_.K("design:type",Object)],tV.prototype,"sizing",void 0);
_.Y([_.a({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.K("design:type",Object)],tV.prototype,"shortsLockupAspectRatio",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tV.prototype,"dataChanged",null);
_.T(tV,"yt-horizontal-list-renderer",function(){if(E5X===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);E5X=g}g=E5X;return g},{mode:1});var vj0=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
vj0.prototype.subscribe=function(g,u){var q=this.subscriptions.get(g);if(!q)return function(){};
q.add(u);return function(){q.delete(u)}};
vj0.prototype.unsubscribe=function(g,u){(g=this.subscriptions.get(g))&&g.delete(u)};
vj0.prototype.publish=function(g,u){u=u===void 0?{}:u;(g=this.subscriptions.get(g))&&g.forEach(function(q){q(u)})};var Dd8;var pzW=[10,12,14,16,18,20,24,28,32,36],Jx2=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],em=function(){var g=_.X.apply(this,arguments)||this;g.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";g.hideOverflow=!1;g.useRoboto=!1;g.fontClass="";g.overflown=!1;g.actionMap={"yt-window-resized":"resize"};return g};
_.A(em,_.X);_.P=em.prototype;
_.P.attached=function(){var g=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();_.xt(this,function(){g.resize()});
if(!_.xS){var u,q,Q;(u=document)==null||(q=u.fonts)==null||(Q=q.ready)==null||Q.then(function(){g.resize()})}};
_.P.dataChanged=function(){this.resize()};
_.P.guideIsExpandedChanged=function(){this.resize()};
_.P.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 g=this.getMaxNumLines(),u=this.getMinFont(),q=this.getMaxFont(),Q=this.useRoboto?pzW:Jx2;for(Q=Q.filter(function(E){return E<=q&&E>=u});Q.length>1;){var L=Math.floor(Q.length/2);
this.updateFontSize(Q[L]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=g)Q=Q.slice(L,Q.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>g)Q=Q.slice(0,L);else break}this.updateFontSize(Q[Q.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(g)}};
_.P.handleOverflow=function(g){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>g&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",g.toString()))};
_.P.updateFontSize=function(g){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+g;this.textNode.classList.add(this.fontClass)};
_.P.getMaxFont=function(){var g=this.useRoboto?pzW:Jx2;g=g[g.length-1];return this.maxFontSize&&this.maxFontSize<=g?this.maxFontSize:g};
_.P.getMinFont=function(){var g=(this.useRoboto?pzW:Jx2)[0];return this.minFontSize&&this.minFontSize>=g?this.minFontSize:g};
_.P.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.P.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.P.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.iR(this.text).split("\n").length-1:Infinity};
_.P.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("Lh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
em.prototype.guideIsExpandedChanged=em.prototype.guideIsExpandedChanged;em.prototype.dataChanged=em.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],em.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],em.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],em.prototype,"text",void 0);
_.Y([_.a(),_.K("design:type",String)],em.prototype,"fontFamily",void 0);_.Y([_.a(),_.K("design:type",Number)],em.prototype,"maxWidth",void 0);_.Y([_.a(),_.K("design:type",Number)],em.prototype,"maxHeight",void 0);_.Y([_.a(),_.K("design:type",Number)],em.prototype,"maxFontSize",void 0);_.Y([_.a(),_.K("design:type",Number)],em.prototype,"minFontSize",void 0);_.Y([_.a(),_.K("design:type",Number)],em.prototype,"maxLines",void 0);_.Y([_.a(),_.K("design:type",Object)],em.prototype,"hideOverflow",void 0);
_.Y([_.a({selector:_.eOq}),_.K("design:type",Boolean)],em.prototype,"guideIsExpanded",void 0);_.Y([_.oE("#container"),_.K("design:type",HTMLElement)],em.prototype,"containerNode",void 0);_.Y([_.oE("#text"),_.K("design:type",HTMLElement)],em.prototype,"textNode",void 0);_.Y([_.qm("text"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],em.prototype,"dataChanged",null);
_.Y([_.qm("guideIsExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],em.prototype,"guideIsExpandedChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],em);
_.T(em,"yt-dynamic-sizing-formatted-string",function(){if(Dd8!==void 0)return Dd8;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Dd8=g},{mode:1});var jFn;_.fNi=function(g){_.gq.call(this,g)};
_.A(_.fNi,_.gq);var MMa=function(g){_.gq.call(this,g)};
_.A(MMa,_.fNi);var GV=function(){return _.X.apply(this,arguments)||this};
_.A(GV,_.X);GV.prototype.onTapSuspendedChannel=function(){var g;if((g=this.data)!=null&&g.serviceEndpoint){var u,q;(g=(q=_.c((u=this.data)==null?void 0:u.serviceEndpoint,_.ao))==null?void 0:q.url)?_.Gr(g,void 0,void 0,window.top):(u=new MMa("Did not handle suspended account tap. No appealUrl."),_.Zf(u))}else u=new MMa("Did not handle suspended account tap. No serviceEndpoint."),_.Zf(u)};
GV.prototype.onTap=function(){var g=this,u=_.gL(),q,Q=(q=_.Ui(u,{veType:7116}))!=null?q:void 0;_.$q(u,{visualElement:Q});_.tR();this.saveRoleText();var L;if((L=this.data)==null?0:L.youtubeSuspended)this.onTapSuspendedChannel();else{var E=!1,y,v;(u=(v=_.c((y=this.data)==null?void 0:y.serviceEndpoint,_.Eeb))==null?void 0:v.supportedTokens)&&u.forEach(function(J){if(J.accountSigninToken)if(E=!0,g.onAccountItemTap)g.onAccountItemTap(J.accountSigninToken.signinUrl);else _.Gr(J.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!E){if(y=this.get("serviceEndpoint",this.data))E=!0,this.ytComponentBehavior.resolveCommand(y);E||_.lD(new MMa("Did not handle account switch tap. No token."))}}};
GV.prototype.saveRoleText=function(){if(this.data){var g=this.data,u=g.channelDelegationRole;if(u){var q,Q=(q=_.c(g==null?void 0:g.serviceEndpoint,_.Eeb))==null?void 0:q.supportedTokens;if(!Q){var L,E,y,v;Q=(L=_.c(g==null?void 0:g.serviceEndpoint,_.q4))==null?void 0:(E=L.popup)==null?void 0:(y=E.confirmDialogRenderer)==null?void 0:(v=y.confirmButton)==null?void 0:v.buttonRenderer;var J;Q=(J=_.c(Q==null?void 0:Q.command,_.zg))==null?void 0:J.commands;if(!Q)return;var f;Q=(f=_.c(Q[1],_.Eeb))==null?
void 0:f.supportedTokens}if(Q){J=void 0;f=_.N(Q);for(Q=f.next();!Q.done;Q=f.next())if(Q=Q.value,Q.datasyncIdToken){J=Q.datasyncIdToken.datasyncIdToken;break}if(J){var t;a:{if(_.ZyJ()&&(f=_.G8(J+"::pom"))){f=new U1(f);break a}f=void 0}(t=f)==null||t.set("role_text",u);if((WSm?WSm:window.location).href.indexOf("studio")!==-1&&(t=lyu())){f=t.src?(new URL(t.src)).origin:"*";var e;(e=t.contentWindow)==null||e.postMessage({action:"save_pom_role",datasyncId:J,roleText:u},f)}}}}}};
_.z3.Object.defineProperties(GV.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.data)==null?void 0:(u=g.accountPhoto)==null?void 0:u.thumbnails;return q&&q.length>0&&(q[0].height===36||q[0].height===48)?q[0].height:40}}});
GV.prototype.onTap=GV.prototype.onTap;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],GV.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],GV.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!1}),_.K("design:type",Function)],GV.prototype,"onAccountItemTap",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GV.prototype,"enableRingForActiveAccount",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],GV.prototype,"thumbnailSize",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GV.prototype,"onTap",null);_.Y([_.fE({is:"ytd-account-item-renderer",disableElementRegistration:!0})],GV);
_.T(GV,"ytd-account-item-renderer",function(){if(jFn!==void 0)return jFn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return jFn=g},{mode:1});var tMW;var $r=function(){return _.X.apply(this,arguments)||this};
_.A($r,_.X);$r.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.Bk().resolve(_.Gy).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],$r.prototype,"data",void 0);_.Y([_.fE({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],$r);
_.T($r,"ytd-identity-chip-renderer",function(){if(tMW!==void 0)return tMW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return tMW=g},{mode:1});var eui;var Glo;var $di;var Ruo;var Rd=function(){var g=_.X.apply(this,arguments)||this;g.richItemMinWidth=_.S8("wn_grid_min_item_width",310);g.isShorts=!1;g.isWatchNext=!1;g.isExploreHub=!1;return g};
_.A(Rd,_.X);_.z3.Object.defineProperties(Rd.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var g=[],u=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.x_(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var q;if(((q=this.data)==null?0:q.rows)&&u)for(u*=this.data.rows,q=0;q<u;q++)g.push({});return g}}});
_.Y([_.I(_.jB),_.K("design:type",Object)],Rd.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Rd.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.JD,value:3}),_.K("design:type",Number)],Rd.prototype,"itemsPerRow",void 0);_.Y([_.a({selector:_.tBq,value:6}),_.K("design:type",Number)],Rd.prototype,"slimItemsPerRow",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Number)],Rd.prototype,"richItemMinWidth",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],Rd.prototype,"miniMode",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rd.prototype,"isShorts",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rd.prototype,"isWatchNext",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rd.prototype,"isExploreHub",void 0);
_.Y([_.C("isExploreHub"),_.a({reflectToAttribute:!0}),_.K("design:type",Object),_.K("design:paramtypes",[])],Rd.prototype,"shimmerAnimation",null);_.Y([_.C("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.K("design:type",Array),_.K("design:paramtypes",[])],Rd.prototype,"cardItems",null);_.Y([_.fE({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Rd);
_.wza=_.Te()(Rd,"ytd-ghost-grid-renderer",function(){if(Ruo===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);Ruo=g}g=Ruo;return g},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.dL(_.r(function(g){var u=_.FI(g,{numberOfComments:3}).numberOfComments,q=_.FI(g,{isInitialLoad:!1}).isInitialLoad,Q=_.FI(g,{engagementPanel:!1}).engagementPanel,L=function(){return Math.min(Number(u==null?void 0:u())||20,20)};
return _.p("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.p(_.M,{cond:function(){return!(Q==null?0:Q())&&(q==null?void 0:q())},
then:function(){return _.p("div",{class:"ytGhostCommentsComments"},_.p("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.p("div",{class:_.Ty("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.p("div",{class:_.Ty("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.p("div",{class:"ytGhostCommentsGhostCard"},_.p("div",{class:"ytGhostCommentsAvatar"},_.p("div",{class:"ytGhostCommentsCircle"})),_.p("div",{class:"ytGhostCommentsComments"},_.p("div",{class:"ytGhostCommentsMeta"},
_.p("div",{class:_.Ty("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.p("div",{class:_.Ty("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.p("div",{class:"ytGhostCommentsComments"},_.p(_.R4,{each:function(){return Array((L==null?void 0:L())||3)}},function(){return _.p("div",{class:"ytGhostCommentsGhostCard"},_.p("div",{class:"ytGhostCommentsAvatar"},_.p("div",{class:"ytGhostCommentsCircle"})),_.p("div",{class:"ytGhostCommentsHost"},_.p("div",{class:"ytGhostCommentsMeta"},
_.p("div",{class:_.Ty("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.p("div",{class:_.Ty("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.p("div",{class:_.Ty("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.p("div",{class:"ytGhostCommentsGhostLikeDislike"},_.p("div",{class:_.Ty("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.p("div",{class:_.Ty("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"tc"),"yt-ghost-comments",{props:{numberOfComments:_.H2,
isInitialLoad:_.H2,engagementPanel:_.H2},unsafeExternallySettableAttributes:new Set(["hidden"])});_.Ny("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var wR=function(){var g=_.X.apply(this,arguments)||this;g.isOverridable=!1;g.spinnerActive=!1;g.showButton=!1;g.isCommentsSection=!1;g.engagementPanel=!0;g.isShortsGrid=!1;g.isShortsPage=!1;g.isWatchPage=!1;g.originalShowButton=!1;g.endOfList=!1;return g};
_.A(wR,_.X);_.P=wR.prototype;_.P.resetIntersectionObserver=function(){var g;(g=this.observer)==null||g.disconnect();this.observer=void 0};
_.P.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var g,u;((g=this.data)==null?void 0:g.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((u=this.data)==null?0:u.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.P.initializeIntersectionObserver=function(){var g=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(u){u=_.N(u);for(var q=u.next();!q.done;q=u.next())q.value.isIntersecting&&(g.triggerContinuation(),g.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.P.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]]"}}}}}};
_.P.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var g;((g=this.data)==null?0:g.continuationEndpoint)&&(g=_.c(this.data.continuationEndpoint,_.fe))&&this.ytdReduxBehavior.dispatch(_.rF({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:g}}))};
_.P.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.P.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.P.onServiceRequestCompleted=function(g,u){if(!_.w("kevlar_hide_spinner_on_empty_continuation_killswitch")){var q;(q=u.actions)!=null&&q.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.P.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.P.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.P.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.P.numberOfGhostCommentsChanged=function(){var g=3;if(this.engagementPanel){var u,q,Q;g=Math.floor(((((u=this.hostElement)==null?void 0:(q=u.parentElement)==null?void 0:(Q=q.parentElement)==null?void 0:Q.scrollHeight)||108)-108)/108);g=this.isInitialLoad?Math.max(g,3):3}u=[].concat(_.na(this.hostElement.querySelectorAll("yt-ghost-comments")));u=_.N(u);for(q=u.next();!q.done;q=u.next())q=q.value,q.numberOfComments=g,q.isInitialLoad=this.isInitialLoad,q.engagementPanel=this.engagementPanel};
_.P.detached=function(){this.resetIntersectionObserver()};
_.z3.Object.defineProperties(wR.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
wR.prototype.numberOfGhostCommentsChanged=wR.prototype.numberOfGhostCommentsChanged;wR.prototype.continuationTriggerOffsetChanged=wR.prototype.continuationTriggerOffsetChanged;wR.prototype.showButtonChanged=wR.prototype.showButtonChanged;wR.prototype.onYtServiceRequestCompletedForButtonRenderer=wR.prototype.onYtServiceRequestCompletedForButtonRenderer;wR.prototype.onServiceRequestCompleted=wR.prototype.onServiceRequestCompleted;wR.prototype.onYtServiceRequestSentForButtonRenderer=wR.prototype.onYtServiceRequestSentForButtonRenderer;
wR.prototype.observeData=wR.prototype.observeData;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.GT.YtVisibilityBehavior),_.K("design:type",Object)],wR.prototype,"ytVisibilityBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],wR.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],wR.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wR.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],wR.prototype,"isOverridable",void 0);_.Y([_.a(),_.K("design:type",Object)],wR.prototype,"spinnerActive",void 0);_.Y([_.a(),_.K("design:type",Object)],wR.prototype,"showButton",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wR.prototype,"isCommentsSection",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wR.prototype,"engagementPanel",void 0);_.Y([_.a(),_.K("design:type",Object)],wR.prototype,"isShortsGrid",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.ROk}),_.K("design:type",Object)],wR.prototype,"isShortsPage",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.$5q}),_.K("design:type",Object)],wR.prototype,"isWatchPage",void 0);_.Y([_.a(),_.K("design:type",Number)],wR.prototype,"continuationTriggerOffset",void 0);
_.Y([_.a(),_.K("design:type",Object)],wR.prototype,"endOfList",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],wR.prototype,"isInitialLoad",void 0);_.Y([_.oE("ytd-button-renderer"),_.K("design:type",_.m4)],wR.prototype,"buttonRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],wR.prototype,"buttonOverrides",void 0);
_.Y([_.a(),_.C("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.K("design:type",Object),_.K("design:paramtypes",[])],wR.prototype,"showGhostCardComments",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wR.prototype,"observeData",null);
_.Y([_.n6("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wR.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],wR.prototype,"onServiceRequestCompleted",null);
_.Y([_.n6("yt-service-request-completed-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wR.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.Y([_.qm("showButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wR.prototype,"showButtonChanged",null);
_.Y([_.qm("continuationTriggerOffset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wR.prototype,"continuationTriggerOffsetChanged",null);_.Y([_.k_("isInitialLoad","engagementPanel"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wR.prototype,"numberOfGhostCommentsChanged",null);_.Y([_.fE({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],wR);
_.T(wR,"ytd-continuation-item-renderer",function(){if($di!==void 0)return $di;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return $di=g},{mode:1});var cxn;var cw=function(){var g=_.X.apply(this,arguments)||this;g.downloadProgress=0;g.transferState="TRANSFER_STATE_UNKNOWN";g.downloadState="DOWNLOAD_STATE_UNKNOWN";g.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";g.offlineVideoPolicyExpirationTimestamp=0;g.downloadedVideoPlaybackPosition=0;return g};
_.A(cw,_.X);cw.prototype.dataChanged=function(){var g;this.videoData=_.c((g=this.data)==null?void 0:g.renderer,aC$);this.transferStateChanged()};
cw.prototype.downloadProgressChanged=function(){if(this.entityInfo){var g=Object.assign({},this.videoData),u=nsM(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),q=u.publishedTimeText,Q=u.badges;g.shortViewCountText=u.shortViewCountText;g.publishedTimeText=q;g.badges=Q;this.set("videoData",g)}};
cw.prototype.transferStateChanged=function(){if(this.entityInfo){var g=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",u=_.qZ(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!uR(this.entityInfo.policyEntity),q=Object.assign({},this.videoData),Q=nsM(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),L=Q.publishedTimeText,E=Q.badges;q.shortViewCountText=
Q.shortViewCountText;q.publishedTimeText=L;q.badges=E;q.isDisabled=u;q.isWatched=this.downloadedVideoPlaybackPosition>0;q.navigationEndpoint=u?void 0:w2u(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var y;g&&((y=this.videoData)==null?0:y.videoId)&&!_.w("dl_resume_click_killswitch")&&(q.isDisabled=!1,q.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});q.thumbnailOverlays=BZf(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",q)}};
cw.prototype.transferStateChanged=cw.prototype.transferStateChanged;cw.prototype.downloadProgressChanged=cw.prototype.downloadProgressChanged;cw.prototype.dataChanged=cw.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],cw.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cw.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],cw.prototype,"videoData",void 0);_.Y([_.a({selector:GN,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],cw.prototype,"downloadProgress",void 0);_.Y([_.a(),_.K("design:type",Number)],cw.prototype,"relativeDateReference",void 0);_.Y([_.a({selector:_.tD,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],cw.prototype,"transferState",void 0);
_.Y([_.a({selector:hOZ,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],cw.prototype,"downloadState",void 0);_.Y([_.a({selector:Z1q,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],cw.prototype,"offlinePolicyAction",void 0);_.Y([_.a({selector:lhq,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],cw.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.Y([_.a({selector:$Z,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],cw.prototype,"downloadedVideoPlaybackPosition",void 0);_.Y([_.a({selector:i1T,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],cw.prototype,"entityInfo",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],cw.prototype,"isDownloading",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cw.prototype,"dataChanged",null);
_.Y([_.qm("downloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cw.prototype,"downloadProgressChanged",null);_.Y([_.qm("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cw.prototype,"transferStateChanged",null);
_.Y([_.fE({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],cw);
_.T(cw,"ytd-downloaded-video-grid-video-renderer",function(){if(cxn!==void 0)return cxn;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return cxn=g},{mode:2});var Hco;var Hw=function(){};
Hw.prototype.resolve=function(g,u){var q=this;return _.D(function(Q){return Q.yield(q.resolveCommand(g,u),0)})};var AxX,AV;AxX=CeK(function(g){return g.targetId},{shouldPersist:!1});
AV=AxX.updateData;_.ZG=AxX.useUpdatableData;var Zca,lNZ;Zca=CeK(function(g){return g.targetId});
lNZ=Zca.updateData;_.IN8=Zca.useUpdatableData;var ica=FQM.bind(null,AV),Cji=FQM.bind(null,lNZ);(function(g,u,q){var Q=_.c(q==null?void 0:q.updatedRenderer,_.v3b);return Q?g({targetId:u},function(){return Q}):!1}).bind(null,AV);var l5=function(){};
_.A(l5,Hw);l5.prototype.resolveCommand=function(g){var u;return _.D(function(q){u=_.c(g,Yuf);if(!u)return q.return();ica(u.targetId,u);_.Wx(q)})};var Id=function(){var g=_.gO.apply(this,arguments)||this;g.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 g};
_.A(Id,_.gO);_.P=Id.prototype;_.P.configureContinuationPathMap=function(){return{}};
_.P.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.P.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.P.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.P.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.P.handleAppendContinuationItemsAction=function(g){var u=_.c(g,_.gIi);if(this.data&&this.data.targetId&&u&&this.continuationPathMap&&u.targetId===this.data.targetId){var q=I7u(g),Q=q&&this.continuationPathMap[q];if(Q&&q)if(g=this.get(Q,this.data)){a:{for(q=0;q<g.length;q++){var L=g[q],E=void 0,y=!!_.c((E=_.c(L,hg8))==null?void 0:E.content,_.bF$);if(_.c(L,_.V5)||y)break a}q=g.length}Q="data."+Q;u.continuationItems?q===g.length-1?(this.pop(Q),this.push.apply(this,[Q].concat(_.na(u.continuationItems)))):
q===g.length?this.push.apply(this,[Q].concat(_.na(u.continuationItems))):this.splice.apply(this,[Q,q,1].concat(_.na(u.continuationItems))):this.splice(Q,q,1);(_.w("web_enable_voting_animation")||_.w("enable_music_web_cairo_voting_animation"))&&_.hJ(this.hostElement,"yt-append-continuation-items-action-finished");_.hJ(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Io(new _.Ji("append continuation items does not exist",q));else _.Io(new _.Ji("append continuation path does not exist",
q))}};
_.P.handleReloadContinuationItemsCommand=function(g){var u=_.c(g,Yuf);if(this.data&&u){if(!_.w("web_reload_continuation_items_command_resolver_killswitch")){var q=_.Bk().resolve(_.xv(l5));q&&q.resolveCommand(g)}if(this.data.targetId&&this.continuationPathMap&&u.targetId===this.data.targetId&&(!_.w("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||u.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var Q;q=(Q=u.slot)==null?void 0:Q.replace("RELOAD_CONTINUATION_SLOT_",
"");Q=(g=I7u(g)+"-"+(q==null?void 0:q.toLowerCase()))&&this.continuationPathMap[g];if(!Q||!g||!q)_.Io(new _.Ji("reload continuation path does not exist",g));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(u)){if(u.replaceWithFirstItem){var L;this.set("data."+Q,((L=u.continuationItems)==null?0:L.length)?u.continuationItems[0]:{})}else this.set("data."+Q,u.continuationItems?u.continuationItems:[]);bc8(this)}}}};
_.P.handleRestoreCachedContinuableDataCommand=function(g){g=_.c(g,JmZ);var u;(u=this.data)!=null&&u.targetId&&(g==null?void 0:g.targetId)===this.data.targetId&&bc8(this)};
var bc8=function(g){g.continuationIsReloading=!1;g.reloadUiContent=void 0;_.hJ(g.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})};
Id.prototype.handleShowReloadUiCommand=function(g){g=_.c(g,MeX);var u;((u=this.data)==null?0:u.targetId)&&(g==null?0:g.targetId)&&g.targetId===this.data.targetId&&(this.continuationIsReloading=!0,g.content&&(this.reloadUiContent=g.content))};
Id.prototype.observeData=Id.prototype.observeData;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Id.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Id.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Id.prototype,"data",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Id.prototype,"continuationIsReloading",void 0);
_.Y([_.a(),_.K("design:type",Object)],Id.prototype,"reloadUiContent",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Id.prototype,"observeData",null);_.Y([_.uU()],Id);_.i5=[_.M8.YtComponentBehavior,_.xK.YtActionHandlerBehavior,Id.prototype];_.Cm={};_.Cm.YtNextContinuationBehavior=[_.iw.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",_.zr(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.zr(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(g,u){g.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,u,{}):(g={locationRetrieved:function(q){this.makeNextContinuationRequest_(q,u,{})}.bind(this)},_.hJ(this.hostElement,"yt-retrieve-location",g))},
makeNextContinuationRequest_:function(g,u,q){_.Mf("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();g=u(g);var Q;this.canUseContextualNetworkManager_()&&(Q=this.getNetworkManager());Q||(Q=_.Bk().resolve(_.qR));u=_.R9.instance;if(_.FR("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&u){Q=_.dr([g.startsWith("/")?g.substr(1):g]);var L,E;q=_.wE(u,{},Q,q==null?void 0:(L=q.context)==null?void 0:(E=L.clickTracking)==null?void 0:E.clickTrackingParams).then(function(y){return{response:y}})}else q=
this.nextContinuation.usePost?Q.postData(g,q):Q.fetchData(g);
q.then(this.updateNextContinuationData_.bind(this,g));this.pendingContinuationRequest_=q;this.startListeningForNavigate_()},
updateNextContinuationData_:function(g,u){var q=this;_.Mf("ncl");this.pendingContinuationRequest_=void 0;if(u){var Q={};this.nextContinuation&&(Q=this.nextContinuation);if(u.response&&u.response.continuationContents&&u.response.continuationContents[Q.continuationType]){g=u.response.continuationContents[Q.continuationType];var L=Q.header||"data.header",E=g[Q.responseHeaderKey||"header"];E&&this.set(L,E);L=Q.contentsArray||"data.contents";E=this.getContents_(g,Q.responseContentsKey||"contents")||[];
this.pathExists_(L)?(E.unshift(L),this.push.apply(this,E)):this.set(L,E);E&&(mhb(_.gL(),u.response,this.hostElement,function(y){_.YJ(q.hostElement,"yt-store-grafted-ve-action",[y])}),_.hJ(this.hostElement,"yt-next-continuation-data-updated",{continuationData:u,
page:this,contentsArray:L}));this.set(Q.continuationsArray||"data.continuations",g[Q.responseContinuationsKey||"continuations"]||[])}else u.reload?_.Io(new _.Ji("Reloading from continuation is unsupported")):u.responseContext&&u.responseContext.errors||(delete u.xsrf_token,delete u.timing,delete u.endpoint,delete u.csn,u.responseContext&&delete u.responseContext.serviceTrackingParams,L={request:_.O_(g,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(u).sort()},u.response&&(L.responseContentKeys=
Object.keys(u.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(L.continuationType=this.nextContinuation.continuationType.substr(0,256)),u=new _.Ji("Malformed continuation",L),g.indexOf("/comment_service_ajax")==0?_.Io(u):_.Zf(u)),this.set(Q.continuationsArray||"data.continuations",[])}else _.lD(new _.Ji("Missing continuation response",g))},
getContents_:function(g,u){u=u.split(".");return _.pH.getValueByKeys(g,u)},
pathExists_:function(g){var u=this;g=g.toString().split(".");for(var q=0;q<g.length;q++)if(u=u[g[q]],u===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var dd8;var Frn;var b5=function(){var g=_.X.apply(this,arguments)||this;g.triggered_=!1;return g};
_.A(b5,_.X);_.P=b5.prototype;_.P.attached=function(){this.maybeTriggerAutoload()};
_.P.detached=function(){this.hasBeenTriggered_=!1};
_.P.onPrescanVisible=function(){this.onShow()};
_.P.onShow=function(){this.showButton||this.trigger()};
_.P.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.hJ(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.P.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.P.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.P.computeLabel_=function(g,u){return g===void 0?null:g.label||!u?g.label:this.showMoreText_};
_.P.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.P.getContinuationUrl=function(g){var u={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(u.itct=this.data.clickTrackingParams);return _.Sg(g,u)};
_.P.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
b5.prototype.showButtonChanged_=b5.prototype.showButtonChanged_;b5.prototype.observeData_=b5.prototype.observeData_;_.Y([_.I(_.GT.YtVisibilityBehavior),_.K("design:type",Object)],b5.prototype,"ytVisibilityBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],b5.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],b5.prototype,"showButton",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],b5.prototype,"showIcon",void 0);_.Y([_.a({computed:"computeLabel_(data, showButton)"}),_.K("design:type",Object)],b5.prototype,"label",void 0);_.Y([_.a({value:_.I7(_.Ug("SHOW_MORE",void 0,"Show More"))}),_.K("design:type",Object)],b5.prototype,"showMoreText_",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],b5.prototype,"spinnerActive_",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],b5.prototype,"hasBeenTriggered_",void 0);
_.Y([_.a({value:void 0}),_.K("design:type",String)],b5.prototype,"observeVisibleOption",void 0);_.Y([_.a({value:void 0}),_.K("design:type",String)],b5.prototype,"observeHiddenOption",void 0);_.Y([_.a({value:"observe_once"}),_.K("design:type",Object)],b5.prototype,"observePrescanOption",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b5.prototype,"observeData_",null);
_.Y([_.k_("showButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b5.prototype,"showButtonChanged_",null);_.Y([_.jP({is:"yt-next-continuation",disableElementRegistration:!0})],b5);
_.T(b5,"yt-next-continuation",function(){if(Frn===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;dd8===void 0&&(dd8=document.createElement("template"));var Q=dd8;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Frn=g}g=Frn;return g},{mode:2});var md0;var aN5;var dR=function(){return _.X.apply(this,arguments)||this};
_.A(dR,_.X);dR.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],dR.prototype,"data",void 0);_.Y([_.jP({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],dR);
_.T(dR,"yt-music-pass-small-feature-info-renderer",function(){if(aN5===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;md0===void 0&&(md0=document.createElement("template"));var Q=md0;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);aN5=g}g=aN5;return g},{mode:2});_.Ny("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Fs=function(){var g=_.X.apply(this,arguments)||this;g.isCollapsible=!1;g.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return g};
_.A(Fs,_.X);_.P=Fs.prototype;_.P.computeIsCollapsible=function(g){return!!(((g==null?0:g.showMoreText)||(g==null?0:g.visibleRowCount))&&(g==null?0:g.isCollapsible))};
_.P.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"}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.P.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.P.onIronResize=function(){var g=this;_.c$(this,"updateGridInitItems",function(){g.maybeUpdateInitialItemsDisplayed()})};
_.P.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var g=this.getVisibleWidth();g!==0&&(g=Math.floor(g/214)*(this.data.visibleRowCount||2),g!==this.initialCount&&(this.initialCount=g,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.P.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.P.computeExpandVisible=function(g,u,q,Q){return g&&u&&q&&!!Q&&!!Q.showMoreText};
_.P.computeShowMoreButton=function(g){return{text:g,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.P.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.P.initCollapsed=function(){var g=this;this.ytLazyListBehavior.canShowMore=!1;var u;(this.collapsed=!((u=this.data)==null||!u.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.xt(this,function(){_.Og(g.hostElement,"yt-refit-popups-action")})};
_.P.fillRestIfNotCollapsible=function(){var g=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!g||this.ytLazyListBehavior.fillRemainingListItems()};
_.P.computeViewAllHidden=function(g,u){return g||!u.viewAllEndpoint};
Fs.prototype.fillRestIfNotCollapsible=Fs.prototype.fillRestIfNotCollapsible;Fs.prototype.initCollapsed=Fs.prototype.initCollapsed;Fs.prototype.onIronResize=Fs.prototype.onIronResize;Fs.prototype.persistentGuideChanged=Fs.prototype.persistentGuideChanged;_.Y([_.I(_.LJ),_.K("design:type",Object)],Fs.prototype,"ironResizableBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Fs.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.a_.YtLazyListBehavior),_.K("design:type",Object)],Fs.prototype,"ytLazyListBehavior",void 0);_.Y([_.I(_.Cm.YtNextContinuationBehavior),_.K("design:type",Object)],Fs.prototype,"ytNextContinuationBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Fs.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.I(_.i5),_.K("design:type",Object)],Fs.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Fs.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Fs.prototype,"collapsed",void 0);_.Y([_.a(),_.K("design:type",Number)],Fs.prototype,"initialCount",void 0);_.Y([_.a({computed:"computeShowMoreButton(data.showMoreText)"}),_.K("design:type",Object)],Fs.prototype,"showMoreButton",void 0);
_.Y([_.a({computed:"computeIsCollapsible(data)"}),_.K("design:type",Object)],Fs.prototype,"isCollapsible",void 0);_.Y([_.oE("#items"),_.K("design:type",HTMLElement)],Fs.prototype,"items",void 0);_.Y([_.qm("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fs.prototype,"persistentGuideChanged",null);_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fs.prototype,"onIronResize",null);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fs.prototype,"initCollapsed",null);_.Y([_.qm("canShowMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fs.prototype,"fillRestIfNotCollapsible",null);_.Y([_.fE({is:"ytd-grid-renderer",disableElementRegistration:!0})],Fs);
_.T(Fs,"ytd-grid-renderer",function(){if(Hco!==void 0)return Hco;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Hco=g},{mode:2});var mF=function(){return _.X.apply(this,arguments)||this};
_.A(mF,_.X);
mF.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"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],mF.prototype,"data",void 0);_.Y([_.fE({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],mF);
_.T(mF,"ytd-carousel-ad-renderer",function(){if(Glo!==void 0)return Glo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Glo=g},{mode:1});var VMZ;var ad=function(){return _.X.apply(this,arguments)||this};
_.A(ad,_.X);_.P=ad.prototype;_.P.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"}}}};
_.P.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,ad.JSC$15832_CLICK_LOCATION_ID_MAP))};
_.P.onSitelinkTap=function(g){g.stopPropagation();var u,q,Q=g==null?void 0:(u=g.model)==null?void 0:(q=u.item)==null?void 0:q.onTap;Q&&this.ytSparklesClickLocationBehavior.handleClick(Q,g,!1)};
_.P.onTap=function(g){var u=this.data&&this.data.content&&this.data.content.navigationEndpoint;u&&this.ytSparklesClickLocationBehavior.handleClick(u,g,!1)};
_.P.sendImpression=function(){if(this.data&&this.data.content)for(var g=_.N(this.data.content.impressionEndpoints||[]),u=g.next();!u.done;u=g.next()){u=_.N(u.value.loggingUrls||[]);for(var q=u.next();!q.done;q=u.next())q=q.value,q.baseUrl&&X7(q.baseUrl,q.attributionSrcMode)}};
ad.prototype.onTap=ad.prototype.onTap;ad.prototype.dataChanged=ad.prototype.dataChanged;ad.JSC$15832_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"]]);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],ad.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ad.prototype,"data",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ad.prototype,"dataChanged",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ad.prototype,"onTap",null);_.Y([_.fE({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],ad);
_.T(ad,"ytd-promoted-sparkles-text-search-renderer",function(){if(VMZ!==void 0)return VMZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return VMZ=g},{mode:1});var XzW;var Vh=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-mute-ad-action":"handleMuteAd"};return g};
_.A(Vh,_.X);_.P=Vh.prototype;_.P.created=function(){this.activeView=new Tu(this.hostElement)};
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.w("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]]"}}}}}};
_.P.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.P.computeHasAdBadge=function(g){return!(g==null||!g.adBadge)};
_.P.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Vh.JSC$15841_DEFAULT_AD_BADGE_RENDERER),_.Y_(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&hF(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Vh.JSC$15841_CLICK_LOCATION_ID_MAP))};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var g;(((g=this.data)==null?void 0:g.impressionCommands)||[]).forEach(function(u){u=_.N(u.loggingUrls||[]);for(var q=u.next();!q.done;q=u.next())q=q.value,q.baseUrl&&X7(q.baseUrl,q.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.P.onTap=function(g){var u,q=(u=this.data)==null?void 0:u.navigationEndpoint,Q;(u=(Q=this.data)==null?void 0:Q.thumbnailNavigationEndpoint)&&_.Ce(_.C6(g),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(u,g,!1):q&&this.ytSparklesClickLocationBehavior.handleClick(q,g,!1)};
_.P.handleMuteAd=function(){this.collapsed=!0};
_.P.attached=function(){var g=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ye(g.activeView)})};
_.P.detached=function(){_.w("stop_av_measurement_on_detach")&&Ye(this.activeView)};
_.z3.Object.defineProperties(Vh.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var g;return!(((g=this.data)==null?void 0:g.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var g;return!(((g=this.data)==null?void 0:g.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.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}}});
Vh.prototype.dataChanged=Vh.prototype.dataChanged;
Vh.JSC$15841_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"]]);
Vh.JSC$15841_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Ug("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Vh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Vh.prototype,"actionHandlerBehavior",void 0);
_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Vh.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Vh.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Vh.prototype,"collapsed",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],Vh.prototype,"useBiggerThumbs",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.o4("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],Vh.prototype,"biggerThumbsStyle",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.K("design:type",Boolean)],Vh.prototype,"fixAlignmentSmallScreens",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs_square")}}),
_.K("design:type",Boolean)],Vh.prototype,"useBiggerThumbsSquare",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.mediaHoverOverlay"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vh.prototype,"hideHoverOverlay",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.promotedSparklesWebStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vh.prototype,"webSearchLayout",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vh.prototype,"webSearchLayoutLandscape",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vh.prototype,"webSearchLayoutSquare",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.promotedSparklesWebStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vh.prototype,"sparklesCtaNoBackground",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.actionButton"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vh.prototype,"hideActionButton",null);_.Y([_.a({computed:"computeButtonOverride(uiUpdate)"}),_.K("design:type",Object)],Vh.prototype,"buttonOverride",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.K("design:type",Boolean)],Vh.prototype,"hasNewAdBadge",void 0);_.Y([_.C("data.promotedSparklesWebStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vh.prototype,"useRoundedBadge",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vh.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Vh);
_.T(Vh,"ytd-promoted-sparkles-web-renderer",function(){if(XzW!==void 0)return XzW;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return XzW=g},{mode:1});var rxi;var Xs=function(){var g=_.X.apply(this,arguments)||this;g.isInlinePreviewTriggered=!1;g.enableMonoStyle=_.w("enable_default_mono_cta_migration_web_client");return g};
_.A(Xs,_.X);_.P=Xs.prototype;_.P.created=function(){this.activeView=new Tu(this.hostElement)};
_.P.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]]"}}}}}};
_.P.computeShowCta=function(g){return!(g==null||!g.ctaRenderer)};
_.P.onCtaClick=function(){var g,u,q,Q=(g=this.data)==null?void 0:(u=g.ctaRenderer)==null?void 0:(q=u.buttonRenderer)==null?void 0:q.command;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.P.onWatchButtonClick=function(){var g,u,q,Q=(g=this.data)==null?void 0:(u=g.watchButtonRenderer)==null?void 0:(q=u.buttonRenderer)==null?void 0:q.command;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.P.onTap=function(){};
_.P.dataChanged=function(){if(this.data){var g;_.w("enable_inline_muted_playback_on_web_search")&&((g=this.data)==null?0:g.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Xs.JSC$15845_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&hF(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Xs.JSC$15845_DEFAULT_CLICK_LOCATION_BEHAVIOR,Xs.JSC$15845_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(g=this.thumbnail.getElementsByTagName("a"),g.length>0&&(g=g.namedItem("thumbnail"))&&g.removeAttribute("href"));var u;if(((u=this.data)==null?0:u.forceImpAutoplay)&&_.w("enable_force_imp_autoplay_on_desktop_search")){var q;(q=this.JSC$15846_inlinePreviewHoverListener)==null||IAf(q)}}};
_.P.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var g=_.N(this.data.impressionUrls),u=g.next();!u.done;u=g.next())u=u.value,jTJ(u,Myh(u));this.data.impressionsFired=!0}};
_.P.maybeComputeHref=function(){return null};
_.P.computeIsShortDR=function(g){return!(g==null||!g.watchButtonRenderer)&&!(g==null||!g.ctaRenderer)&&!!this.enableShortDR};
_.P.computeIsNewUiOrShortDr=function(g){return!!this.enableUiUpdate||this.computeIsShortDR(g)};
_.P.computeIsNewUiAndNotShortDr=function(g){return!!this.enableUiUpdate&&!this.computeIsShortDR(g)};
_.P.computeHideAvatar=function(g){return!((g==null?0:g.channelThumbnail)&&this.computeIsNewUiOrShortDr(g))};
_.P.onClick=function(g){var u,q=(u=this.data)==null?void 0:u.navigationEndpoint;if(this.enableShortDR&&q&&(_.c(q,_.l1)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(q,g,!!_.c(q,_.l1)),g.stopPropagation();else if(q&&_.c(q,_.l1))this.ytSparklesClickLocationBehavior.handleClick(q,g,!0),g.stopPropagation();else if(q){var Q,L;((Q=this.data)==null?0:Q.navigationEndpoint)&&((L=this.data)==null?0:L.adPlaybackContextParams)&&(u=this.data.navigationEndpoint,g=this.data.adPlaybackContextParams,
u.commandMetadata&&_.c(u.commandMetadata,_.S_)&&_.c(u.commandMetadata,_.S_).url&&(u=_.Yv(_.c(u.commandMetadata,_.S_).url).adurl)&&_.eNZ(u)&&_.CV(_.KO(u),{encoded_ad_playback_context:g}));this.ytComponentBehavior.resolveCommand(q)}};
_.P.computeButtonOverride=function(g){if(this.computeIsNewUiOrShortDr(g))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.P.onThumbnailContainerClick=function(g){this.onClick(g)};
_.P.computeThumbnailWidth=function(g,u){return g?u==="MASSIVE"?600:u==="BIG"?500:u==="MEDIUM"?450:420:360};
_.P.attached=function(){var g=this,u;_.w("enable_inline_muted_playback_on_web_search")&&((u=this.data)==null?0:u.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ye(g.activeView)})};
_.P.detached=function(){var g;_.w("enable_inline_muted_playback_on_web_search")&&((g=this.data)==null?0:g.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.w("stop_av_measurement_on_detach")&&Ye(this.activeView)};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15846_inlinePreviewHoverListener=M0({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:UCo})};
_.P.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$15846_inlinePreviewHoverListener)==null||a1(g)};
Xs.prototype.dataChanged=Xs.prototype.dataChanged;Xs.prototype.onTap=Xs.prototype.onTap;Xs.JSC$15845_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Ug("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Xs.JSC$15845_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Xs.JSC$15845_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"}];_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Xs.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Xs.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Xs.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.oE("#main-container"),_.K("design:type",HTMLElement)],Xs.prototype,"mainContainer",void 0);
_.Y([_.a(),_.K("design:type",Object)],Xs.prototype,"isInlinePreviewTriggered",void 0);_.Y([_.a(),_.K("design:type",Object)],Xs.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],Xs.prototype,"useBiggerThumbs",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_video_display_compact_button_group_for_desktop_search")}}),
_.K("design:type",Boolean)],Xs.prototype,"enableShortDR",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_vac_ui_update_for_desktop_search")}}),
_.K("design:type",Boolean)],Xs.prototype,"enableUiUpdate",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.o4("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],Xs.prototype,"biggerThumbsStyle",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.K("design:type",Boolean)],Xs.prototype,"showCta",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.K("design:type",Boolean)],Xs.prototype,"isShortDr",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.K("design:type",Boolean)],Xs.prototype,"isShortDrOrNewUi",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.K("design:type",Boolean)],Xs.prototype,"isNewUiAndNotShortDr",void 0);_.Y([_.a({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],Xs.prototype,"buttonOverride",void 0);_.Y([_.a({computed:"computeSecondaryButtonOverride(data)"}),_.K("design:type",Object)],Xs.prototype,"secondaryButtonOverride",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xs.prototype,"enableMonoStyle",void 0);
_.Y([_.oE("ytd-thumbnail"),_.K("design:type",HTMLElement)],Xs.prototype,"thumbnail",void 0);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xs.prototype,"onTap",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xs.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Xs);
_.T(Xs,"ytd-promoted-video-renderer",function(){if(rxi!==void 0)return rxi;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return rxi=g},{mode:1});var WrW;var rR=function(){var g=_.X.apply(this,arguments)||this;g.useRoundedBadge=!0;g.sitelinkIds=[];return g};
_.A(rR,_.X);_.P=rR.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.w("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]]"}}}}}};
_.P.dataChanged=function(){var g;(g=this.data)!=null&&g.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,rR.JSC$15851_CLICK_LOCATION_ID_MAP)};
_.P.onTap=function(g){var u,q=(u=this.data)==null?void 0:u.navigationCommand;q&&!_.Ce(_.C6(g),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(q,g,!1)};
_.P.onSitelinkTap=function(g){var u,q,Q=g==null?void 0:(u=g.model)==null?void 0:(q=u.item)==null?void 0:q.onTap;Q&&this.ytSparklesClickLocationBehavior.handleClick(Q,g,!1)};
_.P.configureSitelinkClickTargets=function(){var g=this,u,q,Q=(u=this.data)==null?void 0:(q=u.clickLocationTargets)==null?void 0:q.find(function(L){return L.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
Q&&_.Tr(this.hostElement).querySelectorAll(".sitelink").forEach(function(L){_.Y_(L,"yt-simple-endpoint",!0);g.sitelinkIds.push(L.id);var E,y;(E=g.ytSparklesClickLocationBehavior)==null||(y=E.clickTargetMap)==null||y.set(L.id,Q)})};
_.P.sendImpression=function(){var g,u,q=((g=this.data)==null?void 0:(u=g.impressionCommand)==null?void 0:u.loggingUrls)||[];g=_.N(q);for(u=g.next();!u.done;u=g.next())u=u.value,u.baseUrl&&X7(u.baseUrl,u.attributionSrcMode)};
_.P.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.z3.Object.defineProperties(rR.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
rR.prototype.onTap=rR.prototype.onTap;rR.prototype.dataChanged=rR.prototype.dataChanged;rR.JSC$15851_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"]]);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],rR.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],rR.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rR.prototype,"showFavicon",null);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],rR.prototype,"useBiggerThumbs",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.o4("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],rR.prototype,"biggerThumbsStyle",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.K("design:type",Boolean)],rR.prototype,"enableThumbnailScalingFix",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rR.prototype,"dataChanged",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],rR.prototype,"onTap",null);_.Y([_.fE({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],rR);
_.T(rR,"ytd-text-image-no-button-layout-renderer",function(){if(WrW!==void 0)return WrW;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return WrW=g},{mode:2});var Tp2;var Ww=function(){var g=_.X.apply(this,arguments)||this;g.isInlinePlaybackState=!1;g.uiUpdate=_.w("web_modern_buttons");g.hideCta=_.w("hide_cta_for_home_web_video_ads");g.noBottomMargin=!1;g.animateInTimeStamp=_.S8("hide_cta_for_home_web_video_ads_animate_in_time");g.animateInCta=!1;g.isHovered=!1;g.enableMonoStyle=_.w("enable_default_mono_cta_migration_web_client");g.player=null;g.JSC$15858_playerEvents=new Map;g.JSC$15858_preventProgressSaveTimer=null;g.delayedCtaJobId=null;return g};
_.A(Ww,_.X);_.P=Ww.prototype;_.P.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]]"}}}}}};
_.P.attached=function(){this.JSC$15858_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15858_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.w("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.P.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15858_playerEvents)};
_.P.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Ww.JSC$15857_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ww.JSC$15857_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.P.hoverChanged=function(){var g=this;this.delayedCtaJobId&&(_.Hv.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.w("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Ln(_.Hv,function(){g.buttonContainer.classList.add("show-delayed-buttons")},_.S8("delayed_cta_on_web_delay_milliseconds")))};
_.P.setPlayer=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return(u=_.Og(g.hostElement,"yt-get-inline-preview-player-action"))&&u[0]?q.yield(u[0].getPlayerPromise(),3):q.jumpTo(0);g.player=q.yieldResult;g.ytPlayerListenerBehavior.listenToPlayerEvents(g.player,g.JSC$15858_playerEvents);_.Wx(q)})};
_.P.onPlaybackStart=function(){var g=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15858_preventProgressSaveTimer=_.Xh(_.Hv,function(){g.JSC$15858_preventProgressSaveTimer=null},1E4))};
_.P.onVideoProgress=function(g){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&g>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.P.resetPreventProgressSaveTimer=function(){_.Hv.cancelJob(this.JSC$15858_preventProgressSaveTimer);this.JSC$15858_preventProgressSaveTimer=null};
_.P.getSimpleString=function(g){return _.iR(g)};
_.P.onClick=function(g){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var u,q=(u=this.data)==null?void 0:u.navigationEndpoint,Q;u=(Q=this.data)==null?void 0:Q.channelEndpoint;var L,E;((E=_.c((L=this.data)==null?void 0:L.adCtaButton,_.eW))==null?0:E.command)&&_.Ce(_.C6(g),this.hostElement,["call-to-action"])||(u&&_.Ce(_.C6(g),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(u,g,!1):!_.Ce(_.C6(g),this.hostElement,
["secondary-button"])&&q&&(_.w("enable_short_dr_for_desktop_launchable")?(Q=!!_.c(q,_.l1),this.isInlinePlaybackState&&Q&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(q,g,Q)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(q,g,!0))))}};
_.P.updateWatchEndpointStartTime=function(){var g,u;this.player&&((g=this.data)==null?0:g.inlinePlaybackEndpoint)&&((u=this.data)==null?0:u.navigationEndpoint)&&!this.JSC$15858_preventProgressSaveTimer&&(g=Math.floor(this.player.getCurrentTime()),_.c(this.data.navigationEndpoint,_.l1).startTimeSeconds=g,_.c(this.data.inlinePlaybackEndpoint,_.l1).startTimeSeconds=g)};
_.P.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.z3.Object.defineProperties(Ww.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.w("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var g,u;return!((g=this.data)==null||!g.watchButton)&&!((u=this.data)==null||!u.adCtaButton)}}});
Ww.prototype.hoverChanged=Ww.prototype.hoverChanged;Ww.prototype.dataChanged=Ww.prototype.dataChanged;
Ww.JSC$15857_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"]]);
Ww.JSC$15857_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"}];
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ww.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Ww.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Ww.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],Ww.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ww.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ww.prototype,"isInlinePlaybackState",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Ww.prototype,"miniMode",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ww.prototype,"uiUpdate",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ww.prototype,"hideCta",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ww.prototype,"noBottomMargin",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ww.prototype,"animateInCta",void 0);_.Y([_.a({computed:"computeButtonOverride(uiUpdate)"}),_.K("design:type",Object)],Ww.prototype,"buttonOverride",void 0);
_.Y([_.a({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.K("design:type",Object)],Ww.prototype,"secondaryButtonOverride",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ww.prototype,"isHovered",void 0);_.Y([_.oE("#button-container"),_.K("design:type",HTMLElement)],Ww.prototype,"buttonContainer",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Ww.prototype,"typographyBump",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("typographyBump"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ww.prototype,"typographyBumpV2",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ww.prototype,"enableMonoStyle",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ww.prototype,"dataChanged",null);
_.Y([_.k_("isHovered"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ww.prototype,"hoverChanged",null);_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ww.prototype,"isButtonGroup",null);_.Y([_.fE({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Ww);
_.T(Ww,"ytd-ad-inline-playback-meta-block",function(){if(Tp2!==void 0)return Tp2;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Tp2=g},{mode:2});var hu0;var TV=function(){var g=_.X.apply(this,arguments)||this;g.noBottomMargin=!1;g.isInlinePreviewTriggered=!1;g.JSC$15863_activeViewMeasurementDataResolver=_.A9();return g};
_.A(TV,_.X);_.P=TV.prototype;_.P.created=function(){this.activeView=new Tu(this.hostElement)};
_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var g=this;this.updateInlinePreviewHoverListeners();this.JSC$15863_activeViewMeasurementDataResolver.promise.then(function(u){hF(g.activeView,u)});
_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ye(g.activeView)})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners();_.w("stop_av_measurement_on_detach")&&Ye(this.activeView)};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15863_inlinePreviewHoverListener=M0({mediaRenderer:this,lockupElement:this.JSC$15863_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:UCo})};
_.P.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$15863_inlinePreviewHoverListener)==null||a1(g)};
_.P.onDataChanged=function(){var g;((g=this.data)==null?0:g.activeView)&&this.JSC$15863_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",TV.JSC$15862_DEFAULT_CLICK_LOCATION_BEHAVIOR,TV.JSC$15862_CLICK_LOCATION_ID_MAP);this.thumbnail&&(g=this.thumbnail.getElementsByTagName("a"),g.length>0&&(g=g.namedItem("thumbnail"))&&g.removeAttribute("href"));var u;if((u=this.data)==
null?0:u.forceImpAutoplay){var q;(q=this.JSC$15863_inlinePreviewHoverListener)==null||IAf(q)}};
_.P.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.P.onThumbnailContainerClick=function(g){if(this.data&&this.data.navigationEndpoint){var u,q=(u=this.data)==null?void 0:u.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(q,g,!!_.c(q,_.l1));g.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var g=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var u,q,Q=(q=_.c((u=this.data)==null?void 0:u.onImpression,_.zg))==null?void 0:q.commands;Q&&(Q.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;g.ytComponentBehavior.resolveCommand(L)}),this.data.impressionsFired=!0)}};
_.z3.Object.defineProperties(TV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$15863_inlinePreviewHoverListener)==null?0:Gb(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
TV.prototype.onTypographyBumpChanged=TV.prototype.onTypographyBumpChanged;TV.prototype.onDataChanged=TV.prototype.onDataChanged;TV.JSC$15862_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);TV.JSC$15862_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"}];
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],TV.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],TV.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],TV.prototype,"ytdLockupBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],TV.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],TV.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],TV.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],TV.prototype,"noBottomMargin",void 0);_.Y([_.a(),_.K("design:type",Object)],TV.prototype,"isInlinePreviewTriggered",void 0);
_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],TV.prototype,"miniMode",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],TV.prototype,"typographyBump",void 0);_.Y([_.oE("ytd-thumbnail"),_.K("design:type",HTMLElement)],TV.prototype,"thumbnail",void 0);_.Y([_.oE("#dismissible"),_.K("design:type",HTMLElement)],TV.prototype,"JSC$15863_dismissibleMedia",void 0);
_.Y([_.oE("ytd-ad-inline-playback-meta-block"),_.K("design:type",HTMLElement)],TV.prototype,"adInlinePlaybackMetaBlock",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TV.prototype,"onDataChanged",null);_.Y([_.qm("typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TV.prototype,"onTypographyBumpChanged",null);
_.Y([_.C("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],TV.prototype,"isHovered",null);_.Y([_.fE({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],TV);
_.T(TV,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(hu0!==void 0)return hu0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return hu0=g},{mode:1});var Y28;var hV=function(){var g=_.X.apply(this,arguments)||this;g.isInlinePreviewTriggered=!1;g.JSC$15866_activeViewMeasurementDataResolver=_.A9();return g};
_.A(hV,_.X);_.P=hV.prototype;_.P.created=function(){this.activeView=new Tu(this.hostElement)};
_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var g=this;this.updateInlinePreviewHoverListeners();this.JSC$15866_activeViewMeasurementDataResolver.promise.then(function(u){hF(g.activeView,u)})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15866_inlinePreviewHoverListener=M0({mediaRenderer:this,lockupElement:this.JSC$15866_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:UCo})};
_.P.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$15866_inlinePreviewHoverListener)==null||a1(g)};
_.P.onDataChanged=function(){var g;((g=this.data)==null?0:g.activeView)&&this.JSC$15866_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",hV.JSC$15865_DEFAULT_CLICK_LOCATION_BEHAVIOR,hV.JSC$15865_CLICK_LOCATION_ID_MAP);this.thumbnail&&(g=this.thumbnail.getElementsByTagName("a"),g.length>0&&(g=g.namedItem("thumbnail"))&&g.removeAttribute("href"))};
_.P.onThumbnailContainerClick=function(g){if(this.data&&this.data.navigationEndpoint){var u,q=(u=this.data)==null?void 0:u.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(q,g,!0);g.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var g=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var u,q,Q=(q=_.c((u=this.data)==null?void 0:u.onImpression,_.zg))==null?void 0:q.commands;Q&&(Q.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;_.Bk().resolve(_.Gy).resolveCommand(L,{form:{element:g.hostElement}})}),this.data.impressionsFired=!0)}};
_.z3.Object.defineProperties(hV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$15866_inlinePreviewHoverListener)==null?0:Gb(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
hV.prototype.onDataChanged=hV.prototype.onDataChanged;hV.JSC$15865_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);hV.JSC$15865_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"}];_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],hV.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],hV.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],hV.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],hV.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],hV.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],hV.prototype,"isInlinePreviewTriggered",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],hV.prototype,"miniMode",void 0);_.Y([_.oE("ytd-thumbnail"),_.K("design:type",HTMLElement)],hV.prototype,"thumbnail",void 0);_.Y([_.oE("#dismissible"),_.K("design:type",HTMLElement)],hV.prototype,"JSC$15866_dismissibleMedia",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hV.prototype,"onDataChanged",null);_.Y([_.C("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hV.prototype,"isHovered",null);_.Y([_.fE({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],hV);
_.T(hV,"ytd-video-display-full-buttoned-renderer",function(){if(Y28!==void 0)return Y28;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Y28=g},{mode:1});var ml=function(g,u,q,Q){Q=Q===void 0?!1:Q;_.gq.call(this,g);this.adsClientErrorMessage=q;this.aggressivelySample=Q;this.args=[];u&&this.args.push(u)};
_.A(ml,_.gq);var dy=function(g,u,q,Q){Q=Q===void 0?!1:Q;_.gq.call(this,g);this.adsClientErrorMessage=q;this.aggressivelySample=Q;this.args=[];u&&this.args.push(u)};
_.A(dy,_.gq);var Oc2=function(g){_.Lh.call(this);var u=this;this.initializationFunction=g;this.instance=null;this.addOnDisposeCallback(function(){_.Fo(u.instance);u.instance=null})};
_.A(Oc2,_.Lh);Oc2.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.HY("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Ylb=function(){var g=new Map;[].forEach(function(u){g.set(u.JSC$31545_getType(),u)});
this.getters=g};new Promise(function(){});var XAF=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"]]),aZh=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"}]]),Kr2=function(g){this.experimentApiProvider=g;g=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=g<.1};var Yr=function(g,u,q,Q){_.Lh.call(this);this.adsControlFlowEventListeners=u;this.adEventLogger=q;this.experimentApiProvider=Q;this.adsControlFlowManagerHelper=g(this,this,this,this,this);_.z$(this,this.adsControlFlowManagerHelper);g=_.N(u);for(u=g.next();!u.done;u=g.next())_.z$(this,u.value)};
_.A(Yr,_.Lh);var xdW=function(g,u,q,Q){Oy(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",u,q,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q);g=_.N(g.adsControlFlowEventListeners);for(Q=g.next();!Q.done;Q=g.next())xdW(Q.value,u,q)};
_.P=Yr.prototype;_.P.onOpportunityProcessedExternallyManaged=function(g,u,q,Q){Oy(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",g,q,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q)};
_.P.onSlotReceivedExternallyManaged=function(g,u){Km(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",g,u)};
_.P.onSlotEntered=function(g){if(xr(this.adsControlFlowManagerHelper,g)!=null){Km(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",g);this.adsControlFlowManagerHelper.onSlotEntered(g);for(var u=_.N(this.adsControlFlowEventListeners),q=u.next();!q.done;q=u.next())q.value.onSlotEntered(g);if(xr(this.adsControlFlowManagerHelper,g)!=null&&xr(this.adsControlFlowManagerHelper,g).isOccupyingSlotType()&&Bw(this.adsControlFlowManagerHelper,g)&&!Bpo(this.adsControlFlowManagerHelper,g)){var Q;zV(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",g,(Q=Bw(this.adsControlFlowManagerHelper,g))!=null?Q:void 0);g=xr(this.adsControlFlowManagerHelper,g);g.slotLifecycleStage!=="entered"&&nm(g.slot,g.slotLifecycleStage,"enterLayoutForSlot");g.slotLifecycleStage="rendering";g.registeredLayoutRenderingAdapter.startRendering(g.layout)}}};
_.P.onSlotExited=function(g){if(xr(this.adsControlFlowManagerHelper,g)!=null){Km(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",g);this.adsControlFlowManagerHelper.onSlotExited(g);for(var u=_.N(this.adsControlFlowEventListeners),q=u.next();!q.done;q=u.next())q.value.onSlotExited(g);xr(this.adsControlFlowManagerHelper,g)!=null&&xr(this.adsControlFlowManagerHelper,g).markedForUnscheduleAfterOutboundAdapterRequests&&zuZ(this,g)}};
_.P.onLayoutReceivedExternallyManaged=function(g,u,q){g.managerLayer!=="core"&&zV(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",g,u,q)};
var njH=function(g,u,q){if(xr(g.adsControlFlowManagerHelper,u)!=null){zV(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",u,q);g=_.N(g.adsControlFlowEventListeners);for(var Q=g.next();!Q.done;Q=g.next())njH(Q.value,u,q)}};
Yr.prototype.onLayoutExited=function(g,u,q){if(xr(this.adsControlFlowManagerHelper,g)!=null){zV(this.adEventLogger,VSf(q),g,u);this.adsControlFlowManagerHelper.onLayoutExited(g,u);for(var Q=_.N(this.adsControlFlowEventListeners),L=Q.next();!L.done;L=Q.next())L.value.onLayoutExited(g,u,q);(q=Bw(this.adsControlFlowManagerHelper,g))&&u.layoutId===q.layoutId&&kl2(this,g)}};
Yr.prototype.disposeInternal=function(){var g=S22(this.adsControlFlowManagerHelper);g=_.N(g);for(var u=g.next();!u.done;u=g.next())zuZ(this,u.value);_.Lh.prototype.disposeInternal.call(this)};
var zuZ=function(g,u){if(xr(g.adsControlFlowManagerHelper,u)!=null)if(xr(g.adsControlFlowManagerHelper,u).JSC$31575_isSlotExitRequested()||xr(g.adsControlFlowManagerHelper,u).JSC$31575_isLayoutExitRequested())xr(g.adsControlFlowManagerHelper,u).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(xr(g.adsControlFlowManagerHelper,u).isOccupyingSlotType())xr(g.adsControlFlowManagerHelper,u).markedForUnscheduleAfterOutboundAdapterRequests=!0,kl2(g,u);else if(xr(g.adsControlFlowManagerHelper,u).JSC$31575_isSlotFillRequested())xr(g.adsControlFlowManagerHelper,
u).markedForUnscheduleAfterOutboundAdapterRequests=!0,xr(g.adsControlFlowManagerHelper,u)!=null&&(Km(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",u),u=xr(g.adsControlFlowManagerHelper,u),u.fulfillmentLifecycleStage="fill_cancel_requested",u.registeredFulfillmentAdapter.cancelSlotFilling());else{var q=Bw(g.adsControlFlowManagerHelper,u),Q;g.experimentApiProvider.get();(Q=_.w("h5_enable_layout_unscheduling_events"))&&(q?oj0(g,u,q):_.HY(Error("Nh"),u,q,void 0,!1));Km(g.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",u);var L=xr(g.adsControlFlowManagerHelper,u),E=u.slotEntryTrigger,y=L.registeredSlotEntryTriggerAdapters.get(E.triggerId);y&&(y.unregisterTrigger(E),L.registeredSlotEntryTriggerAdapters.delete(E.triggerId));E=_.N(u.slotFulfillmentTriggers);for(y=E.next();!y.done;y=E.next()){y=y.value;var v=L.registeredFulfillmentTriggerAdapters.get(y.triggerId);v&&(v.unregisterTrigger(y),L.registeredFulfillmentTriggerAdapters.delete(y.triggerId))}E=_.N(u.slotExpirationTriggers);
for(y=E.next();!y.done;y=E.next())if(y=y.value,v=L.registeredExpirationTriggerAdapters.get(y.triggerId))v.unregisterTrigger(y),L.registeredExpirationTriggerAdapters.delete(y.triggerId);L.hasLayout()&&(E=L.layout,kr(L,E.layoutExitNormalTriggers),kr(L,E.layoutExitSkipTriggers),kr(L,E.layoutExitMuteTriggers),kr(L,E.layoutExitUserInputSubmittedTriggers),kr(L,E.layoutExitUserCancelledTriggers));L.registeredFulfillmentAdapter=void 0;L.registeredSlotAdapter!=null&&(L.registeredSlotAdapter.release(),L.registeredSlotAdapter=
void 0);L.registeredLayoutRenderingAdapter!=null&&(L.registeredLayoutRenderingAdapter.release(),L.registeredLayoutRenderingAdapter=void 0);L=g.adsControlFlowManagerHelper;xr(L,u)&&(L=UdR(L,u.slotType+"_"+u.slotPhysicalPosition))&&L.delete(u.slotId);Km(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",u);g=_.N(g.adsControlFlowEventListeners);for(L=g.next();!L.done;L=g.next())L=L.value,L.onSlotUnscheduled(u),q&&!Q&&oj0(L,u,q)}},oj0=function(g,u,q){zV(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
u,q);
zV(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",u,q);g=_.N(g.adsControlFlowEventListeners);for(var Q=g.next();!Q.done;Q=g.next())Q=Q.value,q&&oj0(Q,u,q)},kl2=function(g,u){if(xr(g.adsControlFlowManagerHelper,u)!=null&&xr(g.adsControlFlowManagerHelper,u).isOccupyingSlotType()){var q=Bw(g.adsControlFlowManagerHelper,u);
if(q&&Bpo(g.adsControlFlowManagerHelper,u)){if(xr(g.adsControlFlowManagerHelper,u)!=null){var Q=g.adEventLogger,L;var E=((L=aZh.get("abandoned"))==null?void 0:L.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";zV(Q,E,u,q);g=xr(g.adsControlFlowManagerHelper,u);g.slotLifecycleStage!=="rendering"&&nm(g.slot,g.slotLifecycleStage,"exitLayout");g.slotLifecycleStage="rendering_stop_requested";g.registeredLayoutRenderingAdapter.stopRendering(q,"abandoned")}}else{Km(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
u);try{Q=xr(g.adsControlFlowManagerHelper,u);if(!Q)throw new dy("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");Q.slotLifecycleStage!=="enter_requested"&&Q.slotLifecycleStage!=="entered"&&Q.slotLifecycleStage!=="rendering"&&nm(Q.slot,Q.slotLifecycleStage,"exitSlot");Q.slotLifecycleStage="exit_requested";if(Q.registeredSlotAdapter===void 0)throw Q.slotLifecycleStage="scheduled",new dy("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
Q.registeredSlotAdapter.exit()}catch(y){y instanceof dy&&y.adsClientErrorMessage?(gXX(g.adEventLogger,y.adsClientErrorMessage,u),_.HY(y,u,void 0,void 0,y.aggressivelySample)):(gXX(g.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",u),_.HY(y,u))}}}};var Sm=function(g,u,q,Q,L,E){_.Lh.call(this);this.registry=g;this.experimentApiProvider=E;this.slotMap=new Map};
_.A(Sm,_.Lh);var UdR=function(g,u){return(g=g.slotMap.get(u))?g:new Map},xr=function(g,u){return UdR(g,u.slotType+"_"+u.slotPhysicalPosition).get(u.slotId)},S22=function(g){var u=[];
g.slotMap.forEach(function(q){q=_.N(q.values());for(var Q=q.next();!Q.done;Q=q.next())u.push(Q.value.slot)});
return u};
Sm.prototype.onSlotEntered=function(g){g=xr(this,g);g.slotLifecycleStage!=="enter_requested"&&nm(g.slot,g.slotLifecycleStage,"onSlotEntered");g.slotLifecycleStage="entered"};
var Bpo=function(g,u){g=xr(g,u);return g.hasLayout()&&g.isRendering()},Bw=function(g,u){(g=xr(g,u))?g.hasLayout()&&!g.layout&&_.HY("Unexpected empty layout",u):_.HY("Unexpected undefined slotState",u);
return(g==null?void 0:g.layout)||null};
Sm.prototype.onSlotExited=function(g){g=xr(this,g);g.slotLifecycleStage!=="exit_requested"&&nm(g.slot,g.slotLifecycleStage,"onSlotExited");g.slotLifecycleStage="scheduled"};
Sm.prototype.onLayoutExited=function(g,u){g=xr(this,g);g.isPrimaryLayout(u)&&(g.slotLifecycleStage!=="rendering_stop_requested"&&nm(g.slot,g.slotLifecycleStage,"onLayoutExited"),g.slotLifecycleStage="entered")};
var kr=function(g,u){u=_.N(u);for(var q=u.next();!q.done;q=u.next()){q=q.value;var Q=g.registeredLayoutExitTriggerAdapters.get(q.triggerId);Q&&(Q.unregisterTrigger(q),g.registeredLayoutExitTriggerAdapters.delete(q.triggerId))}},nm=function(g,u,q){_.HY("Slot stage was "+u+" when calling method "+q,g)};var qN5=function(g){_.Lh.call(this);this.deps=g;this.JSC$15919_adsControlFlowManager=ucR(this)};
_.A(qN5,_.Lh);var ucR=function(g){var u=new Yr(function(q,Q,L,E){return new Sm(g.deps.registry,q,Q,L,E,g.deps.experimentApiProvider)},new Set(hbq(g.deps.registry).concat(g.deps.listeners)),g.deps.adEventLogger,g.deps.experimentApiProvider);
_.z$(g,u);return u};var ctS=function(){};var QZW=function(g,u){_.Lh.call(this);this.experimentApiProvider=g;this.eventLoggingSettingsProvider=u;this.eventCount=0;this.premiumAdSeenEventLogger=HWZ()()};
_.A(QZW,_.Lh);QZW.prototype.logEvent=function(g){Oy(this,g)};
var Km=function(g,u,q,Q){Oy(g,u,void 0,void 0,void 0,q,void 0,void 0,void 0,q.adSlotLoggingData,void 0,void 0,Q)},zV=function(g,u,q,Q,L){Oy(g,u,void 0,void 0,void 0,q,Q?Q:void 0,void 0,void 0,q.adSlotLoggingData,Q?Q.adLayoutLoggingData:void 0,void 0,L);
q=_.Bk().resolve(_.xv(t_))==null?void 0:eQ();u=q==null?void 0:q.adsSeenHotConfig;q=q==null?void 0:q.adsHotConfig;(u==null?0:u.logOnAdsSeen)&&(q==null?0:q.webEnablePremiumAdsSeenLogging)&&LaZ(g,Q?Q:void 0,L)},gXX=function(g,u,q){Oy(g,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,q,void 0,void 0,void 0,q.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:u})},Oy=function(g,u,q,Q,L,E,y,v,J,f,t,e,G){G=G===void 0?0:G;
EXW(g.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+u,"slot:",E,"layout:",y,"ping:",v,"Opportunity:",{opportunityType:q,associatedSlotId:Q,slotsFromOpportunity:L,triggerBundle:J,adSlotLoggingData:f,adLayoutLoggingData:t});try{var R=function(){g.experimentApiProvider.get();if(u!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){u||_.HY("Empty PACF event type",E,y);var H=g.eventLoggingSettingsProvider.get();var l;(l=H.alwaysIncludeDebugData)||(H.experimentApiProvider.get(),l=
!1);H=l;l={eventType:u,eventOrder:++g.eventCount};var d={};E&&(d.slotData=WQk(H,E));if(y){var F={type:y.layoutType,controlFlowManagerLayer:XAF.get(y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H&&(F.debugData={layoutId:y.layoutId});d.layoutData=F}v&&(d.pingData={pingDispatchStatus:v.dispatchStatus,serializedAdPingMetadata:v.ping.serializedAdPingMetadata,pingIndex:v.index});J&&(d.triggerData=rvf(J.trigger,J.category));q&&(d.opportunityData=TlT(H,q,Q,L));l.adClientData=d;f&&(l.serializedSlotAdServingData=
f.serializedSlotAdServingDataEntry);t&&(l.serializedAdServingData=t.serializedAdServingDataEntry);e&&(l.errorInfo=e);_.H6("adsClientStateChange",{adsClientEvent:l})}};
G&&G>0?_.M_(_.pT(),function(){return R()},G):R()}catch(H){EXW(g.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.M_(_.pT(),function(){_.HY(H instanceof Error?H:String(H),E,y,{pacf_message:"exception during pacf logging"})})}},LaZ=function(g,u,q){if(u){var Q=u.adLayoutLoggingData;
_.M_(_.pT(),function(){g.premiumAdSeenEventLogger!=null&&Q&&_.H6("adsSeenClientLogging",{serializedAdServingDataEntry:Q.serializedAdServingDataEntry})},q!=null?q:0)}};var Pca=function(g,u){QZW.call(this,g,u)};
_.A(Pca,QZW);var NYi=function(){},EXW=function(g,u){return _.w(u)};var yci=function(){var g=new sZZ;this.JSC$15944_adsControlFlowManager=(new qN5(g)).JSC$15919_adsControlFlowManager},sZZ=function(){_.Lh.call(this);
var g=this;this.experimentApiProvider=new Oc2(function(){return new NYi});
var u=new Oc2(function(){return new Kr2(g.experimentApiProvider)});
this.adEventLogger=new Pca(this.experimentApiProvider,u);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.A(sZZ,_.Lh);var vX$=function(){},DtR,od=function(){DtR||(DtR=new vX$);
return DtR},Uy=function(g){if(!g.JSC$15955_externallyManagedSlotAdapterCallback){var u=(new yci).JSC$15944_adsControlFlowManager;
g.JSC$15955_externallyManagedSlotAdapterCallback=u}return g.JSC$15955_externallyManagedSlotAdapterCallback},pP$=function(g,u,q){var Q=u.opportunityType,L=Error("Oh");
if(Q!==void 0){var E=Uy(g);xdW(E,Q,void 0,q)}else _.HY(L,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});E=[];if(u.adSlotAndLayoutMetadata!==void 0){u=_.N(u.adSlotAndLayoutMetadata);for(var y=u.next();!y.done;y=u.next()){var v=y.value;if(y=v.adSlotMetadata)if(E.push(y),g.onSlotReceivedExternallyManaged(y,q),v.adLayoutMetadata){v=_.N(v.adLayoutMetadata);for(var J=v.next();!J.done;J=v.next())g.onLayoutReceivedExternallyManaged(y,J.value,q)}else q>0&&_.HY("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else q>0&&_.HY("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else q>0&&_.HY("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(Q!==void 0)g.onOpportunityProcessedExternallyManaged(Q,E,void 0,q);else _.HY(L,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
vX$.prototype.onSlotReceivedExternallyManaged=function(g,u){g=Fg(g);if(g instanceof dy)_.HY(g,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Uy(this).onSlotReceivedExternallyManaged(g,u)};
vX$.prototype.onLayoutReceivedExternallyManaged=function(g,u,q){g=Fg(g);u=OxM(u);if(g instanceof dy)_.HY(g,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(u instanceof ml)_.HY(u,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Uy(this).onLayoutReceivedExternallyManaged(g,u,q)};
vX$.prototype.onOpportunityProcessedExternallyManaged=function(g,u,q,Q){var L=[];u=_.N(u);for(var E=u.next();!E.done;E=u.next())E=Fg(E.value),E instanceof dy?_.HY(E,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):L.push(E);Uy(this).onOpportunityProcessedExternallyManaged(g,L,q,Q)};
var Jc2=function(g,u){u=Fg(u);if(u instanceof dy)_.HY(u,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var q=Uy(g);Km(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",u);q=_.N(q.adsControlFlowEventListeners);for(var Q=q.next();!Q.done;Q=q.next())Q=xr(Q.value,u),Q.slotLifecycleStage!=="not_scheduled"&&nm(Q.slot,Q.slotLifecycleStage,"onSlotScheduled"),Q.slotLifecycleStage="scheduled";g=Uy(g);Km(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",u);g=_.N(g.adsControlFlowEventListeners);
for(q=g.next();!q.done;q=g.next())q.value.onSlotEntered(u)}},jZ$=function(g,u){u=Fg(u);
if(u instanceof dy)_.HY(u,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var q=Uy(g);Km(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",u);q=_.N(q.adsControlFlowEventListeners);for(var Q=q.next();!Q.done;Q=q.next())Q.value.onSlotExited(u);g=Uy(g);Km(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",u);g=_.N(g.adsControlFlowEventListeners);for(q=g.next();!q.done;q=g.next())q.value.onSlotUnscheduled(u)}},fJX=function(g,u,q){u=Fg(u);
q=OxM(q);if(u instanceof dy)_.HY(u,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(q instanceof ml)_.HY(q,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var Q=Uy(g);zV(Q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",u,q);Q=_.N(Q.adsControlFlowEventListeners);for(var L=Q.next();!L.done;L=Q.next())L.value.onLayoutScheduled(u,q);g=Uy(g);zV(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",u,q);g=_.N(g.adsControlFlowEventListeners);
for(Q=g.next();!Q.done;Q=g.next())njH(Q.value,u,q)}},gf=function(g,u,q){u=Fg(u);
q=OxM(q);if(u instanceof dy)_.HY(u,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(q instanceof ml)_.HY(q,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var Q=Uy(g);zV(Q.adEventLogger,VSf("normal"),u,q);Q=_.N(Q.adsControlFlowEventListeners);for(var L=Q.next();!L.done;L=Q.next())L.value.onLayoutExited(u,q,"normal");g=Uy(g);g=_.N(g.adsControlFlowEventListeners);for(Q=g.next();!Q.done;Q=g.next())oj0(Q.value,u,q)}};var M12=_.r(function(g){var u=g.data,q=g.listenToTapEvent,Q=function(){};
return _.p("ad-button-hover-overlay-view-model",{"on:click":_.YH(function(L){if(_.w("enable_web_home_top_landscape_image_layout_legacy_click_command")){var E,y=(E=u().interaction)==null?void 0:E.onTap;y&&_.hJ(L.currentTarget,"yt-navigate",{endpoint:_.jy(y)})}}),
class:function(){var L;return((L=u().interaction)==null?0:L.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.lF(_.x1({visibilityCallback:function(L){var E,y=(E=u().interaction)==null?void 0:E.onFirstVisible;L&&y&&_.ey(y)},
showOption:_.XY}),_.eJ(function(){return u().interaction},void 0,function(){return!_.w("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(q==null?void 0:q())}))},function(){return _.w("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.p(_.Up,{data:function(){return u().button}},{adButtonViewModel:function(L){return _.p(_.Tb,{data:L.data,
customCommandResolver:Q})}}):_.p(_.Up,{data:function(){return u().button}},{adButtonViewModel:_.Tb})}())},"uc");var as;_.dL(_.r(function(g){var u=g.data;g=_.x1({visibilityCallback:function(v,J){if(v){var f;(v=(f=u().interaction)==null?void 0:f.onFirstVisible)&&_.ey(v);var t;if(f=(t=u().adLayoutData)==null?void 0:t.activeViewData)V4(J,f),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Xg(J)})}else _.w("stop_av_measurement_on_detach")&&Xg(J)},
showOption:_.XY,hideOption:r7});var q=_.eJ(function(){return u().interaction},void 0,function(){return!0}),Q=_.N(_.jR(!1,void 0,"VNDDT")),L=Q.next().value,E=Q.next().value;
Q=_.YH(function(){E(!0)});
var y=_.YH(function(){E(!1)});
return _.p("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.lF(g,SlF,q),"on:mouseenter":Q,"on:mouseleave":y},_.p("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.xH({"max-width":function(){return _.w("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.p("div",{class:function(){var v;
a:{var J;switch((v=_.c(u().thumbnailImage,qFx))==null?void 0:(J=v.imageProperties)==null?void 0:J.renderingAspect){case "RENDERING_ASPECT_SQUARE":v="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":v="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}v=void 0}return v}},_.p(_.Up,{data:function(){return u().thumbnailImage}},{adImageViewModel:function(v){return _.p(_.Wp,
{data:v.data,
listenToTapEvent:!0,setTouchEndHandler:_.w("enable_top_landscape_image_experiment_dom_id_web")})}})),_.p("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.p(_.M,{cond:function(){var v,J,f;
return(v=_.c(u().thumbnailImage,qFx))==null?void 0:(J=v.imageProperties)==null?void 0:(f=J.overlayIcon)==null?void 0:f.iconImage},
then:function(v){return _.p(_.IT,{data:v,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.p("div",{class:function(){return L()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.p(_.Up,{data:function(){return u().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(v){return _.p(M12,
{data:v.data,
listenToTapEvent:!0})}}))),_.p("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.p(_.Up,{data:function(){return u().feedAdMetadata}},{feedAdMetadataViewModel:function(v){return _.p(zb,{data:v.data,
listenToTapEvent:!0,setTouchEndHandler:_.w("enable_top_landscape_image_experiment_dom_id_web")})}})))},"vc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;g=_.x1({visibilityCallback:function(v,J){if(v){var f;(v=(f=u().interaction)==null?void 0:f.onFirstVisible)&&_.ey(v);var t;if(f=(t=u().adLayoutData)==null?void 0:t.activeViewData)V4(J,f),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Xg(J)})}else _.w("stop_av_measurement_on_detach")&&Xg(J)},
showOption:_.XY,hideOption:r7});var q=_.Sy(_.J9),Q=_.eJ(function(){return u().interaction}),L={},E={},y={};
return _.p("square-image-layout-view-model",{class:_.Ty("ytwSquareImageLayoutViewModelHost",(L.ytwSquareImageLayoutViewModelHostColumn=q,L)),el:_.lF(g,ogu,Q)},_.p("div",{class:_.Ty("ytwSquareImageLayoutViewModelHostImage",(E.ytwSquareImageLayoutViewModelHostColumnImage=q,E))},function(){return _.p(_.Up,{data:function(){return u().adImage}},{adImageViewModel:function(v){return _.p(_.Wp,{data:v.data,
isGridViewEnabled:q,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.p("div",{class:_.Ty("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=q,y))},_.p(_.Up,{data:function(){return u().feedAdMetadata}},{feedAdMetadataViewModel:zb}),function(){return _.p(_.Up,{data:function(){return u().adButton}},{adButtonViewModel:function(v){var J={};
return _.p(_.Tb,{data:v.data,className:_.Ty((J.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,J.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=q,J))})}})}()))},"wc"),"square-image-layout-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=g.noBottomMargin;var Q=g.typographyBump;g=_.x1({visibilityCallback:function(e,G){if(e){var R;(e=(R=u().interaction)==null?void 0:R.onFirstVisible)&&_.ey(e);var H;if(R=(H=u().adLayoutData)==null?void 0:H.activeViewData)V4(G,R),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Xg(G)})}else _.w("stop_av_measurement_on_detach")&&Xg(G)},
showOption:_.XY,hideOption:r7});var L=_.eJ(function(){return u().interaction},void 0,function(){return _.w("enable_web_home_top_landscape_image_layout_level_click")}),E=function(){return u().interaction};
E!==void 0&&E!==null||_.Wk(Error("Ph"));var y=function(){var e,G,R;return(e=_.c(u().thumbnailImage,qFx))==null?void 0:(G=e.background)==null?void 0:(R=G.backgroundImageSource)==null?void 0:R.imageSources};
E=_.N(_.jR(!1,void 0,"NFjwje"));var v=E.next().value,J=E.next().value;E=_.YH(function(){J(!0)});
var f=_.YH(function(){J(!1)}),t=function(){return v()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.p("top-landscape-image-layout-view-model",{class:function(){var e;return((e=u().interaction)==null?0:e.onTap)&&_.w("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.lF(g,Uhq,L),"on:mouseenter":E,"on:mouseleave":f},_.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.p(_.M,{cond:function(){return y()&&y().length>0},
then:function(){return _.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.xH({top:"0","background-image":function(){return"url("+String(y()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.p(_.M,{cond:function(){return!!u().adButtonHoverOverlay},
then:function(){return _.p("div",{class:t},_.p(_.Up,{data:function(){return u().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:M12}))}}),_.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.p(_.Up,{data:function(){return u().thumbnailImage}},{adImageViewModel:function(e){return _.p(_.Wp,{data:e.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.w("enable_web_home_top_landscape_image_layout_level_click")})}})),_.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.p(_.IT,{data:{sources:[{clientResource:{imageName:_.w("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.p(_.Up,{data:function(){return u().feedAdMetadata}},{feedAdMetadataViewModel:function(e){return _.p(zb,{data:e.data,
noBottomMargin:function(){return q==null?void 0:q()},
listenToTapEvent:function(){return _.w("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return Q==null?void 0:Q()}})}})))},"xc"),"top-landscape-image-layout-view-model",{props:{data:_.H2,
noBottomMargin:_.H2,typographyBump:_.H2}});var t1X=_.r(function(g){var u=g.data,q=_.x1({visibilityCallback:function(L){var E,y=(E=u().interaction)==null?void 0:E.onFirstVisible;L&&y&&_.ey(y)},
showOption:_.XY});g=_.eJ(function(){return u().interaction},g.customCommandResolver);
var Q={};return _.p("ad-text-image-view-model",{class:_.Ty("ytwAdTextImageViewModelHost",(Q.ytwAdTextImageViewModelHostDarkBackground=function(){return u().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},Q)),
el:_.lF(q,g),"aria-label":function(){var L,E;return(L=u().interaction)==null?void 0:(E=L.accessibility)==null?void 0:E.label}},_.p("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.p(_.c2,{text:function(){return u().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.p(_.M,{cond:function(){return u().overlayIcon},
then:function(L){return _.p("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.p(_.IT,{data:L,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"yc");var eHW=_.r(function(g){var u=g.data;return _.p("feed-ad-sitelink-view-model",{class:function(){var q;return((q=u().interaction)==null?0:q.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.lF(_.eJ(function(){return u().interaction},g.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var q,Q;return(q=u().interaction)==null?void 0:(Q=q.accessibility)==null?void 0:Q.label},
role:"link",tabindex:0},_.p(_.c2,{text:function(){return u().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"zc");var GaX=_.r(function(g){var u=g.data;g={};return _.p("feed-ad-sitelinks-carousel-view-model",{el:_.lF(_.x1({visibilityCallback:function(q){var Q,L=(Q=u().interaction)==null?void 0:Q.onFirstVisible;q&&L&&_.ey(L)},
showOption:_.XY})),class:_.Ty("ytwFeedAdSitelinksCarouselViewModelHost",(g.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return u().style==="FEED_AD_SITELINKS_STYLE_NONE"},g))},_.p(_.Up,{data:function(){return u().sitelinks}},{feedAdSitelinkViewModel:eHW}))},"Ac");_.dL(_.r(function(g){var u=g.data;g=_.x1({visibilityCallback:function(y,v){if(y){var J;(y=(J=u().interaction)==null?void 0:J.onFirstVisible)&&_.ey(y);var f;(J=(f=u().adLayoutData)==null?void 0:f.activeViewData)&&V4(v,J)}},
showOption:_.XY});var q=_.N(_.jR(!1,void 0,"BzPhl")),Q=q.next().value,L=q.next().value;q=_.YH(function(){L(!0)});
var E=_.YH(function(){L(!1)});
return _.p("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.lF(g),"on:mouseenter":q,"on:mouseleave":E},_.p("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.p("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.p(_.Up,{data:function(){return u().textImage}},{adTextImageViewModel:t1X})),_.p("div",{class:function(){return Q()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.p(_.Up,{data:function(){return u().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(y){return _.p(M12,{data:y.data,
listenToTapEvent:!0})}}))),_.p("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.p(_.Up,{data:function(){return u().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.p(zb,{data:y.data,
listenToTapEvent:!0})}}),_.p(_.Up,{data:function(){return u().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:GaX})))},"Bc"),"text-image-no-button-layout-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=g.typographyBump;return _.p("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.lF(_.x1({visibilityCallback:function(Q,L){if(Q){var E;(Q=(E=u().interaction)==null?void 0:E.onFirstVisible)&&_.ey(Q);var y;(E=(y=u().adLayoutData)==null?void 0:y.activeViewData)&&V4(L,E)}},
showOption:_.XY,hideOption:r7}))},_.p("div",null,_.p(_.Up,{data:function(){return u().videoLockup}},{lockupViewModel:function(Q){return _.p(_.nG,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:q})}})))},"Cc"),"video-display-button-group-layout-view-model",{props:{data:_.H2,
noBottomMargin:_.H2,typographyBump:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=g.className;var Q=g.typographyBump;return _.p("video-display-compact-button-group-layout-view-model",{el:_.lF(_.x1({visibilityCallback:function(L,E){if(L){var y;(L=(y=u().interaction)==null?void 0:y.onFirstVisible)&&_.ey(L);var v;(y=(v=u().adLayoutData)==null?void 0:v.activeViewData)&&V4(E,y)}},
showOption:_.XY})),class:_.Ty("videoDisplayCompactButtonGroupLayoutViewModelHost",q)},_.p(_.Up,{data:function(){return u().videoLockup}},{lockupViewModel:function(L){return _.p(_.nG,{data:L.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Q})}}))},"Dc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.H2,
className:_.H2,typographyBump:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=g.className;var Q=g.typographyBump;return _.p("video-display-compact-buttoned-layout-view-model",{el:_.lF(_.x1({visibilityCallback:function(L,E){if(L){var y;(L=(y=u().interaction)==null?void 0:y.onFirstVisible)&&_.ey(L);var v;(y=(v=u().adLayoutData)==null?void 0:v.activeViewData)&&V4(E,y)}},
showOption:_.XY})),class:_.Ty("videoDisplayCompactButtonedLayoutViewModelHost",q)},_.p(_.Up,{data:function(){return u().videoLockup}},{lockupViewModel:function(L){return _.p(_.nG,{data:L.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Q})}}))},"Ec"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.H2,
className:_.H2,typographyBump:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=g.className;var Q=g.typographyBump;return _.p("video-display-compact-carousel-button-group-layout-view-model",{el:_.lF(_.x1({visibilityCallback:function(L,E){if(L){var y;(L=(y=u().interaction)==null?void 0:y.onFirstVisible)&&_.ey(L);var v;(y=(v=u().adLayoutData)==null?void 0:v.activeViewData)&&V4(E,y)}},
showOption:_.XY})),class:_.Ty("videoDisplayCompactCarouselButtonGroupLayoutViewModelHost",q)},_.p(_.Up,{data:function(){return u().videoLockup}},{lockupViewModel:function(L){return _.p(_.nG,{data:L.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Q})}}))},"Fc"),"video-display-compact-carousel-button-group-layout-view-model",{props:{data:_.H2,
className:_.H2,typographyBump:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=g.className;var Q=g.typographyBump;var L=function(){return u().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},E=_.Sy(_.J9);
g=_.x1({visibilityCallback:function(f,t){if(f){var e=u();f=e.adLayoutData;var G;(e=(G=e.interaction)==null?void 0:G.onFirstVisible)&&_.ey(e);(G=f==null?void 0:f.activeViewData)&&V4(t,G)}},
showOption:_.XY});var y=_.G9(function(){return{containerType:L()&&E()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:L()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),v=_.G9(function(){return L()&&E()?"":L()?"168px":"50%"},void 0,"Om6kNe"),J=_.G9(function(){return L()&&E()?9999:void 0},void 0,"S71lKd");
return _.p("video-display-compact-layout-view-model",{el:_.lF(g),class:_.Ty("videoDisplayCompactLayoutViewModelHost",q)},_.p(_.Up,{data:function(){return u().videoLockup}},{lockupViewModel:function(f){return _.p(_.nG,{data:f.data,
containerLayoutConfig:y,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:v,thumbnailTargetWidth:J,typographyBump:Q})}}))},"Gc"),"video-display-compact-layout-view-model",{props:{data:_.H2,
className:_.H2,typographyBump:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=g.typographyBump;return _.p("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.lF(_.x1({visibilityCallback:function(Q,L){if(Q){var E;(Q=(E=u().interaction)==null?void 0:E.onFirstVisible)&&_.ey(Q);var y;(E=(y=u().adLayoutData)==null?void 0:y.activeViewData)&&V4(L,E)}},
showOption:_.XY,hideOption:r7}))},_.p("div",null,_.p(_.Up,{data:function(){return u().videoLockup}},{lockupViewModel:function(Q){return _.p(_.nG,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:q})}})))},"Hc"),"video-display-full-layout-view-model",{props:{data:_.H2,
noBottomMargin:_.H2,typographyBump:_.H2}});var $tn=_.r(function(g){var u=g.data;var q=g.customCommandResolver;var Q=g.className;var L=g.buttonClassName;var E=g.animationEntityKey;var y=g.expansive;return _.p("carousel-button-view-model",{class:_.Ty("ytwCarouselButtonViewModelHost",Q)},_.p(_.Up,{data:function(){return u().carousel}},{carouselAdCardCollectionViewModel:function(v){return _.p(PIR,{data:v.data,
customCommandResolver:q,expansive:y})}}),_.p(_.Up,{data:function(){return u().button}},{adButtonViewModel:function(v){var J=v.data;
return _.p(_.Tb,{data:function(){return(y==null?0:y())?Object.assign({},J(),{style:"AD_BUTTON_STYLE_TONAL"}):J()},
className:L,customCommandResolver:q,animationEntityKey:E})}}))},"Ic");_.RHb=_.r(function(g){var u=g.data;g=g.className;var q=_.Hk("pivot-button-view-model");_.I4(function(){var Q;((Q=u())==null?0:Q.backgroundColor)&&q.value.setAttribute("data-background-color",String(u().backgroundColor))});
return _.p("pivot-button-view-model",{el:q,class:_.Ty("ytwPivotButtonViewModelHost",g)},_.p(_.ag,{command:function(){var Q=u();Q=Q.onClickCommand?_.jy(Q.onClickCommand):Q.contentDescription?_.mc(Q.contentDescription):void 0;return Q},
ariaLabel:function(){return u().contentDescription}},_.p(_.M,{cond:function(){return u().thumbnail},
then:function(Q){return _.p(_.IT,{data:Q,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.p(_.M,{cond:function(){return u().icon},
then:function(Q){return _.p(_.B1,{icon:function(){return Q().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Jc");_.wPH=_.r(function(g){var u=g.data;var q=g.buttonShapeOverrideables;g={};return _.p("reel-action-bar-view-model",{class:_.Ty("ytwReelActionBarViewModelHost",(g.ytwReelActionBarViewModelHostDecluttered=function(){return _.w("enable_shorts_declutter_ui")},g))},_.p(_.Up,{data:function(){return u().buttonViewModels}},{buttonViewModel:function(Q){return _.p(_.TT,{data:Q.data,
buttonOverrides:q})},
likeButtonViewModel:function(Q){return _.p(_.et,{data:Q.data,buttonShapeOverrideables:q})},
dislikeButtonViewModel:function(Q){return _.p(_.tP,{data:Q.data,buttonShapeOverrideables:q})},
toggleButtonViewModel:function(Q){return _.p(_.E6,{data:Q.data,buttonShapeOverrides:q})}}))},"Kc");var cc5=_.r(function(g){var u=g.avatar;var q=g.headline;var Q=g.badge;var L=g.description;var E=g.expansive;g={};return _.p("yt-ad-metadata-shape",{class:_.Ty("ytAdMetadataShapeHost",(g.ytAdMetadataShapeHostLarge=E,g.ytAdMetadataShapeHostDecluttered=function(){return _.w("enable_desktop_small_title_on_immersive_shorts")},g))},_.p("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.p(_.M,{cond:u,
then:function(y){return _.p(_.Ro8,{data:function(){return(E==null?0:E())?Object.assign({},y(),{size:"AD_AVATAR_SIZE_M"}):y()}})}}),_.p("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.p(_.c2,{text:q,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.p(_.M,{cond:Q,then:function(y){return _.p(_.x4,{data:function(){return(E==null?0:E())?Object.assign({},y(),{style:"AD_BADGE_STYLE_STARK"}):y()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.p("h2",{class:"ytAdMetadataShapeHostDescription"},_.p(_.c2,{text:L,
linkInheritColor:!0,isHeadline:function(){return E==null?void 0:E()}})))},"Lc");var HkR=_.r(function(g){var u=g.data;var q=g.onShow;var Q=g.expansive;g=_.eJ(function(){return u().interaction});
_.I4(function(){var E,y=(E=u().animatedRenderingConfig)==null?void 0:E.delayedSecondsToVisible;if(y){var v=setTimeout(q,y*1E3);_.dB(function(){clearTimeout(v)})}});
var L={};return _.p("reels-ad-card-buttoned-view-model",{class:_.Ty(function(){var E;return((E=u().interaction)==null?0:E.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(L.ytwReelsAdCardButtonedViewModelHostExpansive=Q,L)),
el:_.lF(g)},_.p(cc5,{avatar:function(){return _.c(u().avatar,U6R)},
headline:function(){return u().headline},
badge:function(){return _.c(u().adBadge,gxo)},
description:function(){return u().description},
expansive:Q}),_.p(_.Up,{data:function(){return u().ctaButton}},{adButtonViewModel:function(E){var y=E.data;
return _.p(_.Tb,{data:function(){return(Q==null?0:Q())?Object.assign({},y(),{style:"AD_BUTTON_STYLE_FILLED"}):y()}})}}))},"Mc");var Ac5=_.r(function(g){var u=g.data;g=g.expansive;var q=_.w("web_ad_metadata_clickable")?_.eJ(function(){return u().interaction},void 0,function(){return _.w("web_ad_metadata_clickable")}):void 0,Q={};
Q=_.N0("ytwReelsAdMetadataViewModelHost",(Q.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.w("web_ad_metadata_clickable"),Q));return _.p("reels-ad-metadata-view-model",{class:Q,el:_.lF(q)},_.p(cc5,{avatar:function(){return _.c(u().avatar,U6R)},
headline:function(){return u().headline},
badge:function(){return _.c(u().adBadge,gxo)},
description:function(){return u().description},
expansive:g}))},"Nc");var Zk2=_.r(function(){return _.p("div",{class:"ytwVideoFilteringOverlayHost",style:_.xH({"background-color":function(){return _.jh(_.S8("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Oc");var lJi={iconPosition:"icon-with-label",size:"L"},IJX=_.r(function(g){var u=g.data;var q=g.overlayDensity;var Q=g.extractOverlay;var L=g.extractActionBar;g=_.Hk("reels-player-overlay-layout-view-model");var E=_.dO(q,0),y=function(){var R;return(R=u().reelsAdCardButtonedEntityKey)!=null?R:""},v=function(){return y()+"/ad_button"},J=_.kq(deh,y),f=function(){var R,H;
return(H=(R=J())==null?void 0:R.value)!=null?H:!1},t=_.Sy(gWZ),e=function(){var R,H=Object.assign({},lJi,(t()||!((R=L==null?void 0:L())!=null&&R))&&{style:"overlay-dark"});
return _.w("mweb_shorts_rhs_no_background_protection")?Object.assign({},H,{type:"text",style:"overlay"}):H};
q={};var G={};return _.p("reels-player-overlay-layout-view-model",{class:_.Ty("ytwReelsPlayerOverlayLayoutViewModelHost",(q.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!u().extension},q.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},q.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return E()===1&&!(Q==null?0:Q())},q.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var R;
return(R=Q==null?void 0:Q())!=null?R:!1},q.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var R;
return(R=L==null?void 0:L())!=null?R:!1},q)),
"overlay-density":function(){return String(E())},
el:g},_.p("div",{class:_.Ty("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(G.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},G))},_.p("div",{"aria-hidden":function(){return f()},
class:_.Ty("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return f()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.xH({"transition-duration":function(){return LPS(u())}})},_.p(_.Up,{data:function(){return u().adMetadata}},{reelsAdMetadataViewModel:function(R){return _.p(Ac5,{data:R.data,
expansive:function(){return E()===1}})}}),_.p(_.M,{cond:function(){return u().extension},
then:function(R){return _.p("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.p(_.Up,{data:R},{adButtonViewModel:function(H){return _.p(_.Tb,{data:H.data,animationEntityKey:v,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(H){return _.p($tn,{data:H.data,animationEntityKey:v,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return E()===1}})}}))}})),_.p("div",{"aria-hidden":function(){return!f()},
class:_.Ty("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return f()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.xH({"transition-duration":function(){return LPS(u())}})},_.p(_.Up,{data:function(){return u().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(R){return _.p(HkR,{data:R.data,
onShow:function(){_.bU(_.u2("booleanEntity",y(),{key:y(),value:!0}))},
expansive:function(){var H;return(H=Q==null?void 0:Q())!=null?H:!1}})}}))),_.p("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.p(_.Up,{data:function(){return u().actions}},{reelActionBarViewModel:function(R){return _.p(_.wPH,{data:R.data,
buttonShapeOverrideables:e})}}),_.p(_.Up,{data:function(){return u().menu}},{buttonViewModel:function(R){return _.p(_.TT,{data:R.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},e())}})}}),_.p(_.Up,{data:function(){return u().pivotButton}},{pivotButtonViewModel:function(R){return _.p(_.RHb,{data:R.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.p(_.M,{cond:function(){return _.w("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.p(_.g6K,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.p(Zk2,null)})}}))},"Pc");_.dL(IJX,"reels-player-overlay-layout-view-model",{props:{data:_.H2,overlayDensity:_.H2,extractOverlay:_.H2,extractActionBar:_.H2}});var uB=function(){var g=_.X.apply(this,arguments)||this;g.noBottomMargin=!1;g.overlayDensity=0;g.extractOverlay=!1;g.extractActionBar=!1;return g};
_.A(uB,_.X);_.P=uB.prototype;
_.P.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:_.w("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]]"}}}}}};
_.P.ready=function(){var g=this;MHS(function(){g.isAttached&&Cn(g.JSC$15994_storedAdSlotMetadata,g.JSC$15994_storedAdLayoutMetadata,g.adSlotMetadata,g.adLayoutMetadata)&&gf(od(),g.JSC$15994_storedAdSlotMetadata,g.JSC$15994_storedAdLayoutMetadata)})};
_.P.attached=function(){Cn(this.JSC$15994_storedAdSlotMetadata,this.JSC$15994_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&fJX(od(),this.JSC$15994_storedAdSlotMetadata,this.JSC$15994_storedAdLayoutMetadata)};
_.P.detached=function(){Cn(this.JSC$15994_storedAdSlotMetadata,this.JSC$15994_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gf(od(),this.JSC$15994_storedAdSlotMetadata,this.JSC$15994_storedAdLayoutMetadata)};
_.P.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15994_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15994_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15994_storedAdLayoutMetadata!==void 0&&this.JSC$15994_storedAdSlotMetadata!==void 0&&gf(od(),this.JSC$15994_storedAdSlotMetadata,this.JSC$15994_storedAdLayoutMetadata),fJX(od(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15994_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15994_storedAdSlotMetadata=this.adSlotMetadata)};
_.z3.Object.defineProperties(uB.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.adLayoutMetadata}}});
uB.prototype.onAdMetadataChanged=uB.prototype.onAdMetadataChanged;uB.prototype.onTypographyBumpChanged=uB.prototype.onTypographyBumpChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],uB.prototype,"rendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],uB.prototype,"ytComponentBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],uB.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],uB.prototype,"noBottomMargin",void 0);_.Y([_.a(),_.K("design:type",Object)],uB.prototype,"overlayDensity",void 0);_.Y([_.a(),_.K("design:type",Object)],uB.prototype,"extractOverlay",void 0);_.Y([_.a(),_.K("design:type",Object)],uB.prototype,"extractActionBar",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],uB.prototype,"typographyBump",void 0);
_.Y([_.C("data.adLayoutMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],uB.prototype,"adLayoutMetadata",null);_.Y([_.a(),_.K("design:type",Object)],uB.prototype,"adSlotMetadata",void 0);_.Y([_.oE("ytd-video-display-full-buttoned-and-button-group-renderer"),_.K("design:type",HTMLElement)],uB.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.Y([_.k_("typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uB.prototype,"onTypographyBumpChanged",null);_.Y([_.k_("adLayoutMetadata","adSlotMetadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uB.prototype,"onAdMetadataChanged",null);_.Y([_.fE({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],uB);
_.T(uB,"ytd-in-feed-ad-layout-renderer",function(){if(eui!==void 0)return eui;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return eui=g},
{mode:2});var ik5;var CcW;_.dL(_.x4,"ad-badge-view-model",{props:{data:_.H2,hasDot:_.H2,customCommandResolver:_.iF,adRenderingContextType:_.iF,usedInMasthead:_.iF}});_.dL(_.Tb,"ad-button-view-model",{props:{data:_.H2,customCommandResolver:_.iF,className:_.iF,delayedClassName:_.iF,animationEntityKey:_.iF,isCompactWidth:_.iF,isContentWidth:_.iF}});var q7=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return g};
_.A(q7,_.X);_.P=q7.prototype;_.P.computeHasLiveDescription=function(g){return!(g==null||!g.liveDescription)};
_.P.computeHasByline=function(g){return!(g==null||!g.byline)};
_.P.computeUsesAdButtonViewModel=function(g){return!!_.c(g==null?void 0:g.cta,ukW)};
_.P.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"}}}}}};
_.P.onYtToggleButton=function(g){var u,q=(u=this.data)==null?void 0:u.videoReminderEntityKey;q&&this.ytdReduxBehavior.dispatch(_.u2("upcomingEventReminderStateEntity",q,{key:q,state:g.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.P.attached=function(){this.updateChannelBanner()};
_.P.dataChanged=function(){this.updateChannelBanner()};
_.P.videoReminderStateChanged=function(){var g;this.videoReminderState&&_.c((g=this.data)==null?void 0:g.cta,_.GZ)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.P.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var g=_.Fh(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);g&&(g.startsWith("//")&&(g="https:"+g),this.hostElement.classList.add("channel-banner"),_.x_(this.hostElement,{"--ytvmh-channel-banner":"url("+g+")"}))}else _.w("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.P.onPlayerReady=function(){this.onIronResize()};
_.P.maybeFlushDebouncer=function(){_.w("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(g){var u;g=(u=g.getElementsByTagName("yt-attributed-string"))==null?void 0:u[0];LKK(g==null?void 0:g.polymerController)})};
_.P.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var g=_.Tr(this.hostElement).querySelector("#live-description"),u;g&&((u=this.data)==null?0:u.shortLiveDescription)&&g.clientWidth<g.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
q7.prototype.onIronResize=q7.prototype.onIronResize;q7.prototype.videoReminderStateChanged=q7.prototype.videoReminderStateChanged;q7.prototype.dataChanged=q7.prototype.dataChanged;q7.prototype.onYtToggleButton=q7.prototype.onYtToggleButton;_.Y([_.I(_.LJ),_.K("design:type",Object)],q7.prototype,"ironResizableBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],q7.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],q7.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],q7.prototype,"data",void 0);_.Y([_.a({selectorArgs:["data.videoReminderEntityKey"],selector:tlk}),_.K("design:type",Object)],q7.prototype,"videoReminderState",void 0);
_.Y([_.a({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.K("design:type",Boolean)],q7.prototype,"rounded",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.K("design:type",Boolean)],q7.prototype,"hasLiveDescription",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.K("design:type",Boolean)],q7.prototype,"hasByline",void 0);
_.Y([_.a({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.K("design:type",String)],q7.prototype,"adRenderingContextType",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],q7.prototype,"isMasthead",void 0);_.Y([_.a({computed:"computeUsesAdButtonViewModel(data)"}),_.K("design:type",Boolean)],q7.prototype,"usesAdButtonViewModel",void 0);
_.Y([_.a({reflectToAttribute:!0,value:_.w("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.K("design:type",Boolean)],q7.prototype,"resizableAdBannerSafariFix",void 0);_.Y([_.Ux("yt-formatted-string"),_.K("design:type",Array)],q7.prototype,"formattedStrings",void 0);_.Y([_.oE("#cta-button"),_.K("design:type",HTMLElement)],q7.prototype,"ctaButton",void 0);
_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],q7.prototype,"onYtToggleButton",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q7.prototype,"dataChanged",null);_.Y([_.k_("videoReminderState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q7.prototype,"videoReminderStateChanged",null);
_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q7.prototype,"onIronResize",null);_.Y([_.fE({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],q7);
_.T(q7,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(CcW!==void 0)return CcW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return CcW=g},{mode:1});var bkb;var Qz=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};g.isLocked=!1;return g};
_.A(Qz,_.X);_.P=Qz.prototype;_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded&&_.Og(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(g){g!==this&&(this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(g){this.isLocked=!0;g!==this&&(this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
Qz.prototype.onTap=Qz.prototype.onTap;Qz.prototype.onMouseOver=Qz.prototype.onMouseOver;Qz.prototype.onExpandedChanged=Qz.prototype.onExpandedChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Qz.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Qz.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Qz.prototype,"expanded",void 0);_.Y([_.qm("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qz.prototype,"onExpandedChanged",null);_.Y([_.n6("mouseover"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qz.prototype,"onMouseOver",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qz.prototype,"onTap",null);
_.Y([_.fE({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Qz);
_.T(Qz,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(bkb!==void 0)return bkb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return bkb=g},{mode:1});var dtH;var Ly=function(){var g=_.X.apply(this,arguments)||this;g.buttonOverrides={style:"overlay"};g.useYtdPlayer=_.w("use_ytd_player_for_desktop_masthead");g.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};g.playbackFinished=!1;g.JSC$16008_playerManager=null;g.JSC$16008_mastheadCounter=new QI8;return g};
_.A(Ly,_.X);_.P=Ly.prototype;_.P.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"}}}};
_.P.created=function(){this.JSC$16008_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$16008_playerManager=new gg)};
_.P.ready=function(){var g=this;this.JSC$16008_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var u=_.Tr(this.hostElement).querySelector("#player");this.useYtdPlayer?u.style.display="none":(this.ytdPlayer.style.display="none",eTW(this.JSC$16008_playerManager,u,function(){g.onPlaybackEnded()}),_.Tr(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var q;
((q=g.data)==null?0:q.navigationEndpoint)&&_.hJ(g.hostElement,"yt-navigate",{endpoint:g.data.navigationEndpoint})}))};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$16008_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.P.attached=function(){var g=this;_.wO(function(){g.maybePlayVideo()})};
_.P.maybePlayVideo=function(){var g=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$16008_playerManager.playVideo(),this.getPlayerPromise().then(function(){g.JSC$16008_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.P.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16008_playerManager.stopVideo()};
_.P.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var g,u={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((g=this.data.playbackStartMs)!=null?g:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(u);this.setupYtdPlayer()}else $Fi(this.JSC$16008_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(GHo(this.JSC$16008_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.P.getPlayerPromise=function(){return this.JSC$16008_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(g){this.useYtdPlayer?this.toggleMute(g.detail.toggled):g.detail.toggled?this.JSC$16008_playerManager.mute():this.JSC$16008_playerManager.unMute()};
_.P.onYtNavigate=function(g){var u=h_h(g.detail.endpoint),q=Y$m(this.data.clickthroughReportingData);u&&q&&(g.detail.endpoint.watchEndpoint?g.detail.tempData=q:_.CV(u,q,30))};
_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded?(_.Og(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(g){g!==this&&(this.stopVideo(),this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(g){g!==this&&(this.isLocked=!0,this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
_.P.lockAndCollapseExpandableTiles=function(){_.YJ(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.P.unlockExpandableTiles=function(){_.YJ(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.P.setupYtdPlayer=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return q.yield(g.ytdPlayer.getPlayerPromise(),2);u=q.yieldResult;u.addEventListener("onStateChange",function(Q){g.onPlayerStateChange(Q)});
u.addEventListener("onCueRangeExit",function(Q){g.onCueRangeExit(Q)});
_.Wx(q)})};
_.P.onPlayerStateChange=function(g){if(g===1&&(g=this.ytdPlayer.getPlayer())){var u=g.getCurrentTime(),q,Q,L=u+((Q=(q=this.data)==null?void 0:q.playbackDurationMs)!=null?Q:0)/1E3;g.addCueRange("playback",u,L);this.JSC$16008_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.P.onCueRangeExit=function(g){g==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(u.ytdPlayer.getPlayerPromise(),2);q=Q.yieldResult;g?q.mute():q.unMute();_.Wx(Q)})};
Ly.prototype.onTap=Ly.prototype.onTap;Ly.prototype.onMouseOver=Ly.prototype.onMouseOver;Ly.prototype.onExpandedChanged=Ly.prototype.onExpandedChanged;Ly.prototype.onYtNavigate=Ly.prototype.onYtNavigate;Ly.prototype.onYtToggleButton=Ly.prototype.onYtToggleButton;Ly.prototype.dataChanged=Ly.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Ly.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ly.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ly.prototype,"expanded",void 0);_.Y([_.a(),_.K("design:type",Object)],Ly.prototype,"buttonOverrides",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ly.prototype,"useYtdPlayer",void 0);_.Y([_.oE("#ytd-player"),_.K("design:type",Object)],Ly.prototype,"ytdPlayer",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ly.prototype,"dataChanged",null);_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ly.prototype,"onYtToggleButton",null);
_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ly.prototype,"onYtNavigate",null);_.Y([_.qm("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ly.prototype,"onExpandedChanged",null);_.Y([_.n6("mouseover"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ly.prototype,"onMouseOver",null);
_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ly.prototype,"onTap",null);_.Y([_.fE({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Ly);
_.T(Ly,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(dtH!==void 0)return dtH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return dtH=g},{mode:1});var Fan;var E$=function(){return _.X.apply(this,arguments)||this};
_.A(E$,_.X);E$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
E$.prototype.onShow=function(){var g=_.Tr(this.hostElement).querySelector("#live-description"),u;g&&((u=this.data)==null?0:u.shortLiveDescription)&&g.clientWidth<g.scrollWidth&&this.hostElement.classList.add("short-live-description")};
E$.prototype.onYtToggleButton=function(g){var u,q=(u=this.data)==null?void 0:u.videoReminderEntityKey;q&&this.ytdReduxBehavior.dispatch(_.u2("upcomingEventReminderStateEntity",q,{key:q,state:g.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
E$.prototype.videoReminderStateChanged=function(){var g;this.videoReminderState&&_.c((g=this.data)==null?void 0:g.cta,_.GZ)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
E$.prototype.videoReminderStateChanged=E$.prototype.videoReminderStateChanged;E$.prototype.onYtToggleButton=E$.prototype.onYtToggleButton;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],E$.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],E$.prototype,"data",void 0);
_.Y([_.a({selectorArgs:["data.videoReminderEntityKey"],selector:tlk}),_.K("design:type",Object)],E$.prototype,"videoReminderState",void 0);_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],E$.prototype,"onYtToggleButton",null);_.Y([_.k_("videoReminderState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],E$.prototype,"videoReminderStateChanged",null);
_.Y([_.fE({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],E$);
_.T(E$,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Fan!==void 0)return Fan;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Fan=g},{mode:2});var mtZ;var P4=function(){var g=_.X.apply(this,arguments)||this;g.useYtdPlayer=_.w("use_ytd_player_for_desktop_masthead");g.buttonOverrides={style:"overlay"};g.JSC$16016_playerManager=null;g.JSC$16016_mastheadCounter=new QI8;g.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return g};
_.A(P4,_.X);_.P=P4.prototype;_.P.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"}}}};
_.P.created=function(){this.JSC$16016_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$16016_playerManager=new gg)};
_.P.ready=function(){var g=this;this.JSC$16016_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var u;(u=this.embeddedPlayer)==null||u.remove()}else{var q;(q=this.ytdPlayer)==null||q.remove();eTW(this.JSC$16016_playerManager,this.embeddedPlayer,function(){g.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){g.data&&g.data.navigationEndpoint&&_.hJ(g.hostElement,"yt-navigate",{endpoint:g.data.navigationEndpoint})})}};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$16016_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.P.dataChanged=function(){var g=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var u=!this.data.disableAutoPlayback,q,Q={autoplay:u,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((q=this.data.playbackStartMs)!=null?q:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(u?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(Q);this.setupYtdPlayer()}else $Fi(this.JSC$16016_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(GHo(this.JSC$16016_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$16016_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.YJ(g.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");g.JSC$16016_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.P.getPlayerPromise=function(){return this.JSC$16016_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(g){this.useYtdPlayer?this.toggleMute(g.detail.toggled):g.detail.toggled?this.JSC$16016_playerManager.mute():this.JSC$16016_playerManager.unMute()};
_.P.onYtNavigate=function(g){var u=h_h(g.detail.endpoint),q=Y$m(this.data.clickthroughReportingData);u&&q&&(g.detail.endpoint.watchEndpoint?g.detail.tempData=q:_.CV(u,q,30))};
_.P.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16016_playerManager.stopVideo()};
_.P.setupYtdPlayer=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return q.yield(g.ytdPlayer.getPlayerPromise(),2);u=q.yieldResult;u.addEventListener("onStateChange",function(Q){g.onPlayerStateChange(Q)});
u.addEventListener("onCueRangeExit",function(Q){g.onCueRangeExit(Q)});
_.Wx(q)})};
_.P.onPlayerStateChange=function(g){if(g===1&&(g=this.ytdPlayer.getPlayer())){var u=g.getCurrentTime(),q,Q,L=u+((Q=(q=this.data)==null?void 0:q.playbackDurationMs)!=null?Q:0)/1E3;g.addCueRange("playback",u,L);_.YJ(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$16016_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.P.onCueRangeExit=function(g){g==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(u.ytdPlayer.getPlayerPromise(),2);q=Q.yieldResult;g?q.mute():q.unMute();_.Wx(Q)})};
_.z3.Object.defineProperties(P4.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var g,u;if(!((g=this.data)==null?0:(u=g.accessibilityData)==null?0:u.label))return"Ad primary link";var q,Q;return _.Ug("AD_TITLE",{title:(q=this.data)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label})}}});
P4.prototype.onYtMastheadHidden=P4.prototype.onYtMastheadHidden;P4.prototype.onYtNavigate=P4.prototype.onYtNavigate;P4.prototype.onYtToggleButton=P4.prototype.onYtToggleButton;P4.prototype.dataChanged=P4.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],P4.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],P4.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],P4.prototype,"useYtdPlayer",void 0);_.Y([_.oE("ytd-toggle-button-renderer"),_.K("design:type",Object)],P4.prototype,"muteButton",void 0);_.Y([_.a(),_.K("design:type",Object)],P4.prototype,"buttonOverrides",void 0);
_.Y([_.C("data.accessibilityData.label"),_.K("design:type",String),_.K("design:paramtypes",[])],P4.prototype,"titleAriaLabel",null);_.Y([_.oE("#replay-button"),_.K("design:type",Object)],P4.prototype,"replayButton",void 0);_.Y([_.oE("#player-container"),_.K("design:type",Object)],P4.prototype,"playerContainer",void 0);_.Y([_.oE("#player"),_.K("design:type",Object)],P4.prototype,"embeddedPlayer",void 0);_.Y([_.oE("#ytd-player"),_.K("design:type",Object)],P4.prototype,"ytdPlayer",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],P4.prototype,"dataChanged",null);_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],P4.prototype,"onYtToggleButton",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],P4.prototype,"onYtNavigate",null);
_.Y([_.n6("yt-masthead-hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],P4.prototype,"onYtMastheadHidden",null);_.Y([_.fE({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],P4);
_.T(P4,"ytd-video-masthead-ad-primary-video-renderer",function(){if(mtZ!==void 0)return mtZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return mtZ=g},{mode:2});var aJ0;var N7=function(){var g=_.X.apply(this,arguments)||this;g.collapsed=!1;g.impressionResolver=_.A9();g.JSC$16020_activeViewMeasurementDataResolver=_.A9();g.actionMap={"yt-mute-ad-action":"handleMuteAd"};return g};
_.A(N7,_.X);_.P=N7.prototype;_.P.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"}}}};
_.P.created=function(){this.activeView=new Tu(this.hostElement)};
_.P.ready=function(){var g=this;_.Tr(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){g.expandAd()});
this.hostElement.addEventListener("yt-action",function(u){if(u.detail.actionName==="yt-service-request"){var q=u.detail.args[1];q.videoMastheadAdMuteCommand&&(g.collapseAd(q.videoMastheadAdMuteCommand.encryptedMastheadId),u.stopPropagation())}})};
_.P.attached=function(){var g=this;_.wO(function(){g.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(u){if(!g.collapsed){u=_.N(u);for(var q=u.next();!q.done;q=u.next())q=q.value,X7(q.baseUrl,q.attributionSrcMode);g.data.impressionCommand=void 0}});
this.JSC$16020_activeViewMeasurementDataResolver.promise.then(function(u){hF(g.activeView,u)});
_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ye(g.activeView)})};
_.P.dataChanged=function(){var g;((g=this.data.impressionCommand)==null?0:g.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var u;((u=this.data)==null?0:u.activeView)&&this.JSC$16020_activeViewMeasurementDataResolver.resolve(this.data.activeView);(g=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(g.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.P.computeWidescreen=function(g){var u;return!!(g&&((u=_.c(g,zkX))==null?0:u.isWidescreen))};
_.P.computeExpandable=function(g){return!!(g&&g.length>0)};
_.P.onIronResize=function(){if(this.expandable){var g=_.Tr(this.hostElement).querySelector("#expandable-tile-container :first-child");g&&!g.expanded&&(g.expanded=!0)}};
_.P.handleMuteAd=function(){this.collapseAd(null)};
_.P.restoreCollapsedState=function(g){this.collapsed=_.qf().get("HIDDEN_MASTHEAD_ID")===g};
_.P.collapseAd=function(g){if(g){var u=_.qf();u.set("HIDDEN_MASTHEAD_ID",g);u.save()}(g=_.Tr(this.hostElement).querySelector("#video"))&&_.hJ(g,"yt-masthead-hidden");this.collapsed=!0};
_.P.expandAd=function(){var g=_.qf();g.set("HIDDEN_MASTHEAD_ID",!1);g.save();location.reload()};
_.P.detached=function(){_.w("stop_av_measurement_on_detach")&&Ye(this.activeView)};
N7.prototype.onIronResize=N7.prototype.onIronResize;N7.prototype.dataChanged=N7.prototype.dataChanged;_.Y([_.I(_.LJ),_.K("design:type",Object)],N7.prototype,"ironResizableBehavior",void 0);_.Y([_.I(_.eB),_.K("design:type",Object)],N7.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],N7.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],N7.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.K("design:type",Boolean)],N7.prototype,"widescreen",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.K("design:type",Boolean)],N7.prototype,"expandable",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],N7.prototype,"collapsed",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N7.prototype,"dataChanged",null);_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N7.prototype,"onIronResize",null);_.Y([_.fE({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],N7);
_.T(N7,"ytd-video-masthead-ad-v3-renderer",function(){if(aJ0!==void 0)return aJ0;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return aJ0=g},{mode:2});var s$=function(){return _.X.apply(this,arguments)||this};
_.A(s$,_.X);_.P=s$.prototype;_.P.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.P.ready=function(){var g=this;MHS(function(){g.isAttached&&Cn(g.JSC$16025_storedAdSlotMetadata,g.JSC$16025_storedAdLayoutMetadata,g.adSlotMetadata,g.adLayoutMetadata)&&gf(od(),g.JSC$16025_storedAdSlotMetadata,g.JSC$16025_storedAdLayoutMetadata)})};
_.P.attached=function(){Cn(this.JSC$16025_storedAdSlotMetadata,this.JSC$16025_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&fJX(od(),this.JSC$16025_storedAdSlotMetadata,this.JSC$16025_storedAdLayoutMetadata)};
_.P.detached=function(){Cn(this.JSC$16025_storedAdSlotMetadata,this.JSC$16025_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gf(od(),this.JSC$16025_storedAdSlotMetadata,this.JSC$16025_storedAdLayoutMetadata)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16025_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16025_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16025_storedAdLayoutMetadata!==void 0&&this.JSC$16025_storedAdSlotMetadata!==void 0&&gf(od(),this.JSC$16025_storedAdSlotMetadata,this.JSC$16025_storedAdLayoutMetadata),fJX(od(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16025_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16025_storedAdSlotMetadata=this.adSlotMetadata)};
_.z3.Object.defineProperties(s$.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.adLayoutMetadata}}});
s$.prototype.onAdMetadataChanged=s$.prototype.onAdMetadataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],s$.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],s$.prototype,"data",void 0);_.Y([_.C("data.adLayoutMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],s$.prototype,"adLayoutMetadata",null);
_.Y([_.a(),_.K("design:type",Object)],s$.prototype,"adSlotMetadata",void 0);_.Y([_.k_("adLayoutMetadata","adSlotMetadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],s$.prototype,"onAdMetadataChanged",null);_.Y([_.fE({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],s$);
_.T(s$,"ytd-page-top-ad-layout-renderer",function(){if(ik5!==void 0)return ik5;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ik5=
g},{mode:2});var V1X;var yz=function(){var g=_.X.apply(this,arguments)||this;g.noBottomMargin=!1;g.overlayDensity=0;g.typographyBump=!1;g.extractOverlay=!1;g.extractActionBar=!1;return g};
_.A(yz,_.X);_.P=yz.prototype;
_.P.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]]"}}}}}};
_.P.ready=function(){var g=this;MHS(function(){g.isAttached&&g.adSlotMetadata&&jZ$(od(),g.adSlotMetadata)})};
_.P.attached=function(){if(this.adSlotMetadata){var g;if(this.adSlotMetadata===((g=this.data)==null?void 0:g.adSlotMetadata))Jc2(od(),this.adSlotMetadata);else{var u;_.Io(Error("Qh`"+this.adSlotMetadata+"`"+((u=this.data)==null?void 0:u.adSlotMetadata)))}}};
_.P.detached=function(){this.adSlotMetadata&&jZ$(od(),this.adSlotMetadata)};
_.P.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.P.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&jZ$(od(),this.adSlotMetadata),Jc2(od(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.z3.Object.defineProperties(yz.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var g,u,q=_.c((g=this.data)==null?void 0:(u=g.fulfillmentContent)==null?void 0:u.fulfilledLayout,_.kGW),Q;return(g=(Q=_.c(q==null?void 0:q.renderingContent,noa))==null?void 0:Q.layout)?g.toLowerCase().replace(/_/g,"-"):""}}});
yz.prototype.onAdSlotMetadataChanged=yz.prototype.onAdSlotMetadataChanged;yz.prototype.onTypographyBumpChanged=yz.prototype.onTypographyBumpChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],yz.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yz.prototype,"rendererBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],yz.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],yz.prototype,"noBottomMargin",void 0);_.Y([_.a(),_.K("design:type",Object)],yz.prototype,"overlayDensity",void 0);_.Y([_.a(),_.K("design:type",Object)],yz.prototype,"typographyBump",void 0);_.Y([_.a(),_.K("design:type",Object)],yz.prototype,"extractOverlay",void 0);_.Y([_.a(),_.K("design:type",Object)],yz.prototype,"extractActionBar",void 0);
_.Y([_.oE("ytd-in-feed-ad-layout-renderer"),_.K("design:type",HTMLElement)],yz.prototype,"inFeedAdLayoutRenderer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],yz.prototype,"layout",null);_.Y([_.k_("typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yz.prototype,"onTypographyBumpChanged",null);
_.Y([_.k_("data.adSlotMetadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yz.prototype,"onAdSlotMetadataChanged",null);_.Y([_.fE({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],yz);
_.T(yz,"ytd-ad-slot-renderer",function(){if(V1X!==void 0)return V1X;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return V1X=g},{mode:2});var XPb;var v4=function(){return _.X.apply(this,arguments)||this};
_.A(v4,_.X);_.P=v4.prototype;_.P.created=function(){this.activeView=new Tu(this.hostElement)};
_.P.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"}}}};
_.P.maybeComputeHref=function(){return null};
_.P.onTap=function(){};
_.P.onThumbnailContainerClick=function(g){this.onClick(g)};
_.P.onClick=function(g){var u,q=(u=this.data)==null?void 0:u.navigationEndpoint;q&&_.c(q,_.l1)&&(this.ytSparklesClickLocationBehavior.handleClick(q,g,!1),g.stopPropagation())};
_.P.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var g=_.N(this.data.impressionUrls),u=g.next();!u.done;u=g.next())u=u.value,jTJ(u,Myh(u));this.data.activeView&&hF(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",v4.JSC$16033_DEFAULT_CLICK_LOCATION_BEHAVIOR,v4.JSC$16033_CLICK_LOCATION_ID_MAP);this.thumbnail&&(g=this.thumbnail.getElementsByTagName("a"),g.length>0&&(g=g.namedItem("thumbnail"))&&g.removeAttribute("href"))}};
_.P.attached=function(){var g=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ye(g.activeView)})};
_.P.detached=function(){_.w("stop_av_measurement_on_detach")&&Ye(this.activeView)};
_.z3.Object.defineProperties(v4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
v4.prototype.dataChanged=v4.prototype.dataChanged;v4.prototype.onTap=v4.prototype.onTap;v4.JSC$16033_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
v4.JSC$16033_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"}];_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],v4.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],v4.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],v4.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Y([_.a({selector:_.J9}),_.K("design:type",Object)],v4.prototype,"isGridViewEnabled",void 0);_.Y([_.C("isGridViewEnabled"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],v4.prototype,"watchFeedBigThumbs",null);_.Y([_.C("isGridViewEnabled"),_.a({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],v4.prototype,"thumbnailWidth",null);_.Y([_.a(),_.K("design:type",Object)],v4.prototype,"data",void 0);
_.Y([_.oE("ytd-thumbnail"),_.K("design:type",HTMLElement)],v4.prototype,"thumbnail",void 0);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v4.prototype,"onTap",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v4.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],v4);
_.T(v4,"ytd-compact-promoted-video-renderer",function(){if(XPb!==void 0)return XPb;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return XPb=g},{mode:1});var rci;_.Ny("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Dy=function(){return _.X.apply(this,arguments)||this};
_.A(Dy,_.X);Dy.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Dy.prototype,"data",void 0);_.Y([_.fE({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Dy);
_.T(Dy,"ytd-search-pyv-renderer",function(){if(rci!==void 0)return rci;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return rci=g},{mode:1});var Wa0;_.Ny("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var py=function(){var g=_.X.apply(this,arguments)||this;g.roundedContainer=!0;g.JSC$16041_handleOpenPostCommentDialogActionAfterStamp=!1;g.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return g};
_.A(py,_.X);_.P=py.prototype;
_.P.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}}};
_.P.onStampFinished=function(){this.JSC$16041_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var g=_.Tr(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");g?g.openDialog():this.JSC$16041_handleOpenPostCommentDialogActionAfterStamp=!0};
_.P.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.P.computeHideBorder=function(){return this.isInEngagementPanel};
_.P.computeIsCompact=function(){return this.isInEngagementPanel};
_.P.computeUsesCompactLockup=function(g){return g==="BACKSTAGE_SURFACE_TYPE_HOME"||g==="BACKSTAGE_SURFACE_TYPE_SEARCH"||g==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||g==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||g==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||g==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeUsesFullLockup=function(){var g,u=(g=this.data)==null?void 0:g.post,q;g=(q=_.c(u,yHa))==null?void 0:q.surface;var Q;q=(Q=_.c(u,pj5))==null?void 0:Q.originalPost;var L;if(Q=g||((L=_.c(q,yHa))==null?void 0:L.surface))return!this.computeUsesCompactLockup(Q)&&this.useUpdatedRepostUi;var E;return((E=_.c(u,pj5))==null?void 0:E.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.z3.Object.defineProperties(py.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var g,u;return((u=_.c((g=this.data)==null?void 0:g.post,yHa))==null?void 0:u.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.useUpdatedRepostUi}}});
py.prototype.onYtCommentModerationPanelEmpty=py.prototype.onYtCommentModerationPanelEmpty;py.prototype.onStampFinished=py.prototype.onStampFinished;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],py.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],py.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],py.prototype,"roundedContainer",void 0);_.Y([_.a({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.K("design:type",Boolean)],py.prototype,"hideBorder",void 0);_.Y([_.a({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.K("design:type",Boolean)],py.prototype,"isCompact",void 0);
_.Y([_.a({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.K("design:type",Boolean)],py.prototype,"usesFullLockup",void 0);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],py.prototype,"onStampFinished",null);
_.Y([_.n6("ytd-comment-moderation-panel-empty"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],py.prototype,"onYtCommentModerationPanelEmpty",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],py.prototype,"isInEngagementPanel",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],py.prototype,"useUpdatedRepostUi",null);
_.Y([_.fE({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],py);
_.T(py,"ytd-backstage-post-thread-renderer",function(){if(Wa0!==void 0)return Wa0;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Wa0=g},{mode:1});var TYb;var JA=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(JA,_.X);JA.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
JA.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var g=this.data.thumbnail.thumbnails;this.isDarkTheme&&(g=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(g=_.Fh(g,24,void 0,"height"))?g:void 0}};
JA.prototype.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
JA.prototype.computeHasText=function(){var g;return!((g=this.data)==null||!g.text)};
_.z3.Object.defineProperties(JA.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.SO(this.bannerImageUrl))+'");'}}});
JA.prototype.computeHasText=JA.prototype.computeHasText;JA.prototype.computeBannerImageUrl=JA.prototype.computeBannerImageUrl;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],JA.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],JA.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],JA.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],JA.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",String)],JA.prototype,"bannerImageUrl",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.K("design:type",Boolean)],JA.prototype,"hasText",void 0);_.Y([_.k_("data","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JA.prototype,"computeBannerImageUrl",null);
_.Y([_.k_("data.text"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JA.prototype,"computeHasText",null);_.Y([_.C("bannerImageUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],JA.prototype,"bannerStyle",null);_.Y([_.fE({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],JA);
_.T(JA,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(TYb!==void 0)return TYb;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return TYb=g},{mode:1});var hH8;var jE=function(){return _.X.apply(this,arguments)||this};
_.A(jE,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],jE.prototype,"data",void 0);_.Y([_.fE({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],jE);
_.T(jE,"ytd-backstage-zero-state-renderer",function(){if(hH8!==void 0)return hH8;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return hH8=g},{mode:1});var YN5;var fy=function(){return _.X.apply(this,arguments)||this};
_.A(fy,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],fy.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],fy.prototype,"icon",void 0);_.Y([_.fE({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],fy);
_.T(fy,"ytd-post-filter-zero-state-renderer",function(){if(YN5!==void 0)return YN5;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return YN5=g},{mode:1});var OkX;var Kai={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},M7=function(){return _.X.apply(this,arguments)||this};
_.A(M7,_.X);M7.prototype.configureRendererStamper=function(){return Kai};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],M7.prototype,"rendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],M7.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],M7.prototype,"icon",void 0);_.Y([_.fE({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],M7);
_.T(M7,"ytd-post-scheduling-zero-state-renderer",function(){if(OkX!==void 0)return OkX;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return OkX=g},{mode:1});var xtn;var tA=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return g};
_.A(tA,_.X);tA.prototype.onTabsActivate=function(g){this.data&&this.data.tabs&&_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[g.detail.selected].navigationEndpoint})};
tA.prototype.shouldShowTotalCount=function(g){return g&&g.totalCount!==void 0};
tA.prototype.handleUpdatePostsTotalCountAction=function(g){var u=this.get(["data.tabs",1,"totalCount"]),q=this.get("updatePostsTotalCountAction.updateType",g);g=this.get("updatePostsTotalCountAction.number",g);u!==void 0&&q!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&g&&(q==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(u)+g):q==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(u)-g))};
_.z3.Object.defineProperties(tA.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var g=0,u=this.data.tabs.length;g<u;g++)if(this.data.tabs[g].selected)return g;return 0}}});
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],tA.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tA.prototype,"rendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tA.prototype,"data",void 0);_.Y([_.C("data.tabs"),_.K("design:type",Number),_.K("design:paramtypes",[])],tA.prototype,"selected",null);_.Y([_.fE({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],tA);
_.T(tA,"ytd-post-stream-filter-renderer",function(){if(xtn!==void 0)return xtn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return xtn=g},{mode:1});var BYx;var eE=function(){return _.X.apply(this,arguments)||this};
_.A(eE,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],eE.prototype,"kevlarBehaviors",void 0);_.Y([_.a(),_.K("design:type",Object)],eE.prototype,"data",void 0);_.Y([_.fE({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],eE);
_.T(eE,"ytd-channel-age-gate-renderer",function(){if(BYx!==void 0)return BYx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return BYx=g},{mode:1});var zHb;_.Ny("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var H4=function(){var g=_.X.apply(this,arguments)||this;g.data=null;return g};
_.A(H4,_.X);H4.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z3.Object.defineProperties(H4.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.data)==null?0:(u=g.title)==null?0:(q=u.runs)==null?0:q.length)?147:160}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],H4.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],H4.prototype,"imageSizePx",null);_.Y([_.fE({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],H4);
_.T(H4,"ytd-channel-owner-empty-state-renderer",function(){if(zHb!==void 0)return zHb;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return zHb=g},{mode:1});var nXR;var kab;var AA=function(){var g=_.X.apply(this,arguments)||this;g.boundSubmitSearch=function(){g.submitSearch()};
g.boundClearSearch=function(){g.clearSearch()};
return g};
_.A(AA,_.X);_.P=AA.prototype;_.P.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]]"}}}}}};
_.P.toggleClearButton=function(){this.hideClearButton=QHW||!this.input.value};
_.P.submitOnEnterKeyUp=function(g){g.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.P.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.P.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.P.submit=function(){_.hJ(this.hostElement,"search-query-changed",this.input.value)};
AA.prototype.toggleClearButton=AA.prototype.toggleClearButton;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],AA.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],AA.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],AA.prototype,"hideClearButton",void 0);_.Y([_.a(),_.K("design:type",Object)],AA.prototype,"boundSubmitSearch",void 0);_.Y([_.a(),_.K("design:type",Object)],AA.prototype,"boundClearSearch",void 0);_.Y([_.oE("#input"),_.K("design:type",Object)],AA.prototype,"input",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AA.prototype,"toggleClearButton",null);
_.Y([_.fE({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],AA);
_.T(AA,"ytd-channel-switcher-search-box-renderer",function(){if(kab!==void 0)return kab;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return kab=g},{mode:1});var SNZ;var Zy=function(){var g=_.X.apply(this,arguments)||this;g.boundSubmit=function(){g.submit()};
return g};
_.A(Zy,_.X);_.P=Zy.prototype;_.P.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"}}}}};
_.P.ready=function(){var g=this;this.form.addEventListener("submit",function(u){return g.onSubmit(u)})};
_.P.onSubmit=function(g){g.preventDefault();return!1};
_.P.toggleClearButton=function(){this.hideClearButton=QHW||!this.input.value};
_.P.submitOnEnterKeyUp=function(g){g.keyCode===13&&this.submit()};
_.P.submit=function(){var g=this.data.endpoint,u=(0,_.pH.unsafeClone)(g);_.c(u,_.kZ)?_.c(u,_.kZ).query=this.input.value:_.c(u,_.Sb)&&(_.c(u,_.Sb).query=this.input.value);var q=_.c(u.commandMetadata,_.S_);(q==null?0:q.url)?(q.url=_.u0(q.url,"query",this.input.value),_.hJ(this.hostElement,"yt-navigate",{endpoint:u})):_.c(u,hki)?(_.c(u,hki).channelSwitcherQuery=this.input.value,_.Bk().resolve(_.Gy).resolveCommand(u,{form:{element:this.hostElement}})):(g=Error("Rh`"+JSON.stringify(g)),_.Zf(g))};
_.P.getUrl=function(g){return this.get("commandMetadata.webCommandMetadata.url",g)};
Zy.prototype.toggleClearButton=Zy.prototype.toggleClearButton;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Zy.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Zy.prototype,"hideClearButton",void 0);
_.Y([_.a(),_.K("design:type",Object)],Zy.prototype,"boundSubmit",void 0);_.Y([_.oE("#form"),_.K("design:type",HTMLFormElement)],Zy.prototype,"form",void 0);_.Y([_.oE("#input"),_.K("design:type",Object)],Zy.prototype,"input",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zy.prototype,"toggleClearButton",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Zy);
_.T(Zy,"ytd-search-box-renderer",function(){if(SNZ!==void 0)return SNZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return SNZ=g},{mode:2});var lB=function(){var g=_.X.apply(this,arguments)||this;g.showSearchBox=!0;return g};
_.A(lB,_.X);lB.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],lB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],lB.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],lB.prototype,"showSearchBox",void 0);_.Y([_.fE({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],lB);
_.T(lB,"ytd-channel-switcher-header-renderer",function(){if(nXR!==void 0)return nXR;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return nXR=g},{mode:1});var oXW;var Utn;var IC=function(){var g=_.X.apply(this,arguments)||this;g.isDisplayed=!0;return g};
_.A(IC,_.X);_.P=IC.prototype;_.P.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.isDisplayed=!0};
_.P.computeType=function(g){return g||"UNKNOWN"};
_.P.onYtServiceRequestCompleted=function(g){g.stopPropagation();this.isDisplayed=!1};
_.P.onClose=function(){this.isDisplayed=!1};
IC.prototype.onYtServiceRequestCompleted=IC.prototype.onYtServiceRequestCompleted;IC.prototype.dataChanged=IC.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],IC.prototype,"data",void 0);
_.Y([_.a({computed:"computeType(data.type)",reflectToAttribute:!0}),_.K("design:type",String)],IC.prototype,"type",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],IC.prototype,"isDisplayed",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IC.prototype,"dataChanged",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],IC.prototype,"onYtServiceRequestCompleted",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],IC);
_.T(IC,"ytd-alert-with-button-renderer",function(){if(Utn!==void 0)return Utn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Utn=g},{mode:1});var iB=function(){var g=_.X.apply(this,arguments)||this;g.noResult=!1;g.enableAlertBanner=!1;g.dismissedAlertBanner=!1;g.hideCreateChannelButton=!1;g.boundDismissAlertBanner=function(){g.dismissAlertBanner()};
g.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return g};
_.A(iB,_.X);_.P=iB.prototype;_.P.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.P.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.P.updateChannelSwitcherAction=function(g){var u;g=(u=_.c(g,Td$))==null?void 0:u.page;_.c(g,Wm8)!==void 0&&(this.data=_.c(g,Wm8))};
_.P.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]]"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.searchQueryChanged=function(g,u){if(this.data&&this.data.contents&&this.data.contents.length){g=[];var q=[];this.hideCreateChannelButton=this.noResult=!1;for(var Q=document.querySelectorAll("ytd-account-item-renderer"),L=_.N(Q),E=L.next();!E.done;E=L.next())E=E.value,q.push(E),E.style.display="block";this.resetRightBorder(q);if(u){this.hideCreateChannelButton=!0;for(q=1;q<this.data.contents.length;q++)if(E=this.data.contents[q],_.c(E,r$Z)){var y=void 0,v=void 0;L=(y=_.c(E,r$Z))==null?void 0:(v=
y.accountName)==null?void 0:v.simpleText;v=y=void 0;E=(y=_.c(E,r$Z))==null?void 0:(v=y.channelHandle)==null?void 0:v.simpleText;(y=Q[q-1])&&L&&_.JT(L,u)?g.push(y):_.w("enable_handle_search_on_channel_switcher")&&y&&E&&_.JT(E.toString(),u.toString())?g.push(y):y.style.display="none"}g.length===0&&(this.noResult=!0);this.resetRightBorder(g)}}};
_.P.resetRightBorder=function(g){for(var u=0;u<g.length;u++)g[u].style.borderRight=!this.hideCreateChannelButton&&(u+2)%3===0||this.hideCreateChannelButton&&(u+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.P.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.P.setShowSearchBox=function(g){if(g&&g.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var u=0;u<g.contents.length;u++)_.c(g.contents[u],_.V5)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.P.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.z3.Object.defineProperties(iB.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null?0:g.contents)}}});
iB.prototype.onContinuationItemsUpdated=iB.prototype.onContinuationItemsUpdated;iB.prototype.searchQueryChanged=iB.prototype.searchQueryChanged;iB.prototype.onDataChanged=iB.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],iB.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],iB.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.i5),_.K("design:type",Object)],iB.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],iB.prototype,"data",void 0);_.Y([_.oE("ytd-channel-switcher-header-renderer"),_.K("design:type",Object)],iB.prototype,"channelSwitcherHeaderRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],iB.prototype,"noResult",void 0);
_.Y([_.a(),_.K("design:type",Object)],iB.prototype,"enableAlertBanner",void 0);_.Y([_.a(),_.K("design:type",Object)],iB.prototype,"dismissedAlertBanner",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],iB.prototype,"hideCreateChannelButton",void 0);_.Y([_.C("data.contents"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],iB.prototype,"isLoading",null);_.Y([_.a(),_.K("design:type",Object)],iB.prototype,"boundDismissAlertBanner",void 0);
_.Y([_.a({computed:"computeButtonOverride()"}),_.K("design:type",Object)],iB.prototype,"buttonOverride",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iB.prototype,"onDataChanged",null);_.Y([_.n6("search-query-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,String]),_.K("design:returntype")],iB.prototype,"searchQueryChanged",null);
_.Y([_.n6("yt-next-continuation-data-updated"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],iB.prototype,"onContinuationItemsUpdated",null);_.Y([_.fE({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],iB);
_.T(iB,"ytd-channel-switcher-page-renderer",function(){if(oXW!==void 0)return oXW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return oXW=g},{mode:1});var gmi;var uZ2;var Cy=function(){var g=_.X.apply(this,arguments)||this;g.images=[];g.selectedImageIndex=0;return g};
_.A(Cy,_.X);_.P=Cy.prototype;
_.P.ready=function(){_.Z1(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Z1(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Z1(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Z1(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.P.onThumbnailClick=function(g){if(g=g.event_.detail)this.selectedImageIndex=this.images.indexOf(g)};
_.P.updateImageThumbnails=function(g){g=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:g.event_.detail});this.images.splice(this.selectedImageIndex,1,g);this.images=[].concat(_.na(this.images))};
_.P.cancelImageRepositions=function(){this.selectedImageIndex=0;_.hJ(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.P.saveImageRepositions=function(){this.selectedImageIndex=0;_.hJ(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.z3.Object.defineProperties(Cy.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var g=this;return(this.images||[]).map(function(u,q){return{image:u,selected:q===g.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.oE("ytd-backstage-image-preview-renderer"),_.K("design:type",Object)],Cy.prototype,"imagePreviewContainer",void 0);_.Y([_.oE(".thumbnail-images-container"),_.K("design:type",HTMLElement)],Cy.prototype,"thumbnailImagesContainer",void 0);_.Y([_.a(),_.K("design:type",Array)],Cy.prototype,"images",void 0);
_.Y([_.a(),_.K("design:type",Object)],Cy.prototype,"repositionInstructions",void 0);_.Y([_.a(),_.K("design:type",Object)],Cy.prototype,"selectedImageIndex",void 0);_.Y([_.C("images","selectedImageIndex"),_.K("design:type",Array),_.K("design:paramtypes",[])],Cy.prototype,"thumbnailRendererDatas",null);_.Y([_.C("images","selectedImageIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],Cy.prototype,"selectedImageData",null);
_.Y([_.fE({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Cy);
_.Te()(Cy,"ytd-backstage-multi-image-reposition-renderer",function(){if(uZ2===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);uZ2=g}g=uZ2;return g},{allowedProps:["images",
"repositionInstructions"],mode:1});var bB=function(g,u){_.A5.call(this);this.uploadUrl=g;this.channelId=u;this.imagesUploadData=[]};
_.A(bB,_.A5);bB.prototype.getAllUploadStatuses=function(){var g=this,u,q,Q;return _.D(function(L){if(L.nextAddress==1)return L.yield(qsX(g),2);u=L.yieldResult;q=u.get("succeed");Q=u.get("failed");return L.return(q.concat(Q))})};
var LqR=function(g){var u,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(qsX(g),2);u=Q.yieldResult;q=u.get("failed");q.length>0&&QfH(g,q);return Q.return(g.getAllUploadStatuses())})},qsX=function(g){var u,q,Q,L,E,y,v;
return _.D(function(J){if(J.nextAddress==1)return u=new Map,J.yield(Promise.allSettled(g.imagesUploadData.map(function(f){return f.uploadPromise})),2);
q=J.yieldResult;Q=[];L=_.N(q);for(E=L.next();!E.done;E=L.next())y=E.value,y.status==="fulfilled"&&Q.push(y.value);v=g.imagesUploadData.map(function(f){return f.image}).filter(function(f){return Q.every(function(t){return t.id!==f.id})});
u.set("succeed",Q);u.set("failed",v);return J.return(u)})},QfH=function(g,u){u=_.N(u);
for(var q=u.next();!q.done;q=u.next()){var Q=g;q=q.value;EmZ(Q,q.id)>=0&&Q.cancel(q.id);var L=new PmX(q),E=_.l9x(Q.uploadUrl,{"X-YouTube-ChannelId":Q.channelId},q.imageBlob);L.transfer=E;L.uploadPromise=NMX(E,q);Q.imagesUploadData.push(L);E.run()}};
bB.prototype.cancel=function(g){var u=EmZ(this,g);u!==-1&&((u=this.imagesUploadData[u].transfer)&&u.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(q){return q.image.id!==g}))};
var EmZ=function(g,u){return g.imagesUploadData.findIndex(function(q){return q.image.id===u})},NMX=function(g,u){return new Promise(function(q,Q){g.listen("l",function(){var L=g.getResponseText();
L?(L=JSON.parse(L).encryptedBlobId,u.encryptedBlobId=L,q(u)):Q("upload failed")});
g.listen("n",function(){Q("upload failed")})})},PmX=function(g){this.image=g};var EWS=function(g,u,q,Q,L){this.id=g;this.imageBlob=u;this.localImageSrc=q;this.naturalWidth=Q;this.naturalHeight=L;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var sfi=[".jpeg",".jpg",".png"],df=function(){var g=_.X.apply(this,arguments)||this;g.showImagesPreview=!1;g.pollOptions=[];g.errorMessage="";g.optionPlaceholderText="";g.optionDefaultText="";g.JSC$16097_imageId=0;g.maxFileSizeMb=0;g.maxAspectRatio=0;g.invalidFileSizeError="";g.invalidAspectRatioError="";g.invalidFileTypeError="";g.imageSelector=new Yf(null,"single_file",sfi);return g};
_.A(df,_.X);_.P=df.prototype;_.P.ready=function(){_.Z1(this.imageSelector,"j",this.onImageSelect,!1,this);_.Z1(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Z1(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.P.dataChanged=function(){var g,u,q=_.c((g=this.data)==null?void 0:(u=g.cellTemplate)==null?void 0:u.onEmptyCellTap,w2i);if(q&&q.uploadUrl&&q.channelId){var Q;this.maxFileSizeMb=((Q=q.imageValidationInfo)==null?void 0:Q.maxFileSizeMb)||0;var L;this.maxAspectRatio=((L=q.imageValidationInfo)==null?void 0:L.allowedMaxAspectRatio)||0;var E;this.invalidFileSizeError=this.getSimpleString((E=this.data)==null?void 0:E.invalidFileSizeError);var y;this.invalidAspectRatioError=this.getSimpleString((y=this.data)==
null?void 0:y.invalidAspectRatioError);var v;this.invalidFileTypeError=this.getSimpleString((v=this.data)==null?void 0:v.invalidFileTypeError);this.uploadManager=new bB(q.uploadUrl,q.channelId)}};
_.P.onEditorInfoChange=function(){this.optionPlaceholderText=_.iR(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.iR(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.P.observeAddImageError=function(){this.errorMessage!==""&&_.hJ(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.P.onPollOptionsChange=function(){for(var g=!1,u=[],q=0;q<this.pollOptions.length;q++){var Q=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(q+1);this.pollOptions[q].placeholderText!==Q?(g=!0,u.push(Object.assign({},this.pollOptions[q],{placeholderText:Q}))):u.push(this.pollOptions[q])}g&&(this.pollOptions=u);this.isValid()?_.hJ(this.hostElement,"yt-commentbox-post-enable"):_.hJ(this.hostElement,"yt-commentbox-post-disable")};
_.P.createPollOptions=function(g){var u=[],q;g=(q=g==null?void 0:g.minPollOptions)!=null?q:0;for(q=0;q<g;q++)u.push(this.createPollOption());return u};
_.P.onImageSelect=function(g){var u=this,q,Q,L,E,y,v;return _.D(function(J){if(J.nextAddress==1){if(u.selectedImageIndex===void 0)return J.jumpTo(0);q=g.files[0];u.errorMessage="";Q=u.validateImage(q);if(Q!=="")return u.errorMessage=Q,J.return();L=new ik(u.maxAspectRatio,!1,!0);return J.yield(L.transform(q),3)}if(J.nextAddress!=4)return E=J.yieldResult,E.transformedData?E.invalidAspectRatio?(u.errorMessage=u.invalidAspectRatioError,J.return()):J.yield(PIm(u.JSC$16097_imageId,g.files[0],E.transformedData),
4):(u.errorMessage=u.invalidFileTypeError,J.return());y=J.yieldResult;u.JSC$16097_imageId++;QfH(u.uploadManager,[y]);v=Object.assign({},u.pollOptions[u.selectedImageIndex],{image:y});u.pollOptions.splice(u.selectedImageIndex,1,v);u.refreshPollOptions();_.hJ(u.hostElement,"yt-backstage-poll-image-select");_.Wx(J)})};
_.P.validateImage=function(g){return g.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.P.refreshPollOptions=function(){this.pollOptions=[].concat(_.na(this.pollOptions))};
_.P.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.na(this.pollOptions),[this.createPollOption()]))};
_.P.onRemovePollOption=function(g){var u=this.pollOptions[g.model.index];u&&u.image&&this.uploadManager.cancel(u.image.id);this.pollOptions.splice(g.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.hJ(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.P.onTextInput=function(){this.refreshPollOptions()};
_.P.onImageButtonClick=function(g){this.selectedImageIndex=g.model.index;this.imageSelector.click()};
_.P.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.P.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.P.saveImageRepositions=function(g){g=g.event_.detail;for(var u=0,q=[],Q=_.N(this.pollOptions),L=Q.next();!L.done;L=Q.next())L=L.value,L.image!==void 0?(L=Object.assign({},L,{image:g[u]}),q.push(L),u++):q.push(L);this.showImagesPreview=!1;this.pollOptions=[].concat(_.na(q))};
_.P.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 g=0,u=_.N(this.pollOptions),q=u.next();!q.done;q=u.next())if(q=q.value,q.optionText.trim()!==""||q.image!==void 0){if(!q.image||this.hasCustomOptionText&&q.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;g++}return g>=Number(this.editorInfo.minPollOptions)};
_.P.getAllUploadStatuses=function(){var g=this,u,q,Q,L;return _.D(function(E){if(E.nextAddress==1)return E.yield(g.uploadManager.getAllUploadStatuses(),2);u=E.yieldResult;q=_.N(u);for(Q=q.next();!Q.done;Q=q.next())if(L=Q.value,L.encryptedBlobId===void 0)return E.return(LqR(g.uploadManager));return E.return(u)})};
_.P.getPostCreateOptions=function(){for(var g=[],u=_.N(this.pollOptions),q=u.next();!q.done;q=u.next())q=q.value,q.image!==void 0&&g.push({text:this.hasCustomOptionText?q.optionText:q.placeholderText,image:q.image});return g};
_.P.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.P.createButtonRenderer=function(g,u){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:g,accessibilityData:{accessibilityData:{label:this.getSimpleString(g)}},isDisabled:u}};
_.P.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.P.computeThumbnailRendererData=function(g){return g?{image:g,selected:!1}:void 0};
_.P.getSimpleString=function(g){return _.iR(g)};
_.P.updateOptionTextFromBinding=function(g){if(g.target){var u=Array.from(_.Tr(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(g.target);if(u>=0){var q;this.pollOptions[u].optionText=(q=g.detail.value)!=null?q:""}}};
_.z3.Object.defineProperties(df.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var g,u;return this.pollOptions.length<((u=(g=this.editorInfo)==null?void 0:g.maxPollOptions)!=null?u:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(g){return g.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(g){return g.image}).map(function(g){return g.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(g){return g.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var g,u=(g=this.data)==null?void 0:g.addOptionButtonText;return u?this.createButtonRenderer(u,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var g,u=(g=this.data)==null?void 0:g.repositionImagesButtonLabel;return u?this.createButtonRenderer(u,!this.hasImages):void 0}}});
df.prototype.onPollOptionsChange=df.prototype.onPollOptionsChange;df.prototype.observeAddImageError=df.prototype.observeAddImageError;df.prototype.onEditorInfoChange=df.prototype.onEditorInfoChange;df.prototype.dataChanged=df.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.oE("ytd-backstage-multi-image-reposition-renderer"),_.K("design:type",Object)],df.prototype,"imageRepositionContainer",void 0);
_.Y([_.a(),_.K("design:type",Object)],df.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],df.prototype,"editorInfo",void 0);_.Y([_.a(),_.K("design:type",bB)],df.prototype,"uploadManager",void 0);_.Y([_.a(),_.K("design:type",Object)],df.prototype,"showImagesPreview",void 0);_.Y([_.a(),_.K("design:type",Array)],df.prototype,"pollOptions",void 0);_.Y([_.a(),_.K("design:type",Object)],df.prototype,"errorMessage",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],df.prototype,"dataChanged",null);_.Y([_.qm("editorInfo"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],df.prototype,"onEditorInfoChange",null);_.Y([_.k_("errorMessage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],df.prototype,"observeAddImageError",null);
_.Y([_.qm("pollOptions"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],df.prototype,"onPollOptionsChange",null);_.Y([_.C("pollOptions","editorInfo"),_.K("design:type",Object),_.K("design:paramtypes",[])],df.prototype,"isAllowedToAddOption",null);_.Y([_.C("pollOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],df.prototype,"hasImages",null);
_.Y([_.C("pollOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],df.prototype,"imagesToReposition",null);_.Y([_.C("pollOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],df.prototype,"hasCustomOptionText",null);_.Y([_.C("data","isAllowedToAddOption"),_.K("design:type",Object),_.K("design:paramtypes",[])],df.prototype,"addOptionButton",null);_.Y([_.C("data","hasImages"),_.K("design:type",Object),_.K("design:paramtypes",[])],df.prototype,"repositionImagesButton",null);
_.Y([_.fE({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],df);
_.T(df,"ytd-backstage-image-poll-editor-renderer",function(){if(gmi!==void 0)return gmi;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return gmi=g},{mode:2});var yU2={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 vmb;var F8=function(){var g=_.X.apply(this,arguments)||this;g.a11yConfig=yU2;g.imageDisplayOffsetTop=0;g.imageDisplayOffsetLeft=0;g.pickerDisplayOffsetTop=0;g.pickerDisplayOffsetLeft=0;g.showPreviewContainer=!0;g.startPicker=!1;g.repositionOptional=!1;g.editOnlyMode=!1;g.savedImageDisplayOffsetTop=0;g.savedImageDisplayOffsetLeft=0;return g};
_.A(F8,_.X);_.P=F8.prototype;_.P.created=function(){_.Ms.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(g){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){g.detail.keyboardEvent.preventDefault();var u=0,q=0,Q="";switch(g.detail.keyboardEvent.key){case "ArrowUp":NDJ(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Q=this.a11yConfig.reachBottomOfImage:u=this.imageHeight*.05*-1;break;case "ArrowDown":NDJ(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Q=this.a11yConfig.reachTopOfImage:
u=this.imageHeight*.05;break;case "ArrowLeft":NDJ(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Q=this.a11yConfig.reachRightOfImage:q=this.imageWidth*.05*-1;break;case "ArrowRight":NDJ(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Q=this.a11yConfig.reachLeftOfImage:q=this.imageWidth*.05}Q&&_.Ug(Q)&&_.hJ(this.hostElement,"iron-announce",{text:_.Ug(Q)});if(q||u)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+u)),g=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),g=_.Ug(this.a11yConfig.imageVerticalPosition,{x_percent:""+g,y_percent:""+(100-g)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+q)),g=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),g=_.Ug(this.a11yConfig.imageHorizontalPosition,{x_percent:""+g,y_percent:""+(100-g)})),g&&_.hJ(this.hostElement,"iron-announce",{text:g})}};
_.P.getPreviewPosition=function(g,u,q,Q){return Math.round(100*(g+u*.5-q)/Q)};
_.P.calculateDisplayPosition=function(){var g=this.imageData.naturalWidth,u=this.imageData.naturalHeight;this.displayScale=Math.max(200/g,200/u);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var q=g*this.displayScale*this.imageData.previewCoordinates.left,Q=u*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=u>g?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-q;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=g>u?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-Q;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=g*this.displayScale;this.imageHeight=u*this.displayScale};
_.P.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.P.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.P.getSignedPosition=function(g,u,q){return u==="X"&&_.FR("HTML_DIR")==="rtl"?q==="-"?g+"px":g*-1+"px":q==="-"?g*-1+"px":g+"px"};
_.P.pickerMove=function(g){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var u=this.pickerOffsetX-g.clientX,q=this.pickerOffsetY-g.clientY;this.pickerOffsetX=g.clientX;this.pickerOffsetY=g.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
q)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-u))}};
_.P.pickerMoveStart=function(g){this.startPicker=!0;this.pickerOffsetX=g.clientX;this.pickerOffsetY=g.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var g=this.generateCropPreview();g&&_.hJ(this.hostElement,"ytd-backstage-image-preview-coordinates-update",g)};
_.P.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.hJ(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.P.deleteImage=function(){_.hJ(this.hostElement,"ytd-backstage-image-preview-delete")};
_.P.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.P.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var g=this.generateCropPreview();g&&_.hJ(this.hostElement,"ytd-backstage-image-preview-coordinates-save",g)};
_.P.getPreviewOffset=function(g,u,q){return u&&g?(q==="X"&&_.FR("HTML_DIR")==="rtl"?300/u*g:300/u*g*-1)+"px":"0px"};
_.P.getSimpleText=function(g){return g?_.iR(g):""};
_.P.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}};
_.z3.Object.defineProperties(F8.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var g=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Ug(this.a11yConfig.imageVerticalPosition,{x_percent:""+g,y_percent:""+(100-g)})+"\n"+_.Ug(this.a11yConfig.verticalRepositionInstruction)}g=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Ug(this.a11yConfig.imageHorizontalPosition,{x_percent:""+g,y_percent:""+(100-g)})+"\n"+_.Ug(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 g,u,q=(g=this.instruction)==null?void 0:(u=g.previewInstruction)==null?void 0:u.editButtonLabel;return q?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:q,accessibilityData:{accessibilityData:{label:this.getSimpleText(q)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q,L=this.editOnlyMode?(g=this.instruction)==null?void 0:(u=g.editInstruction)==null?void 0:u.saveImagesButtonLabel:(q=this.instruction)==null?void 0:(Q=q.editInstruction)==null?void 0:Q.saveButtonLabel;return L?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:L,accessibilityData:{accessibilityData:{label:this.getSimpleText(L)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.instruction)==null?void 0:(u=g.previewInstruction)==null?void 0:u.deleteButtonLabel;return q?{size:"SIZE_SMALL",text:q,accessibilityData:{accessibilityData:{label:this.getSimpleText(q)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.instruction)==null?void 0:(u=g.editInstruction)==null?void 0:u.cancelButtonLabel;g=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return q?{style:g,size:"SIZE_SMALL",text:q,accessibilityData:{accessibilityData:{label:this.getSimpleText(q)}}}: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"}}});
F8.prototype.onEditOnlyModeUpdate=F8.prototype.onEditOnlyModeUpdate;F8.prototype.onImageChange=F8.prototype.onImageChange;_.Y([_.a(),_.K("design:type",EWS)],F8.prototype,"imageData",void 0);_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"instruction",void 0);_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"a11yConfig",void 0);_.Y([_.a(),_.K("design:type",Number)],F8.prototype,"imageWidth",void 0);_.Y([_.a(),_.K("design:type",Number)],F8.prototype,"imageHeight",void 0);
_.Y([_.a(),_.K("design:type",Number)],F8.prototype,"displayScale",void 0);_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"imageDisplayOffsetTop",void 0);_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"imageDisplayOffsetLeft",void 0);_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"pickerDisplayOffsetTop",void 0);_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"pickerDisplayOffsetLeft",void 0);_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"showPreviewContainer",void 0);
_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"startPicker",void 0);_.Y([_.a(),_.K("design:type",Number)],F8.prototype,"pickerOffsetX",void 0);_.Y([_.a(),_.K("design:type",Number)],F8.prototype,"pickerOffsetY",void 0);_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"repositionOptional",void 0);_.Y([_.a(),_.K("design:type",Object)],F8.prototype,"editOnlyMode",void 0);_.Y([_.oE("#picker-container"),_.K("design:type",HTMLElement)],F8.prototype,"JSC$16110_pickerContainer",void 0);
_.Y([_.oE("#picker"),_.K("design:type",HTMLElement)],F8.prototype,"picker",void 0);_.Y([_.oE("#preview-clipper"),_.K("design:type",HTMLElement)],F8.prototype,"previewClipper",void 0);_.Y([_.oE("#image-in-picker-background"),_.K("design:type",HTMLImageElement)],F8.prototype,"JSC$16110_imageInBackground",void 0);_.Y([_.oE("#image-in-picker"),_.K("design:type",HTMLImageElement)],F8.prototype,"JSC$16110_imageInPicker",void 0);
_.Y([_.oE("#image-in-preview-clipper"),_.K("design:type",HTMLImageElement)],F8.prototype,"JSC$16110_imageInPreviewClipper",void 0);_.Y([_.C("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],F8.prototype,"altLabelForImage",null);_.Y([_.C("imageHeight","imageWidth"),_.K("design:type",Number),_.K("design:paramtypes",[])],F8.prototype,"pickerSize",null);
_.Y([_.C("imageHeight","imageWidth"),_.K("design:type",Object),_.K("design:paramtypes",[])],F8.prototype,"imageOrientationStyle",null);_.Y([_.C("instruction"),_.K("design:type",Object),_.K("design:paramtypes",[])],F8.prototype,"editButton",null);_.Y([_.C("instruction","editOnlyMode"),_.K("design:type",Object),_.K("design:paramtypes",[])],F8.prototype,"saveButton",null);_.Y([_.C("instruction"),_.K("design:type",Object),_.K("design:paramtypes",[])],F8.prototype,"deleteButton",null);
_.Y([_.C("instruction","editOnlyMode"),_.K("design:type",Object),_.K("design:paramtypes",[])],F8.prototype,"cancelButton",null);_.Y([_.C("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.K("design:type",Number),_.K("design:paramtypes",[])],F8.prototype,"cropOffsetTop",null);_.Y([_.C("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.K("design:type",Number),_.K("design:paramtypes",[])],F8.prototype,"cropOffsetLeft",null);
_.Y([_.C("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],F8.prototype,"pickerBackgroundStyle",null);_.Y([_.C("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],F8.prototype,"pickerDisplayStyle",null);_.Y([_.C("cropOffsetLeft","cropOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],F8.prototype,"imageInPickerStyle",null);
_.Y([_.C("cropOffsetLeft","cropOffsetTop","pickerSize"),_.K("design:type",String),_.K("design:paramtypes",[])],F8.prototype,"previewClipperStyle",null);_.Y([_.qm("imageData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],F8.prototype,"onImageChange",null);_.Y([_.qm("editOnlyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],F8.prototype,"onEditOnlyModeUpdate",null);
_.Y([_.C("showPreviewContainer"),_.K("design:type",String),_.K("design:paramtypes",[])],F8.prototype,"pickerModeStyle",null);_.Y([_.fE({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],F8);
_.T(F8,"ytd-backstage-image-preview-renderer",function(){if(vmb!==void 0)return vmb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return vmb=g},{mode:1});var D90;var p02={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 JUn;var jf0;var mS=function(){var g=_.X.apply(this,arguments)||this;g.a11yConfig=p02;g.imageDisplayOffsetTop=0;g.imageDisplayOffsetLeft=0;g.pickerDisplayOffsetTop=0;g.pickerDisplayOffsetLeft=0;g.cropCoordinatesSaved=!1;g.previewSize=0;g.startPicker=!1;g.repositionOptional=!1;return g};
_.A(mS,_.X);_.P=mS.prototype;_.P.created=function(){_.Ms.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(g){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){g.detail.keyboardEvent.preventDefault();var u=0,q=0,Q="";switch(g.detail.keyboardEvent.key){case "ArrowUp":s$u(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Q=this.a11yConfig.reachBottomOfImage:u=this.imageHeight*.05*-1;break;case "ArrowDown":s$u(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Q=this.a11yConfig.reachTopOfImage:
u=this.imageHeight*.05;break;case "ArrowLeft":s$u(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Q=this.a11yConfig.reachRightOfImage:q=this.imageWidth*.05*-1;break;case "ArrowRight":s$u(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Q=this.a11yConfig.reachLeftOfImage:q=this.imageWidth*.05}Q&&_.Ug(Q)&&_.hJ(this.hostElement,"iron-announce",{text:_.Ug(Q)});if(q||u)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+u)),g=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),g=_.Ug(this.a11yConfig.imageVerticalPosition,{x_percent:""+g,y_percent:""+(100-g)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+q)),g=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),g=_.Ug(this.a11yConfig.imageHorizontalPosition,{x_percent:""+g,y_percent:""+(100-g)})),g&&_.hJ(this.hostElement,"iron-announce",{text:g})}};
_.P.getPreviewPosition=function(g,u,q,Q){return Math.round(100*(g+u*.5-q)/Q)};
_.P.displayImage=function(){var g=this.JSC$16121_pickerContainer.getBoundingClientRect().width,u=this.JSC$16121_pickerContainer.getBoundingClientRect().height,q=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),Q=this.JSC$16121_imageInBackground.naturalWidth,L=this.JSC$16121_imageInBackground.naturalHeight;this.displayScale=Math.max(q/Q,q/L);this.imageWidth=Q*this.displayScale;this.imageHeight=L*this.displayScale;this.pickerDisplayOffsetLeft=(g-q)/2;this.pickerDisplayOffsetTop=
(u-q)/2;this.imageDisplayOffsetLeft=L>Q?this.pickerDisplayOffsetLeft:(g-this.imageWidth)/2;this.imageDisplayOffsetTop=Q>L?this.pickerDisplayOffsetTop:(u-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.P.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16121_imageInBackground.src=this.imageData.toString(),this.JSC$16121_imageInPicker.src=this.imageData.toString(),this.JSC$16121_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.P.getSignedPosition=function(g,u,q){return u==="X"&&_.FR("HTML_DIR")==="rtl"?q==="-"?g+"px":g*-1+"px":q==="-"?g*-1+"px":g+"px"};
_.P.pickerMove=function(g){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var u=this.pickerOffsetX-g.clientX,q=this.pickerOffsetY-g.clientY;this.pickerOffsetX=g.clientX;this.pickerOffsetY=g.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
q)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-u))}};
_.P.pickerMoveStart=function(g){this.startPicker=!0;this.pickerOffsetX=g.clientX;this.pickerOffsetY=g.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.P.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.hJ(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.P.getPreviewOffset=function(g,u,q,Q){return u&&g&&q?(Q==="X"&&_.FR("HTML_DIR")==="rtl"?q/u*g:q/u*g*-1)+"px":"0px"};
_.P.getSimpleText=function(g){return g?_.iR(g):""};
_.P.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var g=this.cropOffsetTop/this.imageHeight,u=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,q=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,Q=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Tr(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.hJ(this.hostElement,"yt-img-crop-coordinates-update",{top:g,right:u,bottom:q,left:Q})}};
_.z3.Object.defineProperties(mS.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var g=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Ug(this.a11yConfig.imageVerticalPosition,{x_percent:""+g,y_percent:""+(100-g)})+"\n"+_.Ug(this.a11yConfig.verticalRepositionInstruction)}g=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Ug(this.a11yConfig.imageHorizontalPosition,{x_percent:""+g,y_percent:""+(100-g)})+"\n"+_.Ug(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 g,u=(g=this.learnMore.runs[0])==null?void 0:g.navigationEndpoint,q;return((q=_.c(u,_.ao))==null?void 0:q.url)||void 0}}}});
mS.prototype.onImageDataChange=mS.prototype.onImageDataChange;_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"imageData",void 0);_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"instruction",void 0);_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"a11yConfig",void 0);_.Y([_.a(),_.K("design:type",Number)],mS.prototype,"imageWidth",void 0);_.Y([_.a(),_.K("design:type",Number)],mS.prototype,"imageHeight",void 0);_.Y([_.a(),_.K("design:type",Number)],mS.prototype,"displayScale",void 0);
_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"imageDisplayOffsetTop",void 0);_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"imageDisplayOffsetLeft",void 0);_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"pickerDisplayOffsetTop",void 0);_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"pickerDisplayOffsetLeft",void 0);_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"cropCoordinatesSaved",void 0);_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"previewSize",void 0);
_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"startPicker",void 0);_.Y([_.a(),_.K("design:type",Number)],mS.prototype,"pickerOffsetX",void 0);_.Y([_.a(),_.K("design:type",Number)],mS.prototype,"pickerOffsetY",void 0);_.Y([_.a(),_.K("design:type",Object)],mS.prototype,"repositionOptional",void 0);_.Y([_.oE("#picker-container"),_.K("design:type",HTMLElement)],mS.prototype,"JSC$16121_pickerContainer",void 0);_.Y([_.oE("#picker"),_.K("design:type",HTMLElement)],mS.prototype,"picker",void 0);
_.Y([_.oE("#image-in-picker-background"),_.K("design:type",HTMLImageElement)],mS.prototype,"JSC$16121_imageInBackground",void 0);_.Y([_.oE("#image-in-picker"),_.K("design:type",HTMLImageElement)],mS.prototype,"JSC$16121_imageInPicker",void 0);_.Y([_.oE("#image-in-preview-clipper"),_.K("design:type",HTMLImageElement)],mS.prototype,"JSC$16121_imageInPreviewClipper",void 0);_.Y([_.oE("#full-image-as-preview"),_.K("design:type",HTMLImageElement)],mS.prototype,"imageAsPreview",void 0);
_.Y([_.C("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],mS.prototype,"altLabelForImage",null);_.Y([_.C("imageHeight","imageWidth"),_.K("design:type",Number),_.K("design:paramtypes",[])],mS.prototype,"pickerSize",null);_.Y([_.C("imageHeight","imageWidth"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"imageOrientationStyle",null);
_.Y([_.C("instruction.previewInstruction.editButtonLabel"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"editButton",null);_.Y([_.C("instruction.editInstruction.saveButtonLabel"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"saveButton",null);_.Y([_.C("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.K("design:type",Number),_.K("design:paramtypes",[])],mS.prototype,"cropOffsetTop",null);
_.Y([_.C("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.K("design:type",Number),_.K("design:paramtypes",[])],mS.prototype,"cropOffsetLeft",null);_.Y([_.C("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],mS.prototype,"pickerBackgroundStyle",null);_.Y([_.C("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],mS.prototype,"pickerDisplayStyle",null);
_.Y([_.C("cropOffsetLeft","cropOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],mS.prototype,"imageInPickerStyle",null);_.Y([_.C("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.K("design:type",String),_.K("design:paramtypes",[])],mS.prototype,"previewClipperStyle",null);_.Y([_.k_("imageData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mS.prototype,"onImageDataChange",null);
_.Y([_.C("cropCoordinatesSaved"),_.K("design:type",String),_.K("design:paramtypes",[])],mS.prototype,"pickerModeStyle",null);_.Y([_.C("instruction.editInstruction.learnMore"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"learnMore",null);_.Y([_.C("learnMore"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"learnMoreUrl",null);_.Y([_.jP({is:"yt-img-crop-picker",disableElementRegistration:!0})],mS);
_.T(mS,"yt-img-crop-picker",function(){if(jf0===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;JUn===void 0&&(JUn=document.createElement("template"));var Q=JUn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);jf0=g}g=jf0;return g},{mode:2});var aC=function(){var g=_.X.apply(this,arguments)||this;g.errorMessage="";g.hasPreview=!1;g.isBackstagePost=!1;g.dismissButtonOverrides={size:"XS"};return g};
_.A(aC,_.X);_.P=aC.prototype;_.P.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"}}}};
_.P.detached=function(){this.removeOverlay()};
_.P.setPreview=function(g){_.Tr(this.hostElement).querySelector("#preview-picker").imageData=g;this.hasPreview=!0;_.hJ(this.hostElement,"yt-backstage-image-select-preview")};
_.P.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var g=_.Tr(this.hostElement).querySelector("#dropzone");g.classList.remove("dragover");g.classList.remove("error");_.hJ(this.hostElement,"yt-backstage-image-select-cancel")};
_.P.setupOverlay=function(){var g=this.imageUploadEndpoint;this.removeOverlay();if(g&&g.imageValidationInfo){var u=_.Tr(this.hostElement).querySelector("#dropzone"),q=_.Tr(this.hostElement).querySelector("#select");this.overlay=new bk(g.uploadUrl,g.channelId,g.imageValidationInfo.maxFileSizeMb,g.imageValidationInfo.allowedMaxAspectRatio,u,q,!0);_.Z1(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Z1(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Z1(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Z1(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Z1(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.P.removeOverlay=function(){this.overlay&&(_.DB(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.DB(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.DB(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.DB(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.DB(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.P.onDragOver=function(g){var u=_.Tr(this.hostElement).querySelector("#dropzone");_.Y_(u,"dragover",g.value)};
_.P.onPreview=function(g){this.setPreview(g.value)};
_.P.onImageError=function(g){if(g.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var u;g=(u=this.data)==null?void 0:u.fileSizeError}else if(g.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var q;g=(q=this.data)==null?void 0:q.invalidError}else if(g.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var Q;g=(Q=this.data)==null?void 0:Q.invalidAspectRatioError}else return;this.errorMessage=_.iR(g);_.Tr(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.P.onImageAlert=function(g){this.onImageError(g)};
_.P.uploadPromise=function(){var g=this,u=this.overlay&&this.overlay.uploadPromise();if(u)return u.catch(function(){throw Error(g.data?_.iR(g.data.uploadFailureError):"");})};
_.z3.Object.defineProperties(aC.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var g,u;if((g=this.data)==null?0:(u=g.icon)==null?0:u.iconType)return _.x9(this.data.icon.iconType)}}});
aC.prototype.setupOverlay=aC.prototype.setupOverlay;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],aC.prototype,"rendererStamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],aC.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],aC.prototype,"imageUploadEndpoint",void 0);_.Y([_.a(),_.K("design:type",Object)],aC.prototype,"errorMessage",void 0);
_.Y([_.a(),_.K("design:type",bk)],aC.prototype,"overlay",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],aC.prototype,"hasPreview",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],aC.prototype,"isBackstagePost",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],aC.prototype,"selectionCancel",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],aC.prototype,"previewCancel",null);
_.Y([_.C("data.icon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],aC.prototype,"icon",null);_.Y([_.a(),_.K("design:type",Object)],aC.prototype,"dismissButtonOverrides",void 0);_.Y([_.k_("imageUploadEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aC.prototype,"setupOverlay",null);_.Y([_.fE({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],aC);
_.T(aC,"ytd-backstage-image-select-renderer",function(){if(D90!==void 0)return D90;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return D90=g},{mode:1});var fn$;var MD$;var Vz=function(){var g=_.X.apply(this,arguments)||this;g.selected=!1;return g};
_.A(Vz,_.X);_.P=Vz.prototype;_.P.computeSelected=function(g){return g==null?void 0:g.selected};
_.P.computeTransform=function(g,u,q){var Q,L,E=(L=(Q=this.imageContainer)==null?void 0:Q.getBoundingClientRect())!=null?L:{width:0,height:0};Q=Math.max(E.width/u,E.height/q);q=q*Q*g.top;return"translateX("+this.getSignedPosition(u*Q*g.left,"X","-")+") translateY("+this.getSignedPosition(q,"Y","-")+")"};
_.P.getSignedPosition=function(g,u,q){return u==="X"&&_.FR("HTML_DIR")==="rtl"?q==="-"?g+"px":g*-1+"px":q==="-"?g*-1+"px":g+"px"};
_.P.onClick=function(){var g;_.hJ(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(g=this.data)==null?void 0:g.image)};
_.P.onKeyPress=function(g){if(g.keyCode===13)this.onClick()};
_.z3.Object.defineProperties(Vz.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:(u=g.image)==null?void 0:u.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)!=null&&g.image){var u;g=(u=this.data)==null?void 0:u.image;return g.previewCoordinates.top!==0||g.previewCoordinates.left!==0?(u=this.computeTransform(g.previewCoordinates,g.naturalWidth,g.naturalHeight),g.naturalHeight>=g.naturalWidth?"width:inherit;transform:"+u+";":"height:inherit;transform:"+u+";"):g.naturalHeight>=g.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Vz.prototype.onKeyPress=Vz.prototype.onKeyPress;_.Y([_.oE(".image-container"),_.K("design:type",HTMLElement)],Vz.prototype,"imageContainer",void 0);_.Y([_.a(),_.K("design:type",Object)],Vz.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.K("design:type",Object)],Vz.prototype,"selected",void 0);_.Y([_.C("data.image"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vz.prototype,"thumbnailUrl",null);
_.Y([_.C("data.image","data.image.previewCoordinates"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vz.prototype,"thumbnailStyle",null);_.Y([_.n6("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Vz.prototype,"onKeyPress",null);_.Y([_.fE({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Vz);
_.Te()(Vz,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(MD$===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);MD$=g}g=MD$;return g},{allowedProps:["data"],
mode:2});var X8=function(g,u,q){q=q===void 0?!1:q;_.A5.call(this);var Q=this;this.dropZoneOverlay=new hO(g);this.selectOverlay=q?new Yf(u,"multiple_file",["image/*"]):new Yf(u,"single_file",["image/*"]);this.handler=new _.NV(this);_.z$(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(u,"click",function(){Q.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.A(X8,_.A5);X8.prototype.onChange=function(g){var u;(u=g.files)!=null&&u.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:g.files}))};var rf=function(){var g=_.X.apply(this,arguments)||this;g.addImageErrorMessage="";g.errorMessage="";g.images=[];g.selectedImageIndex=0;g.modern=_.w("web_modern_buttons");g.maxNumImagesPerPost=_.S8("max_num_images_per_post_web_ui");g.JSC$16136_imageId=0;return g};
_.A(rf,_.X);_.P=rf.prototype;_.P.created=function(){var g=this;this.JSC$16136_ytReorderableController=new _.dD2(100,function(u){g.handleDrop(u)})};
_.P.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.hJ(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.P.observeDragToReorder=function(){var g=this;if(this.showImagesPreview){var u,q=XQZ(_.O1.getInstance(),(u=this.data)==null?void 0:u.dragToReorderTooltip);_.Hv.addLowPriorityJob(function(){_.xJ(g.hostElement,q,g.thumbnailDragDropArea)})}};
_.P.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}}};
_.P.computeThumbnail=function(g){return(g==null?void 0:g.localImageSrc)||void 0};
_.P.onRendererstamperFinished=function(){_.FOo(this.JSC$16136_ytReorderableController,_.Tr(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Tr(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.P.handleDrop=function(g){var u=g.currDragItem;if(u!=null&&u.data){g=this.images[this.selectedImageIndex];var q=u.data.image,Q=this.images.indexOf(q)||0;u=_.Vq(u.parentNode.children,u);this.images.splice(Q,1);this.images.splice(u,0,q);this.images=[].concat(_.na(this.images));this.selectedImageIndex=this.images.indexOf(g)}};
_.P.setUpImagePicker=function(){var g=this.imageUploadEndpoint;g&&g.imageValidationInfo&&(this.uploadManager=new bB(g.uploadUrl,g.channelId),this.initialPicker||(this.initialPicker=new X8(this.dropzone,this.selectLink,!0),_.Z1(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new X8(this.addImageButtonContainer,this.addImageSelectButton),_.Z1(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Z1(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Z1(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Z1(_.Tr(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.P.detached=function(){this.initialPicker&&(_.DB(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.DB(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.UM(this.JSC$16136_ytReorderableController)};
_.P.onInitialSelectImages=function(g){var u=this;return _.D(function(q){return q.yield(u.onSelectImages(g,!1),0)})};
_.P.onAddImage=function(g){var u=this;return _.D(function(q){return q.yield(u.onSelectImages(g,!0),0)})};
_.P.onSelectImages=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x;return _.D(function(k){switch(k.nextAddress){case 1:u?q.addImageErrorMessage="":(q.images=[],q.errorMessage="");Q=g.detail;L=q.validateImages([].concat(_.na(Q)));if(L!=="")return u?q.addImageErrorMessage=L:q.errorMessage=L,k.return();E=[].concat(_.na(Q)).map(function(LZ){return(new ik(q.maxAspectRatio,!1,!0)).transform(LZ)});
return k.yield(Promise.allSettled(E),2);case 2:y=k.yieldResult,v=_.N(y.entries()),J=v.next();case 3:if(J.done){k.jumpTo(5);break}f=J.value;t=_.N(f);e=t.next().value;G=t.next().value;R=e;H=G;if(H.status!=="fulfilled"){F=d=l=void 0;u?q.addImageErrorMessage=_.iR((l=q.data)==null?void 0:l.invalidError):q.errorMessage=q.errorMessage===""?_.iR((d=q.data)==null?void 0:d.invalidError):_.iR((F=q.data)==null?void 0:F.multiFileError);k.jumpTo(4);break}V=H.value;V.cropped&&_.hJ(q.hostElement,"yt-backstage-multi-image-cropped");
if(V.invalidAspectRatio){W=O=z=void 0;u?q.addImageErrorMessage=_.iR((z=q.data)==null?void 0:z.invalidAspectRatioError):q.errorMessage=q.errorMessage===""?_.iR((O=q.data)==null?void 0:O.invalidAspectRatioError):_.iR((W=q.data)==null?void 0:W.multiFileError);k.jumpTo(4);break}return k.yield(PIm(q.JSC$16136_imageId,g.detail[R],V.transformedData),8);case 8:x=k.yieldResult,q.images.push(x),q.JSC$16136_imageId++;case 4:J=v.next();k.jumpTo(3);break;case 5:if(q.errorMessage!==""||q.addImageErrorMessage!==
"")return k.return();u?QfH(q.uploadManager,[q.images[q.images.length-1]]):QfH(q.uploadManager,q.images);q.images=[].concat(_.na(q.images));q.selectedImageIndex=u?Math.max(q.images.length-1,0):0;_.hJ(q.hostElement,"yt-backstage-multi-image-select");_.Wx(k)}})};
_.P.onThumbnailClick=function(g){if(g=g.event_.detail)this.selectedImageIndex=this.images.indexOf(g)};
_.P.validateImages=function(g){if(g.length>this.maxNumImagesPerPost){var u;return _.iR((u=this.data)==null?void 0:u.multiImageExceedMaxImageCountError)}var q=1048576*this.maxFileSizeMb;g=g.filter(function(E){return E.size>q}).length;
if(g===0)return"";var Q,L;g=g>1?(Q=this.data)==null?void 0:Q.multiFileError:(L=this.data)==null?void 0:L.fileSizeError;return _.iR(g)};
_.P.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.na(this.images));this.selectedImageIndex=0};
_.P.repositionImage=function(g){this.images[this.selectedImageIndex].previewCoordinates=g.event_.detail;this.images=[].concat(_.na(this.images))};
_.P.getAllUploadStatuses=function(){var g=this,u,q,Q,L;return _.D(function(E){if(E.nextAddress==1)return E.yield(g.uploadManager.getAllUploadStatuses(),2);u=E.yieldResult;q=_.N(u);for(Q=q.next();!Q.done;Q=q.next())if(L=Q.value,L.encryptedBlobId===void 0)return E.return(LqR(g.uploadManager));return E.return(u)})};
_.P.hasImages=function(){return this.images.length>0};
_.P.cancel=function(){for(var g=this.uploadManager,u=_.N(g.imagesUploadData),q=u.next();!q.done;q=u.next())g.cancel(q.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.hJ(this.hostElement,"yt-backstage-multi-image-cancel")};
_.z3.Object.defineProperties(rf.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.imageUploadEndpoint)==null?void 0:(u=g.imageValidationInfo)==null?void 0:u.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.imageUploadEndpoint)==null?void 0:(u=g.imageValidationInfo)==null?void 0:u.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var g,u;if((g=this.data)==null?0:(u=g.icon)==null?0:u.iconType)return _.x9(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.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 g=this;return(this.images||[]).map(function(u,q){return{renderer:{image:u,selected:q===g.selectedImageIndex}}})}}});
rf.prototype.setUpImagePicker=rf.prototype.setUpImagePicker;rf.prototype.onRendererstamperFinished=rf.prototype.onRendererstamperFinished;rf.prototype.observeDragToReorder=rf.prototype.observeDragToReorder;rf.prototype.observeAddImageError=rf.prototype.observeAddImageError;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],rf.prototype,"rendererStamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);
_.Y([_.oE("#dropzone"),_.K("design:type",HTMLElement)],rf.prototype,"dropzone",void 0);_.Y([_.oE("#select-link"),_.K("design:type",HTMLElement)],rf.prototype,"selectLink",void 0);_.Y([_.oE("#thumbnail-drag-drop-area"),_.K("design:type",HTMLElement)],rf.prototype,"thumbnailDragDropArea",void 0);_.Y([_.oE("#add-image-button-container"),_.K("design:type",HTMLElement)],rf.prototype,"addImageButtonContainer",void 0);
_.Y([_.oE("#add-image-button"),_.K("design:type",HTMLElement)],rf.prototype,"addImageSelectButton",void 0);_.Y([_.oE("#image-preview-container"),_.K("design:type",Object)],rf.prototype,"imagePreviewContainer",void 0);_.Y([_.a(),_.K("design:type",Object)],rf.prototype,"addImageErrorMessage",void 0);_.Y([_.a(),_.K("design:type",Object)],rf.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],rf.prototype,"errorMessage",void 0);
_.Y([_.a(),_.K("design:type",Object)],rf.prototype,"imageUploadEndpoint",void 0);_.Y([_.a(),_.K("design:type",Array)],rf.prototype,"images",void 0);_.Y([_.a(),_.K("design:type",X8)],rf.prototype,"initialPicker",void 0);_.Y([_.a(),_.K("design:type",X8)],rf.prototype,"addImagePicker",void 0);_.Y([_.a(),_.K("design:type",bB)],rf.prototype,"uploadManager",void 0);_.Y([_.a(),_.K("design:type",Object)],rf.prototype,"selectedImageIndex",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rf.prototype,"modern",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rf.prototype,"maxNumImagesPerPost",void 0);_.Y([_.C("imageUploadEndpoint"),_.K("design:type",Number),_.K("design:paramtypes",[])],rf.prototype,"maxAspectRatio",null);_.Y([_.C("imageUploadEndpoint"),_.K("design:type",Number),_.K("design:paramtypes",[])],rf.prototype,"maxFileSizeMb",null);
_.Y([_.C("data.icon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],rf.prototype,"dropIcon",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rf.prototype,"selectionCancel",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rf.prototype,"previewCancel",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rf.prototype,"dataForAddImageButton",null);
_.Y([_.C("errorMessage"),_.K("design:type",String),_.K("design:paramtypes",[])],rf.prototype,"dropzoneClass",null);_.Y([_.C("images"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rf.prototype,"showImagesPreview",null);_.Y([_.C("images"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rf.prototype,"containMaxImages",null);_.Y([_.k_("addImageErrorMessage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rf.prototype,"observeAddImageError",null);
_.Y([_.k_("showImagesPreview"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rf.prototype,"observeDragToReorder",null);_.Y([_.C("images","selectedImageIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],rf.prototype,"selectedImageData",null);_.Y([_.C("images","selectedImageIndex"),_.K("design:type",Array),_.K("design:paramtypes",[])],rf.prototype,"thumbnailRenderers",null);
_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rf.prototype,"onRendererstamperFinished",null);_.Y([_.k_("imageUploadEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rf.prototype,"setUpImagePicker",null);_.Y([_.fE({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],rf);
_.T(rf,"ytd-backstage-multi-image-select-renderer",function(){if(fn$!==void 0)return fn$;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return fn$=g},{mode:1});var tDn;var ej0;var GEi;var W4=function(){var g=_.X.apply(this,arguments)||this;g.boundCaptureFocus=function(u){g.onCaptureFocus(u)};
return g};
_.A(W4,_.X);_.P=W4.prototype;_.P.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.P.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.P.onCaptureFocus=function(g){_.C6(g).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.P.getIconType=function(g){return g?"yt-icons:"+g.toLowerCase():null};
_.P.onSelect=function(){var g;if((g=this.data)==null?0:g.onSelectCommand)if(_.w("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var u;((u=_.c(this.data.onSelectCommand.commandMetadata,_.S_))==null?0:u.url)?_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.Bk().resolve(_.Gy).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.z3.Object.defineProperties(W4.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.iR(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}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],W4.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],W4.prototype,"data",void 0);_.Y([_.oE("#item"),_.K("design:type",HTMLElement)],W4.prototype,"item",void 0);_.Y([_.C("data.label"),_.K("design:type",String),_.K("design:paramtypes",[])],W4.prototype,"label",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],W4.prototype,"value",null);_.Y([_.fE({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],W4);
_.T(W4,"ytd-privacy-dropdown-item-renderer",function(){if(GEi!==void 0)return GEi;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return GEi=g},{mode:1});var T7=function(){var g=_.X.apply(this,arguments)||this;g.value="";g.label="";g.disabled=!1;return g};
_.A(T7,_.X);_.P=T7.prototype;_.P.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"}}}};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.P.dataChanged=function(){this.reset()};
_.P.valueChanged=function(){var g;if(this.value&&(g=this.data)!=null&&g.entries){g=_.N(this.data.entries);for(var u=g.next();!u.done;u=g.next())if((u=this.getRendererForEntry(u.value))&&this.getItemRendererValue(u)===this.value){this.label=this.ytComponentBehavior.getSimpleString(u.label);break}}};
_.P.setInitialLabel=function(){if(this.data&&this.data.entries)for(var g=_.N(this.data.entries),u=g.next();!u.done;u=g.next())if(u=this.getRendererForEntry(u.value)){if(u.isSelected){this.label=this.ytComponentBehavior.getSimpleString(u.label);break}this.data.label&&(this.label=this.data.label)}};
_.P.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var g=_.N(this.data.entries),u=g.next();!u.done;u=g.next()){u=this.getRendererForEntry(u.value);var q=void 0;if((q=u)==null?0:q.isSelected)return this.getItemRendererValue(u)||-1}return-1};
_.P.getItemRendererValue=function(g){return"stringValue"in g||"int32Value"in g?g.stringValue||g.int32Value||null:null};
_.P.getRendererForEntry=function(g){return g.dropdownItemRenderer||g.privacyDropdownItemRenderer||g.navigationDropdownItemRenderer||null};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("value-changed",this.value))};
_.P.updateValueFromBinding=function(g){this.value=g.detail.value};
T7.prototype.valueChangedForBinding=T7.prototype.valueChangedForBinding;T7.prototype.valueChanged=T7.prototype.valueChanged;T7.prototype.dataChanged=T7.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],T7.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],T7.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],T7.prototype,"value",void 0);_.Y([_.a(),_.K("design:type",Object)],T7.prototype,"label",void 0);_.Y([_.oE("#entries"),_.K("design:type",Object)],T7.prototype,"entries",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],T7.prototype,"disabled",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T7.prototype,"dataChanged",null);
_.Y([_.qm("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T7.prototype,"valueChanged",null);_.Y([_.k_("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T7.prototype,"valueChangedForBinding",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],T7);
_.T(T7,"ytd-flat-dropdown-renderer",function(){if(ej0!==void 0)return ej0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ej0=g},{mode:1});var $9$;var hA=function(){var g=_.X.apply(this,arguments)||this;g.quizOptions=[];g.explanationPlaceholderText="";g.optionPlaceholderText="";g.correctAnswerIndex=-1;g.isMarkAnswerTooltipShown=!1;g.timer=0;return g};
_.A(hA,_.X);_.P=hA.prototype;_.P.dataChanged=function(){this.optionPlaceholderText=_.iR(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.iR(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.P.onMarkCorrectAnswer=function(g){var u,q=((u=this.quizOptions[this.correctAnswerIndex])==null?void 0:u.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[g.model.index]=Object.assign({},this.quizOptions[g.model.index],{explanationText:q,isCorrect:!0});this.correctAnswerIndex=g.model.index;this.quizOptions=[].concat(_.na(this.quizOptions))};
_.P.updatePlaceholderTexts=function(){for(var g=!1,u=[],q=0;q<this.quizOptions.length;q++){var Q=this.optionPlaceholderText+" "+(q+1),L=void 0;((L=this.quizOptions[q])==null?void 0:L.placeholderText)!==Q?(g=!0,u.push(Object.assign({},this.quizOptions[q],{placeholderText:Q}))):u.push(this.quizOptions[q])}g&&(this.quizOptions=u);this.isValid()?_.hJ(this.hostElement,"yt-commentbox-post-enable"):_.hJ(this.hostElement,"yt-commentbox-post-disable")};
_.P.getSimpleString=function(g){return _.iR(g)};
_.P.createQuizOptions=function(g){var u=[],q;g=(q=g==null?void 0:g.minQuizOptions)!=null?q:0;for(q=0;q<g;q++)u.push(this.createQuizOption());return u};
_.P.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.na(this.quizOptions),[this.createQuizOption()]))};
_.P.onInput=function(){this.quizOptions=[].concat(_.na(this.quizOptions))};
_.P.onExplanationInput=function(){_.hJ(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.P.onRemoveQuizOption=function(g){this.quizOptions.splice(g.model.index,1);g.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:g.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.na(this.quizOptions));this.quizOptions.length===0&&_.hJ(this.hostElement,"yt-quiz-attachment-dismiss")};
_.P.updateHintRenderer=function(){var g=this;clearTimeout(this.timer);this.timer=setTimeout(function(){g.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.P.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var g=0,u=0,q=_.N(this.quizOptions),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var L=void 0;if(((L=Q.optionText)==null?void 0:L.trim())!==""||Q.isCorrect){Q.isCorrect&&u++;L=void 0;if(this.hasCustomOptionText&&((L=Q.optionText)==null?void 0:L.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;g++}}return g>=
Number(this.editorInfo.minQuizOptions)&&u===1};
_.P.getPostCreateOptions=function(){for(var g=[],u=_.N(this.quizOptions),q=u.next();!q.done;q=u.next()){q=q.value;var Q=void 0;((Q=q.optionText)==null?void 0:Q.trim())!==""&&g.push({pollOption:{text:q.optionText,explanation:q.explanationText},isCorrect:q.isCorrect})}return g};
_.P.getExplanationText=function(){var g;return((g=this.quizOptions[this.correctAnswerIndex])==null?void 0:g.explanationText)||""};
_.P.maybeDisplayMarkAnswerEduToolTip=function(){var g,u,q,Q,L,E,y;this.shouldShowMarkAnswerTooltip()&&((g=this.editorInfo)==null?0:(u=g.markAnswerButton)==null?0:(q=u.buttonRenderer)==null?0:(Q=q.hint)==null?0:(L=Q.hintRenderer)==null?0:(E=L.content)==null?0:(y=E.bubbleHintRenderer)==null?0:y.text)&&(_.O1.getInstance(),g=KI(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,(g==null?void 0:g.length)>0&&this.optionSelectors&&_.nE(g[0],this.optionSelectors[0]))};
_.P.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var g=0,u=_.N(this.quizOptions),q=u.next();!q.done;q=u.next()){q=q.value;var Q=void 0;((Q=q.optionText)==null?void 0:Q.trim())!==""&&g++;if(q.isCorrect)return!1}return g<2?!1:!0};
_.P.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.P.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.P.updateOptionTextFromBinding=function(g){if(g.target){var u=Array.from(_.Tr(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(g.target);if(u>=0){var q;this.quizOptions[u].optionText=(q=g.detail.value)!=null?q:""}}};
_.z3.Object.defineProperties(hA.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.editorInfo)==null?void 0:(u=g.addOptionButton)==null?void 0:u.buttonRenderer;q&&(q.style="STYLE_SUGGESTIVE",q.size="SIZE_SMALL",q.isDisabled=!this.isAllowedToAddOption);return(q==null?0:q.text)?q:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var g,u;return this.quizOptions.length<((u=(g=this.editorInfo)==null?void 0:g.maxQuizOptions)!=null?u:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(g){var u;return(u=g.optionText)==null?void 0:u.trim()})}}});
hA.prototype.updatePlaceholderTexts=hA.prototype.updatePlaceholderTexts;hA.prototype.dataChanged=hA.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],hA.prototype,"editorInfo",void 0);_.Y([_.a(),_.K("design:type",Array)],hA.prototype,"quizOptions",void 0);_.Y([_.a(),_.K("design:type",Object)],hA.prototype,"explanationPlaceholderText",void 0);_.Y([_.Ux(".option-selector-button"),_.K("design:type",Array)],hA.prototype,"optionSelectors",void 0);
_.Y([_.qm("editorInfo"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hA.prototype,"dataChanged",null);_.Y([_.C("editorInfo","isAllowedToAddOption","quizOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],hA.prototype,"addAnswerButton",null);_.Y([_.C("editorInfo","quizOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],hA.prototype,"isAllowedToAddOption",null);
_.Y([_.qm("quizOptions"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hA.prototype,"updatePlaceholderTexts",null);_.Y([_.C("quizOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],hA.prototype,"hasCustomOptionText",null);_.Y([_.fE({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],hA);
_.T(hA,"ytd-backstage-quiz-editor-renderer",function(){if($9$!==void 0)return $9$;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return $9$=g},{mode:2});var RjX;var w02=(zk.FIRSTDAYOFWEEK+1)%7;var cU2;var H5Z=[],AUi=0,Z5R=0;AUi=0;Z5R=24;if(.25*(Z5R-AUi)<0)cU2=[];else{for(var lno=AUi;lno<Z5R;lno+=.25)H5Z.push(lno);cU2=H5Z}var InR=cU2.map(function(g){g=g*60*60;return{secondsSinceMidnight:g,text:(new lR(7)).format(new Date(0,0,0,0,0,g))}});var i5W;var YD=function(){var g=_.X.apply(this,arguments)||this;g.skipNextOpenDialog=!1;g.errorMessage="";g.previousMonthLabel=_.Ug("PREVIOUS_MONTH_LABEL");g.nextMonthLabel=_.Ug("NEXT_MONTH_LABEL");return g};
_.A(YD,_.X);_.P=YD.prototype;_.P.attached=function(){var g=this,u=new MutationObserver(function(){g.JSC$16178_calendarMain.scrollHeight>0&&(u.disconnect(),g.calendarConfig&&g.calendarConfig.selectedDate&&g.scrollToDate())});
u.observe(this.JSC$16178_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){u.disconnect()},1E3)};
_.P.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.P.onDateTextChange=function(){if(this.calendarConfig){var g=this.validateDateText();g.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(g.details)):this.textbox.setAttribute("invalid","")}};
_.P.handleDayClick=function(g){g.model.day.date&&(this.commitDate(g.model.day.date),this.dialog.close())};
_.P.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var g=tqZ(this.calendarConfig.selectedDate,this.renderData);g!==void 0&&this.JSC$16178_calendarMain.scrollToIndex(g)}};
_.P.scrollToNextMonth=function(){this.JSC$16178_calendarMain.scrollToIndex(this.JSC$16178_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$16178_calendarMain.firstVisibleIndex===0&&this.JSC$16178_calendarMain.scrollTo(0,0);this.JSC$16178_calendarMain.scrollToIndex(this.JSC$16178_calendarMain.firstVisibleIndex-1)};
_.P.onFormSubmit=function(g){g.preventDefault();this.calendarConfig&&(g=this.validateDateText(),g.isValid&&(this.commitDate(g.details),this.dialog.close()))};
_.P.onEscOrClickingOutside=function(g){g=g.detail.path&&!!g.detail.path.length&&g.detail.path[0];if(g.classList.contains("ytd-calendar-date-picker")){g===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var u=0;u<this.dropdownButton.children.length;u++)this.dropdownButton.children[u]===g&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}g=this.textbox.value!==this.dateText;u=this.validateDateText();g&&u.isValid&&this.commitDate(u.details);this.dialog.close();this.textbox.value=
this.dateText};
_.P.commitDate=function(g){this.calendarConfig&&(this.set("calendarConfig.selectedDate",g),_.hJ(this.hostElement,"ytd-calendar-date-selected",g))};
_.P.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var g=this.textbox.value;var u=new Date;g=(new VqF(2)).parse(g,u,{validate:!0})===g.length?fjf(u):void 0;if(!g)return this.errorMessage=_.Ug("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};u=this.calendarConfig.start;var q=this.calendarConfig.end;if(vWk(g,u))return this.errorMessage=_.Ug("ENTER_DATE_OR_LATER",{allowed_date:j$h(u)}),{isValid:!1,details:void 0};if(vWk(q,g))return this.errorMessage=
_.Ug("ENTER_DATE_OR_EARLIER",{allowed_date:j$h(q)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:g}};
_.z3.Object.defineProperties(YD.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?j$h(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var g=this.calendarConfig,u=[],q=0;q<7;q++)u.push(zk.NARROWWEEKDAYS[(q+w02)%7]);q=[];for(var Q=new Date(g.start.year,g.start.month);Q.getFullYear()<g.end.year||Q.getFullYear()===g.end.year&&Q.getMonth()<=g.end.month;){var L=q,E=L.push,y=Q.getFullYear(),v=Q.getMonth(),J=g,f=void 0,t=[],e=Object.freeze({extraCssClass:"invisible",debugClass:""}),G=new Date(y,v),R=fjf(G);G=G.getDay();for(var H=fjf(new Date);R.month===
v;){G!==w02&&f||(f=Array.from({length:7}).fill(e),t.push(f));var l={date:{year:y,month:v,day:R.day},extraCssClass:"",debugClass:""};J.selectedDate&&l.date&&ylT(l.date,J.selectedDate)&&(l.extraCssClass+=" selected");if(vWk(R,J.start)||vWk(J.end,R))l.extraCssClass+=" disabled";ylT(R,H)&&(l.extraCssClass+=" today");l.extraCssClass=l.extraCssClass.trim();f[(G-w02+7)%7]=l;R=pfm(R);G=(G+1)%7}E.call(L,{weeks:t,monthLabel:zk.SHORTMONTHS[v]+" "+y,year:y,month:v,monthLabelExtraCssClass:t[0][2]===e?"shift-down-label":
""});Q.setMonth(Q.getMonth()+1)}return{months:q,daysOfWeekLabel:u}}}}});
YD.prototype.onEscOrClickingOutside=YD.prototype.onEscOrClickingOutside;YD.prototype.scrollToDate=YD.prototype.scrollToDate;_.Y([_.a(),_.K("design:type",Object)],YD.prototype,"calendarConfig",void 0);_.Y([_.a(),_.K("design:type",Object)],YD.prototype,"skipNextOpenDialog",void 0);_.Y([_.a(),_.K("design:type",Object)],YD.prototype,"errorMessage",void 0);_.Y([_.a(),_.K("design:type",Object)],YD.prototype,"previousMonthLabel",void 0);
_.Y([_.a(),_.K("design:type",Object)],YD.prototype,"nextMonthLabel",void 0);_.Y([_.oE("#textbox"),_.K("design:type",HTMLInputElement)],YD.prototype,"textbox",void 0);_.Y([_.oE("#calendar-dialog"),_.K("design:type",Object)],YD.prototype,"dialog",void 0);_.Y([_.oE("#calendar-main"),_.K("design:type",Object)],YD.prototype,"JSC$16178_calendarMain",void 0);_.Y([_.oE("#date-picker"),_.K("design:type",HTMLElement)],YD.prototype,"dropdownButton",void 0);
_.Y([_.C("calendarConfig.selectedDate"),_.K("design:type",String),_.K("design:paramtypes",[])],YD.prototype,"dateText",null);_.Y([_.C("calendarConfig","calendarConfig.selectedDate"),_.K("design:type",Object),_.K("design:paramtypes",[])],YD.prototype,"renderData",null);_.Y([_.k_("renderData","calendarConfig.selectedDate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YD.prototype,"scrollToDate",null);
_.Y([_.n6("iron-overlay-canceled"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],YD.prototype,"onEscOrClickingOutside",null);_.Y([_.jP({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],YD);
_.T(YD,"ytd-calendar-date-picker",function(){if(i5W!==void 0)return i5W;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return i5W=g},{mode:2});var Cmx=_.Ug("UTC_OFFSET_FORMAT",{utc_offset:(new lR("Z")).format(new Date)}),b5o=(new Date).getTimezoneOffset()*-60,d9o=new Date,Fqn,m9Z=Zs(d9o.getTimezoneOffset());Fqn=J92(fco(m9Z,d9o));var anx=_.Ug("LOCAL_TIME_GMT_LABEL",{gmt_text:Fqn.replace("+0","+").replace("-0","-").replace(":00","")}),O$=function(){var g=_.X.apply(this,arguments)||this;g.selectedTimeIndex=0;g.selectedTimezoneIndex=0;g.timeOfDayOptions=InR;return g};
_.A(O$,_.X);_.P=O$.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var g=Jlm();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=g,this.selectedTimeIndex=0;else{var u=MqF(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},g,{selectedDate:u.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(q){return q.secondsSinceMidnight===u.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.P.onDatePicked=function(g){this.selectedDate=g.detail};
_.P.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.hJ(this.hostElement,"ytd-date-time-selection-cancelled")};
_.P.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var g=this.selectedDate;g=new Date(g.year,g.month,g.day);_.hJ(this.hostElement,"ytd-date-time-selection-update",Math.floor(g.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+g.getTimezoneOffset()*60))}};
_.P.getTimezoneFormat=function(g){return g.localizedDisplayText?g.localizedDisplayText:_.Ug("TIMEZONE_FORMAT",{utc_offset_text:""+g.localizedUtcOffset,city_name:""+g.localizedName})};
_.P.updateSelectedTimeIndexFromBinding=function(g){this.selectedTimeIndex=g.detail.value};
_.P.updateSelectedTimezoneIndexFromBinding=function(g){this.selectedTimezoneIndex=g.detail.value};
_.z3.Object.defineProperties(O$.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g=this.data.timezoneOptions;var u={name:"Etc/Unknown",localizedName:_.Ug("LOCAL_TIME_LABEL"),localizedUtcOffset:Cmx,utcOffsetSec:""+b5o,localizedDisplayText:anx};g?g.length&&g[0].name!==u.name&&(g[0].localizedDisplayText||(u.localizedDisplayText=""),g.unshift(u)):g=[u];return g}}},
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]}}});
O$.prototype.onDateTimeTimezoneChange=O$.prototype.onDateTimeTimezoneChange;O$.prototype.onDatePicked=O$.prototype.onDatePicked;O$.prototype.updateDefaultSelectedValue=O$.prototype.updateDefaultSelectedValue;_.Y([_.a(),_.K("design:type",Object)],O$.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],O$.prototype,"calendarConfig",void 0);_.Y([_.a(),_.K("design:type",Object)],O$.prototype,"selectedDate",void 0);_.Y([_.a(),_.K("design:type",Object)],O$.prototype,"selectedTimeIndex",void 0);
_.Y([_.a(),_.K("design:type",Object)],O$.prototype,"selectedTimezoneIndex",void 0);_.Y([_.oE("#time-listbox"),_.K("design:type",Object)],O$.prototype,"timeListBox",void 0);_.Y([_.oE("#timezone-listbox"),_.K("design:type",Object)],O$.prototype,"timezoneListBox",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],O$.prototype,"rendererStamperBehavior",void 0);_.Y([_.C("data.timezoneOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],O$.prototype,"timeZones",null);
_.Y([_.qm("data","timeZones"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O$.prototype,"updateDefaultSelectedValue",null);_.Y([_.C("selectedTimezoneIndex","timeZones"),_.K("design:type",Object),_.K("design:paramtypes",[])],O$.prototype,"selectedTimezone",null);_.Y([_.C("selectedTimeIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],O$.prototype,"selectedTime",null);
_.Y([_.n6("ytd-calendar-date-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],O$.prototype,"onDatePicked",null);_.Y([_.k_("selectedTimezone","selectedTime","selectedDate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O$.prototype,"onDateTimeTimezoneChange",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],O$);
_.T(O$,"ytd-date-time-picker-renderer",function(){if(RjX!==void 0)return RjX;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return RjX=g},{mode:1});var VDn;var Ky=function(){var g=_.X.apply(this,arguments)||this;g.boundOnTapDismissButton=function(){g.dismissTapHandler()};
g.dismissButtonOverrides={size:"XS"};return g};
_.A(Ky,_.X);Ky.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}}}}}};
Ky.prototype.dismissTapHandler=function(){_.hJ(this.hostElement,"yt-backstage-attachment-dismissed")};
Ky.prototype.computeAttachmentType=function(g){return g?g.backstageImageRenderer?"image":g.videoRenderer?"video":"none":"none"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ky.prototype,"attachmentPreview",void 0);_.Y([_.a(),_.K("design:type",Object)],Ky.prototype,"dismissButton",void 0);_.Y([_.a(),_.K("design:type",Object)],Ky.prototype,"boundOnTapDismissButton",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ky.prototype,"dismissButtonOverrides",void 0);_.Y([_.a({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.K("design:type",String)],Ky.prototype,"attachmentType",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Ky);
_.T(Ky,"ytd-backstage-dismissable-attachment",function(){if(VDn!==void 0)return VDn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return VDn=g},{mode:1});var X0o;var xD=function(){var g=_.X.apply(this,arguments)||this;g.selectedVideoId=void 0;g.picker=void 0;g.dismissButtonOverrides={size:"XS"};g.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return g};
_.A(xD,_.X);_.P=xD.prototype;_.P.onServiceRequestCompleted=function(g){g.stopPropagation()};
_.P.handleAddVideoPreviewAction=function(g){g=this.get("addVideoPreviewAction",g);this.onGetVideoPreviewSuccess(g)};
_.P.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}}}}}};
_.P.onLaunchVideoPicker=function(g){var u=this,q=_.iR(this.get("addVideoLinkAction.title",g)),Q=this.get("addVideoLinkAction.onePickHostId",g);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",g);Q&&(this.picker||(q=_.IF0(_.kVf(Q).setTitle(q).addView(HfZ()).addView(cjZ()),function(L){u.onPickVideo(L)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",g)||q.addView("youtube"),this.picker=q.build()),this.picker.setVisible(!0))};
_.P.onPickVideo=function(g){if(g)if(g.action==="cancel")_.hJ(this.hostElement,"yt-video-link-button-cancel");else if(g.action==="picked"){g=g.docs;if(!g||g.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(g=(g==null?0:g.length)?g[0]:void 0)?g.id:void 0;this.setVideoPreview()}};
_.P.setVideoPreview=function(){var g=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){g.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.P.onGetVideoPreviewSuccess=function(g){if(g&&g.videoPreview&&g.cancelButton)this.videoPreview=g.videoPreview,this.cancelButton=g.cancelButton,_.hJ(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.P.onGetVideoPreviewError=function(){this.cancel()};
_.P.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.hJ(this.hostElement,"yt-video-link-cancel")};
_.P.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
xD.prototype.onServiceRequestCompleted=xD.prototype.onServiceRequestCompleted;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],xD.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],xD.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],xD.prototype,"videoPreview",void 0);_.Y([_.a(),_.K("design:type",Object)],xD.prototype,"cancelButton",void 0);_.Y([_.a(),_.K("design:type",Object)],xD.prototype,"getVideoPreviewCommand",void 0);_.Y([_.a(),_.K("design:type",Object)],xD.prototype,"dismissButtonOverrides",void 0);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xD.prototype,"onServiceRequestCompleted",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],xD);
_.T(xD,"ytd-backstage-video-link-attachment",function(){if(X0o!==void 0)return X0o;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return X0o=g},{mode:1});var rUZ;var WqZ;var TMR;var B4=function(){return _.X.apply(this,arguments)||this};
_.A(B4,_.X);B4.prototype.dataChanged=function(){this.active=!1};
B4.prototype.onTap=function(){_.hJ(this.hostElement,"yt-select-emoji-suggestion",this.data)};
B4.prototype.identity=function(g){return g};
_.z3.Object.defineProperties(B4.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q;if((g=this.data)==null?0:(u=g.image)==null?0:(q=u.thumbnails)==null?0:(Q=q[0])==null?0:Q.url)return g=this.data.image.thumbnails[0].url,g.startsWith("data:image/svg+xml")?Kv(g):_.SO(g)}}});
B4.prototype.dataChanged=B4.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],B4.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],B4.prototype,"active",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],B4.prototype,"dataChanged",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],B4.prototype,"imageSrc",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],B4);
_.T(B4,"ytd-emoji-suggestion",function(){if(TMR!==void 0)return TMR;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return TMR=g},{mode:1});var hjo=/.*([:@#].*?)$/,z7=function(){var g=_.X.apply(this,arguments)||this;g.suggestions=[];g.suggestionIndex=-1;g.JSC$16206_lastSuggestionRange=null;return g};
_.A(z7,_.X);_.P=z7.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.P.getSuggestions=function(g){var u=[],q=DzH(this.emojiManager,g.substr(0,3));if(q)for(var Q in q)if(Q.toLocaleLowerCase().indexOf(g)===0){var L=q[Q];if(L&&L.emojiId){L=Rz(this.emojiManager,L.emojiId);var E=void 0,y=void 0,v=void 0,J=void 0,f=((E=L)==null?0:E.isCustomEmoji)?(y=L)==null?void 0:(v=y.shortcuts)==null?void 0:v[0]:(J=L)==null?void 0:J.emojiId;E=void 0;u.push({suggestion:{image:(E=L)==null?void 0:E.image,alt:f,text:Q}});if(u.length>=64)break}}return u?u.sort(function(t,e){return e.suggestion.text<
t.suggestion.text?-1:e.suggestion.text===t.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(g){_.hJ(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16206_lastSuggestionRange,text:g.alt});this.dropdown.opened=!1};
_.P.updateSuggestionsAtCaret=function(g){this.updateSuggestions(g,this.retrieveTextBeforeRange(g))};
_.P.offsetStartOfRangeBy=function(g,u){g.startOffset>=u&&g.setStart(g.startContainer,g.startOffset-u)};
_.P.updateSuggestions=function(g,u){var q=this;this.JSC$16206_lastSuggestionRange&&(this.JSC$16206_lastSuggestionRange.detach(),this.JSC$16206_lastSuggestionRange=null);if((u=hjo.exec(u))&&u.length&&(u=u[u.length-1].toLocaleLowerCase(),u.length>2||u===":_")&&(this.offsetStartOfRangeBy(g,u.length),this.JSC$16206_lastSuggestionRange=g,(g=this.getSuggestions(u))&&g.length)){this.suggestions=g;_.xt(this,function(){q.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(g.length-1);return}this.dropdown.opened=!1};
_.P.onKeyDown=function(g){if(this.dropdown.opened)switch(g.key){case "Escape":this.dropdown.opened=!1;g.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);g.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);g.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),g.preventDefault()}};
_.P.onKeyUp=function(g,u){switch(g.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(u);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(u)}};
_.P.onKeyPress=function(g){g.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),g.preventDefault())};
_.P.changeSuggestionIndex=function(g){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(g+this.suggestions.length)%this.suggestions.length,g=this.dropdownContent.children[this.suggestionIndex],g.active=!0,this.dropdownContent.scrollTop=g.offsetTop)};
_.P.retrieveTextBeforeRange=function(g){var u=g.startContainer;return u&&u.nodeType===Node.TEXT_NODE?u.textContent.substr(0,g.startOffset):""};
z7.prototype.onKeyPress=z7.prototype.onKeyPress;z7.prototype.onKeyUp=z7.prototype.onKeyUp;z7.prototype.onKeyDown=z7.prototype.onKeyDown;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Array)],z7.prototype,"suggestions",void 0);_.Y([_.a(),_.K("design:type",_.GR)],z7.prototype,"emojiManager",void 0);_.Y([_.a(),_.K("design:type",Number)],z7.prototype,"verticalSuggestionsOffset",void 0);
_.Y([_.oE("#dropdown"),_.K("design:type",Object)],z7.prototype,"dropdown",void 0);_.Y([_.oE("#dropdown-content"),_.K("design:type",HTMLDivElement)],z7.prototype,"dropdownContent",void 0);_.Y([_.n6("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],z7.prototype,"onKeyDown",null);_.Y([_.n6("keyup"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent,Range]),_.K("design:returntype")],z7.prototype,"onKeyUp",null);
_.Y([_.n6("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],z7.prototype,"onKeyPress",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-emoji-input"})],z7);
_.T(z7,"ytd-emoji-input",function(){if(WqZ!==void 0)return WqZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return WqZ=g},{mode:2});var Ysn;var ny=function(){var g=_.X.apply(this,arguments)||this;g.hasMaxOptions=!1;return g};
_.A(ny,_.X);_.P=ny.prototype;_.P.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.P.setPrefilledChoices=function(g){var u=this;this.set("pollOptions",[]);var q;for(q=0;q<Math.min(g.length,this.data.maxPollOptions);q++)this.push("pollOptions",g[q].substring(0,this.data.maxPollOptionChars));for(;q<this.data.minPollOptions;q++)this.push("pollOptions","");this.hasMaxOptions=q>=this.data.maxPollOptions;_.xt(this,function(){for(var Q=u.pollOptions,L=_.Tr(u.hostElement).querySelectorAll(".poll-option-input"),E=0;E<L.length;E++)L[E].value=Q[E]})};
_.P.focusChanged=function(){_.x_(this.hostElement)};
_.P.onInput=function(){var g=this;_.c$(this,"onInput",function(){g.isValid()?_.hJ(g.hostElement,"yt-commentbox-post-enable"):_.hJ(g.hostElement,"yt-commentbox-post-disable")},300)};
_.P.setPollOptions=function(){var g=[],u,q=((u=this.data)==null?0:u.minPollOptions)?this.data.minPollOptions:0;for(u=0;u<q;u++)g.push("");return g};
_.P.addPollOption=function(){var g=this;_.hJ(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Hv.addLowPriorityJob(function(){var u;(u=_.Tr(g.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||u.focus()})};
_.P.onRemovePollOption=function(g){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.hJ(this.hostElement,"yt-poll-attachment-dismiss")):(g=this.repeat.indexForElement(g.target.parentNode),g!==null&&(this.splice("pollOptions",g,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.hJ(this.hostElement,"yt-commentbox-post-enable"))))};
_.P.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.P.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var g=0,u=this.pollOptions.length;g<u;g++)if(this.pollOptions[g].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.P.getPollOptions=function(){return this.pollOptions};
_.P.setPollOptionsFromInputs=function(){for(var g=_.Tr(this.hostElement).querySelectorAll(".poll-option-input"),u=0;u<g.length;u++)this.pollOptions[u]=g[u].value.trim()};
_.P.clearPollOptions=function(){var g=_.Tr(this.hostElement).querySelectorAll(".poll-option-input");g=_.N(g);for(var u=g.next();!u.done;u=g.next())u.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.P.getSimpleString=function(g){return _.iR(g)};
_.P.updateValueFromBinding=function(g){if(g.target&&this.pollOptions){var u=Array.from(_.Tr(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(g.target);if(u>=0){var q;this.pollOptions[u]=(q=g.detail.value)!=null?q:"";this.notifyPath("pollOptions."+u)}}};
ny.prototype.dataChanged=ny.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ny.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Array)],ny.prototype,"pollOptions",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ny.prototype,"hasMaxOptions",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ny.prototype,"enableCreationBox",void 0);
_.Y([_.oE("#repeat"),_.K("design:type",v$)],ny.prototype,"repeat",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ny.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-poll-attachment"})],ny);
_.T(ny,"ytd-poll-attachment",function(){if(Ysn!==void 0)return Ysn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Ysn=g},{mode:2});var O5o;var Kqa;var x9$;var BM5;var kD=function(){return _.X.apply(this,arguments)||this};
_.A(kD,_.X);_.z3.Object.defineProperties(kD.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kD.prototype,"rendererBehaviors",void 0);_.Y([_.a(),_.K("design:type",Object)],kD.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],kD.prototype,"focused",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("focused"),_.K("design:type",Object),_.K("design:paramtypes",[])],kD.prototype,"ariaSelected",null);_.Y([_.jP({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],kD);
_.T(kD,"yt-user-mention-suggestion-renderer",function(){if(BM5===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;x9$===void 0&&(x9$=document.createElement("template"));var Q=x9$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);BM5=g}g=BM5;return g},{mode:2});var zjH;var nmW;var SE=function(){var g=_.X.apply(this,arguments)||this;g.focusedSuggestionIndex=-1;return g};
_.A(SE,_.X);_.P=SE.prototype;_.P.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.P.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.P.setFocusedSuggestionIndex=function(g){!this.data||!this.data.suggestions||g<0||g>=this.data.suggestions.length||(this.focusedSuggestionIndex=g,g=this.getSuggestionId(g),this._setFocusedSuggestionId(g))};
_.P.advanceSuggestion=function(g){this.focusedSuggestionIndex===-1||g!==-1&&g!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+g),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.P.ensureSuggestionVisible=function(g){g=this.getSuggestionId(g);g=_.Tr(this.hostElement).querySelector("[id="+g+"]");g!=null&&(g.offsetTop<this.hostElement.scrollTop?g.scrollIntoView(!0):g.offsetTop+g.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&g.scrollIntoView(!1))};
_.P.getSuggestionId=function(g){return"user-mention-suggestion-"+g};
_.P.onSuggestionTap=function(g){var u=_.c(g.model.item,tBa);this.ytRendererBehavior.logExplicitClick(u);_.hJ(this.hostElement,"yt-user-mention-suggestion-selected",{data:u,index:g.model.index})};
_.P.onSuggestionMouseMove=function(g){g.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(g.model.index)};
_.P.isSuggestionFocused=function(g,u){return g===u};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("focused-suggestion-id-changed",this.focusedSuggestionId))};
SE.prototype.focusedSuggestionIdChangedForBinding=SE.prototype.focusedSuggestionIdChangedForBinding;SE.prototype.onDomChange=SE.prototype.onDomChange;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],SE.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],SE.prototype,"focusedSuggestionIndex",void 0);_.Y([_.a({readOnly:!0}),_.K("design:type",String)],SE.prototype,"focusedSuggestionId",void 0);
_.Y([_.n6("dom-change"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],SE.prototype,"onDomChange",null);_.Y([_.k_("focusedSuggestionId"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SE.prototype,"focusedSuggestionIdChangedForBinding",null);_.Y([_.jP({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],SE);
_.T(SE,"yt-user-mention-suggestions-dropdown",function(){if(nmW===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;zjH===void 0&&(zjH=document.createElement("template"));var Q=zjH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);nmW=g}g=nmW;return g},{mode:2});var oC=function(){var g=_.X.apply(this,arguments)||this;g.suggestionsResponse=null;g.activeMention=null;g.selectionChangeListener=g.onSelectionChange.bind(g);g.handlesEnabled=_.w("enable_handles_in_mention_suggest_posts");g.handlesInMentionSuggestionsEnabled=_.w("handles_in_mention_suggest_posts");g.zeroPrefixMentionSuggestionEnabled=_.w("enable_zero_prefix_mention_suggestion_web");g.pendingQuery=null;g.flowNonce=null;return g};
_.A(oC,_.X);_.P=oC.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.P.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.P.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.P.hasSuggestions=function(g){return!!(g&&g.suggestions&&g.suggestions.length>0)};
_.P.onInput=function(){var g=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var u=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),q=this.activeMention.JSC$11657_getText().slice(-1)===" ",Q=this.activeMention.JSC$11657_getText().slice(-2,-1)===" ",L="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11657_getText().slice(-2,
-1))>=0;L=this.zeroPrefixMentionSuggestionEnabled&&L;if(this.activeMention.isCollapsed()||(u||Q||L)&&q)this.cancelActiveMention();else{var E=this.activeMention.JSC$11657_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.c$(this,"requestSuggestions",function(){g.requestSuggestions(E)},100)}}}};
_.P.onServiceRequestSent=function(g){g.stopPropagation()};
_.P.onServiceRequestCompleted=function(g){g.stopPropagation();g=g.detail.data;g.query&&(!this.pendingQuery||this.pendingQuery!==g.query)||!this.zeroPrefixMentionSuggestionEnabled&&g.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=g,this.hasSuggestions(g)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.P.onServiceRequestError=function(g){g.stopPropagation()};
_.P.onUserMentionSuggestionSelected=function(g){this.selectSuggestion(g.detail.data,g.detail.index)};
_.P.onSelectionChange=function(){if(this.activeMention){var g=_.QZ(),u=this.activeMention.JSC$11657_containsRange(g);g=g&&this.containsHelper(this.dropdown,g.getContainer());u||g||this.cancelActiveMention()}};
_.P.containsHelper=function(g,u){var q;if(((q=window.ShadyDOM)==null?void 0:q.noPatch)===!0)return g.contains(u);for(;u;){if(u===g)return!0;u=u instanceof ShadowRoot?u.host:u.parentNode}return!1};
_.P.maybeStartSuggest=function(){var g=_.QZ();if(g&&g.isCollapsed()){var u=g.JSC$11657_getStartNode(),q=g.JSC$11657_getStartOffset();if(u instanceof Text&&!(q<1)){var Q=u.textContent;!(Q=Q&&Q.charAt(q-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(Q)<0||(this.activeMention=_.NM(u,q-1,g.JSC$11657_getEndNode(),g.JSC$11657_getEndOffset()),this.flowNonce=D4(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.P.updateActiveMention=function(){if(this.activeMention){var g=_.QZ();g&&g.isCollapsed()&&(this.activeMention=_.NM(this.activeMention.JSC$11657_getStartNode(),this.activeMention.JSC$11657_getStartOffset(),g.JSC$11657_getEndNode(),g.JSC$11657_getEndOffset()))}};
_.P.requestSuggestions=function(g){if(this.activeMention){var u={suggestions_query:g};this.pendingQuery=g;_.KV(this.hostElement,[this.suggestionsEndpoint,u])}};
_.P.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()};
_.P.focusPreviousSuggestion=function(g){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),g.preventDefault())};
_.P.focusNextSuggestion=function(g){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),g.preventDefault())};
_.P.selectFocusedSuggestion=function(g){if(this.hasSuggestions(this.suggestionsResponse)){var u=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.c(u,tBa)&&(this.selectSuggestion(_.c(u,tBa),this.dropdown.focusedSuggestionIndex),g.preventDefault())}};
_.P.selectSuggestion=function(g,u){if(g){var q=this.activeMention;if(q){var Q=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&g.handle?_.Ay(Q,"\u00a0\u2068@"+g.handle+"\u2069\u00a0"):this.handlesEnabled?_.Ay(Q,"\u00a0"+g.displayName+"\u00a0"):_.Ay(Q,"\u00a0@"+g.displayName+"\u00a0");u8(Q,"/channel/"+g.channelId);Q.classList.add("yt-formatted-string","yt-simple-endpoint");Q.setAttribute("spellcheck","false");q.isCollapsed()||q.JSC$11657_removeContents();q.insertNode(Q,!0);g=document.createTextNode(" ");
Q.parentNode.insertBefore(g,Q.nextSibling);window.getSelection().collapse(g,1);u={suggestionSelected:{suggestionIndex:u}};if(this.zeroPrefixMentionSuggestionEnabled){var L;u.suggestionSelected.isZeroPrefix=((L=this.suggestionsResponse)==null?void 0:L.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",u);this.cancelActiveMention();_.hJ(this.hostElement,"yt-mention-inserted")}}};
_.P.getPositionTarget=function(g){return g&&g.getBrowserRangeObject()};
_.P.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.P.onFocusedSuggestionIdChanged=function(g){var u=_.LDS(this.hostElement)[0];u&&(g.detail.value?u.setAttribute("aria-activedescendant",g.detail.value):u.removeAttribute("aria-activedescendant"))};
_.P.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.P.logGELEvent=function(g,u){g={eventType:g,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};u&&(g=Object.assign(g,u));_.H6("userMentionAutoCompleteBoxEvent",g)};
oC.prototype.onDomChange=oC.prototype.onDomChange;oC.prototype.onUserMentionSuggestionSelected=oC.prototype.onUserMentionSuggestionSelected;oC.prototype.onServiceRequestError=oC.prototype.onServiceRequestError;oC.prototype.onServiceRequestCompleted=oC.prototype.onServiceRequestCompleted;oC.prototype.onServiceRequestSent=oC.prototype.onServiceRequestSent;oC.prototype.onInput=oC.prototype.onInput;_.Y([_.I(_.n8),_.K("design:type",Object)],oC.prototype,"ironA11yKeysBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],oC.prototype,"suggestionsEndpoint",void 0);_.Y([_.a(),_.K("design:type",Object)],oC.prototype,"suggestionsResponse",void 0);_.Y([_.a(),_.K("design:type",Object)],oC.prototype,"activeMention",void 0);_.Y([_.oE("#dropdown"),_.K("design:type",Object)],oC.prototype,"dropdown",void 0);_.Y([_.oE("#iron-dropdown"),_.K("design:type",Object)],oC.prototype,"ironDropdown",void 0);
_.Y([_.n6("input"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],oC.prototype,"onInput",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],oC.prototype,"onServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],oC.prototype,"onServiceRequestCompleted",null);
_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],oC.prototype,"onServiceRequestError",null);_.Y([_.n6("yt-user-mention-suggestion-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],oC.prototype,"onUserMentionSuggestionSelected",null);
_.Y([_.n6("dom-change"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],oC.prototype,"onDomChange",null);_.Y([_.jP({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],oC);
_.T(oC,"yt-user-mention-autosuggest-input",function(){if(Kqa===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;O5o===void 0&&(O5o=document.createElement("template"));var Q=O5o;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Kqa=g}g=Kqa;return g},{mode:2});var U$=null;
_.ys({is:"ytd-commentbox",_template:function(){if(rUZ!==void 0)return rUZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return rUZ=g},
behaviors:[_.atZ.YtHostElementBehavior,_.n8,_.xK.YtActionHandlerBehavior,_.M8.YtComponentBehavior,_.FK.YtRendererstamperBehavior,_.is5.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(g,u){return _.BC(g.entities,"aadcGuidelinesStateEntityPayload",u)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(g,u){return _.BC(g.entities,"commentboxStateEntity",u)},
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 _.wx}},
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:_.w("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.w("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",_.zr(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(g){this.fire(g?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(g){this.set("submitButtonDisabled",void 0);this.clear();g&&this.computeIsEmojiButtonDisplayed_(g)&&(g=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&g.updateEmojiCategories()},
observePrefilledImage_:function(g,u,q){this.isValidPrefilledImage_(g,u,q)&&(this.prefilledAttachment_="image",this.prefilledImageData_=u,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(g,u){this.isValidPrefilledVideo_(g,u)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(g){g&&g.pollData&&g.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(g.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.xx();this.focus()},
detached:function(){document.removeEventListener("tap",_.zr(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(g){g=g.detail;g=g.isCustomEmoji?g.shortcuts[0]:g.emojiId;var u=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(u,g);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var g=_.QZ();if(g){g=g.getBrowserRangeObject();for(var u=g.commonAncestorContainer;u;){if(u===this.getEditableTextArea_())return g;u=u.parentNode}}g=this.getEditableTextArea_();g=_.PU(g,g.childNodes.length);g.select();return g.getBrowserRangeObject()},
insertTextWithEmojis_:function(g,u,q){(u=this.emojiManager.createDocumentFragment(u,!0,!1,q===void 0?!0:q))&&u.childNodes.length!==0&&(g.collapsed||g.deleteContents(),q=u.lastChild,g.insertNode(u),_.roa(q).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var g=_.QZ();if(g){var u=g.JSC$11657_getStartNode(),q=g.JSC$11657_getEndNode();if(eok(u)&&eok(q)){var Q=g.JSC$11657_getStartOffset(),L;if(_.zK&&u.nodeType===Node.ELEMENT_NODE&&(L=_.HH2(u)))_.PU(L,0).select();else{L=Tk(u)?u:_.ep(u,Tk);var E=Tk(q)?q:_.ep(q,Tk);if(L||E)if(g.isCollapsed()){if(u.nodeType===Node.TEXT_NODE){g=!0;Q===u.length&&(g=!1);if(U$==="end"||U$==="right")g=!1;u=u.parentNode;g=[].concat(_.na(u.parentNode.childNodes)).indexOf(u)+(g?0:1);_.PU(u.parentNode,
g).select()}}else L?L.previousSibling&&L.previousSibling.length>0?_.NM(q,g.JSC$11657_getEndOffset(),L.previousSibling,L.previousSibling.length-1).select():(u=document.createTextNode("\u200b"),L.parentNode.insertBefore(u,L),_.NM(q,g.JSC$11657_getEndOffset(),u,0).select()):E&&(E.nextSibling&&E.nextSibling.length>0?_.NM(u,g.JSC$11657_getStartOffset(),E.nextSibling,1).select():(q=document.createTextNode("\u200b"),E.parentNode.insertBefore(q,E.nextSibling),_.NM(u,g.JSC$11657_getStartOffset(),q,q.length).select()));
U$=null}}else U$=null}else U$=null},
leftKeyPressed_:function(){U$="left"},
rightKeyPressed_:function(){U$="right"},
endKeyPressed_:function(){U$="end"},
maybeDeleteChip_:function(){var g=HLb(!0);if(g){var u=_.QZ(),q=u.JSC$11657_getStartNode();u=u.JSC$11657_getStartOffset();_.EA(q,u,g,g.childNodes.length).select()}},
maybeBackspaceChip_:function(){var g=HLb(!1);if(g){var u=_.QZ(),q=u.JSC$11657_getStartNode();u=u.JSC$11657_getStartOffset();_.EA(q,u,g,0).select()}},
maybeBackspaceChipWordMode_:function(g){var u=_.QZ();if(u.isCollapsed()){var q=u.JSC$11657_getStartNode();u=u.JSC$11657_getStartOffset();var Q=AlS(q,u,!0);Q&&(_.EA(q,u,Q,0).select(),document.execCommand("delete"),g.preventDefault(),g.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(g){var u=_.QZ();if(u.isCollapsed()){var q=u.JSC$11657_getStartNode();u=u.JSC$11657_getStartOffset();var Q=AlS(q,u,!1);Q&&(_.EA(q,u,Q,Q.childNodes.length).select(),document.execCommand("delete"),g.preventDefault(),g.stopImmediatePropagation())}},
onTap_:function(g){if(!g.defaultPrevented&&(g.currentTarget.tagName==="YTD-COMMENTBOX"&&Tk(g.target)&&g.preventDefault(),this.isEmojiPickerDisplayed)){var u=this.$$("#emojis"),q=this.$$("#emoji-button"),Q=this.getEditableTextArea_();if((g=g.path?g.path:g.composedPath&&g.composedPath())&&!g.includes(u)&&!g.includes(Q)&&!g.includes(q))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(g,u,q){return g==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&u!==void 0&&u.encryptedBlobId!==null&&u.sourceExternalVideoId!==null&&q!==void 0&&q.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(g,u){return g==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!u&&!!u.videoRenderer&&!!u.videoRenderer.videoId},
isValidPrefilledAttachment_:function(g,u,q){return this.isValidPrefilledImage_(g,u,q)||this.isValidPrefilledVideo_(g,q)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.w("enable_multi_image_post_creation")){var g=this.$$("ytd-backstage-multi-image-select-renderer");g&&g.hasImages()&&g.cancel()}else(g=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&g.cancel();(g=this.$["poll-attachment"])&&this.hasPoll_&&g.clearPollOptions();(g=this.$["image-poll-attachment"])&&this.hasImagePoll_&&g.resetPollOptions();(g=this.$["quiz-attachment"])&&this.hasQuiz_&&g.resetQuizOptions();
(g=this.$["video-link-attachment"])&&this.hasVideo_&&g.cancel();(g=this.$["access-restrictions-selector"].firstElementChild)&&g.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 _.Tr(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Tr(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(g,u){g=$CT(g,this.emojiManager,u).cloneNode(!0);for(u=g.firstChild;u;)if(u.nodeType!==1)u=u.nextSibling;else switch(u.tagName){case "BR":var q=_.G0();_.diX(q,u);u=q.nextSibling;break;case "DIV":(q=u.lastChild)&&u.nextSibling&&_.cH(_.G0(),q);u.previousSibling&&(u.previousSibling.nodeType===1||u.previousSibling.nodeType===3&&!u.previousSibling.textContent.endsWith("\n"))&&_.wX(_.G0(),u);q&&q.nodeName==="BR"&&_.UU(q);q=u;u.hasChildNodes()?(u=u.firstChild,
_.FvZ(q)):(u=u.nextSibling,_.UU(q));break;default:u=u.nextSibling}return ZLq(g)},
onAddImageError_:function(g){g.stopPropagation();this.errorMessage_=_.I7(g.detail)},
setTextAreaValue_:function(g){g||(g="");var u=this.getEditableFormattedString_();u.text="";this.getEditableTextArea_().innerText="";typeof g==="string"&&(g={runs:[{text:g}]});u.text=g},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();U$=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var g=this.getEditableTextArea_();g&&(_.PU(g,g.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.FR("HTML_DIR")==="rtl"){var g=this.getEditableTextArea_(),u=this.getTextAreaValue()!==""?"auto":"rtl";g.setAttribute("dir",u)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var g;return Kdu((g=this.$["quiz-attachment"])==null?void 0:g.getExplanationText())||Kdu(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var g=null;if(this.isEmojiButtonDisplayed){var u=this.getInputRange_();u&&(g=this.emojiInput.retrieveTextBeforeRange(u))}this.insertText_(g,!0);this.updateCharCount_();this.setSubmitButton_();g=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=g.scrollHeight>g.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var g=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:g})},
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(g){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(g)},
onPasteEmoji_:function(g){g.preventDefault();g.stopImmediatePropagation();g=g.clipboardData.getData("text/plain");this.insertText_(g,!1,!1)},
insertText_:function(g,u,q){u=u===void 0?!1:u;q=q===void 0?!0:q;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&g){var Q=this.getInputRange_().cloneRange();this.emojiManager&&Q&&(u&&this.emojiInput.offsetStartOfRangeBy(Q,g.length),this.insertTextWithEmojis_(Q,g,q),GDM(this.getEditableTextArea_().lastChild)||(Q=this.getInputRange_().cloneRange()),Q&&(this.emojiInput.updateSuggestions(Q,g),this.updateSuggestionOffset_(Q)))}},
setSubmitButton_:function(){if(this.data){var g=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",u=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(g||u){var q=this.getTextAreaValue().trim();u=q===this.previousText_;q=!q||this.aboveCharLimit_;g&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(q=this.aboveCharLimit_);this.submitButtonDisabled=
u||q||!this.getTextLength();g&&_.w("enable_post_scheduling")&&(this.submitButtonDisabled=u&&!this.scheduledPublishTimeSec_||q)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.iR,computeCreationBoxClass_:function(g){return g?"focused":"not-focused"},
computeFooterMessageClass_:function(g,u){return u?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(g,u){return u?u:g},
computeFooterMessageHidden_:function(g,u){return!u&&!g},
computePlaceholderText_:function(g,u,q){return(q==="video"||q==="image")&&(g==null?0:g.prefilledPlaceholderText)?g==null?void 0:g.prefilledPlaceholderText:u==="poll"||u==="image-poll"?g==null?void 0:g.pollPostPlaceholderText:u==="quiz"?g==null?void 0:g.quizPostPlaceholderText:u==="image"?g==null?void 0:g.imagePostPlaceholderText:g==null?void 0:g.placeholderText},
computeHideAttachmentButtons_:function(g,u,q,Q){return g===void 0?!1:Q&&this.getSimpleString(Q)===this.getSimpleString(g.rateLimitErrorMessage)?!0:u!=="none"||q!=="none"||!g.videoLinkButton&&!g.pollButton&&!g.imagePollButton&&!g.quizButton&&!g.imageButton},
computeHideDismissableAttachment_:function(g){return g!=="image"&&g!=="video"},
computeHasVideo_:function(g){return g==="video"},
computeHasImage_:function(g){return g==="image"},
computeHasPoll_:function(g){return g==="poll"},
computeHasImagePoll_:function(g){return g==="image-poll"},
computeHasQuiz_:function(g){return g==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(g){return g&&g.backstageAttachment?g.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!g.backstageAttachment.quizRenderer&&!g.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(g){if(this.isValidPrefilledAttachment_(g.purpose,g.prefilledImageData,g.backstageAttachment))return g.backstageAttachment},
computeEditAttachment_:function(g){if(this.computePrefilledContent_(g)===void 0)return g.backstageAttachment},
computeAuthorThumbnailDimension_:function(g,u){return g&&!u?24:40},
computeImageUploadEndpoint_:function(g){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",g)},
computeRateLimitErrorCommands_:function(g){var u,q;return g==null?void 0:(u=g.advancedTierFeatures)==null?void 0:(q=u.rateLimit)==null?void 0:q.rateLimitCommands},
computeIsBackstageComment_:function(g){return!(!g||g!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(g){return this.get("submitButton.buttonRenderer.serviceEndpoint",g)||this.get("replyButton.buttonRenderer.serviceEndpoint",g)||this.get("postButton.buttonRenderer.serviceEndpoint",g)},
computeSubmitButtonOverride:function(){if(_.w("web_modern_buttons")){var g,u;return{segmentedPosition:this.dropdownSchedulePanel_||!((g=this.data)==null?0:(u=g.postOptionsMenu)==null?0:u.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.w("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(g,u){g=this.get("submitButton.buttonRenderer",g)||this.get("replyButton.buttonRenderer",g)||this.get("postButton.buttonRenderer",g);u&&(g=u);g&&(g=Object.assign({},g),g.serviceEndpoint=void 0,g.isDisabled=this.submitButtonDisabled);return g},
computeHasExternalLinksAccess_:function(g){if(_.w("enable_rfa_external_links")){var u,q,Q;return(Q=g==null?void 0:(u=g.advancedTierFeatures)==null?void 0:(q=u.externalLinks)==null?void 0:q.allowExternalLinks)!=null?Q:!0}return!0},
computeIsEmojiButtonDisplayed_:function(g){return g.emojiButton&&g.emojiPicker&&g.emojiPicker.emojiPickerRenderer&&g.emojiPicker.emojiPickerRenderer.categories?g.emojiPicker.emojiPickerRenderer.categories.find(function(u){return u.emojiPickerCategoryRenderer?u.emojiPickerCategoryRenderer.emojiIds&&u.emojiPickerCategoryRenderer.emojiIds.length>0:u.emojiPickerUpsellCategoryRenderer?u.emojiPickerUpsellCategoryRenderer.emojis&&u.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(g){return g.charLimit?g.charLimit:null},
computeDropdownSchedulingPanel_:function(g,u){if(g==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&u)return u},
computeInlineSchedulingPanel_:function(g,u){if(g==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&u)return u},
computeHideAuthorThumbnail_:function(g,u){return g||this.computeUseIdentityChip_(u)},
computeHideIdentityChipRenderer_:function(g,u){return g||!this.computeUseIdentityChip_(u)},
computeUseIdentityChip_:function(g){return!!g&&!!g.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(g){var u,q,Q,L;(g==null?0:(u=g.detail)==null?0:(q=u.endpoint)==null?0:q.ypcGetOffersEndpoint)||(g==null?0:(Q=g.detail)==null?0:(L=Q.endpoint)==null?0:L.ypcOffersEndpoint)?(g.stopPropagation(),_.KV(this,[g.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",g)&&(g.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(g){this.addedAttachment="video";this.selectedVideoId_=g.detail.videoId},
commentboxStateEntityChanged_:function(g){var u=this;(g==null?void 0:g.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(g==null?void 0:g.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){u.focus()})},
onYtServiceRequestSent_:function(g,u){if(u.actions)for(g=_.N(u.actions),u=g.next();!u.done;u=g.next())u.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(g){this.isLoading=!1;var u=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",g),q,Q,L,E=g==null?void 0:(q=g.detail)==null?void 0:(Q=q.data)==null?void 0:(L=Q.actionResult)==null?void 0:L.commentboxStateEntityKey;if(u)this.errorMessage_=u;else if(E){var y;this.dismissData_=g==null?void 0:(y=g.detail)==null?void 0:y.data;this.commentboxStateKey_=E}else{this.clear();var v;this.fire("yt-commentbox-dismiss",g==null?void 0:(v=g.detail)==
null?void 0:v.data)}},
onYtServiceRequestError_:function(g){g.stopPropagation();this.isLoading=!1;var u,q;if(((u=this.data)==null?void 0:u.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((q=this.data)==null?void 0:q.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(u=this.get("detail.error.args",g)||[],u.length>1&&u[1].message){this.handlePostsServiceRequestError_(u[1].message);return}(g=this.get("detail.error.message",g))?this.errorMessage_=this.data.errorMessage||_.I7(g):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(g){if(_.w("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var u=_.N(this.rateLimitErrorCommands),q=u.next();!q.done;q=u.next())if(q=q.value,q.errorLabel===g){_.nE(q.command,this.hostElement);return}this.errorMessage_=_.I7(g)},
submitIfNotBackstagePost_:function(g){if(!this.isBackstagePost)this.onSubmit_(g)},
onSubmit_:function(g){var u=this,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d;return _.D(function(F){switch(F.nextAddress){case 1:g.stopPropagation();if(!u.serviceEndpoint||!u.isValidInput_())return F.return();if(u.shouldShowPostAadcNotice_())return u.showPostAadcNotice_(),F.return();if(u.shouldShowCommentAadcNotice_())return u.showCommentAadcNotice_(),F.return();if(!(u.$$("ytd-backstage-multi-image-select-renderer")&&u.hasImage_&&_.w("enable_multi_image_post_creation"))){F.jumpTo(2);break}q=u.$$("ytd-backstage-multi-image-select-renderer");
return F.yield(q.getAllUploadStatuses(),3);case 3:Q=F.yieldResult;if(!Q)return F.return();L=_.N(Q);for(E=L.next();!E.done;E=L.next())if(y=E.value,y.encryptedBlobId===void 0)return u.isLoading=!1,J=v=void 0,u.errorMessage_=(J=(v=u.imageUploadEndpoint_)==null?void 0:v.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?J:null,F.return();return F.return(u.submitForm_(void 0,void 0,void 0,void 0,q.images,u.taggedVideoId_));case 2:if(!u.hasImagePoll_||!u.$["image-poll-attachment"]){F.jumpTo(4);
break}return F.yield(u.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:f=F.yieldResult;if(!f)return F.return();t=_.N(f);for(e=t.next();!e.done;e=t.next())if(G=e.value,!G.encryptedBlobId)return u.isLoading=!1,R=void 0,u.errorMessage_=(R=u.data.errorMessage)!=null?R:null,F.return();case 4:l=(H=u.$$("ytd-backstage-image-select-renderer"))&&H.uploadPromise(),d=u.getSharedPostId_(),l?l.then(function(){u.submitForm_.apply(u,_.na(_.UT.apply(0,arguments)))}).catch(function(V){u.isLoading=!1;
u.errorMessage_=_.I7(V.message)}):u.selectedVideoId_?u.submitForm_(void 0,u.selectedVideoId_):u.prefilledAttachment_==="image"?u.submitForm_(u.prefilledImageData_.encryptedBlobId,void 0,void 0,u.prefilledImageData_.sourceExternalVideoId,void 0,u.taggedVideoId_):u.prefilledAttachment_==="video"?u.submitForm_(void 0,u.data.backstageAttachment.videoRenderer.videoId):d?u.submitForm_(void 0,void 0,d):u.taggedVideoId_!==void 0?u.submitForm_(void 0,void 0,void 0,void 0,void 0,u.taggedVideoId_):u.submitForm_(),
_.Wx(F)}})},
openSchedulingPanel:function(g){g&&g.scheduleButton&&g.scheduleButton.buttonRenderer&&(this.scheduleButton_=g.scheduleButton.buttonRenderer);g&&g.dateTimePicker&&this.set("data.schedulingDateTimePicker",g.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(g){g.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(g){g.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(g){g.stopPropagation();g.detail.alertMessage&&(this.alertMessage_=g.detail.alertMessage)},
onImageSelected_:function(g){g.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(g){g.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(g){g.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(g.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(g){g.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(g){var u=this.$["video-link-attachment"];u&&u.onLaunchVideoPicker(g)},
onAttachmentDismiss_:function(g){g.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"&&_.w("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.w("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 g;if(this.addedAttachment==="image-poll"&&((g=this.$["image-poll-attachment"])==null||!g.isValid()))return!1;var u;if(this.addedAttachment==="quiz"&&((u=this.$["quiz-attachment"])==null||!u.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;g=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(g=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")g=!0;return g||!!this.getTextAreaValue().trim()},
submitForm_:function(g,u,q,Q,L,E){var y=this.getTextAreaValue().trim(),v={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&y===this.previousText_&&(y=void 0);y!==void 0&&(v.comment_text=y);this.isLoading=!0;E!=void 0&&(v.tagged_video_id=E);g?(v.image_blob_id=g,this.imagePreviewCoordinates_&&(v.image_preview_coordinates=this.imagePreviewCoordinates_)):u?v.attached_video_id=u:q?v.shared_post_id=q:L&&L.length>0&&(v.images_data=L.map(function(J){return{encryptedBlobId:J.encryptedBlobId,
previewCoordinates:J.previewCoordinates}}));
Q&&(v.source_video_id=Q);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(v.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(v.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(v.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(v.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.w("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(v.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.KV(this,[this.serviceEndpoint,v])},
onIsInputFocusChanged_:function(g,u){g?this.fire("yt-autonav-pause-focus"):u!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(g){var u=this.getEditableTextArea_();[].concat(_.na(g.dataTransfer.items)).forEach(function(q){q.kind==="string"&&q.type.match("^text/plain")&&q.getAsString(function(Q){u.appendChild(document.createTextNode(Q))})});
g.preventDefault()},
preventDefault_:function(g){g.preventDefault()},
onSuggestionInsert_:function(g){this.insertTextWithEmojis_(g.detail.range,g.detail.text)},
onEmojiSuggestionClick_:function(g){this.emojiInput.insertSuggestion(g.detail)},
computeSubmitButtonClass_:function(g,u){return!u||g?"":"with-options"},
updateSuggestionOffset_:function(g){if(this.emojiInput&&_.Tr(this.emojiInput).querySelector("#dropdown")){var u=this.getEditableTextArea_().getBoundingClientRect().bottom,q=g.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(u-q)+5;u=this.getEditableTextArea_().getBoundingClientRect().left;g=g.getBoundingClientRect().left-u;_.Tr(this.emojiInput).querySelector("#dropdown").style.marginLeft=g+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(g){if(_.w("enable_post_scheduling")&&this.data&&this.data.purpose){g=g.detail;if(Math.floor(Date.now()/1E3)>=g)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var u=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(u)||u!==g?this.scheduledPublishTimeSec_=g:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=g;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var g=["image-button","image-poll-button","poll-button","quiz-button"];_.w("auto_convert_posts_video_tag")||g.push("video-link-button");return g},
getButtonRenderer:function(g,u){if(g)switch(u){case "video-link-button":var q;return((q=g.videoLinkButton)==null?void 0:q.buttonRenderer)||void 0;case "image-button":var Q;return((Q=g.imageButton)==null?void 0:Q.buttonRenderer)||void 0;case "poll-button":var L;return((L=g.pollButton)==null?void 0:L.buttonRenderer)||void 0;case "image-poll-button":var E;return((E=g.imagePollButton)==null?void 0:E.buttonRenderer)||void 0;case "quiz-button":var y;return((y=g.quizButton)==null?void 0:y.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var g;return(g=this.data)==null||!g.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var g,u;return!((g=this.data)==null||!g.openAadcDialog)&&!((u=this.aadcGuidelinesState_)==null||!u.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.FR("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var g;((g=this.data)==null?0:g.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.CB("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(g){g.clickTrackingParams&&_.gL().clickCommand(g);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.YJ(this,"yt-close-popup-action")},
onHideIdentityChip:function(g){var u;this.set("data.placeholderText",(u=g.hideIdentityChipAction)==null?void 0:u.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var gb=function(){var g=_.X.apply(this,arguments)||this;g.isOpen=!1;g.modern=_.w("web_modern_buttons");g.roundedContainer=!0;g.dropdownButtonOverride=_.w("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;g.inPopupContainer=!1;g.isCommentboxLoading=!1;var u=["image-button","image-poll-button","poll-button"];_.w("enable_quiz_creation")&&u.push("quiz-button");_.w("auto_convert_posts_video_tag")||u.push("video-link-button");g.attachmentButtonIds=u;g.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 g};
_.A(gb,_.X);_.P=gb.prototype;_.P.computeButtonOverride=function(){var g;return((g=this.data)==null?0:g.postOptionsMenu)&&_.w("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.P.configureRendererStamper=function(){var g={"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]]"}}}}};_.w("auto_convert_posts_video_tag")||(g["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return g};
_.P.ready=function(){var g=this,u=_.Tr(this.hostElement).querySelector("#placeholder-area"),q=function(Q){g.onOpen(Q)};
u.addEventListener("tap",q);u.addEventListener("keypress",q)};
_.P.showButtonEduTooltip=function(){var g,u,q,Q,L,E,y;if(_.w("enable_quiz_creation")&&((g=this.data)==null?0:(u=g.quizButton)==null?0:(q=u.buttonRenderer)==null?0:(Q=q.hint)==null?0:(L=Q.hintRenderer)==null?0:(E=L.content)==null?0:(y=E.bubbleHintRenderer)==null?0:y.text)&&(_.O1.getInstance(),g=KI(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(g==null?void 0:
g.length)>0)){this.ytComponentBehavior.resolveCommand(g[0],{form:{element:this.quizButton}});return}var v;if((v=this.data)==null?0:v.imagePollButtonTooltip)if(_.O1.getInstance(),v=KI(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(v==null?void 0:v.length)>0){this.ytComponentBehavior.resolveCommand(v[0],{form:{element:this.imagePollButton}});return}var J;_.w("enable_multi_image_post_creation")&&
((J=this.data)==null?0:J.multiImageButtonTooltip)&&(_.O1.getInstance(),J=KI(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(J==null?void 0:J.length)>0&&this.ytComponentBehavior.resolveCommand(J[0],{form:{element:this.imageButton}}))};
_.P.onCreatePollAction=function(g){_.c(g,V2Z)&&(this.JSC$16261_commentbox.addedAttachment="poll",this.openDialog())};
_.P.onAddVideoLinkAction=function(g){if(_.c(g,dco))this.JSC$16261_commentbox.onAddVideoLink(g)};
_.P.onShowSchedulingPanelCommand=function(g){(g=_.c(g,PuR))&&this.openSchedulingPanel(g)};
_.P.onCreateImagePollCommand=function(g){_.c(g,DJ0)&&(this.JSC$16261_commentbox.openImagePollComponent(),this.openDialog())};
_.P.onCreateQuizCommand=function(g){_.c(g,pOx)&&(this.JSC$16261_commentbox.openQuizComponent(),this.openDialog())};
_.P.openSchedulingPanel=function(g){_.w("enable_post_scheduling")&&(this.openDialog(),this.JSC$16261_commentbox.openSchedulingPanel(g))};
_.P.onCreateCommentAction=function(g){this.get("createCommentAction.contents",g)&&(this.JSC$16261_commentbox.clear(),this.closeDialog())};
_.P.onOpen=function(g){g instanceof KeyboardEvent&&g.type==="keypress"&&g.keyCode!==13&&g.keyCode!==32||(this.data.prepareAccountEndpoint?_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.closeDialog()};
_.P.onYtCommentboxLoadingStart=function(g){g.stopPropagation();this.isCommentboxLoading=!0};
_.P.onYtCommentboxLoadingEnd=function(g){g.stopPropagation();this.isCommentboxLoading=!1};
_.P.onYtVideoLinkButtonCancel=function(g){g.stopPropagation();this.onOpen(g)};
_.P.onYtVideoLinkSelected=function(g){g.stopPropagation();this.onOpen(g)};
_.P.onIronSelect=function(g){g.stopPropagation();g.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=g.detail.item.value&&(this.accessRestriction?(this.accessRestriction=g.detail.item.value,this.onOpen(g)):this.accessRestriction=g.detail.item.value)};
_.P.onYtNavigate=function(g){this.get("detail.endpoint.backstageImageUploadEndpoint",g)&&(this.JSC$16261_commentbox.addedAttachment="image",this.JSC$16261_commentbox.submitButtonDisabled=!0,this.onOpen(g))};
_.P.onRequestSent=function(g){for(var u=_.N(g.detail),q=u.next();!q.done;q=u.next())_.c(q.value,w2i)&&(this.JSC$16261_commentbox.addedAttachment="image",this.JSC$16261_commentbox.submitButtonDisabled=!0,this.onOpen(g))};
_.P.openDialog=function(){var g;(g=this.data)!=null&&g.isIneligibleForCommunityPagePostCreation||(this.JSC$16261_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16261_commentbox.focus())};
_.P.onPopupClosed=function(){_.O1.getInstance()};
_.P.computeCreationDisabled=function(g){return!!g};
_.P.computeIsCreationDialog=function(g){return!!g&&g==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.P.computeDisabledPostButton=function(g){if(!g)return null;g.isDisabled=!0;return g};
_.P.computeIsCreationDialogWithHeader=function(g){return!this.inPopupContainer&&!!g&&!!g.authorText&&g.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.P.computeIsHeaderHidden=function(g,u){return!g||u};
_.P.computeDropdownRendererClasses=function(g){return g?["text-secondary-style"]:[]};
_.P.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var g=_.Tr(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;g&&g.reset()};
gb.prototype.onPopupClosed=gb.prototype.onPopupClosed;gb.prototype.onRequestSent=gb.prototype.onRequestSent;gb.prototype.onYtNavigate=gb.prototype.onYtNavigate;gb.prototype.onIronSelect=gb.prototype.onIronSelect;gb.prototype.onYtVideoLinkSelected=gb.prototype.onYtVideoLinkSelected;gb.prototype.onYtVideoLinkButtonCancel=gb.prototype.onYtVideoLinkButtonCancel;gb.prototype.onYtCommentboxLoadingEnd=gb.prototype.onYtCommentboxLoadingEnd;gb.prototype.onYtCommentboxLoadingStart=gb.prototype.onYtCommentboxLoadingStart;
gb.prototype.onYtCommentboxDismiss=gb.prototype.onYtCommentboxDismiss;gb.prototype.showButtonEduTooltip=gb.prototype.showButtonEduTooltip;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],gb.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],gb.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],gb.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gb.prototype,"isOpen",void 0);_.Y([_.a({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],gb.prototype,"buttonOverride",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gb.prototype,"modern",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gb.prototype,"roundedContainer",void 0);_.Y([_.a(),_.K("design:type",Object)],gb.prototype,"dropdownButtonOverride",void 0);_.Y([_.a({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.K("design:type",Boolean)],gb.prototype,"creationDisabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],gb.prototype,"enableCreationBox",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.K("design:type",Boolean)],gb.prototype,"isCreationDialog",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gb.prototype,"inPopupContainer",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.K("design:type",Boolean)],gb.prototype,"isCreationDialogWithHeader",void 0);_.Y([_.a(),_.K("design:type",Object)],gb.prototype,"accessRestriction",void 0);
_.Y([_.a({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.K("design:type",Array)],gb.prototype,"dropdownRendererClasses",void 0);_.Y([_.a(),_.K("design:type",Object)],gb.prototype,"isCommentboxLoading",void 0);_.Y([_.a(),_.K("design:type",Array)],gb.prototype,"attachmentButtonIds",void 0);_.Y([_.oE("#image-button"),_.K("design:type",HTMLElement)],gb.prototype,"imageButton",void 0);
_.Y([_.oE("#image-poll-button"),_.K("design:type",HTMLElement)],gb.prototype,"imagePollButton",void 0);_.Y([_.oE("#quiz-button"),_.K("design:type",HTMLElement)],gb.prototype,"quizButton",void 0);_.Y([_.oE("#commentbox"),_.K("design:type",Object)],gb.prototype,"JSC$16261_commentbox",void 0);_.Y([_.k_("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gb.prototype,"showButtonEduTooltip",null);
_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],gb.prototype,"onYtCommentboxDismiss",null);_.Y([_.n6("yt-commentbox-loading-start"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],gb.prototype,"onYtCommentboxLoadingStart",null);
_.Y([_.n6("yt-commentbox-loading-end"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],gb.prototype,"onYtCommentboxLoadingEnd",null);_.Y([_.n6("yt-video-link-button-cancel"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],gb.prototype,"onYtVideoLinkButtonCancel",null);
_.Y([_.n6("yt-video-link-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],gb.prototype,"onYtVideoLinkSelected",null);_.Y([_.n6("iron-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],gb.prototype,"onIronSelect",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],gb.prototype,"onYtNavigate",null);
_.Y([_.n6("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],gb.prototype,"onRequestSent",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gb.prototype,"onPopupClosed",null);_.Y([_.fE({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],gb);
_.T(gb,"ytd-backstage-post-dialog-renderer",function(){if(tDn!==void 0)return tDn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return tDn=g},{mode:1});var kEb;var Ss5;var u3=function(){return _.X.apply(this,arguments)||this};
_.A(u3,_.X);_.P=u3.prototype;_.P.computeHeartButtonStyle=function(g){return(g==null?0:g.styleType)?g.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onYtButtonTap=function(){if(this.data.isEnabled){var g=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(g=this.getEndpoint(g))&&_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}})}else(g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(g)};
_.P.toggle=function(g){this.set("data.isHearted",g!==void 0?g:!this.data.isHearted)};
_.P.getEndpoint=function(g){var u,q=(u=this.data)==null?void 0:u.heartEndpoint,Q;u=(Q=this.data)==null?void 0:Q.unheartEndpoint;if(q&&u)return g?u:q};
_.P.computeButtonAccessibility=function(g,u){var q,Q,L=g==null?void 0:(q=g.heartedAccessibility)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label,E,y;g=g==null?void 0:(E=g.unheartedAccessibility)==null?void 0:(y=E.accessibilityData)==null?void 0:y.label;return u?L:g};
_.z3.Object.defineProperties(u3.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 g;return _.w("kevlar_system_icons")&&!((g=this.data)==null||!g.isHearted)}}});
u3.prototype.onYtButtonTap=u3.prototype.onYtButtonTap;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],u3.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],u3.prototype,"data",void 0);_.Y([_.C("data.isHearted"),_.K("design:type",Object),_.K("design:paramtypes",[])],u3.prototype,"heartTooltip",null);
_.Y([_.C("data.isHearted"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],u3.prototype,"iconFilled",null);_.Y([_.a({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.K("design:type",String)],u3.prototype,"buttonAccessibility",void 0);_.Y([_.a({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],u3.prototype,"heartButtonStyle",void 0);
_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u3.prototype,"onYtButtonTap",null);_.Y([_.fE({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],u3);
_.T(u3,"ytd-creator-heart-renderer",function(){if(Ss5!==void 0)return Ss5;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Ss5=g},{mode:1});var qb=function(){var g=_.X.apply(this,arguments)||this;g.hasCreatorReply=!1;g.buttonOverrides={size:"S",iconPosition:"icon-only"};g.replyButtonOverrides={size:"S",type:"text"};g.forceIconButton=!_.w("web_modern_buttons");g.modern=_.w("web_modern_buttons");g.buttonTooltipPosition="bottom";g.systemIcons=_.w("kevlar_system_icons");g.replyDialog=null;return g};
_.A(qb,_.X);_.P=qb.prototype;
_.P.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]]"}}}}}};
_.P.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.P.dataChange=function(){this.replyDialog&&_.Tr(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var g,u,q;this.isLiked=this.systemIcons&&!!((g=this.data)==null?0:(u=g.likeButton)==null?0:(q=u.toggleButtonRenderer)==null?0:q.isToggled)};
_.P.computeShowVoteCountBeginning=function(g,u){return g===void 0||u===void 0?!0:g.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!u&&this.ytRendererBehavior.getSimpleString(u)!=="0"};
_.P.computeShowVoteCountEnd=function(g,u){return g===void 0||u===void 0?!0:g.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!u&&this.ytRendererBehavior.getSimpleString(u)!=="0"};
_.P.computeShowCommentCount=function(g,u){return g===void 0||u===void 0?!0:g.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!u&&this.ytRendererBehavior.getSimpleString(u)!=="0"};
_.P.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.P.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.P.showReplyDialog=function(g){g&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Tr(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=g,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.P.onRequestSent=function(g){g=_.N(g.detail);for(var u=g.next();!u.done;u=g.next())(u=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",u.value))&&this.showReplyDialog(u)};
_.P.onYtNavigate=function(g){var u,q;(g=(u=_.c(g.detail.endpoint,_.HKb))==null?void 0:(q=u.dialog)==null?void 0:q.commentReplyDialogRenderer)&&this.showReplyDialog(g)};
_.P.onYtServiceRequestSent=function(g,u){g.stopPropagation();if(u.actions)for(g=0;g<u.actions.length;g++){var q=_.c(u.actions[g],YFX);q&&this.handleUpdateCommentVoteAction(q)}};
_.P.handleUpdateCommentVoteAction=function(g){this.voteCount=g.voteCount||_.I7("0");g.voteStatus==="LIKE"?this.JSC$16273_ytdDislikeToggleButtonRenderer.toggle(!1):g.voteStatus==="DISLIKE"?this.JSC$16273_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16273_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16273_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.P.computeReplyButtonHidden=function(g){return g};
_.P.computeReplyButtonBeginning=function(g){return(g==null?0:g.replyButton)&&g.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?g.replyButton:void 0};
_.P.computeReplyButtonEnd=function(g){return(g==null?0:g.replyButton)&&g.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?g.replyButton:void 0};
_.P.computeActionButtonStyle=function(g){return(g==null?0:g.style)?g.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.P.onYtToggleButton=function(g){var u,q;this.isLiked=this.systemIcons&&!!((u=g.detail)==null?0:(q=u.actions)==null?0:q.like)};
qb.prototype.onYtToggleButton=qb.prototype.onYtToggleButton;qb.prototype.onButtonTooltipPositionChanged=qb.prototype.onButtonTooltipPositionChanged;qb.prototype.onYtServiceRequestSent=qb.prototype.onYtServiceRequestSent;qb.prototype.onYtNavigate=qb.prototype.onYtNavigate;qb.prototype.onRequestSent=qb.prototype.onRequestSent;qb.prototype.onYtCommentboxDismiss=qb.prototype.onYtCommentboxDismiss;qb.prototype.dataChange=qb.prototype.dataChange;
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qb.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],qb.prototype,"voteCount",void 0);_.Y([_.a(),_.K("design:type",Object)],qb.prototype,"commentCount",void 0);_.Y([_.a(),_.K("design:type",Object)],qb.prototype,"replyThumbnail",void 0);
_.Y([_.a(),_.K("design:type",Object)],qb.prototype,"hasCreatorReply",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qb.prototype,"enableCreationBox",void 0);_.Y([_.a({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],qb.prototype,"actionButtonsStyle",void 0);_.Y([_.a({computed:"computeReplyButtonBeginning(data)"}),_.K("design:type",Object)],qb.prototype,"replyButtonBeginning",void 0);
_.Y([_.a({computed:"computeReplyButtonEnd(data)"}),_.K("design:type",Object)],qb.prototype,"replyButtonEnd",void 0);_.Y([_.a(),_.K("design:type",Object)],qb.prototype,"buttonOverrides",void 0);_.Y([_.a(),_.K("design:type",Object)],qb.prototype,"replyButtonOverrides",void 0);_.Y([_.a(),_.K("design:type",Object)],qb.prototype,"forceIconButton",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qb.prototype,"useCommentIcon",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],qb.prototype,"modern",void 0);_.Y([_.a(),_.K("design:type",Object)],qb.prototype,"buttonTooltipPosition",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],qb.prototype,"systemIcons",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qb.prototype,"isLiked",void 0);_.Y([_.oE("ytd-button-renderer"),_.K("design:type",Object)],qb.prototype,"ytdReplyButtonRenderer",void 0);
_.Y([_.oE("#like-button"),_.K("design:type",Object)],qb.prototype,"JSC$16273_ytdLikeToggleButtonRenderer",void 0);_.Y([_.oE("#dislike-button"),_.K("design:type",Object)],qb.prototype,"JSC$16273_ytdDislikeToggleButtonRenderer",void 0);_.Y([_.oE("#reply-dialog"),_.K("design:type",HTMLElement)],qb.prototype,"replyDialogElement",void 0);_.Y([_.oE("#reply-button"),_.K("design:type",HTMLElement)],qb.prototype,"replyButtonElement",void 0);
_.Y([_.oE("#reply-button-end"),_.K("design:type",HTMLElement)],qb.prototype,"replyButtonEndElement",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qb.prototype,"dataChange",null);_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],qb.prototype,"onYtCommentboxDismiss",null);
_.Y([_.n6("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],qb.prototype,"onRequestSent",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],qb.prototype,"onYtNavigate",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],qb.prototype,"onYtServiceRequestSent",null);_.Y([_.k_("buttonTooltipPosition"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qb.prototype,"onButtonTooltipPositionChanged",null);
_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],qb.prototype,"onYtToggleButton",null);_.Y([_.fE({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],qb);
_.T(qb,"ytd-comment-action-buttons-renderer",function(){if(kEb!==void 0)return kEb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return kEb=g},{mode:1});var omn;var QF=function(){return _.X.apply(this,arguments)||this};
_.A(QF,_.X);QF.prototype.focus=function(){_.Tr(this.hostElement).querySelector("#commentbox").focus()};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],QF.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],QF.prototype,"zeroStepChannelCreationRenderer",void 0);_.Y([_.fE({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],QF);
_.T(QF,"ytd-comment-dialog-renderer",function(){if(omn!==void 0)return omn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return omn=g},{mode:1});var U98;var Lb=function(){var g=_.X.apply(this,arguments)||this;g.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.w("enable_web_delhi_icons")};g.replyButtonOverrides={size:"S",type:"text"};return g};
_.A(Lb,_.X);_.P=Lb.prototype;_.P.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.P.detached=function(){this.replyBox&&this.replyBox.remove()};
_.P.showReplyDialog=function(g){if(g){var u=this.replyBox;u||(u=document.createElement("ytd-comment-reply-dialog-renderer"),u.id="replybox",_.Tr(this.replyDialogDiv).appendChild(u));u.data=g;this.replyDialogDiv.hidden=!1;u.openDialog()}};
_.P.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.P.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var g,u=_.c((g=this.toolbarSurface)==null?void 0:g.superfanOnlySnackbarCommand,_.Jo);u&&_.hJ(this.hostElement,"yt-show-superfan-only-snackbar",{command:u})}else this.isSubsOnlyCommentsEligibleUser&&(g=_.c((u=this.toolbarSurface)==null?void 0:u.subscribersOnlyDisclaimerSnackbarCommand,_.Jo))&&_.hJ(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:g})};
_.P.onYtServiceRequestSent=function(g,u){g.stopPropagation();if(u.actions)for(var q=0;q<u.actions.length;q++){var Q=_.c(u.actions[q],YFX);Q?this.handleUpdateCommentVoteAction(Q):g.target===this.heartButton&&this.toggleHeartState()}};
_.P.handleUpdateCommentVoteAction=function(g){var u;(u=this.toolbarState)!=null&&u.key&&this.ytdReduxBehavior.dispatch(_.JZ("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:g.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":g.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.P.toggleHeartState=function(){var g;(g=this.toolbarState)!=null&&g.key&&this.ytdReduxBehavior.dispatch(_.JZ("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.z3.Object.defineProperties(Lb.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return(((g=this.toolbarState)==null?void 0:g.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(u=this.toolbarData)==null?void 0:u.likeCountLiked:(q=this.toolbarData)==null?void 0:q.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.toolbarSurface)==null?void 0:g.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.toolbarSurface)==null?void 0:g.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.toolbarSurface)==null?void 0:g.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.toolbarSurface)==null?void 0:g.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.toolbarSurface)==null?void 0:g.prepareAccountCommand)!==void 0&&!_.w("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g,u=_.c((g=this.toolbarSurface)==null?void 0:g.prepareAccountCommand,_.Jo),q,Q,L,E,y,v,J,f,t;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((q=this.toolbarSharedData)==null||!q.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((Q=this.toolbarState)==null?void 0:Q.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:u!=null?u:_.c((L=this.toolbarSurface)==null?void 0:L.likeCommand,_.Jo),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:u!=null?u:_.c((E=this.toolbarSurface)==null?void 0:E.unlikeCommand,_.Jo),defaultCommand:this.isVisiblyDisabled?_.c((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.Jo):void 0,defaultTooltip:(v=this.toolbarData)==null?void 0:v.likeInactiveTooltip,toggledTooltip:(J=this.toolbarData)==null?void 0:J.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(f=this.toolbarData)==null?void 0:f.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g,u=_.c((g=this.toolbarSurface)==null?void 0:g.prepareAccountCommand,_.Jo),q,Q,L,E,y,v,J,f,t,e;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((q=this.toolbarSharedData)==null||!q.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((Q=this.toolbarState)==null?void 0:Q.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:u!=null?u:_.c((L=this.toolbarSurface)==null?void 0:L.dislikeCommand,_.Jo),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:u!=null?u:_.c((E=this.toolbarSurface)==null?void 0:E.undislikeCommand,_.Jo),defaultCommand:this.isVisiblyDisabled?_.c((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.Jo):void 0,defaultTooltip:(v=this.toolbarData)==null?void 0:v.dislikeInactiveTooltip,toggledTooltip:(J=this.toolbarData)==null?void 0:
J.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(f=this.toolbarSharedData)==null?void 0:f.dislikeReplyButtonA11y:(t=this.toolbarSharedData)==null?void 0:t.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 g,u,q;if(((g=this.toolbarState)==null?void 0:g.heartState)!==void 0&&((u=this.toolbarState)==null?void 0:u.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((q=this.toolbarState)==null?void 0:q.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var Q,L,E,y,v,J,f,t,e,G,R,H,l,d;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(Q=this.toolbarData)==null?void 0:Q.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((L=this.toolbarState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((E=this.toolbarState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((y=this.toolbarState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((v=this.toolbarState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.c((J=this.toolbarSurface)==null?void 0:J.heartCommand,
_.Jo),unheartEndpoint:this.isVisiblyDisabled?void 0:_.c((f=this.toolbarSurface)==null?void 0:f.unheartCommand,_.Jo),disabledEndpoint:this.isVisiblyDisabled?_.c((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,_.Jo):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(e=this.toolbarData)==null?void 0:e.heartActiveTooltip,unheartedTooltip:(G=this.toolbarData)==null?void 0:G.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((R=
this.toolbarState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(H=this.toolbarSharedData)==null?void 0:H.unheartButtonA11y:(l=this.toolbarSharedData)==null?void 0:l.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.toolbarSurface)==null||!g.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.commentStrings)!=null&&g.replyButtonText){var u,q,Q,L;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(u=this.commentStrings)==null?void 0:u.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.c((q=this.toolbarSurface)==null?void 0:q.replyCommand,_.Jo),command:this.isVisiblyDisabled?
_.c((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,_.Jo):this.isSubsOnlyCommentsIneligibleUser?_.c((L=this.toolbarSurface)==null?void 0:L.subscribersOnlySnackbarCommand,_.Jo):void 0}}}}});
Lb.prototype.onYtServiceRequestSent=Lb.prototype.onYtServiceRequestSent;Lb.prototype.hideReplyDialogDiv=Lb.prototype.hideReplyDialogDiv;_.Y([_.a(),_.K("design:type",Object)],Lb.prototype,"commentStrings",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Lb.prototype,"isReply",void 0);_.Y([_.a(),_.K("design:type",Object)],Lb.prototype,"toolbarData",void 0);_.Y([_.a(),_.K("design:type",Object)],Lb.prototype,"toolbarSharedData",void 0);
_.Y([_.a(),_.K("design:type",String)],Lb.prototype,"toolbarStateKey",void 0);_.Y([_.a(),_.K("design:type",String)],Lb.prototype,"toolbarSurfaceKey",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Lb.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Lb.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.dx),_.K("design:type",Object)],Lb.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.oE("#reply-dialog"),_.K("design:type",HTMLElement)],Lb.prototype,"replyDialogDiv",void 0);_.Y([_.oE("#replybox"),_.K("design:type",Object)],Lb.prototype,"replyBox",void 0);_.Y([_.oE("ytd-creator-heart-renderer"),_.K("design:type",Object)],Lb.prototype,"heartButton",void 0);_.Y([_.a({selector:function(g,u){return _.BC(g.entities,"engagementToolbarStateEntityPayload",u)},
selectorArgs:["toolbarStateKey"]}),_.K("design:type",Object)],Lb.prototype,"toolbarState",void 0);_.Y([_.a({selector:Gt3,selectorArgs:["toolbarSurfaceKey"]}),_.K("design:type",Object)],Lb.prototype,"toolbarSurface",void 0);_.Y([_.a(),_.K("design:type",Object)],Lb.prototype,"buttonOverrides",void 0);_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lb.prototype,"hideReplyDialogDiv",null);
_.Y([_.C("toolbarData","toolbarState"),_.K("design:type",String),_.K("design:paramtypes",[])],Lb.prototype,"likeCount",null);_.Y([_.C("likeCount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Lb.prototype,"showLikeCount",null);_.Y([_.C("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Lb.prototype,"isVisiblyDisabled",null);_.Y([_.C("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Lb.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.Y([_.C("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Lb.prototype,"isSubsOnlyCommentsEligibleUser",null);_.Y([_.C("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Lb.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.Y([_.C("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Lb.prototype,"hasPrepareAccountCommand",null);
_.Y([_.C("toolbarData","toolbarState","toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lb.prototype,"likeToggleButtonRenderer",null);_.Y([_.C("isReply","toolbarData","toolbarState","toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lb.prototype,"dislikeToggleButtonRenderer",null);_.Y([_.C("toolbarData","toolbarState","toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lb.prototype,"creatorHeartSupportedRenderer",null);
_.Y([_.C("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Lb.prototype,"hasReplyCommand",null);_.Y([_.C("toolbarSurface","commentStrings","isVisiblyDisabled"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lb.prototype,"replyButtonRenderer",null);_.Y([_.a(),_.K("design:type",Object)],Lb.prototype,"replyButtonOverrides",void 0);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],Lb.prototype,"onYtServiceRequestSent",null);_.Y([_.fE({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Lb);
_.T(Lb,"ytd-comment-engagement-bar",function(){if(U98!==void 0)return U98;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return U98=g},{mode:1});var gPZ;var EJ=function(){return _.X.apply(this,arguments)||this};
_.A(EJ,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],EJ.prototype,"data",void 0);_.Y([_.fE({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],EJ);
_.T(EJ,"ytd-comment-inline-thumbnail-renderer",function(){if(gPZ!==void 0)return gPZ;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return gPZ=g},{mode:1});var ubb;var PV=function(){return _.X.apply(this,arguments)||this};
_.A(PV,_.X);PV.prototype.onMessageTap=function(){if(this.onTapCommand){var g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);g&&this.ytdOpenPopupBehavior.openPopup(g)}};
_.z3.Object.defineProperties(PV.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return(g=this.data)==null?void 0:(u=g.button)==null?void 0:(q=u.buttonRenderer)==null?void 0:q.command}}});
_.Y([_.I(_.dx),_.K("design:type",Object)],PV.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],PV.prototype,"data",void 0);_.Y([_.C("data.button.buttonRenderer.command"),_.K("design:type",Object),_.K("design:paramtypes",[])],PV.prototype,"onTapCommand",null);_.Y([_.fE({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],PV);
_.T(PV,"ytd-comment-pause-composer-renderer",function(){if(ubb!==void 0)return ubb;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ubb=g},{mode:1});var qjW;var Qj5;var Nb=function(){var g=_.X.apply(this,arguments)||this;g.isOpen=!1;return g};
_.A(Nb,_.X);_.P=Nb.prototype;_.P.dataChanged=function(){this.isOpen=!1};
_.P.onTap=function(){this.data&&(this.data.navigationEndpoint?_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.P.focus=function(){this.JSC$16302_commentbox.focus()};
_.P.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.P.openDialog=function(){this.isOpen=!0;this.JSC$16302_commentbox.focus();this.JSC$16302_commentbox.maybeHeightChanged()};
Nb.prototype.onYtCommentboxDismiss=Nb.prototype.onYtCommentboxDismiss;Nb.prototype.dataChanged=Nb.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Nb.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Nb.prototype,"isOpen",void 0);_.Y([_.oE("#commentbox"),_.K("design:type",Object)],Nb.prototype,"JSC$16302_commentbox",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Nb.prototype,"dataChanged",null);_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Nb.prototype,"onYtCommentboxDismiss",null);_.Y([_.fE({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Nb);
_.T(Nb,"ytd-comment-reply-dialog-renderer",function(){if(Qj5!==void 0)return Qj5;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Qj5=g},{mode:1});var Lt0;var sJ=function(){return _.X.apply(this,arguments)||this};
_.A(sJ,_.X);_.z3.Object.defineProperties(sJ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.data)==null?void 0:(u=g.icon)==null?void 0:u.iconType;return q?"yt-icons:"+q.toLowerCase():null}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sJ.prototype,"data",void 0);_.Y([_.a(),_.C("data.icon"),_.K("design:type",Object),_.K("design:paramtypes",[])],sJ.prototype,"icon",null);_.Y([_.fE({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],sJ);
_.T(sJ,"ytd-pinned-comment-badge-renderer",function(){if(Lt0!==void 0)return Lt0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Lt0=g},{mode:1});var EPR;var PV0={},Ns2={input:!0,meta:!0,br:!0,link:!0,img:!0},yF=null;PV0.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(){yF==null&&(yF=document.createElement("tp-yt-paper-tooltip"),yF.offset=8,yF.fitToVisibleBounds=!0)},
onMouseOver_:function(g){if(g=_.ep(g.target,function(L){return L==this||L.getAttribute&&L.getAttribute("shared-tooltip-text")}.bind(this),!0)){var u=g.getAttribute("shared-tooltip-text");
if(u){var q=this,Q=null;g!=this&&(g.tagName.toLowerCase()in Ns2?q=g.parentElement:q=g,g.id&&(Q=g.id));this.polymerController.createTooltipIfRequired_();if(yF.parentElement!=q||yF.for!=Q)(0,_.K6)(yF).textContent=u,_.Tr(q).appendChild(yF),yF.for=Q,yF.animationDelay=this.polymerController.sharedTooltipAnimationDelay,yF.position=this.polymerController.sharedTooltipPosition}}}};var vV=function(){return _.X.apply(this,arguments)||this};
_.A(vV,_.X);vV.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]]"}}}}}};
vV.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var g;((g=this.data)==null?0:g.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var u;((u=this.data)==null?0:u.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
vV.prototype.colorChanged=function(){var g,u,q,Q=(g=this.data)==null?void 0:(u=g.color)==null?void 0:(q=u.basicColorPaletteData)==null?void 0:q.foregroundBodyColor;Q&&(this.rgbBadgeColor=_.JR(Q));_.Tr(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
vV.prototype.tooltipChanged=function(){var g;((g=this.data)==null?0:g.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
vV.prototype.tooltipChanged=vV.prototype.tooltipChanged;vV.prototype.colorChanged=vV.prototype.colorChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(PV0.YtSharedTooltipBehavior),_.K("design:type",Object)],vV.prototype,"ytSharedTooltipBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vV.prototype,"data",void 0);
_.Y([_.a({value:"#4285F4"}),_.K("design:type",String)],vV.prototype,"rgbBadgeColor",void 0);_.Y([_.k_("data.color"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vV.prototype,"colorChanged",null);_.Y([_.k_("data.tooltip"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vV.prototype,"tooltipChanged",null);_.Y([_.fE({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],vV);
_.T(vV,"ytd-sponsor-comment-badge-renderer",function(){if(EPR!==void 0)return EPR;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return EPR=g},{mode:1});var sj8;var yNX;var DI=function(){return _.X.apply(this,arguments)||this};
_.A(DI,_.X);DI.prototype.computeState=function(g){switch(g==null?void 0:g.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"}};
DI.prototype.updateStateIdentifier=function(g){if(this.viewModel.triStateKey){var u=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.JZ("triStateButtonStateEntityPayload",u,{key:u,stateIdentifier:g}))}};
DI.prototype.onClick=function(){var g=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(){g.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){g.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.z3.Object.defineProperties(DI.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 g;return((g=this.data)==null?void 0:g.buttonText)||""}}});
_.Y([_.a(),_.K("design:type",Object)],DI.prototype,"viewModel",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],DI.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],DI.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.Y([_.a({selector:$OS,selectorArgs:["viewModel.triStateKey"]}),_.K("design:type",Object)],DI.prototype,"triStateButtonStateEntity",void 0);
_.Y([_.a({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.K("design:type",String)],DI.prototype,"state",void 0);_.Y([_.C("viewModel","state"),_.K("design:type",Object),_.K("design:paramtypes",[])],DI.prototype,"data",null);_.Y([_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],DI.prototype,"buttonText",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],DI);
_.T(DI,"ytd-tri-state-button-view-model",function(){if(yNX!==void 0)return yNX;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return yNX=g},{mode:1});var vP$;var DL2;var pb=function(){var g=_.X.apply(this,arguments)||this;g.defaultIconToFilled=!_.w("kevlar_fill_comment_chip_icon_killswitch");return g};
_.A(pb,_.X);pb.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
pb.prototype.dataChanged=function(){if(this.data){var g,u;((g=this.data.chipColorPalette)==null?0:g.backgroundColor)&&((u=this.data.chipColorPalette)==null?0:u.foregroundTitleColor)&&_.x_(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.jh(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.jh(this.data.chipColorPalette.foregroundTitleColor)});var q;((q=this.data)==null?0:q.command)?(_.x_(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.x_(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}};
pb.prototype.onTap=function(){var g;if(this.data&&(g=this.data)!=null&&g.command){var u;this.ytComponentBehavior.resolveCommand((u=this.data)==null?void 0:u.command)}};
pb.prototype.getIconSize=function(){return _.w("kevlar_fill_comment_chip_icon_killswitch")?24:12};
pb.prototype.onTap=pb.prototype.onTap;pb.prototype.dataChanged=pb.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],pb.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n8),_.K("design:type",Object)],pb.prototype,"ironA11yKeysBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pb.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],pb.prototype,"basePriceText",void 0);_.Y([_.a(),_.K("design:type",Object)],pb.prototype,"chipIcon",void 0);_.Y([_.a(),_.K("design:type",Object)],pb.prototype,"defaultIconToFilled",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pb.prototype,"dataChanged",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pb.prototype,"onTap",null);
_.Y([_.jP({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],pb);
_.T(pb,"yt-pdg-comment-chip-renderer",function(){if(DL2===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;vP$===void 0&&(vP$=document.createElement("template"));var Q=vP$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);DL2=g}g=DL2;return g},{mode:2});var Jw=function(){var g=_.X.apply(this,arguments)||this;g.useSmallAvatars=_.w("small_avatars_for_comments");g.commentThreadingEnabled=_.w("web_delhi_comment_threads");g.webWatchCompactComments=_.w("web_watch_compact_comments");g.editDialog=null;return g};
_.A(Jw,_.X);_.P=Jw.prototype;_.P.onShow=function(){_.Mf("cmv",void 0,"wn_comments")};
_.P.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"}}}};
_.P.detached=function(){this.editDialog=null;this.expander.reset()};
_.P.updateBackgroundColor=function(){if(this.backgroundColor){var g={"--ytd-comment-paid-background-color":_.jh(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.x_(this.hostElement,g)}else _.x_(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.P.resetExpander=function(){var g;(g=this.expander)==null||g.reset()};
_.P.openEditDialog=function(g){g.dialog&&(this.editDialog=g.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.P.onYtNavigate=function(g){var u=g.detail.endpoint;if(u=_.c(u,_.Aai)||_.c(u,_.ZK5))g.stopPropagation(),this.openEditDialog(u)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null;_.x_(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.P.onAuthorThumbnailClicked=function(){_.w("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.P.onYtCommentboxResize=function(g){var u;(g==null?0:(u=g.detail)==null?0:u.height)&&_.x_(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":g.detail.height+"px"})};
_.z3.Object.defineProperties(Jw.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 g,u=(g=this.commentEntity)==null?void 0:g.author;return u&&(u.isCreator||u.isVerified||u.isArtist)?{renderer:{authorEndpoint:u.channelPageEndpoint?_.c(u.channelPageEndpoint,_.Jo):_.c(u.channelCommand,_.Jo),authorText:{runs:[{text:u.displayName}]},color:u.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:u.isArtist?{iconType:"AUDIO_BADGE"}:
u.isVerified?{iconType:u.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:u.isArtist||u.isVerified?u.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var g,u=(g=this.commentEntity)==null?void 0:g.author;return u!=null&&u.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:u.sponsorBadgeUrl}]},tooltip:u.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var g;return _.c((g=this.commentSurfaceEntity)==null?void 0:g.pdgCommentChip,_.u68)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var g;return this.voiceReplyContainerViewModel&&((g=this.voiceReplyContainerViewModel)==null?void 0:g.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var g;return _.c((g=this.commentSurfaceEntity)==null?void 0:g.voiceReplyContainerViewModel,oxW)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var g;return this.voiceReplyContainerViewModel&&(g=this.voiceReplyContainerViewModel)!=null&&g.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=(g=this.commentSurfaceEntity)==null?void 0:g.commentBackgroundColor)!=null?u:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var g,u;return(((g=this.commentEntity)==null?void 0:(u=g.properties)==null?void 0:u.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var g,u;if(_.w("enable_profile_cards_on_comments")&&((g=this.commentEntity)==null?0:(u=g.author)==null?0:u.profileCardEndpoint)&&this.viewModel.allowProfileCard){var q,Q;return _.c((q=this.commentEntity)==null?void 0:(Q=q.author)==null?void 0:Q.profileCardEndpoint,_.Jo)}var L,E;return _.c((L=this.commentEntity)==null?void 0:(E=L.avatar)==null?void 0:E.endpoint,_.Jo)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var g,u;if(_.w("enable_profile_cards_on_comments")&&((g=this.commentEntity)==null?0:(u=g.author)==null?0:u.channelPageEndpoint)){var q,Q;return _.c((q=this.commentEntity)==null?void 0:(Q=q.author)==null?void 0:Q.channelPageEndpoint,_.Jo)}var L,E;return _.c((L=this.commentEntity)==null?void 0:(E=L.avatar)==null?void 0:E.endpoint,_.Jo)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q,L=(g=this.commentEntity)==null?void 0:(u=g.avatar)==null?void 0:(q=u.image)==null?void 0:(Q=q.sources)==null?void 0:Q[0];return L?{thumbnails:[{url:L.url,width:L.width,height:L.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.commentEntity)==null?0:(u=g.author)==null?0:u.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.commentEntity)==null?void 0:(u=g.author)==null?void 0:u.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.commentEntity)==null?void 0:(u=g.properties)==null?void 0:u.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var g;return _.c((g=this.commentSurfaceEntity)==null?void 0:g.publishedTimeCommand,_.Jo)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var g,u;if(((g=this.commentEntity)==null?0:g.translatedContent)&&((u=this.translateButtonState)==null?void 0:u.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var q;if((q=this.voiceReplyContainerViewModel)==null?0:q.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var Q,L;return((Q=this.commentEntity)==null?void 0:(L=Q.properties)==null?void 0:L.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.commentSharedEntity)==null?void 0:(u=g.strings)==null?void 0:u.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.commentSharedEntity)==null?void 0:(u=g.strings)==null?void 0:u.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.commentEntity)==null||!g.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var g,u,q=(u=_.c((g=this.viewModel)==null?void 0:g.translateButton,SFH))!=null?u:{},Q,L,E,y,v,J,f,t,e,G,R;return Object.assign({},q,{untoggledStateData:Object.assign({},q.untoggledStateData,{buttonText:(Q=this.commentEntity)==null?void 0:(L=Q.translateData)==null?void 0:L.text}),togglingStateData:Object.assign({},q.togglingStateData,{buttonText:(E=this.commentSharedEntity)==null?
void 0:(y=E.strings)==null?void 0:y.translatingText}),toggledStateData:Object.assign({},q.toggledStateData,{buttonText:(v=this.commentSharedEntity)==null?void 0:(J=v.strings)==null?void 0:J.seeOriginalText}),transitionCommand:((f=this.commentEntity)==null?0:f.translatedContent)?void 0:_.c((t=this.commentEntity)==null?void 0:(e=t.translateData)==null?void 0:e.translateComment,_.Jo),triStateKey:(G=this.commentEntity)==null?void 0:(R=G.properties)==null?void 0:R.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((u=_.c(_.c((g=this.toolbarSurface)==null?void 0:g.menuCommand,_.Jo),lx$))==null?void 0:(q=u.menu)==null?void 0:q.menuRenderer)||null}}});
Jw.prototype.onYtCommentboxResize=Jw.prototype.onYtCommentboxResize;Jw.prototype.onYtCommentboxDismiss=Jw.prototype.onYtCommentboxDismiss;Jw.prototype.onYtNavigate=Jw.prototype.onYtNavigate;Jw.prototype.resetExpander=Jw.prototype.resetExpander;Jw.prototype.updateBackgroundColor=Jw.prototype.updateBackgroundColor;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Jw.prototype,"ytdReduxBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Jw.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.oE("#author-thumbnail > button"),_.K("design:type",HTMLElement)],Jw.prototype,"authorThumbnailAnchor",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("viewModel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jw.prototype,"linked",null);
_.Y([_.C("viewModel","linked"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"linkedCommentBadge",null);_.Y([_.a({reflectToAttribute:!0}),_.C("viewModel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jw.prototype,"pinned",null);_.Y([_.C("viewModel","pinned"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"pinnedCommentBadge",null);
_.Y([_.C("commentEntity","commentSharedEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"authorCommentBadge",null);_.Y([_.a({reflectToAttribute:!0}),_.C("authorCommentBadge"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"hasAuthorBadge",null);_.Y([_.C("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"sponsorCommentBadge",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("sponsorCommentBadge"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"hasSponsorBadge",null);_.Y([_.C("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"pdgCommentChipRenderer",null);_.Y([_.a({reflectToAttribute:!0}),_.C("voiceReplyContainerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"hasVoiceReply",null);
_.Y([_.C("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"voiceReplyContainerViewModel",null);_.Y([_.C("voiceReplyContainerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"voiceReplyUnavailableText",null);_.Y([_.a(),_.K("design:type",Object)],Jw.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"viewModel",null);
_.Y([_.a({selector:function(g,u){return _.BC(g.entities,"commentSharedEntityPayload",u)},
selectorArgs:["viewModel.sharedKey"]}),_.K("design:type",Object)],Jw.prototype,"commentSharedEntity",void 0);_.Y([_.a({selector:ecq,selectorArgs:["viewModel.commentKey"]}),_.K("design:type",Object)],Jw.prototype,"commentEntity",void 0);_.Y([_.a({selector:function(g,u){return _.BC(g.entities,"commentSurfaceEntityPayload",u)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.K("design:type",Object)],Jw.prototype,"commentSurfaceEntity",void 0);_.Y([_.a({selector:Gt3,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.K("design:type",Object)],Jw.prototype,"toolbarSurface",void 0);_.Y([_.a({selector:$OS,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.K("design:type",Object)],Jw.prototype,"translateButtonState",void 0);
_.Y([_.C("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"backgroundColor",null);_.Y([_.a({reflectToAttribute:!0}),_.C("viewModel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jw.prototype,"optimalReadingWidthComments",null);_.Y([_.oE("ytd-expander"),_.K("design:type",Object)],Jw.prototype,"expander",void 0);
_.Y([_.k_("backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jw.prototype,"updateBackgroundColor",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Jw.prototype,"useSmallAvatars",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Jw.prototype,"engagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Jw.prototype,"commentThreadingEnabled",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Jw.prototype,"webWatchCompactComments",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"isReply",null);_.Y([_.C("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"authorThumbnailEndpoint",null);_.Y([_.C("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"authorNameEndpoint",null);
_.Y([_.C("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"authorThumbnail",null);_.Y([_.C("commentEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Jw.prototype,"authorTextClass",null);_.Y([_.C("commentEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Jw.prototype,"authorChannelName",null);_.Y([_.C("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"publishedTime",null);
_.Y([_.C("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"publishedTimeCommand",null);_.Y([_.C("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"contentText",null);_.Y([_.k_("contentText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jw.prototype,"resetExpander",null);
_.Y([_.C("commentEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jw.prototype,"shouldShowReadMoreInitially",null);_.Y([_.C("commentSharedEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Jw.prototype,"expandText",null);_.Y([_.C("commentSharedEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Jw.prototype,"collapseText",null);_.Y([_.C("commentEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jw.prototype,"shouldShowTranslateButton",null);
_.Y([_.C("commentEntity","commentSharedEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"translateButton",null);_.Y([_.C("toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jw.prototype,"overflowMenuRenderer",null);_.Y([_.a(),_.K("design:type",Object)],Jw.prototype,"editDialog",void 0);_.Y([_.oE("ytd-comment-dialog-renderer"),_.K("design:type",Object)],Jw.prototype,"editCommentDialogContainer",void 0);
_.Y([_.oE("ytd-comment-reply-dialog-renderer"),_.K("design:type",Object)],Jw.prototype,"editReplyDialogContainer",void 0);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Jw.prototype,"onYtNavigate",null);_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Jw.prototype,"onYtCommentboxDismiss",null);
_.Y([_.n6("yt-commentbox-resize"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Jw.prototype,"onYtCommentboxResize",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Jw);
_.T(Jw,"ytd-comment-view-model",function(){if(sj8!==void 0)return sj8;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return sj8=g},{mode:_.hr("kevlar_poly_si_batch_j025")?1:2});_.dL(_.r(function(g){var u={},q={};return _.p("yt-sub-thread",{class:_.Ty("ytSubThreadHost",(u.ytSubThreadHasButton=g.isButton,u.ytSubThreadHovered=g.hovered,u.ytSubThreadTopLevelThread=function(){var Q,L;return((Q=g.topLevelThread)==null?void 0:Q.call(g))&&!(_.w("small_avatars_for_comments")&&((L=g.engagementPanel)==null?0:L.call(g)))},u))},_.p("div",{class:"ytSubThreadThreadline"},_.p(_.M,{cond:function(){var Q;
return!((Q=g.isTeaser)==null?0:Q.call(g))},
then:function(){return _.p("div",{class:"ytSubThreadConnection"})}}),_.p("div",{class:"ytSubThreadContinuation"}),_.p("div",{class:"ytSubThreadShadow"})),_.p("div",{class:_.Ty("ytSubThreadSubThreadContent",(q.ytSubThreadSubThreadContentEngagementPanel=g.engagementPanel,q))},g.children))},"Qc"),"yt-sub-thread",{props:{isButton:_.H2,
isTeaser:_.H2,hovered:_.H2,topLevelThread:_.H2,engagementPanel:_.H2}});var jG=function(){var g=_.X.apply(this,arguments)||this;g.modern=_.w("web_modern_buttons");g.commentThreadingEnabled=_.w("web_delhi_comment_threads");g.isWatchGrid=_.w("kevlar_watch_grid");g.buttonOverrides=g.commentThreadingEnabled?_.w("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};g.JSC$16348_spinnerEl=null;return g};
_.A(jG,_.X);_.P=jG.prototype;_.P.configureContinuationPathMap=function(){return _.w("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.shouldShowLegacyTeasers=function(g,u){return g&&!u};
_.P.shouldShowExpandedThreads=function(g,u){return this.commentThreadingEnabled&&u&&(g==null?void 0:g.length)>0};
_.P.shouldShowCollapsedThreads=function(g,u){return this.commentThreadingEnabled&&!u&&g};
_.P.computeCommentViewModel=function(g){return _.c(g,kna)};
_.P.computeThreadRenderer=function(g){return _.c(g,OA$)};
_.P.computeIsContinuationItem=function(g){return!!this.computeContinuationItemRenderer(g)};
_.P.computeButtonRenderer=function(g){return _.c(g,_.eW)};
_.P.computeContinuationItemRenderer=function(g){return _.c(g,_.V5)};
_.P.computeShowButton=function(g){var u;return!((u=this.computeContinuationItemRenderer(g))==null||!u.button)};
_.P.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]]"}}}}}};
_.P.attached=function(){this.isShowRepliesVisible=!0};
_.P.dataChanged=function(){var g=this.expanderContents;g&&(g.hidden=!0);this.isLoading=!1};
_.P.endsInContinuation=function(g){return!!g&&g.length>0&&!!this.computeContinuationItemRenderer(g[g.length-1])};
_.P.computeShouldShowHideRepliesButton=function(g,u){return!g&&u};
_.P.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.P.isLoadingChanged=function(){this.isLoading&&!this.JSC$16348_spinnerEl&&(this.JSC$16348_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Tr(this.expanderContents).appendChild(this.JSC$16348_spinnerEl));this.JSC$16348_spinnerEl&&(this.JSC$16348_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var g;(g=this.contents)==null||g.classList.remove("reloading")}};
_.P.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var g=_.c(this.data.viewReplies,_.eW);g&&this.ytRendererBehavior.logExplicitClick(g);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.P.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var g=_.c(this.data.hideReplies,_.eW);g&&this.ytRendererBehavior.logExplicitClick(g);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.P.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var g=_.Tr(this.hostElement).querySelector("#expander-contents");g&&(g.hidden=this.isShowRepliesVisible)}};
_.P.computeAlign=function(){if(this.modern){var g;return!((g=this.data)==null?0:g.viewRepliesCreatorThumbnail)}};
_.z3.Object.defineProperties(jG.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var g,u;return this.endsInContinuation((g=this.data)==null?void 0:g.contents)||this.commentThreadingEnabled&&this.endsInContinuation((u=this.data)==null?void 0:u.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var g;return(g=this.data)==null?void 0:g.teaserContents}}});
jG.prototype.isShowMoreChanged=jG.prototype.isShowMoreChanged;jG.prototype.isLoadingChanged=jG.prototype.isLoadingChanged;jG.prototype.triggerFirstContinuation=jG.prototype.triggerFirstContinuation;jG.prototype.dataChanged=jG.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],jG.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.i5),_.K("design:type",Object)],jG.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],jG.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],jG.prototype,"modern",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],jG.prototype,"commentThreadingEnabled",void 0);_.Y([_.a(),_.K("design:type",Boolean)],jG.prototype,"expanded",void 0);
_.Y([_.a(),_.K("design:type",Function)],jG.prototype,"toggleExpanded",void 0);_.Y([_.a(),_.K("design:type",Array)],jG.prototype,"addedReplies",void 0);_.Y([_.a(),_.K("design:type",Boolean)],jG.prototype,"hovered",void 0);_.Y([_.a(),_.K("design:type",Boolean)],jG.prototype,"topLevelThread",void 0);_.Y([_.a(),_.K("design:type",Boolean)],jG.prototype,"isLoading",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],jG.prototype,"isShowRepliesVisible",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],jG.prototype,"useNewFormatting",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],jG.prototype,"engagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],jG.prototype,"isWatchGrid",void 0);_.Y([_.a(),_.K("design:type",Object)],jG.prototype,"buttonOverrides",void 0);_.Y([_.oE("#expander-contents"),_.K("design:type",HTMLElement)],jG.prototype,"expanderContents",void 0);
_.Y([_.oE("ytd-continuation-item-renderer"),_.K("design:type",Object)],jG.prototype,"continuationItemRenderer",void 0);_.Y([_.oE("#contents"),_.K("design:type",HTMLElement)],jG.prototype,"contents",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jG.prototype,"dataChanged",null);_.Y([_.C("data.contents","data.subThreads.*"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jG.prototype,"hasContinuation",null);
_.Y([_.C("data.teaserContents"),_.K("design:type",Object),_.K("design:paramtypes",[])],jG.prototype,"subThreadTeasers",null);_.Y([_.n6("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jG.prototype,"triggerFirstContinuation",null);_.Y([_.k_("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jG.prototype,"isLoadingChanged",null);
_.Y([_.k_("isShowRepliesVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jG.prototype,"isShowMoreChanged",null);_.Y([_.fE({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],jG);
_.T(jG,"ytd-comment-replies-renderer",function(){if(qjW!==void 0)return qjW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return qjW=g},{mode:1});var pgR;var fb=function(){var g=_.X.apply(this,arguments)||this;g.isOpen=!1;g.commentDialog=null;g.useSmallAvatars=_.w("small_avatars_for_comments");g.useSmallAvatarsEngagementPanelOnly=_.w("small_avatars_for_comments_ep");g.placeholderFocusListener=null;g.hasOpenedDialog=!1;g.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return g};
_.A(fb,_.X);_.P=fb.prototype;_.P.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]]"}}}}}};
_.P.ready=function(){var g=this,u=_.Tr(this.hostElement).querySelector("#placeholder-area"),q=_.Tr(this.hostElement).querySelector("#simplebox-placeholder"),Q=function(L){L.stopPropagation();L instanceof KeyboardEvent&&L.type==="keypress"&&L.keyCode!==13&&L.keyCode!==32||g.openDialog()};
this.placeholderFocusListener=Q;q.addEventListener("focus",this.placeholderFocusListener);u.addEventListener("tap",Q);u.addEventListener("keypress",Q)};
_.P.maybeRemoveFocusEventListener=function(){var g;(g=this.data)!=null&&g.prepareAccountEndpoint&&!_.w("web_comments_simplebox_modal_focus_on_tap_ks")&&(g=_.Tr(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(g.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.P.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.P.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.w("web_comment_simplebox_resolve_polymer_command_ks")?_.ze.instance.resolveCommand(this.data.prepareAccountEndpoint):_.nE(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);g&&this.ytdOpenPopupBehavior.openPopup(g);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(g),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Tr(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.P.onYtCommentboxDismiss=function(g){g.stopPropagation();this.isOpen=!1};
_.P.onCreateCommentAction=function(g){this.get("createCommentAction.contents",g)&&(this.isOpen=!1)};
_.P.computeCommentDialog=function(g){return{placeholderText:g.placeholderText,authorThumbnail:g.authorThumbnail,submitButton:g.submitButton,imageButton:g.imageButton,cancelButton:g.cancelButton,emojiButton:g.emojiButton,emojis:g.emojis,emojiPicker:g.emojiPicker,aadcGuidelinesStateEntityKey:g.aadcGuidelinesStateEntityKey,openAadcDialog:g.openAadcDialog,unicodeEmojisUrl:g.unicodeEmojisUrl}};
_.P.onHideIdentityChip=function(g){_.c(g,XjZ)&&this.set("data.placeholderText",_.c(g,XjZ).placeholderText)};
fb.prototype.onYtCommentboxDismiss=fb.prototype.onYtCommentboxDismiss;fb.prototype.dataChanged=fb.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],fb.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],fb.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],fb.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],fb.prototype,"isOpen",void 0);_.Y([_.a(),_.K("design:type",Object)],fb.prototype,"commentDialog",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],fb.prototype,"engagementPanel",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],fb.prototype,"useSmallAvatars",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],fb.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],fb.prototype,"enableCreationBox",void 0);_.Y([_.a(),_.K("design:type",Boolean)],fb.prototype,"showCreateDialog",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fb.prototype,"dataChanged",null);_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],fb.prototype,"onYtCommentboxDismiss",null);_.Y([_.fE({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],fb);
_.T(fb,"ytd-comment-simplebox-renderer",function(){if(pgR!==void 0)return pgR;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return pgR=g},{mode:1});var JNZ;_.Ny("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Mb=function(){var g=_.X.apply(this,arguments)||this;g.addHoverEffect=_.w("swatcheroo_comments_hover_effect");g.useSmallAvatars=_.w("small_avatars_for_comments");g.scrollingEnabled=_.w("web_comment_threading_scroll_on_collapse");g.isSubThread=!1;g.threadHovered=!1;g.expanded=!1;g.removed=!1;g.addedReplies=[];g.actionMap=g.configureActionMap();g.toggleExpanded=function(){g.expanded=!g.expanded;!g.expanded&&g.scrollingEnabled&&_.YJ(g.hostElement,"yt-scroll-to-comment-element",[g.commentElement])};
return g};
_.A(Mb,_.X);_.P=Mb.prototype;_.P.configureActionMap=function(){return _.w("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"}:{}};
_.P.createCommentReplyAction=function(g){g=_.c(g,arZ);if(g!=null&&g.contents){var u=g.replyToCommentId,q=g.parentCommentId,Q,L=(Q=this.commentViewModel)==null?void 0:Q.commentId;(L===u||L===q&&!u)&&this.maybeAttachReply(g.contents)}};
_.P.maybeAttachReply=function(g){var u,q;(((u=this.commentEntity)==null?void 0:(q=u.properties)==null?void 0:q.replyLevel)||0)>=3?_.hJ(this.hostElement,"yt-pushed-create-comment-reply",g):this.attachReply(g)};
_.P.onPushedCreateCommentReply=function(g){var u,q;(((u=this.commentEntity)==null?void 0:(q=u.properties)==null?void 0:q.replyLevel)||0)>=3||(this.attachReply(g.detail),g.stopPropagation())};
_.P.attachReply=function(g){var u;((u=this.data)==null?0:u.replies)?(u=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+u+".continuationItemRenderer")?u===0?this.push("addedReplies",g):this.splice("data.replies.commentRepliesRenderer.subThreads",u,0,g):this.push("data.replies.commentRepliesRenderer.subThreads",g)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[g],viewReplies:{buttonRenderer:{text:_.ap(_.Ug("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.P.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.na(this.addedReplies))),this.set("addedReplies",[]))};
_.P.removeCommentAction=function(g){g=_.c(g,TGW);var u=g==null?void 0:g.commentId,q;u&&((q=this.commentViewModel)==null?void 0:q.commentId)===u&&this.maybeRemoveComment(g.actionResult)};
_.P.banAuthorAction=function(g){g=_.c(g,F$Z);var u=g==null?void 0:g.commentId,q;u&&((q=this.commentViewModel)==null?void 0:q.commentId)===u&&this.maybeRemoveComment(g.actionResult)};
_.P.hideReportedCommentAction=function(g){g=_.c(g,qt2);var u=g==null?void 0:g.commentId,q;u&&((q=this.commentViewModel)==null?void 0:q.commentId)===u&&this.maybeRemoveComment(g.actionResult)};
_.P.maybeRemoveComment=function(g){g&&g.status==="STATUS_SUCCEEDED"&&(this.feedbackText=g.feedbackText||_.ap("Reply removed"),this.removed=!0)};
_.P.onTap=function(g){if(this.addHoverEffect&&!this.engagementPanel&&!_.ia(_.C6(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var u;((u=window.getSelection())==null?0:u.toString().length)||_.nE({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.P.attached=function(){var g=this;this.isSubThread&&(this.expanded=!0);var u;(u=this.commentThreadHitbox)==null||u.addEventListener("mouseover",function(){g.threadHovered=!0});
var q;(q=this.commentThreadHitbox)==null||q.addEventListener("mouseout",function(){g.threadHovered=!1});
var Q;(Q=this.commentThreadHitbox)==null||Q.addEventListener("click",function(){g.maybeToggleExpanded()})};
_.P.onDataChanged=function(){var g=_.w("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(g)&&this.set(g,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.P.maybeToggleExpanded=function(){var g,u,q,Q=(g=this.data)==null?void 0:(u=g.replies)==null?void 0:(q=u.commentRepliesRenderer)==null?void 0:q.subThreads,L;(Q==null?void 0:Q.length)===1&&((L=_.c(Q[0],_.V5))==null?0:L.button)&&this.expanded||this.toggleExpanded()};
_.z3.Object.defineProperties(Mb.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var g;return _.c((g=this.data)==null?void 0:g.commentViewModel,kna)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return _.w("web_delhi_comment_threads")&&!!((g=this.data)==null?0:(u=g.replies)==null?0:(q=u.commentRepliesRenderer)==null?0:q.subThreads)}}});
Mb.prototype.onDataChanged=Mb.prototype.onDataChanged;Mb.prototype.onTap=Mb.prototype.onTap;Mb.prototype.onAppendContinuationItemsActionFinished=Mb.prototype.onAppendContinuationItemsActionFinished;Mb.prototype.onPushedCreateCommentReply=Mb.prototype.onPushedCreateCommentReply;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Mb.prototype,"ytdReduxBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Mb.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Mb.prototype,"addHoverEffect",void 0);_.Y([_.a(),_.K("design:type",Object)],Mb.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Mb.prototype,"useSmallAvatars",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Mb.prototype,"scrollingEnabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Mb.prototype,"isSubThread",void 0);_.Y([_.oE(".thread-hitbox"),_.K("design:type",HTMLElement)],Mb.prototype,"commentThreadHitbox",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Mb.prototype,"threadHovered",void 0);_.Y([_.oE("#comment"),_.K("design:type",HTMLElement)],Mb.prototype,"commentElement",void 0);
_.Y([_.a(),_.K("design:type",Object)],Mb.prototype,"expanded",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Mb.prototype,"removed",void 0);_.Y([_.a(),_.K("design:type",Object)],Mb.prototype,"feedbackText",void 0);_.Y([_.a(),_.K("design:type",Array)],Mb.prototype,"addedReplies",void 0);_.Y([_.a({selector:ecq,selectorArgs:["commentViewModel.commentKey"]}),_.K("design:type",Object)],Mb.prototype,"commentEntity",void 0);
_.Y([_.n6("yt-pushed-create-comment-reply"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Mb.prototype,"onPushedCreateCommentReply",null);_.Y([_.n6("yt-append-continuation-items-action-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mb.prototype,"onAppendContinuationItemsActionFinished",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Mb.prototype,"commentViewModel",null);
_.Y([_.C("data.replies.commentRepliesRenderer.subThreads"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Mb.prototype,"hasSubThreading",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Mb.prototype,"engagementPanel",void 0);_.Y([_.n6("tap"),_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Mb.prototype,"onTap",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mb.prototype,"onDataChanged",null);_.Y([_.fE({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Mb);
_.T(Mb,"ytd-comment-thread-renderer",function(){if(JNZ!==void 0)return JNZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return JNZ=g},{mode:2});var jjZ;var tw=function(){var g=_.X.apply(this,arguments)||this;g.compactHeader=_.w("web_watch_compact_comments_header");g.hidePanelButton=!1;g.isPostSchedulingEnabled=_.w("enable_post_scheduling");g.hasFinishedStamping=!1;g.JSC$16371_handleOpenPostCommentDialogActionAfterStamp=!1;g.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return g};
_.A(tw,_.X);_.P=tw.prototype;
_.P.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"}}}};
_.P.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.P.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16371_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.onYtServiceRequestSent=function(g,u){if(!_.w("kevlar_command_handler")&&u.actions)for(g=0;g<u.actions.length;g++){var q=u.actions[g];_.c(q,PuR)&&_.Tr(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.c(q,PuR))}};
_.P.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var g;if(this.getPrefilledBackstagePostDialog((g=this.data)==null?void 0:g.actions)){_.Tr(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var u=_.Tr(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;u&&_.xt(this,function(){u.focus();u.openDialog&&u.openDialog()})}}else this.hasActionsChange=!0};
_.P.computeIsBackstage=function(g){return g};
_.P.onYtCommentboxDismiss=function(){_.Tr(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.P.removePrefilledDialog=function(g){if(g==null?0:g.actions){for(var u=g.actions.length-1;u>=0;u--){var q=void 0;((q=_.c(g.actions[u],cao))==null?0:q.dialog)&&delete g.actions[u]}this.set("data",void 0);this.set("data",g)}};
_.P.getPrefilledBackstagePostDialog=function(g){if(g)for(var u=0;u<g.length;u++){var q=g[u],Q=void 0;if((Q=_.c(q,cao))==null?0:Q.dialog)return _.c(q,cao).dialog}return null};
_.P.computeBackstagePostDialog=function(g){return g&&(this.getPrefilledBackstagePostDialog(g.actions)||g.createRenderer)};
_.P.dataChanged=function(){if(this.data){var g=this.data.customEmojis,u=this.data.unicodeEmojisUrl;_.wx.clear();u&&_.PKi(_.wx,u);g&&_.wx.load(g)}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var g=_.Tr(this.hostElement).querySelector("ytd-comment-simplebox-renderer");g?g.openDialog():this.JSC$16371_handleOpenPostCommentDialogActionAfterStamp=!0};
_.P.onPostHeaderTap=function(){var g;((g=this.data)==null?0:g.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.z3.Object.defineProperties(tw.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.w("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q,L,E,y;return!this.hidePanelButton&&_.w("kevlar_watch_comments_panel_button")&&((y=_.c((g=this.data)==null?void 0:(u=g.sortMenu)==null?void 0:(q=u.sortFilterSubMenuRenderer)==null?void 0:(Q=q.subMenuItems)==null?void 0:(L=Q[0])==null?void 0:(E=L.serviceEndpoint)==null?void 0:E.commandMetadata,_.S_))==null?void 0:y.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Ug("MINIPLAYER_EXPAND_LABEL"),text:_.I7(_.Ug("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
tw.prototype.dataChanged=tw.prototype.dataChanged;tw.prototype.onYtCommentboxDismiss=tw.prototype.onYtCommentboxDismiss;tw.prototype.observePrefilledBackstagePostDialog=tw.prototype.observePrefilledBackstagePostDialog;tw.prototype.onYtServiceRequestSent=tw.prototype.onYtServiceRequestSent;tw.prototype.onStampFinished=tw.prototype.onStampFinished;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],tw.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],tw.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tw.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tw.prototype,"compactHeader",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],tw.prototype,"engagementPanel",void 0);_.Y([_.a(),_.K("design:type",Object)],tw.prototype,"hidePanelButton",void 0);_.Y([_.a({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.K("design:type",Boolean)],tw.prototype,"isBackstage",void 0);_.Y([_.a({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.K("design:type",Object)],tw.prototype,"backstagePostDialog",void 0);
_.Y([_.a(),_.K("design:type",Object)],tw.prototype,"isPostSchedulingEnabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data","showCommentsPanelButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],tw.prototype,"useSpaceBetween",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data","hidePanelButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],tw.prototype,"showCommentsPanelButton",null);
_.Y([_.C("data","showCommentsPanelButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],tw.prototype,"commentsPanelButtonData",null);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tw.prototype,"onStampFinished",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],tw.prototype,"onYtServiceRequestSent",null);
_.Y([_.k_("data.actions"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tw.prototype,"observePrefilledBackstagePostDialog",null);_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],tw.prototype,"onYtCommentboxDismiss",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tw.prototype,"dataChanged",null);
_.Y([_.fE({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],tw);
_.T(tw,"ytd-comments-header-renderer",function(){if(jjZ!==void 0)return jjZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return jjZ=g},{mode:1});var fAo;var eG=function(){return _.X.apply(this,arguments)||this};
_.A(eG,_.X);_.Y([_.a(),_.K("design:type",Object)],eG.prototype,"data",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.Y([_.fE({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],eG);
_.T(eG,"ytd-destination-button-renderer",function(){if(fAo!==void 0)return fAo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return fAo=g},{mode:1});var MwW;var GJ=function(){var g=_.X.apply(this,arguments)||this;g.isRichGrid=!1;g.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return g};
_.A(GJ,_.X);_.P=GJ.prototype;_.P.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.P.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.P.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var g;if((g=this.data)==null||!g.isExpanded){g=this.hostElement.clientWidth;var u;if(g&&(u=this.data)!=null&&u.destinationButtons){u=Math.floor((g+4)/214);g=this.data.destinationButtons.length;var q=Math.ceil(g/u);this.fullyVisibleRows=g%u===1&&q===2?1:Math.min(q,2);this.isShowMoreVisible=this.fullyVisibleRows<q}}}};
_.P.updateRichGridDestinationButtonsVisibility=function(){var g,u;if(this.isRichGrid&&((g=this.data)==null||!g.isExpanded)&&(u=this.data)!=null&&u.destinationButtons){g=this.richGridItemsPerRow+1;u=this.data.destinationButtons.length;var q=Math.ceil(u/g);this.fullyVisibleRows=u%g===1&&q===2?1:Math.min(q,2);this.isShowMoreVisible=this.fullyVisibleRows<q}};
_.P.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
GJ.prototype.updateRichGridDestinationButtonsVisibility=GJ.prototype.updateRichGridDestinationButtonsVisibility;_.Y([_.a(),_.K("design:type",Object)],GJ.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Number)],GJ.prototype,"fullyVisibleRows",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],GJ.prototype,"isShowMoreVisible",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],GJ.prototype,"isRichGrid",void 0);
_.Y([_.a({selector:_.JD,value:0}),_.K("design:type",Number)],GJ.prototype,"richGridItemsPerRow",void 0);_.Y([_.a(),_.K("design:type",Object)],GJ.prototype,"gridStateActionMap",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],GJ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],GJ.prototype,"ytdReduxBehavior",void 0);_.Y([_.k_("data","richGridItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GJ.prototype,"updateRichGridDestinationButtonsVisibility",null);_.Y([_.fE({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],GJ);
_.T(GJ,"ytd-destination-shelf-renderer",function(){if(MwW!==void 0)return MwW;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return MwW=g},{mode:1});var twn;var $z=function(){return _.X.apply(this,arguments)||this};
_.A($z,_.X);$z.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],$z.prototype,"data",void 0);_.Y([_.fE({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],$z);
_.T($z,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(twn!==void 0)return twn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return twn=g},{mode:1});var e72;var Rk=function(){var g=_.X.apply(this,arguments)||this;g.disableAnimation=!1;g.isSlimlineSurvey=!1;g.isSlimlineSurveyFollowUp=!1;g.isShortsStyle=!1;return g};
_.A(Rk,_.X);Rk.prototype.onTap=function(g){g.preventDefault();this.data&&_.hJ(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.z3.Object.defineProperties(Rk.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 g,u,q,Q,L;return((g=this.data)==null?0:g.checked)?(u=this.data)==null?void 0:(q=u.onStateIcon)==null?void 0:q.iconType:(Q=this.data)==null?void 0:(L=Q.defaultStateIcon)==null?void 0:L.iconType}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Rk.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Rk.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Rk.prototype,"disableAnimation",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rk.prototype,"isSlimlineSurvey",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rk.prototype,"isSlimlineSurveyFollowUp",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rk.prototype,"isShortsStyle",void 0);_.Y([_.C("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Rk.prototype,"isAnimatedIcon",null);
_.Y([_.C("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.K("design:type",Number),_.K("design:paramtypes",[])],Rk.prototype,"iconSize",null);_.Y([_.C("isShortsStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Rk.prototype,"isDarkTheme",null);_.Y([_.C("data.checked"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rk.prototype,"icon",null);_.Y([_.fE({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Rk);
_.T(Rk,"ytd-rating-survey-option-renderer",function(){if(e72!==void 0)return e72;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return e72=g},{mode:2});var G18;var wb=function(){var g=_.X.apply(this,arguments)||this;g.firstResponseText=null;g.lastResponseText=null;g.selectedNonStarOption=null;g.hideOptions=!1;g.hideUndoButton=!0;g.disableAnimation=!1;g.showResponseRangeText=!1;g.selectedRatingIndex=-1;g.isSlimlineSurvey=!1;g.isSlimlineSurveyFollowUp=!1;g.isShortsStyle=!1;g.slimlineSurveyRatingSelectedIndex=-1;return g};
_.A(wb,_.X);_.P=wb.prototype;_.P.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.P.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.P.onOptionChange=function(g,u){var q=this;g=u.onStateIcon&&u.defaultStateIcon&&u.onStateIcon.iconType===u.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(y,v){y.responseText===u.responseText?q.isSlimlineSurvey?(q.selectedRatingIndex=v,q.ytdReduxBehavior.dispatch(AKa(v))):(q.setSurveyOptionValue(v,!0,"checked"),q.setSurveyOptionValue(v,!0,"selected")):(q.setSurveyOptionValue(v,!1,"checked"),q.setSurveyOptionValue(v,
!1,"selected"))});
else if(g)this.selectedNonStarOption=u,this.hideOptions=!0;else{var Q=this.ytRendererBehavior.getSimpleString(u.responseText),L=!0;this.getOptionRenderers().forEach(function(y,v){q.setSurveyOptionValue(v,L,"checked");q.setSurveyOptionValue(v,!1,"selected");q.ytRendererBehavior.getSimpleString(y.responseText)===Q&&(L=!1,q.setSurveyOptionValue(v,!0,"selected"))})}g=u.responseEndpoint;
var E;u.followUpCommand&&(E=_.c(u.followUpCommand,JO0));this.isSlimlineSurvey?(this.resetComponent(),_.YJ(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.YJ(this.hostElement,"ytd-inline-survey-rating-select-action",[g,E])};
_.P.showSelectedOption=function(){var g=this;_.Hv.addJob(function(){var u=g.getOptionRenderers()[g.slimlineSurveyRatingSelectedIndex];g.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),u)},8,100)};
_.P.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(g){var u;return(u=_.c(g,f8R))!=null?u:{}}):[]};
_.P.onUndoClick=function(){this.resetComponent();_.YJ(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.P.setSurveyOptionValue=function(g,u,q){this.notifyPath("data.ratings."+g+".ratingSurveyOptionRenderer."+q);this.set("data.ratings."+g+".ratingSurveyOptionRenderer."+q,u)};
_.P.resetComponent=function(){var g=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var u=this.getOptionRenderers(),q,Q;this.firstResponseText=(Q=(q=u[0])==null?void 0:q.responseText)!=null?Q:null;var L,E;this.lastResponseText=(E=(L=u[u.length-1])==null?void 0:L.responseText)!=null?E:null;u.forEach(function(y,v){g.setSurveyOptionValue(v,!1,"checked");g.setSurveyOptionValue(v,!1,"selected")})};
_.z3.Object.defineProperties(wb.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
wb.prototype.onOptionChange=wb.prototype.onOptionChange;wb.prototype.dataChanged=wb.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],wb.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wb.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],wb.prototype,"firstResponseText",void 0);_.Y([_.a(),_.K("design:type",Object)],wb.prototype,"lastResponseText",void 0);_.Y([_.a(),_.K("design:type",Object)],wb.prototype,"selectedNonStarOption",void 0);_.Y([_.a(),_.K("design:type",Object)],wb.prototype,"hideOptions",void 0);_.Y([_.a(),_.K("design:type",Object)],wb.prototype,"hideUndoButton",void 0);_.Y([_.a(),_.K("design:type",Object)],wb.prototype,"disableAnimation",void 0);
_.Y([_.a(),_.K("design:type",Object)],wb.prototype,"showResponseRangeText",void 0);_.Y([_.a(),_.K("design:type",Object)],wb.prototype,"selectedRatingIndex",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wb.prototype,"isSlimlineSurvey",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wb.prototype,"isSlimlineSurveyFollowUp",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wb.prototype,"isShortsStyle",void 0);_.Y([_.a({selector:function(g){return g.ui.slimlineSurveyRatingSelectedIndex}}),
_.K("design:type",Object)],wb.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.Y([_.C("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wb.prototype,"isSingleSelect",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wb.prototype,"dataChanged",null);
_.Y([_.n6("ytd-rating-survey-option-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],wb.prototype,"onOptionChange",null);_.Y([_.fE({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],wb);
_.T(wb,"ytd-rating-survey-renderer",function(){if(G18!==void 0)return G18;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return G18=g},{mode:1});var $LR;var R7X;var wgn;var FPS=(zk.FIRSTDAYOFWEEK+1)%7,cN2=function(g,u,q,Q){var L="";if(Q.selection&&iLh(Q.selection))Kn(g,Q.selection)&&(L+=" selected");else if(Q.selection&&CIS(Q.selection)){var E=Q.selection.selectionState||"START_DATE";Kn(g,Q.selection.start)&&(L+=" period-start ",E==="START_DATE"&&(L+="selected"));Kn(g,Q.selection.end)&&(L+=" period-end ",E==="END_DATE"&&(L+="selected"));xy(g,Q.selection.start)||xy(Q.selection.end,g)||(L+=" highlighted")}if(xy(u,Q.start)||xy(Q.end,u))L+=" disabled";Q.circleToday&&
Kn(u,q)&&(L+=" today");return L};var cV=function(){return _.X.apply(this,arguments)||this};
_.A(cV,_.X);_.P=cV.prototype;_.P.attached=function(){var g=this;_.xt(this,function(){g.JSC$16405_calendarMain.scrollHeight>0&&(g.calendarConfig.selection?g.scrollToDate(bLJ(g.calendarConfig.selection)):g.scrollToDate(g.calendarConfig.end))})};
_.P.updateSelection=function(g){g=mC3(Object.assign({},this.calendarConfig,{selection:g}),cN2);this.splice.apply(this,["renderData.months",0,g.length].concat(_.na(g)))};
_.P.scrollToDate=function(g){this.renderData&&(g=ajF(g,this.renderData),g!==void 0&&this.JSC$16405_calendarMain.scrollToIndex(g))};
_.P.scrollToNextMonth=function(){this.JSC$16405_calendarMain.scrollToIndex(this.JSC$16405_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$16405_calendarMain.firstVisibleIndex===0&&this.JSC$16405_calendarMain.scrollTo(0,0);this.JSC$16405_calendarMain.scrollToIndex(this.JSC$16405_calendarMain.firstVisibleIndex-1)};
_.P.handleDayClick=function(g){_.YJ(this.hostElement,"ytd-calendar-date-clicked",[g.model.day.date])};
_.P.handleDayMouseDown=function(g){g.preventDefault();_.YJ(this.hostElement,"ytd-calendar-date-mousedown",[g.model.day.date])};
_.P.handleDayMouseUp=function(g){_.YJ(this.hostElement,"ytd-calendar-date-mouseup",[g.model.day.date])};
_.P.handleDayMouseEnter=function(g){g.preventDefault();_.YJ(this.hostElement,"ytd-calendar-date-mouseenter",[g.model.day.date])};
_.P.handleDayMouseLeave=function(g){_.YJ(this.hostElement,"ytd-calendar-date-mouseleave",[g.model.day.date])};
_.z3.Object.defineProperties(cV.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var g=this.calendarConfig,u=cN2;u=u===void 0?cN2:u;for(var q=[],Q=0;Q<7;Q++)q.push(zk.NARROWWEEKDAYS[(Q+FPS)%7]);return{months:mC3(g,u),daysOfWeekLabel:q}}}});
_.Y([_.a(),_.K("design:type",Object)],cV.prototype,"calendarConfig",void 0);_.Y([_.oE("#calendar-main"),_.K("design:type",Object)],cV.prototype,"JSC$16405_calendarMain",void 0);_.Y([_.C("calendarConfig"),_.K("design:type",Object),_.K("design:paramtypes",[])],cV.prototype,"renderData",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],cV);
_.T(cV,"ytd-scrollable-calendar",function(){if(wgn!==void 0)return wgn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return wgn=g},{mode:2});var HDW;var ANR;var HV=function(){var g=_.X.apply(this,arguments)||this;g.hideCharCounter=!1;g.hideLabel=!1;g.noLabelFloat=!1;g.autoValidate=!0;g.invalid=!1;g.disabled=!1;g.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return g};
_.A(HV,_.X);_.P=HV.prototype;_.P.reset=function(g){this.value=g&&this.data?this.data.value=g:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.P.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.P.focusTextInput=function(){this.input.focus()};
_.P.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()};
_.P.valueChanged=function(){var g,u;if(((g=this.data)==null?0:g.value)||((u=this.data)==null?void 0:u.value)==="")this.value=this.data.value;else{var q;((q=this.data)==null?void 0:q.value)!==void 0||this.value||(this.value="")}};
_.P.computeLabel=function(g,u){return u?"":_.iR(g)};
_.P.computeAriaLabel=function(g,u){return u?_.iR(g):""};
_.P.computeErrorMessage=function(g,u,q,Q){return!g&&u?q||this.strings.REQUIRED_LABEL:_.$SR(_.iR(Q))};
_.P.computeType=function(g){return g==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.P.onTextValueChanged=function(g){this.value=g.detail.value;var u;(u=this.onValueChanged)==null||u.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.P.handleUpdateTextInputFormFieldRendererCommand=function(g){(g=_.c(g,aSn))&&this.data&&this.data.id===g.id&&(g.invalid!==void 0&&(this.invalid=g.invalid),g.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",g.invalidValueErrorMessage))};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("value-changed",this.value))};
_.P.updateInvalidFromBinding=function(g){this.invalid=g.detail.value};
_.z3.Object.defineProperties(HV.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var g;return!((g=this.data)==null||!g.isMultiline)}}});
HV.prototype.valueChangedForBinding=HV.prototype.valueChangedForBinding;HV.prototype.valueChanged=HV.prototype.valueChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],HV.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],HV.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],HV.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],HV.prototype,"value",void 0);_.Y([_.a(),_.K("design:type",String)],HV.prototype,"pattern",void 0);_.Y([_.a(),_.K("design:type",String)],HV.prototype,"errorMessage",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],HV.prototype,"componentStyle",void 0);_.Y([_.a(),_.K("design:type",Object)],HV.prototype,"hideCharCounter",void 0);
_.Y([_.a(),_.K("design:type",Object)],HV.prototype,"hideLabel",void 0);_.Y([_.a(),_.K("design:type",Object)],HV.prototype,"noLabelFloat",void 0);_.Y([_.a(),_.K("design:type",Function)],HV.prototype,"onValueChanged",void 0);_.Y([_.a(),_.K("design:type",Boolean)],HV.prototype,"isMultilineOverride",void 0);_.Y([_.a(),_.K("design:type",Object)],HV.prototype,"autoValidate",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HV.prototype,"invalid",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HV.prototype,"disabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],HV.prototype,"enableOverlayTheme",void 0);_.Y([_.a({value:{REQUIRED_LABEL:_.Ug("REQUIRED_LABEL",void 0,"Required")}}),_.K("design:type",Object)],HV.prototype,"strings",void 0);_.Y([_.oE("#input"),_.K("design:type",Object)],HV.prototype,"input",void 0);
_.Y([_.C("data","isMultilineOverride"),_.K("design:type",Object),_.K("design:paramtypes",[])],HV.prototype,"isMultiline",null);_.Y([_.qm("data.value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HV.prototype,"valueChanged",null);_.Y([_.k_("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HV.prototype,"valueChangedForBinding",null);_.Y([_.jP({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],HV);
_.T(HV,"yt-text-input-form-field-renderer",function(){if(ANR===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;HDW===void 0&&(HDW=document.createElement("template"));var Q=HDW;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ANR=g}g=ANR;return g},{mode:2});var Aw=function(){var g=_.X.apply(this,arguments)||this;g.data=void 0;g.selectionState="START_DATE";g.isStartDateInvalid=!1;g.isEndDateInvalid=!1;g.autoapply=!1;g.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 g};
_.A(Aw,_.X);_.P=Aw.prototype;_.P.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"}}}}};
_.P.focus=function(){this.startDateInput.focus()};
_.P.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:BY(this.data.selection.start),end:BY(this.data.selection.end)})};
_.P.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.qE(this.selectionState)}};
_.P.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.P.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.P.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var g=this.calendar.calendarConfig,u=g.end;g=XfJ({start:g.start,end:this.endDate||u},this.startDateInput.value||"");this.isStartDateInvalid=!g.isValid;g.isValid&&(g=g.value,this.selection=this.endDate?{start:g,end:this.endDate}:g,this.calendar.scrollToDate(g));this.updateInvalidState()}};
_.P.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var g=this.calendar.calendarConfig,u=g.start;g=XfJ({start:this.startDate||u,end:g.end},this.endDateInput.value||"");this.isEndDateInvalid=!g.isValid;g.isValid&&(g=g.value,this.selection={start:this.startDate,end:g},this.calendar.scrollToDate(g));this.updateInvalidState()}};
_.P.handleCalendarDateClicked=function(g){var u=this.selection&&bLJ(this.selection),q=this.selection&&dCm(this.selection);u&&!xy(g,u)&&this.selectionState==="END_DATE"?(this.selection={start:u,end:g},this.selectionState="START_DATE"):(q&&!xy(q,g)?this.selection={start:g,end:q}:this.selection=g,this.selectionState="END_DATE")};
_.P.handleCalendarDateMouseDown=function(g){this.selection&&!iLh(this.selection)&&(this.dragPivot=Kn(g,this.selection.start)?this.selection.end:Kn(g,this.selection.end)?this.selection.start:g)};
_.P.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.P.handleCalendarDateMouseEnter=function(g){this.dragPivot&&(this.selection={start:function(u,q){return xy(u,q)?u:q}(this.dragPivot,g),
end:function(u,q){return xy(u,q)?q:u}(this.dragPivot,g)},this.dragPivot||(this.selectionState="START_DATE"))};
_.P.handleCalendarDateMouseLeave=function(){};
_.P.handleCalendarSubmitDateRange=function(){this.selection&&!iLh(this.selection)&&_.YJ(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.P.updateInvalidState=function(){var g=function(u,q){q?u.setAttribute("invalid",""):u.removeAttribute("invalid")};
g(this.startDateInput,this.isStartDateInvalid);g(this.endDateInput,this.isEndDateInvalid)};
_.P.updateDateStrings=function(){this.selection&&(iLh(this.selection)?IjT(this.selection):(IjT(this.selection.start),IjT(this.selection.end)))};
_.P.updateCalendarSelection=function(g){this.calendar.updateSelection(Object.assign({},g,{selectionState:this.selectionState}))};
_.P.updateIsStartDateInvalidFromBinding=function(g){this.isStartDateInvalid=g.detail.value};
_.P.updateIsEndDateInvalidFromBinding=function(g){this.isEndDateInvalid=g.detail.value};
_.P.updateStartDateStringFromBinding=function(){};
_.P.updateEndDateStringFromBinding=function(){};
_.z3.Object.defineProperties(Aw.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:BY(this.data.dateRangeStart),end:BY(this.data.dateRangeEnd),selection:{start:BY(this.data.selection.start),end:BY(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&bLJ(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&dCm(this.selection)}}});
Aw.prototype.resetTextboxes=Aw.prototype.resetTextboxes;Aw.prototype.observeSelection=Aw.prototype.observeSelection;Aw.prototype.dataChanged=Aw.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Aw.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Aw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.oE("#calendar"),_.K("design:type",Object)],Aw.prototype,"calendar",void 0);
_.Y([_.oE("#start-date"),_.K("design:type",Object)],Aw.prototype,"startDateInput",void 0);_.Y([_.oE("#end-date"),_.K("design:type",Object)],Aw.prototype,"endDateInput",void 0);_.Y([_.a(),_.K("design:type",Object)],Aw.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Aw.prototype,"selection",void 0);_.Y([_.a(),_.K("design:type",String)],Aw.prototype,"selectionState",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Aw.prototype,"calendarConfig",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Aw.prototype,"errorMessage",null);_.Y([_.C("selection"),_.K("design:type",Object),_.K("design:paramtypes",[])],Aw.prototype,"startDate",null);_.Y([_.C("selection"),_.K("design:type",Object),_.K("design:paramtypes",[])],Aw.prototype,"endDate",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Aw.prototype,"dataChanged",null);
_.Y([_.k_("selection","selectionState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Aw.prototype,"observeSelection",null);_.Y([_.k_("selectionState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Aw.prototype,"resetTextboxes",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Aw);
_.T(Aw,"ytd-date-period-picker-renderer",function(){if(R7X!==void 0)return R7X;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return R7X=g},{mode:1});var ZI=function(){var g=_.X.apply(this,arguments)||this;var u={};g.actionMap=(u["ytd-date-period-picker-apply"]="handleDateRangeUpdated",u);return g};
_.A(ZI,_.X);ZI.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
ZI.prototype.handleDateRangeUpdated=function(){};
_.Y([_.a(),_.K("design:type",Object)],ZI.prototype,"data",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ZI.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ZI.prototype,"rendererstamperBehavior",void 0);_.Y([_.fE({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],ZI);
_.T(ZI,"ytd-report-history-section-header-renderer",function(){if($LR!==void 0)return $LR;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return $LR=g},{mode:1});var ZDn;var lAo;var IAW;var l3=function(){return _.X.apply(this,arguments)||this};
_.A(l3,_.X);_.z3.Object.defineProperties(l3.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?0:(u=g.icon)==null?0:u.iconType)?_.x9(this.data.icon.iconType):""}}});
_.Y([_.a(),_.K("design:type",Object)],l3.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],l3.prototype,"icon",null);_.Y([_.fE({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],l3);
_.T(l3,"ytd-report-history-table-text-cell-renderer",function(){if(IAW!==void 0)return IAW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return IAW=g},{mode:1});var Ik=function(){return _.X.apply(this,arguments)||this};
_.A(Ik,_.X);Ik.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ik.prototype,"data",void 0);_.Y([_.fE({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Ik);
_.T(Ik,"ytd-report-history-table-reason-cell-renderer",function(){if(lAo!==void 0)return lAo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return lAo=g},{mode:1});var i3=function(){return _.X.apply(this,arguments)||this};
_.A(i3,_.X);i3.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"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],i3.prototype,"rendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],i3.prototype,"data",void 0);_.Y([_.fE({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],i3);
_.T(i3,"ytd-report-history-table-cell-renderer",function(){if(ZDn!==void 0)return ZDn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return ZDn=g},{mode:1});var iD8;var Cb=function(){var g=_.X.apply(this,arguments)||this;g.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 g};
_.A(Cb,_.X);Cb.prototype.onDataChanged=function(){var g;if((g=this.data)==null?0:g.style)this.componentStyle=this.getStyleName(this.data.style)};
Cb.prototype.getCellForColumn=function(g){return this.cells.find(function(u){var q;return((q=_.c(u==null?void 0:u.cell,e0R)||_.c(u==null?void 0:u.cell,tna))==null?void 0:q.columnId)===g.type})};
Cb.prototype.getClassForColumn=function(g){switch(g){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Cb.prototype.getStyleName=function(g){switch(g){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.z3.Object.defineProperties(Cb.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.cells)||[]).map(function(u){return _.c(u,MnW)})}}});
Cb.prototype.onDataChanged=Cb.prototype.onDataChanged;_.Y([_.a(),_.K("design:type",Object)],Cb.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Array)],Cb.prototype,"columnRenderData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],Cb.prototype,"componentStyle",void 0);_.Y([_.C("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],Cb.prototype,"cells",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Cb.prototype,"onDataChanged",null);_.Y([_.fE({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Cb);
_.T(Cb,"ytd-report-history-table-row-renderer",function(){if(iD8!==void 0)return iD8;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return iD8=g},{mode:1});var CV5;var bDR;var rlu={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},WPm={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var b3=function(){return _.X.apply(this,arguments)||this};
_.A(b3,_.X);b3.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"}}}}}};
b3.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.z3.Object.defineProperties(b3.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.columns)?KPb(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return YDS(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var g=this.tableSpec,u=rlu;u=u===void 0?WPm:u;u=OLZ(g.columnDimensions,g.columnsToShow||[],u);g=0;u=_.N(u);for(var q=u.next();!q.done;q=u.next())q=q.value,g+=q.minWidth+q.paddingLeft+q.paddingRight;return g}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.Y([_.I(_.i5),_.K("design:type",Object)],b3.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],b3.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],b3.prototype,"tableSpec",null);_.Y([_.C("tableSpec"),_.K("design:type",Array),_.K("design:paramtypes",[])],b3.prototype,"columnRenderData",null);
_.Y([_.C("tableSpec"),_.K("design:type",Number),_.K("design:paramtypes",[])],b3.prototype,"totalMinWidth",null);_.Y([_.C("totalMinWidth"),_.K("design:type",String),_.K("design:paramtypes",[])],b3.prototype,"tableWidthStyle",null);_.Y([_.fE({is:"ytd-table-renderer",disableElementRegistration:!0})],b3);
_.T(b3,"ytd-table-renderer",function(){if(bDR!==void 0)return bDR;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return bDR=g},{mode:1});var db=function(){return _.X.apply(this,arguments)||this};
_.A(db,_.X);db.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}}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],db.prototype,"data",void 0);_.Y([_.fE({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],db);
_.T(db,"ytd-report-reason-history-modal-renderer",function(){if(CV5!==void 0)return CV5;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return CV5=g},{mode:1});var dLb;var FtW;var mLi;var Fd=function(){return _.X.apply(this,arguments)||this};
_.A(Fd,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Fd.prototype,"data",void 0);_.Y([_.fE({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Fd);
_.T(Fd,"ytd-profile-column-stats-entry-renderer",function(){if(mLi!==void 0)return mLi;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return mLi=g},{mode:1});var aA0;var mM=function(){return _.X.apply(this,arguments)||this};
_.A(mM,_.X);mM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],mM.prototype,"data",void 0);_.Y([_.fE({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],mM);
_.T(mM,"ytd-profile-column-stats-renderer",function(){if(aA0!==void 0)return aA0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return aA0=g},{mode:1});var Vwn;var ak=function(){return _.X.apply(this,arguments)||this};
_.A(ak,_.X);_.z3.Object.defineProperties(ak.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.useThumbnailSize)return 80;var u,q;g=(u=this.data)==null?void 0:(q=u.thumbnail)==null?void 0:q.thumbnails;var Q;return g&&((Q=g[0])==null?void 0:Q.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.useThumbnailSize)return 80;var u,q;g=(u=this.data)==null?void 0:(q=u.thumbnail)==null?void 0:q.thumbnails;var Q;return g&&((Q=g[0])==null?void 0:Q.height)||80}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ak.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],ak.prototype,"componentStyle",void 0);_.Y([_.C("data.useThumbnailSize"),_.K("design:type",Object),_.K("design:paramtypes",[])],ak.prototype,"thumbnailWidth",null);
_.Y([_.C("data.useThumbnailSize"),_.K("design:type",Object),_.K("design:paramtypes",[])],ak.prototype,"thumbnailHeight",null);_.Y([_.fE({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],ak);
_.T(ak,"ytd-profile-column-user-info-renderer",function(){if(Vwn!==void 0)return Vwn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Vwn=g},{mode:1});var VF=function(){return _.X.apply(this,arguments)||this};
_.A(VF,_.X);VF.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]]"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],VF.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],VF.prototype,"componentStyle",void 0);_.Y([_.fE({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],VF);
_.T(VF,"ytd-profile-column-renderer",function(){if(FtW!==void 0)return FtW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return FtW=g},{mode:1});var Xd=function(){var g=_.X.apply(this,arguments)||this;g.componentStyle="NON_CENTERED_PROFILE";return g};
_.A(Xd,_.X);Xd.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Xd.prototype.getIcon=function(g){return g?"settings:"+g.toLowerCase():null};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Xd.prototype,"data",void 0);_.Y([_.fE({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Xd);
_.T(Xd,"ytd-page-introduction-renderer",function(){if(dLb!==void 0)return dLb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return dLb=g},{mode:1});var XgW;var rb=function(){return _.X.apply(this,arguments)||this};
_.A(rb,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],rb.prototype,"data",void 0);_.Y([_.fE({is:"ytd-report-description-renderer",disableElementRegistration:!0})],rb);
_.T(rb,"ytd-report-description-renderer",function(){if(XgW!==void 0)return XgW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return XgW=g},{mode:1});var rNZ;var Wta;var WV=function(){return _.X.apply(this,arguments)||this};
_.A(WV,_.X);WV.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],WV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],WV.prototype,"data",void 0);_.Y([_.fE({is:"ytd-video-report-renderer",disableElementRegistration:!0})],WV);
_.T(WV,"ytd-video-report-renderer",function(){if(Wta!==void 0)return Wta;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Wta=g},{mode:1});var Tso;_.Ny("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Ny("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var TJ=function(){return _.X.apply(this,arguments)||this};
_.A(TJ,_.X);TJ.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]]"}}}}}};
TJ.prototype.computeMessageStyle=function(g){return g};
TJ.prototype.computeButtonOverride=function(g){var u;if((g==null?0:(u=g.style)==null?0:u.value)&&g.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],TJ.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],TJ.prototype,"shelf",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],TJ.prototype,"panel",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.K("design:type",Boolean)],TJ.prototype,"componentStyle",void 0);_.Y([_.a({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],TJ.prototype,"buttonOverride",void 0);_.Y([_.fE({is:"ytd-message-renderer",disableElementRegistration:!0})],TJ);
_.T(TJ,"ytd-message-renderer",function(){if(Tso!==void 0)return Tso;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Tso=g},{mode:1});var hw=function(){return _.X.apply(this,arguments)||this};
_.A(hw,_.X);hw.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"}}}};
hw.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
hw.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.z3.Object.defineProperties(hw.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var g,u;return!!(((g=this.data)==null?0:g.header)&&((u=this.data)==null?0:u.table))}}});
hw.prototype.onRequestError=hw.prototype.onRequestError;_.Y([_.I(_.i5),_.K("design:type",Object)],hw.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],hw.prototype,"data",void 0);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],hw.prototype,"isUnifiedReportHistory",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hw.prototype,"onRequestError",null);_.Y([_.fE({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],hw);
_.T(hw,"ytd-report-history-section-renderer",function(){if(rNZ!==void 0)return rNZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return rNZ=g},{mode:1});var h7i;var Yz=function(){var g=_.X.apply(this,arguments)||this;g.answerExpanded=!1;return g};
_.A(Yz,_.X);Yz.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Yz.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Yz.prototype,"answerExpanded",void 0);_.Y([_.fE({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Yz);
_.T(Yz,"ytd-handles-claiming-faq-renderer",function(){if(h7i!==void 0)return h7i;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return h7i=g},{mode:1});var Yj5;var ODZ=function(){return _.X.apply(this,arguments)||this};
_.A(ODZ,_.X);_.Y([_.a(),_.K("design:type",Object)],ODZ.prototype,"data",void 0);_.Y([_.fE({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],ODZ);
_.T(ODZ,"ytd-handles-claiming-faq-section-renderer",function(){if(Yj5!==void 0)return Yj5;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Yj5=g},{mode:1});var KtZ;var OJ=function(){var g=_.X.apply(this,arguments)||this;g.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";g.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";g.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";g.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";g.leftSquiggly=g.leftSquigglyLight;g.rightSquiggly=g.rightSquigglyLight;
g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};g.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return g};
_.A(OJ,_.X);_.P=OJ.prototype;_.P.updateLeftSquigglyStyle=function(){_.x_(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.P.updateRightSquigglyStyle=function(){_.x_(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.P.ready=function(){var g=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(g)};
_.P.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.set("isDarkTheme",g),g?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
OJ.prototype.updateRightSquigglyStyle=OJ.prototype.updateRightSquigglyStyle;OJ.prototype.updateLeftSquigglyStyle=OJ.prototype.updateLeftSquigglyStyle;_.Y([_.a(),_.K("design:type",Object)],OJ.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],OJ.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",String)],OJ.prototype,"leftSquiggly",void 0);_.Y([_.a(),_.K("design:type",String)],OJ.prototype,"rightSquiggly",void 0);
_.Y([_.k_("leftSquiggly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],OJ.prototype,"updateLeftSquigglyStyle",null);_.Y([_.k_("rightSquiggly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],OJ.prototype,"updateRightSquigglyStyle",null);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],OJ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],OJ.prototype,"actionButtonOverride",void 0);_.Y([_.fE({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],OJ);
_.T(OJ,"ytd-handles-claiming-header-renderer",function(){if(KtZ!==void 0)return KtZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return KtZ=g},{mode:1});var xLo;var Kb=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};g.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";g.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";g.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";g.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
g.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";g.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";g.image0SquigglyBackground=g.image0LightSquigglyBackground;g.image1SquigglyBackground=g.image1LightSquigglyBackground;g.image3SquigglyBackground=g.image3LightSquigglyBackground;return g};
_.A(Kb,_.X);_.P=Kb.prototype;_.P.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.P.onDataChanged=function(){this.updateTitleAndImages()};
_.P.onThemeChanged=function(){this.updateTitleAndImages()};
_.P.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.isDarkTheme=g)};
_.P.updateImage0SquigglyBackground=function(){_.x_(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.P.updateImage1SquigglyBackground=function(){_.x_(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.P.updateImage3SquigglyBackground=function(){_.x_(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.P.updateTitleAndImages=function(){var g,u;((g=this.data)==null?void 0:(u=g.titleImages)==null?void 0:u.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))};
Kb.prototype.updateImage3SquigglyBackground=Kb.prototype.updateImage3SquigglyBackground;Kb.prototype.updateImage1SquigglyBackground=Kb.prototype.updateImage1SquigglyBackground;Kb.prototype.updateImage0SquigglyBackground=Kb.prototype.updateImage0SquigglyBackground;Kb.prototype.onThemeChanged=Kb.prototype.onThemeChanged;Kb.prototype.onDataChanged=Kb.prototype.onDataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Kb.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Kb.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"title0",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"title1",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"title2",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"title3",void 0);
_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"title4",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"image0",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"image1",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"image2",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"image3",void 0);_.Y([_.a(),_.K("design:type",Object)],Kb.prototype,"image4",void 0);_.Y([_.a(),_.K("design:type",String)],Kb.prototype,"image0SquigglyBackground",void 0);
_.Y([_.a(),_.K("design:type",String)],Kb.prototype,"image1SquigglyBackground",void 0);_.Y([_.a(),_.K("design:type",String)],Kb.prototype,"image3SquigglyBackground",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kb.prototype,"onDataChanged",null);_.Y([_.k_("isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kb.prototype,"onThemeChanged",null);
_.Y([_.k_("image0SquigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kb.prototype,"updateImage0SquigglyBackground",null);_.Y([_.k_("image1SquigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kb.prototype,"updateImage1SquigglyBackground",null);
_.Y([_.k_("image3SquigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kb.prototype,"updateImage3SquigglyBackground",null);_.Y([_.fE({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Kb);
_.T(Kb,"ytd-handles-claiming-title-images-section-renderer",function(){if(xLo!==void 0)return xLo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return xLo=g},{mode:1});var Bso;var xz=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(xz,_.X);xz.prototype.ready=function(){var g=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(g)};
xz.prototype.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&this.set("isDarkTheme",g)};
xz.prototype.onCopyButtonClick=function(){var g=this,u,q,Q;return _.D(function(L){return(u=g.data)!=null&&u.primaryChannelUrl?L.yield(navigator.clipboard.writeText(((q=g.data)==null?0:q.encodedChannelUrl)?g.data.encodedChannelUrl:"https://"+_.iR((Q=g.data)==null?void 0:Q.primaryChannelUrl)),0):L.jumpTo(0)})};
_.Y([_.a(),_.K("design:type",Object)],xz.prototype,"data",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],xz.prototype,"ytComponentBehavior",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],xz.prototype,"isDarkTheme",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],xz.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.fE({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],xz);
_.T(xz,"ytd-handles-claiming-update-social-renderer",function(){if(Bso!==void 0)return Bso;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Bso=g},{mode:1});var z7X;var BV=function(){var g=_.X.apply(this,arguments)||this;g.JSC$16499_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";g.JSC$16499_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};g.squigglyBackground=g.JSC$16499_squigglyBackgroundLight;return g};
_.A(BV,_.X);BV.prototype.updateSquigglyBackgroundStyle=function(){_.x_(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
BV.prototype.ready=function(){var g=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",g);this.squigglyBackground=g?this.JSC$16499_squigglyBackgroundDark:this.JSC$16499_squigglyBackgroundLight};
BV.prototype.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.set("isDarkTheme",g),this.squigglyBackground=g?this.JSC$16499_squigglyBackgroundDark:this.JSC$16499_squigglyBackgroundLight)};
BV.prototype.updateSquigglyBackgroundStyle=BV.prototype.updateSquigglyBackgroundStyle;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],BV.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BV.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],BV.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",String)],BV.prototype,"squigglyBackground",void 0);_.Y([_.k_("squigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BV.prototype,"updateSquigglyBackgroundStyle",null);_.Y([_.fE({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],BV);
_.T(BV,"ytd-handles-claiming-vanity-info-renderer",function(){if(z7X!==void 0)return z7X;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return z7X=g},{mode:1});var nPX;var zJ=function(){var g=_.X.apply(this,arguments)||this;g.JSC$16502_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";g.JSC$16502_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";g.squigglyBackground=g.JSC$16502_squigglyBackgroundLight;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(zJ,_.X);_.P=zJ.prototype;_.P.ready=function(){var g=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(g)};
_.P.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.set("isDarkTheme",g),this.squigglyBackground=g?this.JSC$16502_squigglyBackgroundDark:this.JSC$16502_squigglyBackgroundLight)};
_.P.updateSquigglyBackgroundStyle=function(){_.x_(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.P.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.P.detached=function(){this.stop()};
_.P.stop=function(){this.playerElement.stop()};
_.P.setupVideoPlayer=function(){var g=this,u,q;return _.D(function(Q){u=g.data.videoId;q="http://i1.ytimg.com/vi/"+u+"/maxresdefault.jpg";g.playerElement.loadVideoWithPlayerVars({video_id:u,iurlhq:q});_.Wx(Q)})};
zJ.prototype.onDataChanged=zJ.prototype.onDataChanged;zJ.prototype.updateSquigglyBackgroundStyle=zJ.prototype.updateSquigglyBackgroundStyle;_.Y([_.a({value:!1}),_.K("design:type",Boolean)],zJ.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",String)],zJ.prototype,"squigglyBackground",void 0);_.Y([_.oE("#player"),_.K("design:type",Object)],zJ.prototype,"playerElement",void 0);_.Y([_.a(),_.K("design:type",Object)],zJ.prototype,"data",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],zJ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.k_("squigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zJ.prototype,"updateSquigglyBackgroundStyle",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zJ.prototype,"onDataChanged",null);
_.Y([_.fE({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],zJ);
_.T(zJ,"ytd-handles-claiming-video-item-renderer",function(){if(nPX!==void 0)return nPX;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return nPX=g},{mode:1});var k1b;var kz=function(){var g=_.gO.apply(this,arguments)||this;g.dragging=!1;g.dragMouseStart=0;g.dragOffsetStart=0;g.containerWidthDiff=0;g.boundPrevClick=function(){g.set("offset",nb(g,g.offset-(g.scrollDistance||320)))};
g.boundNextClick=function(){g.set("offset",nb(g,g.offset+(g.scrollDistance||320)))};
g.boundScrollContainerMouseDown=function(u){g.dragMouseStart=u.clientX;g.dragOffsetStart=g.offset;g.dragging=!0};
g.boundScrollContainerDrag=function(u){g.dragging&&g.set("offset",nb(g,g.dragOffsetStart-(u.clientX-g.dragMouseStart)))};
g.boundMouseUp=function(){g.onMouseUp()};
g.boundWheelScroll=function(u){var q=0;Math.abs(u.deltaX)>=Math.abs(u.deltaY)?q=u.deltaX:u.shiftKey&&(q=u.deltaY);q!==0&&(g.offset+=q,u.stopPropagation(),u.preventDefault())};
g.boundChipCloudChipScrollIntoView=function(u){(u=u.detail)&&g.scrollChipIntoView(u)};
return g};
_.A(kz,_.gO);kz.prototype.attached=function(){var g=_.Tr(this.hostElement).querySelector("#scroll-container");g.addEventListener("wheel",this.boundWheelScroll);g.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);g.style.touchAction="pan-y";g.addEventListener("pointerdown",this.boundScrollContainerMouseDown);g.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
kz.prototype.detached=function(){var g=_.Tr(this.hostElement).querySelector("#scroll-container");g.removeEventListener("wheel",this.boundWheelScroll);g.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);g.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);g.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
kz.prototype.reset=function(){this.set("offset",0);_.xt(this,this.setContainerWidthDiff);_.xt(this,this.setButtonsState)};
var nb=function(g,u){return Math.min(Math.max(u,0),g.containerWidthDiff)};
_.P=kz.prototype;_.P.onMouseUp=function(){this.dragging=!1};
_.P.transformContainer=function(){this.offset=nb(this,this.offset);var g=_.FR("HTML_DIR")==="rtl"?"":"-";_.Tr(this.hostElement).querySelector("#chips").style.transform="translateX("+g+this.offset+"px)";_.xt(this,this.setButtonsState)};
_.P.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=nb(this,this.offset));this.atStart=this.offset<=0};
_.P.setContainerWidthDiff=function(){var g=_.Tr(this.hostElement).querySelector("#scroll-container"),u=_.Tr(this.hostElement).querySelector("#chips");g&&u&&(this.containerWidthDiff=u.clientWidth-g.clientWidth)};
_.P.scrollChipIntoView=function(g){var u=_.Tr(this.hostElement).querySelector("#scroll-container");if(u){var q=this.atStart?0:106,Q=this.atEnd?0:106;g.offsetLeft<this.offset+q?this.offset=nb(this,g.offsetLeft-q):g.offsetLeft+g.clientWidth>this.offset+u.clientWidth-Q&&(this.offset=nb(this,g.offsetLeft+g.clientWidth+Q-u.clientWidth))}};
kz.prototype.transformContainer=kz.prototype.transformContainer;_.Y([_.a({value:0}),_.K("design:type",Number)],kz.prototype,"offset",void 0);_.Y([_.a({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],kz.prototype,"atStart",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],kz.prototype,"atEnd",void 0);_.Y([_.a(),_.K("design:type",Number)],kz.prototype,"scrollDistance",void 0);
_.Y([_.k_("offset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kz.prototype,"transformContainer",null);_.Y([_.uU()],kz);var SjX;var oP$;_.SG=_.r(function(g){var u=g.data;g=_.N(_.jR(!1,void 0,"bob3J"));var q=g.next().value,Q=g.next().value;g=function(E){if((u==null?void 0:u().state)!==1){var y,v;(v=(y=u()).onTap)==null||v.call(y,E)}};
var L={};return _.p("chip-shape",{class:"ytChipShapeHost","on:focusin":_.YH(function(){var E=_.Bk().resolve(_.xv(_.m5));if(E){Q(E.isKeyBoardInUse());var y,v;(v=(y=u()).onFocusIn)==null||v.call(y)}return!1}),
"on:focusout":_.YH(function(){Q(!1);return!1})},_.p(ULi,{shouldWrapInButton:function(){return u().type!==2},
selected:function(){return u().state===0},
onClick:g,isDropdown:function(){return u().type===1},
accessibilityLabel:function(){return u().type===1?void 0:u().accessibilityLabel}},_.p("div",{class:_.Ty("ytChipShapeChip",function(){a:switch(u==null?void 0:u().state){case 0:var E="ytChipShapeActive";
break a;case 1:E="ytChipShapeDisabled";break a;default:E="ytChipShapeInactive"}return E},function(){var E=u().type===1||u().type===2,y=u();
return E||y!=null&&y.startIcon?y==null||!y.startIcon||y!=null&&y.text?E?"ytChipShapeEndIconPadding":(y==null?0:y.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var E=u();
if((E==null?void 0:E.style)===0&&(E==null?void 0:E.state)===0){var y;E=((y=_.Bk().resolve(_.xv(_.gy)))==null?0:y())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else E="";return E},(L.ytChipShapeFocused=function(){var E;
return q()&&((E=u())==null?void 0:E.state)!==1},L))},_.p(_.M,{cond:function(){return u().startIcon},
then:function(){return _.p(_.B1,{icon:function(){var E;return(E=u())==null?void 0:E.startIcon},
className:_.Ty(function(){return u().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var E=u(),y,v=(y=_.Bk().resolve(_.xv(_.gy)))==null?void 0:y();
return(E==null?void 0:E.style)===0&&(E==null?void 0:E.state)===0&&v?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return u().text},_.p(gUa,{shape:u,
onClick:g}),_.p(_.VU,{model:{borderRadius:"8px"}}))))},"Rc");
_.SG.idomCompat=!0;var ULi=_.r(function(g){var u=_.YH(function(q){g.onClick(q);return!1});
return _.p(_.M,{cond:g.shouldWrapInButton,then:function(){return _.p("button",{class:"ytChipShapeButtonReset","on:click":u,role:function(){return g.isDropdown()?"combobox":"tab"},
"aria-label":g.accessibilityLabel,"aria-selected":g.selected},g.children)},
else:function(){return g.children}})},"Sc"),gUa=_.r(function(g){var u=g.shape;
var q=g.onClick;var Q=_.YH(function(L){q(L);return!1});
return _.p(_.wi,null,_.p(_.Gv,{when:function(){return u().type===1}},function(){return _.p(_.B1,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.p(_.Gv,{when:function(){return u().type===2}},function(){return _.p("button",{class:"ytChipShapeButtonReset",
"on:click":Q},_.p(_.B1,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.p(_.Gv,{when:function(){return u().type===0}},function(){return _.p(_.U9,null)}))},"Tc");_.dL(_.SG,"chip-shape",{props:{data:_.H2}});var ok=function(){var g=_.X.apply(this,arguments)||this;g.disableDeselectEvent=!1;g.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return g};
_.A(ok,_.X);_.P=ok.prototype;_.P.onSelectChipCommand=function(g){if(!this.selected&&this.data&&(g=_.c(g,Amo),g.targetId&&g.targetId===this.data.targetId))this.onTap()};
_.P.onFilterChipTransformCommand=function(g){if(!this.selected&&this.data){var u;(g=(u=_.c(g,M28))==null?void 0:u.chipUniqueId)&&g===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.P.dataChanged=function(){var g=this;_.xt(this,function(){g.data&&g.data.isSelected&&!g.selected&&(g.scrollChipIntoView(),g.onTap())})};
_.P.computeChipStyle=function(g){return g!=null?g:"STYLE_DEFAULT"};
_.P.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.YJ(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.YJ(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.P.onFocus=function(){var g=_.Bk().resolve(_.xv(_.m5));g&&g.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.P.scrollChipIntoView=function(){_.hJ(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.z3.Object.defineProperties(ok.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return oWu({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
ok.prototype.onFocus=ok.prototype.onFocus;ok.prototype.onTap=ok.prototype.onTap;ok.prototype.dataChanged=ok.prototype.dataChanged;_.Y([_.I(_.ox),_.K("design:type",Object)],ok.prototype,"ironButtonState",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ok.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ok.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n8),_.K("design:type",Object)],ok.prototype,"ironA11yKeysBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ok.prototype,"disableDeselectEvent",void 0);_.Y([_.a(),_.K("design:type",Object)],ok.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.icon"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ok.prototype,"hasIcon",null);
_.Y([_.a({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.K("design:type",String)],ok.prototype,"chipStyle",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],ok.prototype,"selected",void 0);_.Y([_.C("data","selected"),_.K("design:type",Object),_.K("design:paramtypes",[])],ok.prototype,"chipShapeData",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ok.prototype,"dataChanged",null);
_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ok.prototype,"onTap",null);_.Y([_.n6("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ok.prototype,"onFocus",null);_.Y([_.jP({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],ok);
_.T(ok,"yt-chip-cloud-chip-renderer",function(){if(oP$===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;SjX===void 0&&(SjX=document.createElement("template"));var Q=SjX;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);oP$=g}g=oP$;return g},{mode:2});var ulm=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.u3Z=_.r(function(g){function u(){if(ulm.has(g.data().displayType)){var f=!Q(),t;if((t=g.disableDeselection)==null||!t.call(g)||f){g.data().selected=f;t=Object.assign({},y(),{selected:f});v(t);var e;(e=g.callback)==null||e.call(g,t,f)}}}
var q=_.Hk("chip-view-model",function(f){var t=g.data().tooltipTargetId,e=_.S9();t&&_.ka(e,t,f);return function(){nI(e,f)}}),Q=function(){var f,t;
return!!(((f=g.selected)==null?void 0:f.call(g))!==void 0?(t=g.selected)==null?0:t.call(g):y().selected)},L=_.N(_.mX(g.data)),E=L.next().value;
L=L.next().value;var y=E,v=L,J=_.kq(gjk,function(){return g.data().chipEntityKey||""});
return _.p("chip-view-model",{class:"ytChipViewModelHost",el:q},_.p(_.SG,{data:function(){var f,t=Object.assign({},y(),{selected:Q()}),e=J(),G=(f=g.disableDeselection)==null?void 0:f.call(g);a:switch(t.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":f=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":f=3;break a;default:f=0}return{text:(e==null?void 0:e.text)||t.text,state:t.disabled?1:t.selected?0:2,type:f,onTap:q2m(t,q,u,
G),accessibilityLabel:t.accessibilityLabel||t.text}}}))},"Uc");
_.u3Z.idomCompat={callbacks:{callback:!0}};_.UJ=_.r(function(g){g=_.FI(g,{nextButtonStyle:0});var u=g.data,q=g.callback,Q=g.selectionBehavior,L=g.disableChipsScrollAnimation,E=g.nextButtonStyle,y=_.AM("div");g=_.N(_.jR(!0,void 0,"VwW6Jc"));var v=g.next().value,J=g.next().value;g=_.N(_.jR(!1,void 0,"OIoagd"));var f=g.next().value,t=g.next().value,e=!1,G=0,R=function(){switch(E()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.lL(function(){J(d());t(F())});
g=_.N(_.mX(function(){var sb={};return u().autoselectedChipIndex!=null?(sb[u().autoselectedChipIndex]=!0,sb):{}}));
var H=g.next().value,l=g.next().value,d=function(){var sb=y.value;return sb==null||sb.scrollLeft-1<=0},F=function(){var sb=y.value;
return sb==null?!1:sb.scrollLeft+1>=(sb==null?NaN:sb.scrollWidth)-(sb==null?NaN:sb.clientWidth)},V=function(){return u().isHorizontallyScrollable},z=function(sb){y.value!=null&&(_.FR("HTML_DIR")==="rtl"&&(sb=-sb),y.value.scrollBy({left:sb,
behavior:(L==null?0:L())?"instant":"smooth"}))},O=function(){z(-320)},W=function(){z(320)},x=_.YH(function(sb){e=!0;
G=sb.clientX}),k=_.YH(function(sb){if(e){sb=sb.clientX;
var Rm=sb-G;G=sb;var M3;(M3=y.value)==null||M3.scrollBy({left:-Rm})}}),LZ=_.YH(function(){var sb=d(),Rm=F();
sb!==v()&&J(sb);Rm!==f()&&t(Rm)});
_.Oz("pointerup",function(){e&&(e=!1)});
return _.p("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.p(_.KG,{contentId:function(){return u().contentId},
useModernStyle:!0},function(){var sb={},Rm={};return _.p("div",null,_.p(_.M,{cond:function(){return u().title},
then:function(){return _.p("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.p("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return u().title}),_.p(_.Up,{data:function(){return u().overflowButton}},{buttonViewModel:_.TT}))}}),_.p("div",{class:_.Ty("ytChipsShelfViewModelChipsShelfContent",R)},_.p(_.M,{cond:function(){return u().previousButton},
then:function(){var M3={};return _.p("div",{class:_.Ty("ytChipsShelfViewModelLeftArrowContainer",(M3.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return v()},M3))},_.p(_.Up,{data:function(){return u().previousButton}},{buttonViewModel:function(tT){return _.p(_.TT,{data:tT.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:O})}}))}}),_.p("div",{el:y,
"on:pointerdown":x,"on:pointermove":k,"on:scroll":LZ,class:_.Ty("ytChipsShelfViewModelChipsScrollContainer",(sb.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=V,sb))},_.p("div",{class:_.Ty("ytChipsShelfViewModelChipsContainer",(Rm.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=V,Rm.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Rm)),role:"tablist"},_.p(_.Up,{data:function(){return u().contents}},{chipViewModel:function(M3,tT){return _.p("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.p(_.u3Z,{data:M3.data,
callback:function(mJ,hT){var Yu=tT(),Mx,po=(Mx=Q==null?void 0:Q())!=null?Mx:0;po===1||po===2?(Mx={},l((Mx[Yu]=hT,Mx))):po===0&&(Mx={},l(Object.assign({},H(),(Mx[Yu]=hT,Mx))));q==null||q(mJ,hT,Yu)},
disableDeselection:function(){return(Q==null?void 0:Q())===1},
selected:function(){return!!H()[tT()]}}))}}))),_.p(_.M,{cond:function(){return u().nextButton},
then:function(){var M3={};return _.p("div",{class:_.Ty("ytChipsShelfViewModelRightArrowContainer",(M3.ytChipsShelfViewModelRightArrowContainerIsHidden=f,M3))},_.p(_.Up,{data:function(){return u().nextButton}},{buttonViewModel:function(tT){return _.p(_.TT,{data:tT.data,
className:"ytChipsShelfViewModelRightArrow",onClick:W})}}))}})))}))},"Wc");
_.UJ.idomCompat={callbacks:{callback:!0}};var qoi=_.r(function(g){var u=g.data;var q=g.showChips;var Q=g.isUpdateInProgress;var L=g.chipClickCallback;g=_.N(_.jR(!1,void 0,"uth3se"));var E=g.next().value,y=g.next().value;g=_.N(_.jR(!1,void 0,"qED0bb"));var v=g.next().value,J=g.next().value,f=function(){var e,G;return!((e=u())==null?0:e.responseMessage)&&!((G=u())==null||!G.chipsShelf)},t=void 0;
_.bX(function(){J(!0);var e=(q()||f())&&!Q();requestAnimationFrame(function(){y(e)});
t&&clearTimeout(t);t=setTimeout(function(){J(!1)},300)},"OBQBmf");
_.dB(function(){t&&clearTimeout(t)});
g={};return _.p("ytd-ai-response-box-view-model",{class:_.Ty("ytdAiResponseBoxViewModelHost")},_.p("div",{class:_.Ty("ytdAiResponseBoxViewModelResponseMessageContainer",(g.ytdAiResponseBoxViewModelResponseMessageContainerHidden=E,g.ytdAiResponseBoxViewModelNotShown=function(){return E()&&!v()},g))},_.p(_.M,{cond:Q,
then:function(){return _.p("div",null,_.p(_.c2,{text:function(){return u().responsePendingMessage}}))},
else:function(){return _.p(_.U9,null,_.p(_.M,{cond:function(){var e;return(e=u().responseMessageIcon)==null?void 0:e.iconType},
then:function(e){return _.p("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.p(_.B1,{icon:e}))}}),_.p("div",null,_.p(_.c2,{text:function(){return u().responseMessage}})))}})),_.p(_.Up,{data:function(){return u().chipsShelf}},{chipsShelfViewModel:function(e){e=e.data;
var G={};return _.p("div",{class:_.Ty("ytdAiResponseBoxViewModelChipsShelfContainer",(G.ytdAiResponseBoxViewModelChipsShelfContainerShown=E,G.ytdAiResponseBoxViewModelNotShown=function(){return!E()&&!v()},G))},_.p(_.UJ,{data:e,
selectionBehavior:3,nextButtonStyle:1,callback:L}))}}))},"Yc");var Qt2;Qt2=Object.assign({},{continuation:jvn,download:NWW,canvas:g4q,reportChannelAbuse:$oo,ui:qmq,share:Rwx,talkToRecs:HP2,watch:t4,ypc:iP8,radioButtonGroup:osT,collabInviteLink:kfb},JK$,{voiceSearch:E4M,shorts:fI});_.LIR=y0(Qt2);_.EU8=ve(_.LIR);_.P_b=(0,_.EU8)(_.LIR.talkToRecs,{talkToRecsStateSelector:function(g){return g}});var stZ=_.r(function(g){var u=_.N((0,_.ZG)(g.data)).next().value,q=_.G9(function(){var Xf;a:{if(Xf=u().onUpdateText)if(Xf=_.c(Xf,_.Jo)){var eX;Xf=(eX=_.c(Xf,Gn0))==null?void 0:eX.stepId;break a}Xf=void 0}return Xf},void 0,"olO2Rd");
g=_.N(_.jR(!1,void 0,"QCzl5d"));var Q=g.next().value,L=g.next().value;g=_.N(_.jR(!1,void 0,"cQ7jrd"));var E=g.next().value,y=g.next().value;g=_.N(UCZ());var v=g.next().value;g=g.next().value;var J=_.Sy(_.P_b.talkToRecsStateSelector),f=_.N(_.jR("",void 0,"ry2Eac")),t=f.next().value,e=f.next().value;f=_.N(_.jR(!1,void 0,"EwWXmb"));var G=f.next().value,R=f.next().value,H=_.N(_.jR(!1,void 0,"hORmtb"));f=H.next().value;var l=H.next().value;H=_.N(_.jR(!1,void 0,"fBzwv"));var d=H.next().value,F=H.next().value;
H=_.N(_.jR(!1,void 0,"BCC4Zc"));var V=H.next().value,z=H.next().value,O=_.Hk("div");H=_.N(_.jR(void 0,void 0,"Xvb7gd"));var W=H.next().value,x=H.next().value,k=void 0,LZ=function(Xf){Xf!==Q()&&(y(!0),L(Xf),k&&clearTimeout(k),k=setTimeout(function(){y(!1)},300))},sb=function(){if(W()!==void 0){var Xf=W();
LZ(window.scrollY>Xf)}},Rm=function(){var Xf;
x((Xf=O.value)==null?void 0:Xf.offsetHeight);v("yt-feed-filter-chip-bar-resize")},M3="";
_.bX(function(){M3=t()},"UJeAbb");
_.I4(function(){var Xf,eX,no,Co=(no=(eX=QFb(q(),J()))!=null?eX:(Xf=u().textInputValue)==null?void 0:Xf.content)!=null?no:"";e(Co);mJ(Co);R(!!u().welcomeBannerTitle&&!Co);Rm();document.addEventListener("scroll",sb);_.dB(function(){document.removeEventListener("scroll",sb);k&&clearTimeout(k)})});
_.bX(function(){G();Rm()},"AySmPb");
H=_.YH(function(){F(!0);l(!0)});
var tT=_.YH(function(){l(!1)});
_.bX(function(){var Xf=u();F(!1);z(!1);var eX,no;((no=_.c((eX=Xf.contents)==null?void 0:eX[0],Y1X))==null?0:no.responseMessageIcon)?(Xf=Nk8.cachedUserQuery,e(Xf),mJ(Xf)):Nk8.cachedUserQuery=M3},"XKdHMd");
var mJ=function(Xf){var eX=u().onUpdateText;eX&&_.ey(eX,{form:{userQuery:Xf}})},hT=_.pN(function(Xf){mJ(Xf)},150),Yu=_.YH(function(Xf){Xf=Xf.target.value;
e(Xf);hT(Xf);return!1});
_.bX(function(){var Xf=QFb(q(),J());Xf!==void 0&&Xf!==M3&&e(Xf)},"B5glhd");
var Mx=function(){z(!0);R(!1)},po=function(){var Xf=_.c(u().submitButton,_.Rn);
if(Xf==null?0:Xf.trackingParams){var eX=_.Lr(Xf.trackingParams),no=_.j_();no&&eX&&_.iH(no,eX,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(Xf=Xf==null?void 0:Xf.onTap)_.ey(Xf),Mx()},KZ=_.YH(function(Xf){Xf.key==="Enter"&&(mJ(Xf.target.value.trim()),po());
return!1}),G2=function(){po()},Ab=_.YH(function(){v("yt-feed-customization-scroll-up")}),tb={},lx={},NE={},fZ={};
return _.p("ytd-feed-customization-form-view-model",{class:_.Ty("ytdFeedCustomizationFormViewModelHost",(tb.ytdFeedCustomizationFormViewModelHostCollapsed=Q,tb)),el:_.lF(g)},_.p("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:O},_.p("div",{class:_.Ty("ytdFeedCustomizationFormViewModelExpandedContent",(lx.ytdFeedCustomizationFormViewModelNotShown=function(){return Q()&&!E()},lx))},_.p(_.M,{cond:function(){return u().disclaimer},
then:function(){return _.p("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.p(_.c2,{text:function(){return u().disclaimer}}))}}),_.p(_.M,{cond:G,
then:function(){return _.p("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.p("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.p(_.c2,{text:function(){return u().welcomeBannerTitle}})),_.p("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.p(_.c2,{text:function(){return u().welcomeBannerSubtitle}})))}}),_.p("div",{class:_.Ty("ytdFeedCustomizationFormViewModelInputContainer",(NE.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
f,NE))},_.p("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var Xf;return(Xf=u().textInputPlaceholder)==null?void 0:Xf.content},
"prop:value":t,"on:focus":H,"on:blur":tT,"on:input":Yu,"on:keyup":KZ,maxlength:300,disabled:V}),_.p(_.M,{cond:function(){return!!t()&&!V()},
then:function(){return _.p(_.Up,{data:function(){return u().clearButton}},{buttonViewModel:function(Xf){return _.p("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.p(_.TT,{data:Xf.data}))}})}}),_.p(_.M,{cond:function(){return V()},
then:function(){return _.p(_.Up,{data:function(){return u().inProgressButton}},{buttonViewModel:function(Xf){return _.p("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.p(_.TT,{data:Xf.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.p(_.Up,{data:function(){return u().submitButton}},{buttonViewModel:function(Xf){return _.p("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.p(_.TT,{data:Xf.data,
onClick:Mx}))}})}}),_.p(_.Up,{data:function(){return u().menuButton}},{buttonViewModel:function(Xf){return _.p("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.p(_.TT,{data:Xf.data,
buttonOverrides:function(){return{disabled:V()}}}))}})),_.p(_.Up,{data:function(){return u().contents}},{aiResponseBoxViewModel:function(Xf){return _.p("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.p(qoi,{data:Xf.data,
showChips:d,isUpdateInProgress:V,chipClickCallback:G2}))}})),_.p("div",{class:_.Ty("ytdFeedCustomizationFormViewModelCollapsedContent",(fZ.ytdFeedCustomizationFormViewModelNotShown=function(){return!Q()&&!E()},fZ)),
"on:click":Ab},_.p("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var Xf;return t()||((Xf=u().textInputPlaceholder)==null?void 0:Xf.content)}))))},"cd"),yIa=function(){this.cachedUserQuery=""};
yIa.prototype.reset=function(){this.cachedUserQuery=""};
var Nk8=new yIa;_.dL(stZ,"ytd-feed-customization-form-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=_.N((0,_.ZG)(g.data)).next().value;return _.p("yt-chip-content-loader-view-model",{class:"ytChipContentLoaderViewModelHost"},_.p(_.Up,{data:function(){return u().contents}},{feedCustomizationFormViewModel:function(q){return _.p(stZ,{data:q.data})}}))},"dd"),"yt-chip-content-loader-view-model",{props:{data:_.H2}});var vUH=_.wy.persistentPanelVisibleSelector,gW=function(){var g=_.X.apply(this,arguments)||this;g.isDarkTheme=!1;g.notSticky=!1;g.transparentBackground=!1;g.shouldHide=!1;g.disableSticky=!1;g.fluidWidth=!1;g.isClipList=!1;g.defaultChipIndex=0;g.hasSelectedChipContent=!1;g.isPlaylist=!1;g.playlistVotingAnimationEnabled=_.w("web_enable_voting_animation");g.toolbarHeight=0;g.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(gW,_.X);_.P=gW.prototype;
_.P.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}}}}}};
_.P.attached=function(){var g=this;document.addEventListener("scroll",_.zr(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.zr(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var u;this.toolbarHeight=((u=document.querySelector("ytd-masthead"))==null?void 0:u.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(q){g.handleIntersect(q)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){g.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.P.detached=function(){var g;(g=this.intersectionObserver)==null||g.disconnect();var u;(u=this.resizeObserver)==null||u.disconnect();document.removeEventListener("scroll",_.zr(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.zr(this,this.onFeedFilterChipBarResize))};
_.P.dataChanged=function(){var g=this,u,q,Q=(u=this.data)==null?void 0:(q=u.contents)==null?void 0:q.findIndex(function(E){var y;return!((y=_.c(E,F42))==null?0:y.navigationEndpoint)});
Q&&(this.defaultChipIndex=Q);this.updating=!0;var L=this.findSelectedChipIndex();this.selectedIndex!==L&&(this.selectedIndex=-1);_.xt(this,function(){g.selectedIndex=L;g.updateSelectedChipContent(g.selectedIndex);g.updating=!1;g.ytScrollableChipCloudBehavior.reset()})};
_.P.findSelectedChipIndex=function(){var g;if((g=this.data)==null||!g.contents)return 0;g=this.data.contents;for(var u=0;u<g.length;u++){var q=void 0;if((q=_.c(g[u],F42))==null?0:q.isSelected)return u}return 0};
_.P.computeStyle=function(g){return g};
_.P.handleChipCloudChipSelectAction=function(g){g=this.JSC$16549_chipsSelector.indexOf(g);g>-1&&(this.JSC$16549_chipsSelector.selectIndex(g),this.updateSelectedChipContent(g))};
_.P.updateSelectedChipContent=function(g){var u;if((u=this.data)==null||!u.contents||g<0||g>=this.data.contents.length)this.selectedChipContent=void 0;else{var q;this.selectedChipContent=(q=_.c(this.data.contents[g],F42))==null?void 0:q.content}};
_.P.handleChipCloudChipDeselectAction=function(){if(_.w("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var g,u,q,Q=(q=_.c((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u[this.defaultChipIndex],F42))==null?void 0:q.navigationEndpoint;Q&&_.YJ(this.hostElement,"yt-browse-section-list-reload-endpoint",[Q]);this.JSC$16549_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.P.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.P.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.P.updateDynamicHeight=function(){var g=this;this.hasSelectedChipContent&&!this.notSticky?_.xt(this,function(){var u=_.Tr(g.hostElement).querySelector("#chips-wrapper");u&&_.x_(g.hostElement,{"--ytd-chips-bar-dynamic-height":u.clientHeight+"px"})}):_.x_(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.P.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.P.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.P.onResize=function(){this.updateLayout()};
_.P.updateLayout=function(){var g=this.ytScrollableChipCloudBehavior;_.xt(g,g.setContainerWidthDiff);g=this.ytScrollableChipCloudBehavior;_.xt(g,g.setButtonsState)};
_.P.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.P.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.P.handleIntersect=function(g){this.notSticky=this.isChannelPageGrid||this.disableSticky||g[0].intersectionRatio===1};
_.P.updateDimensions=function(){var g=this.ytRendererBehavior.parentComponent;if(g){var u,q=(u=g.headerElement)!=null?u:g;_.x_(this.hostElement,{"--ytd-rich-grid-chips-bar-width":q.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.P.updateSelectedIndexFromBinding=function(g){this.selectedIndex=g.detail.value};
_.P.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var g;(g=this.sortFilterHeaderRendererElement)==null||g.setAttribute("is-playlist-page-with-filters","")}};
_.P.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Itx(!this.notSticky))};
_.z3.Object.defineProperties(gW.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 g,u,q=(g=this.data)==null?void 0:(u=g.contents)==null?void 0:u.find(function(Q){return _.c(Q,rXR)});
return{sortFilterHeaderRenderer:_.c(q,rXR)}}}});
gW.prototype.dispatchChipBarIsSticky=gW.prototype.dispatchChipBarIsSticky;gW.prototype.isPlaylistPageChanged=gW.prototype.isPlaylistPageChanged;gW.prototype.updateChipBarWidthAndTop=gW.prototype.updateChipBarWidthAndTop;gW.prototype.onResize=gW.prototype.onResize;gW.prototype.onPersistentPanelVisibleChanged=gW.prototype.onPersistentPanelVisibleChanged;gW.prototype.onGuideIsExpandedChanged=gW.prototype.onGuideIsExpandedChanged;gW.prototype.updateDynamicHeight=gW.prototype.updateDynamicHeight;
gW.prototype.onSelectedChipContentChanged=gW.prototype.onSelectedChipContentChanged;gW.prototype.dataChanged=gW.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],gW.prototype,"actionHandlerBehavior",void 0);
_.Y([_.I(_.LJ),_.K("design:type",Object)],gW.prototype,"ironResizableBehavior",void 0);_.Y([_.I(),_.K("design:type",kz)],gW.prototype,"ytScrollableChipCloudBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],gW.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],gW.prototype,"data",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],gW.prototype,"selectedIndex",void 0);_.Y([_.a({value:320}),_.K("design:type",Number)],gW.prototype,"scrollDistance",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gW.prototype,"isDarkTheme",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gW.prototype,"notSticky",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gW.prototype,"transparentBackground",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.K("design:type",String)],gW.prototype,"componentStyle",void 0);
_.Y([_.a({selector:_.eOq}),_.K("design:type",Boolean)],gW.prototype,"guideIsExpanded",void 0);_.Y([_.a({selector:vUH}),_.K("design:type",Boolean)],gW.prototype,"persistentPanelVisible",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gW.prototype,"shouldHide",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gW.prototype,"disableSticky",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gW.prototype,"fluidWidth",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gW.prototype,"isClipList",void 0);_.Y([_.a(),_.K("design:type",Object)],gW.prototype,"defaultChipIndex",void 0);_.Y([_.a(),_.K("design:type",Object)],gW.prototype,"selectedChipContent",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gW.prototype,"hasSelectedChipContent",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gW.prototype,"isPlaylist",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],gW.prototype,"playlistVotingAnimationEnabled",void 0);_.Y([_.oE("#chips"),_.K("design:type",Object)],gW.prototype,"JSC$16549_chipsSelector",void 0);_.Y([_.oE("ytd-sort-filter-header-renderer"),_.K("design:type",HTMLElement)],gW.prototype,"sortFilterHeaderRendererElement",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],gW.prototype,"updating",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gW.prototype,"dataChanged",null);_.Y([_.k_("selectedChipContent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gW.prototype,"onSelectedChipContentChanged",null);_.Y([_.k_("hasSelectedChipContent","notSticky"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gW.prototype,"updateDynamicHeight",null);
_.Y([_.k_("guideIsExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gW.prototype,"onGuideIsExpandedChanged",null);_.Y([_.k_("persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gW.prototype,"onPersistentPanelVisibleChanged",null);_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gW.prototype,"onResize",null);
_.Y([_.qm("isChannelPageGrid","disableSticky","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gW.prototype,"updateChipBarWidthAndTop",null);_.Y([_.C("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gW.prototype,"isChannelPageGrid",null);_.Y([_.C("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gW.prototype,"isHashtagLandingPage",null);
_.Y([_.k_("isPlaylistPage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gW.prototype,"isPlaylistPageChanged",null);_.Y([_.C("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gW.prototype,"isPlaylistPage",null);_.Y([_.C("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gW.prototype,"isDisableDeselectEvent",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],gW.prototype,"sortFilterHeaderRendererData",null);_.Y([_.a({reflectToAttribute:!0,selector:_.AFS}),_.K("design:type",String)],gW.prototype,"frostedGlassMode",void 0);_.Y([_.k_("notSticky"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gW.prototype,"dispatchChipBarIsSticky",null);_.Y([_.fE({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],gW);
_.T(gW,"ytd-feed-filter-chip-bar-renderer",function(){if(k1b!==void 0)return k1b;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return k1b=g},{mode:1});var D1o;var p7i=_.r(function(g){var u=g.data;var q=g.buttonIndex;var Q=g.selectedIndex;var L=g.onSelect;var E=function(){return q()===Q()},y=function(){var v,J;
return(J=(v=u().text)==null?void 0:v.content)!=null?J:""};
g=_.sI();return _.p("yt-toggleable-image-button-view-model",{class:function(){var v={};v=(v.toggleableImageButtonViewModelHost=!0,v[""]=!0,v.toggleableImageButtonViewModelSemiTransparent=Q()!==-1&&!E(),v);return _.N0(v)},
tabindex:0,"aria-label":y,"aria-pressed":E,role:"button","on:keydown":g,"on:click":_.YH(function(){L(u().onSubmitCommand);return!1})},_.p(_.M,{cond:function(){return u().logo},
then:function(v){return _.p(_.IT,{data:v,className:function(){var J={};J=(J.toggleableImageButtonViewModelImage=!0,J.toggleableImageButtonViewModelCircularRadius=!(!u().backgroundColor||!u().backgroundColorDarkMode),J.toggleableImageButtonViewModelGradientRing=!!(E()&&u().backgroundColor&&u().backgroundColorDarkMode),J);return _.N0(J)},
alt:y,useWidth:!1,style:function(){if(E()&&u().backgroundColor&&u().backgroundColorDarkMode){var J=f6(Number(u().backgroundColorDarkMode),"1");var f=f6(Number(u().backgroundColor),"1");J="background: linear-gradient(180deg,"+J+","+f+") border-box;"}else J="";return J}})}}),_.p(_.VU,{model:{borderRadius:"16px"}}),_.p("p",{class:function(){var v={};
v=(v.toggleableImageButtonViewModelLabel=!0,v.toggleableImageButtonViewModelBoldText=E(),v);return _.N0(v)}},_.p(_.c2,{text:function(){return u().text}})))},"ed");
p7i.idomCompat=!0;var jtx=_.r(function(g){var u=g.data;g=_.N(_.jR({index:-1,command:{}},void 0,"GM3umb"));var q=g.next().value,Q=g.next().value;return _.p("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.p("div",{class:"nudgeFormViewModelFormOptions"},_.p(_.Up,{data:function(){return u().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(L,E){return _.p(p7i,{data:L.data,buttonIndex:E,selectedIndex:function(){return q().index},
onSelect:function(y){Q({index:E(),command:y})}})}})),_.p(_.c2,{text:function(){return u().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.p("div",{class:"nudgeFormViewModelSubmit"},_.p(_.Up,{data:function(){return u().submitButton}},{buttonViewModel:function(L){return _.p(JI2,{data:L.data,
isDisabled:function(){return q().index===-1},
onClick:function(){_.ey(q().command)}})}})))},"fd");
jtx.idomCompat=!0;var JI2=_.r(function(g){var u=_.G9(function(){return Object.assign({},g.data(),{state:g.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.p(_.TT,{data:u,onClick:g.onClick})},"gd");_.dL(jtx,"yt-nudge-form-view-model",{props:{data:_.H2}});var ui=function(){var g=_.X.apply(this,arguments)||this;g.roundedContainer=!0;g.buttonUpdate=_.w("web_modern_buttons");g.isDarkMode=!1;g.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return g};
_.A(ui,_.X);_.P=ui.prototype;_.P.computeNudgeStyle=function(g){return g?"modernized-nudge":""};
_.P.handleDarkModeToggledAction=function(g){this.isDarkMode=g};
_.P.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.P.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"}}}};
_.P.computeIsHorizontalButtons=function(g){return g?!!g.applyModernizedStyle&&!!g.enableHorizontalButtons&&!!g.secondaryButton:!1};
_.z3.Object.defineProperties(ui.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=(g=this.data)==null?void 0:g.backgroundStyle)!=null?u:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=(g=this.data)==null?void 0:g.contentsLocation)!=null?u:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null?0:g.lightIconImage)}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],ui.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ui.prototype,"actionHandlerBehavior",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("isHideEnclosingAction"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ui.prototype,"isHidden",null);_.Y([_.a(),_.K("design:type",Object)],ui.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ui.prototype,"roundedContainer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ui.prototype,"buttonUpdate",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.K("design:type",String)],ui.prototype,"nudgeStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.trimStyle"),_.K("design:type",String),_.K("design:paramtypes",[])],ui.prototype,"trimStyle",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.backgroundStyle"),_.K("design:type",String),_.K("design:paramtypes",[])],ui.prototype,"backgroundStyle",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.contentsLocation"),_.K("design:type",String),_.K("design:paramtypes",[])],ui.prototype,"contentsLocation",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.disableDropShadow"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ui.prototype,"noShadow",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.lightIconImage"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ui.prototype,"noIcon",null);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.K("design:type",Boolean)],ui.prototype,"isHorizontalButtons",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Object)],ui.prototype,"isDarkMode",void 0);_.Y([_.fE({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],ui);
_.T(ui,"ytd-feed-nudge-renderer",function(){if(D1o!==void 0)return D1o;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return D1o=g},{mode:2});var fD0;var MNx;var qo=function(){var g=_.X.apply(this,arguments)||this;g.collapsed=!1;g.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return g};
_.A(qo,_.X);qo.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"}}}};
qo.prototype.handleRatingSelect=function(){var g;((g=this.data)==null?0:g.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
qo.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],qo.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],qo.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.M5),_.K("design:type",Object)],qo.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qo.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],qo.prototype,"collapsed",void 0);_.Y([_.fE({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],qo);
_.T(qo,"ytd-slimline-survey-renderer",function(){if(MNx!==void 0)return MNx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return MNx=g},{mode:1});var tN$;var Qt=function(){return _.X.apply(this,arguments)||this};
_.A(Qt,_.X);Qt.prototype.maybeGetBackgroundColor=function(g){return this.isDarkMode?g.section2Color:g.section3Color};
Qt.prototype.colorPaletteChanged=function(){var g=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;g&&(g==null?0:g.secondaryTitleColor)&&this.maybeGetBackgroundColor(g)?(this.hostElement.style.backgroundColor=_.JR(this.maybeGetBackgroundColor(g)),this.hostElement.style.color=_.JR(g.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Qt.prototype.colorPaletteChanged=Qt.prototype.colorPaletteChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],Qt.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Qt.prototype,"data",void 0);_.Y([_.a({selector:function(g){return g.ui.darkModeIsEnabled}}),
_.K("design:type",Boolean)],Qt.prototype,"isDarkMode",void 0);_.Y([_.a(),_.K("design:type",Object)],Qt.prototype,"lightColorPalette",void 0);_.Y([_.a(),_.K("design:type",Object)],Qt.prototype,"darkColorPalette",void 0);_.Y([_.k_("darkColorPalette","lightColorPalette","data","isDarkMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qt.prototype,"colorPaletteChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Qt);
_.T(Qt,"ytd-endorsement-header-renderer",function(){if(tN$!==void 0)return tN$;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return tN$=g},{mode:1});_.dL(_.fG,"yt-decorated-avatar-view-model",{props:{data:_.H2,className:_.H2}});_.LP=new _.Fv("VIEW_TRANSITION_MANAGER_TOKEN");var ES=function(){var g=_.X.apply(this,arguments)||this;g.fullHeight=_.w("web_rich_grid_media_full_height");g.showChannelAvatar=!0;g.hasPlaylistThumbnail=!1;g.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};g.registerThumbnailForPageTransition=function(){_.w("web_thumbnail_to_watch_transition")&&_.eW0(_.Bk().resolve(_.LP),g.thumbnail)};
return g};
_.A(ES,_.X);_.P=ES.prototype;
_.P.configureRendererStamper=function(){return{lazyLoadMenu:g7,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"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.shouldLazyLoadMenu=function(){var g=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.w("kevlar_modern_downloads_page")||!g};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16573_inlinePreviewHoverListener=M0({mediaRenderer:this,lockupElement:this.JSC$16573_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.P.getVideoPreviewOpts=function(){var g={},u;if((u=this.data)==null?0:u.multipleInlinePlaybackEndpoint)g=ulR;this.isRadio&&(g=gjH);return g};
_.P.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$16573_inlinePreviewHoverListener)==null||a1(g)};
_.P.getOwner=function(){var g,u,q;return((g=this.data)==null?void 0:(u=g.channelThumbnailSupportedRenderers)==null?void 0:u.channelThumbnailWithLinkRenderer)||_.c((q=this.data)==null?void 0:q.showProviderChannelThumbnail,lri)};
_.P.updateLockupSize=function(){var g;((g=this.getOwner())==null?0:g.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.P.getFeedbackEndpoint=function(g){if(_.c(g,_.MB))return g;var u,q;g=(q=(u=_.c(g,_.zg))==null?void 0:u.commands)!=null?q:[];u=_.N(g);for(q=u.next();!q.done;q=u.next())if(q=this.getFeedbackEndpoint(q.value))return q;return null};
_.P.computeNavigationEndpoint=function(g){return HKT(g==null?void 0:g.navigationEndpoint)};
_.P.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var g=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(g)!==JSON.stringify(this.data)&&this.set("data",g)}};
_.P.onDataChanged=function(){var g=this,u=this.getOwner();if(u){this.set("data.owner",u);var q,Q,L,E,y,v=((q=this.data)==null?void 0:(Q=q.shortBylineText)==null?void 0:(L=Q.runs)==null?void 0:(E=L[0])==null?void 0:E.text)||((y=u.name)==null?void 0:y.simpleText);this.set("data.owner.title",v)}var J,f,t,e,G,R;u=((J=this.data)==null?void 0:(f=J.thumbnailRenderer)==null?void 0:f.playlistVideoThumbnailRenderer)||((t=this.data)==null?void 0:(e=t.thumbnailRenderer)==null?void 0:e.playlistCustomThumbnailRenderer)||
((G=this.data)==null?void 0:(R=G.thumbnailRenderer)==null?void 0:R.showCustomThumbnailRenderer);var H;((H=this.data)==null?0:H.thumbnail)||!u||this.set("data.thumbnail",u.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){g.updateLockupSize()});
var l;if(J=((l=this.data)==null?void 0:l.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(J);var d;((d=this.dismissActionToReplayEntity)==null?0:d.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.P.onHiddenChanged=function(){this.updateLockupSize()};
_.P.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.YJ(this.hostElement,"yt-terminate-video-preview-action");else{var g;(g=this.videoTitleLink)==null||g.focus()}};
_.P.metadataColorChanged=function(){var g;if(this.metadataColor&&((g=this.videoTitle)==null?0:g.style))this.videoTitle.style.color=_.JR(this.metadataColor);else{var u,q;!this.metadataColor&&((u=this.videoTitle)==null?0:(q=u.style)==null?0:q.color)&&(this.videoTitle.style.color="")}};
_.P.onDetailsClick=function(g){var u=this.computedNavigationEndpoint;u&&(_.ia(_.C6(g),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.hJ(this.hostElement,"yt-navigate",{endpoint:u}))};
_.P.onRendererTap=function(){this.registerThumbnailForPageTransition();var g,u,q=((g=this.data)==null?void 0:g.serviceEndpoint)||this.getFeedbackEndpoint((u=this.data)==null?void 0:u.navigationEndpoint);q&&_.c(q,_.MB)&&this.ytComponentBehavior.resolveCommand(q)};
_.P.onMouseDown=function(g){var u=g.target,q=this.computedNavigationEndpoint,Q;g=u.href||((Q=_.c(q==null?void 0:q.commandMetadata,_.S_))==null?void 0:Q.url);Q=u.data||q;g&&Q&&WuS(g,Q)};
_.P.computeVideoTitleText=function(){var g;if((g=this.data)==null?0:g.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.P.computeHasPlaylistThumbnail=function(g){var u,q,Q,L,E;if((((u=g.thumbnailRenderer)==null?0:u.playlistVideoThumbnailRenderer)||((q=g.thumbnailRenderer)==null?0:q.playlistCustomThumbnailRenderer)||((Q=g.thumbnailRenderer)==null?0:Q.showCustomThumbnailRenderer)||((L=g.thumbnailRenderer)==null?0:L.playlistVideoThumbnailRenderer)||((E=g.thumbnailRenderer)==null?0:E.playlistCustomThumbnailRenderer))&&g.thumbnailOverlays)for(u=0;u<g.thumbnailOverlays.length;u++)if(q=void 0,(q=g.thumbnailOverlays[u])==
null?0:q.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.z3.Object.defineProperties(ES.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.w("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var g;return(g=this.data)==null?void 0:g.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var g;return(g=this.data)==null?void 0:g.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$16573_inlinePreviewHoverListener)==null?0:Gb(g))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Omu(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:g.videoId)||((u=this.data)==null?void 0:u.playlistId)||""}}});
ES.prototype.onMouseDown=ES.prototype.onMouseDown;ES.prototype.metadataColorChanged=ES.prototype.metadataColorChanged;ES.prototype.onIsDismissedChanged=ES.prototype.onIsDismissedChanged;ES.prototype.onHiddenChanged=ES.prototype.onHiddenChanged;ES.prototype.onDataChanged=ES.prototype.onDataChanged;ES.prototype.handleReloadDownloadsInfo=ES.prototype.handleReloadDownloadsInfo;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ES.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],ES.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],ES.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],ES.prototype,"ytdReduxBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],ES.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],ES.prototype,"entitySelectorType",void 0);_.Y([_.a(),_.K("design:type",Boolean)],ES.prototype,"noEndpoints",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],ES.prototype,"isRadio",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],ES.prototype,"miniMode",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ES.prototype,"fullHeight",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],ES.prototype,"showDarkVideoMetadata",void 0);_.Y([_.a(),_.K("design:type",Boolean)],ES.prototype,"showLightVideoMetadata",void 0);_.Y([_.a(),_.K("design:type",Number)],ES.prototype,"metadataColor",void 0);_.Y([_.a(),_.K("design:type",Object)],ES.prototype,"showChannelAvatar",void 0);_.Y([_.a(),_.K("design:type",Boolean)],ES.prototype,"hidden",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],ES.prototype,"showYtInteraction",void 0);
_.Y([_.a(),_.K("design:type",String)],ES.prototype,"dismissedContentId",void 0);_.Y([_.a({selectorArgs:["dismissedContentId"],selector:wGk}),_.K("design:type",Object)],ES.prototype,"dismissActionToReplayEntity",void 0);
_.Y([_.a({selectorArgs:["entitySelectorType","mediaId"],selector:function(g,u,q){if(_.w("kevlar_modern_downloads_page")&&q&&u&&u!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(u){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var Q=i1T(g,q);if(Q){u=_.tD(g,q);var L=GN(g,q),E=hOZ(g,q);g=$Z(g,q);var y=nsM(Q,u,L,E);L=y.shortViewCountText;var v=y.publishedTimeText;y=y.badges;var J=g>0;E=BZf(Q,u,E,g);Q=_.qZ(u)||u==="TRANSFER_STATE_FAILED"||u==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!uR(Q.policyEntity)?
void 0:w2u(q,g,Q.videoEntity.lengthSeconds);u==="TRANSFER_STATE_PAUSED_BY_USER"&&q&&!_.w("dl_resume_click_killswitch")&&(Q={offlineVideoEndpoint:{videoId:q,action:"ACTION_RESUME"}});q={shortViewCountText:L,publishedTimeText:v,badges:y,isWatched:J,navigationEndpoint:Q,thumbnailOverlays:E}}else q=void 0;return q;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(u=CpF(g,q))if(Q=_.eb(g,q),E=_.b1M(g,q),Q!=="TRANSFER_STATE_UNKNOWN"){q=z6b(u,Q,E,q,_.MZ(g));break a}q=void 0}return q;default:_.Io(new _.Ji("Error: entitySelectorType defined but not matched in selector.",
g,u))}}}),
_.K("design:type",Object)],ES.prototype,"entityDrivenState",void 0);_.Y([_.a({computed:"computeVideoTitleText(data)"}),_.K("design:type",Object)],ES.prototype,"videoTitleText",void 0);_.Y([_.a({computed:"computeHasPlaylistThumbnail(data)"}),_.K("design:type",Object)],ES.prototype,"hasPlaylistThumbnail",void 0);_.Y([_.a({computed:"computeNavigationEndpoint(data)"}),_.K("design:type",Object)],ES.prototype,"computedNavigationEndpoint",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ES.prototype,"typographyBump",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("typographyBump"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ES.prototype,"typographyBumpV2",null);_.Y([_.oE("#video-title"),_.K("design:type",HTMLElement)],ES.prototype,"videoTitle",void 0);_.Y([_.oE("#video-title-link"),_.K("design:type",HTMLElement)],ES.prototype,"videoTitleLink",void 0);
_.Y([_.oE("#thumbnail"),_.K("design:type",HTMLElement)],ES.prototype,"thumbnail",void 0);_.Y([_.oE("#dismissible"),_.K("design:type",HTMLElement)],ES.prototype,"JSC$16573_dismissibleMedia",void 0);_.Y([_.C("data.menu"),_.K("design:type",Object),_.K("design:paramtypes",[])],ES.prototype,"lazyLoadMenu",null);_.Y([_.C("data.menu"),_.K("design:type",Object),_.K("design:paramtypes",[])],ES.prototype,"immediateLoadMenu",null);
_.Y([_.qm("entityDrivenState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ES.prototype,"handleReloadDownloadsInfo",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ES.prototype,"onDataChanged",null);_.Y([_.qm("hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ES.prototype,"onHiddenChanged",null);
_.Y([_.k_("isDismissed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ES.prototype,"onIsDismissedChanged",null);_.Y([_.k_("metadataColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ES.prototype,"metadataColorChanged",null);_.Y([_.n6("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ES.prototype,"onMouseDown",null);
_.Y([_.C("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ES.prototype,"isHovered",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ES.prototype,"useAvatar",null);_.Y([_.C("data","entitySelectorType"),_.K("design:type",String),_.K("design:paramtypes",[])],ES.prototype,"mediaId",null);_.Y([_.fE({is:"ytd-rich-grid-media",disableElementRegistration:!0})],ES);
var GUH=_.Te()(ES,"ytd-rich-grid-media",function(){if(fD0!==void 0)return fD0;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return fD0=g},{mode:2});var $1R;var PE=function(){var g=_.X.apply(this,arguments)||this;g.removeMaxWidth=!0;g.insetMetadata=!1;return g};
_.A(PE,_.X);_.P=PE.prototype;_.P.configureRendererStamper=function(){return{innerMenu:g7,outerMenu:Object.assign({},g7,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onDataChanged=function(){var g,u=((g=this.data)==null?void 0:g.trackingParams)||"";u&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(u));var q;((q=this.dismissActionToReplayEntity)==null?0:q.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16578_inlinePreviewHoverListener=M0({mediaRenderer:this,lockupElement:this.JSC$16578_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:q2R})};
_.P.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$16578_inlinePreviewHoverListener)==null||a1(g)};
_.P.onRendererTap=function(){var g,u,q=(g=this.data)==null?void 0:(u=g.serviceEndpoints)==null?void 0:u[0];_.c(q,_.MB)&&this.componentBehavior.resolveCommand(q)};
_.P.onDetailsClick=function(g){var u,q=(u=this.data)==null?void 0:u.navigationEndpoint;q&&(_.ia(_.C6(g),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(q))};
_.P.onShow=function(){var g=this.data;g.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(g.onFirstVisibleCommand),delete g.onFirstVisibleCommand)};
_.z3.Object.defineProperties(PE.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var g;return this.insetMetadata?void 0:(g=this.data)==null?void 0:g.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var g;return this.insetMetadata?(g=this.data)==null?void 0:g.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var g=this.data;if(g!=null&&g.badge&&(g=_.c(g.badge,ZFo))){var u,q,Q;return[{metadataBadgeRenderer:{label:((u=g.label)==null?void 0:(q=u.runs)==null?void 0:q[0].text)||((Q=g.label)==null?void 0:Q.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var g=this.data;return Object.assign({},g.headline,{accessibility:g.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return this.isSlimShort?(g=this.computedTitle)==null?void 0:(u=g.accessibility)==null?void 0:(q=u.accessibilityData)==null?void 0:q.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.w("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$16578_inlinePreviewHoverListener)==null?0:Gb(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
PE.prototype.onDataChanged=PE.prototype.onDataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],PE.prototype,"componentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],PE.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.M5),_.K("design:type",Object)],PE.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],PE.prototype,"ytdReduxBehavior",void 0);_.Y([_.oE("ytd-thumbnail"),_.K("design:type",HTMLElement)],PE.prototype,"thumbnail",void 0);_.Y([_.oE("#dismissible"),_.K("design:type",HTMLElement)],PE.prototype,"JSC$16578_dismissibleMedia",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],PE.prototype,"removeMaxWidth",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],PE.prototype,"insetMetadata",void 0);_.Y([_.a(),_.K("design:type",String)],PE.prototype,"dismissedContentId",void 0);_.Y([_.a({selectorArgs:["dismissedContentId"],selector:wGk}),_.K("design:type",Object)],PE.prototype,"dismissActionToReplayEntity",void 0);_.Y([_.C("insetMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],PE.prototype,"thumbnailObjectFit",null);
_.Y([_.C("data","insetMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],PE.prototype,"innerMenu",null);_.Y([_.C("data","insetMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],PE.prototype,"outerMenu",null);_.Y([_.a(),_.K("design:type",Object)],PE.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],PE.prototype,"miniMode",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PE.prototype,"onDataChanged",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],PE.prototype,"shortsBadges",null);_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],PE.prototype,"isShort",null);
_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],PE.prototype,"isSlimShort",null);_.Y([_.C("data","isShort"),_.K("design:type",Object),_.K("design:paramtypes",[])],PE.prototype,"computedTitle",null);_.Y([_.C("isSlimShort","computedTitle"),_.K("design:type",Object),_.K("design:paramtypes",[])],PE.prototype,"computedAccessibilityLabel",null);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],PE.prototype,"shouldForce2By3",null);_.Y([_.C("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],PE.prototype,"isHovered",null);_.Y([_.fE({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],PE);
_.T(PE,"ytd-rich-grid-slim-media",function(){if($1R!==void 0)return $1R;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return $1R=g},{mode:2});var RWa;var w7a;var No=function(){return _.X.apply(this,arguments)||this};
_.A(No,_.X);No.prototype.computeIcon=function(g){return g&&g.iconType?"yt-sys-icons:"+g.iconType.toLowerCase():""};
No.prototype.onMouseEnter=function(){this.isHovered=!0};
No.prototype.onMouseLeave=function(){this.isHovered=!1};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],No.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],No.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],No.prototype,"isHovered",void 0);
_.Y([_.fE({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],No);
_.T(No,"ytd-expand-on-hover-card-renderer",function(){if(w7a!==void 0)return w7a;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return w7a=g},{mode:1});var cI$,HMo=function(){if(cI$!==void 0)return cI$;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return cI$=g};_.Ny("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var sS=function(){var g=_.X.apply(this,arguments)||this;g.compactStyle=!1;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(sS,_.X);_.P=sS.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.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"}}}};
_.P.computeHideDot=function(g){return!(g&&g.subscriberCountText&&g.videoCountText)||this.compactStyle};
_.P.hasDualButtons=function(g){return g&&g.purchaseButton&&g.subscribeButton};
_.P.backgroundColorChanged=function(){if(this.data!==void 0){var g=this.data.backgroundColor;this.isDarkTheme&&(g=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=g!=null?_.JR(g):"transparent"}};
_.P.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.P.onTap=function(g){var u,q,Q=((u=this.data)==null?void 0:u.navigationEndpoint)||((q=this.data)==null?void 0:q.serviceEndpoint);_.c(Q,_.Is)&&(Q&&_.Bk().resolve(_.Gy).resolveCommand(Q,{form:{element:this.hostElement}}),g.preventDefault())};
_.P.computeChannelEndpoint=function(g){return _.c(g,_.Is)?null:g};
_.P.computeHrefEndpoint=function(g){return _.c(g,_.Is)?null:this.componentBehavior.computeHref_(g)};
_.P.computeChannelRendererStyle=function(g){return g};
_.P.computeIconSize=function(g){return g?108:136};
_.z3.Object.defineProperties(sS,{template:{configurable:!0,enumerable:!0,get:function(){return HMo()}}});
sS.prototype.backgroundColorChanged=sS.prototype.backgroundColorChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],sS.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],sS.prototype,"componentBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],sS.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],sS.prototype,"isDarkTheme",void 0);_.Y([_.a({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.K("design:type",String)],sS.prototype,"channelRendererStyle",void 0);_.Y([_.a({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],sS.prototype,"dualButtons",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],sS.prototype,"useBiggerThumbs",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.o4("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],sS.prototype,"biggerThumbStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],sS.prototype,"compactStyle",void 0);_.Y([_.k_("data","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sS.prototype,"backgroundColorChanged",null);_.Y([_.fE({is:"ytd-channel-renderer",disableElementRegistration:!0})],sS);_.T(sS,"ytd-channel-renderer",function(){return HMo()},{mode:1});var AIn;var ZM$;_.Ny("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var vE=function(){var g=_.X.apply(this,arguments)||this;g.displayItemCount=2;g.hasPlaylistThumbnail=!1;g.stackThumbnailSize="large";return g};
_.A(vE,_.X);_.P=vE.prototype;_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.computeFirstVideos=function(g,u){return g&&u?g.slice(0,u):[]};
_.P.computeThumbnailWidth=function(g,u){return g?u==="BIG"?500:u==="MASSIVE"?600:u==="MEDIUM"?450:420:360};
_.P.computeThumbnailHeight=function(g,u){return g?u==="BIG"?280:u==="MASSIVE"?337:234:202};
_.P.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$16591_inlinePreviewHoverListener)==null||a1(g)};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16591_inlinePreviewHoverListener=M0({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:ulR,thumbnailElement:this.thumbnail})};
_.P.computeHasPlaylistThumbnail=function(g){var u,q;if((((u=g.thumbnailRenderer)==null?0:u.playlistVideoThumbnailRenderer)||((q=g.thumbnailRenderer)==null?0:q.playlistCustomThumbnailRenderer))&&g.thumbnailOverlays)for(u=0;u<g.thumbnailOverlays.length;u++)if(q=void 0,(q=g.thumbnailOverlays[u])==null?0:q.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.z3.Object.defineProperties(vE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$16591_inlinePreviewHoverListener)==null?0:Gb(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
vE.prototype.dataChanged=vE.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],vE.prototype,"ytdLockupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vE.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],vE.prototype,"displayItemCount",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],vE.prototype,"useBiggerThumbs",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.o4("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],vE.prototype,"biggerThumbsStyle",void 0);_.Y([_.a({computed:"computeHasPlaylistThumbnail(data)"}),_.K("design:type",Object)],vE.prototype,"hasPlaylistThumbnail",void 0);_.Y([_.a(),_.K("design:type",String)],vE.prototype,"stackThumbnailSize",void 0);_.Y([_.oE("ytd-thumbnail"),_.K("design:type",HTMLElement)],vE.prototype,"thumbnail",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vE.prototype,"dataChanged",null);
_.Y([_.C("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vE.prototype,"isHovered",null);_.Y([_.fE({is:"ytd-radio-renderer",disableElementRegistration:!0})],vE);
_.T(vE,"ytd-radio-renderer",function(){if(ZM$!==void 0)return ZM$;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ZM$=g},{mode:2});var lDZ;_.Ny("itemSectionRenderer","showRenderer","ytd-show-renderer");var Dt=function(){return _.X.apply(this,arguments)||this};
_.A(Dt,_.X);Dt.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Dt.prototype.computeThumbnailWidth=function(g){return g?360:246};
Dt.prototype.computeUseProminentThumbs=function(g){return g};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Dt.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],Dt.prototype,"isSearch",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.K("design:type",Boolean)],Dt.prototype,"useProminentThumbs",void 0);_.Y([_.fE({is:"ytd-show-renderer",disableElementRegistration:!0})],Dt);
_.T(Dt,"ytd-show-renderer",function(){if(lDZ!==void 0)return lDZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return lDZ=g},{mode:1});_.Ny("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var pP=function(){var g=_.X.apply(this,arguments)||this;g.isRichGrid=!1;return g};
_.A(pP,_.X);pP.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"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pP.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],pP.prototype,"isRichGrid",void 0);_.Y([_.fE({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],pP);
_.T(pP,"ytd-feed-entry-renderer",function(){if(AIn!==void 0)return AIn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return AIn=g},{mode:1});var IDW;var JK=function(){return _.X.apply(this,arguments)||this};
_.A(JK,_.X);JK.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.Y([_.I(_.jB),_.K("design:type",Object)],JK.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],JK.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],JK.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.JD,value:3}),_.K("design:type",Number)],JK.prototype,"itemsPerRow",void 0);
_.Y([_.fE({is:"ytd-link-card-renderer",disableElementRegistration:!0})],JK);
_.T(JK,"ytd-link-card-renderer",function(){if(IDW!==void 0)return IDW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return IDW=g},{mode:1});var iMZ;var jc=function(){return _.X.apply(this,arguments)||this};
_.A(jc,_.X);_.P=jc.prototype;_.P.configureRendererStamper=function(){return{"data.menu":g7,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onRendererTap=function(g){if(!this.ytdDismissibleItemBehavior.isDismissed){var u,q=(u=this.data)==null?void 0:u.navigationEndpoint;q&&!_.ia(_.C6(g),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(q)?_.ia(_.C6(g),this.hostElement,["A"])||_.hJ(this.hostElement,"yt-navigate",{endpoint:q}):this.ytComponentBehavior.resolveCommand(q,{}))}};
_.P.maybeComputeHref=function(g){return this.ytComponentBehavior.computeHref_(g,!0)};
_.P.getNavigationCommand=function(g){return this.isNavigationCommand(g)?g:null};
_.P.isNavigationCommand=function(g){return g?_.c(g,_.kZ)||_.c(g,_.l1)||_.c(g,_.ao)?!0:!1:!1};
jc.prototype.onRendererTap=jc.prototype.onRendererTap;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],jc.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],jc.prototype,"ytComponentBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],jc.prototype,"data",void 0);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],jc.prototype,"onRendererTap",null);_.Y([_.fE({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],jc);
_.T(jc,"ytd-lumiere-promo-item-image-renderer",function(){if(iMZ!==void 0)return iMZ;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return iMZ=g},{mode:1});var C_H;var fP=function(){return _.X.apply(this,arguments)||this};
_.A(fP,_.X);fP.prototype.computeLandscapeThumbnail=function(){var g;return((g=this.data)==null?void 0:g.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],fP.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],fP.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],fP.prototype,"miniMode",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.JD}),_.K("design:type",Number)],fP.prototype,"itemsPerRow",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.K("design:type",Boolean)],fP.prototype,"landscapeThumbnail",void 0);_.Y([_.fE({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],fP);
_.T(fP,"ytd-lumiere-shelf-details-renderer",function(){if(C_H!==void 0)return C_H;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return C_H=g},{mode:2});var bMa;var Mo=function(){return _.X.apply(this,arguments)||this};
_.A(Mo,_.X);Mo.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Mo.prototype,"data",void 0);_.Y([_.fE({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Mo);
_.T(Mo,"ytd-primetime-promo-details-renderer",function(){if(bMa!==void 0)return bMa;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return bMa=g},{mode:1});var d1i;var tK=function(){return _.X.apply(this,arguments)||this};
_.A(tK,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tK.prototype,"data",void 0);_.Y([_.fE({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],tK);
_.T(tK,"ytd-panel-show-style-metadata-renderer",function(){if(d1i!==void 0)return d1i;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return d1i=g},{mode:1});var FIH;var ec=function(){return _.X.apply(this,arguments)||this};
_.A(ec,_.X);_.P=ec.prototype;_.P.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.P.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.P.computeThumbnail=function(g){if(g)return g.smallFormFactorBackgroundThumbnail||g.largeFormFactorBackgroundThumbnail};
_.P.maybeComputeHref=function(g){return this.ytComponentBehavior.computeHref_(g,!0)};
_.P.isNavigationCommand=function(g){return g?_.c(g,_.kZ)||_.c(g,_.l1)||_.c(g,_.ao)?!0:!1:!1};
_.P.getNavigationCommand=function(g){return this.isNavigationCommand(g)?g:null};
ec.prototype.onPanelTap=ec.prototype.onPanelTap;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ec.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ec.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],ec.prototype,"roundedContainer",void 0);_.Y([_.a({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.K("design:type",Boolean)],ec.prototype,"modernButtons",void 0);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ec.prototype,"onPanelTap",null);_.Y([_.fE({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],ec);
_.T(ec,"ytd-primetime-promo-panel-renderer",function(){if(FIH!==void 0)return FIH;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return FIH=g},{mode:1});_.dL(_.r(function(g){g=_.FI(g,{data:{},useFullWidth:!1});var u=g.data,q=g.useFullWidth;g={};return _.p("teaser-card-view-model",{class:_.Ty("ytTeaserCardViewModelHost",(g.ytTeaserCardViewModelUseFullWidth=function(){return q()},g))},_.p(_.M,{cond:function(){return u().onTap},
then:function(Q){return _.p(_.ag,{className:"ytTeaserCardViewModelLink",command:Q},_.p("div",{class:"ytTeaserCardViewModelImageContainer"},_.p(_.M,{cond:function(){return u().image},
then:function(L){return _.p(_.IT,{data:L,className:"ytTeaserCardViewModelImage",alt:""})}})),_.p("p",{class:"ytTeaserCardViewModelCaption"},function(){return u().caption}))}}))},"hd"),"teaser-card-view-model",{props:{data:_.H2,
useFullWidth:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=function(){var Q;return _.Rs((Q=u())==null?void 0:Q.iconThemedImage)};
return _.p("yt-edu-card-view-model",null,_.p(_.KG,{contentId:function(){return u().nudgeId}},function(){return _.p("div",{class:_.Ty("ytEduCardViewModelHost",function(){return u().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.p("div",{class:"ytEduCardViewModelTopCornerButton"},_.p(_.Up,{data:function(){return u().dismissButton}},{buttonViewModel:_.TT})),_.p("div",{class:"ytEduCardViewModelContentWrapper"},_.p("div",{class:"ytEduCardViewModelHeaderImage"},_.p(_.M,
{cond:q,
then:function(Q){return _.p(_.IT,{data:Q,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.p("div",{class:"ytEduCardViewModelTextContainer"},_.p("div",{class:"ytEduCardViewModelTitle"},_.p(_.c2,{text:function(){return u().title}})),_.p("div",{class:"ytEduCardViewModelSubtitle"},_.p(_.c2,{text:function(){return u().subtitle}}))),_.p("div",{class:"ytEduCardViewModelContent"},_.p(_.Up,{data:function(){return u().form}},{nudgeFormViewModel:jtx}))),_.p("div",{class:_.Ty("ytEduCardViewModelButtonWrapper",
function(){return u().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.p(_.Up,{data:function(){return u().primaryButton}},{buttonViewModel:function(Q){return _.p("div",{class:"ytEduCardViewModelPrimaryButton"},_.p(_.TT,{data:Q.data}))}}),_.p(_.Up,{data:function(){return u().secondaryButton}},{buttonViewModel:function(Q){return _.p("div",{class:"ytEduCardViewModelSecondaryButton"},_.p(_.TT,{data:Q.data}))}})))}))},"id"),"yt-edu-card-view-model",{props:{data:_.H2}});var m1X=new _.Fv("RICH_GRID_VIDEO_RENDERER_TOKEN");_.dL(_.r(function(g){var u=g.data;var q=g.showYtInteractionInContent;var Q=function(){return!!u().selectableFeedback};
g=_.N(_.jR(!1,void 0,"qxtgaf"));var L=g.next().value,E=g.next().value;_.I4(function(){var G=_.c(u().primaryButton,_.cF);(G==null?0:G.isToggled)&&E(G.isToggled)});
g=_.YH(function(G){if(!Q())return!1;if(L()){var R;var H=(R=u().selectableFeedback)==null?void 0:R.onDeselect}else{var l;H=(l=u().selectableFeedback)==null?void 0:l.onSelect}H&&_.ey(H,{form:{element:G.target}});E(!L());if(G=_.c(u().primaryButton,_.cF))G.isToggled=L();return!1});
var y=function(){if(!Q()){var G,R=(G=u().loggingDirectives)==null?void 0:G.trackingParams;R&&_.nq(_.Bk().resolve(_.QA),R)}},v=_.gNq(),J=function(){var G;
return Q()?(G=u().selectableFeedback)==null?void 0:G.a11yLabel:void 0},f=function(){return Q()?{toggled:L()}:{}},t=_.Bk().resolve(_.xv(m1X)),e={};
return _.p("yt-feedback-item-renderer",{class:_.Ty("ytFeedbackItemRendererHost",(e.ytFeedbackItemRendererSelectableFeedback=Q,e)),"on:click":g,"on:keydown":v,title:J,"aria-label":J,"aria-pressed":function(){return Q()?L():void 0},
tabindex:function(){return Q()?0:void 0},
role:function(){return Q()?"button":void 0}},_.p("div",{class:"ytFeedbackItemRendererContentContainer"},_.p(_.Up,{data:function(){return u().content}},{videoRenderer:function(G){return _.p(t,{data:G.data,
showYtInteraction:q})},
lockupViewModel:function(G){return _.p(_.nG,{data:G.data,containerType:2})}})),_.p("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.p(_.Up,{data:function(){return u().primaryButton}},{toggleButtonViewModel:function(G){return _.p(_.E6,{data:G.data,
buttonShapeOverrides:f,disableExplicitClickLogging:!0,onToggle:y})}})))},"jd"),"yt-feedback-item-renderer",{props:{data:_.H2,
showYtInteractionInContent:_.H2}});var G_=function(){var g=_.X.apply(this,arguments)||this;g.isShortsGrid=!1;g.isCompactGrid=!1;g.isShortsPanelGrid=!1;g.renderedFromRichGrid=!1;g.isInFirstColumn=!1;g.noGutterMargins=!1;g.noBottomMargin=!1;g.halfBottomMargin=!1;g.isInlineGroupItem=!1;g.insetMetadata=!1;g.noBottomMarginInAds=!0;g.force16By9ThumbnailAspectRatio=!1;g.useCompactList=!1;g.containerType=2;g.thumbnailTargetWidth=9999;g.isResponsiveGrid=!1;g.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};g.hoverListener=
g.hover.bind(g);g.leaveListener=g.leave.bind(g);g.highlighted=!1;g.JSC$16627_unsubscribeFromInlinePreviewIsActive=function(){};
return g};
_.A(G_,_.X);_.P=G_.prototype;_.P.computeContainerType=function(){return this.useCompactList?3:2};
_.P.itemWidthChanged=function(){var g;this.thumbnailTargetWidth=(g=this.itemWidth)!=null?g:9999};
_.P.updateIsInFirstColumn=function(){var g;this.isInFirstColumn=((g=this.data)==null?void 0:g.colIndex)===0};
_.P.observerContainerType=function(){if(this.lockup){var g=this.lockup;g.containerType=this.containerType;g.sizing=this.sizing;g.typographyBump=this.typographyBump;g.itemWidth=this.itemWidth}this.richGridMedia&&_.w("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.w("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.P.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]]"}}}}}};
_.P.leave=function(g){g=g.relatedTarget;var u=document.querySelector("ytd-video-preview");g&&u&&_.hR(u).contains(g)||this.removeAndCleanupHighlight()};
_.P.hover=function(){var g;!this.highlighted&&(g=this.data)!=null&&g.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(g=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:g,boxShadow:"0 0 0 10px "+g})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.P.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};
_.P.registerHoverHighlightListeners=function(){var g=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16627_unsubscribeFromInlinePreviewIsActive=_.qG(_.bR(),_.w_F,function(u){g.highlighted&&!u&&g.removeAndCleanupHighlight()})};
_.P.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16627_unsubscribeFromInlinePreviewIsActive()};
_.P.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.P.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.P.getBackgroundColor=function(){var g,u,q=(g=this.data)==null?void 0:(u=g.onFocusEffect)==null?void 0:u.onFocusColor;if(q){if(document.documentElement.hasAttribute("dark")&&(q==null?0:q.darkTheme))return MR(q==null?void 0:q.darkTheme);if(q==null?0:q.lightTheme)return MR(q==null?void 0:q.lightTheme)}};
_.P.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var g=_.j_(),u,q,Q;g&&((u=this.data)==null?0:u.trackingParams)&&((q=this.data)==null?void 0:q.colIndex)!=null&&((Q=this.data)==null?void 0:Q.rowIndex)!=null&&_.CW(g,_.Lr(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.P.isSlimMediaRenderer=function(g){return!!_.c(g==null?void 0:g.content,_.UGR)||!!_.c(g==null?void 0:g.content,oao)||!!_.c(g==null?void 0:g.content,_.tn)||!!_.c(g==null?void 0:g.content,cXR)};
_.P.isPostRenderer=function(){var g,u;return!!_.c((g=this.data)==null?void 0:g.content,DcH)||!!_.c((u=this.data)==null?void 0:u.content,pj5)};
_.P.computeIsGameCardShelf=function(){var g;return!!_.c((g=this.data)==null?void 0:g.content,I8$)};
_.P.computeIsMiniGameCardShelf=function(){var g,u;return!!_.c((g=this.data)==null?void 0:g.content,Yd0)||!!_.c((u=this.data)==null?void 0:u.content,OJi)};
_.P.computeIsTeaserCard=function(){var g;return!!_.c((g=this.data)==null?void 0:g.content,OJi)};
_.P.computeIsSelectableFeedbackItem=function(){var g,u;return!((u=_.c((g=this.data)==null?void 0:g.content,xsW))==null||!u.selectableFeedback)};
_.P.computeContainsLumierePosters=function(){var g,u;return((u=_.c((g=this.data)==null?void 0:g.content,wjn))==null?void 0:u.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.computeIsExpandOnHoverCardShelf=function(){var g;return!!_.c((g=this.data)==null?void 0:g.content,RJR)};
_.P.computeIsLinkCardShelf=function(){var g;return!!_.c((g=this.data)==null?void 0:g.content,a5a)};
_.P.computeIsReelItemStyleAvatarCircle=function(g){var u;return((u=_.c(g==null?void 0:g.content,_.tn))==null?void 0:u.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.P.computeIsLinkCardFullWidth=function(g,u){var q;return((q=_.c(g==null?void 0:g.content,a5a))==null?void 0:q.useFullWidth)||u<=2};
_.z3.Object.defineProperties(G_.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var g;return _.w("web_hover_effect_refactor")&&_.c((g=this.data)==null?void 0:g.content,X_8)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.w("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var g;if(_.w("web_hover_effect_refactor")&&_.c((g=this.data)==null?void 0:g.content,X_8))return!1;var u;return!((u=this.data)==null||!u.onFocusEffect)||_.w("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 g;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.w("web_hover_effect_refactor")?(g=this.data)==null?void 0:g.onFocusEffect:void 0}}}});
G_.prototype.richGridHoverHighlightChanged=G_.prototype.richGridHoverHighlightChanged;G_.prototype.observerContainerType=G_.prototype.observerContainerType;G_.prototype.updateIsInFirstColumn=G_.prototype.updateIsInFirstColumn;G_.prototype.itemWidthChanged=G_.prototype.itemWidthChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],G_.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],G_.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],G_.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],G_.prototype,"ytdLockupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],G_.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.K("design:type",Boolean)],G_.prototype,"isPost",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.K("design:type",Boolean)],G_.prototype,"containsLumierePosters",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.K("design:type",Boolean)],G_.prototype,"isSlimMedia",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.K("design:type",Boolean)],G_.prototype,"isGameCardShelf",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.K("design:type",Boolean)],G_.prototype,"isMiniGameCardShelf",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.K("design:type",Boolean)],G_.prototype,"isTeaserCard",void 0);_.Y([_.a({computed:"computeIsSelectableFeedbackItem(data)"}),_.K("design:type",Boolean)],G_.prototype,"isSelectableFeedbackItem",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"isShortsGrid",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],G_.prototype,"isSlimGrid",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"isCompactGrid",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"isShortsPanelGrid",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.K("design:type",Boolean)],G_.prototype,"isExpandOnHoverCardShelf",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.K("design:type",Boolean)],G_.prototype,"isLinkCardShelf",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.JD,value:3}),_.K("design:type",Number)],G_.prototype,"itemsPerRow",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"renderedFromRichGrid",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"isInFirstColumn",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"noGutterMargins",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"noBottomMargin",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"halfBottomMargin",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"isInlineGroupItem",void 0);_.Y([_.a(),_.K("design:type",Object)],G_.prototype,"insetMetadata",void 0);_.Y([_.a(),_.K("design:type",Object)],G_.prototype,"noBottomMarginInAds",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],G_.prototype,"isShelfItem",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.K("design:type",Boolean)],G_.prototype,"isReelItemStyleAvatarCircle",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.K("design:type",Boolean)],G_.prototype,"isLinkCardFullWidth",void 0);_.Y([_.a(),_.K("design:type",Object)],G_.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"useCompactList",void 0);_.Y([_.a(),_.K("design:type",String)],G_.prototype,"sizing",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],G_.prototype,"typographyBump",void 0);_.Y([_.a(),_.K("design:type",Number)],G_.prototype,"itemWidth",void 0);_.Y([_.a(),_.K("design:type",Boolean)],G_.prototype,"isHomeShelf",void 0);_.Y([_.a(),_.K("design:type",Boolean)],G_.prototype,"isHomeGrid",void 0);
_.Y([_.oE("yt-lockup-view-model"),_.K("design:type",HTMLElement)],G_.prototype,"lockup",void 0);_.Y([_.oE("ytd-rich-grid-media"),_.K("design:type",HTMLElement)],G_.prototype,"richGridMedia",void 0);_.Y([_.oE("ytd-ad-slot-renderer"),_.K("design:type",HTMLElement)],G_.prototype,"adSlotRenderer",void 0);_.Y([_.a({computed:"computeContainerType(useCompactList)"}),_.K("design:type",Object)],G_.prototype,"containerType",void 0);_.Y([_.a(),_.K("design:type",Object)],G_.prototype,"thumbnailTargetWidth",void 0);
_.Y([_.C("showYtInteractionOnRichItem"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],G_.prototype,"showYtInteractionOnRichGridMedia",null);_.Y([_.C("isSelectableFeedbackItem","richGridHoverHighlight"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],G_.prototype,"showYtInteractionOnRichItem",null);_.Y([_.C("typographyBump","isHomeGrid"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],G_.prototype,"richTypographyBump",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data","isShortsGrid","isCompactGrid"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],G_.prototype,"richGridHoverHighlight",null);_.Y([_.C("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.K("design:type",Number),_.K("design:paramtypes",[])],G_.prototype,"shortsLockupViewModelAspectRatio",null);_.Y([_.C("isInlineGroupItem"),_.K("design:type",Number),_.K("design:paramtypes",[])],G_.prototype,"shortsLockupViewModelScrimStyle",null);
_.Y([_.k_("itemWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],G_.prototype,"itemWidthChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],G_.prototype,"updateIsInFirstColumn",null);_.Y([_.k_("containerType","sizing","typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],G_.prototype,"observerContainerType",null);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G_.prototype,"isResponsiveGrid",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],G_.prototype,"lockupExperiments",null);_.Y([_.k_("richGridHoverHighlight"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],G_.prototype,"richGridHoverHighlightChanged",null);_.Y([_.fE({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],G_);
_.aDX=_.Te()(G_,"ytd-rich-item-renderer",function(){if(RWa===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);RWa=g}g=RWa;return g},{mode:2});var DdJ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var HcZ=_.I7(_.Ug("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var JxM={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},fNu={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},MMq={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var VN5;var $d=function(){var g=_.X.apply(this,arguments)||this;g.useResponsiveGrid=!1;g.hidden=!1;g.isShowMoreHidden=!1;g.isShowLessHidden=!0;g.hasExpansionButton=!1;g.isInnerShelf=!1;g.allVideosCount=0;g.allPlaylistCount=0;g.haveSmartDownloadsCompleted=!1;g.restrictContentsOverflow=!1;g.firstShownIndex=0;g.horizontalOffset=0;g.atEnd=!0;g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
g.disableServiceRequestPropagation=function(u){u.stopPropagation()};
g.nextClick=function(){var u;(u=g.data)!=null&&u.contents&&(g.firstShownIndex+=g.currentElementsPerRow,g.updateHorizontalOffset(),g.updateHorizontalItemVisibility())};
g.previousClick=function(){var u;(u=g.data)!=null&&u.contents&&(g.firstShownIndex-=g.currentElementsPerRow,g.updateHorizontalOffset(),g.updateHorizontalItemVisibility())};
return g};
_.A($d,_.X);_.P=$d.prototype;
_.P.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:_.FR("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.P.attached=function(){this.requestElementsPerRow();_.w("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.P.detached=function(){_.w("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.P.refreshGridLayoutNew=function(){var g;if((g=this.data)!=null&&g.contents&&this.containerWidth){var u;((u=this.data.responsiveContainerConfiguration)==null?0:u.responsiveSize)?(g=_.Zcq(this.data.responsiveContainerConfiguration,this.containerWidth,2),g=_.Gk(Object.assign({},g,{standardUnitMinWidth:this.standardUnitMinWidth}))):g=_.Gk({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=g.typographyBump;if(this.elementsPerRow!==
g.numItems||this.gutter!==g.gutter)this.elementsPerRow=g.numItems,this.gutter=g.gutter,this.itemWidth=g.itemWidth,_.x_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":g.gutter+"px"})}};
_.P.computeSizing=function(){if(!this.isLumiere){var g=_.nNu(this.data);return g?g:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.P.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.P.computeButton=function(g){var u=_.c(g,_.eW);g=Object.assign({},_.c(g,_.eW));return u?(g.text||(g.text={simpleText:g.tooltip}),g.style="STYLE_MONO_OUTLINE",g.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",g):u};
_.P.onRowIndexChange=function(){var g=_.j_(),u,q;((u=this.data)==null?0:u.trackingParams)&&((q=this.data)==null?void 0:q.rowIndex)!=null&&g&&_.CW(g,_.Lr(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.P.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var g,u=((g=this.getRichItemRenderers()[0])==null?void 0:g.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*u;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.P.requestElementsPerRow=function(){_.hJ(this.hostElement,"yt-request-elements-per-row")};
_.P.onUpdateElementsPerRowAction=function(g,u,q,Q,L,E){if(this.containerWidth!==E&&(this.containerWidth=E,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&g&&u&&q&&Q&&L&&(this.elementsPerRow!==g||this.postsPerRow!==u||this.slimItemsPerRow!==q||this.gameCardsPerRow!==Q||this.miniGameCardsPerRow!==L)&&(this.elementsPerRow=g,this.postsPerRow=u,this.slimItemsPerRow=q,this.gameCardsPerRow=Q,this.miniGameCardsPerRow=L,this.updateItemVisibility())};
_.P.isExpandedChanged=function(){var g=this.getRichItemRenderers(),u=this.isExpanded;g.forEach(function(q){q.halfBottomMargin=u})};
_.P.isCollapsedChanged=function(){var g=this.getRichItemRenderers(),u=this.isCollapsed;g.forEach(function(q){q.noBottomMargin=u})};
_.P.getRichItemRenderers=function(){return _.Tr(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.P.updateItemVisibility=function(){var g=this;if(this.data&&this.data.contents){var u=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(Q,L){var E;((E=g.data)==null?0:E.isExpanded)?(Q.hidden=L>u-1,Q.ytRendererBehavior.markDirty()):Q.hidden=L>g.currentElementsPerRow-1||L>u-1});
var q=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||q||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||q||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.P.setHeightToSingleRow=function(){var g=this.getRichItemRenderers(),u=Number.parseInt(getComputedStyle(g[0]).marginBottom,10)||0;g=g.slice(0,this.currentElementsPerRow).reduce(function(q,Q){return Math.max(q,Q.getBoundingClientRect().height+u)},0);
this.contents.style.height=g+"px"};
_.P.focusNextExpandedItem=function(){var g;((g=this.data)==null?0:g.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.P.focusItem=function(g,u){var q=this.getRichItemRenderers();if(q[g]&&(g=q[g].querySelector(".focus-on-expand"))){if(u){var Q;(Q=q[this.currentElementsPerRow])==null||Q.scrollIntoView({behavior:"smooth",block:"center"})}g.focus({preventScroll:!0})}};
_.P.onDataChange=function(){var g=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var u;if((u=this.data)==null?0:u.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.xt(this,function(){g.updateItemVisibility()});
var q;if((q=this.data)==null?0:q.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.x_(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),u=0;u<this.data.contents.length;u++)q=_.c(this.data.contents[u],_.Lq)||{},q.colIndex=u,q.rowIndex=this.data.rowIndex};
_.P.handleRerenderDownloadsData=function(){_.w("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())};
_.P.blockInlinePreview=function(g){var u=this,q;return _.D(function(Q){(q=u.inlinePreviewIsEnabled)&&u.ytdReduxBehavior.dispatch(_.lt2(!1));return Q.return(new Promise(function(L){g(function(){q&&u.ytdReduxBehavior.dispatch(_.lt2(!0));L()})}))})};
_.P.expandShelf=function(){var g=this;if(this.data){var u,q=(u=_.c(this.data.showMoreButton,_.eW))==null?void 0:u.trackingParams;q&&_.nq(_.gL(),q);this.set("data.isExpanded",!0);this.blockInlinePreview(function(Q){g.setHeightToSingleRow();g.updateItemVisibility();g.contents.style.height=g.contents.scrollHeight+"px";_.Hv.addJob(function(){g.contents.style.height="auto";g.focusNextExpandedItem();Q()},2,200)})}};
_.P.collapseShelf=function(){var g=this;return _.D(function(u){if(u.nextAddress==1){if(!g.data)return u.return();g.set("data.isExpanded",!1);return u.yield(g.blockInlinePreview(function(q){g.contents.style.height=g.contents.scrollHeight+"px";g.setHeightToSingleRow();_.Hv.addJob(function(){g.updateItemVisibility();g.contents.style.height="auto";q()},2,200)}),2)}_.hJ(g.hostElement,"yt-rich-shelf-renderer-collapse",g.data.trackingParams);
g.focusItem(0,!1);_.Wx(u)})};
_.P.updateArrowButtonStatus=function(){this.getRichItemRenderers();var g,u;var q=((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=q};
_.P.onChildElementFocus=function(g){this.hasChevronButtons&&(g=g.target.closest("#contents > *"),this.contents.contains(g)&&(g.offsetLeft<this.horizontalOffset?this.previousClick():g.offsetLeft+g.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.P.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.FR("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.P.updateHorizontalOffset=function(){var g=this.getRichItemRenderers(),u,q;var Q=((u=this.data)==null?void 0:(q=u.contents)==null?void 0:q.length)||0;var L;g=((L=g[0])==null?void 0:L.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>Q?this.firstShownIndex=Q-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*g};
_.P.isSlimMediaShelfRenderer=function(){var g,u,q,Q=(q=_.c((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u[0],_.Lq))==null?void 0:q.content;return!!(_.c(Q,_.UGR)||_.c(Q,oao)||_.c(Q,_.tn)||_.c(Q,cXR))};
_.P.isGameCardShelf=function(){var g,u,q,Q=(q=_.c((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u[0],_.Lq))==null?void 0:q.content;return!!_.c(Q,I8$)};
_.P.isMiniGameCardShelf=function(){var g,u,q,Q=(q=_.c((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u[0],_.Lq))==null?void 0:q.content;return!!_.c(Q,Yd0)||!!_.c(Q,OJi)};
_.P.hasGameBoxArtAvatarStyle=function(){var g;return((g=this.data)==null?void 0:g.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.P.hasRoundedGameBoxArtAvatarStyle=function(){var g;return((g=this.data)==null?void 0:g.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.P.isShortsShelf=function(){var g,u,q,Q=(q=_.c((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u[0],_.Lq))==null?void 0:q.content;return!!_.c(Q,_.tn)||!!_.c(Q,cXR)};
_.P.isPostShelfRenderer=function(){var g,u,q,Q=(q=_.c((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u[0],_.Lq))==null?void 0:q.content;return!(!_.c(Q,DcH)&&!_.c(Q,pj5))};
_.P.isLumiereShelf=function(){var g,u,q=_.c((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u[0],_.Lq);return!!_.c(q==null?void 0:q.content,wjn)};
_.P.isLumiereShelfWithPosters=function(){var g,u,q=_.c((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u[0],_.Lq),Q;return((Q=_.c(q==null?void 0:q.content,wjn))==null?void 0:Q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.isExpandOnHoverCardShelf=function(){var g,u,q,Q=(q=_.c((g=this.data)==null?void 0:(u=g.contents)==null?void 0:u[0],_.Lq))==null?void 0:q.content;return!!_.c(Q,RJR)};
_.P.computeHasFeaturedBadge=function(){var g,u,q=_.c((g=this.data)==null?void 0:(u=g.badges)==null?void 0:u[0],_.O8n);return q?q.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHasPaygatedFeaturedBadge=function(){var g,u,q=_.c((g=this.data)==null?void 0:(u=g.badges)==null?void 0:u[0],_.O8n);return q?(q==null?void 0:q.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHeaderHidden=function(){var g,u,q,Q,L,E;return!((g=this.data)==null?0:g.icon)&&!((u=this.data)==null?0:u.title)&&!((q=this.data)==null?0:q.subtitle)&&!((Q=this.data)==null?0:Q.thumbnail)&&!((L=this.data)==null?0:L.badges)&&!((E=this.data)==null?0:E.menu)};
_.P.showCtaButton=function(){var g;return!((g=this.data)==null||!g.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.P.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.P.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.P.computeForce16By9ThumbnailAspectRatio=function(){var g,u;return((g=this.data)==null?void 0:(u=g.responsiveContainerConfiguration)==null?void 0:u.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.P.onSectionReactiveDismissal=function(g,u,q){var Q,L;var E=(Q=this.data)==null?void 0:(L=Q.targetingContext)==null?void 0:L.targetGroupId;this&&E&&u.targetGroupId&&E.includes(u.targetGroupId)?(Q=this.rowIndex,g=Q===void 0?!1:!(u.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Q<=g)):g=!1;g&&(this.hidden=q)};
_.z3.Object.defineProperties($d.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null?0:g.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var g=this.elementsPerRow;this.isPostShelfRenderer()?g=this.postsPerRow:this.isSlimMediaShelfRenderer()?g=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?g=this.slimItemsPerRow-1:this.isGameCardShelf()?g=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(g=this.miniGameCardsPerRow);return g}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null?0:g.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var g,u;return!((g=this.data)==null||!g.previousButton)&&!((u=this.data)==null||!u.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 g;return((g=_.Bk().resolve(_.ba).getCurrentPage())==null?void 0:g.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q;return!((g=this.data)==null?0:(u=g.thumbnail)==null?0:(q=u.accessibility)==null?0:(Q=q.accessibilityData)==null?0:Q.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
$d.prototype.onChildElementFocus=$d.prototype.onChildElementFocus;$d.prototype.handleRerenderDownloadsData=$d.prototype.handleRerenderDownloadsData;$d.prototype.onDataChange=$d.prototype.onDataChange;$d.prototype.isCollapsedChanged=$d.prototype.isCollapsedChanged;$d.prototype.isExpandedChanged=$d.prototype.isExpandedChanged;$d.prototype.onRowIndexChange=$d.prototype.onRowIndexChange;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],$d.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],$d.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],$d.prototype,"ytdReduxBehavior",void 0);
_.Y([_.a({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.K("design:type",Object)],$d.prototype,"useResponsiveGrid",void 0);_.Y([_.a(),_.K("design:type",Object)],$d.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],$d.prototype,"standardUnitMinWidth",void 0);_.Y([_.a({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],$d.prototype,"elementsPerRow",void 0);_.Y([_.a({value:3}),_.K("design:type",Number)],$d.prototype,"postsPerRow",void 0);
_.Y([_.a({value:6}),_.K("design:type",Number)],$d.prototype,"slimItemsPerRow",void 0);_.Y([_.a({value:6}),_.K("design:type",Number)],$d.prototype,"gameCardsPerRow",void 0);_.Y([_.a({value:6}),_.K("design:type",Number)],$d.prototype,"miniGameCardsPerRow",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$d.prototype,"hidden",void 0);_.Y([_.a(),_.K("design:type",Object)],$d.prototype,"isShowMoreHidden",void 0);
_.Y([_.a(),_.K("design:type",Object)],$d.prototype,"isShowLessHidden",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$d.prototype,"hasExpansionButton",void 0);_.Y([_.C("data.isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$d.prototype,"isExpanded",null);_.Y([_.C("data.isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$d.prototype,"isCollapsed",null);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$d.prototype,"isInnerShelf",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.K("design:type",Boolean)],$d.prototype,"isShorts",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.K("design:type",Boolean)],$d.prototype,"isLumiere",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.K("design:type",Boolean)],$d.prototype,"hasBoxArtThumbnailStyle",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.K("design:type",Boolean)],$d.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.K("design:type",Boolean)],$d.prototype,"hasFeaturedBadge",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.K("design:type",Boolean)],$d.prototype,"hasPaygatedFeaturedBadge",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.K("design:type",Boolean)],$d.prototype,"isHeaderHidden",void 0);_.Y([_.a({selector:_.IhJ}),_.K("design:type",Object)],$d.prototype,"allVideosCount",void 0);_.Y([_.a({selector:AxK}),_.K("design:type",Object)],$d.prototype,"allPlaylistCount",void 0);_.Y([_.a({selector:rFZ}),_.K("design:type",Object)],$d.prototype,"haveSmartDownloadsCompleted",void 0);
_.Y([_.a({selectorArgs:["entitySelectorType"],selector:function(g,u){if(_.w("kevlar_modern_downloads_page")&&u&&u!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var q=g.entities;switch(u){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":u=_.yv(q);g=ky(u);var Q=_.Qv(u);q=_.Ds(q);q=_.ap(euu(Q,q,u.length));return{contents:g,subtitle:q};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return q=_.yv(q),{contents:ky(q)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return q=
_.vc(q),{contents:ky(q)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return q=_.EeT(q),{contents:ky(q)};default:_.Io(new _.Ji("Error: entitySelectorType defined but not matched in selector.",g,u))}}}}),
_.K("design:type",Object)],$d.prototype,"entityDrivenRichShelfData",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.K("design:type",Boolean)],$d.prototype,"hasTopCtaButton",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.K("design:type",Boolean)],$d.prototype,"hasBottomCtaButton",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.K("design:type",Boolean)],$d.prototype,"force16By9ThumbnailAspectRatio",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$d.prototype,"restrictContentsOverflow",void 0);_.Y([_.a({selector:_.cFS}),_.K("design:type",Boolean)],$d.prototype,"inlinePreviewIsEnabled",void 0);_.Y([_.a({computed:"computeSizing(data)"}),_.K("design:type",String)],$d.prototype,"sizing",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],$d.prototype,"typographyBump",void 0);_.Y([_.a(),_.K("design:type",Number)],$d.prototype,"itemWidth",void 0);_.Y([_.a(),_.K("design:type",Object)],$d.prototype,"firstShownIndex",void 0);_.Y([_.a(),_.K("design:type",Object)],$d.prototype,"horizontalOffset",void 0);_.Y([_.a(),_.K("design:type",Object)],$d.prototype,"atEnd",void 0);_.Y([_.oE("#contents"),_.K("design:type",HTMLElement)],$d.prototype,"contents",void 0);
_.Y([_.k_("data.rowIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$d.prototype,"onRowIndexChange",null);_.Y([_.k_("isExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$d.prototype,"isExpandedChanged",null);_.Y([_.k_("isCollapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$d.prototype,"isCollapsedChanged",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$d.prototype,"onDataChange",null);_.Y([_.k_("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$d.prototype,"handleRerenderDownloadsData",null);_.Y([_.n6("focusin"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],$d.prototype,"onChildElementFocus",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data","isHomePage"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$d.prototype,"isTruncated",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$d.prototype,"showBottomDivider",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],$d.prototype,"hasChevronButtons",null);
_.Y([_.C("firstShownIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],$d.prototype,"previousButtonOverride",null);_.Y([_.C("atEnd"),_.K("design:type",Object),_.K("design:paramtypes",[])],$d.prototype,"nextButtonOverride",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$d.prototype,"isHomePage",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$d.prototype,"thumbnailAriaHidden",null);
_.Y([_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],$d.prototype,"entitySelectorType",null);_.Y([_.fE({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],$d);
_.X78=_.Te()($d,"ytd-rich-shelf-renderer",function(){if(VN5===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);VN5=g}g=VN5;return g},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:2});var rIH;_.dL(VL,"yt-thumbnail-view-model",{props:{data:_.H2,aspectRatio:_.H2,width:_.H2,height:_.H2,disableRounding:_.H2,isClip:_.H2,className:_.H2,hovered:_.H2,playbackRef:_.H2,lockupExperiments:_.H2}});_.dL(_.bY,"yt-badge-view-model",{props:{data:_.H2,class:_.H2,workaroundShortsIsThumbnailBadge:_.H2,modern:_.H2,numBadgesInRow:_.H2,clipTextOverflow:_.H2,inheritTypography:_.H2}});_.dL(ylb,"yt-slimline-survey-view-model",{props:{data:_.H2}});var Rv=function(){var g=_.X.apply(this,arguments)||this;g.tileLottieAnimationRef={};g.backgroundLottieAnimationRef={};g.isOnHoverBehaviorForLottieEnabled=!0;g.useBiggerShowcaseImage=_.w("enable_desktop_search_bigger_thumbs");g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return g};
_.A(Rv,_.X);_.P=Rv.prototype;_.P.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.P.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"}}}};
_.P.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var g=this.hasStaticTile(this.data)||this.hasTileLottie(this.data)||this.hasThumbnailViewModel(this.data);g!==this.hasTile&&this.set("hasTile",g);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.set("tileImageViewModel",this.getCurrentTileImageViewModel(this.data,this.isDarkTheme));this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.P.hoveredChanged=function(){var g=this.thumbnail;g&&(g.hovered=this.hovered)};
_.P.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.P.currentColorChanged=function(){this.updateButtonPalette()};
_.P.computeBackgroundStyle=function(g){if(g&&this.data){var u=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var q=_.my((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);q&&u.push('background-image: url("'+q+'");')}var Q;((Q=g.basicColorData)==null?void 0:Q.backgroundColor)!==void 0&&u.push("background-color: "+_.jh(g.basicColorData.backgroundColor)+";");return u.join("")}};
_.P.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&this.set("isDarkTheme",g)};
_.P.getCurrentLogo=function(g,u){if(g)return u?g.darkLogoImage:g.lightLogoImage};
_.P.getCurrentTileImageViewModel=function(g,u){if(g)return g.darkTileImageViewModel?u?g.darkTileImageViewModel:g.tileImageViewModel:g.tileImageViewModel};
_.P.getCurrentStaticTileImage=function(g,u){if(this.hasStaticTile(g))return g.darkTileImage?u?g.darkTileImage:g.tileImage:g.tileImage};
_.P.computeTitleStyle=function(g){if(this.data&&this.data.title&&g&&g.basicColorData&&g.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.JR(g.basicColorData.foregroundTitleColor)+";"};
_.P.computeSubtitleStyle=function(g){if(this.data&&this.data.subtitle&&g&&g.basicColorData&&g.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.JR(g.basicColorData.foregroundBodyColor)+";"};
_.P.computeSupplementalStyle=function(g){if(this.data&&this.data.supplementalText&&g&&g.supplementalTextColor!==void 0)return g=_.JR(g.supplementalTextColor),"color:"+g+";--yt-endpoint-color:"+g+";--yt-endpoint-hover-color:"+g+";--yt-endpoint-visited-color:"+g+";--yt-formatted-string-bold-font-weight:700;"};
_.P.computeDismissIconStyle=function(g){var u,q;if((g==null?0:(u=g.dismissButtonColorData)==null?0:u.foregroundTitleColor)&&(g==null?0:(q=g.dismissButtonColorData)==null?0:q.backgroundColor))return"--yt-button-color:"+_.jh(g.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.jh(g.dismissButtonColorData.backgroundColor)+";"};
_.P.computeOverflowIconStyle=function(g){var u,q;if((g==null?0:(u=g.dismissButtonColorData)==null?0:u.foregroundTitleColor)&&(g==null?0:(q=g.dismissButtonColorData)==null?0:q.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.jh(g.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.jh(g.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.jh(g.dismissButtonColorData.foregroundTitleColor)+";"};
_.P.computeBannerStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.P.computeLocation=function(g){switch(g==null?void 0:g.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.P.shouldShowTileSection=function(g,u,q){return!this.shouldExpandLogo(g,u,q)&&u};
_.P.shouldShowExpandedLogoSection=function(g,u,q){return this.shouldExpandLogo(g,u,q)&&g!==void 0&&this.hasLogo(g)};
_.P.shouldExpandLogo=function(g,u,q){return g&&u?!1:q>=2};
_.P.hasStaticTile=function(g){return!(g==null||!g.tileImage)};
_.P.hasThumbnailViewModel=function(g){return!(g==null||!g.tileImageViewModel)};
_.P.hasTileLottie=function(g){var u;return!!(g==null?0:(u=g.tileLottie)==null?0:u.url)};
_.P.hasLogo=function(g){return this.getCurrentLogo(g,this.isDarkTheme)!==void 0};
_.P.getLogoHeight=function(g){return this.logoWithPadding(g)?"26":"20"};
_.P.getExpandedLogoHeight=function(g){return this.logoWithPadding(g)?"31":"24"};
_.P.getLogoImageId=function(g){return this.logoWithPadding(g)?"logo-image-with-padding":"logo-image"};
_.P.getMaxTitleFontSize=function(g){return g.overrideTitleMaxFontSize?String(g.overrideTitleMaxFontSize):"36"};
_.P.hasBackgroundLottie=function(g){var u;return!!(g==null?0:(u=g.backgroundLottie)==null?0:u.url)};
_.P.onMouseOver=function(){if(this.isOnHoverBehaviorForLottieEnabled){var g,u;(g=this.tileLottieAnimationRef)==null||(u=g.lottieEl)==null||u.play();var q,Q;(q=this.backgroundLottieAnimationRef)==null||(Q=q.lottieEl)==null||Q.play()}this.hovered=!0};
_.P.onMouseLeave=function(){if(this.isOnHoverBehaviorForLottieEnabled){var g,u;(g=this.tileLottieAnimationRef)==null||(u=g.lottieEl)==null||u.pause();var q,Q;(q=this.backgroundLottieAnimationRef)==null||(Q=q.lottieEl)==null||Q.pause()}this.hovered=!1};
_.P.pauseLottie=function(){var g,u;(g=this.tileLottieAnimationRef)==null||(u=g.lottieEl)==null||u.pause();var q,Q;(q=this.backgroundLottieAnimationRef)==null||(Q=q.lottieEl)==null||Q.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.P.performPrimaryButtonAction=function(){var g,u,q;((g=this.data)==null?0:(u=g.primaryButton)==null?0:(q=u.buttonRenderer)==null?0:q.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.P.requestElementsPerRow=function(){_.hJ(this.hostElement,"yt-request-elements-per-row")};
_.P.updateButtonPalette=function(){if(this.data&&this.currentColorData){var g;((g=this.data.dismissButton)==null?0:g.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 u;if((u=this.data.primaryButton)==null?0:u.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 q;if((q=this.data.secondaryButton)==
null?0:q.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 Q;((Q=this.data.primaryButton)==null?0:Q.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var L;((L=this.data.primaryButton)==null?0:L.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var E;((E=this.data.secondaryButton)==null?0:E.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var y;((y=this.data.primaryButton)==null?0:y.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.P.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var g=this.getTileLottieDataBasedOnTheme(),u,q;if(g.url!==((u=this.tileLottiePlayerProps)==null?void 0:(q=u.animationConfig)==null?void 0:q.path)){var Q,L;(Q=this.tileLottieAnimationRef)==null||(L=Q.lottieEl)==null||L.destroy();var E;this.isOnHoverBehaviorForLottieEnabled=!((E=g.settings)==null?0:E.autoplay);var y,v;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(v=(y=g.settings)==null?void 0:y.autoplay)!=null?v:!1,loop:this.getLottieLoopValue(g.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof g.url==="string"?this.tileLottiePlayerProps.animationConfig.path=g.url:this.tileLottiePlayerProps.animationConfig.animationData=g.url}}};
_.P.getOverflowButton=function(g){return _.c(g.overflowButton,ICW)};
_.P.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var g=this.getBackgroundLottieDataBasedOnTheme(),u,q;if(g.url!==((u=this.backgroundLottiePlayerProps)==null?void 0:(q=u.animationConfig)==null?void 0:q.path)){var Q,L;(Q=this.backgroundLottieAnimationRef)==null||(L=Q.lottieEl)==null||L.destroy();var E;this.isOnHoverBehaviorForLottieEnabled=!((E=g.settings)==null?0:E.autoplay);var y,v;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(v=(y=g.settings)==null?void 0:y.autoplay)!=null?v:!1,loop:this.getLottieLoopValue(g.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof g.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=g.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
g.url}}};
_.P.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var g;((g=this.tileLottieAnimationRef)==null?void 0:g.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var u;((u=this.backgroundLottieAnimationRef)==null?void 0:u.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.P.getTileLottieDataBasedOnTheme=function(){var g;if(this.isDarkTheme&&((g=this.data)==null?0:g.darkThemeTileLottie))return this.data.darkThemeTileLottie;var u;return((u=this.data)==null?0:u.tileLottie)?this.data.tileLottie:{}};
_.P.getBackgroundLottieDataBasedOnTheme=function(){var g;if(this.isDarkTheme&&((g=this.data)==null?0:g.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var u;return((u=this.data)==null?0:u.backgroundLottie)?this.data.backgroundLottie:{}};
_.P.onUpdateElementsPerRowAction=function(g){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g)};
_.P.getLottieLoopValue=function(g){return g?g.loop!==void 0?g.loop:g.loopCount?g.loopCount-1:!0:!0};
_.P.logoWithPadding=function(g){var u,q,Q;return(g=(u=this.getCurrentLogo(g,this.isDarkTheme))==null?void 0:(q=u.thumbnails)==null?void 0:(Q=q[0])==null?void 0:Q.height)&&g%31===0?!0:!1};
Rv.prototype.currentColorChanged=Rv.prototype.currentColorChanged;Rv.prototype.themeChanged=Rv.prototype.themeChanged;Rv.prototype.hoveredChanged=Rv.prototype.hoveredChanged;Rv.prototype.dataChanged=Rv.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.M5),_.K("design:type",Object)],Rv.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Rv.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Rv.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Rv.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Rv.prototype,"primaryButton",void 0);
_.Y([_.a(),_.K("design:type",Object)],Rv.prototype,"tileImageViewModel",void 0);_.Y([_.a(),_.K("design:type",Object)],Rv.prototype,"secondaryButton",void 0);_.Y([_.a({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],Rv.prototype,"elementsPerRow",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Rv.prototype,"isDarkTheme",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Rv.prototype,"hasTile",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Rv.prototype,"hasMetadata",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Rv.prototype,"showLogoImage",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Rv.prototype,"hovered",void 0);_.Y([_.a(),_.K("design:type",Object)],Rv.prototype,"currentColorData",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.K("design:type",String)],Rv.prototype,"bannerStyle",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.K("design:type",String)],Rv.prototype,"location",void 0);_.Y([_.a(),_.K("design:type",Object)],Rv.prototype,"tileLottiePlayerProps",void 0);_.Y([_.a(),_.K("design:type",Object)],Rv.prototype,"tileLottieAnimationRef",void 0);
_.Y([_.a(),_.K("design:type",Object)],Rv.prototype,"backgroundLottiePlayerProps",void 0);_.Y([_.a(),_.K("design:type",Object)],Rv.prototype,"backgroundLottieAnimationRef",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Rv.prototype,"useBiggerShowcaseImage",void 0);_.Y([_.oE("yt-thumbnail-view-model"),_.K("design:type",HTMLElement)],Rv.prototype,"thumbnail",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Rv.prototype,"isHideEnclosingAction",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rv.prototype,"dataChanged",null);_.Y([_.k_("hovered"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rv.prototype,"hoveredChanged",null);_.Y([_.qm("isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rv.prototype,"themeChanged",null);
_.Y([_.qm("currentColorData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rv.prototype,"currentColorChanged",null);_.Y([_.fE({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Rv);
_.T(Rv,"ytd-statement-banner-renderer",function(){if(rIH!==void 0)return rIH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return rIH=g},{mode:1});var WIn;var wW=function(){var g=_.X.apply(this,arguments)||this;g.isSearch=!1;g.hideShelfHeader=!1;g.engagementPanel=!1;g.disableMouseScroll=!0;g.useFloorScrolling=!0;return g};
_.A(wW,_.X);wW.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Ug("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Ug("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
wW.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
wW.prototype.onDataChanged=wW.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wW.prototype,"isSearch",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wW.prototype,"hideShelfHeader",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wW.prototype,"engagementPanel",void 0);_.Y([_.a(),_.K("design:type",Object)],wW.prototype,"disableMouseScroll",void 0);_.Y([_.a(),_.K("design:type",Object)],wW.prototype,"useFloorScrolling",void 0);_.Y([_.a(),_.K("design:type",Object)],wW.prototype,"data",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wW.prototype,"onDataChanged",null);
_.Y([_.fE({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],wW);
_.T(wW,"ytd-reel-shelf-renderer",function(){if(WIn!==void 0)return WIn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return WIn=g},{mode:_.hr("kevlar_poly_si_batch_j028")?1:2});var Tk0;var hW2;hW2=_.CT(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.YoR=_.A1(hW2);var OM$=_.r(function(g){var u=g.data;g=g.useSmallFont;var q={},Q={};return _.p("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.p(_.M,{cond:function(){return u().favicon},
then:function(L){return _.p(_.IT,{data:L,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.p("div",{class:"ytChannelExternalLinkViewModelContainer"},_.p(_.c2,{text:function(){return u().title},
className:_.Ty("ytChannelExternalLinkViewModelTitle",(q.ytChannelExternalLinkViewModelTitleSmallFont=g,q)),ellipsisTruncate:!0,userInput:!0}),_.p(_.c2,{text:function(){return u().link},
className:_.Ty("ytChannelExternalLinkViewModelLink",(Q.ytChannelExternalLinkViewModelLinkSmallFont=g,Q)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"kd");
OM$.idomCompat=!0;_.dL(OM$,"yt-channel-external-link-view-model",{props:{data:_.H2,useSmallFont:_.H2}});_.Ny("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var cE=function(){var g=_.X.apply(this,arguments)||this;g.revealButtonClass="button";g.businessEmailDisplayState="HIDE_SECTION";return g};
_.A(cE,_.X);_.P=cE.prototype;_.P.refit=function(){var g=this;_.wO(function(){_.Og(g.hostElement,"yt-refit-popups-action")});
_.xt(this,function(){_.Og(g.hostElement,"yt-refit-popups-action")})};
_.P.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Rr(_.YoR),this.businessEmailDisplayState="CAPTCHA")};
_.P.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"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.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"}}}};
_.P.computeEmailHref=function(g){return"mailto:"+g};
_.P.computeSafeUrl=function(g){if(g)return _.SO(g)};
_.P.linkEndpoint=function(g){return _.c(g.onTap,_.Jo)};
_.P.linkEndpointToHref=function(g){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(g))};
_.P.onYtServiceRequestCompleted=function(g){var u;if((u=g.detail.data)==null?0:u.businessEmail)this.businessEmail=g.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var q;if((q=g.detail.data)==null?0:q.errorMessage)this.businessEmailErrorMessage=g.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var g=this.JSC$16742_captchaTextarea.value;if(g){g={recaptcha_response_token:g,channel_id:this.metadata.channelId};var u=_.c(this.metadata.onBusinessEmailRevealClickCommand,_.Jo);u&&this.ytComponentBehavior.resolveCommand(u,{form:g})}}};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.z3.Object.defineProperties(cE.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var g;return _.c((g=this.data)==null?void 0:g.metadata,ZAW)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.c(this.metadata.businessEmailRevealButton,_.Rn)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var g=new URL(this.metadata.canonicalChannelUrl);return g.host+g.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 _.c(this.metadata.learnMoreOnTap,_.Jo)}}});
cE.prototype.onYtServiceRequestCompleted=cE.prototype.onYtServiceRequestCompleted;cE.prototype.businessEmailMetadataChanged=cE.prototype.businessEmailMetadataChanged;cE.prototype.refit=cE.prototype.refit;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],cE.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.oE("#g-recaptcha-response"),_.K("design:type",HTMLTextAreaElement)],cE.prototype,"JSC$16742_captchaTextarea",void 0);_.Y([_.a(),_.K("design:type",Object)],cE.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],cE.prototype,"revealButtonClass",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],cE.prototype,"metadata",null);
_.Y([_.C("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],cE.prototype,"revealButton",null);_.Y([_.C("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],cE.prototype,"channelDisplayUrl",null);_.Y([_.qm("metadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cE.prototype,"refit",null);_.Y([_.C("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],cE.prototype,"formattedDescription",null);
_.Y([_.C("metadata","learnMoreCommand"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cE.prototype,"shouldRendereVerifiedPhoneStatus",null);_.Y([_.C("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],cE.prototype,"learnMoreCommand",null);_.Y([_.a(),_.K("design:type",String)],cE.prototype,"businessEmailDisplayState",void 0);_.Y([_.a(),_.K("design:type",String)],cE.prototype,"businessEmail",void 0);
_.Y([_.a(),_.K("design:type",String)],cE.prototype,"businessEmailErrorMessage",void 0);_.Y([_.qm("metadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cE.prototype,"businessEmailMetadataChanged",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],cE.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.fE({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],cE);
_.T(cE,"ytd-about-channel-renderer",function(){if(Tk0!==void 0)return Tk0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Tk0=g},{mode:1});var KIH;var HE=function(){return _.X.apply(this,arguments)||this};
_.A(HE,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],HE.prototype,"data",void 0);_.Y([_.fE({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],HE);
_.T(HE,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(KIH!==void 0)return KIH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return KIH=g},{mode:1});var x1X;var AK=function(){return _.X.apply(this,arguments)||this};
_.A(AK,_.X);AK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],AK.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],AK.prototype,"aligment",void 0);_.Y([_.fE({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],AK);
_.T(AK,"ytd-channel-list-sub-menu-renderer",function(){if(x1X!==void 0)return x1X;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return x1X=
g},{mode:1});var Bk0;var Zt=function(){return _.X.apply(this,arguments)||this};
_.A(Zt,_.X);Zt.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}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Zt.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Zt.prototype,"data",void 0);_.Y([_.fE({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Zt);
_.T(Zt,"ytd-channel-sub-menu-renderer",function(){if(Bk0!==void 0)return Bk0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Bk0=g},{mode:1});var zWH;var nU0;var li=function(){var g=_.X.apply(this,arguments)||this;g.isCompact=!1;return g};
_.A(li,_.X);_.z3.Object.defineProperties(li.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var g,u;return((u=_.c((g=this.data)==null?void 0:g.endpoint,_.ao))==null?void 0:u.target)==="TARGET_NEW_WINDOW"}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],li.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],li.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],li.prototype,"isCompact",void 0);_.Y([_.C("isCompact"),_.K("design:type",Number),_.K("design:paramtypes",[])],li.prototype,"thumbnailWidth",null);
_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],li.prototype,"openNewWindow",null);_.Y([_.fE({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],li);
_.T(li,"ytd-media-lockup-renderer",function(){if(nU0!==void 0)return nU0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return nU0=g},{mode:1});var kUb;var Iv=function(){return _.X.apply(this,arguments)||this};
_.A(Iv,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Iv.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Iv.prototype,"data",void 0);_.Y([_.fE({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Iv);
_.T(Iv,"ytd-structured-description-channel-lockup-renderer",function(){if(kUb!==void 0)return kUb;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return kUb=g},{mode:1});var So8;var ii=function(){var g=_.X.apply(this,arguments)||this;g.isCompact=!1;g.collectionsStackColor=_.w("modernize_structured_description_playlist_lockups_v2");return g};
_.A(ii,_.X);ii.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:_.w("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.z3.Object.defineProperties(ii.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q,L,E;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(g=this.data)==null?void 0:(u=g.thumbnail)==null?void 0:u.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(q=this.data)==null?void 0:(Q=q.thumbnail)==null?void 0:Q.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(L=this.data)==null?void 0:(E=L.thumbnail)==null?
void 0:E.vibrantColorPalette:void 0}}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ii.prototype,"componentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ii.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ii.prototype,"showSidePanelThumbnailOverlay",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ii.prototype,"isCompact",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ii.prototype,"collectionsStackColor",void 0);_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ii.prototype,"twoLineTitle",null);_.Y([_.C("data","collectionsStackColor"),_.K("design:type",Object),_.K("design:paramtypes",[])],ii.prototype,"collectionStack",null);
_.Y([_.fE({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],ii);
_.T(ii,"ytd-structured-description-playlist-lockup-renderer",function(){if(So8!==void 0)return So8;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return So8=g},{mode:1});var oU$;var CP=function(){return _.X.apply(this,arguments)||this};
_.A(CP,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],CP.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],CP.prototype,"data",void 0);_.Y([_.fE({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],CP);
_.T(CP,"ytd-structured-description-video-lockup-renderer",function(){if(oU$!==void 0)return oU$;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return oU$=g},{mode:2});var bi=function(){return _.X.apply(this,arguments)||this};
_.A(bi,_.X);
bi.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}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],bi.prototype,"data",void 0);_.Y([_.fE({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],bi);
_.T(bi,"ytd-compact-infocard-renderer",function(){if(zWH!==void 0)return zWH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return zWH=g},{mode:1});var U1x;var dW=function(){return _.X.apply(this,arguments)||this};
_.A(dW,_.X);dW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z3.Object.defineProperties(dW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],dW.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],dW.prototype,"ytdReduxBehavior",void 0);_.Y([_.a({selector:_.J9}),_.K("design:type",Object)],dW.prototype,"isGridViewEnabled",void 0);
_.Y([_.C("isGridViewEnabled"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],dW.prototype,"watchFeedBigThumbs",null);_.Y([_.C("isGridViewEnabled","data"),_.a({reflectToAttribute:!0,value:"168"}),_.K("design:type",String),_.K("design:paramtypes",[])],dW.prototype,"thumbnailWidth",null);_.Y([_.C("isGridViewEnabled","data"),_.a({reflectToAttribute:!0,value:"94"}),_.K("design:type",String),_.K("design:paramtypes",[])],dW.prototype,"customThumbnailSize",null);
_.Y([_.a(),_.K("design:type",Object)],dW.prototype,"data",void 0);_.Y([_.fE({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],dW);
_.T(dW,"ytd-compact-playlist-renderer",function(){if(U1x!==void 0)return U1x;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return U1x=g},{mode:1});var gTR;var F2=function(){var g=_.X.apply(this,arguments)||this;g.roundedContainer=!0;g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return g};
_.A(F2,_.X);_.P=F2.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.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"}}}};
_.P.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.P.computeViewStyle=function(g){return g.style?g.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.P.onUpdateElementsPerRowAction=function(g){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&g===1};
_.P.requestElementsPerRow=function(){_.hJ(this.hostElement,"yt-request-elements-per-row")};
F2.prototype.dataChanged=F2.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],F2.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],F2.prototype,"actionHandlerBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],F2.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],F2.prototype,"hideThumbnail",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.K("design:type",String)],F2.prototype,"viewStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],F2.prototype,"roundedContainer",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],F2.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],F2);
_.T(F2,"ytd-compact-promoted-item-renderer",function(){if(gTR!==void 0)return gTR;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return gTR=g},{mode:1});var uDZ;var mD=function(){return _.X.apply(this,arguments)||this};
_.A(mD,_.X);mD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
mD.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
mD.prototype.onYtNavigate=function(g,u){var q=this;if(u.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",u)){var Q=this.get("watchEndpoint.videoId",u.endpoint),L=_.Og(this.hostElement,"yt-get-current-video-id-action")[0];_.w("kevlar_mix_handle_first_endpoint_different")&&Q&&L&&Q!==L||(g.stopPropagation(),_.mH().getPlayerPromise().then(function(E){if(E.getPlayerState()===0&&q.data.secondaryNavigationEndpoint)var y=q.data.secondaryNavigationEndpoint;else{y=
Object.assign({},u.endpoint);var v=_.c(y.commandMetadata,_.S_);v&&(E=Math.floor(E.getCurrentTime()),v.url=_.Sg(v.url,{t:E}),!_.w("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(v=_.c(y,_.l1)))&&(v.startTimeSeconds=E)}_.hJ(q.hostElement,"yt-navigate",{endpoint:y})}))}};
_.z3.Object.defineProperties(mD.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q,L,E;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(g=this.data)==null?void 0:(u=g.thumbnail)==null?void 0:u.sampledThumbnailColor,vibrantColorPalette:(q=this.data)==null?void 0:(Q=q.thumbnail)==null?void 0:Q.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(E=L.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:!0}}}});
mD.prototype.onYtNavigate=mD.prototype.onYtNavigate;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.KK.YtEndpointBehavior),_.K("design:type",Object)],mD.prototype,"ytEndpointBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],mD.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.I(_.c_),_.K("design:type",Object)],mD.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],mD.prototype,"ytdReduxBehavior",void 0);_.Y([_.a({selector:_.J9}),_.K("design:type",Object)],mD.prototype,"isGridViewEnabled",void 0);_.Y([_.C("isGridViewEnabled"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mD.prototype,"watchFeedBigThumbs",null);
_.Y([_.C("isGridViewEnabled"),_.a({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],mD.prototype,"thumbnailWidth",null);_.Y([_.a(),_.K("design:type",Object)],mD.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mD.prototype,"collectionStack",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],mD.prototype,"onYtNavigate",null);
_.Y([_.fE({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],mD);
_.T(mD,"ytd-compact-radio-renderer",function(){if(uDZ!==void 0)return uDZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return uDZ=g},{mode:1});var qh8;var av=function(){return _.X.apply(this,arguments)||this};
_.A(av,_.X);av.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
av.prototype.computeRendererStyle=function(g){return g.style?g.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.Y([_.a(),_.K("design:type",Object)],av.prototype,"data",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],av.prototype,"rendererBehavior",void 0);_.Y([_.a({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],av.prototype,"rendererStyle",void 0);_.Y([_.fE({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],av);
_.T(av,"ytd-compact-text-promo-renderer",function(){if(qh8!==void 0)return qh8;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return qh8=g},{mode:1});var QLb;var Vt=function(){var g=_.X.apply(this,arguments)||this;g.isShortsStyle=!1;return g};
_.A(Vt,_.X);_.P=Vt.prototype;_.P.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"}}}};
_.P.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.hJ(this.hostElement,"yt-disable-lockup-interaction"):_.hJ(this.hostElement,"yt-enable-lockup-interaction"))};
_.P.isMetaBlockEmpty=function(g){return!g||!g.longBylineText&&!g.shortBylineText&&!g.shortViewCountText&&!g.viewCountText};
_.P.computeHasOneLineTitle=function(g){return this.forceOneLineTitle||!(g==null||!g.buttons)};
_.P.computeDisableInteraction=function(){var g;return!((g=this.data)==null?0:g.navigationEndpoint)};
_.P.hasSingularTopStandaloneBadge=function(){var g;return!((g=this.data)==null||!g.topStandaloneBadge)};
_.z3.Object.defineProperties(Vt.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("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 g;return this.hasSingularTopStandaloneBadge()?[(g=this.data)==null?void 0:g.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var g;return this.shouldShowTopBadges?((g=this.data)==null?void 0:g.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Vt.prototype.disableInteractionChanged=Vt.prototype.disableInteractionChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],Vt.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],Vt.prototype,"ytdLockupBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],Vt.prototype,"ytdReduxBehavior",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.K("design:type",Boolean)],Vt.prototype,"metaBlockEmpty",void 0);_.Y([_.a({selector:_.J9}),_.K("design:type",Object)],Vt.prototype,"isGridViewEnabled",void 0);_.Y([_.C("isGridViewEnabled"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vt.prototype,"watchFeedBigThumbs",null);
_.Y([_.C("isGridViewEnabled"),_.a({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],Vt.prototype,"thumbnailWidth",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Vt.prototype,"isShortsStyle",void 0);_.Y([_.a(),_.K("design:type",Object)],Vt.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.K("design:type",Boolean)],Vt.prototype,"hasOneLineTitle",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],Vt.prototype,"hideThumbnail",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Vt.prototype,"forceOneLineTitle",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.K("design:type",Boolean)],Vt.prototype,"disableInteraction",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Vt.prototype,"musicMetadataVideoLockup",void 0);
_.Y([_.k_("disableInteraction"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vt.prototype,"disableInteractionChanged",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vt.prototype,"shouldShowTopBadges",null);_.Y([_.C("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],Vt.prototype,"topBadges",null);
_.Y([_.C("shouldShowTopBadges","data"),_.K("design:type",Array),_.K("design:paramtypes",[])],Vt.prototype,"inlineMetadataBadges",null);_.Y([_.C("shouldShowTopBadges"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vt.prototype,"shouldShowBadgesBelowMetadata",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vt.prototype,"compactTitleClass",null);_.Y([_.fE({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Vt);
_.T(Vt,"ytd-compact-video-renderer",function(){if(QLb!==void 0)return QLb;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return QLb=g},{mode:2});var LNR;_.Ny("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var X2=function(){return _.X.apply(this,arguments)||this};
_.A(X2,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],X2.prototype,"data",void 0);_.Y([_.fE({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],X2);
_.T(X2,"ytd-counterfactual-renderer",function(){if(LNR!==void 0)return LNR;var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return LNR=g},{mode:1});var ET$;var rW=function(){var g=_.X.apply(this,arguments)||this;g.hidden=!1;return g};
_.A(rW,_.X);rW.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.Bk().resolve(_.Gy).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
rW.prototype.computeHidden=function(g){return!!g};
_.z3.Object.defineProperties(rW.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}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],rW.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.K("design:type",Object)],rW.prototype,"hidden",void 0);_.Y([_.C("data.label"),_.K("design:type",String),_.K("design:paramtypes",[])],rW.prototype,"label",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rW.prototype,"value",null);
_.Y([_.fE({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],rW);
_.T(rW,"ytd-dropdown-item-renderer",function(){if(ET$!==void 0)return ET$;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ET$=g},{mode:1});var P9X;var N85;var WE=function(){return _.X.apply(this,arguments)||this};
_.A(WE,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],WE.prototype,"data",void 0);_.Y([_.a({computed:"getSimpleString(data.label)"}),_.K("design:type",String)],WE.prototype,"label",void 0);_.Y([_.fE({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],WE);
_.T(WE,"ytd-navigation-dropdown-item-renderer",function(){if(N85!==void 0)return N85;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return N85=g},{mode:1});var T_=function(){var g=_.X.apply(this,arguments)||this;g.disabled=!1;g.value="";g.noLabelFloat=!1;g.noUnderline=!1;g.usePrimaryColor=!1;g.hasBackground=!1;g.verticalAlign="top";g.autosize=!1;g.minAutosizeWidth=100;g.autosizeFont="14px Roboto";return g};
_.A(T_,_.X);_.P=T_.prototype;_.P.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"}}}};
_.P.open=function(){this.inputEl.open()};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.P.dataChanged=function(){this.reset()};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("value-changed",this.value))};
_.P.stopPropagation=function(g){g.stopPropagation()};
_.P.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var g=this.canvas.getContext("2d");g&&(g.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(g.measureText(this.inputEl.value).width)+24)+"px")}};
_.P.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var g=0,u=this.data.entries.length;g<u;g++){var q=this.data.entries[g],Q;for(Q in q)if(q.hasOwnProperty(Q)){var L=q[Q];if("isSelected"in L&&L.isSelected)return"stringValue"in L?L.stringValue||"":"int32Value"in L?L.int32Value||0:0}}return null};
_.P.updateValueFromBinding=function(g){this.value=g.detail.value};
_.z3.Object.defineProperties(T_.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 g=0,u=this.data.entries.length;g<u;g++){var q=this.data.entries[g],Q;for(Q in q)if(q.hasOwnProperty(Q)){var L=q[Q];if("isSelected"in L&&L.isSelected&&"label"in L)return this.ytRendererBehavior.getSimpleString(L.label)}}return null}}});
T_.prototype.autoSizeLabel=T_.prototype.autoSizeLabel;T_.prototype.stopPropagation=T_.prototype.stopPropagation;T_.prototype.valueChangedForBinding=T_.prototype.valueChangedForBinding;T_.prototype.dataChanged=T_.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],T_.prototype,"ytRendererStamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],T_.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],T_.prototype,"disabled",void 0);_.Y([_.a(),_.K("design:type",Object)],T_.prototype,"value",void 0);_.Y([_.a(),_.K("design:type",Object)],T_.prototype,"noLabelFloat",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],T_.prototype,"noUnderline",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],T_.prototype,"theme",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],T_.prototype,"usePrimaryColor",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],T_.prototype,"hasBackground",void 0);_.Y([_.a(),_.K("design:type",Object)],T_.prototype,"verticalAlign",void 0);_.Y([_.a(),_.K("design:type",Object)],T_.prototype,"autosize",void 0);_.Y([_.a(),_.K("design:type",Object)],T_.prototype,"minAutosizeWidth",void 0);_.Y([_.a(),_.K("design:type",Object)],T_.prototype,"autosizeFont",void 0);
_.Y([_.oE("#entries"),_.K("design:type",Object)],T_.prototype,"entries",void 0);_.Y([_.oE("#input"),_.K("design:type",Object)],T_.prototype,"inputEl",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T_.prototype,"dataChanged",null);_.Y([_.qm("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T_.prototype,"valueChangedForBinding",null);
_.Y([_.n6("iron-overlay-opened"),_.n6("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],T_.prototype,"stopPropagation",null);_.Y([_.n6("iron-select"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T_.prototype,"autoSizeLabel",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],T_.prototype,"label",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],T_);
_.T(T_,"ytd-dropdown-renderer",function(){if(P9X!==void 0)return P9X;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return P9X=g},{mode:1});var sL2;var hK=function(){var g=_.X.apply(this,arguments)||this;g.isConstrainedList=!1;return g};
_.A(hK,_.X);hK.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"}}}};
hK.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
hK.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
hK.prototype.computeViewAllHidden=function(g,u){return g||!u.viewAllEndpoint};
hK.prototype.fillRestIfNoShowMore=hK.prototype.fillRestIfNoShowMore;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.a_.YtLazyListBehavior),_.K("design:type",Object)],hK.prototype,"ytLazyListBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],hK.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],hK.prototype,"isConstrainedList",void 0);_.Y([_.qm("data","canShowMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hK.prototype,"fillRestIfNoShowMore",null);_.Y([_.fE({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],hK);
_.T(hK,"ytd-expanded-shelf-contents-renderer",function(){if(sL2!==void 0)return sL2;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return sL2=g},{mode:2});var yCW;var Yd=function(){return _.X.apply(this,arguments)||this};
_.A(Yd,_.X);Yd.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}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Yd.prototype,"data",void 0);_.Y([_.fE({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Yd);
_.T(Yd,"ytd-feed-channel-filter-header-renderer",function(){if(yCW!==void 0)return yCW;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return yCW=g},{mode:1});var vT5;var DgR;var pmW;var OS=function(){return _.X.apply(this,arguments)||this};
_.A(OS,_.X);_.P=OS.prototype;_.P.onClick=function(g){var u,q=(u=this.data)==null?void 0:u.sectionEndpoint;!_.ia(_.C6(g),this.hostElement,["A".toString()])&&q&&_.hJ(this.hostElement,"yt-navigate",{endpoint:q})};
_.P.computeHasSectionEndpoint=function(g){return(g==null?void 0:g.sectionEndpoint)!==void 0};
_.P.computeShowHeaderAsLink=function(g){return(g==null?void 0:g.header)!==void 0&&(g==null?void 0:g.sectionEndpoint)!==void 0};
_.P.computeShowSubheaderAsLink=function(g){return(g==null?void 0:g.subheader)!==void 0&&(g==null?void 0:g.sectionEndpoint)!==void 0&&(g==null?void 0:g.header)===void 0};
_.P.getHeaderAsLinkClass=function(g){var u=[],q;(g==null?0:(q=g.headerIcon)==null?0:q.iconType)&&u.push("header-link-active");return u.join(" ")};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],OS.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],OS.prototype,"data",void 0);
_.Y([_.a({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],OS.prototype,"hasSectionEndpoint",void 0);_.Y([_.a({computed:"computeShowHeaderAsLink(data)"}),_.K("design:type",Boolean)],OS.prototype,"showHeaderAsLink",void 0);_.Y([_.a({computed:"computeShowSubheaderAsLink(data)"}),_.K("design:type",Boolean)],OS.prototype,"showSubheaderAsLink",void 0);_.Y([_.fE({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],OS);
_.T(OS,"ytd-medical-panel-section-renderer",function(){if(pmW!==void 0)return pmW;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return pmW=g},{mode:1});var KP=function(){var g=_.X.apply(this,arguments)||this;g.isExpanded=!1;g.roundedContainer=!0;g.skipRoundingTop=!1;g.toggleExpandableSection=function(){g.isExpanded=!g.isExpanded};
return g};
_.A(KP,_.X);
KP.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]]"}}}}}};
KP.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
KP.prototype.dataChanged=KP.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],KP.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],KP.prototype,"isExpanded",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],KP.prototype,"roundedContainer",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],KP.prototype,"skipRoundingTop",void 0);_.Y([_.a(),_.K("design:type",Object)],KP.prototype,"toggleExpandableSection",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KP.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],KP);
_.T(KP,"ytd-medical-panel-content-renderer",function(){if(DgR!==void 0)return DgR;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return DgR=g},{mode:1});_.Ny("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var xd=function(){var g=_.X.apply(this,arguments)||this;g.roundedContainer=!0;g.extractOverlay=!1;g.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");g.hasTitle=!1;g.linkIcon="OPEN_IN_NEW";g.isDismissed=!1;return g};
_.A(xd,_.X);xd.prototype.onOverlayConditionsChange=function(){var g=_.Tr(this.hostElement).querySelector("ytd-info-panel-content-renderer");g&&(g.set("extractOverlay",this.extractOverlay),g.set("roundedContainer",this.roundedContainer))};
xd.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"}}}};
xd.prototype.computeHasTitle=function(g){return!(g==null||!g.title)};
xd.prototype.onClick=function(g){var u,q=(u=this.data)==null?void 0:u.headerEndpoint;!_.ia(_.C6(g),this.hostElement,["BUTTON".toString()])&&q&&this.ytComponentBehavior.resolveCommand(q)};
_.z3.Object.defineProperties(xd.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 g;return((g=this.data)==null?void 0:g.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:g.disableBottomDivider)||!((u=this.data)==null?0:u.title)}}});
xd.prototype.onOverlayConditionsChange=xd.prototype.onOverlayConditionsChange;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],xd.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],xd.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],xd.prototype,"ytdReduxBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],xd.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],xd.prototype,"roundedContainer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],xd.prototype,"extractOverlay",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],xd.prototype,"amsterdamEnabled",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.K("design:type",Object)],xd.prototype,"hasTitle",void 0);
_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.C("data.background"),_.K("design:type",Object),_.K("design:paramtypes",[])],xd.prototype,"background",null);_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.C("data.titleStyle"),_.K("design:type",Object),_.K("design:paramtypes",[])],xd.prototype,"titleStyle",null);
_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.C("data.titleStyle"),_.K("design:type",Object),_.K("design:paramtypes",[])],xd.prototype,"showLinkIcon",null);_.Y([_.a(),_.K("design:type",String)],xd.prototype,"linkIcon",void 0);_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],xd.prototype,"hideDivider",null);
_.Y([_.a({selectorArgs:["data.dismissStateEntityKey"],selector:function(g,u){g=_.BC(g.entities,"dismissState",u);return(g==null?void 0:g.isDismissed)||(g==null?void 0:g.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(g==null?void 0:g.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.K("design:type",Object)],xd.prototype,"isDismissed",void 0);_.Y([_.k_("roundedContainer","extractOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xd.prototype,"onOverlayConditionsChange",null);_.Y([_.fE({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],xd);
_.T(xd,"ytd-info-panel-container-renderer",function(){if(vT5!==void 0)return vT5;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return vT5=g},{mode:1});var JCW;_.Ny("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var BE=function(){return _.X.apply(this,arguments)||this};
_.A(BE,_.X);BE.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
BE.prototype.computeStyle=function(g){return g?g:""};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BE.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.K("design:type",String)],BE.prototype,"titleStyle",void 0);
_.Y([_.fE({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],BE);
_.Te()(BE,"ytd-item-section-header-renderer",function(){if(JCW===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);JCW=g}g=JCW;return g},{allowedProps:["data"],
mode:1});var jL$;var fpb,M6X=function(){return fpb!==void 0?fpb:fpb=document.createElement("template")};
document.head.appendChild(M6X().content);var t6R;_.z_=new _.Fv("VOTING_ANIMATION_CONTROLLER_TOKEN");var GO2=_.r(function(g){var u=g.data;var q=_.Hk("div"),Q=_.Hk("div");g=_.N(_.jR("VOTE_STATUS_NONE",void 0,"YPH5mf"));var L=g.next().value,E=g.next().value,y=_.kq(lNh,function(){var G;return(G=u())==null?void 0:G.entityKey}),v=_.w("web_enable_voting_animation")||_.w("enable_music_web_cairo_voting_animation");
_.I4(function(){var G;((G=u().initialState)==null?0:G.status)&&E(u().initialState.status)});
var J=function(){var G,R,H=(R=(G=u().initialState)==null?void 0:G.votes)!=null?R:0,l;G=(l=u().initialState)==null?void 0:l.status;return G==="VOTE_STATUS_UPVOTED"?H-1:G==="VOTE_STATUS_DOWNVOTED"?H+1:H},f=function(){return L()==="VOTE_STATUS_UPVOTED"?J()+1:L()==="VOTE_STATUS_DOWNVOTED"?J()-1:J()},t=function(G){var R=G?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
E(R);var H=f(),l=_.Bk().resolve(_.xv(_.z_)),d=y();d&&(G&&(d==null?0:d.upvoteDefaultButtonOnTap)?_.ey(d.upvoteDefaultButtonOnTap,{form:{element:q.value},disableClickTracking:!0}):(d==null?0:d.upvoteToggledButtonOnTap)&&_.ey(d.upvoteToggledButtonOnTap,{form:{element:q.value},disableClickTracking:!0}));var F;G=(F=d==null?void 0:d.enableOptimisticReordering)!=null?F:u().enableOptimisticReordering;v&&l&&u().itemId&&G&&e$Z(l,u().itemId,H,R)},e=function(G){var R=G?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
E(R);var H=f(),l=_.Bk().resolve(_.xv(_.z_)),d=y();d&&(G&&(d==null?0:d.downvoteDefaultButtonOnTap)?_.ey(d.downvoteDefaultButtonOnTap,{form:{element:Q.value},disableClickTracking:!0}):(d==null?0:d.downvoteToggledButtonOnTap)&&_.ey(d.downvoteToggledButtonOnTap,{form:{element:Q.value},disableClickTracking:!0}));var F;G=(F=d==null?void 0:d.enableOptimisticReordering)!=null?F:u().enableOptimisticReordering;v&&l&&u().itemId&&G&&e$Z(l,u().itemId,H,R)};
g={};g=_.Ty("ytVotingViewModelVoteCount",(g.ytVotingViewModelVoteCountDisabled=function(){return u().isDisabled},g));
return _.p("voting-view-model",{class:"ytVotingViewModelHost"},_.p("div",{el:q},_.p(_.Up,{data:function(){var G=_.c(u().upvoteButton,_.cF);return{toggleButtonViewModel:Object.assign({},G,{isToggled:L()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(G){return _.p(_.E6,{data:G.data,
onToggle:t})}})),_.p("div",{class:g},function(){var G,R,H;
return L()==="VOTE_STATUS_UPVOTED"?(G=u().initialState)==null?void 0:G.compactVotesUpvoted:L()==="VOTE_STATUS_DOWNVOTED"?(R=u().initialState)==null?void 0:R.compactVotesDownvoted:(H=u().initialState)==null?void 0:H.compactVotes}),_.p("div",{el:Q},_.p(_.Up,{data:function(){var G=_.c(u().downvoteButton,_.cF);
return{toggleButtonViewModel:Object.assign({},G,{isToggled:L()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(G){return _.p(_.E6,{data:G.data,
onToggle:e})}})))},"ld");_.dL(_.r(function(g){var u=g.data;return _.p("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.p("div",{class:_.Ty("ytEngagementBarViewModelEngagementBarWrapper",g.className)},_.p(_.Up,{data:function(){return u().actions}},{votingViewModel:GO2})))},"md"),"engagement-bar-view-model",{props:{data:_.H2,
className:_.H2}});var nP=function(){var g=_.X.apply(this,arguments)||this;g.playlistVotingAnimationEnabled=_.w("web_enable_voting_animation");g.downloadProgress=0;g.transferState="TRANSFER_STATE_UNKNOWN";g.downloadState="DOWNLOAD_STATE_UNKNOWN";g.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";g.offlineVideoPolicyExpirationTimestamp=0;return g};
_.A(nP,_.X);_.P=nP.prototype;_.P.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"}}}};
_.P.canReorderChanged=function(){this.persistentDragHandle=_.w("kevlar_playlist_drag_handles")&&this.canReorder};
_.P.onDrag=function(){if(this.thumbnail){var g=_.Tr(this.thumbnail).querySelector("yt-image");g&&(g.shouldRenderLazy=!1)}};
_.P.onMenuOverlayChanged=function(g,u){this.menuOpened=u};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.P.onContentsTap=function(g){var u,q=(u=this.data)==null?void 0:u.serviceEndpoints;if(q&&q.length===1&&_.c(q[0],bxJ)&&!_.ia(_.C6(g),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(q[0]);else{var Q;(u=(Q=this.data)==null?void 0:Q.navigationEndpoint)&&_.w("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?$gR(_.Bk().resolve(_.RO),u):(_.Uw().playlistSuggestionsShelfActivation=
!0,_.R$R(_.Bk().resolve(_.RO),u)):u&&!_.ia(_.C6(g),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.w("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.hJ(this.hostElement,"yt-navigate",{endpoint:u}):this.ytComponentBehavior.resolveCommand(u))}};
_.P.computeStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(g){return g==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.P.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=nsM(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))}};
_.P.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.dataChanged=function(){if(this.data){var g,u,q,Q=((g=this.downloadRenderData)==null?void 0:g.badges)&&((u=this.downloadRenderData)==null?void 0:u.badges)!==((q=this.data)==null?void 0:q.badges),L,E,y;g=((L=this.downloadRenderData)==null?void 0:L.thumbnailOverlays)&&((E=this.downloadRenderData)==null?void 0:E.thumbnailOverlays)!==((y=this.data)==null?void 0:y.thumbnailOverlays);(!this.downloadRenderData||Q||g)&&this.downloadStateChanged()}};
_.P.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var g,u,q=(g=this.data.menu)==null?void 0:(u=g.menuRenderer)==null?void 0:u.items;if(q)for(g=_.N(q),u=g.next();!u.done;u=g.next())if(u=u.value,q=void 0,_.c((q=u.menuServiceItemRenderer)==null?void 0:q.serviceEndpoint,_.fq)){var Q=q=void 0,L=void 0;u=(q=u)==null?void 0:(Q=q.menuServiceItemRenderer)==null?void 0:(L=Q.serviceEndpoint)==null?void 0:L.playlistEditEndpoint;L=Q=void 0;if(q=(Q=u)==null?void 0:(L=Q.actions)==null?void 0:
L[0])Q=void 0,q.setVideoId=(Q=this.data)==null?void 0:Q.setVideoId;L=Q=q=void 0;if(u=(q=u)==null?void 0:(Q=q.clientActions)==null?void 0:(L=Q[0])==null?void 0:L.playlistRemoveVideosAction)q=void 0,u.setVideoIds=[(q=this.data)==null?void 0:q.setVideoId]}}};
_.z3.Object.defineProperties(nP.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
nP.prototype.setVideoIdChanged=nP.prototype.setVideoIdChanged;nP.prototype.dataChanged=nP.prototype.dataChanged;nP.prototype.downloadStateChanged=nP.prototype.downloadStateChanged;nP.prototype.onMenuOverlayChanged=nP.prototype.onMenuOverlayChanged;nP.prototype.canReorderChanged=nP.prototype.canReorderChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],nP.prototype,"ytdReduxBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],nP.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],nP.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],nP.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],nP.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],nP.prototype,"canReorder",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],nP.prototype,"menuOpened",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],nP.prototype,"handleIsHovered",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],nP.prototype,"persistentDragHandle",void 0);_.Y([_.a(),_.K("design:type",Object)],nP.prototype,"downloadRenderData",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],nP.prototype,"styleType",void 0);_.Y([_.a({computed:"computeThumbnailWidth(data.style)"}),_.K("design:type",Number)],nP.prototype,"thumbnailWidth",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],nP.prototype,"isDownloads",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],nP.prototype,"playlistVotingAnimationEnabled",void 0);
_.Y([_.a({selector:GN,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nP.prototype,"downloadProgress",void 0);_.Y([_.a(),_.K("design:type",Number)],nP.prototype,"relativeDateReference",void 0);_.Y([_.a({selector:_.tD,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nP.prototype,"transferState",void 0);_.Y([_.a({selector:hOZ,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nP.prototype,"downloadState",void 0);
_.Y([_.a({selector:Z1q,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nP.prototype,"offlinePolicyAction",void 0);_.Y([_.a({selector:lhq,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nP.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.Y([_.a({selector:i1T,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nP.prototype,"entityInfo",void 0);_.Y([_.a({selector:_.jb}),_.K("design:type",Boolean)],nP.prototype,"miniplayerIsActive",void 0);
_.Y([_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],nP.prototype,"playlistVideoId",null);_.Y([_.oE("#thumbnail"),_.K("design:type",Object)],nP.prototype,"thumbnail",void 0);_.Y([_.qm("canReorder"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nP.prototype,"canReorderChanged",null);
_.Y([_.n6("yt-menu-overlay-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Boolean]),_.K("design:returntype")],nP.prototype,"onMenuOverlayChanged",null);_.Y([_.qm("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nP.prototype,"downloadStateChanged",null);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nP.prototype,"dataChanged",null);_.Y([_.qm("data.setVideoId"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nP.prototype,"setVideoIdChanged",null);_.Y([_.fE({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],nP);
_.T(nP,"ytd-playlist-video-renderer",function(){if(t6R!==void 0)return t6R;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);g.content.insertBefore(M6X().content.cloneNode(!0),g.content.firstChild);return t6R=g},{mode:1});var wma;var kd=function(){return _.X.apply(this,arguments)||this};
_.A(kd,_.X);_.Y([_.a(),_.K("design:type",Object)],kd.prototype,"data",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kd.prototype,"rendererBehavior",void 0);_.Y([_.fE({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],kd);
_.T(kd,"ytd-premium-browse-footer-renderer",function(){if(wma!==void 0)return wma;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return wma=g},{mode:1});var cC8;var Sc=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return g};
_.A(Sc,_.X);_.P=Sc.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.handleDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.P.computeHeaderLogoThumbnail=function(g,u){if(g)return u?g.darkLogo:g.lightLogo};
_.P.computeHeaderLogoHeight=function(g,u){var q,Q,L;return(g=(q=this.computeHeaderLogoThumbnail(g,u))==null?void 0:(Q=q.thumbnails)==null?void 0:(L=Q[0])==null?void 0:L.height)&&g%31===0?"31":"24"};
_.P.computeHeaderLogoMarginBottom=function(g,u){return this.computeHeaderLogoHeight(g,u)==="24"?"0":"-7"};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Sc.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Sc.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Sc.prototype,"isDarkTheme",void 0);_.Y([_.a({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.K("design:type",Object)],Sc.prototype,"themeLogo",void 0);
_.Y([_.a({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.K("design:type",String)],Sc.prototype,"logoHeight",void 0);_.Y([_.a({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.K("design:type",String)],Sc.prototype,"logoMarginBottom",void 0);_.Y([_.fE({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Sc);
_.T(Sc,"ytd-primetime-promo-header-renderer",function(){if(cC8!==void 0)return cC8;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return cC8=g},{mode:1});var HCi;_.ov=_.r(function(g){var u=g.className;var q=g.data;var Q=g.isOverlay;var L=g.maxLinesOverride;var E=g.useMediumText;var y=function(){return q().alwaysShowTruncationText},v=function(){return q().truncationText},J=function(){return E!==void 0&&E()?"medium":"small"},f=function(){return Q!==void 0&&Q()?"overlay":"default"},t=function(){var H,l;
return(l=(H=_.c(q().rendererContext,_.L3))==null?void 0:H.label)!=null?l:""};
g=_.N(_.jR(!1,void 0,"llBUm"));var e=g.next().value,G=g.next().value;g=_.YH(function(){q().expandOnTap&&G(!e());return!1});
var R={};return _.p("yt-description-preview-view-model",{el:_.lF(_.J7(function(){return q().rendererContext})),
class:_.Ty("ytDescriptionPreviewViewModelHost",u,(R.ytDescriptionPreviewViewModelClickable=function(){var H;return!((H=_.c(q().rendererContext,_.jJ))==null||!H.onTap)},R.ytDescriptionPreviewViewModelIsOverlay=Q,R)),
"on:click":g},_.p(_.M,{cond:function(){return q().description},
then:function(H){return _.p(_.M,{cond:e,then:function(){var l={};return _.p("div",{class:_.Ty("ytDescriptionPreviewViewModelDescription",(l.ytDescriptionPreviewViewModelDescriptionMediumText=E,l))},_.p(_.c2,{text:H}))},
else:function(){return _.p(ljW,{text:H,alwaysShowTruncationText:y,truncationText:v,maxLines:function(){var l;return(l=L==null?void 0:L())!=null?l:q().maxLines},
textStyle:f,accessibilityLabel:t,textSize:J})}})}}))},"nd");
_.ov.idomCompat=!0;var ZC0=_.r(function(g){var u=_.YH(function(L){var E;(E=g.onClick)==null||E.call(g,L)}),q={},Q={};
return _.p("yt-shelf-header-layout",{class:_.Ty("yt-shelf-header-layout",(q["yt-shelf-header-layout--disable-horizontal-padding"]=g.disableHorizontalPadding,q["yt-shelf-header-layout--disable-vertical-padding"]=g.disableVerticalPadding,q["yt-shelf-header-layout--responsive"]=g.useResponsiveLayout,q["yt-shelf-header-layout--narrow"]=function(){var L,E;return((L=g.useResponsiveLayout)==null?void 0:L.call(g))&&((E=g.forceSmallLayout)==null?void 0:E.call(g))},q["yt-shelf-header-layout--is-overlay"]=g.isOverlay,
q["yt-shelf-header-layout--tappable"]=g.isInteractive,q["yt-shelf-header-layout--optional-medium-layout-padding"]=g.useUpdatedPadding,q)),
"on:click":u,tabindex:function(){var L;return((L=g.isInteractive)==null?0:L.call(g))?0:void 0}},_.p("div",{class:"yt-shelf-header-layout__header-row"},_.p(_.M,{cond:g.leadingIcon,
then:function(L){return _.p("div",{class:"yt-shelf-header-layout__leading-icon"},_.p(_.B1,{icon:L}))},
else:function(){return _.p(_.M,{cond:g.hasLeadingImage,then:function(){var L,E={};return _.p("div",{class:_.Ty("yt-shelf-header-layout__leading-image",(E["yt-shelf-header-layout__leading-image--circular-image"]=g.circularImage,E))},(L=g.leadingImage)==null?void 0:L.call(g))}})}}),_.p("div",{class:"yt-shelf-header-layout__label-container"},_.p(_.M,{cond:g.hasSuperlabel,
then:function(){var L;return _.p("div",{class:"yt-shelf-header-layout__superlabel"},(L=g.superlabel)==null?void 0:L.call(g))}}),_.p("div",{class:"yt-shelf-header-layout__title-row"},_.p(ACX,{text:g.title,
className:_.Ty("yt-shelf-header-layout__title",(Q["yt-shelf-header-layout__title--small-title"]=g.forceSmallLayout,Q)),tagLevel:g.tagLevel}),_.p(_.M,{cond:g.hasDetail,then:function(){var L;return _.p("div",{class:"yt-shelf-header-layout__detail"},(L=g.detail)==null?void 0:L.call(g))}})),_.p(_.M,{cond:g.hasSublabel,
then:function(){var L;return _.p("div",{class:"yt-shelf-header-layout__sublabel"},(L=g.sublabel)==null?void 0:L.call(g))}})),_.p(_.M,{cond:g.hasTrailingActions,
then:function(){var L;return _.p("div",{class:"yt-shelf-header-layout__trailing-actions"},(L=g.trailingActions)==null?void 0:L.call(g))}})),_.p(_.M,{cond:g.hasBottomAccessory,
then:function(){var L;return _.p("div",{class:"yt-shelf-header-layout__bottom-accessory"},(L=g.bottomAccessory)==null?void 0:L.call(g))}}))},"od");
ZC0.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var ACX=_.r(function(g){var u=g.text;var q=g.className;var Q=g.tagLevel;return _.p(_.wi,null,_.p(_.Gv,{when:function(){return(Q==null?void 0:Q())===0}},function(){return _.p("h2",{class:q},u())}),_.p(_.Gv,{when:function(){return(Q==null?void 0:Q())===1}},function(){return _.p("h3",{class:q},u())}),_.p(_.Gv,{when:function(){return(Q==null?void 0:Q())===2}},function(){return _.p("h4",{class:q},u())}),_.p(_.$v,null,function(){return _.p("h2",{class:q},u())}))},"pd");var iCa,lpi,IpR;_.US=_.r(function(g){var u=g.className;var q=g.data;var Q=g.disableHorizontalPadding;var L=g.disableVerticalPadding;var E=g.forceSmallLayout;var y=g.useResponsiveLayout;var v=g.isOverlay;g=g.useUpdatedPadding;return _.p("yt-section-header-view-model",{class:_.Ty("ytSectionHeaderViewModelHost",u),style:_.xH({"background-color":function(){return SJ(q().backgroundColor)?_.jh(SJ(q().backgroundColor)):void 0}})},_.p(ZC0,{hasDetail:!1,
title:function(){return _.p(_.c2,{text:function(){return q().headline}})},
hasTitle:!0,sublabel:function(){return _.p(lpi,{data:q})},
hasSublabel:function(){return!!q().sublabel||!!q().bottomBadge},
superlabel:function(){return _.p(IpR,{data:q})},
hasSuperlabel:function(){return!!q().superlabel||!!q().topBadge},
leadingImage:function(){return _.p(iCa,{leadingAccessory:function(){return q().leadingAccessory}})},
hasLeadingImage:function(){return!!q().leadingAccessory},
trailingActions:function(){return _.p(_.Up,{data:function(){return q().trailingActions}},{flexibleActionsViewModel:_.Mp})},
hasTrailingActions:function(){return!!q().trailingActions},
disableHorizontalPadding:function(){return(Q==null?void 0:Q())||q().disableHorizontalPadding},
disableVerticalPadding:L,forceSmallLayout:E,useResponsiveLayout:y,isOverlay:v,isInteractive:function(){return!!_.D7(q().rendererContext)},
onClick:function(J){if(_.pn(q().rendererContext)){var f=_.D7(q().rendererContext);f&&_.fr(f,{form:{element:J.target,event:J}})}},
bottomAccessory:function(){return _.p(_.Up,{data:function(){return q().bottomAccessory}},{descriptionPreviewViewModel:function(J){return _.p(_.ov,{data:J.data,
useMediumText:!0})},
commonMarkViewModel:function(J){J=J.data;var f;return _.p(_.U9,null,(f=_.Bk().resolve(_.xv(Ox2)))==null?void 0:f({data:J}))}})},
hasBottomAccessory:function(){return!!q().bottomAccessory},
useUpdatedPadding:g}))},"qd");
iCa=_.r(function(g){var u=g.leadingAccessory;return _.p(_.U9,null,_.p(_.M,{cond:function(){var q;return(q=u().image)!=null?q:_.Rs(u().themedImage)},
then:function(q){return _.p(_.IT,{data:q,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.p(_.M,{cond:function(){return _.c(u().avatar,_.fn)},
then:function(q){return _.p(_.jv,{data:q})}}))},"rd");
lpi=_.r(function(g){var u=g.data;return _.p(_.U9,null,_.p(_.M,{cond:function(){return _.c(u().bottomBadge,b12)},
then:function(q){var Q={};return _.p(_.bY,{data:q,class:_.Ty((Q.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!q()&&!!u().sublabel},Q))})}}),_.p(_.M,{cond:function(){return u().sublabel},
then:function(q){return _.p(_.c2,{text:q})}}))},"sd");
IpR=_.r(function(g){var u=g.data;return _.p(_.U9,null,_.p(_.M,{cond:function(){return _.c(u().topBadge,b12)},
then:function(q){var Q={};return _.p(_.bY,{data:q,class:_.Ty((Q.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!q()&&!!u().superlabel},Q))})}}),_.p(_.M,{cond:function(){return u().superlabel},
then:function(q){return _.p(_.c2,{text:q})}}))},"td");_.dL(_.US,"yt-section-header-view-model",{props:{data:_.H2,className:_.H2,disableHorizontalPadding:_.H2,disableVerticalPadding:_.H2,forceSmallLayout:_.H2,useResponsiveLayout:_.H2,isOverlay:_.H2,useUpdatedPadding:_.H2}});_.Ny("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var g4=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return g};
_.A(g4,_.X);_.P=g4.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.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"}}}};
_.P.onDataChange=function(){var g=this;_.xt(this,function(){g.updateItemVisibility()})};
_.P.onUpdateElementsPerRowAction=function(g){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g,this.updateItemVisibility())};
_.P.updateItemVisibility=function(){var g=this;this.data&&this.data.panels&&_.Tr(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(u,q){u.hidden=q>g.elementsPerRow-1})};
_.P.requestElementsPerRow=function(){_.hJ(this.hostElement,"yt-request-elements-per-row")};
g4.prototype.onDataChange=g4.prototype.onDataChange;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],g4.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],g4.prototype,"actionHandlerBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],g4.prototype,"data",void 0);_.Y([_.a({value:3}),_.K("design:type",Number)],g4.prototype,"elementsPerRow",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g4.prototype,"onDataChange",null);_.Y([_.fE({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],g4);
_.T(g4,"ytd-primetime-promo-renderer",function(){if(HCi!==void 0)return HCi;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return HCi=g},{mode:1});var C9Z;var uC=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return g};
_.A(uC,_.X);uC.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
uC.prototype.handleButtonRefreshAction=function(g){if(g=_.c(g,Kpb))this.set("data.button",g.membershipButton),this.notifyPath("data.button")};
_.z3.Object.defineProperties(uC.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:(u=g.avatars)==null?void 0:u.slice(0,8))||[]}}});
_.Y([_.a(),_.K("design:type",Object)],uC.prototype,"data",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],uC.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],uC.prototype,"rendererBehavior",void 0);_.Y([_.C("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],uC.prototype,"avatars",null);
_.Y([_.fE({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],uC);
_.T(uC,"ytd-recognition-shelf-renderer",function(){if(C9Z!==void 0)return C9Z;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return C9Z=g},{mode:1});var bCx;var dg0;var qN=function(){var g=_.X.apply(this,arguments)||this;g.modernButtons=_.w("web_modern_buttons");return g};
_.A(qN,_.X);_.P=qN.prototype;
_.P.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]]"}}}}}};
_.P.dataChanged=function(){this.collapsed=!0};
_.P.computeVisibleItems=function(g,u){return g!==void 0&&g.items?u?g.items.slice(0,this.data.collapsedItemCount):g.items:[]};
_.P.computeHideShowMore=function(g,u,q){return g>=u||!q};
_.P.computeHideShowAll=function(g,u,q){return!(g&&u)||q};
_.P.onMoreClick=function(){this.collapsed=!1};
_.z3.Object.defineProperties(qN.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.w("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.o4("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.w("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
qN.prototype.dataChanged=qN.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qN.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qN.prototype,"isSearch",void 0);
_.Y([_.a({computed:"computeVisibleItems(data,collapsed)"}),_.K("design:type",Array)],qN.prototype,"visibleItems",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],qN.prototype,"collapsed",void 0);_.Y([_.a({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.K("design:type",Boolean)],qN.prototype,"hideShowMore",void 0);
_.Y([_.a({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.K("design:type",Boolean)],qN.prototype,"hideShowAll",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qN.prototype,"modernButtons",void 0);_.Y([_.C("isSearch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],qN.prototype,"typographyBump",null);
_.Y([_.C("isSearch"),_.K("design:type",Object),_.K("design:paramtypes",[])],qN.prototype,"lockupExperiments",null);_.Y([_.C("isSearch"),_.K("design:type",String),_.K("design:paramtypes",[])],qN.prototype,"thumbnailWidth",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qN.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],qN);
_.T(qN,"ytd-vertical-list-renderer",function(){if(dg0!==void 0)return dg0;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return dg0=g},{mode:1});var FNZ=_.CT(["#"]);_.Ny("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var QK=function(){var g=_.X.apply(this,arguments)||this;g.isConstrainedList=!1;return g};
_.A(QK,_.X);_.P=QK.prototype;
_.P.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"}}}};
_.P.computeThumbnailStyle=function(g){return g||""};
_.P.computePlaceAnnotationUnderTitle=function(){var g;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((g=this.data)==null?void 0:g.thumbnailStyle)||"")};
_.P.computeHrefWithDefault=function(g){return this.ytComponentBehavior.computeHref_(g)||_.Hah(FNZ)};
_.P.computeIsPromoShelf=function(g){var u;return(g=g==null?void 0:(u=g[0])==null?void 0:u.metadataBadgeRenderer)?g.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.P.computePlaceBadgeBesideTitle=function(g){var u;return(g==null?0:(u=g[0])==null?0:u.metadataBadgeRenderer)?!this.computeIsPromoShelf(g):!1};
_.P.computeMenuIcon=function(g){return this.computeIsPromoShelf(g)?"yt-icons:more_vert":"yt-icons:more"};
_.P.onDataChange=function(){var g,u;((g=this.data)==null?0:(u=g.content)==null?0:u.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.P.onLockupRequested=function(g){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&g.detail&&g.detail.videoIds){for(var u=this.data.content.gridRenderer.items,q=new Set,Q=_.N(g.detail.videoIds),L=Q.next();!L.done;L=Q.next())q.add(L.value);g.detail.returnValue=u.filter(function(E){return E.gridVideoRenderer&&E.gridVideoRenderer.videoId&&q.has(E.gridVideoRenderer.videoId)}).map(function(E){return E.gridVideoRenderer})}};
_.P.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
QK.prototype.onLockupRequested=QK.prototype.onLockupRequested;QK.prototype.onDataChange=QK.prototype.onDataChange;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],QK.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],QK.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.LJ),_.K("design:type",Object)],QK.prototype,"ironResizableBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],QK.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],QK.prototype,"isSearch",void 0);_.Y([_.a(),_.K("design:type",Object)],QK.prototype,"isConstrainedList",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("kevlar_fluid_dismiss")}}),
_.K("design:type",Boolean)],QK.prototype,"enableFluidDismiss",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.K("design:type",String)],QK.prototype,"thumbnailStyle",void 0);_.Y([_.a({computed:"computeMenuIcon(data.badges)"}),_.K("design:type",String)],QK.prototype,"menuIcon",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.K("design:type",Boolean)],QK.prototype,"featuredPromo",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],QK.prototype,"onDataChange",null);_.Y([_.n6("yt-lockup-requested"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],QK.prototype,"onLockupRequested",null);_.Y([_.fE({is:"ytd-shelf-renderer",disableElementRegistration:!0})],QK);
_.T(QK,"ytd-shelf-renderer",function(){if(bCx!==void 0)return bCx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return bCx=g},{mode:1});var mgW;var LX=function(){return _.X.apply(this,arguments)||this};
_.A(LX,_.X);LX.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.z3.Object.defineProperties(LX.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],LX.prototype,"data",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],LX.prototype,"isPlaylist",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],LX.prototype,"isClipList",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],LX.prototype,"isPlaylistPageWithFilters",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],LX.prototype,"hasTitle",null);_.Y([_.a(),_.C("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.K("design:type",Object),_.K("design:paramtypes",[])],LX.prototype,"isRightAligned",null);
_.Y([_.fE({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],LX);
_.T(LX,"ytd-sort-filter-header-renderer",function(){if(mgW!==void 0)return mgW;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return mgW=g},{mode:1});var apZ;var EW=function(){var g=_.X.apply(this,arguments)||this;g.enableRightArrowHidden=_.w("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return g};
_.A(EW,_.X);EW.prototype.attached=function(){var g=this;this.enableRightArrowHidden&&(this.JSC$16871_throttledOnResize=new _.Kr(function(){var u;(u=g.ytdHorizontalListBehavior)==null||u.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var u;
(u=g.JSC$16871_throttledOnResize)==null||u.fire()}),this.resizeObserver.observe(this.hostElement))};
EW.prototype.detached=function(){if(this.enableRightArrowHidden){var g;(g=this.resizeObserver)==null||g.disconnect();var u;(u=this.JSC$16871_throttledOnResize)==null||u.dispose()}};
EW.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]]"}}}}}};
EW.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.z3.Object.defineProperties(EW.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.w("enable_creator_details_shelf_m2")){var g=[],u;((u=this.data)==null?0:u.creatorVideosButton)&&g.push(this.data.creatorVideosButton);var q;((q=this.data)==null?0:q.creatorAboutButton)&&g.push(this.data.creatorAboutButton);u=_.N(this.data.creatorCustomUrlButtons||[]);for(q=u.next();!q.done;q=u.next())g.push(q.value);return g}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.w("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],EW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.VR.YtdHorizontalListBehavior),_.K("design:type",Object)],EW.prototype,"ytdHorizontalListBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],EW.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],EW.prototype,"engagementPanel",void 0);
_.Y([_.a(),_.K("design:type",Object)],EW.prototype,"enableRightArrowHidden",void 0);_.Y([_.C("enableRightArrowHidden","atEnd"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],EW.prototype,"hideRightArrow",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],EW.prototype,"creatorCustomUrlButtons",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data","creatorCustomUrlButtons"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],EW.prototype,"showCreatorCustomUrlButtons",null);_.Y([_.C("showCreatorCustomUrlButtons"),_.K("design:type",Number),_.K("design:paramtypes",[])],EW.prototype,"channelAvatarSize",null);_.Y([_.fE({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],EW);
_.T(EW,"ytd-video-description-infocards-section-renderer",function(){if(apZ!==void 0)return apZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return apZ=g},{mode:2});var V6a;var PQ=function(){return _.X.apply(this,arguments)||this};
_.A(PQ,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],PQ.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.infoIcon)"}),_.K("design:type",Object)],PQ.prototype,"infoIcon",void 0);_.Y([_.fE({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],PQ);
_.T(PQ,"ytd-eom-settings-disclaimer-renderer",function(){if(V6a!==void 0)return V6a;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return V6a=g},{mode:1});var Xmo;var NN=function(){return _.X.apply(this,arguments)||this};
_.A(NN,_.X);_.z3.Object.defineProperties(NN.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.suppressPaddingDisclaimer)}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],NN.prototype,"componentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],NN.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],NN.prototype,"suppressPaddingDisclaimer",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],NN);
_.T(NN,"ytd-product-list-header-renderer",function(){if(Xmo!==void 0)return Xmo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Xmo=g},{mode:1});var rC8;var sW=function(){return _.X.apply(this,arguments)||this};
_.A(sW,_.X);sW.prototype.computeThumbnailStyle=function(g){if(g&&(g=_.JR(g)))return"background-color:"+g+";"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sW.prototype,"rendererBehaviors",void 0);_.Y([_.a(),_.K("design:type",Object)],sW.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],sW);
_.T(sW,"ytd-hashtag-tile-renderer",function(){if(rC8!==void 0)return rC8;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return rC8=g},{mode:1});var WNX;var yK=function(){return _.X.apply(this,arguments)||this};
_.A(yK,_.X);yK.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}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yK.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],yK);
_.T(yK,"ytd-sponsorships-alert-renderer",function(){if(WNX!==void 0)return WNX;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return WNX=g},{mode:1});var T8W;var vQ=function(){return _.X.apply(this,arguments)||this};
_.A(vQ,_.X);vQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.z3.Object.defineProperties(vQ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.Y([_.I(_.M5),_.K("design:type",Object)],vQ.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],vQ.prototype,"ytdLockupBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.Y([_.a({selector:_.J9}),_.K("design:type",Object)],vQ.prototype,"isGridViewEnabled",void 0);
_.Y([_.C("isGridViewEnabled"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vQ.prototype,"watchFeedBigThumbs",null);_.Y([_.C("isGridViewEnabled"),_.a({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],vQ.prototype,"thumbnailWidth",null);_.Y([_.a(),_.K("design:type",Object)],vQ.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],vQ);
_.T(vQ,"ytd-compact-movie-renderer",function(){if(T8W!==void 0)return T8W;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return T8W=g},{mode:1});var h$8;var Yhx;var OCn=_.FR("HTML_DIR")==="rtl",Dd=function(){var g=_.X.apply(this,arguments)||this;g.engagementPanel=!1;g.maxLines=2;g.expandButtonOffset=0;g.showExpandButton=!1;g.isTruncated=!1;g.isExpanded=!1;g.currentSnippetType=2;g.alwaysShowExpandButton=!1;g.JSC$16888_lastWidth=NaN;g.observer=null;g.left=0;g.right=0;g.mid=0;g.longestSnippetLength=0;g.isFinalSnippet=!1;g.isFirstMutation=!1;g.isResetMutation=!1;g.OVERFLOW_THRESHOLD=5;return g};
_.A(Dd,_.X);_.P=Dd.prototype;_.P.onClick=function(g){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.ia(_.C6(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var u;if((u=window.getSelection())==null||!u.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.P.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.P.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.P.updateTextOnSnippetTypeChange=function(){_.w("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.P.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.P.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Io(new _.Ji("AttributedSnippet is empty when the description is not empty",this.text))};
_.P.mutationCallback=function(){if(this.observer!=null){var g=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var u=Math.floor(g*this.maxLines/8);this.setSnippetText(this.text,u);u!==0||this.attributedTextIsEmpty()||_.Io(new _.Ji("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;g=g*this.maxLines/8;this.left=0;var q;this.right=Math.min(g*2,(q=(u=this.simpleText)==null?void 0:u.length)!=null?q: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)}}};
_.P.mutationObserve=function(g){var u=this;this.observer||(this.observer=new MutationObserver(function(){u.mutationCallback()}));
this.observer.observe(g,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.P.attached=function(){var g=this;_.xt(this,function(){g.resize()})};
_.P.isExpandedChanged=function(){_.hJ(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.P.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)};
_.P.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var g="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((OCn?"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",g);this.snippetContainer.style.setProperty("mask-image",
g)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(OCn?"right":"left",this.expandButtonOffset+"px")};
_.P.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.P.setSnippetText=function(g,u){g||(g={});if(_.H1(g)){var q=c1(g,u);q.attachmentRuns||q.commandRuns||q.decorationRuns||q.styleRuns||q.alignment||q.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:c1(g,u),headerRuns:sJf(u,this.headerRuns)},this.currentSnippetType=0):_.Io(new _.Ji("Tried to set snippet text when HTML element was null",g)):(this.plainSnippetText.textContent=RT(g.content||"",u),this.currentSnippetType=2)}else{a:{q=INJ(g,u);if(q.runs){q=_.N(q.runs);for(var Q=
q.next();!Q.done;Q=q.next())if(Q=Q.value,Q.bold||Q.deemphasize||Q.italics||Q.strikethrough||Q.textColor||Q.navigationEndpoint||_.c(Q,Da)){q=!0;break a}}q=!1}q?this.formattedSnippetText?(this.formattedSnippetText.text=INJ(g,u),this.currentSnippetType=1):_.Io(new _.Ji("Tried to set snippet text when HTML element was null",g)):(this.plainSnippetText.textContent=RT(_.iR(g),u),this.currentSnippetType=2)}};
_.P.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.P.attributedTextIsEmpty=function(){var g=this.text;if(!_.H1(g))return!0;var u;return((u=g.content)==null?void 0:u.length)===0?!0:!1};
_.P.resize=function(g){if(this.snippetText){if(g===void 0?0:g)this.JSC$16888_lastWidth=NaN;var u=this.hostElement.offsetWidth;if(u!==this.JSC$16888_lastWidth&&!this.isExpanded)if(this.JSC$16888_lastWidth=u,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;g=0;var q,Q;u=Math.min(u*this.maxLines/8*2,(Q=(q=this.simpleText)==null?void 0:q.length)!=null?Q:0)-1;for(q=0;g<=u;)Q=Math.floor(g+(u-g)/2),this.setSnippetText(this.text,Q),this.isOverflowing()?u=Q-1:(g=Q+1,q=Q);this.setSnippetText(this.text,q);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.P.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.P.onExpandClick=function(){var g=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.w("inline_expander_reset_focus_killswitch")||_.xt(this,function(){var u;((u=_.Bk().resolve(_.xv(_.m5)))==null?0:u.isKeyBoardInUse())&&_.h6(g.hostElement)});
_.hJ(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.P.onCollapseClick=function(){this.collapse();_.hJ(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.P.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.P.computeExpandButtonOffset=function(){var g=this.expandSizer;return g?OCn?g.offsetParent?g.offsetParent.offsetWidth-g.offsetWidth-g.offsetLeft:0:g.offsetLeft:0};
_.z3.Object.defineProperties(Dd.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.H1(this.text)?this.text.content||"":_.iR(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 _.H1(this.text)?!0:this.text&&_.w("web_replace_formatted_with_attributed_string")&&mjZ(this.text)?(this.text=_.v1(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}}});
Dd.prototype.onTextChanged=Dd.prototype.onTextChanged;Dd.prototype.updateMaskAndExpandButtonOffset=Dd.prototype.updateMaskAndExpandButtonOffset;Dd.prototype.updateSnippetContainerMaxHeight=Dd.prototype.updateSnippetContainerMaxHeight;Dd.prototype.isExpandedChanged=Dd.prototype.isExpandedChanged;Dd.prototype.updateTextOnSnippetTypeChange=Dd.prototype.updateTextOnSnippetTypeChange;Dd.prototype.updateIsFormattedExpanded=Dd.prototype.updateIsFormattedExpanded;Dd.prototype.updateIsAttributedExpanded=Dd.prototype.updateIsAttributedExpanded;
Dd.prototype.onClick=Dd.prototype.onClick;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Dd.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Dd.prototype,"text",void 0);_.Y([_.a(),_.K("design:type",Array)],Dd.prototype,"headerRuns",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Dd.prototype,"engagementPanel",void 0);_.Y([_.a(),_.K("design:type",Object)],Dd.prototype,"maxLines",void 0);
_.Y([_.a(),_.K("design:type",String)],Dd.prototype,"expandLabel",void 0);_.Y([_.a(),_.K("design:type",String)],Dd.prototype,"collapseLabel",void 0);_.Y([_.a(),_.K("design:type",Object)],Dd.prototype,"expandCommand",void 0);_.Y([_.a(),_.K("design:type",Object)],Dd.prototype,"expandButtonOffset",void 0);_.Y([_.C("text"),_.K("design:type",String),_.K("design:paramtypes",[])],Dd.prototype,"simpleText",null);
_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Dd.prototype,"onClick",null);_.Y([_.C("text","isExpanded"),_.K("design:type",Object),_.K("design:paramtypes",[])],Dd.prototype,"expandedText",null);_.Y([_.C("headerRuns","isExpanded"),_.K("design:type",Object),_.K("design:paramtypes",[])],Dd.prototype,"expandedHeaderRuns",null);
_.Y([_.C("text"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Dd.prototype,"hasAttributedStringText",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Dd.prototype,"showExpandButton",void 0);_.Y([_.C("collapseLabel","isExpanded"),_.K("design:type",Object),_.K("design:paramtypes",[])],Dd.prototype,"showCollapseButton",null);_.Y([_.a(),_.K("design:type",Object)],Dd.prototype,"isTruncated",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Dd.prototype,"isExpanded",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Dd.prototype,"isAttributedExpanded",void 0);_.Y([_.k_("isExpanded","hasAttributedStringText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dd.prototype,"updateIsAttributedExpanded",null);_.Y([_.a(),_.K("design:type",Boolean)],Dd.prototype,"isFormattedExpanded",void 0);
_.Y([_.k_("isExpanded","hasAttributedStringText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dd.prototype,"updateIsFormattedExpanded",null);_.Y([_.a(),_.K("design:type",Number)],Dd.prototype,"currentSnippetType",void 0);_.Y([_.C("currentSnippetType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Dd.prototype,"useAttributedSnippet",null);
_.Y([_.C("currentSnippetType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Dd.prototype,"useFormattedSnippet",null);_.Y([_.C("currentSnippetType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Dd.prototype,"usePlainSnippet",null);_.Y([_.a(),_.K("design:type",Object)],Dd.prototype,"alwaysShowExpandButton",void 0);_.Y([_.k_("currentSnippetType"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dd.prototype,"updateTextOnSnippetTypeChange",null);
_.Y([_.a(),_.K("design:type",Object)],Dd.prototype,"attributedSnippetText",void 0);_.Y([_.oE("#snippet"),_.K("design:type",HTMLElement)],Dd.prototype,"snippetContainer",void 0);_.Y([_.oE("#snippet-text"),_.K("design:type",HTMLElement)],Dd.prototype,"snippetText",void 0);_.Y([_.oE("#plain-snippet-text"),_.K("design:type",HTMLElement)],Dd.prototype,"plainSnippetText",void 0);_.Y([_.oE("#formatted-snippet-text"),_.K("design:type",Object)],Dd.prototype,"formattedSnippetText",void 0);
_.Y([_.oE("#attributed-snippet-text"),_.K("design:type",HTMLElement)],Dd.prototype,"attributedSnippetTextEl",void 0);_.Y([_.oE("#expand"),_.K("design:type",HTMLElement)],Dd.prototype,"expandButton",void 0);_.Y([_.oE("#expand-sizer"),_.K("design:type",HTMLElement)],Dd.prototype,"expandSizer",void 0);_.Y([_.qm("isExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dd.prototype,"isExpandedChanged",null);
_.Y([_.k_("isExpanded","maxLines"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dd.prototype,"updateSnippetContainerMaxHeight",null);_.Y([_.k_("isTruncated","showExpandButton","expandButtonOffset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dd.prototype,"updateMaskAndExpandButtonOffset",null);
_.Y([_.qm("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dd.prototype,"onTextChanged",null);_.Y([_.fE({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Dd);
_.T(Dd,"ytd-text-inline-expander",function(){if(Yhx===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);Yhx=g}g=Yhx;return g},{mode:2});var pX=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return g};
_.A(pX,_.X);pX.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
pX.prototype.handleUpdateDescriptionAction=function(g){if(g=_.c(g,_.Es5))if(g.attributedDescription)this.set("data.attributedDescriptionBodyText",g.attributedDescription);else if(g.description){var u;((u=this.data)==null?0:u.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.v1(g.description)):this.set("data.descriptionBodyText",g.description)}};
_.z3.Object.defineProperties(pX.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var g,u;return!((g=this.data)==null||!g.attributedDescriptionBodyText)||!((u=this.data)==null||!u.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null?0:g.collapsedLineCount){var u;return(u=this.data)==null?void 0:u.collapsedLineCount}g=_.S8("web_watch_description_collapsed_default_lines",12);if(_.w("ww_desc_line_page_size_ks"))return g;u=Math.round(_.U3().height*_.S8("web_watch_description_screen_height_percentage",.5)/20);return Math.max(u,g)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return(q=(g=this.data)==null?void 0:g.descriptionBodyText)!=null?q:(u=this.data)==null?void 0:u.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.sourceAttributions}}});
pX.prototype.panelContentVisibleChanged=pX.prototype.panelContentVisibleChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],pX.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],pX.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pX.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],pX.prototype,"panelContentVisible",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],pX.prototype,"engagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],pX.prototype,"shortsPanel",void 0);_.Y([_.oE("#inline-expander"),_.K("design:type",Object)],pX.prototype,"inlineExpander",void 0);
_.Y([_.k_("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pX.prototype,"panelContentVisibleChanged",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],pX.prototype,"hasDescriptionText",null);_.Y([_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],pX.prototype,"collapsedLines",null);
_.Y([_.C("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.K("design:type",Object),_.K("design:paramtypes",[])],pX.prototype,"descriptionText",null);_.Y([_.C("data","data.headerRuns"),_.K("design:type",Object),_.K("design:paramtypes",[])],pX.prototype,"headerRuns",null);_.Y([_.C("data","data.sourceAttributions"),_.K("design:type",Object),_.K("design:paramtypes",[])],pX.prototype,"sourceAttributions",null);
_.Y([_.fE({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],pX);
_.T(pX,"ytd-expandable-video-description-body-renderer",function(){if(h$8!==void 0)return h$8;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return h$8=g},{mode:2});var KNo;var xg5=_.r(function(g){var u=g.data;return _.p("factoid-renderer",{class:"ytwFactoidRendererHost"},_.p("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return u().accessibilityText}},_.p("span",{class:"ytwFactoidRendererValue"},_.p(_.c2,{text:function(){return u().value}})),_.p("span",{class:"ytwFactoidRendererLabel"},_.p(_.c2,{text:function(){return u().label}}))))},"ud");_.dL(xg5,"factoid-renderer",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;return _.p("upload-time-factoid-renderer",null,_.p(_.Up,{data:function(){return u().factoid}},{factoidRenderer:xg5}))},"vd"),"upload-time-factoid-renderer",{props:{data:_.iF}});_.dL(_.r(function(g){var u=g.data;return _.p("view-count-factoid-renderer",null,_.p(_.Up,{data:function(){return u().factoid}},{factoidRenderer:xg5}))},"wd"),"view-count-factoid-renderer",{props:{data:_.iF}});var J8=function(){var g=_.X.apply(this,arguments)||this;g.shortsPanel=!1;g.engagementPanel=!1;g.watchWhileSdp=_.w("shorts_desktop_watch_while_sdp");return g};
_.A(J8,_.X);J8.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"}}}}};
_.z3.Object.defineProperties(J8.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var g;return(g=this.data)==null?void 0:g.channel}}});
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],J8.prototype,"componentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],J8.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],J8.prototype,"shortsPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],J8.prototype,"engagementPanel",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],J8.prototype,"watchWhileSdp",void 0);_.Y([_.C("shortsPanel","engagementPanel","data.channel"),_.K("design:type",Object),_.K("design:paramtypes",[])],J8.prototype,"showChannelInfo",null);_.Y([_.fE({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],J8);
_.T(J8,"ytd-video-description-header-renderer",function(){if(KNo!==void 0)return KNo;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return KNo=g},{mode:1});var B8x;var ju=function(){return _.X.apply(this,arguments)||this};
_.A(ju,_.X);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ju.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ju.prototype,"noPadding",void 0);_.Y([_.a(),_.K("design:type",Object)],ju.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],ju);
_.T(ju,"ytd-list-item-view-model",function(){if(B8x!==void 0)return B8x;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return B8x=g},{mode:1});var z$8;var nT0;var kOx;var ShX;var fX=function(){var g=_.X.apply(this,arguments)||this;g.adaptiveFullWidth=!1;g.modernButtons=_.w("web_modern_buttons");g.buttonOverrides={style:"call-to-action",type:"filled"};g.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return g};
_.A(fX,_.X);fX.prototype.handleSetTimestamp_=function(g){this.data&&this.data.shortUrl&&(_.Tr(this.hostElement).querySelector("#share-url").value=g.isSet?_.oW(this.data.shortUrl,"t",g.timestamp):this.data.shortUrl)};
fX.prototype.handleSignalActionCopyShareUrl_=function(g,u){(_.w("killswitch_copy_link_target_check")||_.Tr(this.hostElement).querySelector("#copy-button")===u)&&this.copyUrlToClipboard()};
fX.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Tr(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
fX.prototype.computeStyle_=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],fX.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],fX.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.K("design:type",String)],fX.prototype,"rendererStyle",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],fX.prototype,"adaptiveFullWidth",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],fX.prototype,"modernButtons",void 0);_.Y([_.a(),_.K("design:type",Object)],fX.prototype,"buttonOverrides",void 0);_.Y([_.jP({is:"yt-copy-link-renderer",disableElementRegistration:!0})],fX);
_.T(fX,"yt-copy-link-renderer",function(){if(ShX===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;kOx===void 0&&(kOx=document.createElement("template"));var Q=kOx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ShX=g}g=ShX;return g},{mode:2});_.Ny("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var MN=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return g};
_.A(MN,_.X);_.P=MN.prototype;_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var g=_.Bk().resolve(_.xv(_.m5));g&&(this.keyboardFocused=g.isKeyBoardInUse())}};
_.P.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.P.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}};
_.P.onChange_=function(){if(this.data){var g=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;g&&this.ytComponentBehavior.resolveCommand(g);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.P.handleUpdateToggleAction_=function(g){(g=_.c(g,$In))&&this.data&&g.targetId==this.data.targetId&&this.set("data.toggled",g.toggled)};
_.P.toBoolean_=function(g){return!!g};
_.P.reset=function(){};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("data-changed",this.data))};
_.P.updateDataToggledFromBinding=function(g){this.set("data.toggled",g.detail.value)};
MN.prototype.dataChangedForBinding=MN.prototype.dataChangedForBinding;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],MN.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],MN.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],MN.prototype,"data",void 0);_.Y([_.a({computed:"computeDescription_(data.*)"}),_.K("design:type",Object)],MN.prototype,"description_",void 0);_.Y([_.a({value:function(){return!!_.Bk().resolve(_.xv(_.m5))&&_.w("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.K("design:type",Boolean)],MN.prototype,"useKeyboardFocused",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],MN.prototype,"keyboardFocused",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MN.prototype,"dataChangedForBinding",null);_.Y([_.jP({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],MN);
_.T(MN,"yt-toggle-form-field-renderer",function(){if(nT0===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;z$8===void 0&&(z$8=document.createElement("template"));var Q=z$8;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);nT0=g}g=nT0;return g},{mode:2});var oT$;var Ugi;var t8=function(){var g=_.X.apply(this,arguments)||this;g.isDarkTheme=!1;g.isSearch=!1;g.noTopMargin=_.w("kevlar_watch_no_top_margin");g.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 g};
_.A(t8,_.X);_.P=t8.prototype;_.P.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}}}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.P.dataChanged=function(){var g=this.getSelectedIndex();if(g>0)this.selected=g;else{this.selected=0;var u,q;(u=this.ytScrollableChipCloudBehavior)==null||(q=u.reset)==null||q.call(u)}};
_.P.getSelectedIndex=function(){var g;if((g=this.data)==null||!g.chips)return-1;g=-1;for(var u,q=0;q<((u=this.data)==null?void 0:u.chips.length);q++){var Q=void 0,L=void 0;if((Q=this.data)==null?0:(L=Q.chips[q].chipCloudChipRenderer)==null?0:L.isSelected){g=q;break}}return g};
_.P.onResize=function(){var g=this.ytScrollableChipCloudBehavior;_.xt(g,g.setContainerWidthDiff);g=this.ytScrollableChipCloudBehavior;_.xt(g,g.setButtonsState)};
_.P.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.P.handleRelatedChipCommand=function(g,u){g=this.JSC$16914_chipsSelector.indexOf(u);g!==-1&&this.JSC$16914_chipsSelector.selectIndex(g)};
_.P.handleChipCloudChipSelectAction=function(g){g=this.JSC$16914_chipsSelector.indexOf(g);g>-1&&this.JSC$16914_chipsSelector.selectIndex(g)};
_.P.handleChipCloudChipDeselectAction=function(){var g=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16914_chipsSelector&&((g==null?0:g.continuationCommand)?_.KV(this.hostElement,[g]):(g==null?0:g.searchEndpoint)?this.ytComponentBehavior.resolveCommand(g):g&&_.xJ(this.hostElement,[g],this.hostElement),this.JSC$16914_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.P.updateSelectedFromBinding=function(g){this.selected=g.detail.value};
t8.prototype.onResize=t8.prototype.onResize;t8.prototype.dataChanged=t8.prototype.dataChanged;t8.prototype.isSearchChanged=t8.prototype.isSearchChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],t8.prototype,"actionHandlerBehavior",void 0);
_.Y([_.I(_.LJ),_.K("design:type",Object)],t8.prototype,"ironResizableBehavior",void 0);_.Y([_.I(),_.K("design:type",kz)],t8.prototype,"ytScrollableChipCloudBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],t8.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],t8.prototype,"data",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],t8.prototype,"selected",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],t8.prototype,"isDarkTheme",void 0);_.Y([_.a({value:160}),_.K("design:type",Number)],t8.prototype,"scrollDistance",void 0);_.Y([_.a(),_.K("design:type",Object)],t8.prototype,"isSearch",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],t8.prototype,"noTopMargin",void 0);_.Y([_.oE("#chips"),_.K("design:type",Object)],t8.prototype,"JSC$16914_chipsSelector",void 0);
_.Y([_.k_("isSearch"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],t8.prototype,"isSearchChanged",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],t8.prototype,"dataChanged",null);_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],t8.prototype,"onResize",null);_.Y([_.jP({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],t8);
_.T(t8,"yt-chip-cloud-renderer",function(){if(Ugi===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;oT$===void 0&&(oT$=document.createElement("template"));var Q=oT$;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Ugi=g}g=Ugi;return g},{mode:2});var gR2,u$a=function(){return gR2!==void 0?gR2:gR2=document.createElement("template")};
document.head.appendChild(u$a().content);var qq5;var QyX=document.head,LUa=QyX.appendChild,ER8;if(qq5===void 0){var Psn=document.createElement("template");_.Z(Psn,"");Psn.content.insertBefore(u$a().content.cloneNode(!0),Psn.content.firstChild);qq5=Psn}ER8=qq5;LUa.call(QyX,ER8.content);var NI$=_.r(function(g){var u=g.data;return _.p("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.p("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.p("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.p(_.M,{cond:function(){return _.Rs(u().image)},
then:function(q){return _.p("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.p(_.IT,{data:q,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.p("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.p(_.c2,{text:function(){return u().title}})),_.p("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.p(_.c2,{text:function(){return u().subtitle}})))),_.p(_.M,{cond:function(){var q;
return(q=u())==null?void 0:q.hasBottomDivider},
then:function(){return _.p("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"xd");var sya=_.r(function(g){var u=g.data;return _.p("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.p("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.p(_.Up,{data:function(){var q;return(q=u().offerPlanDetailsItem)!=null?q:[]}},{offerPlanDetailsItemViewModel:function(q){return _.p("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.p(NI$,{data:q.data}))}})),_.p("div",null,_.p(_.M,{cond:function(){return u().hasBottomDivider},
then:function(){return _.p("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.p("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.p("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.p("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.p("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"yd");var ySW=_.r(function(g){var u=g.data;g=_.N(_.jR(!1,void 0,"MrXxy"));var q=g.next().value,Q=g.next().value,L=_.YH(function(){Q(!q());return!1}),E=function(){var y;
return(y=u().offerPlanDetailsContainer)!=null?y:[]};
return _.p("lp-complex-offer-card-details-view-model",null,_.p("div",null,_.p(_.M,{cond:function(){return q()},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.p("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":L,"aria-expanded":q},_.p(_.c2,{text:function(){return u().expandedTitle}})),_.p("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.p(_.Up,{data:E},{offerPlanDetailsContainerViewModel:function(y){return _.p("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.p(sya,{data:y.data}))}})),_.p("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.p(_.c2,{text:function(){return u().legalText}})))},
else:function(){return _.p("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":L,"aria-expanded":q},_.p(_.c2,{text:function(){return u().collapsedTitle}}),_.p("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.p(_.B1,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"zd");var vR0=_.r(function(g){var u=g.data;return _.p("lp-complex-offer-card-option-view-model",null,_.p("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.p(_.M,{cond:function(){return u().topDividerText},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.p("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.p("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.p("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.p(_.c2,{text:function(){return u().topDividerText}}))))}}),_.p(_.M,{cond:function(){return u().description},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.p(_.c2,{text:function(){return u().description}}))}}),_.p(_.M,{cond:function(){return u().planPricingPrimary},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.p(_.c2,{text:function(){return u().planPricingPrimary}}))}}),_.p(_.M,{cond:function(){return u().planPricingSecondary},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.p(_.c2,{text:function(){return u().planPricingSecondary}}))}}),_.p(_.M,{cond:function(){return u().primaryButton},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.p(_.Up,{data:function(){return u().primaryButton}},{buttonViewModel:function(q){return _.p(_.TT,{data:q.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Ad");var DAH=_.r(function(g){var u=g.data;var q=function(){var E;return((E=u())==null?void 0:E.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
g={};var Q={},L={};return _.p("ytm-lp-complex-offer-card-view-model",null,_.p("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.p("div",{class:_.Ty((g.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=q,g),"ytmLpComplexOfferCardViewModelCardContainer")},_.p(_.M,{cond:function(){var E;return(E=u())==null?void 0:E.bannerText},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.p("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.p(_.c2,{text:function(){return u().bannerText}})))}}),_.p(_.M,{cond:function(){return _.Rs(u().logo)},
then:function(E){var y={};return _.p("div",{class:_.Ty((y.ytmLpComplexOfferCardViewModelLogoAlignLeft=q,y),"ytmLpComplexOfferCardViewModelLogo")},_.p(_.IT,{data:E,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.p("div",{class:_.Ty((Q.ytmLpComplexOfferCardViewModelTitleAlignLeft=q,Q),"ytmLpComplexOfferCardViewModelTitle")},_.p(_.c2,{text:function(){return u().title}})),_.p(_.M,{cond:function(){var E;
return(E=u())==null?void 0:E.subtitle},
then:function(){var E={};return _.p("div",{class:_.Ty((E.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=q,E),"ytmLpComplexOfferCardViewModelSubtitle")},_.p(_.c2,{text:function(){return u().subtitle}}))}}),_.p(_.M,{cond:function(){return u().planPricingPrimary},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.p(_.c2,{text:function(){return u().planPricingPrimary}}))}}),_.p(_.M,{cond:function(){return u().planPricingSecondary},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.p(_.c2,{text:function(){return u().planPricingSecondary}}))}}),_.p(_.M,{cond:function(){return u().purchaseButton},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.p(_.Up,{data:function(){return u().purchaseButton}},{buttonViewModel:function(E){return _.p(_.TT,{data:E.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.p(_.M,{cond:function(){var E;
return(E=u())==null?void 0:E.offerOptions},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.p(_.Up,{data:function(){return u().offerOptions}},{lpComplexOfferCardOptionViewModel:vR0}))}}),_.p("div",{class:_.Ty((L.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=q,L),"ytmLpComplexOfferCardViewModelLegalText")},_.p(_.c2,{text:function(){return u().legalText}})),_.p(_.M,{cond:function(){var E;
return(E=u())==null?void 0:E.offerCardDetails},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.p(_.Up,{data:function(){return u().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:ySW}))}}))))},"Bd");var pan=_.r(function(g){var u=g.data;var q=function(){var y;return((y=u())==null?void 0:y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
g={};var Q={},L={},E={};return _.p("ytm-lp-complex-offer-card-section-view-model",null,_.p("div",{class:_.Ty("ytmLpComplexOfferCardSectionViewModelHost")},_.p("div",{class:_.Ty((g.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=q,g),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.p("div",{class:_.Ty((Q.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=q,Q),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.p("h2",{class:_.Ty((L.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
q,L),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.p(_.c2,{text:function(){return u().title}}))),_.p(_.M,{cond:function(){var y;
return(y=u())==null?void 0:y.subtitle},
then:function(){var y={},v={};return _.p("div",{class:_.Ty((y.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=q,y),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.p("div",{class:_.Ty((v.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=q,v),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.p(_.c2,{text:function(){return u().subtitle}})))}}),_.p("div",{class:_.Ty((E.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=q,E),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.p(_.Up,{data:function(){var y;
return(y=u().offerPlans)!=null?y:[]}},{lpComplexOfferCardViewModel:function(y){return _.p("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.p(DAH,{data:y.data}))}})))))},"Cd");var JSa=_.r(function(g){return _.p("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.p("div",{class:"ytLpCouponBannerViewModelIcon"},_.p(_.B1,{icon:function(){return"price_tag"}})),_.p("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.p("div",{class:"ytLpCouponBannerViewModelContent"},_.p("div",{class:"ytLpCouponBannerViewModelHeading"},_.p(_.c2,{text:function(){var u;
return(u=g.data())==null?void 0:u.title}})),_.p("div",{class:"ytLpCouponBannerViewModelBody"},_.p(_.c2,{text:function(){var u;
return(u=g.data())==null?void 0:u.subtitle}})))))},"Dd");
JSa.idomCompat=!0;_.eu=W9S.getInstance();var jy2;jy2=_.r(function(g){return _.p("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":g.shouldAriaHideContent},_.p("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:g.questionId},_.p(_.c2,{text:g.question})))},"Ed");
_.fTo=_.r(function(g){var u=g.data;var q=g.themeOverride;g=_.N(_.jR(!1,void 0,"pNli2b"));var Q=g.next().value,L=g.next().value;g=_.YH(function(){L(!Q());return!1});
var E=function(){return Q()?"EXPAND_LESS":"EXPAND_MORE"},y=("faq-container"+_.M6(_.eu)).toString(),v="faq-question-and-answers-section-question"+_.M6(_.eu),J={},f={};
return _.p("faq-entry-view-model",null,_.p("div",{class:_.Ty("ytLpFaqEntryViewModelHost",(J.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return q==null?void 0:q().useDarkTheme},J))},_.p("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":g,role:"button","aria-expanded":Q,"aria-labelledby":v.toString(),"tab-index":"0"},_.p(jy2,{question:function(){return u().question},
questionId:v,shouldAriaHideContent:!0}),_.p(_.M,{cond:function(){return Q()!==void 0},
then:function(){return _.p("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.p(_.B1,{icon:E,ariaHidden:!0}),_.p("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.p("div",{class:_.Ty("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(f.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!Q()},f))},_.p("div",{id:y},_.p(_.R4,{each:function(){return u().answers||[]}},function(t){return _.p("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.p(_.c2,
{text:t}))})))))},"Fd");
_.fTo.idomCompat=!0;var M5x=_.r(function(g){var u=g.data;var q=g.themeOverride;g={};return _.p("lp-faq-section-view-model",null,_.p("div",{class:_.Ty("yt-lp-faq-section-view-model",(g["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return u().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},g["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(q==null||!q().useDarkTheme)},g))},_.p("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.p(_.M,{cond:function(){return u().header},
then:function(Q){return _.p("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.p(_.c2,{text:Q}))}}),_.p("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.p(_.Up,{data:function(){return u().faqs}},{faqEntryViewModel:function(Q){return _.p(_.fTo,{data:Q.data,
themeOverride:q})}})),_.p("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.p(_.R4,{each:function(){return u().footers||[]}},function(Q){return _.p(_.c2,{text:Q})})),_.p(_.M,{cond:function(){return u().legal},
then:function(Q){return _.p("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.p(_.c2,{text:Q}))}}))))},"Gd");
M5x.idomCompat=!0;var t5x=_.r(function(g){var u=g.data;var q=g.themeOverride;_.I4(function(){var y=u().gtmId;y&&_.QU(y,_.FR("GL",""))});
var Q={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var y,v,J;return(J=(y=u().logo)==null?void 0:(v=y.accessibilityData)==null?void 0:v.label)!=null?J:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},L=_.Bk().resolve(_.xv(_.gy)),E=function(){return L&&L()||(q==null?void 0:q().useDarkTheme)};
return _.p("lp-header-section-view-model",null,_.p("div",{class:function(){var y=u().layoutType,v=u().marginType==="LP_SECTION_MARGIN_TYPE_TOP",J=q==null?void 0:q().useDarkTheme,f=["lp-header-section-view-model"];switch(y){case "LP_MODULE_LAYOUT_TYPE_PTC":f.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":f.push("lp-header-section-view-model--narrow-header-layout-type")}v&&f.push("lp-header-section-view-model__lp-header-section-margin");J&&f.push("lp-header-section-view-model--premium-force-dark-mode");
return f.join(" ")}},_.p(_.M,{cond:function(){return u().logo},
then:function(){return _.p("div",null,_.p(_.M,{cond:E,then:function(){return _.p(_.M,{cond:function(){var y;return(y=u().logo)==null?void 0:y.imageDark},
then:function(y){return _.p(_.IT,Object.assign({},{data:y},Q))}})},
else:function(){return _.p(_.M,{cond:function(){var y;return(y=u().logo)==null?void 0:y.imageLight},
then:function(y){return _.p(_.IT,Object.assign({},{data:y},Q))}})}}))}}),_.p(_.M,{cond:function(){return u().title},
then:function(y){return _.p("div",{class:"lp-header-section-view-model__lp-header-title"},_.p(_.c2,{text:y}))}}),_.p("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.p(_.M,{cond:function(){return u().subtitles},
then:function(y){return _.p(_.R4,{each:y},function(v){return _.p("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.p(_.c2,{text:v}))})}})),_.p(_.M,{cond:function(){return u().additionalInfo},
then:function(y){return _.p("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.p(_.c2,{text:y}))}}),_.p("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.p(_.M,{cond:function(){return u().primaryButton},
then:function(y){return _.p("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.p(_.Up,{data:y},{buttonViewModel:_.TT}))}}),_.p(_.M,{cond:function(){return u().secondaryButton},
then:function(y){return _.p("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.p(_.Up,{data:y},{buttonViewModel:_.TT}))}})),_.p(_.M,{cond:function(){return u().otherOffersInfo},
then:function(y){return _.p("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.p(_.c2,{text:y}))}}),_.p("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.p(_.M,{cond:function(){return u().billingInfo},
then:function(y){return _.p(_.R4,{each:y},function(v){return _.p("div",null,_.p(_.c2,{text:v}))})}}))))},"Hd");
t5x.idomCompat=!0;var el$=_.r(function(g){return _.p("lp-header-upsell-banner-view-model",{class:_.Ty("lpHeaderUpsellBannerViewModelHost",g.className,{})},_.p("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.p(_.B1,{icon:function(){return"CAMPAIGN"}})),_.p("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.p("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.p("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.p("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.p(_.c2,{text:function(){var u;
return(u=g.data())==null?void 0:u.description}})))),_.p(_.Up,{data:function(){var u;
return(u=g.data())==null?void 0:u.purchaseButton}},{buttonViewModel:function(u){return _.p(_.TT,{data:u.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Id");var Gm$=_.r(function(g){var u=g.data;var q=_.dO(g.themeOverride,{useDarkTheme:!1});g={};g=_.Ty("ytmLpHeadlineSectionViewModelHost",(g.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return q().useDarkTheme},g));
return _.p("lp-headline-section-view-model",null,_.p("div",{class:g},_.p(_.M,{cond:function(){return u().title},
then:function(Q){return _.p("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.p(_.c2,{text:Q}))}}),_.p(_.M,{cond:function(){return u().subtitle},
then:function(Q){return _.p("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.p(_.c2,{text:Q}))}})))},"Jd");var $Ao=_.r(function(g){var u=g.data;var q=g.themeOverride;var Q=_.Bk().resolve(_.xv(_.gy)),L=function(){return Q&&Q()||(q==null?void 0:q().useDarkTheme)},E=function(){var f,t;
var e=L()?(f=u().textBackgroundImage)==null?void 0:f.imageDark:(t=u().textBackgroundImage)==null?void 0:t.imageLight;return t4F((e==null?void 0:e.sources)||[])},y=function(){var f,t;
return L()?(f=u().featureImage)==null?void 0:f.imageDark:(t=u().featureImage)==null?void 0:t.imageLight},v=function(){return u().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},J=function(){var f,t;
return L()?(f=u().logo)==null?void 0:f.imageDark:(t=u().logo)==null?void 0:t.imageLight};
return _.p("ytm-lp-large-feature-section-view-model",null,_.p("div",{class:function(){var f=u().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",t=u().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",e=(u().index||0)%2===1,G=q==null?void 0:q().useDarkTheme,R=["yt-lp-large-feature-section-view-model"];f?R.push("yt-lp-large-feature-section-view-model--music-feature-type"):t?R.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):e||R.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
G&&R.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return R.join(" ")}},_.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.p(_.M,{cond:y,
then:function(){return _.p(_.IT,{data:function(){return y()},
alt:function(){var f,t,e;return(e=(f=u().featureImage)==null?void 0:(t=f.accessibilityData)==null?void 0:t.label)!=null?e:""},
contentMode:v})}})),_.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var f;return((f=E())==null?0:f.url)?"background-image: url("+_.SO(E().url)+");":""}},_.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.p(_.M,{cond:J,
then:function(){return _.p(_.IT,{data:function(){return J()},
alt:function(){var f,t,e;return(e=(f=u().logo)==null?void 0:(t=f.accessibilityData)==null?void 0:t.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"})}}),_.p(_.M,{cond:function(){return u().eyebrowText},
then:function(){return _.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.p(_.c2,{text:function(){return u().eyebrowText}}))}}),_.p(_.M,{cond:function(){return u().title},
then:function(){return _.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.p(_.c2,{text:function(){return u().title}}))}}),_.p(_.M,{cond:function(){return u().subtitles},
then:function(){return _.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.p(_.R4,{each:function(){return u().subtitles||[]}},function(f){return _.p(_.c2,{text:f})}))}})))))},"Kd");
$Ao.idomCompat=!0;var Rlb=_.r(function(g){return _.p("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.p("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.p(_.B1,{icon:function(){var u;return(u=g.data())==null?void 0:u.iconType},
className:function(){var u;switch((u=g.data())==null?void 0:u.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 u;return((u=g.data())==null?void 0:u.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.p("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.p(_.c2,{text:function(){var u;
return(u=g.data())==null?void 0:u.text},
className:function(){var u;return((u=g.data())==null?void 0:u.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Ld");var wa8=_.r(function(g){g=_.FI(g,{config:void 0,themeOverride:void 0});var u=g.data,q=g.config,Q=g.themeOverride;g={};g=_.Ty("ytmLpOfferCardOptionViewModelHost",(g.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var v;return(v=Q())==null?void 0:v.useDarkTheme},g));
var L=_.YH(function(){var v,J;(v=q())==null||(J=v.handleRadioButtonClick)==null||J.call(v,u());return!1}),E=function(){var v;
return(v=q())==null?void 0:v.shouldDisplayRadioButton},y=function(){var v;
return(v=u().featureListItems)!=null?v:[]};
return _.p("ytm-lp-offer-card-option-view-model",null,_.p("div",{class:g,"on:click":_.YH(function(){if(E()){var v,J;(v=q())==null||(J=v.handleRadioButtonClick)==null||J.call(v,u())}return!1})},_.p(_.M,{cond:E,
then:function(){return _.p("div",null,_.p("input",{type:"radio","on:click":L,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var v;return!((v=q())==null||!v.isOptionSelected)}}))}}),_.p("div",null,_.p("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.p(_.c2,{text:function(){return u().eyebrowText}})),_.p("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.p(_.c2,{text:function(){return u().title}})),_.p("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.p(_.c2,
{text:function(){return u().subtitle}})),_.p(_.M,{cond:function(){return y().length>0},
then:function(){return _.p("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.p(_.Up,{data:y},{lpFeatureListItemViewModel:Rlb}))}}),_.p("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.p(_.c2,{text:function(){return u().description}})))))},"Md");
wa8.idomCompat=!0;var cSi=_.r(function(g){var u=g.data;var q=g.themeOverride;g=_.N(_.mX(function(){var E,y=(E=u().offerOptions)==null?void 0:E[0];return _.c(y,MC2)||{}}));
var Q=g.next().value,L=g.next().value;g={};return _.p("ytm-lp-offer-card-view-model",null,_.p("div",{class:_.Ty("ytmLpOfferCardViewModelHost",(g.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(q==null||!q().useDarkTheme)},g))},_.p("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.p(_.M,{cond:function(){return u().titleIconType},
then:function(){return _.p("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.p(_.B1,{icon:function(){var E;return((E=u().titleIconType)==null?void 0:E.toString())||""}}))}}),_.p("div",{class:"ytmLpOfferCardViewModelTitleText"},_.p(_.c2,{text:function(){return u().title}})),_.p(_.Up,{data:function(){return u().titleBadge}},{badgeViewModel:function(E){return _.p("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.p(_.bY,{data:E.data}))}})),_.p("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.p(_.Up,{data:function(){return u().offerOptions}},{lpOfferCardOptionViewModel:function(E){var y=E.data;
return _.p(_.U9,null,_.p("div",{class:"ytmLpOfferCardViewModelDivider"}),_.p(wa8,{data:y,config:function(){var v;return{shouldDisplayRadioButton:(u().offerOptions||[]).length>1,isOptionSelected:y().id===((v=Q())==null?void 0:v.id),handleRadioButtonClick:function(J){return void L(J)}}},
themeOverride:q}))}})),_.p("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.p(_.Up,{data:function(){var E;
return(E=Q())==null?void 0:E.purchaseButtonOverride}},{buttonViewModel:_.TT}))))},"Nd");
cSi.idomCompat=!0;var HRa=_.r(function(g){var u=g.data;var q=g.themeOverride;g={};g=_.Ty("ytmLpOfferCardSectionViewModelHost",(g.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var Q;return q==null?void 0:(Q=q())==null?void 0:Q.useDarkTheme},g));
return _.p("ytm-lp-offer-card-section-view-model",null,_.p("div",{class:g},_.p(_.M,{cond:function(){return u().title!==void 0},
then:function(){return _.p("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.p("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.p(_.c2,{text:function(){return u().title}})),_.p(_.M,{cond:function(){return u().subtitle},
then:function(){return _.p("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.p(_.c2,{text:function(){return u().subtitle}}))}}))}}),_.p("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.p(_.Up,{data:function(){return u().offerCards}},{lpOfferCardViewModel:function(Q){return _.p("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.p(cSi,{data:Q.data,
themeOverride:q}))}})),_.p(_.M,{cond:function(){return u().footer},
then:function(){return _.p("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.p(_.c2,{text:function(){return u().footer}}))}})))},"Od");var ASZ=_.r(function(g){var u=g.data;return _.p("lp-offer-table-cell-content-view-model",null,_.p("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.p(_.wi,null,_.p(_.Gv,{when:function(){return u().title}},function(){return _.p(_.c2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return u().title}})}),_.p(_.Gv,{when:function(){return u().subTitle}},function(){return _.p(_.c2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return u().subTitle}})}),_.p(_.Gv,{when:function(){return u().featureDescription}},function(){return _.p(_.c2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return u().featureDescription}})}),_.p(_.Gv,{when:function(){return u().description}},function(){return _.p(_.c2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return u().description}})}),_.p(_.Gv,{when:function(){return u().iconType}},function(){return _.p("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.p(_.B1,{icon:function(){return u().iconType.toString()}}))}),_.p(_.Gv,{when:function(){return u().purchaseButton}},function(){return _.p(_.Up,{data:function(){return u().purchaseButton}},{buttonViewModel:function(q){return _.p("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.p(_.TT,
{data:q.data}))}})}),_.p(_.Gv,{when:function(){return u().note}},function(){return _.p(_.c2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return u().note}})}),_.p(_.Gv,{when:function(){return u().featureDetail}},function(){return _.p(_.c2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return u().featureDetail}})}),_.p(_.Gv,{when:function(){return u().badge}},function(){return _.p(_.Up,{data:function(){return u().badge}},{badgeViewModel:_.bY})}))))},"Pd");
ASZ.idomCompat=!0;var ZRZ=_.r(function(g){var u=g.data;return _.p("lp-offer-table-cell-view-model",null,_.p("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(u().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;"}}},_.p(_.Up,{data:function(){return u().contents}},{lpOfferTableCellContentViewModel:ASZ})))},
"Qd");
ZRZ.idomCompat=!0;var lT$=_.r(function(g){var u=g.data;var q=g.lpTableIsFirstRow;var Q=g.lpTableIsLastRow;var L=function(){return(q==null?0:q())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},E=function(){return(q==null?0:q())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(Q==null?0:Q())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.p("ytm-lp-offer-table-row-view-model",null,_.p("div",{class:"ytLpOfferTableRowViewModelHost"},_.p(_.Up,{data:function(){return u().rowHeaderCell}},{lpOfferTableCellViewModel:function(y){return _.p("div",{class:L},_.p(ZRZ,{data:y.data}))}}),_.p(_.Up,{data:function(){return u().contentCells}},{lpOfferTableCellViewModel:function(y){return _.p("div",{class:E},_.p(ZRZ,{data:y.data}))}})))},"Rd");
lT$.idomCompat=!0;var ITo=_.r(function(g){var u=g.data;var q=g.themeOverride;var Q=_.Bk().resolve(_.xv(_.gy)),L=function(){return _.c(u().logo,XyX)||{}};
g={};return _.p("ytm-lp-offer-table-section-view-model",null,_.p("div",{class:"ytLpOfferTableViewModelHost"},_.p(_.M,{cond:function(){var E,y;return Q&&Q()||(q==null?0:q().useDarkTheme)?(E=L())==null?void 0:E.imageDark:(y=L())==null?void 0:y.imageLight},
then:function(E){return _.p(_.IT,{data:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var y,v,J;return(J=(y=L())==null?void 0:(v=y.accessibilityData)==null?void 0:v.label)!=null?J:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.p("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.p(_.c2,{text:function(){return u().title}})),_.p("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.p(_.c2,{text:function(){return u().subtitle}})),_.p(_.M,{cond:function(){return u().disclaimers},
then:function(E){return _.p("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.p(_.R4,{each:E},function(y){return _.p("div",null,_.p(_.c2,{text:y}))}))}}),_.p("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.p(_.Up,{data:function(){return u().rows}},{lpOfferTableRowViewModel:function(E,y){return _.p(lT$,{data:E.data,
lpTableIsFirstRow:function(){return y()===0},
lpTableIsLastRow:function(){return y()===u().rows.length-1}})}})),_.p("div",{class:_.Ty((g.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return u().hasFooterBackground},g))},_.p(_.M,{cond:function(){return u().footer},
then:function(){return _.p("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.p(_.c2,{text:function(){return u().footer}}))}}),_.p(_.M,{cond:function(){return u().footerTitle},
then:function(){return _.p("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.p(_.c2,{text:function(){return u().footerTitle}}))}}),_.p(_.M,{cond:function(){return u().footerDescription},
then:function(){return _.p("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.p(_.c2,{text:function(){return u().footerDescription}}))}}),_.p(_.M,{cond:function(){return u().footerDescriptions},
then:function(E){return _.p("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.p(_.R4,{each:E},function(y){return _.p("div",null,_.p(_.c2,{text:y}))}))}}))))},"Sd");
ITo.idomCompat=!0;var iR5=_.r(function(g){var u=g.data;var q=g.themeOverride;var Q=_.Bk().resolve(_.xv(_.gy)),L=function(){var v;return q==null?void 0:(v=q())==null?void 0:v.useDarkTheme},E=function(){var v,J;
return Q&&Q()||L()?(v=u().image)==null?void 0:v.imageDark:(J=u().image)==null?void 0:J.imageLight};
g={};g=_.Ty("ytmLpSmallFeatureSectionViewModelHost",(g.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=L,g));var y=function(){var v,J,f;return(f=(v=u().image)==null?void 0:(J=v.accessibilityData)==null?void 0:J.label)!=null?f:""};
return _.p("ytm-lp-small-feature-section-view-model",{class:g},_.p(_.M,{cond:function(){return E()&&!tSu},
then:function(){return _.p("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.p(_.IT,{data:function(){return E()},
alt:y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.p("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.p("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.p(_.M,{cond:function(){return u().title},
then:function(v){return _.p(_.c2,{text:v})}})),_.p("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.p(_.c2,{text:function(){return u().description}}))))},"Td");
iR5.idomCompat=!0;var CsR=_.r(function(g){var u=g.data;var q=g.themeOverride;g={};return _.p("ytm-lp-small-feature-section-group-view-model",null,_.p("div",{class:_.Ty("ytmLpSmallFeatureSectionGroupViewModelHost",(g.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(q==null||!q().useDarkTheme)},g))},_.p("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.p(_.Up,{data:function(){return u().smallFeatures}},{lpSmallFeatureSectionViewModel:function(Q){return _.p("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.p(iR5,{data:Q.data,
themeOverride:q}))}}))))},"Ud");
CsR.idomCompat=!0;_.dL(_.r(function(g){var u=g.data;var q=function(){return u().forcedTheme==="USER_INTERFACE_THEME_DARK"},Q=function(){return u().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},L=function(){var y="",v,J;
var f=_.Bk().resolve(_.xv(_.gy));f=q()||(f==null?0:f())?(v=u().themedImageViewModel)==null?void 0:v.imageDark:(J=u().themedImageViewModel)==null?void 0:J.imageLight;(v=t4F((f==null?void 0:f.sources)||[]))&&v.url&&(y=Q()?"background-image: linear-gradient(to bottom, transparent, "+(u().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.SO(v.url)+");":"background-image: url("+_.SO(v.url)+");");return y},E=function(){return{useDarkTheme:q()}};
g={};return _.p("yt-section-group-view-model",null,_.p("div",{class:_.Ty("yt-lp-section-group-view-model",(g["yt-lp-section-group-view-model--premium-force-dark-mode"]=q,g["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return u().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},g))},_.p(_.M,{cond:function(){return L().length},
then:function(){var y={};return _.p("div",{class:_.Ty("yt-lp-section-group-view-model__bg-image",(y["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=Q,y)),style:L})}}),_.p("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.p(_.Up,{data:function(){return u().sections}},{lpHeaderUpsellBannerViewModel:function(y){return _.p(el$,{data:y.data})},
lpFaqSectionViewModel:function(y){return _.p(M5x,{data:y.data,themeOverride:E})},
lpHeaderSectionViewModel:function(y){return _.p(t5x,{data:y.data,themeOverride:E})},
lpHeadlineSectionViewModel:function(y){return _.p(Gm$,{data:y.data,themeOverride:E})},
lpLargeFeatureSectionViewModel:function(y){return _.p($Ao,{data:y.data,themeOverride:E})},
lpOfferCardSectionViewModel:function(y){return _.p(HRa,{data:y.data,themeOverride:E})},
lpComplexOfferCardSectionViewModel:function(y){return _.p(pan,{data:y.data})},
lpOfferTableSectionViewModel:function(y){return _.p(ITo,{data:y.data,themeOverride:E})},
lpSmallFeatureSectionGroupViewModel:function(y){return _.p(CsR,{data:y.data,themeOverride:E})},
lpCouponBannerViewModel:function(y){return _.p(JSa,{data:y.data})}}))))},"Vd"),"yt-section-group-view-model",{props:{data:_.H2}});_.bR0=_.r(function(g){var u=_.kq(icq,function(){var y;return(y=g.data())==null?void 0:y.chipBarStateEntityKey}),q=function(){return g.data().disableDeselection},Q=_.N(_.mX(function(){var y;
if(((y=u())==null?void 0:y.selectedIndex)!=void 0)return u().selectedIndex;var v,J;y=_.N(((v=g.data())==null?void 0:(J=v.chips)==null?void 0:J.entries())||[]);for(v=y.next();!v.done;v=y.next()){v=_.N(v.value);J=v.next().value;v=v.next().value;var f=void 0;if((f=_.c(v,_.wS))==null?0:f.selected)return J}return-1})),L=Q.next().value,E=Q.next().value;
return _.p("chip-bar-view-model",{class:_.Ty("ytChipBarViewModelHost",g.className),role:"tablist"},_.p(_.Up,{data:function(){return g.data().chips}},{chipViewModel:function(y,v){return _.p("div",{class:"ytChipBarViewModelChipWrapper"},_.p(_.u3Z,{data:y.data,
selected:function(){return v()===L()},
callback:function(J,f){J=!!f;f=v();E(J?f:-1);var t,e=(t=g.data())==null?void 0:t.chipBarStateEntityKey;e&&J&&_.bU(_.u2("chipBarStateEntity",e,{key:e,selectedIndex:f}))},
disableDeselection:g.disableDeselection||q}))}}))},"Wd");_.dL(_.bR0,"chip-bar-view-model",{props:{data:_.iF,className:_.iF,disableDeselection:_.iF}});_.dAW=_.r(function(g){var u=g.data;g={};return _.p("divider-view-model",{class:_.Ty("dividerViewModelHost",(g.dividerViewModelInsetThinPadding=function(){return u().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},g))},_.p("div",{class:_.Ty("dividerViewModelBaseDivider",function(){return Cju(u().dividerStyle)})}))},"Xd");
_.dAW.idomCompat=!0;_.dL(_.dAW,"divider-view-model",{props:{data:_.H2}});var UI=new Map,g_=new Map,FrF=0,ub;var Wrf=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],Y2J={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var FU$,mA8;FU$=function(g){return function(u){return function(){return(u==null?void 0:u())!==void 0?String(u())+g:void 0}}};
_.GI=FU$("px");mA8=FU$("s");_.$E=new _.Fv("CHUNK_REGISTRY_TOKEN");_.Q5(xdf,{debugName:"shortsLockupViewModel"});_.nS(_.$E,function(g){_.RS(g,"shortsLockupViewModel","dpUCFd",xdf)});var aTi=_.Q5(zuh,{debugName:"shortsLockupViewModelWithDismissible"});_.nS(_.$E,function(g){_.RS(g,"shortsLockupViewModelWithDismissible","U9vrqd",zuh)});var V5W=CeK(function(g){return g.targetGroupId}).useUpdatableData;_.w4=_.r(function(g){function u(LZ){return function(){var sb=d().numItemsPerGridRow,Rm=LZ()*sb;sb=Rm+sb;var M3,tT;return(tT=(M3=Q().contents)==null?void 0:M3.slice(Rm,sb))!=null?tT:[]}}
var q=_.FI(g,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),Q=q.data,L=q.layoutContainerWidth,E=q.shouldUseOwnContainerSize,y=q.marginSettings,v=q.useUpdatedMargin,J=jqS(),f=_.N(V5W(function(){var LZ,sb;return{targetGroupId:(LZ=Q().targetingContext)==null?void 0:(sb=LZ.targetGroupId)==null?void 0:sb[0]}})).next().value;
q=_.N(_.jR(!0,void 0,"CC9Rdb"));var t=q.next().value,e=q.next().value,G=function(){var LZ,sb=(LZ=_.c(Q().showMoreButton,_.Rn))==null?void 0:LZ.trackingParams;sb&&_.nq(_.gL(),sb);e(!1)},R=function(){var LZ,sb=(LZ=_.c(Q().showLessButton,_.Rn))==null?void 0:LZ.trackingParams;
sb&&_.nq(_.gL(),sb);e(!0)};
q=_.N(_.qW({canHaveZeroSize:!1}));var H=q.next().value;q=q.next().value;var l=function(){var LZ;return(LZ=Q().contentAspectRatio)!=null?LZ:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},d=_.G9(function(){var LZ=E()&&H.width()>0?H.width()||L():L(),sb,Rm=(sb=g.data())==null?void 0:sb.responsiveContainerConfiguration;
LZ=_.Gk({containerWidth:LZ,sizing:Rm?$y(Rm==null?void 0:Rm.responsiveSize):"EXTRA_COMPACT",marginSettings:y(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:LZ.maxContainerWidth,numItemsPerGridRow:LZ.numItems,contentPadding:E()?LZ.margin:LZ.contentMargin,itemWidth:LZ.itemWidth,itemMargin:LZ.gutter/2}},void 0,"YIvnde"),F=function(){if(Q().enableVerticalExpansion){if(t())return V();
var LZ,sb,Rm=(sb=(LZ=Q().contents)==null?void 0:LZ.length)!=null?sb:0;return Math.ceil(Rm/d().numItemsPerGridRow)}return d().numItemsPerGridRow<=2?2:1},V=function(){var LZ;
return Math.ceil(((LZ=Q().minCollapsedItemCount)!=null?LZ:1)/d().numItemsPerGridRow)},z=function(){return Q().enableVerticalExpansion&&Q().showLessButton&&!t()&&F()>V()},O=function(){var LZ,sb;
return Q().enableVerticalExpansion&&Q().showMoreButton&&t()&&((sb=(LZ=Q().contents)==null?void 0:LZ.length)!=null?sb:0)>d().numItemsPerGridRow*V()},W=function(){return!z()},x=function(){return!O()},k={};
return _.p("grid-shelf-view-model",{class:_.Ty("ytGridShelfViewModelHost",g.className,(k.ytGridShelfViewModelHostHasBottomButton=function(){return z()||O()},k.ytGridShelfViewModelHostIsDismissed=function(){var LZ,sb=(LZ=f())!=null?LZ:{};
LZ=sb.behavior;var Rm=sb.isDismissed,M3=sb.stamperContextTargetId;sb=sb.stamperIndex;if(!(_.w("mweb_see_fewer_shorts_group_dismissal")&&Rm&&LZ&&M3))return!1;var tT;Rm=J;for(var mJ,hT,Yu=((mJ=Rm)==null?0:mJ.targetId)?_.mV((hT=Rm)==null?void 0:hT.targetId):void 0;((tT=Rm)==null?0:tT.parent)&&Yu!==M3;)Rm=Rm.parent,hT=mJ=void 0,Yu=((mJ=Rm)==null?0:mJ.targetId)?_.mV((hT=Rm)==null?void 0:hT.targetId):void 0;tT=Yu===M3?Rm:void 0;if(!tT)return!1;var Mx;M3=tT==null?void 0:(Mx=tT.stamperIndex)==null?void 0:
Mx.call(tT);return LZ==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||LZ==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&M3!=null&&sb!=null&&M3>sb},k.ytGridShelfViewModelHostOptionalMediumLayoutMargin=v,k)),
el:_.lF(q),style:_.xH({"margin-left":(0,_.GI)(function(){return d().contentPadding}),
"margin-right":(0,_.GI)(function(){return d().contentPadding})})},_.p(_.M,{cond:function(){return _.c(Q().header,x5a)},
then:function(LZ){return _.p(_.US,{data:LZ,useUpdatedPadding:v,disableHorizontalPadding:!0})}}),_.p("div",null,_.p(_.R4,{each:function(){return Array(F())}},function(LZ,sb){return _.p(Xa8,{className:g.className,
items:u(sb),responsiveGridShelfLayout:d,contentAspectRatio:l})})),_.p("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.p(_.Up,{data:function(){return Q().showMoreButton}},{buttonViewModel:function(LZ){return _.p("div",{hidden:x},_.p(_.TT,{data:LZ.data,
onClick:G}))}}),_.p(_.Up,{data:function(){return Q().showLessButton}},{buttonViewModel:function(LZ){return _.p("div",{hidden:W},_.p(_.TT,{data:LZ.data,
onClick:R}))}})))},"Zd");
_.w4.idomCompat=!0;var Xa8=_.r(function(g){var u=g.items;var q=g.responsiveGridShelfLayout;var Q=g.contentAspectRatio;g=g.className;var L=(0,_.GI)(function(){return-q().itemMargin});
return _.p("div",{el:_.lF(ddJ(function(E){a:{for(var y=u(),v=[],J=0;J<y.length;J++){var f=_.c(y[J],cXR);if(!f||f==null||!f.inlinePlayerData){E=null;break a}var t=E.children.item(J);if(!t){E=null;break a}v.push({thumbnailElement:t,videoData:f})}E={gridVideoPreviewData:{gridItems:v}}}return E})),
class:_.Ty("ytGridShelfViewModelGridShelfRow",g),style:_.xH({"margin-left":L,"margin-right":L})},_.p(_.Up,{data:u,replacementWrapper:function(E){return _.p(rSW,{responsiveGridShelfLayout:q},E)}},{shortsLockupViewModel:function(E){return _.p(rSW,{responsiveGridShelfLayout:q},_.p(aTi,{data:E.data,
aspectRatio:function(){return Q()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.w("mweb_enable_one_line_title_on_shorts")?1:_.w("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(E){return _.p(rSW,{responsiveGridShelfLayout:q},_.p(_.nG,{data:E.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"$d"),rSW=_.r(function(g){return _.p("div",{style:_.xH({width:(0,_.GI)(function(){return g.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+g.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},g.children)},"ae");
_.w4.idomCompat=!0;_.dL(_.w4,"grid-shelf-view-model",{props:{data:_.H2,layoutContainerWidth:_.H2,shouldUseOwnContainerSize:_.H2,marginSettings:_.H2,useUpdatedMargin:_.H2,className:_.H2}});_.WU5=_.r(function(g){var u=_.N(_.jR(!1,void 0,"FVl30c")),q=u.next().value,Q=u.next().value;u={};return _.p("yt-alert-banner-view-model",{class:_.Ty("ytAlertBannerViewModelHost",g.className,function(){var L;a:switch((L=g.data())==null?void 0:L.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":L="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":L="ytAlertBannerViewModelWarning";break a;default:L="ytAlertBannerViewModelInformational"}return L},(u.ytAlertBannerViewModelDismissed=
q,u.ytAlertBannerViewModelFullbleed=g.fullbleed,u.ytAlertBannerViewModelNarrow=g.narrow,u.ytAlertBannerViewModelIsInRichGrid=g.isInRichGrid,u))},_.p(_.M,{cond:function(){var L;
return!((L=g.data())==null?0:L.hideIcon)},
then:function(){return _.p("div",{class:"ytAlertBannerViewModelIcon"},_.p(_.B1,{icon:function(){return"info_circle"}}))}}),_.p("div",{class:"ytAlertBannerViewModelOuterContainer"},_.p("div",{class:"ytAlertBannerViewModelContainer"},_.p("div",{class:"ytAlertBannerViewModelContent"},_.p("div",{class:"ytAlertBannerViewModelHeading"},_.p(_.c2,{text:function(){var L;
return(L=g.data())==null?void 0:L.heading}})),_.p("div",{class:"ytAlertBannerViewModelBody"},_.p(_.c2,{text:function(){var L;
return(L=g.data())==null?void 0:L.body}})))),_.p(_.Up,{data:function(){var L;
return(L=g.data())==null?void 0:L.actionButton}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.p(_.Up,{data:function(){var L;
return(L=g.data())==null?void 0:L.dismissButton}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var E;((E=g.data())==null?0:E.disableLocalDismissBehavior)||Q(!0)}})}}))},"be");_.dL(_.WU5,"yt-alert-banner-view-model",{props:{data:_.H2,fullbleed:_.H2,narrow:_.H2,isInRichGrid:_.H2,className:_.H2}});var TIW;_.cQ=_.r(function(g){return _.p("basic-content-view-model",{class:_.Ty("ytBasicContentViewModelHost",_.dO(g.className))},_.p(_.M,{cond:function(){return g.data().headline},
then:function(u){return _.p("div",{class:"ytBasicContentViewModelHeadline"},_.p(_.c2,{text:u}))}}),_.p(_.R4,{each:function(){return g.data().paragraphs||[]},
keyBy:"INDEX"},function(u){return _.p("div",{class:"ytBasicContentViewModelParagraph"},_.p(_.M,{cond:function(){var q=u();return!!(q.header||q.customHeader||q.headline)},
then:function(){return _.p(TIW,{paragraph:u})}}),_.p(_.M,{cond:function(){return u().asset||u().text},
then:function(){return _.p("div",{class:"ytBasicContentViewModelParagraphContent"},_.p(_.M,{cond:function(){return u().asset},
then:function(q){return _.p("div",{class:"ytBasicContentViewModelParagraphAsset"},_.p(_.Up,{data:q},{contentPreviewImageViewModel:_.hW}))}}),_.p(_.M,{cond:function(){return u().text},
then:function(q){return _.p("div",{class:"ytBasicContentViewModelParagraphText"},_.p(_.c2,{text:q}))}}))}}))}))},"ce");
TIW=_.r(function(g){var u=g.paragraph;return _.p(_.U9,null,_.p(_.M,{cond:function(){return u().headline},
then:function(q){return _.p(_.c2,{text:q,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.p(_.Up,{data:function(){return u().header||u().customHeader}},{sectionHeaderViewModel:function(q){return _.p(_.US,{data:q.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"de");_.hlb=_.r(function(g){function u(){var R,H;J((H=(R=L)==null?void 0:R.isKeyBoardInUse())!=null?H:!1)}
function q(){J(!1)}
function Q(){var R;return v()?(R=g.focusedClassName)==null?void 0:R.call(g):""}
var L=_.Bk().resolve(_.xv(_.m5)),E=_.N(_.jR(!1,void 0,"SgkTXc")),y=E.next().value;E=E.next().value;var v=y,J=E,f=function(){var R,H;return((R=g.toggleable)==null?0:R.call(g))?(H=g.toggled)==null?void 0:H.call(g):void 0},t=_.YH(function(R){var H,l=(H=g.command)==null?void 0:H.call(g);
l&&_.Bk().resolve(_.Gy).resolveCommand(l);var d;(d=g.onClick)==null||d.call(g,R)}),e=_.YH(u),G=_.YH(q);
return _.p(_.M,{cond:function(){var R;if(R=g.command){R=g.command();R=YLq(R);var H=R.href;R=!(!R.navigatingCommand||!H)}return R},
then:function(){return _.p(_.ag,Object.assign({},{command:g.command,style:g.style,ariaDescribedby:g.ariaDescribedby,ariaHidden:g.ariaHidden,ariaLabel:g.ariaLabel,ariaLabelledby:g.ariaLabelledby,ariaSelected:g.ariaSelected,disabled:g.disabled,dir:g.dir,tabIndex:g.tabIndex,target:g.target,title:g.title,onClick:g.onClick},{className:_.Ty("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",g.className,function(){return Q()}),
onFocusin:u,onFocusout:q,ariaCurrent:function(){var R,H;return(H=(R=g.ariaCurrent)==null?void 0:R.call(g))!=null?H:f()}}),g.children)},
else:function(){return _.p("button",{"on:click":t,"on:focusin":e,"on:focusout":G,class:_.Ty("ytButtonOrAnchorHost","ytButtonOrAnchorButton",g.className,function(){return Q()}),
style:g.style,"aria-describedby":g.ariaDescribedby,"aria-hidden":g.ariaHidden,"aria-label":g.ariaLabel,"aria-labelledby":g.ariaLabelledby,"aria-pressed":f,dir:g.dir,disabled:g.disabled,tabindex:g.tabIndex,title:g.title},g.children)}})},"ee");var Yq$=_.r(function(g){g=_.FI(g,{disabled:!1});var u=g.active,q=g.disabled;g={};g=_.Ty("ytSwitchShapeTrack",(g.ytSwitchShapeTrackActive=function(){return u()},g.ytSwitchShapeTrackDisabled=function(){return q()},g));
var Q={};Q=_.Ty("ytSwitchShapeKnob",(Q.ytSwitchShapeKnobActive=function(){return u()},Q));
return _.p("switch-shape",{class:"ytSwitchShapeHost"},_.p("div",{class:g}),_.p("div",{class:Q}))},"fe");var ORX=_.r(function(g){var u=_.FI(g,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),q=u.data;g=u.className;var Q=u.handleOnTapEventInParent,L=u.parentActive,E=u.onTap;u=_.N(_.mX(function(){var G;return(G=L())!=null?G:q().switchedOnByDefault||!1}));
var y=u.next().value,v=u.next().value,J=function(){return q().isDisabled},f=_.Hk("button");
u=_.YH(function(G){return G.key==="Enter"?(G.preventDefault(),f.value.click(),!1):!0});
var t=_.YH(function(G){if(q().handleOnTapEventInParent||Q())return!0;if(J())return!1;if(E)return E(G),!0;klM(q(),y(),G);v(!y());return!1}),e={};
e=_.Ty("ytSwitchButtonViewModelButton",(e.ytSwitchButtonViewModelTappable=function(){return!J()},e));
return _.p("switch-button-view-model",{class:_.Ty("ytSwitchButtonViewModelHost",g)},_.p("button",{el:f,class:e,"on:click":t,"on:keydown":u,"aria-label":function(){return y()?q().a11yLabelSwitchedOn:q().a11yLabelSwitchedOff},
"aria-checked":y,"aria-disabled":J,role:"switch"},_.p(Yq$,{active:y,disabled:J})))},"ge");var KUR=_.r(function(g){var u=g.data;var q=g.isLeading;var Q=g.hideSelectionTextChevron;var L=g.isToggled;var E=g.shouldNotFillIcon;var y=function(){if(q())var e=u().leadingImage;else{var G;e=(G=u().trailingImage)!=null?G:_.Rs(u().themedTrailingImage)}return e},v=function(){a:switch(u().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var e="expand_more";
break a;default:e="chevron_right"}return e};
g={};var J=_.Ty("yt-list-item-view-model__image-container",(g["yt-list-item-view-model__leading"]=q,g["yt-list-item-view-model__trailing"]=function(){return!q()},g)),f=_.Ty("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
g={};var t=_.Ty("yt-list-item-view-model__accessory",(g["yt-list-item-view-model__leading"]=q,g["yt-list-item-view-model__trailing"]=function(){return!q()},g));
return _.p(_.M,{cond:function(){var e=u(),G=q();return!!(G&&(e.leadingImage||e.leadingAccessory)||!G&&(e.trailingImage||e.trailingButton||e.trailingButtons||e.selectionText||e.themedTrailingImage||e.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.p(_.U9,null,_.p(_.M,{cond:y,then:function(e){return _.p("div",{class:J,"aria-hidden":"true"},_.p(_.IT,{data:e,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var G=(q()?u().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":u().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?q()?Udm(u().leadingIconAccessorySize):Udm(u().trailingIconAccessorySize):void 0;return G},
className:f,isToggled:function(){return!(E==null?0:E())&&(L==null?void 0:L())}}))}}),_.p(_.M,{cond:function(){return q()&&u().leadingAccessory},
then:function(){return _.p("div",{class:J},_.p(_.Up,{data:function(){return u().leadingAccessory}},{avatarViewModel:function(e){return _.p(_.jv,{data:e.data,
avatarButtonCustomClassName:f})},
collectionThumbnailViewModel:function(e){return _.p(Uh$,{data:e.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.p(_.M,{cond:function(){return!q()&&u().trailingButton},
then:function(){return _.p("div",{class:"yt-list-item-view-model__button-container"},_.p(_.Up,{data:function(){return u().trailingButton}},{buttonViewModel:function(e){return _.p(_.TT,{data:e.data,
className:t})}}))}}),_.p(_.M,{cond:function(){var e;
return!q()&&((e=u().trailingButtons)==null?void 0:e.buttons)},
then:function(){return _.p("div",{class:"yt-list-item-view-model__button-container"},_.p(_.Up,{data:function(){var e;return(e=u().trailingButtons)==null?void 0:e.buttons}},{buttonViewModel:function(e){return _.p(_.TT,{data:e.data,
className:t})},
accountLinkButtonViewModel:function(e){return _.p(Wh5,{data:e.data,className:t})},
switchButtonViewModel:function(e){return _.p(ORX,{data:e.data,className:t})},
subscribeButtonViewModel:function(e){return _.p(_.jt,{data:e.data,isOverlay:!1,animateWidth:!1,className:t})},
toggleButtonViewModel:function(e){return _.p(_.E6,{data:e.data,className:t})}}))}}),_.p(_.M,{cond:function(){return!q()&&!!u().selectionText},
then:function(){return _.p(_.U9,null,_.p(_.c2,{text:function(){return u().selectionText},
className:_.Ty("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.p(_.M,{cond:function(){return!(Q==null?0:Q())},
then:function(){return _.p(_.B1,{icon:v,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.p(_.M,{cond:function(){return!q()&&u().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.p("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"he");var xAb=_.r(function(g){var u=g.data;return _.p(_.M,{cond:function(){return u().title||u().subtitle},
then:function(){return _.p("div",{class:"yt-list-item-view-model__text-wrapper"},_.p(_.M,{cond:function(){return u().title},
then:function(q){return _.p("div",{class:"yt-list-item-view-model__title-wrapper"},_.p(_.c2,{text:q,className:"yt-list-item-view-model__title"}))}}),_.p(_.M,{cond:function(){return u().subtitle},
then:function(q){return _.p(_.c2,{text:q,className:"yt-list-item-view-model__subtitle"})}}))}})},"ie");var BI$=_.r(function(g){var u=g.data;var q=g.hideSelectionTextChevron;var Q=g.TrailingAccessory;var L=g.isToggled;var E=g.disabled;var y=g.isSelectItem;var v=g.isCompact;var J=g.inPopup;var f=g.disableHorizontalPadding;var t=g.isTappableWithoutSelect;var e=g.useButtonOrAnchor;var G=g.onTap;var R=g.shouldNotFillIcon;var H=function(){return _.p(xAb,{data:u,onTap:G,useButtonOrAnchor:e,isTappableWithoutSelect:t,isToggled:L})};
g={};return _.p("div",{class:_.Ty("yt-list-item-view-model__label",(g["yt-list-item-view-model__container"]=function(){return!(y==null?0:y())},g["yt-list-item-view-model__container--disabled"]=function(){return!!u().isDisabled||!(E==null||!E())},g["yt-list-item-view-model__container--has-subtitle"]=function(){return!!u().subtitle},g["yt-list-item-view-model__container--compact"]=v,g["yt-list-item-view-model__container--tappable"]=t,g["yt-list-item-view-model__container--in-popup"]=J,g["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(f==null?void 0:f())&&!(y==null?0:y())},g))},_.p(KUR,{data:u,
isLeading:!0,hideSelectionTextChevron:q,isToggled:L,shouldNotFillIcon:R}),_.p(_.M,{cond:function(){return(e==null?void 0:e())&&(t==null?void 0:t())},
then:function(){return _.p(_.hlb,{command:function(){return _.D7(u().rendererContext)},
onClick:G,className:"yt-list-item-view-model__button-or-anchor",toggleable:L!==void 0,toggled:L},_.p(H,null))},
else:function(){return _.p(H,null)}}),_.p(_.M,{cond:function(){return!!Q},
then:function(){return _.p("div",{class:"yt-list-item-view-model__trailing"},Q&&_.p(Q,null))},
else:function(){return _.p(KUR,{data:u,isLeading:!1,hideSelectionTextChevron:q,isToggled:L,shouldNotFillIcon:R})}}))},"je");var nRo=_.r(function(g){var u=_.FI(g,{checked:!1,disabled:!1});g=u.name;var q=u.onChange,Q=u.onClick,L=u.checked,E=u.labelRenderable,y=u.hasLeadingLabel,v=u.labelClass,J=u.isCompact,f=u.selectElementClass,t=u.disableHorizontalPadding;u=u.disabled;var e="checkbox"+_.M6(_.eu),G=_.YH(function(l){Q==null||Q(l);return!1}),R=_.YH(function(l){q==null||q(l);
return!1}),H={};
return _.p("checkbox-shape",null,_.p("label",{class:_.Ty("ytCheckboxShapeHost",v,(H.ytCheckboxShapeHostCompact=J,H.ytCheckboxShapeDisableHorizontalPadding=t,H))},_.p("input",{class:"ytCheckboxShapeInput",id:e,checked:L,name:g,type:"checkbox",disabled:u,"prop:checked":L,"on:change":R,"on:click":G}),_.p(_.M,{cond:function(){return!(y==null?0:y())},
then:function(){return _.p(zla,{isLeading:!0,selectElementClass:f})}}),_.p(_.M,{cond:function(){return!!E},
then:function(){return _.p("div",{class:"ytCheckboxShapeLabel"},E==null?void 0:E())}}),_.p(_.M,{cond:y,
then:function(){return _.p(zla,{isLeading:!1,selectElementClass:f})}})))},"ke");
nRo.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var zla=_.r(function(g){var u=g.selectElementClass;g={};return _.p("div",{class:_.Ty("ytCheckboxShapeCheckbox",u,(g.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(u==null?0:u())},g)),
"aria-hidden":"true"},_.p(_.B1,{icon:_.w("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.p(_.B1,{icon:_.w("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"le");_.HQ=_.r(function(g){var u=g.name;var q=g.onChange;var Q=g.onClick;var L=g.checked;var E=g.labelRenderable;var y=g.useCheckIcon;var v=g.hasLeadingLabel;var J=g.labelClass;var f=g.isCompact;var t=g.selectElementClass;var e=g.ariaLabel;var G=g.className;g=g.disabled;var R="radio"+_.M6(_.eu),H=_.Hk("input"),l=_.w("enable_ios_webview_radio_button_responsiveness"),d=_.YH(function(k){H.value.checked=!(L==null||!L());q==null||q(k);return!1}),F=_.YH(function(k){Q==null||Q(k);
return!1}),V=_.N(_.jR(!1,void 0,"Ucg5gd")),z=V.next().value,O=V.next().value;
V=_.YH(function(){var k;((k=_.Bk().resolve(_.xv(_.m5)))==null?0:k.isKeyBoardInUse())&&O(!0)});
var W=_.YH(function(){O(!1)}),x={};
return _.p("radio-shape",{class:_.Ty("yt-radio-shape",G)},_.p("input",{el:H,class:"yt-radio-shape__input",id:R,"prop:checked":L,name:u,type:"radio",disabled:g,"on:change":d,"on:click":F,"aria-label":e,"on:focusin":V,"on:focusout":W}),_.p("label",{class:_.Ty("yt-radio-shape__label-container",J,(x["yt-radio-shape--compact"]=f,x["yt-radio-shape__label-container--keyboard-focused"]=z,x)),for:R},_.p(_.M,{cond:function(){return!(v==null?0:v())},
then:function(){return _.p(km$,{checked:L,useCheckIcon:y,isLeading:!0,selectElementClass:t,usePassthrough:l})}}),_.p(_.M,{cond:function(){return!!E},
then:function(){var k={};return _.p("div",{class:_.Ty("yt-radio-shape__label",(k["yt-radio-shape--event-passthrough"]=l,k)),"aria-hidden":function(){return(e==null?0:e())?"true":"false"}},E==null?void 0:E())}}),_.p(_.M,{cond:v,
then:function(){return _.p(km$,{checked:L,useCheckIcon:y,isLeading:!1,selectElementClass:t,usePassthrough:l})}})))},"me");
_.HQ.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};
var km$=_.r(function(g){var u=g.useCheckIcon;var q=g.selectElementClass;g=g.usePassthrough;var Q=_.w("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE",L=_.w("enable_web_delhi_icons")?"CIRCLE_FULL":Q,E={};return _.p("div",{class:_.Ty("yt-radio-shape__radio",q,(E["yt-radio-shape__radio--check-icon"]=u,E["yt-radio-shape__radio--radio-default-style"]=function(){return!(q==null?0:q())},E["yt-radio-shape--event-passthrough"]=g,E)),
"aria-hidden":"true"},_.p(_.B1,{icon:function(){return(u==null?0:u())?"CHECK":Q}}),_.p(_.B1,{icon:function(){return(u==null?0:u())?"CHECK":L},
active:function(){return!(u==null?0:u())}}))},"ne");_.A8=_.r(function(g){var u=g.data;var q=g.isMenuItem;var Q=g.isCompact;var L=g.onTap;var E=g.trailingAccessory;var y=g.hideSelectionTextChevron;var v=g.disabled;var J=g.inPopup;var f=g.disableHorizontalPadding;var t=g.isOverlay;var e=g.isToggled;var G=g.ariaLabel;var R=g.ariaPressed;var H=g.shouldNotFillIcon;var l=!_.w("web_enable_killswitch_for_selectable_list_item_on_tap_fix");g=!_.w("web_enable_killswitch_for_skip_child_tags");var d=_.Sy(function(po){return gXK(u(),po)}),F=function(){return(f==
null?void 0:f())||u().disableHorizontalPadding},V=function(){var po;
return!((po=u())==null||!po.entitySelectorType)},z=function(){return V()?Object.assign({},u(),d().data):u()},O=function(){return!!z().isDisabled||!(v==null||!v())},W=_.qNS(function(){return z().rendererContext}),x=function(){return!(z().isSelected===void 0||!z().selectionStyle||z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},k=function(){return(_.pn(z().rendererContext)||L)&&!x()},LZ={},sb=_.Ty("yt-list-item-view-model__container",(LZ["yt-list-item-view-model__container--tappable"]=
function(){return _.pn(z().rendererContext)||x()},LZ["yt-list-item-view-model__container--compact"]=Q,LZ["yt-list-item-view-model__container--in-popup"]=J,LZ["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(F==null?void 0:F())&&x()},LZ)),Rm=function(){return z().leadingImage||z().leadingAccessory},M3=_.Ty("yt-list-item-view-model__image-container",function(){return Rm()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
LZ=_.sI();var tT=_.N(_.jR(!1,void 0,"ef0FO")),mJ=tT.next().value,hT=tT.next().value,Yu=function(){return _.p(BI$,{data:z,hideSelectionTextChevron:y,TrailingAccessory:E,isToggled:e,disabled:v,isSelectItem:x,isCompact:Q,inPopup:J,disableHorizontalPadding:F,isTappableWithoutSelect:k,useButtonOrAnchor:Mx,onTap:L,shouldNotFillIcon:H})},Mx=_.w("web_button_or_anchor_list_item");
tT={};return _.p("yt-list-item-view-model",{el:_.lF(_.J7(function(){return O()?void 0:z().rendererContext},void 0,void 0,Mx?["A".toString(),
"BUTTON".toString()]:[]),ucm(function(po){if(!O()){var KZ;if(KZ=l)KZ=z().selectionStyle,KZ=KZ==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||KZ==="LIST_ITEM_SELECTION_STYLE_RADIO"||KZ==="LIST_ITEM_SELECTION_STYLE_DEFAULT";KZ||L==null||L(po)}},g?["A".toString(),
"BUTTON".toString()]:[]),vNZ(function(){return k==null?void 0:k()},{focusin:function(){var po;
((po=_.Bk().resolve(_.xv(_.m5)))==null?0:po.isKeyBoardInUse())&&hT(!0)},
focusout:function(){hT(!1)}})),
class:_.Ty("yt-list-item-view-model",(tT["yt-list-item-view-model--is-overlay"]=t,tT["yt-list-item-view-model--keyboard-focused"]=mJ,tT["yt-list-item-view-model--hidden"]=function(){return V()?d().isHidden:!1},tT)),
role:function(){return(q==null?0:q())?"menuitem":"listitem"},
tabindex:function(){var po=k();var KZ=Mx;x();po=KZ?void 0:_.w("web_enable_killswitch_tabindex_fix")?L||po?0:void 0:po?0:void 0;return po},
"on:keydown":LZ,"aria-label":function(){var po;return(G==null?void 0:G())||((po=W())==null?void 0:po.label)},
"aria-pressed":R},_.p(_.M,{cond:x,then:function(){return _.p(_.wi,null,_.p(_.Gv,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.p(nRo,{labelRenderable:Yu,
isCompact:Q,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Rm()},
labelClass:sb,selectElementClass:M3,disableHorizontalPadding:F,onClick:l?L:void 0,disabled:O})}),_.p(_.Gv,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.p(_.HQ,{labelRenderable:Yu,
isCompact:Q,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Rm()},
labelClass:sb,selectElementClass:M3,onClick:l?L:void 0,disabled:O})}),_.p(_.Gv,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.p(_.HQ,{labelRenderable:Yu,
isCompact:Q,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Rm()},
labelClass:sb,selectElementClass:M3,useCheckIcon:!0,onClick:l?L:void 0,disabled:O})}),_.p(_.$v,null,Yu))},
else:Yu}))},"oe");
_.A8.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Zd=_.r(function(g){var u=_.N(_.qW({canHaveZeroSize:!1})),q=u.next().value;u=u.next().value;var Q=function(){return jZq(q.width(),g.data().responsiveContainerConfiguration)||ycu(q.width(),g.data().linearLayoutContainerConfiguration)};
return _.p("yt-linear-layout-view-model",{el:_.lF(u),class:"ytLinearLayoutViewModelHost"},_.p("div",{class:_.Ty("ytLinearLayoutViewModelContainer",function(){a:switch(g.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var L="ytLinearLayoutViewModelHorizontal";break a;default:L="ytLinearLayoutViewModelVertical"}return L},function(){var L=g.data().linearLayoutContainerConfiguration;
return L?[Pcq(L.flexDirection),NYu(L.justifyContent),sZh(L.alignItems)].join(" "):""}),
style:function(){var L;var E=((L=Q())==null?void 0:L.containerStyles)||{};return _.xH(E)()}},_.p(_.Up,{data:function(){return g.data().items},
wrapper:function(L,E,y){return _.p("div",{style:function(){var v=y(),J;if((J=Q())==null)v=void 0;else{var f=J.itemStyles,t,e;var G=(e=(t=g.data().items)==null?void 0:t.length)!=null?e:0;v=f.call(J,v===0,v===G-1)}return _.xH(v||{})()}},L())}},{lockupViewModel:function(L){return _.p(_.nG,{data:L.data,
containerLayoutConfig:function(){var E;return(E=Q())==null?void 0:E.containerLayoutConfig}})},
basicContentViewModel:_.cQ,buttonViewModel:_.TT,linearLayoutViewModel:_.Zd,thumbnailViewModel:VL,descriptionPreviewViewModel:_.ov,listItemViewModel:_.A8,sectionHeaderViewModel:_.US})))},"pe");_.dL(_.Zd,"yt-linear-layout-view-model",{props:{data:_.H2}});_.dL(_.UJ,"chips-shelf-view-model",{props:{data:_.H2,callback:_.iF,selectionBehavior:_.H2,disableChipsScrollAnimation:_.H2,nextButtonStyle:_.H2}});_.dL(_.r(function(g){return _.p("yt-comment-filter-context-view-model",{class:_.Ty("ytCommentFilterContextHost",g.className)},_.p(_.c2,{text:function(){return g.data().text}}))},"qe"),"yt-comment-filter-context-view-model",{props:{data:_.H2,
className:_.iF}});_.Sqn=_.r(function(g){var u=g.data;var q=g.onTap;var Q=g.onSwitch;var L=g.overrideDisabled;g=g.disableHorizontalPadding;var E=_.N(_.mX(function(){var G;return((G=ojb(t()))==null?void 0:G.switchedOnByDefault)||!1})),y=E.next().value,v=E.next().value;
E=_.N(_.jR(!1,void 0,"V0hCrd"));var J=E.next().value,f=E.next().value,t=function(){var G;if(!(G=u().switchButton)){var R=u();G=L==null?void 0:L();R={switchOnCommand:R.switchOnCommand,switchOffCommand:R.switchOffCommand,switchedOnByDefault:R.switchedOnByDefault,isDisabled:R.isDisabled,a11yLabelSwitchedOn:R.a11yLabelSwitchedOn,a11yLabelSwitchedOff:R.a11yLabelSwitchedOff};G!==void 0&&(R.isDisabled=G);G={switchButtonViewModel:R}}return G},e=function(G){var R=ojb(t());
!R||R.isDisabled||u().ignoreTapUntilCommandCompletes&&J()||(q==null||q(G),klM(R,y(),G,u().ignoreTapUntilCommandCompletes,f),v(!y()),Q==null||Q(y()))};
return _.p("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.p(_.A8,{data:function(){return{title:u().title,subtitle:u().attributedSubtitle,leadingImage:u().leadingImage,leadingAccessory:u().leadingAccessory,isDisabled:u().isDisabled}},
onTap:e,isToggled:y,shouldNotFillIcon:!0,trailingAccessory:function(){return _.p(_.Up,{data:t},{switchButtonViewModel:function(G){return _.p(ORX,{data:G.data,parentActive:y,onTap:e})}})},
disableHorizontalPadding:g}))},"re");var oRo=_.r(function(g){var u=g.data;g=g.className;var q=function(){var v;return((v=Q())==null?void 0:v.isToggled)!==void 0},Q=_.Sy(function(v){a:{var J=u().entityKey,f=u().entitySelectorType;
if(f)switch(f){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":if(!J)break;var t,e;v={isToggled:(e=(t=_.LF.toggleMenuServiceItemEntitySelector(v,J))==null?void 0:t.isToggled)!=null?e:!1};break a;default:_.Io(new _.Ji("Error: entitySelectorType defined but not matched in selector.",v,f))}v=void 0}return v}),L=_.N(_.mX(function(){var v,J,f;
return q()?(v=Q())==null?void 0:v.isToggled:(J=u())==null?void 0:(f=J.initialState)==null?void 0:f.isToggled})),E=L.next().value,y=L.next().value;
return _.p("toggleable-list-item-view-model",{el:_.lF(_.J7(function(){return u().rendererContext},{onTap:function(v,J){J();
q()||y(!E())}})),
class:_.Ty("toggleableListItemViewModelHost",g)},_.p(_.M,{cond:function(){if(E()){var v=u().toggledListItem;v=_.c(v,_.Q4)}else v=u().defaultListItem,v=_.c(v,_.Q4);return v},
then:function(v){return _.p(_.A8,{data:v,isToggled:E,ariaLabel:function(){var J=E()?u().toggledListItem:u().defaultListItem,f;J=(f=_.c(J,_.Q4))==null?void 0:f.rendererContext;var t;return(t=_.c(J,_.L3))==null?void 0:t.label},
ariaPressed:function(){return E()}})}}))},"se");var UAW=_.Ug("DOWNLOAD",{},"Download"),guH=_.Ug("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),ufK=_.Ug("RETRY",{},"Retry"),qbH=_.Ug("PAUSE_DOWNLOADING",{},"Pause downloading"),QmK=_.Ug("RESUME_DOWNLOAD",{},"Resume download"),fJK={text:UAW,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Ef={text:guH,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},eHf={text:ufK,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
M1M={text:qbH,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},t1K={text:QmK,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var LJK=_.r(function(g){var u=function(){var v=g.data();v=_.D7(v.rendererContext);var J;return(J=_.c(v,_.zc))==null?void 0:J.videoId},q=_.Sy(function(v){var J=u(),f=RHT(g.data());
return J?_.tD(v,J):f?_.eb(v,f):"TRANSFER_STATE_UNKNOWN"}),Q=_.kq(_.ToT,u),L=_.Sy(function(v){return _.Ffm(v,u(),RHT(g.data()))}),E=function(){return $tF(q(),Q(),_.D7(g.data().rendererContext),!!RHT(g.data()))},y=function(){return L()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.p("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:y},_.p(_.M,{cond:function(){return!y()},
then:function(){return _.p(_.M,{cond:E,then:function(v){return _.p(_.R4,{each:v},function(J){return _.p(_.A8,{data:J,isCompact:g.isCompact,isMenuItem:g.isMenuItem,inPopup:g.inPopup,disableHorizontalPadding:g.disableHorizontalPadding})})}})}}))},"te");
LJK.idomCompat=!0;_.Eu9=_.r(function(g){var u=g.data;var q=g.isCompact;var Q=g.hideSelectionTextChevron;var L=g.inPopup;var E=g.isOverlay;var y=g.disableHorizontalPadding;var v=function(){return wPk(u())&&(L==null?void 0:L())},J=_.w("web_list_view_model_listbox_killswitch")?"menu":"listbox";
g=_.YH(function(t){if(L!=null&&L()&&_.w("web_enable_arrow_key_navigation_in_dropdown")){var e=_.Nqm(t.currentTarget);if(e.length!==0){var G=Array.prototype.indexOf.call(e,document.activeElement);switch(t.key){case "ArrowDown":t.preventDefault();ccS(e,G);break;case "ArrowUp":t.preventDefault();Hkm(e,G);break;case "Tab":t.preventDefault(),t.shiftKey?Hkm(e,G):ccS(e,G)}}}});
var f={};return _.p("yt-list-view-model",{class:_.Ty("ytListViewModelHost",(f.ytListViewModelHostKaiosSpatNav=tSu&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",f)),role:function(){return v()?J:"list"},
style:_.xH({"max-height":function(){var t,e=(t=u())==null?void 0:t.visibleElementCount;if(e)return(e+.5)*40+"px"}}),
"on:keydown":g},_.p(_.Up,{data:function(){return u().listItems}},{listItemViewModel:function(t){return _.p(_.A8,{data:t.data,
isMenuItem:v,isCompact:q,hideSelectionTextChevron:Q,inPopup:L,isOverlay:E,disableHorizontalPadding:y})},
toggleableListItemViewModel:function(t){return _.p(oRo,{data:t.data})},
downloadListItemViewModel:function(t){return _.p(LJK,{data:t.data,isMenuItem:v,isCompact:q,inPopup:L,disableHorizontalPadding:y})},
switchListItemViewModel:function(t){return _.p(_.Sqn,{data:t.data,disableHorizontalPadding:y})}}))},"ue");
_.Eu9.idomCompat=!0;var Php=_.r(function(g){var u=g.data;var q=g.isOverlay;g={};return _.p("yt-course-perks-view-model",{class:_.Ty("ytwCoursePerksViewModelHost",(g.ytwCoursePerksViewModelHostOverlay=q,g))},_.p("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.p(_.c2,{text:function(){return u().title}})),_.p("div",null,_.p(_.M,{cond:function(){return u().perks},
then:function(Q){return _.p(_.Eu9,{data:function(){return{listItems:Q()}},
isCompact:!0,isOverlay:q})}})))},"ve");_.dL(Php,"yt-course-perks-view-model",{props:{data:_.iF,isOverlay:_.iF}});_.dL(_.r(function(g){var u=g.data;return _.p("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.p("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.p(_.c2,{text:function(){return u().title}})),_.p("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.p(_.c2,{text:function(){return u().progressSummary}})),_.p("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.p("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.xH({width:function(){return u().progressPercentage*100+"%"}})})))},"we"),"yt-course-progress-view-model",{props:{data:_.H2}});var NqH=_.r(function(g){var u={};return _.p("yt-progress-view-model",{class:_.Ty("ytwProgressViewModelHost",(u.ytwProgressViewModelHostOverlay=_.dO(g.isOverlay,!1),u))},_.p(_.M,{cond:function(){return g.data().progressSummary},
then:function(q){return _.p("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.p(_.c2,{text:q}))}}),_.p("div",{class:"ytwProgressViewModelHostProgressContainer"},_.p(_.M,{cond:function(){return g.data().leadingLabel},
then:function(q){return _.p("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.p(_.c2,{text:q}))}}),_.p("div",{class:"ytwProgressViewModelHostProgressBar"},_.p("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(g.data().progressPercentage||0)*100+"%"}}))))},"xe");var lC=_.r(function(g){var u=g.starNumber;var q=g.data;var Q=function(){var L;return((L=q())==null?void 0:L.rating)||0};
return _.p(_.M,{cond:function(){return u()},
then:function(L){return _.p(_.wi,null,_.p(_.Gv,{when:function(){return Q()>=L()-.25}},function(){return _.p("div",{class:"ytStarRatingViewModelHostStar"},_.p(_.B1,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.p(_.Gv,{when:function(){return Q()>=L()-.75}},function(){return _.p("div",{class:"ytStarRatingViewModelHostStar"},_.p(_.B1,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.p(_.$v,null,function(){return _.p("div",{class:"ytStarRatingViewModelHostStar"},_.p(_.B1,{icon:"STAR",
size:function(){return 24}}))}))}})},"ye"),smx=_.r(function(g){g=g.data;
return _.p("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.p(lC,{starNumber:1,data:g}),_.p(lC,{starNumber:2,data:g}),_.p(lC,{starNumber:3,data:g}),_.p(lC,{starNumber:4,data:g}),_.p(lC,{starNumber:5,data:g}))},"ze");_.dL(_.r(function(g){var u=_.FI(g,{}).data;return _.p("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.p("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.p(_.c2,{text:function(){var q;return(q=u())==null?void 0:q.title}})),_.p("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.p(_.M,{cond:function(){return u().starProgressViewModels},
then:function(q){return _.p("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.p(_.Up,{data:q},{progressViewModel:NqH}))}}),_.p("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.p("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.p(_.c2,{text:function(){var q;
return(q=u())==null?void 0:q.averageRatingLabel}})),_.p(_.M,{cond:function(){return u().zeroStateText},
then:function(q){return _.p("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.p(_.c2,{text:q}))}}),_.p(_.M,{cond:function(){return u().starRatingViewModel},
then:function(q){return _.p("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.p(_.Up,{data:q},{starRatingViewModel:smx}))}}),_.p("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.p(_.c2,{text:function(){var q;
return(q=u())==null?void 0:q.totalRatingsCountLabel}})))))},"Ae"),"yt-course-ratings-view-model",{props:{data:_.iF}});var yTL;yTL={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"}};_.vuK=_.r(function(g){var u=_.Hk("yt-learning-journey-loader-view-model"),q=_.xq();_.lL(function(){requestAnimationFrame(function(){var L;(L=q.lottieEl)==null||L.addEventListener("DOMLoaded",function(){var E;(E=g.onLottieLoaded)==null||E.call(g)})});
var Q=g.data().browseEndpoint;Q&&_.ey(Q)});
return _.p("yt-learning-journey-loader-view-model",{class:_.Ty("learningJourneyLoaderViewModelHost",g.className),"data-target-id":function(){return g.data().targetId||""},
el:u},_.p(_.B2,{className:_.Ty("learningJourneyLoaderViewModelLoader",g.className),animationName:function(){return yTL.animationConfig.name},
data:yTL,animationRef:q}))},"Ce");_.dL(_.vuK,"yt-learning-journey-loader-view-model",{props:{data:_.H2,className:_.iF,onLottieLoaded:_.iF}});var D3b=_.r(function(g){var u=function(){return g.data()},q=function(){return!!_.sf(_.Pb(u())).optionColor},Q=_.N(_.jR(-1,void 0,"gXOYR")),L=Q.next().value,E=Q.next().value,y=function(e){return L()===e},v=function(e){return u().correctAnswerIndex===e},J=function(){return L()!==-1};
Q=_.N(_.jR("",void 0,"BFwDQb"));var f=Q.next().value,t=Q.next().value;return _.p("learning-journey-quiz-view-model",{class:_.Ty("learningQuizComponentHost","learningJourneyQuizYoututorHost",g.className),style:_.xH({background:function(){return _.sf(_.Pb(u())).backgroundColor}})},_.p("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},f),_.p("div",{class:"learningQuizComponentQuizContainer"},_.p("div",{class:"learningQuizComponentQuiz"},_.p("div",{class:"learningQuizComponentQuizContent"},_.p(_.M,{cond:function(){return!!u().aiGeneratedQuizLabel},
then:function(){return _.p("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.p(_.c2,{text:function(){return u().aiGeneratedQuizLabel}}))}}),_.p("div",{class:"learningQuizComponentQuizHeader",
style:_.xH({"align-items":function(){return u().overflowMenu?"start":"center"}})},_.p("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.xH({"min-height":function(){return u().overflowMenu?"48px":"26px"}})},_.p("div",{class:"learningJourneyQuizYoututorText",
style:_.xH({color:function(){return _.sf(_.Pb(u())).primaryTextColor}})},_.p(_.c2,{text:function(){return u().questionHeaderText}})))),_.p("div",{class:"learningQuizComponentQuizSubheader",
style:_.xH({color:function(){return _.sf(_.Pb(u())).secondaryTextColor}})},_.p(_.c2,{text:function(){var e=u();
return J()?e.explanationText:e.questionSubheaderText}}))),_.p("div",{role:"group",
class:_.Ty("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.p(_.R4,{each:function(){return u().optionsData||[]}},function(e,G){var R={};
return _.p("button",{class:_.Ty("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(R.learningQuizComponentQuizHover=function(){return!J()},R.learningQuizComponentQuizOptionWithCustomColor=q,R.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return J()&&v(G())},R.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return L()!==u().correctAnswerIndex&&y(G())},R.learningQuizComponentQuizIncorrectShake=
function(){return L()!==u().correctAnswerIndex&&y(G())},R)),
"on:click":_.YH(function(){_.$q(_.gL(),{data:e});if(J())return!1;E(G());var H,l;t(v(G())?((H=u().successTitle)==null?void 0:H.content)||"":((l=u().failureTitle)==null?void 0:l.content)||"");return!1}),
style:_.xH({background:"transparent"}),"aria-description":function(){var H,l;return J()?v(G())?(H=u().successTitle)==null?void 0:H.content:(l=u().failureTitle)==null?void 0:l.content:""},
"aria-disabled":J},_.p("div",{class:"learningQuizComponentQuizOptionContainer"},_.p(_.c2,{text:e.optionText}),_.p(_.M,{cond:function(){var H=G();return J()&&(y(H)||v(H))},
then:function(){var H={};return _.p(_.B1,{className:_.Ty("learningJourneyQuizYoututorOptionIcon",(H.learningQuizComponentQuizPulse=function(){return L()===u().correctAnswerIndex&&v(G())},H)),
size:24,icon:function(){return v(G())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.p(_.M,{cond:J,
then:function(){return _.p("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.p("div",{class:"learningJourneyQuizYoututorExplanationText"},_.p(_.c2,{text:function(){return u().explanationHeaderText}})),_.p(_.c2,{text:function(){return u().optionsData[L()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"De");
D3b.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var IJK=function(){},pSz;
(pSz=window.requestIdleCallback)==null||pSz.bind(window);var ZkM=new Set,AcS=null;var JTx;_.jmt=_.r(function(g){var u=null,q=null,Q=null,L=function(){return g.data()},E=function(){return _.sf(_.Pb(L()))},y=function(){return!!E().optionColor},v=_.N(_.jR(-1,void 0,"H2gnQb")),J=v.next().value,f=v.next().value,t=function(O){return J()===O},e=function(O){return L().correctAnswerIndex===O},G=function(){return J()!==-1},R=function(){return J()===L().correctAnswerIndex},H=function(){var O=L(),W=G(),x=R();
return W?x?O.successTitle:O.failureTitle:O.questionHeaderText},l=function(){var O=G(),W=R();
return O?W?264685:264684:264683},d=function(){var O=L();
return G()?O.explanationText:O.questionSubheaderText},F=function(){return!!L().video},V=function(O){return R()&&e(O)},z=_.YH(function(){f(-1);
return!1});
return _.p(_.M,{cond:function(){return L().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.p(D3b,{data:function(){return L()}})},
else:function(){return _.p("learning-journey-quiz-view-model",{class:_.Ty("learningQuizComponentHost",g.className),style:_.xH({background:function(){return E().backgroundColor}})},_.p(_.M,{cond:F,
then:function(){return _.p("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.xH({background:function(){return E().videoBackgroundColor}})},_.p(_.Up,{data:function(){return L().video}},{lockupViewModel:function(O){return _.p(_.nG,{data:O.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.p("div",{class:"learningQuizComponentQuizContainer"},_.p("div",{class:"learningQuizComponentQuiz"},_.p("div",{class:"learningQuizComponentQuizContent"},_.p(_.M,{cond:function(){return!!L().aiGeneratedQuizLabel},
then:function(){return _.p("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.p(_.c2,{text:function(){return L().aiGeneratedQuizLabel}}))}}),_.p("div",{class:"learningQuizComponentQuizHeader",
style:_.xH({"align-items":function(){return L().overflowMenu?"start":"center"}})},_.p("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.xH({"min-height":function(){return L().overflowMenu?"48px":"26px"}})},_.p("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.lF(function(O){_.y5(l(),O,u,function(W){u=W})}),
style:_.xH({color:function(){return E().primaryTextColor}}),
"client-ve-type":l},_.p(_.c2,{text:H}))),_.p("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.p(_.M,{cond:G,then:function(){return _.p("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.lF(function(O){_.y5(264687,O,q,function(W){q=W})}),
"on:click":z,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.p("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.xH({fill:function(){return E().primaryTextColor}})},_.p("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"})))}}),
_.p(_.Up,{data:function(){return L().overflowMenu}},{buttonViewModel:function(O){return _.p(_.TT,{data:O.data})}}))),_.p("div",{class:"learningQuizComponentQuizSubheader",
el:_.lF(function(O){_.y5(264688,O,Q,function(W){Q=W})}),
style:_.xH({color:function(){return E().secondaryTextColor}}),
"client-ve-type":264688},_.p(_.c2,{text:d}))),_.p("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.p(_.R4,{each:function(){return L().optionsData||[]}},function(O,W){var x={};
return _.p("button",{class:_.Ty("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(x.learningQuizComponentQuizHover=function(){return!G()},x.learningQuizComponentQuizOptionWithCustomColor=y,x.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return V(W())},x.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!R()&&t(W())},x.learningQuizComponentQuizIncorrectShake=function(){return!R()&&
t(W())},x.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return G()&&!t(W())},x)),
"on:click":_.YH(function(){_.$q(_.gL(),{data:O});if(G())return!1;f(W());return!1}),
style:_.xH({background:function(){var k=W();return G()&&t(k)?"":y()?E().optionColor:"transparent"}}),
"aria-disabled":G},_.p("div",{class:"learningQuizComponentQuizOptionContainer"},_.p(_.M,{cond:G,then:function(){return _.p(JTx,{isOptionCorrect:e,optionIndex:W,isOptionSelectedAndCorrect:V,colors:E})}}),_.p(_.c2,{text:O.optionText})))})))))}})},"Ee");
JTx=_.r(function(g){var u={};return _.p("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var q=g.optionIndex();return g.isOptionCorrect(q)?"0 0 24 24":"0 -960 960 960"},
class:_.Ty("learningJourneyQuizViewModelQuizOptionIconLeading",(u.learningQuizComponentQuizPulse=function(){return g.isOptionSelectedAndCorrect(g.optionIndex())},u)),
style:_.xH({fill:function(){return g.colors().primaryTextColor}})},_.p("path",{d:function(){var q=g.optionIndex();
return g.isOptionCorrect(q)?"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");
_.jmt.idomCompat=!0;_.dL(_.jmt,"learning-journey-quiz-view-model",{props:{data:_.H2,className:_.H2}});var fkZ=_.r(function(g){var u=_.N((0,_.ZG)(function(){var y;return{targetId:(y=g.data().config)==null?void 0:y.suspenseKey,contents:[g.data()]}})).next().value,q=_.Bk().resolve(_.Gy),Q=function(){var y=u().contents.length>0?u().contents[0]:void 0;
return y==null?void 0:y.config},L=function(){var y;
return(y=Q())==null?void 0:y.entityTriggerConfig},E=_.kq(GiF,function(){var y,v;
return(v=(y=L())==null?void 0:y.entityKey)!=null?v:""});
_.bX(function(){var y,v,J,f=(J=Number((y=L())==null?void 0:(v=y.invalidationTimestamp)==null?void 0:v.seconds))!=null?J:0,t,e,G;if(((G=Number((t=E())==null?void 0:(e=t.lastUpdated)==null?void 0:e.seconds))!=null?G:0)>f){var R;(y=(R=Q())==null?void 0:R.continuationCommand)&&q.resolveCommand(y)}},"tC8nKe");
return _.p("yt-suspense-view-model",{class:_.Ty("ytSuspenseViewModelHost")},_.p(_.Up,{data:function(){var y;return(y=Q())==null?void 0:y.contents}},{lockupViewModel:_.nG}))},"He");var MKp=_.r(function(g){var u=_.FI(g,{palette:void 0,isLastItem:!1}),q=u.palette,Q=u.isLastItem,L=function(){return g.data().isHighlighted},E=function(){var J;
return ikS((J=q())==null?void 0:J.iconDisabledColor)},y=function(){var J;
return ikS((J=q())==null?void 0:J.primaryTitleColor)},v=function(){var J;
return ikS((J=q())==null?void 0:J.secondaryTitleColor)};
u={};return _.p("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.lF(_.J7(function(){return g.data().rendererContext}))},_.p(_.Up,{data:function(){return g.data().thumbnail}},{thumbnailViewModel:VL}),_.p("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.p("div",{class:_.Ty("ytMacroMarkerListItemViewModelTimeDescription",(u.ytMacroMarkerListItemViewModelHighlighted=L,u)),
style:_.xH({"background-color":function(){return L()?y():E()},
color:function(){return L()?"":v()}})},_.p(_.c2,{text:function(){return g.data().timestamp}})),_.p("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.xH({"background-color":function(){return Q()?"transparent":E()}})}),_.p("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(L()?y():v())}},_.p(_.c2,{text:function(){return g.data().title}}))))},"Ie");_.IS=_.r(function(g){function u(Xf){V("transform:translateX("+(_.FR("HTML_DIR")==="rtl"?"":"-")+Xf+"px)")}
function q(Xf){return Math.min(Math.max(Xf,0),F()-k())}
function Q(Xf){var eX=W()+M3();if(!L())return 0;Xf===void 0&&(Xf=Math.round(k()/eX)||1);return Xf*eX}
var L=function(){return g.data().items||[]},E=function(){return g.data().previousButton},y=function(){return g.data().nextButton},v=function(){var Xf,eX;
return(eX=(Xf=g.disableArrows)==null?void 0:Xf.call(g))!=null?eX:!1},J=function(){var Xf;
return!((Xf=g.forceNarrowLayout)==null||!Xf.call(g))},f=_.G9(function(){var Xf;
return!((Xf=g.centerAlignItems)==null||!Xf.call(g))&&F()<=k()},void 0,"iGOqxd"),t=_.Hk("horizontal-shelf-view-model"),e=_.Hk("div"),G=_.N(_.jR(0,void 0,"tieKmf")),R=G.next().value,H=G.next().value;
G=_.N(_.jR(0,void 0,"W2lvv"));var l=G.next().value,d=G.next().value,F=l;l=_.N(_.jR("",void 0,"PEePkc"));G=l.next().value;var V=l.next().value;l=_.N(_.jR(0,void 0,"c7a4W"));var z=l.next().value,O=l.next().value,W=z;l=_.N(_.jR(0,void 0,"KGhRJf"));z=l.next().value;var x=l.next().value,k=z;l=_.N(_.jR(!1,void 0,"fgWgyc"));var LZ=l.next().value,sb=l.next().value;l=_.N(_.jR(0,void 0,"pe79rc"));z=l.next().value;var Rm=l.next().value,M3=z;l=_.N(_.jR(0,void 0,"CTqisc"));var tT=l.next().value,mJ=l.next().value;
l=_.N(_.jR(0,void 0,"S2Yf1b"));var hT=l.next().value,Yu=l.next().value;l=_.N(_.jR("50%",void 0,"kjP5ke"));var Mx=l.next().value,po=l.next().value,KZ=function(){var Xf,eX=(Xf=g.data())==null?void 0:Xf.responsiveContainerConfiguration,no,Co;return eX?$y(eX==null?void 0:eX.responsiveSize):(Co=(no=g.sizing)==null?void 0:no.call(g))!=null?Co:"STANDARD"},G2=function(){var Xf,eX=(Xf=g.data())==null?void 0:Xf.responsiveContainerConfiguration;
return eX?eX.enableContentSpecificAspectRatio===!1:!1};
l=_.G9(function(){return!v()&&R()>0},void 0,"jT8Bud");
z=_.G9(function(){return!v()&&R()<F()-k()},void 0,"mt4gsb");
var Ab=function(){t.value!==null&&lx()},tb;
_.I4(function(){lx();window.ResizeObserver?(tb=new ResizeObserver(_.pN(Ab,0)),tb.observe(t.value)):window.addEventListener("resize",Ab)});
_.dB(function(){if(window.ResizeObserver){var Xf;(Xf=tb)==null||Xf.disconnect()}else window.removeEventListener("resize",Ab)});
var lx=function(){var Xf=t.value.clientWidth,eX=g.includeMargin!==void 0?g.includeMargin():!1,no;var Co=g.hasPeek!==void 0?g.hasPeek():!((no=g.data())==null||!no.hasPeek);Xf=_.Gk({containerWidth:Xf,hasPeek:Co,sizing:KZ(),marginSettings:eX?J()?4:1:0});Rm(Xf.gutter);mJ(Xf.margin);O(Xf.itemWidth);sb(Xf.maxContainerWidth<528||J());x(Xf.maxContainerWidth);L()&&d((Xf.itemWidth+Xf.gutter)*L().length-Xf.gutter);if(L()){var gC;if(((gC=g.thumbnailAspectRatio)==null?void 0:gC.call(g))!==void 0){var Ca;po(W()/
kYq((Ca=g.thumbnailAspectRatio)==null?void 0:Ca.call(g))/2+"px")}else po("50%")}},NE={},fZ={};
return _.p("horizontal-shelf-view-model",{class:_.Ty("ytwHorizontalShelfViewModelHost",g.className),el:t},_.p(_.M,{cond:function(){var Xf;return g.data().header&&!((Xf=g.horizontalShelfExperiments)==null?0:Xf.call(g).hideHeader)},
then:function(){return _.p("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.xH({width:function(){return k()+"px"},
padding:function(){return"0 "+tT()+"px"}})},_.p(_.Up,{data:function(){return g.data().header}},{sectionHeaderViewModel:function(Xf){return _.p(_.US,{data:Xf.data,
disableHorizontalPadding:!0,forceSmallLayout:LZ,useResponsiveLayout:!0})}}))}}),_.p("div",{class:_.Ty("ytwHorizontalShelfViewModelOuterContainer",(NE.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return f()},NE)),
style:_.xH({"margin-top":function(){var Xf,eX=g.data().header&&!((Xf=g.horizontalShelfExperiments)==null?0:Xf.call(g).hideHeader),no;return(((no=g.ensureMarginTop)==null?0:no.call(g))&&!eX?12:0)+"px"}})},_.p("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.xH({width:function(){return k()+"px"},
padding:function(){return"0 "+tT()+"px"},
overflow:function(){return v()?"auto":"hidden"}})},_.p("div",{class:_.Ty("ytwHorizontalShelfViewModelItems",(fZ.ytwHorizontalShelfViewModelCenterAlignItems=function(){return f()},fZ)),
el:e,style:G},_.p(_.Up,{data:L},{macroMarkerListItemViewModel:function(Xf,eX){return _.p("div",{style:_.xH({width:function(){return W()+"px"},
"margin-right":function(){return(eX()===L().length-1?0:M3())+"px"}})},_.p(MKp,{data:Xf.data,
palette:_.dO(g.palette),isLastItem:function(){return eX()===L().length-1}}))},
lockupViewModel:function(Xf,eX){var no=Xf.data;return _.p("div",{"on:focusin":_.YH(function(){var Co=eX();Co!==hT()&&(Co<hT()?H(q(R()-Q(1))):H(q(R()+Q(1))),u(R()),Yu(Co));return!0}),
style:_.xH({width:function(){return W()+"px"},
"margin-right":function(){return(eX()===L().length-1?0:M3())+"px"}})},_.p(_.nG,{data:no,
containerType:4,sizing:KZ,protectBackground:g.protectBackground,thumbnailFixedWidth:function(){return Ccf(no())+"px"},
thumbnailTargetWidth:function(){return Ccf(no())},
force16By9ThumbnailAspectRatio:G2}))},
suspenseViewModel:function(Xf,eX){return _.p("div",{style:_.xH({width:function(){return W()+"px"},
"margin-right":function(){return(eX()===L().length-1?0:M3())+"px"}})},_.p(fkZ,{data:Xf.data}))}}))),_.p(_.M,{cond:l,
then:function(){return _.p("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.xH({top:function(){return Mx()}})},_.p(_.Up,{data:E},{buttonViewModel:function(Xf){return _.p(_.TT,{data:Xf.data,
onClick:function(){H(q(R()-Q(void 0)));u(R())}})}}))}}),_.p(_.M,{cond:z,
then:function(){return _.p("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.xH({top:function(){return Mx()}})},_.p(_.Up,{data:y},{buttonViewModel:function(Xf){return _.p(_.TT,{data:Xf.data,
onClick:function(){H(q(R()+Q(void 0)));u(R())}})}}))}})))},"Je");
_.IS.idomCompat=!0;var tKK=_.r(function(g){var u=function(){return g.data().targetId||""},q=function(){var l;
return((l=g.data())==null?void 0:l.expansionEntityKey)||""},Q=_.kq(_.e1m,q),L=!0,E=function(){var l;
return((l=Q())==null?void 0:l.value)===u()},y=function(l){_.bU(_.u2("stringEntity",q(),{key:q(),
value:l?u():""}))};
_.lL(function(){L=!1;g.data().isExpanded&&y(!0)});
var v=function(){if(E()){var l=!0;g.onCollapse!==void 0&&(l=g.onCollapse());l&&y(!1)}else y(!0)},J=_.YH(v),f=function(){var l;
return(((l=g.accordionStyle)==null?void 0:l.call(g))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},t=_.Hk("div"),e=function(){var l,d;
return(d=(l=_.c(g.data().rendererContext,_.L3))==null?void 0:l.label)!=null?d:""},G=function(){var l,d;
return{disabled:(l=g.hideIfNotExpanded)==null?void 0:l.call(g),ariaHidden:(d=g.hideIfNotExpanded)==null?void 0:d.call(g)}},R={},H={};
return _.p("yt-accordion-item-view-model",{class:_.Ty("ytAccordionItemViewModelHost",g.className,(R.ytAccordionItemViewModelExpanded=function(){return E()},R.ytAccordionItemViewModelHidden=function(){var l;
return(l=g.hideIfNotExpanded)==null?void 0:l.call(g)},R.ytAccordionItemViewModelMini=f,R)),
"data-target-id":u},_.p("div",{class:"ytAccordionItemViewModelContainer"},_.p("div",{class:"ytAccordionItemViewModelLeftSection","on:click":J,title:e,"aria-hidden":function(){var l;return(l=g.hideIfNotExpanded)==null?void 0:l.call(g)}},_.p(_.c2,{text:function(){return g.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:e})),_.p("div",{class:"ytAccordionItemViewModelRightSection"},_.p(_.Up,{data:function(){return E()?g.data().expandButton:g.data().collapseButton}},{buttonViewModel:function(l){return _.p(_.TT,{data:l.data,
className:"ytAccordionItemViewModelToggleButton",onClick:v,buttonOverrides:G})}}))),_.p("div",{class:"ytAccordionItemViewModelContainer"},_.p("div",{class:_.Ty("ytAccordionItemViewModelContent",(H.ytAccordionItemViewModelExpandedSubtitle=function(){return E()},H)),
el:t,style:_.xH({"max-height":function(){return L?"auto":E()?t.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!E()}},_.p(_.M,{cond:function(){return!f()},
then:function(){return _.p(_.c2,{text:function(){return g.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.p(_.Up,{data:function(){return g.data().content}},{horizontalShelfViewModel:function(l){return _.p(_.IS,{data:l.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Le");_.eFf=_.r(function(g){var u=_.N((0,_.ZG)(g.data)).next().value,q=function(){return g.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},Q=function(){return q()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},L=_.N(_.jR(!0,void 0,"VFpYAb")),E=L.next().value,y=L.next().value,v=function(){return Q()&&E()},J=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){y(!E())}}},f=_.YH(function(){u().onTitleTap&&_.ey(u().onTitleTap||{})});
L={};return _.p("yt-accordion-view-model",{class:_.Ty("ytAccordionViewModelHost",(L.ytAccordionViewModelMinimized=function(){return v()},L)),
"data-target-id":function(){return g.data().targetId||""}},_.p(_.M,{cond:function(){return Q()||!!u().title},
then:function(){return _.p("div",{class:"ytAccordionViewModelHeader"},_.p("div",{class:"ytAccordionViewModelTitleSection"},_.p("div",{class:"ytAccordionViewModelTitleWrapper"},_.p(_.M,{cond:function(){return!!g.data().headerIcon},
then:function(){return _.p(_.B1,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var t;return(t=g.data().headerIcon)==null?void 0:t.iconType}})}}),_.p("div",{class:"ytAccordionViewModelTitle",
"on:click":f},_.p(_.c2,{className:"ytAccordionViewModelTitleText",text:function(){return u().title}})))),_.p("div",{class:"ytAccordionViewModelButtonSection"},_.p(_.M,{cond:Q,
then:function(){return _.p(_.W2,{data:J,iconName:function(){return v()?"chevron_down":"chevron_collapse"}})}})))}}),_.p("div",{class:"ytAccordionViewModelContent"},_.p(_.Up,{data:function(){return u().contents}},{accordionItemViewModel:function(t){return _.p(tKK,{data:t.data,
className:"ytAccordionViewModelRow",accordionStyle:q,hideIfNotExpanded:v,onCollapse:function(){return Q()?(y(!0),!1):!0}})}})),_.p("div",null,_.p(_.M,{cond:function(){return!Q()&&(!!u().disclaimerFooter||!!u().footer)},
then:function(){return _.p("div",{class:"ytAccordionViewModelFooter"},_.p(_.c2,{text:function(){return u().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.p(_.Up,{data:function(){return g.data().footer}},{flexibleActionsViewModel:function(t){return _.p(_.Mp,{data:t.data,
layout:0})}}))}})))},"Me");_.dL(_.eFf,"yt-accordion-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=null,q=null,Q,L=(Q=_.Bk().resolve(_.xv(_.gy)))==null?void 0:Q(),E=_.N(_.jR(!1,void 0,"CmEVtc"));Q=E.next().value;var y=E.next().value;E=_.N(_.jR(!0,void 0,"yo9dR"));var v=E.next().value,J=E.next().value,f=_.Hk("textarea",function(d){_.y5(264503,d,u,function(F){u=F})}),t=function(d){y(!0);
d={learningJourneyFormData:{query:d}};_.ey(g.data().searchEndpoint||{},{form:{formData:d}});return!1},e=_.YH(function(d){d.target.closest("button-view-model")&&y(!0)});
E=_.YH(function(){J(f.value.value.length===0)});
var G=_.YH(function(d){if(d.key==="Enter"&&!d.shiftKey&&!v()){var F=d.target;d.preventDefault();t(F.value)}}),R={},H={},l={};
return _.p("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.p("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.p(_.IT,{data:function(){return g.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.p("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.p("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.p("div",{class:_.Ty("ytLearningJourneyZeroStateSearchBar",(R.ytLearningJourneyZeroStateSearchBarDark=L,R))},_.p("textarea",{class:_.Ty("ytLearningJourneyZeroStateTextInput",(H.ytLearningJourneyZeroStateTextInputDark=L,H)),el:f,"on:keyup":E,"on:keydown":G,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.p("div",{class:_.Ty("ytLearningJourneyZeroStateSearchButtonContainer",(l.ytLearningJourneyZeroStateSearchButtonContainerDark=L,l))},_.p(_.TT,{data:function(){return _.c(g.data().searchButton,_.Rn)},
className:"search-button",onClick:function(){return t(f.value.value)},
buttonOverrides:function(){return{disabled:v(),style:L?"mono-inverse":"mono",size:"XL"}}}))),_.p(_.M,{cond:function(){return!!g.data().errorBanner},
then:function(){return _.p("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.lF(function(d){_.y5(264617,d,q,function(F){q=F})})},_.p(_.Up,{data:function(){return g.data().errorBanner}},{alertBannerViewModel:function(d){return _.p(_.WU5,{data:d.data,
"client-ve-type":264617})}}))}})),_.p(_.M,{cond:Q,
then:function(){return _.p("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.p(_.Up,{data:function(){return g.data().loader}},{learningJourneyLoaderViewModel:function(d){return _.p(_.vuK,{data:d.data})}}))},
else:function(){return _.p("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.p(_.M,{cond:function(){return!!g.data().learningJourneyShelf},
then:function(){return _.p("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.p("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return g.data().learningJourneySectionTitle}),_.p(_.Up,{data:function(){return g.data().learningJourneyShelf}},{horizontalShelfViewModel:function(d){return _.p(_.IS,{data:d.data,
centerAlignItems:!0})}}))}}),_.p("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.p("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return g.data().suggestedJourneySectionTitle}),_.p("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":e},_.p(_.Up,{data:function(){return g.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(d){return _.p(_.Mp,{data:d.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ne"),"yt-learning-journey-zero-state",{props:{data:_.H2}});var GM9=_.r(function(g){var u=g.data;return _.p("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Ty("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.p(_.c2,{text:function(){var q;return(q=u())==null?void 0:q.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.p(_.Up,{data:function(){return u().actionButton}},{buttonViewModel:function(q){return _.p(_.TT,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:q.data})}}))},"Oe");var $3x=_.r(function(g){var u=g.data;return _.p("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Ty("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.p(_.c2,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var q;return(q=u())==null?void 0:q.displayName},
ellipsisTruncate:!0}),_.p(_.Up,{data:function(){return u().badge}},{buttonViewModel:function(q){return _.p(_.TT,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:q.data})}}))},"Pe");_.dL(_.r(function(g){var u=g.data;return _.p("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.p("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.p(_.c2,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var q;return(q=u())==null?void 0:q.rank}})),_.p("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.p(_.Up,{data:function(){return u().avatar}},{avatarViewModel:_.jv})),_.p("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.p(_.Up,{data:function(){return u().content}},{liveLeaderboardItemChannelContentViewModel:$3x,
liveLeaderboardItemActionContentViewModel:GM9})),_.p(_.c2,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var q;return(q=u())==null?void 0:q.points}}))},"Qe"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;return _.p("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.p(_.c2,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var q,Q;return(q=u())==null?void 0:(Q=q.ranking)==null?void 0:Q.rank}}),_.p("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.p(_.Up,{data:function(){return u().avatar}},{avatarViewModel:_.jv})),_.p(_.c2,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var q,Q;return(q=u())==null?void 0:(Q=q.channelContent)==null?void 0:Q.channelName}}),_.p(_.c2,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var q;return(q=u())==null?void 0:q.points}}))},"Re"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.H2}});var RFK=_.r(function(g){g=_.FI(g,{wrapper:!1}).wrapper;return _.p(_.M,{cond:g,then:function(){return _.p("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.p("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.p("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Se");
RFK.idomCompat=!0;var wSf=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],cTL=_.r(function(g){var u=g.data;var q=_.lF(),Q=_.G9(function(){return u().command},void 0,"fyYsT");
_.bX(function(){Q()&&_.fr(Q(),{form:{element:q.value}})},"B0nxdb");
return _.p("div",{el:q,class:"YtQrCodeRendererHostContainer"},_.p(_.M,{cond:function(){return u().qrCodeImage},
then:function(L){return _.p(_.IT,{data:L,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.p(_.M,{cond:function(){return u().spinner},
then:function(){return _.p(RFK,null)}})}}),_.p(_.M,{cond:function(){return u().label},
then:function(L){return _.p(_.c2,{text:L,className:"YtQrCodeRendererHostLabel"})}}),_.p(_.M,{cond:function(){return u().labels},
then:function(L){return _.p("div",{class:"YtQrCodeRendererHostLabels"},_.p(_.R4,{each:L},function(E){return _.p(_.c2,{text:E})}))}}))},"Ve");_.dL(_.r(function(g){var u=g.data;var q=_.G9(function(){return u().qrEntityKey},void 0,"LmZ2xf"),Q=_.G9(function(){return u().deleteEntityOnDismiss},void 0,"my0Tzb"),L=_.G9(function(){return u().command},void 0,"hzECIb"),E=_.kq(F1b,q);
g=_.G9(function(){return u().qrCodeImage},void 0,"AnD9rc");
var y=_.G9(function(){return u().style&&wSf.includes(u().style)},void 0,"f5fZv"),v=_.x1({visibilityCallback:function(J){J&&L()&&_.fr(L())},
showOption:{calledOnce:!0,state:"visible"}});_.I4(function(){_.dB(function(){Q()&&q()&&_.CE().dispatch(_.u2("qrCodeEntity",q()))})});
return _.p("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.lF(v)},_.p(_.M,{cond:y,then:function(){return _.p(_.M,{cond:E,then:function(J){return _.p(cTL,{data:J})}})}}),_.p(_.M,{cond:g,
then:function(J){return _.p(_.IT,{data:J,alt:""})}}))},"Te"),"yt-qr-code-renderer",{props:{data:_.H2}});var ATn=_.r(function(g){var u=function(){return _.jh(1728053247&(g.barColor!==void 0?SJ(g.barColor()):4278190080))};
return _.p("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.p("div",{class:"ytVideoOverviewGhostCardDetails"},_.p(HZt,{animationDelay:0,percentWidth:100,barColor:function(){return u()}}),_.p(HZt,{animationDelay:600,
percentWidth:60,barColor:function(){return u()}})))},"We"),HZt=_.r(function(g){return _.p("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+g.percentWidth()+"%"}},_.p("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var u=g.animationDelay(),q=g.barColor();return"animation-delay:"+u+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+q+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Xe");var ZZC,lkL;ZZC=_.wy.inlinePreviewEnabledSelector;_.IkL=_.r(function(g){function u(F){y(F)}
var q=g.data;var Q=_.AM("yt-video-overview-view-model"),L=_.lF();g=_.N(_.jR(-1,void 0,"kc60qe"));var E=g.next().value,y=g.next().value;g=_.N(_.jR(0,void 0,"YSTbVe"));var v=g.next().value,J=g.next().value,f={},t=_.kq(bkT,function(){return q().asyncDataEntityKey}),e=_.Sy(ZZC);
g=_.Bk().resolve(_.xv(aZZ));var G=function(){var F;if((F=t())==null?0:F.videoOverviewViewModel){var V;return _.c((V=t())==null?void 0:V.videoOverviewViewModel,K4b)}return q()};
g&&Q&&g({enabled:function(){return e()},
itemPlaybackModel:function(){var F;return(F=G())==null?void 0:F.itemPlayback},
thumbnailElRef:function(){return f.thumbnailElRef},
containerElRef:Q,options:function(){return{thumbnail:f.thumbnail,thumbnailOverlays:f.thumbnailOverlays||[],thumbnailSize:f.thumbnailSize,mouseleaveCallback:function(){}}}});
_.I4(function(){var F,V=Q==null?void 0:(F=Q.value)==null?void 0:F.clientWidth;V&&J(Math.min((V-24)/4-8,72))});
var R=function(){var F;return((F=G())==null?void 0:F.headerSubtext)!==void 0?!0:!1},H=function(){var F,V=SJ((F=G())==null?void 0:F.titleColor);
return V?"color: "+_.jh(V)+";":void 0},l=function(){var F,V=SJ((F=G())==null?void 0:F.subtextColor);
return V?"color: "+_.jh(V)+";":void 0},d=function(){return _.p("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.p("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return H()}},_.p(_.c2,{text:function(){var F;
return(F=G())==null?void 0:F.headerText}})),_.p(_.M,{cond:R,
then:function(){return _.p("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.p("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return l()}},_.p(_.B1,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.p("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return l()}},_.p(_.c2,{text:function(){var F;
return(F=G())==null?void 0:F.headerSubtext}})))}}))};
g={};return _.p("yt-video-overview-view-model",{class:_.Ty("ytGenAiVideoOverviewViewModelHost",(g.ytGenAiVideoOverviewViewModelMweb=!1,g.ytGenAiVideoOverviewViewModelDesktop=!0,g)),el:Q,style:function(){var F,V=SJ((F=G())==null?void 0:F.backgroundColor);return V?"background-color: "+_.jh(V)+";":void 0}},_.p(_.M,{cond:function(){var F;
return(F=G())==null?void 0:F.isLoading},
then:function(){return _.p(ATn,{barColor:function(){var F;return(F=G())==null?void 0:F.titleColor}})},
else:function(){return _.p(_.U9,null,null,_.p("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.p(_.Up,{data:function(){var F;return(F=G())==null?void 0:F.thumbnail}},{thumbnailViewModel:function(F){return _.p(VL,{data:F.data,
aspectRatio:0,playbackRef:dv3(f),width:9999})}})),_.p("div",{class:"ytGenAiVideoOverviewViewModelDetails"},d(),_.p(_.M,{cond:function(){var F,V,z,O;
return((F=G())==null?void 0:(V=F.listItems)==null?void 0:V.length)!==void 0&&((z=G())==null?void 0:(O=z.listItems)==null?void 0:O.length)>0?!0:!1},
then:function(){return _.p("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:L},_.p(_.R4,{each:function(){var F;return(F=G())==null?void 0:F.listItems}},function(F,V){return _.p(lkL,{image:F.image,
index:V,isSelected:function(){return V()===E()},
onClick:u,itemWidth:v})}))}}),_.p("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.p("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return H()}},_.p(_.c2,{text:function(){var F,V,z,O,W,x,k;
return(k=(F=G())==null?void 0:(V=F.listItems)==null?void 0:(z=V[E()])==null?void 0:z.headline)!=null?k:(O=G())==null?void 0:(W=O.listItems)==null?void 0:(x=W[0])==null?void 0:x.headline}})),_.p("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return l()}},_.p(_.c2,{text:function(){var F,V,z,O,W,x,k;
return(k=(F=G())==null?void 0:(V=F.listItems)==null?void 0:(z=V[E()])==null?void 0:z.subtext)!=null?k:(O=G())==null?void 0:(W=O.listItems)==null?void 0:(x=W[0])==null?void 0:x.subtext}})))))}}))},"Ye");
lkL=_.r(function(g){var u=g.image;var q=g.itemWidth;var Q=g.index;var L=g.isSelected;var E=g.onClick;g=_.YH(function(){Q!==void 0&&E!==void 0&&E(Q());return!1});
var y={};return _.p("div",{class:_.Ty("ytGenAiVideoOverviewViewModelCarouselItem",(y.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return L==null?void 0:L()},y)),
style:function(){return"width: "+q()+"px;"},
"on:click":g},_.p(_.IT,{data:u,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.p(_.M,{cond:function(){return L==null?void 0:L()},
then:function(){return _.p("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.p("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ze");
_.IkL.idomCompat=!0;_.dL(_.IkL,"yt-video-overview-view-model",{props:{data:_.H2}});_.iZx=_.r(function(g){var u=g.data;var q=g.topbarOffset;var Q,L=((Q=_.Bk().resolve(_.xv(_.gy)))==null?void 0:Q())||!1;return _.p("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var E=u();var y,v,J=L?(y=E.config)==null?void 0:y.darkThemeBackgroundColor:(v=E.config)==null?void 0:v.lightThemeBackgroundColor;E=J?_.JR(J):void 0;E="background-color: "+E+";";q!==void 0&&(E+="top: -"+q()+"px;");return E},
"aria-hidden":!0},_.p(_.M,{cond:function(){var E,y,v;return!!((E=u().backgroundImageConfig)==null?0:(y=E.image)==null?0:(v=y.sources)==null?0:v.length)},
then:function(){return _.p(_.IT,{data:function(){var E;return(E=u().backgroundImageConfig)==null?void 0:E.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.p("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+dtk(L,u().gradientColorConfig)+";"}}))},"$e");
_.iZx.idomCompat=!0;var Chb=_.r(function(g){var u=g.data;var q=g.isOverlay;return _.p("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.p("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.p(_.Up,{data:function(){return u().header}},{sectionHeaderViewModel:function(Q){return _.p(_.US,{data:Q.data,
isOverlay:q})}})),_.p("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.p(_.Up,{data:function(){return u().channelInfoButtons}},{flexibleActionsViewModel:_.Mp})),_.p("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.p(_.Up,{data:function(){return u().description}},{descriptionPreviewViewModel:function(Q){return _.p(_.ov,{data:Q.data,
isOverlay:q})}})))},"af");
Chb.idomCompat=!0;var bZZ=_.r(function(g){var u=g.data;var q={};return _.p("factoid-view-model",{class:_.Ty("ytwFactoidViewModelHost",(q.ytwFactoidViewModelHostOverlay=g.isOverlay,q))},_.p(_.c2,{text:function(){return u().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.p(_.c2,{text:function(){return u().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bf");
bZZ.idomCompat=!0;var d3p=_.r(function(g){var u=g.data;var q=g.isOverlay;return _.p("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.p(_.Up,{data:function(){return u().factoids}},{factoidViewModel:function(Q){return _.p(bZZ,{data:Q.data,
isOverlay:q})}}))},"cf");
d3p.idomCompat=!0;_.FJZ=_.r(function(g){var u=g.data;var q=g.isOverlay;return _.p("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.p(_.Up,{data:function(){return u().items}},{channelInfoViewModel:function(Q){return _.p("div",{class:"ytwCourseMetadataViewModelHostItem"},_.p(Chb,{data:Q.data,
isOverlay:q}))},
coursePerksViewModel:function(Q){return _.p("div",{class:"ytwCourseMetadataViewModelHostItem"},_.p(Php,{data:Q.data,isOverlay:q}))},
descriptionPreviewViewModel:function(Q){return _.p("div",{class:"ytwCourseMetadataViewModelHostItem"},_.p(_.ov,{data:Q.data,isOverlay:q}))},
factoidsRowViewModel:function(Q){return _.p("div",{class:"ytwCourseMetadataViewModelHostItem"},_.p(d3p,{data:Q.data,isOverlay:q}))},
progressViewModel:function(Q){return _.p("div",{class:"ytwCourseMetadataViewModelHostItem"},_.p(NqH,{data:Q.data,isOverlay:q}))}}))},"df");var m3Z=_.r(function(g){return _.p("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.p(_.Up,{data:function(){return g.data().content}},{courseMetadataViewModel:function(u){return _.p(_.FJZ,{data:u.data,
isOverlay:g.isOverlay})},
progressViewModel:function(u){return _.p(NqH,{data:u.data})}}))},"ef");var akC=_.r(function(g){var u=g.data;g=g.className;var q=function(){var L;return _.pn((L=u())==null?void 0:L.rendererContext)},Q={};
Q=(Q.dynamicTextViewModelHost=!0,Q.dynamicTextViewModelHostTappable=function(){return q()},Q);
return _.p("yt-dynamic-text-view-model",{el:_.lF(_.J7(function(){var L;return(L=u())==null?void 0:L.rendererContext})),
role:function(){return q()?"link":void 0},
tabindex:function(){return q()?0:void 0},
class:_.Ty(g,Q)},_.p("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var L,E,y;return(y=(E=_.c((L=u())==null?void 0:L.rendererContext,_.L3))==null?void 0:E.label)!=null?y:""}},_.p(_.c2,{text:function(){return u().text},
userInput:!0})))},"ff");
akC.idomCompat=!0;_.iC=_.r(function(g){var u=g.data;var q=g.isPositionRelative;var Q=_.mth("(max-width: 527.9px)"),L=function(){var E,y;return(y=(E=u())==null?void 0:E.style)!=null?y:"IMAGE_BANNER_STYLE_FULL_BLEED"};
g={};return _.p("yt-image-banner-view-model",{el:_.lF(_.J7(function(){var E;return(E=u())==null?void 0:E.rendererContext})),
class:_.Ty((g.ytImageBannerViewModelHost=!0,g.ytImageBannerViewModelInset=function(){return aJb(L())},g.ytImageBannerViewModelPositionAbsolute=function(){return _.mV(!0)&&!(q==null?0:q())},g.ytImageBannerViewModelSmallInset=function(){return aJb(L())&&Q()},g.ytImageBannerViewModelTappable=function(){var E;
return _.pn((E=u())==null?void 0:E.rendererContext)},g))},_.p(_.M,{cond:function(){var E;
return(E=u())==null?void 0:E.image},
then:function(){return _.p(_.IT,{data:function(){return u().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.p(_.Up,{data:function(){var E;
return(E=u())==null?void 0:E.overlays}},{thumbnailHoverOverlayViewModel:JW}))},"gf");
_.iC.idomCompat=!0;var VKC;VKC=_.r(function(g){var u=g.condition;var q=g.content;return _.p(_.M,{cond:u,then:function(){return _.p("div",{class:"yt-page-header-view-model__scroll-container"},q())},
else:function(){return q()}})},"hf");
_.XSt=_.r(function(g){var u=g.data;var q=g.noPadding;var Q=g.enableBanner;var L=g.cinematicContainerTopbarOffset;var E=g.allowCinematicContainerOverflow;var y=g.displayAsSidebar;var v=g.displayAsPanel;var J=g.alwaysUseMediumTextDescription;var f=V1K(),t=function(){return!!u().image||!!u().animatedImage},e=function(){return!!u().background},G=function(){return(y==null?0:y())||(v==null?0:v())?1:f()},R=function(){return G()===1},H=function(){return R()||G()===2},l=function(){return G()===4},d=function(){var tT=
u();
var mJ=!!u().heroImage;var hT=G(),Yu=XPT(u()),Mx=y==null?void 0:y(),po=!tT.metadata,KZ;if(KZ=mJ?_.c(tT.heroImage,d50):_.c(tT.animatedImage||tT.image,d50)){tT=KZ.style;var G2=KZ.layoutMode;if(G2!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(KZ=PzJ(EgM(KZ)),mJ)mJ=FaF(hT,tT,G2,KZ,Mx);else b:if(po)mJ=hT===1?{size:48}:{size:72};else switch(hT){case 1:mJ={size:72};break b;case 2:mJ={size:120};break b;default:mJ=Yu<4?{size:120}:{size:160}}else mJ=void 0}else mJ={size:0};return mJ};
g={};g=_.Ty((g["yt-page-header-view-model"]=!0,g["yt-page-header-view-model--no-padding"]=function(){return!(q==null||!q())},g["yt-page-header-view-model--small-top-padding"]=function(){return R()&&!u().actions&&!(v==null?0:v())||G()===2&&!(t()||u().heroImage)},g["yt-page-header-view-model--small-bottom-padding"]=function(){return H()&&!u().actions&&!(v==null?0:v())},g["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(E==null?0:E())},g["yt-page-header-view-model--display-as-sidebar"]=
y,g));
var F={},V=_.Ty((F["yt-page-header-view-model__page-header-headline"]=!0,F["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var tT;return(tT=d())==null?void 0:tT.allowFullWidth},F)),z=function(){var tT;
return H()&&!((tT=d())==null?0:tT.allowFullWidth)},O=function(){return R()&&(!!u().heroImage||t())&&XPT(u())>0},W=function(){return O()&&(v==null?void 0:v())};
F={};var x=_.Ty((F["yt-page-header-view-model__page-header-title"]=!0,F["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!O()},F["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return O()&&!W()},F["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=W,F["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=e,F));
F={};var k=_.Ty((F["yt-page-header-view-model__page-header-headline-image"]=!0,F["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!u().heroImage&&H()},F));
F={};var LZ=_.Ty((F["yt-page-header-view-model__page-header-banner-container"]=Q,F["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var tT;return(Q==null?void 0:Q())&&((tT=_.c(u().banner,_.m5$))==null?void 0:tT.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},F));
F={};var sb=_.Ty((F["yt-page-header-view-model__page-header-content-metadata"]=!0,F["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=e,F));F={};var Rm=_.Ty((F["yt-page-header-view-model__page-header-flexible-actions"]=!0,F["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!u().metadata||H()},F["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!H()},F));
F={};var M3=_.Ty((F["yt-page-header-view-model__page-header-attribution"]=!0,F["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=e,F));return _.p("yt-page-header-view-model",{class:g},_.p(_.M,{cond:e,then:function(){return _.p("div",{class:"yt-page-header-view-model__page-header-background"},_.p(_.Up,{data:function(){return u().background}},{cinematicContainerViewModel:function(tT){return _.p(_.iZx,{data:tT.data,
topbarOffset:L})}}))}}),_.p(VKC,{condition:function(){return!(y==null||!y())},
content:function(){return _.p("div",{class:"yt-page-header-view-model__page-header-content"},_.p(_.M,{cond:function(){return(Q==null?void 0:Q())&&u().banner},
then:function(){return _.p("div",{class:LZ},_.p(_.Up,{data:function(){return u().banner}},{imageBannerViewModel:_.iC}))}}),_.p("div",{class:V},_.p(_.M,{cond:t,
then:function(){return _.p(_.Up,{data:function(){var tT;if(!(tT=u().animatedImage)){tT=u();if(t()){var mJ=tT=Object.assign({},tT),hT=G(),Yu=XPT(u()),Mx=mJ.image,po=_.c(Mx,FfR),KZ=po==null?void 0:po.avatar,G2=_.c(KZ,_.fn);if(Mx&&KZ&&G2){switch(hT){case 1:G2.avatarImageSize="AVATAR_SIZE_XL";break;case 2:G2.avatarImageSize="AVATAR_SIZE_XXL";break;default:Yu<4?G2.avatarImageSize="AVATAR_SIZE_XXL":G2.avatarImageSize="AVATAR_SIZE_XXXL"}_.yb(KZ,_.fn,Object.assign({},G2));po.avatar=Object.assign({},KZ);_.yb(Mx,
FfR,Object.assign({},po));mJ.image=Object.assign({},Mx)}}tT=tT.image}return tT}},{contentPreviewImageViewModel:function(tT){return _.p(_.hW,{data:tT.data,
className:k,imageSizeConfig:d})},
decoratedAvatarViewModel:function(tT){return _.p(_.fG,{data:tT.data,className:k})}})}}),_.p(_.M,{cond:function(){return!!u().heroImage&&!z()},
then:function(){return _.p(_.Up,{data:function(){return u().heroImage}},{contentPreviewImageViewModel:function(tT){return _.p(_.hW,{data:tT.data,
className:k,imageSizeConfig:d})}})}}),_.p("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.p(_.M,{cond:function(){return!!u().heroImage&&z()},
then:function(){return _.p("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.p(_.Up,{data:function(){return u().heroImage}},{contentPreviewImageViewModel:function(tT){return _.p(_.hW,{data:tT.data,
className:k,imageSizeConfig:d})}}))}}),_.p(_.Up,{data:function(){return u().title}},{dynamicTextViewModel:function(tT){return _.p(akC,{data:tT.data,
className:x})}}),_.p(_.Up,{data:function(){return u().metadata}},{contentMetadataViewModel:function(tT){return _.p(_.Om,{data:tT.data,
layout:function(){return R()?1:0},
className:sb,isOverlay:e,useMediumText:l})}}),_.p(_.M,{cond:function(){return u().description&&!R()},
then:function(){return _.p(_.Up,{data:function(){return u().description}},{descriptionPreviewViewModel:function(tT){return _.p(_.ov,{data:tT.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:e,maxLinesOverride:function(){return R()?void 0:1},
useMediumText:function(){return(J==null?void 0:J())||l()}})}})}}),_.p(_.M,{cond:function(){return u().attribution&&!H()},
then:function(){return _.p(_.Up,{data:function(){return u().attribution}},{attributionViewModel:function(tT){return _.p(Y4,{data:tT.data,
className:M3,useMediumText:l})}})}}),_.p(_.M,{cond:function(){return u().actions&&!H()},
then:function(){return _.p(_.Up,{data:function(){return u().actions}},{flexibleActionsViewModel:function(tT){return _.p(_.Mp,{data:tT.data,
layout:function(){return rcu(G())},
className:Rm})}})}}))),_.p("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.p(_.M,{cond:function(){return u().description&&R()},
then:function(){return _.p(_.Up,{data:function(){return u().description}},{descriptionPreviewViewModel:function(tT){return _.p(_.ov,{data:tT.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:e,maxLinesOverride:function(){return R()?void 0:1},
useMediumText:function(){return(J==null?void 0:J())||l()}})}})}}),_.p(_.M,{cond:function(){return u().attribution&&H()},
then:function(){return _.p(_.Up,{data:function(){return u().attribution}},{attributionViewModel:function(tT){return _.p(Y4,{data:tT.data,
className:M3,useMediumText:l})}})}}),_.p(_.M,{cond:function(){return u().actions&&H()},
then:function(){return _.p(_.Up,{data:function(){return u().actions}},{flexibleActionsViewModel:function(tT){return _.p(_.Mp,{data:tT.data,
layout:function(){return rcu(G())},
className:Rm})}})}})),_.p("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.p(_.Up,{data:function(){return u().bottomMetadataFlexibleContainer}},{flexibleContainer:function(tT){return _.p(m3Z,{data:tT.data,
isOverlay:e})}})))}}))},"jf");
_.XSt.idomCompat=!0;_.dL(_.r(function(g){var u=_.N(_.jR(!1,void 0,"qvRy4d")),q=u.next().value,Q=u.next().value;return _.p("yt-official-card-view-model",{class:_.Ty("ytOfficialCardViewModelHost",g.className),style:_.xH({"background-color":function(){var L,E=SJ((L=g.data())==null?void 0:L.backgroundColor);return E?_.jh(E):void 0}})},_.p(_.Up,{data:function(){return g.data().header}},{pageHeaderViewModel:function(L){return _.p(_.XSt,{data:L.data,
noPadding:!0})}}),_.p(_.Up,{data:function(){return g.data().contents}},{horizontalShelfViewModel:function(L){return _.p(_.IS,{data:L.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.p(_.M,{cond:q,
then:function(){return _.p("div",{class:"ytOfficialCardViewModelExpandedContent"},_.p(_.Up,{data:function(){return g.data().expandedContents}},{horizontalShelfViewModel:function(L){return _.p(_.IS,{data:L.data,
sizing:"MINI"})}}),_.p("div",{class:"ytOfficialCardViewModelCollapseButton"},_.p(_.Up,{data:function(){return g.data().collapseButton}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
onClick:function(){Q(!q())}})}})))},
else:function(){return _.p("div",{class:"ytOfficialCardViewModelExpandButton"},_.p(_.Up,{data:function(){return g.data().expandButton}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
onClick:function(){Q(!q())}})}}))}}))},"kf"),"yt-official-card-view-model",{props:{data:_.H2,
className:_.H2}});var rTp=_.r(function(g){var u,q=(u=_.Bk().resolve(_.xv(_.gy)))==null?void 0:u();return _.p("ytw-search-friction-view-model",{class:_.Ty("ytwSearchFrictionViewModelHost",g.className)},_.p("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.p("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.p(_.M,{cond:function(){return q&&g.data().darkThemeImage?g.data().darkThemeImage:g.data().image},
then:function(Q){return _.p(_.IT,{data:Q,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.p(_.Up,{data:function(){return g.data().overflowMenuButton}},{buttonViewModel:function(Q){return _.p(_.TT,{data:Q.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.p(_.c2,{text:function(){return g.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.p(_.R4,{each:function(){return g.data().bodyText||[]}},function(Q){return _.p(_.c2,{text:Q,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.p(_.Up,{data:function(){return g.data().actions}},{buttonViewModel:function(Q){return _.p(_.TT,{data:Q.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.p(_.c2,{text:function(){return g.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.p(_.c2,{text:function(){return g.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"lf");
rTp.idomCompat=!0;_.dL(rTp,"ytw-search-friction-view-model",{props:{data:_.H2,className:_.H2}});_.CX=_.r(function(g){var u=_.Hk("markdown-div"),q,Q=(q=_.Bk().resolve(_.xv(_.gy)))==null?void 0:q();_.bX(function(){var L=u.value;var E=new fWn,y=new Map(E.JSC$9605_sanitizerTable.globalAttributePolicies);y.set("style",{policyAction:4});E.JSC$9605_sanitizerTable=new Jy(E.JSC$9605_sanitizerTable.allowedElements,E.JSC$9605_sanitizerTable.elementPolicies,E.JSC$9605_sanitizerTable.allowedGlobalAttributes,y,E.JSC$9605_sanitizerTable.globallyAllowedAttributePrefixes);var v=["data-time"];if(v===void 0)y=
new Set(E.JSC$9605_sanitizerTable.globallyAllowedAttributePrefixes),y.add("data-"),E.JSC$9605_sanitizerTable=new Jy(E.JSC$9605_sanitizerTable.allowedElements,E.JSC$9605_sanitizerTable.elementPolicies,E.JSC$9605_sanitizerTable.allowedGlobalAttributes,E.JSC$9605_sanitizerTable.globalAttributePolicies,y);else{y=new Set(E.JSC$9605_sanitizerTable.allowedGlobalAttributes);v=_.N(v);for(var J=v.next();!J.done;J=v.next()){J=J.value;if(J.indexOf("data-")!==0)throw Error("la`"+J);y.add(J)}E.JSC$9605_sanitizerTable=
new Jy(E.JSC$9605_sanitizerTable.allowedElements,E.JSC$9605_sanitizerTable.elementPolicies,y,E.JSC$9605_sanitizerTable.globalAttributePolicies,E.JSC$9605_sanitizerTable.globallyAllowedAttributePrefixes)}y=new Set(E.JSC$9605_sanitizerTable.allowedGlobalAttributes);y.add("class");E.JSC$9605_sanitizerTable=new Jy(E.JSC$9605_sanitizerTable.allowedElements,E.JSC$9605_sanitizerTable.elementPolicies,y,E.JSC$9605_sanitizerTable.globalAttributePolicies,E.JSC$9605_sanitizerTable.globallyAllowedAttributePrefixes);
_.fa(L,_.v$W(E.build(),TYT(g.text())));hHJ(u.value)},"CUInJc");
q={};return _.p("div",null,_.p("markdown-div",{class:_.Ty("ytwMarkdownDivHost",g.className,(q.ytwMarkdownDivDark=Q,q.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var L;return((L=g.isSmallText)==null?void 0:L.call(g))||!1},q.ytwMarkdownDivHostWrapCodeBlocks=function(){var L;
return((L=g.wrapCodeBlocks)==null?void 0:L.call(g))||!1},q.ytwMarkdownDivHostEnableDefaultStyling=function(){var L;
return!((L=g.disableDefaultStyling)==null?0:L.call(g))},q)),
el:u}))},"nf");
_.CX.idomCompat=!0;var WJz=_.r(function(g){var u=g.imageData;var q=_.dO(g.isInList,!1),Q=function(){return q()?{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 _.p("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.p(_.M,{cond:function(){return u().image},
then:function(L){return _.p(_.IT,{data:L,alt:function(){return Q().alt},
contentMode:function(){return Q().contentMode},
targetWidth:function(){return Q().targetWidth},
targetHeight:function(){return Q().targetHeight},
className:function(){return Q().className}})}}),_.p("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.p("div",{class:_.Ty("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.p(_.c2,{text:function(){return u().title}})),_.p(_.R4,{each:function(){var L;
return(L=u().description)!=null?L:[]}},function(L){return _.p("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.p(bC,{content:L}))})))},"of"),Tqn=_.r(function(g){var u=g.list;
var q=function(){var Q;return(Q=u().items)!=null?Q:[]};
return _.p("div",{class:"ytwGenAiRichTextViewModelListContent"},_.p(_.M,{cond:function(){return u().title},
then:function(Q){return _.p("div",{class:_.Ty("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.p(_.c2,{text:Q}))}}),_.p(_.M,{cond:function(){return u().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.p("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.p(_.R4,{each:q},function(Q){return _.p("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.p(bC,{content:Q,isInList:!0}))}))}}),_.p(_.M,{cond:function(){return u().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.p("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.p(_.R4,{each:q},function(Q){return _.p("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.p(bC,{content:Q,isInList:!0}))}))}}),_.p(_.M,{cond:function(){return u().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.p("div",{class:"ytwGenAiRichTextViewModelImageList"},_.p(_.R4,{each:q},function(Q){return _.p("div",{class:"ytwGenAiRichTextViewModelListItem"},_.p(bC,{content:Q,isInList:!0}))}))}}))},"pf"),hFp=_.r(function(g){var u=g.table;
return _.p("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.p("thead",null,_.p("tr",null,_.p(_.R4,{each:function(){var q,Q;return(Q=(q=u().header)==null?void 0:q.cells)!=null?Q:[]}},function(q){return _.p("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.p(_.R4,{each:function(){return q.contents}},function(Q){return _.p(bC,{content:Q})}))}))),_.p("tbody",null,_.p(_.R4,{each:function(){var q;
return(q=u().rows)!=null?q:[]}},function(q){return _.p("tr",null,_.p(_.R4,{each:function(){return q.cells}},function(Q){return _.p("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.p(_.R4,{each:function(){return Q.contents}},function(L){return _.p(bC,{content:L})}))}))})))},"qf"),bC=_.r(function(g){var u=g.content;
var q=_.dO(g.isInList,!1),Q=function(){var L,E;return(E=(L=u().contentBlock)==null?void 0:L.contents)!=null?E:[]};
return _.p("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.p(_.M,{cond:function(){return u().text},
then:function(L){return _.p(_.c2,{className:"ytwGenAiRichTextViewModelText",text:L})}}),_.p(_.M,{cond:function(){return u().image},
then:function(L){return _.p(WJz,{imageData:L,isInList:q})}}),_.p(_.M,{cond:function(){return u().list},
then:function(L){return _.p(Tqn,{list:L})}}),_.p(_.M,{cond:function(){return u().contentBlock},
then:function(){return _.p("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.p(_.R4,{each:Q},function(L){return _.p(bC,{content:L,isInList:!1})}))}}),_.p(_.M,{cond:function(){return u().table},
then:function(L){return _.p(hFp,{table:L})}}))},"rf"),YbL=_.r(function(g){var u={};
u=_.N0("ytwGenAiRichTextViewModelHost",(u.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.o4("search_overview_link_style")),u));return _.p("gen-ai-rich-text-view-model",{class:u},_.p(bC,{content:function(){return g.data().content}}))},"sf");_.OZp=_.r(function(g){var u=g.data;var q=function(){var l;return((l=u().loadingUi)!=null?l:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},Q=function(){return u().isLoading&&(q()==="UNSPECIFIED"||q()==="GHOST_CARD")},L=function(){return!u().isLoading},E=function(){return!!u().content&&!u().contents},y=function(){return!!u().contents},v=function(){return!!u().nextQueryButtons},J=function(){return u().isLoading&&q()==="INVISIBLE"},f=function(){var l,d;
return(d=(l=u().headerIcon)==null?void 0:l.iconType)!=null?d:""},t=function(){var l;
return(l=u().content)!=null?l:""},e=function(){return!!u().sourcesSection},G,R=!((G=_.Bk().resolve(_.xv(_.gy)))==null||!G()),H=_.G9(function(){var l=[],d=u().contents;
if(d)for(var F=0;F<d.length;F++){var V=_.c(d&&d[F],OFR);V&&l.push(V)}return l},void 0,"gcCsZb");
_.I4(function(){u().isLoading||_.fW("so_re",void 0,"search_overview_answer")});
return _.p("ytd-overview-answer-view-model",{class:function(){var l={};l=(l.ytdOverviewAnswerViewModelHost=!0,l.ytdOverviewAnswerViewModelDarkBackground=R&&!J(),l.ytdOverviewAnswerViewModelLightBackground=!R&&!J(),l);return _.N0(l)}},_.p(_.M,{cond:function(){return!J()},
then:function(){return _.p(_.U9,null,_.p("h2",null,_.p("div",{class:"ytdOverviewAnswerViewModelHeader"},_.p(_.M,{cond:f,then:function(l){return _.p("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.p(_.B1,{icon:l}))}}),_.p("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.p("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return u().headerText}),_.p("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.p(_.c2,{text:function(){return u().headerSubtext}}))))),_.p(_.M,{cond:Q,
then:function(){return _.p(YNS,null)}}),_.p(_.M,{cond:L,
then:function(){return _.p(_.U9,null,_.p(_.M,{cond:E,then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelText"},_.p(_.CX,{text:t,isSmallText:!0}))}}),_.p(_.M,{cond:y,
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelRichText"},_.p(_.R4,{each:H},function(l){return _.p(YbL,{data:l})}))}}),_.p(_.M,{cond:v,
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.p(_.Up,{data:function(){return u().nextQueryButtons}},{buttonViewModel:function(l){return _.p(_.TT,{data:l.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.IS}))}}),_.p("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.p("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.p(_.M,{cond:function(){return!!_.c(u().likeButtonViewModel,_.wT)&&!!_.c(u().dislikeButtonViewModel,_.cK)},
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.p(_.et,{data:function(){return _.c(u().likeButtonViewModel,_.wT)},
disableIconAnimation:!0}),_.p(_.tP,{data:function(){return _.c(u().dislikeButtonViewModel,_.cK)}}))}})),_.p(_.M,{cond:function(){var l;
return(l=u().sourcesSection)==null?void 0:l.headerText},
then:function(l){return _.p("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.p(_.c2,{text:l}))}})),_.p(_.M,{cond:e,
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelSources"},_.p(_.Up,{data:function(){var l;return(l=u().sourcesSection)==null?void 0:l.sourcesShelf}},{buttonViewModel:_.TT,
horizontalShelfViewModel:function(l){return _.p(_.IS,{data:l.data,includeMargin:!0,hasPeek:!0})}}))}}),_.p(_.M,{cond:function(){return u().disclaimerText},
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.p(_.c2,{text:function(){return u().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"tf");var KJx=_.r(function(g){var u=_.FI(g,{}).data;return _.p("yt-shopping-content-line-item-view-model",{class:_.Ty("ytShoppingContentLineItemViewModelHost")},_.p(_.c2,{text:function(){var q;return(q=u().text)==null?void 0:q.attributedString}}))},"uf");_.d4=_.r(function(g){g=_.FI(g,{});var u=g.data,q={};return _.p("yt-shopping-content-line-view-model",{class:_.Ty("ytShoppingContentLineViewModelHost",g.className,(q.ytShoppingContentLineViewModelTruncateText=function(){return!u().wrapContent},q)),
style:_.xH({"--shopping-content-line-gap":function(){return u().itemGap?u().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return u().lineHeight?u().lineHeight+"px":void 0}})},_.p(_.R4,{each:function(){return(u().items||[]).map(function(Q){return _.c(Q,kLR)}).filter(function(Q){return!!Q})}},function(Q){return _.p(KJx,{data:Q})}))},"vf");var x3h=_.r(function(g){var u=g.data;var q=function(){var E;return((E=u().image)==null?void 0:E.height)||48},Q=function(){var E;
return((E=u().image)==null?void 0:E.width)||48},L=function(){return"width: "+Q()+"px; height: "+q()+"px;"};
return _.p("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var E,y,v,J=((E=_.Bk().resolve(_.xv(_.gy)))==null?0:E())?(y=u())==null?void 0:y.darkThemeBackgroundColor:(v=u())==null?void 0:v.lightThemeBackgroundColor;return"background-color: "+(J?_.jh(J):"")+";"},
el:_.lF(_.J7(function(){var E;return(E=u())==null?void 0:E.rendererContext})),
role:"link",tabindex:0},_.p(_.M,{cond:function(){var E,y;return(y=(E=u().image)==null?void 0:E.image)!=null?y:u().thumbnail},
then:function(E){return _.p("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var y;return"background-color: "+(((y=u().image)==null?0:y.backgroundColor)?_.jh(u().image.backgroundColor):"")+";"+L()}},_.p(_.IT,{data:E,
height:q,width:Q,style:L,alt:""}))}}),_.p("div",{class:"ytShoppingDescriptionItemViewModelText"},_.p(_.Up,{data:function(){return u().line1}},{shoppingContentLineViewModel:function(E){return _.p(_.d4,{data:E.data})}}),_.p(_.Up,{data:function(){return u().line2}},{shoppingContentLineViewModel:function(E){return _.p(_.d4,{data:E.data})}}),_.p(_.Up,{data:function(){return u().line3}},{shoppingContentLineViewModel:function(E){return _.p(_.d4,{data:E.data})}})))},"wf");var BqC=_.r(function(g){var u=g.data;var q=g.active;var Q=_.Hk("transcript-segment-view-model");_.bX(function(){var L,E,y,v=((L=_.Bk().resolve(_.xv(_.gy)))==null?0:L())?(E=u())==null?void 0:E.darkThemeColorPalette:(y=u())==null?void 0:y.lightThemeColorPalette;v&&(v.additiveBackground&&Q.value.style.setProperty("--timestamp-active-background-color",_.jh(v.additiveBackground)),v.textSecondary&&Q.value.style.setProperty("--timestamp-active-color",_.JR(v.textSecondary)))},"TnVCnb");
g={};return _.p("transcript-segment-view-model",{class:_.Ty("ytwTranscriptSegmentViewModelHost",(g.ytwTranscriptSegmentViewModelHostActive=q,g.ytwTranscriptSegmentViewModelHostModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),g)),el:Q},_.p(_.M,{cond:function(){var L;return(L=u())==null?void 0:L.timestamp},
then:function(L){var E={};return _.p(_.U9,null,_.p("div",{class:_.Ty("ytwTranscriptSegmentViewModelTimestamp",(E.ytwTranscriptSegmentViewModelTimestampActive=q,E)),"aria-hidden":!0},L),_.p("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var y=L().split(":").map(Number),v=_.N(y.reverse());y=v.next().value;var J=v.next().value;v=v.next().value;return _.zOb({hours:v,minutes:J,seconds:y})}))}}),_.p(_.c2,{text:function(){var L,E,y;
return(y=(L=u())==null?void 0:L.attributedText)!=null?y:{content:(E=u())==null?void 0:E.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yf");var zFh=_.r(function(g){var u=g.data;return _.p("div",{class:"videoAttributesSectionViewModelHeader"},_.p("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.p("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return u().headerTitle}),_.p(_.M,{cond:function(){return u().headerInfoButton},
then:function(){return _.p(_.Up,{data:function(){return u().headerInfoButton}},{buttonViewModel:function(q){return _.p(_.TT,{data:q.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.p(_.M,{cond:function(){return u().headerSubtitle},
then:function(){return _.p("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return u().headerSubtitle})}}))},"zf"),nub=_.r(function(g){function u(l){return Math.max(Math.min(l,0),f()-v())}
var q=g.data;var Q;g=_.Hk("div",function(l){var d=function(){t(l.clientWidth)};
d();window.ResizeObserver&&(Q=new ResizeObserver(d),Q.observe(l))});
var L=_.Hk("div",function(l){J(l.scrollWidth)}),E=_.N(_.jR(0,void 0,"C3XQAe")),y=E.next().value;
E=E.next().value;var v=y,J=E;E=_.N(_.jR(0,void 0,"db7y3"));y=E.next().value;E=E.next().value;var f=y,t=E;y=_.N(_.jR(0,void 0,"RchC7"));var e=y.next().value,G=y.next().value;_.dB(function(){var l;(l=Q)==null||l.disconnect()});
var R=function(){G(u(e()+f()))},H=function(){G(u(e()-f()))};
return _.p("yt-video-attributes-section-view-model",null,_.p("div",{class:"videoAttributesSectionViewModelHost"},_.p(_.M,{cond:function(){return q().headerTitle},
then:function(){return _.p(zFh,{data:q})}}),_.p("div",{class:_.Ty("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:g},_.p("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.xH({transform:function(){var l=e();_.FR("HTML_DIR")==="rtl"&&(l*=-1);return"translateX("+l+"px)"}}),
el:L},_.p(_.Up,{data:function(){return q().videoAttributeViewModels}},{videoAttributeViewModel:CI5}))),_.p(_.Up,{data:function(){return q().footerButton}},{buttonViewModel:function(l){return _.p(_.TT,{data:l.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.p(_.M,{cond:function(){return e()<0&&q().previousButton},
then:function(){return _.p("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.p(_.Up,{data:function(){return q().previousButton}},{buttonViewModel:function(l){return _.p(_.TT,{data:l.data,
onClick:R})}}))}}),_.p(_.M,{cond:function(){return e()>f()-v()&&q().nextButton},
then:function(){return _.p("div",{class:"videoAttributesSectionViewModelRightArrow"},_.p(_.Up,{data:function(){return q().nextButton}},{buttonViewModel:function(l){return _.p(_.TT,{data:l.data,
onClick:H})}}))}})))},"Af");
nub.idomCompat=!0;var kMK=_.r(function(g){var u=g.data;var q=g.active;var Q={},L={};return _.p("timeline-item-view-model",{class:_.Ty("ytwTimelineItemViewModelHost",(Q.ytwTimelineItemViewModelHostChapterChild=g.chapterChild,Q.ytwTimelineItemViewModelModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),Q))},_.p("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.p("div",{class:_.Ty("ytwTimelineItemViewModelTimestamp",(L.ytwTimelineItemViewModelTimestampActive=
q,L))},function(){return u().timestamp})),_.p("div",{class:"ytwTimelineItemViewModelContentItems"},_.p(_.Up,{data:function(){return u().contentItems}},{transcriptSegmentViewModel:function(E){return _.p(BqC,{data:E.data,
active:q})},
videoAttributesSectionViewModel:nub})))},"Bf");var Sbb=_.r(function(g){var u=g.data;g={};return _.p("timeline-chapter-view-model",{class:_.Ty("ytwTimelineChapterViewModelHost")},_.p("div",{class:_.Ty("ytwTimelineChapterViewModelTitle",(g.ytwTimelineChapterViewModelModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),g))},function(){return u().title}),_.p(_.Up,{data:function(){return u().contents}},{timelineItemViewModel:function(q){return _.p(kMK,{data:q.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(q){return _.p(nub,{data:q.data})}}))},"Cf");var ouL=_.r(function(g){var u=g.data;var q=_.Hk("macro-markers-panel-item-view-model"),Q=_.kq(_.Ilq,function(){var E;return(E=u().markersEngagementPanelSyncEntityKey)!=null?E:""}),L=function(){var E;
return((E=Q())==null?void 0:E.activeItemIndex)===u().index};
g=_.YH(function(E){var y,v,J,f,t;return _.D(function(e){if(e.nextAddress==1)return E.stopPropagation(),_.vY(_.y4(E),q.value,["A".toString(),"BUTTON".toString()])?e.return():(y=_.jy(u().onTap))?e.yield(_.Op(),2):e.return();v=e.yieldResult;f=(J=_.c(y,_.l1))==null?void 0:J.startTimeSeconds;f===void 0||(t=v)!=null&&t.seekTo(f,!0);_.Wx(e)})});
return _.p("macro-markers-panel-item-view-model",{class:_.Ty("ytwMacroMarkersPanelItemViewModelHost",{"is-active":L}),el:q,"on:click":g,tabindex:function(){return _.c(u().item,S1n)?void 0:0},
role:function(){return _.c(u().item,S1n)?void 0:"button"}},_.p(_.Up,{data:function(){var E;
return(E=u())==null?void 0:E.item}},{timelineChapterViewModel:function(E){return _.p(Sbb,{data:E.data,
active:L})},
timelineItemViewModel:function(E){return _.p(kMK,{data:E.data,active:L})},
videoAttributeViewModel:CI5,shoppingDescriptionItemViewModel:x3h}))},"Df");
ouL.idomCompat=!0;_.dL(ouL,"macro-markers-panel-item-view-model",{props:{data:_.H2}});_.dL(nub,"yt-video-attributes-section-view-model",{props:{data:_.H2}});var U39=_.r(function(g){var u=function(){var q,Q,L;return(L=(q=g.data().leadingLogoAccessibility)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label)!=null?L:""};
return _.p("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.p(_.M,{cond:function(){return g.data().leadingLogo},
then:function(q){return _.p(_.IT,{className:"ytwFantasySectionHeaderViewModelLogo",data:q,alt:u})}}),_.p("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.p(_.c2,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return g.data().title}}),_.p(_.c2,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return g.data().subtitle}})),_.p(_.Up,{data:function(){return g.data().trailingButton}},{buttonViewModel:function(q){return _.p(_.TT,{data:q.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ef");var gi9=_.r(function(g){var u={};u=_.Ty("ytwFantasyTeamViewModelHost",(u.ytwFantasyTeamViewModelCompact=function(){var L;return!((L=g.compact)==null||!L.call(g))},u.ytwFantasyTeamViewModelUser=function(){return g.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},u.ytwFantasyTeamViewModelOpponent=function(){return g.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},u));
var q=function(){var L,E,y;return(y=(L=g.data().teamLogoAccessibility)==null?void 0:(E=L.accessibilityData)==null?void 0:E.label)!=null?y:""},Q=_.kq(CrM,function(){return g.data().teamEntityKey});
return _.p("ytw-fantasy-team-view-model",{class:u},_.p(_.M,{cond:function(){return g.data().teamLogo},
then:function(L){return _.p(_.IT,{className:"ytwFantasyTeamViewModelLogo",data:L,alt:q})}}),_.p("div",{class:"ytwFantasyTeamViewModelMetadata"},_.p("div",{class:"ytwFantasyTeamViewModelHeader"},_.p(_.c2,{className:"ytwFantasyTeamViewModelScore",
text:function(){var L;return(L=Q())==null?void 0:L.score}}),_.p(_.B1,{icon:function(){var L;
return(L=Q())==null?void 0:L.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.p(_.c2,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var L;return(L=Q())==null?void 0:L.projectedScore}})),_.p(_.c2,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return g.data().primaryText}}),_.p(_.c2,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return g.data().secondaryText}}),_.p(_.c2,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return g.data().tertiaryText}})),_.p(_.c2,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var L;return(L=Q())==null?void 0:L.score}}))},"Ff");_.dL(_.r(function(g){return _.p("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.p("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.p(_.Up,{data:function(){return g.data().summaryHeader}},{fantasySectionHeaderViewModel:U39})),_.p(_.Up,{data:function(){return g.data().userTeam}},{fantasyTeamViewModel:gi9}),_.p(_.Up,{data:function(){return g.data().opponentTeam}},{fantasyTeamViewModel:gi9}))},"Gf"),"fantasy-league-summary-view-model",{props:{data:_.H2}});var uWC=_.r(function(g){var u=_.FI(g,{shape:{},useCustomTabRenderable:!1}),q=u.shape;u=u.useCustomTabRenderable;var Q=g.customTabRenderable,L=function(){return q().disabled},E=function(){return q().selected},y=function(){return q().title},v=function(){return q().icon},J=_.Hk("yt-tab-shape");
g=_.YH(function(e){var G;if(!L()&&((G=q().aTagConfig)==null?0:G.onclick))q().aTagConfig.onclick(e);return!1});
var f=_.YH(function(e){if(e.key==="Enter"||e.key==="ArrowUp"||e.key==="ArrowDown")e.preventDefault(),J.value.click();return!1}),t={};
return _.p("yt-tab-shape",{class:_.Ty("yt-tab-shape",function(){return q().className},(t["yt-tab-shape__tab--last-tab"]=function(){return q().isLastTab},t["yt-tab-shape--host-disabled"]=L,t["yt-tab-shape--host-clickable"]=!Q,t)),
role:Q?void 0:"tab","aria-selected":E!=null?E:!1,"aria-disabled":L,tabindex:Q?void 0:0,"on:click":g,"on:keydown":f,el:J,"tab-identifier":function(){return q().identifier},
"tab-title":y},_.p(_.M,{cond:u,then:function(){return Q()},
else:function(){var e={},G={};return _.p(_.U9,null,_.p("div",{class:_.Ty("yt-tab-shape__tab",(e["yt-tab-shape__tab--tab-selected"]=E,e))},_.p(_.M,{cond:v,then:function(R){return _.p(_.B1,{className:"yt-tab-shape__tab-icon",icon:function(){return R().iconType}})}}),y),_.p("div",{class:_.Ty("yt-tab-shape__tab-bar",(G["yt-tab-shape__tab-bar--tab-bar-selected"]=E,G))}))}}))},"Hf");
uWC.idomCompat={callbacks:{customTabRenderable:!0}};_.QRK=_.r(function(g){var u=g.shape;g=_.N(_.jR(48,void 0,"nDAx4"));var q=g.next().value,Q=g.next().value;g=_.N(_.jR(0,void 0,"GCgjqb"));var L=g.next().value,E=g.next().value,y=function(){return u().tabs},v=_.Hk("yt-tab-group-shape"),J=function(){var G,R;
return(R=(G=y())==null?void 0:G.findIndex(function(H){return H.selected}))!=null?R:-1};
g=_.N(_.jR(!1,void 0,"SU01tf"));var f=g.next().value,t=g.next().value,e=function(){f()||_.Hv.addJob(function(){t(!0)},0)};
_.bX(function(){var G=J(),R=_.Hv.addJob(function(){var H,l=((H=v.value)==null?void 0:H.querySelectorAll("yt-tab-shape"))||[],d;Q(((d=G>-1?l[G]:void 0)==null?void 0:d.getBoundingClientRect().width)||0);for(d=H=0;d<G;d++)H+=l[d].offsetWidth+24;_.FR("HTML_DIR")==="rtl"&&(H=-H);E(H);e()},8,0);
_.dB(function(){_.Hv.cancelJob(R)})},"PMwgb");
g={};return _.p("yt-tab-group-shape",{class:_.Ty("tabGroupShapeHost",(g.tabGroupShapeOverflowHidden=function(){return u().isOverflowHidden},g)),
el:v},_.p(_.M,{cond:y,then:function(G){return _.p(_.U9,null,_.p("div",{class:"tabGroupShapeTabs",role:"tablist"},_.p(_.R4,{each:G},function(R,H){return _.p(uWC,{shape:function(){return Object.assign({},R,{isLastTab:H()===G().length-1})},
customTabRenderable:R.customTabRenderable,useCustomTabRenderable:!!R.customTabRenderable})})),_.p(q0h,{width:q,
sliderOffset:L,enableTransition:f}))}}))},"Jf");
_.QRK.idomCompat=!0;var q0h=_.r(function(g){var u=_.dO(g.sliderOffset,0),q=g.width,Q=g.enableTransition;g={};return _.p("div",{class:_.Ty("tabGroupShapeSlider",(g.tabGroupShapeSliderTransition=function(){return Q()},g)),
style:_.xH({width:function(){return q()+"px"},
transform:function(){return"translateX("+u()+"px)"}})})},"Kf");var L8L=_.r(function(g){var u=function(){var E,y,v;return(v=(E=g.data().playerLogoAccessibility)==null?void 0:(y=E.accessibilityData)==null?void 0:y.label)!=null?v:""},q=_.kq(bQ3,function(){return g.data().playerEntityKey}),Q={};
Q=_.Ty("ytwFantasyPlayerViewModelHost",(Q.ytwFantasyPlayerViewModelPlaying=function(){var E;return!((E=q())==null||!E.isPlayerPlaying)},Q.ytwFantasyPlayerViewModelOnField=function(){var E;
return((E=q())==null?void 0:E.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},Q.ytwFantasyPlayerViewModelRedZone=function(){var E;
return((E=q())==null?void 0:E.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},Q));
var L=function(){var E,y,v,J=((E=_.Bk().resolve(_.xv(_.gy)))==null?0:E())?(y=g.data().playerLogoBackgroundColor)==null?void 0:y.darkTheme:(v=g.data().playerLogoBackgroundColor)==null?void 0:v.lightTheme;return J===void 0?"":_.jh(J)};
return _.p("ytw-fantasy-player-view-model",{class:Q},_.p(_.M,{cond:function(){return g.data().playerLogo},
then:function(E){return _.p("div",{class:"ytwFantasyPlayerViewModelLogo"},_.p("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.p(_.IT,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.xH({"background-color":L}),data:E,alt:u})),_.p("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.p(_.B1,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.p("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.p("div",{class:"ytwFantasyPlayerViewModelHeader"},_.p(_.c2,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var E;return(E=g.data())==null?void 0:E.playerNameText}}),_.p(_.c2,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var E;return(E=g.data())==null?void 0:E.playerDescriptionText}})),_.p("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.p(_.c2,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=q())==null?void 0:E.gamePeriodText}}),_.p(_.c2,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=g.data())==null?void 0:E.opponentTeamText}}),_.p(_.c2,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=q())==null?void 0:E.gameStatusText}}),_.p(_.c2,{className:_.Ty("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var E;return(E=q())==null?void 0:E.playerStatusText}})),_.p("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.p(_.c2,{text:function(){var E;
return(E=q())==null?void 0:E.playerStatsText}}))),_.p(_.c2,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var E;return(E=q())==null?void 0:E.fantasyScore}}))},"Lf");var Ein=_.r(function(g){return _.p("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.p(_.M,{cond:function(){return g.data().players},
then:function(u){return _.p(_.Up,{data:u},{fantasyPlayerViewModel:L8L})}}))},"Mf");var PZt=_.r(function(g){var u=_.N(_.mX(function(){var L;return(L=g.data().selectedTabIdentifierKey)!=null?L:""})),q=u.next().value,Q=u.next().value;
_.lL(function(){var L;(L=g.setSelectedTabSignal)==null||L.call(g,q)});
return _.p("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.p("div",{class:"ytTabbedViewModelTabGroup"},_.p(_.QRK,{shape:function(){var L=g.data(),E=[],y={tabs:E};if(!L.tabs)return y;L=_.N(L.tabs);for(var v=L.next(),J={};!v.done;J={tabViewModel:void 0},v=L.next())if(J.tabViewModel=_.c(v.value,qCa),J.tabViewModel){var f=v=void 0;E.push({aTagConfig:{onclick:function(t){return function(){var e;Q((e=t.tabViewModel.tabIdentifier)!=null?e:"")}}(J)},
identifier:J.tabViewModel.tabIdentifier,selected:q()===J.tabViewModel.tabIdentifier,title:(f=(v=J.tabViewModel.title)==null?void 0:v.content)!=null?f:""})}return y}})),_.p(_.Up,{data:function(){var L,E=_.N((L=g.data().tabs)!=null?L:[]);
for(L=E.next();!L.done;L=E.next())if((L=_.c(L.value,qCa))&&L.tabIdentifier===q())return L.content}},{fantasyRosterViewModel:Ein}))},"Of");_.dL(_.r(function(g){var u=_.N(OkK()),q=u.next().value,Q=u.next().value;return _.p("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.p(_.c2,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return g.data().title}}),_.p(_.M,{cond:function(){return g.data().tabbedViewModel},
then:function(L){return _.p(_.Up,{data:L},{tabbedViewModel:function(E){return _.p(PZt,{data:E.data,setSelectedTabSignal:Q})}})}}),_.p(_.M,{cond:function(){var L,E=(L=_.c(g.data().tabbedViewModel,QP8))==null?void 0:L.tabs;
L=_.c(E==null?void 0:E[0],qCa);E=_.c(E==null?void 0:E[1],qCa);var y=L==null?void 0:L.tabIdentifier;if(q()===y){var v,J;if(!((v=_.c(L==null?void 0:L.content,pIi))==null?0:(J=v.players)==null?0:J.length))return g.data().noUserTeamPlayersText}else{var f,t;if(!((f=_.c(E==null?void 0:E.content,pIi))==null?0:(t=f.players)==null?0:t.length))return g.data().noOpponentTeamPlayersText}},
then:function(L){return _.p(_.c2,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:L})}}))},"Pf"),"ytw-fantasy-matchup-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){return _.p("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.p(_.c2,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return g.data().title}}),_.p(_.M,{cond:function(){return g.data().matchupTeamPairs},
then:function(u){return _.p(_.R4,{each:u,keyBy:"INDEX"},function(q){return _.p("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.p(_.Up,{data:function(){return[q().firstTeam,q().secondTeam]}},{fantasyTeamViewModel:function(Q){return _.p(gi9,{data:Q.data,
compact:!0})}}))})}}))},"Qf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=function(){var L,E,y;return(y=(L=g.data().userLogoAccessibility)==null?void 0:(E=L.accessibilityData)==null?void 0:E.label)!=null?y:""},q=function(){var L,E,y;
return(y=(L=g.data().opponentLogoAccessibility)==null?void 0:(E=L.accessibilityData)==null?void 0:E.label)!=null?y:""},Q=_.kq(iQu,function(){return g.data().entityKey});
return _.p("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.p("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.p(_.M,{cond:function(){return g.data().userLogo},
then:function(L){return _.p(_.IT,{className:"ytwFantasyWinProbabilityViewModelLogo",data:L,alt:u})}}),_.p("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.p(_.c2,{text:function(){return g.data().title}})),_.p(_.M,{cond:function(){return g.data().opponentLogo},
then:function(L){return _.p(_.IT,{className:"ytwFantasyWinProbabilityViewModelLogo",data:L,alt:q})}})),_.p("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.p("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.p(_.c2,{text:function(){var L;
return(L=Q())==null?void 0:L.userWinNumberLabel}})),_.p("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.p("div",{class:_.Ty("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.xH({flex:function(){var L,E;return(E=(L=Q())==null?void 0:L.userWinNumber)!=null?E:50}})}),_.p("div",{class:_.Ty("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.xH({flex:function(){var L,E;return(E=(L=Q())==null?void 0:L.opponentWinNumber)!=null?E:50}})})),_.p("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.p(_.c2,{text:function(){var L;
return(L=Q())==null?void 0:L.opponentWinNumberLabel}}))))},"Rf"),"fantasy-win-probability-view-model",{props:{data:_.H2}});var Nah={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},sRf=_.r(function(g){return _.p(_.Up,{data:g.button},{buttonViewModel:function(u){return _.p(_.TT,{data:u.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Sf"),ybZ=_.r(function(g){return _.p("ytd-backstage-locked-post-view-model",{class:_.Ty("ytdBackstageLockedPostViewModelHost",g.className)},_.p("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.p("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.p(_.Up,
{data:function(){return g.data().authorAvatar}},{decoratedAvatarViewModel:_.fG})),_.p("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.p("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.p(_.c2,{text:function(){return g.data().authorText}})),_.p("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.p(_.c2,{text:function(){return g.data().publishedTimeText}}),_.p(_.Up,{data:function(){return g.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(u){return _.p(QX8,
{data:u.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.p("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.p(_.c2,{text:function(){return g.data().contentText}})),_.p(_.wi,null,_.p(_.Gv,{when:function(){return g.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.p("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.p(_.IT,{data:Nah,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.p(_.c2,{text:function(){return g.data().lockedText}}))}),_.p(_.Gv,{when:function(){return g.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.p("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.p("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.p(_.IT,{data:Nah,
alt:""})),_.p(_.c2,{text:function(){return g.data().lockedText}}))})),_.p("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.p(sRf,{button:function(){return g.data().likeButton}}),_.p("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return g.data().voteCountA11y}},_.p(_.c2,{text:function(){return g.data().voteCount}})),_.p(sRf,{button:function(){return g.data().dislikeButton}}),_.p(sRf,{button:function(){return g.data().commentButton}}),_.p("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return g.data().commentCountA11y}},_.p(_.c2,{text:function(){return g.data().commentCount}}))))},"Tf");
ybZ.idomCompat=!0;_.dL(ybZ,"ytd-backstage-locked-post-view-model",{props:{data:_.H2,className:_.H2}});_.Ny("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var FG=function(){var g=_.X.apply(this,arguments)||this;g.darkerPanels=_.w("web_watch_darker_panels");g.commentsHidePanelButton=!1;g.isWatchGrid=!1;g.continuationShowButton=!1;g.isSearch=!1;g.isConstrainedList=!1;g.isWatch=!1;g.eligibleToSwitchToGrid=!1;g.useBigThumbs=!1;g.epRestyle=!1;g.isCarouselInFeed=!0;g.topSpacingZero=!1;g.continuationIsInitialLoad=!0;g.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");g.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");g.notSticky=
!0;g.mastheadHeight=0;g.isStickyChipBarSetup=!1;g.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};g.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return g};
_.A(FG,_.X);_.P=FG.prototype;_.P.updateLockupContainerTypes=function(g){if(this.eligibleToSwitchToGrid){var u;(u=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||u.forEach(function(q){q.containerType=g})}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.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:_.w("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.w("kevlar_low_priority_continuation")}}};
_.P.created=function(){};
_.P.updateStickySetup=function(){_.w("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.P.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(Itx(!this.notSticky))};
_.P.setupStickyChipBar=function(){var g=this;if(!this.isStickyChipBarSetup&&_.w("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.zr(this,this.updateHeaderState));var u;this.mastheadHeight=((u=document.querySelector("ytd-masthead"))==null?void 0:u.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(q){g.handleIntersect(q)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){g.updateHeaderState();g.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.P.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.zr(this,this.updateHeaderState));var g;(g=this.intersectionObserver)==null||g.disconnect();var u;(u=this.resizeObserver)==null||u.disconnect()}};
_.P.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.P.handleIntersect=function(g){this.notSticky=g[0].intersectionRatio===1};
_.P.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")};
_.P.detached=function(){this.teardownStickyChipBar()};
_.P.updated=function(g){g.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.P.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var g=_.Tr(this.hostElement).querySelector("ytd-comments-header-renderer");g&&(g.hidePanelButton=this.commentsHidePanelButton)}};
_.P.onRetrieveLocation=function(g,u){this.containsComments()&&(this.firstCommentsLoaded=u.hasComments=!0)};
_.P.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.P.onLoadReloadContinuation=function(g,u){var q=this;g.stopPropagation();this.isReloading=!0;_.hJ(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(Q){var L=_.Bk().resolve(_.qR);Q=u(Q);L.postData(Q).then(function(E){q.onReloadContinuationData(E)})}})};
_.P.onReloadContinuationData=function(g){if(g=this.get("response.continuationContents.itemSectionContinuation",g)||this.get("response.contents.itemSectionRenderer",g)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",g)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",g))this.set("data.contents",g.contents||g.results),g.header&&this.set("data.header",g.header),this.set("data.continuations",
g.continuations||[]);this.isReloading=!1};
_.P.computeContentsClass=function(g){return g?"reloading":""};
_.P.computeSectionIdentifier=function(g){return g==null?void 0:g.sectionIdentifier};
_.P.computeFitContainer=function(g){return(g==null?void 0:g.sectionIdentifier)==="youchat-item-section"};
_.P.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.w("kevlar_disable_comments_auto_load")};
_.P.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.P.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.P.computeHasDestinationShelfRenderer=function(g){var u,q;return!!(g==null?0:(u=g.contents)==null?0:(q=u[0])==null?0:q.destinationShelfRenderer)};
_.P.computeHasSectionGroupViewModel=function(g){var u,q;return!!(g==null?0:(u=g.contents)==null?0:(q=u[0])==null?0:q.sectionGroupViewModel)};
_.P.computeHasQrCodeRenderer=function(g){var u,q;return!!(g==null?0:(u=g.contents)==null?0:(q=u[0])==null?0:q.qrCodeRenderer)};
_.P.computeStaticCommentsHeader=function(g){return g&&this.containsComments()};
_.P.computeEpRestyle=function(g){return _.w("web_ep_restyling")&&g&&this.containsComments()};
_.P.computeIsContinuationCommentSection=function(g){return(g==null?void 0:g.targetId)==="shorts-engagement-panel-comments-section"||(g==null?void 0:g.targetId)==="comments-section"||(g==null?void 0:g.targetId)==="engagement-panel-comments-section"};
_.P.computeSuppressPaddingDisclaimer=function(){var g,u,q,Q;return!!((g=this.data)==null?0:(u=g.contents)==null?0:(q=u[0])==null?0:(Q=q.productListHeaderRenderer)==null?0:Q.suppressPaddingDisclaimer)};
_.P.computeHeaderStyle=function(g){switch(g==null?void 0:g.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.P.dataChanged=function(){this.firstCommentsLoaded=!1};
_.P.observeDataContentsLength=function(){var g,u;((g=this.data)==null?0:(u=g.contents)==null?0:u.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.P.onYtDismissibleItemDismissedChange=function(g){this._setItemDismissed(g.type==="yt-dismissible-item-dismissed")};
_.P.triggerContinuations=function(){for(var g=_.Tr(this.hostElement).querySelector("#continuations").children,u=0;u<g.length;u++)g[u].trigger()};
_.P.triggerInitialContinuations=function(){for(var g=_.Tr(this.hostElement).querySelector("#continuations").children,u=0;u<g.length;u++)g[u].triggerIfNotPreviouslyTriggered()};
_.P.handleYtItemSectionContinuation=function(g,u){var q;u&&((q=this.data)==null?void 0:q.sectionIdentifier)!==u||(this.set("data.continuations",[g]),this.triggerContinuations())};
_.P.handleYtItemSectionReplace=function(g,u){var q;u&&((q=this.data)==null?void 0:q.sectionIdentifier)!==u||(this.set("data.contents",g),this.set("data.continuations",[]))};
_.P.computeUseHeightHack=function(g){return g&&!_.w("kevlar_disable_height_hack")};
_.P.computeTopSpacingZero=function(g){return g};
_.P.continuationShowButtonChanged=function(){var g=_.Tr(this.hostElement).querySelector("ytd-continuation-item-renderer");g&&(g.showButton=this.continuationShowButton)};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("data-changed",this.data))};
_.z3.Object.defineProperties(FG.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.w("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 g,u,q;return!!((g=this.data)==null?0:(u=g.contents)==null?0:(q=u[0])==null?0:q.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q,L,E,y;return!!((g=this.data)==null?0:(u=g.contents)==null?0:(q=u[0])==null?0:(Q=q.shelfRenderer)==null?0:(L=Q.content)==null?0:(E=L.gridRenderer)==null?0:(y=E.targetId)==null?0:y.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return!!((g=this.data)==null?0:(u=g.contents)==null?0:(q=u[0])==null?0:q.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return!!((g=this.data)==null?0:(u=g.contents)==null?0:(q=u[0])==null?0:q.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.o4("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.w("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.w("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.w("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var g,u;return!!((g=this.data)==null?0:(u=g.header)==null?0:u.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.w("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.w("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
FG.prototype.dataChangedForBinding=FG.prototype.dataChangedForBinding;FG.prototype.continuationShowButtonChanged=FG.prototype.continuationShowButtonChanged;FG.prototype.onYtDismissibleItemDismissedChange=FG.prototype.onYtDismissibleItemDismissedChange;FG.prototype.observeDataContentsLength=FG.prototype.observeDataContentsLength;FG.prototype.dataChanged=FG.prototype.dataChanged;FG.prototype.onServiceRequestCompleted=FG.prototype.onServiceRequestCompleted;FG.prototype.onLoadReloadContinuation=FG.prototype.onLoadReloadContinuation;
FG.prototype.onRetrieveLocation=FG.prototype.onRetrieveLocation;FG.prototype.commentsHidePanelButtonChanged=FG.prototype.commentsHidePanelButtonChanged;FG.prototype.dispatchChipBarIsSticky=FG.prototype.dispatchChipBarIsSticky;FG.prototype.updateStickySetup=FG.prototype.updateStickySetup;FG.prototype.updateLockupContainerTypes=FG.prototype.updateLockupContainerTypes;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],FG.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.a_.YtLazyListBehavior),_.K("design:type",Object)],FG.prototype,"ytLazyListBehavior",void 0);_.Y([_.I(_.Cm.YtNextContinuationBehavior),_.K("design:type",Object)],FG.prototype,"ytNextContinuationBehavior",void 0);
_.Y([_.I(_.i5),_.K("design:type",Object)],FG.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],FG.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],FG.prototype,"ytdReduxBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],FG.prototype,"darkerPanels",void 0);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],FG.prototype,"engagementPanel",void 0);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"commentsHidePanelButton",void 0);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"isWatchGrid",void 0);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"continuationShowButton",void 0);_.Y([_.a({computed:"computeIsContinuationCommentSection(data)"}),_.K("design:type",Boolean)],FG.prototype,"continuationIsCommentsSection",void 0);
_.Y([_.a({value:!0}),_.K("design:type",Boolean)],FG.prototype,"autoFill",void 0);_.Y([_.a(),_.K("design:type",Boolean)],FG.prototype,"continuationDisablePrescanVisibility",void 0);_.Y([_.a(),_.K("design:type",Boolean)],FG.prototype,"isReloading",void 0);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"isSearch",void 0);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"isConstrainedList",void 0);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"isWatch",void 0);
_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"eligibleToSwitchToGrid",void 0);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"useBigThumbs",void 0);_.Y([_.a({selector:_.J9,reflectToAttribute:!0}),_.K("design:type",Object)],FG.prototype,"isGridViewEnabled",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.K("design:type",Object)],FG.prototype,"epRestyle",void 0);
_.Y([_.C("isWatch"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"hideShortsShelfHeader",null);_.Y([_.C("isSearch","isWatch"),_.K("design:type",String),_.K("design:paramtypes",[])],FG.prototype,"thumbnailWidth",null);_.Y([_.C("isSearch","containerWidth"),_.K("design:type",Object),_.K("design:paramtypes",[])],FG.prototype,"thumbnailTargetWidth",null);
_.Y([_.C("isSearch","isWatch","useBigThumbs"),_.K("design:type",String),_.K("design:paramtypes",[])],FG.prototype,"sizing",null);_.Y([_.C("isWatch","isGridViewEnabled","useBigThumbs","data"),_.a({reflectToAttribute:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],FG.prototype,"lockupContainerType",null);_.Y([_.k_("lockupContainerType","data"),_.K("design:type",Function),_.K("design:paramtypes",[Number]),_.K("design:returntype")],FG.prototype,"updateLockupContainerTypes",null);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],FG.prototype,"pageSubtype",void 0);_.Y([_.a(),_.K("design:type",Number)],FG.prototype,"containerWidth",void 0);_.Y([_.a(),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"isPlaylist",null);_.Y([_.a(),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"isClipList",null);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"isCarouselInFeed",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"isPlaylistVideoContainer",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"isSearchFrictionPage",null);_.Y([_.a({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.K("design:type",Boolean)],FG.prototype,"useHeightHack",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.K("design:type",Object)],FG.prototype,"topSpacingZero",void 0);_.Y([_.a({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.K("design:type",Boolean)],FG.prototype,"showButton",void 0);_.Y([_.a(),_.K("design:type",Boolean)],FG.prototype,"firstCommentsLoaded",void 0);_.Y([_.a(),_.K("design:type",Object)],FG.prototype,"continuationIsInitialLoad",void 0);
_.Y([_.a({reflectToAttribute:!0,readOnly:!0}),_.K("design:type",Boolean)],FG.prototype,"itemDismissed",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.K("design:type",String)],FG.prototype,"sectionIdentifier",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.K("design:type",String)],FG.prototype,"fitContainer",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.K("design:type",Boolean)],FG.prototype,"hasDestinationShelfRenderer",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.K("design:type",Boolean)],FG.prototype,"staticCommentsHeader",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],FG.prototype,"enableSqueezebackPanels",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],FG.prototype,"enableAnchoredPanel",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.K("design:type",Boolean)],FG.prototype,"hasSectionGroupViewModel",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.K("design:type",Boolean)],FG.prototype,"hasQrCodeRenderer",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.K("design:type",Boolean)],FG.prototype,"suppressDisclaimerSeparator",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.K("design:type",String)],FG.prototype,"headerStyle",void 0);_.Y([_.C("isSearch","isWatch","useBigThumbs"),_.K("design:type",Object),_.K("design:paramtypes",[])],FG.prototype,"lockupExperiments",null);
_.Y([_.C("isSearch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"typographyBump",null);_.Y([_.oE("#header"),_.K("design:type",HTMLElement)],FG.prototype,"header",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],FG.prototype,"notSticky",void 0);_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Object),_.K("design:paramtypes",[])],FG.prototype,"useChipBarViewModelHeader",null);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"expFixPlaylistHeader",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"expFixPlaylistHeaderV2",null);_.Y([_.k_("pageSubtype"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FG.prototype,"updateStickySetup",null);
_.Y([_.k_("notSticky"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FG.prototype,"dispatchChipBarIsSticky",null);_.Y([_.k_("commentsHidePanelButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FG.prototype,"commentsHidePanelButtonChanged",null);_.Y([_.n6("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],FG.prototype,"onRetrieveLocation",null);
_.Y([_.n6("yt-load-reload-continuation"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Function]),_.K("design:returntype")],FG.prototype,"onLoadReloadContinuation",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FG.prototype,"onServiceRequestCompleted",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FG.prototype,"dataChanged",null);
_.Y([_.qm("data.contents.length"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FG.prototype,"observeDataContentsLength",null);_.Y([_.n6("yt-dismissible-item-dismissed"),_.n6("yt-dismissible-item-undismissed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],FG.prototype,"onYtDismissibleItemDismissedChange",null);
_.Y([_.k_("continuationShowButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FG.prototype,"continuationShowButtonChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FG.prototype,"dataChangedForBinding",null);_.Y([_.fE({is:"ytd-item-section-renderer",disableElementRegistration:!0})],FG);
_.T(FG,"ytd-item-section-renderer",function(){if(jL$!==void 0)return jL$;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return jL$=g},{mode:1});var viC;var BY3=_.I7(_.Ug("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Dxz={},xtF=(Dxz[0]={title:_.ap(_.Ug("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ap(_.Ug("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.FS("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Dxz[1]={title:_.ap(_.Ug("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.FS("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Dxz);_.Ny("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var m0=function(){var g=_.X.apply(this,arguments)||this;g.allVideosCount=0;g.allPlaylistCount=0;g.isOnline=!1;g.shouldRenderDownloadsBanner=!1;g.shouldRenderDownloadsBannerUpsell=!1;g.hasOptedIntoSmartDownloads=!1;g.areAllSmartDownloadsDeleted=!1;g.smartDownloadsCompleted=!1;return g};
_.A(m0,_.X);m0.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
m0.prototype.attached=function(){this.downloadsToRenderChanged()};
m0.prototype.detached=function(){this.set("renderableData",{})};
m0.prototype.downloadsToRenderChanged=function(){var g=_.bR().getState().entities,u=_.yv(g),q=_.w("kevlar_playlist_dl_page_killswitch")?fhS(g):_.vc(g),Q=_.s_u(g),L=_.p_q(g),E=_.Qv(u);g=_.Ds(g);this.set("renderableData",nXm(q,u,Q,L,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,E,g))};
m0.prototype.downloadsToRenderChanged=m0.prototype.downloadsToRenderChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],m0.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],m0.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],m0.prototype,"renderableData",void 0);_.Y([_.a({selector:_.IhJ}),_.K("design:type",Object)],m0.prototype,"allVideosCount",void 0);_.Y([_.a({selector:AxK}),_.K("design:type",Object)],m0.prototype,"allPlaylistCount",void 0);_.Y([_.a({selector:_.MZ}),_.K("design:type",Object)],m0.prototype,"isOnline",void 0);_.Y([_.a({selector:_.ahu}),_.K("design:type",Object)],m0.prototype,"shouldRenderDownloadsBanner",void 0);
_.Y([_.a({selector:_.WfJ}),_.K("design:type",Object)],m0.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.Y([_.a({selector:_.VBq}),_.K("design:type",Object)],m0.prototype,"hasOptedIntoSmartDownloads",void 0);_.Y([_.a({selector:_.X_J}),_.K("design:type",Object)],m0.prototype,"areAllSmartDownloadsDeleted",void 0);_.Y([_.a({selector:rFZ}),_.K("design:type",Object)],m0.prototype,"smartDownloadsCompleted",void 0);
_.Y([_.qm("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],m0.prototype,"downloadsToRenderChanged",null);_.Y([_.fE({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],m0);
_.T(m0,"ytd-offline-item-section-renderer",function(){if(viC!==void 0)return viC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return viC=g},
{mode:1});var p5Z;var Jbx;var aS=function(){return _.X.apply(this,arguments)||this};
_.A(aS,_.X);
aS.prototype.onDataChanged=function(){if(this.JSC$17184_lastData){var g=this.getFilterClass(this.JSC$17184_lastData.status);g&&this.hostElement.classList.remove(g)}var u;(g=this.getFilterClass((u=this.data)==null?void 0:u.status))&&this.hostElement.classList.add(g);g==="selected"?_.Tr(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Tr(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");g==="disabled"?_.Tr(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Tr(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17184_lastData=this.data};
aS.prototype.getFilterClass=function(g){switch(g){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
aS.prototype.onDataChanged=aS.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],aS.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aS.prototype,"onDataChanged",null);_.Y([_.fE({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],aS);
_.T(aS,"ytd-search-filter-renderer",function(){if(Jbx!==void 0)return Jbx;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Jbx=g},{mode:2});var VK=function(){return _.X.apply(this,arguments)||this};
_.A(VK,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],VK.prototype,"data",void 0);_.Y([_.fE({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],VK);
_.T(VK,"ytd-search-filter-group-renderer",function(){if(p5Z!==void 0)return p5Z;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return p5Z=g},{mode:2});var jRn;var XG=function(){return _.X.apply(this,arguments)||this};
_.A(XG,_.X);XG.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.xx());this.isCollapsed=!this.isCollapsed};
XG.prototype.navigateToAboutTheseResultsPage=function(){var g=_.nv("https://www.youtube.com/howyoutubeworks/product-features/search/");g?_.sP(window,g,"_blank"):_.a4(Error("Wh"))};
XG.prototype.dataChanged=function(){this.isCollapsed=!0};
XG.prototype.computeShowBottomBorder=function(){var g,u,q;return!!((g=this.data)==null?0:(u=g.button)==null?0:u.toggleButtonRenderer)||!((q=this.data)==null||!q.aboutTheseResultsButton)};
XG.prototype.dataChanged=XG.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],XG.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.K("design:type",Boolean)],XG.prototype,"showBottomBorder",void 0);_.Y([_.a(),_.K("design:type",Boolean)],XG.prototype,"renderCollapsibleMenu",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],XG.prototype,"isCollapsed",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XG.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],XG);
_.T(XG,"ytd-search-sub-menu-renderer",function(){if(jRn!==void 0)return jRn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return jRn=g},{mode:1});var fHh;var MXz=new _.Fv("SECTION_LIST_RENDERER_TOKEN");var tXf;var r4=function(){return _.X.apply(this,arguments)||this};
_.A(r4,_.X);r4.prototype.computeStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],r4.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],r4.prototype,"headerStyle",void 0);_.Y([_.fE({is:"ytd-text-header-renderer",disableElementRegistration:!0})],r4);
_.T(r4,"ytd-text-header-renderer",function(){if(tXf!==void 0)return tXf;var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return tXf=g},{mode:1});var enh;var WQ=function(){return _.X.apply(this,arguments)||this};
_.A(WQ,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],WQ.prototype,"data",void 0);_.Y([_.fE({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],WQ);
_.T(WQ,"ytd-minor-moment-header-renderer",function(){if(enh!==void 0)return enh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return enh=g},{mode:1});var G2b;var TI=function(){return _.X.apply(this,arguments)||this};
_.A(TI,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],TI.prototype,"data",void 0);_.Y([_.fE({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],TI);
_.T(TI,"ytd-minor-moment-setting-alert-renderer",function(){if(G2b!==void 0)return G2b;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return G2b=g},{mode:1});var $xt;var Rnh;var h8=function(){var g=_.X.apply(this,arguments)||this;g.booleanSettingById=!1;g.smartDownloadsEnabledVE=_.Yq(128287);g.smartDownloadsDisabledVE=_.Yq(128286);g.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return g};
_.A(h8,_.X);_.P=h8.prototype;_.P.attachSmartDownloadsSettingVes=function(){var g;this.activeVeForLogging||((g=this.data)==null?void 0:g.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.xl(_.gL(),this.smartDownloadsEnabledVE),_.xl(_.gL(),this.smartDownloadsDisabledVE))};
_.P.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.hJ(this.hostElement,"yt-settings-switch-ready")};
_.P.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.P.onSwitchChange=function(g){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(g=_.bd(g).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.w("kevlar_settings_switch_resolve_command_killswitch")?_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(g)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.P.handleUpdateSettingsSwitch=function(g){(g=_.c(g,dIZ))&&this.data&&this.data.id===g.id&&this.set("data.enabled",!!g.enabled)};
_.P.onToggleSettingsSwitch=function(g,u){this.data&&this.data.id===g&&this.set("data.enabled",u!=null?u:!this.data.enabled)};
_.P.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.mB.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.P.maybeLogSmartDownloadsSettingVisibility=function(){var g=_.j_(),u;g&&((u=this.data)==null?void 0:u.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Z0(g,[this.smartDownloadsEnabledVE]),_.lH(g,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Z0(g,[this.smartDownloadsDisabledVE]),_.lH(g,[this.smartDownloadsEnabledVE])))};
_.P.maybeLogSmartDownloadsSettingClick=function(){var g;((g=this.data)==null?void 0:g.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.zZ(_.gL(),this.activeVeForLogging)};
_.P.updateDataEnabledFromBinding=function(g){this.set("data.enabled",g.detail.value)};
_.z3.Object.defineProperties(h8.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var g=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!g&&(g=this.ytRendererBehavior.getSimpleString(this.data.title));return g}}});
h8.prototype.dataChanged=h8.prototype.dataChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],h8.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],h8.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],h8.prototype,"ytComponentBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],h8.prototype,"data",void 0);_.Y([_.a({selector:function(g,u){if(Object.keys(g==null?void 0:g.entities).length)switch(u){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return MBb(g.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.K("design:type",Object)],h8.prototype,"booleanSettingById",void 0);_.Y([_.a(),_.K("design:type",_.pV)],h8.prototype,"activeVeForLogging",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],h8.prototype,"toggleAriaLabel",null);_.Y([_.qm("data"),_.qm("booleanSettingById"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h8.prototype,"dataChanged",null);
_.Y([_.fE({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],h8);
_.T(h8,"ytd-settings-switch-renderer",function(){if(Rnh!==void 0)return Rnh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Rnh=g},{mode:1});var YE=function(){return _.X.apply(this,arguments)||this};
_.A(YE,_.X);YE.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}}}}};
_.z3.Object.defineProperties(YE.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var g=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(g+=" remove-left-margin");this.data.extraBottomSpace&&(g+=" extra-bottom-space");return g}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],YE.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],YE.prototype,"contentsClassName",null);_.Y([_.fE({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],YE);
_.T(YE,"ytd-minor-moment-setting-section-renderer",function(){if($xt!==void 0)return $xt;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return $xt=g},{mode:1});var w5z;var OW=function(){return _.X.apply(this,arguments)||this};
_.A(OW,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],OW.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],OW.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],OW);
_.T(OW,"ytd-empty-product-details-renderer",function(){if(w5z!==void 0)return w5z;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return w5z=g},{mode:1});var cbn;var Hoz;var KX=function(){var g=_.X.apply(this,arguments)||this;g.expanded=!0;return g};
_.A(KX,_.X);KX.prototype.getBadgeRowClass=function(g,u,q){for(var Q=_.N(this.hostElement.querySelectorAll("yt-img-shadow")),L=Q.next();!L.done;L=Q.next())L.value.onShow();g=g.selected;return q?g!==-1?g===u?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(g!==void 0?g:0)===u?"badge-line":"badge-hidden"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],KX.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],KX.prototype,"expanded",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],KX);
_.T(KX,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Hoz!==void 0)return Hoz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Hoz=g},{mode:1});var Abz;var xE=function(){var g=_.X.apply(this,arguments)||this;g.expanded=!0;return g};
_.A(xE,_.X);xE.prototype.getContainerClasses=function(g,u){g=g?"expanded":"collapsed";u&&(g+=" item");return g};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],xE.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],xE.prototype,"expanded",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],xE);
_.T(xE,"ytd-sponsorships-perk-renderer",function(){if(Abz!==void 0)return Abz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Abz=g},{mode:1});var Zot;var BQ=function(){var g=_.X.apply(this,arguments)||this;g.expanded=!0;return g};
_.A(BQ,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BQ.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],BQ.prototype,"expanded",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],BQ);
_.T(BQ,"ytd-sponsorships-perks-renderer",function(){if(Zot!==void 0)return Zot;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Zot=g},{mode:1});var zI=function(){var g=_.X.apply(this,arguments)||this;g.isCollapsed=!1;return g};
_.A(zI,_.X);zI.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
zI.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
zI.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var g;this.expandCollapseButton=_.c((g=this.data)==null?void 0:g.expandButton,_.eW)}else{var u;this.expandCollapseButton=_.c((u=this.data)==null?void 0:u.collapseButton,_.eW)}};
zI.prototype.updateExpandCollapseButton=zI.prototype.updateExpandCollapseButton;zI.prototype.onDataChanged=zI.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zI.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],zI.prototype,"isCollapsed",void 0);_.Y([_.a(),_.K("design:type",Object)],zI.prototype,"expandCollapseButton",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zI.prototype,"onDataChanged",null);_.Y([_.qm("data","isCollapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zI.prototype,"updateExpandCollapseButton",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],zI);
_.T(zI,"ytd-sponsorships-expandable-perks-renderer",function(){if(cbn!==void 0)return cbn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return cbn=g},{mode:1});var lHt;var nX=function(){return _.X.apply(this,arguments)||this};
_.A(nX,_.X);nX.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],nX.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],nX.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],nX);
_.T(nX,"ytd-sponsorships-actionable-message-renderer",function(){if(lHt!==void 0)return lHt;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return lHt=g},{mode:1});var IHh;var kE=function(){return _.X.apply(this,arguments)||this};
_.A(kE,_.X);_.P=kE.prototype;_.P.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.P.getExpansionIcon=function(g){return g?"COLLAPSE":"EXPAND"};
_.P.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.computeMessageContainerStyle=function(g){var u=g.expandableItems?" style-clickable":"";return g.messageContainerStyle?g.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+u:"style-unspecified"+u};
_.P.isSinglePerk=function(g){return!!g.messageContainerStyle&&(g.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||g.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.P.onExpandedChanged=function(){var g=this;if(this.expanded)for(var u=_.N(this.hostElement.querySelectorAll("yt-img-shadow")),q=u.next();!q.done;q=u.next())q.value.onShow();_.xt(this,function(){_.hJ(g.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
kE.prototype.onDataChanged=kE.prototype.onDataChanged;kE.prototype.onExpandedChanged=kE.prototype.onExpandedChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],kE.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],kE.prototype,"expanded",void 0);
_.Y([_.k_("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kE.prototype,"onExpandedChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kE.prototype,"onDataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],kE);
_.T(kE,"ytd-sponsorships-expandable-message-renderer",function(){if(IHh!==void 0)return IHh;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return IHh=g},{mode:2});var ioK;var Su=function(){return _.X.apply(this,arguments)||this};
_.A(Su,_.X);Su.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"}}}}};
Su.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.c(this.data.endButton,_.eW).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Su.prototype.onDataChanged=Su.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Su.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Su.prototype,"onDataChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Su);
_.T(Su,"ytd-sponsorships-heading-renderer",function(){if(ioK!==void 0)return ioK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ioK=g},{mode:1});var CZt;var oS=function(){return _.X.apply(this,arguments)||this};
_.A(oS,_.X);_.Y([_.a(),_.K("design:type",Object)],oS.prototype,"data",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],oS);
_.T(oS,"ytd-sponsorships-links-renderer",function(){if(CZt!==void 0)return CZt;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return CZt=g},{mode:1});var bot;var UW=function(){return _.X.apply(this,arguments)||this};
_.A(UW,_.X);_.P=UW.prototype;_.P.onDataChanged=function(){if(this.data&&this.data.expandableItems){var g;(g=_.Tr(this.hostElement).querySelector("tp-yt-paper-button"))==null||g.setAttribute("role","button")}else{var u;(u=_.Tr(this.hostElement).querySelector("tp-yt-paper-button"))==null||u.removeAttribute("role")}};
_.P.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.getExpansionIcon=function(g){return g?"COLLAPSE":"EXPAND"};
_.P.getTileClasses=function(g){return g?"tile expandable-tile":"tile"};
_.P.getButtonDisabled=function(g){return g?void 0:""};
UW.prototype.onDataChanged=UW.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],UW.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],UW.prototype,"expanded",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UW.prototype,"onDataChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],UW);
_.T(UW,"ytd-sponsorships-list-tile-renderer",function(){if(bot!==void 0)return bot;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return bot=g},{mode:1});var dxE;var F8f;var gn=function(){return _.X.apply(this,arguments)||this};
_.A(gn,_.X);gn.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],gn.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],gn);
_.T(gn,"ytd-sponsorships-promotion-renderer",function(){if(F8f!==void 0)return F8f;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return F8f=g},{mode:1});var mxp;var ul=function(){return _.X.apply(this,arguments)||this};
_.A(ul,_.X);ul.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ul.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],ul);
_.T(ul,"ytd-sponsorships-purchase-option-renderer",function(){if(mxp!==void 0)return mxp;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return mxp=g},{mode:1});var aHf;var VXL;var X5t=function(){return _.X.apply(this,arguments)||this};
_.A(X5t,_.X);_.Y([_.a(),_.K("design:type",Object)],X5t.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],X5t);
_.T(X5t,"ytd-ypc-offer-promo-renderer",function(){if(VXL!==void 0)return VXL;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return VXL=g},{mode:1});var qF=function(){return _.X.apply(this,arguments)||this};
_.A(qF,_.X);_.P=qF.prototype;
_.P.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"}}}}};
_.P.expansionCTA=function(g,u){return g&&(u?g.collapseCallToAction:g.expansionCallToAction)};
_.P.getExpansionIcon=function(g){return g?"COLLAPSE":"EXPAND"};
_.P.expansionCallToActionTap=function(){var g=this;this.expanded=!this.expanded;_.xt(this,function(){_.hJ(g.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var g,u=(g=this.data)==null?void 0:g.onVisible;u&&this.ytComponentBehavior.resolveCommand(u)};
_.P.computeDisplayTitle=function(g){return!(!g||this.titledisplaystatus!=="show")};
_.P.computeDisplaySeparator=function(){return!1};
_.P.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
qF.prototype.onDataChanged=qF.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],qF.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qF.prototype,"data",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qF.prototype,"expanded",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qF.prototype,"purchaseButtonClicked",void 0);_.Y([_.a({reflectToAttribute:!0,value:"show"}),_.K("design:type",String)],qF.prototype,"titledisplaystatus",void 0);_.Y([_.a({computed:"computeDisplayTitle(data.title)"}),_.K("design:type",Boolean)],qF.prototype,"displayTitle",void 0);
_.Y([_.a({computed:"computeDisplaySeparator(data)"}),_.K("design:type",Boolean)],qF.prototype,"displaySeparator",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qF.prototype,"onDataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],qF);
_.T(qF,"ytd-sponsorships-tier-renderer",function(){if(aHf!==void 0)return aHf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return aHf=g},{mode:2});var Qr=function(){return _.X.apply(this,arguments)||this};
_.A(Qr,_.X);
Qr.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"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Qr.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Qr.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Qr);
_.T(Qr,"ytd-sponsorships-management-renderer",function(){if(dxE!==void 0)return dxE;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return dxE=g},{mode:1});var rbE;var Li=function(){return _.X.apply(this,arguments)||this};
_.A(Li,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Li.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Li);
_.T(Li,"ytd-open-in-native-app-view-model",function(){if(rbE!==void 0)return rbE;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return rbE=g},{mode:2});var W8C;var Tax;var hnf=_.CT(["top-"]),Y0f=_.CT(["bottom-"]),OoH=_.CT(["left-"]),K8Z=_.CT(["right-"]),xxp={},BaE=function(g,u,q){g.removeAttribute("top-"+q);g.removeAttribute("bottom-"+q);g.removeAttribute("left-"+q);g.removeAttribute("right-"+q);u&&(u.top&&_.Ma([_.cq(hnf)],g,"top-"+q,u.top),u.bottom&&_.Ma([_.cq(Y0f)],g,"bottom-"+q,u.bottom),u.left&&_.Ma([_.cq(OoH)],g,"left-"+q,u.left),u.right&&_.Ma([_.cq(K8Z)],g,"right-"+q,u.right))};
xxp.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(g){var u,q=_.Tr((u=this.hostElement)!=null?u:this),Q;u=this.cardItemBoxBehaviorMarginTargetId&&q?q.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(Q=this.hostElement)!=null?Q:this;BaE(u,g,"margin")},
cardItemContainerPaddingChanged_:function(g){var u,q=_.Tr((u=this.hostElement)!=null?u:this),Q;u=this.cardItemBoxBehaviorPaddingTargetId&&q?q.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(Q=this.hostElement)!=null?Q:this;BaE(u,g,"padding")}}];var En={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 zn9;var ni9;var PR=function(){return _.X.apply(this,arguments)||this};
_.A(PR,_.X);PR.prototype.textColorChanged_=function(){this.hostElement.style.color=En[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
PR.prototype.textColorChanged_=PR.prototype.textColorChanged_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.Y([_.I(xxp.YtCardItemBoxBehavior),_.K("design:type",Object)],PR.prototype,"ytCardItemBoxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],PR.prototype,"data",void 0);_.Y([_.k_("data.textColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PR.prototype,"textColorChanged_",null);
_.Y([_.jP({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],PR);
_.T(PR,"yt-card-item-text-renderer",function(){if(ni9===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;zn9===void 0&&(zn9=document.createElement("template"));var Q=zn9;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ni9=g}g=ni9;return g},{mode:2});var k2Z;var S0Z;var NF=function(){return _.X.apply(this,arguments)||this};
_.A(NF,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],NF.prototype,"data",void 0);_.Y([_.jP({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],NF);
_.T(NF,"yt-card-item-badge-renderer",function(){if(S0Z===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;k2Z===void 0&&(k2Z=document.createElement("template"));var Q=k2Z;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);S0Z=g}g=S0Z;return g},{mode:2});var oix;var Uxp;var sn=function(){return _.X.apply(this,arguments)||this};
_.A(sn,_.X);sn.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sn.prototype,"data",void 0);_.Y([_.jP({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],sn);
_.T(sn,"yt-card-item-text-collection-renderer",function(){if(Uxp===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;oix===void 0&&(oix=document.createElement("template"));var Q=oix;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Uxp=g}g=Uxp;return g},{mode:2});var gLn;var utL;var yr=function(){return _.X.apply(this,arguments)||this};
_.A(yr,_.X);yr.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]]"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yr.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Number)],yr.prototype,"iconSize",void 0);_.Y([_.jP({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],yr);
_.T(yr,"yt-card-item-text-with-button-renderer",function(){if(utL===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;gLn===void 0&&(gLn=document.createElement("template"));var Q=gLn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);utL=g}g=utL;return g},{mode:2});var vR=function(){return _.X.apply(this,arguments)||this};
_.A(vR,_.X);vR.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],vR.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vR.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],vR);
_.T(vR,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Tax!==void 0)return Tax;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Tax=g},{mode:1});_.Ny("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Dw=function(){var g=_.X.apply(this,arguments)||this;g.hidden=!1;return g};
_.A(Dw,_.X);_.P=Dw.prototype;_.P.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"}}}}};
_.P.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.P.updateSummary=function(){var g=this.commerceCartCheckoutButtonEntity,u;if(((u=this.data)==null?0:u.cartButton)&&g.checkoutSummaryText){var q,Q=De((q=this.data)==null?void 0:q.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",p3(g.checkoutSummaryText));if(g.checkoutDetailText){var L;q=De((L=this.data)==null?void 0:L.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+q+".cardItemTextRenderer.text",p3(g.checkoutDetailText))}if(g.checkoutAdditionalMetadataText){var E;
L=De((E=this.data)==null?void 0:E.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+L+".cardItemTextRenderer.text",p3(g.checkoutAdditionalMetadataText))}}else g.estimatedTotalPrice&&(E=De((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",p3(g.estimatedTotalPrice)))};
_.P.updateIsHidden=function(){var g,u=(g=this.commerceCartCheckoutButtonEntity)==null?void 0:g.isHidden;u!==void 0&&(this.hidden=u)};
_.P.updateCheckoutButton=function(){var g,u=(g=this.commerceCartCheckoutButtonEntity)==null?void 0:g.isDisabled;u!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",u);var q;g=(q=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:q.innertubeCommand;g!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",g);var Q;q=(Q=this.commerceCartCheckoutButtonEntity)==null?void 0:Q.checkoutButtonText;q!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:q})};
Dw.prototype.entityChanged=Dw.prototype.entityChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],Dw.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Dw.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Dw.prototype,"fullWidth",void 0);_.Y([_.a(),_.K("design:type",Object)],Dw.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Dw.prototype,"compact",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Dw.prototype,"hidden",void 0);
_.Y([_.a({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:RcT}),_.K("design:type",Object)],Dw.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Y([_.k_("commerceCartCheckoutButtonEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dw.prototype,"entityChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Dw);
_.T(Dw,"ytd-commerce-cart-checkout-button-renderer",function(){if(W8C!==void 0)return W8C;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return W8C=g},{mode:2});var qZ9;_.QHt={};
_.QHt.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",_.zr(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.zr(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(g){!this.tappableItemBehaviorTapEnabled||g.keyCode!==13&&g.keyCode!==32||g.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var g=this.data.onTap;g.ypcGetCartEndpoint?(_.KV(this.hostElement,[g]),this.tappableItemBehaviorTapEnabled=!1):g.ypcOffersEndpoint?_.KV(this.hostElement,[g]):_.xJ(this.hostElement,[g],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(g){this.tappableItemBehaviorTapEnabled=!!g},
tappableItemBehaviorOnTapEnabledChanged_:function(){var g=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(g.setAttribute("tabIndex",0),g.setAttribute("role","button")):(g.removeAttribute("tabIndex"),g.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(g){g.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var LzE;var ELt;var pi=function(){return _.X.apply(this,arguments)||this};
_.A(pi,_.X);pi.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.sp("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.sp("sharingToggleButtonAndDefaultButton")}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pi.prototype,"data",void 0);_.Y([_.jP({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],pi);
_.T(pi,"yt-card-item-actions-renderer",function(){if(ELt===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;LzE===void 0&&(LzE=document.createElement("template"));var Q=LzE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ELt=g}g=ELt;return g},{mode:2});var Pxz;var NC9;var sHt;var yhh;var vLz;var DEx;var JQ=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return g};
_.A(JQ,_.X);JQ.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
JQ.prototype.handleDarkModeToggledAction_=function(g){this.isDarkTheme_=g};
JQ.prototype.computeThemeImage_=function(g,u){if(!g||!g.imageLight)return!1;this.isCircular_=g.isCircular;g.imageWidth&&(this.hostElement.style.width=g.imageWidth+"px");g.imageHeight&&(this.hostElement.style.height=g.imageHeight+"px");g.borderWidth&&(this.image.style.borderWidth=g.borderWidth+"px",this.image.style.borderStyle="solid");g.borderColor&&(this.image.style.borderColor=_.jh(g.borderColor));return u&&g.imageDark?g.imageDark:g.imageLight};
JQ.prototype.computeThemeIcon_=function(g){var u,q;if(!(g==null?0:(u=g.themedIcon)==null?0:(q=u.icon)==null?0:q.iconType))return!1;this.icon.style.color=En[g.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(g.imageWidth||18)+"px";this.icon.style.height=(g.imageHeight||18)+"px";return _.x9(g.themedIcon.icon.iconType)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(xxp.YtCardItemBoxBehavior),_.K("design:type",Object)],JQ.prototype,"ytCardItemBoxBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],JQ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],JQ.prototype,"data",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],JQ.prototype,"fit",void 0);_.Y([_.a(),_.K("design:type",Boolean)],JQ.prototype,"isDarkTheme_",void 0);_.Y([_.a({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.K("design:type",Object)],JQ.prototype,"themeImage_",void 0);_.Y([_.a({computed:"computeThemeIcon_(data)"}),_.K("design:type",Object)],JQ.prototype,"themeIcon_",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Object)],JQ.prototype,"isCircular_",void 0);
_.Y([_.oE("#image"),_.K("design:type",Object)],JQ.prototype,"image",void 0);_.Y([_.oE("#icon"),_.K("design:type",Object)],JQ.prototype,"icon",void 0);_.Y([_.jP({is:"yt-themed-image-renderer",disableElementRegistration:!0})],JQ);
_.T(JQ,"yt-themed-image-renderer",function(){if(DEx===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;vLz===void 0&&(vLz=document.createElement("template"));var Q=vLz;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);DEx=g}g=DEx;return g},{mode:2});var jz=function(){return _.X.apply(this,arguments)||this};
_.A(jz,_.X);jz.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"}}}}};
jz.prototype.computeImagePlacement_=function(g){return g||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],jz.prototype,"data",void 0);_.Y([_.a({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.K("design:type",String)],jz.prototype,"imagePlacement",void 0);
_.Y([_.jP({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],jz);
_.T(jz,"yt-card-item-text-with-image-renderer",function(){if(yhh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;sHt===void 0&&(sHt=document.createElement("template"));var Q=sHt;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);yhh=g}g=yhh;return g},{mode:2});var fi=function(){return _.X.apply(this,arguments)||this};
_.A(fi,_.X);fi.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"}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],fi.prototype,"data",void 0);_.Y([_.jP({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],fi);
_.T(fi,"yt-card-item-error-renderer",function(){if(NC9===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Pxz===void 0&&(Pxz=document.createElement("template"));var Q=Pxz;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);NC9=g}g=NC9;return g},{mode:2});var pnx;var JhC;_.Ny("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var MF=function(){return _.X.apply(this,arguments)||this};
_.A(MF,_.X);_.P=MF.prototype;
_.P.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"}}}}};
_.P.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.P.backgroundColorChanged_=function(){var g,u=(g=this.data)==null?void 0:g.backgroundColor;g=En[u||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Tr(this.hostElement).querySelector("#main-content").style.backgroundColor=g};
_.P.headerPromoBackgroundColorChanged_=function(){var g,u=(g=this.data)==null?void 0:g.headerPromoBackgroundColor;g=En[u||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Tr(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=g};
_.P.errorRendererVisibilityChanged_=function(){var g=this.isExpanded_,u;this.isErrorRendererVisible_=!((u=this.data)==null||!u.errorRenderer)&&!g};
_.P.onYtToggleButton_=function(g,u){this.isExpanded_=u.toggled};
MF.prototype.onYtToggleButton_=MF.prototype.onYtToggleButton_;MF.prototype.errorRendererVisibilityChanged_=MF.prototype.errorRendererVisibilityChanged_;MF.prototype.headerPromoBackgroundColorChanged_=MF.prototype.headerPromoBackgroundColorChanged_;MF.prototype.backgroundColorChanged_=MF.prototype.backgroundColorChanged_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(xxp.YtCardItemBoxBehavior),_.K("design:type",Object)],MF.prototype,"ytCardItemBoxBehavior",void 0);_.Y([_.I(_.QHt.YtTappableItemBehavior),_.K("design:type",Object)],MF.prototype,"ytTappableItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],MF.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],MF.prototype,"isExpanded_",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],MF.prototype,"isErrorRendererVisible_",void 0);_.Y([_.k_("data.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MF.prototype,"backgroundColorChanged_",null);_.Y([_.k_("data.headerPromoBackgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MF.prototype,"headerPromoBackgroundColorChanged_",null);
_.Y([_.k_("data.errorRenderer","isExpanded_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MF.prototype,"errorRendererVisibilityChanged_",null);_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Object]),_.K("design:returntype")],MF.prototype,"onYtToggleButton_",null);_.Y([_.jP({is:"yt-card-item-renderer",disableElementRegistration:!0})],MF);
_.T(MF,"yt-card-item-renderer",function(){if(JhC===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;pnx===void 0&&(pnx=document.createElement("template"));var Q=pnx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);JhC=g}g=JhC;return g},{mode:2});_.Ny("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var tQ=function(){var g=_.X.apply(this,arguments)||this;g.hidden=!1;return g};
_.A(tQ,_.X);_.P=tQ.prototype;_.P.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.P.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var g,u=(g=this.commerceCartHeaderEntity)==null?void 0:g.isHidden;u!==void 0&&(this.hidden=u)}};
_.P.updateTitle=function(){var g=this.commerceCartHeaderEntity.isDisabled,u,q,Q=(q=_.c((u=this.data)==null?void 0:u.item,dp$))==null?void 0:q.headingRenderer;Q&&(u=De(Q,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+u+".0.cardItemTextRenderer.textColor",g?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.P.updateSummaryText=function(){var g=this.commerceCartHeaderEntity;if(this.compact){var u,q,Q=(q=_.c((u=this.data)==null?void 0:u.item,dp$))==null?void 0:q.headingRenderer;Q&&(u=De(Q,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+u+".1.cardItemTextRenderer.text",g.shortHeaderSummaryText?p3(g.shortHeaderSummaryText):g.headerSummaryText?p3(g.headerSummaryText):""))}else{var L;if(u=(L=_.c((Q=this.data)==null?void 0:Q.item,dp$))==null?void 0:L.additionalInfoRenderer)u=De(u,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+u+".text",g.headerSummaryText?p3(g.headerSummaryText):"")}};
_.P.updateCheckoutButton=function(){var g=this.commerceCartHeaderEntity,u,q,Q=(q=_.c((u=this.data)==null?void 0:u.item,dp$))==null?void 0:q.additionalInfoRenderer;u=De(Q,"buttonRenderer");var L;q=(L=this.commerceCartHeaderEntity)==null?void 0:L.isButtonDisabled;var E;L=(E=this.commerceCartHeaderEntity)==null?void 0:E.isButtonHidden;q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+u+".buttonRenderer.isDisabled",q);L!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
L);var y;g=(y=g.checkoutButtonCommand)==null?void 0:y.innertubeCommand;g!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+u+".buttonRenderer.command",g)};
tQ.prototype.entityChanged=tQ.prototype.entityChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],tQ.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tQ.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],tQ.prototype,"compact",void 0);_.Y([_.a({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(g,u){return _.BC(g.entities,"commerceCartHeaderEntity",u)}}),
_.K("design:type",Object)],tQ.prototype,"commerceCartHeaderEntity",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tQ.prototype,"hidden",void 0);_.Y([_.k_("commerceCartHeaderEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tQ.prototype,"entityChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],tQ);
_.T(tQ,"ytd-commerce-cart-header-renderer",function(){if(qZ9!==void 0)return qZ9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return qZ9=g},{mode:1});var jHh;var fbZ=_.pN(function(g,u){var q;return(q=g.onChangeCallback)==null?void 0:q.call(g,u)},1E3),MfE=_.r(function(g){var u=g.data;
var q=g.iconMinus;g=g.iconPlus;var Q=function(){return!!u().disabled},L=_.N(_.jR(0,void 0,"mKh0af")),E=L.next().value,y=L.next().value;
L=_.YH(function(){if(E()===1){var e,G;(G=(e=u()).onRemoveCommand)==null||G.call(e)}e=E()>u().maxValue?u().maxValue:E()-1;y(e);fbZ(u(),e);return!1});
var v=_.YH(function(){if(E()===u().maxValue)return!1;var e=E()+1;y(e);fbZ(u(),e);return!1});
_.lL(function(){y(u().value)});
var J={},f={},t={};return _.p("quantity-incrementer-shape",null,_.p("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.p("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return E()===(u().onRemoveCommand?0:1)||Q()},
"aria-label":function(){return E()!==1?u().minusLabel:u().minimumReachedLabel},
"on:click":L},_.p(_.VU,{model:{circular:!0}}),_.p("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.p("div",{class:_.Ty("ytSpecQuantityIncrementerShapeIcon",(J.ytSpecQuantityIncrementerShapeIconDisabled=function(){return Q()||E()===(u().onRemoveCommand?0:1)},J))},q()))),_.p("div",{class:_.Ty("ytSpecQuantityIncrementerShapeText",(f.ytSpecQuantityIncrementerShapeTextInvalid=function(){return E()>u().maxValue},f.ytSpecQuantityIncrementerShapeTextDisabled=Q,f))},E),_.p("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return E()>=u().maxValue||Q()},
"aria-label":function(){return E()!==u().maxValue?u().plusLabel:u().maximumReachedLabel},
"on:click":v},_.p(_.VU,{model:{circular:!0}}),_.p("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.p("div",{class:_.Ty("ytSpecQuantityIncrementerShapeIcon",(t.ytSpecQuantityIncrementerShapeIconDisabled=function(){return E()>=u().maxValue||Q()},t))},g())))))},"Vf");_.dL(_.r(function(g){function u(){q().onRemoveCommand&&_.ey(q().onRemoveCommand)}
var q=g.data;var Q=_.kq(a2u,function(){return q().quantityIncrementerEntityKey});
return _.p("yt-quantity-incrementer-view-model",null,_.p(MfE,{data:function(){var L=q(),E;var y=Q()?!((E=Q())==null||!E.disabled):!1;var v;E=Q()?(v=Q())==null?void 0:v.quantity:q().quantity;return oXf(L,y,u,E)},
iconMinus:function(){return _.p(_.B1,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.p(_.B1,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Wf"),"yt-quantity-incrementer-view-model",{props:{data:_.H2}});var ez=function(){var g=_.X.apply(this,arguments)||this;g.compact=!1;g.hasQuantityIncrementer=!1;return g};
_.A(ez,_.X);ez.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"}}}};
ez.prototype.computeHasQuantityIncrementer=function(){var g;return!!_.c((g=this.data)==null?void 0:g.picker,Vtx)};
ez.prototype.onLabelClick=function(){var g;(g=this.dropdownEl)==null||g.open()};
_.Y([_.oE("ytd-dropdown-renderer"),_.K("design:type",Object)],ez.prototype,"dropdownEl",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ez.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],ez.prototype,"quantityColor",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ez.prototype,"compact",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.K("design:type",Object)],ez.prototype,"hasQuantityIncrementer",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],ez);
_.T(ez,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(jHh!==void 0)return jHh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return jHh=g},{mode:1});var tfE;var eKK;var GH=function(){return _.X.apply(this,arguments)||this};
_.A(GH,_.X);GH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
GH.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
GH.prototype.updateTitle=function(){var g=this.disabledCartItemEntity;g.disableActionName&&this.set("data.title",p3(g.disableActionName))};
GH.prototype.updateButton=function(){var g,u=(g=this.disabledCartItemEntity.undoCommand)==null?void 0:g.innertubeCommand;u!==void 0&&(this.set("data.actionButton.buttonRenderer.command",u),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
GH.prototype.entityChanged=GH.prototype.entityChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],GH.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(g,u){return _.BC(g.entities,"disabledCartItemEntity",u)}}),
_.K("design:type",Object)],GH.prototype,"disabledCartItemEntity",void 0);_.Y([_.a(),_.K("design:type",Object)],GH.prototype,"data",void 0);_.Y([_.k_("disabledCartItemEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GH.prototype,"entityChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],GH);
_.T(GH,"ytd-disabled-cart-item-renderer",function(){if(eKK!==void 0)return eKK;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return eKK=g},{mode:1});_.Ny("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var $7=function(){var g=_.X.apply(this,arguments)||this;g.compact=!1;g.hidden=!1;g.errorHidden=!1;g.noOnTap=!1;return g};
_.A($7,_.X);_.P=$7.prototype;
_.P.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"}}}};
_.P.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.P.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var g=this.firstButtonElement;g.alignByText=!0;g.iconAlignByText=!0}};
_.P.computeNoOnTap=function(g){return!g};
_.P.updateQuantityColor=function(){if(this.pickerElement){var g,u=(g=this.commerceCartItemEntity)==null?void 0:g.quantityColor;this.pickerElement.quantityColor=u}};
_.P.updateTotalPriceColor=function(){var g,u=(g=this.commerceCartItemEntity)==null?void 0:g.totalPriceColor;if(u){var q;g=_.c((q=this.data)==null?void 0:q.quantityPicker,mp$);if(q=_.c(g==null?void 0:g.price,FA0))q.textColor=u}};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var g,u=(g=this.commerceCartItemEntity)==null?void 0:g.isHidden;u!==void 0&&(this.hidden=u)}};
_.P.updateHideErrorMessage=function(){var g,u=(g=this.commerceCartItemEntity)==null?void 0:g.hideErrorMessage;u!==void 0&&(this.errorHidden=u)};
_.P.updateQuantity=function(){var g=this,u,q=(u=this.commerceCartItemEntity)==null?void 0:u.quantity,Q;u=(Q=this.commerceCartItemEntity)==null?void 0:Q.totalPrice;if(q){this.updateTotalPriceColor();this.updateQuantityColor();var L;Q=_.c((L=this.data)==null?void 0:L.quantityPicker,mp$);if(L=_.c(Q==null?void 0:Q.price,FA0))L.text=u?{simpleText:u.content}:void 0;if(u=_.c(Q==null?void 0:Q.picker,Vtx))u.quantity=q;var E;if(L=(E=_.c(Q==null?void 0:Q.picker,mJ2))==null?void 0:E.entries){E=!1;u=void 0;L=
_.N(L);for(Q=L.next();!Q.done;Q=L.next())Q=Q.value,Q.dropdownItemRenderer&&(u||(u=Q.dropdownItemRenderer),Q.dropdownItemRenderer.isSelected=!1,q===Q.dropdownItemRenderer.int32Value&&(E=!0,Q.dropdownItemRenderer.isSelected=!0));!E&&u&&(u.isSelected=!0)}_.xt(this,function(){var y;g.set("data.quantityPicker",_.pH.unsafeClone((y=g.data)==null?void 0:y.quantityPicker))})}};
$7.prototype.onYtRendererstamperFinished=$7.prototype.onYtRendererstamperFinished;$7.prototype.entityChanged=$7.prototype.entityChanged;_.Y([_.a(),_.K("design:type",Object)],$7.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$7.prototype,"compact",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],$7.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(g,u){return _.BC(g.entities,"commerceCartItemEntity",u)}}),
_.K("design:type",Object)],$7.prototype,"commerceCartItemEntity",void 0);_.Y([_.a(),_.K("design:type",Object)],$7.prototype,"quantityPicker",void 0);_.Y([_.a(),_.K("design:type",Object)],$7.prototype,"compactQuantityPicker",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$7.prototype,"hidden",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$7.prototype,"errorHidden",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.K("design:type",Object)],$7.prototype,"noOnTap",void 0);_.Y([_.oE("ytd-commerce-cart-item-quantity-picker-renderer"),_.K("design:type",Object)],$7.prototype,"pickerElement",void 0);_.Y([_.oE("yt-button-renderer"),_.K("design:type",Element)],$7.prototype,"firstButtonElement",void 0);
_.Y([_.k_("commerceCartItemEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$7.prototype,"entityChanged",null);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$7.prototype,"onYtRendererstamperFinished",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],$7);
_.T($7,"ytd-commerce-cart-item-renderer",function(){if(tfE!==void 0)return tfE;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return tfE=g},{mode:2});var GhE;var $E9;var RN=function(){return _.X.apply(this,arguments)||this};
_.A(RN,_.X);RN.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}}}}}};
RN.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
RN.prototype.updateCheckoutLineItems=function(){var g,u=(g=this.commerceCartCheckoutButtonEntity)==null?void 0:g.checkoutLineItems;u&&(g=u.map(function(q){a:{var Q=q.price,L=q.description;switch(q.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":q={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:p3(L),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:p3(Q),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:q={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:p3(L),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:p3(Q),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 q}),this.set("data.summaryLineItems",g))};
RN.prototype.updateIsHidden=function(){var g,u=(g=this.commerceCartCheckoutButtonEntity)==null?void 0:g.isHidden;u!==void 0&&(this.hostElement.hidden=u)};
RN.prototype.entityChanged=RN.prototype.entityChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],RN.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],RN.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],RN.prototype,"data",void 0);_.Y([_.a({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:RcT}),_.K("design:type",Object)],RN.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Y([_.k_("commerceCartCheckoutButtonEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RN.prototype,"entityChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],RN);
_.T(RN,"ytd-commerce-cart-summary-renderer",function(){if($E9!==void 0)return $E9;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return $E9=g},{mode:1});var RKZ={};RKZ.InjectBehavior=[doM.InjectBehavior];var wnL;var chh;var wn=function(){return _.X.apply(this,arguments)||this};
_.A(wn,_.X);
wn.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:_.sp("menuRenderer")}}};
wn.prototype.onMenuTap=function(g){g.stopPropagation()};
_.z3.Object.defineProperties(wn.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 g,u;return!(((g=this.data)==null||!g.sectionHeading)&&((u=this.data)==null?void 0:u.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var g,u;return!(((g=this.data)==null||!g.image)&&((u=this.data)==null?void 0:u.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var g,u;return!(((g=this.data)==null||!g.menu)&&((u=this.data)==null?void 0:u.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.QHt.YtTappableItemBehavior),_.K("design:type",Object)],wn.prototype,"ytTappableItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wn.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.accessibilityData"),_.K("design:type",String),_.K("design:paramtypes",[])],wn.prototype,"ariaLabel",null);_.Y([_.C("data.sectionHeading","data.layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wn.prototype,"sectionHeadingVisible",null);_.Y([_.C("data.image","data.layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wn.prototype,"imageVisible",null);
_.Y([_.C("data.menu","data.layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wn.prototype,"menuVisible",null);_.Y([_.jP({is:"yt-activity-item-renderer",disableElementRegistration:!0})],wn);
_.T(wn,"yt-activity-item-renderer",function(){if(chh===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;wnL===void 0&&(wnL=document.createElement("template"));var Q=wnL;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);chh=g}g=chh;return g},{mode:2});var H9H;var Ahp;var Z9z;var lbz;var cR=function(){return _.X.apply(this,arguments)||this};
_.A(cR,_.X);
cR.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"}}}}};
cR.prototype.backgroundColorChanged_=function(){var g,u=(g=this.data)==null?void 0:g.backgroundColor;this.hostElement.style.backgroundColor=En[u||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
cR.prototype.backgroundColorChanged_=cR.prototype.backgroundColorChanged_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cR.prototype,"data",void 0);
_.Y([_.k_("data.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cR.prototype,"backgroundColorChanged_",null);_.Y([_.jP({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],cR);
_.T(cR,"yt-offer-item-upsell-renderer",function(){if(lbz===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Z9z===void 0&&(Z9z=document.createElement("template"));var Q=Z9z;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);lbz=g}g=lbz;return g},{mode:2});_.Ny("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var HR=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};g.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return g};
_.A(HR,_.X);_.P=HR.prototype;
_.P.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:_.sp("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.P.computeContainerStyle_=function(g){return g};
_.P.computeContainerIsHidden_=function(g){return g&&!!g.isHidden};
_.P.computeShowSpinner_=function(g,u){return g&&u==="in-progress"};
_.P.computeShowMoreContentsButton_=function(g,u,q,Q,L){return!(!(Q&&Q.length||L&&L.length&&q)||!g||u)};
_.P.onToggleButton_=function(g){var u=this;g.stopPropagation();this.isExpanded_=g.detail&&g.detail.toggled;var q,Q;this.isExpanded_&&!this.data.continuationSection.length&&((q=this.data)==null?0:(Q=q.continuation)==null?0:Q.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.hJ(this.hostElement,"yt-load-next-continuation",function(L){return u.getContinuationUrl_(u.data.continuation.onClickContinuationData,L)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.KV(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.P.onShowMoreContentsButtonClicked_=function(g){var u=this;g.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.hJ(this.hostElement,"yt-load-next-continuation",function(q){return u.getContinuationUrl_(u.data.continuations[0].nextContinuationData,q)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.KV(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.P.getContinuationUrl_=function(g,u){var q=g.continuation;g=g.clickTrackingParams;var Q=_.j_();g&&Q&&_.Ip(Q,_.Lr(g));return _.Sg(u,{continuation:q})};
_.P.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var g=_.Tr(this.hostElement).querySelector("#continuation-section");g&&(g=g.querySelectorAll("ytmusic-item-section-renderer"))&&g.forEach(function(u){return u.classList.add("memberships-and-purchases")})};
_.P.dataChanged_=function(){var g;this.isExpanded_=!((g=this.data)==null||!g.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.P.updateCardOnClickCommand_=function(g){g=_.c(g,HlR);var u,q;this.data&&((u=this.data)==null?0:u.targetId)&&g&&g.targetId===((q=this.data)==null?void 0:q.targetId)&&g.onClickCommand&&(this.data.onClickCommand=g.onClickCommand,this.isOnClickCommand_=!0)};
_.P.backgroundColorChanged_=function(){var g,u=(g=this.data)==null?void 0:g.backgroundColor;this.hostElement.style.backgroundColor=En[u||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
HR.prototype.backgroundColorChanged_=HR.prototype.backgroundColorChanged_;HR.prototype.dataChanged_=HR.prototype.dataChanged_;HR.prototype.nextContinuationDataUpdated_=HR.prototype.nextContinuationDataUpdated_;HR.prototype.onToggleButton_=HR.prototype.onToggleButton_;_.Y([_.I(_.i5),_.K("design:type",Object)],HR.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],HR.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.Cm.YtNextContinuationBehavior),_.K("design:type",Object)],HR.prototype,"ytNextContinuationBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.Y([_.I(RKZ.InjectBehavior),_.K("design:type",Object)],HR.prototype,"injectBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],HR.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],HR.prototype,"compact",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],HR.prototype,"isExpanded_",void 0);_.Y([_.a({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.K("design:type",String)],HR.prototype,"containerStyle_",void 0);_.Y([_.a({value:"not-started"}),_.K("design:type",String)],HR.prototype,"continuationStatus_",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.K("design:type",Boolean)],HR.prototype,"showSpinner_",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],HR.prototype,"isOnClickCommand_",void 0);_.Y([_.a({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.K("design:type",Boolean)],HR.prototype,"showMoreContentsButton_",void 0);
_.Y([_.a({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(g,u){return!u||g.entities?null:_.BC(g.entities,"cardItemContainerEntity",u)}}),
_.K("design:type",Object)],HR.prototype,"cardItemContainerEntity_",void 0);_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],HR.prototype,"onToggleButton_",null);_.Y([_.n6("yt-next-continuation-data-updated"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HR.prototype,"nextContinuationDataUpdated_",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HR.prototype,"dataChanged_",null);_.Y([_.k_("data.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HR.prototype,"backgroundColorChanged_",null);_.Y([_.jP({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],HR);
_.T(HR,"yt-card-item-container-renderer",function(){if(Ahp===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;H9H===void 0&&(H9H=document.createElement("template"));var Q=H9H;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Ahp=g}g=Ahp;return g},{mode:2});var AQ=function(){return _.X.apply(this,arguments)||this};
_.A(AQ,_.X);AQ.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"}}}};
AQ.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
AQ.prototype.computeLoadingHidden=function(){var g;return!((g=this.commerceCartPageStateEntity)==null?0:g.cartActionInProgress)};
AQ.prototype.updateNotification=function(){var g,u=(g=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:g.summaryText;u&&this.set("data.cartNotification",p3(u))};
AQ.prototype.notificationEntityChanged=AQ.prototype.notificationEntityChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],AQ.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],AQ.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],AQ.prototype,"data",void 0);_.Y([_.a({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(g,u){return _.BC(g.entities,"commerceCartExpandableNotificationEntity",u)}}),
_.K("design:type",Object)],AQ.prototype,"commerceCartExpandableNotificationEntity",void 0);_.Y([_.a({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(g,u){return _.BC(g.entities,"commerceCartPageStateEntity",u)}}),
_.K("design:type",Object)],AQ.prototype,"commerceCartPageStateEntity",void 0);_.Y([_.oE("#spinner"),_.K("design:type",HTMLElement)],AQ.prototype,"spinner",void 0);_.Y([_.k_("commerceCartExpandableNotificationEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AQ.prototype,"notificationEntityChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],AQ);
_.T(AQ,"ytd-commerce-cart-renderer",function(){if(GhE!==void 0)return GhE;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return GhE=g},{mode:1});var Ib9;var Zw=function(){var g=_.X.apply(this,arguments)||this;g.bigImage=!1;return g};
_.A(Zw,_.X);_.z3.Object.defineProperties(Zw.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.placeholderImageUrl}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Zw.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Zw.prototype,"bigImage",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Zw.prototype,"placeholderImageUrl",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Zw);
_.T(Zw,"ytd-empty-product-shelf-renderer",function(){if(Ib9!==void 0)return Ib9;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Ib9=g},{mode:1});var i9x;var ll=function(){var g=_.X.apply(this,arguments)||this;g.itemStyle="link-item";g.watchMetadataRefresh=!1;g.skinnyMode=!1;g.metaPanel=!1;g.inStructuredDescription=!1;g.detailedDescriptionOverride=!1;g.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};g.updateOnResizeDebouncer=null;return g};
_.A(ll,_.X);_.P=ll.prototype;_.P.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.P.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"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.P.attachVEs=function(g){g.trackingParams&&_.gL().graftServerVe(g.trackingParams)};
_.P.handleUpdateMerchShelfAction=function(g){var u=this,q=_.c(g.updateMerchandiseShelfAction.merchandiseShelf,_.na$);q&&(q.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){u.attachVEs(q);u.data=q},Number(q.renderDelayMs))):(this.attachVEs(q),this.data=q))};
_.P.updateOnResize=function(){if(this.JSC$17352_scrollContainer!==void 0&&this.JSC$17352_scrollContainer.clientWidth!==0&&this.items!==void 0){var g=this.JSC$17352_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-g));this.ytdHorizontalListBehavior.reposition_();var u;switch((u=this.data)==null?void 0:u.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var q,
Q;((q=this.data)==null?void 0:(Q=q.items)==null?void 0:Q.length)===1?this.itemStyle="cta-item":this.itemStyle=g>=740?"large-item":"small-item"}}};
_.P.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Tn(this.updateOnResizeDebouncer,_.Ih.after(100),this.updateOnResize)};
ll.prototype.debouncedUpdateOnResize=ll.prototype.debouncedUpdateOnResize;ll.prototype.dataChanged=ll.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.VR.YtdHorizontalListBehavior),_.K("design:type",Object)],ll.prototype,"ytdHorizontalListBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ll.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ll.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ll.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ll.prototype,"itemStyle",void 0);_.Y([_.a({value:6}),_.K("design:type",Number)],ll.prototype,"initialCount",void 0);
_.Y([_.a({value:"data.items"}),_.K("design:type",String)],ll.prototype,"itemsPath",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ll.prototype,"watchMetadataRefresh",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ll.prototype,"skinnyMode",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ll.prototype,"metaPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ll.prototype,"inStructuredDescription",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ll.prototype,"detailedDescriptionOverride",void 0);_.Y([_.oE("#items"),_.K("design:type",HTMLDivElement)],ll.prototype,"items",void 0);_.Y([_.oE("#scroll-container"),_.K("design:type",HTMLDivElement)],ll.prototype,"JSC$17352_scrollContainer",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ll.prototype,"dataChanged",null);
_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ll.prototype,"debouncedUpdateOnResize",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],ll);
_.T(ll,"ytd-merch-shelf-renderer",function(){if(i9x!==void 0)return i9x;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return i9x=g},{mode:2});var CxK;var IN=function(){var g=_.X.apply(this,arguments)||this;g.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 g};
_.A(IN,_.X);_.P=IN.prototype;
_.P.addBackstagePostAction=function(g){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(g=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",g))&&(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:g}):this.set("data.contents",[{backstagePostThreadRenderer:g}]))};
_.P.addBackstageCommentAction=function(g){var u=this.get("addBackstageCommentAction.parentId",g);g=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",g);if(u&&g){u=this.postIdToIndices(u);for(var q=0;q<u.length;q++){var Q=u[q];if(Q<0)break;Q="data.contents."+Q+".backstagePostThreadRenderer.comments";this.get(Q)&&(this.get(Q+".backstageCommentsRenderer.contents")&&this.push(Q+".backstageCommentsRenderer.contents",{commentThreadRenderer:g}),this.get(Q+".backstageCommentsRenderer.teaserContents")?
this.push(Q+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:g}):this.set(Q+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:g}]))}}};
_.P.addBackstageReplyAction=function(g){var u=this.get("addBackstageReplyAction.parentId",g);g=this.get("addBackstageReplyAction.renderer.commentRenderer",g);u&&g&&this.setCreatorReply(u,g)};
_.P.banAuthorAction=function(g){var u=this.get("banAuthorAction.commentId",g);u&&(g=this.get("banAuthorAction.parentCommentId",g)||this.getParentPostId(u),this.removeFromStream(u,g))};
_.P.hideReportedCommentAction=function(g){var u=this.get("hideReportedCommentAction.commentId",g);u&&((g=this.get("hideReportedCommentAction.parentCommentId",g))||(g=this.getParentPostId(u)),this.removeFromStream(u,g))};
_.P.replaceBackstageCommentAction=function(g){var u=this.get("replaceBackstageCommentAction.commentId",g),q=this.get("replaceBackstageCommentAction.parentId",g);g=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",g);if(u&&q&&g){q=this.postIdToIndices(q);for(var Q=0;Q<q.length;Q++){var L=q[Q];if(L<0)break;var E=this.commentIdToIndex(u,L,!1);if(E>=0){var y=this.get("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+E+".commentThreadRenderer.replies.commentRepliesRenderer");
y&&(g.replies={commentRepliesRenderer:y});this.splice("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",E,1,{commentThreadRenderer:g})}E=this.commentIdToIndex(u,L,!0);if(E>=0){if(y=this.get("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(E+".commentThreadRenderer.replies.commentRepliesRenderer")))g.replies={commentRepliesRenderer:y};this.splice("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
E,1,{commentThreadRenderer:g})}}}};
_.P.replaceBackstagePostAction=function(g){var u=this.get("replaceBackstagePostAction.itemId",g);if(u){u=this.postIdToIndices(u);for(var q=0;q<u.length;q++){var Q=u[q];if(Q<0)break;var L=this.getPostRendererType(Q),E=this.get("replaceBackstagePostAction.renderer."+L,g);if(!E&&L!=="sharedPostRenderer")break;var y=!1;E||(y=!0,E=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",g));if(!E)break;var v={};y?(_.yb(v,yHa,E),this.set("data.contents."+Q+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
v)):(_.yb(v,new _.d2(L),E),this.set("data.contents."+Q+".backstagePostThreadRenderer.post",v))}}};
_.P.replaceBackstageReplyAction=function(g){var u=this.get("replaceBackstageReplyAction.replyId",g),q=this.get("replaceBackstageReplyAction.parentId",g);g=this.get("replaceBackstageReplyAction.renderer.commentRenderer",g);u&&g&&q&&this.setCreatorReply(q,g)};
_.P.removeCommentAction=function(g){var u=this.get("removeCommentAction.commentId",g);if(u){var q=this.get("removeCommentAction.parentCommentId",g);q&&this.get("removeCommentAction.isCreatorReply",g)?this.setCreatorReply(q,void 0):(q||(q=this.getParentPostId(u)),this.removeFromStream(u,q))}};
_.P.setCreatorReply=function(g,u){var q=this.getParentPostId(g);if(q){q=this.postIdToIndices(q);for(var Q=0;Q<q.length;Q++){var L=q[Q];if(L<0)break;var E=this.commentIdToIndex(g,L,!1);if(E>=0){var y="data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+E;E=y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";y+=".commentThreadRenderer.replies";u==void 0?(this.set(y,{}),this.set(E,!1)):(this.set(y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:u}]}}),
this.set(y+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(E,!0))}E=this.commentIdToIndex(g,L,!0);E>=0&&(E="data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+E,L=E+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",E+=".commentThreadRenderer.replies",u==void 0?(this.set(E,{}),this.set(L,!1)):(this.set(E,{commentRepliesRenderer:{teaserContents:[{commentRenderer:u}]}}),this.set(L,!0)))}}};
_.P.removeFromStream=function(g,u){if(u){u=this.postIdToIndices(u);for(var q=0;q<u.length;q++){var Q=u[q];if(Q<0)break;var L=this.commentIdToIndex(g,Q,!1);L>=0&&this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",L,1);L=this.commentIdToIndex(g,Q,!0);L>=0&&this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",L,1);Q="data.contents."+Q+".backstagePostThreadRenderer.post.backstagePostRenderer";
L=Q+".backstageAttachment.pollRenderer.votedCommentId";this.get(L)===g&&(this.set(L,null),this.set(Q+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(u=this.postIdToIndices(g).reverse(),q=0;q<u.length;q++){Q=u[q];if(Q<0)break;L=this.getPostRendererType(Q);var E=this.get("backstagePostThreadRenderer.post."+L,this.data.contents[Q]);E.postId===g?this.splice("data.contents",Q,1):L==="sharedPostRenderer"&&this.set("data.contents."+Q+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);E.scheduledPublishTimeSec&&_.YJ(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.P.postIdToIndices=function(g){for(var u=[],q=0;q<this.data.contents.length;q++){var Q=this.getPostRendererType(q);this.get("backstagePostThreadRenderer.post."+Q+".postId",this.data.contents[q])===g&&u.push(q);if(Q==="sharedPostRenderer"){var L=this.get("backstagePostThreadRenderer.post."+Q+".originalPost.backstagePostRenderer.postId",this.data.contents[q]);Q=this.get("backstagePostThreadRenderer.post."+Q+".originalPost.postRenderer.postId",this.data.contents[q]);L!==g&&Q!==g||u.push(q)}}return u};
_.P.commentIdToIndex=function(g,u,q){if(u<0)return-1;var Q,L,E,y,v=_.c((Q=this.data)==null?void 0:(L=Q.contents)==null?void 0:(E=L[u])==null?void 0:(y=E.backstagePostThreadRenderer)==null?void 0:y.comments,NG0);return(u=q?v==null?void 0:v.teaserContents:v==null?void 0:v.contents)&&u.length?u.findIndex(function(J){return _.c(J,OA$).comment.commentRenderer.commentId===g}):-1};
_.P.getParentPostId=function(g){g=g.split(".");if(g[1])return g[0]};
_.P.getPostRendererType=function(g){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[g])?"sharedPostRenderer":"backstagePostRenderer"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],IN.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],IN.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:_.w("enable_community_page_on_desktop")}),_.K("design:type",Boolean)],IN.prototype,"useSmallerPostContainer",void 0);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-backstage-items"})],IN);
_.T(IN,"ytd-backstage-items",function(){if(CxK!==void 0)return CxK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return CxK=
g},{mode:1});var b9L;var dEL={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},il=function(){var g=_.X.apply(this,arguments)||this;g.disablePrescanVisibility=!0;g.canScheduleJobs=!0;g.engagementPanel=!1;g.hidePanelButton=!1;g.isWatchGrid=
!1;g.hasShownSubscribersOnlyDisclaimer=!1;g.hasShownSuperfanOnlyDisclaimer=!1;g.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_"};g.TEST_ONLY=void 0;return g};
_.A(il,_.X);_.P=il.prototype;_.P.created=function(){this.initCommentsCsi_();_.w("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.w("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.P.contentsChanged_=function(){var g;(g=this.data)!=null&&g.contents&&this.tickForCommentsTimer_("cml")};
_.P.headerChanged_=function(){var g;(g=this.data)!=null&&g.header&&this.tickForCommentsTimer_("cmhl")};
_.P.initCommentsCsi_=function(){_.jF("wn_comments");var g=_.j_();g&&_.pW({clientScreenNonce:g},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.P.createCommentAction_=function(g){g=_.pH.unsafeClone(g);var u,q;if(g=(u=_.c(g,mca))==null?void 0:(q=u.contents)==null?void 0:q.commentThreadRenderer){var Q,L,E,y,v,J;!this.isBackstage&&((Q=this.data)==null?0:(L=Q.header)==null?0:(E=L.commentsHeaderRenderer)==null?0:(y=E.createRenderer)==null?0:(v=y.commentSimpleboxRenderer)==null?0:(J=v.zeroStep)==null?0:J.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var f,
t,e;this.isBackstage&&_.c((f=this.data)==null?void 0:(t=f.header)==null?void 0:(e=t.commentsHeaderRenderer)==null?void 0:e.zeroStateMessage,vxZ)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(g)}};
_.P.doReplyInsert_=function(g,u,q,Q){Q?this.splice(g,Q,0,u):this.push(g,u)};
_.P.getRepliesPath_=function(g){return"data.contents."+g+".commentThreadRenderer.replies"};
_.P.getRepliesContentsPath_=function(g,u){g=this.getRepliesPath_(g);return u?g+".commentRepliesRenderer.teaserContents":g+".commentRepliesRenderer.contents"};
_.P.showSubscribersOnlyDisclaimer_=function(g){(g=g.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(g))&&(_.YJ(this.hostElement,"yt-open-popup-action",[g,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.P.showSuperfanOnlyDisclaimer_=function(g){(g=g.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(g))&&(_.YJ(this.hostElement,"yt-open-popup-action",[g,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.P.createCommentReplyAction_=function(g){g=_.pH.unsafeClone(g);var u=_.c(g,arZ);if(g=u==null?void 0:u.contents){var q=this.commentIdToIndex_(u==null?void 0:u.parentCommentId);if(!(q<0)){var Q=this.getRepliesPath_(q);if(this.get(Q)){u=u.replyToCommentId;Q=this.getRepliesContentsPath_(q,!1);if(this.get(Q)){var L=this.get(Q).length,E=Q+"."+(L-1)+".continuationItemRenderer";this.get(E+".button")?(E=this.replyIdToIndex_(u,q,!1),this.doReplyInsert_(Q,g,E,L-1)):this.get(E)||(L=this.replyIdToIndex_(u,q,
!1),this.doReplyInsert_(Q,g,L,null))}Q=this.getRepliesContentsPath_(q,!0);this.get(Q)?(q=this.replyIdToIndex_(u,q,!0),(!u||q>=0)&&this.doReplyInsert_(Q,g,q,null)):this.set(Q,[g])}else this.set(Q,{commentRepliesRenderer:{teaserContents:[g]}})}}};
_.P.hideReportedCommentAction_=function(g){var u=_.c(g,qt2);if(g=u==null?void 0:u.commentId)(u=this.get("parentCommentId",u))||(u=this.getParentCommentId_(g)),this.remove_(g,u)};
_.P.getParentCommentId_=function(g){g=g.split(".");if(g[1])return g[0]};
_.P.removeCommentAction_=function(g){var u=_.c(g,TGW);if(g=u==null?void 0:u.commentId)u=(u==null?void 0:u.parentCommentId)||this.getParentCommentId_(g),this.remove_(g,u)};
_.P.pinCommentAction_=function(g){g=_.pH.unsafeClone(g);var u=_.c(g,W$$);u!=null&&u.commentId&&(g=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",g))&&(this.remove_(u.commentId),this.insert_(g,!0))};
_.P.unpinCommentAction_=function(g){g=_.pH.unsafeClone(g);g=_.c(g,hJo);if(g!=null&&g.commentId){var u,q,Q=(u=g.actionResult)==null?void 0:(q=u.update)==null?void 0:q.commentThreadRenderer;Q&&(this.remove_(g.commentId),this.insert_(Q))}};
_.P.banAuthorAction_=function(g){var u=_.c(g,F$Z);u!=null&&u.commentId&&(g=u.commentId,u=u.parentCommentId||this.getParentCommentId_(g),this.remove_(g,u))};
_.P.handleScrollToCommentElement_=function(g){this.hostElement.contains(g)&&(this.nearestScrollParent||(this.nearestScrollParent=UtF(g)),this.isCommentVisibleInScrollParent(g)||g.scrollIntoView({behavior:"smooth",block:"nearest"}))};
_.P.isCommentVisibleInScrollParent=function(g){if(!this.nearestScrollParent)return!1;g=g.getBoundingClientRect();var u=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return g.top>=u.top&&g.bottom<=u.bottom};
_.P.commentIdToIndex_=function(g){var u;return g&&(u=this.data)!=null&&u.contents?this.data.contents.findIndex(function(q){q=q.commentThreadRenderer;var Q;return g===((q==null?void 0:q.commentViewModel)&&((Q=_.c(q.commentViewModel,kna))==null?void 0:Q.commentId))}):-1};
_.P.insert_=function(g,u){u=u===void 0?!1:u;var q,Q;if((q=this.data)==null?0:(Q=q.contents)==null?0:Q.some(function(E){return!!E.commentThreadRenderer}))for(q=0,Q=this.data.contents.length;q<Q;q++){var L=this.data.contents[q].commentThreadRenderer;
if(dEL[g.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=dEL[L.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){u&&dEL[g.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===dEL[L.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",q,1,{commentThreadRenderer:g}):this.splice("data.contents",q,0,{commentThreadRenderer:g});break}}else this.set("data.contents",[{commentThreadRenderer:g}])};
_.P.doReplyRemove_=function(g,u,q){g=this.replyIdToIndex_(g,u,q);g<0||(u=this.getRepliesContentsPath_(u,q),this.splice(u,g,1))};
_.P.remove_=function(g,u){u=this.commentIdToIndex_(u);u<0?(u=this.commentIdToIndex_(g),u<0||this.splice("data.contents",u,1)):_.w("web_delhi_comment_threads")||(this.doReplyRemove_(g,u,!1),this.doReplyRemove_(g,u,!0))};
_.P.replyIdToIndex_=function(g,u,q){if(u<0)return-1;u=this.getRepliesContentsPath_(u,q);u=this.get(u);if(!u||!u.length)return-1;q=0;for(var Q=u.length;q<Q;q++){var L=void 0,E=void 0;if(((L=u[q])==null?void 0:(E=L.commentViewModel)==null?void 0:E.commentId)===g)return q}return-1};
_.P.tickForCommentsTimer_=function(g){_.Mf(g,void 0,"wn_comments")};
_.P.reloadComments_=function(g){g=_.c(g,zJ2);_.c(g==null?void 0:g.command,_.fe)&&_.KV(this.hostElement,[g==null?void 0:g.command])};
_.z3.Object.defineProperties(il.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return!!((g=this.data)==null?0:(u=g.header)==null?0:(q=u.commentsHeaderRenderer)==null?0:q.isBackstageContent)}}});
_.z3.Object.defineProperties(il,{template:{configurable:!0,enumerable:!0,get:function(){if(b9L===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);b9L=g}g=b9L;return g}}});
il.prototype.showSuperfanOnlyDisclaimer_=il.prototype.showSuperfanOnlyDisclaimer_;il.prototype.showSubscribersOnlyDisclaimer_=il.prototype.showSubscribersOnlyDisclaimer_;il.prototype.headerChanged_=il.prototype.headerChanged_;il.prototype.contentsChanged_=il.prototype.contentsChanged_;_.Y([_.I(_.dx),_.K("design:type",Object)],il.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",Function)],il.prototype,"ytPlayerListenerBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],il.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],il.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.header.commentsHeaderRenderer.isBackstageContent"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],il.prototype,"isBackstage",null);
_.Y([_.a(),_.K("design:type",Object)],il.prototype,"disablePrescanVisibility",void 0);_.Y([_.a(),_.K("design:type",Object)],il.prototype,"canScheduleJobs",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],il.prototype,"engagementPanel",void 0);_.Y([_.a(),_.K("design:type",Object)],il.prototype,"hidePanelButton",void 0);_.Y([_.a(),_.K("design:type",Object)],il.prototype,"isWatchGrid",void 0);_.Y([_.a(),_.K("design:type",Object)],il.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.Y([_.a(),_.K("design:type",Object)],il.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.Y([_.k_("data.contents"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],il.prototype,"contentsChanged_",null);_.Y([_.k_("data.header"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],il.prototype,"headerChanged_",null);
_.Y([_.n6("yt-show-subscribers-only-disclaimer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],il.prototype,"showSubscribersOnlyDisclaimer_",null);_.Y([_.n6("yt-show-superfan-only-snackbar"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],il.prototype,"showSuperfanOnlyDisclaimer_",null);_.Y([_.fE({is:"ytd-comments"})],il);var Ci=function(){return _.gO.apply(this,arguments)||this};
_.A(Ci,_.gO);_.P=Ci.prototype;_.P.bindIf=function(g,u,q){return g?u:q};
_.P.bindIfDefined=function(g,u){return g!==void 0?g:u};
_.P.booleanString=function(g){return(!!g).toString()};
_.P.equals=function(){for(var g=_.UT.apply(0,arguments),u=g[0],q=1;q<g.length;q++)if(u!=g[q])return!1;return!0};
_.P.isGreaterThan=function(g,u){return g>u};
_.P.isLessThan=function(g,u){return g<u};
_.P.logicalAND=function(){for(var g=_.UT.apply(0,arguments),u=!!g[0],q=1;q<g.length;q++)u=u&&!!g[q];return u};
_.P.logicalOR=function(){for(var g=_.UT.apply(0,arguments),u=!!g[0],q=1;q<g.length;q++)u=u||!!g[q];return u};
_.P.toBool=function(g){return!!g};
Ci.prototype.toBool=Ci.prototype.toBool;Ci.prototype.logicalOR=Ci.prototype.logicalOR;Ci.prototype.logicalAND=Ci.prototype.logicalAND;Ci.prototype.isLessThan=Ci.prototype.isLessThan;Ci.prototype.isGreaterThan=Ci.prototype.isGreaterThan;Ci.prototype.equals=Ci.prototype.equals;Ci.prototype.booleanString=Ci.prototype.booleanString;Ci.prototype.bindIfDefined=Ci.prototype.bindIfDefined;Ci.prototype.bindIf=Ci.prototype.bindIf;_.Y([_.uU()],Ci);_.FzC=[Ci.prototype];var mEZ;var abz;var bl=function(){return _.X.apply(this,arguments)||this};
_.A(bl,_.X);bl.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
bl.prototype.onBackIconTap_=function(){window.history.back()};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],bl.prototype,"data",void 0);_.Y([_.jP({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],bl);
_.T(bl,"yt-header-with-back-renderer",function(){if(abz===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;mEZ===void 0&&(mEZ=document.createElement("template"));var Q=mEZ;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);abz=g}g=abz;return g},{mode:2});var Vfh;var XnH;var dn=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(dn,_.X);_.P=dn.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.isDarkTheme=g,this.setUrl())};
_.P.dataChanged=function(){var g=this;if(this.data){var u=this.setUrl();u&&_.x0({destination:window,iframe:this.iframe,origin:_.k$M(u.toString()),channelName:"yt-iframe",onMessage:function(q){(q=g.getCommunicationCommand(q.data))&&g.ytComponentBehavior.resolveCommand(q)},
onEstablished:function(){}})}};
_.P.setUrl=function(){if(this.data&&this.data.iframeUrl){var g=_.A6(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(g)return _.Px(this.iframe,g),g}};
_.P.getCommunicationCommand=function(g){var u;if((u=this.data)!=null&&u.onCommunicationCommandsMap){u=this.data.onCommunicationCommandsMap.find(function(L){return L.key===g});
if(u==null?0:u.value)return u==null?void 0:u.value;try{var q=f5Z(_.Ub(g)),Q=this.data.onCommunicationCommandsMap.find(function(L){return L.key===(q==null?void 0:q.getMethodName())});
if(Q==null?0:Q.value)return Q==null?void 0:Q.value}catch(L){}}};
dn.prototype.dataChanged=dn.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],dn.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],dn.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],dn.prototype,"data",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],dn.prototype,"isDarkTheme",void 0);_.Y([_.oE("#iframe"),_.K("design:type",HTMLIFrameElement)],dn.prototype,"iframe",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dn.prototype,"dataChanged",null);_.Y([_.jP({is:"yt-iframe-renderer",disableElementRegistration:!0})],dn);
_.T(dn,"yt-iframe-renderer",function(){if(XnH===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Vfh===void 0&&(Vfh=document.createElement("template"));var Q=Vfh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);XnH=g}g=XnH;return g},{mode:2});_.FH=function(g){_.Lh.call(this);this.callback=g;this.bezier=new QVf(0,0,.4,0,.2,1,1,1);this.delay=new _.S7(this.next,window,this);this.JSC$17392_animating=!1;_.z$(this,this.delay)};
_.A(_.FH,_.Lh);_.FH.prototype.isAnimating=function(){return this.JSC$17392_animating};
_.FH.prototype.start=function(g,u,q){this.config={from:g,to:u,duration:q,startTime:(0,_.n0)()};this.JSC$17392_animating=!0;this.next()};
_.FH.prototype.stop=function(){this.delay.stop();this.JSC$17392_animating=!1;this.config=void 0};
_.FH.prototype.next=function(){if(this.config){var g=this.config,u=g.from,q=g.to,Q=g.duration;g=g.startTime;var L=(0,_.n0)()-g;g=this.bezier;Q=A7Z(g,L/Q);if(Q==0)g=g.y0;else if(Q==1)g=g.y3;else{L=j0(g.y0,g.y1,Q);var E=j0(g.y1,g.y2,Q);g=j0(g.y2,g.y3,Q);L=j0(L,E,Q);E=j0(E,g,Q);g=j0(L,E,Q)}g=_.tL(g,0,1);this.callback(u+(q-u)*g);g<1?this.delay.start():this.JSC$17392_animating=!1}};_.mK=new _.Fv("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var rhK={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},TCC=function(g,u,q,Q){_.Lh.call(this);this.JSC$17403_miniAppId=g;this.localReleaseId=u;this.derivedDeviceInterface=q;this.isForeground=Q;this.JSC$17403_playNonceResolver=new _.KU;this.playPingTimerId=NaN;this.playPingIntervalMs=_.S8("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.S8("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.w("enable_displaying_ppn");this.JSC$17403_miniAppClientDataProvider=_.Bk().resolve(_.mK);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Wzh(this);var L=setTimeout(function(){_.Io(new _.Ji("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17403_playNonceResolver.promise.then(function(){clearTimeout(L)})};
_.A(TCC,_.Lh);var YZb=function(g,u){g.JSC$17403_playNonceResolver.resolve(u!=null?u:D4(8));g.enableDisplayingPpn&&hKC(g).then(function(q){g.JSC$17403_miniAppClientDataProvider.clientData.set("post_play_nonce",q)})},hKC=function(g){return _.D(function(u){return u.nextAddress==1?u.yield(g.JSC$17403_playNonceResolver.promise,2):u.return(u.yieldResult)})},Wzh=function(g){var u,q;
_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$17403_playNonceResolver.promise,2);u=Q.yieldResult;q={miniAppInfo:{externalPostId:g.JSC$17403_miniAppId,localReleaseId:g.localReleaseId,postPlayNonce:u,derivedDeviceInterface:g.derivedDeviceInterface}};_.pW(q);_.Wx(Q)})},KzH=function(g){g.state!==0?_.Io(new _.Ji("[MiniAppPlayLogger] recordPlayStart failed with state "+rhK[g.state])):(g.state=1,aN(g,"ma_cl"),Vr(g,"PLAY_EVENT_TYPE_PLAY_START"),O9p(g))},xEZ=function(g){g.isForeground=!1;
Vr(g,"PLAY_EVENT_TYPE_PLAY_PAUSE")},BCb=function(g){g.state!==1&&g.state!==2?_.Io(new _.Ji("[MiniAppPlayLogger] recordPlayEnd failed with state "+rhK[g.state])):(g.state=3,window.clearInterval(g.playPingTimerId),g.playPingTimerId=NaN,K_u(),Vr(g,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},zKh=function(g,u){g.state===2&&g.gameReady&&(g.firstClickRecorded?Date.now()-g.clickRecordedMs<g.playClickIntervalMs||(g.clickRecordedMs=Date.now(),Vr(g,"PLAY_EVENT_TYPE_PLAY_CLICK")):u&&(aN(g,"ma_fua"),Vr(g,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),g.firstClickRecorded=!0,g.clickRecordedMs=Date.now()))};
TCC.prototype.logError=function(g){var u=this,q;_.D(function(Q){if(Q.nextAddress==1)return g.metadata.externalPostId=u.JSC$17403_miniAppId,q=g.metadata,Q.yield(Promise.race([u.JSC$17403_playNonceResolver.promise,new Promise(function(L){setTimeout(function(){L("")},3E4)})]),2);
q.postPlayNonce=Q.yieldResult;g.metadata.localReleaseId=u.localReleaseId;g.loggingError.level="WARNING";_.Zf(g.loggingError,g.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:g.metadata});_.Wx(Q)})};
var nLh=function(g,u,q,Q){var L,E,y,v,J,f;_.D(function(t){if(t.nextAddress==1)return t.yield(g.JSC$17403_playNonceResolver.promise,2);L=t.yieldResult;E={externalPostId:g.JSC$17403_miniAppId,localReleaseId:g.localReleaseId,postPlayNonce:L,sdkVersion:q,api:u};Q!==void 0&&(E.networkRequestsMeasurement={networkRequests:_.r6(Q,1),cachedRequests:_.r6(Q,2),transferredBytes:_.r6(Q,3)},(y=Q)==null?0:_.gm(y,lG,6))&&(E.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((v=_.o0(Q,
lG,6))==null?void 0:fp(v,1))||"0",cacheHits:((J=_.o0(Q,lG,6))==null?void 0:fp(J,2))||"0",cachedBytes:((f=_.o0(Q,lG,6))==null?void 0:fp(f,3))||"0"});_.H6("miniAppSdkUsage",E);_.Wx(t)})},SZZ=function(g,u,q){var Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V;
_.D(function(z){if(z.nextAddress==1)return z.yield(g.JSC$17403_playNonceResolver.promise,2);Q=z.yieldResult;L={externalPostId:g.JSC$17403_miniAppId,localReleaseId:g.localReleaseId,postPlayNonce:Q,sdkVersion:q,measurementWindow:{startTimestampMs:String(DP(u,1)),endTimestampMs:String(DP(u,2))},frameRate:{averageFrameTimeDeltaMs:pp(u,3),averageFrameIdleTimeMs:pp(u,4)}};_.gm(u,IB,5)&&(L.networkRequests={networkRequests:(E=aB(u))==null?void 0:_.r6(E,1),cachedRequests:(y=aB(u))==null?void 0:_.r6(y,2),transferredBytes:(v=
aB(u))==null?void 0:_.r6(v,3),sameOriginStatusCodeToCounts:khz((J=aB(u))==null?void 0:_.xEb(J,4,void 0,gLS,gLS)),crossOriginStatusCodeToCounts:khz((f=aB(u))==null?void 0:_.xEb(f,5,void 0,gLS,gLS))},(t=aB(u))==null?0:_.gm(t,lG,6))&&(L.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((e=aB(u))==null?void 0:(G=_.o0(e,lG,6))==null?void 0:fp(G,1))||"0",cacheHits:((R=aB(u))==null?void 0:(H=_.o0(R,lG,6))==null?void 0:fp(H,2))||"0",cachedBytes:((l=aB(u))==null?void 0:(d=_.o0(l,lG,6))==
null?void 0:fp(d,3))||"0"});_.gm(u,uvn,7)&&(L.gameCapture={averageFrameTimeDeltaMs:(F=_.o0(u,uvn,7))==null?void 0:pp(F,1),averageFrameIdleTimeMs:(V=_.o0(u,uvn,7))==null?void 0:pp(V,2)});_.H6("miniAppPerformanceMetrics",L);_.Wx(z)})},oLH=function(g,u){var q,Q;
return _.D(function(L){if(L.nextAddress==1)return L.yield(g.JSC$17403_playNonceResolver.promise,2);q=L.yieldResult;Q={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:g.JSC$17403_miniAppId,postPlayNonce:q,miniAppReleaseId:g.localReleaseId},derivedDeviceInterface:g.derivedDeviceInterface,adTriggerType:u,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.H6("miniAppAdEvent",Q);_.Wx(L)})};
TCC.prototype.disposeInternal=function(){_.Lh.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Vr=function(g,u,q,Q){q=q===void 0?{}:q;Q=Q===void 0?!1:Q;var L,E,y,v;_.D(function(J){if(J.nextAddress==1)return L=g.isForeground,E=g.beforeReady,J.yield(g.JSC$17403_playNonceResolver.promise,2);y=J.yieldResult;v={externalPostId:g.JSC$17403_miniAppId,localReleaseId:g.localReleaseId,derivedDeviceInterface:g.derivedDeviceInterface,postPlayNonce:y,type:u};q.sequenceGroup=y;v.playState=E?"PLAY_STATE_NOT_READY":L?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.H6("miniAppPlayEvent",v,
q);Q&&_.A_();_.Wx(J)})},aN=function(g,u){var q;
_.D(function(Q){if(Q.nextAddress==1)return q=(0,_.n0)(),Q.yield(g.JSC$17403_playNonceResolver.promise,2);_.fW(u,q);_.Wx(Q)})},O9p=function(g){isNaN(g.playPingTimerId)&&(g.playPingTimerId=_.qu(function(){g.state!==1&&g.state!==2?_.Io(new _.Ji("[MiniAppPlayLogger] reportPlayPing failed with state "+rhK[g.state])):Vr(g,"PLAY_EVENT_TYPE_PLAY_PING")},g.playPingIntervalMs))},khz=function(g){return Array.from(g.entries()).map(function(u){var q=_.N(u);
u=q.next().value;q=q.next().value;return{key:u,value:q}})};var UEZ=function(){},gVt=function(g,u){g.showMiniAppAdCommand=u.showMiniAppAdCommand;
g.isEmbeddedInWebview=u.isEmbeddedInWebview;g.playLogger=u.playLogger},qTz=function(g){return _.D(function(u){return u.return(uVC(g,1))})},Q3b=function(g){return _.D(function(u){return u.return(uVC(g,2))})},EVh=function(g,u){return _.D(function(q){return u?q.return(uVC(g,3,u)):q.return(LGb(g,3))})},uVC=function(g,u,q){var Q;
return _.D(function(L){if(L.nextAddress==1){if(!g.showMiniAppAdCommand||!g.isEmbeddedInWebview)return L.return(LGb(g,u));g.adResolver=new _.KU;var E=new N4;E=_.Uk(E,3,u);Q=_.EU(E,5,q);MW(g.showMiniAppAdCommand,T5$(Q));return L.yield(g.adResolver.promise,2)}return L.return(L.yieldResult)})};
UEZ.prototype.onAdFinished=function(g){g=bYa(g);var u;(u=this.adResolver)==null||u.resolve(g)};
var LGb=function(g,u){var q;return _.D(function(Q){if(Q.nextAddress==1)Q=Q.yield((q=g.playLogger)==null?void 0:oLH(q,NMK(u)),2);else{var L=Q.return;var E=new CJb;E=_.Uk(E,1,2);Q=L.call(Q,E)}return Q})};var PO9=new _.Fv("INNERTUBE_MANAGER_TOKEN");var N0z=function(){this.callbacks={}};
N0z.prototype.initialize=function(g){var u=this;this.callbacks=g;window.youtubewebview?window.youtubewebview.onmessage=function(q){s39(u,q)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(q){s39(u,q)})};
var s39=function(g,u){if(u.data)try{var q=f5Z(u.data);if(_.C9(_.Uc(q,1))!=null){var Q=ms5(_.J2(q,2));switch(q.getMethodName()){case "yt-mini-app-load-audio-state":var L,E;(E=(L=g.callbacks).onAudioStateLoaded)==null||E.call(L,_.vM(Q,pw(Q,PF,1)));break;case "yt-mute-mini-app":var y,v;(v=(y=g.callbacks).onMuteMiniApp)==null||v.call(y);break;case "yt-unmute-mini-app":var J,f;(f=(J=g.callbacks).onUnmuteMiniApp)==null||f.call(J);break;case "yt-playable-exit":var t,e;(e=(t=g.callbacks).onExit)==null||e.call(t);
break;case "yt-post-play-nonce":var G,R;(R=(G=g.callbacks).onPostPlayNonceReceived)==null||R.call(G,M$(Q,2,PF));break;case "yt-confirm-exit-mini-app":var H,l;(l=(H=g.callbacks).confirmExitMiniApp)==null||l.call(H);break;case "yt-confirm-exit-mini-app-edu":var d,F;(F=(d=g.callbacks).confirmExitMiniAppEdu)==null||F.call(d);break;case "yt-benchmarking-response":var V,z;(z=(V=g.callbacks).onNativeBenchmarkingMessageReceived)==null||z.call(V,M$(Q,2,PF));break;case "yt-mini-app-load-3p-consent-state":var O,
W;(W=(O=g.callbacks).multiplayer3pAckStateLoaded)==null||W.call(O,_.vM(Q,pw(Q,PF,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var x,k;(k=(x=g.callbacks).exitMiniAppSeenStateLoaded)==null||k.call(x,_.vM(Q,pw(Q,PF,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var LZ,sb;(sb=(LZ=g.callbacks).onNavigateToNewMiniApp)==null||sb.call(LZ);break;case "yt-game-data-available":var Rm,M3;(M3=(Rm=g.callbacks).onGameDataAvailable)==null||M3.call(Rm,M$(Q,2,PF));break;case "yt-pause-mini-app":var tT,
mJ;(mJ=(tT=g.callbacks).onPauseMiniApp)==null||mJ.call(tT);break;case "yt-resume-mini-app":var hT,Yu;(Yu=(hT=g.callbacks).onResumeMiniApp)==null||Yu.call(hT);break;case "yt-pause-playable-dialog":var Mx,po;(po=(Mx=g.callbacks).onPausePlayableDialog)==null||po.call(Mx);break;case "yt-resume-playable-dialog":var KZ,G2;(G2=(KZ=g.callbacks).onResumePlayableDialog)==null||G2.call(KZ);break;case "yt-playable-ad-finished":var Ab,tb;(tb=(Ab=g.callbacks).onAdFinished)==null||tb.call(Ab,M$(Q,2,PF))}}else _.Io(Error("Xh"))}catch(lx){_.Zf(Error("Yh"))}else _.Io(Error("Zh"))};var yUM=function(g){this.rpcErrorCode=g};var XH=function(g,u,q){this.intervalMs=g;this.apiFunc=u;this.type=q;this.schedulerReady=!0};
XH.prototype.call=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1){if(u.type!==1&&g===u.cachedValue)return Q.return();u.pendingApiRequestResolver||(u.pendingApiRequestResolver=new _.KU);q=u.pendingApiRequestResolver.promise;u.cachedValue=g;return Q.yield(yeh(u),2)}return Q.return(q)})};
XH.prototype.flush=function(g){g=g===void 0?!1:g;var u=this;return _.D(function(q){return u.cachedValue===void 0?q.return():q.yield(u.apiFunc(u.cachedValue,g),0)})};
var yeh=function(g){var u,q,Q;return _.D(function(L){switch(L.nextAddress){case 1:if(!g.schedulerReady||!g.pendingApiRequestResolver)return L.return();g.schedulerReady=!1;u=g.pendingApiRequestResolver;g.pendingApiRequestResolver=void 0;_.b8(L,2);if(g.cachedValue===void 0){L.jumpTo(4);break}return L.yield(g.apiFunc(g.cachedValue),5);case 5:q=L.yieldResult,u.resolve(q);case 4:_.Xx(L,3);break;case 2:Q=_.rt(L),u.reject(Q);case 3:setTimeout(function(){return _.D(function(E){g.schedulerReady=!0;return E.yield(yeh(g),
0)})},g.intervalMs),_.Wx(L)}})};var p0M=window.location.origin+"/miniapp_cloudsaves",vmT=[400,401],vVL=_.S8("cloud_save_game_data_rate_limit_ms",3E3),pTt=function(g){var u=this;this.JSC$17447_miniAppId=g;this.loadAttempts=0;this.cloudSaveIntervalMs=vVL;this.initialDownloadDataSucceeded=!1;this.JSC$17447_playNonceResolver=new _.KU;this.scottyUploadRateLimiter=new XH(this.cloudSaveIntervalMs,function(q,Q){return u.uploadData(q,Q)},2);
this.downloadDataPromise=Dkn(this);this.downloadDataPromise.then(function(){u.initialDownloadDataSucceeded=!0}).catch(function(){})},Jeb=function(g,u){u.then(function(q){return g.JSC$17447_playNonceResolver.resolve(q)})},j3C=function(g){return _.D(function(u){return g.cachedData===void 0?u.return(g.downloadDataPromise):u.return(g.cachedData)})},fOL=function(g,u){return _.D(function(q){g.cachedData=u;
if(!g.initialDownloadDataSucceeded)throw Error("$h");return q.yield(g.scottyUploadRateLimiter.call(u),0)})},MOE=function(){return new Promise(function(g){setTimeout(g,1E3,"")})},tOn=function(g,u){var q,Q;
return _.D(function(L){if(L.nextAddress==1)return q=g.JSC$17447_miniAppId,L.yield(Promise.race([g.JSC$17447_playNonceResolver.promise,MOE()]),2);Q={"X-YouTube-MiniAppId":q,"X-YouTube-PostPlayNonce":L.yieldResult};"DELEGATED_SESSION_ID"in _.bL&&VFJ(u,Q);return L.return(Q)})};
pTt.prototype.uploadData=function(g,u){u=u===void 0?!1:u;var q=this;return _.D(function(Q){return sfu()?_.w("enable_cloud_save_error_popup_after_retry")?Q.return(new Promise(function(L,E){var y,v,J,f,t;return _.D(function(e){switch(e.nextAddress){case 1:y=0,v=!0,f=J=null;case 2:if(!(v&&y++<2)){e.jumpTo(4);break}_.b8(e,5);return e.yield(eeH(q,g,u),7);case 7:J=e.yieldResult;v=J.ok?!1:!vmT.includes(J.status);_.Xx(e,2);break;case 5:f=t=_.rt(e);v=D9b(f);e.jumpTo(2);break;case 4:J?J.ok?(rn(q,vVL),L()):
(rn(q,q.cloudSaveIntervalMs*2),E(Error("ai`"+String(J.status),{cause:{rpcErrorCode:J.status}}))):(rn(q,q.cloudSaveIntervalMs*2),E(f||Error("bi"))),_.Wx(e)}})})):Q.return(new Promise(function(L,E){var y,v;
return _.D(function(J){if(J.nextAddress==1){if(q.JSC$17447_miniAppId==="")return E(Error("ci")),J.return();_.b8(J,2);return J.yield(eeH(q,g,u),4)}if(J.nextAddress!=2)return y=J.yieldResult,y.ok?(rn(q,vVL),L()):(rn(q,q.cloudSaveIntervalMs*2),E(Error("ai`"+String(y.status),{cause:{rpcErrorCode:y.status}}))),_.Xx(J,0);v=_.rt(J);rn(q,q.cloudSaveIntervalMs*2);E(v);_.Wx(J)})})):Q.return()})};
var eeH=function(g,u,q){q=q===void 0?!1:q;var Q,L,E;return _.D(function(y){if(y.nextAddress==1)return Q=_.om((new TextEncoder).encode(u)),L=JUF(),y.yield(tOn(g,L),2);E=y.yieldResult;return y.return(fetch(L,{method:"POST",body:new Blob([Q]),headers:E,keepalive:q}))})},Dkn=function(g){var u,q;
return _.D(function(Q){if(Q.nextAddress==1){if(!sfu())return Q.return("");if(g.JSC$17447_miniAppId==="")throw Error("ci");if(g.loadAttempts>2)return Q.return(g.downloadDataPromise);_.b8(Q,2);return Q.yield(Gsf(g),4)}if(Q.nextAddress!=2)return u=Q.yieldResult,Q.return(u);q=_.rt(Q);if(D9b(q)&&++g.loadAttempts<2)return Q.return(Dkn(g));throw q;})},Gsf=function(g){var u,q,Q,L,E;
return _.D(function(y){switch(y.nextAddress){case 1:return _.b8(y,2),u=JUF(),y.yield(tOn(g,u),4);case 4:return q=y.yieldResult,y.yield(fetch(u,{method:"GET",headers:q}),5);case 5:return Q=y.yieldResult,Q.ok?y.yield(Q.text(),6):y.return(Promise.reject(Error("di`"+String(Q.status),{cause:new yUM(Q.status)})));case 6:return L=y.yieldResult,y.return((new TextDecoder).decode(_.Ub(L)));case 2:return E=_.rt(y),y.return(Promise.reject(E))}})},rn=function(g,u){g.cloudSaveIntervalMs=u;
g.scottyUploadRateLimiter.intervalMs=g.cloudSaveIntervalMs};
pTt.prototype.flush=function(){var g=this;return _.D(function(u){return g.initialDownloadDataSucceeded?u.yield(g.scottyUploadRateLimiter.flush(!0),0):u.return()})};var $kh=FM(d5(1),CJ(1)),WR=FM(d5(1),CJ(3)),TH=function(g){this.callbacks=g};
_.P=TH.prototype;_.P.onAudioToggled=function(g,u){(u===void 0||u)&&_.Ex("yt-mini-app-is-audio-enabled",g,2592E3)};
_.P.onPause=function(){this.onAudioToggled(!1,!1)};
_.P.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.P.returnNativeBenchmarkingMessage=function(){};
_.P.sendGameData=function(){};
_.P.sendStartGameFrameCapture=function(){};
var jfb=function(g,u,q){this.callbacks=g;var Q=this;this.sdkVersion=new _.KU;this.channel=new AB2(_.x0({destination:window,iframe:u,origin:(new URL(q.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var L=hQ;var E=d5(5);var y=new TJ2;y=_.e$(y,1,1E4);E=_.mG(E,4,nka,y);L(Q,E);Q.onAudioToggled(Q.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){Q.sdkVersion.resolve("")},1E4)};
_.A(jfb,TH);_.P=jfb.prototype;_.P.onAudioToggled=function(g,u){TH.prototype.onAudioToggled.call(this,g,u===void 0?!0:u);u=hQ;var q=d5(2),Q=new rz0;g=_.OU(Q,1,g);g=_.mG(q,3,nka,g);u(this,g)};
_.P.onPause=function(){TH.prototype.onPause.call(this);hQ(this,d5(3))};
_.P.onResume=function(){TH.prototype.onResume.call(this);hQ(this,d5(4))};
_.P.returnNativeBenchmarkingMessage=function(g){var u=hQ,q=d5(6);var Q=CJ(_.gm(g,aA,1)?1:2);g=_.gm(g,aA,1)?g:null;Q=_.mG(Q,5,bG,g);u(this,FM(q,Q))};
_.P.sendGameData=function(g){var u=hQ,q=d5(7);g=_.mG(q,5,nka,g);u(this,g)};
_.P.sendStartGameFrameCapture=function(){hQ(this,d5(9))};
var Y7=function(g,u,q){var Q,L,E;return _.D(function(y){if(y.nextAddress==1)return Q=g.callbacks,L=Q.onSdkCalled,E=u,y.yield(g.sdkVersion.promise,2);L.call(Q,E,y.yieldResult,q);_.Wx(y)})};
jfb.prototype.onMessage=function(){var g=this;return IKi(VG,function(u){var q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k,LZ,sb,Rm,M3,tT,mJ,hT,Yu,Mx,po,KZ,G2,Ab,tb,lx,NE,fZ,Xf,eX,no,Co,gC,Ca,oR,jf,Ko,K9,v5,ME;return _.D(function(fo){switch(fo.nextAddress){case 1:if(!Eox(u.data))return _.Io(Error("ei")),fo.return();q=_.j$(u.data,1);_.w("enable_iframe_message_get_type_via_fields")&&(Q=u.data,q=L=_.j$(Q,1));switch(q){case 8:if(u.data.hasMetadata()){var B5=g.sdkVersion,ra=B5.resolve;var yp=u.data.getMetadata();
yp=_.J2(yp,1);ra.call(B5,yp);clearTimeout(g.sdkVersionTimeoutId)}break;case 6:return fo.jumpTo(2);case 16:if(!_.QE(u.data,oki,14,XM))return fo.return();E=_.t2(u.data,oki,14,XM);(v=(y=g.callbacks).onGameFrameReceived)==null||v.call(y,E);return fo.return();case 17:if(!_.QE(u.data,SOi,15,XM))return fo.return();(f=(J=g.callbacks).onGameAudioReceived)==null||f.call(J,_.t2(u.data,SOi,15,XM));return fo.return();case 1:if(B5=_.t2(u.data,OY$,2,XM))switch(_.j$(B5,1)){case 1:g.callbacks.onFirstFrameReady();
if(_.w("enable_network_request_logging_on_game_events")&&_.gm(B5,IB,4)){Y7(g,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.o0(B5,IB,4));break}Y7(g,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(yp=(ra=g.callbacks).onGameReady)==null||yp.call(ra);if(_.w("enable_network_request_logging_on_game_events")&&_.gm(B5,IB,4)){Y7(g,"MINI_APP_SDK_API_GAME_READY",_.o0(B5,IB,4));break}Y7(g,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.QE(B5,iG,3,K2X))g.callbacks.onResourceLoaded(_.t2(B5,iG,3,K2X))}return fo.return();
case 3:return fo.jumpTo(3);case 4:return fo.jumpTo(4);case 2:return fo.jumpTo(5);case 9:return fo.jumpTo(6);case 10:return g.callbacks.onClick(),fo.return();case 5:return fo.jumpTo(7);case 11:if(!_.QE(u.data,AO,9,XM))return fo.return();t=_.t2(u.data,AO,9,XM);(G=(e=g.callbacks).onBenchmarkingMessageReceived)==null||G.call(e,t);B5=u.reply;ra=d5(1);yp=CJ(1);var YV=new AO;var hb=new Uint8Array(hKa(t,pw(t,F25,6))|0);YV=P6(YV,5,F25,_.m8(hb,!1));yp=_.mG(yp,5,bG,YV);B5.call(u,FM(ra,yp));return fo.return();
case 12:return fo.jumpTo(8);case 13:return fo.jumpTo(9);case 15:return fo.jumpTo(10);case 14:return fo.jumpTo(11);case 18:return fo.jumpTo(12);default:return fo.return()}fo.jumpTo(0);break;case 2:if(!_.QE(u.data,md,5,XM))return fo.return();ra=u.data;B5=pw(ra,XM,5);ra=ra.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=khJ(ra,ra[_.Nx]|0,md,B5)||md[S0b]||(md[S0b]=oih(md));B5=_.Vu(R,Z8,1,_.Xo());H=_.N(B5);l=H.next();case 14:if(l.done){fo.jumpTo(16);break}d=l.value;F=new _.Ji;F.level=_.j$(d,2)===
1?"WARNING":"ERROR";V=MDq(d.getSource());return fo.yield(g.sdkVersion.promise,17);case 17:z={source:V,sdkVersion:fo.yieldResult};_.Db(_.Uc(d,6))!=null?(F.message=d.getMessage(),F.stack=_.J2(d,5),z.sdkErrorType=tDF(_.j$(d,6)),_.Db(_.Uc(d,7))!=null&&(z.sdkApi=ejb(_.j$(d,7)))):F.stack=void 0;W=O=void 0;(W=(O=g.callbacks).onError)==null||W.call(O,{loggingError:F,metadata:z});l=H.next();fo.jumpTo(14);break;case 16:return fo.return();case 3:return _.b8(fo,18),B5=fo.yield,ra=g.callbacks,yp=ra.onSave,YV=
_.t2(u.data,W20,4,XM),YV=_.J2(YV,1),B5.call(fo,yp.call(ra,YV),20);case 20:u.reply($kh);_.Xx(fo,19);break;case 18:return x=_.rt(fo),k=tZ,LZ=x,sb=g.callbacks,Rm="MINI_APP_SDK_API_SAVE_DATA",fo.yield(g.sdkVersion.promise,21);case 21:k(LZ,sb,Rm,fo.yieldResult),u.reply(WR);case 19:return fo.yield(Y7(g,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return fo.return();case 4:return _.b8(fo,23),fo.yield(g.callbacks.onLoad(),25);case 25:M3=fo.yieldResult;B5=u.reply;ra=d5(1);yp=CJ(1);YV=new W20;YV=_.EU(YV,1,M3);
yp=_.mG(yp,3,bG,YV);B5.call(u,FM(ra,yp));_.Xx(fo,24);break;case 23:return tT=_.rt(fo),mJ=tZ,hT=tT,Yu=g.callbacks,Mx="MINI_APP_SDK_API_LOAD_DATA",fo.yield(g.sdkVersion.promise,26);case 26:mJ(hT,Yu,Mx,fo.yieldResult),u.reply(WR);case 24:return fo.yield(Y7(g,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return fo.return();case 5:_.b8(fo,28);g.callbacks.onSendHighScore(HD(_.t2(u.data,QQb,3,XM).getValue()));u.reply(FM(d5(1),CJ(1)));_.Xx(fo,29);break;case 28:return po=_.rt(fo),KZ=tZ,G2=po,Ab=g.callbacks,tb=
"MINI_APP_SDK_API_SEND_SCORE",fo.yield(g.sdkVersion.promise,30);case 30:KZ(G2,Ab,tb,fo.yieldResult),u.reply(WR);case 29:return fo.yield(Y7(g,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return fo.return();case 6:if(!_.QE(u.data,Lp$,8,XM)){fo.jumpTo(32);break}B5=fo.yield;ra=_.t2(u.data,Lp$,8,XM);ra=_.j$(ra,1);return B5.call(fo,Y7(g,ejb(ra)),32);case 32:return fo.return();case 7:return B5=u.reply,ra=d5(1),yp=CJ(1),YV=g.callbacks.getLanguage(),yp=P6(yp,4,bG,IH(YV)),B5.call(u,FM(ra,yp)),fo.yield(Y7(g,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return fo.return();case 8:if(!_.QE(u.data,qGX,10,XM))return fo.return();lx=_.t2(u.data,qGX,10,XM);NE=g.callbacks;fZ=NE.onSdkPerformanceUpdate;return fo.yield(g.sdkVersion.promise,35);case 35:return fZ.call(NE,lx,fo.yieldResult),fo.return();case 9:B5=u.data;ra=pw(B5,XM,11);if(_.C9(_.Uc(B5,ra))==null)return u.reply(FM(d5(1),CJ(2))),fo.return();Xf=M$(u.data,11,XM);g.callbacks.onShareInviteCode(Xf);u.reply($kh);return fo.yield(Y7(g,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return fo.return();
case 10:if(!_.w("enable_open_yt_content"))return u.reply(WR),fo.return();if(!_.QE(u.data,kAa,12,XM))return u.reply(FM(d5(1),CJ(2))),fo.return();B5=_.t2(u.data,kAa,12,XM);eX=_.J2(B5,1);g.callbacks.onOpenYTContent(eX);u.reply($kh);return fo.yield(Y7(g,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return fo.return();case 11:if(_.QE(u.data,Xl0,13,XM)){fo.jumpTo(38);break}return fo.yield(g.callbacks.onShowMiniAppAd(2),39);case 39:return no=fo.yieldResult,u.reply(FM(d5(1),BJo(no))),fo.yield(Y7(g,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return fo.return();case 38:B5=_.t2(u.data,Xl0,13,XM);a:switch(_.j$(B5,1)){case 1:B5={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:B5={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:B5={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Co=B5;gC=Co.adType;Ca=Co.sdkApi;B5=fo.yield;ra=g.callbacks;yp=ra.onShowMiniAppAd;YV=_.t2(u.data,Xl0,13,XM);YV=_.J2(YV,2);return B5.call(fo,yp.call(ra,gC,YV||void 0),41);case 41:return oR=fo.yieldResult,
u.reply(FM(d5(1),BJo(oR))),fo.yield(Y7(g,Ca),42);case 42:return fo.return();case 12:_.b8(fo,43);B5=g.callbacks;ra=B5.onMakeIapPurchase;yp=_.t2(u.data,UP5,16,XM);yp=_.J2(yp,1);ra.call(B5,yp);u.reply(FM(d5(1),CJ(1)));_.Xx(fo,44);break;case 43:return jf=_.rt(fo),Ko=tZ,K9=jf,v5=g.callbacks,ME="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",fo.yield(g.sdkVersion.promise,45);case 45:Ko(K9,v5,ME,fo.yieldResult),u.reply(WR);case 44:return fo.yield(Y7(g,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return fo.return()}})})};
var hQ=function(g,u){_.D(function(q){g.channel.send(u);_.Wx(q)})},eV=function(g,u,q){this.callbacks=g;
var Q=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;g=fK3(u,(new URL(q.toString())).origin);this.gameSnacks=new hm8(g);this.gameSnacks.page.onReady(function(){Q.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){Q.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var L,E;(E=(L=Q.callbacks).onGameReady)==null||E.call(L)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(L,E){try{Q.callbacks.onSendHighScore(E)}catch(y){tZ(y,Q.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(L,E){var y;return _.D(function(v){if(v.nextAddress==1)return _.b8(v,2),v.yield(Q.callbacks.onSave(Q.decoder.decode(E)),4);if(v.nextAddress!=2)return _.Xx(v,0);y=_.rt(v);tZ(y,Q.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return v.return()})});
this.gameSnacks.storage.onLoad(function(){var L,E;return _.D(function(y){if(y.nextAddress==1)return _.b8(y,2),y.yield(Q.callbacks.onLoad(),4);if(y.nextAddress!=2)return L=y.yieldResult,y.return(Q.encoder.encode(L));E=_.rt(y);tZ(E,Q.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return y.return(Q.encoder.encode(""))})});
this.gameSnacks.init()};
_.A(eV,TH);eV.prototype.onAudioToggled=function(g,u){TH.prototype.onAudioToggled.call(this,g,u===void 0?!0:u);var q;(q=this.gameSnacks)==null||q.audio.update(g)};
eV.prototype.onPause=function(){TH.prototype.onPause.call(this);var g;(g=this.gameSnacks)==null||g.game.pause()};
eV.prototype.onResume=function(){TH.prototype.onResume.call(this);var g;(g=this.gameSnacks)==null||g.game.resume()};var Ret=GEu,wTx=_.r(function(g){var u=g.data;var q=g.loadingProgress;var Q=g.forPaused;g=_.N(_.jR("",void 0,"LYYTdd"));var L=g.next().value,E=g.next().value;g=_.N(_.jR(!1,void 0,"K0waae"));var y=g.next().value,v=g.next().value,J=[],f=function(){return"transform: scaleX("+(_.mV(q)||0)+")"},t=null,e=function(){return u()&&t!==null&&t!==void 0?t:t=u().showAnniversaryAnimation?6:Ret()};
_.bX(function(){var l;if(u().timeOutMessages&&((l=u().timeOutMessages)==null?0:l.length)){t=null;l=_.N(J);for(var d=l.next();!d.done;d=l.next())clearTimeout(d.value);J.length=0;$9q(u().timeOutMessages,J,E,v)}},"BNu9j");
var G=function(){return!!u().persistentErrorMessageTitle},R=function(){return q!==void 0},H=function(){return u().title};
return _.p("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.p("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.p("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.p("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var l,d=(l=u().backgroundImage)==null?void 0:l.sources,F;return(d==null?0:d.length)?"background-image: url("+((F=d[0])==null?void 0:F.url)+")":""}}),_.p("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.p(_.M,{cond:function(){return!G()&&!(Q==null?0:Q())},
then:function(){var l={};return _.p("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.p("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.p(_.B2,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+e()},
data:function(){var d="loading_animation_"+e();return{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+d+".json",loop:!0,autoplay:!0}}}})),_.p("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.p(_.M,{cond:H,
then:function(){return _.p("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},H)}}),_.p("p",{class:_.Ty("miniAppSplashScreenViewModelTimeoutMessage",(l.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return y()},l)),
"aria-live":"polite"},L),_.p(_.M,{cond:R,then:function(){return _.p("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.p("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:f}))}})))}}),_.p(_.M,{cond:G,
then:function(){return _.p("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.p("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return u().persistentErrorMessageTitle}),_.p(_.M,{cond:function(){return!!u().persistentErrorMessageDescription},
then:function(){return _.p("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return u().persistentErrorMessageDescription})}}))}}),_.p(_.M,{cond:Q,
then:function(){return _.p("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.p("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.p("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},H))}})))},"Yf");var ceh=new _.Fv("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Hvb=z9;z9=function(g){function u(q){if(q){var Q,L;(Q=q.__spec)==null||(L=Q.didUnmount)==null||L.call(Q);for(Q=0;Q<q.childNodes.length;Q++)u(q.childNodes[Q])}}
Hvb==null||Hvb(g);sE(function(){for(var q=0;q<g.length;q++)u(g[q])})};var Ae9=_.r(function(g){var u=g.data;var q=g.score;var Q=g.formattedScore;var L=g.onScoreChanged;var E=g.isEmbeddedInWebview;var y=_.AM("yt-mini-app-score-button-view-model"),v=function(){var R;return _.c(u==null?void 0:(R=u())==null?void 0:R.buttonViewModel,_.Rn)},J=function(){var R;
return(q==null?void 0:q())||Number(u==null?void 0:(R=u())==null?void 0:R.lastScore)||0},f=function(){var R;
return(Q==null?void 0:Q())||((R=v())==null?void 0:R.title)||""},t,e=1;
if(g=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))g=Number(g),e=isNaN(g)?1:g/100;_.bX(function(){L==null||L(J());var R;var H=_.jy((R=v())==null?void 0:R.onTap);if(H){R=_.c(H,lha);var l,d,F;R=_.c(R==null?void 0:(l=R.panelLoadingStrategy)==null?void 0:(d=l.inlineContent)==null?void 0:(F=d.dialogViewModel)==null?void 0:F.customContent,h05)}else R=void 0;if(l=R)l.score=f()},"Aekez");
g=_.YH(function(){var R,H,l=u==null?void 0:(R=u())==null?void 0:(H=R.loggingDirectives)==null?void 0:H.trackingParams;l&&_.nq(_.Bk().resolve(_.QA),l);return!1});
_.I4(function(){if(y.value){var R=y.value.querySelector("button"),H=v();R&&H&&w0M(R,H);_.Oz("yt-share-playable-with-high-score",function(){var l=J().toString(),d=u==null?void 0:u().onShareHighScoreCommand,F=u==null?void 0:u().highScoreShareClientParamIdentifier,V=E==null?void 0:E();d&&(V?(F=new j_X,l=_.EU(F,2,l),MW(d,l.JSC$12839_serializeBinary())):F&&(_.Bk().resolve(ceh).clientParams.set(F,{miniAppClientParams:{highScore:l}}),qsK(d,!1)))})}});
var G=function(){var R=v();R&&(q==null?0:q())&&R.accessibilityText&&(R.accessibilityText=R.accessibilityText.replace(t,f()));t=f();return{numberValue:J(),numberText:f(),heightPx:36,fontSizeMultiplier:e,shouldAnimate:!(q==null||!q())&&!0}};
return _.p("yt-mini-app-score-button-view-model",{class:function(){var R={};return _.N0("miniAppScoreButtonViewModelHost",(R.miniAppScoreButtonViewModelIsVisible=J()!==0,R))},
el:y,"on:click":g},$TM(!1,function(){return _.p("span",{style:"display:none;"},J)}),_.p(_.Up,{data:function(){var R;
return u==null?void 0:(R=u())==null?void 0:R.buttonViewModel}},{buttonViewModel:function(R){return _.p(_.TT,{data:R.data,
animatedTextProps:G})}}))},"$f");var COp=_.r(function(g){var u,q=(u=_.P9("yt-mini-app-is-theater-mode-enabled"))!=null?u:!1,Q=_.w("enable_playable_container_save_button"),L=_.w("enable_play_next_destination_page_in_toolbar");u={};return _.p("ytm-mini-app-top-bar-view-model",null,_.p("div",{class:_.Ty("yt-mini-app-top-bar-view-model",(u["yt-mini-app-top-bar-view-model--mobile"]=!1,u["yt-mini-app-top-bar-view-model--desktop"]=!0,u))},_.p("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.p(_.M,{cond:function(){var E;return!!g.data().backButtonEdu&&
!((E=g.isExitMiniAppSeen)==null?0:E.call(g))},
then:function(){return _.p(_.Up,{data:function(){return g.data().backButtonEdu}},{buttonViewModel:_.TT})},
else:function(){return _.p(_.Up,{data:function(){return g.data().backButton}},{buttonViewModel:_.TT})}}),_.p(_.M,{cond:function(){return g.data().viewAllButton&&!0},
then:function(){return _.p(_.Up,{data:function(){return g.data().viewAllButton}},{buttonViewModel:_.TT})}}),_.p(_.M,{cond:function(){return g.data().title&&!0},
then:function(){return _.p("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return g.data().title})}})),_.p("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.p(_.M,{cond:function(){var E;
return(E=g.isDesktopPlayPage)==null?void 0:E.call(g)},
then:function(){return _.p(_.U9,null,_.p(Zvt,{highScoreButton:function(){return g.data().highScoreButton},
score:g.score,formattedScore:g.formattedScore,onScoreChanged:g.onScoreChanged,isEmbeddedInWebview:g.isEmbeddedInWebview}),_.p(lOK,{enableSaveButton:function(){return _.mV(Q)},
saveButton:function(){return g.data().saveButton},
isSaved:g.isSaved,onSaveToggled:function(){return g.onSaveToggled}}),_.p(IOZ,{menuButton:function(){return g.data().menuButton}}))},
else:function(){return _.p(_.M,{cond:function(){return!1},
then:function(){return _.p(_.Up,{data:function(){return g.data().playPageButton}},{buttonViewModel:function(E){return _.p(_.TT,{data:E.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.p(Zvt,{highScoreButton:function(){return g.data().highScoreButton},
score:g.score,formattedScore:g.formattedScore,onScoreChanged:g.onScoreChanged,isEmbeddedInWebview:g.isEmbeddedInWebview})}})}})),_.p("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.p(_.Up,{data:function(){return g.data().muteButton}},{toggleButtonViewModel:function(E){var y=E.data;
return _.p(_.E6,{data:function(){var v,J;return Object.assign({},y(),{isToggled:(J=(v=g.isAudioEnabled)==null?void 0:v.call(g))!=null?J:!0})},
onToggle:g.onAudioToggled,useOutlinedIcon:!0})}}),_.p(_.Up,{data:function(){return g.data().theatreModeButton}},{toggleButtonViewModel:function(E){var y=E.data;
return _.p("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.p(_.E6,{data:function(){return Object.assign({},y(),{isToggled:q})},
useOutlinedIcon:!0}))}}),_.p(ivb,{fullscreenButton:function(){return g.data().fullscreenButton}}),_.p(_.M,{cond:function(){return _.mV(L)&&g.data().viewAllButton&&!1},
then:function(){return _.p(_.Up,{data:function(){return g.data().viewAllButton}},{buttonViewModel:_.TT})}}),_.p(_.M,{cond:function(){var E;
return!((E=g.isDesktopPlayPage)==null?0:E.call(g))},
then:function(){return _.p(_.U9,null,_.p(lOK,{enableSaveButton:function(){return _.mV(Q)},
saveButton:function(){return g.data().saveButton},
isSaved:g.isSaved,onSaveToggled:function(){return g.onSaveToggled}}),_.p(IOZ,{menuButton:function(){return g.data().menuButton}}))}}))))},"ag");
COp.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var IOZ=_.r(function(g){return _.p(_.Up,{data:g.menuButton},{buttonViewModel:_.TT})},"bg"),lOK=_.r(function(g){var u=g.enableSaveButton;
var q=g.saveButton;var Q=g.isSaved;var L=g.onSaveToggled;return _.p(_.M,{cond:function(){return u()&&!(q==null||!q())},
then:function(){return _.p(_.Up,{data:function(){var E=_.c(q==null?void 0:q(),_.cF),y;return{toggleButtonViewModel:Object.assign({},E,{isToggled:(y=Q==null?void 0:Q())!=null?y:!(E==null||!E.isToggled)})}}},{toggleButtonViewModel:function(E){return _.p(_.E6,{data:E.data,
onToggle:L})}})}})},"cg"),Zvt=_.r(function(g){var u=g.highScoreButton;
var q=g.score;var Q=g.formattedScore;var L=g.onScoreChanged;var E=g.isEmbeddedInWebview;return _.p(_.Up,{data:u},{miniAppScoreButtonViewModel:function(y){return _.p(Ae9,{data:y.data,score:q,formattedScore:Q,onScoreChanged:L,isEmbeddedInWebview:E})}})},"dg"),ivb=_.r(function(g){g=g.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.p(_.U9,null):_.p(_.Up,{data:g},{buttonViewModel:_.TT})},"eg");_.bvp=_.r(function(g){var u=g.data;var q=g.extractOverlay;g={};return _.p("player-disclosure-view-model",{class:_.Ty("ytwPlayerDisclosureViewModelHost",(g.ytwPlayerDisclosureViewModelExtractOverlay=function(){return q==null?void 0:q()},g))},_.p(_.ag,{command:function(){return u().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.p(_.M,{cond:function(){return u().iconName},
then:function(Q){return _.p(_.B1,{icon:Q})}}),_.p(_.M,{cond:function(){return u().iconName?void 0:u().image},
then:function(Q){return _.p(_.IT,{data:Q,alt:function(){return u().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.p(_.M,{cond:function(){return u().title||u().secondaryText},
then:function(){return _.p("div",null,_.p("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return u().title}),_.p("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return u().text}),_.p(_.M,{cond:function(){return u().secondaryText},
then:function(Q){return _.p(_.U9,null,_.p("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.p("div",{class:"ytwPlayerDisclosureViewModelText"},Q))}}))},
else:function(){return _.p("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return u().text})}}),_.p(_.M,{cond:function(){return u().showEndChevron},
then:function(){return _.p(_.B1,{icon:"CHEVRON_RIGHT"})}})))},"fg");_.dk9=new _.Fv("DESKTOP_CURRENT_PAGE");var rez=_.r(function(g){var u=g.data;var q=_.w("force_active_time_logging_webview"),Q=!1,L=new N0z,E=void 0,y=void 0,v=_.Bk().resolve(PO9),J=new UEZ,f=void 0,t=void 0,e=[],G=void 0,R=void 0,H=!1,l=!1,d=!1,F=!1,V=new _.KU,z=_.Bk().resolve(ceh),O=_.Bk().resolve(_.mK),W=_.Bk().resolve(_.xv(uq)),x,k=(x=_.Bk().resolve(_.xv(_.dk9)))==null?void 0:x.getCurrentPage(),LZ=!1,sb=0,Rm=function(uZ){uZ.preventDefault();return uZ.returnValue=""},M3,tT=_.N(_.jR(!((M3=_.P9("yt-mini-app-is-audio-enabled"))!=null&&!M3),
void 0,"y7Nkqd")),mJ=tT.next().value,hT=tT.next().value,Yu,Mx=_.N(_.jR(!((Yu=_.P9("exit-mini-app-seen-state"))==null||!Yu),void 0,"ZP6Oxc")),po=Mx.next().value,KZ=Mx.next().value,G2=_.N(_.jR(!1,void 0,"BCKP1c")),Ab=G2.next().value,tb=G2.next().value,lx=_.N(_.jR(void 0,void 0,"bswUUd")),NE=lx.next().value,fZ=lx.next().value,Xf=_.N(_.jR(void 0,void 0,"sXcJfc")),eX=Xf.next().value,no=Xf.next().value,Co=_.N(_.jR(!0,void 0,"DDj4gb")),gC=Co.next().value,Ca=Co.next().value,oR=_.N(_.jR(!1,void 0,"qXUljf")),
jf=oR.next().value,Ko=oR.next().value,K9=_.N(_.jR(!1,void 0,"XqvjOc")),v5=K9.next().value,ME=K9.next().value,fo=_.N(_.jR(void 0,void 0,"S1uX2")),B5=fo.next().value,ra=fo.next().value,yp=_.N(_.jR(0,void 0,"CGS0ze")),YV=yp.next().value,hb=yp.next().value,$L=_.Hk("mini-app-container-view-model"),UZ=_.N(_.jR(!1,void 0,"AVpgJ")),ET=UZ.next().value,$F=UZ.next().value,Pq=function(){return u().isEmbeddedInWebview},du=function(){return u().hasPlayNextShelf};
_.lL(function(){var uZ,th=(uZ=_.c(u().contentDisclosure,PTZ))==null?void 0:uZ.animationParams;if((th==null?0:th.shouldHide)&&(th==null?0:th.hideDelaySecs)){var dC=setTimeout(function(){$F(!0)},th.hideDelaySecs*1E3);
_.dB(function(){clearTimeout(dC)})}});
_.Oz("yt-page-type-changed",function(uZ){if(_.w("enable_is_mini_app_page_active_bugfix"))uZ.detail.newPageSubtype==="mini_app"&&uZ.detail.newPageType==="ytd-browse"||!gC()||bP();else if(uZ=_.i2()==="mini_app",uZ!==gC())if(Ca(uZ),uZ){var th;uZ=(th=u().playableId)==null?void 0:th.toString();uZ!==void 0&&window.location.href.includes(uZ)&&!l&&(F=!0,xF(),wt.value&&lU(wt.value))}else uZ||bP()});
_.Oz("yt-action",function(uZ){uZ.detail.actionName==="yt-engagement-panel-visible-changed"&&uZ.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&uZ.detail.args[2]==="PAmini_app_panel"&&bP();_.w("enable_is_mini_app_page_active_bugfix")?uZ.detail.actionName==="yt-history-load"&&!gC()&&(k==null?0:k.active)?(Ca(!0),xF(),wt.value&&lU(wt.value)):uZ.detail.actionName==="yt-history-load"&&gC()&&!u().isEmbeddedInWebview&&H5():gC()&&uZ.detail.actionName==="yt-history-load"&&(F?F=!1:u().isEmbeddedInWebview||
H5())});
_.dB(function(){TF()});
_.bX(function(){xF()},"Jr1tnc");
var xF=function(){var uZ=u().playableId,th=u().localReleaseId,dC=u().derivedDeviceInterface;if(l)_.Io(new _.Ji("[MiniAppContainerViewModel] onEnter was called more than once"));else{l=!0;E=new TCC(uZ,th,dC,document.visibilityState==="visible");KzH(E);y=new pTt(uZ);FGx(v,uZ);gVt(J,{showMiniAppAdCommand:u().showMiniAppAdCommand,isEmbeddedInWebview:u().isEmbeddedInWebview,playLogger:E});RhF()&&(R=document.body.style.backgroundColor,_.ZX(document.body,"background-color","black"));EO();dU();V=new _.KU;
if(u().isEmbeddedInWebview){if(uZ=(new URLSearchParams(window.location.search)).get("postPlayNonce"))YZb(E,uZ),LZ=!0;L.initialize({onAudioStateLoaded:function(n9){nZ(n9)},
onMuteMiniApp:function(){nZ(!1)},
onUnmuteMiniApp:function(){nZ(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(n9){LZ||(YZb(E,n9),LZ=!0)},
confirmExitMiniApp:function(){var n9,VT,O7;return _.D(function(zQ){if(zQ.nextAddress==1)return u().confirmExitMiniAppCommand?zQ.yield(Promise.race([V.promise,Promise.resolve(!1)]),2):zQ.return();(n9=zQ.yieldResult)?!u().confirmExitMiniAppCommandEdu||(O7=(VT=po)==null?void 0:VT())!=null&&O7?Uz(u().confirmExitMiniAppCommand):(Uz(u().confirmExitMiniAppCommandEdu),_.Ex("exit-mini-app-seen-state","true",2592E6)):Uz(u().closeMiniAppCommand);_.Wx(zQ)})},
onNativeBenchmarkingMessageReceived:function(n9){n9=aB8(_.OZq(n9));if(_.QE(n9,_.jV,3,dPZ)){var VT=_.t2(n9,_.jV,3,dPZ),O7=Qfk();var zQ=HD(O7.getSeconds())-HD(VT.getSeconds());VT=_.r6(O7,2)-_.r6(VT,2);zQ<0&&VT>0?(zQ+=1,VT-=1E9):zQ>0&&VT<0&&(--zQ,VT+=1E9);zQ=(new aA).setSeconds(zQ);zQ=_.PT(zQ,2,_.p9(VT),0);_.FV(n9,1,zQ)}var Y6;(Y6=t)==null||Y6.returnNativeBenchmarkingMessage(n9)},
multiplayer3pAckStateLoaded:function(n9){H5(n9)},
exitMiniAppSeenStateLoaded:function(n9){u().confirmExitMiniAppCommandEdu&&KZ(n9)},
onNavigateToNewMiniApp:function(){Uz(u().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(n9){n9=new URLSearchParams(n9);var VT=void 0;n9.has("invite_code")&&(VT=new YOZ,n9=n9.get("invite_code"),VT=_.EU(VT,1,n9));if(n9=VT){var O7;(O7=t)==null||O7.sendGameData(n9)}},
onPauseMiniApp:function(){Q=!0;lh()},
onResumeMiniApp:function(){Q=!0;rq()},
onPausePlayableDialog:function(){d=!0;lh()},
onResumePlayableDialog:function(){d=!1;rq()},
onAdFinished:function(n9){J.onAdFinished(n9)}});
u().showMultiplayer3pConsentDialogCommand||V.resolve(!0);Uz(u().onContainerReadyCommand)}else YZb(E),V.resolve(!0),u().runAttestationCommand&&hKC(E).then(function(n9){var VT=_.c(gmu(u().runAttestationCommand),_.FpW);VT&&VT.ids&&(VT.ids.push({postPlayNonce:n9}),Uz(u().runAttestationCommand))});
Jeb(y,hKC(E));hKC(E).then(function(n9){n9={miniAppPlayData:{postPlayNonce:n9}};var VT,O7=(VT=u().loggingDirectives)==null?void 0:VT.trackingParams;O7&&_.gL().stateChanged(O7,n9)});
uZ=u().showSignInDialogCommand;!sfu()&&uZ&&(_.Ex("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Uz(uZ));u().confirmExitMiniAppCommand&&W&&(uZ=gmu(u().confirmExitMiniAppCommand))&&(W.customConfirmationCommand=uZ)}},TF=function(){R&&_.ZX(document.body,"background-color",R);
H=!1;G&&G.release();y.flush().catch(function(uZ){_.Io(uZ)});
v.flush().catch(function(uZ){_.Io(uZ)});
BCb(E);GP();t=void 0;mkt(z)},bP=function(){Ca(!1);
TF();tb(!1);ra(void 0);fZ(void 0);no(void 0);sb=0;hb(0);l=!1},lh=function(){var uZ;
(uZ=t)==null||uZ.onPause();G&&G.release();y.flush().catch(function(th){_.Io(th)});
v.flush().catch(function(th){_.Io(th)});
xEZ(E);Ko(!0)},rq=function(){var uZ;
(uZ=t)==null||uZ.onResume();dU();uZ=E;uZ.isForeground=!0;Vr(uZ,"PLAY_EVENT_TYPE_PLAY_RESUME");Ko(!1)},nZ=function(uZ){var th;
(th=t)==null||th.onAudioToggled(uZ);hT(uZ)},H5=function(uZ){u().showMultiplayer3pConsentDialogCommand&&(u().isEmbeddedInWebview&&uZ!==void 0&&V.resolve(uZ),!uZ&&_.i2()==="mini_app"&&Uz(u().showMultiplayer3pConsentDialogCommand))},Hn=function(){var uZ,th,dC,n9;
return _.D(function(VT){if(VT.nextAddress==1){!u().isLivestream||u().disableVideoCapture||(uZ=t)!=null&&uZ.sendStartGameFrameCapture();th=(new URL(window.location.href)).searchParams;if(th.has("invite_code")){var O7=new YOZ,zQ=th.get("invite_code");dC=_.EU(O7,1,zQ);(n9=t)==null||n9.sendGameData(dC)}Ab()||(tb(!0),O7=E,O7.state!==1?_.Io(new _.Ji("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+rhK[O7.state])):(_.U_("mini_app_ids_without_game_ready").includes(O7.JSC$17403_miniAppId)&&(O7.gameReady=
!0),O7.state=2,O7.beforeReady=!1,aN(O7,"ma_ffr"),Vr(O7,"PLAY_EVENT_TYPE_PLAY_READY")));return VT.yield(V.promise,2)}Uz(u().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();u().isEmbeddedInWebview||H5();_.Wx(VT)})},I3=function(){var uZ=E;
uZ.gameReady=!0;aN(uZ,"ma_gr")},ix=function(uZ){var th;
return _.D(function(dC){if(dC.nextAddress==1)return _.b8(dC,2),dC.yield(fOL(y,uZ),4);if(dC.nextAddress!=2)return _.Xx(dC,0);th=_.rt(dC);Uz(u().showSavingErrorPopupCommand);throw th;})},lZ=function(){var uZ,th;
return _.D(function(dC){if(dC.nextAddress==1)return _.b8(dC,2),dC.yield(j3C(y),4);if(dC.nextAddress!=2)return uZ=dC.yieldResult,dC.return(uZ);th=_.rt(dC);Uz(u().showLoadingErrorDialogCommand);throw th;})},ZH=function(uZ){E.logError(uZ)},hh=function(uZ,th,dC){nLh(E,uZ,th,dC)},Nk=function(uZ,th){SZZ(E,uZ,th)},$i=function(){!q&&u().isEmbeddedInWebview||_.zX();
zKh(E,!0);H||(window.addEventListener("beforeunload",Rm,{capture:!0}),H=!0)},F4=function(uZ){var th,dC,n9,VT,O7,zQ,Y6;
return _.D(function(Hb){if(Hb.nextAddress==1)return v&&(!f||f<uZ)&&uZ>0?Hb.yield(aOb(v,uZ),3):Hb.jumpTo(0);th=Hb.yieldResult;dC=_.N(th);n9=dC.next().value;VT=dC.next().value;O7=n9;zQ=VT;((Y6=O7)==null?0:Y6.displayString)&&zQ&&(fZ(zQ),no(O7.displayString));_.Wx(Hb)})},R2=function(uZ){var th=u().onBenchmarkingMessageReceivedCommand;
if(th){var dC=Qfk();_.mG(uZ,3,dPZ,dC);MW(th,Vk0(uZ))}},OT=function(){var uZ=u().iapPurchaseCommand;
uZ&&MW(uZ)},tk=function(uZ){var th=u().onGameFrameReceivedCommand;
if(th){var dC=new N4;var n9=new Vnx;var VT=DP(uZ,1);n9=_.jQ(n9,1,VT);uZ=_.J2(uZ,2);uZ=_.EU(n9,2,uZ);dC=_.FV(dC,2,uZ);MW(th,T5$(dC))}},QW=function(uZ){var th=u().onGameAudioDataReceivedCommand;
if(th){var dC=new N4;var n9=new rOW;uZ=_.J2(uZ,1);n9=_.EU(n9,1,uZ);dC=_.FV(dC,4,n9);MW(th,T5$(dC))}},NQ=function(){var uZ=new URLSearchParams(window.location.search);
if(u().isEmbeddedInWebview&&uZ&&uZ.get("override_hl")==="true"&&uZ.get("hl"))return uZ.get("hl");uZ=document.documentElement.lang;return uZ!==""?uZ:R7},me=function(uZ){var th=u().onShareInviteCodeCommand;
if(th)if(u().isEmbeddedInWebview){var dC=new j_X;uZ=_.EU(dC,1,uZ);MW(th,MB0(uZ))}else dC=u().inviteCodeShareClientParamIdentifier,z.clientParams.set(dC,{miniAppClientParams:{inviteCode:uZ}}),Uz(th)},cU=function(uZ){var th,dC,n9;
return _.D(function(VT){if(VT.nextAddress==1)return th=u().onMiniAppOpenYtContentRequested,v&&_.w("enable_open_yt_content")&&th?VT.yield(VOC(v,uZ),3):VT.jumpTo(0);dC=VT.yieldResult;if(dC==="OK")if(u().isEmbeddedInWebview){var O7=new ds$;n9=P6(O7,2,PF,IH(uZ));MW(th,a8i(n9))}else O.clientData.set("video_id",uZ),Uz(th);_.Wx(VT)})},P2=function(uZ){sb+=_.r6(uZ,3);
uZ=Math.min(Math.log(1+sb/15E6*9)/Math.log(10),.99);hb(uZ);Fx(uZ)},Fx=_.pN(function(uZ){var th=u().updateLoadingProgressCommand;
if(th){var dC=new ds$;uZ=P6(dC,3,PF,_.Qp(uZ));MW(th,a8i(uZ))}},100),ee=function(uZ,th){switch(uZ){case 1:return qTz(J);
case 2:return Q3b(J);case 3:return EVh(J,th);default:return Promise.reject(Error("fi"))}},dU=function(){var uZ,th;
((uZ=_.rIk())==null?void 0:(th=uZ.wakeLock)==null?void 0:th.request)!=null&&_.rIk().wakeLock.request("screen").then(function(dC){G=dC}).catch(function(){})},wt=_.AM("iframe");
_.bX(function(){u().isSupportedCountry&&(sfu()||_.w("enable_sign_in_promo")||!u().showSignInDialogCommand?wt.value&&lU(wt.value):Uz(u().onMiniAppReadyCommand))},"I8Fvz");
var LY=function(){return _.p("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Ab()?0:-1},
title:function(){return u().title},
el:wt})},lU=function(uZ,th){th=th===void 0?!1:th;
var dC=I5();if(dC&&(th||dC.toString()!==uZ.getAttribute("src"))){t=fnq(u().source,{isAudioEnabled:mJ,onFirstFrameReady:Hn,onGameReady:I3,onSave:ix,onLoad:lZ,onError:ZH,onSdkCalled:hh,onSdkPerformanceUpdate:Nk,onClick:$i,onSendHighScore:F4,onBenchmarkingMessageReceived:R2,getLanguage:NQ,onShareInviteCode:me,onResourceLoaded:P2,onOpenYTContent:cU,onShowMiniAppAd:ee,onGameFrameReceived:tk,onGameAudioReceived:QW,onMakeIapPurchase:OT},uZ,dC);fh(uZ,"load",function(){aN(E,"ma_il");fh(uZ,"load",function(){lU(uZ,
!0)})});
var n9=_.S8("mini_app_container_iframe_src_update_delay_ms");u().isEmbeddedInWebview&&!th&&n9>0?PmK(uZ,dC,n9):_.Px(uZ,dC)}},I5=function(){var uZ=u().url;
if(uZ&&(uZ=_.A6(uZ),uZ!==null)){if(u().source&&u().source==="MINI_APP_SOURCE_GAMESNACKS")uZ=_.Zi(uZ,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.w("enable_origin_query_parameter_bugfix")){var th=_.TW(_.zvu(uZ.toString()));th=new URLSearchParams(th||"");th.set("origin",window.location.origin);th=th.toString();uZ=_.WT(uZ).toString();uZ=_.r0(MpR.exec(uZ)[0]+(th.trim()?"#"+th:""))}return uZ}},Ep=function(){var uZ={};
uZ=_.Ty("yt-mini-app-container-view-model__loading-screen",(uZ["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ab,uZ));var th=function(){return Ab()?1:YV()};
return _.p("div",{class:uZ},_.p(_.Up,{data:function(){return u().splashScreen}},{miniAppSplashScreenViewModel:function(dC){return _.p(wTx,{data:dC.data,
loadingProgress:th})}}))},u$=function(){var uZ={};
return _.p("div",{class:_.Ty("yt-mini-app-container-view-model__pause-interstitial",(uZ["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!jf()},uZ["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=jf,uZ))},_.p(_.Up,{data:function(){return u().splashScreen}},{miniAppSplashScreenViewModel:function(th){return _.p(wTx,{data:th.data,
forPaused:!0})}}))},EO=function(){e=[];
e.push(_.Z1(window,"visibilitychange",function(){d||Q&&Pq()||(document.visibilityState==="visible"?rq():lh())}));
e.push(_.Z1(window,"pagehide",function(){TF()}));
e.push(_.Z1(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&$L.value.dispatchEvent(new Event("tap"))},0)}));
e.push(_.Z1($L.value,"pointerdown",function(){zKh(E,!1)},!0));
e.push(_.Z1($L.value,"pause",function(){d=!0;lh()}));
e.push(_.Z1($L.value,"play",function(){d=!1;rq()}));
e.push(_.Z1($L.value,"exit",function(){TF()}));
var uZ=navigator.keyboard,th=uZ&&uZ.lock;e.push(_.Z1(window,TL0,function(){ME(n2b());n2b()?(u().hasPlayNextShelf&&NJ("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),q$("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),th&&uZ.lock(["Escape"])):(u().hasPlayNextShelf&&q$("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),NJ("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),th&&uZ.unlock())}));
u().showMultiplayer3pConsentDialogCommand&&e.push(_.Z1(window,"yt-playables-ack-3p-data-usage",function(){XTL(v)}));
u().confirmExitMiniAppCommandEdu&&e.push(_.Z1(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Ex("exit-mini-app-seen-state","true",2592E6)}));
u().onGameAudioDataReceivedCommand&&e.push(_.Z1(window,"message",function(dC){dC=dC.event_;var n9,VT=(n9=wt.value)==null?void 0:n9.src;if(VT&&dC.origin===(new URL(VT)).origin&&dC.data&&dC.data.type==="GAME_AUDIO"&&dC.data.audio&&dC.data.audio.length>0)if(_.w("enable_sending_unwrapped_game_audio_as_serialized_metadata"))Emh(u().onGameAudioDataReceivedCommand,dC.data.audio);else{var O7=new FileReader;O7.onload=function(){var zQ=new N4;var Y6=new rOW;Y6=_.EU(Y6,1,O7.result);zQ=_.FV(zQ,4,Y6);MW(u().onGameAudioDataReceivedCommand,
T5$(zQ))};
O7.readAsDataURL(new Blob([dC.data.audio]))}}))},GP=function(){e.forEach(function(uZ){Qb(uZ)});
window.removeEventListener("beforeunload",Rm,{capture:!0})},Uz=function(uZ){uZ&&qsK(uZ,u().isEmbeddedInWebview||!1)},q$=function(uZ,th){uZ=_.N($L.value.getElementsByClassName(uZ));
for(var dC=uZ.next();!dC.done;dC=uZ.next())dC.value.classList.add(th)},NJ=function(uZ,th){uZ=_.N($L.value.getElementsByClassName(uZ));
for(var dC=uZ.next();!dC.done;dC=uZ.next())dC.value.classList.remove(th)};
return function(){var uZ={};uZ=_.Ty("yt-mini-app-container-view-model",(uZ["yt-mini-app-container-view-model--desktop"]=!0,uZ["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return u().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},uZ["yt-mini-app-container-view-model--ios-web-view"]=RhF(),uZ["yt-mini-app-container-view-model--no-top-bar"]=function(){return!u().topBar},uZ["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return u().hasPlayNextShelf},uZ["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return u().hasPlayNextShelf},uZ["yt-mini-app-container-view-model--show-peek-below"]=function(){return!v5()&&u().hasPlayNextShelf},uZ));
var th={};th=_.Ty("yt-mini-app-container-view-model__content",(th["yt-mini-app-container-view-model__content--desktop-content"]=!0,th["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return u().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},th["yt-mini-app-container-view-model--desktop-play-page"]=function(){return u().hasPlayNextShelf},th));
return _.p("mini-app-container-view-model",{el:$L},_.p("div",{class:uZ},_.p(_.M,{cond:function(){return u().topBar&&!v5()},
then:function(){return _.p(_.Up,{data:function(){return u().topBar}},{miniAppTopBarViewModel:function(dC){return _.p(COp,{data:dC.data,
isAudioEnabled:mJ,onAudioToggled:function(n9){nZ(n9)},
score:NE,formattedScore:eX,onScoreChanged:function(n9){f=n9},
isEmbeddedInWebview:Pq,isSaved:B5,onSaveToggled:function(n9){ra(n9)},
isExitMiniAppSeen:po,isDesktopPlayPage:du})}})}}),_.p("div",{class:th},_.p(_.M,{cond:gC,
then:function(){return LY()}}),_.p(_.M,{cond:function(){return u().isLivestream},
then:function(){return u$()}}),_.p(_.M,{cond:function(){return!u().isEmbeddedInWebview},
then:function(){return Ep()}}),_.p(_.Up,{data:function(){return u().contentDisclosure}},{playerDisclosureViewModel:function(dC){dC=dC.data;
var n9={};return _.p("div",{class:_.Ty("yt-mini-app-container-view-model__content-disclosure-overlay",(n9["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=ET,n9))},_.p(_.bvp,{data:dC}))}}))))}()},"jg");
rez.idomCompat=!0;_.dL(rez,"mini-app-container-view-model",{props:{data:_.H2}});var WGh=_.r(function(g){var u=g.data;return _.p("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.p("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.YH(function(){var q=u().onTap;q&&_.ey(q)})},_.p(_.M,{cond:function(){return u().icon},
then:function(q){return _.p(_.B1,{icon:function(){return q().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.p("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return u().title})))},"kg");
WGh.idomCompat=!0;var T0f=_.r(function(g){var u=_.Hk("div"),q=_.N(_.jR(void 0,void 0,"dg3xff")),Q=q.next().value,L=q.next().value;q=_.N(_.jR(void 0,void 0,"AgHNfc"));var E=q.next().value,y=q.next().value;q=_.N(_.jR(void 0,void 0,"fuTKCc"));var v=q.next().value,J=q.next().value,f=function(){var F=Q();return F!==void 0?Math.abs(F):void 0},t=function(){var F=f();
return F===void 0||F<=3},e=function(){var F=f();
var V=E(),z=v();F=F!==void 0&&V!==void 0&&z!==void 0?V-z-F:void 0;return F===void 0||F<=3},G=function(F){u.value&&u.value.scrollBy({top:0,
left:(_.FR("HTML_DIR")==="rtl"?-1:1)*F*u.value.clientWidth,behavior:"smooth"})},R=function(){var F;
L((F=u.value)==null?void 0:F.scrollLeft);var V;y((V=u.value)==null?void 0:V.scrollWidth);var z;J((z=u.value)==null?void 0:z.clientWidth)},H=function(){G(-.5)},l=function(){G(.5)};
q=_.YH(function(){R()});
_.lL(function(){R();if(u.value&&window.ResizeObserver){var F=new ResizeObserver(R);F.observe(u.value);_.dB(function(){F.disconnect()})}});
var d={};return _.p("yt-sponsorships-scrollable-shelf",{class:_.Ty("ytdSponsorshipsScrollableShelfHost",g.className)},_.p("div",{class:_.Ty("ytdSponsorshipsScrollableShelfContent",(d.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return g.data().previousButton&&g.data().nextButton&&!t()&&!e()},d.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return g.data().previousButton&&!t()&&e()},d.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return g.data().nextButton&&
t()&&!e()},d)),
el:u,"on:scroll":q},g.children),_.p(_.M,{cond:function(){return!t()},
then:function(){return _.p(_.Up,{data:function(){return g.data().previousButton}},{buttonViewModel:function(F){return _.p(_.TT,{data:F.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:H})}})}}),_.p(_.M,{cond:function(){return!e()},
then:function(){return _.p(_.Up,{data:function(){return g.data().nextButton}},{buttonViewModel:function(F){return _.p(_.TT,{data:F.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:l})}})}}))},"mg");
T0f.idomCompat=!0;var YTf=_.r(function(g){var u=g.data;g={};return _.p("yt-sponsorships-hub",{class:_.Ty("ytdSponsorshipsHubHost",(g.ytdSponsorshipsHubHostIndented=function(){return u().indented},g))},_.p("div",{class:"ytdSponsorshipsHubHeader"},_.p("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.p("div",{class:"ytdSponsorshipsHubAvatar"},_.p(_.Up,{data:function(){return u().avatar}},{avatarViewModel:_.jv})),_.p(_.M,{cond:function(){return u().badgeImage},
then:function(q){return _.p("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.p("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.p("div",{class:"ytdSponsorshipsHubBadge"},_.p(_.IT,{data:q,targetWidth:24,targetHeight:24,alt:""}))))}})),_.p("div",{class:"ytdSponsorshipsHubDetails"},_.p("div",{class:"ytdSponsorshipsHubTierName"},function(){return u().tierName}),_.p("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return u().membershipType}),_.p("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return u().membershipDurationOrExpiry})),_.p("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.p(_.Up,{data:function(){return u().manageButton}},{buttonViewModel:function(q){return _.p(_.TT,{data:q.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.p(_.Up,{data:function(){return u().actionMenuButton}},{buttonViewModel:function(q){return _.p(_.TT,{data:q.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.p("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return u().perksTitle}),_.p(T0f,{data:function(){return{previousButton:u().previousPerkButton,
nextButton:u().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.p("div",{class:"ytdSponsorshipsHubPerkCards"},_.p(_.Up,{data:function(){return u().perkCards}},{sponsorshipsHubPerkCardViewModel:WGh}),_.p(_.M,{cond:function(){return u().viewAllPerksButton},
then:function(q){return _.p(heH,{data:q})}}))))},"ng");
YTf.idomCompat=!0;var heH=_.r(function(g){var u=g.data;return _.p("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.p(_.Up,{data:function(){return u().button}},{buttonViewModel:_.TT}),_.p("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.p("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return u().title}),_.p("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return u().subtitle})))},"og");
heH.idomCompat=!0;_.dL(YTf,"yt-sponsorships-hub",{props:{data:_.H2}});_.Ovp=_.r(function(g){var u=g.data;return _.p("yt-dual-avatar-view-model",{class:_.Ty("ytDualAvatarViewModelHost",g.className),style:_.xH({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var q;return((q=u().badgeCutoutRadius)!=null?q:14)+"px"}})},_.p("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.p(_.Up,{data:function(){return u().startAvatar}},{avatarViewModel:_.jv}),_.p(_.Up,{data:function(){return u().endAvatar}},{avatarViewModel:_.jv})),_.p(_.Up,{data:function(){return u().badge}},
{contentPreviewImageViewModel:function(q){return _.p("div",{class:"ytDualAvatarViewModelBadge"},_.p(_.hW,{data:q.data}))}}))},"pg");
_.Ovp.idomCompat=!0;var xk9=_.r(function(g){var u=g.data;var q,Q=!((q=_.Bk().resolve(_.xv(_.gy)))==null||!q());g=_.G9(function(){var t,e,G=Q?(t=u().header)==null?void 0:t.backgroundColorDarkMode:(e=u().header)==null?void 0:e.backgroundColorLightMode;if(G!==void 0)return _.jh(G)},void 0,"TDdh7d");
q=_.G9(function(){var t,e;return Q?(t=u().header)==null?void 0:t.backgroundImagePart1Dark:(e=u().header)==null?void 0:e.backgroundImagePart1Light},void 0,"X0peMe");
var L=_.G9(function(){var t,e;return Q?(t=u().header)==null?void 0:t.backgroundImagePart2Dark:(e=u().header)==null?void 0:e.backgroundImagePart2Light},void 0,"an0Hzd"),E=_.G9(function(){return _.FR("HTML_DIR")==="rtl"},void 0,"BltEgb"),y=_.Hk("yt-sponsorships-perks-list"),v=!1,J=function(){var t=y.value;
if(t&&!v){var e,G=(e=t.parentElement)==null?void 0:e.parentElement;if(G)for(t=t.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),e=0;e<t.length;++e){var R=t[e];if(R instanceof HTMLElement){G.scrollTo({top:R.offsetTop+R.clientHeight/2-G.clientHeight/2,behavior:"smooth"});v=!0;break}}}};
_.I4(function(){var t=y.value;if(t&&window.ResizeObserver){var e=new ResizeObserver(J);e.observe(t);_.dB(function(){e.disconnect()})}});
var f={};return _.p("yt-sponsorships-perks-list",{el:y,class:_.Ty("ytdSponsorshipsPerksListHost",(f.ytdSponsorshipsPerksListHorizontalPadding=function(){return u().horizontalPaddingEnabled},f))},_.p("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.p("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.xH({"background-color":g})},_.p("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.p(_.M,{cond:q,then:function(t){var e={};return _.p("div",{class:_.Ty((e.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Q,e.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Q,e.ytdSponsorshipsPerksListFlipped=E,e))},_.p(_.IT,{data:t,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.p("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.p(_.M,{cond:L,
then:function(t){var e={};return _.p("div",{class:_.Ty((e.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Q,e.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Q,e.ytdSponsorshipsPerksListFlipped=E,e))},_.p(_.IT,{data:t,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.p("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.p(_.Up,{data:function(){var t;
return(t=u().header)==null?void 0:t.dualAvatar}},{dualAvatarViewModel:_.Ovp})))),_.p("div",{class:"ytdSponsorshipsPerksListBody"},_.p("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return u().title}),_.p(_.M,{cond:function(){return u().perks},
then:function(t){return _.p(_.R4,{each:t},function(e,G){var R={};return _.p("div",{class:_.Ty("ytdSponsorshipsPerksListPerkContainer",(R.ytdSponsorshipsPerksListSelectedPerk=function(){var H=G(),l=u().selectedPerkIndex;return H===l},R))},_.p(_.M,{cond:function(){return G()>0},
then:function(){return _.p("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.p("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.p(_.M,{cond:function(){return e.icon},
then:function(H){return _.p(_.B1,{icon:function(){return H().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.p("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.p("div",{class:"ytdSponsorshipsPerksListPerkTitle"},e.title),_.p("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.p(_.c2,{text:e.description})),_.p(_.M,{cond:function(){return e.instructions},
then:function(){var H,l;return _.p("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.p("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(H=e.instructions)==null?void 0:H.title),_.p("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.p(_.c2,{text:(l=e.instructions)==null?void 0:l.text})))}}))),_.p(_.M,{cond:function(){return e.emoji},
then:function(H){return _.p("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.p(_.R4,{each:function(){return H()}},function(l){return _.p(_.IT,{data:l,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.p(KG9,{data:e}))})}})))},"qg");
xk9.idomCompat=!0;var KG9=_.r(function(g){var u=g.data;var q=function(y,v){return y===v},Q=function(){var y=u();
y=_.c(y==null?void 0:y.badgesShelf,$5a);return y!==void 0&&y!==null?y:{previousButton:{},nextButton:{}}},L=_.AM("div"),E=function(){var y=L.value;
if(y){var v=y.parentElement;if(v){y=y.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var J=0;J<y.length;++J){var f=y[J];if(f instanceof HTMLElement){v.scrollTo({left:f.offsetLeft+f.clientWidth/2-v.clientWidth/2,behavior:"instant"});break}}}}};
_.I4(function(){var y=L.value;if(y){var v=new ResizeObserver(E);v.observe(y);_.dB(function(){v.disconnect()})}});
return _.p("div",null,_.p(_.M,{cond:function(){return u().badges},
then:function(y){return _.p(T0f,{data:Q},_.p("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:L},_.p(_.R4,{each:function(){return y()}},function(v,J){var f={},t={},e={};
return _.p("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.p(_.M,{cond:function(){return J()>0},
then:function(){return _.p("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.p("div",{class:_.Ty("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(f.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return q(J(),u().currentBadgeIndex)},f.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!q(J(),u().currentBadgeIndex)},f))},_.p("div",{class:_.Ty("ytdSponsorshipsPerksListLoyaltyBadge",(t.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return q(J(),
u().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!q(J(),u().currentBadgeIndex)},t))},_.p(_.M,{cond:function(){return v.image},
then:function(G){var R={};return _.p("div",{class:_.Ty((R.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return q(J(),u().currentBadgeIndex)},R.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!q(J(),u().currentBadgeIndex)},R))},_.p(_.IT,{data:G,
alt:""}))}})),_.p("div",{class:_.Ty("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(e.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return q(J(),u().currentBadgeIndex)},e))},v.title)))})))}}))},"rg");
KG9.idomCompat=!0;_.dL(xk9,"yt-sponsorships-perks-list",{props:{data:_.H2}});_.dL(_.r(function(g){return _.p("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.p(_.M,{cond:function(){return g.data().image},
then:function(u){return _.p(_.IT,{className:"ytwFantasyEmptyStateViewModelImage",data:u,ariaHidden:!0,alt:""})}}),_.p(_.c2,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return g.data().title}}),_.p(_.c2,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return g.data().subtitle}}),_.p(_.Up,{data:function(){return g.data().primaryButton}},{buttonViewModel:function(u){return _.p(_.TT,{data:u.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"sg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.H2}});var B0p;var zex=_.r(function(g){var u=g.data;var q=g.uniqueId;var Q=g.overrides;g=_.G9(function(){var L,E=((L=u().timedAnimationData)==null?void 0:L.animationTiming)||[];return{uniqueId:q(),timings:E,experimentEnabled:E.length>0,enabled:E.length>0}},void 0,"hiuXI");
return _.p("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.p($O5,{settings:g},_.p(_.Up,{data:function(){return u().buttonRenderer}},{buttonRenderer:function(L){return _.p(_.CG,{data:L.data,
buttonOverrides:Q})}})))},"tg");
zex.idomCompat=!0;_.dL(zex,"timed-animation-button-renderer",{props:{data:_.H2,uniqueId:_.H2,overrides:_.H2}});var On=function(){var g=_.X.apply(this,arguments)||this;g.hideJoinButtonBeforeSubscribed=_.w("hide_join_button_before_subscribed");g.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return g};
_.A(On,_.X);_.P=On.prototype;_.P.hasShowDialogCommand=function(g){return!!_.c(g,lha)};
_.P.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"}}}};
_.P.updateJoinButtonOverrides=function(){var g,u;(g=_.Tr(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(u=g.polymerController)==null||u.set("overrides",this.joinButtonOverrides);if(g=_.Tr(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))g.overrides=this.joinButtonOverrides};
_.P.handleButtonRefreshAction=function(g){if(g=_.c(g,Kpb))this.set("data.membershipButton",g.membershipButton),this.notifyPath("data.membershipButton")};
_.P.onYtServiceRequestError=function(g){_.A7(this.hostElement,g.detail.error.message)};
_.P.onKeydown=function(g){if(g.key==="Enter"){var u;(u=this.data)!=null&&u.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.P.handleUnsubscribeAction=function(){var g,u,q;((g=this.data)==null?void 0:(u=g.membershipButton)==null?void 0:(q=u.buttonRenderer)==null?void 0:q.style)==="STYLE_PRIMARY"&&_.Tr(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.z3.Object.defineProperties(On.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.subscriptionStateEntity)==null||!g.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var g,u=(g=this.data)==null?void 0:g.membershipButton,q;g=(u==null?void 0:u.buttonRenderer)||_.c(u==null?void 0:(q=u.timedAnimationButtonRenderer)==null?void 0:q.buttonRenderer,_.eW);return(g==null?void 0:g.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(g==null?void 0:g.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(g==null?void 0:g.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var g;if(this.hasShowDialogCommand((g=this.data)==null?void 0:g.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var g;if(this.hasShowDialogCommand((g=this.data)==null?void 0:g.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.attributedTitle)}}});
On.prototype.onYtServiceRequestError=On.prototype.onYtServiceRequestError;On.prototype.updateJoinButtonOverrides=On.prototype.updateJoinButtonOverrides;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],On.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],On.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],On.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.PI),_.K("design:type",Object)],On.prototype,"ironButtonState",void 0);_.Y([_.a(),_.K("design:type",Object)],On.prototype,"data",void 0);_.Y([_.C("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],On.prototype,"hideJoin",null);
_.Y([_.a(),_.K("design:type",String)],On.prototype,"subscribeKey",void 0);_.Y([_.a({selectorArgs:["subscribeKey"],selector:f2q}),_.K("design:type",Object)],On.prototype,"subscriptionStateEntity",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],On.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.Y([_.C("subscriptionStateEntity"),_.a({reflectToAttribute:!0}),_.K("design:type",Object),_.K("design:paramtypes",[])],On.prototype,"subscribed",null);
_.Y([_.C("subscribed","data.membershipButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],On.prototype,"joinButtonOverrides",null);_.Y([_.C("data.navigationEndpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],On.prototype,"channelNameTabIndex",null);_.Y([_.C("data.navigationEndpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],On.prototype,"channelNameRole",null);
_.Y([_.C("data.attributedTitle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],On.prototype,"hasAttributedTitle",null);_.Y([_.k_("joinButtonOverrides"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],On.prototype,"updateJoinButtonOverrides",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],On.prototype,"onYtServiceRequestError",null);
_.Y([_.fE({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],On);
var nVC=_.Te()(On,"ytd-video-owner-renderer",function(){if(B0p===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);B0p=g}g=B0p;return g},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:2});_.dL(_.r(function(g){var u=g.data;var q;g=_.N(_.jR(!((q=_.P9("yt-mini-app-is-theater-mode-enabled"))==null||!q),void 0,"i2pjVd"));var Q=g.next().value,L=g.next().value;q=_.N(_.jR(!1,void 0,"ga7V5c"));var E=q.next().value,y=q.next().value;_.I4(function(){var f=_.Z1(window,TL0,function(){y(n2b())});
_.dB(function(){Qb(f)})});
var v;q=(v=_.Bk().resolve(_.xv(MXz)))!=null?v:function(){return _.p("div",null)};
_.W6("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){L(!0);_.Ex("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.W6("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){L(!1);_.Ex("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
v={};g={};var J={};return _.p("mini-app-play-page-renderer",{class:_.Ty("miniAppPlayPageRendererHost",(v.miniAppPlayPageRendererHostDetailsView=function(){return!Q()},v))},_.p("div",{class:_.Ty("miniAppPlayPageRendererGameContainer",(g.miniAppPlayPageRendererGameContainerDetailsView=function(){return!Q()},g))},_.p(_.Up,{data:function(){return u().containerViewModel}},{miniAppContainerViewModel:rez}),_.p(_.M,{cond:function(){return u().channel&&u().subscribeButton},
then:function(){var f={};return _.p("div",{class:_.Ty("miniAppPlayPageRendererChannelContainer",(f.miniAppPlayPageRendererHideVisibility=function(){return E()},f))},_.p(_.Up,{data:function(){return u().channel}},{videoOwnerRenderer:function(t){return _.p(nVC,{data:t.data})}}),_.p(_.Up,{data:function(){return u().subscribeButton}},{subscribeButtonViewModel:function(t){return _.p(_.jt,{data:t.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.p(_.M,{cond:function(){return!Q()&&u().description},
then:function(){var f={};return _.p("div",{class:_.Ty("miniAppPlayPageRendererMiniAppDescriptionWrapper",(f.miniAppPlayPageRendererHideVisibility=function(){return E()},f))},_.p("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return u().description}))}})),_.p("div",{class:_.Ty("miniAppPlayPageRendererPlayNextContainer",(J.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!Q()},J.miniAppPlayPageRendererHideVisibility=function(){return E()},J))},_.p(_.Up,{data:function(){return u().sectionList}},
{sectionListRenderer:q})))},"ug"),"mini-app-play-page-renderer",{props:{data:_.H2}});var Ki=function(){var g=_.X.apply(this,arguments)||this;g.isSearch=!1;g.isConstrainedList=!1;g.hasChipsBar=!1;g.inReplyPanel=!1;g.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"}};g.monitorScroll=!0;g.SCROLL_ANIMATION_DURATION_MS=300;g.nextContinuation={continuationType:"sectionListContinuation"};return g};
_.A(Ki,_.X);_.P=Ki.prototype;
_.P.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(g){switch(g.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:_.w("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.w("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.P.created=function(){var g=this;this.JSC$17546_scrollAnimation=new _.FH(function(u){g.hostElement.scrollTop=u})};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.replacePrimaryContent=function(g){this.set("data.contents",g)};
_.P.computeHasSortFilter=function(g){return!!g&&!!g.sortFilterSubMenuRenderer};
_.P.computeShouldScrollInPanel=function(g){var u;return!!(g==null?0:(u=g.scrollPaneStyle)==null?0:u.scrollable)};
_.P.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Y_(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.P.scrollToTop=function(){this.hostElement.scrollTop=0};
_.P.scrollToItemSection=function(g){if(g=this.getItemByIdentifier(g))g=this.getScrollPositionForItem(g),this.hostElement.scrollTop!==g&&this.JSC$17546_scrollAnimation.start(this.hostElement.scrollTop,g,this.SCROLL_ANIMATION_DURATION_MS)};
_.P.getItemByIdentifier=function(g){var u=this.contents.querySelectorAll("ytd-item-section-renderer");if(u&&u.length!==0){var q=Array.from(u).findIndex(function(Q){return Q.sectionIdentifier===g});
return u[q===-1?0:q]}};
_.P.getScrollPositionForItem=function(g){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===g)return 0;g=_.Mi(g).y+this.hostElement.scrollTop-_.Mi(this.hostElement).y;return Math.min(g,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.z3.Object.defineProperties(Ki.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.targetId)==="browse-feedFEclips"}}});
Ki.prototype.onScroll=Ki.prototype.onScroll;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ki.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.a_.YtLazyListBehavior),_.K("design:type",Object)],Ki.prototype,"ytLazyListBehavior",void 0);_.Y([_.I(_.Cm.YtNextContinuationBehavior),_.K("design:type",Object)],Ki.prototype,"ytNextContinuationBehavior",void 0);
_.Y([_.I(_.FzC),_.K("design:type",Object)],Ki.prototype,"ytBooleanLogicBehavior",void 0);_.Y([_.I(_.i5),_.K("design:type",Object)],Ki.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ki.prototype,"data",void 0);_.Y([_.a({value:2}),_.K("design:type",Number)],Ki.prototype,"initialCount",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],Ki.prototype,"autoFill",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.K("design:type",Boolean)],Ki.prototype,"hasSortFilter",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.K("design:type",Boolean)],Ki.prototype,"hideBottomSeparator",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.K("design:type",Boolean)],Ki.prototype,"shouldScrollInPanel",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ki.prototype,"isSearch",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ki.prototype,"isConstrainedList",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],Ki.prototype,"responsiveSizing",void 0);_.Y([_.a(),_.K("design:type",Object)],Ki.prototype,"hasChipsBar",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],Ki.prototype,"pageSubtype",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ki.prototype,"engagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ki.prototype,"liveChatEngagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ki.prototype,"inReplyPanel",void 0);_.Y([_.oE("#action-button"),_.K("design:type",HTMLElement)],Ki.prototype,"actionButton",void 0);_.Y([_.a(),_.K("design:type",Object)],Ki.prototype,"scrollUpButtonData",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ki.prototype,"engagementPanelDropdown",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ki.prototype,"engagementPanelDialog",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ki.prototype,"isClipList",null);_.Y([_.oE("#contents"),_.K("design:type",HTMLElement)],Ki.prototype,"monitorScrollElement",void 0);_.Y([_.oE("#contents"),_.K("design:type",HTMLElement)],Ki.prototype,"contents",void 0);
_.Y([_.n6("scroll"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ki.prototype,"onScroll",null);_.Y([_.fE({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Ki);
var ksE=_.Te()(Ki,"ytd-section-list-renderer",function(){if(fHh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);fHh=g}g=fHh;return g},{mode:1});var STC;var oVL;var UkC;var gAE;var x7=function(){return _.X.apply(this,arguments)||this};
_.A(x7,_.X);x7.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
x7.prototype.onLikeButtonClick=function(g){g.stopPropagation();g.preventDefault()};
_.z3.Object.defineProperties(x7.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)!=null&&g.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)})}}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],x7.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],x7.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],x7.prototype,"ytRendererStamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],x7.prototype,"data",void 0);
_.Y([_.a({selectorArgs:["data.likeStatusEntityKey"],selector:_.jT}),_.K("design:type",Object)],x7.prototype,"likeStatusEntity",void 0);_.Y([_.C("data","likeStatusEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],x7.prototype,"likeButtonRenderer",null);_.Y([_.fE({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],x7);
_.T(x7,"ytd-slim-metadata-toggle-button-renderer",function(){if(gAE!==void 0)return gAE;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return gAE=g},{mode:1});var BR=function(){var g=_.X.apply(this,arguments)||this;g.showEqualizer=_.w("web_enable_playlist_video_lockup_equalizer");g.watchColorUpdate=_.w("kevlar_watch_color_update");g.actionMap={};return g};
_.A(BR,_.X);_.P=BR.prototype;_.P.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"}}}};
_.P.computeEditableClass=function(g){return g&&g.menu?"editable":""};
_.P.computeSelected=function(g){return!(g==null||!g.selected)};
_.P.computeUseColorPalette=function(g){return!!((g==null?0:g.lightColorPalette)&&(g==null?0:g.darkColorPalette))};
_.P.computeLargerPlaylistThumbs=function(g,u){return _.w("web_enable_playlist_bigger_thumbnails")&&!u};
_.P.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.P.onYtServiceRequestSent=function(g,u){u.endpoint&&this.isHideEnclosingAction(u.endpoint)&&!this.selected&&L0b(_.Ic(),this.data.videoId)};
_.P.isHideEnclosingAction=function(g){var u=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",g);g=this.get("likeEndpoint.status",g)==="INDIFFERENT";return u||g};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.z3.Object.defineProperties(BR.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.w("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 g;return!!(this.withinMiniplayer&&((g=this.data)==null?0:g.actionButtons))}}});
BR.prototype.onYtServiceRequestSent=BR.prototype.onYtServiceRequestSent;BR.prototype.canReorderChanged=BR.prototype.canReorderChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],BR.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.c_),_.K("design:type",Object)],BR.prototype,"ytdLockupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BR.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],BR.prototype,"withinMiniplayer",void 0);_.Y([_.a({computed:"computeSelected(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],BR.prototype,"selected",void 0);
_.Y([_.a({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],BR.prototype,"useColorPalette",void 0);_.Y([_.a({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.K("design:type",Boolean)],BR.prototype,"largerPlaylistThumbs",void 0);_.Y([_.a(),_.K("design:type",Object)],BR.prototype,"showEqualizer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],BR.prototype,"canReorder",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],BR.prototype,"touchPersistentDragHandle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],BR.prototype,"handleIsHovered",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],BR.prototype,"watchColorUpdate",void 0);_.Y([_.a(),_.K("design:type",String),_.K("design:paramtypes",[])],BR.prototype,"reorderIcon",null);
_.Y([_.a(),_.K("design:type",String),_.K("design:paramtypes",[])],BR.prototype,"playIcon",null);_.Y([_.a({reflectToAttribute:!0}),_.C("withinMiniplayer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BR.prototype,"minimizePipBreakages",null);_.Y([_.C("largerPlaylistThumbs"),_.K("design:type",Number),_.K("design:paramtypes",[])],BR.prototype,"thumbnailWidth",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BR.prototype,"showActionButtons",null);_.Y([_.qm("canReorder"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BR.prototype,"canReorderChanged",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],BR.prototype,"onYtServiceRequestSent",null);
_.Y([_.fE({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],BR);
_.T(BR,"ytd-playlist-panel-video-renderer",function(){if(UkC!==void 0)return UkC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return UkC=g},{mode:2});var zH=function(){return _.X.apply(this,arguments)||this};
_.A(zH,_.X);zH.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zH.prototype,"data",void 0);_.Y([_.fE({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],zH);
_.T(zH,"ytd-playlist-panel-supported-items",function(){if(oVL!==void 0)return oVL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return oVL=
g},{mode:1});hG0=!0;$$i("\\P{N}");var H5h;var urp=_.Ug("END_OF_PLAYLIST",void 0,"End of playlist"),qPE=_.Ug("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),ni=function(){var g=_.X.apply(this,arguments)||this;g.minimizePipBreakages=_.w("web_pip_minimize_breakages");g.hideHeaderText=!1;g.useColorPalette=!1;g.collapsed=!1;g.collapsedPreServerOverride="not_tracked";g.isHovered=!1;g.expandLabel=_.Ug("MINIPLAYER_EXPAND_LABEL");g.collapseLabel=_.Ug("MINIPLAYER_COLLAPSE_LABEL");g.isFloating=!1;g.metaPanel=
!1;g.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};g.currentIndex=void 0;return g};
_.A(ni,_.X);_.P=ni.prototype;
_.P.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"}}}};
_.P.created=function(){var g=this;this.scrollThrottle=new _.Kr(this.onThrottledScroll,1E3,this);this.JSC$17568_ytReorderableController=new _.dD2(56,function(u){g.handleDrop(u)})};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.computeOverflowMenuData=function(g){return g&&g.menu?g.menu:null};
_.P.computeCollapsible=function(g){return!g};
_.P.computeHasPlaylistButtons=function(g){return!(!g||!g.playlistButtons)};
_.P.computeHasSeparateSaveButton=function(g){return!(!g||!g.saveButton)};
_.P.computeHasToolbarButton=function(g,u){return!(!g||!(u||g.saveButton||g.menu))};
_.P.computePlaylistType=function(g){if(g&&g.playlistId)return g.playlistId.substring(0,4)};
_.P.computeCanReorder=function(g){return g?g.playlistId&&g.playlistId.startsWith("TLPQ")?!0:!!g.isEditable&&!g.isInfinite:!1};
_.P.attached=function(){var g=this;try{_.Bk().resolve(_.cd).setPlaylistComponent(this.hostElement)}catch(u){if(_.w("kevlar_park_on_playlist_token_killswitch"))throw u;_.A4().parkOrScheduleJob(function(){_.Bk().resolve(_.cd).setPlaylistComponent(g.hostElement)},2,"ci")}_.ar(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.P.detached=function(){_.VD(this.hostElement);_.UM(this.JSC$17568_ytReorderableController)};
_.P.computeTrailingIcon=function(g,u,q){return q?u?"yt-icons:collapse":"yt-icons:close":u?"yt-icons:expand":_.w("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.P.computeIndexMessage=function(g,u){return lnZ(g+1)+" / "+lnZ(u)};
_.P.onRenderStamperFinished=function(){if(this.scrollForStampDom){var g=!0;this.isHovered&&(g=!1);if(this.collapsed||this.hidden)g=!1;g&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.P.collapseChanged=function(){var g=this;this.collapsed||(_.gT(this.ytTaskEmitterBehavior.getTaskManager(),function(){g.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.P.hiddenChanged=function(){var g=this;this.hidden||_.gT(this.ytTaskEmitterBehavior.getTaskManager(),function(){g.scrollToCurrentVideo()})};
_.P.setupReordering=function(){var g=_.Tr(this.hostElement).querySelector("#items");E7R?_.FOo(this.JSC$17568_ytReorderableController,g,g,"playlist-drag-handle"):_.FOo(this.JSC$17568_ytReorderableController,g,g)};
_.P.scrollToCurrentVideo=function(){var g=this;_.Hv.addJob(function(){var u=_.Tr(g.hostElement).querySelector("#items");if(u){u.style.setProperty("padding-bottom","");var q=_.Tr(g.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(q){u=q.parentElement||_.ty(document);var Q=u||_.ty(document);var L=_.Mi(q),E=_.Mi(Q),y=_.LRi(Q);if(Q==_.ty(document)){var v=L.x-Q.scrollLeft;L=L.y-Q.scrollTop}else v=L.x-E.x-y.left,L=L.y-E.y-y.top;q=gFH(q);E=Q.clientHeight-
q.height;y=Q.scrollLeft;var J=Q.scrollTop;y+=v-(Q.clientWidth-q.width)/2;Q=new _.l7(y,J+(L-E/2));u.scrollLeft=Q.x;u.scrollTop=Q.y}}},8)};
_.P.dataChanged=function(){var g=this;_.UM(this.JSC$17568_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.xt(this,function(){_.M_(g.ytTaskEmitterBehavior.getTaskManager(),function(){g.ytRendererBehavior.markDirty();g.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.P.onFullBleedPlayerChanged=function(){_.w("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.onFullscreenChanged=function(){_.w("web_watch_imax_theater_mode")||_.w("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.updateNowPlayingOverlay=function(){_.w("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.P.onPlaylistLockupNowPlaying=function(g,u){u&&(this.activeNowPlayingRenderer=u);this.updateNowPlayingOverlay()};
_.P.onScroll=function(){this.scrollThrottle.fire()};
_.P.onThrottledScroll=function(){var g=this;_.M_(this.ytTaskEmitterBehavior.getTaskManager(),function(){g.ytRendererBehavior.markDirty()})};
_.P.onToggleExpanded=function(g){!this.collapsible||g&&(_.bd(g).tagName==="A"||_.ia(_.C6(g),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.P.setCollapsed=function(g){this.collapsible&&(this.collapsed=g,_.Og(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.P.handleCollapsedFromData=function(g){if(g){var u=g.playlistPanelCollapseState;u==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||u==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),u=u==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==u&&this.setCollapsed(u)):this.currentPlaylistId!==g.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(u=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==u&&this.setCollapsed(u),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=g.playlistId}};
_.P.handleDrop=function(g){var u=g.currDragItem;g=u.data.playlistSetVideoId;var q=_.Vq(u.parentNode.childNodes,u),Q=void 0;q>0&&(Q=u.parentNode.childNodes[q-1].data.playlistSetVideoId);u=_.Ic();if(u.responsePlaylistData&&u.responsePlaylistData.contents){var L=Xpf(g,u.responsePlaylistData);u.responsePlaylistData=(0,_.pH.unsafeClone)(u.responsePlaylistData);rTq(u.responsePlaylistData.contents,L,q);u.queueProxy?FD2(u.queueProxy,L,q,g,Q):u.playlistProxy&&FD2(u.playlistProxy,L,q,g,Q);_.io(u,_.CI(u,u.response?
u.response.autoplayRenderer:void 0))}};
_.P.handleDarkModeChange=function(g){g!==this.isDarkTheme&&(this.isDarkTheme=g)};
_.P.colorPaletteChanged=function(){var g,u=((g=this.data)==null?void 0:g.contents)||[],q;g=_.N(u);for(u=g.next();!u.done;u=g.next()){u=u.value;var Q=void 0;if((Q=u.playlistPanelVideoRenderer)==null?0:Q.selected){g=u.playlistPanelVideoRenderer;Q=u=void 0;(q=this.isDarkTheme?(u=g)==null?void 0:u.darkColorPalette:(Q=g)==null?void 0:Q.lightColorPalette)&&_.Le(this.hostElement,q);break}}this.useColorPalette=!!q};
_.z3.Object.defineProperties(ni.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.moveThreeDotsMenuToMainHeader)&&_.w("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var g=_.Bk().resolve(_.xv(_.cd)),u;if(((u=this.data)==null?0:u.contents)&&(g==null?0:g.hasAutoplayData())){var q;if(((q=this.playlistLoopStateEntity)==null?void 0:q.state)==="PLAYLIST_LOOP_STATE_ONE"){if(g=this.data.currentIndex,g!==void 0){var Q,L;var E=(Q=this.data.contents[g])==null?void 0:(L=Q.playlistPanelVideoRenderer)==null?void 0:L.title}}else{var y,v=(y=_.c(g.getAutoplayEndpoint(),_.l1))==null?void 0:y.videoId,J,f;E=(J=this.data.contents.find(function(t){var e;
return((e=t.playlistPanelVideoRenderer)==null?void 0:e.videoId)===v}))==null?void 0:(f=J.playlistPanelVideoRenderer)==null?void 0:f.title}return E}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)!=null&&g.nextVideoLabel?this.nextVideoTitle?_.iR(this.data.nextVideoLabel)+":":urp:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var g;if(((g=this.data)==null?0:g.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.w("web_mix_long_byline_from_data"))return _.I7(qPE);var u;return(u=this.data)==null?void 0:u.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q=(g=this.data)==null?void 0:(u=g.playlistButtons)==null?void 0:(q=u.menuRenderer)==null?void 0:q.topLevelButtons;if(Q)for(g=_.N(Q),u=g.next();!u.done;u=g.next())if(u=u.value,u.playlistLoopButtonRenderer)return u.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var g;return!!(this.collapsed&&((g=this.data)==null?0:g.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
ni.prototype.colorPaletteChanged=ni.prototype.colorPaletteChanged;ni.prototype.onPlaylistLockupNowPlaying=ni.prototype.onPlaylistLockupNowPlaying;ni.prototype.updateNowPlayingOverlay=ni.prototype.updateNowPlayingOverlay;ni.prototype.onFullscreenChanged=ni.prototype.onFullscreenChanged;ni.prototype.onFullBleedPlayerChanged=ni.prototype.onFullBleedPlayerChanged;ni.prototype.dataChanged=ni.prototype.dataChanged;ni.prototype.hiddenChanged=ni.prototype.hiddenChanged;ni.prototype.collapseChanged=ni.prototype.collapseChanged;
ni.prototype.onRenderStamperFinished=ni.prototype.onRenderStamperFinished;ni.prototype.onMouseLeave=ni.prototype.onMouseLeave;ni.prototype.onMouseEnter=ni.prototype.onMouseEnter;_.Y([_.I(_.LJ),_.K("design:type",Object)],ni.prototype,"ironResizableBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(E82.YtPlaylistPanelBehavior),_.K("design:type",Object)],ni.prototype,"ytPlaylistPanelBehavior",void 0);_.Y([_.I(_.iw.YtTaskEmitterBehavior),_.K("design:type",Object)],ni.prototype,"ytTaskEmitterBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ni.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],ni.prototype,"ytdReduxBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ni.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ni.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],ni.prototype,"autoplayData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ni.prototype,"withinMiniplayer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ni.prototype,"minimizePipBreakages",void 0);
_.Y([_.a({computed:"setMenuData_(data)"}),_.K("design:type",Object)],ni.prototype,"menuRendererData",void 0);_.Y([_.a({computed:"computeOverflowMenuData(data)"}),_.K("design:type",Object)],ni.prototype,"overflowMenuDataTopRow",void 0);_.Y([_.a({computed:"computeOverflowMenuData(data)"}),_.K("design:type",Object)],ni.prototype,"overflowMenuData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ni.prototype,"hideHeaderText",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ni.prototype,"useColorPalette",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.K("design:type",Boolean)],ni.prototype,"collapsible",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ni.prototype,"collapsed",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ni.prototype,"hidden",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.K("design:type",Boolean)],ni.prototype,"hasPlaylistButtons",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.K("design:type",Boolean)],ni.prototype,"hasSeparateSaveButton",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.K("design:type",Boolean)],ni.prototype,"hasToolbar",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.K("design:type",String)],ni.prototype,"playlistType",void 0);_.Y([_.a(),_.K("design:type",Object)],ni.prototype,"isHovered",void 0);_.Y([_.a({selectorArgs:["playlistLoopStateEntityKey"],selector:_.LF.playlistLoopStateEntitySelector}),_.K("design:type",Object)],ni.prototype,"playlistLoopStateEntity",void 0);_.Y([_.a({computed:"computeCanReorder(data)"}),_.K("design:type",Boolean)],ni.prototype,"canReorder",void 0);
_.Y([_.a(),_.K("design:type",Object)],ni.prototype,"expandLabel",void 0);_.Y([_.a(),_.K("design:type",Object)],ni.prototype,"collapseLabel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ni.prototype,"isFloating",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ni.prototype,"metaPanel",void 0);_.Y([_.a({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.K("design:type",String)],ni.prototype,"trailingIcon",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ni.prototype,"isDarkTheme",void 0);_.Y([_.a({selector:_.jb}),_.K("design:type",Boolean)],ni.prototype,"miniplayerIsActive",void 0);_.Y([_.a({selector:function(g){return g.watch.playerState}}),
_.K("design:type",Number)],ni.prototype,"playerState",void 0);_.Y([_.a({selector:_.pe}),_.K("design:type",Boolean)],ni.prototype,"isFullscreen",void 0);_.Y([_.a({selector:_.Dc}),_.K("design:type",Boolean)],ni.prototype,"isTheaterMode",void 0);_.Y([_.a(),_.K("design:type",Object)],ni.prototype,"activeNowPlayingRenderer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ni.prototype,"moveThreeDotMenuToTopRow",null);
_.Y([_.C("data","autoplayData","playlistLoopStateEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],ni.prototype,"nextVideoTitle",null);_.Y([_.C("data","nextVideoTitle"),_.K("design:type",String),_.K("design:paramtypes",[])],ni.prototype,"nextVideoLabel",null);_.Y([_.C("collapsed"),_.K("design:type",String),_.K("design:paramtypes",[])],ni.prototype,"buttonAriaLabel",null);
_.Y([_.C("data","playlistId","longBylineText"),_.K("design:type",Object),_.K("design:paramtypes",[])],ni.prototype,"mixLongByLine",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ni.prototype,"playlistLoopStateEntityKey",null);_.Y([_.n6("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"onMouseEnter",null);
_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"onMouseLeave",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data","collapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ni.prototype,"showNextVideoHeader",null);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"onRenderStamperFinished",null);
_.Y([_.k_("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"collapseChanged",null);_.Y([_.k_("hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"hiddenChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"dataChanged",null);
_.Y([_.C("isTheaterMode","isFullscreen"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ni.prototype,"isFullBleedPlayer",null);_.Y([_.k_("isTheaterMode","isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"onFullBleedPlayerChanged",null);_.Y([_.k_("isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"onFullscreenChanged",null);
_.Y([_.k_("playerState","miniplayerIsActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"updateNowPlayingOverlay",null);_.Y([_.n6("yt-playlist-lockup-now-playing-active"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],ni.prototype,"onPlaylistLockupNowPlaying",null);
_.Y([_.k_("data","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ni.prototype,"colorPaletteChanged",null);_.Y([_.fE({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],ni);
_.Qup=_.Te()(ni,"ytd-playlist-panel-renderer",function(){if(STC===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);STC=g}g=STC;return g},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.Lst={};
_.Lst.YtConditionalRendererBehavior=[_.n.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(g,u){var q=this,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:if(!u)return q.hidden=!0,q.showSpinner=!1,E.return();if((Q=g)==null?0:(L=Q.visibilityCondition)==null?0:L.mode)switch(g.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return E.jumpTo(5);default:return E.jumpTo(6)}q.showSpinner=
!1;q.hidden=!0;return E.yield(q.shouldShow_(g),4);case 4:q.hidden=!E.yieldResult;E.jumpTo(0);break;case 5:return E.yield(q.shouldShow_(g),8);case 8:q.showSpinner=E.yieldResult;q.hidden=!1;E.jumpTo(0);break;case 6:return q.showSpinner=!1,E.yield(q.shouldShow_(g),9);case 9:q.hidden=!E.yieldResult,_.Wx(E)}})},
shouldShow_:function(g){return g&&g.supportedDatas&&g.supportedDatas.rendererVisibilityConditionData&&g.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(g.supportedDatas.rendererVisibilityConditionData.showIf):g&&g.visibilityCondition&&g.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(g.visibilityCondition.showIf):g&&g.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(g.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(g){switch(g){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(g){switch(g){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var g=_.YJ(this.hostElement,"yt-get-mdx-status");return g.length==1&&g[0].connected},
isLocationPermissionGranted_:function(){var g;return _.D(function(u){return u.nextAddress==1?navigator.permissions?u.yield(navigator.permissions.query({name:"geolocation"}),3):u.jumpTo(2):u.nextAddress!=2?(g=u.yieldResult,u.return(Promise.resolve(g.state==="granted"))):u.return(Promise.resolve(!1))})}}];var EAH=c0M("yt-icon",{callbackProps:["onKeydown"]}),P8Z=_.w("kevlar_use_wil_icons")?_.r(function(g){var u=g.icon;var q=g.active;var Q=g.className;var L=g.style;var E=g.title;var y=g.size;var v=g.dataSelected;var J=g.dataDisabled;var f=g.role;var t=g.themeOverride;var e=g.animateIcon;var G=g.ariaHidden;var R=g.ariaExpanded;var H=g.ariaLabel;var l=g.tabindex;var d=g.id;var F=g.iconFilter;var V=g.gradientColor;var z=g.onKeydown;var O=function(){var k=u==null?void 0:u(),LZ=null,sb=void 0;k&&(k=mX2(k),
k=kjF(k),k.length&&(LZ=k[1],sb=k[0]));return{iconName:LZ,iconSetName:sb}},W=function(){return a$x(O().iconName,q==null?void 0:q(),void 0,y==null?void 0:y(),O().iconSetName,_.Bk().resolve(_.B$))},x=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:F==null?void 0:F(),iconColor:V==null?void 0:V()}};
return _.p(_.M,{cond:e,then:function(){return _.p(EAH,{icon:u,active:q,className:Q,style:L,title:E,dataSelected:v,dataDisabled:J,role:f,themeOverride:t,ariaHidden:G,ariaExpanded:R,ariaLabel:H,tabindex:l,id:d,iconFilter:F,gradientColor:V,onKeydown:z})},
else:function(){return _.p(_.M,{cond:W,then:function(k){return _.p("span",{class:_.Ty("ytIconWrapperHost",Q),role:f,"aria-label":H,"aria-hidden":G,tabindex:function(){return isNaN(Number(l==null?void 0:l()))?void 0:Number(l==null?void 0:l())},
id:d,style:L,title:E,"on:keydown":_.YH(function(LZ){return void(z==null?void 0:z(LZ))})},_.p(_.Q0,{data:k,
options:x}))}})}})},"vg"):EAH;var NtK=function(g){var u=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];YEq();_.xQ("ytglobal.ytUtilActivityCallback_",function(){_.Og(g,"yt-user-activity")});
new Bv(function(){return u.JSC$17585_onMouseMove});
document.addEventListener("scroll",function(){return u.onScroll});
window.addEventListener("resize",function(){return u.onResize})},suH=function(g,u,q){u in g.eventJobIds||(q=_.pT().addLowPriorityJob(function(){_.zX();
delete g.eventJobIds[u]},q),g.eventJobIds[u]=q)};
NtK.prototype.onScroll=function(g){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):g.target===document&&suH(this,"scroll",200)};
NtK.prototype.onResize=function(){suH(this,"resize",200)};
NtK.prototype.JSC$17585_onMouseMove=function(){suH(this,"mousemove",100)};
_.Fq=function(g){g.scrollEventsToIgnore+=1;g.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){g.scrollEventsToIgnore--},500))};var yBp=function(g){this.element=g;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
yBp.prototype.showFeedbackDialog=function(g,u,q,Q){var L=vAp();if(!L)return!1;var E=rUh();E.productId=L;u&&(E.flow="submit",E.report={description:u});q&&(vAp()==="59"?E.callback=_.V1(function(){_.H6("userFeedbackEvent",{});q()}):E.callback=_.V1(q));
E.bucket=Q||_.FR("GOOGLE_FEEDBACK_BUCKET","Other");DaC(E);g=pxE(this,"GFEEDBACK",g);try{_.d6a(E,g)}catch(y){return _.a4(y),!1}return!0};
yBp.prototype.showHelpDialog=function(g,u,q){var Q=this,L=vAp();if(!L)return!1;var E={helpCenterPath:"/youtube",productData:pxE(this,"GUIDED_HELP",q)};DaC(E);var y=rUh();y.context=g||E.productData.context||"default";y.defaultHelpArticleId=u;y.enableSendFeedback=!0;(_.ri("gapi.load")||function(v,J){return J()})("client",function(){try{var v=GXX(L,E);
if(_.w("web_always_load_chat_support")&&!Q.chatSupportLoaded)try{v.JSC$10282_loadChatSupport(y),Q.chatSupportLoaded=!0}catch(J){}v.startHelp(y)}catch(J){_.a4(J)}})};
var vAp=function(){var g=_.FR("GOOGLE_FEEDBACK_PRODUCT_ID");g||_.a4(Error("ji"));return g},DaC=function(g){g&&(g.locale=_.w("kevlar_help_use_locale")?_.FR("INNERTUBE_CONTEXT_HL","en"):_.FR("HTML_LANG","en"))},pxE=function(g,u,q){var Q=g.productData;
delete Q.origin;Q.device=_.GM();var L;a:{if(L=document.createElement("canvas")){var E=L.getContext("experimental-webgl",{stencil:!0});if(E){var y=E.getExtension("WEBGL_debug_renderer_info");if(y){L=E.getParameter(y.UNMASKED_RENDERER_WEBGL);break a}}if(E=L.getContext("webgl")){L=E.getParameter(E.RENDERER);break a}}L=null}Q.gpu=L;Q.isSDC=!!_.FR("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(L=_.FR("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.pH.extend(Q,L);_.VDF(u,Q);_.X0Z(Q);(g=_.Og(g.element,"yt-get-autonav-pause-debug-state"))&&
g.length&&(Q.autonav_pause_state=g[0]);g=_.qi();Q.browser_resolution=g.width+"\u00d7"+g.height+"@"+(window.devicePixelRatio||1)+"x";q&&_.pH.extend(Q,q);return Q};
yBp.prototype.resetProductData=function(){this.productData={}};var JB9=function(g){this.feedbackManager=new yBp(g)};
JB9.prototype.showFeedbackDialog=function(g,u,q,Q){return this.feedbackManager.showFeedbackDialog(g,u,q,Q)};
JB9.prototype.showHelpDialog=function(g,u,q){return this.feedbackManager.showHelpDialog(g,u,q)};var juz=function(){this.baseUrl="";this.aTag=document.createElement("a")},JuZ=function(g,u,q){q=q===void 0?{}:q;
q.pbj||(q.pbj=1);q=_.Hnq(u,q);g.baseUrl&&q&&!_.Wq(q)[1]&&!_.h1(q)&&(u=g.baseUrl,yq(u,"/")&&(u=u.slice(0,-1)),_.N3(q,"/")&&(q=q.slice(1)),q=u+"/"+q);u8(g.aTag,_.nv(q||""));return g.aTag.href};
juz.prototype.fetchData=function(g){return _.Cm3(g)};
juz.prototype.postData=function(g,u){var q={method:"POST"};if(u){for(var Q=_.N(Object.keys(u)),L=Q.next();!L.done;L=Q.next()){L=L.value;var E=u[L];_.zM(E)&&(u[L]=JSON.stringify(E))}q.postParams=u}return _.Cm3(g,q)};
_.jq5=function(g,u,q,Q,L){g=JuZ(g,u,q);if(!g)throw Q=Error("ki"),Object.assign(Q,{params:u}),Q;return _.Cm3(g,L,Q)};
juz.prototype.requestDataForServiceEndpoint=function(g,u){if(_.c(g,_.aEb))return this.fetchData("/getAccountSwitcherEndpoint");u=u||{};var q=_.c(g,n3i);q?u.se=q.base64EncodedServiceEndpoint:u.sej=JSON.stringify(g);(q=_.j_())&&_.w("enable_service_ajax_csn")&&(u.csn=q);u.theme=_.RE();_.c(g,Fjq)&&_.FR("DELEGATION_CONTEXT")&&(u.delegation_context=JSON.stringify(_.FR("DELEGATION_CONTEXT")));q=null;for(var Q in g)if(yq(Q,"Endpoint")||yq(Q,"Command")){q=Q;break}if(!q){var L=Error("li");Object.assign(L,{params:g});
_.Rzb(L,"WARNING");return new _.Ez(function(y,v){v(L)})}Q={name:q};
var E;(q=(E=_.c(g,_.kJ))==null?void 0:E.signal)&&(Q.signal=q);(E=_.Yv(window.location.href))&&E.internalcountrycode&&(Q.internalcountrycode=E.internalcountrycode);E="/service_ajax";_.w("debug_forward_web_query_parameters")&&(E=_.TFq(E,window.location.search));E=_.Sg(E,Q);g.clickTrackingParams&&_.CV(E,{itct:g.clickTrackingParams});return this.postData(E,u)};_.fKE=new _.Fv("GFEEDBACK_TOKEN");var Mxz;var txp;var emz;var GFH;var k7=function(){var g=_.X.apply(this,arguments)||this;g.compact=!1;g.dismissButtonDisabled=!1;g.shouldRenderReasonAsFormattedString=!_.w("web_player_error_message_reason_as_formatted_string_killswitch");return g};
_.A(k7,_.X);k7.prototype.computeHasIcon_=function(g){return!!g};
k7.prototype.isSignInIcon_=function(g){return g=="yt-icons:prompted_sign_in"};
k7.prototype.onDismissButtonClick=function(){var g=this,u=this.data.disableOnClick,q,Q=(q=this.data.dismissButton)==null?void 0:q.buttonRenderer;u&&!this.dismissButtonDisabled&&Q&&setTimeout(function(){g.dismissButtonDisabled=!0},0)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.Lst.YtConditionalRendererBehavior),_.K("design:type",Object)],k7.prototype,"ytConditionalRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],k7.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.icon)"}),_.K("design:type",Object)],k7.prototype,"icon_",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.K("design:type",Boolean)],k7.prototype,"hasIcon_",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.K("design:type",Boolean)],k7.prototype,"signInIcon_",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],k7.prototype,"compact",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],k7.prototype,"dismissButtonDisabled",void 0);
_.Y([_.a({type:Boolean}),_.K("design:type",Object)],k7.prototype,"shouldRenderReasonAsFormattedString",void 0);_.Y([_.jP({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],k7);
_.T(k7,"yt-player-error-message-renderer",function(){if(GFH===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;emz===void 0&&(emz=document.createElement("template"));var Q=emz;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);GFH=g}g=GFH;return g},{mode:2});var $aC;var Rmp;var Sz=function(){return _.X.apply(this,arguments)||this};
_.A(Sz,_.X);Sz.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Sz.prototype.computeIcon_=function(g){return g?"yt-icons:"+g.iconType.toLowerCase():"error_outline"};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Sz.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.icon)"}),_.K("design:type",Object)],Sz.prototype,"icon_",void 0);_.Y([_.jP({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Sz);
_.T(Sz,"yt-player-kav-renderer",function(){if(Rmp===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;$aC===void 0&&($aC=document.createElement("template"));var Q=$aC;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Rmp=g}g=Rmp;return g},{mode:2});var hjZ=_.CT(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.dL(_.r(function(g){var u=_.Hk("div"),q=_.N(_.jR(0,void 0,"jxh75d")),Q=q.next().value,L=q.next().value;q=_.N(_.jR(null,void 0,"F5Zm8"));var E=q.next().value,y=q.next().value;_.I4(function(){YsF(u.value,L,y);u.value.scrollIntoView()});
q=O5Z.bind(null,g.data,Q);_.Oz("resize",function(){var v=E();if(Q()===1&&v!==null){var J;(J=window.grecaptcha)==null||J.reset(v)}});
return _.p("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.p("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.p("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var v,J;return(v=g.data().accessibility)==null?void 0:(J=v.accessibilityData)==null?void 0:J.label}),_.p(_.c2,{text:q,
className:_.Ty("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.p("div",{el:u,class:"ytwPlayerCaptchaViewModelGridItem"})))},"wg"),"yt-player-captcha-view-model",{props:{data:_.iF}});var Kqq=!1;_.wxn=_.r(function(g){var u=g.data;return _.p("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.p(_.M,{cond:function(){return u().icon},
then:function(q){return _.p("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.p(_.IT,{data:q,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.p(_.M,{cond:function(){return u().title},
then:function(q){return _.p("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.p(_.c2,{text:q}))}}),_.p(_.M,{cond:function(){return u().description},
then:function(q){return _.p("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.p(_.c2,{text:q}))}}),_.p(_.Up,{data:function(){return u().primaryButton}},{buttonViewModel:function(q){return _.p(_.TT,{data:q.data,
className:"interstitialViewModelFlexItem"})}}),_.p(_.Up,{data:function(){return u().secondaryButton}},{buttonViewModel:function(q){return _.p(_.TT,{data:q.data,
className:"interstitialViewModelFlexItem"})}}))},"xg");
_.wxn.idomCompat=!0;var cBE=_.r(function(g){var u=g.data;_.w_();return _.p("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.p("div",{class:"playerInterstitialRendererScrim"},_.p(_.Up,{data:function(){return u().content}},{interstitialViewModel:_.wxn})))},"yg");
cBE.idomCompat=!0;_.dL(cBE,"yt-player-interstitial-renderer",{props:{data:_.H2}});var oN=function(){var g=_.X.apply(this,arguments)||this;g.noBackground=!1;g.compact=!1;g.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return g};
_.A(oN,_.X);oN.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"}}}};
oN.prototype.onUpdatePlayerErrorMessageCommand_=function(g){if(_.c(g,E3o)){var u;if(g=(u=_.c(g,E3o))==null?void 0:u.newPlayerErrorMessageRenderer)this.data=g}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],oN.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],oN.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],oN.prototype,"status",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],oN.prototype,"noBackground",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],oN.prototype,"compact",void 0);_.Y([_.jP({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],oN);
var Hax=_.Te()(oN,"yt-playability-error-supported-renderers",function(){if(txp===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Mxz===void 0&&(Mxz=document.createElement("template"));var Q=Mxz;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);txp=g}g=txp;return g},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var ABh=c0M("ytd-button-renderer");var x9q=void 0,zjk=void 0;var SsS=new LkR;var Yb=new _.Fv("ENTITY_STATE_TOKEN"),Un=new _.Fv("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var ZaC=function(g){this.store=g;this.vO8=new _.NN0},XSW=function(g,u,q){var Q,L;
if(!(L=((Q=u.playabilityStatus)==null?void 0:Q.status)!=="OK")){g=g.store;var E;L=u.offlineState&&((E=u.videoDetails)==null?0:E.videoId)?_.w("enable_pl_r_c_cd")?dJK(g.getState().entities,u.videoDetails.videoId):!!Ppk(g.getState().entities,u.videoDetails.videoId):!1}if(L)return!0;L=ubT(u);if(L===1){if(_.w("ab_v_vid_sig")){var y,v=(y=u.videoDetails)==null?void 0:y.videoId;if(!v||!q||v!==q){var J;u=new _.Ji("282054944_vid",{enA:q,e1y:(J=u.videoDetails)==null?void 0:J.videoId});_.Zf(u)}}return!0}GV3=
0;var f,t;J=(v=u.auxiliaryUi)==null?void 0:(f=v.messageRenderers)==null?void 0:(t=f.bkaEnforcementMessageViewModel)==null?void 0:t.displayType;if(L!==3&&(J==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||J==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;J={reason:_.ap(_.Ug("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.w("ks_something_wrong_learn_more")?Npq("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.ap(_.Ug("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:_.ap("282054944")};lKC(u,{playerErrorMessageRenderer:J});return!1},rT$=function(g,u){if(VmZ(u)){_.zN(1,!0);
var q=(q=VmZ(u))&&_.BMS()?q:void 0;q?(lKC(u,{enforcementMessageViewModel:q}),g.vO8.increment("IN_PLAYER"),_.zN(5)):(g.vO8.increment("SKIP_DISPLAY"),_.zN(2))}},lKC=function(g,u){g.playabilityStatus=Object.assign({},g.playabilityStatus,{status:"ERROR",
errorScreen:u});g.videoDetails=void 0};
ZaC.prototype.handleResponse=function(g,u){if(g.playabilityStatus){var q,Q,L,E=(u==null?void 0:(q=u.innerTubeRequest)==null?void 0:q.videoId)||(u==null?void 0:(Q=u.innerTubeRequest)==null?void 0:(L=Q.playerRequest)==null?void 0:L.videoId);XSW(this,g,E)&&rT$(this,g)}};
ZaC[zv]=[Yb];var aka=new _.Fv("ADBLOCK_DETECTION_SERVICE_TOKEN");var bb=function(g){this.rZY=g};
bb.prototype.bindInnertubeChallengeFetcher=function(g){this.rZY.bicf(g)};
bb.prototype.registerChallengeFetchedCallback=function(g){this.rZY.bcr(g)};
bb.prototype.getLatestChallengeResponse=function(){return this.rZY.blc()};var IKL;IKL=_.CT(["https://static.doubleclick.net/instream/ad_status.js"]);_.iaC=_.A1(IKL);var Fst;_.gA=function(g,u,q){var Q=this;this.network=g;this.options=u;this.networkStatusManager=q;this.aU=null;if(u.useBotguardEverywhere){var L=new _.KU;this.aU=L.promise;_.Qq.ytAtRC&&_.Ln(_.Hv,function(){var E,y;return _.D(function(v){if(v.nextAddress==1){if(!_.Qq.ytAtRC)return v.return();E=C8h(null);return v.yield(Q.wzn(E),2)}y=v.yieldResult;_.Qq.ytAtRC&&_.Qq.ytAtRC(JSON.stringify(y));_.Wx(v)})});
NsM().then(function(E){var y,v,J,f;return _.D(function(t){if(t.nextAddress==1)return E.bindInnertubeChallengeFetcher(function(e){return Q.wzn(C8h(e))}),t.yield(cMk(),2);
y=t.yieldResult;v=E.getLatestChallengeResponse();J=v.challenge;if(!J)throw Error("ni");f={challenge:J,nq:ib(J),vm:y,bgChallenge:new lb};L.resolve(f);E.registerChallengeFetchedCallback(function(e){e=e.challenge;if(!e)throw Error("oi");e={challenge:e,nq:ib(e),vm:y,bgChallenge:new lb};Q.aU=Promise.resolve(e)});
_.Wx(t)})})}else u.preload&&baz(this,new Promise(function(E){_.M_(_.Hv,function(){E(da9(Q))},0)}))};
Fst=function(g){var u={preload:!0,useBotguardEverywhere:!0},q=!1;if(typeof u==="boolean")var Q={preload:u};else typeof u==="undefined"?Q={preload:!0}:(Q=u,q=!!u.mHP);u=q?void 0:new _.rN;_.gA.instance=new _.gA(g,Q,u);return _.gA.instance};
_.gA.prototype.wCN=function(){var g=this;return _.D(function(u){return u.nextAddress==1?u.yield(Promise.race([g.aU,null]),2):u.return(!!u.yieldResult)})};
_.gA.prototype.cBB=function(g,u,q){var Q=this,L,E,y;return _.D(function(v){Q.aU===null&&baz(Q,da9(Q));L=!1;E={};y=function(){var J,f,t,e,G;return _.D(function(R){switch(R.nextAddress){case 1:if(!Q.options.y2Y||!Q.options.useBotguardEverywhere){R.jumpTo(2);break}return R.yield(PVb(),3);case 3:return J=R.yieldResult,R.yield((f=J)==null?void 0:f.checkForRefresh(),2);case 2:return R.yield(Q.aU,5);case 5:t=R.yieldResult;E.challenge=t.challenge;if(!t.vm){"c1a"in t.nq&&(E.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
R.jumpTo(6);break}e=Object.assign({},{c:t.challenge,e:g},u);_.b8(R,7);L=!0;return R.yield(t.vm.snapshot({rI:e}),9);case 9:(G=R.yieldResult)?E.webResponse=G:E.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Xx(R,6);break;case 7:_.rt(R),E.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(g==="ENGAGEMENT_TYPE_PLAYBACK"){var H=t.nq,l={};if(H.c6a){var d=Number(_.FR("DCLKSTAT",0));l.reportingStatus=String(Number(H.c)^(isNaN(d)?0:d))}H.c6b&&(l.broadSpectrumDetectionResult=String(Number(H.c)^Number(_.FR("CATSTAT",
0))));E.adblockReporting=l}return R.return(E)}})};
return v.return(Promise.race([y(),maf(q,function(){var J=Object.assign({},E);L&&(J.error="ATTESTATION_ERROR_VM_TIMEOUT");return J})]))})};
var C8h=function(g){var u={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};g&&(u.interpreterHash=g);return u},da9=function(g,u){u=u===void 0?0:u;
var q,Q,L,E,y,v,J,f,t,e,G,R;return _.D(function(H){switch(H.nextAddress){case 1:q=C8h(PSi().epR);if(_.w("att_fet_ks"))return _.b8(H,7),H.yield(g.wzn(q),9);_.b8(H,4);return H.yield(aKf(g,q),6);case 6:y=H.yieldResult;L=y.wJt;E=y.gzn;Q=y;_.Xx(H,3);break;case 4:return _.rt(H),_.Io(Error("pi`"+u)),Vxh(g,864E5),H.return({challenge:"",nq:{},vm:void 0,bgChallenge:void 0});case 9:Q=H.yieldResult;if(!Q)throw Error("qi");if(!Q.challenge)throw Error("ri");L=Q.challenge;E=ib(L);if("c1a"in E&&(!Q.bgChallenge||
!Q.bgChallenge.program))throw Error("si");_.Xx(H,3);break;case 7:v=_.rt(H);_.Io(v);u++;if(u>=5)return _.Io(Error("pi`"+u)),Vxh(g,864E5),H.return({challenge:"",nq:{},vm:void 0,bgChallenge:void 0});J=1E3*Math.pow(2,u-1)+Math.random()*1E3;return H.return(new Promise(function(l){_.M_(_.Hv,function(){l(da9(g,u))},J)}));
case 3:f=EPm(E);Vxh(g,f*1E3);t=void 0;if(!("c1a"in E&&Q.bgChallenge)){H.jumpTo(10);break}e=Ltb(Q.bgChallenge);_.b8(H,11);return H.yield(s0a(PSi(),e),13);case 13:_.Xx(H,12);break;case 11:return G=_.rt(H),_.Io(G),H.return({challenge:L,nq:E,vm:t,bgChallenge:e});case 12:return _.b8(H,14),t=new _.cl({challenge:e,cYB:{yr:"aGIf"}}),H.yield(t.exH,16);case 16:_.Xx(H,10);break;case 14:R=_.rt(H),_.Io(R),t=void 0;case 10:return H.return({challenge:L,nq:E,vm:t,bgChallenge:e})}})},Xx9=function(g,u){var q;
return _.D(function(Q){if(Q.nextAddress==1)return C3(2),_.b8(Q,2),Q.yield(g.network.wzn(u),4);if(Q.nextAddress!=2)return(q=Q.yieldResult)?q.challenge&&!q.bgChallenge?C3(1):C3(4):C3(3),Q.return(q);_.rt(Q);C3(3);return Q.return(void 0)})};
_.gA.prototype.wzn=function(g){var u=this,q;return _.D(function(Q){q=u.networkStatusManager;if(!q||q.isNetworkAvailable())return Q.return(Xx9(u,g));_.tt("att_pna",void 0,"attestation_challenge_fetch");return Q.return(new Promise(function(L){q.listenOnce("publicytnetworkstatus-online",function(){Xx9(u,g).then(L)})}))})};
var rBC=function(g){if(!g)throw Error("qi");if(!g.challenge)throw Error("ri");var u=g.challenge,q=ib(u);if("c1a"in q&&(!g.bgChallenge||!g.bgChallenge.program))throw Error("si");return Object.assign({},g,{wJt:u,gzn:q})},aKf=function(g,u){var q,Q,L,E,y;
return _.D(function(v){switch(v.nextAddress){case 1:q=void 0,Q=0,L={};case 2:if(!(Q<5)){v.jumpTo(4);break}if(!(Q>0)){v.jumpTo(5);break}L.mOR=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return v.yield(new Promise(function(J){return function(f){_.M_(_.Hv,function(){f(void 0)},J.mOR)}}(L)),5);
case 5:return _.b8(v,7),v.yield(g.wzn(u),9);case 9:return E=v.yieldResult,v.return(rBC(E));case 7:q=y=_.rt(v),y instanceof Error&&_.Io(y);case 8:Q++;L={mOR:void 0};v.jumpTo(2);break;case 4:throw q;}})},baz=function(g,u){g.aU=u},Wsz=function(g){var u,q,Q;
return _.D(function(L){if(L.nextAddress==1)return L.yield(Promise.race([g.aU,null]),2);u=L.yieldResult;var E=da9(g);g.aU=E;(q=u)==null||(Q=q.vm)==null||Q.dispose();_.Wx(L)})},Vxh=function(g,u){var q=Date.now()+u,Q=function(){var L;
return _.D(function(E){L=q-Date.now();return L<1E3?E.yield(Wsz(g),0):(_.M_(_.Hv,Q,Math.min(L,6E4)),E.jumpTo(0))})};
Q()},maf=function(g,u){return new Promise(function(q){_.M_(_.Hv,function(){q(u())},g)})};var Tth=function(){};
Tth.prototype.processContext=function(g){var u=_.gA.instance;if(!u)return _.In();var q=JNh(g);return q?new lk(u.cBB(q,vPq(g),500).then(function(Q){var L;(g==null?0:(L=g.innerTubeRequest)==null?0:L.context)||(g.innerTubeRequest.context={});L=g.innerTubeRequest.context;L.request||(L.request={});L.request.attestationResponseData=Q})):_.In()};var hmz=function(g){this.innertubeTransportService=g};
hmz.prototype.wzn=function(g){_.tt("att_fsr",void 0,"attestation_challenge_fetch");return _.wE(this.innertubeTransportService,g,_.dr(_.fG8)).then(function(u){_.tt("att_frr",void 0,"attestation_challenge_fetch");return u})};_.YPK=function(g){this.innertubeTransportService=g};var Oa9=new _.Fv("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Ksh=function(){},BtE=function(g,u,q,Q,L){var E=_.FR("YPC_MB_URL");
_.ULu(E).then(function(){xah(E,g,u,q,Q,L)})},xah=function(g,u,q,Q,L,E){try{var y=_.Xa.payments.business.integration,v=_.Xa.payments.business.integration.Style.create().withMaterialDesignStyle(),J=y.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.w("enable_window_constrained_buy_flow_dialog")&&(J=J.usingPopupStyle("windowConstrained"));E&&(J=J.usingCloseCallback(E));var f=q?q:_.FR("YPC_GB_LANGUAGE"),t=_.FR("SESSION_INDEX");y.bootstrap.fromPaymentsUrl(g);y.bootstrap.asMashupMode(J).usingGaiaIndex(t).usingLocale(f).usingStyle(v).usingDefaultActivityStatusChangeHandler().inStandaloneContext(y.standaloneContextAuthId.forGaia()).purchaseManager(u,function(e){Q&&Q(e)}).load(void 0,L)}catch(e){throw L&&L(e),_.Zf(e),e;
}};var zmC=new _.Fv("PURCHASE_MANAGER_TOKEN");var nAx=function(){var g=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return g.videos},
getContinuationsPresent:function(){return g.continuationsPresent},
setVideos:function(u){g.videos=u},
getRecommendedVideos:function(){return g.recommendedVideos},
setRecommendedVideos:function(u){g.recommendedVideos=u}}};
nAx.prototype.addVideos=function(g){g&&(this.videos=g.filter(function(u){return!!_.fAZ(u)}).map(function(u){var q=_.fAZ(u);
a:{var Q;if(u.playlistVideoRenderer&&((Q=u.playlistVideoRenderer)==null?0:Q.voteSortTiebreaker))var L=u.playlistVideoRenderer.voteSortTiebreaker;else{if(_.c(u,Fa)){var E;if(Q=(L=_.c(u,Fa))==null?void 0:(E=L.playlistItemData)==null?void 0:E.voteSortTiebreaker){L=Q;break a}}L=""}}return{itemId:q,videoId:_.e7M(u),voteCount:_.G1J(u),voteSortTiebreaker:L}}),this.continuationsPresent=!!_.c(g[g.length-1],_.V5))};
var kFZ=function(g,u){return g.videos.findIndex(function(q){return q.itemId===u})},SPK=function(g,u){return g.recommendedVideos.findIndex(function(q){return q.itemId===u})},oA9=function(g){g={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:g}}}}};_.Bk().resolve(_.Gy).resolveCommand(g)};var Uat=function(){nAx.apply(this,arguments)};
_.A(Uat,nAx);
var e$Z=function(g,u,q,Q){if(!g.parentElem)throw Error("xi");var L=kFZ(g,u);L===-1&&(L=SPK(g,u),L=L!==-1?L+g.videos.length:-1);if(L===-1)throw Error("yi");var E=L>=g.videos.length?g.recommendedVideos[L-g.videos.length]:g.videos[L];E.voteCount=q;E.voteSortTiebreaker=Date.now().toString();L>=g.videos.length?g.recommendedVideos.splice(L-g.videos.length,1):g.videos.splice(L,1);var y=g.videos;for(var v=0,J=y.length-1;v<=J;){var f=Math.floor((v+J)/2);if(y[f].voteCount<E.voteCount)J=f-1;else if(y[f].voteCount>E.voteCount)v=
f+1;else{a:{var t=E.voteSortTiebreaker;var e=y[f].voteSortTiebreaker;if(t.length!==e.length)t=t.length>e.length;else{for(var G=0;G<t.length;G++){var R=t.charCodeAt(G),H=e.charCodeAt(G);if(R>H){t=!0;break a}if(R<H)break}t=!1}}t?J=f-1:v=f+1}}y=v;if(y===-1)throw Error("zi");g.videos.splice(y,0,E);L!==y&&gBC(g,L,y,u,q,Q)},gBC=function(g,u,q,Q,L,E){var y,v=(y=g.parentElem)==null?void 0:y.children,J=Math.min(u,q),f=Math.max(u,q);
if(v)for(y=J;y<=f;y++)v[y].style.viewTransitionName="item-"+String(y);document.startViewTransition(function(){if(g.parentElem){var t=g.parentElem.children;if(!(!t||u<0||u>=t.length||q<0||q>=t.length)){var e=t[u];if(e){e.remove();g.showRefreshPill=q>=g.videos.length-1&&g.continuationsPresent;if(!g.showRefreshPill){t=t[q]||null;var G;(G=g.parentElem)==null||G.insertBefore(e,t)}_.hJ(g.parentElem,"yt-update-video-data-voting-animation",{toIdx:q,itemId:Q,newVoteCount:L,voteStatus:E,hideItem:g.showRefreshPill})}}}}).finished.then(function(){if(v)for(var t=
J;t<=f;t++)v[t].style.viewTransitionName="";
if(g.showRefreshPill)oA9(_.Ug("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var e;if(e=t=(e=g.parentElem)==null?void 0:e.children[q])e=t.getBoundingClientRect(),t=e.bottom,e=!(e.top>=0&&t<=g.clientHeight);e&&(e=_.gF(u>q?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(u-q)),oA9(e))}})};var QWK=function(g,u){var q=this;g?this.innertubeTransportServicePromise=Promise.resolve(g):u&&(this.innertubeTransportServicePromise=u(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new XH(3E3,function(Q){return u4h(q,Q)},0);
this.validateMiniAppVideoIdRateLimiter=new XH(3E3,function(Q){return q7h(q,Q)},1)},FGx=function(g,u){g.JSC$17701_miniAppId=u;
g.reportMiniAppValueRateLimiter=new XH(3E3,function(q){return u4h(g,q)},0);
g.validateMiniAppVideoIdRateLimiter=new XH(3E3,function(q){return q7h(g,q)},1)},aOb=function(g,u){var q;
return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.reportMiniAppValueRateLimiter.call(u),2);q=Q.yieldResult;return Q.return([q,u])})},u4h=function(g,u){var q,Q,L,E,y,v,J;
return _.D(function(f){switch(f.nextAddress){case 1:return f.yield(g.innertubeTransportServicePromise,2);case 2:return q=f.yieldResult,Q=_.dr(R_n),L=Date.now(),E={externalPostId:g.JSC$17701_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(L/1E3),nanos:Math.round(L%1E3*1E6)},intValue:""+u}},_.b8(f,3),f.yield(_.wE(q,E,Q),5);case 5:y=f.yieldResult;_.Xx(f,4);break;case 3:throw v=_.rt(f),v;case 4:if(y){if("error"in y&&y.error)throw y.error;if(y.errorMetadata)throw Error("Ai`"+
y.errorMetadata.status);if(J=y.userStatResult)return f.return(J);throw Error("Bi");}throw Error("Ci");}})},XTL=function(g){var u,q,Q,L,E;
_.D(function(y){switch(y.nextAddress){case 1:return y.yield(g.innertubeTransportServicePromise,2);case 2:return u=y.yieldResult,q=_.dr(R_n),Q={externalPostId:g.JSC$17701_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.b8(y,3),y.yield(_.wE(u,Q,q),5);case 5:L=y.yieldResult;_.Xx(y,4);break;case 3:throw E=_.rt(y),E;case 4:if(L==null)throw Error("Ci");if("error"in L&&L.error)throw L.error;if(L.errorMetadata)throw Error("Ai`"+L.errorMetadata.status);_.Wx(y)}})};
QWK.prototype.flush=function(){var g=this;return _.D(function(u){return u.nextAddress==1?u.yield(g.reportMiniAppValueRateLimiter.flush(),2):u.yield(g.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var VOC=function(g,u){return _.D(function(q){return q.nextAddress==1?q.yield(g.validateMiniAppVideoIdRateLimiter.call(u),2):q.return(q.yieldResult)})},q7h=function(g,u){var q,Q,L,E,y,v;
return _.D(function(J){switch(J.nextAddress){case 1:return J.yield(g.innertubeTransportServicePromise,2);case 2:return q=J.yieldResult,Q=_.dr(JA0),L={videoId:u},_.b8(J,3),J.yield(_.wE(q,L,Q),5);case 5:E=J.yieldResult;_.Xx(J,4);break;case 3:throw y=_.rt(J),y;case 4:if(E){if("error"in E&&E.error)throw E.error;if(E.errorMetadata)throw Error("Ai`"+E.errorMetadata.status);if(v=E.playabilityStatus)return J.return(v.status);throw Error("Di");}throw Error("Ci");}})};
QWK[zv]=[_.xv(_.QY),_.xv(ndn)];var Lef=function(){this.clientData=new Map};
Lef.prototype.getData=function(g){return this.clientData.get(g)};var EBH=function(g){this.store=g};
EBH.prototype.handleResponse=function(g){(g=_.c(g.frameworkUpdates,Zc))&&_.op(g,this.store)};
EBH[zv]=[_.Ja];var P7Z=new _.Fv("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Nj9,sWh,y1t;_.uW=new _.Fv("FLOW_STATE_MANAGER_TOKEN");Nj9=function(){this.flowStates=new Map};
sWh=function(g,u){g=_.N(g.flowStates.values());for(var q=g.next();!q.done;q=g.next())if(q=q.value,q.flowRenderer.targetId===u)return q};
y1t=function(g,u){var q,Q=((q=g.flowRenderer.steps)!=null?q:[]).filter(function(L){return!u.includes(_.c(L,_.Ew).stepId)});
g.flowRenderer.steps=Q};var vBL=function(g){this.JSC$17725_flowStateManager=g};
_.A(vBL,Hw);vBL.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v;return _.D(function(J){q=_.c(g,$sR);L=(Q=q)==null?void 0:Q.stepIds;y=(E=q)==null?void 0:E.targetId;if(!L||!y)return J.return();v=sWh(u.JSC$17725_flowStateManager,y);if(!v)return J.return();y1t(v,L);_.Wx(J)})};
var qr=function(){vBL.apply(this,arguments)};
_.A(qr,vBL);qr[zv]=[_.uW];var DSE=function(g,u){this.JSC$17731_reduxStore=g;this.JSC$17731_flowStateManager=u};
_.A(DSE,Hw);
DSE.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e,G,R,H;return _.D(function(l){q=_.c(g,_.R0x);Q=q.stepId;L=q.targetId;E=sWh(u.JSC$17731_flowStateManager,L);v=(y=E)==null?void 0:y.flowRenderer;J=v.flowStateEntityKey;f=_.mZ(u.JSC$17731_reduxStore.getState(),J);if(!f)return l.return();t=f.currentStepId;R=(G=(e=f)==null?void 0:e.stepIdStack)!=null?G:[];H=t===R[R.length-1]?Q:t;u.JSC$17731_reduxStore.dispatch(_.JZ("flowStateEntity",J,{currentStepId:Q,stepIdStack:[H]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Wx(l)})};
var Ql=function(){DSE.apply(this,arguments)};
_.A(Ql,DSE);Ql[zv]=[_.Ja,_.uW];var pq9=function(g,u,q){this.JSC$17738_reduxStore=g;this.JSC$17738_flowStateManager=u;this.JSC$17738_commandHandler=q};
_.A(pq9,Hw);
pq9.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G,R,H,l;return _.D(function(d){Q=_.c(g,_.wIH);L=Q.targetId;E=sWh(q.JSC$17738_flowStateManager,L);v=(y=E)==null?void 0:y.flowRenderer;J=v.flowStateEntityKey;f=_.mZ(q.JSC$17738_reduxStore.getState(),J);G=[].concat(_.na((e=(t=f)==null?void 0:t.stepIdStack)!=null?e:[]));R=G.pop();((H=f)==null?void 0:H.currentStepId)===R&&(R=G[G.length-1]);if(!R)return(l=Q.onFirstStepCommand)&&q.JSC$17738_commandHandler.resolveCommand(l,u),d.return();
q.JSC$17738_reduxStore.dispatch(_.JZ("flowStateEntity",J,{currentStepId:R,stepIdStack:G}));_.Wx(d)})};
var Lz=function(){pq9.apply(this,arguments)};
_.A(Lz,pq9);Lz[zv]=[_.Ja,_.uW,_.Gy];var J1n=function(g,u){this.innertubeTransportService=g;this.JSC$17743_commandHandler=u};
_.A(J1n,Hw);J1n.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v;return _.D(function(J){if(J.nextAddress==1){Q=_.c(g,cO0);if(!Q)return J.return();_.b8(J,2);return J.yield(_.ce(q.innertubeTransportService,g),4)}if(J.nextAddress!=2){L=J.yieldResult;if(!L)return J.return();(E=L.updateFlowCommand)&&q.JSC$17743_commandHandler.resolveCommand(E,u);return _.Xx(J,0)}_.rt(J);(v=(y=Q)==null?void 0:y.onFailureCommand)&&q.JSC$17743_commandHandler.resolveCommand(v,u);_.Wx(J)})};
var Ee=function(){J1n.apply(this,arguments)};
_.A(Ee,J1n);Ee[zv]=[_.QY,_.Gy];var jWz=function(g,u){this.JSC$17749_flowStateManager=g;this.JSC$17749_commandHandler=u};
_.A(jWz,Hw);
jWz.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y;return _.D(function(v){Q=_.c(g,_.AOn);L=Q.targetId;E=sWh(q.JSC$17749_flowStateManager,L);if(!E)return v.return(Promise.resolve());var J=E,f=(y=Q.steps)!=null?y:[],t,e=(t=J.flowRenderer.steps)!=null?t:[];f=[].concat(_.na(e),_.na(f));J.flowRenderer.steps=f;Q.flowContinuationCommand&&(E.flowRenderer.flowContinuationCommand=Q.flowContinuationCommand);Q.entityUpdateCommand&&q.JSC$17749_commandHandler.resolveCommand(Q.entityUpdateCommand,u);
return v.return(Promise.resolve())})};
var Pi=function(){jWz.apply(this,arguments)};
_.A(Pi,jWz);Pi[zv]=[_.uW,_.Gy];var fix={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 MgK=new _.Fv("ICON_SET_TOKEN"),tgt=new _.Fv("ICON_URL_PROVIDER_TOKEN"),esp=new _.Fv("PREFETCH_ICONS_TOKEN"),GWh=new _.Fv("ICON_MAP_FN_TOKEN");var Nr={},$SH=(Nr.ACCESS_TIME="clock",Nr.ACCOUNT_BOX=_.FR("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",Nr.ACCOUNT_BOX_CAIRO="person_account_cairo",Nr.ACCOUNT_CIRCLE="person_circle",Nr.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Nr.ACCOUNT_LINKED="account_link_success",Nr.ACCOUNT_UNLINKED="account_link",Nr.ADD_FRIEND="people",Nr.ADD_MODERATOR="shield_add",Nr.ADD_TO_LIBRARY="bookmark",Nr.ADD_TO_PLAYLIST="add",Nr.ADD_TO_QUEUE_TAIL="list_queue",Nr.ADD_TO_REMOTE_QUEUE="list_music",
Nr.ADD_TO_WATCH_LATER="clock",Nr.ADD_VIDEO_LINK="film_strip_add",Nr.ALERT_WARN_RED="alert_triangle",Nr.ARROW_BACK="arrow_left",Nr.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Nr.ARROW_DROP_DOWN="chevron_down",Nr.ARROW_DROP_UP="chevron_up",Nr.ARROW_FORWARD="arrow_right",Nr.ARTIST="person_music",Nr.AUDIOTRACK="audio",Nr.AUTO_AWESOME="sparkle",Nr.AVATAR_ANONYMOUS="person_circle",Nr.AVATAR_LOGGED_OUT="person_circle",Nr.BACK="arrow_left",Nr.BAR_CHART="bar_graph",Nr.BLOCK="slash_circle_left",
Nr.BLOCK_USER="slash_circle_left",Nr.BOOKMARK_BORDER="bookmark",Nr.BREAKING_NEWS_ALT_1="article_alert",Nr.BROADCAST_CAIRO="podcast_cairo",Nr.BUG_REPORT="bug",Nr.CAMERA_ALT="camera",Nr.CAMPAIGN="megaphone",Nr.CANCEL="x_circle",Nr.CAPTIONS="closed_caption",Nr.CAST_OUTLINE="chromecast",Nr.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Nr.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Nr.CHAT="message_bubble_left",Nr.CHAT_BUBBLE="message_bubble_empty",Nr.CHAT_SPARK="spark_message_bubble_left",Nr.CHECK_BOX_OUTLINE_BLANK=
"box_empty",Nr.CHECK_CIRCLE_OUTLINE="check_circle",Nr.CHECK_CIRCLE_THICK="check_circle",Nr.CLARIFY="article_clarify",Nr.CLOSED_CAPTION_SELECTED="closed_caption",Nr.CLOSE="x_mark",Nr.CLOUD_UPLOAD="cloud_arrow_up",Nr.COLLAPSE="chevron_up",Nr.COLLAPSE_CAIRO="chevron_up_cairo",Nr.COLLECTION="layers",Nr.COLOR_LENS="palette",Nr.COMMENT="message_bubble_right",Nr.CONSENT_SHIELD="person_shield",Nr.CONTENT_CUT="scissors",Nr.CONTENT_CUT_CAIRO="scissors_cairo",Nr.COURSE=_.w("web_enable_course_icon_update")?"creator_academy":
"lightbulb",Nr.COURSE_CAIRO=_.w("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",Nr.CREATION_LIVE="radar_live",Nr.CREATION_POST="box_pencil",Nr.CREATION_UPLOAD="my_videos",Nr.CREATION_UPLOAD_RED="upload",Nr.CREATOR_METADATA_MONETIZATION="dollar_sign",Nr.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Nr.CREATOR_STUDIO="youtube_studio",Nr.DASHBOARD="grid_asymmetrical",Nr.DELETE="trash_can",Nr.DELETE_SWEEP="trash_can",Nr.DESKTOP="laptop",Nr.DISLIKE="thumb_down",Nr.DISLIKE_SELECTED=
"thumb_down",Nr.DISMISSAL="x_mark",Nr.DISMISS_QUEUE="list_remove",Nr.DONE_ALL="check_double",Nr.DOWN_ARROW="arrow_down",Nr.DO_NOT_DISTURB="slash_circle_left",Nr.DRAFT="paper_corner_folded",Nr.DRAG_HANDLE="bars_2",Nr.EDIT="pencil",Nr.EMOJI="face_very_happy",Nr.EMOJI_FLAGS="flag",Nr.EMOJI_OBJECTS="lightbulb",Nr.EMOJI_PEOPLE="face_very_happy",Nr.EMOJI_RECENT="clock",Nr.EMPTY_HEART="heart",Nr.EMPTY_LIKE="thumb_up",Nr.ERROR_BLACK="alert_circle",Nr.ERROR_OUTLINE="alert_circle",Nr.EXIT_APP="arrow_in",Nr.EXIT_TO_APP=
"arrow_in",Nr.EXPAND="chevron_down",Nr.EXPAND_ALL="chevron_expand",Nr.EXPAND_CAIRO="chevron_down_cairo",Nr.EXPAND_LESS="chevron_up",Nr.EXPAND_MORE="chevron_down",Nr.EXPLORE="compass",Nr.EXPLORE_DESTINATION="compass",Nr.EXTERNAL_LINK="open_new",Nr.FAB_UPLOAD="upload",Nr.FACE_HAPPY_OUTLINE="face_happy",Nr.FACT_CHECK="article_check",Nr.FASHION_LOGO="fashion",Nr.FASHION_LOGO_CAIRO="fashion_cairo",Nr.FAVORITE="heart",Nr.FEEDBACK="message_bubble_alert",Nr.FEEDBACK_CAIRO="message_bubble_alert_cairo",Nr.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Nr.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Nr.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Nr.FILTER="menu_filter",Nr.FIRST_PAGE="chevron_first",Nr.FLAG="flag",Nr.FULL_HEART="heart",Nr.GAME_CONSOLE_DPAD="game_console_dpad",Nr.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Nr.GAMING_LOGO="gaming",Nr.GAMING_LOGO_CAIRO="gaming_cairo",Nr.GO_TO_PAGE="arrow_right",Nr.GROUPS="people_group",Nr.HAPPY="face_happy",Nr.HEALTH_AND_SAFETY="shield_plus",Nr.HELP="question_circle",Nr.HELP_CAIRO=
"question_circle_cairo",Nr.HELP_OUTLINE="question_circle",Nr.HIDE="slash_circle_left",Nr.IMAGE="image",Nr.INFINITY_ICON="infinity",Nr.INFO="info_circle",Nr.INFO_OUTLINE="info_circle",Nr.INSERT_CHART="bar_graph_box_vertical",Nr.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Nr.INSERT_PHOTO="image",Nr.KEEP="pin",Nr.KEEP_OFF="pin_off",Nr.KEYBOARD="keyboard",Nr.KEYBOARD_ARROW_DOWN="chevron_down",Nr.KEYBOARD_ARROW_UP="chevron_up",Nr.KIDS_BLOCK="slash_circle_left",Nr.LANGUAGE="globe",Nr.LAST_PAGE="chevron_last",
Nr.LAUNCH="open_new",Nr.LEARNING="lightbulb",Nr.LEARNING_CAIRO="lightbulb_cairo",Nr.LIBRARY_ADD=cNM("library_add"),Nr.LIBRARY_OUTLINE="library",Nr.LIBRARY_REMOVE=cNM(),Nr.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Nr.LIKES_PLAYLIST="thumb_up",Nr.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Nr.LIKE="thumb_up",Nr.LIKE_SELECTED="thumb_up",Nr.LIVE="radar_live",Nr.LIVE_CAIRO="radar_live_cairo",Nr.LIVE_UNLISTED="link",Nr.LOCATION_ON="location_point",Nr.LOCATION_PIN="location_point",Nr.LOOP="arrow_repeat",Nr.LOOP_ACTIVE=
"arrow_repeat",Nr.LOOP_ONE="arrow_repeat_1",Nr.LOOP_ONE_ACTIVE="arrow_repeat_1",Nr.MEH="face_meh",Nr.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Nr.MESSAGE="message_bubble_left",Nr.MICROPHONE_ON="mic",Nr.MIX="youtube_mix",Nr.MONETIZATION_ON="dollar_sign_circle",Nr.MONEY_FILL="dollar_sign_container",Nr.MONEY_FILL_JPY="yen_sign_container",Nr.MONEY_HEART="dollar_sign_heart",Nr.MORE_HORIZ="overflow_horizontal",Nr.MORE_VERT="overflow_vertical",Nr.MUSIC="audio",Nr.MUSIC_CAIRO="audio_cairo",Nr.MUSIC_NOTE_SYMBOL=
"music",Nr.MUSIC_SHUFFLE="arrow_shuffle",Nr.MY_CHANNEL="person_circle",Nr.MY_LOCATION="location_point",Nr.NEWS_STORY="news",Nr.NEXT="chevron_right",Nr.NOTIFICATIONS="bell",Nr.NOTIFICATIONS_ACTIVE="bell_on",Nr.NOTIFICATIONS_CAIRO="bell_cairo",Nr.NOTIFICATIONS_DONE_CHECKMARK="check",Nr.NOTIFICATIONS_INBOX="bell",Nr.NOTIFICATIONS_NONE="bell",Nr.NOTIFICATIONS_OFF="bell_off",Nr.NOT_INTERESTED="slash_circle_left",Nr.OFFICIAL_ARTIST_BADGE="audio",Nr.OFFLINE_CLOUD="cloud_off",Nr.OFFLINE_DOWNLOAD="download",
Nr.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Nr.OFFLINE_PAUSE="pause",Nr.OPEN_IN_NEW="open_new",Nr.OUTLINE_ADJUST="adjust",Nr.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Nr.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Nr.OUTLINE_BAG="bag",Nr.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Nr.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Nr.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Nr.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Nr.PAID="dollar_sign",Nr.PAUSE_OUTLINED="pause",Nr.PAYMENT=
"credit_card",Nr.PERSON_RADAR_FILLED="person_radar",Nr.PHONE_DOWNLOAD="mobile_download",Nr.PLAYABLES_LOGO="tic_tac_toe",Nr.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Nr.PLAYLISTS="list_play_arrow",Nr.PLAYLISTS_CAIRO="list_play_arrow_cairo",Nr.PLAYLIST_ADD=cNM("list_add"),Nr.PLAYLIST_ADD_CHECK=cNM("list_check"),Nr.PLAYLIST_PLAY="list_play_arrow",Nr.PLAY_ALL="play_arrow",Nr.PLAY_CIRCLE="play_arrow_circle",Nr.PLAY_OUTLINED="play_arrow_circle",Nr.PRIVACY_INFO="shield",Nr.PRIVACY_PRIVATE="lock",Nr.PRIVACY_PUBLIC=
"earth",Nr.PRIVACY_UNLISTED="link",Nr.PROMOTE="megaphone",Nr.PURCHASES="price_tag",Nr.PURCHASE_SUPER_CHAT="super_chat",Nr.PURCHASE_SUPER_STICKER="super_sticker",Nr.QUESTION_ANSWER="message_bubble_question",Nr.QUEUE_PLAY_LAST="list_queue_last",Nr.QUEUE_PLAY_NEXT="list_play_arrow",Nr.REMIX_FILLED="youtube_shorts_remix",Nr.REMOVE="bar_circle",Nr.REMOVE_CIRCLE="bar_circle",Nr.REMOVE_CIRCLE_OUTLINE="bar_circle",Nr.REMOVE_DONE="check_double_off",Nr.REMOVE_FROM_HISTORY="bar_circle",Nr.REMOVE_FROM_PLAYLIST=
"bar_circle",Nr.REMOVE_MODERATOR="shield_off",Nr.REPLAY="arrow_circle",Nr.REPLAY_10="skip_back_10",Nr.REPORT_PROBLEM="alert_triangle",Nr.SAD="face_sad",Nr.SAVE_PLAYLIST="bookmark",Nr.SCHEDULE="clock",Nr.SCHOOL="creator_academy",Nr.SCREEN_FULLSCREEN="screen_full",Nr.SEARCH_HISTORY="arrow_time",Nr.SELL="price_tag",Nr.SETTINGS="gear",Nr.SETTINGS_CAIRO="gear_cairo",Nr.SETTINGS_LIGHT="gear",Nr.SETTINGS_MATERIAL="gear",Nr.SHARE_ARROW="share",Nr.SHIELD_WITH_AVATAR="person_shield",Nr.SHOPPING_BAG="bag",Nr.SHOPPING_BAG_CAIRO=
"bag_cairo",Nr.SHOPPING_CART="cart",Nr.SHORTS_COMMENT="youtube_shorts_message_bubble_right",Nr.SHORTS_DISLIKE="youtube_shorts_thumb_down",Nr.SHORTS_LIKE="youtube_shorts_thumb_up",Nr.SHORTS_SHARE="youtube_shorts_share",Nr.SHUFFLE="arrow_shuffle",Nr.SLOW_MODE_OFF="message_bubble_left",Nr.SOCIAL="people",Nr.SORT="menu_sort",Nr.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Nr.SPEED_1X="1x",Nr.SPEED_1_POINT_2X="1_point_2x",Nr.SPEED_1_POINT_5X="1_point_5x",Nr.SPEED_1_POINT_8X="1_point_8x",Nr.SPEED_2X="2x",
Nr.SPEED_POINT_2X="point_2x",Nr.SPEED_POINT_8X="point_8x",Nr.SPONSORSHIP_STAR="star_circle",Nr.STAFF_PICK="spotlight",Nr.START_DVR="add",Nr.STAR_BORDER="star",Nr.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Nr.STICKER_EMOTICON="face_happy",Nr.STOP_DVR="stop",Nr.SUBSCRIBE="youtube_logo_icon",Nr.SUBSCRIBE_PLUS="add_cairo",Nr.SUBSCRIPTION_MANAGER="gear",Nr.SUPERVISOR_ACCOUNT="people",Nr.SUPER_CHAT_FOR_GOOD="hands_heart",Nr.SWAP_HORIZ="arrow_swap_horizontal",Nr.SWITCH_ACCOUNTS="person_account",Nr.TAB_ACCOUNT=
"person",Nr.TAB_ACTIVITY="bell",Nr.TAB_BOOKMARK="bookmark",Nr.TAB_EXPLORE="compass",Nr.TAB_HOME="home",Nr.TAB_HOME_CAIRO="home_cairo",Nr.TAB_INBOX="mail",Nr.TAB_LIKED="thumb_up",Nr.TAB_MUSIC_PREMIUM="youtube_music",Nr.TAB_SHORTS="youtube_shorts",Nr.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Nr.TAB_SUBSCRIPTIONS="subscriptions",Nr.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Nr.TAB_TRENDING="fire",Nr.TIMER="stopwatch",Nr.TRAILER="youtube_originals",Nr.TRENDING="fire",Nr.TRENDING_CAIRO="fire_cairo",Nr.TRENDING_DOWN=
"rating_down",Nr.TRENDING_UP="rating_up",Nr.TROPHY="trophy",Nr.TROPHY_CELEBRATIONS="fireworks",Nr.TUNE="adjust",Nr.UNBLOCK_USER="bar_circle",Nr.UNLIMITED="youtube_logo_icon",Nr.UNPLUGGED_LIVE_GUIDE="radar_live",Nr.UNPLUGGED_SPORTS="eye_off",Nr.UPLOADS="library",Nr.UP_ARROW="arrow_up",Nr.VERTICAL_ALIGN_BOTTOM="download",Nr.VERY_HAPPY="face_very_happy",Nr.VERY_SAD="face_very_sad",Nr.VIDEOGAME_ASSET="gaming",Nr.VIDEOS="play_arrow_circle",Nr.VIDEO_CALL="video_camera_add",Nr.VIDEO_LIBRARY_WHITE="library",
Nr.VIDEO_YOUTUBE="youtube_logo_icon",Nr.VIEW_LIST="list_view",Nr.VIEW_LIST_CAIRO="list_view_cairo",Nr.VISIBILITY="eye",Nr.VISIBILITY_OFF="eye_off",Nr.VOLUME_MUTE="volume_off",Nr.VOLUME_UP="volume_on",Nr.WALLPAPER="image",Nr.WARNING="alert_triangle",Nr.WATCH_HISTORY="arrow_time",Nr.WATCH_HISTORY_CAIRO="arrow_time_cairo",Nr.WATCH_LATER="clock",Nr.WATCH_LATER_CAIRO="clock_cairo",Nr.WATCH_RELATED_MIX="youtube_mix",Nr.WHAT_TO_WATCH="home",Nr.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Nr.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",Nr.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",Nr.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Nr.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Nr.YT_OUTLINE_MUSIC_24="music",Nr);var se={},Rsx=(se.ACCESS_TIME="clock",se.ACCOUNT_BOX="person_square",se.ACCOUNT_BOX_CAIRO="person_square",se.ACCOUNT_CIRCLE="person_circle",se.ACCOUNT_CIRCLE_CAIRO="person_circle",se.ACCOUNT_LINKED="account_link",se.ACCOUNT_UNLINKED="account_link",se.ADD_CIRCLE="add_circle",se.ADD_CIRCLE_OUTLINE="add_circle",se.ADD_FRIEND="person_child",se.ADD_MODERATOR="shield_add",se.ADD_TO_LIBRARY="bookmark",se.ADD_TO_PLAYLIST="add",se.ADD_TO_QUEUE_TAIL="queue",se.ADD_TO_REMOTE_QUEUE="playlist_audio",se.ADD_TO_WATCH_LATER=
"clock",se.ADD_VIDEO_LINK="film_strip_add",se.ADMIN_PANEL_SETTINGS="person_gear",se.ALERT_WARN_RED="alert_triangle",se.ALIGN_LEFT="text_align_left",se.ARROWS_ALERT="arrow_split_alert",se.ARROW_BACK="arrow_left",se.ARROW_CIRCLE="arrow_counterclockwise",se.ARROW_CIRCLE_PLAY="replay",se.ARROW_CIRCLE_RIGHT="arrow_clockwise",se.ARROW_DIAGONAL="arrow_up_left",se.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",se.ARROW_DROP_DOWN="triangle_down",se.ARROW_DROP_UP="triangle_up",se.ARROW_FORWARD="arrow_right",se.ARROW_PAUSE=
"pause_history",se.ARROW_UNDO="undo",se.ARTICLE="text_page",se.ARTICLE_ALERT="text_page_alert",se.ARTICLE_CHECK="text_page_check",se.ARTICLE_CLARIFY="text_page_info",se.ARTIST="person_audio",se.AUDIOTRACK="audio",se.AUDIO_BADGE="audio_badge",se.AUDIO_SURROUND="surround_sound",se.AUTO_AWESOME="sparkles",se.AVATAR_ANONYMOUS="person_circle",se.AVATAR_LOGGED_OUT="person_circle",se.BACK="arrow_left",se.BAR_CHART="chart_bar",se.BAR_CIRCLE="minus_circle",se.BAR_HORIZONTAL="minus",se.BLOCK="circle_slash",
se.BLOCK_USER="circle_slash",se.BOOKMARK_BORDER="bookmark",se.BOX_OPEN_CHECK="quiz",se.BOX_PENCIL="square_pencil",se.BOX_STACK_3="square3_stack",se.BREAKING_NEWS_ALT_1="text_page_alert",se.BROADCAST="podcast",se.BROADCAST_CAIRO="podcast",se.BUG_REPORT="bug",se.CAMERA_ALT="camera",se.CAMPAIGN="megaphone",se.CANCEL="x_circle",se.CAPTIONS="closed_captions",se.CAST_ICON="chromecast",se.CAST_OUTLINE="chromecast",se.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",se.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
se.CHAT="text_bubble",se.CHAT_BUBBLE="bubble",se.CHECK_BOX="check_square",se.CHECK_BOX_OUTLINE_BLANK="square",se.CHECK_CIRCLE_FILLED="check_circle",se.CHECK_CIRCLE_OUTLINE="check_circle",se.CHECK_CIRCLE_THICK="check_circle",se.CHECK_DOUBLE="check_done",se.CHECK_DOUBLE_OFF="check_done_slash",se.CHEVRON_LEFT="chevron_left",se.CHEVRON_RIGHT="chevron_right",se.CHEVRON_RIGHT_CAIRO="chevron_right",se.CIRCLES_OVERLAP="account_link",se.CLAPPERBOARD_CAIRO="clapperboard",se.CLARIFY="text_page_info",se.CLOCK_ARROWS=
"clock_split",se.CLOCK_ARROWS_ALERT="clock_split_alert",se.CLOSED_CAPTION="closed_captions",se.CLOSED_CAPTION_SELECTED="closed_captions",se.CLOSE="x",se.CLOUD_UPLOAD="cloud_arrow_up",se.COLLAPSE="chevron_up",se.COLLAPSE_CAIRO="chevron_up",se.COLLECTION="square3d_stack",se.COLOR_LENS="paint_palette",se.COMMENT="text_bubble",se.CONSENT_SHIELD="person_shield",se.CONTENT_CUT="scissors",se.CONTENT_CUT_CAIRO="scissors",se.COURSE="graduation_cap",se.COURSE_CAIRO="graduation_cap",se.CREATION_LIVE="live",
se.CREATION_POST="square_pencil",se.CREATION_UPLOAD="video",se.CREATION_UPLOAD_RED="upload",se.CREATOR_ACADEMY="graduation_cap",se.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",se.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",se.CREATOR_STUDIO="youtube_studio",se.DARK_THEME="theme",se.DELETE="trash_can",se.DELETE_SWEEP="trash_can",se.DESKTOP="laptop",se.DISLIKE="thumb_down",se.DISLIKE_SELECTED="thumb_down",se.DISMISSAL="x",se.DISMISS_QUEUE="playlist_x",se.DOGFOOD="pawprint",se.DOLLAR_SIGN=
"dollar_sign_circle",se.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",se.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",se.DOWN_ARROW="arrow_down",se.DO_NOT_DISTURB="circle_slash",se.DRAFT="document",se.DRAG_HANDLE="equal",se.EARTH="globe",se.EDIT="pencil",se.EMOJI="face_very_happy",se.EMOJI_FLAGS="flag",se.EMOJI_OBJECTS="lightbulb",se.EMOJI_PEOPLE="face_very_happy",se.EMOJI_RECENT="clock",se.EMPTY_HEART="heart",se.EMPTY_LIKE="thumb_up",se.ERROR_BLACK="alert_circle",se.ERROR_OUTLINE="alert_circle",se.ERROR_WHITE=
"alert_circle",se.EXIT_APP="arrow_in",se.EXIT_TO_APP="arrow_in",se.EXPAND="chevron_down",se.EXPAND_ALL="chevron_expand",se.EXPAND_CAIRO="chevron_down",se.EXPAND_LESS="chevron_up",se.EXPAND_MORE="chevron_down",se.EXPLORE="compass",se.EXPLORE_DESTINATION="compass",se.EXTERNAL_LINK="arrow_up_right",se.EYE_OFF="eye_slash",se.FAB_UPLOAD="upload",se.FACE_HAPPY_OUTLINE="face_happy",se.FACE_MEH="face_neutral",se.FACT_CHECK="text_page_check",se.FASHION_LOGO="fashion",se.FASHION_LOGO_CAIRO="fashion",se.FAVORITE=
"thumb_up",se.FEEDBACK="alert_bubble",se.FEEDBACK_CAIRO="alert_bubble",se.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",se.FILL_ARROW_SOLID_UP_16="arrow_solid_up",se.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",se.FIRST_PAGE="chevron_left_end",se.FLAG_CAIRO="flag",se.FLASH_OFF="flash_slash",se.FLASH_ON="flash",se.FULL_HEART="heart",se.GAMING_LOGO="gaming",se.GAMING_LOGO_CAIRO="gaming",se.GO_TO_PAGE="arrow_right",se.GRID_ASYMMETRICAL="dashboard",se.GROUPS="person3",se.HAND_SWIPE_LEFT="gesture_swipe_left",
se.HAND_SWIPE_RIGHT="gesture_swipe_right",se.HAPPY="face_happy",se.HEALTH_AND_SAFETY="shield_health",se.HEART_BOX="heart_cube",se.HELP="help_circle",se.HELP_CAIRO="help_circle",se.HELP_OUTLINE="help_circle",se.HIDE="circle_slash",se.INCOGNITO_CAIRO="incognito",se.INFINITY_ICON="infinity",se.INFO="info_circle",se.INFO_OUTLINE="info_circle",se.INSERT_CHART="chart_bar_square",se.INSERT_CHART_OUTLINED="chart_bar_square",se.INSERT_PHOTO="image",se.KEEP="pin",se.KEEP_OFF="pin_slash",se.KEYBOARD="keyboard",
se.KEYBOARD_ARROW_DOWN="chevron_down",se.KEYBOARD_ARROW_UP="chevron_up",se.KIDS_BLOCK="circle_slash",se.LANGUAGE="globe",se.LAST_PAGE="chevron_right_end",se.LAUNCH="arrow_up_right",se.LEARNING="lightbulb",se.LEARNING_CAIRO="lightbulb",se.LIBRARY_ADD="bookmark",se.LIBRARY_IMAGE="image_stack",se.LIBRARY_MUSIC="audio_square_stack",se.LIBRARY_OUTLINE="play_square_stack",se.LIBRARY_REMOVE="bookmark",se.LIBRARY_SAVED="check_square_stack",se.LIKES_PLAYLIST="thumb_up",se.LIKES_PLAYLIST_CAIRO="thumb_up",se.LIKE=
"thumb_up",se.LIKE_SELECTED="thumb_up",se.LIST_QUEUE="queue",se.LIVE_CAIRO="live",se.LIVE_UNLISTED="link",se.LOCATION_ON="location_pin",se.LOCATION_PIN="location_pin",se.LOCATION_POINT="location_pin",se.LOOP="repeat",se.LOOP_ACTIVE="repeat",se.LOOP_ONE="repeat1",se.LOOP_ONE_ACTIVE="repeat1",se.MEET="google_meet",se.MEH="face_neutral",se.MEMBERSHIPS="memberships",se.MEMBERS_ONLY_MODE_OFF="text_bubble",se.MENU_FILTER="filter",se.MESSAGE="text_bubble",se.MESSAGE_BUBBLE_GEAR="bubble_gear",se.MESSAGE_BUBBLE_LEFT=
"text_bubble",se.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",se.MESSAGE_BUBBLE_OVERLAP="bubble_stack",se.MESSAGE_BUBBLE_QUESTION="help_bubble",se.MICROPHONE_ON="mic",se.MONETIZATION_ON="dollar_sign_circle",se.MONEY_FILL="dollar_sign_rectangle",se.MONEY_FILL_JPY="yen_sign_rectangle",se.MONEY_HAND="dollar_sign_circle_hand",se.MONEY_HEART="dollar_sign_heart",se.MOON_Z="sleep_timer",se.MORE_HORIZ="overflow_horizontal",se.MORE_VERT="overflow_vertical",se.MUSIC="audio",se.MUSIC_CAIRO="audio",se.MUSIC_EXPLICIT_BADGE=
"explicit",se.MUSIC_NEW_RELEASE="audio_badge",se.MUSIC_NOTE_SYMBOL="audio",se.MUSIC_SCISSORS="audio_scissors",se.MUSIC_SHUFFLE="shuffle",se.MY_CHANNEL="person_circle",se.MY_LOCATION="location_pin",se.MY_VIDEOS="video",se.MY_VIDEOS_CAIRO="video",se.NEWS_CAIRO="news",se.NEWS_STORY="news",se.NEXT="chevron_right",se.NOTE_ADD="bubble_pencil",se.NOTIFICATIONS="bell",se.NOTIFICATIONS_ACTIVE="bell_waves",se.NOTIFICATIONS_CAIRO="bell",se.NOTIFICATIONS_DONE_CHECKMARK="check",se.NOTIFICATIONS_INBOX="bell",se.NOTIFICATIONS_NONE=
"bell",se.NOTIFICATIONS_OFF="bell_slash",se.NOT_INTERESTED="circle_slash",se.OFFICIAL_ARTIST_BADGE="audio",se.OFFLINE_CLOUD="cloud_slash",se.OFFLINE_DOWNLOAD="download",se.OFFLINE_DOWNLOAD_CAIRO="download",se.OFFLINE_PAUSE="pause",se.OPEN_IN_NEW="arrow_up_right",se.OUTLINE_ADJUST="adjust",se.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",se.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",se.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",se.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",se.OUTLINE_BAG="bag",se.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",se.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",se.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",se.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",se.PAID="dollar_sign_circle",se.PAUSE_OUTLINED="pause",se.PAYMENT="credit_card",se.PEOPLE="person_child",se.PEOPLE_2="person2_rectangle",se.PEOPLE_GROUP="person3",se.PEOPLE_NOTE="bubble_asterisk",se.PERSON_2="person2",se.PERSON_ACCOUNT="person_square_stack",se.PERSON_MINUS="person_x",se.PERSON_MUSIC="person_audio",se.PERSON_RADAR="person_waves",
se.PERSON_RADAR_FILLED="person_waves",se.PERSON_SETTING="person_gear",se.PHONE="phone",se.PHONE_DOWNLOAD="mobile_arrow_down",se.PICTURE_IN_PICTURE="picture_in_picture",se.PLAYABLES_LOGO="playables",se.PLAYABLES_LOGO_CAIRO="playables",se.PLAYLISTS="playlist",se.PLAYLISTS_CAIRO="playlist",se.PLAYLIST_ADD_CHECK="bookmark",se.PLAY_ALL="play",se.PLAY_ARROW="play",se.PLAY_ARROW_CIRCLE="play_circle",se.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",se.PLAY_CIRCLE="play_circle",se.PLAY_OUTLINED="play_circle",
se.PODCAST_ADD="podcast_add",se.PODCAST_CHECK="podcast_check",se.PRIVACY_INFO="shield_x",se.PRIVACY_PRIVATE="lock",se.PRIVACY_PUBLIC="globe",se.PRIVACY_UNLISTED="link",se.PROMOTE="megaphone",se.PURCHASES="price_tag",se.PURCHASE_SUPER_CHAT="super_chat",se.PURCHASE_SUPER_STICKER="super_sticker",se.QUESTION_ANSWER="help_bubble",se.QUESTION_CIRCLE="help_circle",se.QUEUE_PLAY_LAST="queue_last",se.QUEUE_PLAY_NEXT="queue_next",se.QUOTATION_MARK="quote",se.RADAR_LIVE="live",se.REMOVE="minus_circle",se.REMOVE_CIRCLE=
"minus_circle",se.REMOVE_CIRCLE_OUTLINE="minus_circle",se.REMOVE_FROM_HISTORY="minus_circle",se.REMOVE_FROM_PLAYLIST="minus_circle",se.REMOVE_MODERATOR="shield_slash",se.REPLAY="arrow_counterclockwise",se.REPLAY_10="skip10_back",se.REPLAY_ARROW="replay",se.REPORT_PROBLEM="alert_triangle",se.RSS_OFF="rss_slash",se.SAD="face_sad",se.SAVE_PLAYLIST="bookmark",se.SCHEDULE="clock",se.SCHOOL="graduation_cap",se.SCREEN_DEFAULT="player_default",se.SCREEN_FULLSCREEN="player_full_enter",se.SCREEN_LIGHT="ambient_mode",
se.SCREEN_ROTATION="rotate_portrait",se.SCREEN_SWITCH="player_switch",se.SCREEN_THEATRE="player_theater",se.SEARCH_CAIRO="search",se.SEARCH_HISTORY="history",se.SELL="price_tag",se.SETTINGS="gear",se.SETTINGS_CAIRO="gear",se.SETTINGS_LIGHT="gear",se.SETTINGS_MATERIAL="gear",se.SETTINGS_REMOTE="remote_waves",se.SHARE="share",se.SHARE_ARROW="share",se.SHARE_CAIRO="share",se.SHIELD="shield_x",se.SHIELD_EMPTY="shield",se.SHIELD_OFF="shield_slash",se.SHIELD_WITH_AVATAR="person_shield",se.SHOPPING_BAG=
"bag",se.SHOPPING_BAG_CAIRO="bag",se.SHOPPING_CART="cart",se.SHORTS_COMMENT="text_bubble",se.SHORTS_DISLIKE="thumb_down",se.SHORTS_LIKE="thumb_up",se.SHORTS_SHARE="share",se.SKIP_FORWARD_30="skip30_forward",se.SLASH_CIRCLE_LEFT="circle_slash",se.SLASH_CIRCLE_RIGHT="circle_slash",se.SLOW_MODE="bubble_slow",se.SLOW_MODE_OFF="text_bubble",se.SOCIAL="person_child",se.SPARKLE="sparkles",se.SPARK_IMAGE="image_spark",se.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",se.SPARK_PENCIL="pencil_spark",se.SPARK_RADAR=
"spark_waves",se.SPARK_VIDEO="video_spark",se.SPEAKER_GROUP="speaker_stack",se.SPEAKER_OFF="speaker_slash",se.SPEED_1X="n1x",se.SPEED_1_POINT_2X="n1point2x",se.SPEED_1_POINT_5X="n1point5x",se.SPEED_1_POINT_8X="n1point8x",se.SPEED_2X="n2x",se.SPONSORSHIP_STAR="star_circle",se.SPORTS="basketball",se.SPOTLIGHT="spotlight",se.STAFF_PICK="spotlight",se.START_DVR="add",se.STAR_BORDER="star",se.STAR_CIRCLE_RIBBON="memberships_gift",se.STAR_HALF="star_full_half",se.STAR_SHOOTING="hype",se.STICKER="sticker",
se.STICKER_EMOTICON="face_happy",se.STOP_DVR="stop",se.SUBSCRIBE="youtube",se.SUBSCRIBE_PLUS="add",se.SUBSCRIPTION_MANAGER="gear",se.SUPERSTAR="super_star",se.SUPERVISOR_ACCOUNT="person_child",se.SUPER_CHAT_FOR_GOOD="hands_heart",se.SWAP_HORIZ="arrow_swap_horizontal",se.SWITCH_ACCOUNTS="person_square_stack",se.TAB_ACCOUNT="person",se.TAB_ACTIVITY="bell",se.TAB_BOOKMARK="bookmark",se.TAB_EXPLORE="compass",se.TAB_HOME="home",se.TAB_HOME_CAIRO="home",se.TAB_INBOX="mail",se.TAB_LIKED="thumb_up",se.TAB_MUSIC_PREMIUM=
"youtube_music",se.TAB_SHORTS="shorts",se.TAB_SHORTS_CAIRO="shorts",se.TAB_SUBSCRIPTIONS="subscriptions",se.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",se.TAB_TRENDING="trending",se.TARGET="target",se.TARGET_ADD="target_add",se.TEMPLATE_ADD="template_add",se.TEXT="font",se.TICKET_STAR="star_ticket",se.TIMER="stopwatch",se.TRENDING_CAIRO="trending",se.TRENDING_DOWN="arrow_trend_down",se.TRENDING_UP="arrow_trend_up",se.TROPHY_CAIRO="trophy",se.TROPHY_CELEBRATIONS="fireworks",se.TROPHY_STAR="star_trophy",
se.TUNE="adjust",se.TV_OFF="tv_slash",se.UNBLOCK_USER="minus_circle",se.UNFAVORITE="thumb_down",se.UNLIMITED="youtube",se.UNPLUGGED_LIVE_GUIDE="live",se.UNPLUGGED_SPORTS="eye_slash",se.UPLOADS="play_square_stack",se.UP_ARROW="arrow_up",se.VERTICAL_ALIGN_BOTTOM="chevron_down_end",se.VERTICAL_ALIGN_TOP="chevron_up_end",se.VERY_HAPPY="face_very_happy",se.VERY_SAD="face_very_sad",se.VIDEOS="play_circle",se.VIDEO_CALL="video_camera_add",se.VIDEO_LIBRARY_WHITE="play_square_stack",se.VIDEO_QUALITY_4K="n4k",
se.VIDEO_QUALITY_8K="n8k",se.VIDEO_YOUTUBE="youtube",se.VIEW_LIST_CAIRO="view_list",se.VIEW_MODULE="view_column3_row2",se.VISIBILITY="eye",se.VISIBILITY_OFF="eye_slash",se.VOLUME_DOWN="volume_min",se.VOLUME_MUTE="volume_mute",se.VOLUME_OFF="volume_mute",se.VOLUME_STABLE="stable_volume",se.VOLUME_UP="volume_max",se.WALLPAPER="image",se.WARNING="alert_triangle",se.WATCH_HISTORY="history",se.WATCH_HISTORY_CAIRO="history",se.WATCH_LATER="clock",se.WATCH_LATER_CAIRO="clock",se.WATCH_RELATED_MIX="mix",
se.WHAT_TO_WATCH="home",se.YOUTUBE_LINKED_TV="tv_mobile",se.YOUTUBE_MUSIC_MONOCHROME="youtube_music",se.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",se.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",se.YOUTUBE_SHORTS_ARROW_UP="arrow_up",se.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",se.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",se.YOUTUBE_SHORTS_OUTLINE_24="shorts",se.YT_OUTLINE_MUSIC_24="audio",se);var wqx={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 c1H={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 HOC={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"},yl=function(g){this.iconUrlProvider=g};
yl.prototype.resolveIcon=function(g,u){var q=HOC[g.iconName.toUpperCase()];q&&(g.iconName=q);var Q=g.iconName;Q=Q.replace(/-/g,"_");g=Object.assign({},g,{iconName:this.mapIconTypeToStandardName(Q,!!q)||Q.toLowerCase()});if(_.w("enable_web_delhi_icons")||q){var L;return R7K(c1H,g,((L=this.iconUrlProvider)==null?void 0:L.getYtStandardUrl)||ANm,u)}var E;return R7K(wqx,g,((E=this.iconUrlProvider)==null?void 0:E.getYtStandardUrl)||HDf,u)};
yl.prototype.mapIconTypeToStandardName=function(g,u){return _.w("enable_web_delhi_icons")||u?Rsx[g.toUpperCase()]:$SH[g.toUpperCase()]};
yl[zv]=[_.xv(tgt)];var A1b=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),ZOb=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),lin=function(g){this.urlProvider=this.iconUrlProvider=g};
_.A(lin,yl);
lin.prototype.resolveIcon=function(g,u){g.iconName==="youtube_logo"&&(g.iconName="yt-logo-updated");if(g.iconName==="youtube_premium_logo"||g.iconName==="youtube_red_logo")g.iconName="yt-logo-red-updated";var q=Object.assign({},g);g.iconName==="menu"&&(_.w("enable_web_delhi_icons")||(q.iconName="bars_3"),q.iconStyle="youtube_outline");g.iconSetName==="socialNetworksRound"&&(g.iconName==="mail"&&(q.iconName="email"),g.iconName==="embed"&&(q.iconSize=60));g.iconName==="more"&&(q.iconName="overflow_horizontal");
g.iconName==="fullscreen"&&(q.iconName="screen_full");g.iconName==="premium_standalone"&&(q.iconName="premium_standalone_cairo");_.w("enable_connect_icon_update_web")&&g.iconName==="account_linked"&&(q.iconName="circles_overlap_check",q.iconStyle="youtube_fill");_.w("enable_connect_icon_update_web")&&g.iconName==="account_unlinked"&&(q.iconName="circles_overlap",q.iconStyle="youtube_outline");A1b.has(g.iconName)&&(q.iconStyle="youtube_fill");if(_.w("enable_web_delhi_icons")){g.iconName==="playlist_add"&&
(q.iconName="bookmark");g.iconName==="offline_pin"&&(q.iconName="arrow_down_circle",q.iconStyle="youtube_fill");if(g.iconName==="circles_overlap_check"||q.iconName==="circles_overlap_check")q.iconName="account_link",q.iconStyle="youtube_fill";ZOb.has(g.iconName)&&(q.iconName+="_updated")}g=Object.assign({},q,{iconName:(yl.prototype.mapIconTypeToStandardName.call(this,q.iconName)||q.iconName).toLowerCase()});var Q;return(g=R7K(fix,g,((Q=this.urlProvider)==null?void 0:Q.getUrl)||ZDF,u))?g:yl.prototype.resolveIcon.call(this,
q,u)};
lin[zv]=[_.xv(tgt)];_.Iih=1;var vi=function(g,u){this.JSC$17771_commandHandler=g;this.innertubeTransportService=u};
_.A(vi,Hw);vi.prototype.resolveCommand=function(g,u){var q=this,Q,L,E;return _.D(function(y){return(Q=_.c(g,VsR))?y.return(iOb(q,Q,(L=u)==null?void 0:(E=L.form)==null?void 0:E.element)):y.return()})};
var iOb=function(g,u,q){u={profileCardContext:u.profileCardContext,profileOwnerExternalChannelId:u.profileOwnerExternalChannelId};var Q=_.dr(Sya);return _.wE(g.innertubeTransportService,u,Q).then(function(L){if(!L)throw new _.Ji("GetProfileCard failed");if(L=L.popupCommand){g.JSC$17771_commandHandler.resolveCommand(L,{form:{element:q}});_.Kq(_.gL(),66557);L=L==null?void 0:L.clickTrackingParams;var E=_.JJ();L&&E&&_.gL().graftServerVe(L,E)}})};
vi[zv]=[_.Gy,_.QY];var D_=function(){};
_.A(D_,Hw);D_.prototype.resolveCommand=function(g){var u,q;return _.D(function(Q){u=_.c(g,x60);if(!u)return Q.return();q=Number(u.enableDelayedPacfLoggingTvMs);if(isNaN(q)){var L=od();pP$(L,u,0)}else pP$(od(),u,q);_.Wx(Q)})};_.pz=function(){};
_.A(_.pz,Hw);
_.pz.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f;return _.D(function(t){Q=_.c(g,B2$);E=(L=u.form)==null?void 0:L.element;v=(y=E)==null?void 0:y.closest("ytd-enforcement-message-view-model");if(!Q||!v)return t.return();q.allowAdsAction||(J=Q.fundingChoiceInstructionPageUrl,q.allowAdsAction=new MQ0(window,_.A6(J)));var e=q.allowAdsAction;e.wallElement=v;e.allowAdsPopup.style.setProperty("display","flex","important");var G=e.scrollManager;G.isScrollingEnabled&&(G.originalBodyOverflow=G.JSC$10307_domHelper.JSC$9633_document_.body.style.overflow,
G.JSC$10307_domHelper.JSC$9633_document_.body.style.overflow="hidden",G.isScrollingEnabled=!1);e.wallElement.style.setProperty("display","none","important");mTR(e.accessibilityManager,e.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((f=q.allowAdsAction.allowAdsPopup)&&f instanceof HTMLElement)for(e=_.N(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),G=e.next();!G.done;G=e.next()){var R=_.N(G.value);G=R.next().value;R=R.next().value;
f.style.setProperty(G,R)}_.Wx(t)})};
_.pz.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var J0=function(){};
_.A(J0,Hw);J0.prototype.resolveCommand=function(g){var u;return _.D(function(q){u=_.c(g,LfZ);if(!u)return q.return();opK(g);_.Wx(q)})};_.jd=new _.Fv("AI_CHAT_CONTROLLER_TOKEN");var fz=function(g,u,q,Q){this.JSC$17786_commandHandler=g;this.store=u;this.getPlayerCb=q;this.aiChatController=Q};
_.A(fz,Hw);fz.prototype.pageContext=function(){var g=_.wy.currentPageSubTypeSelector(this.store.getState()),u;return(u=this.aiChatController)==null?void 0:_.C7K(u,g)};
fz.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y;return _.D(function(v){q=_.c(g,L$i);L=(Q=q)==null?void 0:Q.command;if(!L)return v.return();switch((y=q)==null?void 0:y.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var J="youchat-"+Date.now(),f;var t=String(Math.floor(((f=u.getPlayerCb())==null?void 0:f.getCurrentTime())||0)*1E3);E={inputComposerFormData:{clientMessageId:J,playerOffsetMs:t,pageContext:u.pageContext()}}}if(!E)return v.return();u.JSC$17786_commandHandler.resolveCommand(L,
{form:{formData:E}});_.Wx(v)})};
fz[zv]=[_.Gy,_.Ja,BHf,_.xv(_.jd)];var bOH=new _.Fv("SESSION_STORAGE");var Mr=function(g){this.sessionStorage=g("conversations")};
_.A(Mr,Hw);Mr.prototype.resolveCommand=function(g){var u=this,q;return _.D(function(Q){q=_.c(g,Exb);if(!q)return Q.return();q.conversationId?u.sessionStorage.set("conversation_id",q.conversationId):u.sessionStorage.remove("conversation_id");_.Wx(Q)})};
Mr[zv]=[bOH];var t0=function(g){this.JSC$17798_commandHandler=g};
_.A(t0,Hw);
t0.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f;return _.D(function(t){if(t.nextAddress==1){q=_.c(g,iKX);if((Q=q)==null||!Q.text||!navigator.clipboard)return t.return();_.b8(t,2);return t.yield(navigator.clipboard.writeText(q.text),4)}if(t.nextAddress!=2){if(!q.successActions||q.successActions.length===0)return t.return();L=_.N(q.successActions);for(E=L.next();!E.done;E=L.next())y=E.value,u.JSC$17798_commandHandler.resolveCommand(y);return _.Xx(t,0)}_.rt(t);if(!q.failureActions||q.failureActions.length===
0)return t.return();v=_.N(q.failureActions);for(J=v.next();!J.done;J=v.next())f=J.value,u.JSC$17798_commandHandler.resolveCommand(f);_.Wx(t)})};
t0[zv]=[_.Gy];var ed=function(g){this.JSC$17802_commandHandler=g};
_.A(ed,Hw);
ed.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G;return _.D(function(R){switch(R.nextAddress){case 1:Q=_.c(g,D5X);if(!Q)return R.return();_.b8(R,2);if(!Q.imageBytes&&!Q.imageUrl)throw Error("Ei");if(!Q.imageUrl){if(Q.imageBytes){E=Q.imageBytes;y=E.replace(/-/g,"+").replace(/_/g,"/");var H=CVS(y);L=_.o3(H)}R.jumpTo(4);break}return R.yield(fetch(Q.imageUrl),5);case 5:return v=R.yieldResult,R.yield(v.blob(),6);case 6:J=R.yieldResult,L=_.o3(J);case 4:e=(f=u)==null?void 0:(t=f.form)==
null?void 0:t.element;G=document.createElement("a");u8(G,L);e.appendChild(G);G.download="";G.click();e.removeChild(G);URL.revokeObjectURL(_.BT(L));Q.successCommand&&q.JSC$17802_commandHandler.resolveCommand(Q.successCommand);_.Xx(R,0);break;case 2:_.rt(R),Q.errorCommand&&q.JSC$17802_commandHandler.resolveCommand(Q.errorCommand),_.Wx(R)}})};
ed[zv]=[_.Gy];var Gj=function(g){this.store=g};
_.A(Gj,Hw);Gj.prototype.resolveCommand=function(g){var u=this,q,Q,L;return _.D(function(E){Q=(q=_.c(g,_.Ef0))==null?void 0:q.entityBatchUpdate;if(!Q)return E.jumpTo(0);L=Object.assign({},Q,{mutations:[].concat(_.na(Q.mutations||[]))});return E.yield(_.op(L,u.store),0)})};
Gj[zv]=[Yb];var dS9=function(g){this.JSC$17809_commandHandler=g;this.feedbackDialogMap=new Map};
dS9.prototype.openDialog=function(g,u){(g=this.feedbackDialogMap.get(g))&&this.JSC$17809_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:g}},u)};
dS9[zv]=[_.Gy];var Fex=new _.Fv("FEEDBACK_CONTROLLER_TOKEN");var $Y=function(g,u,q,Q){this.dispatch=g;this.controller=u;this.JSC$17812_commandHandler=q;this.innertubeTransportService=Q};
_.A($Y,Hw);
$Y.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k,LZ,sb,Rm,M3;return _.D(function(tT){switch(tT.nextAddress){case 1:Q=_.c(g,_.MB);if(E=(L=Q)==null?void 0:L.contentId)for(v=_.N(((y=Q)==null?void 0:y.actions)||[]),J=v.next();!J.done;J=v.next())f=J.value,mSE(q,f,E);G=(t=u)==null?void 0:(e=t.form)==null?void 0:e.element;return _.w("wug_feedback_endpoint_use_its")?(l=new _.Gc,l.endpoint=g,F=_.ce(q.innertubeTransportService,g,(d=u)==null?void 0:d.form),l.ajaxPromise=
F,_.hJ(G,"yt-service-request-sent",l),tT.yield(F,5)):tT.yield(_.KV(G,[g,{impression:(H=u)==null?void 0:H.disableClickTracking}]).catch(function(){}),4);
case 4:R=tT.yieldResult;tT.jumpTo(3);break;case 5:R=tT.yieldResult,_.hJ(G,"yt-service-request-completed",{data:R});case 3:W=((V=R)==null?void 0:(z=V.data)==null?void 0:z.feedbackResponses)||((O=R)==null?void 0:O.feedbackResponses);if((x=W)==null?0:x.length)(LZ=(k=W[0])==null?void 0:k.followUpDialog)&&E&&(sb=q.controller)!=null&&sb.feedbackDialogMap.set(E,LZ),(M3=(Rm=W[0])==null?void 0:Rm.isThumbnailReporting)&&q.JSC$17812_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.Wx(tT)}})};
var mSE=function(g,u,q){var Q=_.c(u,_.zg);if(Q){Q=_.N(Q.commands||[]);for(var L=Q.next();!L.done;L=Q.next())mSE(g,L.value,q)}_.c(u,_.oB)&&g.dispatch(_.u2("commandEntity",vgb(q),{key:q,command:u}));_.c(u,Ojb)&&g.dispatch(_.u2("commandEntity",vgb(q),{key:q,command:u}))};
$Y[zv]=[I_0,Fex,_.Gy,_.QY];var RD=function(g){this.controller=g};
_.A(RD,Hw);RD.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y;return _.D(function(v){Q=_.c(g,_.FU);E=(L=Q)==null?void 0:L.targetId;if(((y=Q)==null?void 0:y.signal)!=="TELL_US_WHY"||!E)return v.return();q.controller.openDialog(E,u);_.Wx(v)})};
RD[zv]=[Fex];var wA=new _.Fv("APP_STORE_TOKEN");var ci=function(g){this.store=g};
_.A(ci,Hw);ci.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f;return _.D(function(t){Q=_.c(g,ITZ);E=(L=Q)==null?void 0:L.contentId;J=(y=u)==null?void 0:(v=y.form)==null?void 0:v.element;f=_.KV(J,[g]);E&&q.undo(E);return t.yield(f,0)})};
ci.prototype.undo=function(g){this.store.dispatch(_.u2("commandEntity",vgb(g),{key:g,command:void 0}))};
ci[zv]=[wA];var Hi=function(g){this.JSC$17824_commandHandler=g};
_.A(Hi,Hw);Hi.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f;return _.D(function(t){q=_.c(g,HJ5);Q=q.flowStateKey;L=q.validationFailureCommand;E=q.submitValidFormCommand;y=awJ(_.mZ,[Q||""]);v=_.c(y,l8o);((J=v)==null?0:J.isValid)&&E&&u.JSC$17824_commandHandler.resolveCommand(E);((f=v)==null?0:f.isValid)||!L||u.JSC$17824_commandHandler.resolveCommand(L);_.Wx(t)})};
Hi[zv]=[_.Gy];var A0=function(g){this.innertubeTransportService=g};
_.A(A0,Hw);A0.prototype.resolveCommand=function(g,u){var q=this,Q;return _.D(function(L){return L.yield(_.ce(q.innertubeTransportService,g,(Q=u)==null?void 0:Q.form).then(function(E){var y,v;u==null||(y=u.commandController)==null||(v=y.onSuccess)==null||v.call(y,g,E)},function(E){var y,v;
u==null||(y=u.commandController)==null||(v=y.onServerError)==null||v.call(y,g,E)}),0)})};
A0[zv]=[_.QY];var Z_=function(){};
_.A(Z_,Hw);Z_.prototype.resolveCommand=function(g){var u,q,Q,L;return _.D(function(E){if(u=_.c(g,_.cP2)){if(q=u.gtmId)Q=_.FR("GL",""),_.QU(q,Q);(L=u.gtmData)&&_.LK(L)}_.Wx(E)})};var lW=function(g,u,q){this.innertubeTransportService=g;this.JSC$17835_actionRouter=u;this.JSC$17835_screenManager=q};
_.A(lW,Hw);lW.prototype.resolveCommand=function(g){var u=this,q,Q;return _.D(function(L){q=_.c(g,t2W);if(!q)return L.return();Q=q.command;if(!Q)return L.return();u.JSC$17835_actionRouter.triggerAction("yt-insert-rich-section-action",q);return L.yield(_.ce(u.innertubeTransportService,Q,{disableCache:!0}).then(function(E){g.clickTrackingParams&&(E==null?0:E.trackingParams)&&u.JSC$17835_screenManager.graftServerVe(E.trackingParams,_.Lr(g.clickTrackingParams))}),0)})};
lW[zv]=[_.QY,Fu,_.QA];dLT.bind(null,AV);var aiK=dLT.bind(null,lNZ);mLu.bind(null,AV);var VgE=mLu.bind(null,lNZ);VwF.bind(null,AV);var XqL=VwF.bind(null,lNZ);var ID=function(){};
_.A(ID,Hw);
ID.prototype.resolveCommand=function(g){var u,q,Q,L,E,y,v,J,f,t;return _.D(function(e){u=_.c(g,Qxn);if(!u)return e.return();Q=((q=u.operations)==null?void 0:q.operations)||[];L=_.N(Q);for(E=L.next();!E.done;E=L.next())if(y=E.value,y.insertItemSectionContent){var G=y.insertItemSectionContent,R=G.contents||[];G.insertByPositionInSection?aiK(G.insertByPositionInSection.sectionTargetId,R,G.insertByPositionInSection.position):G.insertByRelativePositionInSection&&G.insertByRelativePositionInSection.sectionTargetId&&G.insertByRelativePositionInSection.itemTargetId&&
VgE(G.insertByRelativePositionInSection.sectionTargetId,G.insertByRelativePositionInSection.itemTargetId,R,G.insertByRelativePositionInSection.relativePosition)}else y.replaceSection?(G=y.replaceSection,R={},G.replaceByTargetId?R=G.replaceByTargetId:G.replaceByGroupId&&(R={targetId:G.replaceByGroupId.groupId,newContent:G.replaceByGroupId.newContent,undoKey:""}),R.newContent&&Cji(R.targetId,{continuationItems:[R.newContent]})):y.removeItem?(G=y.removeItem,G.removeByTargetId&&G.sectionTargetId&&XqL(G.sectionTargetId,
G.removeByTargetId.targetIds||[])):y.removeSection&&(y.removeSection.removeByTargetId?(v=void 0,r1C(((v=y.removeSection)==null?void 0:v.removeByTargetId.targetIds)||[])):y.removeSection.removeByGroupId&&(J=void 0,r1C(((J=y.removeSection)==null?void 0:J.removeByGroupId.groupIds)||[])));t=((f=u.operations)==null?void 0:f.scrollConfig)||{};Web(t);_.Wx(e)})};
var r1C=function(g){g=_.N(g);for(var u=g.next();!u.done;u=g.next())Cji(u.value,{continuationItems:[]})},Web=function(g){if(g.scrollToItem){var u=g.scrollToItem.item||{},q=u.itemTargetId;
u=u.sectionTargetId;if(q&&u){var Q=document.querySelector("[data-target-id="+u+"]"),L=Q==null?void 0:Q.querySelector("[data-target-id="+q+"]");Q&&L&&setTimeout(function(){var E=L.offsetTop-Q.offsetTop,y;if(((y=g.scrollToItem)==null?void 0:y.scrollPosition)==="SCROLL_POSITION_CENTER")E-=Q.offsetHeight/2,E+=L.offsetHeight/2;else{var v;((v=g.scrollToItem)==null?void 0:v.scrollPosition)==="SCROLL_POSITION_END"&&(E-=Q.offsetHeight,E+=L.offsetHeight)}var J;Q.scroll({top:E,behavior:(g==null?void 0:(J=g.animationConfig)==
null?void 0:J.enableAnimation)===!1?"instant":"smooth"})},100)}}};var iW=new _.Fv("CLIENT_NAME_TOKEN");var TjH=new _.Fv("DEFAULT_STORE_EXPIRATION_TOKEN");var VKa=new _.Fv("CLIENT_LOCATION_SERVICE_TOKEN");var Cz=function(g,u,q){this.clientName=g||_.FR("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=u||_.H9.getInstance();this.JSC$17864_commandHandler=q||_.ze.instance};
_.A(Cz,Hw);Cz.prototype.resolveCommand=function(g){var u=this,q,Q;return _.D(function(L){Q=(q=_.c(g,WB$))==null?void 0:q.onComplete;u.clientLocationService.clearLocationPlayabilityToken(u.clientName);Q&&u.JSC$17864_commandHandler.resolveCommand(Q);_.Wx(L)})};
Cz[zv]=[iW,VKa,_.Gy];var bW=function(g){this.innertubeTransportService=g};
_.A(bW,Hw);bW.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y;return _.D(function(v){E=(Q=u)==null?void 0:(L=Q.form)==null?void 0:L.element;return v.yield(_.ce(q.innertubeTransportService,g,(y=u)==null?void 0:y.form).then(function(J){CKK(E,new CustomEvent("yt-service-request-completed"),{data:J},_.FR("openPopupConfig"))}),0)})};
bW[zv]=[_.QY];var dA=function(){};
_.A(dA,Hw);dA.prototype.resolveCommand=function(g){var u,q;return _.D(function(Q){u=_.c(g,bJ$);q=document.querySelector("mini-app-container-view-model");if(!u||!q)return Q.return();u.isPlaying?q.dispatchEvent(new Event("play")):q.dispatchEvent(new Event("pause"));_.Wx(Q)})};var FF=function(){};
_.A(FF,Hw);FF.prototype.resolveCommand=function(g){var u,q,Q,L,E,y,v;return _.D(function(J){u=_.c(g,tt0);if((q=u)==null||!q.paramKeys)return J.return();Q=u.paramKeys;L=_.X_(window.location.href);E=_.N(Q);for(y=E.next();!y.done;y=E.next())v=y.value,L.JSC$10339_queryData_.remove(v);window.history.replaceState(window.history.state,document.title,L.toString());_.Wx(J)})};var hsZ=function(){this.dropdownMap=new Map};_.Y7E=new _.Fv("DROPDOWN_CONTROLLER_TOKEN");var mi=function(g){this.controller=g};
_.A(mi,Hw);mi.prototype.resolveCommand=function(g){var u=this,q,Q,L,E;return _.D(function(y){q=_.c(g,Boo);if(!q)return y.return();Q=q;L=Q.dropdownId;E=Q.selectedOptionIndex;if(L===void 0||E===void 0)return y.return();var v=u.controller.dropdownMap.get(L);v&&v(E);_.Wx(y)})};
mi[zv]=[_.Y7E];var aD=function(g){this.controller=g};
_.A(aD,Hw);aD.prototype.resolveCommand=function(g){var u=this,q;return _.D(function(Q){return(q=_.c(g,gai))?Q.yield(u.controller.closeDialog(),0):Q.return()})};
aD[zv]=[_.D5];var Vl=function(g){this.controller=g};
_.A(Vl,Hw);Vl.prototype.resolveCommand=function(g){var u=this,q,Q;return _.D(function(L){q=_.c(g,V9b);if(!q)return L.return();var E,y=q.panelIdentifier||((E=q.identifier)==null?void 0:E.tag);if(!y)throw Error("Fi");return(Q=y)?L.yield(u.controller.hidePanel({identifier:Q}),0):L.jumpTo(0)})};
Vl[zv]=[_.yH];var XF=function(g){this.controller=g};
_.A(XF,Hw);XF.prototype.resolveCommand=function(g){var u=this,q;return _.D(function(Q){return(q=_.c(g,AF5))?Q.yield(u.controller.closeSheet(),0):Q.return()})};
XF[zv]=[_.vy];var rA=function(g,u){this.innertubeTransportService=g;this.controller=u};
_.A(rA,Hw);rA.prototype.resolveCommand=function(g){var u=this,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return q=_.c(g,Xdi),(Q=q)!=null&&Q.panelId?y.yield(u.controller.getReloadContinuation(q.panelId),2):y.return();if(y.nextAddress!=3)return(L=y.yieldResult)?y.yield(_.ce(u.innertubeTransportService,g,{continuation:L}),3):y.return();E=y.yieldResult;return y.yield(u.controller.updatePanel({identifier:q.panelId,panelContents:E.content,shouldFocus:!1}),0)})};
rA[zv]=[_.QY,_.yH];var Wi=function(g,u,q){this.innertubeTransportService=g;this.JSC$17905_screenManager=u;this.JSC$17905_commandHandler=q};
_.A(Wi,Hw);
Wi.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v;return _.D(function(J){if(J.nextAddress==1){q=_.c(g,_.d8b);if(!q)return J.return();if(q.commands)for(Q=_.N(q.commands),L=Q.next();!L.done;L=Q.next())E=L.value,u.JSC$17905_commandHandler.resolveCommand(E,{disableClickTracking:!0});y=_.Lr(g.clickTrackingParams);_.Kq(u.JSC$17905_screenManager,21760,y,{layer:7,parentLayer:0});return J.yield(_.ce(u.innertubeTransportService,g),2)}v=J.yieldResult;if(!v)return J.return();u.JSC$17905_screenManager.graftServerVe(v.trackingParams,y,
7);_.Wx(J)})};
Wi[zv]=[_.QY,_.QA,_.Gy];var Tj=new _.Fv("PANEL_LOADING_STRATEGY_TOKEN");var h0=function(g,u){this.controller=g;this.panelLoadingStrategy=u};
_.A(h0,Hw);
h0.prototype.resolveCommand=function(g,u){var q=this,Q,L,E;return _.D(function(y){Q=_.c(g,lha);if((L=Q)==null||!L.panelLoadingStrategy)return y.return();E=function(v){var J,f,t,e,G,R,H,l,d,F;return _.D(function(V){f=_.c((J=v.dialogViewModel)==null?void 0:J.header,zO0);t={viewModel:v.dialogViewModel};e={};if(H=_.w("web_enable_dialog_header_label")?(G=f)==null?void 0:(R=G.headline)==null?void 0:R.content:void 0)e.ariaLabel=H;Q.dismissOnBackgroundTap===!1&&(e.isModal=!0);return v.dialogViewModel?V.yield(q.controller.openDialog(t,
(F=(l=u)==null?void 0:(d=l.form)==null?void 0:d.element)!=null?F:document.body,e),0):V.return()})};
return y.yield(q.panelLoadingStrategy.execute({command:g,data:Q.panelLoadingStrategy,renderFn:E,createScreenConfig:{layer:4}}),0)})};
h0[zv]=[_.D5,Tj];var YY=function(g,u,q){this.innertubeTransportService=g;this.controller=u;this.JSC$17925_screenManager=q};
_.A(YY,Hw);
YY.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F;return _.D(function(V){switch(V.nextAddress){case 1:Q=_.c(g,_.fT);if(!Q)return V.return();var z,O=Q.panelIdentifier||((z=Q.identifier)==null?void 0:z.tag);if(!O)throw Error("Fi");L=O;return V.yield(q.controller.isVisible(L,!0),2);case 2:if((E=V.yieldResult)&&Q.blockIfPanelOpen)return V.return();J=(v=(y=q.controller).getPanelContent)==null?void 0:v.call(y,L);if(!(z=J))if(Q){var W;z=((W=Q.globalConfiguration)==null?void 0:
W.initialState)||Q.engagementPanel;if(W=!z)W=!!(Q==null?0:(O=Q.engagementPanelPresentationConfigs)==null?0:O.engagementPanelPopupPresentationConfig);W&&(z=_.Xgf(Q.panelIdentifier,Q.identifier))}else z=void 0;f=z;t=Q.engagementPanelPresentationConfigs;e=Q.engagementPanelExtras;return V.yield(q.controller.showPanel({identifier:L,panelContents:f,config:t,extras:e,target:(G=u)==null?void 0:(R=G.form)==null?void 0:R.element}),3);case 3:if(!Q.globalConfiguration){V.jumpTo(0);break}if(Q.globalConfiguration.reuseModelAndState&&
_.w("enable_ai_companion")&&(d=(l=(H=q.controller).getPanelContent)==null?void 0:l.call(H,L)))return V.return();_.Kq(q.JSC$17925_screenManager,32633);return V.yield(_.ce(q.innertubeTransportService,g),5);case 5:return F=V.yieldResult,q.JSC$17925_screenManager.graftServerVe(F.trackingParams),V.yield(q.controller.updatePanel({identifier:L,panelContents:F.content,shouldFocus:!0,extras:e,updatePanelContinuationData:F.updatePanelContinuationData}),0)}})};
YY[zv]=[_.QY,_.yH,_.QA];var Oe=function(g,u){this.controller=g;this.panelLoadingStrategy=u};
_.A(Oe,Hw);
Oe.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G,R,H;return _.D(function(l){Q=_.c(g,_.q0);if((L=Q)==null||!L.panelLoadingStrategy)return l.return();v=OO9(q.controller,(E=u)==null?void 0:(y=E.form)==null?void 0:y.element);f=(J=Q.contextualSheetPresentationConfig)==null?void 0:J.position;e=(t=Q.contextualSheetPresentationConfig)==null?void 0:t.hoverConfig;R=(G=Q.contextualSheetPresentationConfig)==null?void 0:G.expandToFullWidth;H=function(d){var F,V;return _.D(function(z){if(!d.sheetViewModel)return z.return();if(e){var O=
q.controller;O.shouldPreventClosingWhileHovered=!!e.preventCloseWhileHovered;var W;O.hideDelayMs=(W=e.hideDelayMs)!=null?W:0}return z.yield(q.controller.openSheet({viewModel:d.sheetViewModel,sheetPosition:f,expandToFullWidth:R},v,(F=u)==null?void 0:(V=F.form)==null?void 0:V.element),0)})};
return l.yield(q.panelLoadingStrategy.execute({command:g,data:Q.panelLoadingStrategy,renderFn:H,createScreenConfig:{layer:0}}),0)})};
Oe[zv]=[_.vy,Tj];var Kz=function(g,u){this.controller=g;this.JSC$17936_commandHandler=u};
_.A(Kz,Hw);Kz.prototype.resolveCommand=function(g,u){var q=this,Q,L,E;return _.D(function(y){if(y.nextAddress==1){Q=_.c(g,hP$);var v=_.c(Q.showCommand,_.fT),J,f,t=(f=v==null?void 0:v.panelIdentifier)!=null?f:v==null?void 0:(J=v.identifier)==null?void 0:J.tag;if(!t)throw Error("Gi");L=t;return y.yield(q.controller.isVisible(L),2)}return(E=y.yieldResult)?y.yield(q.controller.hidePanel({identifier:L}),0):y.yield(q.JSC$17936_commandHandler.resolveCommand(Q.showCommand,u),0)})};
Kz[zv]=[_.yH,_.Gy];var xY=function(g,u,q){this.innertubeTransportService=g;this.controller=u;this.JSC$17939_screenManager=q};
_.A(xY,Hw);
xY.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k;return _.D(function(LZ){switch(LZ.nextAddress){case 1:return Q=q=_.c(g,z8i),L=Q.targetPanelIdentifier,E=Q.contentSourcePanelIdentifier,y=Q.globalConfiguration,((v=L)==null?0:v.tag)&&((J=E)==null?0:J.tag)?y?LZ.yield(u.controller.showPanel({identifier:L.tag,panelContents:_.Xgf(L.tag,L)}),5):LZ.yield((G=(e=u.controller).getPanel)==null?void 0:G.call(e,E.tag),4):LZ.return();case 4:R=LZ.yieldResult;f=(H=R)==
null?void 0:(d=(l=H).getPanelContent)==null?void 0:d.call(l);LZ.jumpTo(3);break;case 5:return LZ.yield(_.ce(u.innertubeTransportService,g),6);case 6:F=LZ.yieldResult,((V=F)==null?0:V.trackingParams)&&u.JSC$17939_screenManager.graftServerVe(F.trackingParams),f=(z=F)==null?void 0:z.content,t=(O=F)==null?void 0:O.updatePanelContinuationData;case 3:if(x=(W=f)==null?void 0:W.engagementPanelSectionListRenderer)return LZ.yield(u.controller.showPanel({identifier:L.tag,panelUpdatableFields:{content:x.content,
secondaryHeaderContent:(k=x.header)!=null?k:{},targetId:x.targetId,loggingDirectives:x.loggingDirectives},updatePanelContinuationData:t}),0);LZ.jumpTo(0)}})};
xY[zv]=[_.QY,_.yH,_.QA];var Bi=function(){};
_.A(Bi,Hw);Bi.prototype.resolveCommand=function(g){var u,q,Q;return _.D(function(L){if(L.nextAddress==1)return(u=_.c(g,kZ$))?L.yield(_.Op(),2):L.return();q=L.yieldResult;if(!q)return L.return();var E=q,y=(Q=u)==null?void 0:Q.languageCode,v;(E==null?0:(v=E.isReady)==null?0:v.call(E))&&(y=rNh(E,y))&&E.setAudioTrack(y);_.Wx(L)})};var zj=function(){};
_.A(zj,MJ);_.P=zj.prototype;_.P.getApiPaths=function(){return KSH};
_.P.getExtension=function(g){return _.c(g,_.l1)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14490_getStoreKey=function(g){if((g=this.getExtension(g))&&g.videoId){var u={videoId:g.videoId};g.playlistId&&(u.playlistId=g.playlistId);g.index&&(u.index=g.index);g.params&&(u.params=g.params);return _.Z4("next",u)}};
_.P.JSC$14483_getClientScreen=function(g){var u;return((u=g.contentPlaybackContext)==null?void 0:u.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$14483_buildRequest=function(g,u,q){u.videoId&&(g.videoId=u.videoId);u.playlistId&&(g.playlistId=u.playlistId);u.params&&(g.params=u.params);u.index!==void 0&&(g.playlistIndex=u.index);g.racyCheckOk=!(!q.racyCheckOk&&!u.racyCheckOk);g.contentCheckOk=!!u.contentCheckOk;q.contentPlaybackContext&&(g.autonavState=q.contentPlaybackContext.autonavState,g.playbackContext={vis:q.contentPlaybackContext.vis,lactMilliseconds:q.contentPlaybackContext.lactMilliseconds});q.prefetchPlaybackContext&&(g.context.request||
(g.context.request={}),g.context.request.isPrefetch=!0);_.w("captions_hats_killswitch")||(u=_.qf().getFlag(65),u=u!=null?!u:!1,q=!!_.P9("yt-player-sticky-caption"),g.captionsRequested=u&&q)};
_.P.getRequestConfig=function(g){g=this.JSC$14490_getStoreKey(g);var u;g&&(u={storeStrategy:{storeKey:g}});_.w("web_log_player_watch_next_ticks")&&(u=u||{},u.requestTick="wn_s",u.responseTick="wn_r");return u};
var nz=function(){};
_.A(nz,MJ);nz.prototype.getApiPaths=function(){return KSH};
nz.prototype.getExtension=function(g){return _.c(g,_.fe)};
nz.prototype.JSC$14483_buildRequest=function(g,u){u.token&&(g.continuation=u.token)};var kY=function(){this.innerTubeTransport=_.Bk().resolve(_.QY);this.miniplayerService=_.Bk().resolve(_.RO)};
_.A(kY,Hw);var KeH=function(g){var u;return _.D(function(q){u=_.FR("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;g.JSC$17964_mainAppPlayer=new lp(u);document.addEventListener("yt-navigate-start",g.JSC$17964_pauseOnNavigation.bind(g));_.Wx(q)})},xSf=function(g,u){var q,Q,L,E;
return _.D(function(y){if(y.nextAddress==1){q=new zj;Q=q.JSC$14483_getRequest(u);if(!Q)return y.return(void 0);L=Q.innerTubeRequest;return y.yield(_.wE(g.innerTubeTransport,L,"/youtubei/v1/next"),2)}E=y.yieldResult;var v;var J,f,t=(v=E.contents)==null?void 0:(J=v.twoColumnWatchNextResults)==null?void 0:(f=J.playlist)==null?void 0:f.playlist,e;v=(t==null?0:(e=t.contents)==null?0:e.length)?t:void 0;return y.return(v)})},Bjf=function(g,u){var q,Q,L,E,y;
return _.D(function(v){if(v.nextAddress==1)return q=g.JSC$17964_mainAppPlayer,v.yield(q.api,2);if(v.nextAddress!=3)return Q=v.yieldResult,u.watchCommand?v.yield(xSf(g,u.watchCommand),3):v.return();L=v.yieldResult;if((E=L)==null||!E.contents)return v.return();y=L.contents.map(function(J){var f;return(f=J.playlistPanelVideoRenderer)==null?void 0:f.videoId}).filter(function(J){return!!J}).map(function(J){return{encrypted_id:J}});
Q.updatePlaylist({video:y});_.Wx(v)})},zsb=function(g,u){var q,Q,L;
return _.D(function(E){return E.nextAddress==1?(q=g.JSC$17964_mainAppPlayer,L=(Q=u.playerParams)!=null?Q:"",u.externalVideoId?E.yield(q.loadVideoWithPlayerVars({videoId:u.externalVideoId,audio_only:"1",player_params:L}),2):E.jumpTo(2)):u.watchCommand?E.yield(Bjf(g,u),0):E.jumpTo(0)})};
kY.prototype.JSC$17964_pauseOnNavigation=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1)return u=g.JSC$17964_mainAppPlayer,Q.yield(u.api,2);q=Q.yieldResult;q.pauseVideo();_.Wx(Q)})};
kY.prototype.pauseVideo=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1)return u=g.JSC$17964_mainAppPlayer,Q.yield(u.api,2);q=Q.yieldResult;q.pauseVideo();_.Wx(Q)})};
kY.prototype.playVideo=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1)return u=g.JSC$17964_mainAppPlayer,Q.yield(u.api,2);q=Q.yieldResult;q.playVideo();_.Wx(Q)})};
var nBH=function(g){var u,q;return _.D(function(Q){if(Q.nextAddress==1)return u=g.JSC$17964_mainAppPlayer,Q.yield(u.api,2);q=Q.yieldResult;q.mute();_.Wx(Q)})},kWb=function(g){var u,q;
return _.D(function(Q){if(Q.nextAddress==1)return u=g.JSC$17964_mainAppPlayer,Q.yield(u.api,2);q=Q.yieldResult;q.unMute();_.Wx(Q)})};
kY.prototype.stopVideo=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1)return u=g.JSC$17964_mainAppPlayer,Q.yield(u.api,2);q=Q.yieldResult;q.stopVideo();_.Wx(Q)})};
var S7p=function(g,u){return _.D(function(q){switch(q.nextAddress){case 1:switch(u){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return q.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return q.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return q.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return q.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return q.jumpTo(6)}q.jumpTo(0);break;case 2:return q.yield(g.playVideo(),8);case 8:q.jumpTo(0);break;case 3:return q.yield(g.pauseVideo(),
9);case 9:q.jumpTo(0);break;case 4:return q.yield(g.stopVideo(),10);case 10:q.jumpTo(0);break;case 5:return q.yield(nBH(g),11);case 11:q.jumpTo(0);break;case 6:return q.yield(kWb(g),12);case 12:q.jumpTo(0)}})};
kY.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v;return _.D(function(J){return J.nextAddress==1?(q=_.c(g,wNi),((Q=q)==null?0:Q.newPlaybackParams)||((L=q)==null?0:L.controlAction)?u.JSC$17964_mainAppPlayer?J.jumpTo(2):J.yield(KeH(u),2):J.return()):((E=q)==null?0:E.newPlaybackParams)?(u.miniplayerService.isMiniplayerActive()&&((y=u.miniplayerService.getPlayerElement())==null||y.pause()),v=q.newPlaybackParams,v.externalVideoId||v.externalPlaylistId?J.yield(zsb(u,v),0):J.return()):J.yield(S7p(u,
q.controlAction),0)})};var Sd=function(g){this.JSC$17970_commandHandler=g};
_.A(Sd,Hw);
Sd.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v;return _.D(function(J){if(J.nextAddress==1)return(q=_.c(g,SwW))?J.yield(_.Op(),2):J.return();Q=J.yieldResult;if(!Q)return J.return();var f=Q,t=(L=q)==null?void 0:L.languageCode,e=(E=q)==null?void 0:E.isAutoTranslated;f.getVideoData&&_.TsZ(f).length&&((t=YjS(f,t,e))?f.setOption("captions","track",t):(f.setOption("captions","stickyLoading",{}),f.setOption("captions","track",{})));y=Q.isSubtitlesOn()?_.Ug("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Ug("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");v=_.mc(y,5E3);u.JSC$17970_commandHandler.resolveCommand(v);_.Wx(J)})};
Sd[zv]=[_.Gy];var oD=function(g,u){this.shortsPlayerPromise=g;this.JSC$17974_commandHandler=u};
_.A(oD,Hw);
oD.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f;return _.D(function(t){if(t.nextAddress==1)return(q=_.c(g,$8Z))?t.yield(u.shortsPlayerPromise,2):t.return();Q=t.yieldResult;var e=ODh(Q);e!=null&&e.length||(Q.loadModule("captions"),e=ODh(Q));L=e;if((E=L)==null||!E.length)return y=_.Ug("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),v=_.mc(y),u.JSC$17974_commandHandler.resolveCommand(v),t.return();Q.toggleSubtitles();J=Q.isSubtitlesOn()?_.Ug("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Ug("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");f=_.mc(J);u.JSC$17974_commandHandler.resolveCommand(f);_.Wx(t)})};
oD[zv]=[_.G_a,_.Gy];var Ue=function(g){this.JSC$17977_actionRouter=g;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(u,q){u.triggerAction("yt-dismiss-shopping-timely-shelf-action",q);(u=_.Bk().resolve(_.xv(_.bso)))&&u.dismissFeaturedProductOverlay()}]])};
_.A(Ue,Hw);Ue.prototype.resolveCommand=function(g){var u=this,q,Q,L;return _.D(function(E){q=_.c(g,uC8);if((Q=q)==null||!Q.overlayId)return E.return();L=u.dismissPlayerOverlayActions.get(q.overlayId);if(!L)throw Error("Hi`"+q.overlayId);L(u.JSC$17977_actionRouter,q);_.Wx(E)})};
Ue[zv]=[Fu];var gK=function(g){this.JSC$17981_playerPromise=g};
_.A(gK,Hw);gK.prototype.resolveCommand=function(g){var u=this,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return(q=_.c(g,W_R))?y.yield(u.JSC$17981_playerPromise,2):y.return();Q=y.yieldResult;L=Q.getVideoData().video_id;q.videoId===L&&(E=Number(q.offsetFromVideoStartMilliseconds),E>=0&&Q.seekTo(E/1E3));_.Wx(y)})};
gK[zv]=[_.rv];var oBC=_.x6("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),uf=function(g){this.store=g};
_.A(uf,Hw);
var USt=function(g){var u,q,Q,L;return _.D(function(E){if(E.nextAddress==1)return u=_.FR("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,q=_.FR("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,Q=u||q,g.JSC$17985_mainAppPlayer=new lp(Q),E.yield(g.JSC$17985_mainAppPlayer.api,2);L=E.yieldResult;L.addEventListener("onStateChange",g.JSC$17985_playerStateChangeListener.bind(g));document.addEventListener("yt-page-data-updated",g.JSC$17985_pauseOnNavigation.bind(g));window.addEventListener("state-navigatestart",
g.JSC$17985_pauseOnNavigation.bind(g));_.Wx(E)})};
uf.prototype.JSC$17985_playerStateChangeListener=function(g){switch(g){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"}g$z(this)};
var g$z=function(g){g.store.dispatch(_.u2("sfvAudioItemCurrentlyPlayingEntity",oBC,{key:oBC,externalVideoId:g.externalVideoId,sfvAudioItemPlaybackState:g.playbackState,nowPlayingEntityValue:g.nowPlayingEntityValue}))};
uf.prototype.JSC$17985_pauseOnNavigation=function(){var g=this,u,q,Q,L;return _.D(function(E){if(E.nextAddress==1){if(!g.JSC$17985_mainAppPlayer){var y=new _.Ji("Error: mainAppPlayer is unavailable",g.JSC$17985_mainAppPlayer);_.Zf(y);return E.return()}return E.yield(g.JSC$17985_mainAppPlayer.api,2)}u=E.yieldResult;Q=(q=u)==null?void 0:q.getPlayerState();Q!==1||(L=u)!=null&&L.pauseVideo();_.Wx(E)})};
uf.prototype.playVideo=function(g,u,q){var Q=this,L,E;return _.D(function(y){if(y.nextAddress==1)return y.yield((L=Q.JSC$17985_mainAppPlayer)==null?void 0:L.api,2);E=y.yieldResult;if(!Q.JSC$17985_mainAppPlayer||!E){var v=new _.Ji("Error: mainAppPlayer is unavailable",Q.JSC$17985_mainAppPlayer);_.Zf(v);return y.return()}return y.yield(Q.JSC$17985_mainAppPlayer.loadVideoWithPlayerVars({videoId:Q.externalVideoId,audio_only:"1",start:g/1E3,end:g/1E3+u,player_params:q}),0)})};
uf.prototype.pauseVideo=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1){if(!g.JSC$17985_mainAppPlayer){var L=new _.Ji("Error: mainAppPlayer is unavailable",g.JSC$17985_mainAppPlayer);_.Zf(L);return Q.return()}return Q.yield(g.JSC$17985_mainAppPlayer.api,2)}u=Q.yieldResult;(q=u)==null||q.pauseVideo();_.Wx(Q)})};
uf.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O;return _.D(function(W){if(W.nextAddress==1)return q=_.c(g,tCW),L=(Q=q)==null?void 0:Q.nowPlayingEntityValue,y=(E=q)==null?void 0:E.externalVideoId,e=Number((t=(v=q)==null?void 0:(J=v.defaultStartPoints)==null?void 0:(f=J[0])==null?void 0:f.offsetMs)!=null?t:"0"),F=Number((d=(G=q)==null?void 0:(R=G.defaultStartPoints)==null?void 0:(H=R[0])==null?void 0:(l=H.duration)==null?void 0:l.seconds)!=null?d:"15"),O=(z=
(V=q)==null?void 0:V.playerParams)!=null?z:"",L&&y?u.JSC$17985_mainAppPlayer?W.jumpTo(2):W.yield(USt(u),2):W.return();if(W.nextAddress!=6){if(u.nowPlayingEntityValue&&L===u.nowPlayingEntityValue)return u.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?W.yield(u.pauseVideo(),0):W.yield(u.playVideo(e,F,O),0);u.externalVideoId=y;u.nowPlayingEntityValue=L;u.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return W.yield(u.playVideo(e,F,O),6)}g$z(u);return W.jumpTo(0)})};
uf[zv]=[Yb];var qj=function(g){this.JSC$18003_commandHandler=g};
_.A(qj,Hw);qj.prototype.resolveCommand=function(g,u){var q=this,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return(Q=_.c(g,ol0))?y.yield(_.Op(),2):y.return();L=y.yieldResult;if(!L)return y.return();(E=Kth(L))&&q.JSC$18003_commandHandler.resolveCommand(E,u);_.Wx(y)})};
qj[zv]=[_.Gy];var QM=function(g){this.JSC$18009_commandHandler=g};
_.A(QM,Hw);QM.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v;return _.D(function(J){if(J.nextAddress==1)return(Q=_.c(g,U4Z))?J.yield(_.Op(),2):J.return();L=J.yieldResult;if(!L)return J.return();(E=k1T(L))?q.JSC$18009_commandHandler.resolveCommand(E,u):(y=_.Ug("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),v=_.mc(y),q.JSC$18009_commandHandler.resolveCommand(v));_.Wx(J)})};
QM[zv]=[_.Gy];var L_=function(g){this.JSC$18012_playerPromise=g};
_.A(L_,Hw);L_.prototype.resolveCommand=function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1)return(q=_.c(g,NZb))?L.yield(u.JSC$18012_playerPromise,2):L.return();Q=L.yieldResult;Q.isFullscreen()&&Q.wakeUpControls();_.Wx(L)})};
L_[zv]=[_.rv];var EL=function(g){this.JSC$18015_playerPromise=g};
_.A(EL,Hw);EL.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y;return _.D(function(v){if(v.nextAddress==1){q=_.c(g,TEi);if(!q)return v.return();Q=q.overlayRenderer;return Q?(L=_.c(Q,pyo))?v.yield(u.JSC$18015_playerPromise,3):v.jumpTo(0):v.return()}E=v.yieldResult;E.renderChapterSeekingAnimation(1,_.iR(L.text),(y=L.icon)==null?void 0:y.iconType);_.Wx(v)})};
EL[zv]=[_.rv];var Ph=function(g){this.store=g};
_.A(Ph,Hw);
Ph.prototype.resolveCommand=function(g){var u=this,q,Q,L;return _.D(function(E){if(E.nextAddress==1){q=_.c(g,cm2);if(!q)return E.return();Q="";(L=u.store.getState().collabInviteLink)&&q.id===L.playlistId?Q=L.inviteLinkURL:q.shortUrl&&(Q=q.shortUrl);return Q?E.yield(navigator.clipboard.writeText(Q),3):E.jumpTo(0)}var y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Ug("COPY_LINK_SUCCESS_TOAST")}}}}};_.Bk().resolve(_.Gy).resolveCommand(y);_.Wx(E)})};
Ph[zv]=[wA];var Nj=function(g,u){this.innertubeTransportService=g;this.JSC$18025_commandHandler=u};
_.A(Nj,Hw);Nj.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G;return _.D(function(R){if(R.nextAddress==1)return(Q=_.c(g,_.$l))?R.yield(_.ce(q.innertubeTransportService,g,(L=u)==null?void 0:L.form),2):R.return();(E=R.yieldResult)&&E.errorMetadata&&(y=E,v=_.mc(y.error.message),q.JSC$18025_commandHandler.resolveCommand(v));J=E;if((f=J)==null?0:f.actions)for(t=_.N(J.actions),e=t.next();!e.done;e=t.next())G=e.value,q.JSC$18025_commandHandler.resolveCommand(G);_.Wx(R)})};
Nj[zv]=[_.QY,_.Gy];var sL=function(){};
_.A(sL,Hw);sL.prototype.resolveCommand=function(g){var u;return _.D(function(q){u=_.c(g,pNo);if(!u)return q.return();(new K0a(u)).show();_.Wx(q)})};_.yM=new _.Fv("PLAYLIST_EDIT_CONTROLLER_TOKEN");var vh=function(g,u,q,Q){this.store=g;this.innertubeTransportService=u;this.controller=q;this.JSC$18033_commandHandler=Q};
_.A(vh,Hw);
vh.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k,LZ,sb,Rm,M3,tT;return _.D(function(mJ){if(mJ.nextAddress==1){Q=_.c(g,_.fq);if(!Q)return mJ.return();if(Q.clientActions){L=_.N(Q.clientActions);for(E=L.next();!E.done;E=L.next())y=E.value,q.JSC$18033_commandHandler.resolveCommand(y,u);var hT,Yu=u==null?void 0:(hT=u.form)==null?void 0:hT.element;Yu&&_.hJ(Yu,"yt-dismissible-item-action",Q.clientActions)}return mJ.yield(_.ce(q.innertubeTransportService,g,(v=
u)==null?void 0:v.form),2)}if(J=mJ.yieldResult)J.errorMetadata?(f=J,t=_.mc(f.error.message),q.JSC$18033_commandHandler.resolveCommand(t),"error"in J&&((e=u)==null?0:(G=e.commandController)==null?0:G.onServerError)&&((R=u)==null||(H=R.commandController)==null||H.onServerError(g,J))):(l=u)==null||(d=l.commandController)==null||(V=(F=d).onSuccess)==null||V.call(F,g,J);z=J;((O=z)==null?0:O.collaborationInviteLink)&&Q.playlistId&&(_.w("web_enable_invite_collaborators_link")||_.w("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
q.store.dispatch(_.rF({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:Q.playlistId,inviteLinkUrl:z.collaborationInviteLink}}));((W=z)==null?0:W.redirectEndpoint)&&q.JSC$18033_commandHandler.resolveCommand(z.redirectEndpoint);((x=z)==null?0:(k=x.newHeader)==null?0:k.playlistHeaderRenderer)?uon(q.controller,z.newHeader.playlistHeaderRenderer):((LZ=z)==null?0:(sb=LZ.newHeader)==null?0:sb.musicEditablePlaylistDetailHeaderRenderer)&&uon(q.controller,z.newHeader.musicEditablePlaylistDetailHeaderRenderer);
q.controller.playlistVideoListElement&&((Rm=z)==null?0:(M3=Rm.playlistEditResults)==null?0:(tT=M3[0])==null?0:tT.playlistEditVideoAddedResultData)&&((Yu=q.controller.playlistVideoListElement)==null||Yu.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:z.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Wx(mJ)})};
vh[zv]=[_.Ja,_.QY,_.yM,_.Gy];var DU=function(g,u){this.controller=g;this.JSC$18043_commandHandler=u};
_.A(DU,Hw);DU.prototype.resolveCommand=function(g,u){var q=this,Q,L,E;return _.D(function(y){Q=_.c(g,H8a);q.controller.showRefreshPill&&((L=Q)==null?0:L.command)&&(q.JSC$18043_commandHandler.resolveCommand((E=Q)==null?void 0:E.command,u),q.controller.showRefreshPill=!1);_.Wx(y)})};
DU[zv]=[_.z_,_.Gy];var p_=function(g,u){this.store=g;this.JSC$18047_commandHandler=u||_.ze.instance};
_.A(p_,Hw);p_.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G;return _.D(function(R){Q=_.c(g,rmn);L=q.store.getState().radioButtonGroup;if((E=Q)==null?0:E.command)q.JSC$18047_commandHandler.resolveCommand((y=Q)==null?void 0:y.command,u);else if(L&&((v=Q)==null?void 0:v.formId)===L.currentFormId)for(J=Object.values(L.commandsMap),f=_.N(J),t=f.next();!t.done;t=f.next())e=t.value,(G=_.jy(e))&&q.JSC$18047_commandHandler.resolveCommand(G,u);_.Wx(R)})};
p_[zv]=[_.Ja];var Jp=new _.Fv("USER_PREFS");var jY=function(g){this.JSC$18052_prefCookie=g};
_.A(jY,Hw);jY.prototype.resolveCommand=function(g){var u=this,q;return _.D(function(Q){(q=_.c(g,Lmn))&&typeof q.useListView==="boolean"&&(_.QX(0,155,q.useListView),u.JSC$18052_prefCookie.save());_.Wx(Q)})};
jY[zv]=[Jp];var f_=function(g){this.JSC$18056_prefCookie=g};
_.A(f_,Hw);f_.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y;return _.D(function(v){q=_.c(g,fSH);if((Q=q)==null||!Q.gl)return v.return();L=q.gl;E={persist_gl:"1",gl:L};u.JSC$18056_prefCookie.set("gl",L);u.JSC$18056_prefCookie.save();y=EFM(E);_.Gr(y);_.Wx(v)})};
f_[zv]=[Jp];var Mj=function(g){this.JSC$18060_prefCookie=g};
_.A(Mj,Hw);Mj.prototype.resolveCommand=function(g){var u=this,q,Q;return _.D(function(L){q=_.c(g,Z8H);if(!q)return L.return();Q=!1;q.flagNum&&typeof q.value==="boolean"?(_.QX(0,q.flagNum,q.value),Q=!0):q.key&&typeof q.stringValue==="string"&&(u.JSC$18060_prefCookie.set(q.key,q.stringValue),Q=!0);Q&&u.JSC$18060_prefCookie.save();_.Wx(L)})};
Mj[zv]=[Jp];var tp=new _.Fv("PREF_STORAGE_PROMISE_TOKEN");var eY=function(g){this.JSC$18064_prefStoragePromise=g};
_.A(eY,Hw);eY.prototype.resolveCommand=function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1)return(q=_.c(g,ISi))?L.yield(u.JSC$18064_prefStoragePromise,2):L.return();Q=L.yieldResult;return Q===void 0||q.key===void 0||q.value===void 0?L.return():L.yield(Q.set(q.key,q.value),0)})};
eY[zv]=[tp];var G6=function(g){this.innertubeTransportService=g};
_.A(G6,Hw);G6.prototype.resolveCommand=function(g,u){var q=this,Q,L;return _.D(function(E){(Q=_.c(g,_.Y6i))&&Q&&Q.isFirstRequest&&(_.jF("search_overview_answer"),_.fW("so_rq",void 0,"search_overview_answer"));return E.yield(_.ce(q.innertubeTransportService,g,(L=u)==null?void 0:L.form),0)})};
G6[zv]=[_.QY];var qUx=function(){};
_.A(qUx,Hw);
qUx.prototype.resolveCommand=function(g){var u,q,Q,L,E,y,v,J,f;return _.D(function(t){u=_.c(g,r4i);if((q=u)==null?0:q.sectionIdentifier){if(u.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(L=(Q=document.getElementsByTagName(u.sectionIdentifier))==null?void 0:Q.item(0))L.scrollIntoView({behavior:"smooth"}),(E=Fyf(L))&&E.focus({preventScroll:!0});return t.return()}y=document.querySelector("[section-identifier="+u.sectionIdentifier+"]");v=document.querySelector("[section-identifier="+u.referenceSectionIdentifier+
"]");if(!y)return t.return();J=u.verticalScrollOffsetDp?u.verticalScrollOffsetDp:0;v&&(J-=v.offsetTop);window.scrollTo({top:y.offsetTop+J,behavior:"smooth"});(f=Fyf(y))&&f.focus({preventScroll:!0})}_.Wx(t)})};var $p=function(g){this.JSC$18076_commandHandler=g};
_.A($p,Hw);
$p.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J;return _.D(function(f){if(f.nextAddress==1){q=_.c(g,p_a);if(!q||!q.imageBytes||!navigator.clipboard)return f.return();if(q.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Zf(Error("Ji")),f.return();_.b8(f,2);L=(Q=q)==null?void 0:Q.imageBytes;E=L.replace(/-/g,"+").replace(/_/g,"/");y=CVS(E);v={};J=[new ClipboardItem((v[y.type]=y,v))];return f.yield(navigator.clipboard.write(J),4)}if(f.nextAddress!=2)return q.successCommand&&
u.JSC$18076_commandHandler.resolveCommand(q.successCommand),_.Xx(f,0);_.rt(f);q.errorCommand&&u.JSC$18076_commandHandler.resolveCommand(q.errorCommand);_.Wx(f)})};
$p[zv]=[_.Gy];var RU=function(g,u){this.innertubeTransportService=g;this.JSC$18080_commandHandler=u};
_.A(RU,Hw);RU.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v;return _.D(function(J){if(J.nextAddress==1)return(Q=_.c(g,JF5))?J.yield(_.ce(q.innertubeTransportService,g,(L=u)==null?void 0:L.form),2):J.return();(E=J.yieldResult)&&E.errorMetadata&&Q.onFailureCommand&&q.JSC$18080_commandHandler.resolveCommand(Q.onFailureCommand);y=E;((v=y)==null?0:v.shareCommand)&&q.JSC$18080_commandHandler.resolveCommand(y.shareCommand,u);_.Wx(J)})};
RU[zv]=[_.QY,_.Gy];var wK=function(){};
_.A(wK,Hw);wK.prototype.resolveCommand=function(g){var u,q;return _.D(function(Q){u=_.c(g,RgX);if(!u||!navigator.share)return Q.return();q={url:u.url};try{return Q.return(navigator.share(q))}catch(L){}_.Wx(Q)})};var ch=function(){};
_.A(ch,Hw);ch.prototype.resolveCommand=function(){return _.D(function(g){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Wx(g)})};var Hh=function(g){this.JSC$18090_navigationConfirmationService=g};
_.A(Hh,Hw);Hh.prototype.resolveCommand=function(){var g=this;return _.D(function(u){g.JSC$18090_navigationConfirmationService.cancelPendingNavigation();_.Wx(u)})};
Hh[zv]=[uq];var Ap=function(g){this.JSC$18093_screenManager=g};
_.A(Ap,Hw);Ap.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f;return _.D(function(t){L=(Q=u.form)==null?void 0:Q.event;y=(E=u.form)==null?void 0:E.element;if(!L)throw new _.Ji("Event not passed in when resolving command");v=_.N(L.composedPath());for(J=v.next();!J.done;J=v.next())if(f=J.value,f.tagName==="YT-COPY-LINK-RENDERER")return f.copyUrlToClipboard(),y&&_.$q(q.JSC$18093_screenManager,y),t.return();_.Wx(t)})};
Ap[zv]=[_.QA];var ZU=function(){this.JSC$18097_miniAppClientDataProvider=_.Bk().resolve(_.mK)};
_.A(ZU,Hw);ZU.prototype.resolveCommand=function(){var g=this,u,q;return _.D(function(Q){if(g.JSC$18097_miniAppClientDataProvider.clientData.has("video_id")){var L=g.JSC$18097_miniAppClientDataProvider,E=L.clientData.get("video_id");E&&L.clientData.delete("video_id");u="https://youtube.com/watch?v="+E;q=_.nv(u);if(q===void 0)throw Error("Ki`"+u);_.sP(window,q)}_.Wx(Q)})};var lf=function(){};
_.A(lf,Hw);lf.prototype.resolveCommand=function(){return _.D(function(g){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Wx(g)})};var IU=function(){};
_.A(IU,Hw);IU.prototype.resolveCommand=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield(_.Oqh(window.document.documentElement),2);(g=document.querySelector("mini-app-container-view-model iframe"))&&g.focus();_.Wx(u)})};var C_=function(g){this.JSC$18104_navigationConfirmationService=g};
_.A(C_,Hw);
C_.prototype.resolveCommand=function(){var g=this;return _.D(function(u){var q=g.JSC$18104_navigationConfirmationService,Q=_.Bk().resolve(_.zL),L;if(((L=q.navigateParams)==null?void 0:L.data)!==void 0){var E;_.qK0(Q,q.navigateParams.endpoint,q.navigateParams.data,(E=q.navigateParams.navigationType)!=null?E:1,q.navigateParams.tempData,q.navigateParams.isMiniplayer,void 0,!0);q.navigateParams=void 0;q.customConfirmationCommand=void 0}else q.navigateParams&&(Q.navigate(q.navigateParams.endpoint,q.navigateParams.reload,
q.navigateParams.params,q.navigateParams.tempData,q.navigateParams.requestType,q.navigateParams.createScreenConfig,!0),q.navigateParams=void 0,q.customConfirmationCommand=void 0);_.Wx(u)})};
C_[zv]=[uq];var bf=function(){};
_.A(bf,Hw);bf.prototype.resolveCommand=function(){return _.D(function(g){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Wx(g)})};var dK=function(g){this.JSC$18109_prefStorage=g};
_.A(dK,Hw);dK.prototype.resolveCommand=function(){var g=this,u,q;return _.D(function(Q){switch(Q.nextAddress){case 1:return Q.yield(g.JSC$18109_prefStorage,2);case 2:return(u=Q.yieldResult)?Q.yield(u.set("sfvle",!1),3):Q.return();case 3:return Q.yield(u.set("sfvles",!0),4);case 4:q=_.qf(),_.QX(0,203,!1),_.QX(0,204,!0),q.save(),_.Wx(Q)}})};
dK[zv]=[tp];var FO=function(g){this.JSC$18112_prefStorage=g};
_.A(FO,Hw);FO.prototype.resolveCommand=function(){var g=this,u,q;return _.D(function(Q){switch(Q.nextAddress){case 1:return Q.yield(g.JSC$18112_prefStorage,2);case 2:return(u=Q.yieldResult)?Q.yield(u.set("sfvle",!0),3):Q.return();case 3:return Q.yield(u.set("sfvles",!0),4);case 4:q=_.qf(),_.QX(0,203,!0),_.QX(0,204,!0),q.save(),_.Wx(Q)}})};
FO[zv]=[tp];_.QGn=new _.Fv("SNACKBAR_CONTROLLER_TOKEN");_.LvK=new _.Fv("SHOULD_SHOW_PIVOT_BAR_TOKEN");var mT=function(g){this.controller=g};
_.A(mT,Hw);mT.prototype.resolveCommand=function(g){var u=this,q;return _.D(function(Q){q=_.c(g,Z1$);if(!q)return Q.return();var L=u.controller;L.closeSnackbarFn&&L.closeSnackbarFn();_.Wx(Q)})};
mT[zv]=[_.QGn];var aU=function(g,u){this.controller=g;this.JSC$18119_sheetController=u};
_.A(aU,Hw);aU.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J;return _.D(function(f){Q=_.c(g,Ih8);if(!Q)return f.return();y=OO9(q.JSC$18119_sheetController,(L=u)==null?void 0:(E=L.form)==null?void 0:E.element);v=_.c(Q.content,YMZ);if(!v)return f.return();var t=q.controller,e=v,G=(J=Q.animationStyle)!=null?J:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(t.showSnackbarFn)t.showSnackbarFn({snackbarViewModel:e,animationStyle:G,durationMs:Q.durationSeconds*1E3,target:y});else throw Error("Ej");_.Wx(f)})};
aU[zv]=[_.QGn,_.vy];var VM=function(){};
_.A(VM,Hw);VM.prototype.resolveCommand=function(g){var u;return _.D(function(q){u=_.c(g,lSb);if(!u||typeof u.key!=="string"||typeof u.value!=="string")return q.return();window.localStorage.setItem(u.key,u.value);_.Wx(q)})};var XO=function(g){this.store=g};
_.A(XO,Hw);XO.prototype.resolveCommand=function(g){var u=this,q;return _.D(function(Q){q=_.c(g,lTq);if(!q||!q.stepId||!q.token)return Q.return();u.store.dispatch(wEn({stepId:q.stepId,token:q.token,isSelected:!1}));_.Wx(Q)})};
XO[zv]=[wA];var rK=function(g,u,q){this.innertubeTransportService=g;this.store=u;this.JSC$18131_screenManager=q};
_.A(rK,Hw);
rK.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k,LZ,sb,Rm,M3,tT,mJ;return _.D(function(hT){q=_.c(g,eJW);if(!q||(Q=q.stepIds)==null||!Q.length)return hT.return();L=u.store.getState().talkToRecs;E=[];y=[];v=_.N(q.stepIds);for(J=v.next();!J.done;J=v.next())for(f=J.value,t=void 0,(e=(t=L.stepStates[f])==null?void 0:t.userQuery)&&y.push({userQuery:q.submitEmptyUserQuery?"":e.userQuery,userQueryToken:e.token}),R=G=void 0,H=(R=(G=L.stepStates[f])==null?void 0:
G.selectionStates)!=null?R:{},l=_.N(Object.entries(H)),d=l.next();!d.done;d=l.next())F=d.value,V=_.N(F),z=V.next().value,O=V.next().value,W=z,x=O,x.isSelected&&E.push(W);k={selectedChipTokens:E,userQueries:y,submittedStepIds:q.stepIds};LZ={browseTalk2recsFormData:k};q.browseEndpoint?(sb=g,_.yb(sb,_.kZ,q.browseEndpoint)):q.command&&(sb=q.command);if(!sb)return hT.return();Rm=_.c(sb,_.fe);if((M3=Rm)==null?0:M3.command)if(tT=_.c(Rm.command,MeX))mJ=_.ze.instance,mJ.resolveCommand(Rm.command);return hT.yield(_.ce(u.innertubeTransportService,
sb,{formData:LZ,disableCache:!0}).then(function(Yu){(Yu==null?0:Yu.trackingParams)&&u.JSC$18131_screenManager.graftServerVe(Yu==null?void 0:Yu.trackingParams)}),0)})};
rK[zv]=[_.QY,wA,_.QA];var Wh=function(g){this.store=g};
_.A(Wh,Hw);
Wh.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f;return _.D(function(t){q=_.c(g,ZRh);if(!q||!q.stepId)return t.return();if(q.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")y=(E=(Q=u.store.getState().talkToRecs.stepStates[q.stepId])==null?void 0:(L=Q.userQuery)==null?void 0:L.userQuery)!=null?E:"",v=y.length>0?". ":"",J=y+v+q.selectedText,u.store.dispatch(cKn({stepId:q.stepId,userQueryToken:"",userQuery:J}));else if(q.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")u.store.dispatch(cKn({stepId:q.stepId,userQueryToken:"",
userQuery:(f=q.selectedText)!=null?f:""}));else{if(!q.token)return t.return();u.store.dispatch(wEn({stepId:q.stepId,token:q.token,isSelected:!0}))}_.Wx(t)})};
Wh[zv]=[wA];var T6=function(g){this.store=g};
_.A(T6,Hw);T6.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J;return _.D(function(f){Q=_.c(g,Gn0);if(!Q||!Q.stepId)return f.return();v=(y=(L=u)==null?void 0:(E=L.form)==null?void 0:E.userQuery)!=null?y:"";q.store.dispatch(cKn({stepId:Q.stepId,userQuery:v,userQueryToken:(J=Q.userQueryToken)!=null?J:""}));_.Wx(f)})};
T6[zv]=[wA];_.E$K=new _.Fv("TIMELY_ACTIONS_CONTROLLER_TOKEN");var hp=function(g){this.controller=g};
_.A(hp,Hw);hp.prototype.resolveCommand=function(g){var u=this,q,Q,L,E;return _.D(function(y){q=_.c(g,aVn);if(!q)return y.return();Q=q;L=Q.id;E=Q.isVisible;if(L===void 0||E===void 0)return y.return();var v;(v=u.controller.timelyActionsMap.get(L))==null||v(L,E);_.Wx(y)})};
hp[zv]=[_.E$K];var P09=function(){this.timelyActionsMap=new Map};var Yp=function(g){this.JSC$18157_commandHandler=g};
_.A(Yp,Hw);Yp.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y;return _.D(function(v){q=_.c(g,_.YGi);if(!q)return v.return();E=(Q=q.item)==null?void 0:(L=Q.notificationTextRenderer)==null?void 0:L.successResponseText;if(!E)return v.return();y=_.FJ(E);u.JSC$18157_commandHandler.resolveCommand(y);_.Wx(v)})};
Yp[zv]=[_.Gy];var OL=function(g,u){this.innertubeTransportService=g;this.JSC$18162_playerApiPromise=u};
_.A(OL,Hw);
OL.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f,t;return _.D(function(e){if(e.nextAddress==1)return e.yield(u.JSC$18162_playerApiPromise,2);q=e.yieldResult;Q=q.getOption("captions","track");L=Object.assign({},_.c(g,_.kPa));(y=(E=q.getVideoData())==null?void 0:E.video_id)?L.externalVideoId=y:_.Wk(Error("Li"));if((v=Q)==null?0:v.languageCode)L.languageCode=Q.languageCode;if((J=Q)==null?0:J.kind)L.kind=Q.kind;if((f=Q)==null?0:f.name)L.name=Q.name;t=Object.assign({},g,{getTranscriptEndpoint:L});return e.yield(_.ce(u.innertubeTransportService,
t),0)})};
OL[zv]=[_.QY,_.rv];var K_=function(){};
_.A(K_,Hw);K_.prototype.resolveCommand=function(g){var u,q,Q,L,E,y,v,J;return _.D(function(f){u=_.c(g,XNb);if((q=u)==null||!q.paramKeyValuePairs)return f.return();Q=window.location.href;L=_.N(u.paramKeyValuePairs);for(E=L.next();!E.done;E=L.next())y=E.value,y.key&&y.value&&(v={},Q=_.O_(Q,(v[y.key]=y.value,v)));J=_.Bk().resolve(_.SB);_.ke(J,Q);_.Wx(f)})};_.xp=new _.Fv("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var Bh=function(g,u,q,Q){this.controller=g;this.JSC$18169_playerApiPromise=u;this.innertubeTransportService=q;this.JSC$18169_commandHandler=Q};
_.A(Bh,Hw);
Bh.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z;return _.D(function(O){if(O.nextAddress==1){q=_.c(g,sPi);if((Q=q)==null||!Q.watchEndpoint)return O.return();L=new zj;E=L.JSC$14483_getRequest(q.watchEndpoint);if(!E)return O.return();y=q.watchEndpoint.clickTrackingParams;return O.yield(_.wE(u.innertubeTransportService,E.innerTubeRequest,E.input,y,E.config),2)}if(O.nextAddress!=3)return v=O.yieldResult,O.yield(u.JSC$18169_playerApiPromise,3);J=O.yieldResult;J.updateVideoData({raw_watch_next_response:v});
if(H=(f=v)==null?void 0:(t=f.contents)==null?void 0:(e=t.twoColumnWatchNextResults)==null?void 0:(G=e.results)==null?void 0:(R=G.results)==null?void 0:R.contents)d=(l=H.find(function(W){return W.videoPrimaryInfoRenderer}))==null?void 0:l.videoPrimaryInfoRenderer,((F=d)==null?0:F.subtitle)&&N6Z(u.controller,d.subtitle);
(z=(V=v)==null?void 0:V.onUiReady)&&u.JSC$18169_commandHandler.resolveCommand(z);_.Wx(O)})};
Bh[zv]=[_.xp,_.rv,_.QY,_.Gy];var sGh=function(){this.subtitleChangeCallbackMap=new Map},N6Z=function(g,u){g=_.N(g.subtitleChangeCallbackMap.values());
for(var q=g.next();!q.done;q=g.next())q=q.value,q(u)};var z6=function(g,u){this.JSC$18179_commandHandler=g;this.innertubeTransportService=u};
_.A(z6,Hw);
z6.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z;return _.D(function(O){switch(O.nextAddress){case 1:return(E=(Q=u)==null?void 0:(L=Q.form)==null?void 0:L.element)&&_.$b(E),y=_.qf().get("hl"),v="",_.b8(O,2),O.yield(gUq(y),4);case 4:v=O.yieldResult;_.Xx(O,3);break;case 2:return _.rt(O),E&&_.R1(E),_.Zf(Error("Ni"),"ERROR"),O.return();case 3:J=_.c(g,$pZ);if(!J)return E&&_.R1(E),O.return();(e=(f=J.commerceActionConfig)==null?void 0:(t=f.commandLifeCycleConfig)==null?
void 0:t.onStartCommand)&&q.JSC$18179_commandHandler.resolveCommand(e);return O.yield(_.ce(q.innertubeTransportService,g,{client_data:{paymentsClientToken:{token:v}}}),5);case 5:(G=O.yieldResult)?(E&&_.R1(E),((d=G)==null?0:d.command)&&q.JSC$18179_commandHandler.resolveCommand(G.command),(z=(F=J.commerceActionConfig)==null?void 0:(V=F.commandLifeCycleConfig)==null?void 0:V.onSuccessCommand)&&q.JSC$18179_commandHandler.resolveCommand(z)):(E&&_.R1(E),_.Zf(Error("Oi")),(l=(R=J.commerceActionConfig)==
null?void 0:(H=R.commandLifeCycleConfig)==null?void 0:H.onFailureCommand)&&q.JSC$18179_commandHandler.resolveCommand(l)),_.Wx(O)}})};
z6[zv]=[_.Gy,_.QY];var n_=function(g,u,q){this.store=g;this.JSC$18195_commandHandler=u;this.innertubeTransportService=q};
_.A(n_,Hw);
n_.prototype.resolveCommand=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e;return _.D(function(G){Q=_.c(g,R6Z);L=Q.googlePaymentPayload;Q.onStartCommand&&q.JSC$18195_commandHandler.resolveCommand(Q.onStartCommand);E=L.encryptedPurchaseParams;y=L.ypcLogWalletAnalyticDataEndpoint;v=Q.serializedTransactionFlowLoggingParams;J=L.serializedPaymentsClientParams;f=Q.ypcCujContext;e=QtM(q.innertubeTransportService,(t=u)==null?void 0:t.form,E,y,v,J,f);return G.return(e.then(function(R){u3h(u==null?void 0:u.form,
!1);var H=q.store,l=q.JSC$18195_commandHandler,d=R.integratorData;d==null||d===""||R.error!=null?(String(R.error)==="-1"&&Q.onDismissCommand?l.resolveCommand(Q.onDismissCommand):String(R.error)!=="-1"&&Q.onFailureCommand&&l.resolveCommand(Q.onFailureCommand),String(R.error)!=="-1"&&String(R.error)!=="132"&&_.Zf(Error("Pi"),"ERROR")):(Q.googlePaymentEntityKey&&H.dispatch(_.u2("commerceAcquisitionClientPayloadEntity",Q.googlePaymentEntityKey,{key:Q.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:d,
fundsGuaranteeCallbackClientData:R.integratorClientCallbackData}}})),Q.onSuccessCommand&&l.resolveCommand(Q.onSuccessCommand));_.BX()},function(R){u3h(u==null?void 0:u.form,!1);
_.Zf(R,"ERROR");Q.onFailureCommand&&q.JSC$18195_commandHandler.resolveCommand(Q.onFailureCommand)}))})};
n_[zv]=[Yb,_.Gy,_.QY];var kp=function(g,u){this.JSC$18199_commandHandler=g;this.purchaseManager=u};
_.A(kp,Hw);
kp.prototype.resolveCommand=function(g){var u=this,q,Q,L,E,y,v,J,f,t;return _.D(function(e){q=_.c(g,wyW);((Q=q)==null?0:(L=Q.commandLifeCycleConfig)==null?0:L.onStartCommand)&&u.JSC$18199_commandHandler.resolveCommand(q.commandLifeCycleConfig.onStartCommand);if(!((E=q)==null?0:(y=E.googlePaymentPurchaseManagerPayload)==null?0:y.securePayloadBytes))return _.Zf(Error("Qi"),"ERROR"),e.return();v=w18(_.Ub(q.googlePaymentPurchaseManagerPayload.securePayloadBytes));J=_.qf().get("hl");f=_.A9();BtE(v.serialize(),
J,function(G){f.resolve(G)},function(G){f.reject(G)},f.resolve);
t=f.promise;return e.return(t.then(function(G){if(G)if(G==null?0:G.errorCode){_.Zf(Error("Ri`"+G.errorCode),"ERROR");var R,H;((R=q)==null?0:(H=R.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&u.JSC$18199_commandHandler.resolveCommand(q.commandLifeCycleConfig.onFailureCommand)}else if(G==null?0:G.isCancelled){var l,d;((l=q)==null?0:(d=l.commandLifeCycleConfig)==null?0:d.onCancelCommand)&&u.JSC$18199_commandHandler.resolveCommand(q.commandLifeCycleConfig.onCancelCommand)}else{var F,V;((F=q)==
null?0:(V=F.commandLifeCycleConfig)==null?0:V.onSuccessCommand)&&u.JSC$18199_commandHandler.resolveCommand(q.commandLifeCycleConfig.onSuccessCommand)}},function(G){_.Zf(G,"ERROR");
var R,H;((R=q)==null?0:(H=R.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&u.JSC$18199_commandHandler.resolveCommand(q.commandLifeCycleConfig.onFailureCommand)}))})};
kp[zv]=[_.Gy,zmC];var ykC=function(g,u){this.JSC$18207_commandHandler=g;this.commandAllowlistOverride=u;var q;this.commandAllowlist=(q=this.commandAllowlistOverride)!=null?q:TQF};
ykC.prototype.handleResponse=function(g,u,q){var Q,L=u==null?void 0:(Q=u.config)==null?void 0:Q.command;if(!L||this.commandAllowlist.some(function(E){return!!_.c(L,E)})){u=void 0;
q!==void 0&&(u={form:{element:q}});g.onResponseReceivedCommand&&this.JSC$18207_commandHandler.resolveCommand(g.onResponseReceivedCommand,u);g.onResponseReceivedAction&&this.JSC$18207_commandHandler.resolveCommand(g.onResponseReceivedAction,u);g.onResponseReceivedEndpoint&&this.JSC$18207_commandHandler.resolveCommand(g.onResponseReceivedEndpoint,u);g.command&&this.JSC$18207_commandHandler.resolveCommand(g.command,u);if(g.onResponseReceivedCommands)for(q=_.N(g.onResponseReceivedCommands),Q=q.next();!Q.done;Q=
q.next())this.JSC$18207_commandHandler.resolveCommand(Q.value,u);if(g.onResponseReceivedActions)for(q=_.N(g.onResponseReceivedActions),Q=q.next();!Q.done;Q=q.next())this.JSC$18207_commandHandler.resolveCommand(Q.value,u);if(g.onResponseReceivedEndpoints)for(q=_.N(g.onResponseReceivedEndpoints),Q=q.next();!Q.done;Q=q.next())this.JSC$18207_commandHandler.resolveCommand(Q.value,u);if(g.actions)for(g=_.N(g.actions),q=g.next();!q.done;q=g.next())this.JSC$18207_commandHandler.resolveCommand(q.value,u)}};
ykC[zv]=[_.Gy,_.xv(WjS)];var v$t=new _.Fv("INNERTUBE_TOKEN_SERVICE");var Dix=new _.Fv("SCHEDULER_TOKEN");var p8Z=function(g){this.scheduler=g;g={};this.tokenMap=(g.app={},g.user={},g)};
p8Z.prototype.handleResponse=function(g,u){if(!u)throw Error("Si");var q;if(g=(q=g.responseContext)==null?void 0:q.innertubeTokenJar){if(g.appTokens){var Q,L,E;q=(Q=u.innerTubeRequest.context)==null?void 0:(L=Q.request)==null?void 0:(E=L.innertubeTokenJar)==null?void 0:E.appTokens;JkH(this,g.appTokens,this.tokenMap.app,q)}if(g.userTokens){var y,v,J;u=(y=u.innerTubeRequest.context)==null?void 0:(v=y.request)==null?void 0:(J=v.innertubeTokenJar)==null?void 0:J.userTokens;JkH(this,g.userTokens,this.tokenMap.user,
u)}}};
p8Z.prototype.processContext=function(g){g.request||(g.request={});var u=Object.keys(this.tokenMap.app).length,q=Object.keys(this.tokenMap.user).length;if(u||q)g.request.innertubeTokenJar={},u&&(g.request.innertubeTokenJar.appTokens=[].concat(_.na(Object.values(this.tokenMap.app).flat()))),q&&(g.request.innertubeTokenJar.userTokens=[].concat(_.na(Object.values(this.tokenMap.user).flat())))};
var JkH=function(g,u,q,Q){u=_.N(u);for(var L=u.next(),E={};!L.done;E={token$jscomp$139:void 0},L=u.next()){E.token$jscomp$139=L.value;if(E.token$jscomp$139.type===void 0)throw new _.Ji("InnerTube token has no type",E.token$jscomp$139);if(E.token$jscomp$139.clearTokens)q[E.token$jscomp$139.type]=[];else if(E.token$jscomp$139.value!==void 0){q[E.token$jscomp$139.type]||(q[E.token$jscomp$139.type]=[]);if(Q!==void 0&&Q.length){L=_.N(Q);for(var y=L.next(),v={};!y.done;v={requestToken:void 0},y=L.next())v.requestToken=
y.value,y=q[E.token$jscomp$139.type].findIndex(function(J){return function(f){return f===J.requestToken||(0,_.pH.equals)(f,J.requestToken)}}(v)),y>-1&&q[E.token$jscomp$139.type].splice(y,1)}q[E.token$jscomp$139.type].push(E.token$jscomp$139);
E.token$jscomp$139.maxAgeSeconds&&Number(E.token$jscomp$139.maxAgeSeconds)>0&&g.scheduler.addLowPriorityJob(function(J){return function(){var f=q[J.token$jscomp$139.type].indexOf(J.token$jscomp$139);f>-1&&q[J.token$jscomp$139.type].splice(f,1)}}(E),Number(E.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.Ji("InnerTube token has no value",E.token$jscomp$139);
}};
p8Z[zv]=[Dix];var jGn=new _.Fv("LOCAL_INNERTUBE_ROUTER_TOKEN"),fWK=new _.Fv("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var SY=function(g){this.serviceMap=g};
SY.prototype.shouldPreferLocalResponse=function(g,u){return(g=MpH(this,g))?g.shouldPreferLocalResponse(u):!1};
SY.prototype.localInnertubeResponse=function(g,u){var q=this,Q;return _.D(function(L){return(Q=MpH(q,g))?L.return(Q.localInnertubeResponse(u)):L.return(Promise.reject(Error("Ti")))})};
SY.prototype.canProvideFallbackResponse=function(g,u){return(g=MpH(this,g))?g.canProvideFallbackResponse(u):!1};
SY.prototype.localFallbackInnertubeResponse=function(g,u){var q=this,Q;return _.D(function(L){return(Q=MpH(q,g))?L.return(Q.localFallbackInnertubeResponse(u)):L.return(Promise.reject(Error("Ti")))})};
var MpH=function(g,u){u=_.YB(u);return u?(g=g.serviceMap[u])?g:null:null};
SY[zv]=[fWK];var sc=function(){};
sc.prototype.shouldPreferLocalResponse=function(){return!1};
sc.prototype.localInnertubeResponse=function(){return _.D(function(g){return g.return(Promise.reject(Error("Ui")))})};
sc.prototype.canProvideFallbackResponse=function(){return!0};
sc.prototype.localFallbackInnertubeResponse=function(){var g,u,q;return _.D(function(Q){g=nn("CLOSE_POPUP");u={openPopupAction:EUJ()};q={actions:[g,u]};return Q.return(q)})};var t53=function(g,u){this.JSC$18256_upliftPromise=g;this.store=u};
_.P=t53.prototype;_.P.shouldPreferLocalResponse=function(g){var u=g.videoId,q;if(q=u)q=dJK(this.store.getState().entities,g.videoId);return q&&F4M(this.store.getState().entities,u)?NkJ(this.store.getState().entities,g.playlistId):!1};
_.P.localInnertubeResponse=function(g){var u=this,q;return _.D(function(Q){return(q=u.getPlayerResponse(g))?Q.return(Promise.resolve(q)):Q.return(Promise.reject(Error("Vi")))})};
_.P.canProvideFallbackResponse=function(g){return!!g.videoId};
_.P.localFallbackInnertubeResponse=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(u.JSC$18256_upliftPromise,2);q=u.getPlayerResponse(g);var L;q?L=Q.return(Promise.resolve(q)):L=E3(u.store.getState().entities,g.videoId)?Q.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ap(_.Ug("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:sFF()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
Q.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ap(_.Ug("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Npq()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return L})};
_.P.getPlayerResponse=function(g){return Ppk(this.store.getState().entities,g.videoId)};var NB=function(g,u){this.localPlayerService=g;this.localWatchNextService=u};
NB.prototype.shouldPreferLocalResponse=function(g){var u=g.playerRequest;g=g.watchNextRequest;return!!(u&&this.localPlayerService.shouldPreferLocalResponse(u)&&g&&this.localWatchNextService.shouldPreferLocalResponse(g))};
NB.prototype.localInnertubeResponse=function(g){var u=this,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1){q=g.playerRequest;Q=g.watchNextRequest;if(!q||!Q)throw new _.Ji("Missing streaming request",g);return y.yield(u.localPlayerService.localInnertubeResponse(q),2)}if(y.nextAddress!=3)return L=y.yieldResult,y.yield(u.localWatchNextService.localInnertubeResponse(Q),3);E=y.yieldResult;return y.return({playerResponse:L,watchNextResponse:E})})};
NB.prototype.canProvideFallbackResponse=function(g){var u=g.playerRequest;g=g.watchNextRequest;return!!(u&&this.localPlayerService.canProvideFallbackResponse(u)&&g&&this.localWatchNextService.canProvideFallbackResponse(g))};
NB.prototype.localFallbackInnertubeResponse=function(g){var u=this,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return q=g.playerRequest,Q=g.watchNextRequest,q&&Q?y.yield(u.localPlayerService.localFallbackInnertubeResponse(q),2):y.return(Promise.reject(new _.Ji("Missing streaming request",g)));if(y.nextAddress!=3)return L=y.yieldResult,y.yield(u.localWatchNextService.localFallbackInnertubeResponse(Q),3);E=y.yieldResult;return y.return({playerResponse:L,watchNextResponse:E})})};var LT=function(g){this.JSC$18266_persistentStorePromiseAccessor=g};
LT.prototype.shouldPreferLocalResponse=function(){return!1};
LT.prototype.localInnertubeResponse=function(){return _.D(function(g){return g.return(Promise.reject(Error("Wi")))})};
LT.prototype.canProvideFallbackResponse=function(){return!0};
LT.prototype.localFallbackInnertubeResponse=function(){var g=this,u,q;return _.D(function(Q){return Q.nextAddress==1?Q.yield(g.JSC$18266_persistentStorePromiseAccessor(),2):Q.nextAddress!=3?(u=Q.yieldResult)?Q.yield(u.get("service:guide:fallback"),3):Q.return(Promise.reject(Error("Xi"))):(q=Q.yieldResult)&&_.Tx(q)?Q.return(sth(_.Tx(q))):Q.return(Promise.reject(Error("Yi")))})};var y9=function(){};
y9.prototype.shouldPreferLocalResponse=function(){return!1};
y9.prototype.localInnertubeResponse=function(){return _.D(function(g){return g.return(Promise.reject(Error("Zi")))})};
y9.prototype.canProvideFallbackResponse=function(){return!0};
y9.prototype.localFallbackInnertubeResponse=function(){var g,u,q;return _.D(function(Q){g=nn("CLOSE_POPUP");u={openPopupAction:EUJ()};q={actions:[g,u]};return Q.return(q)})};var Q9=function(){this.urlMap=tph;this.fallbackCommand=_.uo};
Q9.prototype.shouldPreferLocalResponse=function(g){return(g=g.url)?!!ev9(this,g):!1};
Q9.prototype.localInnertubeResponse=function(g){var u=this,q;return _.D(function(Q){return(q=g.url)?Q.return(G$p(g,ev9(u,q))):Q.return(Promise.reject(Error("$i")))})};
Q9.prototype.canProvideFallbackResponse=function(){return!0};
Q9.prototype.localFallbackInnertubeResponse=function(g){var u=this,q,Q,L,E,y,v,J;return _.D(function(f){q=g.url;if(!q)return f.return(G$p(g,u.fallbackCommand));if(Q=ev9(u,q))return f.return(G$p(g,Q));L=void 0;E=_.YB(q);E==="/watch"&&(y=_.U7(q,"v"))&&(J=(v=_.U7(q,"list"))!=null?v:void 0,L=_.m7(y,J));L||(L=u.fallbackCommand);return f.return(G$p(g,L))})};
var ev9=function(g,u){if(u)return g.urlMap[_.KO(u)]},G$p=function(g,u){u&&g.parentTrackingParams&&(u.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:g.parentTrackingParams}},u.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:u})};var Ec=function(g,u,q){this.JSC$18277_upliftPromise=g;this.store=u;this.JSC$18277_persistentStorePromiseAccessor=q};
Ec.prototype.shouldPreferLocalResponse=function(){return!1};
Ec.prototype.localInnertubeResponse=function(){return _.D(function(g){return g.return(Promise.reject(Error("aj")))})};
Ec.prototype.canProvideFallbackResponse=function(){return!0};
Ec.prototype.localFallbackInnertubeResponse=function(){var g=this;return _.D(function(u){return u.return($ix(g))})};
var $ix=function(g){var u,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(Wb(g.JSC$18277_upliftPromise,g.store),2);u=Q.yieldResult;q={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[P_T(u)]}}}};return Q.return(Rvn(g,q))})},Rvn=function(g,u){var q,Q;
return _.D(function(L){if(L.nextAddress==1)return L.yield(g.JSC$18277_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return q=L.yieldResult,L.yield(hZ(q),3);Q=L.yieldResult;return L.return({responseContext:{},contents:u,topbar:Q})})};var uA=function(g,u,q){this.JSC$18284_upliftPromise=g;this.store=u;this.JSC$18284_persistentStorePromiseAccessor=q};
uA.prototype.shouldPreferLocalResponse=function(g){var u=g.videoId;return u&&dJK(this.store.getState().entities,u)&&F4M(this.store.getState().entities,u)?NkJ(this.store.getState().entities,g.playlistId):!1};
uA.prototype.localInnertubeResponse=function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1)return(q=g.videoId)?L.yield(u.JSC$18284_upliftPromise,2):L.return(Promise.reject(Error("bj")));if(L.nextAddress!=3)return L.yield(w8H(u,g,q),3);Q=L.yieldResult;return L.return(ckp(u,Q,q))})};
uA.prototype.canProvideFallbackResponse=function(g){return g.videoId?!0:!1};
uA.prototype.localFallbackInnertubeResponse=function(g){var u=this,q,Q,L,E;return _.D(function(y){switch(y.nextAddress){case 1:return(q=g.videoId)?y.yield(u.JSC$18284_upliftPromise,2):y.return(Promise.reject(Error("bj")));case 2:return y.yield(w8H(u,g,q),3);case 3:Q=y.yieldResult;if(E3(u.store.getState().entities,q)){y.jumpTo(4);break}return y.yield(Wb(u.JSC$18284_upliftPromise,u.store),5);case 5:return L=y.yieldResult,y.return(HHh(Q,L));case 4:return dJK(u.store.getState().entities,q)&&F4M(u.store.getState().entities,
q)?y.return(ckp(u,Q,q)):(E={title:_.ap(_.Ug("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:sFF()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},y.return(HHh(Q,E)))}})};
var w8H=function(g,u,q){var Q,L,E,y,v;return _.D(function(J){if(J.nextAddress==1)return Q=u.playlistId,L=_.m7(q,Q),J.yield(g.JSC$18284_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return E=J.yieldResult,J.yield(hZ(E),3);y=J.yieldResult;v={responseContext:{},currentVideoEndpoint:L,topbar:y};return J.return(v)})},ckp=function(g,u,q){if(g=E3(g.store.getState().entities,q)){var Q;
q=g.videoEntity;var L,E={title:VX(q.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.XS((Q=q.localizedStrings)==null?void 0:Q.viewCount),viewCount:_.XS((L=q.localizedStrings)==null?void 0:L.viewCount)}}};q.publishedTimestampMillis&&(E.dateText=_.XS(l5K(new Date(Number(q.publishedTimestampMillis)))));Q={videoPrimaryInfoRenderer:E};L=g.videoEntity;g=g.channelEntity;g={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:VX(_.Ug("SHOW_MORE",void 0,"Show more")),
showLessText:VX(_.Ug("SHOW_LESS",void 0,"Show less")),description:L.formattedDescription,owner:{videoOwnerRenderer:{title:VX(g.title),thumbnail:g.avatar}}}};u.contents={twoColumnWatchNextResults:{results:{results:{contents:[Q,g]}}}}}return u},HHh=function(g,u){g.contents={singleColumnWatchNextResults:{results:{results:{contents:[P_T(u)]}}}};
return g};var PK=function(g,u,q){this.JSC$18289_upliftPromise=g;this.store=u;this.JSC$18289_persistentStorePromiseAccessor=q};
PK.prototype.shouldPreferLocalResponse=function(){return!1};
PK.prototype.localInnertubeResponse=function(){return _.D(function(g){return g.return(Promise.reject(Error("cj")))})};
PK.prototype.canProvideFallbackResponse=function(){return!0};
PK.prototype.localFallbackInnertubeResponse=function(){var g=this,u,q,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:return E.yield(g.JSC$18289_persistentStorePromiseAccessor(),2);case 2:return u=E.yieldResult,E.yield(hZ(u),3);case 3:return q=E.yieldResult,Q={responseContext:{},topbar:q},E.yield(g.JSC$18289_upliftPromise,4);case 4:return E.yield(Wb(g.JSC$18289_upliftPromise,g.store),5);case 5:return L=E.yieldResult,Q.watchStatus={backgroundPromoRenderer:L},E.return(Q)}})};var AkK=new _.Fv("ENDPOINT_MAP"),ZHh=new _.Fv("WATCH_ENDPOINT_MAP"),lW9=new _.Fv("REEL_ENDPOINT_MAP");var jt3=/^[a-zA-Z0-9_\-]{11}$/;var fDb=_.DX(function(){var g,u;return(u=(g=window).matchMedia)==null?void 0:u.call(g,"(prefers-reduced-motion: reduce)").matches});var IWb=_.DX(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 g=_.ri("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");g||(g=_.oG("VIDEO"),_.xQ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
g));return!!(g&&g.canPlayType&&g.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var iHh=XMLHttpRequest.prototype.fetch,C0x=iHh&&iHh.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Ok?!0:!1;var oU=function(g){this.JSC$18300_storeWithEntities=g};
_.A(oU,MJ);_.P=oU.prototype;_.P.getApiPaths=function(){return JA0};
_.P.getExtension=function(g){return _.c(g,_.l1)||_.c(g,_.g$)||_.c(g,L45)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14490_getStoreKey=function(g){if((_.w("kevlar_cache_on_ttl_player")||_.w("mweb_enable_shorts_innertube_player_prefetch")||_.w("mweb_use_new_history_manager")||_.w("web_shorts_prefetch_service_enabled"))&&(g=this.getExtension(g))&&g.videoId){var u={videoId:g.videoId};g.playlistId&&(u.playlistId=g.playlistId);g.playerParams&&(u.params=g.playerParams);return _.Z4("player",u)}};
_.P.JSC$14483_getClientScreen=function(g){var u;return((u=g.contentPlaybackContext)==null?void 0:u.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$14483_buildRequest=function(g,u,q){if(_.w("enable_interstitial_entity_check")){var Q=this.JSC$18300_storeWithEntities;if(u.videoId)for(var L=_.N(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),E=L.next();!E.done;E=L.next()){E=E.value;var y;var v=void 0,J=void 0,f=u.videoId,t=E;(y=Q)?(f=_.x6(f+t,"interstitialInteractionStateEntity"),y=(v=(J=_.BC(y.getState().entities,"interstitialInteractionStateEntity",f))==null?void 0:J.primaryButtonClicked)!=null?v:!1):y=!1;if(y)switch(E){case "CONTENT_CHECK_REQUIRED":u.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":u.racyCheckOk=!0}}}u.videoId&&(g.videoId=u.videoId);u.playlistId&&(g.playlistId=u.playlistId);u.index!==void 0&&(g.playlistIndex=u.index+1);u.playerParams&&(g.params=u.playerParams);"startTimeSeconds"in u&&u.startTimeSeconds&&(_.w("enable_player_request_builder_start_time_floor")?g.startTimeSecs=Math.floor(u.startTimeSeconds):g.startTimeSecs=u.startTimeSeconds);q.contentPlaybackContext&&(g.playbackContext={contentPlaybackContext:q.contentPlaybackContext});q.prefetchPlaybackContext&&
(g.playbackContext=Object.assign({},g.playbackContext,{prefetchPlaybackContext:q.prefetchPlaybackContext}),g.context.request||(g.context.request={}),g.context.request.isPrefetch=!0);g.playbackContext||(g.playbackContext={});Q=IWb();g.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!Q,supportXhr:C0x};q.overrideMutedAtStart&&(g.overrideMutedAtStart=q.overrideMutedAtStart);g.racyCheckOk=!!u.racyCheckOk;g.contentCheckOk=!!u.contentCheckOk;!_.w("captions_prefs_killswitch")&&(q=(q=_.P9("yt-player-caption-language-preferences"))?
q:[],q==null?0:q.length)&&(g.captionParams={viewerSelectedCaptionLangs:q})};
_.P.getRequestConfig=function(g){g=this.JSC$14490_getStoreKey(g);var u;g&&(u={storeStrategy:{storeKey:g}});_.w("web_log_player_watch_next_ticks")&&(u=u||{},u.requestTick="ps_s",u.responseTick="ps_r");return u};
oU[zv]=[Yb];var UL=function(g,u){this.playerRequestBuilder=g;this.watchNextRequestBuilder=u};
_.A(UL,MJ);UL.prototype.getApiPaths=function(){return q$i};
UL.prototype.getExtension=function(g){return _.c(g,_.l1)};
UL.prototype.isNavigationCommand=function(){return!0};
UL.prototype.JSC$14483_buildRequest=function(g,u,q){g.playerRequest={};this.playerRequestBuilder.JSC$14483_buildRequest(g.playerRequest,u,q);if(_.w("web_streaming_watch")||_.w("mweb_streaming_watch"))g.watchNextRequest={},this.watchNextRequestBuilder.JSC$14483_buildRequest(g.watchNextRequest,u,q)};
UL[zv]=[oU,zj];var bHh;_.gz=new _.Fv("SHORTS_CONTROLLER_TOKEN");bHh=new _.Fv("SHORTS_STATE_STORE_TOKEN");var uy=function(g,u){var q=_.UT.apply(2,arguments);g=g===void 0?0:g;_.Ji.call(this,u,q);this.errorType=g;Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(uy,_.Ji);var dif,Fvx,mib,Gmq,HK,d3$,X8L,VpH,YUp,T6b,WvC;dif=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(g){return g+"="}).join("|"));
Fvx=RegExp(".*\\?.*playnext=1.*");mib=function(g,u,q,Q,L,E){this.watchEndpointMap=g;this.reelWatchEndpointMap=u;this.innerTubeTransportService=q;this.fetchPbj=Q;this.ephemeralStore=L;this.reloadOnPlayerFailure=E===void 0?!0:E};
_.aWC=function(g,u){var q=_.S8("web_pbj_log_warning_rate",0);q=q>0&&Math.random()<q;var Q;if((Q=_.c(u.commandMetadata,_.S_))==null||!Q.rootVe)return q&&_.Io(Error("hj")),!1;var L;Q=(L=_.c(u.commandMetadata,_.S_))==null?void 0:L.url;if(!Q)return q&&_.Io(Error("ij")),!1;if(Fvx.test(Q))return!0;if(dif.test(Q))return q&&_.Io(Error("jj`"+Q)),!1;if(_.c(u,_.l1)){if(!(g.watchEndpointMap.watchNext&&g.watchEndpointMap.player||_.w("kevlar_fetch_initial_data_op_watch_client")))return q&&_.Io(Error("dj")),!1;
g=_.S8("web_pbj_log_warning_rate",0);g=g>0&&Math.random()<g;_.c(u,_.l1)?p7u(u)?u=!0:(g&&_.Io(Error("ej")),u=!1):(g&&_.Io(Error("dj")),u=!1);return u}if(_.c(u,_.g$))return JIM(u);if(_.c(u,_.M4))return!0;g=_.wv(g.innerTubeTransportService,u);!g&&q&&_.Zf(Error("kj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(u)});return g};
Gmq=function(g,u,q,Q,L,E){u={url:u};if(q==null?0:q.itct)u.parentTrackingParams=q.itct;var y=_.dr(w4a);return _.wE(g.innerTubeTransportService,u,y).then(function(v){(v=v.endpoint)||(v=_.uo);(q==null?0:q.itct)&&v&&!v.trackingParams&&(v.trackingParams=q.itct);var J=o7(v);return HK(g,v,q,Q,J,L,E)})};
HK=function(g,u,q,Q,L,E,y,v){v=v===void 0?{}:v;if(g.fetchPbj&&!_.aWC(g,u)&&!_.w("force_one_platform")){var J=g.fetchPbj(u),f=_.BX(J.then(function(x){if(!x)throw Error("lj");y(f)||E(u,x);return x}));
return f}var t,e,G={rootVe:(t=_.c(u.commandMetadata,_.S_))==null?void 0:t.rootVe,url:(e=_.c(u.commandMetadata,_.S_))==null?void 0:e.url,endpoint:u,page:L};if(_.c(u,_.l1)){var R,H={contentPlaybackContext:_.K3(q,(R=_.c(u.commandMetadata,_.S_))==null?void 0:R.url,Q)},l=_.A9(),d,F=(d=g.watchEndpointMap.player)==null?void 0:d().JSC$14490_getStoreKey(u);d=F!==void 0&&((J=g.ephemeralStore)==null?void 0:J.has(F));(_.w("web_streaming_watch")||_.w("mweb_streaming_watch"))&&window.TextDecoderStream&&!d?(J=ow$(g.innerTubeTransportService,
u,H,function(x){!G.response&&x.content&&(G.response=x.content);!G.playerResponse&&x.player&&(G.playerResponse=x.player);E(u,G)}),F=FBK(u),F.length&&(G.preconnect=F,E(u,G)),VpH(J,l,G).catch(function(x){x instanceof uy&&x.errorType===2&&_.w("web_streaming_watch_fallback")&&X8L(g,u,H,G,E,y,l)})):X8L(g,u,H,G,E,y,l);
return l.promise}if(_.c(u,_.g$)){var V;if(((V=_.c(u,_.g$))==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var z=_.A9();_.rkp(_.Bk().resolve(_.gz),u).then(function(x){WvC(g,q,Q,L,E,z,x)});
return z.promise}J=_.BX();d={contentPlaybackContext:_.K3(q,(F=_.c(u.commandMetadata,_.S_))==null?void 0:F.url,Q)};(F=g.reelWatchEndpointMap.player)&&(F=F().JSC$14483_getRequest(u,d))&&(J=_.wE(g.innerTubeTransportService,F.innerTubeRequest,F.input,u.clickTrackingParams,F.config));F=_.BX();(v=g.reelWatchEndpointMap.reelItemWatch)&&(v=v().JSC$14483_getRequest(u))&&(F=_.wE(g.innerTubeTransportService,v.innerTubeRequest,v.input,u.clickTrackingParams,v.config));v=_.BX();(t=g.reelWatchEndpointMap.reelWatchSequence)&&
_.c(u,_.g$).sequenceParams&&(d=t().JSC$14483_getRequest(u,d))&&(v=_.wE(g.innerTubeTransportService,d.innerTubeRequest,d.input,u.clickTrackingParams,d.config));d=_.BX(G);t=_.A9();T6b(u,d,J,F,v,E,y,t);return t.promise}var O;if(_.c(u,x2b)&&((O=_.c(u.commandMetadata,_.S_))==null?0:O.url))return J=z_Z(_.X_(jp().location.href),_.X_(_.c(u.commandMetadata,_.S_).url)).toString(),Gmq(g,J,q,Q,E,function(){return!1});
if(_.c(u,_.M4))return E(u,G),_.BX(G);if(_.wv(g.innerTubeTransportService,u)){J=Object.assign({},{tempData:q,disableCache:q.disableCache},v);var W=_.ce(g.innerTubeTransportService,u,J).then(function(x){G.response=x;y(W)||E(u,G);return G});
return W}return _.BX(G)};
_.hvC=function(g,u,q,Q){if(_.c(u,_.l1)||_.c(u,_.g$)&&(_.w("mweb_enable_shorts_innertube_player_prefetch")||_.w("kevlar_enable_shorts_prefetch_in_sequence"))||_.c(u,L45)&&_.w("web_enable_prefetching_videos_on_home")){var L,E={contentPlaybackContext:_.K3(q,(L=_.c(u.commandMetadata,_.S_))==null?void 0:L.url,Q),prefetchPlaybackContext:tNq(q)},y,v,J;if(((y=_.c(u,_.l1))==null?void 0:(v=y.watchEndpointSupportedPrefetchConfig)==null?void 0:(J=v.prefetchHintConfig)==null?void 0:J.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(q=
g.watchEndpointMap.watchNext)if(E=q().JSC$14483_getRequest(u,E))return Promise.resolve(_.wE(g.innerTubeTransportService,E.innerTubeRequest,E.input,void 0,E.config).then(function(e){return e}))}else if(q=g.watchEndpointMap.player)if(E=q().JSC$14483_getRequest(u,E))return Promise.resolve(_.wE(g.innerTubeTransportService,E.innerTubeRequest,E.input,void 0,E.config).then(function(e){return e}))}else if(_.wv(g.innerTubeTransportService,u)){var f={tempData:q},t=xea(g.innerTubeTransportService,u);
return t?new Promise(function(e,G){var R,H;return _.D(function(l){if(l.nextAddress==1)return l.yield(t,2);if(l.nextAddress!=4)return R=l.yieldResult,R.JSC$14490_getStoreKey(u,f)?l.yield(_.ce(g.innerTubeTransportService,u,f),4):(G(new _.Ji("Prefetching request builder with no store key.",u)),l.jumpTo(0));H=l.yieldResult;e(H);_.Wx(l)})}):Promise.reject(new _.Ji("Prefetching unregistered request builder.",u))}return Promise.reject(new _.Ji("No request builder available to prefetch endpoint.",u))};
d3$=function(g,u){var q,Q,L;if(_.c(u,_.l1)){var E=g.watchEndpointMap.watchNext;E&&(q=E());(g=g.watchEndpointMap.player)&&(Q=g())}else if(_.c(u,_.g$))(E=g.reelWatchEndpointMap.reelItemWatch)&&(q=E()),(E=g.reelWatchEndpointMap.player)&&(Q=E()),(g=g.reelWatchEndpointMap.reelWatchSequence)&&(L=g());else{a:{g=wZm(u,g.innerTubeTransportService.endpointMap);if(g!==void 0)if(typeof g.then==="function")_.Zf(new _.Ji("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",u));else break a;
g=void 0}g&&(q=g)}var y,v,J;return{content:(y=q)==null?void 0:y.JSC$14490_getStoreKey(u),player:(v=Q)==null?void 0:v.JSC$14490_getStoreKey(u),reelSequence:(J=L)==null?void 0:J.JSC$14490_getStoreKey(u)}};
X8L=function(g,u,q,Q,L,E,y){var v=_.BX(),J=g.watchEndpointMap.player;_.w("web_streaming_player")&&(J=t9(UL));J&&(J=J().JSC$14483_getRequest(u,q))&&(v=_.wE(g.innerTubeTransportService,J.innerTubeRequest,J.input,u.clickTrackingParams,J.config));J=_.BX();var f=g.watchEndpointMap.watchNext;f&&(q=f().JSC$14483_getRequest(u,q))&&(J=_.wE(g.innerTubeTransportService,q.innerTubeRequest,q.input,u.clickTrackingParams,q.config));Q=_.BX(Q);YUp(g,u,Q,v,J,L,E,y)};
VpH=function(g,u,q){var Q;return _.D(function(L){if(L.nextAddress==1)return L.yield(g,2);_.w("web_streaming_watch_delay_200")||_.w("web_streaming_watch_delay_400")?(Q=_.w("web_streaming_watch_delay_200")?200:400,setTimeout(function(){u.resolve(q)},Q)):u.resolve(q);
_.Wx(L)})};
YUp=function(g,u,q,Q,L,E,y,v){var J,f,t,e,G;_.D(function(R){switch(R.nextAddress){case 1:return R.yield(q,2);case 2:J=R.yieldResult;if(y(v.promise))return v.resolve(J),R.return();E(u,J);f=FBK(u);if(!f.length){R.jumpTo(3);break}return R.yield(q,4);case 4:J.preconnect=f,E(u,J);case 3:return _.b8(R,5),R.yield(Q,7);case 7:t=R.yieldResult;_.Xx(R,6);break;case 5:return e=_.rt(R),v.reject(e),R.return();case 6:if(t===void 0&&g.reloadOnPlayerFailure)return J.reload=!0,E(u,J),v.resolve(J),R.return();if(y(v.promise))return v.resolve(J),
R.return();J.playerResponse=t;E(u,J);(_.w("web_watch_stop_scheduler_on_player_response")||_.w("mweb_watch_stop_scheduler_on_player_response"))&&NFX();_.b8(R,8);return R.yield(L,10);case 10:G=R.yieldResult;_.Xx(R,9);break;case 8:_.rt(R);case 9:if(G===void 0)return J.response={responseContext:{}},v.resolve(J),R.return();if(y(v.promise))return v.resolve(J),R.return();J.response=G;E(u,J);v.resolve(J);_.Wx(R)}})};
T6b=function(g,u,q,Q,L,E,y,v){var J,f,t,e,G,R;_.D(function(H){switch(H.nextAddress){case 1:return H.yield(u,2);case 2:J=H.yieldResult;if(y(v.promise))return v.resolve(J),H.return();E(g,J);f=FBK(g);if(!f.length){H.jumpTo(3);break}return H.yield(u,4);case 4:J.preconnect=f,E(g,J);case 3:return _.b8(H,5),H.yield(q,7);case 7:t=H.yieldResult;_.Xx(H,6);break;case 5:return e=_.rt(H),v.reject(e),H.return();case 6:if(t===void 0)return J.reload=!0,E(g,J),v.resolve(J),H.return();if(y(v.promise))return v.resolve(J),
H.return();J.playerResponse=t;E(g,J);(_.w("web_shorts_stop_scheduler_on_player_response")||_.w("mweb_shorts_stop_scheduler_on_player_response"))&&NFX();_.b8(H,8);return H.yield(Q,10);case 10:G=H.yieldResult;_.Xx(H,9);break;case 8:_.rt(H);case 9:if(G===void 0)return J.response={responseContext:{}},v.resolve(J),H.return();if(y(v.promise))return v.resolve(J),H.return();J.response=G;E(g,J);_.b8(H,11);return H.yield(L,13);case 13:R=H.yieldResult;_.Xx(H,12);break;case 11:_.rt(H);case 12:if(y(v.promise))return v.resolve(J),
H.return();R&&(J.reelWatchSequenceResponse=R);E(g,J);v.resolve(J);_.Wx(H)}})};
WvC=function(g,u,q,Q,L,E,y){var v,J,f,t,e,G;_.D(function(R){if((v=y)==null||!v.replacementEndpoint)return E.reject(),R.return();J=y.replacementEndpoint;(f=_.c(J,_.g$))?(y.sequenceContinuation&&(f.sequenceParams=y.sequenceContinuation),t=_.Bk().resolve(_.gz),e=f.sequenceParams,OHZ(t,J)&&delete f.sequenceParams,G=HK(g,J,u,q,Q,L,function(){return!1}),G.then(function(H){return _.D(function(l){if(l.nextAddress==1)return Kvx(t,{reelWatchEndpoint:{sequenceParams:e}},H),l.yield(0,2);
E.resolve(H);_.Wx(l)})})):E.reject();
_.Wx(R)})};
mib[zv]=[ZHh,lW9,_.QY,_.xv(hia),_.xv(_.xe)];var xiK=function(){var g=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return g.sequenceMap}}},Ue$=function(g,u,q){var Q,L=(Q=u.config)==null?void 0:Q.sequenceStrategy;
if(!L)return q();g.sequenceMap.has(L.sequenceKey)||g.sequenceMap.set(L.sequenceKey,[]);g=g.sequenceMap.get(L.sequenceKey);switch(L.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return B6t(g,u,q);case "REQUEST_SEQUENCE_TYPE_REPLACE":return zvL(g,u,q);default:throw new _.Ji("Request could not be sequenced",u);}},B6t=function(g,u,q){var Q,L,E;
return _.D(function(y){g.length>0?(L=g[g.length-1],Q=L.responsePromise.then(function(){return q()})):Q=q();
E={request:u,responsePromise:Q};g.push(E);n$K(g,E);return y.return(E.responsePromise)})},zvL=function(g,u,q){q=q();
if(g.length>0)for(var Q=_.N(g),L=Q.next();!L.done;L=Q.next())L.value.responsePromise=q;var E={request:u,responsePromise:q};g.push(E);n$K(g,E);return Promise.resolve().then(function(){return g.indexOf(E)>0?E.responsePromise.then(function(y){return Object.assign({},y,{sequenceMetaData:{skipProcessing:!0}})}):E.responsePromise})},n$K=function(g,u){u.responsePromise.then(function(){var q=g.indexOf(u);
q>-1&&g.splice(q,1)})};var k$h=new _.Fv("REQUEST_SEQUENCING");var qX=function(){};
_.A(qX,MJ);qX.prototype.getApiPaths=function(){return[]};
qX.prototype.getExtension=function(g){return _.c(g,m60)};
qX.prototype.JSC$14483_buildRequest=function(g,u){g.recaptchaToken=u.recaptchaToken};
qX.prototype.getApiUrl=function(){return"/das_captcha"};var Qf=function(){};
_.A(Qf,MJ);Qf.prototype.getApiPaths=function(){return ww8};
Qf.prototype.getExtension=function(g){return _.c(g,JHa)};
Qf.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.createBackstagePostParams&&(g.createBackstagePostParams=u.createBackstagePostParams);q.comment_text&&(g.commentText=q.comment_text);if(q.attached_video_id)g.videoAttachment={videoId:q.attached_video_id};else if(q.image_poll_options)g.pollAttachmentData={options:q.image_poll_options};else if(q.poll_options)g.pollAttachment={choices:q.poll_options};else if(q.quiz_options)g.quizAttachmentData={options:q.quiz_options};else if(q.image_blob_id)g.imageAttachment=
{encryptedBlobId:q.image_blob_id},q.source_video_id&&(g.imageAttachment.sourceExternalVideoId=q.source_video_id),q.image_preview_coordinates&&(g.imageAttachment.previewCoordinates=JSON.parse(q.image_preview_coordinates));else if(q.images_data)g.imagesAttachment={imagesData:q.images_data};else if(q.clip_external_video_id!==void 0||q.clip_offset_ms!==void 0||q.clip_duration_ms!==void 0){var Q,L,E,y,v;g.clipAttachment={externalVideoId:(E=q.clip_external_video_id)!=null?E:"",offsetMs:(y=(Q=q.clip_offset_ms)==
null?void 0:Q.toString())!=null?y:"",durationMs:(v=(L=q.clip_duration_ms)==null?void 0:L.toString())!=null?v:""}}else q.shared_post_id&&(g.sharedPostAttachment={postId:q.shared_post_id});q.tagged_video_id&&(g.postCreationData={taggedVideoId:q.tagged_video_id});q.access_restrictions&&(typeof q.access_restrictions==="number"&&(u=q.access_restrictions,g.accessRestrictions={restriction:u!==1&&u===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof q.access_restrictions==="string"&&
(g.accessRestrictionsParams=q.access_restrictions));q.scheduled_publish_time_sec&&(g.scheduledPublishTimeSec=q.scheduled_publish_time_sec.toString())};var Lt=function(){};
_.A(Lt,MJ);Lt.prototype.getApiPaths=function(){return ima};
Lt.prototype.getExtension=function(g){return _.c(g,fC0)};
Lt.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.decorateMessageParams&&(g.params=u.decorateMessageParams);q.text&&(g.text=q.text)};var EB=function(){};
_.A(EB,MJ);EB.prototype.getApiPaths=function(){return kVW};
EB.prototype.getExtension=function(g){return _.c(g,jhn)};
EB.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;q.video_id&&(g.videoId=q.video_id)};var Pu=function(){};
_.A(Pu,MJ);Pu.prototype.getApiPaths=function(){return u82};
Pu.prototype.getExtension=function(g){return _.c(g,_.kJ)};
Pu.prototype.JSC$14483_buildRequest=function(g,u,q){q.suggestions_query&&(g.input=q.suggestions_query)};var NX=function(){};
_.A(NX,MJ);NX.prototype.getApiPaths=function(){return m7R};
NX.prototype.getExtension=function(g){return _.c(g,frR)};
NX.prototype.JSC$14483_buildRequest=function(g,u,q){q.comment_text!==void 0&&(g.commentText=q.comment_text);q.scheduled_publish_time_sec&&(g.scheduledPublishTimeSec=q.scheduled_publish_time_sec.toString());g.updateBackstagePostParams=u.updateBackstagePostParams};var sB=function(){};
_.A(sB,MJ);sB.prototype.getApiPaths=function(){return d_};
sB.prototype.getExtension=function(g){return _.c(g,_.fe)};
sB.prototype.JSC$14483_buildRequest=function(g,u,q){q.formData&&(g.formData=q.formData);u.token?g.continuation=u.token:u.continuationTokenKey&&(q=_.bR().getState(),u=_.BC(q.entities,"continuationTokenEntity",u.continuationTokenKey))&&(g.continuation=String(u.continuationToken))};
var SUH=function(){};
_.A(SUH,MJ);_.P=SUH.prototype;_.P.getApiPaths=function(){return d_};
_.P.getExtension=function(g){return _.c(g,_.kZ)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14490_getStoreKey=function(g){if((g=this.getExtension(g))&&g.browseId){var u={browseId:g.browseId};g.browseEndpointContextSupportedConfigs&&(u.browseEndpointContextSupportedConfigs=JSON.stringify(g.browseEndpointContextSupportedConfigs));g.params&&(u.params=g.params);g.query&&(u.query=g.query);return _.Z4("browse",u)}};
_.P.JSC$14483_buildRequest=function(g,u,q){u.browseId&&(g.browseId=u.browseId);u.params&&(g.params=u.params);u.query&&(g.query=u.query);q.formData?g.formData=q.formData:u.formData&&(g.formData=u.formData);u.browseId==="FEsubscriptions"&&_.qf().getFlag(155)&&(g.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");u.browseId==="SPaccount_playback"&&(q=_.qf(),g.formData||(g.formData={}),g.formData.accountSettingsFormData={flagCaptionsDefaultOff:q.getFlag(65),flagAutoCaptionsDefaultOn:q.getFlag(66),
flagDisableInlinePreview:q.getFlag(186),flagAudioDescriptionDefaultOn:q.getFlag(198)});if(u.browseId==="FEwhat_to_watch"){q=_.qf();var Q=q.getFlag(196);q.getFlag(197)&&(g.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:Q}}})}u.browseId==="FEwhat_to_watch"&&(u=_.qf().getFlag(186),g.inlineSettingStatus=u?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.P.getRequestConfig=function(g,u){u=u===void 0?{}:u;var q={};if(g=this.JSC$14490_getStoreKey(g,u))q.storeStrategy={storeKey:g,disableCache:u.disableCache};_.w("web_log_browse_ticks_ks")||(q.requestTick="br_s",q.responseTick="br_r");return q};var yf=function(){};
_.A(yf,MJ);yf.prototype.getApiPaths=function(){return MmR};
yf.prototype.getExtension=function(g){return _.c(g,Bdo)};
yf.prototype.JSC$14483_buildRequest=function(g,u,q){g.legacyYoutubeChannelUsername=q.legacyYouTubeChannelUsername||"";g.legacyYoutubeChannelPassword=q.legacyYouTubeChannelPassword||""};var vu=function(){};
_.A(vu,MJ);vu.prototype.getApiPaths=function(){return cAX};
vu.prototype.getExtension=function(g){return _.c(g,cH$)};
vu.prototype.JSC$14483_buildRequest=function(g,u,q){q.recaptcha_response_token&&(g.recaptchaResponseToken=q.recaptcha_response_token);q.channel_id&&(g.channelId=q.channel_id)};var D$=function(){};
_.A(D$,MJ);D$.prototype.getApiPaths=function(){return ay5};
D$.prototype.getExtension=function(g){return _.c(g,iA0)};
D$.prototype.JSC$14483_buildRequest=function(g,u,q){u.externalChannelId&&(g.externalChannelId=u.externalChannelId);q.handle&&(g.handleUpdate={handle:q.handle},u.handleEditSource&&(g.handleUpdate.handleEditSource=u.handleEditSource))};var pt=function(){};
_.A(pt,MJ);pt.prototype.getApiPaths=function(){return WSR};
pt.prototype.getExtension=function(g){return _.c(g,Ucb)};
pt.prototype.JSC$14483_buildRequest=function(g,u,q){u.request&&(g.channelId=u.request.channelId);var Q;if(q==null?0:(Q=q.uploadDefaults)==null?0:Q.emojiReactionSet)g.uploadDefaultsRequest||(g.uploadDefaultsRequest={}),g.uploadDefaultsRequest.emojiReactionSet=q.uploadDefaults.emojiReactionSet};var Jq=function(){};
_.A(Jq,MJ);Jq.prototype.getApiPaths=function(){return Y$R};
Jq.prototype.getExtension=function(g){return _.c(g,HAo)};
Jq.prototype.JSC$14483_buildRequest=function(g,u,q){u.externalChannelId&&(g.externalChannelId=u.externalChannelId);u.channelHandleEntityKey&&(g.channelHandleEntityKey=u.channelHandleEntityKey);u.handleEditSource&&(g.handleEditSource=u.handleEditSource);q.handle?g.handle=q.handle:q.name&&(g.name=q.name)};var j4=function(){};
_.A(j4,MJ);j4.prototype.getApiPaths=function(){return GVx};
j4.prototype.getExtension=function(g){return _.c(g,o32)};
j4.prototype.JSC$14483_buildRequest=function(g,u){u.actions?g.actions=u.actions:u.action&&(g.actions=[u.action])};var ft=function(){};
_.A(ft,MJ);ft.prototype.getApiPaths=function(){return $2b};
ft.prototype.getExtension=function(g){return _.c(g,_.fe)};
ft.prototype.JSC$14483_buildRequest=function(g,u){u.token&&(g.continuation=u.token)};var MX=function(){};
_.A(MX,MJ);MX.prototype.getApiPaths=function(){return zD5};
MX.prototype.getExtension=function(g){return _.c(g,_.fe)};
MX.prototype.JSC$14483_buildRequest=function(g,u){g.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";u.token&&(g.fetchCommentsParams={continuation:u.token})};var tq=function(){};
_.A(tq,MJ);tq.prototype.getApiPaths=function(){return AV2};
tq.prototype.getExtension=function(g){return _.c(g,S6X)};
tq.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.createReplyParams&&(g.createReplyParams=u.createReplyParams);u.commentText&&(g.commentText=_.iR(u.commentText));q.comment_text&&(g.commentText=q.comment_text);q.image_blob_id&&(g.imageAttachment={encryptedBlobId:q.image_blob_id});q.botguard_response&&(g.botguardResponse=q.botguard_response)};
_.z3.Object.defineProperties(tq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var e4=function(){};
_.A(e4,MJ);e4.prototype.getApiPaths=function(){return ZmW};
e4.prototype.getExtension=function(g){return _.c(g,_.kR8)};
e4.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.createCommentParams&&(g.createCommentParams=u.createCommentParams);u.commentText&&(g.commentText=_.iR(u.commentText));u.videoPositionMention&&(g.videoPositionMention=u.videoPositionMention);u.sources&&(g.sources=u.sources);q.comment_text&&(g.commentText=q.comment_text);q.attached_video_id?g.videoAttachment={videoId:q.attached_video_id}:q.poll_options?g.pollAttachment={choices:q.poll_options}:q.image_blob_id?g.imageAttachment=
{encryptedBlobId:q.image_blob_id}:q.shared_post_id&&(g.sharedPostAttachment={postId:q.shared_post_id});q.access_restrictions&&typeof q.access_restrictions==="number"&&(u=q.access_restrictions,g.accessRestrictions={restriction:u!==1&&u===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});q.botguard_response&&(g.botguardResponse=q.botguard_response)};
_.z3.Object.defineProperties(e4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var GC=function(){};
_.A(GC,MJ);GC.prototype.getApiPaths=function(){return VEi};
GC.prototype.getExtension=function(g){return _.c(g,geW)};
GC.prototype.JSC$14483_buildRequest=function(g,u,q){u.commentText&&(g.replyText=_.iR(u.commentText));q.comment_text&&(g.replyText=q.comment_text);g.updateReplyParams=u.updateReplyParams};
_.z3.Object.defineProperties(GC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $n=function(){};
_.A($n,MJ);$n.prototype.getApiPaths=function(){return X45};
$n.prototype.getExtension=function(g){return _.c(g,UJx)};
$n.prototype.JSC$14483_buildRequest=function(g,u,q){u.commentText&&(g.commentText=_.iR(u.commentText));q.comment_text&&(g.commentText=q.comment_text);g.updateCommentParams=u.updateCommentParams};
_.z3.Object.defineProperties($n.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RJ=function(){};
_.A(RJ,MJ);RJ.prototype.getApiPaths=function(){return rA2};
RJ.prototype.getExtension=function(g){return _.c(g,nxx)};
RJ.prototype.JSC$14483_buildRequest=function(g,u){u.settings&&(g.settings=u.settings)};var wz=function(){};
_.A(wz,MJ);wz.prototype.getApiPaths=function(){return TRo};
wz.prototype.getExtension=function(g){return _.c(g,AH8)};
wz.prototype.JSC$14483_buildRequest=function(g,u){u.channelCreationToken&&(g.channelCreationToken=u.channelCreationToken);u.source&&(g.source=u.source)};var cu=function(){};
_.A(cu,MJ);cu.prototype.getApiPaths=function(){return Hm8};
cu.prototype.getExtension=function(g){return _.c(g,Ir2)};
cu.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;if(q.name&&(q.given_name||q.family_name))g=new _.Ji("channel creation cannot set both GAIA and YouTube names",u),_.Zf(g);else{if(u.zeroStepChannelCreationParams){if(!q.comment_text){g=new _.Ji("zero_step_create_comment_params but no zero_step_texts",u);_.Zf(g);return}g.zeroStepChannelCreationParams=u.zeroStepChannelCreationParams;g.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(g.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
q.comment_text,q.botguard_response&&(g.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=q.botguard_response))}g.channelCreationToken=u.channelCreationToken;q.given_name&&(g.givenName=q.given_name);q.family_name&&(g.familyName=q.family_name);u.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(g.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(q.name||q.handle||q.avatar_url||q.encryptedBlobId||q.isNameChanged!==void 0||q.isHandleChanged!==void 0||q.isDefaultProfilePhoto!==
void 0||q.obakeImageSource)g.overrideChannelCreationParams={},q.name&&(g.overrideChannelCreationParams.name=q.name),q.handle&&(g.overrideChannelCreationParams.handle=q.handle),q.avatar_url&&(g.overrideChannelCreationParams.avatarUrl=q.avatar_url),q.encryptedBlobId&&(g.overrideChannelCreationParams.blobEncryptionId=q.encryptedBlobId),q.enableIdentityForAllChannelCreationDialog&&(q.encryptedBlobId?g.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
q.isDefaultProfilePhoto!==void 0&&(g.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=q.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),q.isNameChanged!==void 0&&(g.overrideChannelCreationParams.identityForAllChannelCreationNameTag=q.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),q.isHandleChanged!==
void 0&&(g.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=q.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),q.obakeImageSource&&(g.overrideChannelCreationParams.obakeImageSourceType=q.obakeImageSource))}};var Hu=function(){};
_.A(Hu,MJ);Hu.prototype.getApiPaths=function(g){return(g=this.getExtension(g))&&g.status==="DISLIKE"?FFx:g&&g.status==="INDIFFERENT"?e_0:PB8};
Hu.prototype.getExtension=function(g){return _.c(g,_.sw)};
Hu.prototype.JSC$14483_buildRequest=function(g,u){u.target&&(g.target=u.target);if(u=this.getParams(u))g.params=u};
Hu.prototype.getParams=function(g){switch(g==null?void 0:g.status){case "DISLIKE":return g.dislikeParams;case "INDIFFERENT":return g.removeLikeParams;default:return g==null?void 0:g.likeParams}};var Aq=function(){};
_.A(Aq,MJ);Aq.prototype.getApiPaths=function(){return Iy0};
Aq.prototype.getExtension=function(g){return _.c(g,PpH)};
Aq.prototype.JSC$14483_buildRequest=function(g,u){u.settingItemId&&(g.settingItemId=u.settingItemId);u.stringValue!=null&&u.stringValue!==void 0?g.newValue={stringValue:u.stringValue}:u.intValue?g.newValue={intValue:u.intValue}:u.boolValue!==null&&u.boolValue!==void 0?g.newValue={boolValue:u.boolValue}:(g=new _.Ji("Unknown value type for SetSettingEndpoint.",u),_.Zf(g))};var Z$=function(){};
_.A(Z$,MJ);Z$.prototype.getApiPaths=function(){return by5};
Z$.prototype.getExtension=function(g){return _.c(g,cF5)||void 0};
Z$.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.channelIds&&(g.channelIds=u.channelIds);u.siloName&&(g.siloName=u.siloName);u.params&&(g.params=u.params);q.botguardResponse&&(g.botguardResponse=q.botguardResponse);q.feature&&(g.clientFeature=q.feature)};
_.z3.Object.defineProperties(Z$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ly=function(){};
_.A(ly,MJ);ly.prototype.getApiPaths=function(){return FSi};
ly.prototype.getExtension=function(g){return _.c(g,NoR)||void 0};
ly.prototype.JSC$14483_buildRequest=function(g,u){u.channelIds&&(g.channelIds=u.channelIds);u.siloName&&(g.siloName=u.siloName);u.params&&(g.params=u.params)};
_.z3.Object.defineProperties(ly.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var IJ=function(g){this.shareClientParamsProvider=g};
_.A(IJ,MJ);IJ.prototype.getApiPaths=function(){return DLM};
IJ.prototype.getExtension=function(g){return _.c(g,bK5)||_.c(g,_.d8b)||_.c(g,CwX)};
IJ.prototype.JSC$14483_buildRequest=function(g,u){u.serializedShareEntity&&(g.serializedSharedEntity=u.serializedShareEntity);if(u.clientParamIdentifier){var q;if((q=this.shareClientParamsProvider)==null?0:q.clientParams.has(u.clientParamIdentifier)){q=this.shareClientParamsProvider;u=u.clientParamIdentifier;var Q=q.clientParams.get(u);Q&&q.clientParams.delete(u);g.clientParams=Q}}};
IJ[zv]=[ceh];var iy=function(){};
_.A(iy,MJ);iy.prototype.getApiPaths=function(){return JV0};
iy.prototype.getExtension=function(g){return _.c(g,qdR)};
iy.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var Ct=function(){};
_.A(Ct,MJ);Ct.prototype.getApiPaths=function(){return m2x};
Ct.prototype.getExtension=function(g){return _.c(g,gf5)};
Ct.prototype.JSC$14483_buildRequest=function(g,u){u.dismissal&&(g.items=[u.dismissal])};
_.z3.Object.defineProperties(Ct.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var by=function(){};
_.A(by,MJ);by.prototype.getApiPaths=function(){return LSH};
by.prototype.getExtension=function(g){return _.c(g,_.MB)||void 0};
by.prototype.JSC$14483_buildRequest=function(g,u,q){g.feedbackTokens=[];u.feedbackToken&&g.feedbackTokens.push(u.feedbackToken);if(u=u.cpn||q.cpn)g.feedbackContext={cpn:u};g.isFeedbackTokenUnencrypted=!!q.is_feedback_token_unencrypted;g.shouldMerge=!1;q.extra_feedback_tokens&&(g.shouldMerge=!0,g.feedbackTokens=g.feedbackTokens.concat(q.extra_feedback_tokens))};
_.z3.Object.defineProperties(by.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dz=function(){};
_.A(dz,MJ);dz.prototype.getApiPaths=function(){return LSH};
dz.prototype.getExtension=function(g){return _.c(g,_.kJ)};
dz.prototype.JSC$14483_buildRequest=function(g,u,q){q.feedback_tokens&&(g.feedbackTokens=q.feedback_tokens,g.shouldMerge=!0)};
_.z3.Object.defineProperties(dz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fe=function(){};
_.A(Fe,MJ);Fe.prototype.getApiPaths=function(){return LSH};
Fe.prototype.getExtension=function(g){return _.c(g,ITZ)};
Fe.prototype.JSC$14483_buildRequest=function(g,u){u.undoToken&&(g.feedbackTokens=[u.undoToken]);u.isUndoTokenUnencrypted&&(g.isFeedbackTokenUnencrypted=u.isUndoTokenUnencrypted)};
_.z3.Object.defineProperties(Fe.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mx=function(){};
_.A(mx,MJ);mx.prototype.getApiPaths=function(){return Oy5};
mx.prototype.getExtension=function(g){return _.c(g,Stn)};
mx.prototype.JSC$14483_buildRequest=function(g,u){u.nextEndpoint&&_.c(u.nextEndpoint,_.ao)?g.nextEndpoint={urlEndpoint:_.c(u.nextEndpoint,_.ao)}:u.nextEndpoint&&_.c(u.nextEndpoint,_.l1)&&(g.nextEndpoint={watchEndpoint:_.c(u.nextEndpoint,_.l1)});u.setRacy&&(g.setRacy=u.setRacy);u.setControvercy&&(g.setControvercy=u.setControvercy)};var aJ=function(g){this.JSC$18502_storeWithEntities=g};
_.A(aJ,MJ);aJ.prototype.getApiPaths=function(){return Vmo};
aJ.prototype.getExtension=function(g){return _.c(g,cO0)};
aJ.prototype.JSC$14483_buildRequest=function(g,u){u.flowId&&(g.flowId=u.flowId);u.targetId&&(g.targetId=u.targetId);u.continuation&&(g.continuation=u.continuation);var q=u.flowStateEntityKey;if(u.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&q&&this.JSC$18502_storeWithEntities){var Q;if(u=(Q=this.JSC$18502_storeWithEntities.getState())==null?void 0:Q.entities)if(Q=_.Tz(q).entityType,Q=_.BC(u,Q,q))g.flowState=Q,g.flowStateEntityKey=q}};
_.z3.Object.defineProperties(aJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
aJ[zv]=[Yb];var o$f=function(){};
_.A(o$f,MJ);_.P=o$f.prototype;_.P.getApiPaths=function(){return QCx};
_.P.JSC$14490_getStoreKey=function(){return _.Z4("guide")};
_.P.getRequestConfig=function(){var g=this.JSC$14490_getStoreKey(),u;g&&(u={storeStrategy:{storeKey:g}});return u};
_.P.isNavigationCommand=function(){return!0};
_.P.getExtension=function(g){return _.c(g,_.kJ)};
_.P.JSC$14483_buildRequest=function(g){g.fetchLiveState=!0};var Vf=function(){};
_.A(Vf,MJ);Vf.prototype.getApiPaths=function(){return tmn};
Vf.prototype.getExtension=function(g){return _.c(g,BxX)};
Vf.prototype.JSC$14483_buildRequest=function(){};var Xe=function(){};
_.A(Xe,MJ);Xe.prototype.getApiPaths=function(){return eD2};
Xe.prototype.getExtension=function(g){return _.c(g,zVx)};
Xe.prototype.JSC$14483_buildRequest=function(){};var rz=function(){};
_.A(rz,MJ);rz.prototype.getApiPaths=function(){return pwR};
rz.prototype.getExtension=function(g){return _.c(g,_.fe)};
rz.prototype.JSC$14483_buildRequest=function(g,u){u.token&&(g.continuation=u.token);var q,Q;g==null||(q=g.context)==null||(Q=q.user)==null||delete Q.onBehalfOfUser};
rz.prototype.getRequestConfig=function(g){var u={},q;if(((q=this.getExtension(g))==null?void 0:q.sessionIndex)!==void 0){var Q;u={authStrategy:{sessionIndex:(Q=this.getExtension(g))==null?void 0:Q.sessionIndex}}}return u};var Wu=function(){};
_.A(Wu,MJ);Wu.prototype.JSC$14483_getRequest=function(g){var u=this.getExtension(g),q=g="";if(u==null?0:u.popup)g="true";if(u==null?0:u.disableSignout)q="true";u={};return{input:"/getAccountSwitcherEndpoint",requestShell:AJ("/getAccountSwitcherEndpoint","GET",(u["X-YouTube-Delegation-Context"]=_.FR("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),u["X-YouTube-Account-Switcher-Popup"]=g,u["X-YouTube-Account-Switcher-Disable-Signout"]=q,u)),innerTubeRequest:{}}};
Wu.prototype.getApiPaths=function(){return[]};
Wu.prototype.getExtension=function(g){return _.c(g,_.aEb)};
Wu.prototype.JSC$14483_buildRequest=function(){};var TC=function(){};
_.A(TC,MJ);TC.prototype.JSC$14483_getRequest=function(g){var u="/cross_account_channel_transfer";(g=this.getExtension(g))&&(u=MFh(u,{target_session:g.targetSessionIndex,source_rapt:g.sourceRapt,rapt:g.targetRapt}));return{input:u,requestShell:AJ(u,"GET"),innerTubeRequest:{}}};
TC.prototype.getApiPaths=function(){return[]};
TC.prototype.getExtension=function(g){return _.c(g,T2a)};
TC.prototype.JSC$14483_buildRequest=function(){};var hq=function(){};
_.A(hq,MJ);hq.prototype.getApiPaths=function(){return XwX};
hq.prototype.isNavigationCommand=function(){return!0};
hq.prototype.getExtension=function(g){return _.c(g,_.kJ)};
hq.prototype.JSC$14483_buildRequest=function(g){var u=_.qf().get("gsml","");u&&(g.safetyModeLockerObfuscatedGaiaId=u);g.userInterfaceTheme=_.RE(!0);_.w$()?g.deviceTheme="DEVICE_THEME_SELECTED":_.KSk()?g.deviceTheme="DEVICE_THEME_SUPPORTED":g.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var kn=function(){};
_.A(kn,MJ);kn.prototype.getApiPaths=function(){return pwR};
kn.prototype.getExtension=function(g){return _.c(g,hki)};
kn.prototype.JSC$14483_buildRequest=function(g,u){if(u&&u.requestType&&(g.requestType=u.requestType,u.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||u.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var q=u.nextUrl;q&&(_.eNZ(q)||KS(q))&&(g.nextNavendpoint={urlEndpoint:{url:q}})}u&&u.channelSwitcherQuery&&(g.channelSwitcherQuery=u.channelSwitcherQuery);u&&u.triggerChannelCreation&&(g.triggerChannelCreation=u.triggerChannelCreation);var Q;if(u==null?0:(Q=u.contentOwnerConfig)==
null?0:Q.externalContentOwnerId)g.contentOwnerConfig=u.contentOwnerConfig;g.callCircumstance=u&&u.requestType&&u.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var L,E;u=g==null?void 0:(L=g.context)==null?void 0:(E=L.user)==null?void 0:E.onBehalfOfUser;if(u!==void 0){g.obfuscatedSelectedGaiaId=u;var y,v;g==null||(y=g.context)==null||(v=y.user)==null||delete v.onBehalfOfUser}var J,f;if(L=g==null?void 0:(J=g.context)==null?void 0:(f=J.user)==null?
void 0:f.serializedDelegationContext)g.selectedSerializedDelegationContext=L};var S4=function(){};
_.A(S4,MJ);S4.prototype.getApiPaths=function(){return jdZ};
S4.prototype.getExtension=function(g){return _.c(g,F5b)};
S4.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var oJ=function(){};
_.A(oJ,MJ);oJ.prototype.getApiPaths=function(){return cVa};
oJ.prototype.getExtension=function(g){return _.c(g,_.OI$)};
oJ.prototype.JSC$14483_buildRequest=function(g,u){if(u=u.createBroadcastRequest)g.useMasks=u.useMasks,g.broadcastType=u.broadcastType,g.broadcastSource=u.broadcastSource,g.broadcastMetadata=u.broadcastMetadata,g.broadcastMetadataMask=u.broadcastMetadataMask,g.videoMetadata=u.videoMetadata,g.videoMetadataMask=u.videoMetadataMask,g.liveChatSettingsUpdate=u.liveChatSettingsUpdate,g.liveChatSettingsUpdateMask=u.liveChatSettingsUpdateMask,g.cloneVideoId=u.cloneVideoId,g.cloneWithOverrides=u.cloneWithOverrides,
g.targetEntity=u.targetEntity,g.scheduledRedirectMetadata=u.scheduledRedirectMetadata};var UB=function(){};
_.A(UB,MJ);UB.prototype.getApiPaths=function(){return lG0};
UB.prototype.getExtension=function(g){return _.c(g,m45)};
UB.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.params&&(g.params=u.params);q.questionText&&(g.questionText=q.questionText);q.optionText&&q.optionText.length>0&&(g.optionText=q.optionText)};var gP=function(){};
_.A(gP,MJ);gP.prototype.getApiPaths=function(){return C5a};
gP.prototype.getExtension=function(g){return _.c(g,d4W)};
gP.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var ur=function(){};
_.A(ur,MJ);ur.prototype.getApiPaths=function(){return Yyx};
ur.prototype.getExtension=function(g){return _.c(g,ILx)};
ur.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var qe=function(){};
_.A(qe,MJ);qe.prototype.getApiPaths=function(){return KFa};
qe.prototype.getExtension=function(g){return _.c(g,iqo)};
qe.prototype.JSC$14483_buildRequest=function(g,u,q){u.params&&(g.params=u.params);u.continuation&&(g.continuation=u.continuation);q.currentPlayerState&&q.currentPlayerState.playerOffsetMs&&(g.currentPlayerState={playerOffsetMs:q.currentPlayerState.playerOffsetMs.toString()})};var Q7=function(){};
_.A(Q7,MJ);Q7.prototype.getApiPaths=function(){return x20};
Q7.prototype.getExtension=function(g){return _.c(g,lLW)};
Q7.prototype.JSC$14483_buildRequest=function(g,u,q){u.params&&(g.params=u.params);q.continuation&&(g.continuation=q.continuation);"hidden"in q&&(g.webClientInfo={isDocumentHidden:q.hidden});q.isInvalidationTimeoutRequest&&(g.isInvalidationTimeoutRequest=q.isInvalidationTimeoutRequest);q.invalidationPayload&&(u=Zq8(_.Ub(zW(q.invalidationPayload))),g.invalidationPayloadLastPublishAtUsec=fp(u,2));q.reloadActionPanel&&(g.reloadActionPanel=q.reloadActionPanel);q.fullReload&&(g.fullReload=q.fullReload);
q.currentPlayerState&&(g.currentPlayerState=q.currentPlayerState)};var LQ=function(){};
_.A(LQ,MJ);LQ.prototype.getApiPaths=function(){return Nfb};
LQ.prototype.getExtension=function(g){return _.c(g,FBX)};
LQ.prototype.JSC$14483_buildRequest=function(g,u){g.params=u.params};var E5=function(){};
_.A(E5,MJ);E5.prototype.getApiPaths=function(){return Omi};
E5.prototype.getExtension=function(g){return _.c(g,kT2)};
E5.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var PJ=function(){};
_.A(PJ,MJ);PJ.prototype.getApiPaths=function(){return BRx};
PJ.prototype.getExtension=function(g){return _.c(g,Sv5)};
PJ.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var Ne=function(){};
_.A(Ne,MJ);Ne.prototype.getApiPaths=function(){return sCW};
Ne.prototype.getExtension=function(g){return _.c(g,aL8)};
Ne.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var s5=function(){};
_.A(s5,MJ);s5.prototype.getApiPaths=function(){return vDH};
s5.prototype.getExtension=function(g){return _.c(g,VWZ)};
s5.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var y7=function(){};
_.A(y7,MJ);y7.prototype.getApiPaths=function(){return G7X};
y7.prototype.getExtension=function(g){return _.c(g,V3$)};
y7.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var vJ=function(){};
_.A(vJ,MJ);vJ.prototype.getApiPaths=function(){return Zy8};
vJ.prototype.getExtension=function(g){return _.c(g,_.XFo)};
vJ.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.params&&(g.params=u.params);q.client_message_id&&(g.clientMessageId=q.client_message_id);q.recaptcha_token&&(g.recaptchaToken=q.recaptcha_token);q.rich_message&&q.rich_message.text_segments?(u=q.rich_message.text_segments.map(function(Q){var L={};Q.text&&(L.text=Q.text);Q.emoji_id&&(L.emojiId=Q.emoji_id);return L}),g.richMessage={textSegments:u}):q.message&&(g.message=q.message);
q.currentPlayerState&&(g.currentPlayerState=q.currentPlayerState)};var Dl=function(){};
_.A(Dl,MJ);Dl.prototype.getApiPaths=function(){return lyi};
Dl.prototype.getExtension=function(g){return _.c(g,rn0)};
Dl.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var pQ=function(){};
_.A(pQ,MJ);pQ.prototype.getApiPaths=function(){return d7Z};
pQ.prototype.getExtension=function(g){return _.c(g,TS0)};
pQ.prototype.JSC$14483_buildRequest=function(g,u,q){u.isUserInitiated&&(g.isUserInitiated=u.isUserInitiated);u.initiationSource&&(g.initiationSource=u.initiationSource);q.locationInfo&&(g.context.client.locationInfo=q.locationInfo)};var Js=function(){};
_.A(Js,MJ);Js.prototype.getApiPaths=function(){return yAH};
Js.prototype.getExtension=function(g){return _.c(g,K_i)};
Js.prototype.JSC$14483_buildRequest=function(g,u,q){u.metadataUpdateRequest&&(u=u.metadataUpdateRequest,g.encryptedVideoId=u.encryptedVideoId,u.liveChat&&(u=u.liveChat,g.liveChat||(g.liveChat={}),u.performAsExternalChannelId&&(g.liveChat.performAsExternalChannelId=u.performAsExternalChannelId),u.source&&(g.liveChat.source=u.source)));var Q;if(q==null?0:(Q=q.liveChat)==null?0:Q.liveChatSettings)g.liveChat||(g.liveChat={}),q=q.liveChat.liveChatSettings,g.liveChat.newLiveChatSettings=q,g.liveChat.newLiveChatSettingsMask||
(g.liveChat.newLiveChatSettingsMask={}),q.emojiReactionSet&&(g.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var jI=function(){};
_.A(jI,MJ);jI.prototype.getApiPaths=function(){return h_Z};
jI.prototype.getExtension=function(g){return _.c(g,_.s_i)};
jI.prototype.JSC$14483_buildRequest=function(g,u,q){q.continuation?g.continuation=q.continuation:u.videoId&&(g.videoId=u.videoId);q.clientParams&&(g.clientParams=q.clientParams)};var fQ=function(){};
_.A(fQ,MJ);fQ.prototype.getApiPaths=function(){return zD5};
fQ.prototype.getExtension=function(g){return _.c(g,_.jW)};
fQ.prototype.JSC$14483_buildRequest=function(g,u){g.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";g.fetchCommentsParams={};u.videoId&&(g.fetchCommentsParams.encryptedVideoId=u.videoId);u.postId&&(g.fetchCommentsParams.postId=u.postId);u.externalChannelId&&(g.fetchCommentsParams.externalChannelId=u.externalChannelId);u.linkedCommentId&&(g.fetchCommentsParams.linkedCommentId=u.linkedCommentId);(0,_.pH.isEmpty)(g.fetchCommentsParams)&&delete g.fetchCommentsParams};var Me=function(){};
_.A(Me,MJ);Me.prototype.getApiPaths=function(){return d_};
Me.prototype.JSC$14483_buildRequest=function(g){g.browseId="FEnotifications_inbox"};
Me.prototype.getExtension=function(g){return _.c(g,_.kJ)};var ts=function(){};
_.A(ts,MJ);ts.prototype.getApiPaths=function(){return zD5};
ts.prototype.JSC$14483_buildRequest=function(g,u){u.signal==="GET_NOTIFICATIONS_MENU"&&(g.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");u.ctoken&&(g.ctoken=u.ctoken)};
var UiZ=function(){};
_.A(UiZ,ts);UiZ.prototype.getExtension=function(g){return _.c(g,_.kJ)};
var gFb=function(){};
_.A(gFb,ts);gFb.prototype.getExtension=function(g){return _.c(g,zgi)};var eI=function(){};
_.A(eI,MJ);eI.prototype.getApiPaths=function(){return gDZ};
eI.prototype.getExtension=function(g){return _.c(g,_.kJ)};
eI.prototype.JSC$14483_buildRequest=function(){};var GY=function(){};
_.A(GY,MJ);GY.prototype.getApiPaths=function(){return D7x};
GY.prototype.getExtension=function(g){return _.c(g,Q_H)||void 0};
GY.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params);u.secondaryParams&&(g.secondaryParams=u.secondaryParams)};var $w=function(){};
_.A($w,MJ);$w.prototype.getApiPaths=function(){return p4b};
$w.prototype.getExtension=function(g){return _.c(g,m8o)};
$w.prototype.JSC$14483_buildRequest=function(g,u){u.undo&&(g.undo=u.undo);u.serializedOptOut&&(g.serializedOptOut=u.serializedOptOut);u.serializedRecordInteractionsRequest&&(g.serializedRecordInteractionsRequest=u.serializedRecordInteractionsRequest)};var Rb=function(){};
_.A(Rb,MJ);Rb.prototype.getApiPaths=function(){return fyX};
Rb.prototype.getExtension=function(g){return _.c(g,ax$)};
Rb.prototype.JSC$14483_buildRequest=function(g,u){u.serializedInteractionsRequest&&(g.serializedRecordNotificationInteractionsRequest=u.serializedInteractionsRequest)};var wP=function(){};
_.A(wP,MJ);wP.prototype.getApiPaths=function(){return pgm};
wP.prototype.getExtension=function(g){return _.c(g,_.I9)};
wP.prototype.JSC$14483_buildRequest=function(g,u,q){u=u===void 0?{}:u;q=q===void 0?{}:q;u.videoId?g.videoId=u.videoId:u.playlistId&&(g.playlistId=u.playlistId);var Q;g.crossDeviceDownloadData={isCrossDeviceDownload:(Q=u.isCrossDeviceDownload)!=null?Q:!1};!q.downloadToMobileEduShown&&u.isCrossDeviceDownload&&(g.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var L;if(Q=(L=u.offlineWebClientEligibility)!=null?L:q.offlineWebClientEligibility)g.offlineWebClientEligibility=Q;var E;if(L=(E=u.preferredFormatType)!=
null?E:q.preferredFormatType)g.preferredFormatType=L;var y;if(E=(y=u.lastOfflineQualitySettingsSavedMs)!=null?y:q.lastOfflineQualitySettingsSavedMs)g.lastOfflineQualitySettingsSavedMs=E;u.params&&(g.params=u.params)};var cJ=function(){};
_.A(cJ,MJ);cJ.prototype.getApiPaths=function(){return dS};
cJ.prototype.getExtension=function(g){return _.c(g,_.fe)};
cJ.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.token&&(g.continuation=u.token);q.formData&&(g.formData=q.formData)};var HJ=function(){};
_.A(HJ,MJ);HJ.prototype.getApiPaths=function(){return dS};
HJ.prototype.getExtension=function(g){return _.c(g,Xdi)};
HJ.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;g.continuation=q.continuation};var As=function(){};
_.A(As,MJ);As.prototype.getApiPaths=function(){return dS};
As.prototype.getExtension=function(g){return _.c(g,_.fT)};
As.prototype.JSC$14483_buildRequest=function(g,u){var q,Q=u.panelIdentifier||((q=u.identifier)==null?void 0:q.tag);Q&&(g.panelId=Q);var L;if((L=u.globalConfiguration)==null?0:L.params){var E;g.params=(E=u.globalConfiguration)==null?void 0:E.params}if(_.w("enable_ai_companion")){var y;u=u.engagementPanelExtras;if(u==null?0:(y=u.aiCompanionPanelExtras)==null?0:y.includeClientConversationId){var v,J;y=(J=(v=_.Bk().resolve(_.xv(bOH)))==null?void 0:v("conversations"))==null?void 0:J.get("conversation_id")}else y=
void 0;if(v=y)g.formData=Object.assign({},g.formData,{inputComposerFormData:{conversationId:v}})}};
_.z3.Object.defineProperties(As.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Zl=function(){};
_.A(Zl,MJ);Zl.prototype.getApiPaths=function(){return dS};
Zl.prototype.getExtension=function(g){return _.c(g,lha)};
Zl.prototype.JSC$14483_buildRequest=function(g,u){u.panelLoadingStrategy&&eWb(g,u.panelLoadingStrategy)};var lr=function(){};
_.A(lr,MJ);lr.prototype.getApiPaths=function(){return dS};
lr.prototype.getExtension=function(g){return _.c(g,Bga)};
lr.prototype.JSC$14483_buildRequest=function(g,u){u.loadingStrategy&&eWb(g,u.loadingStrategy)};var Ib=function(){};
_.A(Ib,MJ);Ib.prototype.getApiPaths=function(){return dS};
Ib.prototype.getExtension=function(g){return _.c(g,_.q0)};
Ib.prototype.JSC$14483_buildRequest=function(g,u){u.panelLoadingStrategy&&eWb(g,u.panelLoadingStrategy)};var ir=function(){};
_.A(ir,MJ);ir.prototype.getApiPaths=function(){return dS};
ir.prototype.getExtension=function(g){return _.c(g,z8i)};
ir.prototype.JSC$14483_buildRequest=function(g,u){var q,Q=(q=u.contentSourcePanelIdentifier)==null?void 0:q.tag;Q&&(g.panelId=Q);var L;if((L=u.globalConfiguration)==null?0:L.params){var E;g.params=(E=u.globalConfiguration)==null?void 0:E.params}};var CQ=function(){};
_.A(CQ,MJ);CQ.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
CQ.prototype.getExtension=function(g){return _.c(g,nKx)};
CQ.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var br=function(){};
_.A(br,MJ);br.prototype.getApiPaths=function(){return TfR};
br.prototype.getExtension=function(g){return _.c(g,oKx)};
br.prototype.JSC$14483_buildRequest=function(g,u){u.externalChannelId&&(g.externalChannelId=u.externalChannelId);u.superChatAction&&(g.superChatAction=u.superChatAction);u.superStickersAction&&(g.superStickersAction=u.superStickersAction)};var dP=function(){};
_.A(dP,MJ);dP.prototype.getApiPaths=function(){return rV0};
dP.prototype.getExtension=function(g){return _.c(g,xJ2)||_.c(g,xlF)};
dP.prototype.JSC$14483_buildRequest=function(g,u){u.videoIds?g.videoIds=u.videoIds:u.videoId&&(g.videoIds=[u.videoId]);u.playlistId&&(g.playlistId=u.playlistId);u.params&&(g.params=u.params);g.excludeWatchLater=!1};var Fn=function(){};
_.A(Fn,MJ);Fn.prototype.getApiPaths=function(){return IG0};
Fn.prototype.getExtension=function(g){return _.c(g,_.$l)};
Fn.prototype.JSC$14483_buildRequest=function(g,u,q){q.create_playlist_title?g.title=q.create_playlist_title:u.title&&(g.title=u.title);if(q.create_playlist_privacy_status&&typeof q.create_playlist_privacy_status==="number"){a:{var Q=q.create_playlist_privacy_status;if(Q!==0){if(Q===1){Q="PUBLIC";break a}if(Q===2){Q="UNLISTED";break a}}Q="PRIVATE"}g.privacyStatus=Q}else u.privacyStatus&&(g.privacyStatus=u.privacyStatus);q.create_playlist_description&&(g.description=q.create_playlist_description);u.videoIds&&
(g.videoIds=u.videoIds);u.params&&(g.params=u.params);u.sourcePlaylistId&&(g.sourcePlaylistId=u.sourcePlaylistId)};var m1=function(){};
_.A(m1,MJ);m1.prototype.getApiPaths=function(){return bmW};
m1.prototype.getExtension=function(g){return _.c(g,uqo)};
m1.prototype.JSC$14483_buildRequest=function(g,u){g.playlistId=u.playlistId};var ab=function(){};
_.A(ab,MJ);ab.prototype.getApiPaths=function(){return nrR};
ab.prototype.getExtension=function(g){return _.c(g,Ixi)};
ab.prototype.JSC$14483_buildRequest=function(g,u){u.playlistId&&(g.playlistId=u.playlistId);u.params&&(g.params=u.params)};var V7=function(){};
_.A(V7,MJ);V7.prototype.getApiPaths=function(){return jCW};
V7.prototype.getExtension=function(g){return _.c(g,_.fq)||void 0};
V7.prototype.JSC$14483_buildRequest=function(g,u){u.actions&&(g.actions=u.actions);u.params&&(g.params=u.params);u.playlistId&&(g.playlistId=u.playlistId)};var Xn=function(){};
_.A(Xn,MJ);_.P=Xn.prototype;_.P.getApiPaths=function(){return ME0};
_.P.getExtension=function(g){return _.c(g,_.g$)};
_.P.JSC$14483_buildRequest=function(g,u){u.videoId&&(g.playerRequest={videoId:u.videoId},u.playerParams&&(g.playerRequest.params=u.playerParams),u.racyCheckOk&&(g.playerRequest.racyCheckOk=!!u.racyCheckOk),u.contentCheckOk&&(g.playerRequest.contentCheckOk=!!u.contentCheckOk));u.params&&(g.params=u.params);u.inputType&&(g.inputType=u.inputType);g.disablePlayerResponse=!0};
_.P.getRequestConfig=function(g){var u;(g=this.JSC$14490_getStoreKey(g))&&(u={storeStrategy:{storeKey:g}});_.w("web_log_reels_ticks")&&(u=u||{},u.requestTick="r_wrs",u.responseTick="r_wrr");return u};
_.P.JSC$14490_getStoreKey=function(g){g=this.getExtension(g);if(g!=null&&g.videoId){var u={videoId:g.videoId};g.params&&(u.params=g.params);return _.Z4("reel_item_watch",u)}};var rP=function(){};
_.A(rP,MJ);_.P=rP.prototype;_.P.getApiPaths=function(){return tEZ};
_.P.getExtension=function(g){return _.c(g,_.g$)};
_.P.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;g.sequenceParams=u.sequenceParams;var Q;((Q=q)==null?0:Q.contentPlaybackContext)&&_.w("web_shorts_prefetch_service_enabled")&&(g.playbackContext={contentPlaybackContext:q.contentPlaybackContext})};
_.P.JSC$14490_getStoreKey=function(g){if(_.w("shorts_controller_retrieve_seedless_sequence_v2")&&(g=this.getExtension(g),g==null?0:g.sequenceParams))return _.Z4("reel_watch_sequence",{sequenceParams:g.sequenceParams})};
_.P.getRequestConfig=function(g){g=this.JSC$14490_getStoreKey(g);var u;g&&(u={storeStrategy:{storeKey:g}});u=u||{};u.requestTick="r_wsrs";u.responseTick="r_wsrr";u.processorTick="r_wsrp";return u};
var WJ=function(){};
_.A(WJ,MJ);WJ.prototype.getApiPaths=function(){return tEZ};
WJ.prototype.getExtension=function(g){return _.c(g,_.fe)};
WJ.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.token&&(g.continuation=u.token);var Q;((Q=q)==null?0:Q.contentPlaybackContext)&&_.w("web_shorts_prefetch_service_enabled")&&(g.playbackContext={contentPlaybackContext:q.contentPlaybackContext})};
WJ.prototype.getRequestConfig=function(g){g=this.JSC$14490_getStoreKey(g);var u;g&&(u={storeStrategy:{storeKey:g}});u=u||{};u.requestTick="r_wsrs";u.responseTick="r_wsrr";u.processorTick="r_wsrp";return u};var TY=function(){};
_.A(TY,MJ);TY.prototype.getApiPaths=function(){return aGH};
TY.prototype.getExtension=function(g){return _.c(g,_.Gon)};
TY.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.flagAction&&(g.action=u.flagAction);u.flagRequestType&&(g.flagRequestType=u.flagRequestType);u.additionalDetailCheckboxChecked&&(g.additionalDetailCheckboxChecked=u.additionalDetailCheckboxChecked);u.legalCheckboxChecked&&(g.legalCheckboxChecked=u.legalCheckboxChecked);u={};q.flag_issue_type!==void 0&&(u.issue=q.flag_issue_type);q.flag_affiliation!==void 0&&(u.affiliation=q.flag_affiliation);q.flag_full_name&&(u.fullName=q.flag_full_name);
Object.keys(u).length&&(g.legalReportDetails=u);if(q.flag_description||q.text)g.userComments=q.flag_description||q.text;u={};q.minutes!==void 0&&q.seconds!==void 0&&(u.minutes=q.minutes,u.seconds=q.seconds);q.vss_id&&(u.vssId=q.vss_id);Object.keys(u).length&&(g.videoReportDetails=u);u={};q.video_ids&&(u.videoIds=q.video_ids);q.impersonated_channel_url&&(u.impersonatedChannelUrl=q.impersonated_channel_url);Object.keys(u).length&&(g.channelAbuseReportDetails=u)};
_.z3.Object.defineProperties(TY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hs=function(){};
_.A(hs,MJ);hs.prototype.getApiPaths=function(){return hDH};
hs.prototype.getExtension=function(g){return _.c(g,nfZ)};
hs.prototype.JSC$14483_buildRequest=function(g,u){u.blockedForKidsContent&&(g.blockedForKidsContent=u.blockedForKidsContent)};var Yw=function(){};
_.A(Yw,MJ);Yw.prototype.getApiPaths=function(){return $7x};
Yw.prototype.getExtension=function(g){return _.c(g,Kj3)};
Yw.prototype.JSC$14483_buildRequest=function(g,u,q){g.params=u.params;q.impersonated_channel_url&&(g.impersonatedChannelUrl=q.impersonated_channel_url)};var O5=function(){};
_.A(O5,MJ);O5.prototype.getApiPaths=function(){return ED$};
O5.prototype.getExtension=function(g){return _.c(g,_.koa)};
O5.prototype.JSC$14483_buildRequest=function(g,u){u.items&&(g.items=u.items);u.kidGaiaId&&(g.kidGaiaId=u.kidGaiaId)};var KQ=function(){};
_.A(KQ,MJ);KQ.prototype.getApiPaths=function(){return WF8};
KQ.prototype.getExtension=function(g){return _.c(g,_.Y6i)};
KQ.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params);u.targetId&&(g.targetId=u.targetId)};var xw=function(){};
_.A(xw,MJ);xw.prototype.getApiPaths=function(){return HyX};
xw.prototype.getExtension=function(g){return _.c(g,nIX)};
xw.prototype.JSC$14483_buildRequest=function(g,u){u.externalVideoId&&(g.externalVideoId=u.externalVideoId);u.query&&(g.query=u.query);u.sourceTimelines&&(g.sourceTimelines=u.sourceTimelines)};var BJ=function(){};
_.A(BJ,MJ);BJ.prototype.getApiPaths=function(){return AA8};
BJ.prototype.getExtension=function(g){return _.c(g,_.fe)||void 0};
BJ.prototype.JSC$14483_buildRequest=function(g,u){u.token&&(g.continuation=u.token)};
_.u_9=function(){};
_.A(_.u_9,MJ);_.P=_.u_9.prototype;_.P.getApiPaths=function(){return AA8};
_.P.getExtension=function(g){return _.c(g,_.Sb)||void 0};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14490_getStoreKey=function(g,u){u=u===void 0?{}:u;if(!u.disableCache&&(g=this.getExtension(g))&&g.query)return u={query:g.query},g.params&&(u.params=g.params),_.Z4("search",u)};
_.P.JSC$14483_buildRequest=function(g,u,q){u.query&&(g.query=u.query);u.params&&(g.params=u.params);if(!_.w("web_forward_suggest_stats_killswitch")){var Q=_.c(u,R8R);Q&&(g.suggestStats=Q)}var L;!_.w("kevlar_searchbox_stats_killswitch")&&((L=q.tempData)==null?0:L.gs_l)&&!_.c(u,R8R)&&(g.webSearchboxStatsUrl="/search?oq="+(q.tempData.oq||"")+"&gs_l="+q.tempData.gs_l);var E;if((E=q.tempData)==null?0:E.entityMid)u=g.suggestionSearchParams||{},u.entityMid=q.tempData.entityMid,g.suggestionSearchParams=u;
u=_.qf().getFlag(186);g.inlineSettingStatus=u?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";q.isFromShorts&&(g.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.P.getRequestConfig=function(g,u){u=u===void 0?{}:u;g=this.JSC$14490_getStoreKey(g,u);var q;g&&(q={storeStrategy:{storeKey:g}});_.w("web_log_search_ticks_ks")||(q=q||{},q.requestTick="sr_s",q.responseTick="sr_r");return q};var zY=function(){};
_.A(zY,MJ);zY.prototype.getApiPaths=function(){return ora};
zY.prototype.getExtension=function(g){return _.c(g,JF5)};
zY.prototype.JSC$14483_buildRequest=function(g,u){u.serializedGetSharingProviderDataParams&&(g.serializedGetSharingProviderDataParams=u.serializedGetSharingProviderDataParams)};var nQ=function(){};
_.A(nQ,MJ);nQ.prototype.getApiPaths=function(){return U2x};
nQ.prototype.getExtension=function(g){return _.c(g,jBb)};
nQ.prototype.JSC$14483_buildRequest=function(g,u){u.endpoint&&(g.endpoint=u.endpoint);u.action&&(g.action=u.action)};var kw=function(){};
_.A(kw,MJ);kw.prototype.getApiPaths=function(){return d2W};
kw.prototype.getExtension=function(g){return _.c(g,qMn)};
kw.prototype.JSC$14483_buildRequest=function(g,u){g.videoId=u.videoId;u.scheduledRedirectMetadataSourceVideoId&&(g.scheduledRedirectMetadata={sourceVideoId:u.scheduledRedirectMetadataSourceVideoId})};var SI=function(){};
_.A(SI,MJ);SI.prototype.getApiPaths=function(){return iyx};
SI.prototype.getExtension=function(g){return _.c(g,_.gs8)};
SI.prototype.JSC$14483_buildRequest=function(g,u){g.params=u.params;g.correctionText=u.correctionText};var qHb=function(){};
_.A(qHb,MJ);qHb.prototype.getApiPaths=function(){return yNK};
qHb.prototype.getExtension=function(g){return _.c(g,_.kPa)};
qHb.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params);g.searchQuery=u.searchQuery;g.languageCode=u.languageCode;g.kind=u.kind;g.name=u.name;g.externalVideoId=u.externalVideoId};var Q2h=function(){};
_.A(Q2h,MJ);Q2h.prototype.getApiPaths=function(){return x7o};
Q2h.prototype.getExtension=function(g){return _.c(g,MtH)};
Q2h.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.params=u.params)};var ob=function(g){this.JSC$18778_storeWithEntities=g};
_.A(ob,MJ);ob.prototype.getApiPaths=function(){return RD$};
ob.prototype.getExtension=function(g){return _.c(g,e6x)||_.c(g,$pZ)};
ob.prototype.JSC$14483_buildRequest=function(g,u,q){q.client_data&&(g.clientData=q.client_data);if(u.commerceActionConfig){var Q=u.commerceActionConfig;u=Q.actionId;Q=Q.commerceActionParams;u&&(g.actionId=u);Q&&(g.commerceActionParams=Q)}else{var L=u.actionId,E=u.commerceActionParams;q=u.entityKeys;L&&(g.actionId=L);E&&(g.commerceActionParams=E);var y;u=(Q=this.JSC$18778_storeWithEntities)==null?void 0:(y=Q.getState())==null?void 0:y.entities;if(q&&u){Q=[];y=_.N(q);for(q=y.next();!q.done;q=y.next())if(L=
q.value,q=_.Tz(L).entityType,L=_.BC(u,q,L))E={},Q.push((E[q]=L,E));g.entityMutationPayloads=Q}}};
ob.prototype.getRequestConfig=function(g){var u,q=(u=_.c(g,e6x))==null?void 0:u.requestSequenceType;if(q&&g.clickTrackingParams&&q!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:g.clickTrackingParams,sequenceType:q}}};
ob[zv]=[Yb];var U5=function(){};
_.A(U5,MJ);U5.prototype.getApiPaths=function(){return Bfi};
U5.prototype.getExtension=function(g){return _.c(g,_.rPW)};
U5.prototype.JSC$14483_buildRequest=function(g,u){u.feedbackData&&(g.feedbackData=u.feedbackData);u.params&&(g.itemParams=u.params)};
_.z3.Object.defineProperties(U5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LRL=function(){};
_.A(LRL,MJ);LRL.prototype.getApiPaths=function(){return z_o};
LRL.prototype.getExtension=function(g){return _.c(g,hCZ)};
LRL.prototype.JSC$14483_buildRequest=function(g,u,q){q.payments_payload&&(g.paymentsPayload=q.payments_payload);q.offer_params&&(g.offerParams=q.offer_params);u.transactionParams&&(g.transactionParams=u.transactionParams)};var EFh=function(){};
_.A(EFh,MJ);EFh.prototype.getApiPaths=function(){return nD$};
EFh.prototype.getExtension=function(g){return _.c(g,_.YmR)};
EFh.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.buybucketParams&&(g.buybucketData={params:u.buybucketParams},u.stickerParams?g.buybucketData.stickerParams=u.stickerParams:(q.rich_chat_message?g.buybucketData.richChatMessage=q.rich_chat_message:q.chat_message_text&&(g.buybucketData.chatMessageText=q.chat_message_text),q.purchase_price_micros&&(g.buybucketData.purchasePriceMicros=q.purchase_price_micros.toString())));u.donationAmountMicros&&(g.tipAmountMicros=u.donationAmountMicros,
u.tipParams&&(g.tipParams=u.tipParams));u.offerParams&&(g.offerParams=u.offerParams);u.productData&&(g.productData=u.productData);u.transactionParams&&(g.transactionParams=u.transactionParams)};var gh=function(){};
_.A(gh,MJ);gh.prototype.getApiPaths=function(){return k7a};
gh.prototype.getExtension=function(g){return _.c(g,xU$)};
gh.prototype.JSC$14483_buildRequest=function(g,u){u.updateFopParams&&(g.updateFopParams=u.updateFopParams)};var PvK=function(){};
_.A(PvK,MJ);PvK.prototype.getApiPaths=function(){return S$W};
PvK.prototype.getExtension=function(g){return _.c(g,_.Is)};
PvK.prototype.JSC$14483_buildRequest=function(g,u){u.couponCode&&(g.couponCode=u.couponCode);u.params&&(g.itemParams=u.params)};var NcK=function(){};
_.A(NcK,MJ);NcK.prototype.getApiPaths=function(){return oD2};
NcK.prototype.getExtension=function(g){return _.c(g,_.GfX)};
NcK.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;u.params&&(g.params=u.params);q.ctk&&(g.clientToken=q.ctk)};var uK=function(g){this.JSC$18813_storeWithEntities=g};
_.A(uK,MJ);uK.prototype.getApiPaths=function(){return U78};
uK.prototype.getExtension=function(g){return _.c(g,_.HF)};
uK.prototype.JSC$14483_buildRequest=function(g,u,q){q.purchase_price_micros&&(g.productData={pdgData:{purchasePriceMicros:q.purchase_price_micros.toString()}},q.rich_chat_message&&(g.productData.pdgData.richChatMessage=q.rich_chat_message),q.currency_code&&(g.productData.pdgData.currencyCode=q.currency_code));u.transactionParams&&(g.transactionParams=u.transactionParams);u.clientLocationContext&&(g.clientLocationContext=u.clientLocationContext);q.payments_payload&&(g.paymentsPayload=q.payments_payload);
q.funds_guarantee_callback_client_data&&(g.fundsGuaranteeCallbackClientData=q.funds_guarantee_callback_client_data);var Q,L;q=(Q=this.JSC$18813_storeWithEntities)==null?void 0:(L=Q.getState())==null?void 0:L.entities;if(u.entityKeys&&q){Q=[];u=_.N(u.entityKeys);for(L=u.next();!L.done;L=u.next()){var E=L.value;L=_.Tz(E).entityType;if(E=_.BC(q,L,E)){var y={};Q.push((y[L]=E,y))}}g.entityMutationPayloads=Q}};
uK[zv]=[Yb];var s2Z=function(){};
_.A(s2Z,MJ);s2Z.prototype.getApiPaths=function(){return gzn};
s2Z.prototype.getExtension=function(g){return _.c(g,OGZ)};
s2Z.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;q.backend_analytics&&(g.serializedBackendAnalyticsEvent=q.backend_analytics);u.offerParams&&(g.offerParams=u.offerParams)};var y59=function(){};
_.A(y59,MJ);y59.prototype.getApiPaths=function(){return S$W};
y59.prototype.getExtension=function(g){return _.c(g,bxJ)};
y59.prototype.JSC$14483_buildRequest=function(g,u){u.params&&(g.itemParams=u.params)};var vFK=function(){};
_.A(vFK,MJ);vFK.prototype.getApiPaths=function(){return ud5};
vFK.prototype.getExtension=function(g){return _.c(g,_.APi)};
vFK.prototype.JSC$14483_buildRequest=function(g,u,q){q.resume_time_ms&&(g.resumeTimeMs=q.resume_time_ms);u.pauseParams&&(g.pauseParams=u.pauseParams)};var DVE=function(){};
_.A(DVE,MJ);DVE.prototype.getApiPaths=function(){return qJi};
DVE.prototype.getExtension=function(g){return _.c(g,_.Kw0)};
DVE.prototype.JSC$14483_buildRequest=function(g,u,q){q=q===void 0?{}:q;q.c&&(g.redeemCode=q.c);q.rd&&(g.riskData=q.rd);q.ctk&&(g.clientToken=q.ctk)};var pDp=function(){};
_.A(pDp,MJ);pDp.prototype.getApiPaths=function(){return Qk2};
pDp.prototype.getExtension=function(g){return _.c(g,_.Zlb)};
pDp.prototype.JSC$14483_buildRequest=function(g,u){u.resumeParams&&(g.resumeParams=u.resumeParams)};var qz=function(g,u){this.clientName=g;this.defaultExpirationDelayMs=u};
qz.prototype.put=function(g,u){var q=this,Q;return _.D(function(L){Q=Object.assign({},u.data);Q.key=g;Q.clientName=q.clientName;Q.expireTimestampMs===void 0&&(Q.expireTimestampMs=(Math.round((0,_.n0)())+q.defaultExpirationDelayMs).toString());return L.return(q.putInternal(g,Q))})};
qz[zv]=[iW,TjH];var J5h=function(){qz.apply(this,arguments);this.JSC$18843_responseStore=new Map};
_.A(J5h,qz);_.P=J5h.prototype;_.P.get=function(g){var u=this;return _.D(function(q){return q.return(zu(u,g))})};
_.P.putInternal=function(g,u){var q=this,Q,L,E;return _.D(function(y){Q=q.defaultExpirationDelayMs;u.expireTimestampMs&&(Q=Number(u.expireTimestampMs)-Math.round((0,_.n0)()),L=_.S8("mweb_override_response_store_expiration_ms"),L>0&&L<Q&&(Q=L));E=setTimeout(function(){q.remove(g)},Q);
q.JSC$18843_responseStore.set(g,{entryData:u,timer:E});_.Wx(y)})};
_.P.remove=function(g){var u=this;return _.D(function(q){j2n(u,g);_.Wx(q)})};
_.P.removeAll=function(){var g=this;return _.D(function(u){g.JSC$18843_responseStore.forEach(function(q){clearTimeout(q.timer)});
g.JSC$18843_responseStore.clear();_.Wx(u)})};
_.P.has=function(g){return!!this.JSC$18843_responseStore.get(g)};
_.P.getKeys=function(){return this.JSC$18843_responseStore.keys()};
var zu=function(g,u){if(g=g.JSC$18843_responseStore.get(u))return new _.B_(g.entryData)},j2n=function(g,u){var q=g.JSC$18843_responseStore.get(u);
q&&(clearTimeout(q.timer),g.JSC$18843_responseStore.delete(u))};
J5h.prototype.markAsProcessed=function(g){var u=this,q;return _.D(function(Q){q=u.JSC$18843_responseStore.get(g);if(!q)return Q.jumpTo(0);q.entryData.isProcessed=!0;return Q.yield(u.putInternal(g,q.entryData),0)})};var GUk;var RWq=function(g,u,q){qz.call(this,g,u);this.token=q};
_.A(RWq,qz);_.P=RWq.prototype;_.P.get=function(g){var u=this,q,Q;return _.D(function(L){return L.nextAddress==1?L.yield(xb(u.token),2):L.nextAddress!=3?(q=L.yieldResult,L.yield(q.get("ResponseStore",[g,u.clientName]),3)):(Q=L.yieldResult)?L.return(new _.B_(Q)):L.return(void 0)})};
_.P.putInternal=function(g,u){var q=this,Q;return _.D(function(L){if(L.nextAddress==1)return L.yield(xb(q.token),2);Q=L.yieldResult;return L.yield(Q.put("ResponseStore",u),0)})};
_.P.remove=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(xb(u.token),2);q=Q.yieldResult;return Q.return(q.delete("ResponseStore",[g,u.clientName]))})};
_.P.removeAll=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return q.yield(xb(g.token),2);u=q.yieldResult;return q.yield(RN2(u,IDBKeyRange.only(g.clientName)),0)})};
_.P.has=function(){throw Error("mj");};
_.P.markAsProcessed=function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1)return L.yield(xb(u.token),2);if(L.nextAddress!=3)return q=L.yieldResult,L.yield(q.get("ResponseStore",[g,u.clientName]),3);Q=L.yieldResult;if(!Q)return L.jumpTo(0);Q.isProcessed=!0;return L.yield(q.put("ResponseStore",Q),0)})};_.QO=new _.Fv("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var f1z=function(g){var u;this.stateTagsData=(u=g.responseContext)==null?void 0:u.stateTags},MiE=function(g){var u;
return((u=g.stateTagsData)==null?void 0:u.stateTagsModified)||[]};var tiz;tiz=function(g){this.JSC$18856_responseStore=g};
_.AL=function(g,u,q){if(!_.w("state_tags_killswitch")){var Q=new f1z(u);if(MiE(Q).length>0){var L=g.JSC$18856_responseStore.getKeys();L=_.N(L);for(var E=L.next();!E.done;E=L.next()){E=E.value;var y=zu(g.JSC$18856_responseStore,E);if(y){var v=_.Tx(y);a:{var J=void 0;y=MiE(Q);v=((J=(new f1z(v)).stateTagsData)==null?void 0:J.relevantStateTags)||[];J=_.N(v);for(v=J.next();!v.done;v=J.next())if(v=v.value,v.stateTag!=null&&y.includes(v.stateTag)&&v.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){y=
!0;break a}y=!1}y&&j2n(g.JSC$18856_responseStore,E)}}}}var f;Q=(f=u.responseContext)==null?void 0:f.maxAgeSeconds;q&&Q&&Number(Q)>0&&(u=Tc(u,Q),g.JSC$18856_responseStore.put(q,new _.B_(u)))};
tiz.prototype.handleResponse=function(g,u){if(!u)throw Error("nj");var q,Q;u=(q=u.config)==null?void 0:(Q=q.storeStrategy)==null?void 0:Q.storeKey;_.AL(this,g,u)};
tiz[zv]=[_.xe];_.bZ0=new _.Fv("STORE_RESPONSE_PROCESSOR_TOKEN");var eUf=function(g){this.JSC$18859_responseStore=g};
eUf.prototype.handleResponse=function(g,u){if(u.input.match(_.dr(tEZ))){var q;if(g==null?0:(q=g.entries)==null?0:q.length)for(g=_.N(g.entries),u=g.next();!u.done;u=g.next()){q=u.value.command;var Q=void 0;u=(Q=_.c(q,_.g$))==null?void 0:Q.unserializedPrefetchData;if(!q||!u)break;Q=(new Xn).JSC$14490_getStoreKey(q);var L=_.c(u,AXZ),E=void 0,y=void 0,v=void 0,J=void 0,f=void 0,t=void 0,e=((E=L)==null?0:(y=E.responseContext)==null?0:y.maxAgeSeconds)&&Number((v=L)==null?void 0:(J=v.responseContext)==null?
void 0:J.maxAgeSeconds)>0?Number((f=L)==null?void 0:(t=f.responseContext)==null?void 0:t.maxAgeSeconds):600;Q&&e>0&&(L=Tc(L,e),this.JSC$18859_responseStore.put(Q,new _.B_(L)));q=(new oU).JSC$14490_getStoreKey(q);u=_.c(u,sz8);J=v=y=E=L=Q=void 0;f=((Q=u)==null?0:(L=Q.responseContext)==null?0:L.maxAgeSeconds)&&Number((E=u)==null?void 0:(y=E.responseContext)==null?void 0:y.maxAgeSeconds)>0?Number((v=u)==null?void 0:(J=v.responseContext)==null?void 0:J.maxAgeSeconds):600;q&&f>0&&(u=Tc(u,f),this.JSC$18859_responseStore.put(q,
new _.B_(u)))}}};
eUf[zv]=[_.xe];var GQh=function(g,u){this.innertubeTransportService=g;this.JSC$18862_commandHandler=u};
GQh.prototype.submitForm=function(g,u,q,Q,L){var E=this,y,v,J,f,t,e;return _.D(function(G){if(G.nextAddress==1)return y={submitId:g,formData:u,submitBehavior:q,params:Q},v=_.dr(CB8),G.yield(_.wE(E.innertubeTransportService,y,v,L),2);J=G.yieldResult;if(!J)return G.return(Promise.reject(new _.Ji("Submit API returned an undefined response. Submit ID: "+g)));f=J;(e=(t=f)==null?void 0:t.onResponseReceived)&&E.JSC$18862_commandHandler.resolveCommand(e);return G.return(f)})};
GQh[zv]=[_.QY,_.Gy];var $VK=function(){this.scheduler=_.pT()},RUh;
$VK.prototype.pause=function(){throw Error("oj");};
$VK.prototype.resume=function(){throw Error("oj");};
$VK.prototype.queue=function(g){var u=this,q=_.A9(),Q=_.M_(this.scheduler,function(){try{var L;if(_.ze.instance)var E=_.ze.instance;else{var y=new _.Ji("Error: Unexpected uninitialized CommandHandler.");_.Zf(y);E=void 0}(L=E)==null||L.resolveCommand(g.command);q.resolve()}catch(v){q.reject(v)}});
q.promise.thenCatch(function(L){L instanceof _.Gx&&u.scheduler.cancelJob(Q)});
return q.promise};
$VK.prototype.queueAll=function(g){var u=new Map;g=_.N(g);for(var q=g.next();!q.done;q=g.next())q=q.value,u.set(q.id,this.queue(q));return u};var c5n=function(g,u){var q=this;this.taskModel=g;this.onTaskCancelledCallback=u;this.resolver=_.A9();g=g.proto.prefetchConfig;if(!g)throw Error("pj");if(!g.prefetchAction)throw Error("qj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(Q){Q instanceof _.Gx&&(wDE(q,q.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),q.onTaskCancelledCallback(q.taskModel.id,q.jobId),q.tick("pcc"));
throw Q;});
this.timerName=this.taskModel.id;_.jF(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
c5n.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 wDE=function(g,u){_.pW({prefetchInfo:{cancellationReason:u}},g.timerName)};
c5n.prototype.tick=function(g){_.fW(g,void 0,this.timerName)};var E8=function(){var g=this;this.scheduler=_.pT();this.maxInflightTasks=_.S8("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.S8("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new m0n;this.onTaskCancelled=function(u,q){q&&g.scheduler.cancelJob(q);HhZ(g,u);Lg(g,3)}},A5x=function(){E8.instance||(E8.instance=new E8);
return E8.instance};
E8.prototype.pause=function(){this.prefetchCoordinatorState=0};
E8.prototype.resume=function(){Lg(this,0)};
E8.prototype.queue=function(g){g=Zh9(this,g);Lg(this,1);return g};
E8.prototype.queueAll=function(g){var u=new Map;g=_.N(g);for(var q=g.next();!q.done;q=g.next())q=q.value,u.set(q.id,Zh9(this,q));Lg(this,1);return u};
var Zh9=function(g,u){var q=g.allPrefetchTasks.get(u.id);if(q)return q.cancellablePromise;try{var Q=new c5n(u,g.onTaskCancelled)}catch(E){return _.NY(E)}q=Q;q.tick("pcq");var L={prefetchInfo:{taskId:q.taskModel.id,isPrefetch:!0,fetchAction:q.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:q.taskModel.command.clickTrackingParams}};q.taskModel.csn&&(L.clientScreenNonce=q.taskModel.csn);_.pW(L,q.timerName);g.allPrefetchTasks.set(u.id,Q);g.drainingHeap.insert(-Q.getPriority(),Q);return Q.cancellablePromise},
Lg=function(g,u){g.prefetchCoordinatorState===u&&(g.prefetchCoordinatorState=2,l1L(g))},l1L=function(g){for(var u={};g.prefetchCoordinatorState!==0;u={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(g.inflightPrefetchTasks.size>=g.maxInflightTasks){g.prefetchCoordinatorState=3;break}u.prefetchTask$jscomp$1=g.drainingHeap.remove();if(!u.prefetchTask$jscomp$1){g.prefetchCoordinatorState=1;break}u.taskId$jscomp$3=u.prefetchTask$jscomp$1.taskModel.id;if(g.allPrefetchTasks.has(u.taskId$jscomp$3)){var q=-1;g.coordinatorTimeoutMs>0&&(q=_.M_(g.scheduler,function(Q){return function(){I1h(g,Q.taskId$jscomp$3,Error("rj"))}}(u),g.coordinatorTimeoutMs));
g.inflightPrefetchTasks.set(u.taskId$jscomp$3,q);if(!g.JSC$18879_commandHandler){if(!_.ze.instance){I1h(g,u.taskId$jscomp$3,Error("sj"));continue}g.JSC$18879_commandHandler=_.ze.instance}a:switch(u.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":q=1;break a;default:q=0}u.prefetchTask$jscomp$1.jobId=g.scheduler.addJob(function(Q){return function(){Q.prefetchTask$jscomp$1.tick("pcr");try{g.JSC$18879_commandHandler.resolveCommand(Q.prefetchTask$jscomp$1.taskModel.command)||
I1h(g,Q.taskId$jscomp$3,Error("tj"))}catch(L){I1h(g,Q.taskId$jscomp$3,L)}}}(u),q,0)}}},ihH=function(g,u){(u=HhZ(g,u))!=null&&(u.resolver.resolve(),u.tick("pce"));
Lg(g,3)},I1h=function(g,u,q){(u=HhZ(g,u,q))!=null&&(u.resolver.reject(q),u.tick("pcc"),wDE(u,"CANCELLATION_REASON_ERROR"),Math.random()<=_.S8("prefetch_coordinator_error_logging_sampling_rate")&&(q=new _.Ji("Prefetch Command failed.",u.taskModel.id,q.message),_.Zf(q)));
Lg(g,3)},HhZ=function(g,u,q){var Q=g.allPrefetchTasks.get(u);
Q?((q=g.inflightPrefetchTasks.get(u))&&q!==-1&&g.scheduler.cancelJob(q),g.inflightPrefetchTasks.delete(u),g.allPrefetchTasks.delete(u)):_.Io(new _.Ji("Unexpected missing prefetch task when deleting task.",u,q==null?void 0:q.message));return Q};var Cvx=function(g,u,q,Q,L){this.id=g;this.triggerOn=u;this.cancelOn=q;this.command=Q;this.proto=L};
_.z3.Object.defineProperties(Cvx.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var bhb=function(){this.JSC$18884_prefetchCoordinator=A5x();RUh||(RUh=new $VK);this.defaultCoordinator=RUh},dVz;
bhb.getInstance=function(){dVz||(dVz=new bhb);return dVz};
bhb.prototype.get=function(g){switch(g){case 0:return this.JSC$18884_prefetchCoordinator;default:return this.defaultCoordinator}};var Pr=function(){this.coordinatorSupplier=bhb.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},a1f=function(g){var u=_.j_()||void 0,q=Object.keys(FRE)[0];
if(q){var Q=g.taskIdByTriggerId.get(q);if(Q!=null){g.taskIdByTriggerId.delete(q);q=[];Q=_.N(Q);for(var L=Q.next();!L.done;L=Q.next())if(L=g.tasks.get(L.value))u!=="UNDEFINED_CSN"&&(L.csn=u),q.push(L);q=HMZ(q);u=[];q=_.N(q);for(Q=q.next();!Q.done;Q=q.next()){L=_.N(Q.value);Q=L.next().value;L=L.next().value;Q=g.coordinatorSupplier.get(Q).queueAll(L);Q=_.N(Q);var E=Q.next();for(L={};!E.done;L={taskId$jscomp$9:void 0},E=Q.next()){var y=_.N(E.value);E=y.next().value;y=y.next().value;L.taskId$jscomp$9=
E;E=y;u.push(L.taskId$jscomp$9);g.queuedPromisesByTask.set(L.taskId$jscomp$9,_.fY(E,function(v){return function(){mVz(g,v.taskId$jscomp$9)}}(L)))}}}}else _.Io(new _.Ji("Unexpected malformed TriggerEvent."))};
Pr.prototype.trigger=function(g,u){var q=this,Q=this.tasks.get(g);if(!Q||this.queuedPromisesByTask.has(g))return!1;Vih(this,g,Q.triggerOn);u!=="UNDEFINED_CSN"&&(Q.csn=u);u=this.coordinatorSupplier.get(Q.taskType).queue(Q);this.queuedPromisesByTask.set(g,_.fY(u,function(){mVz(q,g)}));
return!0};
Pr.prototype.cancel=function(g){var u=this.queuedPromisesByTask.get(g);if(u)u.cancel();else return mVz(this,g)};
var mVz=function(g,u){g.queuedPromisesByTask.delete(u);var q=g.tasks.get(u);if(!q)return!1;g.tasks.delete(u);Vih(g,u,q.triggerOn);(q=cIq(q.cancelOn))&&(g=g.taskIdByCancelId.get(q))&&g.delete(u);return!0},Vih=function(g,u,q){(q=Object.keys(q)[0])&&(g=g.taskIdByTriggerId.get(q))&&g.delete(u)};var FRE={taskRegistered:{}},XDE=function(){Pr.instance||(Pr.instance=new Pr);this.JSC$18893_taskManager=Pr.instance};
_.A(XDE,Hw);
XDE.prototype.resolveCommand=function(g){var u=this,q,Q;return _.D(function(L){q=_.c(g,H1R);if((Q=q)==null||!Q.tasks){var E=new _.Ji("RegisterTasksCommand is missing tasks.");_.Zf(E);return L.return()}E=u.JSC$18893_taskManager;for(var y=_.N(q.tasks),v=y.next();!v.done;v=y.next())if(v=v.value,v=v.id&&v.triggerOn&&v.cancelOn&&v.command?new Cvx(v.id,v.triggerOn,v.cancelOn,v.command,v):void 0,v){var J=Object.keys(v.triggerOn)[0];if(J){var f=cIq(v.cancelOn);f?(E.tasks.set(v.id,v),E.taskIdByTriggerId.has(J)||E.taskIdByTriggerId.set(J,
new Set),E.taskIdByTriggerId.get(J).add(v.id),E.taskIdByCancelId.has(f)||E.taskIdByCancelId.set(f,new Set),E.taskIdByCancelId.get(f).add(v.id)):_.Io(new _.Ji("Unexpected malformed cancelOn field."))}else _.Io(new _.Ji("Unexpected malformed triggerOn field."))}else _.Io(new _.Ji("Unexpected malformed Task proto."));a1f(u.JSC$18893_taskManager);_.Wx(L)})};var r5x={},WRx=(r5x.rendered={priority:_.w("web_adaptive_early_init")?8:0,callback:function(){var g={};g.numCpu=navigator.hardwareConcurrency;var u={};u.ramGb=_.Qq.navigator.deviceMemory;var q={staticContext:{}};u.ramGb&&Ium(u.ramGb)&&(q.staticContext.memoryTotalKbytes=(u.ramGb*1048576).toString());g.numCpu&&Ium(g.numCpu)&&(q.staticContext.cpuCores=g.numCpu);if(_.w("web_enable_adaptive_appl_signal")){g={};u=GLZ();u=u.length>0?u[0]:void 0;var Q,L=(Q=_.eF("rses_dpj"))!=null?Q:u==null?void 0:u.tick.rses_dpj,
E;Q=(E=_.eF("rsef_dpj"))!=null?E:u==null?void 0:u.tick.rsef_dpj;L&&Number(L)>0&&Q&&Number(Q)>0&&(E=Math.ceil(Number(Q)-Number(L)),E>0&&(g.loadLatency=E));g.loadLatency&&Ium(g.loadLatency)&&(q.appL=g.loadLatency.toString())}_.H6("applicationStarted",q);isS=q;_.w("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",CNh)}},r5x);var Tch=new _.Fv("WINDOW_ON_ERROR"),hUE=new _.Fv("ERROR_WEIGHT_MAPS"),YHE=new _.Fv("INIT_ERROR");var OhC={},KRH=(OhC.initialized={priority:10,callback:function(g){g.injector.resolve(YHE)()}},OhC);var xVh=function(){},Bcb=function(){var g=_.ri("meta_logger_impl");
g||(g=new xVh,_.xQ("meta_logger_impl",g));return g},zUt=function(){Bcb().csiSubscriptionKey=Dmm("meta_logging_csi_event",function(g){var u=g.timerName;
if(g=g.timelineData){_.jF(u,{startTime:g.startTime},u);g.infos&&_.pW(g.infos,u);for(var q=_.N(Object.keys(g.ticks)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,_.fW(Q,g.ticks[Q],u)}})};
xVh.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&j53(this.csiSubscriptionKey)};var nFz={},kQZ=(nFz.initialized={priority:10,callback:function(){zUt()}},nFz);var SHE=function(g,u){this.innertubeClientName=g;this.JSC$18904_prefCookie=u};
SHE.prototype.record=function(){if(_.w("web_li_record_binary_eval_tick")){var g=_.eF("rsef_dpj");var u=_.eF("rses_dpj");g=g!==void 0&&u!==void 0?Math.round(g-u):void 0;if(g!==void 0&&g>0){u=_.P9(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var q=this.poolSize;if(!(u.valuesSeen>=1E9)){if(u.valuesSample.length<q)u.valuesSample.push(g);else{var Q=Math.floor(Math.random()*(u.valuesSeen+1));Q<q&&(u.valuesSample[Q]=g)}u.valuesSeen+=1}_.Ex(this.storagePrefix+"-"+this.innertubeClientName,
u,2592E3);g=u.valuesSample;u=AIF(g);g=g.length<this.poolSize?void 0:u<400?1:u<1700?2:3;g!==void 0&&(this.JSC$18904_prefCookie.set(this.cookiePrefix+this.innertubeClientName,g),this.JSC$18904_prefCookie.save())}}else _.yY(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18904_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18904_prefCookie.save()};
SHE[zv]=[iW,Jp];var oFn=function(){SHE.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.A(oFn,SHE);var UVH=new _.Fv("PAGE_LOAD_TIME_TOKEN");var gGC=function(g){this.signal=g;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;g.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.M_(_.Hv,this.disableLoggingAndSendPayload,1E4)};
gGC.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Hv.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),uPC(this))};
var uPC=function(g){var u=_.JJ();if(u){var q={webClientComponentsData:{components:Array.from(g.ids,function(Q){return{id:Q}})}};
g.ids.clear();_.gL().visualElementStateChanged(u,q)}};var q9b=y0({a11y:yKR});_.QYK=ve(q9b)(q9b.a11y,{ephemeralActionSelector:function(g){return g.ephemeralAction||null}});var LVt=y0({continuation:jvn});var EGH=ve(LVt)(LVt.continuation,{continuationCommandSelector:function(g){return g.continuationCommand}});var PXZ,sYf,NBt;PXZ=function(){this.loadFns=new Map;this.xidToRendererName=new Map};
_.RS=function(g,u,q,Q){g.loadFns.has(u)&&g.loadFns.get(u)!==Q?_.Zf(Error("uj`"+u)):(g.loadFns.set(u,Q),g.xidToRendererName.set(q,u))};
sYf=function(g,u){if(typeof u==="string"){var q=NBt(g,u);return g.loadFns.get(q)}return function(){var Q;return _.D(function(L){return L.nextAddress==1?(Q={},L.yield(Promise.all(u.map(function(E){var y,v;return _.D(function(J){if(J.nextAddress==1){y=NBt(g,E);v=g.loadFns.get(y);if(!v)return Q[y]=void 0,J.jumpTo(0);_.b8(J,3);return J.yield(v(),5)}if(J.nextAddress!=3)return Q[y]=J.yieldResult,_.Xx(J,0);_.rt(J);Q[y]=void 0;_.Wx(J)})})),2)):L.return(Q)})}};
NBt=function(g,u){var q;return(q=g.xidToRendererName.get(u))!=null?q:u};var yf9=new _.Fv("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Nz=function(g,u){this.JSC$18936_storeWithEntities=g;this.JSC$18936_commandHandler=u;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Nz.prototype.start=function(){this.JSC$18936_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Nz.prototype.observeDownloadingEntities=function(){var g=_.lCK(this.JSC$18936_storeWithEntities.getState().entities).map(function(Q){return ICf(Q)});
if(g.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var u={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:yxf()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.ap(_.Ug("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18936_commandHandler.resolveCommand(u)}this.downloadingEntities=g}else if(this.downloadingEntities.length){var q=ZFZ(this.JSC$18936_storeWithEntities.getState().entities).map(function(Q){return ICf(Q)});
this.downloadingEntities.filter(function(Q){return q.includes(Q)}).length&&(g={openPopupAction:LIm()},this.JSC$18936_commandHandler.resolveCommand(g));
this.downloadingEntities=[]}};
Nz[zv]=[Yb,_.Gy];var vGf;_.s8=function(g,u,q,Q,L,E,y,v){this.JSC$18939_playerApiPromise=g;this.JSC$18939_commandHandler=u;this.JSC$18939_screenManager=q;this.offlineWebClientEligibility=Q;this.JSC$18939_prefStorage=L;this.JSC$18939_actionRouter=E;this.entityTypeMap=y;this.JSC$18939_persistentStorePromiseAccessor=v;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
vGf=function(){var g=_.Bk().resolve(_.s8),u;_.D(function(q){if(q.nextAddress==1)return g.downloadFailureListenerBound?q.return():q.yield(g.JSC$18939_playerApiPromise,2);u=q.yieldResult;u.addEventListener("onOfflineOperationFailure",function(Q){if(Q.failureReason&&Q.entityKey&&Q.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(Q.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var L=_.Tz(Q.entityKey).entityId;L&&g.JSC$18939_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
L)}else if(_.w("kevlar_woffle")){L=g.JSC$18939_commandHandler;var E=L.resolveCommand;Q=Q.failureReason;var y=_.Ug("TRANSFER_FAILED",void 0,"Download failed");Q==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(y=_.Ug("STORAGE_FULL",void 0,"Storage full"));E.call(L,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ap(y),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
g.downloadFailureListenerBound=!0;_.Wx(q)})};
_.s8.prototype.deleteVideo=function(g,u){var q=this,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return y.yield(q.JSC$18939_playerApiPromise,2);Q=y.yieldResult;E={offlineLoggingData:{offlineDeleteReason:(L=u)!=null?L:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return y.yield(Q.queueOfflineAction(g,q.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",E),0)})};
_.s8.prototype.pauseVideoDownload=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(u.JSC$18939_playerApiPromise,2);q=Q.yieldResult;q.pauseVideoDownload(g);_.Wx(Q)})};
_.s8.prototype.resumeVideoDownload=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(u.JSC$18939_playerApiPromise,2);q=Q.yieldResult;return Q.yield(q.resumeVideoDownload(g),0)})};
_.s8[zv]=[_.rv,_.Gy,_.QA,yf9,tp,Fu,PiH,Un];var DQK=new _.Fv("DOWNLOAD_STATE_STORE_TOKEN");var pLp=function(g,u){this.JSC$18960_persistentStorePromiseAccessor=g;this.store=u;this.upliftCompletionResolver=new _.KU},f6t=function(){var g=_.Bk().resolve(Jfh),u;
_.D(function(q){switch(q.nextAddress){case 1:if(g.upliftImplPromise)return q.return(g.upliftImplPromise);_.b8(q,2);g.upliftImplPromise=jYb(g);return q.yield(g.upliftImplPromise,4);case 4:g.upliftCompletionResolver.resolve();_.Xx(q,3);break;case 2:throw u=_.rt(q),g.upliftCompletionResolver.reject(u),u;case 3:return q.return(g.upliftImplPromise)}})},jYb=function(g){var u,q,Q;
return _.D(function(L){switch(L.nextAddress){case 1:return _.mW("LOGGED_IN")?L.yield(g.JSC$18960_persistentStorePromiseAccessor(),2):L.return();case 2:u=L.yieldResult;if(!u)return _.fW("vdeur"),L.return();_.fW("vdeus");_.b8(L,3);return L.yield(MR9(u),5);case 5:q=L.yieldResult;g.store.dispatch(pO3(q));u.observe(function(E){JXJ(g.store,E)});
_.Xx(L,4);break;case 3:throw Q=_.rt(L),_.fW("vdeur"),Q;case 4:_.fW("vdeuc"),_.Wx(L)}})},MR9=function(g){var u;
return _.D(function(q){if(q.nextAddress==1)return q.yield(bMq(g),2);u=q.yieldResult;return q.return(u.reduce(function(Q,L){if(!L.data||!L.key||!L.entityType)return Q;Q[L.entityType]||(Q[L.entityType]={});Q[L.entityType][L.key]=L.data;return Q},{}))})};
pLp[zv]=[Un,_.Ja];var Jfh;Jfh=new _.Fv("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.tRh=new _.Fv("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var eLt=function(g,u){this.JSC$18963_persistentStorePromiseAccessor=g;this.transportService=u};
eLt.prototype.refresh=function(){var g=this,u,q,Q,L;return _.D(function(E){if(E.nextAddress==1)return _.mW("LOGGED_IN")?E.yield(g.JSC$18963_persistentStorePromiseAccessor(),2):E.return();if(E.nextAddress!=3)return(u=E.yieldResult)?E.yield(vUk(u),3):E.return();if((q=E.yieldResult)&&!(Number(q.data.refreshTimestampMs||0)<(0,_.n0)()))return E.return();Q={browseId:"SPaccount_downloads"};L=_.dr(d_);_.wE(g.transportService,Q,L).then(function(y){var v;if(u&&(y==null?void 0:(v=y.responseContext)==null?void 0:
v.maxAgeSeconds)!==0){var J;v=(y==null?void 0:(J=y.responseContext)==null?void 0:J.maxAgeSeconds)||604800;J=String(Math.floor((0,_.n0)())+v*1E3);u.put("service:downloads_settings:fallback",new _.B_({innertubeResponse:y,refreshTimestampMs:J}))}});
_.Wx(E)})};
eLt[zv]=[_.QO,_.QY];var yO=function(g,u){this.JSC$18967_playerPromise=g;this.store=u;this.started=!1};
yO.prototype.start=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return g.started?q.return():q.yield(g.JSC$18967_playerPromise,2);u=q.yieldResult;u.addEventListener("onOrchestrationBecameLeader",g.updateIsLeader.bind(g,!0));u.addEventListener("onOrchestrationLostLeader",g.updateIsLeader.bind(g,!1));if(u.isOrchestrationLeader)g.updateIsLeader(u.isOrchestrationLeader());else{var Q=new _.Ji("Function isOrchestrationLeader is undefined",{"player.isReady":u.isReady(),"player.playVideo":u.playVideo?
"defined":"undefined"});_.Zf(Q);g.updateIsLeader(!1)}g.started=!0;_.Wx(q)})};
yO.prototype.updateIsLeader=function(g){this.store.dispatch(_.rF({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:g}}))};
yO[zv]=[_.rv,_.Ja];var G9Z=function(g,u){this.networkStatusManager=g;this.JSC$18970_prefStoragePromise=u;this.redirectsToPreload=["https://youtube.com"]},$Qx=function(){var g=_.Bk().resolve(G9Z),u,q,Q,L,E,y;
_.D(function(v){switch(v.nextAddress){case 1:return v.yield(g.JSC$18970_prefStoragePromise,2);case 2:u=v.yieldResult;if(!(q=u)){v.jumpTo(3);break}return v.yield(u.get("yt-redirect-prefetch-id"),4);case 4:q=v.yieldResult;case 3:if(q||!g.networkStatusManager.isNetworkAvailable())return v.return();Q={cache:"reload",redirect:"manual"};L=_.N(g.redirectsToPreload);E=L.next();case 5:if(E.done){if(!u){v.jumpTo(0);break}return v.yield(u.set("yt-redirect-prefetch-id",!0,86400),0)}y=E.value;_.b8(v,8);return v.yield(_.Qq.fetch(y,
Q),10);case 10:_.Xx(v,6);break;case 8:_.rt(v);case 6:E=L.next(),v.jumpTo(5)}})};var RL9=function(g){this.JSC$18976_pageManager=g},wLf=function(g){var u=[];
aDK(["videoId","contentId"],g.JSC$18976_pageManager.data,new Set,u);return u},cfH=function(g){return wLf(g).filter(function(u){return u.contentType==="video"}).map(function(u){return u.contentId}).filter(function(u){return u!==void 0})};
RL9[zv]=[_.ba];var H2C=new _.Fv("PAGE_CONTENT_EXTRACTOR_TOKEN");var Afz=function(g){g?(this.container=g,this.containerWasInjected=!0):this.containerWasInjected=!1};
Afz.prototype.openDialog=function(g,u,q){var Q=this,L;return _.D(function(E){(L=Q.container)==null||L.openDialog(g,u,q);_.Wx(E)})};
Afz.prototype.closeDialog=function(){var g=this,u;return _.D(function(q){(u=g.container)==null||u.closeDialog();_.Wx(q)})};
Afz.prototype.isDialogOpen=function(){var g=this,u,q;return _.D(function(Q){return Q.return((q=(u=g.container)==null?void 0:u.isDialogOpen())!=null?q:!1)})};
Afz[zv]=[_.xv(AdX)];_.Z2Z=new _.Fv("POPUP_CONTROLLER_TOKEN");var l6H=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
l6H.prototype.registerPanel=function(g,u){if(g){this.panelMap.set(g,u);var q=this.pendingPanelResolvers.get(g);q&&(q.resolve(u),this.pendingPanelResolvers.delete(g))}};
l6H.prototype.getPanel=function(g){var u=this,q;return _.D(function(Q){return(q=u.panelMap.get(g))?Q.return(q):Q.return(I6n(u,g))})};
var I6n=function(g,u){var q,Q;return _.D(function(L){if(q=g.pendingPanelResolvers.get(u))return L.return(q.promise);Q=new _.KU;g.pendingPanelResolvers.set(u,Q);return L.return(Q.promise)})},i2t=function(g,u){l6H.call(this);
var q=this;this.popupController=g;this.persistentPanelController=u;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return q.panelMap.size}}};
_.A(i2t,l6H);_.P=i2t.prototype;_.P.getReloadContinuation=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(u.getPanel(g),2);q=Q.yieldResult;return Q.return(q.getReloadContinuation())})};
_.P.showPanel=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e,G,R;return _.D(function(H){if(H.nextAddress==1){q=g;Q=q.identifier;L=q.panelContents;E=q.config;y=q.extras;v=q.panelUpdatableFields;J=q.updatePanelContinuationData;f=g.target;J&&u.updatePanelContinuationDatas.set(Q,J);if((t=E)==null?0:(e=t.engagementPanelPopupPresentationConfig)==null?0:e.popupType)if(G=E.engagementPanelPopupPresentationConfig.popupType,f===void 0&&(f=document.body),G==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!u.persistentPanelController)return _.Io(new _.Ji("Persistent panel controller is not available.")),
H.return();var l=u.persistentPanelController;l.persistentPanelIdentifiers.has(Q)||(l.persistentPanelWrapper.appendChild(l.engagementPanelElement({panelIdentifier:Q},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),l.persistentPanelIdentifiers.add(Q));a:switch(_.wy.currentPageSubTypeSelector(l.store.getState())){case "watch":var d="WATCH";break a;default:d="APP"}_.CXt(l,d);l.store.dispatch(Doi(!0))}else{if(G==="PANEL_POPUP_TYPE_DIALOG"||G==="PANEL_POPUP_TYPE_DROPDOWN"){l=H.return;d=u.popupController;
var F=d.openPopup;a:switch(G){case "PANEL_POPUP_TYPE_DIALOG":var V="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":V="DROPDOWN";break a;default:throw Error("wj`"+G);}return l.call(H,F.call(d,Q,L,V,f))}_.Io(new _.Ji("Popup type "+G+" not supported in PanelController."))}return H.yield(u.getPanel(Q),2)}R=H.yieldResult;(L||v)&&R.updatePanel(L,!1,y,v);R.showPanel(y);_.Wx(H)})};
_.P.hidePanel=function(g){var u=this,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return q=g,Q=q.identifier,y.yield(u.getPanel(Q),2);L=y.yieldResult;L.hidePanel();u.popupController.closePopup(Q);(E=u.persistentPanelController)!=null&&E.persistentPanelIdentifiers.has(Q)&&E.store.dispatch(Doi(!1));_.Wx(y)})};
_.P.isVisible=function(g,u){var q=this,Q;return _.D(function(L){if(L.nextAddress==1)return u&&!q.panelMap.has(g)?L.return(!1):L.yield(q.getPanel(g),2);Q=L.yieldResult;return L.return(Q.isVisible())})};
_.P.updatePanel=function(g){var u=this,q,Q,L,E,y,v,J,f;return _.D(function(t){if(t.nextAddress==1){q=g;Q=q.identifier;L=q.panelContents;E=q.shouldFocus===void 0?!1:q.shouldFocus;y=q.extras;v=q.panelUpdatableFields;J=q.updatePanelContinuationData;if(!L&&!v)return t.return();J&&u.updatePanelContinuationDatas.set(Q,J);_.w("enable_ai_companion")&&Q==="PAai_companion"&&_.o9.remove("youchat_messages_section");return t.yield(u.getPanel(Q),2)}f=t.yieldResult;f.updatePanel(L,E,y,v);L&&_.w("enable_ai_companion")&&
u.registerPanelContent(Q,L);_.Wx(t)})};
_.P.registerPanelContent=function(g,u){g&&this.panelContentMap.set(g,u)};
_.P.unregisterPanelContent=function(g){this.panelContentMap.delete(g)};
_.P.getPanelContent=function(g){return this.panelContentMap.get(g)};
_.P.getUpdatePanelContinuationData=function(g){return this.updatePanelContinuationDatas.get(g)};
i2t[zv]=[_.Z2Z,_.xv(_.pl)];var b2h=function(g,u){this.innertubeTransportService=g;this.JSC$18995_screenManager=u},dQn=function(g){var u;
return!((u=g.panelLoadingStrategy)==null||!u.requestTemplate)};
b2h.prototype.makeRequest=function(g){var u=this,q,Q;return _.D(function(L){switch(L.nextAddress){case 1:if(!dQn(u)){L.jumpTo(2);break}_.b8(L,3);return L.yield(_.ce(u.innertubeTransportService,g),5);case 5:return q=L.yieldResult,q?L.return(q.content):(_.Zf(Error("xj")),L.return(void 0));case 3:Q=_.rt(L),_.Zf(Q);case 2:return L.return(void 0)}})};
b2h.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
b2h.prototype.execute=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e;return _.D(function(G){if(G.nextAddress==1){q=g;Q=q.data;L=q.fallbackVe;E=q.parentVe;y=q.createScreenConfig;v=q.renderFn;J=q.command;u.panelLoadingStrategy=Q;var R,H,l=((R=u.panelLoadingStrategy)==null?0:R.screenVe)?(H=u.panelLoadingStrategy)==null?void 0:H.screenVe:L;l&&_.Kq(u.JSC$18995_screenManager,l,E,y);return(f=u.getContent())?G.yield(v(f),2):G.jumpTo(2)}return G.nextAddress!=4?dQn(u)?G.yield(u.makeRequest(J),4):G.return():(e=
t=G.yieldResult)?G.yield(v(e),0):G.return()})};
b2h[zv]=[_.QY,_.QA];var FVf;FVf=function(g,u){this.engagementPanelElement=g;this.store=u;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%"};
_.CXt=function(g,u){var q=g.persistentPanelContainerMap.get(u);q?q.contains(g.persistentPanelWrapper)||(g=g.persistentPanelWrapper,_.Cr=!0,_.bF.set(g,!0),q.insertBefore(g,null),_.bF.delete(g),_.Cr=!1):_.Io(new _.Ji("Persistent panel container not found for surface "+u+"."))};
FVf[zv]=[Zuo,_.Ja];var vr=function(){var g=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){g.isHovered=!0};
this.onTargetHoverLeft=function(){g.isHovered=!1};
this.onSheetHoverEntered=function(){g.isHovered=!0;var u;(u=g.hoverEnterCallback)==null||u.call(g)};
this.onSheetHoverLeft=function(){g.isHovered=!1;var u;(u=g.hoverLeaveCallback)==null||u.call(g)}};
vr.prototype.getContainer=function(){return _.b1()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
vr.prototype.openSheet=function(g,u,q){q=q===void 0?u:q;var Q=this,L,E,y,v,J,f,t;return _.D(function(e){switch(e.nextAddress){case 1:return L={stack:[],error:void 0,hasError:!1},_.b8(e,2,3),E=nh,e.yield(Q.isSheetOpen(),5);case 5:y=e.yieldResult;ZoW(L,ZBq(E));if(!y){e.jumpTo(6);break}if(!Q.shouldPreventClosingWhileHovered){if(!_.w("delay_sheet_open_killswitch")){if(_.w("web_close_sheet_if_same_target_killswitch")&&u&&Q.currentTarget===u)return(v=Q.getContainer())==null||v.closeSheet(),e.return();Q.pendingData=
{data:g,target:OO9(Q,u)};return e.return()}e.jumpTo(6);break}if(Q.currentTarget===u)return e.return();mQz(Q);a6Z(Q);return e.yield((J=Q.getContainer())==null?void 0:J.closeSheet(),6);case 6:if(g.viewModel&&(g={viewModel:g.viewModel,sheetPosition:g.sheetPosition,expandToFullWidth:g.expandToFullWidth}),(f=Q.getContainer())==null||f.openSheet(g,u,q),Q.currentTarget=u,Q.shouldPreventClosingWhileHovered){Q.onTargetHoverEntered();var G;(G=Q.currentTarget)==null||G.addEventListener("mouseenter",Q.onTargetHoverEntered);
var R;(R=Q.currentTarget)==null||R.addEventListener("mouseleave",Q.onTargetHoverLeft);VRp(Q)}else Q.hasRegisteredHoverCallbacks&&VRp(Q);case 3:_.Fr(e);lHW(L);_.Xr(e,0);break;case 2:t=_.rt(e),L.error=t,L.hasError=!0,e.jumpTo(3)}})};
vr.prototype.closeSheet=function(){var g=this;return _.D(function(u){return g.hideDelayMs?(setTimeout(function(){return _.D(function(q){return q.yield(XLz(g),0)})},g.hideDelayMs),u.return()):u.yield(XLz(g),0)})};
var XLz=function(g){var u;return _.D(function(q){if(q.nextAddress==1){if(g.shouldPreventClosingWhileHovered){if(g.isHovered)return q.return();mQz(g);a6Z(g)}else g.hasRegisteredHoverCallbacks&&(a6Z(g),g.onSheetHoverLeft());return q.yield((u=g.getContainer())==null?void 0:u.closeSheet(),2)}if(q.nextAddress!=4)return g.resetState(),!g.pendingData||_.w("delay_sheet_open_killswitch")?q.jumpTo(0):q.yield(g.openSheet(g.pendingData.data,g.pendingData.target),4);g.pendingData=void 0;_.Wx(q)})};
vr.prototype.isSheetOpen=function(){var g=this,u,q;return _.D(function(Q){return Q.return((q=(u=g.getContainer())==null?void 0:u.isSheetOpen())!=null?q:!1)})};
vr.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 mQz=function(g){var u;(u=g.currentTarget)==null||u.removeEventListener("mouseenter",g.onTargetHoverEntered);var q;(q=g.currentTarget)==null||q.removeEventListener("mouseleave",g.onTargetHoverLeft)},VRp=function(g){var u,q=(u=g.getContainer())==null?void 0:u.getSheetContainerElement();
q==null||q.addEventListener("mouseenter",g.onSheetHoverEntered);q==null||q.addEventListener("mouseleave",g.onSheetHoverLeft)},a6Z=function(g){var u,q=(u=g.getContainer())==null?void 0:u.getSheetContainerElement();
q==null||q.removeEventListener("mouseenter",g.onSheetHoverEntered);q==null||q.removeEventListener("mouseleave",g.onSheetHoverLeft)},OO9=function(g,u){if(!_.w("web_parent_target_for_sheets"))return u;
var q,Q;return(Q=(q=g.getContainer())==null?void 0:q.getParentTarget(u))!=null?Q:u};var Bb=window.documentPictureInPicture;var x1K=_.CT(["dark"]),Bkb=_.CT(["system-icons"]),zWk=_.CT(["typography"]),nUb=_.CT(["lang"]),kUT=_.CT(["style"]),hWM=_.CT(["dir"]),Yom=_.CT(["rounded-container"]),OMq=_.CT(["style"]),oUq=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],DR=function(g){this.JSC$19013_clientRoot=g;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
DR.prototype.openWindow=function(g){var u=this,q,Q;return _.D(function(L){switch(L.nextAddress){case 1:if(!Bb||!Bb||!ih()||u.currentPipWindow)return L.return(!1);_.b8(L,2);return L.yield((Q=Bb?Bb:null)==null?void 0:Q.requestWindow(g),4);case 4:q=L.yieldResult;_.Xx(L,3);break;case 2:return _.rt(L),L.return(!1);case 3:if(!q)return L.return(!1);q.addEventListener("pagehide",function(){rfx(u)});
q.addEventListener("resize",u.handlePipWindowResize);SoJ(q);gTm(q);TLb(q);return L.yield(Tkb(q),5);case 5:if(!VNS())return L.return(!1);u.currentPipWindow=q;u.JSC$19013_eventForwarder=U13(q,u.JSC$19013_clientRoot);u.pipWindowResizeDelay=new _.S7(function(){u.currentPipWindow&&_.YJ(u.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.IW(u.currentPipWindow.innerWidth,u.currentPipWindow.innerHeight)])},q);
u.pipWindowResizeDelay.start();return L.return(!0)}})};
DR.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var rfx=function(g){if(g.currentPipWindow){var u,q;(u=Bb?Bb:null)==null||(q=u.window)==null||q.close();g.currentPipWindow.removeEventListener("resize",g.handlePipWindowResize);var Q;(Q=g.pipWindowResizeDelay)==null||Q.dispose();g.pipWindowResizeDelay=void 0;var L;(L=g.JSC$19013_eventForwarder)==null||L.stop();g.JSC$19013_eventForwarder=void 0;u=_.N(g.onCloseCallbacks);for(q=u.next();!q.done;q=u.next())q=q.value,q();g.onCloseCallbacks=[];g.currentPipWindow=null}};
DR.prototype.getWindow=function(){return this.currentPipWindow};
var WVC=function(g,u){var q;(q=g.onCloseCallbacks)==null||q.push(u)};
DR.prototype.pictureInPictureSupported=function(){return!(!Bb||!Bb)&&ih()};
_.z3.Object.defineProperties(DR.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
DR[zv]=[Y4R];var TBx=new _.Fv("PICTURE_IN_PICTURE_CONTROLLER");var uDh=function(g,u){this.lengthY=this.lengthX=0;this.lengthX=u.x-g.x;this.lengthY=u.y-g.y};var hLn=function(){},uon=function(g,u){var q;
(q=g.headerElement)==null||q.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:u}))};var Y9z=function(){};
Y9z.prototype.openPopup=function(g,u,q,Q){var L=this,E;return _.D(function(y){if(!L.container)return y.return();E={openPopupAction:{popup:u,popupType:q,uniqueId:g}};return y.return(L.container.handleOpenPopupAction(E,Q))})};
Y9z.prototype.closePopup=function(g){this.container&&this.container.closePopup(g)};var O29=function(){this.openTunnels=new Map},mnf=function(g,u,q){if(ETq(q)){var Q=_.U7(q,"gclid");
q={handleEvent:function(v){u&&!u.closed&&typeof u.postMessage==="function"&&v&&v.origin&&v.source===u&&v.data&&v.data.action==="gcl_setup"&&u.postMessage(Object.assign({},{action:"gcl_transfer"},Q&&{gclid:Q},{gadSource:2}),v.origin)}};
for(var L=_.N(g.openTunnels),E=L.next();!E.done;E=L.next()){var y=_.N(E.value);E=y.next().value;y=y.next().value;if(E.closed)try{window.removeEventListener("message",y),g.openTunnels.delete(E)}catch(v){_.Zf(v)}}u&&g.openTunnels.size<15&&(g.openTunnels.set(u,q),window.addEventListener("message",q))}};var KVp=function(){this.clientParams=new Map},mkt=function(g){for(var u=_.N(g.clientParams.keys()),q=u.next();!q.done;q=u.next())q=q.value,q.startsWith("yt-mini-app-share")&&g.clientParams.delete(q)};var xQZ=function(g,u){_.Lh.call(this);var q=this;this.shortsController=g;this.storeWithShorts=u;g=_.qG(this.storeWithShorts,_.qDJ,function(Q){if(Q){var L,E=(L=q.shortsController.getRoot())==null?void 0:L.getPlayer(),y;(L=(y=q.shortsController.alternativePlayerContainerElement)==null?void 0:y.getPlayerContainer())&&(E==null||E.appendTo(L))}else{var v;y=(v=q.shortsController.alternativePlayerContainerElement)==null?void 0:v.getPlayerContainer().querySelector("#player");L=q.shortsController.activeIndex;
(v=(E=q.shortsController.getRoot())==null?void 0:E.querySelector('ytd-reel-video-renderer[id="'+L+'"] #player-container'))&&(y==null||y.appendTo(v,void 0,!0))}});
this.addOnDisposeCallback(g)};
_.A(xQZ,_.Lh);var pg=function(g,u,q,Q){var L=this;this.storeWithShorts=g;this.ephemeralResponseStore=u;this.innertubeTransportService=q;this.innertubeTransportLoader=Q;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Sy(_.ry);this.isShortsPipActive=_.Sy(_.WY);this.nextReelVe=_.Yq(56921);this.prevReelVe=_.Yq(56922);this.backButtonVe=_.Yq(22156);this.TEST_ONLY={getActiveModules:function(){return L.activeModules}}},BB9=function(g){g.unsubscribeFromStore=
_.qG(g.storeWithShorts,_.umZ,function(u){g.initOrDisposeActiveModules(u);
!u&&g.storeWithShorts.getState().shorts.isFullscreen&&(_.dw(document.documentElement),g.storeWithShorts.dispatch(_.ft5(!1)))});
g.initOrDisposeActiveModules(_.umZ(g.storeWithShorts.getState()))},OHZ,Kvx,zLn;
pg.prototype.initOrDisposeActiveModules=function(g){g?this.activeModules.push(new xQZ(this,this.storeWithShorts)):(_.mv(this.activeModules),this.activeModules.length=0)};
pg.prototype.registerRootElement=function(g){this.rootElement=g;BB9(this)};
pg.prototype.getRoot=function(){return this.rootElement};
pg.prototype.setActiveIndex=function(g){this.activeIndex=g};
_.rkp=function(g,u){var q,Q,L,E,y,v,J;return _.D(function(f){switch(f.nextAddress){case 1:return q=new Xn,(Q=q.JSC$14490_getStoreKey(u))&&g.ephemeralResponseStore.has(Q)?f.yield(g.ephemeralResponseStore.get(Q),7):f.yield(zLn(g,u),4);case 4:L=f.yieldResult;if(!Q){f.jumpTo(3);break}E=Tc(L,3600);return f.yield(g.ephemeralResponseStore.put(Q,new _.B_(E)),3);case 7:L=(y=f.yieldResult)==null?void 0:_.Tx(y);case 3:return((v=L)==null?0:v.replacementEndpoint)&&(J=_.c(L.replacementEndpoint,_.g$))&&L.sequenceContinuation&&
(J.sequenceParams=L.sequenceContinuation),f.return(L)}})};
OHZ=function(g,u){u=(new rP).JSC$14490_getStoreKey(u);return!!u&&g.ephemeralResponseStore.has(u)};
Kvx=function(g,u,q){var Q,L,E,y,v;_.D(function(J){if(J.nextAddress==1){Q=new rP;L=Q.JSC$14490_getStoreKey(u);if(!L)return J.return();if(q.reelWatchSequenceResponse)return E=Tc(q.reelWatchSequenceResponse,3600),g.ephemeralResponseStore.put(L,new _.B_(E)),J.jumpTo(0);if(!g.ephemeralResponseStore.has(L))return J.jumpTo(0);v=q;return J.yield(g.ephemeralResponseStore.get(L),4)}v.reelWatchSequenceResponse=(y=J.yieldResult)==null?void 0:_.Tx(y);_.Wx(J)})};
zLn=function(g,u){var q=q===void 0?{}:q;var Q,L,E;return _.D(function(y){switch(y.nextAddress){case 1:if(g.innertubeTransportService){Q=g.innertubeTransportService;y.jumpTo(2);break}if(!g.innertubeTransportLoader){_.a4(Error("zj"));y.jumpTo(2);break}return y.yield(g.innertubeTransportLoader(),4);case 4:Q=y.yieldResult;case 2:return y.yield((L=Q)==null?void 0:_.ce(L,u,q),5);case 5:return E=y.yieldResult,y.return(E)}})};
_.z3.Object.defineProperties(pg.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
pg[zv]=[bHh,_.xe,_.xv(_.QY),_.xv(ndn)];_.nGz=new _.Fv("STORAGE_MANAGER_TOKEN");var Ipm=["touchmove","scroll"];var k9h=!1;var Dgm=!1;var lpu={onSpanEnd:function(g){g.parentId==null&&(k9h||(yCf(),setInterval(yCf,6E5),k9h=!0),JCf(g,"web_tracing_action"))}};var e$h=URL.createObjectURL;var ACK,S9h={traceAllComponents:_.w("web_tracing_all_components"),exportToCsi:_.w("web_tracing_export_to_csi"),enabledSpansArray:_.U_("web_tracing_enabled_spans"),exportToDevTools:_.w("web_tracing_export_to_devtools"),maxBreadcrumbs:_.S8("tel_max_breadcrumbs",0)};ACK=new t6m(S9h);var ZCb=_.w("web_shorts_enable_tracing");var oGZ=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},UQE;
oGZ.prototype.enqueue=function(g,u){u===1?this.currentPersistentToast=g:this.queue.push(g);_.gvZ(this)};
_.gvZ=function(g){var u;(u=g.currentToast)!=null&&u.isOpened()||(g.queue.length?(g.currentToast=g.queue.shift(),g.currentToast.open()):g.currentPersistentToast&&g.currentPersistentToast.open())};_.Ju=new _.Fv("TOAST_MANAGER_TOKEN");var uRC=new _.Fv("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var q_L=new _.Fv("VIEW_TRANSITION_COORDINATOR_TOKEN");var Q4C=function(g){this.config=g;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;g=_.N(g.transitionConfigs);for(var u=g.next();!u.done;u=g.next())u=_.N(u.value).next().value,this.transitionTasksMap.set(u,[])};
Q4C.prototype.registerElement=function(g,u,q){q=q===void 0?!1:q;for(var Q=_.N(Object.keys(u)),L=Q.next(),E={};!L.done;E={viewTransitionName:void 0},L=Q.next()){L=L.value;E.viewTransitionName=u[L];var y=this.elementTasksMap.get(g),v=void 0;if((v=y)==null?0:v.has(L)){_.lD(new _.Ji("Element already registered for transition",g.tagName,L));break}y=y||new Map;y.set(L,{beforeTransition:function(J){return function(){g.style.viewTransitionName=J.viewTransitionName}}(E),
afterTransition:function(){g.style.viewTransitionName&&(g.style.viewTransitionName="")},
runOnce:q});this.elementTasksMap.set(g,y)}};
_.t7=function(g,u){var q=g.elementTasksMap.get(u);q&&(q.clear(),q.size===0&&g.elementTasksMap.delete(u))};
Q4C[zv]=[uRC];var EvH=_.r(function(g){var u=_.Hk("yt-expandable-metadata-header-view-model"),q=_.YH(function(Q){_.$q(_.gL(),{data:g.data()});if(!_.vY(_.y4(Q),u.value,["A".toString(),"BUTTON".toString()])){var L;(L=g.expandedCallback)==null||L.call(g,!1)}});
return _.p("yt-expandable-metadata-header-view-model",{el:u,class:"ytExpandableMetadataHeaderViewModelHost"},_.p(_.M,{cond:function(){return g.expanded()},
then:function(){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":q},_.p("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.p(_.M,{cond:function(){return g.data().expandedTitleImage},
then:function(Q){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.p(_.IT,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Q}))}}),_.p("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.p("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.p(_.c2,{text:function(){return g.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.p(_.c2,{text:function(){return g.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.p(_.c2,{text:function(){return g.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.p("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.p(_.Up,{data:function(){return g.data().infoButton}},{buttonViewModel:_.TT}),_.p(_.Up,{data:function(){return g.data().collapseButton}},{buttonViewModel:function(Q){return _.p(_.TT,{data:Q.data,
onClick:function(){var L;(L=g.expandedCallback)==null||L.call(g,!1)}})}})))},
else:function(){return _.p(LWL,Object.assign({},g))}}))},"Ag"),PLC=_.r(function(g){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.p(_.M,{cond:function(){return g.data().collapsedLabelImage},
then:function(u){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.p(_.IT,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:u,alt:""}))}}),_.p(_.c2,{text:function(){return g.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Bg"),LWL=_.r(function(g){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.YH(function(){_.$q(_.gL(),{data:g.data()});var u;(u=g.expandedCallback)==null||u.call(g,!0)})},_.p("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.p(_.M,{cond:function(){return g.data().collapsedImage},
then:function(u){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.p(_.IT,{height:20,preserveHeight:!0,preserveWidth:!0,data:u,alt:""}))}}),_.p(_.M,{cond:function(){return g.data().showLeadingCollapsedLabel},
then:function(){return _.p(PLC,Object.assign({},g))}}),_.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.p(_.c2,{text:function(){return g.data().collapsedTitle}}))),_.p("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.p(_.M,{cond:function(){return!g.data().showLeadingCollapsedLabel},
then:function(){return _.p(PLC,Object.assign({},g))}}),_.p(_.Up,{data:function(){return g.data().infoButton}},{buttonViewModel:_.TT}),_.p(_.Up,{data:function(){return g.data().expandButton}},{buttonViewModel:function(u){var q=u.data;
return _.p(_.TT,{data:q,onClick:function(){_.$q(_.gL(),{data:q});var Q;(Q=g.expandedCallback)==null||Q.call(g,!0)}})}})))},"Cg");_.Niz=_.r(function(g){var u=_.N(_.mX(function(){return g.data().initiallyExpanded})),q=u.next().value,Q=u.next().value,L,E=(L=_.Bk().resolve(_.xv(_.gy)))==null?void 0:L(),y=function(){var v=g.data().colorData;
if(v)return E?v==null?void 0:v.darkColorPalette:v==null?void 0:v.lightColorPalette};
return _.p("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.xH({"background-color":function(){var v=y();return(v==null?0:v.section2Color)?_.jh(v.section2Color):""}})},_.p(_.Up,{data:function(){return g.data().header}},{expandableMetadataHeaderViewModel:function(v){return _.p(EvH,{data:v.data,
expanded:function(){return!!q()},
expandedCallback:function(J){Q(J)}})}}),_.p(_.M,{cond:function(){return q()},
then:function(){return _.p("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.p(_.Up,{data:function(){return g.data().expandedContent}},{horizontalShelfViewModel:function(v){return _.p(_.IS,{data:v.data,
includeMargin:!0,forceNarrowLayout:!0,palette:y})},
videoSummaryContentViewModel:function(v){return _.p(bL8,{data:v.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(v){return _.p(_.nG,{data:v.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(v){return _.p(_.cQ,{data:v.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.p(_.Up,{data:function(){return g.data().expandedBottomButtons}},{buttonViewModel:function(v){return _.p("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.p(_.TT,{data:v.data}))}}))}}))},"Dg");var s49=_.r(function(g){var u=g.text;var q=g.marqueeSpacing;var Q=g.scrollDelay;var L=g.scrollDuration;var E=g.enableMarqueeScroll;g=g.large;var y=_.N(_.jR(!1,void 0,"WyNYFf")),v=y.next().value,J=y.next().value,f=_.N(_.jR(0,void 0,"OoTdhe"));y=f.next().value;var t=f.next().value,e=_.Hk("marquee-scroll");f=_.Hk("div");var G=_.Hk("span"),R=_.Bk().resolve(_.cY);_.bX(function(){if(E()){var d=G.value.getBoundingClientRect().width,F=e.value.getBoundingClientRect().width;if(d>F){var V=(R==="ltr"?-1:1)*(d+
(q?q():16));Promise.resolve().then(function(){J(!0);t(V)})}}},"dv0Anf");
var H={},l={};return _.p("marquee-scroll",{class:_.Ty("ytMarqueeScrollHost",(H.ytMarqueeScrollHostLarge=g,H)),el:e},_.p("div",{id:"marquee-scroll-inner-container",class:_.Ty("ytMarqueeScrollInnerContainer",(l.ytMarqueeScrollAnimationEnabled=function(){return v()},l)),
el:f,style:_.xH({gap:q?(0,_.GI)(q):"16px","animation-duration":L?mA8(L):"16s","animation-delay":Q?mA8(Q):"3s","--marquee-translate":(0,_.GI)(y)})},_.p("span",{el:G,dir:"auto"},_.p(_.c2,{text:u,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.p(_.M,{cond:v,then:function(){return _.p("span",{"aria-hidden":"true",dir:"auto"},_.p(_.c2,{text:u,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fg");_.yMz=_.r(function(g){var u=g.data;var q=g.overlayDensity;g=_.YH(function(){u().onTapCommand&&_.ey(u().onTapCommand);return!1});
var Q=_.sI(),L=function(){return(q==null?void 0:q())===1?22:16},E={};
return _.p("reel-sound-metadata-view-model",{class:_.Ty("ytReelSoundMetadataViewModelHost",(E.ytReelSoundMetadataViewModelHostLarge=function(){return(q==null?void 0:q())===1},E)),
"on:click":g,tabindex:0,role:"button","on:keydown":Q},_.p("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.p(_.M,{cond:function(){return u().musicIcon},
then:function(y){return _.p(_.IT,{data:y,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:L})}}),_.p("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.p(s49,{text:function(){return u().soundMetadata},
enableMarqueeScroll:function(){return!!u().enableMarqueeScroll},
large:function(){return(q==null?void 0:q())===1}}))))},"Gg");var vvh,DqH,j4n,M8Z,eI9,fYt,RIK,$qf;vvh=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];DqH=_.S8("wil_icon_max_concurrent_fetches",Infinity);
j4n=function(g,u,q){var Q=this;this.iconSet=g;this.appDirection=u;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Qq.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.w("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.w("wil_icon_network_first");this.renderWhenIdle=_.w("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.w("wil_icon_load_immediately");this.isPurging=!1;g=function(){Q.cacheStorageAvailable&&(Q.cacheStorageAsync=_.Qq.caches.open("yt-icons").then(function(E){return Q.cacheStorageSync=E}).catch(function(){Q.cacheStorageAvailable=!1}))};
q=(q==null?void 0:q())||{};q=_.N(Object.entries(q));for(u=q.next();!u.done;u=q.next()){var L=_.N(u.value);u=L.next().value;L=L.next().value;L=JM(L);pkt(L);this.iconCache[u]=L.cloneNode(!0)}this.isPurging=JML(this);this.isPurging instanceof Promise?this.isPurging.then(g):g()};
_.S83=function(g,u){var q=g.resolveIcon(u);return q?g.renderingMode===1?fYt(g,q,g.renderingMode):(u=g.iconCache[q.url])?(u=u.cloneNode(!0),M8Z(g,u),fYt(g,q,g.renderingMode,u)):_.t8t(g,q).then(function(Q){var L=Q?0:1;M8Z(g,Q);return fYt(g,q,L,Q)}):(_.lD(new _.Ji("Icon not found",{iconShape:u})),function(){})};
M8Z=function(g,u){if(u){g.counter+=1;g="_yt"+g.counter;u=[u].concat(_.na(u.getElementsByTagName("*")));u=_.N(u);for(var q=u.next();!q.done;q=u.next())if(q=q.value,q.tagName==="style"&&q.textContent)q.textContent=eI9(q.textContent,g,!0);else for(var Q=_.N(q.attributes),L=Q.next();!L.done;L=Q.next()){L=L.value;L.name==="id"&&(L.value+=g);["mask","fill","clip-path"].includes(L.name)&&(L.value=eI9(L.value,g));if(L.name==="style"){var E=q.style;try{E.cssText=eI9(E.cssText,g,!0)}catch(t){var y=void 0,v=
void 0,J=void 0,f=void 0;jr({error:((y=t)==null?void 0:(J=(v=y).toString)==null?void 0:J.call(v))||"",el:q.outerHTML,style:!!E,cssText:(f=E)==null?void 0:f.cssText})}}L.name==="xlink:href"&&(L.value=L.value.replace(/#(.*)/,"#$1"+g))}}};
eI9=function(g,u,q){var Q=/url\(["']?#(.*?)["']?\)/;(q===void 0?0:q)&&(Q=/url\(["']?#(.*?)["']?\)/g);return g.replace(Q,"url(#$1"+u+")")};
fYt=function(g,u,q,Q){return function(L,E){var y;var v=Object.assign({},{iconWidth:u.size+"px",iconHeight:u.size+"px",iconDisplay:"block"},E,{iconColor:(y=E==null?void 0:E.iconColor)!=null?y:"currentcolor"});y=_.oG("DIV");E=v.iconColor;var J=v.iconFilter;v="width: "+v.iconWidth+"; height: "+v.iconHeight+"; display: "+v.iconDisplay+";";J&&(v+=" filter: "+J+";");q===0&&(v+=" fill: "+E+";");q===1&&(J=u.url,v+=" -webkit-mask: url("+J+") no-repeat center / cover; mask: url("+(J+") no-repeat center / cover; background-color: ")+
E);u.allowMirroring&&g.appDirection==="rtl"&&(v+=" transform: scale(-1, 1); transform-origin: center center;");y.setAttribute("style",v);q===0&&Q&&y.appendChild(Q);L.appendChild(y)}};
_.t8t=function(g,u){var q,Q,L;return _.D(function(E){q=function(y){return QT(y)};
Q=u.url;if(!Gvf(Q))throw Error("Cj");L=$qf(g,Q);return E.return(L.then(function(y){return y.clone().text()}).then(function(y){var v=q(y);
y=u.size;var J=_.oG("DIV");_.fa(J,v);v=_.UU(J.firstElementChild!==void 0?J.firstElementChild:_.miH(J.firstChild,!0));y=pkt(v,y);g.iconCache[Q]=y.cloneNode(!0);delete g.responsePromises[Q];return y}).catch(function(){}))})};
RIK=function(g){var u,q=(u=g.requestAninmationFrameResolver)==null?void 0:u.promise;q||(g.requestAninmationFrameResolver=new _.KU,q=g.requestAninmationFrameResolver.promise,_.Qq.requestAnimationFrame(function(){var Q;(Q=g.requestAninmationFrameResolver)==null||Q.resolve();g.requestAninmationFrameResolver=null}));
return q};
$qf=function(g,u){var q,Q;return _.D(function(L){if(L.nextAddress==1)return g.waitForAnimationFrame?L.yield(RIK(g),2):L.jumpTo(2);q=g.responsePromises[u];q||(Q=function(){var E,y,v;return _.D(function(J){switch(J.nextAddress){case 1:if(!g.cacheStorageAvailable){E=void 0;J.jumpTo(2);break}if(y=g.cacheStorageSync){J.jumpTo(3);break}return J.yield(g.cacheStorageAsync,4);case 4:y=J.yieldResult;case 3:E=y;case 2:return v=E,g.isNetworkFirstStrategy?J.return(g.fetchAndUpdateCache(u,v).catch(g.getCacheStorageResponse.bind(g,
u,v))):J.return(g.getCacheStorageResponse(u,v).catch(g.fetchAndUpdateCache.bind(g,u,v)))}})},q=g.renderWhenIdle?new Promise(function(E,y){_.M_(_.Hv,function(){Q().then(E).catch(y)},10)}):Q(),g.responsePromises[u]=q);
return L.return(q.catch(function(E){delete g.responsePromises[u];jr({error:(E==null?0:E.toString)?E.toString():"",url:u});throw E;}))})};
j4n.prototype.fetchAndUpdateCache=function(g,u){var q=this;return _.D(function(Q){return Q.return(wk9(q,g).then(function(L){cMb(q,g,L,u);return L}))})};
var wk9=function(g,u){var q;return _.D(function(Q){if(g.numFetches<DqH)return g.numFetches+=1,Q.return(HSH(g,u).finally(function(){--g.numFetches;if(Object.keys(g.queuedResponseResolvers).length){var L=Object.keys(g.queuedResponseResolvers)[0],E=g.queuedResponseResolvers[L];delete g.queuedResponseResolvers[L];E.resolve(wk9(g,L))}}));
q=new _.KU;g.queuedResponseResolvers[u]=q;return Q.return(q.promise)})},HSH=function(g,u,q){q=q===void 0?2:q;
var Q;return _.D(function(L){Q={credentials:"same-origin",priority:"low"};return L.return(_.Qq.fetch(u,Q).then(function(E){return E.ok?E:Promise.reject(Error("Dj`"+E.status+"`"+E.statusText))}).catch(function(E){if(q>0)return HSH(g,u,q-1);
throw E;}))})},cMb=function(g,u,q,Q){_.D(function(L){return Q?L.return(new Promise(function(E){_.M_(_.Hv,function(){var y,v;
return _.D(function(J){switch(J.nextAddress){case 1:if(!g.isNetworkFirstStrategy){y=void 0;J.jumpTo(2);break}return J.yield(Q.match(u).catch(function(){}),3);
case 3:y=J.yieldResult;case 2:if(v=y){J.jumpTo(4);break}return J.yield(Q.put(u,q.clone()).catch(function(f){jr({error:(f==null?0:f.toString)?f.toString():"",url:u})}),4);
case 4:E(),_.Wx(J)}})},50)})):L.return()})};
j4n.prototype.getCacheStorageResponse=function(g,u){return _.D(function(q){return u?q.return(u.match(g).then(function(Q){return Q&&Q.ok?Q:Promise.reject()})):q.return(Promise.reject())})};
var pkt=function(g,u){u===void 0||g.getAttribute("viewBox")||g.setAttribute("viewBox","0 0 "+u+" "+u);g.setAttribute("focusable","false");g.setAttribute("aria-hidden","true");u=_.w("killswitch_remove_icon_fill_color");g.getAttribute("fill")!=="currentcolor"&&g.getAttribute("fill")!=="currentColor"||u||g.removeAttribute("fill");try{g.style.pointerEvents="none",g.style.display="inherit",g.style.width="100%",g.style.height="100%"}catch(L){var q;jr({error:((q=L)==null?0:q.toString)?L.toString():""});
try{g.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(E){var Q;jr({error:((Q=E)==null?0:Q.toString)?E.toString():""})}}return g},Gvf=function(g){for(var u=_.N(vvh),q=u.next();!q.done;q=u.next())if(g.startsWith(q.value)&&g.endsWith(".svg"))return!0;
return!1};
j4n.prototype.resolveIcon=function(g){return this.iconSet.resolveIcon(g)};
var jr=function(g){_.Io(new _.Ji("Error in IconManager",g))},JML=function(g){if(_.w("wil_icons_cache_purge_killswitch"))return!1;
try{var u=_.Qq.localStorage}catch(E){return!1}if(!u||!g.cacheStorageAvailable)return!1;var q=function(E){try{var y;(y=u)==null||y.setItem("yt-icons-last-purged",E.toString())}catch(J){var v;jr({error:((v=J)==null?0:v.toString)?J.toString():""})}},Q=Number(u.getItem("yt-icons-last-purged"));
if(!Q)return Q=new Date,Q=Q.setDate(Q.getDate()-Math.floor(Math.random()*90+1)),q(Q),!1;if(function(E,y){E=new Date(E);y=new Date(y);return y.getMonth()-E.getMonth()+12*(y.getFullYear()-E.getFullYear())}(Q,Date.now())<3)return!1;
try{return _.Qq.caches.delete("yt-icons").then(function(E){E&&q(Date.now());return E}).catch(function(){return!1}).finally(function(){g.isPurging=!1})}catch(E){var L;
jr({error:((L=E)==null?0:L.toString)?E.toString():""});return!1}};
j4n[zv]=[MgK,_.cY,_.xv(GWh)];_.AMx=function(g,u){this.iconManager=g;this.iconsToFetch=u};
_.AMx[zv]=[_.B$,_.xv(esp)];var ZSh=function(){};var lYt=function(g,u,q){this.requestKey=g;this.yq1=u;this.vwi=q;this.oit=function(){return new XMLHttpRequest};
this.iDM=void 0;this.d11=[]};
lYt.prototype.getLatestChallengeResponse=function(){return this.vwi};
var wW$=function(g,u,q){var Q,L,E,y;return _.D(function(v){if(v.nextAddress==1){_.jF("attestation_challenge_fetch");_.fW("att_fs",void 0,"attestation_challenge_fetch");if(!g.iDM)throw new _.tz(9,"Missing fetcher");return v.yield(g.iDM(u,q),2)}Q=v.yieldResult;E=(L=Q)==null?void 0:L.bgChallenge;if(!E)throw new _.tz(15,"Missing field");g.vwi=Q;g.d11.forEach(function(J){J(Q)});
y=Ltb(E);_.fW("att_fc",void 0,"attestation_challenge_fetch");Jt("attestation_challenge_fetch");return v.return(y)})},xux=function(g,u){var q,Q,L,E,y;
return _.D(function(v){switch(v.nextAddress){case 1:q=new KH(100,3E5,.25,2),Q=void 0;case 2:if(!(q.currBackoffCount_<10)){v.jumpTo(4);break}_.b8(v,5);if(!(q.currBackoffCount_>0)){v.jumpTo(7);break}return v.yield(C9h(q.getValue()),7);case 7:return v.yield(IYh(g,u),9);case 9:return L=v.yieldResult,v.return(L);case 5:E=_.rt(v);E instanceof _.tz?Q=E:(y=E instanceof Error?E.message:"Unknown",Q=new _.tz(9,y));mQ8(q);v.jumpTo(2);break;case 4:if(Q)throw Q;throw new _.tz(9,"Unknown error");}})},IYh=function(g,
u){u=vQR(DuW(new yio,u),g.requestKey);
var q=new _.KU,Q=g.oit();Q.open("POST",g.yq1);Q.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");Q.setRequestHeader("Content-Type","application/json+protobuf");Q.onload=function(){if(_.dfu(Q)){var L=RM2(Q.responseText);q.resolve(L)}else q.reject(new _.tz(_.xqT(_.gu(Q)),Q.statusText))};
Q.onerror=function(){q.reject(new _.tz(_.xqT(_.gu(Q)),Q.statusText))};
Q.send(u.serialize());return q.promise};var CLE=function(g){this.networkStatusManager=g;this.isDownloaded=D1Z===void 0?function(){return!1}:D1Z;
this.isReady=!1;this.l5d=iSh(this)},iSh=function(g){var u;
return _.D(function(q){if(q.nextAddress==1)return q.yield(cMk(),2);if(q.nextAddress!=3)return u=q.yieldResult,q.yield(XDx(u),3);g.my=q.yieldResult;dgb(g.my).then(function(){g.isReady=!0});
return q.return(g.my)})},bSz=function(g,u,q){g.my?(g=g.my.rYn({rI:q,
w28:!0,gGY:!0}),u.serviceIntegrityDimensions={poToken:g}):_.Zf(Error("Fj"))};
CLE.prototype.processContext=function(g){var u=this;if(g.input.match(_.dr(JA0)))var q=g.innerTubeRequest;else if(g.input.match(_.dr(q$i)))q=g.innerTubeRequest.playerRequest;else return _.In();var Q,L=(Q=q)==null?void 0:Q.videoId;return!L||this.isDownloaded(q)||this.networkStatusManager&&!this.my&&!this.networkStatusManager.isNetworkAvailable()||_.w("webpo_exit_on_net_err")&&!this.my&&(window.bgens===1||window.bgens===3)?_.In():this.my?this.isReady?(bSz(this,q,L),_.In()):new lk(dgb(this.my).then(function(){bSz(u,
q,L)})):new lk(this.l5d.then(function(E){return _.D(function(y){if(y.nextAddress==1)return y.yield(dgb(E),2);
bSz(u,q,L);_.Wx(y)})}))};var dq9=new _.Fv("WEB_PO_CONTEXT_PROCESSOR");var FWn=function(g,u){var q=this;this.zpN=0;var Q;this.w0m=(Q=u==null?void 0:u.w0m)!=null?Q:window;this.networkStatusManagerPromise=u==null?void 0:u.networkStatusManagerPromise;var L;this.requestKey=(L=u==null?void 0:u.requestKey)!=null?L:_.o4("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var E;this.hLs=(E=u==null?void 0:u.hLs)!=null?E:function(J){return new Hl(J)};
var y;Q=(y=u==null?void 0:u.xbF)!=null?y:function(J,f,t){return new lYt(J,f,t)};
this.bgChallenge=Ltb(g.bgChallenge);this.ttlSeconds=EPm(ib(g.challenge||""));this.wL=Q(this.requestKey,_.w("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Qq.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",g);this.o35=u==null?void 0:u.o35;bC3(this.wL);var v;this.pBw=(v=u==null?void 0:u.pBw)!=null?v:function(J){_.Z1(q.w0m.document,"visibilitychange",
function(){q.w0m.document.visibilityState==="visible"&&J()})}},aYx=function(g){if(!g.vm){var u={maxAttempts:5,
bC4:g.ttlSeconds*1E3};FNh(g.w0m);g.vm=g.hLs({wL:g.wL,cYB:{disable:_.w("html5_web_po_disable_remote_logging"),yr:"aGIf",ods:ZWJ("html5_web_po_experiment_ids"),l1L:_.w("wpo_dis_lfdms")?0:1E3,rwq:function(Q){var L=fd2.get(Q);L||(L=new jS5(Q),L=new nH(L),fd2.set(Q,L));return L}},
oms:u,zPM:g.bgChallenge,yzY:mgf});g.zpN=Date.now();eYx(g.vm,function(){g.zpN=Date.now()});
g.w0m.bgevmc={p:function(){var Q;(Q=g.vm)==null||Q.pause()},
r:function(){var Q;(Q=g.vm)==null||Q.resume()},
cr:function(){var Q,L;return(L=(Q=g.vm)==null?void 0:Q.checkForRefresh())!=null?L:Promise.resolve()}};
lYf(g.vm,function(){return _.D(function(Q){return Q.return(mqL(g))})});
var q=g.o1F.bind(g);g.networkStatusManagerPromise&&g.ttlSeconds>0&&g.networkStatusManagerPromise.then(function(Q){Q.listen("publicytnetworkstatus-online",q)});
g.pBw(q)}};
FWn.prototype.o1F=function(){if(Date.now()>this.zpN+this.ttlSeconds*1E3){var g;(g=this.vm)==null||tjX(g)}};
var mqL=function(g){if(g.tHp)return g.tHp;if(!g.vm)throw Error("Gj");g.tHp=new iJ({vm:g.vm,wL:g.wL,pqR:!0,onError:mgf,oms:g.o35});return g.tHp},V6q=function(g,u){g=new FWn(g,u);
aYx(g);(u==null?0:u.yZN)||mqL(g)};var V8z=_.QYK.ephemeralActionSelector,Xkh=function(g,u){this.store=g;this.queue=[];u==null||u.addEventListener("yt-navigate-start",this.reset.bind(this))};
Xkh.prototype.enqueue=function(g){var u=g.command,q=g.durationMs,Q=g.elementToFocus;var L=g.label;var E=g.elementToFocus;g.command?L=_.Ug("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:L,shortcut:_.Ug("SHIFT_PLUS_ENTER")}):E&&(g=L+". "+_.Ug("SHIFT_PLUS_ENTER")+" for more information.",L=_.Ug("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:L,shortcut:_.Ug("SHIFT_PLUS_ENTER")},g));q={announcement:L,durationMs:q!=null?q:8E3};u?q.command=u:Q&&(Q.classList.add("ephemeral-action-focusable-element"),q.selector=Q.tagName+
".ephemeral-action-focusable-element");this.queue.push(q);rMb(this)};
Xkh.prototype.activate=function(g){var u=V8z(this.store.getState());if(u){if(u==null?0:u.command)_.fr(u.command),this.store.dispatch(svi(null));if(u==null?0:u.selector)u=document.querySelector(u.selector),_.mum(u);g.preventDefault()}};
var rMb=function(g){if(!V8z(g.store.getState())&&g.queue.length){var u=g.queue.shift();u&&(g.previousAnnouncement===u.announcement&&(u.announcement+="\u00a0"),g.store.dispatch(svi(u)),g.previousAnnouncement=u.announcement,g.JSC$19135_timeoutId=setTimeout(function(){if(u.selector){var q;(q=document.querySelector(u.selector))==null||q.classList.remove("ephemeral-action-focusable-element")}g.store.dispatch(svi(null));rMb(g)},u.durationMs))}};
Xkh.prototype.reset=function(){this.JSC$19135_timeoutId&&clearTimeout(this.JSC$19135_timeoutId);this.store.dispatch(svi(null));this.queue.length=0;this.JSC$19135_timeoutId=void 0};
Xkh[zv]=[_.Ja,_.xv(_.zL)];_.fg=new _.Fv("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var WWC=new _.Fv("AUTH_SERVICE_TOKEN");var WNK=_.CT(["about:blank"]),rCJ;var TiL=new _.Fv("API_IFRAME_TOKEN");var HB0;HB0=new _.Fv("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.hIx=new _.Fv("MISC_UI_SHARED_FLAGS_TOKEN");var Y_C=function(){};
Y_C.prototype.getFlag=function(g){if(g.configType!==2)throw Error("Hj");return OSZ(g)};
var OSZ=function(g){switch(g.flagType){case "bool":return _.w(g.flagName);case "int":return _.W5(_.S8(g.flagName));case "double":return _.S8(g.flagName);case "string":return _.o4(g.flagName);case "int32_list":return ZWJ(g.flagName);case "int64_list":return ZWJ(g.flagName).map(function(u){return _.W5(u)});
case "string_list":return _.U_(g.flagName);default:throw Error("Ij");}};var Mz=function(g,u,q){u=u===void 0?{}:u;pA.call(this,q===void 0?"uninitialized":q);this.env=g;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}];u.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=u.shouldWaitOnAsyncImmediate)};
_.A(Mz,pA);Mz.prototype.init=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return u.processPluginOptions.shouldWaitOnAsyncImmediate?Q.yield(g(u.env),2):(g(u.env),Q.jumpTo(2));if(Q.nextAddress!=4)return u.jobSet?Q.yield(u.jobSet.completedResolver.promise,4):Q.jumpTo(4);q=_.A4();q.parkOrScheduleJob(function(){u.transition("rendering")},10,"ci");
_.Wx(Q)})};
Mz.prototype.initialRender=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return u.processPluginOptions.shouldWaitOnAsyncImmediate?Q.yield(g(u.env),2):(g(u.env),Q.jumpTo(2));if(Q.nextAddress!=4)return u.jobSet?Q.yield(u.jobSet.completedResolver.promise,4):Q.jumpTo(4);q=_.A4();q.parkOrScheduleJob(function(){u.transition("rendered")},10,"cr");
_.Wx(Q)})};
Mz.prototype.afterRenderImmediate=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return u.processPluginOptions.shouldWaitOnAsyncImmediate?Q.yield(g(u.env),2):(g(u.env),Q.jumpTo(2));if(Q.nextAddress!=4)return u.jobSet?Q.yield(u.jobSet.completedResolver.promise,4):Q.jumpTo(4);q=_.A4();q.parkOrScheduleJob(function(){u.transition("after-render-deferred")},10,"carml");
_.Wx(Q)})};
Mz.prototype.afterRenderDeferred=function(g){var u=this;return _.D(function(q){g(u.env);_.Wx(q)})};_.di("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var KWf={},xqh=(KWf.rendered={priority:0,callback:function(g){hNo(g.injector.resolve(t_))}},KWf);var lki=new _.Fv("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),BiC=new _.Fv("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var zIE=function(g){this.callbackFnMap=g;this.configMap={}};
zIE.prototype.handleResponse=function(g){var u;if(g=(u=g.responseContext)==null?void 0:u.serviceTrackingParams)for(u=_.N(g),g=u.next();!g.done;g=u.next()){g=g.value;var q=g.params,Q=g.service;if(q&&Q){this.configMap[Q]||(this.configMap[Q]=new rs0);g=this.configMap[Q];var L=void 0,E=(L=this.callbackFnMap)==null?void 0:L[Q];q=_.N(q);for(Q=q.next();!Q.done;Q=q.next())L=Q.value,Q=L.key,L=L.value,Q&&L&&(g.set(Q,L),E&&E(Q,L))}}};
zIE.prototype.getConfig=function(g){return this.configMap[g]||void 0};
zIE[zv]=[_.xv(BiC)];var nvL=!1,z$J=0,OCF=null,B83=null;var kvK=new _.Fv("NETWORK_SLI_TOKEN");var S_n=function(g){this.networkSli=g};
S_n.prototype.fetch=function(g,u,q){var Q=this,L;return _.D(function(E){L=ov9(Q,g,u);return E.return(fetch(L).then(function(y){return Q.handleResponse(y,q)}).catch(function(y){_.Io(y);
if((q==null?0:q.expectJsonStrict)&&y instanceof uy&&y.errorType===1)return Promise.reject(y)}))})};
var S5i=function(g,u,q,Q){var L,E,y,v,J,f,t;return _.D(function(e){switch(e.nextAddress){case 1:return L=ov9(g,u,q),_.b8(e,2),e.yield(fetch(L),4);case 4:E=e.yieldResult;_.Xx(e,3);break;case 2:throw _.rt(e),new uy(2,"Failed to parse streaming response",L.url);case 3:if(!E.redirected&&!E.ok)throw(y=g.networkSli)==null||y.failure(),new _.Ji("Streaming fetch request not ok",L.url);if(!E.body)throw new _.Ji("No response body in streaming response",L.url);v={};if(_.w("web_streaming_fast"))return J=E.body.getReader(),
e.return(Uqh(g,J,v,Q));f=E.body.pipeThrough(new TextDecoderStream).getReader();t=new _.vU;return e.return(gQZ(g,f,t,H$f,v,Q))}})},ov9=function(g,u,q){if(g.networkSli){var Q=_.YB(_.g6(u,"key"))||"/UNKNOWN_PATH";
g.networkSli.start(Q)}g=q;_.w("wug_networking_gzip_request")&&(g=X$u(q));return new window.Request(u,g)},Uqh=function(g,u,q,Q){var L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k,LZ,sb,Rm,M3,tT,mJ,hT,Yu,Mx,po,KZ;
return _.D(function(G2){switch(G2.nextAddress){case 1:L=new TextDecoder("utf-8"),E=[],v=y=0,_.b8(G2,2,3);case 5:return G2.yield(u.read(),8);case 8:J=G2.yieldResult;f=J.value;if(t=J.done){e=0;if(E.length>y)for(e=E[y].length-v,G=y+1;G<E.length;G++)e+=E[G].length;e>0&&(R=nTb(E,e,y,v),H=R.indexOf(123),l=R.lastIndexOf(125),H!==-1&&l!==-1&&l>H&&(d=R.subarray(H,l+1),F=JSON.parse(L.decode(d)),H$f(q,F),V=void 0,(V=Q)==null||V(q,F)));z=void 0;(z=g.networkSli)==null||z.success();return G2.return(q)}E.push(f);
O=y;for(W=v;O<E.length;)if(x=E[O],k=x.indexOf(10,W),k===-1){if(O===E.length-1)break;O++;W=0}else{LZ=O;sb=k+1;Rm=0;if(y===LZ)Rm=sb-v;else{Rm=E[y].length-v;for(M3=y+1;M3<LZ;M3++)Rm+=E[M3].length;Rm+=sb}tT=nTb(E,Rm,y,v,LZ,sb);mJ=tT.indexOf(123);hT=tT.lastIndexOf(125);if(mJ!==-1&&hT!==-1&&hT>mJ){Yu=tT.subarray(mJ,hT+1);try{Mx=JSON.parse(L.decode(Yu)),H$f(q,Mx),po=void 0,(po=Q)==null||po(q,Mx)}catch(Ab){throw new uy(1,"Failed to parse streaming response object",L.decode(Yu));}}y=O;W=v=k+1;v===x.length&&
(y++,v=0,O=y,W=0)}G2.jumpTo(5);break;case 3:_.Fr(G2);u.releaseLock();_.Xr(G2,0);break;case 2:KZ=_.rt(G2);if(KZ instanceof uy)throw KZ;throw new uy(1,"Failed to process streaming response");}})},gQZ=function(g,u,q,Q,L,E){var y,v,J,f,t,e,G,R,H;
return _.D(function(l){if(l.nextAddress==1)return l.yield(u.read(),2);y=l.yieldResult;v=y.value;if(J=y.done)return(f=g.networkSli)==null||f.success(),l.return(L);try{t=q.parse(v)}catch(d){throw new uy(1,"Failed to parse streaming response",v);}if(t!=null)for(e=_.N(t),G=e.next();!G.done;G=e.next())R=G.value,Q(L,R),H=void 0,(H=E)==null||H(L,R);return l.return(gQZ(g,u,q,Q,L,E))})};
S_n.prototype.handleResponse=function(g,u){var q=g.text().then(function(Q){if((u==null?0:u.jspbResponseCtor)&&g.ok)return Daq(u.jspbResponseCtor,Q);Q=Q.replace(")]}'","");if((u==null?0:u.expectJsonStrict)&&Q)try{var L=JSON.parse(Q)}catch(y){throw new uy(1,"JSON parsing failed after fetch");}var E;return(E=L)!=null?E:JSON.parse(Q)});
g.redirected||g.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),q=q.then(function(Q){_.Io(new _.Ji("Error: API fetch failed",g.status,g.url,Q));return Object.assign({},Q,{errorMetadata:{status:g.status}})}));
return q};
S_n[zv]=[_.xv(kvK)];var uxH=new _.Fv("NETWORK_MANAGER_TOKEN");var qkC=[1,2,4,8,16,30],L9x=function(g){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=g.maxTimeMs;this.maxFrameCount=g.maxFrameCount===void 0?Math.ceil(60*g.maxTimeMs/1E3):g.maxFrameCount;g=_.N(qkC);for(var u=g.next();!u.done;u=g.next())this.brokenFrameSummarizers.push(new Q0z(u.value/60*1E3))},EQK=function(g){var u=g.frameCountInternal>=g.maxFrameCount;
return g.elapsedTimeMs>=g.maxTimeMs||u};
L9x.prototype.summarize=function(){for(var g=[],u=_.N(this.brokenFrameSummarizers),q=u.next();!q.done;q=u.next())q=q.value,q=q.brokenFrameCount!==0?{severityMs:Math.round(q.targetFrameTimeMs),eventCount:q.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(q.averageDurationBetweenEventsMs)}:void 0,q&&g.push(q);return{summaries:g,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.z3.Object.defineProperties(L9x.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 Q0z=function(g){this.targetFrameTimeMs=g;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.z3.Object.defineProperties(Q0z.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var PSL=function(){};
PSL.prototype.start=function(g,u){var q=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var Q=new L9x({maxTimeMs:g});this.monitor=Q;this.lastSummaryInternal=void 0;this.metadataToLog=u;return new Promise(function(L){var E=function(y){if(y===void 0)q.stop(),L(void 0);else if(q.monitor!==Q)y=Object.assign({},Q.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),L(y);else{var v=q.monitor;if(!EQK(v)){v.frameCountInternal++;if(v.prevTime===
void 0)v.startTime=y;else for(var J=y-v.prevTime,f=_.N(v.brokenFrameSummarizers),t=f.next();!t.done;t=f.next()){t=t.value;var e=t.currTimeMs;t.currTimeMs+=J;J>t.targetFrameTimeMs+2&&(t.brokenFrameCount++,t.timeOfFirstBrokenFrameMs===void 0&&(t.timeOfFirstBrokenFrameMs=e),t.timeOfLastBrokenFrameMs=e)}v.prevTime=y}EQK(q.monitor)?L(q.stop()):_.Hv.addJob(E,5,0)}};
_.Hv.addJob(E,5,0)})};
PSL.prototype.stop=function(g){if(!this.monitor)return this.lastSummaryInternal;var u=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(u.monitoringDurationMs){g=g!=null?g:this.metadataToLog;var q={droppedFramesSummary:u,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};g&&(q[g.type]=g.data);_.H6("manualSmoothnessMeasurement",q)}this.monitor=void 0;this.lastSummaryInternal=u;this.metadataToLog=void 0;return u};_.NuH=new _.Fv("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var s0C;s0C=function(g){this.JSC$19177_expiringStorage=new Mu(g)};
_.yi9=function(g){if(_.kO3()&&(g=_.fsb(_.DQ()+"::"+g)))return new s0C(g)};
s0C.prototype.set=function(g,u,q){q=q!==void 0?Date.now()+q:void 0;this.JSC$19177_expiringStorage.set(g,u,q)};
s0C.prototype.get=function(g){return this.JSC$19177_expiringStorage.get(g)};
s0C.prototype.remove=function(g){this.JSC$19177_expiringStorage.remove(g)};_.tu=function(){};
_.tu.getInstance=function(){var g=_.ri("ytglobal.storage_");g||(g=new _.tu,_.xQ("ytglobal.storage_",g));return g};
_.tu.prototype.estimate=function(){var g,u,q;return _.D(function(Q){g=navigator;return((u=g.storage)==null?0:u.estimate)?Q.return(g.storage.estimate()):((q=g.webkitTemporaryStorage)==null?0:q.queryUsageAndQuota)?Q.return(ShK()):Q.return()})};
_.xQ("ytglobal.storageClass_",_.tu);var LUq=0;var DAk=!1;var vQH=_.CT(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Dut=_.CT(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var tph={"/":_.uo,"/?feature=ytca":_.uo,"/feed/downloads":_.EjS};var pWK=EGH.continuationCommandSelector,qB=function(g,u,q){this.JSC$19192_upliftPromise=g;this.store=u;this.JSC$19192_persistentStorePromiseAccessor=q};
qB.prototype.shouldPreferLocalResponse=function(g){return g.browseId==="FEdownloads"||g.browseId==="FEsmart_downloads"&&_.w("kevlar_modern_downloads_page")?!0:!1};
qB.prototype.localInnertubeResponse=function(g){var u=this;return _.D(function(q){return g.browseId==="FEdownloads"?_.w("kevlar_modern_downloads_page")?q.return(Jin(u)):q.return(j0x(u)):g.browseId==="FEsmart_downloads"&&_.w("kevlar_modern_downloads_page")?q.return(fQt(u)):q.return(Promise.reject(Error("Kj")))})};
qB.prototype.canProvideFallbackResponse=function(){return!0};
qB.prototype.localFallbackInnertubeResponse=function(g){var u=this,q,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:return E.yield(u.JSC$19192_persistentStorePromiseAccessor(),2);case 2:q=E.yieldResult;if(g.browseId!=="SPaccount_downloads"||!q){E.jumpTo(3);break}return E.yield(vUk(q),4);case 4:if(Q=E.yieldResult)return E.return(_.Tx(Q));case 3:return g.browseId==="FEwhat_to_watch"?E.return(Mjn(u)):(L=_.w("web_offline_continuation_automatic_retry")||_.w("web_offline_continuation_retry_button"))&&
g.continuation?E.return(tjf(u)):E.return(eYE(u))}})};
var Mjn=function(g){var u;return _.D(function(q){if(q.nextAddress==1)return q.yield(g.JSC$19192_upliftPromise,2);u=_.EeT(g.store.getState().entities);return u.length?q.return(G8t(g,u)):q.return(eYE(g))})},j0x=function(g){var u,q;
return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$19192_upliftPromise,2);if(Q.nextAddress!=3)return u=$ut([{offlineItemSectionRenderer:{}}]),Q.yield(RYZ(g,u),3);q=Q.yieldResult;q.onResponseReceivedActions=[nn("REFRESH_DOWNLOADS")];return Q.return(q)})},Jin=function(g){var u,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d;
return _.D(function(F){if(F.nextAddress==1)return F.yield(g.JSC$19192_upliftPromise,2);if(F.nextAddress!=3)return u=g.store.getState(),q=u.entities,Q=_.yv(q),L=_.vc(q),E=_.VBq(u),y=_.ahu(u),v=_.X_J(u),J=_.s_u(q),f=_.Qv(Q),t=_.Ds(q),e=_.p_q(q),G=_.WfJ(u),R=_.MZ(u),H={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.$du(Q,L,J,e,E,y,f,t,v,G,R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},l="",_.w("kevlar_modern_downloads_skip_downloads_title")||
(l=_.Ug("DOWNLOADS",void 0,"Downloads")),F.yield(wWp(g,H,l),3);d=F.yieldResult;d.onResponseReceivedActions=[nn("REFRESH_DOWNLOADS")];return F.return(d)})},fQt=function(g){var u,q,Q,L,E,y,v,J,f;
return _.D(function(t){if(t.nextAddress==1)return t.yield(g.JSC$19192_upliftPromise,2);if(t.nextAddress!=3)return u=g.store.getState(),q=u.entities,Q=_.yv(q),L=_.Qv(Q),E=_.Ds(q),y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.wzq(Q),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},v=_.Ug("SMART_DOWNLOADS",void 0,"Smart downloads"),J=euu(L,E),t.yield(wWp(g,y,v,J),3);f=t.yieldResult;f.onResponseReceivedActions=
[nn("REFRESH_DOWNLOADS")];return t.return(f)})},eYE=function(g){var u,q;
return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(Wb(g.JSC$19192_upliftPromise,g.store),2);u=Q.yieldResult;q=$ut([P_T(u)]);return Q.return(RYZ(g,q))})},tjf=function(g){var u,q,Q,L;
return _.D(function(E){if(E.nextAddress==1)return u={},q=pWK(g.store.getState()),_.yb(u,_.fe,q),E.yield(Wb(g.JSC$19192_upliftPromise,g.store,u,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);Q=E.yieldResult;L={};_.yb(L,_.gIi,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:Q}}}],targetId:"browse-feedFEwhat_to_watch"});return E.return({responseContext:{},onResponseReceivedActions:[L]})})},$ut=function(g){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:g}}}}]}}},G8t=function(g,u){var q,Q;
return _.D(function(L){var E={contents:ky(u)};q=E&&E.contents?E:{};_.w("kevlar_modern_downloads_page")&&(q=Object.assign({},_.cxF(u),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));Q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:q}}}]}};return L.return(RYZ(g,Q))})},RYZ=function(g,u){var q,Q;
return _.D(function(L){if(L.nextAddress==1)return L.yield(g.JSC$19192_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return q=L.yieldResult,L.yield(hZ(q),3);Q=L.yieldResult;return L.return({responseContext:{},contents:u,topbar:Q})})},wWp=function(g,u,q,Q){var L,E;
return _.D(function(y){if(y.nextAddress==1)return y.yield(g.JSC$19192_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3)return L=y.yieldResult,y.yield(hZ(L),3);E=y.yieldResult;var v=y.return;var J=q;var f=Q;J=J===void 0?"":J;f=f===void 0?"":f;J={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:J}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Ug("SETTINGS",void 0,"Settings"),accessibilityText:_.Ug("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:_.FS("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:f}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:J};
return v.call(y,{responseContext:{},contents:u,topbar:E,header:{pageHeaderRenderer:J}})})};var cif=function(g){this.chunkRegistry=g};
cif.prototype.handleResponse=function(g){var u=this,q,Q,L,E,y;return _.D(function(v){E=(L=(q=_.c(g.responseContext,bAR))==null?void 0:(Q=q.webResponseContextPreloadData)==null?void 0:Q.preloadMessageNames)!=null?L:[];y=sYf(u.chunkRegistry,E);return v.yield(y(),0)})};
cif[zv]=[_.$E];var hF$=new _.Fv("MSS_RESPONSE_PROCESSOR_TOKEN");var H0h={},AiC=(H0h.rendered={priority:0,callback:function(g){a:{var u=void 0;try{var q;b:{if(_.ZyJ()){var Q=_.G8(_.DQ()+"::pom");if(Q){var L=new U1(Q);break b}}L=void 0}var E=(q=L)==null?void 0:q.get("role_text");if(!E)break a;u={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:E}]}}}}}}catch(J){}u&&g.injector.resolve(_.Gy).resolveCommand(u)}try{var y=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(y){var v=JSON.parse(y);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
v&&g.injector.resolve(_.Gy).resolveCommand(v)}}catch(J){}}},H0h);var Z0Z,lQt={},IQb=(lQt.initialized={priority:10,callback:function(){Z0Z=Dg()}},lQt.rendering={callback:function(g){var u;
return _.D(function(q){if(q.nextAddress==1)return q.yield(Z0Z,2);u=q.yieldResult;if(!u.endpoint)throw Error("Mj`"+_.Qq.location.href);jU(g,u);_.Wx(q)})}},lQt);var i0h={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(_.na(_.w("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(g){var u=g.stack;if(u.includes("chrome://")||u.includes("chrome-extension://")||g.message.includes("chrome-extension://")||u.includes("moz-extension://")||
u.includes("local.adguard.org")||u.includes("auctioneer3.50million.club")||u.includes("youtubedownloader")||u.includes("youtube_home_page")||u.includes("is_youtube_video_no_longer_available")||u.includes("switchScreenSizeHack")||u.includes("yt_main_big_banner.js")||u.includes("YouTubeCenter.js")||u.includes("/mytube.js")||u.includes("JSON.parseWrapper")||u.includes("/inj_js/common.js")||u.includes("firebug-lite")||u.includes(".repl.co/")||u.includes("linkfix")||u.includes("playAfterAd")||g.message.includes("Access is denied for this document")&&
u.includes("<anonymous>")||g.fileName==="user-script"||g.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&u.includes("<anonymous>"))return!0;if(u.includes("https://www.youtube.com"))return!1;g=u.split("\n");if(!g.length)return!1;if(g.length<=3&&u.includes("s.onloadeddata"))return!0;u=0;for(var q=_.N(g),Q=q.next();!Q.done;Q=q.next())Q=Q.value,(Q.includes("https://")||Q.includes("http://"))&&u++;return u/g.length>.95},
weight:0},{callback:function(g){return g.message==="Unknown Error"&&g.name.indexOf("NS_")===0},
weight:100},{callback:function(g){if(!_.xS)return!1;var u=g.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||g.message.includes("available to complete this operation"),q=g.stack.includes("webcomponents")&&g.message==="Object doesn't support this action";g=g.message.includes("object that does not implement interface Element");return u||q||g},
weight:0},{callback:function(g){return g.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(g){return g.message==="Operation is not supported"&&(g.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(g){return g.stack.includes("eval code (eval (code:1:1)")||g.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(g){return g.message.includes("Permission denied")&&g.stack.includes("this.domHandler")?!0:g.name.includes("TypeError")&&g.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(g){if(!g.stack)return!1;var u=g.stack.trim().split("\n");u.length&&u[0].endsWith("Error: "+g.message)&&u.shift();u.length&&u[u.length-1].includes("at window.onerror (")&&u.pop();if(!u.length)return!0;if(g.message==="Script error.")return u[0].includes("www.youtube.com")||u.length>=2&&u[0].startsWith("at new")&&u[1].startsWith("at window.onerror");if(g.message==="Unexpected token")return!0;g=_.N(u);for(u=g.next();!u.done;u=g.next())if(u=u.value,!(u.includes("<anonymous>")||
u.startsWith("load@")||u.startsWith("global code@")||u.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(g){return g.message==="Cannot read property 'experiments'"&&g.stack.includes("/s/player/")},
weight:500},{callback:function(g){return g.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(g){return g.stack.includes("/embed.js")?(g.params&&g.params&&(g.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.w("use_error_suppression"))var g=_.FR("SUPPRESS_CLIENT_ERRORS",!1);else{if(g=_.nT)g=/Chrome\/(\d+)/.exec(_.GM()),g=(g?parseFloat(g[1]):NaN)>=66;g=!(g||_.zK&&_.BK(65)||_.I0&&_.BK(12.1)||Ok&&_.BK(79))}return g},
weight:500}]};var CSp={},b0x=(CSp.initialized={priority:10,callback:function(g){g.injector.addProvider({provide:Y4R,useValue:g.root});g.injector.addProvider({provide:Tch,useValue:ssm});g.injector.addProvider({provide:hUE,useValue:i0h});var u={};g.injector.addProvider((u.provide=YHE,u.useFactory=function(q,Q){return function(){IDf(q,Q)}},u[zv]=[Tch,
hUE],u));g.injector.addProvider({provide:o_,useClass:o_})}},CSp);var dux={},F9f=(dux.initialized={priority:3,callback:function(){var g;if(g=s7q()){g=g.replace("/",".");var u=_.qf();u.set("tz",g);u.save();g=!0}else g=!1;g||(g=_.qf(),g.set("utco",-Math.floor((new Date).getTimezoneOffset())),g.save())}},dux);var muH={},aQz=(muH.initialized={priority:10,callback:function(g){g.injector.resolve(o_).start();g=_.Zq();var u=_.mW("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.mW("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.mW("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.mW("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.SV(_.MWb(),{mainAppWeb:Object.assign({},g,{pageType:u})});_.SV(e9Z(),{mainAppWeb:Object.assign({},g,{pageType:u})});
_.SV(GZh(),{mainAppWeb:g});_.SV($43(),{mainAppWeb:g});UKZ(function(){_.o1(GZh(),"FAILURE");_.o1($43(),"FAILURE")});
HRq();ASh();tEh()}},muH);var Vj9={},XWp=(Vj9.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.fW("dl"),_.A4().processSignal("pcl");else{var g=function(){_.fW("dl");_.A4().processSignal("pcl");window.removeEventListener("load",g)};
window.addEventListener("load",g)}}},Vj9);var rih={},W9n=(rih.rendering={priority:0,callback:function(){var g=_.A4();g.parkOrScheduleJob(function(){g.processSignal("eocs")},10,"eor",5E3)}},rih);var Tub=function(){};
_.A(Tub,Hw);
Tub.prototype.resolveCommand=function(g,u){var q,Q,L,E,y,v,J,f;return _.D(function(t){L=(q=_.c(g,_.HKb))==null?void 0:(Q=q.dialog)==null?void 0:Q.commentReplyDialogRenderer;if(!L)throw new _.Ji("No dialog in createCommentReplyDialogEndpoint");y=(E=u.form)==null?void 0:E.event;if(!y)throw new _.Ji("Event not passed in when resolving command");v=_.N(y.composedPath());for(J=v.next();!J.done;J=v.next())if(f=J.value,f.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||f.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return f.showReplyDialog(L),t.return();
_.Wx(t)})};var hYn=function(){};
_.A(hYn,Hw);hYn.prototype.resolveCommand=function(){var g;return _.D(function(u){if(g=document.getElementById("creator-chatbots-panel"))g.style.display="none";_.Wx(u)})};var Ykz=function(){};
_.A(Ykz,Hw);Ykz.prototype.resolveCommand=function(g){var u,q,Q,L,E,y,v;return _.D(function(J){switch(J.nextAddress){case 1:return u=_.c(g,mI2),((q=u)==null?void 0:q.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?J.yield((0,_.SQ)("NSzT5"),6):(Q=u)!=null&&Q.externalChannelId?J.yield((0,_.SQ)("NSzT5"),4):J.return();case 4:return L=_.O0h,y=(E=u.forceInstall)!=null?E:!1,J.yield(L(u.externalChannelId,y,u.surface),0);case 6:return v=_.O0h,J.yield(v("",!1,u.surface),7);case 7:return J.return()}})};var er=function(g){this.JSC$19221_pageRequestService=g;this.JSC$19221_prefetchCoordinator=A5x()};
_.A(er,Hw);er.prototype.resolveCommand=function(g){var u=this,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1){q=_.c(g,L45);if((Q=q)==null||!Q.taskId)throw Error("Nj");L=q.taskId;_.b8(y,2);return y.yield(_.hvC(u.JSC$19221_pageRequestService,g,{},"").then(function(v){if(!v)throw Error("Oj");},function(v){throw Error("Pj`"+v);
}),4)}if(y.nextAddress!=2)return ihH(u.JSC$19221_prefetchCoordinator,L),_.Xx(y,0);
E=_.rt(y);I1h(u.JSC$19221_prefetchCoordinator,L,E);_.Wx(y)})};
er[zv]=[_.vK];var G4=function(g,u){this.innertubeTransportService=g;this.JSC$19225_commandHandler=u};
_.A(G4,Hw);G4.prototype.resolveCommand=function(g){var u=this,q,Q,L;return _.D(function(E){if(E.nextAddress==1){q=_.c(g,PpH);if(q.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||q.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")Q=q.boolValue?2:1,_.mB.getInstance().setState(Q,!0,!0);return E.yield(_.ce(u.innertubeTransportService,g),2)}L=E.yieldResult;K9C(u,L);_.Wx(E)})};
var K9C=function(g,u){u.actions&&u.actions.forEach(function(q){g.JSC$19225_commandHandler.resolveCommand(q)})};
G4[zv]=[_.QY,_.Gy];var $M={},Rq=($M.addToPlaylistEndpoint=dF(bW),$M.addToToastAction=dF(Yp),$M.adsControlFlowOpportunityReceivedCommand=dF(D_),$M.audioTrackSelectActionCommand=dF(Bi),$M.backgroundAudioPlaybackCommand=dF(kY),$M.captionLanguageSelectActionCommand=dF(Sd),$M.captionPickerEndpoint=dF(oD),$M.changeMiniAppPlayStateCommand=dF(dA),$M.changeTimelyActionVisibilityCommand=dF(hp),$M.channelCreationFormEndpoint=dF(A0),$M.clearLocationCommand=dF(Cz),$M.clearUrlParamCommand=dF(FF),$M.copyLinkCommand=dF(Ph),$M.copyTextEndpoint=
dF(t0),$M.createCommentReplyDialogEndpoint=$8h(Tub),$M.createPlaylistServiceEndpoint=dF(Nj),$M.dismissDialogEndpoint=dF(aD),$M.dismissPlayerOverlayCommand=dF(Ue),$M.entityUpdateCommand=dF(Gj),$M.feedbackEndpoint=dF($Y),$M.getAnswerCommand=dF(G6),$M.getPaymentsClientTokenCommand=dF(z6),$M.getTranscriptEndpoint=dF(OL),$M.googlePaymentBillingCommand=dF(n_),$M.googlePaymentPurchaseManagerCommand=dF(kp),$M.hideCreatorChatbotEngagementPanelCommand=dF(hYn),$M.hideEngagementPanelEndpoint=dF(Vl),$M.hideSheetCommand=
dF(XF),$M.hideSnackbarCommand=dF(mT),$M.insertRichSectionCommand=dF(lW),$M.listMutationCommand=dF(ID),$M.logGtmCommand=dF(Z_),$M.notifyDropdownOptionSelectedCommand=dF(mi),$M.openAdAllowlistInstructionCommand=dF(_.pz),$M.openOnePickAddVideoModalCommand=dF(sL),$M.persistSubscriptionsDisplayPreferencesCommand=dF(jY),$M.pingingEndpoint=dF(J0),$M.playlistEditEndpoint=dF(vh),$M.playlistVotingRefreshPopupCommand=dF(DU),$M.profileCardCommand=dF(vi),$M.refreshPanelEndpoint=dF(rA),$M.saveImageToDeviceEndpoint=
dF(ed),$M.scrollToSectionEndpoint=$8h(qUx),$M.seekToVideoTimestampCommand=dF(gK),$M.selectCountryCommand=dF(f_),$M.setCookieCommand=dF(Mj),$M.setLocalStorageCommand=dF(VM),$M.setPrefStorageEntryCommand=dF(eY),$M.setSettingEndpoint=dF(G4),$M.sfvAudioItemPlaybackCommand=dF(uf),$M.shareImageCommand=dF($p),$M.sharingProviderDataCommand=dF(RU),$M.showAudioTrackPickerActionCommand=dF(qj),$M.showCaptionLanguageSelectActionCommand=dF(QM),$M.showCreatorChatbotEngagementPanelCommand=dF(Ykz),$M.showDialogCommand=
dF(h0),$M.showEngagementPanelEndpoint=dF(YY),$M.showFullscreenPlayerControlsCommand=dF(L_),$M.showSheetCommand=dF(Oe),$M.showSnackbarCommand=dF(aU),$M.showTransientPlayerScrimOverlayCommand=dF(EL),$M.submitFormWithValidationFlowCommand=dF(Hi),$M.talkToRecsDeselectCommand=dF(XO),$M.talkToRecsNextCommand=dF(rK),$M.talkToRecsSelectCommand=dF(Wh),$M.talkToRecsUpdateTextCommand=dF(T6),$M.toggleEngagementPanelCommand=dF(Kz),$M.undoFeedbackEndpoint=dF(ci),$M.updateEngagementPanelContentCommand=dF(xY),$M.updateUrlParamCommand=
dF(K_),$M.updateVideoMetadataCommand=dF(Bh),$M.verifyCommand=dF(A0),$M.webNativeShareCommand=dF(wK),$M.webSubmitFormCommand=dF(p_),$M.ACK_PLAYABLES_3P_DATA_CONSENT=dF(ch),$M.CANCEL_NAVIGATION=dF(Hh),$M.COPY_SHARE_URL=dF(Ap),$M.MINI_APP_EXIT_DIALOG_SEEN=dF(lf),$M.MINI_APP_OPEN_URL=dF(ZU),$M.REQUEST_MINI_APP_FULLSCREEN=dF(IU),$M.RESUME_NAVIGATION=dF(C_),$M.SHARE_PLAYABLE_WITH_HIGH_SCORE=dF(bf),$M.TELL_US_WHY=dF(RD),$M);
_.w("web_enable_prefetching_videos_on_home")&&(Rq.prefetchWatchCommand=dF(er),Rq.registerTasksCommand=dF(XDE));_.w("enable_share_panel_navigation_logging_fix_on_web")&&(Rq.shareEntityServiceEndpoint=dF(Wi));_.w("web_use_flow_state_manager")&&(Rq.deleteFlowStepsCommand=dF(qr),Rq.flowNextStepCommand=dF(Ql),Rq.flowPrevStepCommand=dF(Lz),Rq.getFlowCommand=dF(Ee),Rq.updateFlowCommand=dF(Pi));_.w("enable_ai_companion")&&(Rq.updateConversationIdCommand=dF(Mr),Rq.formDataDecoratorCommand=dF(fz));
var GJx=Object.assign({},Rq);var xuE={},Bup=(xuE.initialized={priority:10,callback:Csm},xuE);var zYh={},nQZ=(zYh.initialized={callback:function(g){var u={},q={};fuu().install((u.document_disposed={callback:function(){_.w("finalize_all_timelines")?K_u():D0();KNZ("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.bsZ();var Q=g.injector.resolve(o_);Q.intervalId!==void 0&&(Q.intervalId&&_.Hv.cancelJob(Q.intervalId),Q.intervalId=void 0,--Q.currentPartitionIndex,Q=Iz2(Q),Q>0&&qy$({mainAppWeb:_.Zq(),survivalSli:{partitionMinute:Q,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));zC0(An);ZL!=null&&
ZL.flush();Wc&&Wc.snapshotAndFlush();Q=_.N(fd2.values());for(var L=Q.next();!L.done;L=Q.next())L.value.snapshotAndFlush()}},u),(q.flush_logs={callback:function(){_.A_()}},q))}},zYh);var k8E={},Sk9=(k8E.rendered={priority:0,callback:function(){var g=new qr0;g.increment("STARTED");if(_.FR("LOGGED_IN")&&!_.FR("IS_DBSC",!1)&&_.FR("SERVER_VERSION")!=="test"&&_.FR("SERVER_VERSION")!=="dev"&&!uoS()&&!g$J()){g.increment("EXECUTING");var u=document.createElement("iframe");u.style.display="none";_.Na(u,2,_.SO("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.FR("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(u);g.increment("DONE")}}},
k8E);var oQL={},Uut=(oQL.rendered={callback:function(){A5x().resume()}},oQL);var gOH={acknowledgeChannelTouStrikeCommand:My(iy),addToPlaylistServiceEndpoint:My(dP),addToPlaylistEndpoint:My(dP),addUpcomingEventReminderEndpoint:My(S4),browseEndpoint:My(SUH),channelCreationFormEndpoint:My(wz),channelCreationServiceEndpoint:My(cu),claimLegacyYoutubeChannelEndpoint:My(yf),clearSearchHistoryEndpoint:My(Vf),clearWatchHistoryEndpoint:My(Xe),commerceActionCommand:t9(ob),createBackstagePostEndpoint:My(Qf),createBroadcastCommand:My(oJ),createCommentEndpoint:My(e4),createCommentReplyEndpoint:My(tq),
createLiveChatPollEndpoint:My(UB),createPlaylistServiceEndpoint:My(Fn),crossAccountChannelTransferEndpoint:My(TC),deleteLiveChatMessageCommand:My(gP),deletePlaylistEndpoint:My(m1),deleteVideoEndpoint:My(kw),dismissalEndpoint:My(Ct),feedbackEndpoint:My(by),flagEndpoint:My(TY),getAccountSwitcherEndpoint:My(Wu),verifyCommand:My(qX),getAccountsListInnertubeEndpoint:My(kn),getCommentsFromInboxCommand:My(fQ),getDownloadActionCommand:My(wP),getFlowCommand:t9(aJ),getKidsBlocklistPickerCommand:My(hs),getNotificationMenuEndpoint:My(gFb),
getPaymentInstrumentsParamsCommand:My(NcK),getPaymentsClientTokenCommand:t9(ob),getPdgBuyFlowCommand:My(CQ),getReportFormEndpoint:My(Yw),getSearchInVideoCommand:My(xw),getAnswerCommand:My(KQ),getSurveyCommand:My(nQ),getTranscriptEndpoint:My(qHb),getPostVideoPreviewEndpoint:My(EB),decorateMessageEndpoint:My(Lt),likeEndpoint:My(Hu),liveChatActionEndpoint:My(LQ),liveChatEndpoint:My(Q7),liveChatItemContextMenuEndpoint:My(ur),liveChatPurchaseMessageEndpoint:My(E5),liveChatReplayEndpoint:My(qe),manageLiveChatUserEndpoint:My(Ne),
metadataUpdateCommand:My(Js),moderateLiveChatEndpoint:My(s5),modifyChannelNotificationPreferenceEndpoint:My(GY),notificationOptOutEndpoint:My($w),openSuperStickerBuyFlowCommand:My(PJ),performCommentActionEndpoint:My(j4),playlistEditEndpoint:My(V7),playlistEditorEndpoint:My(ab),recordNotificationInteractionsEndpoint:My(Rb),reelWatchEndpoint:My(Xn),refreshPanelEndpoint:My(HJ),removeUpcomingEventReminderEndpoint:My(y7),resolveLocationCommand:My(pQ),revealBusinessEmailCommand:My(vu),searchEndpoint:My(_.u_9),
sendLiveChatMessageEndpoint:My(vJ),sendLiveChatVoteEndpoint:My(Dl),setSettingEndpoint:My(Aq),shareEntityServiceEndpoint:t9(IJ),sharingProviderDataCommand:My(zY),showEngagementPanelEndpoint:My(As),showMoreDrawerCommand:My(lr),showSheetCommand:My(Ib),showDialogCommand:My(Zl),subscribeEndpoint:My(Z$),transcriptSubmitCaptionCorrectionCommand:My(SI),undoFeedbackEndpoint:My(Fe),unsubscribeEndpoint:My(ly),updateBackstagePostEndpoint:My(NX),updateCommentEndpoint:My($n),updateCommentReplyEndpoint:My(GC),updateCommentsSettingsEndpoint:My(RJ),
updateCreatorChannelInnertubeCommand:My(pt),updateKidsBlacklistEndpoint:My(O5),updateEngagementPanelContentCommand:My(ir),updatePdgFeatureEnablementCommand:My(br),updatedMetadataEndpoint:My(jI),validateChannelHandleCommand:My(Jq),updateChannelPageSettingsEndpoint:My(D$),verifyAgeEndpoint:My(mx),watchEndpoint:t9(oU),whitelistEditEndpoint:My(Q2h),ypcCancelRecurrenceEndpoint:My(U5),ypcCompleteTransactionEndpoint:My(LRL),ypcFixInstrumentEndpoint:My(gh),ypcGetCartEndpoint:My(EFh),ypcGetOffersEndpoint:My(PvK),
ypcHandleTransactionEndpoint:t9(uK),ypcLogWalletAnalyticDataEndpoint:My(s2Z),ypcOffersEndpoint:My(y59),ypcPauseSubscriptionCommand:My(vFK),ypcRedeemCodeEndpoint:My(DVE),ypcResumeSubscriptionCommand:My(pDp),ypcUpdateFopEndpoint:My(gh)},wh={},u79=(wh.GET_ACCOUNT_MENU=My(hq),wh.GET_NOTIFICATIONS_MENU=My(UiZ),wh.GET_NOTIFICATIONS_INBOX=My(Me),wh.GET_UNSEEN_NOTIFICATION_COUNT=My(eI),wh.GET_USER_MENTION_SUGGESTIONS=My(Pu),wh.LOAD_GUIDE=My(o$f),wh.SUBMIT_FEEDBACK=My(dz),wh),cr={},qrZ=(cr.CONTINUATION_REQUEST_TYPE_BROWSE=
My(sB),cr.CONTINUATION_REQUEST_TYPE_SEARCH=My(BJ),cr.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=My(nz),cr.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=My(rz),cr.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=My(MX),cr.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=My(ft),cr.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=My(WJ),cr.CONTINUATION_REQUEST_TYPE_GET_PANEL=My(cJ),cr),QIz={player:t9(oU),watchNext:My(zj)},LkH={player:t9(oU),reelItemWatch:My(Xn),reelWatchSequence:My(rP)},EOt={watchEndpoint:t9(UL)},Ptz=
{commandEndpointMap:gOH,signalEndpointMap:u79,continuationEndpointMap:qrZ,watchEndpointMap:QIz,reelWatchEndpointMap:LkH,streamingEndpointMap:EOt};var NNZ,sIK,y6n;_.vOL=((sIK=(NNZ=window).matchMedia)==null?void 0:(y6n=sIK.call(NNZ,"(prefers-reduced-motion: reduce)"))==null?void 0:y6n.matches)||!document.startViewTransition;var DTL={},pvE={disableAllTransitions:_.vOL,ignoredErrors:(DTL.DOCUMENT_HIDDEN=!0,DTL.WINDOW_SIZE_CHANGED=!0,DTL.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,DTL),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 J6C=_.CT("\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(",")),fvh=function(g){var u=this;this.viewTransitionCoordinator=
g;this.disableTransitionsForUltraHigh=_.w("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=jIp();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.o4("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.w("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.w("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.w("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.o4("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.w("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.Hv.addJob(function(){u.registerRootElement();if(u.isAnyTransitionEnabled){var q=
_.S8("web_page_transition_exit_ms"),Q=_.S8("web_page_transition_wait_ms"),L=_.S8("web_page_transition_enter_fast_ms"),E=_.S8("web_page_transition_watch_exit_ms"),y=_.S8("web_page_transition_watch_wait_ms"),v=_.S8("web_page_transition_watch_enter_ms"),J=_.S8("web_page_transition_watch_next_exit_ms"),f=_.S8("web_page_transition_watch_next_wait_ms"),t=_.S8("web_page_transition_watch_next_enter_fast_ms"),e=_.S8("web_page_transition_enter_ms"),G=_.S8("web_page_transition_watch_next_enter_ms");u.enableFasterTransitions&&
u.isUltraHighBucketDevice&&(e=L,G=t);isNaN(q)&&isNaN(Q)&&isNaN(e)&&isNaN(E)&&isNaN(y)&&isNaN(v)&&isNaN(J)&&isNaN(f)&&isNaN(G)||!(q=qUh(J6C,q,Q,e,E,y,v,J,f,G))||(Q=document.createElement("style"),Q.textContent=Fsf(q),document.head.appendChild(Q))}},8)},jIp=function(){var g=_.Qq.navigator.deviceMemory;
return g>=8||g===void 0?!0:!1};
fvh.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var g={};this.viewTransitionCoordinator.registerElement(document.documentElement,(g.slide="root-slide",g["lockup-to-watch"]="root-lockup-to-watch",g["learning-journey"]="root-learning-journey",g))}};
_.eW0=function(g,u){g.isLockupToWatchTransitionEnabled&&g.isLockupThumbnailRegistrationEnabled&&(g.registeredLockupThumbnail?g.lockupThumbnailRegisteredFromWatchEndpoint?_.Io(new _.Ji("Lockup thumbnail registration order is incorrect.")):_.Io(new _.Ji("Lockup thumbnail already registered.")):(g.registeredLockupThumbnail=u,_.MaZ(g,u)))};
_.MaZ=function(g,u){var q={};g.viewTransitionCoordinator.registerElement(u,(q["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",q),!0)};
fvh[zv]=[q_L];var bRb={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 FUq=["videoPrimaryInfoRenderer","title"],mAJ=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var taH;taH=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.eMC=_.r(function(g){g=_.FI(g,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var u=g.data,q=g.playlistData,Q=g.expanded,L=g.onExpandClick,E=g.isReadyToResume,y=function(){var t;return!((t=q())==null||!t.contents)},v=function(){var t=q();
return t&&t.totalVideos&&t.currentIndex!==void 0?t.currentIndex+1+" / "+t.totalVideos:""};
g=_.YH(function(){_.Hr(_.Bk().resolve(_.RO));return!1});
var J=_.YH(function(){y()&&L&&L()}),f={};
return _.p("ytd-miniplayer-info-bar",{class:_.Ty("ytdMiniplayerInfoBarHost",(f.ytdMiniplayerInfoBarHasPlaylistData=y,f)),"on:click":J},_.p("div",{class:"ytdMiniplayerInfoBarContent"},_.p("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":g},_.p(_.c2,{text:function(){var t=u();var e=q();if(e==null?0:e.contents){var G;t=(G=_.T7M(e))==null?void 0:G.title}else t=t==null?void 0:t.miniplayerTitle;return V5f(t)},
noEndpoints:!0,ellipsisTruncate:!0})),_.p("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.p(_.M,{cond:E,then:function(){return _.p(Khi,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:taH})}}),_.p("h1",null,_.p(_.c2,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var t=u();var e=q();t=E()?{simpleText:_.Ug("CONTINUE_WATCHING",void 0,"Continue watching")}:(e==null?0:e.contents)?e.titleText:t==null?void 0:t.miniplayerSubtitle;return V5f(t)},
noEndpoints:!0,ellipsisTruncate:!0})),_.p(_.M,{cond:function(){return!!v()&&!E()},
then:function(){return _.p("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.p("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.p("span",null,v))}}))),_.p(_.M,{cond:y,
then:function(){return _.p("div",{class:"ytdMiniplayerInfoBarExpand"},_.p(_.W2,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(t){L&&(L(),t.stopPropagation())}}},
iconName:function(){return Q()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ig");var GXf;GXf=_.r(function(g){return _.p("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.p(_.W2,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:g.onTap}},
iconName:"yt-icons:close"}))},"Jg");
_.$Th=_.r(function(g){g=_.FI(g,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var u=g.size,q=g.playabilityStatus,Q=g.isDisabled,L=g.isPictureInPicture,E=_.Hk("div");g=_.N(_.jR(void 0,void 0,"w4RAU"));var y=g.next().value,v=g.next().value;g=_.Sy(_.WY);var J=!1,f=function(){return u().height<=0};
_.bX(function(){var R=u(),H=f(),l=y();l&&!H&&l.setInternalSize(R.width,R.height)},"BHFc2b");
_.lL(function(){var R,H,l;return _.D(function(d){if(d.nextAddress==1){R=_.Bk().resolve(_.RO);H=R.getPlayerElement();if(!R.isMiniplayerActive()||!H||!E.value)return d.return();H.appendTo(E.value);return d.yield(H.getPlayerPromise(),2)}l=d.yieldResult;L()||l.setSizeStyle(!1,!0);v(l);_.Wx(d)})});
_.dB(function(){t()});
_.bX(function(){var R=y();if(R)if(Q()){var H=R.getPlayerState();(J=H===-1||H===1||H===3)&&R.pauseVideo()}else t()},"Invykd");
var t=function(){if(J){J=!1;var R;(R=y())==null||R.playVideo()}},e=_.YH(function(){_.Hr(_.Bk().resolve(_.RO))}),G={};
return _.p("ytd-miniplayer-player-container",{class:_.Ty("ytdMiniplayerPlayerContainerHost",(G.ytdMiniplayerPlayerContainerHidden=f,G.ytdMiniplayerPlayerContainerHostShortsPip=g,G)),style:_.xH({width:function(){return u().width+"px"},
height:function(){return u().height+"px"}})},_.p("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:E}),_.p(_.M,{cond:function(){return!!q()&&!_.LNm(q())},
then:function(){return _.p(Hax,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var R;return((R=q())==null?void 0:R.errorScreen)||null},
status:function(){var R;return((R=q())==null?void 0:R.status)||null}})}}),_.p(_.M,{cond:Q,
then:function(){return _.p("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":e},_.p(GXf,{onTap:function(){_.Bk().resolve(_.RO).close()}}))}}))},"Ng");var BIq;var kmq=null;var wvt=_.r(function(g){var u=g.progressState;var q=g.multiMarkersPlayerBarRenderer;var Q=g.progressBarWidth;var L=function(){return guR(q())},E=function(){return Qmn(u())},y=function(){return Q()*(u().playedTime/u().videoDuration)};
return _.p("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.p(_.R4,{each:L},function(v,J){return _.p(RMh,{modifiedProps:E,chapters:L,index:J,playedProgressWidth:y,backgroundGradientPosition:function(){var f=E(),t=L(),e=J(),G=y();return(f.playedTime-GK(_.c(t[e],eU)))/f.playedTime*G}})}))},"Og"),RMh=_.r(function(g){var u=g.modifiedProps;
var q=g.chapters;var Q=g.index;var L=g.playedProgressWidth;var E=g.backgroundGradientPosition;g={};g=_.Ty("ytChapteredProgressBarChapteredPlayerBarChapter",(g.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return y().isScrubbing},g.ytChapteredProgressBarHoveredMacroMarker=function(){return y().scrubberHovering},g.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return y().videoPosition==="seen"},g));
var y=function(){return LJn(u(),q(),Q())},v=function(){var J=u();
var f=q(),t=Q();if(LJn(J,f,t).videoPosition!=="active")J=0;else{var e=GK(_.c(f[t],eU));J=(J.playedTime-e)/((GK(_.c(f[t+1],eU))||J.videoDuration)-e)}return J};
return _.p("div",{class:g,style:_.xH({width:function(){var J=u(),f=q(),t=Q(),e=_.c(f[t],eU);f=_.c(f[t+1],eU);return(f?GK(f)-GK(e):J.videoDuration-GK(e))/J.videoDuration*100+"%"},
"background-color":function(){a:{var J=y();switch(J.videoPosition){case "pending":J=J.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":J=J.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:J=""}}return J},
"background-size":function(){return(Euo(y())?L():"")+"px"},
"background-position-x":function(){return(Euo(y())?E():"")+"px"}})},_.p("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var J=u(),f=q(),t=Q();if(LJn(J,f,t).videoPosition==="seen")var e=0;else e=GK(_.c(f[t],eU)),f=GK(_.c(f[t+1],eU))||J.videoDuration,J=J.videoDuration*J.percentLoaded,e=f<=J?1:e>=J?0:(J-e)/(f-e);return"width: "+e*100+"%"}}),_.p("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.xH({width:function(){return v()*100+"%"},
"background-size":function(){return(Euo(y(),v())?L():"")+"px"},
"background-position-x":function(){return(Euo(y(),v())?E():"")+"px"}})}))},"Pg");var c6n=function(g,u){u=u===void 0?UWW:u;var q,Q=[],L,E=!1;return function(){var y=_.UT.apply(0,arguments);if(E&&q===this&&u(y,Q))return L;L=g.apply(this,y);E=!0;q=this;Q=y;return L}}(function(g){var u=g.heatMarkers,q=g.minHeightDp===void 0?0:g.minHeightDp,Q=g.maxHeightDp===void 0?60:g.maxHeightDp;
var L=L===void 0?!1:L;var E=1E3/u.length;g=[];g.push({x:0,y:100});for(var y=0;y<u.length;y++){var v=void 0,J=((v=_.c(u[y],Dp2))==null?void 0:v.heatMarkerIntensityScoreNormalized)||0;v=(y+.5)*E;J=100-_.tL(J*100,q/321*100,Q/321*100);y!==0||L||g.push({x:0,y:J});g.push({x:v,y:J});y===u.length-1&&g.push({x:1E3,y:J})}g.push({x:1E3,y:100});u="";for(q=0;q<g.length;q++)L=g[q],q===0?L="M "+L.x.toFixed(1)+","+L.y.toFixed(1):(Q=qhJ(g[q-1],g[q-2],L),E=qhJ(L,g[q-1],g[q+1],!0),L=" C "+(Q.x.toFixed(1)+","+Q.y.toFixed(1)+
" "+E.x.toFixed(1)+","+E.y.toFixed(1)+" "+L.x.toFixed(1)+","+L.y.toFixed(1))),u+=L;return u});var HBZ=_.r(function(g){var u=g.progressBarProps;var q=g.config;var Q={};g=_.Ty("ytHeatSeekerHost",(Q.ytHeatSeekerHighContrast=g.highContrast,Q));var L=function(){return hlT(q().chapterData)};
return _.p("yt-progress-bar-heatseeker",{class:g,style:function(){var E;return"height: 320px; display: "+(u().isDragging&&((E=L())==null?0:E.heatMarkers)?"block":"none")}},_.p(_.M,{cond:L,
then:function(E){return _.p(_.M,{cond:function(){return E().heatMarkers},
then:function(){return _.p("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.p("path",{d:function(){return c6n(E())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Qg");var A6p=_.r(function(g){var u=g.progressBarProps;var q=g.config;g={};g=_.Ty("ytProgressBarLineProgressBarLine",(g.ytProgressBarLineProgressBarLineRounded=function(){return q().rounded},g.ytProgressBarLineProgressBarLineBottomInset=function(){return q().position===2},g));
return _.p("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.p("div",{class:g},_.p("div",{class:"ytProgressBarLineProgressBarBackground"}),_.p("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+u().percentLoaded*100+"%"}}),_.p("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var Q=u();return"width: "+(Q.videoDuration?_.tL(Q.hoveredTime/Q.videoDuration,0,1):0)*100+"%"}}),_.p("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+rSf(u())*100+"%"}})))},"Rg");
A6p.idomCompat=!0;var ZBp=_.r(function(g){var u=g.progressBarProps;var q=g.playheadData;var Q=g.interpolateDotPosition;var L=g.hidePlayhead;g={};var E=_.Ty("ytProgressBarPlayheadProgressBarPlayheadDot",(g.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return u().isDragging},g.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!u().isDragging&&L()},g));
return _.p("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.xH({"margin-left":function(){return WUS(u())*100+"%"},
transform:function(){return"translateX(-"+(Q()?WUS(u())*12:6)+"px)"}})},_.p(_.M,{cond:function(){var y;
return(y=_.dO(q)())==null?void 0:y.playheadImage},
then:function(y){var v={};return _.p("div",{class:_.Ty("ytProgressBarPlayheadProgressBarPlayheadCustom",(v.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return u().isDragging},v.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!u().isDragging&&L()},v)),
style:_.xH({"transform-origin":function(){return(Q()?WUS(u())*20:10)+"px center"}})},_.p(_.IT,{data:y,
alt:"","aria-hidden":"true"}))},
else:function(){return _.p("div",{class:E,style:_.xH({"transform-origin":function(){return(Q()?WUS(u())*12:6)+"px center"}})})}}))},"Sg");
ZBp.idomCompat=!0;var Au=function(g,u,q,Q,L,E){this.getProgressBarRect=g;this.updateProgressBarRect=u;this.getFilmstripYPosition=q;this.setFineScrubbingDraggedTime=Q;this.updateFilmStripDraggedYDistance=L;this.resetFilmStripYOffset=E;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Kr(this.onThrottledSeek,100,this)},lvZ=function(g,u,q){return function(Q){g.handleClick(Q,u(),q())}},Ctp=function(g,u){return function(q){Ivt(g,
q,iBz(q),u())}},bBx=function(g,u){return function(q){Ivt(g,q,{x:q.clientX,
y:q.clientY},u())}},Fkp=function(g,u,q){return function(Q){var L=u(),E=q();
dTx(g,Q,iBz(Q),L,E,!0);if(E.onTouchMove)E.onTouchMove(L)}},avn=function(g,u,q){return function(Q){mTH(g,Q,u(),q())}},Vax=function(g,u){return function(){g.handleMouseLeave(u())}},r6Z=function(g,u,q){return function(){var Q=u(),L=q();
XvK(g,Q,L);if(L.onTouchEnd)L.onTouchEnd(Q)}},Wk9=function(g,u,q){return function(){var Q=u(),L=q();
XvK(g,Q,L);if(L.onTouchEnd)L.onTouchEnd(Q)}},TNH=function(g,u,q){return function(){XvK(g,u(),q())}},hME=function(g){return function(u){if(u.keyCode===39||u.keyCode===38){var q,Q;
(q=g())==null||(Q=q.playerApi)==null||Q.seekBy(5,void 0,void 0,72)}else if(u.keyCode===37||u.keyCode===40){var L,E;(L=g())==null||(E=L.playerApi)==null||E.seekBy(-5,void 0,void 0,71)}}},YrC=function(g,u,q){return function(Q){!q().disableScrubbing&&g.startPosition&&mTH(g,Q,u(),q())}},OBK=function(g,u,q){return function(){if(!q().disableScrubbing)if(g.startPosition){var Q=u(),L=q();
XvK(g,u(),q());if(L.onTouchEnd)L.onTouchEnd(Q)}else u().setState({isDragging:!1})}},iBz=function(g){g=g.touches[0];
return{x:g.clientX,y:g.clientY}},mTH=function(g,u,q,Q){if(u.buttons!==1){if(u.movementX||u.movementY)u.preventDefault(),u.stopPropagation(),g=Kkh(g,q,u.clientX),q.setState({isHovering:!0,
hoveredTime:g*q.videoDuration})}else xTC(q),dTx(g,u,{x:u.clientX,y:u.clientY},q,Q,!1)};
Au.prototype.handleMouseLeave=function(g){xTC(g)};
var xTC=function(g){g.isHovering&&g.setState({isHovering:!1,hoveredTime:0})},Ivt=function(g,u,q,Q){g.startPosition||(g.startPosition=q,g.updateProgressBarRect(),g.controlsWereVisibleBeforeDragging=Q.controlsVisible,u.stopPropagation(),_.w("medium_progress_bar_modification")||u.preventDefault())},dTx=function(g,u,q,Q,L,E){if(g.startPosition)if(E&&L.isInlinePlayback&&g.startPosition&&!g.hasDraggedTheMinimumDistance&&Math.abs(q.y-g.startPosition.y)>Math.abs(q.x-g.startPosition.x))XvK(g,Q,L);
else if(u.preventDefault(),u.stopPropagation(),Q.videoDuration&&(g.startPosition&&!g.hasDraggedTheMinimumDistance&&(g.hasDraggedTheMinimumDistance=Math.abs(q.x-g.startPosition.x)>=1),L.enableFineScrubbing&&(g.startPosition&&(g.isDraggedForFineScrubbing=-(q.y-g.startPosition.y)>=60),!g.startPosition||q.y>=g.startPosition.y||(Q.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Ph$(Q.draggedTime,Q,L.chapterData)}),g.setFineScrubbingDraggedTime(Q.draggedTime),g.updateFilmStripDraggedYDistance(g.startPosition.y,
q.y,Q))),g.hasDraggedTheMinimumDistance)){u=Kkh(g,Q,q.x);if(g.isDraggedForFineScrubbing){var y;(y=Q.playerApi)==null||y.pauseVideo();Q.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:Q.draggedTime,filmStripXDistance:Ph$(u*Q.videoDuration,Q,L.chapterData)})}L.enableFineScrubbing&&(!L.enableFineScrubbing||g.getFilmstripYPosition(Q)<68)||Q.setState({draggedTime:u*Q.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:g.controlsWereVisibleBeforeDragging});var v;(v=
L.cancelAutohideControlsFn)==null||v.call(L)}},XvK=function(g,u,q){var Q=q.enableFineScrubbing&&u.fineScrubbingActiveState!=="off";
if(u.isDragging||Q){Q={isDragging:!1,playedTime:u.draggedTime,controlsVisible:g.controlsWereVisibleBeforeDragging};q.enableFineScrubbing&&u.fineScrubbingActiveState!=="on"&&(g.resetFilmStripYOffset(),Q.fineScrubbingActiveState="off");var L=L===void 0?kmq:L;var E=_.j_(0);if(E&&L){var y=Math.round(u.playedTime*1E3),v=Math.round(u.draggedTime*1E3);y>2147483647||v>2147483647||_.iH(E,L,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(y),endMediaTimeMs:String(v),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}u.setState(Q);
g.seekThrottle.fire(u.draggedTime,u,7);_.w("mweb_new_progress_bar_play_on_seek")&&g.resumeVideo(u);q.unmuteOnSeek&&(q=u.playerApi,u.volumeMuted&&(q==null||q.unMute()))}else u.setState({controlsVisible:!u.controlsVisible}),(E=q.triggerAutohideControlsAfterDelayFn)==null||E.call(q);g.startPosition=null;g.hasDraggedTheMinimumDistance=!1;g.isDraggedForFineScrubbing=!1;g.controlsWereVisibleBeforeDragging=!1};
Au.prototype.handleClick=function(g,u,q){this.updateProgressBarRect();g.stopPropagation();g=Kkh(this,u,g.clientX)*u.videoDuration;u.setState({playedTime:g});if(u.playerState!==2){var Q;(Q=q.triggerAutohideControlsAfterDelayFn)==null||Q.call(q)}this.seekThrottle.fire(g,u,7)};
var Kkh=function(g,u,q){g=g.getProgressBarRect(u);return _.tL(0,(q-g.left)/g.width,1)};
Au.prototype.resumeVideo=function(g){if(g.draggedTime<g.videoDuration){var u;(u=g.playerApi)==null||u.playVideo()}};
Au.prototype.onThrottledSeek=function(g,u,q){if(u=u.playerApi){var Q;if((Q=u.getVideoData())==null?0:Q.isLive)Q=this.getProgressState(u),g+=(Q==null?void 0:Q.seekableStart)||0;u.seekTo(g,void 0,void 0,void 0,q)}};
Au.prototype.getProgressState=function(g){var u=g==null?void 0:g.getPresentingPlayerType();return g==null?void 0:g.getProgressState(u)};var nOK,zML,kXn,oOx,BNh,UTZ,g1b,uUE,qzt;nOK=_.r(function(g){var u=g.progressBarProps;var q=g.config;var Q=g.progressBarWidthPx;var L=g.chapterData;var E=D3H(u,function(){return q().isShortsPage}),y=function(){return!u().isHovering&&!q().isShortsPage};
g={};var v=_.Ty("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(g.ytPlayerStoryboardHostMwebShorts=function(){return q().isShortsPage&&!1},g));
return _.p("yt-player-storyboard",null,_.p(_.M,{cond:function(){return u().isDragging||u().isHovering},
then:function(){return _.p(_.M,{cond:E,then:function(J){return _.p(_.M,{cond:y,then:function(){return _.p("div",{class:v,"aria-hidden":"true"},_.p(BNh,{props:u,config:q,isBigboard:!0,chapterData:L}))},
else:function(){return _.p(zML,{props:u,frame:J,config:q,progressBarWidthPx:Q,chapterData:L})}})}})}}))},"Tg");
_.Srz=_.r(function(g){var u=g.progressBarProps;var q=D3H(u,g.isShortsPage);return _.p("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.p(_.M,{cond:function(){return u().isDragging||u().isHovering},
then:function(){return _.p(_.M,{cond:q,then:function(Q){return _.p(kXn,{frame:Q,props:u,isBigboard:!0})}})}}))},"Ug");
zML=_.r(function(g){var u=g.props;var q=g.frame;var Q=g.config;var L=g.progressBarWidthPx;g=g.chapterData;var E={};E=_.Ty("ytPlayerStoryboardHost",(E.ytPlayerStoryboardHostMwebShorts=function(){return Q().isShortsPage&&!1},E.ytPlayerStoryboardHostInlinePlayer=function(){return Q().isInlinePlayer},E.ytPlayerStoryboardHostFadeIn=function(){return Q().useFadeInAnimation},E));
return _.p("div",{class:E,"aria-hidden":"true",style:function(){var y=u(),v=NqR(q()),J=L();y=smZ(y)/y.videoDuration;var f=J*y,t=v/2+6;v=J-(v/2+6);return"left: "+(f<=t?t/J*100:f>=v?v/J*100:y*100)+"%"}},_.p(_.M,{cond:function(){var y=u();
return!(Q().isShortsPage&&y.videoDuration<15)},
then:function(){return _.p(kXn,{frame:q,props:u,isBigboard:!1})}}),_.p(BNh,{props:u,
config:Q,isBigboard:!1,chapterData:g}))},"Vg");
kXn=_.r(function(g){var u=g.frame;var q=g.props;var Q=g.isBigboard;var L=function(){var v,J;return(J=(v=q().playerApi)==null?void 0:v.getVideoContentRect())!=null?J:{width:0,height:0}},E=function(){return NqR(u())},y=function(){var v=u();
return v?v.height/v.rows:0};
g={};g=_.Ty((g.ytPlayerStoryboardBigboardImageWrapper=Q,g.ytPlayerStoryboardStoryboardImageWrapper=function(){return!Q()},g));
return _.p("div",{class:g,style:function(){return"width: "+(Q()?L().width:E())+"px; height: "+(Q()?L().height:y())+"px;"}},_.p(oOx,{frame:u,
storyboardWidth:E,storyboardHeight:y,storyboardScale:function(){return(Q()?L().width:E())/E()}}))},"Wg");
oOx=_.r(function(g){var u=g.frame;var q=g.storyboardWidth;var Q=g.storyboardHeight;var L=g.storyboardScale;var E=function(){var y=u().row,v=u().column,J=q(),f=Q(),t=L();return{left:-v*J*t,top:-y*f*t}};
return _.p("img",{src:function(){return u().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+E().left+"px; top: "+E().top+"px; width: "+u().width*L()+"px; height: "+u().height*L()+"px;"}})},"Xg");
BNh=_.r(function(g){var u=g.props;var q=g.config;var Q=g.isBigboard;var L=g.chapterData;g={};g=_.Ty("ytPlayerStoryboardMetadata",(g.ytPlayerStoryboardMetadataBigboard=Q,g));return _.p("div",{class:g},_.p(_.M,{cond:Q,then:function(){return _.p(_.U9,null,_.p(UTZ,{props:u,config:q}),_.p(_.M,{cond:function(){a:{var E=u();var y=q(),v=L(),J;if((y==null?0:y.activeChapter)&&((J=_.c(y==null?void 0:y.activeChapter,eU))==null?0:J.title))E=!0;else{y=_.N(Yqq(v));for(y=y.next();!y.done;y=y.next()){E=(y=_.c(y.value,
JPn))&&yTi(E,y);break a}E=!1}}return E},
then:function(){return _.p(g1b,{props:u,config:q,isBigboard:!0,chapterData:L})}}))},
else:function(){return _.p(_.U9,null,_.p(g1b,{props:u,config:q,isBigboard:!0,chapterData:L}),_.p(UTZ,{props:u,config:q}))}}))},"Yg");
UTZ=_.r(function(g){var u=g.props;var q=g.config;g={};g=_.Ty("ytPlayerStoryboardTimestamp",(g.ytPlayerStoryboardTimestampShorts=function(){return q().isShortsPage},g.ytPlayerStoryboardTimestampIsHovering=function(){return u().isHovering||q().isShortsPage&&!0},g));
return _.p("div",{class:g},_.p(_.U9,null,function(){return _.vun(smZ(u()))}))},"Zg");
g1b=_.r(function(g){var u=g.props;var q=g.config;var Q=g.isBigboard;var L=g.chapterData;g={};Q=_.Ty("ytPlayerStoryboardTitle",(g.ytPlayerStoryboardTitleBigboard=Q,g));return _.p("div",{class:Q},_.p(_.M,{cond:function(){return!q().isShortsPage},
then:function(){return _.p(uUE,{props:u,activeChapter:function(){return q().activeChapter},
chapterData:L})}}))},"$g");
uUE=_.r(function(g){var u=g.props;var q=g.activeChapter;var Q=g.chapterData;return _.p(_.U9,null,_.p(_.R4,{each:function(){return Yqq(Q())},
keyBy:"INDEX"},function(L){return _.p(_.U9,null,_.p(_.M,{cond:function(){return _.c(L(),JPn)&&yTi(u(),_.c(L(),JPn))},
then:function(){return _.p(qzt,{timedMarker:function(){return _.c(L(),JPn)}})}}))}),_.p(_.M,{cond:function(){var L;
return q()&&((L=_.c(q(),eU))==null?void 0:L.title)},
then:function(L){return _.p(_.c2,{text:L,noPreWrap:!0})}}))},"ah");
qzt=_.r(function(g){var u=g.timedMarker;return _.p(_.U9,null,_.p("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.p(_.B1,{icon:function(){return u().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.p(_.c2,{text:function(){return u().label},
noPreWrap:!0}))},"bh");_.QoK=_.r(function(g){var u=g.progressBarProps;var q=g.playheadData;var Q=g.config;g=_.Hk("yt-progress-bar");var L=_.Hk("div"),E=_.Hk("div"),y=_.N(_.jR({width:0,left:0},void 0,"XjZjde")),v=y.next().value,J=y.next().value,f=function(){E.value&&J(E.value.getBoundingClientRect())},t=function(){v().width<=0&&f();
return v()};
_.Oz("resize",f);var e=new Au(t,function(){},function(){return 0},function(){},function(){},function(){}),G=function(){return u()};
y=_.N(_.jR(!1,void 0,"uZlOJc"));var R=y.next().value,H=y.next().value;y=_.YH(function(){H(!0);Q().position===2?setTimeout(function(){f()},100):f()});
var l=_.YH(function(){H(!1);Vax(e,G)()}),d=_.YH(function(hT){(Q().doSeekOnClick||_.w("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&hT instanceof PointerEvent&&hT.pointerType==="mouse")&&lvZ(e,G,Q)(hT);
return!1}),F=_.YH(function(hT){Ctp(e,G)(hT);
return!1}),V=_.YH(function(hT){bBx(e,G)(hT);
return!1}),z=_.YH(function(hT){Fkp(e,G,Q)(hT);
return!1}),O=_.YH(function(hT){avn(e,G,Q)(hT);
return!1}),W=_.YH(function(){r6Z(e,G,Q)();
return!1}),x=_.YH(function(){Wk9(e,G,Q)();
return!1}),k=_.YH(function(){TNH(e,G,Q)();
return!1}),LZ=_.YH(function(hT){hME(G)(hT);
return!1});
_.Oz("mousemove",YrC(e,G,Q));_.Oz("mouseup",OBK(e,G,Q));_.I4(function(){SqF(L.value);H(!1);f();OBK(e,G,Q)()});
var sb={};sb=_.Ty("ytPlayerProgressBarHost",function(){return Q().className},(sb.ytPlayerProgressBarHostReadOnly=function(){return Q().disableScrubbing},sb.ytPlayerProgressBarHostHidden=function(){return Q().hideProgressBar&&!R()},sb.ytPlayerProgressBarHostLowerPlayer=function(){return Q().position===0},sb.ytPlayerProgressBarHostBottomEdge=function(){return Q().position===1},sb.ytPlayerProgressBarHostBottomInset=function(){return Q().position===2},sb.ytPlayerProgressBarHostCustom=function(){return Q().position===
3},sb));
var Rm={},M3=_.Ty("ytPlayerProgressBarBackground",(Rm.ytPlayerProgressBarBackgroundHide=function(){return Q().position===2&&!R()&&!u().isDragging},Rm));
Rm={};Rm=_.Ty("ytPlayerProgressBarDragContainer",(Rm.ytPlayerProgressBarDragContainerBottomEdge=function(){return Q().position===1},Rm));
var tT={};tT=_.Ty("ytPlayerProgressBarProgressBar",(tT.ytPlayerProgressBarProgressBarInset=function(){return Q().position===2},tT.ytPlayerProgressBarProgressBarInsetMinimized=function(){return Q().position===2&&!R()&&!u().isDragging},tT));
var mJ=function(){return Math.floor(rSf(u())*100)};
return _.p("yt-progress-bar",{el:g,class:sb},_.p(_.M,{cond:function(){return Q().position===2},
then:function(){return _.p("div",{class:M3})}}),_.p("div",{el:L,
"on:click":d,"on:touchstart":F,"on:touchmove":z,"on:mouseenter":y,"on:mousedown":V,"on:mouseleave":l,"on:mousemove":O,"on:mouseup":x,"on:touchend":W,"on:touchcancel":k,"on:keydown":LZ,class:Rm,role:"slider","aria-valuenow":mJ,"aria-valuetext":function(){return mJ()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return u().videoDuration},
draggable:_.w("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.Ug("SEEK_SLIDER")},_.p("div",{el:E,class:tT},_.p(HBZ,{progressBarProps:u,config:Q,highContrast:function(){return!!Q().isInlinePlayback}}),_.p(_.M,{cond:function(){return Q().chapterData&&ORK(Q().chapterData)},
then:function(){return _.p(wvt,{progressState:u,multiMarkersPlayerBarRenderer:function(){return Q().chapterData},
progressBarWidth:function(){return v().width}})},
else:function(){return _.p(A6p,{progressBarProps:u,config:Q})}}),_.p(ZBp,{progressBarProps:u,
playheadData:q,interpolateDotPosition:function(){return Q().position!==2},
hidePlayhead:function(){return Q().playheadDotBehavior===1&&!R()}}))),_.p(nOK,{progressBarProps:u,
config:function(){return{activeChapter:qbR(u(),Q().chapterData),getProgressBarWidthPx:function(){return t().width},
isShortsPage:!!Q().isShortsPage,isInlinePlayer:!!Q().isInlinePlayback,useFadeInAnimation:!!Q().isInlinePlayback}},
progressBarWidthPx:function(){return v().width},
chapterData:function(){return Q().chapterData}}))},"ch");
_.QoK.idomCompat=!0;Object.assign({},_.KUm(),{setState:function(){},
domMeasurements:{},appApi:_.XaJ(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var LnE;
_.E1p=_.r(function(){var g,u=(g=_.$S(pS8().playerApi))!=null?g:void 0;g=_.N(_.jR(!1,void 0,"Z9NQ1b"));var q=g.next().value,Q=g.next().value;g=_.N(_.jR(!1,void 0,"HoVJXe"));var L=g.next().value,E=g.next().value;g=_.N(_.jR(!1,void 0,"DWCY3"));var y=g.next().value,v=g.next().value;g=_.N(_.jR(!1,void 0,"g4C2Zd"));var J=g.next().value,f=g.next().value;g=_.N(_.jR(0,void 0,"lmVfFb"));var t=g.next().value,e=g.next().value;g=_.N(_.jR(0,void 0,"mFLbzb"));var G=g.next().value,R=g.next().value;g=_.N(_.jR(!1,void 0,
"hQN4Wb"));var H=g.next().value,l=g.next().value;g=_.N(_.jR(0,void 0,"WWU0fb"));var d=g.next().value,F=g.next().value;g=_.N(_.jR(0,void 0,"MJ7LMd"));var V=g.next().value,z=g.next().value;g=_.N(_.jR("",void 0,"hnomOe"));var O=g.next().value,W=g.next().value;g=_.N(_.jR(-1,void 0,"ARe3pf"));var x=g.next().value,k=g.next().value,LZ=_.G9(function(){var sb={controlsVisible:q(),isOverlayHidden:L(),shouldWaitToHideControls:y(),isDragging:J(),isHovering:H(),videoDuration:d(),playedTime:V(),videoId:O(),draggedTime:G(),
hoveredTime:t(),playerState:x()};return Object.assign({},_.KUm(),sb,{domMeasurements:{},setState:function(Rm){Rm.controlsVisible!==void 0&&Q(Rm.controlsVisible);Rm.isOverlayHidden!==void 0&&E(Rm.isOverlayHidden);Rm.shouldWaitToHideControls!==void 0&&v(Rm.shouldWaitToHideControls);Rm.isDragging!==void 0&&f(Rm.isDragging);Rm.isHovering!==void 0&&l(Rm.isHovering);Rm.draggedTime!==void 0&&R(Rm.draggedTime);Rm.hoveredTime!==void 0&&e(Rm.hoveredTime);Rm.videoDuration!==void 0&&F(Rm.videoDuration);Rm.playedTime!==
void 0&&z(Rm.playedTime);Rm.videoId!==void 0&&W(Rm.videoId);Rm.playerState!==void 0&&k(Rm.playerState)},
appApi:_.XaJ(),playerApi:u})},void 0,"Au4PIf");
_.lL(function(){u==null||u.addEventListener("onVideoProgress",nRZ(LZ));u==null||u.addEventListener("onVideoDataChange",zlq(LZ));u==null||u.addEventListener("onStateChange",xAT(LZ))});
_.dB(function(){if(u==null?0:u.isReady())u==null||u.removeEventListener("onVideoProgress",nRZ(LZ)),u==null||u.removeEventListener("onVideoDataChange",zlq(LZ)),u==null||u.removeEventListener("onStateChange",xAT(LZ))});
return _.p("desktop-shorts-player-controls",null,_.p(LnE,{playerControlsProps:LZ}))},"eh");
LnE=_.r(function(g){var u=g.playerControlsProps;return _.p("div",{class:"desktopShortsPlayerControlsHost"},_.p(_.QoK,{progressBarProps:u,config:function(){return{isShortsPage:!0,hideProgressBar:u().videoDuration<30&&u().playerState!==2&&!u().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"fh");_.PDE=_.r(function(g){function u(sb){sb!==0||e()?sb>50&&(e()||!R())?(G(!1),H(!0)):sb<=50&&(e()||R())&&(G(!1),H(!1)):G(!0)}
function q(sb,Rm){var M3;return _.D(function(tT){if(tT.nextAddress==1)return tT.yield(_.Op(),2);M3=tT.yieldResult;Rm&&M3?(M3.unMute(!0),sb&&(jmW(sb,M3.getVolume()),d(M3.getVolume()))):M3&&(M3.mute(!0),sb&&jmW(sb,0));_.Wx(tT)})}
function Q(sb){var Rm,M3;return _.D(function(tT){if(tT.nextAddress==1)return tT.yield(_.Op(),2);Rm=tT.yieldResult;M3=50;Rm&&(M3=Rm.getVolume(),Rm.isMuted()?jmW(sb,0):jmW(sb,M3));d(M3);_.Wx(tT)})}
var L=g.orientation;g=_.Hk("volume-controls");var E=_.Hk("button"),y=_.AM("input"),v=_.N(_.jR(!1,void 0,"JO5fn")),J=v.next().value,f=v.next().value,t=_.N(_.jR(!1,void 0,"zcMjvb"));v=t.next().value;t=t.next().value;var e=v,G=t;t=_.N(_.jR(!0,void 0,"sF9zj"));v=t.next().value;t=t.next().value;var R=v,H=t;v=_.N(_.jR(50,void 0,"Da2bOd"));var l=v.next().value,d=v.next().value;v=_.G9(function(){var sb=e();return _.w("web_shorts_keyboard_enable_mute_shortcut")?sb?_.Ug("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):
_.Ug("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):sb?_.Ug("UNMUTE_VOLUME",void 0,"Unmute"):_.Ug("MUTE_VOLUME",void 0,"Mute")},void 0,"RUjxdf");
t=_.G9(function(){var sb=e(),Rm=R();return{sources:[{clientResource:{imageName:sb?"VOLUME_OFF_FILLED":Rm?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"EZ2qZd");
var F=_.G9(function(){var sb=l();return e()?sb+"% volume muted":sb+"% volume"},void 0,"ZJcDqc"),V=_.G9(function(){return L()==="vertical_down"},void 0,"OJU9Hf");
_.I4(function(){function sb(){f(!0)}
function Rm(){f(!1)}
y&&y.value&&(y.value.addEventListener("focus",sb),y.value.addEventListener("focusout",Rm),Q(y.value).then(function(){u(Number(fk0(y.value)))}));
E&&E.value&&(E.value.addEventListener("focus",sb),E.value.addEventListener("focusout",Rm));_.dB(function(){var M3;y==null||(M3=y.value)==null||M3.removeEventListener("focus",sb);var tT;y==null||(tT=y.value)==null||tT.removeEventListener("focusout",Rm);var mJ;E==null||(mJ=E.value)==null||mJ.removeEventListener("focus",sb);var hT;E==null||(hT=E.value)==null||hT.removeEventListener("focusout",Rm)})});
var z=_.YH(function(){if(y&&y.value){var sb=Number(fk0(y.value));JTZ(sb);d(sb);y.value.style.setProperty("--gradient-percent",sb+"%");u(sb)}return!1}),O=_.YH(function(){f(!0)}),W=_.YH(function(){y&&y.value&&(q(y.value,e()),G(!e()));
return!1}),x={},k={},LZ={};
return _.p("volume-controls",{"on:pointerleave":_.YH(function(){f(!1)}),
class:_.Ty("ytdVolumeControlsHost",(x.ytdVolumeControlsHostVertical=V,x.ytdVolumeControlsHostExpanded=function(){return J()},x)),
el:g},_.p(_.M,{cond:function(){return!V()},
then:function(){var sb={};return _.p("div",{class:_.Ty("ytdVolumeControlsBackgroundScrim",(sb.ytdVolumeControlsBackgroundScrimExpanded=J,sb))})}}),_.p("div",{class:_.Ty((k.ytdVolumeControlsMuteIconButtonContainer=V,k))},_.p("button",{"aria-label":v,
title:v,el:E,"on:click":W,"on:pointerenter":O,class:"ytdVolumeControlsMuteIconButton"},t?_.p(_.IT,{data:t,alt:v,className:"ytdVolumeControlsMuteIcon"}):null)),_.p("div",{class:_.Ty("ytdVolumeControlsSliderContainer",(LZ.ytdVolumeControlsSliderContainerExpanded=J,LZ.ytdVolumeControlsSliderContainerVertical=V,LZ.ytdVolumeControlsSliderContainerVerticalDown=V,LZ.ytdVolumeControlsSliderContainerVerticalExpanded=function(){return J()&&V()},LZ))},_.p("input",{"aria-label":_.Ug("VOLUME"),
title:_.Ug("VOLUME"),el:y,"on:input":z,type:"range",class:"ytdVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":l,"aria-valuetext":F,"aria-valuemin":0,"aria-valuemax":100})))},"gh");var N9H=_.r(function(g){var u=g.data;var q=g.overlayDensity;g={};return _.p("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.p(_.Up,{data:function(){return u().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(Q){var L=Q.data;
return _.p(_.fG,{data:function(){return(q==null?void 0:q())===1?Object.assign({},L(),{avatar:{avatarViewModel:Object.assign({},_.c(L().avatar,_.fn),{avatarImageSize:"AVATAR_SIZE_M"})}}):L()}})}}),_.p(_.Up,{data:function(){return u().avatarStackViewModel}},{avatarStackViewModel:function(Q){return _.p(_.MU,{data:Q.data})}}),_.p(_.c2,{className:_.Ty("ytReelChannelBarViewModelChannelName",(g.ytReelChannelBarViewModelChannelNameLarge=function(){return(q==null?void 0:q())===1},g)),
text:function(){return u().channelName},
linkInheritColor:!0,userInput:!0}),_.p("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.p(_.Up,{data:function(){return u().subscribeButtonViewModel}},{subscribeButtonViewModel:function(Q){var L=Q.data;
return _.p(_.jt,{data:function(){return(q==null?void 0:q())===1?Object.assign({},L(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},L().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):L()},
isOverlay:!1})},
buttonViewModel:_.TT})),_.p("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.p(_.Up,{data:function(){var Q,L;return(L=_.c((Q=u())==null?void 0:Q.sponsorButtonViewModel,HF5))==null?void 0:L.sponsorButton}},{buttonViewModel:function(Q){return _.p(_.TT,{data:Q.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"hh");var soh=_.r(function(g){var u=function(){var L;return((L=g.overlayDensity)==null?void 0:L.call(g))===1},q=function(){return u()?22:16},Q={};
return _.p("yt-reel-multi-format-link-view-model",{class:_.Ty("ytReelMultiFormatLinkViewModelHost",(Q.ytReelMultiFormatLinkViewModelHostTall=!0,Q.ytReelMultiFormatLinkViewModelHostLarge=function(){return u()},Q))},_.p(_.ag,{ariaLabel:function(){return g.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return g.data().command}},_.p("h3",{class:function(){return u()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.p(_.M,{cond:function(){return g.data().icon},
then:function(L){return _.p(_.IT,{data:L,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:q})}}),_.p(_.c2,{text:function(){return g.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ih");
soh.idomCompat=!0;var y_C=_.r(function(g){var u=g.data;var q=g.overlayDensity;var Q=g.extractOverlay;var L=_.Hk("yt-shorts-suggested-action-view-model");g=_.N(_.jR(!1,void 0,"S60Hzc"));var E=g.next().value,y=g.next().value;g=_.N(_.jR(!1,void 0,"O76chf"));var v=g.next().value,J=g.next().value,f=function(){return u().isMultiLineSa},t=_.kq(deh,function(){var k,LZ;
return(LZ=(k=u().toggleableContent)==null?void 0:k.entityKey)!=null?LZ:""}),e=function(){var k,LZ,sb;
return(sb=u().toggleableContent)!=null&&sb.entityKey?(LZ=(k=t())==null?void 0:k.value)!=null?LZ:!1:!1},G=function(){var k,LZ,sb,Rm,M3,tT,mJ,hT,Yu,Mx,po;
return u().toggleableContent?e()?(k=u().toggleableContent)==null?void 0:k.toggledData:(LZ=u().toggleableContent)==null?void 0:LZ.untoggledData:{primaryText:(hT=(sb=u().defaultContent)==null?void 0:sb.primaryText)!=null?hT:u().text,secondaryText:(Rm=u().defaultContent)==null?void 0:Rm.secondaryText,onTapCommand:(Yu=(M3=u().defaultContent)==null?void 0:M3.onTapCommand)!=null?Yu:u().onTapCommand,icon:(Mx=(tT=u().defaultContent)==null?void 0:tT.icon)!=null?Mx:u().icon,image:(po=(mJ=u().defaultContent)==
null?void 0:mJ.image)!=null?po:u().image}},R=function(){return f()?u().trailingTapTarget:void 0},H=function(k,LZ){return function(){return E()?LZ:k}},l=function(){return{leadingSection:H("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(q==null?void 0:q())===1?H("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):H("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:H("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:H("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:H("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:H("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
g={};g=_.Ty((g.ytShortsSuggestedActionViewModelStaticHost=function(){return!f()},g.ytShortsSuggestedActionViewModelDynamicHost=f,g.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return f()&&v()},g.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return f()&&!v()},g.ytShortsSuggestedActionViewModelExtractOverlay=function(){return Q==null?void 0:Q()},g));
_.I4(function(){if(f()){var k=0,LZ;if((LZ=u().animationParams)==null?0:LZ.shouldExpand){var sb,Rm;k=((Rm=(sb=u().animationParams)==null?void 0:sb.expansionDelaySecs)!=null?Rm:0)*1E3}var M3,tT=((M3=u().animationParams)==null?0:M3.shouldExpand)?setTimeout(function(){y(!0)},k):void 0,mJ,hT;
k=((mJ=u().animationParams)==null?0:mJ.visibilityDelaySecs)?((hT=u().animationParams)==null?NaN:hT.visibilityDelaySecs)*1E3:0;var Yu=setTimeout(function(){J(!0)},k);
_.dB(function(){tT&&clearTimeout(tT);clearTimeout(Yu)})}});
var d=function(k){_.ey(k,Object.assign({},{form:{element:L.value}}))},F=_.YH(function(){var k,LZ=(k=G())==null?void 0:k.onTapCommand;
LZ&&d(LZ)}),V=_.YH(function(){var k,LZ;
if(k=(LZ=R())==null?void 0:LZ.onTapCommand)return d(k),!1}),z=_.xH({"vertical-align":"bottom",
"border-radius":function(){var k;return f()?((k=u().defaultContent)==null?0:k.isCircleImage)?"50%":"4px":"0px"},
width:function(){var k,LZ,sb;return f()&&((k=u().defaultContent)==null?0:k.imageSize)?((sb=(LZ=u().defaultContent)==null?void 0:LZ.imageSize)!=null?sb:24)+"px":null},
height:function(){var k,LZ,sb;return f()&&((k=u().defaultContent)==null?0:k.imageSize)?((sb=(LZ=u().defaultContent)==null?void 0:LZ.imageSize)!=null?sb:24)+"px":null}}),O=function(){return f()?l().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},W=function(){return f()?l().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},x={};
return _.p("yt-shorts-suggested-action-view-model",{class:g,el:L},_.p("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.p("button",{class:_.Ty(function(){return f()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var k;
return(k=u().useFullRoundedBorder)!=null&&k?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!R()&&f()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":f()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var k;
return(k=u().disableFixedHeight)!=null&&k?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(x.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(q==null?void 0:q())===1},x.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return Q==null?void 0:Q()},x)),
"on:click":F},_.p(_.VU,{model:{color:4}}),_.p("div",{class:_.Ty(function(){return f()?l().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.p(_.M,{cond:function(){var k;
return(k=G())==null?void 0:k.image},
then:function(k){return _.p(_.IT,{data:k,alt:"",className:W,contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:z})}}),_.p(_.M,{cond:function(){var k,LZ;
return(k=G())==null?void 0:(LZ=k.icon)==null?void 0:LZ.iconType},
then:function(k){return _.p(_.B1,{icon:k,active:e,className:O})}})),_.p("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.p(_.M,{cond:function(){var k;
return(k=G())==null?void 0:k.primaryText},
then:function(k){var LZ={};return _.p("div",{class:_.Ty("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(LZ.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(q==null?void 0:q())===1},LZ))},_.p(_.c2,{text:k}))}}),_.p(_.M,{cond:function(){var k;
return(k=G())==null?void 0:k.secondaryText},
then:function(k){return _.p("div",{class:function(){return l().secondaryText()}},_.p(_.c2,{text:k}))}}))),_.p(_.M,{cond:R,
then:function(k){return _.p("div",{class:_.Ty(function(){return l().trailingSection()},function(){var LZ,sb;
return(Q==null?void 0:Q())&&((sb=(LZ=l()).trailingSectionExtractOverlay)==null?void 0:sb.call(LZ))||""}),
"aria-label":function(){var LZ;return(LZ=k().a11yLabel)!=null?LZ:""},
"on:click":V,role:"button",tabindex:0},_.p(_.VU,{model:{color:4}}),_.p(_.B1,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"jh");var v1z=_.r(function(g){var u=g.data;var q=g.overlayDensity;var Q=_.Hk("yt-shorts-video-title-view-model");g=_.YH(function(y){if(_.vY(_.y4(y),Q.value,["A".toString()]))return!1;(y=u().truncatedTextOnTapCommand)&&_.ey(y);return!1});
var L={},E={};return _.p("yt-shorts-video-title-view-model",{el:Q,class:_.Ty("ytShortsVideoTitleViewModelHost",(L.ytShortsVideoTitleViewModelHostClickable=function(){return!!u().truncatedTextOnTapCommand},L)),
"on:click":g},_.p("h2",{class:_.Ty("ytShortsVideoTitleViewModelShortsVideoTitle",(E.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(q==null?void 0:q())===1},E.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.w("enable_shorts_declutter_ui")},E.ytShortsVideoTitleViewModelShortsVideoTitleDecluttered=function(){return _.w("enable_desktop_small_title_on_immersive_shorts")},E))},_.p(_.c2,{text:function(){return u().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(q==null?void 0:q())===1}})))},"kh");_.D_Z=_.r(function(g){var u=g.data;var q=g.overlayDensity;var Q=g.extractOverlay;var L=function(){return(q==null?void 0:q())===1},E=function(){return _.w("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelMetapanelItemDecluttered":"ytReelMetapanelViewModelMetapanelItem"},y=function(){return _.w("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelExpansiveDecluttered":"ytReelMetapanelViewModelExpansiveBlock"};
return _.p("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.p(_.Up,{data:function(){return u().metadataItems}},{badgeViewModel:function(v){v=v.data;
return _.p("div",{class:_.Ty(function(){return L()?y():E()})},_.p(_.bY,{data:v}))},
playerDisclosureViewModel:function(v){v=v.data;return _.p("div",{class:_.Ty(function(){return L()?y():E()})},_.p(_.bvp,{data:v,
extractOverlay:Q}))},
shortsSuggestedActionViewModel:function(v){v=v.data;return _.p("div",{class:_.Ty(function(){return L()?y():E()})},_.p(y_C,{data:v,
overlayDensity:q,extractOverlay:Q}))},
reelChannelBarViewModel:function(v){v=v.data;var J={};return _.p("div",{class:_.Ty(E(),(J.ytReelMetapanelViewModelExpansive=function(){return L()&&!_.w("enable_shorts_declutter_ui")},J.ytReelMetapanelViewModelExpansiveDecluttered=function(){return L()&&_.w("enable_shorts_declutter_ui")},J))},_.p(N9H,{data:v,
overlayDensity:q}))},
reelMultiFormatLinkViewModel:function(v){v=v.data;var J={};return _.p("div",{class:_.Ty(E(),(J.ytReelMetapanelViewModelExpansive=function(){return L()&&!_.w("enable_shorts_declutter_ui")},J.ytReelMetapanelViewModelExpansiveDecluttered=function(){return L()&&_.w("enable_shorts_declutter_ui")},J))},_.p(soh,{data:v,
overlayDensity:q}))},
shortsVideoTitleViewModel:function(v){v=v.data;var J={};return _.p("div",{class:_.Ty(E(),(J.ytReelMetapanelViewModelExpansive=function(){return L()&&!_.w("enable_shorts_declutter_ui")},J.ytReelMetapanelViewModelExpansiveDecluttered=function(){return L()&&_.w("enable_shorts_declutter_ui")},J))},_.p(v1z,{data:v,
overlayDensity:q}))},
reelSoundMetadataViewModel:function(v){v=v.data;var J={};return _.p("div",{class:_.Ty(E(),(J.ytReelMetapanelViewModelExpansive=function(){return L()&&!_.w("enable_shorts_declutter_ui")},J.ytReelMetapanelViewModelExpansiveDecluttered=function(){return L()&&_.w("enable_shorts_declutter_ui")},J))},_.p(_.yMz,{data:v,
overlayDensity:q}))},
toggleButtonViewModel:function(v){v=v.data;var J={};return _.p("div",{class:_.Ty(E(),(J.ytReelMetapanelViewModelExpansive=function(){return L()&&!_.w("enable_shorts_declutter_ui")},J.ytReelMetapanelViewModelExpansiveDecluttered=function(){return L()&&_.w("enable_shorts_declutter_ui")},J))},_.p(_.E6,{data:v}))}}))},"lh");var p6K=_.r(function(g){var u=_.FI(g,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),q=u.size,Q=u.onTap,L=u.disabled,E=u.tooltipText;return _.p("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.p(_.W2,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:q(),disabled:L(),tooltipText:E(),onTap:Q}},
iconName:g.iconType}))},"mh"),J_L=_.r(function(g){function u(t){t.stopPropagation();
t.code==="ArrowUp"?(t.preventDefault(),GMo(v.value)):t.code==="ArrowDown"?(t.preventDefault(),$3Z(v.value)):t.code==="KeyM"?MK$():(t.code==="KeyK"||t.code==="Space")&&tKn(J())}
var q=_.FI(g,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});g=q.previousButtonDisabled;var Q=q.nextButtonDisabled,L=q.data,E=q.playabilityStatus,y=q.previewThumbnail,v=_.Hk("ytd-shorts-miniplayer-overlay"),J=_.Sy(_.H1m),f;_.lL(function(){(f=_.fH(v.value))&&f.addEventListener("keydown",u)});
_.dB(function(){var t;(t=f)==null||t.removeEventListener("keydown",u)});
q=function(){var t,e;var G=_.c((t=L())==null?void 0:(e=t.reelPlayerOverlayRenderer)==null?void 0:e.buttonBar,GRR);if(G){var R;t=Object.assign({},G,{buttonViewModels:(R=G.buttonViewModels)==null?void 0:R.filter(eFX)})}else t=void 0;return t};
return _.p("ytd-shorts-miniplayer-overlay",{el:v,class:"ytdShortsMiniplayerOverlayHost"},_.p("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.xH({"background-image":function(){var t=y();return t?'url("'+_.my(t.thumbnails)+'")':""}})}),_.p("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.p("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.p(p6K,{iconType:function(){var t=J();
return t===2||t===-1||t===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){tKn(J())},
tooltipText:function(){var t=J();return t===1||t===3?_.Ug("PLAYER_LABEL_PAUSE"):_.Ug("PLAYER_LABEL_PLAY")}}),_.p(_.PDE,{orientation:"horizontal_right"})),_.p("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.p(p6K,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:g,onTap:function(){GMo(v.value)},
tooltipText:_.Ug("PREVIOUS_VIDEO_LABEL")}),_.p(p6K,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:Q,onTap:function(){$3Z(v.value)},
tooltipText:_.Ug("NEXT_VIDEO_LABEL")}),_.w("web_shorts_pip_like_button")?_.p(_.M,{cond:q,then:function(t){return _.p("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.p(_.wPH,{data:t,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.p("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.p(_.M,{cond:function(){var t,e;
return _.c((t=L())==null?void 0:(e=t.reelPlayerOverlayRenderer)==null?void 0:e.metapanel,$Jb)},
then:function(t){return _.p("div",{class:_.Ty("ytdShortsMiniplayerOverlayInteractive")},_.p(_.D_Z,{data:t}))}})),_.p("div",{class:_.Ty("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var t;return!((t=L())==null||!t.adsOverlay)||E()&&!QLT(E())}},_.p("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.p(_.E1p,null)))),_.p(_.M,{cond:function(){var t=L(),e,G;
t=_.c(t==null?void 0:(e=t.adsOverlay)==null?void 0:(G=e.fulfillmentContent)==null?void 0:G.fulfilledLayout,SGH);return _.c(t==null?void 0:t.renderingContent,Qh0)},
then:function(t){return _.p("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.p(IJX,{data:t}))}}))},"oh");var RFn=_.r(function(){var g=_.N(_.jR(new _.IW(NaN,NaN),void 0,"ejTaF")),u=g.next().value,q=g.next().value;g=_.N(_.jR(!1,void 0,"aTA69e"));var Q=g.next().value,L=g.next().value,E=_.N(_.jR(!1,void 0,"OsC2Ib"));g=E.next().value;var y=E.next().value;E=_.Bk().resolve(_.RO).miniplayerPropSignalMap[0];var v=E.data,J=E.shortsData,f=E.nextButtonDisabled,t=E.shortsPreviewThumbnail,e=E.previousButtonDisabled,G=E.externalPlaylistData,R=E.playabilityStatus,H=E.isDisabled,l=E.playerVe,d=E.closeVe;E=_.Sy(_.WY);
_.W6("yt-pip-window-resized",function(O){q(O)});
_.W6("yt-activate-pip-miniplayer",function(){return _.D(function(O){y(!0);_.Wx(O)})});
var F=function(){var O;return!((O=G())==null||!O.contents)&&Q()},V=function(){var O=u(),W=!!v(),x=F();
O=O.clone();W&&(O.height-=76);x&&(O.height-=285);return O},z=function(){L(!Q())};
_.bX(function(){var O=l(),W=_.j_(11),x=_.JJ(11);W&&x&&O&&(_.cC(W,x,O),x=d())&&(_.HC(W,O,[x]),_.Z0(W,[x]))},"h5qKie");
return _.p("ytd-pip-container",{class:"ytdPipContainerHost"},_.p(_.M,{cond:g,then:function(){return _.p(_.$Th,{isDisabled:H,playabilityStatus:R,size:V,isPictureInPicture:!0})}}),_.p(_.M,{cond:v,
then:function(){return _.p(_.eMC,{data:v,expanded:Q,onExpandClick:z,playlistData:G})}}),_.p(_.M,{cond:F,
then:function(){return _.p("div",{class:"ytdPipContainerPlaylistPanel"},_.p(_.Qup,{data:G,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.p(_.M,{cond:E,
then:function(){return _.p(J_L,{data:J,nextButtonDisabled:f,previousButtonDisabled:e,playabilityStatus:R,previewThumbnail:t})}}))},"qh");var ZR=function(g,u,q){var Q=this;this.pipController=g;this.JSC$19357_clientRoot=u;this.JSC$19357_pageRequestService=q;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=dAf();this.JSC$19357_watchPipEnabled=_.w("web_watch_pip");this.watchPipManualOnlyEnabled=_.w("web_watch_pip_manual");this.shortsPipEnabled=_.w("web_shorts_pip");this.JSC$19357_watchWhileEnabled=_.w("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;_.qG(_.bR(),GuS,function(L){Q.isSingleOptionSurveyActive=L});
this.JSC$19357_onPlayerPlayVideo=this.JSC$19357_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);_.XU(_.VC.getInstance(),this.miniplayerServiceActionMap,this.JSC$19357_clientRoot);g.pictureInPictureSupported()&&_.H6("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},zrW,c_n,Gph,Hwh,A_C,$gR,Zwh,lfL,Iff,RAz;
ZR.prototype.handleMediaSessionPipActivation=function(g){var u=this,q,Q;return _.D(function(L){_.Uw().mediaSessionPipActivation=!0;q=_.Bk().resolve(_.ba);if(q.isOnWatch()&&u.JSC$19357_watchPipEnabled){if(u.watchPipManualOnlyEnabled&&((Q=g)==null?void 0:Q.enterPictureInPictureReason)!=="useraction")return gE(),L.return();_.Uw().watchPipActivation=!0;_.joh(u,q.data);return L.jumpTo(0)}return q.isOnShorts()&&u.shortsPipEnabled?(_.Uw().shortsPipActivation=!0,_.fff(u),L.jumpTo(0)):!u.isMiniplayerActive()||
!u.JSC$19357_watchPipEnabled||u.watchWhileMode||u.watchPipManualOnlyEnabled?L.jumpTo(0):L.yield(MQZ(u),0)})};
var MQZ=function(g){var u,q,Q,L;return _.D(function(E){if(E.nextAddress==1)return u=!g.miniplayerToPipMode,q=g.playerElement,Q=g.miniplayerData,L=g.watchResponse,E.yield(g.deactivate(),2);if(E.nextAddress!=3)return u?(_.Uw().mediaSessionPipActivation=!0,_.Uw().watchPipActivation=!0):_.Uw().miniplayerButtonActivation=!0,E.yield(g.activate(q,Q,L),3);g.miniplayerToPipMode=u;_.Wx(E)})};
ZR.prototype.onDownloadedVideoDeleted=function(g){var u,q=_.c((u=this.miniplayerData)==null?void 0:u.watchEndpoint,_.l1),Q,L;q&&((Q=this.watchResponse)==null?void 0:(L=Q.playerResponse)==null?void 0:L.offlineState)!==void 0&&(u=q.videoId)&&g&&u===g&&this.close()};
ZR.prototype.onShowMiniplayerCommand=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e,G;return _.D(function(R){switch(R.nextAddress){case 1:return q=_.c(g,Qc2),L=(Q=q)==null?void 0:Q.miniplayerCommand,E=_.c(L,_.l1),L&&E&&!u.active?R.yield(_.yN.getInstance(),2):R.return();case 2:return y=R.yieldResult,R.yield((v=y)==null?void 0:v.get("yt-miniplayer-shown-video-id"),3);case 3:J=R.yieldResult;f=E.videoId;if(!f||J===f)return R.return();t=_.Bk().resolve(_.ba);if(t.isOnWatch())return _.Io(Error("Yj")),R.return();
e={channelItem:{externalId:btoa(f)}};u.readyToResumeVe=_.Yq(121253,void 0,void 0,e);_.Uw().showMiniplayerCommandActivation=!0;return R.yield(_.R$R(u,L,!0),4);case 4:return u.active&&(_.lK(u,{readyToResumeVe:u.readyToResumeVe,isReadyToResume:!0}),u.isReadyToResume=!0),R.yield((G=y)==null?void 0:G.set("yt-miniplayer-shown-video-id",E.videoId),5);case 5:u.readyToResumeVe=void 0,_.Wx(R)}})};
ZR.prototype.init=function(g){this.miniplayerEl?_.Io(new _.Ji("MiniplayerService already initialized.")):this.miniplayerEl=g};
ZR.prototype.isInitialized=function(){var g=!!this.miniplayerEl;g||_.Io(new _.Ji("MiniplayerService used before initialized."));return g};
_.joh=function(g,u){if(g.isInitialized()){var q=_.aTu(u.response,u.playerResponse),Q=_.Bk().resolve(_.ba).getPlayerFromWatch();_.Uw().currentEndpoint=q.watchEndpoint||null;g.activate(Q,q,u)}};
_.fff=function(g){if(g.isInitialized()){var u=_.Bk().resolve(_.ba).getPlayerFromShorts();g.activate(u)}};
zrW=function(g,u){var q;(q=!g.isInitialized())||(q=_.Bk().resolve(_.ba).isOnWatch()&&g.watchPipMode,q=!(g.isMiniplayerActive()&&(_.Uw().userActivation||_.Uw().lockupActivation||q)));if(q)return!1;tQh(g,u)?_.Hr(g):$gR(g,u);return g.watchPipMode?!_.Bk().resolve(_.ba).isOnWatch():!0};
ZR.prototype.isMiniplayerActive=function(){return this.active};
var tQh=function(g,u){var q;u=(q=_.c(u,_.l1))==null?void 0:q.videoId;var Q,L;g=(L=_.c((Q=g.miniplayerData)==null?void 0:Q.watchEndpoint,_.l1))==null?void 0:L.videoId;return u!=null&&u===g};
ZR.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.hJ(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.YJ(this.miniplayerEl,"yt-navigate-home-action"))};
_.R$R=function(g,u,q,Q){q=q===void 0?!1:q;var L,E,y,v;return _.D(function(J){switch(J.nextAddress){case 1:if(g.active){J.jumpTo(2);break}L=_.Bk().resolve(_.ba);if(y=(E=g.playerElement)!=null?E:L.getPlayerFromWatch()){J.jumpTo(3);break}return J.yield(_.Bk().resolve(_.rv),4);case 4:y=L.getPlayerFromWatch();case 3:if(!y){_.Io(Error("$j"));J.jumpTo(2);break}return J.yield(g.activate(y,Q),2);case 2:return g.active?J.yield($gR(g,u,q),7):J.return();case 7:(v=g.getPlayerElement())==null||v.focusOnPlayer(),
_.Wx(J)}})};
ZR.prototype.activate=function(g,u,q){var Q=this,L,E,y,v,J,f,t,e,G;return _.D(function(R){switch(R.nextAddress){case 1:if(!Q.isInitialized())return R.return();if(!g)return _.Io(Error("$j")),R.return();if(_.II2()||Q.isMiniplayerActive())var H=!0;else H=_.Uw().watchPipActivation||_.Uw().watchWhileActivation,_.Bk().resolve(_.ba).isOnWatch()&&!H?(_.Io(new _.Ji("miniplayer activated on watch page")),H=!0):H=_.Uw().watchWhileActivation?Q.userDeactivatedWatchWhile||!!document.pictureInPictureElement||VNS():
!1;if(H)return gE(),R.return();L=_.Uw().mediaSessionPipActivation;E=_.Uw().shortsPipActivation;y=_.Uw().watchPipActivation;J=(v=_.Uw().watchWhileActivation)||y;f=y||E;if(!Q.pictureInPictureEnabled()||!f){R.jumpTo(2);break}return R.yield(eAn(Q,L),3);case 3:if(!R.yieldResult)return _.Io(Error("Zj")),gE(),R.return();case 2:return Q.setActive(!0),Q.watchResponse=q,Q.playerElement=g,Q.updateMiniplayerData(u),R.yield(Gph(Q,g),4);case 4:if(!Q.active)return _.Io(new _.Ji("miniplayer deactivated during activation")),
Q.removePlayerListeners(),R.return();H=_.Bk().resolve(_.cd);H.addEventListener("yt-navigate",_.zr(Q,Q.onPlaylistNavigate));H.addEventListener("yt-playlist-data-updated",_.zr(Q,Q.JSC$19357_onPlaylistDataUpdated));Q.JSC$19357_onPlaylistDataUpdated();gE();Q.JSC$19357_watchWhileEnabled&&_.$_K(Q,v);Q.pictureInPictureEnabled()&&Q.shortsPipEnabled&&(Q.shortsPipMode=E,_.bR().dispatch(McR(Q.shortsPipMode)));Q.pictureInPictureEnabled()&&Q.JSC$19357_watchPipEnabled&&(Q.watchPipMode=y,!Q.JSC$19357_watchPipEnabled||
Q.watchPipManualOnlyEnabled&&!(_.X7J()&&_.cTu("Chromium")>=142)||Q.watchPipManualOnlyEnabled||_.WIF(Q.handleMediaSessionPipActivation));Q.player&&(t=Q.player.getPlayerState(),e=t===1,_.bR().dispatch(ZP$(t)),_.Og(Q.miniplayerEl,"yt-miniplayer-play-state-changed",[e]),_.Uw().isVideoPlaying=e);_.Og(Q.miniplayerEl,"yt-miniplayer-endpoint-changed");RAz(Q);_.w69(Q);if(Q.shortsPipMode||Q.watchPipMode)R=R.yield(_.YJ(Q.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{H=R.yield;var l=_.YJ(Q.miniplayerEl,
"yt-activate-miniplayer",[J])[0];R=H.call(R,l,6)}return R;case 6:if(Q.watchResponse){H=Q.getScreenLayer();l=_.j_(0);var d=qwZ(0);l&&d&&(_.MK(l,d,H),H===0&&glf(void 0,0))}c_n(Q);Hwh(Q,!0);(G=Q.getPlayerElement())==null||G.focusOnPlayer();_.Wx(R)}})};
ZR.prototype.updateMiniplayerData=function(g){this.miniplayerData=g;_.lK(this,{data:g})};
_.w69=function(g){var u,q,Q=((u=g.miniplayerData)==null?void 0:(q=u.miniplayerRenderer)==null?void 0:q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";u=g.watchWhileMode||g.watchPipMode?Q&&!_.Bk().resolve(_.ba).isOnWatch():Q;_.lK(g,{isDisabled:u});var L,E;q=_.c((L=g.miniplayerData)==null?void 0:(E=L.miniplayerRenderer)==null?void 0:E.minimizedEndpoint,_.q4);u&&q&&_.Bk().resolve(_.vy).openSheet({openPopupActionCommand:{openPopupAction:q}},g.miniplayerEl)};
c_n=function(g){if(g.watchResponse&&!A_C(g)){var u,q=(u=g.watchResponse.playerResponse)==null?void 0:u.trackingParams;q&&(_.lK(g,{expandVe:_.Yq(35989),closeVe:_.Yq(34699),readyToResumeCloseVe:_.Yq(131070),repositionVe:_.Yq(226204),resizeVe:_.Yq(226205)}),_.lK(g,{playerVe:_.Lr(q)}))}};
Gph=function(g,u){return _.D(function(q){if(q.nextAddress==1)return u.preparePlayer(),q.yield(u.getPlayerPromise(),2);g.player=q.yieldResult;g.player&&(g.player.addEventListener("onPlayVideo",g.JSC$19357_onPlayerPlayVideo),g.player.addEventListener("onCloseMiniplayer",g.onPlayerCloseMiniplayer),g.player.addEventListener("onExpandMiniplayer",g.onPlayerExpandMiniplayer),g.player.addEventListener("onStateChange",g.onPlayerStateChange));_.Wx(q)})};
_.P=ZR.prototype;_.P.JSC$19357_onPlayerPlayVideo=function(g){var u=g.sessionData&&"autonav"in g.sessionData,q;g.sessionData&&g.sessionData.itct&&(q=g.sessionData.itct);var Q=g.watchEndpoint;u=Q&&u?_.Ulm(Q,q):_.m7(g.videoId,g.listId||void 0,q);g.sessionData&&_.CV(_.c(u.commandMetadata,_.S_).url,g.sessionData);$gR(this,u)};
_.P.onPlayerExpandMiniplayer=function(){_.Hr(this)};
_.P.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.P.onPlayerStateChange=function(){if(this.player){var g=this.player.getPlayerState(),u=g===1;_.bR().dispatch(ZP$(g));_.bR().dispatch(_.MG(g));_.Og(this.miniplayerEl,"yt-miniplayer-play-state-changed",[u]);_.Uw().isVideoPlaying=u;if(g===0){u=!_.mB.getInstance().isAutoplaySetExplicitly();var q,Q,L,E,y,v,J=(q=this.watchResponse.response)==null?void 0:(Q=q.contents)==null?void 0:(L=Q.twoColumnWatchNextResults)==null?void 0:(E=L.autoplay)==null?void 0:(y=E.autoplay)==null?void 0:(v=y.autoplayExplicitChoiceDialogRenderer)==
null?void 0:v.confirmDialogRenderer;u&&J&&this.player.setAutonavState(1)}g===0&&this.watchWhileMode&&this.deactivate()}};
_.P.onPlaylistNavigate=function(g,u){var q=this,Q,L,E,y,v,J,f;return _.D(function(t){if(t.nextAddress==1){if(!_.c(u.endpoint,_.l1))return t.return();_.Uw().currentEndpoint=u.endpoint;_.Og(q.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.Bk().resolve(_.ba).isOnWatch()&&(q.watchWhileMode||q.watchPipMode))return t.return();g.stopPropagation();(E=(L=_.c((Q=u.endpoint)==null?void 0:Q.commandMetadata,_.S_))==null?void 0:L.url)&&u.tempData&&!_.pH.isEmpty(u.tempData)&&_.CV(E,u.tempData);y={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};v=new Idi(function(){return q.getPlayerElement()},y,{layer:q.getScreenLayer()});
J=function(e){v.processChunk({endpoint:u.endpoint,data:e})};
Zwh(q);q.miniplayerFetchRequest=lfL(q,u.endpoint,J);_.b8(t,2);return t.yield(q.miniplayerFetchRequest,4)}if(t.nextAddress!=2)return f=t.yieldResult,Iff(q,f),_.Xx(t,0);_.rt(t);_.Wx(t)})};
_.P.JSC$19357_onPlaylistDataUpdated=function(){var g=_.Bk().resolve(_.cd).getPlaylistData();this.hasPlaylistData=!!g;_.lK(this,{externalPlaylistData:g||{}})};
_.P.close=function(g){if(this.isInitialized())if(g){if(!((this.watchWhileMode||this.watchPipMode)&&_.Bk().resolve(_.ba).isOnWatch()||this.shortsPipMode)){var u;(u=this.getPlayerElement())==null||u.stop()}this.deactivate()}else _.Ic().closeMiniplayer(this.miniplayerEl)};
_.P.deactivate=function(g){var u=this,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1){if(!u.isInitialized()||!u.active)return y.return();u.setActive(!1);Zwh(u);(q=!!g&&tQh(u,g))&&u.isSingleOptionSurveyActive&&_.YJ(u.miniplayerEl,"yt-show-watch-page-survey",[u.isSingleOptionSurveyActive]);return y.yield(iwz(u),2)}if(y.nextAddress!=3){Hwh(u,!1);u.isReadyToResume=!1;u.watchResponse=void 0;u.updateMiniplayerData(void 0);u.shortsPipMode&&(u.shortsPipMode=!1,_.bR().dispatch(McR(u.shortsPipMode)),rfx(u.pipController),
(Q=u.player)==null||Q.setInternalSize(NaN,NaN));u.watchPipMode&&(u.watchPipMode=!1,rfx(u.pipController));(L=u.watchWhileMode)&&_.$_K(u,!1);u.removePlayerListeners();var v=_.Bk().resolve(_.cd);v.removeEventListener("yt-navigate",_.zr(u,u.onPlaylistNavigate));v.removeEventListener("yt-playlist-data-updated",_.zr(u,u.JSC$19357_onPlaylistDataUpdated));_.Uw().currentEndpoint=null;_.Og(u.miniplayerEl,"yt-miniplayer-endpoint-changed");u.playerElement=null;gE();if(u.shortsPipMode||u.watchPipMode)y=y.jumpTo(3);
else{v=y.yield;var J=_.YJ(u.miniplayerEl,"yt-deactivate-miniplayer",[q,L])[0];y=v.call(y,J,3)}return y}(E=u.player)==null||E.setInternalSize(NaN,NaN);u.player=null;_.Wx(y)})};
var iwz=function(g){var u;return _.D(function(q){u=_.Bk().resolve(_.ba);return g.shortsPipMode?q.yield(u.movePlayerToShorts(g.playerElement),0):q.yield(u.movePlayerToWatch(g.playerElement),0)})};
ZR.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19357_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
ZR.prototype.setActive=function(g){this.active=g;this.isSingleOptionSurveyActive?_.YJ(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.YJ(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.bR().dispatch(_.rF({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.$_K=function(g,u){g.watchWhileMode=u;_.lK(g,{watchWhile:u})};
Hwh=function(g,u){if(!A_C(g))if(g.shortsPipMode||g.watchPipMode){var q;(q=g.player)==null||q.setDocumentPictureInPicture(u)}else{var Q;(Q=g.player)==null||Q.setMinimized(u)}};
A_C=function(g){return g.watchWhileMode&&_.w("kevlar_watch_while_counterfactual")};
_.Hr=function(g){var u;return _.D(function(q){switch(q.nextAddress){case 1:if(!g.isInitialized())return q.return();_.b8(q,2);return q.yield(g.miniplayerFetchRequest,4);case 4:_.Xx(q,3);break;case 2:_.rt(q);case 3:g.watchResponse&&g.miniplayerData&&g.miniplayerData.watchEndpoint?(u={url:g.watchResponse.url,endpoint:g.miniplayerData.watchEndpoint,data:g.watchResponse,miniplayer:!0},_.hJ(g.miniplayerEl,"yt-navigate-cache",u)):g.miniplayerData&&g.miniplayerData.watchEndpoint&&_.hJ(g.miniplayerEl,"yt-navigate",
{endpoint:g.miniplayerData.watchEndpoint}),_.Wx(q)}})};
$gR=function(g,u,q){var Q,L,E,y;return _.D(function(v){if(v.nextAddress==1){if(tQh(g,u))return v.return();_.Uw().currentEndpoint=u;_.Og(g.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Og(g.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Uw().isVideoPlaying=!1;Q={clientParams:{miniplayer:!0,autoSaveToQueue:!q}};L=new Idi(function(){return g.getPlayerElement()},Q,{layer:g.getScreenLayer(),
parentLayer:0},void 0,g.readyToResumeVe);E=function(J){var f,t,e=Object.assign({},(f=J.playerResponse)==null?void 0:(t=f.playerConfig)==null?void 0:t.playbackStartConfig,{startPaused:!0}),G;q&&((G=J.playerResponse)==null?0:G.playerConfig)&&(J.playerResponse.playerConfig.playbackStartConfig=e);L.processChunk({endpoint:u,data:J})};
Zwh(g);g.miniplayerFetchRequest=lfL(g,u,E);_.b8(v,2);return v.yield(g.miniplayerFetchRequest,4)}if(v.nextAddress!=2)return y=v.yieldResult,Iff(g,y),_.Xx(v,0);_.rt(v);_.Wx(v)})};
ZR.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
Zwh=function(g){g.miniplayerFetchRequest&&(g.miniplayerFetchRequest.cancel&&g.miniplayerFetchRequest.cancel("Active request obsolete"),g.miniplayerFetchRequest=null)};
lfL=function(g,u,q){var Q,L=(Q=_.c(u.commandMetadata,_.S_))==null?void 0:Q.url,E;Q=!L||_.Of("disable_miniplayer_tempdata")?{}:(E=h9u(L))!=null?E:{};return HK(g.JSC$19357_pageRequestService,u,Q,window.location.href,"watch",function(y,v){q(v)},function(y){return y!==g.miniplayerFetchRequest})};
Iff=function(g,u){var q;_.D(function(Q){if(!u)return Q.return();g.watchResponse=u;c_n(g);RAz(g);q=_.aTu(u.response,u.playerResponse);if(g.isMiniplayerActive()){u.response&&(g.playerElement.watchNextData=u.response);var L=_.pH.getValueByKeys.apply(_.pH,[u].concat(_.na(rKa)));_.pH.getValueByKeys.apply(_.pH,[u].concat(_.na(OPi)))&&L&&_.Bk().resolve(_.cd).setAutoplayRenderer(L);if(L)if(_.w("kevlar_is_pupi_enabled")){var E,y,v,J,f,t=((E=u.response)==null?0:(y=E.playerOverlays)==null?0:(v=y.playerOverlayRenderer)==
null?0:(J=v.autonavToggle)==null?0:(f=J.autoplaySwitchButtonRenderer)==null?0:f.enabled)?2:1;_.mB.getInstance().setState(t,!1,!1)}else E=vau()?2:1,(t=g.player)==null||t.setAutonavState(E);g.updateMiniplayerData(q);_.w69(g)}_.Wx(Q)})};
RAz=function(g){var u,q,Q=(u=g.watchResponse)==null?void 0:(q=u.playerResponse)==null?void 0:q.playabilityStatus,L;u=Q==null?void 0:(L=Q.miniplayer)==null?void 0:L.miniplayerRenderer;(u==null?void 0:u.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&u.minimizedEndpoint&&_.KV(g.miniplayerEl,[u.minimizedEndpoint]);_.lK(g,{playabilityStatus:Q})};
_.lK=function(g,u){(0,g.miniplayerPropSignalMap[1])(u)};
ZR.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var g;return this.playerElement?this.playerElement:(g=_.Tr(this.miniplayerEl).querySelector("#player-container"))==null?void 0:g.firstElementChild};
ZR.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var eAn=function(g,u){u=u===void 0?!1:u;var q,Q,L,E,y,v;return _.D(function(J){if(J.nextAddress==1){if(!g.pictureInPictureSupported()||!cTi()&&!u)return J.return(!1);q=CDC(g);Q=q.width;L=q.height;return J.yield(g.pipController.openWindow({width:Q,height:L}),2)}E=J.yieldResult;y=g.pipController.getWindow();if(!y||!E)return J.return(!1);y.document.body.style.overflow="hidden";v=wSX(y);WVC(g.pipController,function(){bwH(g);v()});
return J.return(!0)})},CDC=function(g){var u=_.Uw().shortsPipActivation,q,Q;
g=u?.5625:(Q=(q=g.player)==null?void 0:q.getVideoAspectRatio())!=null?Q:16/9;q=Math.min(window.innerWidth,window.innerHeight)/2;u=u?0:76;return g>1?new _.IW(q,u+q/g):new _.IW(q*g,u+q)},bwH=function(g){var u;
_.D(function(q){u=_.Bk().resolve(_.ba);return u.isOnWatch()&&g.watchPipMode||u.isOnShorts()&&g.shortsPipMode?q.yield(g.deactivate(),0):g.miniplayerToPipMode?q.yield(MQZ(g),0):g.watchPipMode?q.yield(_.Hr(g),0):q.jumpTo(0)})};
ZR.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19357_watchPipEnabled||this.shortsPipEnabled)};
_.z3.Object.defineProperties(ZR.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ZR[zv]=[TBx,Y4R,_.vK];var d_K="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(" "),
Fnn="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(" "),m_h="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
af9="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var VQn=function(g,u,q){_.Lh.call(this);this.store=g;this.panelController=u;this.pageContentExtractor=q;this.isInitialized=!1};
_.A(VQn,_.Lh);
VQn.prototype.init=function(g){var u=this;this.isInitialized||(this.isInitialized=!0,this.environment=g!=null?g:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.wy.currentPageSubTypeSelector(this.store.getState()),g=_.qG(this.store,_.wy.currentPageSubTypeSelector,function(q){a:if(_.X6K(u))switch(q){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var Q=!0;break a;default:Q=!1}else Q=!1;Q&&u.panelController.hidePanel({identifier:"PAai_companion"});
u.pageSubtype!==q&&(u.pageSubtype=q)}),this.addOnDisposeCallback(g))};
_.C7K=function(g,u){if(_.X6K(g))switch(u){case "watch":var q,Q;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(q=_.Ke())==null?void 0:(Q=q.getVideoData())==null?void 0:Q.video_id};case "search":var L,E,y;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(E=(L=g.pageContentExtractor)==null?void 0:cfH(L))!=null?E:[],entityId:(y=(new URLSearchParams(window.location.search)).get("search_query"))!=null?y:void 0};case "companion-canvas":var v,J;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(J=(v=
g.pageContentExtractor)==null?void 0:cfH(v))!=null?J:[]};default:var f,t;g={videoIds:(t=(f=g.pageContentExtractor)==null?void 0:cfH(f))!=null?t:[]};return _.w("enable_ai_companion_default_page_context")?g:void 0}};
_.X6K=function(g){return g.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
VQn[zv]=[_.Ja,_.yH,_.xv(H2C)];var r_p=_.r(function(g){return _.p("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.p(_.CX,{className:g.className,text:function(){return g.data().text||""},
wrapCodeBlocks:g.shouldWrapCodeBlock}))},"sh");_.WnZ=_.r(function(g){return _.p("yt-ai-companion-attachment-view-model",{el:_.lF(_.J7(function(){return g.data().rendererContext})),
class:_.Ty("ytAiCompanionAttachmentViewModelHost",g.className)},_.p("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.p(_.M,{cond:function(){return g.data().title},
then:function(u){return _.p("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return u().content}},_.p(_.c2,{text:u}))}}),_.p(_.M,{cond:function(){return _.Rs(g.data().trailingTitleIcon)},
then:function(u){return _.p("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.p(_.IT,{data:u,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.p(_.M,{cond:function(){return g.data().description},
then:function(u){return _.p("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.p(_.c2,{text:u}))}}),_.p(_.M,{cond:function(){return g.data().bottomItem},
then:function(u){return _.p("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.p(_.Up,{data:u},{tableViewModel:vWH}))}}))},"th");_.T9Z=_.r(function(g){return _.p("yt-channel-attribution-view-model",{class:_.Ty("ytChannelAttributionViewModelHost",g.className)},_.p("div",{class:"ytChannelAttributionViewModelUpper"},_.p(_.Up,{data:function(){return g.data().avatar}},{decoratedAvatarViewModel:_.fG}),_.p("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.p(_.c2,{text:function(){return g.data().title}}))),_.p("div",{class:"ytChannelAttributionViewModelBottom"},_.p(_.c2,{text:function(){return g.data().subtitle}})))},"uh");var hAE=_.r(function(g){var u=_.N(_.jR(!1,void 0,"MFRKRb")),q=u.next().value,Q=u.next().value,L=function(){return g.data().activeRenderer},E=function(){return g.data().inactiveRenderer};
return _.p("yt-channel-disclosure-view-model",{"on:mouseleave":_.YH(function(){Q(!1)}),
"on:mouseover":_.YH(function(){Q(!0)}),
class:_.Ty("ytChannelDisclosureViewModelHost",g.className)},_.p(_.M,{cond:function(){return q()},
then:function(){return _.p(_.Up,{data:L},{channelAttributionViewModel:_.T9Z})},
else:function(){return _.p(_.Up,{data:E},{decoratedAvatarViewModel:_.fG})}}))},"vh");var YzE=null;var OwC={},Kn9=(OwC.initialized={priority:10,callback:function(g){var u=_.Bk();u.addProvider({provide:HB0,useClass:Y_C});u.addProvider({provide:_.hIx,useFactory:function(){return new A6$}});
u.addProvider({provide:iW,useValue:_.FR("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});u.addProvider({provide:TjH,useValue:5184E6});u.addProvider({provide:Dix,useValue:_.pT()});u.addProvider({provide:UVH,useClass:YL$});u.addProvider({provide:l5,useClass:l5});u.addProvider({provide:_.rv,useFactory:function(){return tcb.promise}});
u.addProvider({provide:_.G_a,useFactory:function(){return _.ewo.promise}});
u.addProvider({provide:BHf,useValue:function(){var J;return((J=_.F0())==null?void 0:J.getPlayer())||null}});
var q={};u.addProvider((q.provide=_.QO,q.useFactory=function(J,f){return function(){return w7q(J,f)}},q[zv]=[iW,
TjH],q));q={};u.addProvider((q.provide=_.xe,q.useClass=J5h,q[zv]=[iW,TjH],q));q={};u.addProvider((q.provide=_.bZ0,q.useClass=tiz,q[zv]=[_.xe],q));u.addProvider({provide:wA,useFactory:_.bR});u.addProvider({provide:Yb,useFactory:_.bR});u.addProvider({provide:DQK,useFactory:_.bR});u.addProvider({provide:_.bso,useFactory:function(){var J;return((J=_.F0())==null?void 0:J.getPlayer())||null}});
u.addProvider({provide:bHh,useFactory:_.bR});u.addProvider({provide:_.Ja,useFactory:_.bR});q={};u.addProvider((q.provide=I_0,q.useFactory=function(J){return J.dispatch.bind(J)},q[zv]=[_.Ja],q));
u.addProvider({provide:Un,useValue:_.k6});u.addProvider({provide:WWC,useClass:e5m});u.addProvider({provide:P7Z,useClass:EBH});u.addProvider({provide:ob,useClass:ob});u.addProvider({provide:oU,useClass:oU});u.addProvider({provide:zj,useClass:zj});u.addProvider({provide:UL,useClass:UL});u.addProvider({provide:uK,useClass:uK});u.addProvider({provide:aJ,useClass:aJ});u.addProvider({provide:IJ,useClass:IJ});u.addProvider({provide:AkK,useValue:Ptz});q={};u.addProvider((q.provide=ZHh,q.useFactory=function(J){return J.watchEndpointMap||
{}},q[zv]=[AkK],q));
q={};u.addProvider((q.provide=lW9,q.useFactory=function(J){return J.reelWatchEndpointMap||{}},q[zv]=[AkK],q));
u.addProvider({provide:_.QA,useFactory:_.gL});u.addProvider({provide:Jp,useFactory:_.qf});q={};u.addProvider((q.provide=RlT,q.useFactory=function(J){return function(f){var t={automatedLogEventSource:5};t=t===void 0?{}:t;var e,G,R=(G=_.c((e=f.endpoint)==null?void 0:e.commandMetadata,_.S_))==null?void 0:G.rootVe;if(R){var H,l;if(e=f.previousCsn||((l=_.c((H=f.endpoint)==null?void 0:H.commandMetadata,Txo))==null?void 0:l.parentCsn)){var d=d===void 0?{}:d;if(e!==_.j_(d.layer)||R!==qwZ(d.layer))NSF(e,d.cttAuthInfo,
d.layer||0),glf(e,d.layer||0),H=d.layer||0,_.di(uuM(H===void 0?0:H),R);t.parentCsn=e}f.endpoint&&e?pVn(J,f.endpoint,t):_.Kq(J,R,void 0,t);var F;((F=f.response)==null?0:F.trackingParams)&&J.graftServerVe(f.response.trackingParams);var V;((V=f.playerResponse)==null?0:V.trackingParams)&&J.graftServerVe(f.playerResponse.trackingParams);var z;((z=f.reelWatchSequenceResponse)==null?0:z.trackingParams)&&J.graftServerVe(f.reelWatchSequenceResponse.trackingParams)}}},q[zv]=[_.QA],q));
q={};u.addProvider((q.provide=Jfh,q.useClass=pLp,q[zv]=[Un,_.Ja],q));q={};u.addProvider((q.provide=yO,q.useClass=yO,q[zv]=[_.rv,_.Ja],q));q={};u.addProvider((q.provide=Nz,q.useClass=Nz,q[zv]=[Yb,_.Gy],q));u.addProvider({provide:_.Z2Z,useClass:Y9z});q={};u.addProvider((q.provide=_.yH,q.useClass=i2t,q[zv]=[_.Z2Z,_.xv(_.pl)],q));u.addProvider({provide:_.xp,useClass:sGh});q={};u.addProvider((q.provide=Bh,q.useClass=Bh,q[zv]=[_.xp,_.rv,_.QY,_.Gy],q));u.addProvider({provide:_.vy,useClass:vr});u.addProvider({provide:_.QGn,
useClass:ZSh});u.addProvider({provide:_.D5,useClass:Afz});_.w("enable_ai_companion")&&(u.addProvider({provide:_.pl,useClass:FVf}),u.addProvider({provide:_.T15,useClass:vj0}),u.addProvider({provide:H2C,useClass:RL9}),u.addProvider({provide:Mr,useClass:Mr}),u.addProvider({provide:fz,useClass:fz}),u.addProvider({provide:hb$,useValue:hAE}),u.addProvider({provide:_.Yl0,useValue:_.WnZ}),u.addProvider({provide:Ox2,useValue:r_p}));_.w("enable_ai_chat_controller")&&u.addProvider({provide:_.jd,useClass:VQn});
q={};u.addProvider((q.provide=_.yM,q.useClass=hLn,q[zv]=[_.yM],q));u.addProvider({provide:_.z_,useClass:Uat});u.addProvider({provide:A0,useClass:A0});u.addProvider({provide:kY,useClass:kY});u.addProvider({provide:bW,useClass:bW});q={};u.addProvider((q.provide=vi,q.useClass=vi,q[zv]=[_.Gy,_.QY],q));u.addProvider({provide:Tj,useClass:b2h});q={};u.addProvider((q.provide=Oe,q.useClass=Oe,q[zv]=[_.vy,Tj],q));q={};u.addProvider((q.provide=XF,q.useClass=XF,q[zv]=[_.vy],q));u.addProvider({provide:$Y,useClass:$Y});
u.addProvider({provide:Fex,useClass:dS9});_.w("web_enable_feedback_endpoint_resolver_batch_2")&&(q={},u.addProvider((q.provide=ci,q.useClass=ci,q[zv]=[wA],q)),q={},u.addProvider((q.provide=RD,q.useClass=RD,q[zv]=[Fex],q)));q={};u.addProvider((q.provide=h0,q.useClass=h0,q[zv]=[_.D5,Tj],q));q={};u.addProvider((q.provide=aD,q.useClass=aD,q[zv]=[_.D5],q));q={};u.addProvider((q.provide=YY,q.useClass=YY,q[zv]=[_.QY,_.yH],q));q={};u.addProvider((q.provide=Wi,q.useClass=Wi,q[zv]=[_.QY,_.QA],q));u.addProvider({provide:$p,
useClass:$p});q={};u.addProvider((q.provide=p_,q.useClass=p_,q[zv]=[wA],q));u.addProvider({provide:aU,useClass:aU});u.addProvider({provide:mT,useClass:mT});q={};u.addProvider((q.provide=XO,q.useClass=XO,q[zv]=[wA],q));q={};u.addProvider((q.provide=rK,q.useClass=rK,q[zv]=[_.QY,wA],q));q={};u.addProvider((q.provide=Wh,q.useClass=Wh,q[zv]=[wA],q));q={};u.addProvider((q.provide=T6,q.useClass=T6,q[zv]=[wA],q));q={};u.addProvider((q.provide=Vl,q.useClass=Vl,q[zv]=[_.yH],q));q={};u.addProvider((q.provide=
Ap,q.useClass=Ap,q[zv]=[_.QA],q));q={};u.addProvider((q.provide=dK,q.useClass=dK,q[zv]=[tp],q));q={};u.addProvider((q.provide=FO,q.useClass=FO,q[zv]=[tp],q));u.addProvider({provide:IU,useClass:IU});u.addProvider({provide:C_,useClass:C_});u.addProvider({provide:Hh,useClass:Hh});q={};u.addProvider((q.provide=Kz,q.useClass=Kz,q[zv]=[_.yH,_.Gy],q));u.addProvider({provide:ID,useClass:ID});q={};u.addProvider((q.provide=rA,q.useClass=rA,q[zv]=[_.QY,_.yH],q));u.addProvider({provide:dA,useClass:dA});q={};
u.addProvider((q.provide=vh,q.useClass=vh,q[zv]=[wA,_.QY,_.yM],q));q={};u.addProvider((q.provide=Nj,q.useClass=Nj,q[zv]=[_.QY,_.Gy],q));u.addProvider({provide:aZZ,useValue:iDJ});u.addProvider({provide:KQi,useValue:ysh});u.addProvider({provide:sL,useClass:sL});q={};u.addProvider((q.provide=Ph,q.useClass=Ph,q[zv]=[wA],q));q={};u.addProvider((q.provide=DU,q.useClass=DU,q[zv]=[_.z_,_.Gy],q));q={};u.addProvider((q.provide=Hi,q.useClass=Hi,q[zv]=[_.Gy],q));q={};u.addProvider((q.provide=Gj,q.useClass=Gj,
q[zv]=[Yb],q));u.addProvider({provide:VKa,useFactory:_.H9.getInstance});q={};u.addProvider((q.provide=Cz,q.useClass=Cz,q[zv]=[iW,VKa,_.Gy],q));u.addProvider({provide:Z_,useClass:Z_});u.addProvider({provide:D_,useClass:D_});u.addProvider({provide:J0,useClass:J0});u.addProvider({provide:_.pz,useClass:_.pz});u.addProvider({provide:OL,useClass:OL});q={};u.addProvider((q.provide=uf,q.useClass=uf,q[zv]=[Yb],q));q={};u.addProvider((q.provide=Bi,q.useClass=Bi,q[zv]=[_.Gy],q));q={};u.addProvider((q.provide=
qj,q.useClass=qj,q[zv]=[_.Gy],q));q={};u.addProvider((q.provide=QM,q.useClass=QM,q[zv]=[_.Gy],q));_.w("web_enable_prefetching_videos_on_home")&&(u.addProvider({provide:XDE,useClass:XDE}),u.addProvider({provide:er,useClass:er}));q={};u.addProvider((q.provide=Yp,q.useClass=Yp,q[zv]=[_.Gy],q));u.addProvider({provide:t0,useClass:t0});q={};u.addProvider((q.provide=RU,q.useClass=RU,q[zv]=[_.QY,_.Gy],q));q={};u.addProvider((q.provide=ed,q.useClass=ed,q[zv]=[_.Gy],q));q={};u.addProvider((q.provide=G4,q.useClass=
G4,q[zv]=[_.QY,_.Gy],q));u.addProvider({provide:Ykz,useClass:Ykz});u.addProvider({provide:hYn,useClass:hYn});u.addProvider({provide:oD,useClass:oD});q={};u.addProvider((q.provide=Sd,q.useClass=Sd,q[zv]=[Yb,_.Gy],q));u.addProvider({provide:Ue,useClass:Ue});q={};u.addProvider((q.provide=n_,q.useClass=n_,q[zv]=[Yb,_.Gy,_.QY],q));q={};u.addProvider((q.provide=kp,q.useClass=kp,q[zv]=[_.Gy],q));q={};u.addProvider((q.provide=z6,q.useClass=z6,q[zv]=[_.Gy,_.QY],q));q={};u.addProvider((q.provide=G6,q.useClass=
G6,q[zv]=[_.Gy,_.QY],q));q={};u.addProvider((q.provide=EL,q.useClass=EL,q[zv]=[_.rv],q));q={};u.addProvider((q.provide=L_,q.useClass=L_,q[zv]=[_.rv],q));q={};u.addProvider((q.provide=gK,q.useClass=gK,q[zv]=[_.rv],q));u.addProvider({provide:Mj,useClass:Mj});u.addProvider({provide:eY,useClass:eY});u.addProvider({provide:VM,useClass:VM});u.addProvider({provide:wK,useClass:wK});u.addProvider({provide:f_,useClass:f_});u.addProvider({provide:FF,useClass:FF});u.addProvider({provide:jY,useClass:jY});u.addProvider({provide:_.gz,
useClass:pg});u.addProvider({provide:Fu,useFactory:function(){return _.VC.getInstance()}});
u.addProvider({provide:yf9,useFactory:m1K});u.addProvider({provide:tp,useFactory:function(){return _.yN.getInstance()}});
u.addProvider({provide:PiH,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});q={};u.addProvider((q.provide=_.s8,q.useClass=_.s8,q[zv]=[_.rv,_.Gy,_.QA,yf9,tp,Fu,PiH,Un],q));u.addProvider({provide:_.SB,useClass:H4o});u.addProvider({provide:_.Y7E,useClass:hsZ});q={};u.addProvider((q.provide=mi,q.useClass=mi,q[zv]=[_.Y7E],q));q={};u.addProvider((q.provide=_.tRh,q.useFactory=function(J){return J.upliftCompletionResolver.promise},q[zv]=[Jfh],q));
q=_.mW("IS_SHELL_LOAD")?"aa":"eocs";var Q=_.mW("IS_SHELL_LOAD")?3:2;_.A4().parkOrScheduleJob(function(){f6t()},Q,q);
_.A4().parkOrScheduleJob(function(){_.Bk().resolve(yO).start()},2,"eocs");
_.A4().parkOrScheduleJob(function(){vGf()},2,"eocs");
_.A4().parkOrScheduleJob(function(){_.Bk().resolve(Nz).start()},2,"eocs");
_.w("kevlar_debug_data_app_registration_ks")||R3M();u.addProvider({provide:_.UE,useValue:new NtK(g.root)});u.addProvider({provide:mn,useValue:new Flh});u.addProvider({provide:_.fKE,useValue:new JB9(g.root)});u.addProvider({provide:_.qR,useValue:new juz});u.addProvider({provide:_.zL,useClass:qp});u.addProvider({provide:TBx,useClass:DR});_.w("kevlar_network_sli_killswitch")||u.addProvider({provide:kvK,useValue:AQb});u.addProvider({provide:TiL,useFactory:T8f});q={};u.addProvider((q.provide=fWK,q.useFactory=
elq,q[zv]=[_.tRh,wA,_.QO],q));q={};u.addProvider((q.provide=jGn,q.useClass=SY,q[zv]=[fWK],q));u.addProvider({provide:k$h,useClass:xiK});u.addProvider({provide:v$t,useClass:p8Z});q=[].concat(_.na(TQF));q.push(_.fe);q.push(e6x);_.w("enable_share_panel_navigation_logging_fix_on_web")&&q.push(_.d8b);u.addProvider({provide:WjS,useValue:q});u.addProvider({provide:WJ8,useClass:ykC});u.addProvider({provide:uxH,useClass:S_n});q={};u.addProvider((q.provide=aka,q.useClass=ZaC,q[zv]=[Yb],q));_.Hv.addLowPriorityJob(function(){kET()});
q={};u.addProvider((q.provide=hia,q.useFactory=function(J){return function(f){var t,e=(t=_.c(f.commandMetadata,_.S_))==null?void 0:t.url;if(!e)throw new _.Ji("No URL for PBJ Command",f);e=MFh(e,{pbj:"1"});t=VFJ(e,{})||{};t=Object.assign({},t,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.FR("STS").toString()});f=_.kB({command:JSON.stringify(f),session_token:_.FR("XSRF_TOKEN")});return J.fetch(e,{method:"POST",headers:t,body:f})}},q[zv]=[uxH],q));
u.addProvider({provide:BiC,useFactory:function(){var J={};return J.CSI=Yh3(),J.ECATCHER=h$J(),J}});
u.addProvider({provide:lki,useClass:zIE});q=[];q.push(u.resolve(v$t));Q={};Q=(Q.client_location=_.H9.getInstance(),Q.consistency=_.nDq(),Q.entities=u.resolve(P7Z),Q.response_received_commands=u.resolve(WJ8),Q.store=u.resolve(_.bZ0),Q.tokens=u.resolve(v$t),Q.service_params=u.resolve(lki),Q);if(_.w("web_shorts_prefetch_service_enabled")){var L=new eUf(u.resolve(_.xe));Q.shorts_prefetch=L}Q.adblock_detection=u.resolve(aka);_.w("web_enable_chunk_prediction")&&(u.addProvider({provide:_.$E,useClass:PXZ}),
u.addProvider({provide:hF$,useClass:cif}),Q.mss=u.resolve(hF$),_.Z1(window,"yt-navigate-start",function(J){var f;J=(f=J.detail)==null?void 0:f.endpoint;var t;if(f=(t=_.c(J==null?void 0:J.commandMetadata,_.S_))==null?void 0:t.rootVe){t=_.FR("VE_TYPE_TO_XIDS",{});var e,G;J=(G=(e=t["0"])==null?void 0:e.xids)!=null?G:[];var R,H;e=(H=(R=t[f])==null?void 0:R.xids)!=null?H:[];R=J.concat(e);if(f in t&&R.length>0){var l;(l=sYf(_.Bk().resolve(_.$E),R))==null||l()}}}));
u.addProvider({provide:_.rN,useClass:_.rN});L=u.resolve(AkK);var E=[];_.w("PremiumClientSharedConfig__enable_att_context_processor")&&(u.addProvider({provide:Oa9,useClass:Tth}),E.push(u.resolve(Oa9)));if(_.w("owl_pl_await")){var y={};u.addProvider((y.provide=dq9,y.useFactory=function(J){return new CLE(J)},y[zv]=[_.rN],y));
E.push(u.resolve(dq9))}K1X(L,u.resolve(uxH),u.resolve(WWC),Q,u.resolve(_.xe),q,E,u.resolve(jGn),u.resolve(k$h));u.addProvider({provide:_.QY,useValue:_.R9.instance});_.w("start_client_gcf")&&u.addProvider({provide:t_,useValue:rtX()});u.addProvider({provide:G9Z,useFactory:function(){return new G9Z(_.Bk().resolve(_.rN),_.yN.getInstance())}});
_.A4().parkOrScheduleJob(function(){$Qx()},1,"eocs");
q={};u.addProvider((q.provide=eLt,q.useClass=eLt,q[zv]=[_.QO,_.QY],q));u.addProvider({provide:_.nGz,useFactory:_.tu.getInstance});_.A4().parkOrScheduleJob(function(){_.Bk().resolve(eLt).refresh()},0,"eocs");
u.addProvider({provide:_.vK,useClass:mib});_.w("kevlar_signal_collection_killswitch")||(q={},u.addProvider((q.provide=oFn,q.useClass=oFn,q[zv]=[iW,Jp],q)),_.A4().parkOrScheduleJob(function(){_.Bk().resolve(oFn).record()},1,"eocs"));
_.w("web_debug_handler_registration_killswitch")||_.A4().parkOrScheduleJob(function(){GdS("DOWNLOAD_PES",FIk);_.w("offline_client_state_export_ks")||GdS("OFFLINE_CLIENT_STATE",C_k)},0,"eocs");
_.w("kevlar_prevent_polymer_dynamic_font_load")&&_.A4().parkOrScheduleJob(function(){var J=[_.A1(vQH),_.A1(Dut)];J=_.N(J);for(var f=J.next();!f.done;f=J.next()){f=f.value;var t=document.createElement("link");_.tB(t,f,"stylesheet");document.head.appendChild(t)}},1,"eocs");
q=g.injector.resolve(_.QY);_.YPK.instance=new _.YPK(q);sjJ(Fst(new hmz(q)));q={};g.injector.addProvider((q.provide=Kw,q.useFactory=function(J){(J=J==null?void 0:J.getCurrentPage())?J=J.visibilityObserver:(YzE||(YzE=gDh()),J=YzE);return J},q[zv]=[_.xv(_.ba)],q.skipCache=!0,q));
u.addProvider({provide:_.RO,useClass:ZR});u.addProvider({provide:uq,useClass:mDW});g.injector.addProvider({provide:IU0,useValue:P8Z});u.addProvider({provide:eba,useValue:ABh});u.addProvider({provide:Zuo,useValue:cUM});u.addProvider({provide:_.gy,useValue:an3});g=u.addProvider;UQE||(UQE=new oGZ);g.call(u,{provide:_.Ju,useValue:UQE});u.addProvider({provide:_.cY,useValue:_.FR("HTML_DIR")==="rtl"?"rtl":"ltr"});u.addProvider({provide:MgK,useClass:lin});u.addProvider({provide:_.B$,useClass:j4n});_.Bk().addProvider({provide:esp,
useValue:_.w("enable_web_delhi_icons")?Fnn.concat(af9):d_K.concat(m_h)});u.addProvider({provide:_.AMx,useClass:_.AMx});u.addProvider({provide:_.NuH,useValue:new PSL});u.addProvider({provide:PO9,useClass:QWK});u.addProvider({provide:ch,useClass:ch});u.addProvider({provide:ZU,useClass:ZU});g={};u.addProvider((g.provide=xY,g.useClass=xY,g[zv]=[_.QY,_.yH],g));u.addProvider({provide:K_,useClass:K_});u.addProvider({provide:ceh,useClass:KVp});u.addProvider({provide:bf,useClass:bf});u.addProvider({provide:m1X,
useValue:GUH});u.addProvider({provide:_.mK,useClass:Lef});_.w("enable_payments_purchase_manager")&&u.addProvider({provide:zmC,useClass:Ksh});u.addProvider({provide:bOH,useFactory:function(){return function(J){return _.yi9(J)}}});
u.addProvider({provide:_.E$K,useClass:P09});g={};u.addProvider((g.provide=hp,g.useClass=hp,g[zv]=[_.E$K],g));u.addProvider({provide:lf,useClass:lf});u.addProvider({provide:MXz,useValue:ksE});u.addProvider({provide:gWo,useValue:_.Niz});u.addProvider({provide:auK,useClass:O29});u.addProvider({provide:uRC,useValue:pvE});g={};u.addProvider((g.provide=q_L,g.useClass=Q4C,g[zv]=[uRC],g));g={};u.addProvider((g.provide=_.LP,g.useClass=fvh,g[zv]=[q_L],g));g={};u.addProvider((g.provide=_.fg,g.useClass=Xkh,g[zv]=
[_.Ja,_.zL],g));if(_.w("web_explore_hub_on_hover")||_.w("web_client_explore_hub_on_hover"))g={},u.addProvider((g.provide=lW,g.useClass=lW,g[zv]=[_.QY,Fu],g));if(_.w("web_enable_renderer_logger")){var v=new vbT;q1K(function(){v.abort()});
u.addProvider({provide:zrf,useValue:new gGC(v.signal)})}u.addProvider({provide:Cy5,useValue:Y8u});u.addProvider({provide:Z4h,useClass:GQh});_.w("web_use_flow_state_manager")&&(u.addProvider({provide:_.uW,useClass:Nj9}),g={},u.addProvider((g.provide=qr,g.useClass=qr,g[zv]=[_.uW],g)),g={},u.addProvider((g.provide=Ql,g.useClass=Ql,g[zv]=[_.Ja,_.uW],g)),g={},u.addProvider((g.provide=Lz,g.useClass=Lz,g[zv]=[_.Ja,_.uW,_.Gy],g)),g={},u.addProvider((g.provide=Ee,g.useClass=Ee,g[zv]=[_.QY,_.Gy],g)),g={},u.addProvider((g.provide=
Pi,g.useClass=Pi,g[zv]=[_.uW,_.Gy],g)))}},OwC);var x_H={},B9h=(x_H.initialized={priority:10,callback:function(){if(!nvL){YEq();KNZ("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.qu(_.uH(KNZ,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.w("log_heartbeat_with_lifecycles")){var g={};C1.instance||(C1.instance=new C1);C1.instance.install((g.document_visible={callback:xgS,priority:10},g.document_hidden={callback:xgS,priority:10},g))}else _.xO(document,"visibilitychange",xgS);nvL=!0}(g=_.j_())&&g!=="UNDEFINED_CSN"&&ofJ(g)}},x_H);var zAL={},n1n=(zAL.initialized={callback:function(g){var u=_.Yq(232091),q=g.injector.resolve(_.QA);_.xl(q,u);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?HZW()&&_.zZ(q,u):(g=g.injector.resolve(bOH)("refresh_detector"))&&(g.get("first_tab_load")?_.zZ(q,u):g.set("first_tab_load","1"))}},zAL);var kpE={},SzK=(kpE.initialized={priority:0,callback:function(){var g=new u7o,u="other";_.nT?u="chrome":_.zK?u="firefox":_.I0?u="safari":Ok&&(u="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(q){g.increment(_.vW(),q,u)}).catch(function(){g.increment(_.vW(),!1,u)}):g.increment(_.vW(),!1,u)}},kpE);var o1p={},U_x=(o1p.rendering={priority:8,callback:AT5},o1p);var gtp={},uzx=(gtp.rendering={priority:10,callback:Ybi},gtp.rendered={callback:Tq5},gtp),qYz={},QKx=(qYz.rendering={callback:Ybi},qYz.rendered={callback:Tq5},qYz);var L6K=!1,Etp={},PPb=(Etp.initialized={priority:10,callback:function(){L6K||(sru({didPatch:function(g){g.el&&QyK(g.el,g.props)},
didUnmount:function(g){u$q(g.el)}}),L6K=!0)}},Etp);var NUf=/^\/shorts\/?$/;_.di("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:{}}}}}}});_.w("kevlar_use_common_module_manager_ks")?(_.XWq(new OZ$),AZS()):KJZ();
(function(){var g=document.querySelector("ytd-app");if(!g)throw Error("bk");g=new Mz({root:g,injector:_.Bk()});g.install(B9h);var u={};g.install((u.initialized={priority:10,callback:Tfm},u));_.w("wp_lat_b")&&(u={},g.install((u.initialized={priority:10,callback:function(){XmZ()}},u)));
u={};g.install((u.rendered={priority:0,callback:X4S},u));u={};g.install((u.rendered={priority:0,callback:function(){_.Hv.addLowPriorityJob(function(){_.Iih>1&&(CBJ(),ayS())},4E4)}},u));
g.install(XWp);g.install(n1n);g.install(PPb);JSq();g.install(nQZ);g.install(b0x);g.install(aQz);g.install(KRH);g.install(kQZ);g.install(Bup);g.install(Kn9);g.install(F9f);g.install(SzK);if(!_.mW("IS_SHELL_LOAD")||_.w("kevlar_fetch_initial_data_promise_client")||_.w("sw_nav_preload_pbj")){var q=_.YB(window.location.href);u=q&&q==="/watch";q=q&&q.match(NUf);u?g.install(QKx):q?g.install(U_x):g.install(uzx)}else g.install(IQb);g.install(W9n);_.w("web_enable_prefetching_videos_on_home")&&g.install(Uut);
_.w("start_client_gcf")&&g.install(xqh);g.install(WRx);(new qr0).increment("INSTALLED");g.install(Sk9);g.install(AiC);g.transition("initialized");iCq();GOM()})();
_.O3=[[["bXFraW5kI2Fkczg2dXQ5cDA=","YWx1ZSNpMnUxOTVrbGVhNml2"],"em54bHM3Z243ZEFEX1BMQUNFTUVOVF9LSU5EX01JTExJU0VDT05EUyNlOQ=="]];_.YZ=["bG9iYWxDYWxsYmFja3MjaXAyZWd3Y3RlNXdn","dGVjdGVkI3VlNG9oZTJkcHh3d29uQWJub3JtYWxpdHlEZQ==","Y3pzbHBna2NucW5vbkFkU2tpcCNp","cmVzcG9uc2UjYnlqa3Zha3EwNW1ocmF3X3BsYXllcl8=","NDlyemE4dnN6cGxheWVyQWRzI2RlZg=="];_.bo="bG9iYWxDYWxsYmFja3MjaXAyZWd3Y3RlNXdn dGVjdGVkI3VlNG9oZTJkcHh3d29uQWJub3JtYWxpdHlEZQ== Y3pzbHBna2NucW5vbkFkU2tpcCNp cmVzcG9uc2UjYnlqa3Zha3EwNW1ocmF3X3BsYXllcl8= a2htandlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNqOGd6OW13Yw== dXB4YnBoNzQwendhYl9zYV9lZiNi NDlyemE4dnN6cGxheWVyQWRzI2RlZg==".split(" ");

_._ModuleManager_initialize=function(g,u){if(!_.t5){if(!_.ei)return;_.XWq(_.ei())}_.t5.setAllModuleInfoString(g,u)};
_._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{
_.ZfZ=function(g,u){if(_.w("web_enable_chat_autoscroll_to_user_turn")&&g&&u)return g-4+"px"};
}catch(e){_._DumpException(e)}
try{
var fFE,t7z;_.Iq=function(g){var u=g.clientMessageId;var q=g.playerOffsetMs;var Q=g.pageContext;g=g.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:u},!!q&&{playerOffsetMs:q},!!Q&&{pageContext:Q},!!g&&{userInputText:g})}};
_.jKb=function(g,u,q){u=u===void 0?5:u;if(u!==0){var Q=typeof g==="function"?g():document.querySelector(g);Q?(q==null?0:q.enableSmartFocus)?_.mum(Q):Q.focus():setTimeout(function(){_.jKb(g,u-1,q)},500)}};
fFE=function(g,u){return _.BC(g.entities,"inlineExpansionEntity",u)};
_.M79=function(g){return{continuationCommand:{token:g,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
t7z=function(g,u){if(u)return"ytCardViewModelCardSelected";switch(g){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
_.eSp=function(g,u){return _.BC(g.entities,"youchatPendingResponseEntity",u)};
_.G3H=function(g){return function(u){_.bU(_.u2("youchatPendingResponseEntity",g,{entityKey:g,isPendingResponse:u}))}};_.$wp=_.r(function(g){var u=g.data;var q=function(){var Q;return _.pn((Q=u())==null?void 0:Q.rendererContext)};
g={};return _.p("content-list-item-view-model",{el:_.lF(_.J7(function(){return u().rendererContext})),
class:_.Ty("ytContentListItemViewModelHost",(g.ytContentListItemViewModelTappable=q,g)),role:function(){return q()?"listitem":void 0},
tabindex:function(){return q()?0:void 0},
"on:keydown":_.sI()},_.p("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.p("div",{class:"ytContentListItemViewModelImageContainer"},_.p(_.M,{cond:function(){return u().image},
then:function(Q){return _.p(_.IT,{data:Q,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.p(_.Up,{data:function(){var Q;
return(Q=u())==null?void 0:Q.avatar}},{avatarViewModel:_.jv})),_.p("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.p("div",{class:_.Ty("ytContentListItemViewModelTitle",function(){a:{switch(u().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var Q="ytContentListItemViewModelProminentTitle";
break a}Q=void 0}return Q})},_.p(_.c2,{text:function(){return u().title}})),_.p("div",{class:"ytContentListItemViewModelMetadata"},_.p(_.Up,{data:function(){return u().metadata}},{contentMetadataViewModel:function(Q){return _.p(_.Om,{data:Q.data,
layout:1})}})))),_.p("div",{class:"ytContentListItemViewModelActionButton"},_.p(_.Up,{data:function(){var Q;
return(Q=u())==null?void 0:Q.actionButton}},{buttonViewModel:_.TT,
toggleButtonViewModel:_.E6})))},"wh");var RSH=_.r(function(g){var u=g.data,q=function(){var L;return(L=u())==null?void 0:L.description},Q=function(){var L;
return(L=u())==null?void 0:L.title};
return _.p("ytfc-youth-basic-section-header-view-model",{class:_.Ty("ytfcYouthBasicSectionHeaderViewModelHost",g.className)},_.p("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.p(_.Up,{data:function(){var L;return(L=u())==null?void 0:L.avatar}},{avatarViewModel:_.jv}),_.p(_.M,{cond:function(){var L;
return _.Rs((L=u())==null?void 0:L.themedImage)},
then:function(L){return _.p(_.IT,{data:L,alt:function(){var E,y;return(y=(E=Q())==null?void 0:E.content)!=null?y:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.p("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.p(_.M,{cond:Q,
then:function(){return _.p(_.c2,{text:Q,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.p("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.p(_.Up,{data:function(){var L;
return(L=u())==null?void 0:L.bottomBadge}},{badgeViewModel:function(L){return _.p("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.p(_.bY,{data:L.data}))}}),_.p(_.M,{cond:q,
then:function(){return _.p(_.c2,{text:q,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"xh");var woC=_.r(function(g){var u=g.data;return _.p("ytfc-youth-section-body-view-model",{class:_.Ty("ytfcYouthSectionBodyViewModelHost",g.className)},_.p(_.Up,{data:function(){var q;return(q=u())==null?void 0:q.topContent}},{avatarStackViewModel:function(q){return _.p(_.MU,{data:q.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.p(_.c2,{text:function(){var q;
return(q=u())==null?void 0:q.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"yh");var cjx=_.r(function(g){var u=_.N(_.jR(!1,void 0,"SrK51e")),q=u.next().value,Q=u.next().value,L=function(){return g.data().inlineExpansionEntityKey},E=_.kq(fFE,L),y=function(){if(g.isSelected!==void 0)return g.isSelected();
if(L()){var J;return(J=E())==null?void 0:J.expanded}return q()};
u={};var v={};return _.p("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.YH(function(){g.isSelected!==void 0||L()||Q(!q())})},_.p("div",{class:"ytInlineExpanderViewModelHeader"},_.p(_.Up,{data:function(){return g.data().headerContent}},{youthBasicSectionHeaderViewModel:RSH}),_.p("div",{class:_.Ty("ytInlineExpanderViewModelButton",(u.ytInlineExpanderViewModelButtonExpanded=y,u))},_.p(_.W2,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:y(),accessibilityLabel:y()?_.Ug("SHOW_LESS",void 0,"Show Less"):_.Ug("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.p("div",{class:_.Ty("ytInlineExpanderViewModelBody",(v.ytInlineExpanderViewModelBodyExpanded=y,v)),"aria-hidden":function(){return!y()}},_.p("div",{class:"ytInlineExpanderViewModelBodyContent"},_.p(_.Up,{data:function(){return g.data().bodyContent}},{youthSectionBodyViewModel:woC}))))},"zh");var Hfx=new _.Fv("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.AjK=_.r(function(g){var u=function(){return g.data().background},q=function(){return g.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},Q=function(){return g.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},L=_.Bk().resolve(_.xv(Hfx)),E={};
return _.p("yt-card-view-model",{el:_.lF(_.J7(function(){return g.data().rendererContext})),
class:_.Ty("ytCardViewModelHost",g.className,(E.ytCardViewModelClickable=function(){return _.D7(g.data().rendererContext)},E))},_.p(_.KG,{contentId:function(){return g.data().contentId}},function(){var y={};
return _.p("div",{class:_.Ty("ytCardViewModelCardViewModelInner",function(){var v;return t7z(g.data().cardStyle,(v=g.isSelected)==null?void 0:v.call(g))},function(){if(g.isSelected===void 0){var v;
a:{switch((v=g.data().cardState)==null?void 0:v.selectionState){case "CARD_SELECTION_STATE_SELECTED":v="ytCardViewModelSelected";break a}v=void 0}return v}})},_.p(_.Up,{data:u},{cinematicContainerViewModel:function(v){return _.p(_.iZx,{data:v.data})}}),_.p("div",{class:"ytCardViewModelContentWrapper"},_.p(_.M,{cond:function(){return!q()},
then:function(){var v={},J={};return _.p("div",{class:"ytCardViewModelTopContentContainer"},_.p("div",{class:_.Ty("ytCardViewModelTopContent",(v.ytCardViewModelInnerPadding=function(){return!g.data().disableTopContentPadding&&g.data().topContent},v))},_.p(_.Up,{data:function(){return g.data().topContent}},{contentListItemViewModel:function(f){return _.p(_.$wp,{data:f.data})},
basicContentViewModel:_.cQ,linearLayoutViewModel:_.Zd})),_.p("div",{class:_.Ty("ytCardViewModelInlineTrailingAction",(J.ytCardViewModelInlineCenterTrailingAction=Q,J.ytCardViewModelInlineTrailingActionMargin=function(){return g.data().trailingAction},J))},_.p(_.Up,{data:function(){return g.data().trailingAction}},{buttonViewModel:function(f){return _.p(_.TT,{data:f.data})}})))}}),_.p("div",{class:_.Ty((y.ytCardViewModelInnerPadding=function(){return!g.data().disableBodyContentPadding&&g.data().bodyContent},
y))},_.p(_.Up,{data:function(){return g.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.T9Z,
contentListItemViewModel:_.$wp,descriptionPreviewViewModel:_.ov,inlineExpanderViewModel:function(v){return _.p(cjx,{data:v.data,isSelected:g.isSelected})},
linearLayoutViewModel:_.Zd,listItemViewModel:_.A8},L&&{contentSectionViewModel:L})))),_.p(_.M,{cond:function(){return q()},
then:function(){return _.p("div",{class:"ytCardViewModelOverlayTrailingAction"},_.p(_.Up,{data:function(){return g.data().trailingAction}},{buttonViewModel:function(v){return _.p(_.TT,{data:v.data})}}))}}))}))},"Ah");
}catch(e){_._DumpException(e)}
try{
var dw9;_.iK=function(g){var u=document.createElement("link");_.tB(u,g,"stylesheet");document.head.appendChild(u)};
_.Cg=function(g,u){var q,Q;return _.D(function(L){q=document.createElement("div");q.id=g.id;g.className&&(q.className=g.className);Q=g.element;if(!Q)throw Error("ck");if(g.location==="prepend")Q.prepend(q);else if(g.location==="appendChild")Q.appendChild(q);else if(g.location==="after")Q.after(q);else throw Error("dk");return L.return(_.ZY(q,u,"Fh"))})};
_.bK=function(g){var u;return _.D(function(q){(u=document.getElementById(g))&&u.remove();_.Wx(q)})};
_.dh=function(g,u){var q=document.querySelector(g);q?u(q):setTimeout(function(){_.dh(g,u)},1E3)};
_.F6t=function(g,u,q){var Q;_.D(function(L){if(L.nextAddress==1)return(Q=document.getElementById(g))?L.jumpTo(2):L.yield(dw9(g,u,q),2);if(Q=document.getElementById(g))Q.style.display="block";_.Wx(L)})};
dw9=function(g,u,q){return _.D(function(Q){return Q.return(new Promise(function(L){_.dh("div #panels",function(E){_.Cg({element:E,location:"appendChild",id:g,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+q},u);L()})}))})};_.FX=_.r(function(g){var u=g.text;var q=g.onClick;var Q=g.color;var L=g.backgroundColor;var E=g.buttonSize;var y=g.disabled;var v=g.iconName;var J=g.iconSize;var f=g.className;var t=g.iconClassName;g=g.ariaLabel;var e=_.YH(function(R){q(R)}),G={};
return _.p("button",{class:_.Ty("ytpStandardButtonsHost",(G.ytpStandardButtonsLarge=function(){return(E==null?void 0:E())==="large"},G),f),
"on:click":e,style:_.xH({color:Q,"background-color":L}),disabled:y,"aria-label":g},_.p(_.M,{cond:v,then:function(){return _.p(_.B1,{className:_.Ty("ytpStandardButtonsIconContainer",t),icon:v,size:J})}}),u)},"Eh");_.mwC=_.r(function(g){var u,q,Q={};return _.p("div",{class:_.Ty("ytprototypesEngagementPanelComponentHost",(Q.ytprototypesEngagementPanelComponentHostMweb=g.isMweb,Q),g.className),id:g.id},_.p("div",{class:_.Ty("ytprototypesEngagementPanelComponentEngagementPanelHeader",g.headerClassName)},_.p("div",null,g.header()),_.p("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.p("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(u=g.HeaderButton)==null?void 0:u.call(g)),
_.p(_.FX,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var L;(L=g.onHide)==null||L.call(g);var E;if((E=g.preventDefault)==null||!E.call(g))if(L=g.id(),L=document.getElementById(L))L.style.display="none"}}))),_.p("div",{class:_.Ty("ytprototypesEngagementPanelComponentEngagementPanelContent",g.contentClassName),
style:function(){var L,E;return"height: "+(((L=g.height)==null?0:L.call(g))||((E=g.isMweb)==null?0:E.call(g))?"100%":"800px")+";"}},g.content()),_.p("div",null,(q=g.Footer)==null?void 0:q.call(g)))},"Gh");
}catch(e){_._DumpException(e)}
try{
var CPZ=function(g){if(g.backgroundStyle)switch(g.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return g.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};_.bfx=_.r(function(g){var u=function(){return g.data().choiceSelectedText};
return _.p("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.xH({"min-height":function(){var q,Q;return _.ZfZ((q=g.containerHeight)==null?void 0:q.call(g),(Q=g.isLastItem)==null?void 0:Q.call(g))}}),
"data-target-id":function(){var q;return(q=g.data().itemTargetId)!=null?q:""}},_.p(_.M,{cond:u,
then:function(){return _.p("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.p(_.c2,{text:u}))}}),_.p("div",{class:_.Ty("ytChatUserTurnViewModelUserMessage",function(){return CPZ(g.data())})},function(){return g.data().text}))},"Dh");
}catch(e){_._DumpException(e)}
try{
var IFZ=function(g){g=_.c(g,lFp);if(g==null?0:g.trustedAnimationUrl){var u;return(u=_.A6(g.trustedAnimationUrl))==null?void 0:u.toString()}return g==null?void 0:g.animationUrl},lFp=new _.d2("lottieAnimationViewModel");_.ifH=_.r(function(g){var u=function(){var E;return((E=_.Bk().resolve(_.xv(_.gy)))==null?0:E())&&g.data().darkThemeAnimation?IFZ(g.data().darkThemeAnimation):g.data().animation?IFZ(g.data().animation):g.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},q=_.xq(),Q=_.Bk().resolve(_.cY);
_.lL(function(){requestAnimationFrame(function(){var E;(E=q.lottieEl)==null||E.addEventListener("DOMLoaded",function(){var y;(y=g.onLottieLoaded)==null||y.call(g)})})});
var L={};return _.p("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){return g.data().targetId||""},
"aria-label":function(){return g.data().loadingAnimationA11yLabel||""},
role:function(){return g.data().loadingAnimationA11yLabel?"progressbar":void 0},
style:_.xH({"min-height":function(){var E,y;return _.ZfZ((E=g.containerHeight)==null?void 0:E.call(g),(y=g.isLastItem)==null?void 0:y.call(g))}})},_.p(_.B2,{"aria-hidden":"true",
className:_.Ty((L.ytChatLoadingViewModelRtl=Q==="rtl",L)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:u()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||u()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:u()}}},
animationRef:q}))},"Ch");
}catch(e){_._DumpException(e)}
try{
var aFh,Xoh,rjp,TUf,hSb;aFh=function(g){return String.raw.apply(String,[{raw:g}].concat(_.na(_.UT.apply(1,arguments).map(function(u){return u instanceof Array?u.join(""):u}))))};
Xoh=function(g){var u=_.UT.apply(1,arguments),q=u.length;if(!Array.isArray(g)||!Array.isArray(g.raw)||g.length!==g.raw.length||!_.q72&&g===g.raw||!(_.q72&&!_.QWn||_.Ts(g))||q+1!==g.length)throw new TypeError("aa");return new V7z(Object.freeze({strings:Object.freeze(g),args:Object.freeze(u)}))};
rjp=function(){return _.UT.apply(0,arguments).flat().filter(function(g){return g}).join(";")};
TUf=function(){return Xoh(W69,rjp.apply(null,_.na(_.UT.apply(0,arguments))))};
hSb=function(g){g==null||g.addEventListener("DOMLoaded",function(){g.goToAndPlay(g.totalFrames-48,!0)})};
_.kG=function(g){this.__isSoyCss=!0;this.css=aFh.apply(null,[g.strings].concat(_.na(g.args)))};
_.kG.prototype.toString=function(){return this.css};
var V7z=function(){_.kG.apply(this,arguments)};
_.A(V7z,_.kG);var W69=_.CT(["",""]);var YYC=_.r(function(g){var u=void 0,q=function(){return g.data()},Q=function(){return!!_.sf(_.Pb(q())).optionColor},L=_.N(_.jR(-1,void 0,"m6Iyqc")),E=L.next().value,y=L.next().value,v=function(G){return E()===G},J=function(G){return q().correctAnswerIndex===G},f=function(){return E()!==-1};
L=_.N(_.jR("",void 0,"jvMkLd"));var t=L.next().value,e=L.next().value;return _.p("yoututor-quiz-view-model",{class:_.Ty("learningQuizComponentHost","learningYoututorQuizHost",g.className),style:_.xH({background:function(){return _.sf(_.Pb(q())).backgroundColor}})},_.p("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},t),_.p("div",{class:"learningQuizComponentQuizContainer"},_.p("div",{class:"learningQuizComponentQuiz"},_.p("div",{class:"learningQuizComponentQuizContent"},_.p(_.M,{cond:function(){return!!q().aiGeneratedQuizLabel},
then:function(){return _.p("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.p(_.c2,{text:function(){return q().aiGeneratedQuizLabel}}))}}),_.p("div",{class:"learningQuizComponentQuizHeader"},_.p("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.p("div",{class:"learningYoututorQuizText",
style:_.xH({color:function(){return _.sf(_.Pb(q())).primaryTextColor}})},_.p(_.c2,{text:function(){return q().questionHeaderText}}))))),_.p("div",{role:"group",
class:_.Ty("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.p(_.R4,{each:function(){return q().optionsData||[]}},function(G,R){var H={};
return _.p("button",{class:_.Ty("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(H.learningQuizComponentQuizHover=function(){return!f()},H.learningQuizComponentQuizOptionWithCustomColor=Q,H.learningYoututorQuizOptionSelectedCorrectOutline=function(){return f()&&J(R())},H.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return E()!==q().correctAnswerIndex&&v(R())},H.learningQuizComponentQuizIncorrectShake=function(){return E()!==
q().correctAnswerIndex&&v(R())},H)),
"on:click":_.YH(function(){_.$q(_.gL(),{data:G});if(f())return!1;y(R());e(J(R())?q().correctAnswerAriaLabel||"":q().incorrectAnswerAriaLabel||"");return!1}),
style:_.xH({background:"transparent"}),"aria-description":function(){return f()?J(R())?q().correctAnswerAriaLabel:q().incorrectAnswerAriaLabel:""},
"aria-disabled":f,el:_.lF(function(l){_.y5(271905,l,u,function(d){u=d})}),
"client-ve-type":271905},_.p("div",{class:"learningQuizComponentQuizOptionContainer"},_.p(_.c2,{text:G.optionText}),_.p(_.M,{cond:function(){var l=R();return f()&&(v(l)||J(l))},
then:function(){var l={};return _.p(_.B1,{className:_.Ty("learningYoututorQuizOptionIcon",(l.learningQuizComponentQuizPulse=function(){return E()===q().correctAnswerIndex&&J(R())},l)),
size:24,icon:function(){return J(R())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.p(_.M,{cond:f,
then:function(){return _.p("div",{class:"learningYoututorQuizExplanationContainer"},_.p("div",{class:"learningYoututorQuizExplanationText"},_.p(_.c2,{text:function(){return q().explanationHeaderText}})),_.p(_.c2,{text:function(){return q().optionsData[E()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Hh");
YYC.idomCompat=!0;var Of9=_.r(function(g){var u=g.thumbsUp,q=g.thumbsDown,Q=g.rightAlignThumbs;g=_.N(_.jR(!1,void 0,"OxPsH"));var L=g.next().value,E=g.next().value;g=_.N(_.jR(!1,void 0,"V5vWne"));var y=g.next().value,v=g.next().value;g={};return _.p("div",{class:_.Ty("ytwThumbsUpDownThumbs",(g.ytwThumbsUpDownRightAlign=function(){return Q==null?void 0:Q()},g))},_.p(_.E6,{data:u,
onToggle:function(J){E(J);y()&&v(!1)},
buttonShapeOverrides:function(){return{toggled:L()}}}),_.p(_.E6,{data:q,
onToggle:function(J){v(J);L()&&E(!1)},
buttonShapeOverrides:function(){return{toggled:y()}}}))},"Ih");
Of9.idomCompat=!0;var xwL=_.r(function(g){var u=function(){return g.data().pendingStateEntityKey||""},q=_.kq(_.eSp,u),Q=function(){var v;
if(!(v=g.disabled())){var J;v=!((J=q())==null||!J.isPendingResponse)}return v},L=_.N(_.jR(TUf(""),void 0,"Q6q6y")),E=L.next().value,y=L.next().value;
_.lL(function(){requestAnimationFrame(function(){var v=g.data().onShowAnimationMs||0;v=v>0?TUf("--chip-animation-duration: "+v+"ms;"):TUf("");y(v)})});
return _.p("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:E},_.p(_.R4,{each:function(){return g.data().chipData||[]},
keyBy:"REFERENCE"},function(v){return _.p(K6t,{data:v,disabled:Q,pendingStateKey:u,onError:g.onError})}))},"Kh"),K6t=_.r(function(g){var u=_.AM("button"),q=_.N(_.jR(!0,void 0,"baSFEf")),Q=q.next().value,L=q.next().value,E=function(){return g.data().text.content},y=function(){return g.data().transparentWhenLoading},v=_.Sy(_.wy.currentPageSubTypeSelector),J=function(){var t;
return(t=_.Bk().resolve(_.xv(_.jd)))==null?void 0:_.C7K(t,v())},f=_.YH(function(t){var e,G,R,H,l,d,F,V;
return _.D(function(z){switch(z.nextAddress){case 1:t.stopPropagation();if(g.disabled())return z.return();G=String(Math.floor(((e=_.Ke())==null?void 0:e.getCurrentTime())||0)*1E3);R="youchat-"+Date.now();H=function(){_.fr(g.data().onClick||{});var O=_.M79(g.data().continuation),W=_.Iq({clientMessageId:R,playerOffsetMs:G,pageContext:J()});return new Promise(function(x,k){_.fr(O,{form:{formData:W},commandController:{onSuccess:function(LZ,sb){x(sb)},
onServerError:function(LZ,sb){k(sb.error)}}})})};
l=_.G3H(g.pendingStateKey());l(!0);_.jKb("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");L(!1);_.b8(z,2);return z.yield(H(),4);case 4:_.Xx(z,3);break;case 2:d=_.rt(z),(V=(F=g).onError)==null||V.call(F,d);case 3:l(!1),_.Wx(z)}})});
return _.p(_.M,{cond:Q,then:function(){return _.p("div",{class:"ytwYouChatChipsDataChipWrapper"},_.p("button",{el:u,class:"ytwYouChatChipsDataChip","data-disabled":g.disabled,"data-transparent-loading":y,"on:click":f,tabindex:0},E))}})},"Lh");var BUC=_.r(function(g){var u=g.data;var q=g.initiallyExpanded;var Q=function(){var f;return(f=u().conversationResourceData)==null?void 0:f.learningGuideData};
g=_.N(_.mX(function(){var f;return(f=q==null?void 0:q())!=null?f:!1}));
var L=g.next().value,E=g.next().value,y=function(){var f,t=_.c((f=Q())==null?void 0:f.expandButton,_.Rn);t&&_.$q(_.gL(),{data:t});E(!0)},v=_.G9(function(){var f,t;
return(t=(f=Q())==null?void 0:f.sections)!=null?t:[]},void 0,"V7sYqc"),J=_.G9(function(){return v().length>4},void 0,"GFFPnd");
g=_.G9(function(){var f;return!L()&&J()&&(f=Q())!=null&&f.expandButton?v().slice(0,4):v()},void 0,"Rbi7Ke");
return _.p("yt-conversation-resource-view-model",{class:_.Ty("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.p(_.Up,{data:g},{expandableMetadataViewModel:_.Niz}),_.p(_.M,{cond:function(){return J()&&!L()},
then:function(){return _.p("div",{id:"showMoreButton"},_.p(_.Up,{data:function(){var f;return(f=Q())==null?void 0:f.expandButton}},{buttonViewModel:function(f){return _.p(_.TT,{data:f.data,
onClick:y})}}))}}))},"Mh");_.zSL=_.r(function(g){var u=_.w("web_enable_youchat_ux_changes"),q=function(){var W,x;return((W=g.data().text)==null?void 0:W.content)||((x=g.data().textContent)==null?void 0:x.content)||""},Q=function(){var W,x;
return(W=g.data().webData)==null?void 0:(x=W.textResult)==null?void 0:x.content},L=_.Bk().resolve(_.cY),E=_.xq(),y=function(){return g.data().chatResponseStyle},v=function(){return!g.data().transparentBackground},J=function(){return g.data().rightAlignThumbs},f=function(){return g.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||g.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"||!!g.data().icon},
t=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:f()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:g.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},e=function(){var W,x;
return g.data().webData||((W=g.data().text)==null?void 0:W.content)||g.data().videoResultsData||g.data().conversationResourceViewModel||g.data().quiz||g.data().yoututorQuiz||g.data().richContent||g.data().content||((x=g.data().textContent)==null?void 0:x.content)},G=function(){return!!g.data().sectionHeader||e()},R=function(){return g.data().hideIcon||y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||y()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:G()},H=function(){var W;
return(W=g.data().videoResultsData)==null?void 0:W.videoShelf},l=function(){var W;
return(W=g.data().webData)==null?void 0:W.sourcesShelf},d=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:g.data().thumbsDownViewModel&&g.data().thumbsUpViewModel},F=function(){return _.c(g.data().thumbsUpViewModel,_.cF)},V=function(){return _.c(g.data().thumbsDownViewModel,_.cF)},z=function(){return f()};
_.lL(function(){requestAnimationFrame(function(){var W;(W=g.shouldAnimateIcon)!=null&&W.call(g)&&hSb(E.lottieEl)})});
var O={};return _.p("you-chat-item-view-model",{class:_.Ty("ytwYouChatItemViewModelYouChatItemViewModel",(O.ytwYouChatItemViewModelColumnLayout=z,O.ytwYouChatItemViewModelYouChatItemViewModelNoZIndex=u,O)),style:_.xH({"min-height":function(){var W,x;return _.ZfZ((W=g.containerHeight)==null?void 0:W.call(g),(x=g.isLastItem)==null?void 0:x.call(g))}}),
"data-target-id":function(){return g.data().id||""}},_.p(_.M,{cond:function(){return g.data().removeIcon||f()&&!R()?!1:G()},
then:function(){return _.p("div",{"aria-hidden":"true"},_.p(_.M,{cond:function(){return g.data().icon},
then:function(W){var x={};return _.p(_.IT,{data:W,className:_.Ty("ytwYouChatItemViewModelIcon",(x.ytwYouChatItemViewModelIconVertical=z,x)),alt:""})},
else:function(){var W={};return _.p(_.B2,{className:_.Ty("ytwYouChatItemViewModelIcon",(W.ytwYouChatItemViewModelRtl=L==="rtl",W.ytwYouChatItemViewModelHidden=function(){return!R()},W)),
animationName:"YOUCHAT_ICON",data:t,animationRef:E})}}))}}),_.p(_.M,{cond:G,
then:function(){var W={};return _.p("div",{class:_.Ty("ytwYouChatItemViewModelHost",(W.ytwYouChatItemViewModelHostNoPadding=function(){return!!g.data().sectionHeader&&!e()},W.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},W.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},W.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
W.ytwYouChatItemViewModelGradientBackground=v,W.ytwYouChatItemViewModelHostAlignStart=function(){return!f()},W.ytwYouChatItemViewModelHostDefaultFlex=function(){return!f()},W)),
role:"alert"},_.p(_.M,{cond:q,then:function(x){return _.p(_.CX,{text:x,wrapCodeBlocks:!0})}}),_.p(_.Up,{data:function(){return g.data().sectionHeader}},{sectionHeaderViewModel:function(x){var k={};
return _.p(_.US,{data:x.data,className:_.Ty("ytwYouChatItemViewModelSectionHeader",(k.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!g.data().sectionHeader&&!e()},k)),
forceSmallLayout:!0})}}),_.p(_.M,{cond:Q,
then:function(x){return _.p(_.CX,{text:x,wrapCodeBlocks:!0})}}),_.p(_.M,{cond:H,
then:function(){return _.p("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.p(_.Up,{data:function(){var x;return(x=g.data().videoResultsData)==null?void 0:x.videoShelf}},{horizontalShelfViewModel:function(x){return _.p(_.IS,{data:x.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.p(_.M,{cond:l,
then:function(){return _.p("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.p(_.Up,{data:function(){var x;return(x=g.data().webData)==null?void 0:x.sourcesShelf}},{horizontalShelfViewModel:function(x){return _.p(_.IS,{data:x.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.p(_.Up,{data:function(){return g.data().conversationResourceViewModel}},{conversationResourceViewModel:BUC}),_.p(_.Up,{data:function(){return g.data().quiz}},{learningJourneyQuizViewModel:_.jmt}),_.p(_.Up,{data:function(){return g.data().yoututorQuiz}},{yoututorQuizViewModel:YYC}),_.p(_.Up,{data:function(){return g.data().richContent}},{cardViewModel:_.AjK,
linearLayoutViewModel:_.Zd}),_.p(_.Up,{data:function(){return g.data().content}},{cardViewModel:_.AjK,
yoututorQuizViewModel:YYC,linearLayoutViewModel:_.Zd,learningJourneyQuizViewModel:_.jmt,conversationResourceViewModel:BUC}),_.p(_.M,{cond:d,then:function(){return _.p(Of9,{thumbsUp:F,thumbsDown:V,rightAlignThumbs:J})}}))}}),_.p(_.M,{cond:function(){return g.data().chipsData},
then:function(W){return _.p(xwL,{data:W,disabled:g.pending,onError:g.onError})}}))},"Oh");
_.zSL.idomCompat={callbacks:{onError:!0,onSend:!0}};
}catch(e){_._DumpException(e)}
try{
_.wc("hU04te");
_.ntL=_.r(function(g){return _.p("yt-feedback-prompt-view-model",{class:_.Ty("ytFeedbackPromptViewModelHost",g.className)},_.p(_.M,{cond:function(){return g.data().text},
then:function(u){return _.p(_.c2,{text:u,className:"ytFeedbackPromptViewModelPrompt"})}}),_.p(_.Up,{data:function(){return g.data().likeButton}},{likeButtonViewModel:function(u){return _.p(_.et,{data:u.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.p(_.Up,{data:function(){return g.data().dislikeButton}},{dislikeButtonViewModel:_.tP}))},"Ph");
_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("NSzT5");
var xy3=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield(_.Bk().resolve(_.rv),2);(g=u.yieldResult)&&g.pauseVideo();_.Wx(u)})};var Bvv=_.CT(["https://portraits.google.com"]),zGT=_.CT(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),nqe=_.CT(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),kcV=_.A1(Bvv),SpB=_.r(function(g){function u(e){var G;if(e=(G=e.detail)==null?void 0:G.endpoint){G=_.c(e,_.kZ);var R;G&&((R=G.browseId)==null?0:R.startsWith("UC"))&&G.browseId!==L()&&(_.bK("creator-chatbots-panel-persistent"),f.removeEventListener("yt-navigate-start",u))}}
var q=g.usePlayerHeight;var Q=g.isPersistentPanel;var L=g.creatorChannelId;var E=_.Sy(_.fEJ),y=_.lF(function(e){var G=L();G=_.A1(zGT,G);_.Na(e,1,G)}),v=function(){var e,G,R;
return _.D(function(H){return H.nextAddress==1?H.yield(_.Bk().resolve(_.rv),2):(e=H.yieldResult)?H.return({video_id:(R=(G=e.getVideoData())==null?void 0:G.video_id)!=null?R:"",timestamp_sec:e.getCurrentTime().toString()}):H.return({})})};
_.Oz("message",function(e){var G,R,H,l,d,F,V,z,O,W;return _.D(function(x){if(x.nextAddress==1){if(e.origin!==kcV.toString())return console.warn("Received message from untrusted origin:",e.origin),x.return();G=e.data;if(typeof G!=="object"||G===null||!G.action)return x.return();if(G.action==="pause")return x.yield(xy3(),0);if(G.action!=="getYouTubeContext")return x.jumpTo(0);H=((R=Q)==null?0:R())?"creator-chatbots-panel-persistent":"creator-chatbots-panel";l=document.getElementById(H);if(((d=Q)==null?
0:d())&&l&&l.style.display!=="none"&&e.source)return(F=e.source)==null||F.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:e.origin}),x.jumpTo(0);if(!e.source)return x.jumpTo(0);V=e.source;z=V.postMessage;O=JSON;W=O.stringify;return x.yield(v(),8)}z.call(V,W.call(O,{youTubeContext:x.yieldResult}),{targetOrigin:e.origin});return x.jumpTo(0)})});
var J=function(){var e,G;(e=y.value)==null||(G=e.contentWindow)==null||G.postMessage("ep_closed",kcV.toString())};
_.Oz("yt-page-type-changed",function(){if(Q==null?0:Q()){var e;((e=_.Bk().resolve(_.ba).getCurrentPage())==null?void 0:e.pageSubtype)!=="channels"&&(e=document.getElementById("creator-chatbots-panel-persistent"))&&(e.style.display="none")}else _.Bk().resolve(_.ba).isOnWatch()||document.getElementById("creator-chatbots-panel")&&_.bK("creator-chatbots-panel")});
var f=_.Bk().resolve(_.zL),t;(t=f)==null||t.addEventListener("yt-navigate-start",u);_.lL(function(){var e=(Q==null?0:Q())?"creator-chatbots-panel-persistent":"creator-chatbots-panel",G=document.getElementById(e);if(G){var R=new MutationObserver(function(H){H.forEach(function(l){l.type==="attributes"&&l.attributeName==="style"&&G.style.display==="none"&&J()})});
R.observe(G,{attributes:!0});_.dB(function(){R.disconnect()})}});
_.dB(function(){var e;(e=f)==null||e.removeEventListener("yt-navigate-start",u)});
g={};return _.p("div",{class:_.Ty("ytprotoCreatorChatbotsAppHost",(g.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return E()},g)),
style:_.xH({height:function(){return(q==null?0:q())?"var(--ytd-watch-flexy-panel-max-height)":"100%"},
"max-height":function(){return(Q==null?0:Q())?"800px":void 0}})},_.p(_.mwC,{id:function(){return(Q==null?0:Q())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(Q==null?0:Q())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){Q!=null&&Q()||(J(),_.bK("creator-chatbots-panel"))},
header:function(){return _.p("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.p("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.p(_.$s,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.p(_.FX,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var e=_.nv("https://portraits.google.com/gallery?ytChannelId="+L());e&&_.sP(window,e,"_blank");J()}})},
content:function(){return _.p("iframe",{el:y,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+kcV.toString()})}}))},"Yo"),oqO=_.r(function(g){var u=g.creatorChannelId;
var q=_.Sy(_.fEJ),Q=_.lF(function(E){var y=u();y=_.A1(nqe,y);_.Na(E,1,y)}),L=_.Ui(_.gL(),{veType:281629});
g={};return _.p("div",{class:_.Ty("ytprotoCreatorChatbotsAppHost",(g.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return q()},g)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.p(_.mwC,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.p("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.p("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.p(_.$s,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.p("iframe",{el:Q,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.p("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.p(_.FX,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var E=_.nv("https://portraits.google.com/gallery?ytChannelId="+u());E&&_.sP(window,E,"_blank");xy3();L&&_.$q(_.gL(),{visualElement:L})},
"client-ve-type":281629}),_.p("div",null,"This will take you to Google Portraits"))}}))},"Zo");var Uys,gyO;Uys=_.CT(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);gyO=_.A1(Uys);_.Lax=function(g){g=g===void 0?"":g;_.bK("creator-chatbots-panel");_.iK(gyO);_.dh("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.F6t("creator-chatbots-panel",function(){return _.p(SpB,{usePlayerHeight:!0,creatorChannelId:g})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.EXt=function(g){g=g===void 0?"":g;_.bK("creator-chatbots-panel");_.dh("ytd-watch-metadata #top-level-buttons-computed",function(){_.F6t("creator-chatbots-panel",function(){return _.p(oqO,{creatorChannelId:g})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.O0h=function(g,u,q){g=g===void 0?"":g;u=u===void 0?!1:u;q=q===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":q;var Q,L;return _.D(function(E){if(q==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(Q=document.getElementById("creator-chatbots-panel"))Q.style.display="block";return E.jumpTo(0)}L=document.getElementById("creator-chatbots-panel-persistent");return!u||L?(!u&&L&&L.style.display==="none"&&(L.style.display="block"),E.jumpTo(0)):E.yield(new Promise(function(y){_.dh("ytd-app",
function(v){_.Cg({element:v,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.p(SpB,{isPersistentPanel:!0,creatorChannelId:g})});
y()})}),0)})};
_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("b3MoKf");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("f8YPh");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("QiZf0e");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("mcjWUc");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("m9Vw4");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("dIvQ6c");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("JoU6vf");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("HwlOhd");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("n0DHg");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("U9vrqd");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("dpUCFd");

_.cD();
}catch(e){_._DumpException(e)}
try{
_.wc("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 k3C,mu,SYZ,ot9,Uwh,gCh,uwK,qA9,QMf,LLL,ECx,P6z,NVb,sML,ygZ,vCz,aq,DMC,pUp,JgZ,jMt,fMb,MZb,tZK,etL,GBh,$Mh,Rtt,wUK,cgt,AgH,ZdC,IML,id9,C6f,dM9,FLf,mMh,aMf,VO,XUz,rgf,WLC,XX,TVt,KLn,xMf,BVf,ztx,kBt,SAb,u1C,Qrt,gJb,Hdx,LgZ,EJK,P1x,rh,Wr,Nwp,srL,vJH,DKp,JJb,jrL,f4L,M_Z,t_t,efh,GgK,$KL,T4,RfH,cJn,HVx,AJh,ZVh,l4p,iVL,C1n,bVE,dKh,a4p,V_L,WgL,TwE,Ygp,OVx,xKb,hu,BwH,nJh,kgh,SgL,UKx,uS9,qRC,Qpf,L7h,E6h,PHp,NFf,ytt,v6z,Dfz,pCh,Jtp,jph,f0K,MFx,tFx,eN9,RNh,wCh,ctn,HW9,AtK,ZWz,l0t,I0f,CHt,bWn,dfL,F7E,mfz,a0Z,
VFz,XCz,rtf,Kg,W7f,TFC,hN9,YRZ,OW9,K7E,xM,xfz,BF9,zNh,n6t,kzh,SR9,o6Z,Ufn,gZC,uJC,q3n,Q7L,Br,Lc9,EZp,PRh,Nrt,s7C,yD9,vZK,DZH,pcC,JDf,j7p,fsZ,Mbf,tbn,ehE,GNt,$ZK,RhK,cDZ,ZUC,ls9,IsC,iU9,CRh,bUf,dZb,Fch,mZh,asn,Vbt,XcK,rDn,ng,kM,TrZ,hhh,Y3H,OUt,Kct,xZp,Brt,zhh,nZt,kNp,g_t,yRb,JRb,jE9,Grb,R5p,e5H,MhH,Iqp,b6n,X9f,fqZ,FCE,i6t,$Rh,WCb,YxC,xRz,O6x,KCb,B$x,SxE,n_p,o_t,URn,krn,z5L,g9h,gQ,uQ,PUh,ql,NOL,s5f,Q6,yrt,v9L,DmH,tPf,eqb,$mb,RqL,w$h,crt,L$,HEp,Arh,ZEb,Eu,PZ,I3C,iEH,Nl,bEb,dmt,su,mmf,y6,vZ,DE,p$,X$L,
VPf,rrn,WXt,JG,TOZ,jo,hqt,f$,Ml,kex,tG,Sit,o9p,Umx,eo,EHt,uht,Lyh,PFt,qEx,sTh,QTt,DYC,yo9,vHh,p1E,jTz,Job,eEE,w1z,wQ,cZ,$Yp,Hrp,REh,con,AG,lQ,Ia,iQ,BLn,Vyf,kyf,SEZ,oHn,UYt,u09,brK,dYK,dQ,mYZ,C$,bQ,aax,gqn,zEh,Fyt,mj,J9h,fc9,MTx,j9H,y99,eGx,RGf,Nvb,Eqt,Pax,Hef,s9H,X5,$yz,vq9,GcH,pef,LHC,Dyh,ZeZ,acH,VTH,Xep,r9z,WHz,Tvx,YpZ,Ou,KHz,xyH,zGn,nqK,kct,Spp,oqb,Uyh,gyb,ugK,qIZ,K$,Qsz,LlL,EyL,P29,J7E,xc,pYn,ssH,D0C,vyK,y7h,Nyb,jsn,f7x,MJE,tJz,BZ,ezZ,GkE,c7C,n$,RzZ,So,zi,kc,wYn,$0h,HnC,A7x,ZnE,l7C,I7L,inZ,bnL,
d0h,Flx,m0K,a79,VJE,XYt,r7t,Wl9,TyZ,YIb,On9,x0H,nyZ,kkZ,SIn,U0n,uaf,Q1Z,LZh,EbL,Pbf,s1C,yZt,vbh,DWh,pbK,JZC,j1h,MVt,tVK,$Wb,wbz,H3H,R2Z,e2x,Gx9,IeZ,lez,AZn,i3n,Z3h,Cb9,aet,mWp,dWK,FZb,oa,VVt,rZt,WZK,T_H,xWE,B_H,z2K,nbx,kxt,Sfp,obx,UWt,gSZ,uip,qcf,QOx,L3x,ESp,PAK,NT9,sOK,yLb,vS9,DBE,pKC,JLZ,jOh,fgn,tUt,eB9,GK9,$Bh,RBh,wKp,cLE,HTn,ALH,ZTf,iTx,bTZ,F3h,mBh,agL,VUz,lgh,Igb,W3n,TTC,hBz,Ycb,OTh,K3f,xBt,BT9,zB9,nSC,kKx,Sc9,UBh,oSt,uEZ,qaf,LEC,E0t,Nm9,s6L,qn,pMx,J2Z,fPK,M$n,edz,t$h,Rdh,Gwf,$$L,wMz,c2f,Hph,
A2C,Zp9,lPH,IPL,ipC,C$Z,bpK,d$z,FEn,aPh,m$z,V$p,WEE,TmC,hdb,QS,Yaf,OpE,KEt,x$n,Bmp,zdf,n0x,kwZ,SaK,o0h,U$f,uA9,qQp,QAf,LbZ,NXt,yyx,v2H,pHC,DH9,JyE,jAz,fXL,M0b,exx,G0p,$H9,Rxp,wHH,cyn,HNn,Ayn,ZNf,lXC,IXb,dHp,Fbh,CMx,bNf,iNx,mHb,XHZ,aXH,V0f,TXK,ryH,WbK,hxZ,YQp,ONf,KbZ,BX9,zxz,n2Z,SQK,o2p,gkK,qOE,L2K,PJK,sVn,vkZ,plE,jVb,tkb,GAz,$PC,Ryh,czx,wlK,Azz,ZYH,lBC,IBE,EV,iYn,CJh,bYC,OYp,xPL,BJ9,SOL,sV,okL,UPn,got,qGf,uvK,QQh,Lpp,EoE,PE9,N2z,S3b,sQK,y$p,vop,Ek9,D6x,ptL,zfh,J$f,jQh,f9h,MsH,tsK,ek9;
k3C=function(){switch(_.brF()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
mu=function(g){if(!g)return"browse";var u=g.page,q=g.url,Q,L,E,y=(Q=g.response)==null?void 0:(L=Q.responseContext)==null?void 0:(E=L.webResponseContextExtensionData)==null?void 0:E.pageTheme;if(y)u=y.toLowerCase().replace(/_/g,"-");else if(u!=="watch"&&u!=="learning_journey_watch"){var v,J;if((u==="browse"||u==="settings")&&((v=g.response)==null?0:(J=v.sidebar)==null?0:J.settingsSidebarRenderer))u="WEB_PAGE_TYPE_SETTINGS";else{var f,t;u==="browse"&&((f=g.response)==null?0:(t=f.metadata)==null?0:t.channelMetadataRenderer)?
u="channel":q&&(u=_.Omu(q)||u)}}return u};
SYZ=function(g){g=g.command;var u=_.c(g,_.g$);return{command:g,reelPlayerOverlayRenderer:_.c(u==null?void 0:u.overlay,_.wO5),thumbnail:u==null?void 0:u.thumbnail,videoId:u.videoId}};
ot9=function(g){g=g.command;var u=_.c(g,_.M4);return{command:g,reelNonVideoContentRenderer:_.c(u==null?void 0:u.renderer,_.RV8)}};
Uwh=function(g){return g.entries?g.entries.map(function(u){return _.c(u==null?void 0:u.command,_.g$)?SYZ(u):ot9(u)}):[]};
gCh=function(g){return g.prevEntries?g.prevEntries.map(function(u){return _.c(u==null?void 0:u.command,_.g$)?SYZ(u):ot9(u)}):[]};
uwK=function(){return new Promise(function(g){var u=window;u.attmp!==void 0?g(u.attmp):(u.attmq===void 0&&(u.attmq=[]),u.attmq.push(function(q){g(q)}))})};
qA9=function(){var g=_.ri("yt.aba.att");return g?g:_.gA.instance!==void 0?_.gA.instance.cBB.bind(_.gA.instance):null};
QMf=function(g,u){var q,Q,L;return _.D(function(E){if(E.nextAddress==1){if(!_.w("attmusi")||!_.w("attmusi_ue"))return E.jumpTo(2);q=window;return q.attmp!==void 0?E.return(q.attmp.s(g,u,6E4)):E.yield(uwK(),3)}return E.nextAddress!=2?(Q=E.yieldResult,E.return(Q.s(g,u,6E4))):(L=qA9())?E.return(L(g,u,6E4)):E.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
LLL=function(g,u,q,Q,L){u=u===void 0?[]:u;L=L?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:L}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.ap(g),dialogMessages:u.map(function(E){return _.ap(E)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ap(q),serviceEndpoint:L}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ap(Q)}}}}}};
ECx=function(g,u,q,Q){q||(g?Q&&(Q.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||Q.WINDOW_SIZE_CHANGED&&(u.width!==window.innerWidth||u.height!==window.innerHeight)||Q.SAFARI_ABORTED_BY_NEW_TRANSITION&&g instanceof DOMException&&g.name==="AbortError"&&g.message.includes("Old view transition aborted by new view transition"))||_.Zf(g):_.Zf(Error("Bj")))};
P6z=function(g,u){u=u===void 0?{}:u;var q,Q,L,E,y,v,J,f,t,e,G,R,H;return _.D(function(l){switch(l.nextAddress){case 1:q=u;Q=q.shouldWrap===void 0?!0:q.shouldWrap;L=q.skipTransitionTimeoutMs===void 0?300:q.skipTransitionTimeoutMs;E=q.beforeTransition;y=q.afterTransition;if(!Q||!document.startViewTransition||document.visibilityState==="hidden")return l.return(g());v={width:window.innerWidth,height:window.innerHeight};J=!1;(f=E)==null||f();_.b8(l,2);t=document.startViewTransition(g);e=setTimeout(function(){t.skipTransition();
J=!0},L);
return l.yield(t.ready,4);case 4:return clearTimeout(e),l.yield(t.finished,5);case 5:clearTimeout(e);(G=y)==null||G();_.Xx(l,0);break;case 2:R=_.rt(l),(H=y)==null||H(),ECx(R,v,J,u.ignoredErrors),_.Wx(l)}})};
NVb=function(g,u,q){q=q===void 0?!1:q;var Q=_.Uw(),L=!!_.Ic().queueProxy,E,y,v;g=g==null?void 0:(E=g.response)==null?void 0:(y=E.currentVideoEndpoint)==null?void 0:(v=y.watchEndpoint)==null?void 0:v.playlistId;if((L||g)&&!_.w("web_watch_disable_playlist_auto_miniplayer"))return q&&(Q.playlistWatchPageActivation=!0),!0;switch(mu(u)){case "yts-products":return q&&(Q.productDetailsPageActivation=!0),!0;case "mini_app":return q&&(Q.miniAppPageActivation=!0),!0;case "playables":return q&&(Q.playablesDestPageActivation=
!0),!0;case "companion-canvas":return q&&(Q.companionCanvasActivation=!0),!0;default:return!1}};
sML=function(g){g=_.Nqm(g);g.length>0&&g[0].focus()};
ygZ=function(g,u,q){for(var Q=typeof g==="string"?g.split(""):g,L=g.length-1;L>=0;--L)L in Q&&u.call(q,Q[L],L,g)};
vCz=function(g,u,q){for(var Q=g.length,L=typeof g==="string"?g.split(""):g,E=0;E<Q;E++)if(E in L&&u.call(q,L[E],E,g))return E;return-1};
aq=function(g,u,q){u=vCz(g,u,q);return u<0?null:typeof g==="string"?g.charAt(u):g[u]};
DMC=function(g,u){u=vCz(g,u);u>=0&&_.bZb(g,u)};
pUp=function(g){return Array.prototype.concat.apply([],arguments)};
JgZ=function(g){var u=0;u=u===void 0?0:u;if(!_.sZ(g))throw _.Q$("uint64");var q=typeof g;switch(u){case 512:switch(q){case "string":return _.hnK(g);case "bigint":return String((0,_.Ah)(64,g));default:return _.W8q(g)}case 1024:switch(q){case "string":return _.Y0K(g);case "bigint":return _.W5((0,_.Ah)(64,g));default:return _.Tah(g)}case 0:switch(q){case "string":return _.hnK(g);case "bigint":return _.W5((0,_.Ah)(64,g));default:return _.rb3(g)}default:return _.qE(u,"Unknown format requested type for int64")}};
jMt=function(g,u,q){if(u)return _.Zb(g);var Q;return(Q=_.C9(g))!=null?Q:q?"":void 0};
fMb=function(g){g!=null&&(g=g.JSC$9127_value_||"",g=typeof g==="string"?g:new Uint8Array(g));return g};
MZb=function(g,u){var q=_.Zaq(u);q!=="javascript:"&&q!=="data:"&&g.setAttribute("href",u)};
tZK=function(g,u){var q=[];for(u=u||0;u<g.length;u+=2)_.u_Z(g[u],g[u+1],q);return q.join("&")};
etL=function(g,u){var q=arguments.length==2?tZK(arguments[1],0):tZK(arguments,1);return _.gFk(g,q)};
GBh=function(g,u){if(/-[a-z]/.test(u))return null;if(_.J52&&g.dataset){if(_.$3h()&&!(u in g.dataset))return null;g=g.dataset[u];return g===void 0?null:g}return g.getAttribute("data-"+_.SZ(u))};
$Mh=function(){var g=_.I0&&_.eK(_.MZH,10)>=0,u;if(u=_.DEZ)u=_.eK(_.fMH,10)>=0;var q=_.nT&&_.eK(_.MZH,85)>=0;return _.qM||g||u||q};
Rtt=function(g){var u=_.qHH(g);return u&&$Mh()?-g.scrollLeft:u&&_.mR(g,"overflowX")!="visible"?g.scrollWidth-g.clientWidth-g.scrollLeft:g.scrollLeft};
wUK=function(g,u){u=Math.max(u,0);_.qHH(g)?$Mh()?g.scrollLeft=-u:g.scrollLeft=g.scrollWidth-u-g.clientWidth:g.scrollLeft=u};
cgt=function(){var g=window.location.hash;g.charAt(0)==="#"&&(g=g.charAt(1)==="!"?g.substring(2):g.substring(1));return _.hM(g)};
AgH=function(){var g=Hdx;_.ri("yt.ads.biscotti.getId_")||_.xQ("yt.ads.biscotti.getId_",g)};
ZdC=function(g){_.xQ("yt.ads.biscotti.lastId_",g)};
IML=function(){var g={};for(_.$Q=new lMf(g.handleError===void 0?_.lD:g.handleError,g.logEvent===void 0?_.H6:g.logEvent);_.R0.length>0;)switch(g=_.R0.shift(),g.type){case "ERROR":_.$Q.logError(g.payload);break;case "EVENT":_.$Q.logEvent(g.eventType,g.payload)}};
id9=function(g,u,q){return _.mZM(function(Q){return q?Q.userIdentifier!==void 0&&!g.includes(Q.userIdentifier)&&q.includes(Q.publicName):Q.userIdentifier!==void 0&&!g.includes(Q.userIdentifier)},u)};
C6f=function(g){var u,q;return _.D(function(Q){if(Q.nextAddress==1)return u=_.DQ("YtIdbMeta hasAnyMeta other"),Q.yield(_.mZM(function(L){return L.userIdentifier!==void 0&&L.userIdentifier!==u},g),2);
q=Q.yieldResult;return Q.return(q.length>0)})};
dM9=function(g,u){bdp||(bdp=_.Hv.addLowPriorityJob(function(){var q,Q,L,E,y;return _.D(function(v){switch(v.nextAddress){case 1:return v.yield(_.BW(),2);case 2:q=v.yieldResult;if(!q)return v.return();Q=!0;_.b8(v,3);return v.yield(id9(g,q,u),5);case 5:L=v.yieldResult;if(!L.length){Q=!1;v.jumpTo(6);break}E=L[0];return v.yield(_.ru(E.actualName),7);case 7:return v.yield(_.hi(E.actualName,q),6);case 6:_.Xx(v,4);break;case 3:y=_.rt(v),_.wu(y),Q=!1;case 4:_.Hv.cancelJob(bdp),bdp=0,Q&&dM9(g,u),_.Wx(v)}})}))};
FLf=function(){var g;return _.D(function(u){return u.nextAddress==1?u.yield(_.BW(),2):(g=u.yieldResult)?u.return(C6f(g)):u.return(!1)})};
mMh=function(g){var u=100;u=u===void 0?500:u;var q,Q,L,E,y,v;return _.D(function(J){return J.nextAddress==1?(q=_.FR("INNERTUBE_CONTEXT_CLIENT_NAME",0),Q=[q,(0,_.n0)()-2592E6],L=[q,(0,_.n0)()],E=IDBKeyRange.bound(Q,L),J.yield(_.PFf(g),2)):J.nextAddress!=3?(y=J.yieldResult,v=[],J.yield(_.T8(y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(f){v.length=0;return _.kQ(f.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:E,direction:"prev"},function(t){if(t.getValue()&&v.length<
u)return v.push(t.getValue()),t.delete().then(function(){return t.continue()})})}),3)):J.return(v)})};
aMf=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield(_.BW(),2);g=u.yieldResult;if(!g||!_.p0()&&!_.w("nwl_init_require_datasync_id_killswitch")||!_.AoZ())return u.jumpTo(0);_.laJ=!0;_.ZrJ.isNwlInitialized=_.laJ;return u.yield(_.pca().awaitInitialization(),0)})};
VO=function(g,u){_.Kyq[g]=!0;var q=_.kO();q&&q.publish.apply(q,arguments);_.Kyq[g]=!1};
XUz=function(){if(_.w$M()&&!VZh){var g=function(q){q=q.data;if(q.op==="serializedGelBatch"){var Q=_.KHJ.get(q.key);Q&&(_.BvZ(q.serializedBatch,Q.client,Q.resolve,Q.networklessOptions,Q.isIsolated,Q.useVSSEndpoint,Q.dangerousLogToVisitorSession,Q.requestsOutstanding),_.KHJ.delete(q.key))}},u=_.Rqu();
u&&(u.addEventListener("message",g),u.onerror=function(){_.KHJ.clear()});
VZh=!0}};
rgf=function(){this.relativeTimeStart_=_.WK()};
WLC=function(g,u){g!=null&&this.append.apply(this,arguments)};
XX=function(){for(var g=Array(36),u=0,q,Q=0;Q<36;Q++)Q==8||Q==13||Q==18||Q==23?g[Q]="-":Q==14?g[Q]="4":(u<=2&&(u=33554432+Math.random()*16777216|0),q=u&15,u>>=4,g[Q]=_.aBJ[Q==19?q&3|8:q]);return g.join("")};
TVt=function(){return _.Gg("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
KLn=function(){var g=_.pH.clone(hth),u;return(new _.Ez(function(q,Q){g.onSuccess=function(L){_.dfu(L)?q(new YAb(L)):Q(new Odb("Request failed, status="+_.gu(L),"net.badstatus",L))};
g.onError=function(L){Q(new Odb("Unknown request error","net.unknown",L))};
g.onTimeout=function(L){Q(new Odb("Request timed out","net.timeout",L))};
u=_.Ek("//googleads.g.doubleclick.net/pagead/id",g)})).thenCatch(function(q){if(q instanceof _.Gx){var Q;
(Q=u)==null||Q.abort()}return _.NY(q)})};
xMf=function(g,u,q){q=q===void 0?!1:q;var Q,L,E,y,v;return _.D(function(J){switch(J.nextAddress){case 1:_.yW("SOCS",g,34128E3,"youtube.com",!0);if(_.zK)return L=fetch(u,{method:"POST",mode:_.HX(u),credentials:_.cX(u),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),E=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.HX("/upgrade_visitor_cookie?eom=1"),credentials:_.cX("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),J.yield(Promise.all([L,E]).then(function(f){return f[1]}),5);
fetch(u,{method:"POST",mode:_.HX(u),credentials:_.cX(u),cache:"no-store",headers:{"Content-Type":"text/plain"}});return J.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.HX("/upgrade_visitor_cookie?eom=1"),credentials:_.cX("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:Q=J.yieldResult;J.jumpTo(3);break;case 5:Q=y=J.yieldResult;case 3:if(!Q.ok)throw Error("wf");return J.yield(Q.text(),7);case 7:v=J.yieldResult,
!v.includes('"state_switch":true')&&!q||v.includes("skip_reload_for_test")||window.location.reload(),_.Wx(J)}})};
BVf=function(g){return _.D(function(u){return u.nextAddress==1?u.yield(xMf(g.socsCookie,g.savePreferenceUrl,!0),2):u.return()})};
ztx=function(g){return _.D(function(u){return u.nextAddress==1?u.yield(xMf(g.socsCookie,g.savePreferenceUrl),2):u.return()})};
kBt=function(g){a:{var u="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(u="EMBEDDED_PLAYER_MODE_PFL");var q=g.raw_embedded_player_response;if(!q&&(g=g.embedded_player_response))try{q=JSON.parse(g)}catch(L){break a}if(q)b:{g=nCZ;for(var Q in g)if(g[Q]==q.embeddedPlayerMode){u=g[Q];break b}}}return u==="EMBEDDED_PLAYER_MODE_PFL"};
SAb=function(){if(_.w("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("xf");if(!_.VWh())return Error("yf");var g=_.FR("PLAYER_VARS",{});if(_.pH.get(g,"privembed",!1)=="1")return Error("zf");if(kBt(g))return Error("Af")};
u1C=function(g){g=g.xhr.responseText;if(!_.N3(g,")]}'"))throw new oCL;g=JSON.parse(g.substr(4));if((g.type||1)>1)throw new oCL;g=g.id;ZdC(g);UMZ=_.In(g);gJb(18E5,2);return g};
Qrt=function(g,u){u=new qgZ(u);ZdC("");UMZ=_.P5Z(u);g>0&&gJb(12E4,g-1);throw u;};
gJb=function(g,u){_.uS(function(){KLn().then(u1C,function(q){return Qrt(u,q)}).thenCatch(_.vH)},g)};
Hdx=function(){var g=SAb();if(g!==void 0)return _.NY(g);UMZ||(UMZ=KLn().then(u1C).thenCatch(function(u){return Qrt(2,u)}));
return UMZ};
LgZ=function(){var g=document;return aq(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(u){return"on"+u.toLowerCase()in g})};
EJK=function(g){g.addEventListener("click",function(u){var q=u.target;q&&q.getAttribute("href")&&(q=q.getAttribute("href"),_.sP(window,q,"_blank"),u.preventDefault(),u.stopImmediatePropagation())})};
P1x=function(){var g=_.LW();g.info||(g.info={});return g.info};
rh=function(){return(_.w("csi_use_time_origin")||_.w("csi_use_time_origin_tvhtml5"))&&_.yX.timeOrigin?Math.floor(_.yX.timeOrigin):_.yX.timing.navigationStart};
Wr=function(g){return Math.round(rh()+g)};
Nwp=function(){var g;if(_.w("csi_use_performance_navigation_timing")){var u,q,Q,L=_.yX==null?void 0:(g=_.yX.getEntriesByType)==null?void 0:(u=g.call(_.yX,"navigation"))==null?void 0:(q=u[0])==null?void 0:(Q=q.toJSON)==null?void 0:Q.call(q);L?(L.requestStart=Wr(L.requestStart),L.responseEnd=Wr(L.responseEnd),L.redirectStart=Wr(L.redirectStart),L.redirectEnd=Wr(L.redirectEnd),L.domainLookupEnd=Wr(L.domainLookupEnd),L.connectStart=Wr(L.connectStart),L.connectEnd=Wr(L.connectEnd),L.responseStart=Wr(L.responseStart),
L.secureConnectionStart=Wr(L.secureConnectionStart),L.domainLookupStart=Wr(L.domainLookupStart),L.isPerformanceNavigationTiming=!0,g=L):g=_.yX.timing}else g=_.w("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.yX.timing)):_.yX.timing;return g};
srL=function(){if(_.yX.getEntriesByType){var g=_.yX.getEntriesByType("paint");if(g=aq(g,function(q){return q.name==="first-paint"}))return Wr(g.startTime)}var u;
_.w("csi_use_performance_navigation_timing")?u=_.yX.getEntriesByType("first-paint")[0].startTime:u=_.yX.timing.msFirstPaint;return u?Math.max(0,u):0};
vJH=function(){var g=window.location.protocol,u=_.yX.getEntriesByType("resource");u=_.Oc(u,function(q){return q.name.indexOf(g+"//fonts.gstatic.com/s/")===0});
(u=yJz(u,function(q,Q){return Q.duration>q.duration?Q:q}))&&u.startTime>0&&u.responseEnd>0&&(_.Nf("wffs",Wr(u.startTime)),_.Nf("wffe",Wr(u.responseEnd)))};
DKp=function(g,u){g=document.querySelector(g);if(!g)return!1;var q="",Q=g.nodeName;Q==="SCRIPT"?(q=g.src,q||(q=g.getAttribute("data-timing-href"))&&(q=window.location.protocol+q)):Q==="LINK"&&(q=g.href);_.yT(document)&&g.setAttribute("nonce",_.yT(document));return q?(g=_.yX.getEntriesByName(q))&&g[0]&&(g=g[0],q=rh(),_.Nf("rsf_"+u,q+Math.round(g.fetchStart)),_.Nf("rse_"+u,q+Math.round(g.responseEnd)),g.transferSize!==void 0&&g.transferSize===0)?!0:!1:!1};
JJb=function(g,u){_.V1(function(){_.PC("").info.actionType=g;u&&_.di("TIMING_AFT_KEYS",u);_.di("TIMING_ACTION",g);var q=_.aVF(_.FR("TIMING_INFO",{}));Object.keys(q).length>0&&_.sR(q);q={isNavigation:!0,actionType:_.c4K(_.FR("TIMING_ACTION"))};var Q=_.FR("PREVIOUS_ACTION");Q&&(q.previousAction=_.c4K(Q));if(Q=_.FR("CLIENT_PROTOCOL"))q.httpProtocol=Q;if(Q=_.FR("CLIENT_TRANSPORT"))q.transportProtocol=Q;(Q=_.j_())&&Q!=="UNDEFINED_CSN"&&(q.clientScreenNonce=Q);Q=k3C();if(Q===1||Q===-1)q.isVisible=!0;Q=
_.fVF().loadType==="cold";var L=P1x();Q||(Q=L.yt_lt==="cold");if(Q){q.loadType="cold";Q=P1x();L=Nwp();var E=rh(),y=_.FR("CSI_START_TIMESTAMP_MILLIS",0);y>0&&!_.w("embeds_web_enable_csi_start_override_killswitch")&&(E=y);E&&(_.Nf("srt",L.responseStart),Q.prerender!==1&&_.IVb(E));Q=srL();Q>0&&_.Nf("fpt",Q);Q=Nwp();Q.isPerformanceNavigationTiming&&_.sR({performanceNavigationTiming:!0},void 0);_.Nf("nreqs",Q.requestStart,void 0);_.Nf("nress",Q.responseStart,void 0);_.Nf("nrese",Q.responseEnd,void 0);
Q.redirectEnd-Q.redirectStart>0&&(_.Nf("nrs",Q.redirectStart,void 0),_.Nf("nre",Q.redirectEnd,void 0));Q.domainLookupEnd-Q.domainLookupStart>0&&(_.Nf("ndnss",Q.domainLookupStart,void 0),_.Nf("ndnse",Q.domainLookupEnd,void 0));Q.connectEnd-Q.connectStart>0&&(_.Nf("ntcps",Q.connectStart,void 0),_.Nf("ntcpe",Q.connectEnd,void 0));Q.secureConnectionStart>=rh()&&Q.connectEnd-Q.secureConnectionStart>0&&(_.Nf("nstcps",Q.secureConnectionStart,void 0),_.Nf("ntcpe",Q.connectEnd,void 0));_.yX&&"getEntriesByType"in
_.yX&&vJH();Q=[];if(document.querySelector&&_.yX&&_.yX.getEntriesByName)for(var v in pXC)pXC.hasOwnProperty(v)&&(L=pXC[v],DKp(v,L)&&Q.push(L));if(Q.length>0)for(q.resourceInfo=[],v=_.N(Q),Q=v.next();!Q.done;Q=v.next())q.resourceInfo.push({resourceCache:Q.value})}_.sR(q);q=_.ER();q.preLoggedGelInfos||(q.preLoggedGelInfos=[]);v=q.preLoggedGelInfos;q=_.t9f();Q=void 0;for(L=0;L<v.length;L++)if(E=v[L],E.loadType){Q=E.loadType;break}if(_.fVF().loadType==="cold"&&(q.loadType==="cold"||Q==="cold")){Q=_.M9M();
L=_.ER();L=L.gelTicks?L.gelTicks:L.gelTicks={};for(var J in Q)J in L||typeof Q[J]==="number"&&_.Nf(J,_.vC(J));J={};Q=!1;v=_.N(v);for(L=v.next();!L.done;L=v.next())Q=L.value,_.e_(q,Q),_.e_(J,Q),Q=!0;Q&&_.sR(J)}_.Xdu(!0);J=_.FR("TIMING_ACTION");_.ri("ytglobal.timingready_")&&J&&_.BEM()&&_.V9T()&&_.F_K()})()};
jrL=function(g){var u,q,Q,L=(Q=(q=((u=g.mainDownloadsListEntity)!=null?u:{})[_.yFS])==null?void 0:q.refresh)!=null?Q:"",E;g=(E=g.refresh)==null?void 0:E[L];L=g!=null?g:{};return(L==null?0:L.refreshTime)?Number(L==null?void 0:L.refreshTime):0};
f4L=function(g,u){var q=_.NZ(g);return u.every(function(Q){var L;Q=Q==null?void 0:(L=Q.playbackDataEntity)==null?void 0:L.key;if(!Q)return!1;L=_.x6(_.Tz(Q).entityId,"mainVideoEntity");return!!q[L]})};
M_Z=function(g){return g.ui.guideIsVisibleButNotPersistent};
t_t=function(g){return g.ui.scrollAtTop};
efh=function(g){return g.ui.tabGesturesIsActive};
GgK=function(g){g=_.LU(g.entities);return _.cXm(g).length};
$KL=function(g,u){if(u){var q;g=(q=_.BC(g.entities,"downloadQualityPickerEntity",u))!=null?q:void 0}else g=void 0;return g};
T4=function(g,u,q){var Q;return _.D(function(L){if(L.nextAddress==1)return L.yield(u(),2);Q=L.yieldResult;q(Q,g);_.Wx(L)})};
RfH=function(){return _.D(function(g){return g.nextAddress==1?g.yield((SAb()!==void 0?_.NY(Error("Bf")):KLn()).then(function(){return 1},function(u){if(u.message==="Biscotti id is disabled")return 3;
_.Io("Failed fetching bid");return 0}),2):g.return(g.yieldResult)})};
cJn=function(){var g=_.a7("cGxheWVyI2lwanp1cHVuOWJ4Z3l0LWhhdmVuLWVtYmVkLQ=="),u=_.a7("bWUjNHh5dnVpYWt2NG93aWZyYQ==");return document.querySelector(u+wXK+g)?0:1};
HVx=function(g){var u=document.getElementsByTagName("ytd-enforcement-message-view-model");u.length===0||getComputedStyle(u[0]).display==="none"?g(0,"p.h_"):g(1,"p.h_")};
AJh=function(){return _.wwJ(_.bo)};
ZVh=function(){return _.cVq()===0?0:_.HmJ()};
l4p=function(){return _.imq(_.OGh([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
iVL=function(){return _.jdh(I4z)};
C1n=function(g){_.D(function(u){switch(u.nextAddress){case 1:return u.yield(T4("b.f_",RfH,g),2);case 2:return u.yield(T4("j.s_",_.pwm,g),3);case 3:return u.yield(T4("r.s_",_.yVZ,g),4);case 4:return u.yield(T4("e.h_",iVL,g),5);case 5:if(!_.w("ab_det_sc_inj")){u.jumpTo(6);break}return u.yield(T4("s.i_",_.$2T,g),6);case 6:if(_.w("ab_deg_unex_thr")){u.jumpTo(8);break}return u.yield(T4("a.o_",_.eDM,g),8);case 8:if(_.w("ks_get_o_pp")){u.jumpTo(10);break}return u.yield(T4("g.o_",_.tmF,g),10);case 10:if(_.w("ks_det_gpbl")){u.jumpTo(12);
break}return u.yield(T4("p.i_",_.Mmm,g),12);case 12:return u.yield(T4("f.i_",_.o4J,g),14);case 14:return u.yield(T4("a.b_",_.NRk,g),15);case 15:return u.yield(T4("p.m_",_.usJ,g),16);case 16:if(!_.w("ab_det_el_h_v2")){u.jumpTo(17);break}return u.yield(T4("n.h_",l4p,g),17);case 17:return u.yield(T4("o.p_",AJh,g),19);case 19:return u.yield(T4("e.i_",cJn,g),20);case 20:if(_.w("ab_det_apm"))return u.yield(T4("o.a_",ZVh,g),0);u.jumpTo(0)}})};
bVE=function(g){switch(g){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:_.qE(g,"unknown result type")}};
dKh=function(g,u,q){u=_.XwK[u];q={detected:g===0,source:u.lhY,detectionResult:bVE(g),contentCpn:q};_.H6("biscottiBasedDetection",q);_.$N$.increment(u.lhY,g);u.rBn!==void 0&&_.di("CATSTAT",_.aGk(g,u))};
a4p=function(){Fgh=0;var g=[_.U3(!0)];mKK&&_.Og(mKK,"yt-window-resized",g)};
V_L=function(){Fgh||(Fgh=_.Hv.addLowPriorityJob(a4p,200))};
WgL=function(){XXt=0;rJh=_.lWo(document);var g=[rJh];mKK&&_.Og(mKK,"yt-window-scrolled",g)};
TwE=function(){XXt||(XXt=_.Hv.addLowPriorityJob(WgL,200))};
Ygp=function(g){g=g===void 0?null:g;hfH.push(_.xO(window,"resize",V_L));hfH.push(_.xO(window,"scroll",TwE));g&&(mKK=g)};
OVx=function(g){g=g.target.result;g.objectStoreNames.contains("swpushnotificationsstore")&&g.deleteObjectStore("swpushnotificationsstore");g.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
xKb=function(){return Kgx?Promise.resolve(Kgx):new Promise(function(g,u){var q=self.indexedDB.open("swpushnotificationsdb");q.onerror=u;q.onsuccess=function(){var Q=q.result;if(Q.objectStoreNames.contains("swpushnotificationsstore"))Kgx=Q,g(Kgx);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),xKb()};
q.onupgradeneeded=OVx})};
hu=function(g){var u=new _.Ji("Error accessing DB");return xKb().then(function(q){return new Promise(function(Q,L){try{var E=q.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(g);E.onsuccess=function(){var y=E.result;Q(y?y.value:null)};
E.onerror=function(){u.params={key:g,source:"onerror"};L(u)}}catch(y){u.params={key:g,
thrownError:String(y)},L(u)}})},function(){return null})};
BwH=function(g,u){var q={};q.key=g;q.value=u;return xKb().then(function(Q){return new Promise(function(L,E){try{var y=Q.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(q);y.onsuccess=function(){L()};
y.onerror=function(){E()}}catch(v){E(v)}})})};
nJh=function(){var g=_.L6.getLocalStorage();g&&zfh(g,g.mechanism.__iterator__(!0))};
kgh=function(g){_.D(function(u){if(u.nextAddress==1)return u.yield(g.delete("yt-appshell-assets"),2);_.Wx(u)})};
SgL=function(g){return _.WW((0,_.sN5)(),g)};
UKx=function(){var g;_.D(function(u){return u.nextAddress==1?u.yield(YM.getInstance(),2):(g=u.yieldResult)?u.yield(oJf(g),0):u.jumpTo(0)})};
uS9=function(){var g;_.D(function(u){return u.nextAddress==1?u.yield(O8.getInstance(),2):(g=u.yieldResult)?u.yield(g6f(g),0):u.jumpTo(0)})};
qRC=function(g){kgh(g);UKx();uS9()};
Qpf=function(g){var u,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.yAk(g),2);if(u=Q.yieldResult){var L;a:{if(u.headers&&(L=u.headers.get("date"))&&(L=Date.parse(L),!isNaN(L))){L=Math.round((0,_.n0)()-L);break a}L=-1}q=L;if(q>-1)return Q.return(q)}return Q.return(-1)})};
L7h=function(){var g=_.Qq.caches,u=_.mW("IS_SHELL_LOAD"),q,Q;_.D(function(L){if(L.nextAddress==1)return q=-1,u?L.yield(Qpf(g),3):(Q=rh(),q=Math.round((0,_.n0)()-Q),L.jumpTo(2));L.nextAddress!=2&&(q=L.yieldResult);q>=0&&q<2147483648&&_.pW({appInstallDataAgeMs:q});_.Wx(L)})};
E6h=function(g){var u=_.X_(_.Qq.location.href),q={};"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(Q){var L=u.JSC$10339_queryData_.getValues(Q);if(L==null?0:L.length)q[Q]=L});
return _.Zi(g,new Map(Object.entries(q)))};
PHp=function(g){return _.AAJ(_.HyK(g&16777215))<.5};
NFf=function(g){g=g.match(/(.*)::.*::.*/);if(g!==null)return g[1]};
ytt=function(g){if(_.ZyJ()){var u=Object.keys(window.localStorage);u=_.N(u);for(var q=u.next();!q.done;q=u.next()){q=q.value;var Q=NFf(q);Q===void 0||g.includes(Q)||self.localStorage.removeItem(q)}}};
v6z=function(){if(!_.ZyJ())return!1;var g=_.DQ(),u=Object.keys(window.localStorage);u=_.N(u);for(var q=u.next();!q.done;q=u.next())if(q=NFf(q.value),q!==void 0&&q!==g)return!0;return!1};
Dfz=function(g){return BwH("NotificationsDisabled",g)};
pCh=function(){var g=_.o4("service_worker_scope");try{return navigator.serviceWorker.getRegistration(g)}catch(u){return Promise.reject(u)}};
Jtp=function(){return Notification.permission!="granted"?Promise.resolve():pCh().then(function(g){return g?g.pushManager.getSubscription().then(function(u){if(u)return Promise.resolve();u={userVisibleOnly:!0,applicationServerKey:_.Ub("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return g.pushManager.subscribe(u).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
jph=function(g){return pCh().then(function(u){if(!u||!u.active)return Promise.reject(new _.Ji("serviceworker.postMessage",g,u));try{return u.active.postMessage(g),Promise.resolve()}catch(q){return Promise.reject(q)}})};
f0K=function(){jph({type:"notifications_register",data:_.FR("ID_TOKEN")})};
MFx=function(g){return!(!g||!g.pushManager)};
tFx=function(){return pCh().then(MFx).catch(function(){return!1})};
eN9=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?tFx():Promise.resolve(!1)};
RNh=function(){var g={isWide:_.sk.get("wide","0")==="1"},u=_.qf();if(u=u.getFlag(165)||u.getFlag(174))g.theme=_.RE(!0);if(_.KSk()){var q=_.$_()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";g.systemTheme=q}!u&&_.w("parent_tools_enable_app_settings")&&_.Yv(window.location.href).theme!==void 0&&(g.theme=_.RE());if((u=Gzt)?!_.pH.equals(u,g):g)u={currentValue:g},$fh&&(u.timeSinceLastSnapshotSecs=Math.round(((0,_.n0)()-$fh)/1E3)),Gzt&&(u.previousValue=Gzt),_.H6("appSettingsCaptured",u),Gzt=
g,$fh=(0,_.n0)()};
wCh=function(){if(!_.mW("LOGGED_IN"))return Promise.resolve(!1);var g=_.o4("service_worker_push_force_notification_prompt_tag");return g?hu("PromptTags").then(function(u){if(!u)return!0;var q=[];try{q=JSON.parse(u)}catch(Q){return!1}return q&&q.indexOf(g)==-1}):Promise.resolve(!1)};
ctn=function(){var g=_.S8("service_worker_push_prompt_delay_microseconds");return g?hu("PromptTime").then(function(u){return Promise.resolve(Date.now()-g>(u||0))}):Promise.resolve(!0)};
HW9=function(){var g=_.S8("service_worker_push_logged_out_prompt_watches");return g==-1?Promise.resolve(!1):hu("WatchCount").then(function(u){return u>=g})};
AtK=function(){var g=_.a9(document,"yt-push-prompt-modal-bg");g&&_.UU(g)};
ZWz=function(){return _.S8("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):hu("PromptCount").then(function(g){g||(g=0);return Promise.resolve(g<_.S8("service_worker_push_prompt_cap"))})};
l0t=function(g){return _.mW("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.mW("LOGGED_IN")&&(g===void 0?0:g)?wCh().then(function(u){if(u)return!0;u=[ZWz(),ctn()];_.mW("LOGGED_IN")||u.push(HW9());return Promise.all(u).then(function(q){return q.every(function(Q){return Q})})}):Promise.resolve(!1)};
I0f=function(){hu("PromptCount").then(function(g){return BwH("PromptCount",g+1)}).then(function(){return BwH("PromptTime",Date.now())}).then(function(){var g=_.o4("service_worker_push_force_notification_prompt_tag");
if(g)return hu("PromptTags").then(function(u){var q=[];if(u)try{q=JSON.parse(u)}catch(Q){return!1}q||(q=[]);q.push(g);return BwH("PromptTags",JSON.stringify(q))})})};
CHt=function(){iWz||AtK()};
bWn=function(g){g.style.zIndex=2147483648;g.style.pointerEvents="auto";g.style.backgroundColor="rgba(0, 0, 0, 0.6)";g.style.width="100%";g.style.height="100vh";g.style.position="absolute";g.style.top="0";g.style.left="0";g.style.border="none"};
dfL=function(){var g=_.a9(document,"yt-push-prompt-modal-bg");iWz=_.w("service_worker_push_prompt_modal_ignore_click");g?bWn(g):(g=_.e0("div",{id:"yt-push-prompt-modal-bg"}),bWn(g),document.body.appendChild(g),_.Wyq(document,"click",CHt))};
F7E=function(){var g=arguments;_.w("service_worker_push_prompt_modal_enable")&&dfL();return Notification.requestPermission().then(function(u){AtK();var q=document.getElementById("ticker");q&&(q.className=q.classList.remove("show"));if(u=="granted")return Jtp().then(function(){Dfz(!1);f0K();return Promise.resolve(!0)});
u=="denied"&&f0K();return Promise.resolve(!1)}).catch(function(){AtK();
return Promise.reject.apply(Promise,_.na(g))})};
mfz=function(g){g=g===void 0?!1:g;var u=_.AR().client;if(u&&u.browserVersion){var q=u.browserVersion,Q=u.browserName=="CHROME"&&_.eK(q,"50.0.0")<0;u=u.browserName=="OPERA"&&_.eK(q,"42.0.0")<0;if(Q||u)return Promise.resolve()}return eN9().then(function(L){if(!L)return Promise.resolve();L=Jtp().then(function(){return jph({type:"notifications_check_registration",data:_.FR("ID_TOKEN")})});
return Notification.permission!="default"?L.catch(function(){}):L.then(function(){return l0t(g)}).then(function(E){if(E)return I0f(),F7E().then(function(){})}).catch(function(){})})};
a0Z=function(g){return MFx(g)?mfz():Promise.resolve()};
VFz=function(g){var u=g.installing||g.waiting;return g.active||!u?Promise.resolve(g):new Promise(function(q){var Q=function(L){L=L.target;if(L.state==="activated"||L.state==="redundant")u.removeEventListener("statechange",Q),q(g)};
u.addEventListener("statechange",Q)})};
XCz=function(){var g=new _.fLF("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.SV(g,{mainAppWeb:_.Zq()});var u=_.IwZ;_.w("service_worker_forward_exp_params")&&(u=E6h(u));try{var q=_.oDM(u).catch(function(){_.o1(g,"FAILURE");return new Promise(function(){})});
_.w("service_worker_push_enabled")&&q.then(function(Q){_.o1(g,"SUCCESS");return Q}).then(VFz).then(a0Z)}catch(Q){if(_.o1(g,"FAILURE"),Q.name!=="SecurityError")throw Q;
}};
rtf=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&XCz()};
Kg=function(g,u,q,Q,L){var E={};u&&(E[u]=q);Q?E.errorType=Q:L&&(E.errorReason=L);_.H6(g,E);_.A_()};
W7f=function(g,u){var q={};u&&(q.serializedYpcFamilyCreateLoggingParams=u);_.H6(g,q);_.A_()};
TFC=function(g,u){var q={};q.serializedYpcRefundFlowLoggingParams=u;g&&(q.eventType=g);_.H6("ypcRefundFlowEvent",q);_.A_()};
hN9=function(g){g&&_.gzF("transactionFlowSucceeded",g)};
YRZ=function(){Kg("ypcRedeemFlowStarted")};
OW9=function(g){Kg("ypcRedeemFlowFailed",void 0,void 0,void 0,g)};
K7E=function(g){g&&Kg("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",g,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
xM=function(g){return function(u,q){var Q=g||q.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(u,q,{get:function(){var L;return this.$?this.$[Q]:(L=_.Sh(this))==null?void 0:L.querySelector("#"+Q)},
enumerable:!0,configurable:!0})}};
xfz=function(g){if(g=_.M4J(g)){var u;(u=g.sources)!=null&&u[0]?(u=_.epS(g),u=u<1?"VERTICAL":u>1?"HORIZONTAL":"SQUARE"):u=void 0;return u}};
BF9=function(g){return(g=_.M4J(g))?_.epS(g):0};
zNh=function(g){var u,q,Q,L,E,y,v;_.D(function(J){if(J.nextAddress==1)return J.yield(_.Jsq(),2);if(J.nextAddress!=3){if(!J.yieldResult)return J.return(!1);u=[];return J.yield(_.rL.keys(),3)}q=J.yieldResult;Q=_.N(q);for(L=Q.next();!L.done;L=Q.next())E=L.value,y=_.DeM(E),v=y.datasyncId,!v||g.includes(v)||u.push(_.rL.delete(E));return J.return(Promise.all(u).then(function(f){return f.some(function(t){return t})}))})};
n6t=function(){var g,u,q,Q,L,E,y;return _.D(function(v){if(v.nextAddress==1)return v.yield(_.Jsq(),2);if(v.nextAddress!=3){if(!v.yieldResult)return v.return(!1);g=_.DQ("cache contains other");return v.yield(_.rL.keys(),3)}u=v.yieldResult;q=_.N(u);for(Q=q.next();!Q.done;Q=q.next())if(L=Q.value,E=_.DeM(L),(y=E.datasyncId)&&y!==g)return v.return(!0);return v.return(!1)})};
kzh=function(g,u){return _.BC(g.entities,"timedMarkersListSyncEntity",u)};
SR9=function(g,u){return _.BC(g.entities,"liveReactionsDataEntity",u)};
o6Z=function(g,u){g=_.BC(g.entities,"booleanEntity",u);return!(!g||!g.value)};
Ufn=function(g,u){var q=_.j_();q&&g&&_.cC(q,_.Lr(g),u)};
gZC=function(g){return g.watch.isWatchActive};
uJC=function(g){return g.watch.isLearningJourneyActive};
q3n=function(g){return g.watch.watchWindowSize};
Q7L=function(g){return!_.fEJ(g)};
Br=function(g){return g.watch.watchScrollTop};
Lc9=function(g){return g.watch.isLiveChatCollapsed};
EZp=function(g,u){return _.BC(g.entities,"flowStateEntity",u)};
PRh=function(){var g=_.Bk().resolve(_.xv(_.bso));return g?g.getCurrentTime():0};
Nrt=function(g,u){g={videoId:g};u&&(g.playlistId=u);return g};
s7C=function(){var g,u,q,Q,L,E,y,v,J,f,t,e,G,R;return _.D(function(H){switch(H.nextAddress){case 1:g={},u=_.tHf(),q=_.N(Object.entries(u)),Q=q.next();case 4:if(Q.done){H.jumpTo(3);break}L=Q.value;E=_.N(L);y=E.next().value;v=E.next().value;J=y;f=v;if(!f){H.jumpTo(5);break}return H.yield(f(),8);case 8:g[J]=H.yieldResult;case 5:Q=q.next();H.jumpTo(4);break;case 2:t=_.N(),e=t.next();case 9:if(e.done){H.jumpTo(3);break}G=e.value;R=u[G];if(!R){H.jumpTo(10);break}return H.yield(R(),13);case 13:g[G]=H.yieldResult;
case 10:e=t.next();H.jumpTo(9);break;case 3:return H.return(g)}})};
yD9=function(){var g;_.D(function(u){if(u.nextAddress==1)return u.yield(s7C(),2);g=u.yieldResult;return u.yield(navigator.clipboard.writeText(JSON.stringify(g,null,2)),0)})};
vZK=function(g,u){if(g&&u){var q=_.ST();q().set(g,u);_.AE3(q())}};
DZH=function(g,u){if(g&&u){var q=_.ST();q().set(g,u);_.AE3(q())}};
pcC=function(g,u){return _.BC(g.entities,"superThanksSelectedTierEntity",u)};
JDf=function(g,u){return _.BC(g.entities,"contextNoteUserRatingEntityPayload",u)};
j7p=function(){_.w("web_watch_log_theater_mode")&&_.T3f("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
fsZ=function(g,u,q){if(!g.includes("START_TIME_PLACEHOLDER")||!g.includes("END_TIME_PLACEHOLDER"))return g;var Q=new Date(0),L=new Date(0);Q.setUTCMilliseconds(u);L.setUTCMilliseconds(q);return g.replace("START_TIME_PLACEHOLDER",_.AD(Q,7)).replace("END_TIME_PLACEHOLDER",_.AD(L,7))};
Mbf=function(g,u,q){var Q=q.minimumRowsOfVideosBetweenSections===void 0?1:q.minimumRowsOfVideosBetweenSections;return g<(q.minimumRowsOfVideosAtStart===void 0?2:q.minimumRowsOfVideosAtStart)||u!==null&&g-u<=Q?!1:!0};
tbn=function(g,u){var q=0,Q=0;g=_.N(g);for(var L=g.next();!L.done;L=g.next()){var E=L.value;if(E.richItemRenderer)E.richItemRenderer.rowIndex=Q,E.richItemRenderer.colIndex=q++,q===u&&(q=0,Q++);else if(E.richGroupRenderer&&E.richGroupRenderer.numColumns!==void 0)E.richGroupRenderer.rowIndex=Q,E.richGroupRenderer.colIndex=q,q+=E.richGroupRenderer.numColumns,q===u&&(q=0,Q++);else if(E.richSectionRenderer){var y=L=void 0;if(E=_.c((L=E)==null?void 0:(y=L.richSectionRenderer)==null?void 0:y.content,_.Yta))E.rowIndex=
Q++}}};
ehE=function(g,u){var q=u.contentElement;u=u.rendererToTagNameMap;if(q&&u&&u.size!==0){for(var Q=new Map,L=_.N(q.children),E=L.next();!E.done;E=L.next()){E=E.value;var y=E.tagName.toLowerCase(),v=Q.get(y);v||(v=[],Q.set(y,v));v.push(E)}if(Q.size!==0)for(L=Math.min(g.length,q.children.length),E=new Map,y=0;y<L;y++){v=Object.keys(g[y])[0];v=u.get(v);if(!v)break;var J=E.get(v);J===void 0&&(J=0,E.set(v,J));var f=Q.get(v);if(!f||J>=f.length)break;E.set(v,J+1);v=f[J];J=q.children[y];J!==v&&(_.Cr=!0,_.bF.set(v,
!0),q.insertBefore(v,J),_.bF.delete(v),_.Cr=!1)}}};
GNt=function(g,u,q,Q,L,E,y){Q=Q===void 0?{}:Q;if(!g||!g.length)return{orderedContent:[]};g=g.slice();var v=[],J=[];L=null;for(var f=0,t=function(z){J.sort(function(x,k){return k.skippedOnRow-x.skippedOnRow});
for(var O,W=(O=J.shift())==null?void 0:O.content;W;)!W.richSectionRenderer&&z||v.push(W),O=void 0,W=(O=J.shift())==null?void 0:O.content},e=void 0,G=void 0,R=new Set;g.length>0||J.length>0;){for(var H=[],l=u;l>0;){var d=void 0,F=void 0,V=(F=J[0]&&J[0].skippedOnRow<f?(d=J.shift())==null?void 0:d.content:void 0)!=null?F:g.shift();
if(!V)break;if(V.richItemRenderer)d=V.richItemRenderer.targetId,F=void 0,d&&((F=y)==null?0:F.has(d))&&(F=y.get(d),!e||F&&F.timestamp>e.timestamp)&&(e=F,G&&R.add(G),G=d),H.push(V),l--;else if(V.richGroupRenderer&&V.richGroupRenderer.numColumns!==void 0)V.richGroupRenderer.numColumns<=l?(H.push(V),l-=V.richGroupRenderer.numColumns):l===u&&V.richGroupRenderer.numColumns>u?(H.push({richGroupRenderer:Object.assign({},V.richGroupRenderer,{numColumns:u})}),l=0):J.push({content:V,skippedOnRow:f});else if(V.richSectionRenderer)if(Mbf(f,
L,Q)&&l===u){v.push(V);L=f;f++;continue}else J.push({content:V,skippedOnRow:f});else if(V.continuationItemRenderer){t(!0);v.push(V);l=0;break}if(l===0)v.push.apply(v,_.na(H));else if(!q&&g.length===0){t(!1);v.push.apply(v,_.na(H));l=0;break}}f++;e&&(v.push(e.content),f++);G=e=void 0}tbn(v,u);E&&ehE(v,E);return{orderedContent:v,pinnedContentNotShownTargetIds:R}};
$ZK=function(g){return g.shorts.isSmallScreenSqueezeback};
RhK=function(g){return g.shorts.isPlaybackStarted};
cDZ=function(){if(_.w("kevlar_home_skeleton")&&!wcH){var g=document.querySelector("#home-page-skeleton");g&&(_.fW("hgcr"),_.UU(g),wcH=!0)}};
ZUC=function(){if(_.VWh()){var g=_.FR("PLAYER_VARS",{});if(_.pH.get(g,"privembed",!1)!="1"&&!kBt(g)){var u=function(){HUh=!0;"google_ad_status"in window?_.di("DCLKSTAT",1):_.di("DCLKSTAT",2)};
try{_.Rr(_.iaC,u)}catch(q){}ADH.push(_.Hv.addLowPriorityJob(function(){if(!(HUh||"google_ad_status"in window)){try{_.IL3(_.iaC.toString(),u)}catch(q){}HUh=!0;_.di("DCLKSTAT",3)}},5E3))}}};
ls9=function(g){return!!g.getOptions("captions")};
IsC=function(g){return(g=g.getOption("captions","track"))?!!g.displayName:!1};
iU9=function(g){return aq(g,function(u){return u.languageCode==="en"})};
CRh=function(g){var u=z4;if(IsC(g))g.setOption("captions","stickyLoading",{}),g.setOption("captions","track",{});else{var q=aq(_.TsZ(g),function(Q){return Q.displayName===u});
g.setOption("captions","track",q)}};
bUf=function(g,u){return{popup:{searchSuggestionReportDialog:{searchQuery:g,title:_.Ug("SBOX_INAPPROPRIATE_TITLE"),suggestions:u,categoryLabel:_.Ug("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Ug("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Ug("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Ug("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Ug("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Ug("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Ug("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Ug("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Ug("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Ug("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
dZb=function(g){var u=_.qf();if(u.getFlag(202))u=u.getFlag(201);else{var q;u=(g==null?void 0:(q=g.config)==null?void 0:q.settingOnByDefault)!==void 0?g.config.settingOnByDefault:!_.Of("web_shorts_cinematics_disabled_by_default")}return u};
Fch=function(g){var u=_.qf();_.QX(0,201,g);_.QX(0,202,!0);u.save()};
mZh=function(g){var u,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z;return _.D(function(O){switch(O.nextAddress){case 1:return O.yield(_.k6(),2);case 2:return(u=O.yieldResult)?O.yield(_.iMh(u),3):O.return();case 3:q=O.yieldResult;if(!q)return O.return();L=((Q=q.offlineVideos)==null?void 0:Q.length)||0;y=((E=q.offlinePlaylists)==null?void 0:E.length)||0;if(L===0&&y===0)return O.return();v=0;if(q.offlineVideos)for(J=_.N(q.offlineVideos),f=J.next();!f.done;f=J.next())t=f.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
t.videoState&&(v+=1);g.offline_videos_count=L.toString();_.w("kevlar_log_offline_current_network_type_ks")||(g.offline_current_network_type=(e=_.vZF())!=null?e:"CONN_INVALID");_.w("kevlar_log_updated_time_for_smart_downloads")&&(G=_.bR().getState().entities,R=_.Ds(G),H=jrL(G),g.offline_smart_downloads_last_sync_time_ms=R.toString(),g.offline_smart_downloads_next_sync_time_ms=H.toString());g.offline_videos_playable=v.toString();g.offline_playlists_count=y.toString();q.offlineVideos&&(l=q.offlineVideos.reduce(function(W,
x){x.downloadedBytes&&(W+=Number(x.downloadedBytes));return W},0).toString())&&(g.offline_used_disk_space_bytes=l);
if(!((d=navigator)==null?0:(F=d.storage)==null?0:F.estimate)){O.jumpTo(4);break}return O.yield(navigator.storage.estimate(),5);case 5:V=O.yieldResult,g.offline_free_disk_space_bytes=(((z=V)==null?void 0:z.quota)||0).toString();case 4:g.offline_client_state=JSON.stringify(q),_.Wx(O)}})};
asn=function(g){g=g.match(/(.*)::.*::.*/);if(g!==null)return g[1]};
Vbt=function(g){if(_.kO3()){var u=Object.keys(window.sessionStorage);u=_.N(u);for(var q=u.next();!q.done;q=u.next()){q=q.value;var Q=asn(q);Q===void 0||g.includes(Q)||self.sessionStorage.removeItem(q)}}};
XcK=function(){if(!_.kO3())return!1;var g=_.DQ(),u=Object.keys(window.sessionStorage);u=_.N(u);for(var q=u.next();!q.done;q=u.next())if(q=asn(q.value),q!==void 0&&q!==g)return!0;return!1};
rDn=function(g){if(!g)return 0;var u=g.getPresentingPlayerType(),q=g.getVideoData();return q&&q.isLive?(g=g.getProgressState(u),g.seekableEnd-g.seekableStart):g.getDuration(u)};
ng=function(g,u){_.y5(u,g,function(){return WcC[u]},function(q){WcC[u]=q;
if(!_.w("mweb_player_ve_show_ks")){var Q=_.j_(0);Q&&q&&_.At(Q,q)}})};
kM=function(g){(g=WcC[g])&&_.zZ(_.gL(),g)};
TrZ=function(g,u){for(var q=_.N(Object.keys(g)),Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,g[Q]!==u[Q])return!1;return!0};
hhh=function(){return document.getElementById("player-control-overlay")};
Y3H=function(g){g!==-1&&!_.w("player_controls_log_creation_killswitch")&&hhh()&&(_.fW("pcu_cs",g),_.fW("pcu_ce"))};
OUt=function(g){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:g}}]}}}};
Kct=function(g,u,q,Q){var L=_.w("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;u=Object.assign({},{text:u,hasGradientBackground:q},Q&&{backgroundStyle:Q},L&&{itemTargetId:L});L=_.w("web_enable_chat_autoscroll_to_user_turn")&&L?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:L,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:u}],
insertByPositionInSection:{sectionTargetId:g,position:"INSERTION_POSITION_LAST"}}}]},L?{scrollConfig:L}:{})}}};
xZp=function(g,u){return _.BC(g.entities,"booleanEntity",u)};
Brt=function(){return function(g){_.bU(_.u2("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:g}))}};
zhh=function(g,u){u.stack&&(g.stack+="\n"+u.stack);return g};
nZt=function(){this.isInputValid_=!0;this.JSC$19603_streamPos_=0;this.leftoverInput_=""};
kNp=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19606_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
g_t=function(g){var u=S3b(g,"Content-Type");if(!u)return null;u=u.toLowerCase();if(u.startsWith("application/json"))return u.startsWith("application/json+protobuf")?new oZt:new _.vU;if(u.startsWith("application/x-protobuf")){g=S3b(g,"Content-Transfer-Encoding");if(!g)return new kNp;if(g.toLowerCase()=="base64")return new UZH}return null};
yRb=function(g,u,q,Q){var L=new uTh(function(v,J){return qxt.has(J)?v.sentinel==="gal"&&v.event!==void 0:!1},function(v){v.event?(v=QEZ(v.event),v=!v||LCZ(Q,v)?!0:_.QE(g.lastEvent,Sr,2,oq)?!_.QE(v,U8,1,oq)&&!_.QE(v,Sr,2,oq):!_.QE(v,U8,1,oq)&&!_.QE(v,Sr,3,oq)):v=!0;
return v});
q=_.Zi(g.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",E_f(q)]]));if(g.nestedOrigins!==void 0)for(var E=_.N(g.nestedOrigins),y=E.next();!y.done;y=E.next())q=_.Zi(q,new Map([["origin",y.value]]));return Pdn(L,q,u).then(function(v){v=N$Z(v.event);if(_.QE(v,U8,1,oq)){var J,f=(J=_.t2(v,U8,1,oq))==null?void 0:_.j$(J,2);f&&Q.JSC$19658_logErrorEvent(sEn(f));J=_.t2(v,U8,1,oq);_.j$(J,2)===4?(v=_.t2(v,U8,1,oq),v={statusCode:11,statusMessage:_.J2(v,
3)}):(v=_.t2(v,U8,1,oq),v={statusCode:12,statusMessage:_.J2(v,3)});return v}_.QE(v,Sr,3,oq)?(v=_.t2(v,Sr,3,oq),v={statusCode:1,consentLanguageKeys:_.J2(v,2)}):v={statusCode:1};return v}).catch(function(v){return v.errorCode!==void 0?{statusCode:v.errorCode,
statusMessage:v.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
JRb=function(g){var u={};if(g===void 0||g===null)return u;g.getToken()!==void 0&&v_b(g.getToken())&&v_b(g.getToken()).length>0&&(u.scopes=new Set(v_b(g.getToken())));g.getToken()!==void 0&&DRn(g.getToken())&&DRn(g.getToken()).length>0&&(u.capabilities=new Set(DRn(g.getToken())));_.J2(g,3)!==void 0&&(u.consistencyKey=_.J2(g,3));g.getName()!==void 0&&g.getName()!==""&&(u.linkName=g.getName());_.gm(g,p9x,4)&&(g=_.o0(g,p9x,4),g=Object.assign({},_.J2(g,1)&&{userId:_.J2(g,1)},_.J2(g,2)&&{displayName:_.J2(g,
2)},_.J2(g,3)&&{email:_.J2(g,3)},_.J2(g,5)&&{username:_.J2(g,5)},_.J2(g,4)&&{profilePicture:_.J2(g,4)}),u.profile=g);return u};
jE9=function(g,u){var q=g.flowParams,Q;return{serviceId:q.serviceId,sessionId:q.sessionId,currentFlow:g.currentFlow,googleScopesString:u,linkingSessionSerialized:g.session.serialize(),consentLanguageKeys:q.consentLanguageKeys,callerState:g.callerState,dynamicUrlParameters:q.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(Q=q.partnerConfigMinReadTimestamp)==null?void 0:Q.serialize()}};
Grb=function(g){var u=g.googleScopes!==void 0?Array.from(g.googleScopes).join(","):"";fqZ(jE9(g,u),g.config.localStorage);u=MhH(g);return u===null?Promise.resolve(thK):u.start().then(function(q){var Q,L=(Q=q.link)==null?void 0:Q.consistencyKey;return q.statusCode===1&&g.googleScopes!==void 0&&g.googleScopes.size>0&&L!==void 0?(Q=g.flowParams,e5H(Q.serviceId,Q.sessionId,g.googleScopes,L,Q.galService,g.config,q)):q})};
R5p=function(g){var u=MhH(g);return u===null?Promise.resolve($Rh({statusCode:7,statusMessage:"Failed to create flow object"},g.callerState)):u.complete().then(function(q){var Q,L=(Q=q.link)==null?void 0:Q.consistencyKey;return q.statusCode===1&&g.googleScopes!==void 0&&g.googleScopes.size>0&&L!==void 0?(Q=g.flowParams,e5H(Q.serviceId,Q.sessionId,g.googleScopes,L,Q.galService,g.config,q)):$Rh(q,g.callerState)},function(q){return $Rh({statusCode:12,
statusMessage:"Failed to complete the flow: "+q.message},g.callerState)})};
e5H=function(g,u,q,Q,L,E,y){return w9p(L,{serviceId:g,sessionId:u,googleScopes:q,consistencyKey:Q}).then(function(){return y},function(v){return L.deleteLink({serviceId:g,
sessionId:u,accountLinkingEntryPoint:E.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+v.message}},function(J){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+J.message}})})};
MhH=function(g){switch(g.currentFlow){case 1:var u=g.flowParams;g=_.o0(g.session,cRh,1);return H69.createOAuthFlow(u,g);case 2:case 3:return u=g.flowParams,g=_.o0(g.session,ARK,6),Z6p.createStreamlinedFlow(u,g);default:return null}};
Iqp=function(g,u){g===2&&(g=3);var q=0;lq9.indexOf(g)!==-1&&(q=lq9.indexOf(g)+1);for(g=q;g<lq9.length;g++)if(u.has(lq9[g]))return lq9[g]};
b6n=function(g){var u=g.serviceId;var q=g.sessionId;var Q=g.config;var L=g.galService;var E=g.capabilities;var y=g.scopes;var v=g.loginHint;var J=g.callerState;var f=g.consentLanguageKeys;var t=g.linkName;var e=g.dynamicUrlParameters;var G=g.partnerConfigMinReadTimestamp;g=Q.dataUsageNoticeConfig?Q.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return L.startLinkingSession({serviceId:u,sessionId:q,capabilities:E,scopes:y,loginHint:v,callerState:J,supportedFlows:i6t(Q.supportedFlows),completionUrl:Q.completionUrl,
accountLinkingEntryPoint:Q.accountLinkingEntryPoint,consentLanguageKeys:f,dataUsageNoticeConfig:g,linkName:t,dynamicUrlParameters:e,partnerConfigMinReadTimestamp:G}).then(function(R){return new Cdp(u,q,Q,L,R,void 0,J,f,e,G)})};
X9f=function(g,u,q){var Q=(new dRp(u.localStorage)).getSession(g);if(Q===null)return Promise.resolve({statusCode:2});FCE(g,u.localStorage);var L=mRC(Q.linkingSessionSerialized),E=Q.googleScopesString!==""&&Q.googleScopesString!==void 0?new Set(Q.googleScopesString.split(",")):void 0,y=Q.partnerConfigMinReadTimestampSerialized?aqL(Q.partnerConfigMinReadTimestampSerialized):void 0;return Vhf(new Cdp(g,Q.sessionId,u,q,L,E,Q.callerState,Q.consentLanguageKeys,Q.dynamicUrlParameters,y),Q.currentFlow,Q.consentLanguageKeys)};
fqZ=function(g,u){u=new dRp(u);u.storage!==null&&u.storage.set("SAVED_SESSION",g)};
FCE=function(g,u){u=new dRp(u);if(u.storage!==null){var q=u.storage.get("SAVED_SESSION");q!==void 0&&q.serviceId===g&&u.storage.remove("SAVED_SESSION")}};
i6t=function(g){var u=new Set;g=_.N(g);for(var q=g.next();!q.done;q=g.next())q=q.value,q!==1&&rRh.has(q)&&u.add(rRh.get(q));return u};
$Rh=function(g,u){u!==void 0&&(g.callerState=u);return g};
WCb=function(g){switch(g){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
YxC=function(g){return new T$h(g,new h5p(g))};
xRz=function(g,u){u=u===void 0?!1:u;var q=document.createElement("div");g&&(q.style.transform="scaleX(-1)");q.style.backgroundColor=u?"rgba(138,180,248,.24)":"#e8f0fe";q.style.height="4px";q.style.overflow="hidden";q.style.position="absolute";q.style.top="0";q.style.width="100%";q.style.zIndex="1500";q.setAttribute("aria-label","Loading");q.setAttribute("aria-live","polite");g=document.createElement("style");g.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  }";
q.appendChild(g);g=O6x();g.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";g.style.left="-145.166611%";var Q=KCb(u);Q.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";g.appendChild(Q);q.appendChild(g);g=O6x();g.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";g.style.left="-54.888891%";u=KCb(u);u.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
g.appendChild(u);q.appendChild(g);return q};
O6x=function(){var g=document.createElement("div");g.style.height="100%";g.style.position="absolute";g.style.transformOrigin="top left";g.style.width="100%";return g};
KCb=function(g){var u=document.createElement("span");u.style.borderTop=g?"4px solid #669df6":"4px solid #4285f4";u.style.display="inline-block";u.style.position="absolute";u.style.width="100%";return u};
B$x=function(g){return g==null?void 0:_.RUb(g).valueOf()};
SxE=function(g){var u=document.body,q=!1,Q=function(){q||(q=!0,z5L(L,E),setTimeout(function(){u.removeChild(E);u.removeChild(L)},150))},L=n_p(g,getComputedStyle(u).direction==="rtl",Q),E=krn(Q);
z5L(L,E);u.appendChild(E);u.appendChild(L);window.requestAnimationFrame(function(){E.style.opacity="1";L.style.opacity="1";L.style.transform="translate(-50%, -50%) scale(1)";L.children[0].focus()})};
n_p=function(g,u,q){var Q=document.createElement("div");Q.style.position="fixed";Q.style.alignItems="center";Q.style.backgroundColor=g?"rgb(32, 33, 36)":"white";Q.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";Q.style.display="flex";Q.style.flexDirection="column";Q.style.justifyContent="center";Q.style.left="50%";Q.style.top="50%";Q.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";Q.style.zIndex="2002";document.body.clientWidth>=
660?(Q.style.borderRadius="8px",Q.style.minHeight="220px",Q.style.maxHeight="90%",Q.style.maxWidth="90%",Q.style.minWidth="540px"):(Q.style.height="100%",Q.style.width="100%");Q.setAttribute("aria-label","Error");Q.setAttribute("aria-modal","true");Q.setAttribute("role","alertdialog");Q.addEventListener("keydown",function(E){E.key==="Escape"&&q()});
u=o_t(g,u,q);Q.appendChild(URn(u));Q.appendChild(u);var L=document.createElement("img");L.src=g?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";L.style.height="72px";L.style.width="72px";L.style.color="#9aa0a6";L.setAttribute("alt","");Q.appendChild(L);L=document.createElement("h1");L.textContent="Something went wrong.  Try again.";
L.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";L.style.lineHeight="24px";L.style.fontSize="16px";L.style.textAlign="center";L.style.letterSpacing="0.1px";L.style.color=g?"rgb(232,234,237)":"#3c4043";Q.appendChild(L);Q.appendChild(URn(u));return Q};
o_t=function(g,u,q){var Q=document.createElement("button");Q.style.backgroundColor="transparent";Q.style.border="none";Q.style.borderRadius="50%";Q.style.cursor="pointer";Q.style.outline="none";Q.style.padding="12px";Q.setAttribute("aria-label","Close dialog");Q.style.position="absolute";Q.style.top="0";u?Q.style.right="0":Q.style.left="0";Q.addEventListener("focus",function(){Q.style.backgroundColor=g?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
Q.addEventListener("blur",function(){Q.style.backgroundColor="transparent"});
Q.addEventListener("mouseenter",function(){Q.style.backgroundColor=g?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
Q.addEventListener("mouseleave",function(){Q.style.backgroundColor="transparent"});
Q.addEventListener("click",q);Q.addEventListener("keydown",function(L){L.key!=="Enter"&&L.key!=="Space"||q()});
u=document.createElement("img");u.src=g?"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";u.style.display="block";u.style.height="24px";u.style.width="24px";u.setAttribute("alt","");Q.appendChild(u);return Q};
URn=function(g){var u=document.createElement("div");u.setAttribute("tabindex","0");u.setAttribute("aria-hidden","true");u.addEventListener("focus",function(){return void g.focus()});
return u};
krn=function(g){var u=document.createElement("div");u.style.backgroundColor="rgba(32,33,36,0.6)";u.style.bottom="0";u.style.left="0";u.style.position="fixed";u.style.right="0";u.style.top="0";u.style.transition=" opacity 150 ms linear";u.style.zIndex="2001";u.addEventListener("click",g);return u};
z5L=function(g,u){u.style.opacity="0";g.style.opacity="0";g.style.transform="translate(-50%, -50%) scale(0.8)"};
g9h=function(g,u){g.sandbox&&g.sandbox.add&&(g.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),g.sandbox.add("allow-downloads"));g.src=u};
gQ=function(g){this.JSC$19846_value_=void 0;this.childNodes_={};if(g){var u=_.Qon(g);g=_.VV(g);for(var q=0;q<u.length;q++)this.set(u[q],g[q])}};
uQ=function(g){uIt.call(this,g)};
PUh=function(g,u){u=u===void 0?!1:u;this.parsedImageUrl_=null;g instanceof qix||(Q5C==void 0&&(Q5C=new LXC),g=Q5C.parse(g.toString(),u));g=this.parsedImageUrl_=g;g.JSC$19871_parsedOptions_==void 0&&((u=g.getOptions())||(u=""),g.JSC$19871_parsedOptions_=(new E9h).parse(u));uIt.call(this,g.JSC$19871_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;g=this.parsedImageUrl_;u=g.uri_.JSC$10339_port_;this.JSC$19873_domain_=g.uri_.JSC$10339_domain_+(u?":"+u:"");this.JSC$19873_query_=
this.parsedImageUrl_.uri_.JSC$10339_queryData_.toString()};
ql=function(g){_.Pt.call(this,"upload");this.opts.query=g};
NOL=function(g){this.mode=4;this.data=g;this.parsedData=[];g=0;for(var u=this.data.length;g<u;g++){var q=[],Q=this.data.charCodeAt(g);Q>65536?(q[0]=240|(Q&1835008)>>>18,q[1]=128|(Q&258048)>>>12,q[2]=128|(Q&4032)>>>6,q[3]=128|Q&63):Q>2048?(q[0]=224|(Q&61440)>>>12,q[1]=128|(Q&4032)>>>6,q[2]=128|Q&63):Q>128?(q[0]=192|(Q&1984)>>>6,q[1]=128|Q&63):q[0]=Q;this.parsedData.push(q)}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))};
s5f=function(g){this.typeNumber=0;this.errorCorrectLevel=g===void 0?2:g;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Q6=function(g,u){if(g.length==void 0)throw Error("Mk`"+g.length+"`"+u);for(var q=0;q<g.length&&g[q]==0;)q++;this.num=Array(g.length-q+u);for(u=0;u<g.length-q;u++)this.num[u]=g[u+q]};
yrt=function(g,u){this.totalCount=g;this.dataCount=u};
v9L=function(){this.buffer=[];this.length=0};
DmH=function(){var g=!1;if(_.HZf()){g=_.GM();var u="";_.lku()?(u=/Windows (?:NT|Phone) ([0-9.]+)/,u=(g=u.exec(g))?g[1]:"0.0"):_.bh()?(u=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,u=(g=u.exec(g))&&g[1].replace(/_/g,".")):_.ZZq()?(u=/Mac OS X ([0-9_.]+)/,u=(g=u.exec(g))?g[1].replace(/_/g,"."):"10"):_.JT(_.GM(),"KaiOS")?(u=/(?:KaiOS)\/(\S+)/i,u=(g=u.exec(g))&&g[1]):_.HZf()?(u=/Android\s+([^\);]+)(\)|;)/,u=(g=u.exec(g))&&g[1]):_.Iku()&&(u=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,u=(g=u.exec(g))&&g[1]);g=
u||""}return g};
tPf=function(g,u){this.JSC$19902__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(u)for(var q in u)this.JSC$19902__htOption[q]=u[q];this.JSC$19902__htOption.useSVG&&(p$f=JrZ);this.JSC$19902__android=DmH();this.JSC$19902__el=g;this._oQRCode=null;this._oDrawing=new p$f(this.JSC$19902__el,this.JSC$19902__htOption);this.JSC$19902__htOption.text&&(g=this.JSC$19902__htOption.text,this._oQRCode=new s5f(this.JSC$19902__htOption.correctLevel),j5E(this._oQRCode,
g),u=this._oQRCode,f3Z(u,!1,MPZ(u)),this.JSC$19902__el.title=g,this._oDrawing.draw(this._oQRCode),this.makeImage())};
eqb=function(g,u,q,Q,L){g.save();var E=new Path2D;E.roundRect(u,q,Q*7,Q*7,Q*2);E.roundRect(u+Q,q+Q,Q*5,Q*5,Q*1.3);E.roundRect(u+2*Q,q+2*Q,Q*3,Q*3,Q);g.clip(E,"evenodd");g.fillStyle=L;g.fillRect(0,0,g.canvas.width,g.canvas.height);g.restore()};
$mb=function(){return GeL=GeL||new _.A5};
RqL=function(g){_.YF.call(this,"serverreachability",g)};
w$h=function(g){var u=$mb();u.dispatchEvent(new RqL(u,g))};
crt=function(g,u){_.YF.call(this,"statevent",g);this.stat=u};
L$=function(g){var u=$mb();u.dispatchEvent(new crt(u,g))};
HEp=function(g,u,q,Q){_.YF.call(this,"timingevent",g);this.size=u;this.rtt=q;this.retries=Q};
Arh=function(g,u,q){var Q=$mb();Q.dispatchEvent(new HEp(Q,g,u,q))};
ZEb=function(g,u){if(typeof g!=="function")throw Error("Pk");return _.Qq.setTimeout(function(){g()},u)};
Eu=function(){this.redactEnabled_=!0};
PZ=function(g,u,q,Q,L){this.JSC$19924_channel_=g;this.JSC$19924_channelDebug_=u;this.sid_=q;this.JSC$19924_rid_=Q;this.JSC$19924_retryId_=L||1;this.JSC$19924_eventHandler_=new _.NV(this);this.timeout_=45E3;this.JSC$19924_extraHeaders_=null;this.JSC$19924_successful_=!1;this.JSC$19924_postData_=this.JSC$19924_requestUri_=this.JSC$19924_baseUri_=this.JSC$19924_type_=this.JSC$19924_requestStartTime_=this.JSC$19924_watchDogTimeoutTime_=this.JSC$19924_watchDogTimerId_=null;this.JSC$19924_pendingMessages_=
[];this.JSC$19924_xmlHttp_=null;this.JSC$19924_xmlHttpChunkStart_=0;this.JSC$19924_lastError_=this.JSC$19924_verb_=null;this.JSC$19924_lastStatusCode_=-1;this.JSC$19924_cancelled_=!1;this.JSC$19924_readyStateChangeThrottleMs_=0;this.JSC$19924_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new l3L};
I3C=function(g,u){var q=new Eu;q.debug("TestLoadImage: loading "+g);if(_.Qq.Image){var Q=new Image;Q.onload=_.uH(Nl,q,"TestLoadImage: loaded",!0,u,Q);Q.onerror=_.uH(Nl,q,"TestLoadImage: error",!1,u,Q);Q.onabort=_.uH(Nl,q,"TestLoadImage: abort",!1,u,Q);Q.ontimeout=_.uH(Nl,q,"TestLoadImage: timeout",!1,u,Q);_.Qq.setTimeout(function(){if(Q.ontimeout)Q.ontimeout()},1E4);
Q.src=g}else u(!1)};
iEH=function(g,u){var q=new Eu,Q=new AbortController,L=setTimeout(function(){Q.abort();Nl(q,"TestPingServer: timeout",!1,u)},1E4);
fetch(g,{signal:Q.signal}).then(function(E){clearTimeout(L);E.ok?Nl(q,"TestPingServer: ok",!0,u):Nl(q,"TestPingServer: server error",!1,u)}).catch(function(){clearTimeout(L);
Nl(q,"TestPingServer: error",!1,u)})};
Nl=function(g,u,q,Q,L){try{g.debug(u),L&&(L.onload=null,L.onerror=null,L.onabort=null,L.ontimeout=null),Q(q)}catch(E){}};
bEb=function(){this.JSC$19938_parser_=new CUL};
dmt=function(g,u,q){return q&&q.internalChannelParams?q.internalChannelParams[g]||u:u};
su=function(g){this.serverVersion_=0;this.JSC$19943_outgoingMaps_=[];this.JSC$19943_channelDebug_=new Eu;this.JSC$19943_hostPrefix_=this.JSC$19943_backChannelUri_=this.JSC$19943_forwardChannelUri_=this.JSC$19943_path_=this.JSC$19943_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19943_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19943_extraHeaders_=null;this.JSC$19943_nextMapId_=this.JSC$19943_nextRid_=0;this.JSC$19943_failFast_=dmt("failFast",
!1,g);this.enableStreaming_=this.JSC$19943_deadBackChannelTimerId_=this.JSC$19943_backChannelTimerId_=this.JSC$19943_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19943_lastPostResponseArrayId_=this.JSC$19943_lastArrayId_=-1;this.JSC$19943_backChannelAttemptId_=this.JSC$19943_backChannelRetryCount_=this.JSC$19943_forwardChannelRetryCount_=0;this.JSC$19943_baseRetryDelayMs_=dmt("baseRetryDelayMs",5E3,g);this.JSC$19943_retryDelaySeedMs_=
dmt("retryDelaySeedMs",1E4,g);this.JSC$19943_forwardChannelMaxRetries_=dmt("forwardChannelMaxRetries",2,g);this.JSC$19943_forwardChannelRequestTimeoutMs_=dmt("forwardChannelRequestTimeoutMs",2E4,g);this.JSC$19943_xmlHttpFactory_=g&&g.xmlHttpFactory||void 0;this.networkTestUrl_=g&&g.networkTestUrl||void 0;this.usesFetchStreams_=g&&g.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19943_supportsCrossDomainXhrs_=g&&g.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new FXL(g&&g.concurrentRequestLimit);this.wireCodec_=new bEb;this.fastHandshake_=g&&g.fastHandshake||!1;this.encodeInitMessageHeaders_=g&&g.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19943_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=g&&g.blockingHandshake||!1;g&&g.disableRedact&&this.JSC$19943_channelDebug_.disableRedact();g&&g.forceLongPolling&&(this.allowStreamingMode_=
!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&g&&g.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;g&&g.longPollingTimeout&&g.longPollingTimeout>0&&(this.longPollingTimeout_=g.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
mmf=function(){};
y6=function(g,u){if(g instanceof y6)this.array_=g.array_;else{var q;if(q=_.xu(g))a:{for(var Q=q=0;Q<g.length;Q++){if(!_.xu(g[Q])||q>0&&g[Q].length!=q){q=!1;break a}for(var L=0;L<g[Q].length;L++)if(typeof g[Q][L]!=="number"){q=!1;break a}q==0&&(q=g[Q].length)}q=q!=0}if(q)this.array_=_.Ob(g);else if(g instanceof _.IW)this.array_=a3Z(g.height,g.width);else if(typeof g==="number"&&typeof u==="number"&&g>0&&u>0)this.array_=a3Z(g,u);else throw Error("Tk");}this.size_=new _.IW(this.array_[0].length,this.array_.length)};
vZ=function(g,u){if(typeof g!=="function")throw Error("Pk");return _.Qq.setTimeout(function(){g()},u)};
DE=function(g,u,q,Q,L){this.JSC$19970_channel_=g;this.JSC$19970_channelDebug_=u;this.sid_=q;this.JSC$19970_rid_=Q;this.JSC$19970_retryId_=L||1;this.timeout_=45E3;this.JSC$19970_eventHandler_=new _.NV(this);this.pollingTimer_=new _.vD;this.pollingTimer_.setInterval(250)};
p$=function(){};
X$L=function(g,u,q,Q,L){(new p$).debug("TestLoadImageWithRetries: "+L);if(Q==0)q(!1);else{var E=L||0;Q--;VPf(g,u,function(y){y?q(!0):_.Qq.setTimeout(function(){X$L(g,u,q,Q,E)},E)})}};
VPf=function(g,u,q){var Q=new p$;Q.debug("TestLoadImage: loading "+g);var L=new Image;L.onload=function(){try{Q.debug("TestLoadImage: loaded"),rrn(L),q(!0)}catch(E){}};
L.onerror=function(){try{Q.debug("TestLoadImage: error"),rrn(L),q(!1)}catch(E){}};
L.onabort=function(){try{Q.debug("TestLoadImage: abort"),rrn(L),q(!1)}catch(E){}};
L.ontimeout=function(){try{Q.debug("TestLoadImage: timeout"),rrn(L),q(!1)}catch(E){}};
_.Qq.setTimeout(function(){if(L.ontimeout)L.ontimeout()},u);
L.src=g};
rrn=function(g){g.onload=null;g.onerror=null;g.onabort=null;g.ontimeout=null};
WXt=function(g,u){this.JSC$19977_channel_=g;this.JSC$19977_channelDebug_=u;this.JSC$19977_parser_=new CUL};
JG=function(g,u,q){this.state_=1;this.JSC$19980_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19980_channelDebug_=new p$;this.JSC$19980_parser_=new CUL;this.firstTestResults_=g||null;this.secondTestResults_=u!=null?u:null;this.asyncTest_=q||!1};
TOZ=function(){this.front_=[];this.back_=[]};
jo=function(g){this.JSC$19995_map_=new _.Jg;this.size=0;g&&this.addAll(g)};
hqt=function(g,u){this.action=g;this.params=u||{}};
f$=function(g,u){_.Lh.call(this);this.delay_=new _.PD(this.JSC$20069_onTick_,0,this);_.z$(this,this.delay_);this.JSC$20067_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof g==="function")u&&(g=(0,_.EH)(g,u));else if(g&&typeof g.handleEvent==="function")g=(0,_.EH)(g.handleEvent,g);else throw Error("za");this.JSC$20069_listener_=g};
Ml=function(g,u,q,Q,L,E,y,v,J,f,t,e,G,R,H,l){var d=this;q=q===void 0?!1:q;Q=Q===void 0?function(){return""}:Q;
L=L===void 0?!1:L;E=E===void 0?!1:E;y=y===void 0?!1:y;v=v===void 0?function(){return _.BX({})}:v;
J=J===void 0?!1:J;t=t===void 0?!1:t;e=e===void 0?!1:e;G=G===void 0?!1:G;R=R===void 0?!1:R;this.JSC$20070_pathPrefix_=g;this.defaultQueryParams_=u;this.pubsub_=new _.PW;this.retryLogger_=l;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!H)?H(function(){d.safeReconnect_()}):new f$(this.safeReconnect_,this);
this.JSC$20070_channel_=null;this.JSC$20070_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20070_pendingMessages_=[];this.enableAsyncTest_=q;this.JSC$20070_getXsrfToken_=Q;this.useAsyncBrowserChannelHandler_=E;this.getAuthorizationHeader_=v;this.getAuthorizationHeaderSync_=f;this.enableCachedUpdateAuthorizationHeader_=y;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.BX();this.enableLoungeTokenRefresh_=L;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
J;this.disableMdxAuthForNonPlaybackMessages_=t;this.disableMdxAuthForAdMessages_=e;this.enableMdxAuthForConnectionOnly_=G;this.disableMdxAuthForShortsMessages_=R;this.JSC$20070_channelOpenedCounter=new Yip;this.JSC$20070_channelClosedCounter=new OEC;this.channelMessageSentCounter=new KXn;this.JSC$20070_channelMessageReceivedCounter=new xmL;this.JSC$20070_channelErrorCounter=new BOC;this.pendingMapsOnClosedCounter=new zqZ;this.undeliveredMapsOnClosedCounter=new n9Z};
kex=function(g){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;g=g||document.location.href;var u=Number(_.Wq(g)[4]||null)||"";u&&(this.port=":"+u);this.domain=_.h1(g)||"";g=_.GM();g.search("MSIE")>=0&&_.eK(g.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
tG=function(g){g=g||{};this.name=g.name||"";this.id=g.id||g.screenId||"";this.token=g.token||g.loungeToken||"";this.uuid=g.uuid||g.dialId||"";this.idType=g.screenIdType||"normal";this.secret=g.screenIdSecret||""};
Sit=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(g){var u=Math.random()*16|0;return(g=="x"?u:u&3|8).toString(16)})};
o9p=function(g){return _.Jk(g,function(u){return{key:u.id,name:u.name}})};
Umx=function(g,u){return aq(g,function(q){return q||u?!q!=!u?!1:q.id==u.id:!0})};
eo=function(g,u){return aq(g,function(q){return gH9(q,u)})};
EHt=function(){var g=uht(),u=qEx();if(QTt()){var q=g,Q=_.VKq(q,u);Q<0&&_.FJb(q,-(Q+1),0,u)}g=Lyh(g);if(g.length==0)try{_.PRM("remote_sid")}catch(L){}else try{_.yW("remote_sid",g.join(","),-1)}catch(L){}};
uht=function(){var g=_.P9("yt-remote-connected-devices")||[];g.sort(_.akq);return g};
Lyh=function(g){if(g.length==0)return[];var u=g[0].indexOf("#"),q=u==-1?g[0]:g[0].substring(0,u);return _.Jk(g,function(Q,L){return L==0?Q:Q.substring(q.length)})};
PFt=function(g){_.Ex("yt-remote-connected-devices",g,86400)};
qEx=function(){if(NL9)return NL9;var g=_.P9("yt-remote-device-id");g||(g=Sit(),_.Ex("yt-remote-device-id",g,31536E3));for(var u=uht(),q=1,Q=g;_.WS(u,Q);)q++,Q=g+"#"+q;return NL9=Q};
sTh=function(){return _.P9("yt-remote-session-browser-channel")};
QTt=function(){return _.P9("yt-remote-session-screen-id")};
DYC=function(g){g.length>5&&(g=g.slice(g.length-5));var u=_.Jk(yo9(),function(Q){return Q.loungeToken}),q=_.Jk(g,function(Q){return Q.loungeToken});
_.cAK(q,function(Q){return!_.WS(u,Q)})&&vHh();
_.Ex("yt-remote-local-screens",g,31536E3)};
yo9=function(){return _.P9("yt-remote-local-screens")||[]};
vHh=function(){_.Ex("yt-remote-lounge-token-expiration",!0,86400)};
p1E=function(g){g||(_.yY("yt-remote-session-screen-id"),_.yY("yt-remote-session-video-id"));EHt();g=uht();_.TM(g,qEx());PFt(g)};
jTz=function(){Job();return Gi?!!Gi.get("yt-remote-use-staging-server"):!1};
Job=function(){if(!Gi){var g=_.G8();g&&(Gi=new _.jj(g))}};
eEE=function(g,u,q,Q,L){q=q===void 0?function(){return""}:q;
var E=function(){return new Ml($c(g,"/bc"),u,!1,q,Q)};
return _.w("enable_mdx_web_channel_desktop")?new fah(function(){return new Myx($c(g,"/wc"),u,q)}):new tyL(E,L)};
w1z=function(){var g=Gy9;$Yp();Ra.push(g);REh()};
wQ=function(g,u){$Yp();var q=con(g,String(u));Ra.length==0?Hrp(q):(REh(),_.Tv(Ra,function(Q){Q(q)}))};
cZ=function(g){wQ("CP",g)};
$Yp=function(){Ra||(Ra=_.ri("yt.mdx.remote.debug.handlers_")||[],_.xQ("yt.mdx.remote.debug.handlers_",Ra))};
Hrp=function(g){var u=(Ao9+1)%50;Ao9=u;Zrz[u]=g;laz||(laz=u==49)};
REh=function(){var g=Ra;if(Zrz[0]){var u=laz?Ao9:-1,q={};do q={record$jscomp$15:void 0},u=(u+1)%50,q.record$jscomp$15=Zrz[u],_.Tv(g,function(Q){return function(L){L(Q.record$jscomp$15)}}(q));
while(u!=Ao9);Zrz=Array(50);Ao9=-1;laz=!1}};
con=function(g,u){var q=(Date.now()-IaL)/1E3;q.toFixed&&(q=q.toFixed(3));var Q=[];Q.push("[",q+"s","] ");Q.push("[","yt.mdx.remote","] ");Q.push(g+": "+u,"\n");return Q.join("")};
AG=function(g){HZ.call(this);this.JSC$20099_logName_=g;this.screens=[]};
lQ=function(g){AG.call(this,"LocalScreenService");this.JSC$20106_http_=g;this.loungeTokenRefreshTimer_=NaN;ZE(this);this.info("Initializing with "+irf(this.screens))};
Ia=function(g,u){u=u===void 0?!1:u;AG.call(this,"ScreenService");this.JSC$20112_http_=g;this.disableAutomaticScreenCache_=u;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};CFn(this)};
iQ=function(g,u,q){HZ.call(this);this.JSC$20116_logName_=q;this.JSC$20116_screenService_=g;this.receiver_=u;this.screen_=null};
BLn=function(g,u,q){q.disableCastApi?C$("Cannot initialize because disabled by Mdx config."):brK()?dYK(g,q)&&(Fyt(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?mYZ(u):(window.__onGCastApiAvailable=function(Q,L){Q?mYZ(u):(bQ("Failed to load cast API: "+L),aax(!1),Fyt(!1),_.yY("yt-remote-cast-available"),_.yY("yt-remote-cast-receiver"),Vyf(),u(!1))},q.loadCastApiSetupScript?_.Rr(X1E):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
roC()>=60&&Wyp():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?TLZ():roC()>=89?hEz():(YEp(),Orx(KyC.map(xYh))))):C$("Cannot initialize because not running Chrome")};
Vyf=function(){C$("dispose");var g=dQ();g&&g.dispose();_.xQ("yt.mdx.remote.cloudview.instance_",null);zEh(!1);_.xYM(nHx);nHx.length=0};
kyf=function(){return!!_.P9("yt-remote-cast-installed")};
SEZ=function(){var g=_.P9("yt-remote-cast-receiver");return g?g.friendlyName:null};
oHn=function(){C$("clearCurrentReceiver");_.yY("yt-remote-cast-receiver")};
UYt=function(){return kyf()?dQ()?dQ().getCastSession():(bQ("getCastSelector: Cast is not initialized."),null):(bQ("getCastSelector: Cast API is not installed!"),null)};
u09=function(g,u){gqn()?dQ().setConnectedScreenStatus(g,u):bQ("setConnectedScreenStatus called before ready.")};
brK=function(){var g=_.GM().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.nT||g};
dYK=function(g,u){var q=!1;dQ()||(g=new F5(g,u),g.subscribe("yt-remote-cast2-availability-change",function(Q){_.Ex("yt-remote-cast-available",Q);VO("yt-remote-cast2-availability-change",Q)}),g.subscribe("yt-remote-cast2-receiver-selected",function(Q){C$("onReceiverSelected: "+Q.friendlyName);
_.Ex("yt-remote-cast-receiver",Q);VO("yt-remote-cast2-receiver-selected",Q)}),g.subscribe("yt-remote-cast2-receiver-resumed",function(Q){C$("onReceiverResumed: "+Q.friendlyName);
_.Ex("yt-remote-cast-receiver",Q);VO("yt-remote-cast2-receiver-resumed",Q)}),g.subscribe("yt-remote-cast2-session-change",function(Q){C$("onSessionChange: "+qpH(Q));
Q||_.yY("yt-remote-cast-receiver");VO("yt-remote-cast2-session-change",Q)}),_.xQ("yt.mdx.remote.cloudview.instance_",g),q=!0);
C$("cloudview.createSingleton_: "+q);return q};
dQ=function(){return _.ri("yt.mdx.remote.cloudview.instance_")};
mYZ=function(g){aax(!0);Fyt(!1);dQ().init(!1,function(u){u?(zEh(!0),_.BLS("yt-remote-cast2-api-ready")):(bQ("Failed to initialize cast API."),aax(!1),_.yY("yt-remote-cast-available"),_.yY("yt-remote-cast-receiver"),Vyf());g(u)})};
C$=function(g){wQ("cloudview",g)};
bQ=function(g){wQ("cloudview",g)};
aax=function(g){C$("setCastInstalled_ "+g);_.Ex("yt-remote-cast-installed",g)};
gqn=function(){return!!_.ri("yt.mdx.remote.cloudview.apiReady_")};
zEh=function(g){C$("setApiReady_ "+g);_.xQ("yt.mdx.remote.cloudview.apiReady_",g)};
Fyt=function(g){_.xQ("yt.mdx.remote.cloudview.initializing_",g)};
mj=function(g){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(g)};
J9h=function(g){Job();if(!Gi||!Gi.get("yt-remote-disable-remote-module-for-dev")){g=_.FR("MDX_CONFIG")||g;nJh();EHt();Q9h||(Q9h=new kex(g?g.loungeApiHost:void 0),jTz()&&(Q9h.basePath="/api/loungedev"));aa||(aa=_.ri("yt.mdx.remote.deferredProxies_")||[],_.xQ("yt.mdx.remote.deferredProxies_",aa));LHC();var u=Eqt();if(!u){var q=new Ia(Q9h,g?g.disableAutomaticScreenCache||!1:!1);_.xQ("yt.mdx.remote.screenService_",q);u=Eqt();var Q={};g&&(Q={appId:g.appId,disableDial:g.disableDial,theme:g.theme,loadCastApiSetupScript:g.loadCastApiSetupScript,
disableCastApi:g.disableCastApi,enableDialLoungeToken:g.enableDialLoungeToken,enableCastLoungeToken:g.enableCastLoungeToken,forceMirroring:g.forceMirroring});_.xQ("yt.mdx.remote.enableConnectWithInitialState_",g?g.enableConnectWithInitialState||!1:!1);BLn(q,function(E){E?Pax()&&u09(Pax(),"YouTube TV"):q.subscribe("onlineScreenChange",function(){VO("yt-remote-receiver-availability-change")})},Q)}if(g&&!_.ri("yt.mdx.remote.initialized_")){_.xQ("yt.mdx.remote.initialized_",!0);
Nvb("Initializing: "+_.ek(g));V6.push(_.Ur("yt-remote-cast2-api-ready",function(){VO("yt-remote-api-ready")}));
V6.push(_.Ur("yt-remote-cast2-availability-change",function(){VO("yt-remote-receiver-availability-change")}));
V6.push(_.Ur("yt-remote-cast2-receiver-selected",function(){s9H();VO("yt-remote-auto-connect","cast-selector-receiver")}));
V6.push(_.Ur("yt-remote-cast2-receiver-resumed",function(){VO("yt-remote-receiver-resumed","cast-selector-receiver")}));
V6.push(_.Ur("yt-remote-cast2-session-change",y99));V6.push(_.Ur("yt-remote-connection-change",function(E){E?u09(Pax(),"YouTube TV"):vq9()||(u09(null,null),oHn())}));
V6.push(_.Ur("yt-remote-cast2-session-failed",function(){VO("yt-remote-connection-failed")}));
Q=Dyh();g.isAuto&&(Q.id+="#dial");var L=g.capabilities||[];L.length>0&&(Q.capabilities=L);Q.name=g.device;Q.app=g.app;(g=g.theme)&&(Q.theme=g);Nvb(" -- with channel params: "+_.ek(Q));Q?(_.Ex("yt-remote-session-app",Q.app),_.Ex("yt-remote-session-name",Q.name)):(_.yY("yt-remote-session-app"),_.yY("yt-remote-session-name"));_.xQ("yt.mdx.remote.channelParams_",Q);u.start();Pax()||pef()}}};
fc9=function(){var g=Eqt().instance_.$_gos();var u=j9H();u&&X5()&&(Umx(g,u)||g.push(u));return o9p(g)};
MTx=function(){var g=fc9(),u=j9H();u||(u=vq9());return aq(g,function(q){return u&&gH9(u,q.key)?!0:!1})};
j9H=function(){var g=Pax();if(!g)return null;var u=Eqt().getScreens();return eo(u,g)};
y99=function(g){Nvb("remote.onCastSessionChange_: "+qpH(g));if(g){var u=j9H();if(u&&u.id==g.id){if(u09(u.id,"YouTube TV"),g.idType=="shortLived"&&(g=g.token))tTZ&&(tTZ.token=g),(u=X5())&&u.setLoungeToken(g)}else u&&eGx(),GcH(g,1)}else X5()&&eGx()};
eGx=function(){gqn()?dQ().stopSession():bQ("stopSession called before API ready.");var g=X5();g&&(g.disconnect(1),$yz(null))};
RGf=function(){var g=X5();return g&&g.getProxyState()!=3?new rQ(X5(),void 0):null};
Nvb=function(g){wQ("remote",g)};
Eqt=function(){if(!wef){var g=_.ri("yt.mdx.remote.screenService_");wef=g?new c9K(g):null}return wef};
Pax=function(){return _.ri("yt.mdx.remote.currentScreenId_")};
Hef=function(g){_.xQ("yt.mdx.remote.currentScreenId_",g)};
s9H=function(){_.xQ("yt.mdx.remote.connectData_",null)};
X5=function(){return _.ri("yt.mdx.remote.connection_")};
$yz=function(g){var u=X5();s9H();g||Hef("");_.xQ("yt.mdx.remote.connection_",g);aa&&(_.Tv(aa,function(q){q(g)}),aa.length=0);
u&&!g?VO("yt-remote-connection-change",!1):!u&&g&&VO("yt-remote-connection-change",!0)};
vq9=function(){var g=QTt();if(!g)return null;var u=Eqt();if(!u)return null;u=u.getScreens();return eo(u,g)};
GcH=function(g,u){A9z?tTZ=g:(Hef(g.id),g=new WZ(Q9h,g,Dyh(),_.ri("yt.mdx.remote.enableConnectWithInitialState_")||!1),g.connect(u,_.ri("yt.mdx.remote.connectData_")),g.subscribe("beforeDisconnect",function(q){VO("yt-remote-before-disconnect",q)}),g.subscribe("beforeDispose",function(){X5()&&$yz(null)}),g.subscribe("browserChannelAuthError",function(){var q=j9H();
q&&q.idType=="shortLived"&&(gqn()?dQ().handleBrowserChannelAuthError():bQ("refreshLoungeToken called before API ready."))}),$yz(g))};
pef=function(){var g=vq9();g?(Nvb("Resume connection to: "+qpH(g)),GcH(g,0)):(p1E(),oHn(),Nvb("Skipping connecting because no session screen found."))};
LHC=function(){var g=Dyh();if(_.pH.isEmpty(g)){g=qEx();var u=_.P9("yt-remote-session-name")||"",q=_.P9("yt-remote-session-app")||"";g={device:"REMOTE_CONTROL",id:g,name:u,app:q,mdxVersion:3};g.authuser=String(_.FR("SESSION_INDEX","0"));(u=_.FR("DELEGATED_SESSION_ID"))&&(g.pageId=String(u));_.xQ("yt.mdx.remote.channelParams_",g)}};
Dyh=function(){return _.ri("yt.mdx.remote.channelParams_")||{}};
ZeZ=function(){var g,u;return _.D(function(q){if(q.nextAddress==1)return(_.Iau()||_.w("use_new_nwl"))&&_.Hrq().isNetworkAvailable()?q.yield(_.BW(),2):q.return();if(q.nextAddress!=3)return(g=q.yieldResult)?q.yield(mMh(g),3):q.return();u=q.yieldResult;if(!u.length)return q.return();u.forEach(function(Q){var L={timestamp:Q.timestamp};Q=Q.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:Q.appShellAssetLoadReport,options:L}:Q.clientError?{payloadName:"clientError",payload:Q.clientError,
options:L}:void 0;Q&&_.H6(Q.payloadName,Q.payload,Q.options)});
u.length===100&&_.Hv.addLowPriorityJob(ZeZ);_.Wx(q)})};
acH=function(g,u,q){q=q===void 0?!1:q;var Q=Math.max(g.width,lcC);if(_.w("kevlar_watch_feed_big_thumbs")&&g.width>=1550-Ti()&&g.height>=800)Q-=Ich;else if(g.width>=hG){var L=ieE+Caf+Yc;_.w("kevlar_watch_feed_big_thumbs")&&(L=beC);Q-=L}else Q-=ieE;Q=Math.min(Q,dyE);L=240;q&&(L=380);u<.5624||(!_.w("kevlar_watch_flexy_disable_small_window_sizing")&&(g.height<630&&g.width>=657||g.height>=630&&g.width>=hG&&g.width<1327)?L=360:!_.w("kevlar_watch_flexy_disable_large_window_sizing")&&g.height>=630&&g.width>=
1327&&(L=480));var E=Math.min(Q*u,g.height-(56+FHZ+myK));E=Math.max(E,L);u<1?Q=E/u:g.width>=hG&&(Q=acH(g,.5625,q).width);return new _.IW(Math.round(Q),Math.round(E))};
VTH=function(g){if(g.playerResponse){if(g=g.playerResponse,g.messages&&g.messages.length>0&&(g=g.messages.find(function(u){return!(!u||!u.mealbarPromoRenderer)}))&&g.mealbarPromoRenderer)return g.mealbarPromoRenderer}else if(g.response&&(g=g.response)&&g.overlay&&g.overlay.mealbarPromoRenderer)return g.overlay.mealbarPromoRenderer};
Xep=function(g){if(g.response){var u=g.response;if(u&&u.overlay&&u.overlay.tooltipRenderer)return u.overlay.tooltipRenderer}if(g.playerResponse&&(g=g.playerResponse,g.messages&&g.messages.length>0&&(g=g.messages.find(function(q){return!(!q||!q.tooltipRenderer)}))&&g.tooltipRenderer))return g.tooltipRenderer};
r9z=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
WHz=function(){var g,u,q;return _.D(function(Q){switch(Q.nextAddress){case 1:return Q.yield(_.yN.getInstance(),2);case 2:g=Q.yieldResult;if(!g){u=void 0;Q.jumpTo(3);break}return Q.yield(g.get("lmqf"),4);case 4:u=Q.yieldResult;case 3:switch((q=u)||(q="SD"),q){case "HD":return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Tvx=function(g){var u,q,Q;return _.D(function(L){if(L.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.w("disable_av1_setting")){var E=window.localStorage["yt-player-av1-pref"];E=E==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":E==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else E="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(u=g===E)return L.jumpTo(2);Q=q=g;return L.yield(WHz(),3)}L.nextAddress!=2&&(u=Q===L.yieldResult);return L.return(u)})};
YpZ=function(){var g=_.S8("user_engagement_experiments_rate_limit_ms"),u=hGZ.get("last-user-engagement-exp-trigger-timestamp");return!u||(0,_.n0)()>=u+g?(hGZ.set("last-user-engagement-exp-trigger-timestamp",(0,_.n0)()),!0):!1};
Ou=function(g,u,q,Q,L){u=u===void 0?null:u;q=q===void 0?null:q;Q=Q===void 0?null:Q;L=L===void 0?null:L;g={youThereEventType:g};q&&(g.lactThresholdMs=q.lactThresholdMs,g.mediaPosSec=q.promptDelaySec,g.lactServerRequestMs=q.lactServerRequestMs,g.triggerReason=q.triggerReason);L!=null&&(g.renderingMediaPosSec=Math.round(L));u||(u=_.j_());u&&(g.clientScreenNonce=u);Q&&(g.clientPlaybackNonce=Q);_.H6("youThere",g)};
KHz=function(g){if(!OeE&&(g=g||_.FR("ZWIEBACK_PING_URLS"))&&g.length){OeE=!0;for(var u=0;u<g.length;u++)_.VI(g[u])}};
xyH=function(g){var u=0;g.indexOf("h")!=-1&&(g=g.split("h"),u=g[0]*60*60,g=g[1]);g.indexOf("m")!=-1&&(g=g.split("m"),u=g[0]*60+u,g=g[1]);g.indexOf("s")!=-1?(g=g.split("s"),u=g[0]*1+u):u=g*1+u;return u};
zGn=function(g){if(_.pH.get(_.FR("PLAYER_VARS",{}),"privembed",!1)!="1"){g&&AgH();try{Bv9().then(function(){},function(){}),_.uS(zGn,18E5)}catch(u){_.a4(u)}}};
nqK=function(){var g=_.qf(),u=g.getFlag(119),q=window.devicePixelRatio>1;document.body&&_.dJ(document.body,"exp-invert-logo")&&(q&&!_.dJ(document.body,"inverted-hdpi")?_.Za(document.body,"inverted-hdpi"):!q&&_.dJ(document.body,"inverted-hdpi")&&_.Ao(document.body,"inverted-hdpi"));u!=q&&(_.QX(0,119,q),g.save())};
kct=function(){_.S8("service_worker_push_logged_out_prompt_watches")!=-1&&hu("WatchCount").then(function(g){g>=100||BwH("WatchCount",g+1)})};
Spp=function(g){return g.filter(function(u){return"ypcGetCartEndpoint"in u||"ypcFixInstrumentEndpoint"in u})};
oqb=function(g){return g.filter(function(u){return!_.c(u,_.YmR)})};
Uyh=function(g){switch(g){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}};
gyb=function(g,u,q){var Q=_.jy(q);g&&u&&Q&&g.getPlayerPromise().then(function(L){_.YVJ(Q)&&_.A_();(new _.DG(L)).executeCommand(Q,u);_.w("continue_playback_on_desktop_companion_click")||L.pauseVideo()})};
ugK=function(g){var u=_.F0(),q;if(q=_.ri("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;q=(Q=q())==null?void 0:Q.layoutId}else q=null;gyb(u,q,g)};
qIZ=function(g){var u=_.F0(),q;if(q=_.ri("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;q=(Q=q())==null?void 0:Q.layoutId}else q=null;gyb(u,q,g)};
K$=function(g,u){var q=g<0?"-":"";g=Math.abs(g);var Q=Math.floor(g/3600),L=Math.floor(g)%3600,E=Math.floor(L/60);L=Math.floor(L)%60;var y="";(u===void 0?0:u)&&(y="."+Math.round((g-Math.floor(g))*10));return Q>0?q+Q+":"+(E<10?"0"+E:""+E)+":"+(L<10?"0"+L:""+L)+y:q+E+":"+(L<10?"0"+L:""+L)+y};
Qsz=function(g){var u=g.match(/[^0-9:\.]/g);if(u&&u.length>0)return null;g=g.split(":");if(g.length===0||g.length>3)return null;u=1;for(var q=0;g.length>0;){var Q=g.pop();if(Q===void 0)break;var L=Number(Q);if(Q===""||isNaN(L))return null;q+=L*u;u*=60}return q};
LlL=function(g,u,q,Q){g=Math.max(q,g);u=Math.min(u,Q-q);g+u>Q?(q=Q,g=q-u):q=g+u;return{start:g,end:q}};
EyL=function(g,u,q,Q,L,E){g<q?g=q:g+L>Q&&(g=Q-L);u>Q&&(u=Q);u=Math.min(g+E,Math.max(g+L,u));return{start:g,end:u}};
P29=function(g,u,q,Q,L,E){u>Q?u=Q:u-L<q&&(u=q+L);g<q&&(g=q);g=Math.min(u-L,Math.max(u-E,g));return{start:g,end:u}};
J7E=function(g,u){var q=_.dO(g,{}),Q=Nyb("top",u),L=Nyb("bottom",u),E=Nyb("left",u),y=Nyb("right",u);return _.xH({top:function(){return xc(q().position,Q)},
bottom:function(){return xc(q().position,L)},
left:function(){return xc(q().position,E)},
right:function(){return xc(q().position,y)},
position:function(){return xc(q().positionType,ssH)},
height:function(){return xc(q().height,BZ)},
width:function(){return xc(q().width,BZ)},
"min-width":function(){return xc(q().minWidth,BZ)},
"min-height":function(){return xc(q().minHeight,BZ)},
"max-width":function(){return xc(q().maxWidth,BZ)},
"max-height":function(){return xc(q().maxHeight,BZ)},
"aspect-ratio":function(){return xc(q().aspectRatio,String)},
"margin-top":function(){return xc(q().margin,Q)},
"margin-bottom":function(){return xc(q().margin,L)},
"margin-left":function(){return xc(q().margin,E)},
"margin-right":function(){return xc(q().margin,y)},
"padding-top":function(){return xc(q().padding,Q)},
"padding-bottom":function(){return xc(q().padding,L)},
"padding-left":function(){return xc(q().padding,E)},
"padding-right":function(){return xc(q().padding,y)},
"flex-direction":function(){return xc(q().flexDirection,y7h)},
"justify-content":function(){return xc(q().justifyContent,vyK)},
"align-items":function(){return xc(q().alignItems,D0C)},
"flex-grow":function(){return xc(q().flexGrow,String)},
"flex-shrink":function(){return xc(q().flexShrink,String)},
"flex-basis":function(){return xc(q().flexBasis,BZ)},
"align-self":function(){return xc(q().alignSelf,D0C)},
"flex-wrap":function(){return xc(q().flexWrap,pYn)},
"align-content":function(){return xc(q().alignContent,D0C)}})};
xc=function(g,u){return g!==void 0?u(g):void 0};
pYn=function(g){switch(g){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
ssH=function(g){switch(g){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
D0C=function(g){switch(g){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"}};
vyK=function(g){switch(g){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"}};
y7h=function(g){switch(g){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"}};
Nyb=function(g,u){var q=u==="rtl";switch(g){case "top":var Q=jsn;break;case "bottom":Q=f7x;break;case "left":Q=MJE;break;default:Q=tJz}return function(L){return xc(Q(L,q),BZ)}};
jsn=function(g){var u=g.top;var q=g.vertical;g=g.all;var Q;return(Q=u!=null?u:q)!=null?Q:g};
f7x=function(g){var u=g.bottom;var q=g.vertical;g=g.all;var Q;return(Q=u!=null?u:q)!=null?Q:g};
MJE=function(g,u){var q=g.left;var Q=g.end;var L=g.start;var E=g.horizontal;g=g.all;var y,v;return(v=(y=q!=null?q:u?Q:L)!=null?y:E)!=null?v:g};
tJz=function(g,u){var q=g.right;var Q=g.end;var L=g.start;var E=g.horizontal;g=g.all;var y,v;return(v=(y=q!=null?q:u?L:Q)!=null?y:E)!=null?v:g};
BZ=function(g){var u=g.value;switch(g.unit){case "YPC_DIMENSION_UNIT_POINT":return u+"px";case "YPC_DIMENSION_UNIT_FRACTION":return u+"%";default:return""+u}};
ezZ=function(g){switch(g){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"}};
GkE=function(g){var u=g!=null?g:{};g=u.fontRole;var q=u.fontSize;u=u.fontWeight;if(g!==null&&q!==null)switch(g){case "YPC_FONT_ROLE_DISPLAY":switch(q){case "YPC_FONT_SIZE_L":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(q){case "YPC_FONT_SIZE_L":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return u===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(q){case "YPC_FONT_SIZE_XL":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return u==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
c7C=function(g,u,q){function Q(e){return Object.values(e).map(function(G){var R=G.productId;G=G.pricingOptionIndex;return zi(L(R).pricingOptions,G).pricingOptionId})}
function L(e){return J().get(e)}
function E(e){e=Q(e);q(e)}
function y(e,G){return Array.from(n$(e.pricingOptions)).filter(function(R){R=_.N(R);R.next();R=R.next().value;return kc(R.pricingGroupAttributes,G)}).map(function(R){return _.N(R).next().value})}
var v=$0h([g,u],function(e,G){var R=e==null?void 0:e.selectedPricingOptions;e={};var H=!0;if(R&&G.length)for(var l=_.N(G),d=l.next();!d.done;d=l.next()){d=d.value;var F=RzZ(d.pricingOptions,function(O){a:{O=O.pricingOptionId;for(var W=_.N(R),x=W.next();!x.done;x=W.next())if(x.value===O){O=!0;break a}O=!1}return O});
if(F>=0){H=!1;var V=zi(d.pricingOptions,F),z=void 0;e[d.groupId]={productId:d.productId,pricingOptionIndex:F,pricingGroupAttributes:(z=V)==null?void 0:z.pricingGroupAttributes}}}H&&G.length&&(H=zi(G[0].pricingOptions,0),e[G[0].groupId]={productId:G[0].productId,pricingOptionIndex:0,pricingGroupAttributes:H==null?void 0:H.pricingGroupAttributes});return e}),J=$0h([u],function(e){return new Map(e.map(function(G){return[G.productId,
G]}))}),f=$0h([u],function(e){var G=new Map;
e=_.N(e);for(var R=e.next();!R.done;R=e.next()){var H=R.value;R=H.groupId;var l=H.productId;H=_.N(n$(H.pricingOptions));for(var d=H.next();!d.done;d=H.next()){var F=_.N(d.value);d=F.next().value;F=F.next().value;G.set(F.pricingOptionId,{groupId:R,productId:l,index:d,pricingOption:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return G}),t=$0h([u],function(e){var G=new Map;
e=_.N(e);for(var R=e.next();!R.done;R=e.next()){var H=R.value;R=H.groupId;var l=H.productId,d=void 0;H=_.N(n$((d=H.pricingGroups)!=null?d:[]));for(d=H.next();!d.done;d=H.next()){var F=_.N(d.value);d=F.next().value;F=F.next().value;G.set(F.pricingGroupId,{groupId:R,productId:l,index:d,pricingGroup:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return G});
return{getProductById:L,isProductSelected:function(e){var G=L(e);if(!G)return!1;var R;return((R=v()[G.groupId])==null?void 0:R.productId)===e},
getSelectedPricingOptions:function(){return Object.values(v()).map(function(e){var G=e.productId;e=e.pricingOptionIndex;return zi(L(G).pricingOptions,e)})},
getSelectedPricingGroupAttributesByGroupId:function(e){var G;return(e=(G=v()[e])==null?void 0:G.pricingGroupAttributes)?Array.from(e):void 0},
getSelectedProductByGroupId:function(e){var G;return(e=(G=v()[e])==null?void 0:G.productId)?L(e):void 0},
onProductSelected:function(e){var G=L(e);if(G){var R=v(),H;if(((H=R[G.groupId])==null?void 0:H.productId)!==e){var l=(H=(l=R[G.groupId])==null?void 0:l.productId)?L(H):void 0;var d;H=(d=R[G.groupId])==null?void 0:d.pricingGroupAttributes;var F;d=(F=R[G.groupId])==null?void 0:F.pricingOptionIndex;if(l&&d!==void 0)if(H){F=y(l,H).indexOf(d);if(F===-1)throw Error("Dl`"+d+"`"+l.productId);d=y(G,H);F=F<d.length?d[F]:d.length>0?d[0]:0}else F=d<So(G.pricingOptions)?d:0;else F=0;So(G.pricingOptions)<=F&&(F=
0);d=zi(G.pricingOptions,F);var V;l={};E(Object.assign({},R,(l[G.groupId]={productId:e,pricingOptionIndex:F,pricingGroupAttributes:(V=d==null?void 0:d.pricingGroupAttributes)!=null?V:[]},l)))}}},
onPricingOptionSelected:function(e){var G=f().get(e);if(G){e=G.groupId;var R=G.productId;G=G.index;var H=v(),l,d;if(((l=H[e])==null?void 0:l.productId)!==R||((d=H[e])==null?void 0:d.pricingOptionIndex)!==G){var F,V;l={};E(Object.assign({},H,(l[e]={productId:R,pricingOptionIndex:G,pricingGroupAttributes:(V=(F=H[e])==null?void 0:F.pricingGroupAttributes)!=null?V:[]},l)))}}},
onPricingGroupSelected:function(e){var G=t().get(e);if(G){e=G.groupId;var R=G.productId,H=G.pricingGroup.pricingGroupAttributes,l=L(R);if(l){G=v();var d=G[e].pricingGroupAttributes,F;if(((F=G[e])==null?void 0:F.productId)!==R||!kc(wYn(d,So(H)),H)){F=Array.from(H);for(H=So(H);H<So(d);H++){var V="",z=!1,O=Array.from(F);O.push(zi(d,H));for(var W=_.N(l.pricingGroups),x=W.next();!x.done;x=W.next())if(x=x.value,kc(x.pricingGroupAttributes,O)){F.push(zi(d,H));z=!0;break}else V===""&&So(x.pricingGroupAttributes)===
O.length&&kc(wYn(x.pricingGroupAttributes,F.length),F)&&(V=zi(x.pricingGroupAttributes,H));z||F.push(V)}V=G[e].pricingOptionIndex;H=[];z=new Map;O=0;l=_.N(n$(l.pricingOptions));for(W=l.next();!W.done;W=l.next())x=_.N(W.value),W=x.next().value,x=x.next().value,kc(x.pricingGroupAttributes,F)&&H.push(W),kc(x.pricingGroupAttributes,d)&&z.set(W,O++);H.length===0?d=0:(d=z.get(V),d=d!==void 0&&d<H.length?H[d]:H[0]);l={};E(Object.assign({},G,(l[e]={productId:R,pricingOptionIndex:d,pricingGroupAttributes:F},
l)))}}}},
onClearGroupSelected:function(e){var G=v();G[e]&&(G=Object.fromEntries(Object.entries(G).filter(function(R){return _.N(R).next().value!==e})),E(G))}}};
n$=function(g){return function q(){var Q,L,E,y,v;return _.n3(q,function(J){switch(J.nextAddress){case 1:_.ms(J,2),Q=0,L=_.N(g),E=L.next();case 4:if(E.done){J.jumpTo(2);break}y=E.value;v=_.kb;return J.yield([Q++,y],7);case 7:v(J.yieldResult);E=L.next();J.jumpTo(4);break;case 2:_.Fr(J),_.Xr(J,0)}})}()};
RzZ=function(g,u){g=_.N(n$(g));for(var q=g.next();!q.done;q=g.next()){var Q=_.N(q.value);q=Q.next().value;Q=Q.next().value;if(u(Q))return q}return-1};
So=function(g){var u=0;for(g=g[Symbol.iterator]();!g.next().done;)++u;return u};
zi=function(g,u){g=_.N(n$(g));for(var q=g.next();!q.done;q=g.next()){var Q=_.N(q.value);q=Q.next().value;Q=Q.next().value;if(q===u)return Q}};
kc=function(g,u){if(!g&&!u)return!0;if(!g||!u)return!1;g=Array.from(g);u=Array.from(u);if(g.length!==u.length)return!1;for(var q=0;q<g.length;q++)if(g[q]!==u[q])return!1;return!0};
wYn=function(g,u){u=u===void 0?Infinity:u;var q=[];g=_.N(n$(g));for(var Q=g.next();!Q.done;Q=g.next()){var L=_.N(Q.value);Q=L.next().value;L=L.next().value;if(Q>=u)break;Q>=0&&q.push(L)}return q};
$0h=function(g,u){var q,Q;return function(){for(var L=g.map(function(y){return y()}),E=0;E<L.length;E++)if(!q||L[E]!==q[E]){q=L;
Q=u.apply(null,_.na(L));break}return Q}};
HnC=function(g,u,q){var Q=[];g=_.N(g);for(var L=g.next();!L.done;L=g.next()){L=L.value;var E=void 0;((E=u)==null?0:E.length)&&!kc(L.pricingGroupAttributes,u)||Q.push({pricingOption:L,isSelected:q.includes(L.pricingOptionId)})}return Q};
A7x=function(g,u){return _.BC(g.entities,"pdpStateEntity",u)};
ZnE=function(g){var u,q;return!!(g.productId&&g.groupId&&((u=g.pricingOptions)==null?0:u.length)&&g.pricingOptions.every(function(Q){return Q.pricingOptionId})&&((q=g.pricingGroups)==null||!q.length||Array.isArray(g.pricingGroups)&&g.pricingGroups.every(function(Q){return Q.pricingGroupId&&Q.pricingGroupAttributes&&Q.pricingGroupAttributes.length>0})))};
l7C=function(g,u,q){return c7C(g,$0h([u],function(Q){return Q.filter(ZnE)}),q)};
I7L=function(g,u){return u.length===0?[g]:[g.slice(0,u[0]),g.slice(u[0])].filter(function(q){return q.length>0})};
inZ=function(g){switch(g){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""}};
bnL=function(g,u,q,Q){Q=Object.assign({},Q);_.yb(Q,C2b,{selectedOptionId:g,primaryButtonOverride:q});_.CE().dispatch(_.u2("flowStateEntity",u,Q))};
d0h=function(g,u,q){!_.c(q,C2b)&&g.noPreselect&&u!==""&&g.defaultButtonOverride&&bnL("default",u,g.defaultButtonOverride,q)};
Flx=function(g){switch(g){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"}};
m0K=function(g){switch(g){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"}};
a79=function(g,u){u.includes(g)?u=u.filter(function(q){return q!==g}):u.push(g);
return[].concat(_.na(u))};
VJE=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("n0DHg"),2);g=_.WU5;return u.return(g)})};
XYt=function(g,u){return _.BC(g.entities,"contextNoteFeedEntityPayload",u)};
r7t=function(g,u){switch(g){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return u==null?void 0:u.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return u==null?void 0:u.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return u==null?void 0:u.ratingNotHelpfulText}};
Wl9=function(g,u,q){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:q||g.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:g.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:g.deleteDialogTitle}]},dialogMessages:[{runs:[{text:g.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.deleteActionText}]},command:{performCommentActionEndpoint:{action:u}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
TyZ=function(g,u,q){var Q;if(g&&((Q=u())==null?0:Q.includes(g))){var L;q((L=u())==null?void 0:L.filter(function(E){return E!==g}))}else q([].concat(_.na(u()||[]),[g]))};
YIb=function(g,u){if(g){var q=[];u=_.N((u==null?void 0:u.checkboxes)||[]);for(var Q=u.next();!Q.done;Q=u.next()){Q=_.c(Q.value,hzp);var L=void 0;((L=Q)==null?0:L.value)&&g.includes(Q.key||"")&&q.push(Q.value)}return q}};
On9=function(g,u){return g===u?!0:(g==null?void 0:g.formId)===(u==null?void 0:u.formId)&&(g==null?void 0:g.fieldId)===(u==null?void 0:u.fieldId)};
x0H=function(g){var u=Klh.get(g);if(u)return u;u=g.replace(/_([a-zA-Z0-9])/g,function(q,Q){return Q.toUpperCase()});
Klh.set(g,u);return u};
nyZ=function(g){var u=_.G9(function(){var Q;return(Q=_.mV(g))!=null?Q:{}},{equals:On9},"rjkP8c"),q=_.G9(function(){var Q=u(),L=Q.formId;
Q=Q.fieldId;var E;if(E=L&&Q){if(Q==="formId")throw Error("Kl`"+"Field id cannot be formId.".replace(/\n\s*/g," "));b:{if(L&&(Byh?Byh():(E=_.N(_.jR(0,void 0,"VxY0fb")),Byh=E.next().value,E.next(),E.next(),Byh()),E=zzh.get(L))){E=E.form;break b}E=void 0}if(E){var y=x0H(Q);E=E[y]}else E=void 0}if(E)throw Error("Kl`"+("Field "+Q+" in form "+L+" is not a ScalarField.").replace(/\n\s*/g," "));},void 0,"OhSJ8e");
return function(){return q()}};
kkZ=function(g){g.style.height="auto";g.style.height=g.scrollHeight+"px"};
SIn=function(g){return[g.syncStep,g.asyncStep].filter(function(u){return u!==void 0})};
U0n=function(g){var u,q,Q;if(g=(u=g.structuredContextNoteFormSchema)==null?void 0:(q=u.fieldSchemas)==null?void 0:(Q=q.noteBody)==null?void 0:Q.validationSchema)for(u=_.N(SIn(g)),q=u.next();!q.done;q=u.next()){q=q.value.rules;if(!q)break;q=_.N(q);for(q=q.next();!q.done;q=q.next())return _.c(q.value,oyt)}};
uaf=function(g){if(g){g=_.N(SIn(g));for(var u=g.next();!u.done;u=g.next()){u=u.value.rules;if(!u)break;u=_.N(u);for(u=u.next();!u.done;u=u.next())return _.c(u.value,gbf)}}};
Q1Z=function(g){if(g){g=_.N(SIn(g));for(var u=g.next();!u.done;u=g.next()){u=u.value.rules;if(!u)break;u=_.N(u);for(u=u.next();!u.done;u=u.next())return _.c(u.value,qfz)}}};
LZh=function(g){g=/^https?:\/\//.test(g)?g:"http://"+g;try{var u=_.X_(g)}catch(q){return!1}if(u.toString()!==g)return!1;g=u.JSC$10339_domain_.split(".");return g.length>1&&g.every(function(q){return!!q})};
EbL=function(g,u,q,Q){var L;Q=(L=Q.structuredContextNoteData)==null?void 0:L.createCommentEndpoint;if(L=_.c(Q,_.kR8))return L.commentText=_.I7(g),L.videoPositionMention=u,L.sources=q,Q};
Pbf=function(g){return g==null?void 0:g.stringValue};
s1C=function(g,u,q){g=g.map(function(Q,L){return{listItemViewModel:{title:Q.title,subtitle:Q.subtitle,leadingImage:Q.leadingImage,trailingImage:L===u?N_t:void 0,rendererContext:{commandContext:{onTap:Q.onTap}}}}});
return Object.assign({},q&&{header:{panelHeaderViewModel:{title:q}}},{content:{listViewModel:{listItems:g}}})};
yZt=function(g,u){if(g&&u)switch(u){case "SELECTION_TYPE_BOOL":return g.boolValue;case "SELECTION_TYPE_INT":return g.intValue;case "SELECTION_TYPE_STRING":return g.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return g.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return g.timePickerFormatValue}};
vbh=function(g){var u;g=(u=g.options)==null?void 0:u.findIndex(function(q){return q.isSelected});
return g===void 0?-1:g};
DWh=function(g,u,q){var Q=function(){return g().label},L={},E=_.Ty("ytDropdownViewModelLabel",(L.ytDropdownViewModelLabelError=u,L));
return _.p(_.M,{cond:function(){return g().label&&!(q()===-1&&g().label&&!g().placeholderText)},
then:function(){return _.p("div",{class:E},_.p(_.c2,{text:Q}))}})};
pbK=function(g,u){var q={};q=_.Ty("ytDropdownViewModelTitle",(q.ytDropdownViewModelTitlePlaceholder=function(){return u()===-1},q));
return _.p("div",{class:q},_.p(_.c2,{text:function(){var Q=g();var L=u();if(L===-1)Q=Q.placeholderText?Q.placeholderText:Q.label;else{var E,y;Q=(E=Q.options)==null?void 0:(y=E[L])==null?void 0:y.title}return Q}}))};
JZC=function(g,u){var q=function(){return g().hint};
return _.p(_.U9,null,_.p(_.M,{cond:function(){return q()&&!u()},
then:function(){return _.p("div",{class:_.Ty("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.p(_.c2,{text:q,className:"ytDropdownViewModelSupportText"}))}}),_.p(_.M,{cond:u,
then:function(){return _.p("div",{id:"dropdown-view-model-error",role:"alert",class:_.Ty("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.p(_.B1,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.p(_.c2,{text:u,className:"ytDropdownViewModelSupportText"}))}}))};
j1h=function(g,u){var q=_.Bk().resolve(_.Y7E);_.I4(function(){var Q=g().id;Q&&q!=null&&q.dropdownMap.set(Q,u)})};
MVt=function(g){g=_.c(g.scheduleButton,feh);g=_.c(g==null?void 0:g.primaryButton,_.Rn);g=_.c(g==null?void 0:g.onTap,_.Jo);var u,q,Q=((q=_.c(g,_.zg))==null?void 0:q.commands)||[g];q=_.N(Q);for(g=q.next();!g.done&&!(u=_.c(g.value,_.OI$));g=q.next());var L;u=(L=u)==null?void 0:L.createBroadcastRequest;if(!u)throw Error("Ql");return u};
tVK=function(g){var u,q;return((q=_.c((u=g.steps)==null?void 0:u[0],_.Ew))==null?void 0:q.stepId)||""};
$Wb=function(g,u){if(u){var q=_.bR().getState().entities.flowStateEntity,Q=e2x(g),L=[u];Q&&Q!==u&&L.push(Q);var E=!0,y;if(q&&g.flowStateEntityKey&&((y=q[g.flowStateEntityKey])==null?void 0:y.primaryButtonDisabled)!==void 0){var v;E=!((v=q[g.flowStateEntityKey])==null||!v.primaryButtonDisabled)}Gx9(g,Q!=null?Q:u,L,E)}};
wbz=function(g){return _.qG(_.bR(),function(u){return u.entities.flowStateEntity},function(u,q){if(g.flowStateEntityKey){var Q,L=u==null?void 0:(Q=u[g.flowStateEntityKey])==null?void 0:Q.currentStepId,E;
q=q==null?void 0:(E=q[g.flowStateEntityKey])==null?void 0:E.currentStepId;E=_.bR().getState().talkToRecs;if(L&&L!==q){var y;u=(u==null?void 0:(y=u[g.flowStateEntityKey])==null?void 0:y.stepIdStack)||Object.keys(E.stepStates);y=!R2Z(E==null?void 0:E.stepStates[L]);Gx9(g,L,u,y)}}})};
H3H=function(g){return _.qG(_.bR(),cZz,function(u){var q=e2x(g);if(q){var Q=Object.keys(u.stepStates);u=!R2Z(u==null?void 0:u.stepStates[q]);Gx9(g,q,Q,u)}})};
R2Z=function(g){var u=Object.keys((g==null?void 0:g.selectionStates)||{}).reduce(function(E,y){return E||(g==null?void 0:g.selectionStates[y].isSelected)},!1),q,Q,L=!!(g==null?0:(q=g.userQuery)==null?0:(Q=q.userQuery)==null?0:Q.trim());
return u||L};
e2x=function(g){if(g.flowStateEntityKey){var u,q,Q=(u=_.bR().getState().entities.flowStateEntity)==null?void 0:(q=u[g.flowStateEntityKey])==null?void 0:q.currentStepId;if(Q)return Q}};
Gx9=function(g,u,q,Q){_.bR().dispatch(_.u2("flowStateEntity",g.flowStateEntityKey,{currentStepId:u,stepIdStack:q,key:g.flowStateEntityKey,primaryButtonDisabled:Q}))};
IeZ=function(g,u,q){q=q===void 0?{}:q;var Q,L;return _.D(function(E){if(Q=AZn(u))return E.return(Q);(L=Z3h(g,u,q))&&lez(u,L);return E.return(L)})};
lez=function(g,u){var q=i3n(g);q&&u.then(function(Q){_.Bk().resolve(_.xe).put(q,new _.B_({innertubeResponse:Q}))})};
AZn=function(g){if(g=i3n(g)){var u=_.Bk().resolve(_.xe);if(u.has(g))return u.get(g).then(function(q){return q==null?void 0:_.Tx(q)})}return null};
i3n=function(g){var u=_.c(g.endpoint,_.l1);if(u!=null&&u.videoId)return u={videoId:u.videoId},_.w("web_imp_player_mute_params")&&(u.mutedAtStart=g.startPlaybackInMutedState),_.Z4("inline_playback",u)};
Z3h=function(g,u,q){g=_.ce(g,u.endpoint,Cb9(u,q)).then(function(Q){return Q});
return Promise.resolve(g)};
Cb9=function(g,u){u=_.w("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!g.startPlaybackInMutedState},u):Object.assign({},{vis:5,autonav:"1"},u);var q;u={contentPlaybackContext:_.K3(u,(q=_.c(g.endpoint.commandMetadata,_.S_))==null?void 0:q.url,window.location.href)};_.w("web_imp_player_mute_params")&&(u.overrideMutedAtStart=!g.startPlaybackInMutedState);return u};
aet=function(g,u){var q=window.MutationObserver;q&&(b3K=new q(function(Q,L){Q=_.N(Q);for(var E=Q.next();!E.done;E=Q.next()){E=E.value;var y;if(y=E.type==="childList"&&E.target)a:{y=g;E=dWK(E.target);y=dWK(y);for(var v=null,J=0;J<E.length;J++)if(y.includes(E[J])){if(J===0){y=!1;break a}v=E[J];break}v?(E=FZb(E,v),y=FZb(y,v),y=E<y):y=!1}if(y){u();L.disconnect();break}}}),(q=mWp())&&b3K.observe(q,{childList:!0,
subtree:!0}))};
mWp=function(){var g=document.getElementsByTagName("ytd-rich-grid-renderer");if(g.length>0)return g[0];g=document.getElementsByTagName("ytd-section-list-renderer");return g.length>0?g[0]:null};
dWK=function(g){for(var u=[];g;)u.push(g),g=g.parentElement;return u};
FZb=function(g,u){var q=Array.from(u.children);u=g.indexOf(u);return u>0?q.indexOf(g[u-1]):-1};
oa=function(g,u,q){q=q===void 0?{}:q;return _.Ug(g,q,u)};
VVt=function(g){switch(g){case "MUSIC":return!0;default:return!1}};
rZt=function(g){if(g=g==null?void 0:g.find(function(Q){var L,E;return((L=_.c(Q,Xbt))==null?void 0:(E=L.inlinePlaybackBadgeData)==null?void 0:E.replicateAsTimestamp)===!0}))if(g=_.c(g,Xbt),g==null?0:g.icon){var u,q;
if((g=(u=_.GCu(g.icon))==null?void 0:(q=u.clientResource)==null?void 0:q.imageName)&&VVt(g))return g}};
WZK=function(g){return g==null?void 0:g.filter(function(u){return u.premiereTrailerBadgeRenderer})};
T_H=function(g){var u,q=g==null?void 0:(u=g.find(function(J){return J.thumbnailOverlayTimeStatusRenderer}))==null?void 0:u.thumbnailOverlayTimeStatusRenderer,Q,L;
if((q==null?0:(Q=q.icon)==null?0:Q.iconType)&&VVt(q==null?void 0:(L=q.icon)==null?void 0:L.iconType)){var E;return{icon:q==null?void 0:(E=q.icon)==null?void 0:E.iconType}}var y;if(u=g==null?void 0:(y=g.find(function(J){return J.thumbnailOverlayBadgeViewModel}))==null?void 0:y.thumbnailOverlayBadgeViewModel)if(y=rZt(u.thumbnailBadges))return{icon:y};
var v;if(g=g==null?void 0:(v=g.find(function(J){return J.thumbnailBottomOverlayViewModel}))==null?void 0:v.thumbnailBottomOverlayViewModel)if(v=rZt(g.badges))return{icon:v};
return{}};
xWE=function(g,u){var q=new h2z(function(E){L(E)},u);
u=_.N(_.jR(Yfh(q),void 0,"D2uee"));var Q=u.next().value,L=u.next().value;_.bX(function(){Promise.resolve().then(function(){var E,y=(E=g())!=null?E:{};q.playerControlsData=y;q.lastSeenPlayerApi=_.$S(y.playerApi);O3K(q)});
_.dB(function(){KZZ(q)})},"xfRk8b");
return Q};
B_H=function(g){return function(u){var q=g(),Q={playerState:u};if(u===1){var L;(L=q.playerApi)==null||L.loadModule("captions")}if(u===0){var E;(E=q.playerApi)==null||E.unloadModule("captions")}u!==-1&&q.setState(Q)}};
z2K=function(g){return function(u){g().setState({playbackRate:u})}};
nbx=function(g){return function(u){var q=g(),Q=q.playerApi,L=Q==null?void 0:Q.getVideoData(),E=(L==null?void 0:L.isLive)||!1;L=L==null?void 0:L.video_id;E={videoDuration:rDn(Q||void 0),isLive:E,videoId:L};E.videoId!==q.videoId&&(E=Object.assign({},_.KUm(Q),E));if(u==null?0:u.playertype)E.playerType=u.playertype;if(Q){E.captionsAvailable=ls9(Q);u=E;var y;L=(y=Q.getStoryboardLevel(Q.getNumberOfStoryboardLevels()-1))==null?void 0:y.intervalMs;u.storyboardInterval=L?L/1E3:void 0;E.captionsAvailable&&
(E.captionsEnabled=IsC(Q))}E.volumeMuted=!(Q==null||!Q.isMuted());q.setState(E)}};
kxt=function(g){return function(u){var q=g(),Q=q.playerApi;if(Q){var L=Q.getPresentingPlayerType();u={playedTime:u||0,percentLoaded:Q.getVideoLoadedFraction(),playerType:L};q.playerState===0&&(u.playedTime=q.videoDuration);q.isLive&&(L=Q.getProgressState(L),u.playedTime-=L.seekableStart,u.videoDuration=rDn(Q));if(q.playerType===1)Q=!1;else{var E;if((E=q.uxConfig)==null?0:E.showCuedOverlay){var y;Q=!((y=q.playerApi)==null?0:y.getPlayerStateObject(q.playerType).isDomPaused)}else Q=!0}Q&&delete u.playedTime;
q.setState(u)}}};
Sfp=function(g){return function(){var u=g(),q,Q,L,E={volume:(L=(q=u.playerApi)==null?void 0:q.getVolume())!=null?L:0,volumeMuted:!((Q=u.playerApi)==null||!Q.isMuted())};u.setState(E)}};
obx=function(g){return function(){var u=g(),q=u.playerApi;if(q){var Q={captionsAvailable:ls9(q)};Q.captionsAvailable&&(Q.captionsEnabled=IsC(q));u.setState(Q)}}};
UWt=function(g){return{appApi:Object.assign({},_.XaJ(),{showCaptionsToggleToast:function(u){var q,Q;(Q=(q=g()).showCaptionsToggleToast)==null||Q.call(q,u)},
openInMiniplayer:function(){var u,q;(q=(u=g()).openInMiniplayer)==null||q.call(u)}})}};
gSZ=function(g,u){var q,Q,L;return!!(g==null?0:(q=g.playerResponse)==null?0:(Q=q.playerConfig)==null?0:(L=Q.inlinePlaybackConfig)==null?0:L.showScrubbingControls)&&!(u==null?0:u.hideScrubbingControls)};
uip=function(g){var u=!g.miniplayerIsActive;return[5,2,0].includes(g.miniplayerPlaybackState)||u};
qcf=function(g){return _.w("web_transcript_cue_id_killswitch")?String(g):"ytd-transcript-renderer_"+g};
QOx=function(g){return _.w("web_transcript_cue_id_killswitch")?!0:g.startsWith("ytd-transcript-renderer")};
L3x=function(g){var u=_.F0(),q;if(q=_.ri("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;q=(Q=q())==null?void 0:Q.layoutId}else q=null;gyb(u,q,g)};
ESp=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("HwlOhd"),2);g=_.bR0;return u.return(g)})};
PAK=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("JoU6vf"),2);g=_.w4;return u.return(g)})};
NT9=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("hU04te"),2);g=_.ntL;return u.return(g)})};
sOK=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("dIvQ6c"),2);g=_.vuK;return u.return(g)})};
yLb=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("m9Vw4"),2);g=_.eFf;return u.return(g)})};
vS9=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("mcjWUc"),2);g=_.IkL;return u.return(g)})};
DBE=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("QiZf0e"),2);g=_.zSL;return u.return(g)})};
pKC=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("f8YPh"),2);g=_.ifH;return u.return(g)})};
JLZ=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield((0,_.SQ)("b3MoKf"),2);g=_.bfx;return u.return(g)})};
jOh=function(g){g.style.height="auto";g.style.height=Math.min(g.scrollHeight||20,80)+"px"};
fgn=function(){var g;return String(Math.floor(((g=_.Ke())==null?void 0:g.getCurrentTime())||0)*1E3)};
tUt=function(g){if(g.onWelcomeCommand)return _.jy(g.onWelcomeCommand);g=_.c(g.inputComposerViewModel,MUE);if(g==null?0:g.welcomeFeatureContinuation)return _.M79(g.welcomeFeatureContinuation)};
eB9=function(g){var u=_.F0(),q;q=(q=_.ri("yt.www.ads.eventcache.getLastCompanionData"))?(q=q())&&q.layoutId:null;gyb(u,q,g)};
GK9=function(g){var u=_.F0(),q;q=(q=_.ri("yt.www.ads.eventcache.getLastCompanionData"))?(q=q())&&q.layoutId:null;gyb(u,q,g)};
$Bh=function(g){return g.filter(function(u){return!_.c(u,_.cK)})};
RBh=function(g){var u,q,Q,L;if(g=g==null?void 0:(u=g.contents)==null?void 0:(q=u.twoColumnWatchNextResults)==null?void 0:(Q=q.results)==null?void 0:(L=Q.results)==null?void 0:L.contents){var E,y;return(y=(E=g.find(function(v){return!!v.videoPrimaryInfoRenderer}))==null?void 0:E.videoPrimaryInfoRenderer)==null?void 0:y.updatedMetadataEndpoint}};
wKp=function(g,u){var q;return(q=g.sourceConfigs)==null?void 0:q.find(function(Q){return Q.videoId===u})};
cLE=function(g){return g==="End of video"||g==="End of playlist"};
HTn=function(g){var u,q,Q,L;return(u=g.getWatchNextResponse())==null?void 0:(q=u.contents)==null?void 0:(Q=q.twoColumnWatchNextResults)==null?void 0:(L=Q.playlist)==null?void 0:L.playlist};
ALH=function(g){var u,q,Q,L,E,y;return(u=HTn(g))==null?void 0:(q=u.playlistButtons)==null?void 0:(Q=q.menuRenderer)==null?void 0:(L=Q.topLevelButtons)==null?void 0:(E=L[0])==null?void 0:(y=E.playlistLoopButtonRenderer)==null?void 0:y.playlistLoopStateEntityKey};
ZTf=function(g){var u=_.Bk().resolve(_.cd),q;return(u=(q=_.c(u.getAutoplayEndpoint(),_.l1))==null?void 0:q.playlistId)&&u===g};
iTx=function(g,u,q,Q,L){function E(){_.Hv.cancelJob(Uu);var y=lgh(u,q/g.getPlaybackRate()),v=y.hours,J=y.minutes;y=(y.seconds*1E3||6E4)/g.getPlaybackRate();g.setVideoTimeLeft(Igb(v,J));Q&&g.getPlayerState()!==0&&g.setSleepTimerTimeLeft(Igb(v,J,!0));(v>0||J>0)&&!L&&(Uu=_.Ln(_.Hv,E,y))}
_.Hv.cancelJob(Uu);Uu=_.Ln(_.Hv,E)};
bTZ=function(g,u,q){function Q(){_.Hv.cancelJob(CAh);var L=lgh(u,q),E=L.hours;L=L.minutes;var y=6E4/g.getPlaybackRate();if(E>0||L>0)g.setSleepTimerTimeLeft(Igb(E,L,!0)),CAh=_.Ln(_.Hv,Q,y)}
_.Hv.cancelJob(CAh);CAh=_.Ln(_.Hv,Q)};
F3h=function(g,u){var q=g.getVolume()/(u/500),Q=function(L){_.Hv.cancelJob(dBt);var E=Math.floor(L-q);g.setVolume(E,!1);E>0&&(dBt=_.Ln(_.Hv,function(){Q(E)},500))};
_.Hv.cancelJob(dBt);dBt=_.Ln(_.Hv,function(){Q(g.getVolume())})};
mBh=function(g,u){_.Hv.cancelJob(dBt);u&&g.syncVolume()};
agL=function(){var g={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Ug("SLEEP_TIMER_DISRUPTED")}}}}};_.Bk().resolve(_.Gy).resolveCommand(g)};
VUz=function(g){return(g.getDuration()-g.getProgressState().current)*1E3};
lgh=function(g,u){g=g+u-(0,_.n0)();if(g<=0)return{hours:0,minutes:0,seconds:0};var q=new XKL(0,0,0,0,0,0,g);g=q.getHours();u=q.getMinutes();q=q.getSeconds();q!==0&&u++;u!==0&&u%60===0&&(g++,u=0);return{hours:g,minutes:u,seconds:q}};
Igb=function(g,u,q){return g>0&&u>0?q?_.Ug("TIME_LEFT_HOURS_MINUTES",{hours:g.toString(),minutes:u.toString()}):_.Ug("TIME_HOURS_MINUTES",{hours:g.toString(),minutes:u.toString()}):g>0?q?_.gF("TIME_LEFT_HOURS",g):_.gF("TIME_HOURS",g):q?_.Ug("TIME_LEFT_MINUTES",{minutes:u.toString()}):_.Ug("TIME_MINUTES",{minutes:u.toString()})};
W3n=function(g,u){if(g.timelyActions)return g.timelyActions.find(function(q){var Q;return((Q=_.c(q,rLZ))==null?void 0:Q.cueRangeId)===u})};
TTC=function(g){return _.w("kevlar_watch_cinematics_invisible")||g.fullscreen&&_.w("kevlar_watch_cinematics_invisible_in_fullscreen")||g.theater&&!g.fullscreen&&_.w("kevlar_watch_cinematics_invisible_in_theater")};
hBz=function(){var g=document.createElement("canvas"),u=g.getContext("2d");if(!u)throw Error("Ul");_.ZX(g,{position:"absolute",width:"100%",height:"100%"});return{element:g,context:u}};
Ycb=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.w("kevlar_watch_cinematics_css_blur")};
OTh=function(g){var u=g.externalVideoId||"";return u?g.isShortsEligible?"https://www.youtube.com/shorts/"+u:"https://www.youtube.com/watch?v="+u:""};
K3f=function(g){var u=[];g.viewCount&&u.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:g.viewCount});g.likeCount&&u.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:g.likeCount});return u};
xBt=function(g){var u,q,Q={"@context":"https://schema.org","@type":"VideoObject",description:_.iR(g.description),duration:"PT"+(g.lengthSeconds||"0")+"S",embedUrl:g.embed?g.embed.iframeUrl:"",name:_.iR(g.title),thumbnailUrl:((u=g.thumbnail)==null?void 0:(q=u.thumbnails)==null?void 0:q.map(function(t){return t&&t.url||""}))||[],
uploadDate:g.publishDate};_.w("mweb_video_schema_id_killswitch")||(Q["@id"]=OTh(g));u=K3f(g);u.length&&(Q.interactionStatistic=u);g.category&&(Q.genre=g.category);g.ownerChannelName&&(Q.author=g.ownerChannelName);g.liveBroadcastDetails&&(Q.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:g.liveBroadcastDetails.startTimestamp,endDate:g.liveBroadcastDetails.endTimestamp}]);if(g.learningResource){g=g.learningResource;Q["@type"]=["VideoObject","LearningResource"];var L;if((L=g.learningResourceType)==
null?0:L.length)Q.learningResourceType=g.learningResourceType[0];var E;if((E=g.educationalAlignment)==null?0:E.length)Q.educationalAlignment={"@type":"AlignmentObject",targetName:g.educationalAlignment[0]};var y;if((y=g.educationalLevel)==null?0:y.length){L=g.educationalLevel[0];var v;if((v=g.educationalLevelCountry)==null?0:v.length)L+=" ("+g.educationalLevelCountry+")";Q.educationalLevel=L}var J,f;if(((J=g.learningResourceType)==null?0:J.length)&&g.learningResourceType[0]==="Problem walkthrough"&&
((f=g.problemDescriptions)==null?0:f.length))for(Q.hasPart=[],v=_.N(g.problemDescriptions),J=v.next();!J.done;J=v.next())L=J.value,J=L.problemDescriptionText,f=L.startOffset,L=L.url,J&&f!==void 0&&L&&Q.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:J,text:J,startOffset:f,url:L})}return Q};
BT9=function(g){return g?g.status==="LIVE_STREAM_OFFLINE":!1};
zB9=function(g){return g&&g.contents&&g.contents.twoColumnWatchNextResults&&g.contents.twoColumnWatchNextResults.results&&g.contents.twoColumnWatchNextResults.results.results.contents};
nSC=function(g){if((g==null?void 0:g.value)===void 0||g==null||!g.unit)return"initial";a:{switch(g.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var u="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":u="%";break a}u=void 0}return u?""+g.value+u:"initial"};
kKx=function(g){return g?g.status==="LIVE_STREAM_OFFLINE":!1};
Sc9=function(g){return g&&g.contents&&g.contents.twoColumnWatchNextResults&&g.contents.twoColumnWatchNextResults.results&&g.contents.twoColumnWatchNextResults.results.results.contents};
UBh=function(g,u){var q,Q,L,E,y,v,J;_.D(function(f){switch(f.nextAddress){case 1:q=_.H9.getInstance();Q=_.ze.instance;L=_.R9.instance;if(!L)return oSt(g,Q,u),f.return();_.b8(f,2);g.onLoadingCommand&&Q.resolveCommand(g.onLoadingCommand);return f.yield(q.getCurrentPositionFromGeolocation(),4);case 4:E=f.yieldResult;if(!g.resolveLocationCommand){f.jumpTo(5);break}y=q.createLocationInfo(E);return f.yield(_.ce(L,g.resolveLocationCommand,{locationInfo:y}),6);case 6:v=f.yieldResult;if(!v||"error"in v&&v.error||
v.errorMetadata)return oSt(g,Q,u),f.return();var t;if(v==null?0:(t=v.onResponseReceivedActions)==null?0:t.length){t=_.N(v.onResponseReceivedActions);for(var e=t.next();!e.done;e=t.next())Q.resolveCommand(e.value)}(_.c(g.onSuccessCommand,_.l1)||_.c(g.onSuccessCommand,_.kZ))&&_.hJ(u.hostElement,"yt-navigate",{endpoint:g.onSuccessCommand,reload:!0});case 5:_.Xx(f,0);break;case 2:J=_.rt(f);if(J instanceof GeolocationPositionError&&J.code===GeolocationPositionError.PERMISSION_DENIED)return g.onDeniedCommand&&
Q.resolveCommand(g.onDeniedCommand),f.return();oSt(g,Q,u);_.Wx(f)}})};
oSt=function(g,u,q){g.onFailureCommand&&(u.resolveCommand(g.onFailureCommand),_.YJ(q.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
uEZ=function(g,u){var q=_.c(g,_.Nd8);if(q&&u){g=q.videoIds||[q.videoId];var Q;u=(Q=_.hJ(u,"yt-lockup-requested",{videoIds:g}).detail)==null?void 0:Q.returnValue;var L;q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?L=u?u:g.map(function(E){return{videoId:E,navigationEndpoint:q.videoCommand}}):u&&(L=u);
L&&(Q=L.map(function(E){var y=Object,v=y.assign;var J=E.navigationEndpoint;if(!_.c(J,_.g$)){var f=_.c(J,_.l1);if(f){if(delete f.index,delete f.playlistId,f=_.c(J==null?void 0:J.commandMetadata,_.S_),f==null?0:f.url){var t=f.url;t=_.g6(t,"list");t=_.g6(t,"index");f.url=t}}else J=void 0}return v.call(y,{},E,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:J})}),g0t(Q,q))}};
qaf=function(g){var u=_.Ic();if(g=_.c(g,_.sxa))g.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&u.clearQueue(),g.closeMiniplayer&&_.Bk().resolve(_.RO).close(!0)};
LEC=function(g){Q6z(_.Ic(),g)};
E0t=function(g){var u;(g=(u=_.c(g,_.EI0))==null?void 0:u.setVideoIds)&&g.forEach(function(q){_.EE5(_.Ic(),q)})};
Nm9=function(g){P$H(_.Ic(),g)};
s6L=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(g){return!1}};
qn=function(g,u,q){(_.w("desktop_keyboard_shortcut_usage_log")||q&&_.w("web_shorts_keyboard_shortcut_usage_log"))&&(u?gH.get(g):uN.get(g))&&(g=u?y2h.get(g):v0b.get(g))&&_.Ip(_.j_(),g)};
pMx=function(g){return g.findIndex(function(u){return D$C.indexOf(u.tagName)>-1})>-1};
J2Z=function(g,u){return g.findIndex(function(q){return q.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(u.keyCode):!1};
fPK=function(g,u){return _.p(j6x,{data:g,onYtNavigate:u})};
M$n=function(g,u){return _.BC(g.entities,"pageHeaderEntity",u)};
edz=function(g,u){return g.map(function(q){if(q.tabRenderer)return t$h(q.tabRenderer);if(q.expandableTabRenderer&&u){var Q=q.expandableTabRenderer;return{customTabRenderable:function(){return u(Q)}}}return{}})};
t$h=function(g){return{identifier:g.tabIdentifier,aTagConfig:_.MY({innertubeCommand:g.endpoint,forceNewState:!0}),title:g.title,selected:g.selected,disabled:g.unselectable,icon:g.icon}};
Rdh=function(g,u,q,Q){if(g)return Q=Q||g.likeStatus,u?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Q==="LIKE",isDisabled:!g.likesAllowed,defaultIcon:{iconType:q},defaultText:Q==="LIKE"?g.likeCountWithUnlikeText:g.likeCountText,toggledText:Q==="LIKE"?g.likeCountText:g.likeCountWithLikeText,defaultNavigationEndpoint:Gwf(g,"LIKE"),defaultServiceEndpoint:$$L(g,"LIKE"),toggledServiceEndpoint:$$L(g,"INDIFFERENT"),defaultTooltip:_.iR(g.likeCountTooltipText),toggledTooltip:_.iR(g.likeCountTooltipText),
targetId:g.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Q==="DISLIKE",isDisabled:!g.likesAllowed,defaultIcon:{iconType:q},defaultText:Q==="DISLIKE"?g.dislikeCountWithUndislikeText:g.dislikeCountText,toggledText:Q==="DISLIKE"?g.dislikeCountText:g.dislikeCountWithDislikeText,defaultNavigationEndpoint:Gwf(g,"DISLIKE"),defaultServiceEndpoint:$$L(g,"DISLIKE"),toggledServiceEndpoint:$$L(g,"INDIFFERENT"),defaultTooltip:_.iR(g.dislikeCountTooltipText),
toggledTooltip:_.iR(g.dislikeCountTooltipText)}};
Gwf=function(g,u){if(u==="LIKE")return g.likeCommand;if(u==="DISLIKE")return g.dislikeNavigationEndpoint};
$$L=function(g,u){var q;return(q=g.serviceEndpoints)==null?void 0:q.find(function(Q){var L;return((L=_.c(Q,_.sw))==null?void 0:L.status)===u})};
wMz=function(g,u,q,Q){g=u-g;q=Q-q;return Math.sqrt(g*g+q*q)};
c2f=function(g){var u=g>>8&255,q=g&255;return"#"+(g>>16&255).toString(16).padStart(2,"0")+u.toString(16).padStart(2,"0")+q.toString(16).padStart(2,"0")};
Hph=function(g,u){g&&_.Bk().resolve(_.Gy).resolveCommand(g,{forceClickLogging:!0,form:{element:u}})};
A2C=function(g){if(g.simpleText)return[{text:g.simpleText}];var u;return(u=g.runs)!=null?u:[]};
Zp9=function(g){var u=g.startEndTimeTemplate,q=g.startTimeUtcMillis;g=g.endTimeUtcMillis;if(u&&q&&g)return _.I7(fsZ(_.iR(u),Number(q),Number(g)))};
lPH=function(g,u){var q,Q,L=g==null?void 0:(q=g.viewCount)==null?void 0:(Q=q.videoViewCountRenderer)==null?void 0:Q.shortViewCount;if(!u&&L)return L;var E,y;return g==null?void 0:(E=g.viewCount)==null?void 0:(y=E.videoViewCountRenderer)==null?void 0:y.viewCount};
IPL=function(g,u){var q=g==null?void 0:g.relativeDateText;return!u&&q?[q,!0]:[g==null?void 0:g.dateText,!1]};
ipC=function(g,u,q,Q,L){Q=Q===void 0?"":Q;L=L===void 0?!1:L;var E=lPH(g,u),y=_.N(IPL(g,u)),v=y.next().value;y=y.next().value;u=u?g==null?void 0:g.sponsorsOnlyFirstTimeLongText:g==null?void 0:g.sponsorsOnlyFirstTimeShortText;var J=[];q&&E&&J.push(E);!q&&y||!v||J.push(v);g=[L?g==null?void 0:g.subtitle:void 0].concat(_.na(J),[u,g==null?void 0:g.stationName,g==null?void 0:g.rating,g?Zp9(g):void 0,g==null?void 0:g.upNextProgramText,g==null?void 0:g.superTitleLink]).filter(function(f){return!!f});
q={runs:[]};for(L=0;L<g.length;L++)q.runs.push.apply(q.runs,_.na(A2C(g[L]))),L<g.length-1&&q.runs.push({text:" "+Q+" "});return q};
C$Z=function(g,u){var q=_.l9x(u,{},g,!0);return new Promise(function(Q,L){q.listenOnce("n",function(){L(Error("gm`"+q.JSC$30533_getErrorDescription()))});
q.listenOnce("l",function(){var E=q.getResponseCode();if(E!==200)L(Error("hm`"+u+"`"+g.type+"`"+g.size+"`"+E));else try{Q(JSON.parse(q.getResponseText()).encryptedBlobId)}catch(y){L(y)}});
q.run()})};
bpK=function(g){return g.substring(g.indexOf(":")+1,g.indexOf(";"))};
d$z=function(g){return new Promise(function(u,q){var Q=new FileReader;Q.onloadend=function(){try{var L=new Uint8Array(Q.result);L.length<8&&q(void 0);var E=L.subarray(0,8);L="";for(var y=0;y<E.length;y++)L+=("0"+E[y].toString(16)).substr(-2);L.startsWith("ffd8ff")?u("image/jpeg"):L.startsWith("47494638")?u("image/gif"):L.startsWith("89504e470d0a1a0a")?u("image/png"):L.startsWith("424d")?u("image/bmp"):u(void 0)}catch(v){q(v)}};
Q.onerror=q;Q.readAsArrayBuffer(g)})};
FEn=function(g){return new Promise(function(u,q){var Q=new Image;Q.crossOrigin="anonymous";Q.onload=function(){var L=document.createElement("canvas");L.width=Q.naturalWidth;L.height=Q.naturalHeight;var E=L.getContext("2d");if(!E)throw Error("im");E.drawImage(Q,0,0);E=bpK(g);L.toBlob(function(y){y?u(y):q()},E)};
Q.src=g})};
aPh=function(g,u){var q;if(((q=_.c(g,_.g$))==null?void 0:q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Q;_.hJ((Q=u.hostElement)!=null?Q:u,"yt-shorts-reset");_.rkp(_.Bk().resolve(_.gz),g).then(function(E){m$z(E,u,g)})}else{var L;
_.KV((L=u.hostElement)!=null?L:u,[g]).then(function(E){E&&m$z(E.data,u,g)})}};
m$z=function(g,u,q){if(g){var Q=_.c(g.replacementEndpoint,_.g$);if(Q){g.sequenceContinuation&&(Q.sequenceParams=g.sequenceContinuation);var L;_.hJ((L=u.hostElement)!=null?L:u,"yt-navigate",{endpoint:g.replacementEndpoint})}else if((g==null?void 0:g.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(g==null?0:g.watchStatus)&&_.c(g.watchStatus,_.z0x)){var E;_.hJ((E=u.hostElement)!=null?E:u,"yt-navigate",{endpoint:q})}}};
V$p=function(g){var u=_.Bk().resolve(_.Ja),q=_.wy.currentPageTypeSelector(u.getState())||"";u=_.wy.currentPageSubTypeSelector(u.getState())||"";q=q==="ytd-browse"&&u==="home";return _.w("web_guide_entry_enable_cache_for_non_home_pages")?(g=(g==null?void 0:g.navigationEndpoint)&&_.nU(g.navigationEndpoint)==="home",{disableCache:q&&g}):{disableCache:q}};
WEE=function(g,u,q,Q){if(g&&g.length){var L={};if(u){var E=void 0;q&&(E={commandContext:{onTap:{innertubeCommand:q||{}}}});L.header={panelHeaderViewModel:{title:_.v1(u),rendererContext:E}}}u=[];g=_.N(g);for(q=g.next();!q.done;q=g.next()){E=q.value;q=_.c(E,XMh);E=_.c(E,r2x);var y=void 0,v=void 0;if((y=E)==null?0:(v=y.expandableItems)==null?0:v.length)for(E=_.N(E.expandableItems),y=E.next();!y.done;y=E.next()){y=y.value.guideEntryRenderer;var J=v=void 0;if(((v=y)==null?void 0:(J=v.icon)==null?void 0:
J.iconType)==="VIEW_LIST_CAIRO"){q=y;break}}v=y=void 0;E=((y=q)==null?0:y.formattedTitle)?_.v1((v=q)==null?void 0:v.formattedTitle):void 0;y=void 0;v=(y=q)==null?void 0:y.isPrimary;if(q&&E&&!v){E={title:E};q.navigationEndpoint&&(E.rendererContext={commandContext:{onTap:{innertubeCommand:q.navigationEndpoint}}});y=[];J=v=void 0;if(((v=q)==null?0:(J=v.thumbnail)==null?0:J.thumbnails)&&q.thumbnail.thumbnails.length>0){v=_.N(q.thumbnail.thumbnails);for(J=v.next();!J.done;J=v.next())y.push({url:J.value.url});
E.leadingAccessory={avatarViewModel:{image:{sources:y},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(v=void 0,(v=q.icon)==null?0:v.iconType)y.push({clientResource:{imageName:q.icon.iconType||""}}),E.leadingImage={sources:y};v=y=void 0;((y=q)==null?0:(v=y.badges)==null?0:v.liveBroadcasting)?(E.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",E.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},E.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
q.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?E.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":q.count&&(E.trailingLabel={content:q.count.toString()});u.push({listItemViewModel:E})}}u.length!==0?(L.content={listViewModel:{listItems:u}},Q===0&&(L.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):L=void 0;if(L)return u=void 0,Q===0&&(u={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:L}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:u}}}}};
TmC=function(g,u,q,Q){if(u!=null&&u.isPrimary){switch(Q){case 1:if(u.serviceEndpoint)break;q=WEE(q,u.formattedTitle,u.navigationEndpoint,Q);if(!q)break;u.serviceEndpoint=q;u.navigationEndpoint=void 0;break;case 0:!u.mouseEnterEndpoint&&(q=WEE(q,u.formattedTitle,void 0,Q))&&(u.mouseEnterEndpoint=q,u.mouseLeaveEndpoint={hideSheetCommand:{}})}g.push({guideEntryRenderer:u})}};
hdb=function(g){if(!g)return!1;try{if(g.host&&g.host.tagName==="YT-FORMATTED-STRING"&&g.host.id==="contenteditable-textarea"||g.nodeType===Node.ELEMENT_NODE&&g.tagName==="YTD-COMMENT-INPUT")return!0}catch(u){return!1}return hdb(g.parentNode)};
QS=function(g){return g?g.tagName==="A"&&g.href&&g.classList.contains("yt-simple-endpoint"):!1};
Yaf=function(g){return g?g.tagName==="IMG"&&g.classList.contains("emoji"):!1};
OpE=function(g,u,q){if(!g)return null;var Q=QS(g);if(Q&&q)return u=g.pathname.substring(g.pathname.indexOf("/channel/")+9),document.createTextNode("@"+u);if(Q&&!q)return document.createTextNode("");if(Yaf(g))return q=g.alt,g=g.dataset.emojiId,!g&&u&&(u=_.h7(u,q))&&u.isCustomEmoji&&(g=u.emojiId),g?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+g+">"):document.createTextNode(q);Q=g.cloneNode(!1);for(var L=0;L<g.childNodes.length;++L){var E=OpE(g.childNodes[L],u,q);E&&Q.appendChild(E)}return Q};
KEt=function(g){return g?QS(g)?g:KEt(g.lastChild):null};
x$n=function(g){return g?QS(g)?g:x$n(g.firstChild):null};
Bmp=function(g){if(!g)return null;for(var u=g.previousSibling;u;)if(u.nodeType===Node.ELEMENT_NODE&&u.nodeName==="BR")u=u.previousSibling;else if(u.nodeType===Node.TEXT_NODE&&/\s+/.test(u.textContent))u=u.previousSibling;else break;(u=KEt(u))?g=u:g=(g=g.parentNode)?KEt(g.previousElementSibling):null;return g};
zdf=function(g){if(!g)return null;for(var u=g.nextSibling;u;)if(u.nodeType===Node.ELEMENT_NODE&&u.nodeName==="BR")u=u.nextSibling;else if(u.nodeType===Node.TEXT_NODE&&/\s+/.test(u.textContent))u=u.nextSibling;else break;return(u=x$n(u))?u:zdf(g.parentNode)};
n0x=function(g){var u=_.QZ(),q=u.JSC$11657_getStartNode();if(!hdb(q.parentNode))return null;u=u.JSC$11657_getStartOffset();if(q.nodeType===Node.TEXT_NODE){var Q=_.ep(q,QS);if(Q){if(g&&u===0||!g&&u===q.length)return Q}else{if(g&&u===q.length)return!q||q.nodeName==="BR"||q.nextElementSibling&&_.OI(q.nextElementSibling,"display")==="block"?null:x$n(q.nextElementSibling);if(!g&&u===0)return q?KEt(q.previousElementSibling):null}}if(q.nodeType===Node.ELEMENT_NODE)if(g){if(0<=u&&u<q.childNodes.length)return x$n(q.childNodes[u])}else if(0<
u&&u<=q.childNodes.length)return KEt(q.childNodes[u-1]);return null};
kwZ=function(g,u,q){if(!g)return null;if(g.nodeType===Node.TEXT_NODE)if(q){var Q=Bmp(g);if(Q&&!/^\s+\S/.test(g.wholeText.substr(0,u)))return Q}else if((Q=zdf(g))&&!/\S\s+/.test(g.wholeText.substr(u,g.wholeText.length)))return Q;return g.nodeType===Node.ELEMENT_NODE?q?Bmp(g.childNodes[u]):zdf(g.childNodes[u]):kwZ(g.parentNode,u,q)};
SaK=function(g){if(g.hasChildNodes())switch(g.tagName){case "DIV":case "A":case "SPAN":var u="";for(g=g.firstChild;g;g=g.nextSibling)u+=SaK(g);return u;default:return""}else switch(g.nodeType){case 3:return g.textContent;default:return""}};
o0h=function(g){switch(g){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"}};
U$f=function(g){return g.map(function(u){return{settingsRadioOptionRenderer:{title:_.XS(u.name),asideText:_.XS(u.approximateSize),id:o0h(u.format)}}})};
uA9=function(g){if(g&&g.length!==0)return g.filter(g2p()).map(function(u){return{settingsRadioOptionRenderer:{title:u.name,asideText:u.approximateSize,id:o0h(u.formatType)}}})};
qQp=function(g){if(g)return g.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
QAf=function(g,u){g=new Set(g!=null?g:[]);if(g.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(g.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(g.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(g.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(g.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(u)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
LbZ=function(g){var u=g.indexOf("(");return u!==-1?g.substring(u+1,g.length-1):g};
_.PMp=function(g,u,q,Q,L){q||(q=E2f);var E;(E=_.c(q.commandMetadata,_.S_))!=null&&E.url||(q=Error("nm`"+JSON.stringify(q)),_.Zf(q),q=E2f);q=_.pH.unsafeClone(q);E=_.u0(_.c(q.commandMetadata,_.S_).url,"search_query",g);_.U7(location.href,"sv")==="1"&&(_.c(q,_.Sb).params="EgOAAgE%3D",E=_.u0(E,"sv","1"));_.c(q,_.Sb)&&(_.c(q,_.Sb).query=g);E=E.replace(/%20/g,"+");_.c(q.commandMetadata,_.S_).url=E;L=_.w("desktop_enable_entity_suggest")?{entityMid:L}:{};_.Bk().resolve(_.Gy).resolveCommand(q,{form:{tempData:Object.assign({},
{gs_l:u,oq:Q!=null?Q:g},L),isFromShorts:_.i2()==="shorts"}})};
NXt=function(g){switch(g){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
yyx=function(g,u,q,Q,L,E){var y=_.pH.clone(sAb);y.locale=_.FR("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;y.report={description:L||"<empty>"};L=_.FR("SBOX_SETTINGS",{});u=u.join(",");var v=Date.now();g={choice_cc:Q,choice_id_cc:q,choices_sc:u,gl:L.REQUEST_DOMAIN,hl:L.REQUEST_LANGUAGE,query:g,time:v};E&&(g.choice_additional_comment_cc=E);_.d6a(y,g)};
v2H=function(g){var u=new Map;u.set("authuser",_.FR("SESSION_INDEX","0"));return _.Zi(g,u)};
pHC=function(g){var u;return _.D(function(q){switch(q.nextAddress){case 1:if(!g||!DH9(g))return q.return(null);u=null;switch(_.FR("INNERTUBE_CLIENT_NAME")){case "WEB":return q.jumpTo(2);case "WEB_REMIX":u=g.getPlayer()}q.jumpTo(3);break;case 2:return q.yield(g.getPlayerPromise(),4);case 4:u=q.yieldResult;q.jumpTo(3);break;case 3:return q.return(u)}})};
DH9=function(g){return["ytd-player","ytmusic-player"].includes(String(g.tagName||"").toLowerCase())};
JyE=function(g){g=Math.round(g);return g%2?g-1:g};
jAz=function(g){g=Math.round(g);return g%2===0?g-1:g};
fXL=function(g){var u=["h","m","s"],q=_.Ob(u);q.reverse();var Q={};g=(g.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(y){var v=(y.match(/[hms]/)||[""])[0];return v?(Q[v]=parseInt(y.match(/\d+/)[0],10),!1):!0});
for(g.reverse();g.length&&q.length;){var L=q.shift();L in Q||(Q[L]=parseInt(g.shift(),10))}if(g.length||Q.s>59||Q.m>59||Q.h>9)return null;var E="";u.forEach(function(y){Q[y]&&(E+=""+Q[y]+y)});
return E||null};
M0b=function(g){var u,q,Q;if(g=(u=g.createPlaylistDialogFormSchema)==null?void 0:(q=u.fieldSchemas)==null?void 0:(Q=q.title)==null?void 0:Q.validationSchema)for(u=[g.syncStep,g.asyncStep].filter(function(L){return L!==void 0}),u=_.N(u),q=u.next();!q.done;q=u.next()){q=q.value.rules;
if(!q)break;q=_.N(q);for(q=q.next();!q.done;q=q.next())return _.c(q.value,oyt)}};
exx=function(g){var u,q,Q;if(g=(u=g.createPlaylistDialogFormSchema)==null?void 0:(q=u.fieldSchemas)==null?void 0:(Q=q.visibility)==null?void 0:Q.validationSchema)for(u=[g.syncStep,g.asyncStep].filter(function(L){return L!==void 0}),u=_.N(u),q=u.next();!q.done;q=u.next()){q=q.value.rules;
if(!q)break;q=_.N(q);for(Q=q.next();!Q.done;Q=q.next())if(Q=_.c(Q.value,t0z))return u=void 0,(u=Q.translations)==null?void 0:u.visibilityNotValidErrorMessage}};
G0p=function(){var g,u;return(u=(g=_.Bk().resolve(_.xv(_.gy)))==null?void 0:g())!=null?u:!1};
$H9=function(g){var u=21;if(!g)return u;u+=g.headerTitle?27:0;u+=g.headerTitle&&g.hasHeaderActionHeader?4:0;return u+=g.headerTitle&&g.headerSubtitle?16:0};
Rxp=function(g){var u=0;if(!g)return u;u+=g.hasFooterPrimaryButton||g.hasFooterSecondaryButton?48:0;u+=g.footerTrailingLabel||g.footerLeadingLabel?30:0;return u+=g.hasFooterPrimaryButton||g.hasFooterSecondaryButton||!g.footerTrailingLabel&&!g.footerLeadingLabel?0:12};
wHH=function(g){var u=new _.PW,q=g;return{subscribe:function(Q){u.subscribe("changed",Q)},
dispatch:function(Q,L){var E=q;if(Q==="Touch Start")q=Object.assign({},E,{isAnimating:!1,initialY:L.event.touches[0].clientY});else if(Q==="Touch Move"){Q=L.contentScrollable?-1*(E.initialY-24):0;var y,v=(y=L.headerDivHeight)!=null?y:$H9(L.header),J;y=(J=L.footerDivHeight)!=null?J:Rxp(L.footer);J=Math.min(L.fullContentWrapperHeight,L.heightMap[L.contentWrapperId]+v-y);q=Object.assign({},E,{currentY:Math.max(Q,L.event.touches[0].clientY-E.initialY),maxHeightForContentWrapper:Math.min(J,Math.max(0,
(E.isFullScreen?J:L.contentWrapperHeight)-E.currentY))})}else q=Q==="Snap To Full Screen"?Object.assign({},E,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:L.maxHeight}):Q==="Snap To Neutral Position"?Object.assign({},E,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:L.maxHeight}):Q==="Close Sheet"?Object.assign({},E,{isAnimating:!0,currentY:L.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:L.maxHeight}):E;u.publish("changed",q)}}};
cyn=function(){_.Bk().resolve(_.vy).closeSheet()};
HNn=function(g){var u,q,Q,L,E,y,v,J,f,t,e;return{headerTitle:(u=g.headerTitle)==null?void 0:u.call(g),headerSubtitle:(q=g.headerSubtitle)==null?void 0:q.call(g),headerActionHeader:g.headerActionHeader,footerPrimaryButton:g.footerPrimaryButton,footerSecondaryButton:g.footerSecondaryButton,footerButtonType:(Q=g.footerButtonType)==null?void 0:Q.call(g),footerLeadingLabel:(L=g.footerLeadingLabel)==null?void 0:L.call(g),footerTrailingLabel:(E=g.footerTrailingLabel)==null?void 0:E.call(g),shouldShowIcons:(y=
g.shouldShowIcons)==null?void 0:y.call(g),skipContentClick:(v=g.skipContentClick)==null?void 0:v.call(g),additionalClassName:(J=g.additionalClassName)==null?void 0:J.call(g),onClosedCallback:g.onClosedCallback,focusOnClose:(f=g.focusOnClose)==null?void 0:f.call(g),isDisabled:(t=g.isDisabled)==null?void 0:t.call(g),disabledCommand:(e=g.disabledCommand)==null?void 0:e.call(g),headerFn:g.headerFn,contentFn:g.contentFn,footerFn:g.footerFn,hasHeaderFn:g.hasHeaderFn(),hasContentFn:g.hasContentFn(),hasFooterFn:g.hasFooterFn(),
hasFooterPrimaryButton:g.hasFooterPrimaryButton(),hasFooterSecondaryButton:g.hasFooterSecondaryButton(),hasHeaderActionHeader:g.hasHeaderActionHeader()}};
Ayn=function(g){switch(g){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""}};
ZNf=function(g){switch(g){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""}};
lXC=function(g){switch(g){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""}};
IXb=function(g,u,q){u.forEach(function(Q){_.nq(_.Bk().resolve(_.QA),Q)});
_.YJ(g,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",q])};
dHp=function(g,u,q,Q){var L=_.c(q,_.HF).commandLifeCycleConfig;L&&L.onStartCommand&&_.xJ(g,[L.onStartCommand],u);_.$b(u);var E=_.R9.instance;E&&_.wv(E,q)?_.ce(E,q,Q).then(function(y){if(!y||(y==null?0:y.error))return y=_.c(q,_.HF).serializedTransactionFlowLoggingParams,_.R1(u),_.NY(new Ls("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",y));_.R1(u);return{data:y}}).then(function(y){_.R1(u);
iNx(y.data);var v=y.data.command;v&&_.xJ(g,[v],u);v=CMx(q,y.data);if(!v){var J=y.data;y=!1;if(J&&J.command&&_.c(J.command,_.zg)){var f;J=((f=_.c(J.command,_.zg))==null?void 0:f.commands)||[];for(f=0;f<J.length;f++)if(_.c(J[f],_.cP2)){y=!0;break}}y||_.LK('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!v&&L&&L.onSuccessCommand?_.xJ(g,[L.onSuccessCommand],u):v&&L&&L.onFailureCommand&&_.xJ(g,[L.onFailureCommand],u)},function(){_.R1(u);
L&&L.onFailureCommand&&_.xJ(g,[L.onFailureCommand],u);bNf(q)}):_.Zf(Error("zm"),"ERROR")};
Fbh=function(g,u,q){var Q=[u];q&&Q.push(q);return _.KV(g,Q).then(function(L){var E=_.c(u,_.HF).serializedTransactionFlowLoggingParams,y=L.data,v=CMx(u,y);v?L=_.NY(new Ls(v,E)):iNx(y);return L},function(){var L=_.c(u,_.HF).serializedTransactionFlowLoggingParams;
bNf(u);return _.NY(new Ls("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",L))})};
CMx=function(g,u){g=_.c(g,_.HF).serializedTransactionFlowLoggingParams;var q=null;switch(u.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":q="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":q="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":q="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}q?_.IE(q,g):hN9(g);return q};
bNf=function(g){_.IE("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.c(g,_.HF).serializedTransactionFlowLoggingParams)};
iNx=function(g){if(g.trackingParams){var u=_.j_(),q=_.JJ();u&&q&&_.cC(u,q,_.Lr(g.trackingParams))}};
mHb=function(g,u,q){var Q=_.R9.instance,L=_.ULu(_.FR("YPC_MB_URL")),E=(new _.SjK).init(),y=_.oPq(),v=_.c(q,_.GfX).languageCode;v===void 0?_.Zf(Error("Mi"),"ERROR"):_.jk([E,L]).then(function(){var J={ctk:_.Xa.payments.business.integration.ClientTokenFactory.createClientToken(v,y)};Q&&_.wv(Q,q)?_.ce(Q,q,J).then(function(f){return{data:f}}).then(function(f){_.hJ(u,"yt-service-request-completed",f);
f.code!=="ERROR"&&(f=f.data.command)&&_.xJ(g,[f],u)}):_.Zf(Error("zm"),"ERROR")})};
XHZ=function(g,u,q,Q){var L=_.R9.instance;L&&_.wv(L,q)?_.ce(L,q,Q).then(function(E){return{data:E}}).then(function(E){aXH(g,u,q,E)},function(){V0f(q)}):(L=_.Bk().resolve(_.xv(_.qR)))&&L.requestDataForServiceEndpoint(q,Q).then(function(E){aXH(g,u,q,E)},function(){V0f(q)})};
aXH=function(g,u,q,Q){_.hJ(u,"yt-service-request-completed",Q);if(Q.code&&Q.code=="ERROR")V0f(q);else{(Q=Q.data.commands)&&_.xJ(g,Q,u);var L;(g=(L=_.c(q,_.APi))==null?void 0:L.serializedYpcPauseFlowLoggingParams)&&g&&Kg("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",g)}};
V0f=function(g){var u;(g=(u=_.c(g,_.APi))==null?void 0:u.serializedYpcPauseFlowLoggingParams)&&g&&Kg("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",g,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
TXK=function(g,u,q){var Q=_.R9.instance;Q&&_.wv(Q,q)?_.ce(Q,q).then(function(L){return{data:L}}).then(function(L){ryH(g,u,q,L)},function(){WbK(q)}):(Q=_.Bk().resolve(_.xv(_.qR)))&&Q.requestDataForServiceEndpoint(q).then(function(L){ryH(g,u,q,L)},function(){WbK(q)})};
ryH=function(g,u,q,Q){_.hJ(u,"yt-service-request-completed",Q);Q.code&&Q.code=="ERROR"?WbK(q):((Q=Q.data.commands)&&_.xJ(g,Q,u),(g=_.c(q,_.Zlb).serializedYpcResumeFlowLoggingParams)&&g&&Kg("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",g))};
WbK=function(g){(g=_.c(g,_.Zlb).serializedYpcResumeFlowLoggingParams)&&g&&Kg("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",g,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
hxZ=function(g){g=g===void 0?{}:g;_.Bk().resolve(_.fKE).showFeedbackDialog(g.customProductData,g.feedbackContent,g.onFeedbackSubmitted,g.bucket)};
YQp=function(g){g=g===void 0?{}:g;_.Bk().resolve(_.fKE).showHelpDialog(g.helpContext,g.articleId,g.productData)};
ONf=function(){YQp()};
KbZ=function(){hxZ()};
BX9=function(g,u,q){var Q,L,E,y,v,J,f;return _.D(function(t){switch(t.nextAddress){case 1:Q=_.c(g,xHK);if((L=Q)==null?0:L.productId){J={productId:Q.productId,bucket:Q.bucket,enableAnonymousFeedback:(v=Q.enableAnonymousFeedback)!=null?v:!0,allowNonLoggedInFeedback:!0};f={feedbackChoice:q.feedbackChoice};if(!_.w("web_collect_offline_state")){t.jumpTo(8);break}_.b8(t,9);return t.yield(mZh(f),11)}y={bucket:(E=Q)==null?void 0:E.bucket};if(!_.w("web_collect_offline_state")){t.jumpTo(4);break}y.customProductData=
{};_.b8(t,5);return t.yield(mZh(y.customProductData),7);case 7:_.Xx(t,4);break;case 5:_.rt(t);case 4:hxZ(y);t.jumpTo(0);break;case 11:_.Xx(t,8);break;case 9:_.rt(t);case 8:_.X0Z(f),_.VDF("GFEEDBACK",f),Q.productId==="5295751"&&(f.client_attestation=Number(_.FR("CATSTAT",0))),Q.productId==="5295751"&&(f.client_time=Date.now()/1E3/3600),Q.productId==="5295751"&&(f.original_playback_id=_.MuR||""),_.d6a(J,f),_.Wx(t)}})};
zxz=function(g){if(g=_.c(g,_.VrJ)){var u={bucket:g.bucketIdentifier};g.additionalDatas&&(u.customProductData={},g.additionalDatas.forEach(function(q){if(q=q.userFeedbackEndpointProductSpecificValueData)u.customProductData[q.key]=q.value}));
hxZ(u)}};
n2Z=function(g){var u=_.VC.getInstance();var q=_.Ug("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var Q=_.Ug("DELETE",void 0,"Delete"),L=_.Ug("CANCEL",void 0,"Cancel");q=LLL(q,void 0,Q,L,{signal:"DELETE_ALL_DOWNLOADS"});_.j2(u,[{openPopupAction:q}],g)};
SQK=function(){return _.D(function(g){return g.nextAddress==1?g.yield(_.Bk().resolve(_.tRh),2):g.yield(k0p(),0)})};
o2p=function(g){var u,q;return _.D(function(Q){return Q.nextAddress==1?(q=(u=_.c(g,_.FU))==null?void 0:u.targetId)?Q.yield(_.Bk().resolve(_.tRh),3):Q.jumpTo(0):Q.yield(_.Bk().resolve(_.s8).deleteVideo(q),0)})};
gkK=function(g){var u,q;return _.D(function(Q){return Q.nextAddress==1?(q=(u=_.c(g,_.FU))==null?void 0:u.targetId)?Q.yield(_.Bk().resolve(_.tRh),3):Q.jumpTo(0):Q.yield(UHK(_.Bk().resolve(_.s8),q),0)})};
qOE=function(g){var u,q;return _.D(function(Q){return(q=(u=_.c(g,_.FU))==null?void 0:u.targetId)?Q.yield(uyE(q),0):Q.jumpTo(0)})};
L2K=function(){_.w("kevlar_woffle_refresh_dl_load_killswitch")||QVt()};
PJK=function(){_.w("kevlar_woffle")&&_.c9.instance&&Ek9()};
sVn=function(g){var u;if((u=_.c(g,_.zc))==null||!u.videoId)return!1;NJh(_.Bk().resolve(_.s8),_.c(g,_.zc),g.clickTrackingParams);return!0};
vkZ=function(g){var u;if((u=_.c(g,_.ne))==null||!u.playlistId)return!1;yzh(_.Bk().resolve(_.s8),_.c(g,_.ne),g.clickTrackingParams);return!0};
plE=function(g){var u=_.c(g,_.vex);(u==null?void 0:u.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(u==null?void 0:u.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||DPb(_.Bk().resolve(_.s8),_.c(g,_.vex))};
jVb=function(g){g=_.c(g,_.X2a);var u;(g==null?0:(u=g.actions)==null?0:u.length)&&JzH(g)};
tkb=function(g){var u,q;return _.D(function(Q){u=_.c(g,fBf);return(q=u)!=null&&q.localWatchHistoryCommandType?Q.yield(MkK(u),0):Q.return()})};
GAz=function(){return _.D(function(g){return g.yield(eyp(),0)})};
$PC=function(g){setTimeout(function(){requestAnimationFrame(g)},80)};
Ryh=function(g){return Object.entries(g).map(function(u){return u.join(":")}).join(";")};
czx=function(g){var u,q,Q;_.D(function(L){if(L.nextAddress==1)return L.yield(wlK(),2);u=L.yieldResult;q=_.ze.instance;switch(u){case "granted":Q=g.getLocationCommand;break;case "denied":Q=g.openDeniedDialogAction;break;case "prompt":Q=g.openCollectionDialogAction;break;default:Q=g.openCollectionDialogAction}Q&&q.resolveCommand(Q);_.Wx(L)})};
wlK=function(){var g,u;return _.D(function(q){if(q.nextAddress==1)return g="prompt",navigator.permissions?q.yield(navigator.permissions.query({name:"geolocation"}),3):q.jumpTo(2);q.nextAddress!=2&&(u=q.yieldResult,g=u.state);return q.return(g)})};
Azz=function(){_.D(function(g){return g.yield(_.HYx(),0)})};
ZYH=function(){var g,u,q;return _.D(function(Q){if(Q.nextAddress==1)return g=_.Bk().resolve(_.QY),g?Q.yield(_.ce(g,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Io(Error("Cm")),Q.return(void 0));if(u=Q.yieldResult){if(u.errorMetadata)return _.Io(Error("Dm`"+u.errorMetadata.status+"`"+u.error)),Q.return(void 0);q=u.datasyncIds;_.Iih=q.length;return Q.return(q)}_.Io(Error("Em"));return Q.return(void 0)})};
lBC=function(){ZYH().then(function(g){g&&(dM9(g),zNh(g),ytt(g),Vbt(g))})};
IBE=function(g){_.Hv.addLowPriorityJob(function(){var u,q,Q,L,E;return _.D(function(y){switch(y.nextAddress){case 1:if(_.w("ytidb_clear_optimizations_killswitch")){y.jumpTo(2);break}u=_.DQ("clear");if(u.startsWith("V")&&u.endsWith("||")){var v=[u];dM9(v);zNh(v);ytt(v);Vbt(v);return y.return()}q=v6z();Q=XcK();return y.yield(n6t(),3);case 3:return L=y.yieldResult,y.yield(FLf(),4);case 4:if(E=y.yieldResult,!(q||Q||L||E))return y.return();case 2:g.isNetworkAvailable()?lBC():g.listenOnce("publicytnetworkstatus-online",
lBC),_.Wx(y)}})})};
EV=function(g){g={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.I7(g)}}}};_.ze.instance&&_.ze.instance.resolveCommand(g)};
iYn=function(g){if(g){var u=_.gL();_.Kq(u,3854,void 0,{layer:0,parentLayer:4});switch(g){case 1:var q=238708;break;case 2:q=238715;break;case 3:q=238710;break;case 6:q=238709}q&&(g=_.Ui(u,{veType:q}))&&_.zZ(u,g)}};
CJh=function(g){if(g){var u=_.gL();_.Kq(u,3854,void 0,{layer:0,parentLayer:4});switch(g){case 1:var q=238714;break;case 2:q=238711;break;case 8:q=238709;break;case 7:q=238713;break;case 3:case 4:case 5:q=238712}q&&(g=_.Ui(u,{veType:q}))&&_.zZ(u,g)}};
bYC=function(g){switch(g.latencyType){case 0:_.jF("consent_primitive_flow");_.fW("cpit",g.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.fW("cpist",g.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.fW("cprtif",g.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.fW("cprtli",g.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.fW("cprt",g.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.fW("cpdt",g.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.fW("cpjct",g.timestampEpochMillis,"consent_primitive_flow")}};
OYp=function(g,u){var q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W;return _.D(function(x){switch(x.nextAddress){case 1:_.b8(x,2);(Q=(q=_.c(g,dPx))==null?void 0:q.serializedConsentRequest)||(Q=(L=_.c(g,F2n))==null?void 0:L.serializedConsentRequest);Q&&(E=mPL(_.Ub(Q)));if(E===void 0)return x.return();y=aBz(E);y.latencyCallback=bYC;u&&VkZ(y,function(){u.then(function(k){k.pauseVideo();(new XlZ).increment()})});
return((v=_.c(g,dPx))==null?void 0:v.consentAction)==="CONSENT_ACTION_PREWARM"||((J=_.c(g,F2n))==null?void 0:J.consentAction)==="CONSENT_ACTION_PREWARM"?x.yield(rzZ(y),5):x.yield(W2Z(y),6);case 6:f=x.yieldResult;t=_.Ea(f,P3);if(t===1){if(((e=_.t2(f,TJh,1,P3))==null?void 0:_.j$(e,1))===1||((G=_.t2(f,TJh,1,P3))==null?void 0:_.j$(G,1))===2||((R=_.t2(f,TJh,1,P3))==null?void 0:_.j$(R,1))===3)_.c(g,F2n)?EV(_.Ug("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
EV(_.Ug("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));iYn((H=_.t2(f,TJh,1,P3))==null?void 0:_.j$(H,1),_.Vu(f,hyh,3,_.Xo()))}else t===2?(((l=YOx(f))==null?void 0:_.j$(l,1))===5?_.c(g,F2n)?EV(_.Ug("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):EV(_.Ug("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((d=YOx(f))==null?void 0:_.j$(d,1))===1||((F=YOx(f))==null?void 0:_.j$(F,1))===4?
EV(_.Ug("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((V=YOx(f))==null?void 0:_.j$(V,1))===7&&((z=E)==null?void 0:(O=_.o0(z,Nn,4))==null?void 0:_.j$(O,4))!==1&&EV(_.Ug("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),CJh((W=YOx(f))==null?void 0:_.j$(W,1))):EV(_.Ug("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));x.jumpTo(5);break;case 5:_.Xx(x,0);break;case 2:_.rt(x),EV(_.Ug("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.Wx(x)}})};
xPL=function(){if(!K2f.has("Worker")){K2f.set("Worker",!0);var g={api:"BROWSER_API_WEB_WORKER"};g.available="Worker"in window?!0:!1;_.H6("apiTest",g)}};
BJ9=function(g){return typeof g==="undefined"?"-1":String(Math.ceil(g/1048576))};
SOL=function(g,u){zyb(new nkC(_.c(u,kAC).addToken,_.c(u,kAC).commonToken)).then(function(){_.hJ(g,"yt-invoke-instrument-manager-action-completed")},function(q){_.hJ(g,"yt-invoke-instrument-manager-action-error",q)})};
sV=function(){return _.FR("HTML_DIR")==="rtl"};
okL=function(){var g,u;return(u=(g=window).matchMedia)==null?void 0:u.call(g,"(prefers-reduced-motion: reduce)").matches};
UPn=function(g){var u=_.Bk().resolve(_.xv(_.LP));if(u&&u.isAnyTransitionEnabled){var q={};u.viewTransitionCoordinator.registerElement(g,(q.slide="miniplayer-page-transition",q["lockup-to-watch"]="miniplayer-page-transition",q["learning-journey"]="miniplayer-page-transition",q))}};
got=function(g,u,q){return{horizontalAlignment:g.x+q.width/2<u.width/2?"west":"east",verticalAlignment:g.y+q.height/2<u.height/2?"north":"south"}};
qGf=function(g,u,q,Q,L){L=L===void 0?new _.l7(0,0):L;g=uvK(g,u,q,Q,!1);return new _.l7(g.x+L.x,g.y+L.y)};
uvK=function(g,u,q,Q,L){L=(L===void 0?0:L)?400:0;return new _.l7(g==="west"?16+(sV()?L:0):q.width-Q.width-16-(sV()?0:L),u==="north"?16:q.height-Q.height-16)};
QQh=function(g,u){var q=0;g&&(q+=76);u&&(q+=285);return q};
Lpp=function(g){return _.R6(g)};
EoE=function(g){var u=1;g=g.split(":");for(var q=[];u>0&&g.length;)q.push(g.shift()),u--;g.length&&q.push(g.join(":"));return q};
PE9=function(g){var u=new _.UQ;return _.e$(u,11,g)};
N2z=function(g){var u={};g=g.getAllResponseHeaders().split("\r\n");for(var q=0;q<g.length;q++)if(!_.vS(g[q])){var Q=EoE(g[q]),L=Q[0];Q=Q[1];if(typeof Q==="string"){Q=Q.trim();var E=u[L]||[];u[L]=E;E.push(Q)}}return _.pH.map(u,function(y){return y.join(", ")})};
S3b=function(g,u){return g.JSC$10103_xhr_?g.JSC$10103_xhr_.getResponseHeader(u):null};
sQK=function(g,u){if(g.isDisposed())throw Error("Fa");g.qc.wF("n");var q=_.wJ(g.qc,function(){return g.o2F([u.rI,u.plB,u.g3M,u.dmp])},"n");
g.qc.mdW(q.length);g.qc.iK();return q};
y$p=function(g,u,q){Array.isArray(q)||(q=[String(q)]);_.p6n(g.JSC$10339_queryData_,u,q);return g};
vop=function(g){var u=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.zA(g);g.keyMap_.forEach(function(q,Q){_.WS(u,Q)||this.remove(Q)},g)};
Ek9=function(){var g=_.c9.instance;_.D(function(u){return g.deferredInstallPrompt?u.yield(g.deferredInstallPrompt.prompt(),0):u.jumpTo(0)})};
D6x=function(g,u,q){if(_.xu(g))_.Tv(g,u,q);else for(g=_.Df8(g);;){var Q=g.next();if(Q.done)break;u.call(q,Q.value,void 0,g)}};
ptL=function(g,u){var q=[];D6x(u,function(Q){try{var L=_.DM.prototype.getWrapper.call(this,Q,!0)}catch(E){if(E=="Storage: Invalid value was encountered")return;throw E;}L===void 0?q.push(Q):_.v68(L)&&q.push(Q)},g);
return q};
zfh=function(g,u){ptL(g,u).forEach(function(q){_.DM.prototype.remove.call(this,q)},g)};
J$f=function(g){var u=_.Go;u._minimumZ=Math.max(u._minimumZ,g)};
jQh=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];f9h=function(g,u){_.Fo(g.vm);g.vm=u};
MsH=function(g,u,q,Q){g.setState(5);var L=!!g.xDz&&jQh.includes(_.h1(g.xDz)||"");try{var E=new _.cl({program:u,globalName:q,cYB:{disable:!_.w("att_web_record_metrics")||!_.w("att_skip_metrics_for_cookieless_domains_ks")&&L,yr:"aGIf"}});E.exH.then(function(){g.setState(6);Q&&Q(u)});
f9h(g,E)}catch(y){g.setState(7),y instanceof Error&&_.Io(y)}};
tsK=function(g,u,q,Q,L,E){var y=y===void 0?"trayride":y;q?(g.setState(2),_.Rr(_.J5(q),function(){if(window[y])MsH(g,Q,y,L);else{g.setState(3);var v=_.iqZ(q),J=document.getElementById(v);J&&(_.nHh(v),J.parentNode.removeChild(J));_.Io(new _.Ji("BL:ULB",q))}},E)):u?(E=_.oG("SCRIPT"),u instanceof _.vx?_.JB(E,u):E.textContent=u,E.nonce=_.yT(document),document.head.appendChild(E),document.head.removeChild(E),window[y]?MsH(g,Q,y,L):(g.setState(4),_.Io(new _.Ji("BL:ULBJ")))):_.Io(new _.Ji("BL:ULV"))};
ek9=function(){this.state=1;this.vm=null;this.xDz=void 0};
_.P=ek9.prototype;_.P.initialize=function(g,u,q,Q){this.xDz=Q;if(g.program){var L;Q=(L=g.interpreterUrl)!=null?L:null;if(g.interpreterSafeScript)L=_.tPK(g.interpreterSafeScript);else{var E;L=(E=g.interpreterScript)!=null?E:null}g.interpreterSafeUrl&&(Q=_.A6(g.interpreterSafeUrl).toString());tsK(this,L,Q,g.program,u,q)}else _.Io(Error("uf"))};
_.P.isInitialized=function(){return!!this.vm};
_.P.getState=function(){return this.state};
_.P.isLoading=function(){return this.state===2};
_.P.invoke=function(g){g=g===void 0?{}:g;var u;this.vm?u=sQK(this.vm,{rI:g}):u=null;return u};
_.P.dispose=function(){f9h(this,null);this.setState(8)};
_.P.setState=function(g){this.state=g};
var GGx=function(g,u){return g.vm.snapshot(u)},$6t=function(g,u){var q=_.S8("botguard_async_snapshot_timeout_ms",3E3);
u=u===void 0?{}:u;q=q===void 0?3E3:q;return g.vm?new Promise(function(Q,L){var E=!1,y=_.Hv.addJob(function(){E=!0;L(Error("vf"))},1,q);
g.vm?GGx(g,{rI:u}).then(function(v){_.Hv.cancelJob(y);E||Q(v)}).catch(function(v){_.Hv.cancelJob(y);
E||L(v)}):(_.Hv.cancelJob(y),Q(null))}):Promise.resolve(null)},Rkn=["att/log"],E2f;
E2f={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var wth={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},c$9=function(g,u){return _.UR(g,{mode:"readwrite",enableRetries:!0},function(q){return _.szJ(q,u,"settingEntity")})},Hjh=function(g,u,q){return _.UR(g,{mode:"readonly",
enableRetries:!0},function(Q){return _.ozn(Q,u,q)})},A$E=function(g){if(!g.storage)return!1;
a:{if(g.storage){try{var u=g.storage.get("TLPQtimestamp")}catch(q){}g=Number(u);if(!isNaN(g))break a}g=void 0}return g?Date.now()-g<864E5:!1},Zjt=function(g){if(g.storage){try{var u=g.storage.get("TLPQindex")}catch(q){}g=Number(u);
if(!isNaN(g))return g}},yS=function(g){var u=_.A4();
return _.SSW(u,g,1)},l9E=function(g,u){g.queueProxy&&u.forEach(function(q){if(q.videoId&&q.trackingParams&&g.queueProxy instanceof _.$a){var Q=_.j_();
g.queueProxy.attributionData.set(q.videoId,{enqueueingVe:_.Lr(q.trackingParams).getAsJson(),enqueueingCsn:Q?Q:void 0,clientEnqueueingTimeMs:Math.floor((0,_.n0)()).toString()})}})},I9L=function(g){var u=_.mNa(g);
u!=g.currentSnapState_&&(g.currentSnapState_=u,g.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},v3=function(g){this.JSC$13536_networkManager_=g;
this.partCallbacks_=[]};
v3.prototype.getCacheKeyForEndpoint=function(g){return _.nrm(g,!1)};
v3.prototype.onPartsCallback_=function(g){this.partCallbacks_.forEach(function(u){g&&u(g)})};
var Du=function(g,u,q){v3.call(this,g);this.player_=u;this.autoplayData_=q};
_.A(Du,v3);Du.prototype.getCacheKeyForEndpoint=function(g){return _.nrm(g,!!this.autoplayData_)};
Du.prototype.getTempData=function(g,u){u=u.timeBeforeNextVideo;g={itct:g.clickTrackingParams,lact:_.nB(),pbis:u,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(g.autonav=1);return g};
Du.prototype.getXhrParams=function(g){return Object.assign({pbj:"prefetch"},g)};
Du.prototype.getParams=function(g){g={frags:g.fragmentsRequested.join(",")};_.w("kevlar_droppable_prefetchable_requests")&&(g.prefetch=1);return g};
var ijH=function(g){g.playerEvents_.forEach(function(u){g.player.removeEventListener(u.eventName,u.callback)});
g.playerEvents_.length=0},CEK=function(g,u,q){this.player=g;
this.JSC$13546_taskManager=u;this.prefetchDelay=q;this.completionResolver_=null;this.playerEvents_=[]};
CEK.prototype.start=function(){var g=this;this.completionResolver_=_.A9();_.fY(this.completionResolver_.promise,function(){ijH(g);g.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var bjC=function(g,u,q){g.player.addEventListener(u,q);g.playerEvents_.push({eventName:u,callback:q})},d6C={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Fpt={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},m6Z=function(g,u,q){CEK.call(this,g,u,q);this.cueId_="playbackTrigger-"+Math.random()};
_.A(m6Z,CEK);
m6Z.prototype.prepareTrigger=function(g){var u=this,q=this.player.getDuration(),Q=this.player.getVideoData(),L=Q.isLive&&Q.hasProgressBarBoundaries;if(L&&Q.progressBarEndPositionUtcTimeMillis){var E=Q.progressBarEndPositionUtcTimeMillis/1E3;isNaN(E)||(q=E)}var y=0;this.prefetchDelay>=0?L?Q.progressBarStartPositionUtcTimeMillis&&(Q=Q.progressBarStartPositionUtcTimeMillis/1E3,isNaN(Q)||(y=Q+this.prefetchDelay)):y=this.prefetchDelay:y=q+this.prefetchDelay;L?this.player.addUtcCueRange(this.cueId_,y,q):
this.player.addCueRange(this.cueId_,y,q);_.fY(g.promise,function(){u.player.removeCueRange(u.cueId_)});
bjC(this,"onCueRangeEnter",function(v){v==u.cueId_&&g.resolve(q-y)})};
var a9C=function(g,u){g.fragmentConfiguration_[u].requiredKeys.every(function(q){return!!g.prefetchedData_[q]})&&(g.validatedFragments_.push(u),u=g.missingFragments_.indexOf(u),u!==-1&&g.missingFragments_.splice(u,1))},VsH=function(g){g.prefetchedFragments_.forEach(function(u){a9C(g,u)})},Xtf=function(g,u,q){this.pageFragments_=g;
this.prefetchedFragments_=u;this.fragmentConfiguration_=Fpt;this.prefetchedData_=q;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;VsH(this)},r$x=function(){},Wpx=function(g){this.JSC$13560_playlistManager_=g};
_.A(Wpx,r$x);Wpx.prototype.getPrefetchEndpoint=function(){return this.JSC$13560_playlistManager_.getAutoplayEndpoint()};
var T2C=function(g){this.autonavEndpoints_=g};
_.A(T2C,r$x);T2C.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var hkL=function(g,u,q,Q,L){this.autonavEndpoints=g;this.foregroundTrigger=u;this.backgroundTrigger=q;this.pageType=Q;this.isInPlaylist=L},YGL=function(g,u){if(g.webPrefetchData&&g.webPrefetchData.navigationEndpoints&&g.webPrefetchData.navigationEndpoints.length){g=g.webPrefetchData.navigationEndpoints;
var q=_.c(g[0],_.l1);if(q.watchEndpointSupportedPrefetchConfig&&q.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var Q=q.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;q=Q.playbackRelativeSecondsPrefetchCondition;q=typeof q==="number"&&Math.abs(q)<u.videoDuration?q:void 0;Q=Q.countdownUiRelativeSecondsPrefetchCondition;Q=typeof Q!=="number"||_.w("prefetch_job_config_cleanup_ks")&&u.inPlaylist?void 0:Q;if(typeof Q==="number")return new hkL(g,u.makeUpNextTrigger(Q),u.makePlaybackTrigger(Q),
"watch",u.inPlaylist);if(typeof q==="number")return new hkL(g,u.makePlaybackTrigger(q),null,"watch",u.inPlaylist)}}},Ojh=function(g){return g.prefetchJobConfig_.backgroundTrigger?_.V1(k3C)()==0?g.prefetchJobConfig_.backgroundTrigger:g.prefetchJobConfig_.foregroundTrigger:g.prefetchJobConfig_.foregroundTrigger},Kph=function(g){_.DB(document,"visibilitychange",g.onVisibilityChange_,!1,g)},ps=function(g){v3.call(this,g)};
_.A(ps,v3);ps.prototype.getCacheKeyForEndpoint=function(g){return v3.prototype.getCacheKeyForEndpoint.call(this,g)};
ps.prototype.getTempData=function(){return{}};
ps.prototype.getXhrParams=function(g){return g};
ps.prototype.getParams=function(){return{}};
var x6Z=function(g,u,q){var Q=g.prefetchDelay*1E3;if(Math.abs(Q)>u)q.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var L=Q,E=u-Q;Q<0&&(L=u+Q,E=Math.abs(Q));var y=g.JSC$13546_taskManager.addJob(function(){q.resolve(E/1E3)},10,L);
q.promise.thenCatch(function(){g.JSC$13546_taskManager.cancelJob(y)})}},B2p=function(g,u,q){CEK.call(this,g,u,q)};
_.A(B2p,CEK);B2p.prototype.prepareTrigger=function(g){var u=this;bjC(this,"onAutonavCoundownStarted",function(q){x6Z(u,q,g)})};
var zkf=function(g){g.pendingPrefetchJob_&&(g.pendingPrefetchJob_.cancel(),g.pendingPrefetchJob_=null)},noC=function(g,u,q){if(!g.triggeredTargets.has(u)){var Q=_.UNW(g,u);
Q.action=q;_.oEb(g,u,Q)}},kGt=function(g){_.KTx();
_.xGq("cpt")&&_.Io(Error("nh"));_.Qq.requestAnimationFrame(function(){_.Qq.setTimeout(function(){_.fW("cpt");var u=_.eF("vpl"),q=_.eF("cpt");u&&q&&_.fW("ol",Math.max(u,q))})});
try{_.fW("fr_s"),g()}catch(u){_.Zf(u)}_.Qq.requestAnimationFrame(function(){_.fW("bcp")})},SGb={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},oox=function(g,u){g.serviceEndpointHandlers.push(u)},U6H=function(g,u){u=g.pendingPages_.indexOf(u);
u>-1&&g.pendingPages_.splice(u,1)},gx9=function(g,u){var q=_.e3a.indexOf(u);
q>-1&&_.e3a.splice(q,1);g.targetPage_==u?(g.abort(),_.$n2(g)):U6H(g,u)},ukt=function(g,u){g.reloadContinuationItemsCommandMatcher=u},qFE=function(g,u,q){u&&q&&(g.videos.forEach(function(Q){Q.videoId===u&&(Q.itemId=q)}),g.recommendedVideos.forEach(function(Q){Q.videoId===u&&(Q.itemId=q)}))},QhZ=function(g){this.onStepChangeCallback=function(){};
this.flowRenderer=g};
QhZ.prototype.getCurrentStep=function(){var g=this,u;return((u=this.flowRenderer.steps)!=null?u:[]).map(function(q){return _.c(q,_.Ew)}).find(function(q){return q&&q.stepId===g.currentStepId})};
var L$L=function(g,u){var q=u.flowStateEntityKey,Q=g.flowStates.get(q);if(Q)return Q;u=new QhZ(u);g.flowStates.set(q,u);return u},Exh=function(g,u){for(var q=_.N(g.flowStates.entries()),Q=q.next();!Q.done;Q=q.next()){var L=_.N(Q.value);
Q=L.next().value;L=L.next().value;if(L.flowRenderer.targetId===u){g.flowStates.delete(Q);break}}},PuH=function(g,u){g.onStepChangeCallback=u;
g.onStepChangeCallback(g.getCurrentStep())},NGZ=function(g,u){var q=g.getCurrentStep();
if(q&&q.stepId===u)return!0;var Q;return((Q=g.flowRenderer.steps)!=null?Q:[]).map(function(L){return _.c(L,_.Ew)}).find(function(L){return L&&L.stepId===u})?(g.currentStepId=u,g.onStepChangeCallback(g.getCurrentStep()),!0):!1},shn=function(g,u,q,Q){u={challenge:u};
q&&(u.webResponse=q);return _.wE(g.innertubeTransportService,u,_.dr(Rkn),Q)},yHC=function(g,u,q){if(!u.challenge)throw Error("ui");
if(u.botguardData&&u.botguardData.program){var Q=new ek9;Q.initialize(u.botguardData,function(){$6t(Q,{atr_challenge:u.challenge}).then(function(L){if(!L)throw Error("vi");return shn(g,u.challenge,L,q)}).catch(function(L){_.Io(L);
return shn(g,u.challenge,void 0,q)})},void 0)}else shn(g,u.challenge,void 0,q)},vxx=function(g,u,q){var Q={};
u.ids&&(Q.ids=[].concat(_.na(u.ids)));u.engagementType&&(Q.engagementType=u.engagementType);return _.wE(g.innertubeTransportService,Q,_.dr(_.fG8),q).then(function(L){if(!L)throw new _.Ji("GetAttestationChallenge returned falsy");yHC(g,L,q)}).thenCatch(function(L){_.Zf(L)})},Dcb=function(g,u,q){return new _.Ez(function(Q,L){var E;
return _.D(function(y){if(y.nextAddress==1){var v=y.yield,J=u.engagementType,f=u.ids,t={};f=_.N(f!=null?f:[]);for(var e=f.next();!e.done;e=f.next())e=e.value,e.encryptedVideoId?t.encryptedVideoId=e.encryptedVideoId:e.externalChannelId?t.externalChannelId=e.externalChannelId:e.commentId?t.commentId=e.commentId:e.externalOwnerId?t.externalOwnerId=e.externalOwnerId:e.artistId?t.artistId=e.artistId:e.playlistId?t.playlistId=e.playlistId:e.externalPostId?t.externalPostId=e.externalPostId:e.shareId?t.shareId=
e.shareId:e.postPlayNonce&&(t.postPlayNonce=e.postPlayNonce);return v.call(y,QMf(J,t),2)}E=y.yieldResult;if(!E.challenge)return _.Io(Error("wi")),vxx(g,u,q).then(Q,L),y.return();v=E;J={challenge:v.challenge};J.webResponse=v.webResponse;J.engagementType=u.engagementType;J.ids=u.ids;_.wE(g.innertubeTransportService,J,_.dr(Rkn),q).then(Q,L);_.Wx(y)})})},P$H=function(g,u){var q,Q,L,E;
_.D(function(y){if(y.nextAddress==1){q=_.c(u,_.vI2);if(!(q&&q.listId&&g.response&&g.response.playingVideoId)||g.listId!==q.listId)return y.return();g.index===void 0&&(g.index=0);return y.yield(_.VcH(g.JSC$13399_playlistNetworkManager,q.listId,g.index,g.response.playingVideoId),2)}Q=y.yieldResult;if(!Q)return y.return();L=Q.playlistId;E=Q.playlistPanelRenderer;g.setPlaylistData(L,E,Q.autoplayRenderer);_.Wx(y)})},pjn=function(g,u,q){var Q=g.getParams(q),L=_.Hnq(u,Q),E=g.getTempData(u,q);
E.endpoint=JSON.stringify(u);_.w("enable_unknown_lact_fix_on_html5")&&(_.Bk().resolve(_.UE),E.lact=_.nB());var y={headers:{"X-YouTube-STS":_.FR("STS"),"x-youtube-csoc":1}};_.CV(L,E);return new _.Ez(function(v,J){var f=g.getXhrParams(Q),t;_.w("kevlar_cache_on_ttl_player")&&(t=_.Bk().resolve(_.vK));t&&_.aWC(t,u)?_.hvC(t,u,E,window.location.href).then(function(e){e?v(e):J()},J):_.jq5(g.JSC$13536_networkManager_,u,f,g.onPartsCallback_.bind(g),y).then(function(e){e?v(e):J()},J)})},JHC=function(g,u){g.triggerPromise_=
u.start();
g.triggerPromise_.then(function(q){var Q=g.prefetchEndpointProvider_.getPrefetchEndpoint();if(Q){var L=d6C[g.prefetchJobConfig_.pageType].prefetchedFragments;g.prefetchRequestPromise_=pjn(g.JSC$13572_networkPrefetchRequest_,Q,{fragmentsRequested:L,timeBeforeNextVideo:q});g.prefetchResponseCacheKey_=g.JSC$13572_networkPrefetchRequest_.getCacheKeyForEndpoint(Q);Kph(g);g.prefetchRequestPromise_.then(function(E){g.storePrefetchedDataCallback_(g.prefetchResponseCacheKey_,E);if(_.w("web_prefetch_preload_video")&&
L.length===1&&L[0]==="pl"&&E&&!E.playerAds&&!E.adPlacements){var y=_.c(Q,_.g$),v=y!=null,J={raw_player_response:E,watch_endpoint:y};(E=_.Bk().resolve(v?_.G_a:_.rv))&&Q&&E.then(function(f){v&&_.w("web_queue_preload_video")?(J.prefer_gapless=!0,f.queueNextVideo(J)):f.preloadVideoByPlayerVars(J)})}})}})},JY=function(g,u,q,Q){this.prefetchEndpointProvider_=g;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=u;this.prefetchJobConfig_=q;this.JSC$13572_networkPrefetchRequest_=Q;this.prefetchResponseCacheKey_=null};
JY.prototype.enqueue=function(){this.triggerPromise_||(JHC(this,Ojh(this)),_.Z1(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
JY.prototype.resolve=function(){this.cancel()};
JY.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.");Kph(this)};
JY.prototype.onVisibilityChange_=function(){var g=this;_.V1(k3C)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){g.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||JHC(this,Ojh(this))};
var jhK=function(g,u,q,Q,L){u&&(u==null?0:u.videoId)&&q&&q.entries&&_.w("kevlar_enable_shorts_prefetch_in_sequence")&&(zkf(g),u=q.entries.map(function(E){var y;return(y=_.c(E.command,_.g$))==null?void 0:y.videoId}).indexOf(u.videoId),q=q.entries[u+1],q!=null&&q.command&&!_.c(q==null?void 0:q.command,_.M4)&&(Q=new hkL([q.command],new m6Z(Q,_.Hv,1),null,"shorts",!1),g.pendingPrefetchJob_=new JY(new T2C(Q.autonavEndpoints),function(){return!1},Q,new ps(L)),g.pendingPrefetchJob_.enqueue()))},frH=function(g,
u,q,Q,L,E){var y=_.mB.getInstance();
if(!_.w("block_all_player_prefetch_requests")){zkf(g);var v=!!q.getPlaylistId(),J=q.getVideoData().isLive&&q.getVideoData().hasProgressBarBoundaries;if((y.getState()==2||v||J)&&(!q.getVideoData().isLive||J)){y={inPlaylist:v,videoDuration:q.getDuration(),makeUpNextTrigger:function(t){return new B2p(q,_.Hv,t)},
makePlaybackTrigger:function(t){return new m6Z(q,_.Hv,t)}};
var f=YGL(u,y);f&&(g.pendingPrefetchJob_=new JY(f.isInPlaylist?new Wpx(L):new T2C(f.autonavEndpoints),function(t,e){e=new Xtf(d6C[f.pageType].pageFragments,d6C[f.pageType].prefetchedFragments,e);return _.YWR(e)?(g.prefetchCache_.set(t,e),!0):!1},f,new Du(Q,q,E,L)),g.pendingPrefetchJob_.enqueue())}}},M2z=function(){var g=_.Ic();
g.signals.parkOrScheduleJob(function(){var u=g.storage;if(u.storage)if(A$E(u)){var q=u.getPlaylistId();u=Zjt(u);q=!!q&&u!==void 0}else u.clear(),q=!1;else q=!1;if(q){q=g.JSC$13399_pageManager.isOnWatch();a:{var Q=g.storage;if(Q.storage&&A$E(Q)&&(u=Q.getPlaylistId(),Q=Zjt(Q),u&&Q!==void 0)){q={recoverPlaylistCommand:{listId:u,index:Q,openMiniplayer:!q,openListPanel:q,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}q=void 0}q&&_.j2(g.JSC$13399_actionRouter,[q],null)}},0,"ma")},t2t=function(g,u,q,
Q,L,E){var y=_.Yq(7111);
_.xl(g.JSC$18939_screenManager,y,E?_.Lr(E):void 0);_.zZ(g.JSC$18939_screenManager,y,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:Q,offlineId:u,offlineabilityFormatType:q,isDefaultFormatType:L==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:L}})},eJt=function(g,u,q,Q,L){var E,y,v,J,f;
return _.D(function(t){if(t.nextAddress==1)return t.yield(g.JSC$18939_playerApiPromise,2);E=t.yieldResult;t2t(g,u,q,"OFFLINE_OBJECT_TYPE_PLAYLIST",Q,L);if(v=_.Edb[g.entityTypeMap.listEntityType])f={},y=(f[v]={maximumDownloadQuality:(J=q)!=null?J:void 0},f);return t.yield(E.queueOfflineAction(u,g.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",y),0)})},GnZ=function(g,u){var q,Q,L,E;
return _.D(function(y){if(y.nextAddress==1)return y.yield(g.JSC$18939_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3){q=y.yieldResult;if(!q)return _.Io(new _.Ji("PES is undefined")),y.return();Q=_.x6(u,"downloadStatusEntity");return y.yield(Hjh(q,Q,"downloadStatusEntity"),3)}L=y.yieldResult;return y.return((E=L)==null?void 0:E.downloadState)})},$cx=function(g,u,q,Q,L){var E,y,v,J,f,t;
return _.D(function(e){switch(e.nextAddress){case 1:return e.yield(g.JSC$18939_playerApiPromise,2);case 2:E=e.yieldResult;t2t(g,u,q,"OFFLINE_OBJECT_TYPE_VIDEO",Q,L);if(v=_.Edb[g.entityTypeMap.singleEntityType])f={},y=(f[v]={maximumDownloadQuality:(J=q)!=null?J:void 0},f);return e.yield(GnZ(g,u),3);case 3:t=e.yieldResult;if(t!=="DOWNLOAD_STATE_USER_DELETED"){e.jumpTo(4);break}return e.yield(g.deleteVideo(u),4);case 4:return e.yield(E.queueOfflineAction(u,g.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
y),0)}})},RJH=function(g,u,q,Q,L){return _.D(function(E){return E.nextAddress==1?E.yield(g.deleteVideo(u,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):E.yield($cx(g,u,q,Q,L),0)})},wjK=function(g,u,q){var Q,L;
return _.D(function(E){if(E.nextAddress==1)return E.yield(g.JSC$18939_playerApiPromise,2);Q=E.yieldResult;L=_.x6(u,"mainVideoDownloadStateEntity");return E.yield(Q.updateDownloadState(L,q),0)})},uyE=function(g){var u=_.Bk().resolve(_.s8);
return _.D(function(q){if(q.nextAddress==1)return u.previousDownloadStateForVideo[g]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&u.previousDownloadStateForVideo[g]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?q.jumpTo(2):q.yield(u.resumeVideoDownload(g),2);if(q.nextAddress!=4)return q.yield(wjK(u,g,u.previousDownloadStateForVideo[g]),4);delete u.previousDownloadStateForVideo[g];_.Wx(q)})},UHK=function(g,u){var q;
return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$18939_playerApiPromise,2);q=Q.yieldResult;return Q.yield(q.queueOfflineAction(u,g.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},k0p=function(){var g=_.Bk().resolve(_.s8),u,q;
return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$18939_playerApiPromise,2);if(Q.nextAddress!=3)return u=Q.yieldResult,q={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},Q.yield(u.queueOfflineAction("!*$_ALL_ENTITIES_!*$",g.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",q),3);var L=g.JSC$18939_commandHandler,E=L.resolveCommand,y=_.Ug("DELETING_ALL",void 0,"Downloads are being deleted");E.call(L,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ap(y)}},
popupType:"TOAST"}});_.Wx(Q)})},cHp=function(g,u){var q,Q,L,E,y,v;
return _.D(function(J){if(J.nextAddress==1)return J.yield(g.JSC$18939_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return q=J.yieldResult,q?J.yield(Hjh(q,_.s3,"downloadsPageViewConfigurationEntity"),3):(_.Io(new _.Ji("PES is undefined")),J.return());L=(Q=J.yieldResult)!=null?Q:{};v=(y=(E=L)==null?void 0:E.downloadsUpsellBannerVisibility)!=null?y:{};return v.visibleWithConnection?J.yield(u.refreshAllStaleEntities(0),0):J.jumpTo(0)})},HA9=function(g){var u,q;
return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$18939_prefStorage,2);u=Q.yieldResult;return Q.return((q=u)==null?void 0:q.get("sdois"))})},AHz=function(g){var u,q,Q,L,E,y;
return _.D(function(v){if(v.nextAddress==1)return v.yield(g.JSC$18939_persistentStorePromiseAccessor(),2);if(v.nextAddress!=3){u=v.yieldResult;if(!u)return _.Io(new _.Ji("PES is undefined")),v.return();q=_.x6("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return v.yield(Hjh(u,q,"settingEntity"),3)}Q=v.yieldResult;return v.return((y=(L=Q)==null?void 0:(E=L.settingOptionValue)==null?void 0:E.boolValue)!=null?y:!1)})},ZAt=function(g,u){var q,Q,L,E;
return _.D(function(y){switch(y.nextAddress){case 1:return((q=u)==null?void 0:q.formatType)===void 0?y.return():y.yield(g.JSC$18939_prefStorage,2);case 2:Q=y.yieldResult;if(Q===void 0)return y.return();if(((L=u)==null?void 0:L.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return y.yield(Q.set("lmqf",u.formatType),8);if(((E=u)==null?void 0:E.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){y.jumpTo(0);break}return y.yield(Q.set("lmqf",u.formatType),6);case 6:return y.yield(Q.set("lmqflst",
Math.floor((0,_.n0)())),0);case 8:return y.yield(Q.remove("lmqflst"),0)}})},lrL=function(g){var u,q;
return _.D(function(Q){switch(Q.nextAddress){case 1:return Q.yield(g.JSC$18939_prefStorage,2);case 2:u=Q.yieldResult;if(!u){Q.jumpTo(3);break}return Q.yield(u.get("lmqflst"),4);case 4:if(q=Q.yieldResult,q!==void 0)return Q.return(q);case 3:return Q.return(0)}})},Irh=function(g){var u,q,Q;
return _.D(function(L){return L.nextAddress==1?L.yield(g.JSC$18939_prefStorage,2):L.nextAddress!=3?(u=L.yieldResult,L.yield((q=u)==null?void 0:q.get("ldtmes"),3)):L.return((Q=L.yieldResult)!=null?Q:!1)})},eyp=function(){var g=_.Bk().resolve(_.s8),u;
return _.D(function(q){if(q.nextAddress==1)return q.yield(g.JSC$18939_prefStorage,2);u=q.yieldResult;return u===void 0?q.return():q.yield(u.set("ldtmes",!0),0)})},iAZ=function(g){var u,q;
return _.D(function(Q){switch(Q.nextAddress){case 1:return Q.yield(g.JSC$18939_prefStorage,2);case 2:u=Q.yieldResult;if(u===void 0){Q.jumpTo(3);break}return Q.yield(u.get("lmqf"),4);case 4:if(q=Q.yieldResult,q!==void 0)return Q.return(q);case 3:return Q.return("SD")}})},yzh=function(g,u,q){var Q,L,E,y,v,J,f,t;
_.D(function(e){switch(e.nextAddress){case 1:return e.yield(ZAt(g,(Q=u)==null?void 0:Q.actionParams),2);case 2:L=u.playlistId;if(!L)return e.return();if(u.action==="ACTION_ADD")return((y=u.actionParams)==null?0:y.formatType)?e.yield(eJt(g,L,u.actionParams.formatType,(t=u.actionParams)==null?void 0:t.settingsAction,q),0):e.yield(g.offlineWebClientEligibility,14);if(u.action==="ACTION_REMOVE_WITH_PROMPT"){var G=g.JSC$18939_commandHandler,R=G.resolveCommand,H=_.FR("INNERTUBE_CLIENT_NAME");var l=H===
"WEB_REMIX"?_.Ug("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Ug("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var d=H==="WEB_REMIX"?[_.Ug("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];H=H==="WEB_REMIX"?_.Ug("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Ug("DELETE",void 0,"Delete");var F=_.Ug("CANCEL",void 0,"Cancel");l=LLL(l,d,H,F,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:L});R.call(G,{openPopupAction:l});return e.return()}if(u.action===
"ACTION_REMOVE")return e.yield(UHK(g,L),0);if(u.action!=="ACTION_SYNC"){e.jumpTo(0);break}return e.yield(g.JSC$18939_playerApiPromise,9);case 9:return E=e.yieldResult,e.yield(E.queueOfflineAction(L,g.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return v=e.yieldResult,e.yield(iAZ(g),15);case 15:return J=e.yieldResult,e.yield(lrL(g),16);case 16:f=e.yieldResult,u.onAddCommand&&g.JSC$18939_commandHandler.resolveCommand(u.onAddCommand,{form:{preferredFormatType:J,
offlineWebClientEligibility:v,lastOfflineQualitySettingsSavedMs:f.toString()}}),e.jumpTo(0)}})},NJh=function(g,u,q){var Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k;
_.D(function(LZ){switch(LZ.nextAddress){case 1:return LZ.yield(ZAt(g,(Q=u)==null?void 0:Q.actionParams),2);case 2:L=u.videoId;if(!L)return LZ.return();if(u.action==="ACTION_REMOVE_WITH_PROMPT"){var sb=g.JSC$18939_commandHandler,Rm=sb.resolveCommand,M3=_.FR("INNERTUBE_CLIENT_NAME");var tT=M3==="WEB_REMIX"?_.Ug("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Ug("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var mJ=M3==="WEB_REMIX"?[_.Ug("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];M3=M3==="WEB_REMIX"?_.Ug("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Ug("DELETE",void 0,"Delete");var hT=_.Ug("CANCEL",void 0,"Cancel");tT=LLL(tT,mJ,M3,hT,{signal:"DELETE_DOWNLOAD",targetId:L});Rm.call(sb,{openPopupAction:tT});return LZ.return()}if(u.action==="ACTION_ADD")return((z=u.actionParams)==null?0:z.formatType)?LZ.yield($cx(g,L,u.actionParams.formatType,(k=u.actionParams)==null?void 0:k.settingsAction,q),0):LZ.yield(g.offlineWebClientEligibility,
29);if(u.action==="ACTION_RETRY")return LZ.yield(iAZ(g),25);if(u.action==="ACTION_PAUSE")return LZ.yield(g.pauseVideoDownload(L),0);if(u.action==="ACTION_RESUME")return LZ.yield(g.resumeVideoDownload(L),0);if(u.action==="ACTION_REMOVE")return LZ.yield(GnZ(g,L),19);if(!u.onAddCommand||!_.c(u.onAddCommand,_.I9)){LZ.jumpTo(0);break}E=_.c(u.onAddCommand,_.I9);v=(y=E)==null?void 0:y.isCrossDeviceDownload;if(!v){LZ.jumpTo(0);break}J="HD";return LZ.yield(lrL(g),16);case 16:return f=LZ.yieldResult,LZ.yield(Irh(g),
17);case 17:return t=LZ.yieldResult,LZ.yield(g.offlineWebClientEligibility,18);case 18:e=LZ.yieldResult;g.JSC$18939_commandHandler.resolveCommand(u.onAddCommand,{form:{preferredFormatType:J,lastOfflineQualitySettingsSavedMs:f.toString(),downloadToMobileEduShown:t,offlineWebClientEligibility:e}});LZ.jumpTo(0);break;case 19:return G=LZ.yieldResult,g.previousDownloadStateForVideo[L]=(R=G)!=null?R:"DOWNLOAD_STATE_UNKNOWN",LZ.yield(wjK(g,L,"DOWNLOAD_STATE_USER_DELETED"),20);case 20:if(g.previousDownloadStateForVideo[L]!==
"DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&g.previousDownloadStateForVideo[L]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){LZ.jumpTo(21);break}return LZ.yield(g.pauseVideoDownload(L),21);case 21:sb=_.Ug("DELETED_VIDEO",void 0,"Video deleted from downloads.");Rm=_.Ug("UNDO_ACTION",void 0,"Undo");tT=_.Ug("CLOSE",void 0,"Close");H={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ap(sb),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ap(Rm),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",targetId:L}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:sb+" "+Rm}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:L}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:tT}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},
popupType:"TOAST"}};g.JSC$18939_commandHandler.resolveCommand(H);LZ.jumpTo(0);break;case 25:l=LZ.yieldResult;l==="UNKNOWN_FORMAT_TYPE"&&(l="SD");d="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((F=u.actionParams)==null?0:F.formatType)l=u.actionParams.formatType,d=(V=u.actionParams)==null?void 0:V.settingsAction;return LZ.yield(RJH(g,L,l,d,q),26);case 26:return LZ.return();case 29:return O=LZ.yieldResult,LZ.yield(iAZ(g),30);case 30:return W=LZ.yieldResult,LZ.yield(lrL(g),31);case 31:x=LZ.yieldResult,
u.onAddCommand&&g.JSC$18939_commandHandler.resolveCommand(u.onAddCommand,{form:{preferredFormatType:W,offlineWebClientEligibility:O,lastOfflineQualitySettingsSavedMs:x.toString()}}),LZ.jumpTo(0)}})},CuZ=function(g,u){var q,Q,L,E,y,v,J;
return _.D(function(f){if(f.nextAddress==1)return f.yield(g.JSC$18939_persistentStorePromiseAccessor(),2);q=f.yieldResult;if(!q)return _.Io(new _.Ji("PES is undefined")),f.return();if((Q=u)==null||!Q.settingItemId)return f.return();L=u;E=L.settingItemId;y=L.boolValue;v=_.x6(E,"settingEntity");J={key:v,settingOptionValue:{boolValue:y}};return f.yield(c$9(q,J),0)})},bAH=function(g,u){var q,Q,L,E,y,v,J;
return _.D(function(f){switch(f.nextAddress){case 1:return f.yield(g.JSC$18939_prefStorage,2);case 2:return q=f.yieldResult,Q=_.qf(),f.yield(g.JSC$18939_persistentStorePromiseAccessor(),3);case 3:return L=f.yieldResult,q?L?f.yield(q.get("sdois"),4):(_.Io(new _.Ji("PES is undefined")),f.return()):(_.Io(new _.Ji("prefStorage is undefined")),f.return());case 4:E=f.yieldResult;v=(y=u)==null?void 0:y.boolValue;v===void 0||_.w("kevlar_set_sd_enabled_flag_killswitch")||_.QX(0,197,!0);E===void 0&&v===void 0&&
(v=!1);if(v===void 0){f.jumpTo(0);break}return f.yield(q.set("sdois",v),6);case 6:return _.w("kevlar_set_sd_enabled_flag_killswitch")||(_.QX(0,196,v),Q.save()),J={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:v},f.yield(CuZ(g,J),0)}})},dc9=function(g,u,q){var Q,L,E,y,v;
return _.D(function(J){switch(J.nextAddress){case 1:return J.yield(HA9(g),2);case 2:return Q=J.yieldResult,J.yield(bAH(g,q),3);case 3:return J.yield(HA9(g),4);case 4:return L=J.yieldResult,E=L!==Q,J.yield(AHz(g),5);case 5:y=J.yieldResult&&!_.w("kevlar_modern_downloads_page");if((v=!L&&!y)||E)return J.yield(u.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);J.jumpTo(0)}})},QVt=function(){var g=_.Bk().resolve(_.s8),
u;
_.D(function(q){switch(q.nextAddress){case 1:return q.yield(g.JSC$18939_playerApiPromise,2);case 2:u=q.yieldResult;if(!_.w("kevlar_force_refresh_smart_downloads")){q.jumpTo(3);break}return q.yield(u.refreshAllStaleEntities(0),4);case 4:return q.return();case 3:return q.yield(u.refreshAllStaleEntities(),5);case 5:return q.yield(dc9(g,u),6);case 6:if(_.w("enable_download_pep_for_premium_countries_web"))return q.yield(cHp(g,u),0);q.jumpTo(0)}})},DPb=function(g,u){var q,Q;
_.D(function(L){switch(L.nextAddress){case 1:return L.yield(g.JSC$18939_playerApiPromise,2);case 2:q=L.yieldResult;switch((Q=u)==null?void 0:Q.settingItemId){case "SMART_DOWNLOADS_ENABLED":return L.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return L.jumpTo(4)}L.jumpTo(0);break;case 3:return L.yield(dc9(g,q,u),6);case 6:L.jumpTo(0);break;case 4:return L.yield(CuZ(g,u),7);case 7:L.jumpTo(0)}})},F$x=function(g,u){var q,Q,L;
return _.D(function(E){if(E.nextAddress==1)return E.yield(g.JSC$18939_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3){q=E.yieldResult;if(!q)return _.Io(new _.Ji("PES is undefined")),E.return(!1);if(!u)return E.return(!1);Q=_.x6(u,"mainVideoEntity");return E.yield(Hjh(q,Q,"mainVideoEntity"),3)}L=E.yieldResult;return E.return(L!==void 0)})},JzH=function(g){var u=_.Bk().resolve(_.s8),q,Q,L,E,y,v,J,f,t,e,G;
_.D(function(R){switch(R.nextAddress){case 1:return R.yield(u.JSC$18939_playerApiPromise,2);case 2:q=R.yieldResult;L=(Q=g)==null?void 0:Q.actions;if(!L)return R.return();E=_.N(L);y=E.next();case 3:if(y.done){R.jumpTo(0);break}v=y.value;f=J=void 0;if(!(((J=v)==null?0:J.entityKey)&&((f=v)==null?0:f.actionType))){R.jumpTo(4);break}t=_.Tz(v.entityKey);e=t.entityId;G=t.entityType;return R.yield(q.queueOfflineAction(e,G,v.actionType),4);case 4:y=E.next(),R.jumpTo(3)}})},mcC=function(g,u){var q,Q,L,E,y;
return _.D(function(v){if(v.nextAddress==1)return v.yield(g.JSC$18939_prefStorage,2);if(v.nextAddress!=3)return(q=v.yieldResult)?v.yield(q.get("psi"),3):v.return();Q=v.yieldResult;y={isPaused:u,lastSyncTimestamp:(E=(L=Q)==null?void 0:L.lastSyncTimestamp)!=null?E:"0"};return v.yield(q.set("psi",y),0)})},MkK=function(g){var u=_.Bk().resolve(_.s8),q,Q,L,E,y,v,J,f;
return _.D(function(t){switch(t.nextAddress){case 1:return t.yield(u.JSC$18939_playerApiPromise,2);case 2:q=t.yieldResult;L=((Q=g)==null?void 0:Q.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((v=g)==null?void 0:v.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":E="!*$_ALL_ENTITIES_!*$";y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return t.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return t.jumpTo(4)}t.jumpTo(5);break;case 3:return t.yield(mcC(u,L),6);case 6:t.jumpTo(5);break;case 4:return t.yield(F$x(u,(J=g)==null?void 0:J.videoId),7);case 7:t.yieldResult&&(E=(f=g)==null?void 0:f.videoId,y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");t.jumpTo(5);break;case 5:if(E&&y)return t.yield(q.queueOfflineAction(E,"videoPlaybackPositionEntity",y),0);t.jumpTo(0)}})},arx=function(g,u){_.Bk().resolve(_.pl).persistentPanelContainerMap.set(u,g)},
V2x=function(g,u,q){g.hasRegisteredHoverCallbacks=!0;
g.hoverEnterCallback=u!=null?u:void 0;g.hoverLeaveCallback=q!=null?q:void 0},Xjx=function(){return _.Bk().resolve(_.gz).dismissedIndices},rHh=function(g,u,q){var Q,L=(Q=_.c(u,_.g$))==null?void 0:Q.videoId;
Q=!(!L||!g.find(function(y){return y.videoId&&y.videoId===L}));
var E=!!g.find(function(y){var v;return((v=_.c(y.command,_.g$))==null?void 0:v.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
g=!!g.find(function(y){return!!_.c(y.command,_.M4)&&!!_.c(u,_.M4)&&y.command===u});
return q?Q||g:Q||E||g},W$p=function(g,u,q){var Q=[].concat(_.na(g)),L=0,E=q?Uwh(q):[];
q=q?gCh(q):[];E.length&&!rHh(g,E[0].command,!0)&&Q.push.apply(Q,_.na(E));u&&!rHh(Q,u.command)&&Q.unshift(u);u&&q.length&&!rHh(g,q[0].command)&&(_.w("web_enable_shorts_sequence_refactor_unify")?Q.push.apply(Q,_.na(q.reverse())):Q.unshift.apply(Q,_.na(q.reverse())),L=q.length);return{newContentList:Q,indexChange:L}},TGt=function(){var g=_.Bk().resolve(_.gz);
_.dYF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(g.isFullscreenEnabled()?_.dw(document.documentElement):_.Oqh(document.documentElement))},hJ9=function(g,u){var q;
u!==1||((q=g.currentPersistentToast)==null?0:q.isOpened())?_.gvZ(g):g.currentPersistentToast=void 0},YFf=function(g,u){var q;
return(q=g.transitionTasksMap.get(u))!=null?q:[]},OAp=function(g,u){var q=[];
g.elementTasksMap.forEach(function(Q){(Q=Q.get(u))&&q.push(Q)});
return q},K$p=function(g,u,q,Q,L){L=L===void 0?{}:L;
var E=u.defaultViewTransitionOptions;return Object.assign({},E,L,{beforeTransition:function(){Q.forEach(function(f){f.beforeTransition()});
var y;(y=E.beforeTransition)==null||y.call(E);var v,J;(J=(v=L).beforeTransition)==null||J.call(v);q.forEach(function(f){f.beforeTransition()})},
afterTransition:function(){Q.forEach(function(f){f.afterTransition()});
var y;(y=E.afterTransition)==null||y.call(E);var v,J;(J=(v=L).afterTransition)==null||J.call(v);q.forEach(function(f){f.afterTransition()})},
ignoredErrors:g.config.ignoredErrors})},xch=function(g,u,q){g.transitionTasksMap.has(u)?g.transitionTasksMap.get(u).push(q):(g=new _.Ji("Transition task registered for unknown transition type",u),_.Zf(g))},BGK=function(g,u,q){if(g.transitionTasksMap.has(u)){var Q=g.transitionTasksMap.get(u).filter(function(L){return L!==q});
g.transitionTasksMap.set(u,Q)}},zJh=function(g,u){var q=YFf(g,u);
q=_.N(q);for(var Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q.runOnce&&BGK(g,u,Q);g.elementTasksMap.forEach(function(L,E){L.forEach(function(y,v){y.runOnce&&u===v&&(L.delete(v),L.size===0&&g.elementTasksMap.delete(E))})})},nxE=function(g,u,q){var Q,L,E,y,v,J,f,t,e;
_.D(function(G){if(G.nextAddress==1){if(g.config.disableAllTransitions)return G.return(u());if((Q=q)==null||!Q.transitionType)return G.return(P6z(u,Object.assign({},(L=q)==null?void 0:L.viewTransitionOptions,{ignoredErrors:g.config.ignoredErrors})));E=q;y=E.transitionType;v=E.viewTransitionOptions;J=g.config.transitionConfigs.get(y);if(!J)return G.return(u());f=YFf(g,y);t=OAp(g,y);e=P6z(u,K$p(g,J,f,t,v));return G.yield(e,2)}zJh(g,y);_.Wx(G)})},knC=function(g,u){var q,Q,L,E,y;
_.D(function(v){if(!u.length)return v.return([]);q=[];Q=_.N(u);for(L=Q.next();!L.done;L=Q.next())E=L.value,(y=g.resolveIcon(E))&&!g.iconCache[y.url]&&q.push(_.t8t(g,y).then(function(){}).catch(function(){}));
return v.return(Promise.all(q))})},SFb=function(g,u){var q=[];
u=(new Set(u)).values();u=_.N(u);for(var Q=u.next();!Q.done;Q=u.next()){Q=Q.value;for(var L=_.N(Object.values(SGb)),E=L.next();!E.done;E=L.next())q.push({iconName:Q,iconStyle:E.value})}knC(g.iconManager,q)},oxt=function(g,u,q){var Q=q!=null?q:g.iconsToFetch;
Q!=null&&Q.length?u!==void 0&&u>=0?_.M_(_.Hv,function(){SFb(g,Q)},u):SFb(g,Q):Promise.resolve()},Uch=function(){var g,u,q,Q;
return _.D(function(L){if(L.nextAddress==1)return g=navigator,(u=g.storage)!=null&&u.persisted?L.yield((q=g.storage)==null?void 0:q.persisted(),2):L.return("PERSISTED_STATE_NOT_SUPPORTED");Q=L.yieldResult;return L.return(Q?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},gIL=function(){var g,u,q,Q;
return _.D(function(L){if(L.nextAddress==1)return g=navigator,(u=g.storage)!=null&&u.persist?L.yield((q=g.storage)==null?void 0:q.persist(),2):L.return("PERSISTED_STATE_NOT_SUPPORTED");Q=L.yieldResult;return L.return(Q?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},u9f=function(){var g,u;
return _.D(function(q){switch(q.nextAddress){case 1:return g="PERSISTED_STATE_NOT_SUPPORTED",_.b8(q,2),q.yield(Uch(),4);case 4:g=q.yieldResult;if(g!=="PERSISTED_STATE_NOT_GRANTED"){q.jumpTo(5);break}return q.yield(gIL(),6);case 6:g=q.yieldResult;case 5:_.Xx(q,3);break;case 2:u=_.rt(q),u instanceof Error&&_.Zf(u);case 3:return _.H6("persistentStorageStateChecked",{persistedState:g}),q.return(g)}})},qth=function(g,u,q){if(g.isAnyTransitionEnabled){var Q={beforeTransition:function(){q(!0);
u.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){u.style.viewTransitionName&&(u.style.viewTransitionName="",q(!1))}};
xch(g.viewTransitionCoordinator,"slide",Q);xch(g.viewTransitionCoordinator,"lockup-to-watch",Q);xch(g.viewTransitionCoordinator,"watch-next-appears",Q);xch(g.viewTransitionCoordinator,"learning-journey",Q)}},QxK=function(g,u,q,Q){if(g.isLockupToWatchTransitionEnabled){if(u){var L={};
L=(L["watch-next-appears"]="player-watch-next-loaded",L);L["lockup-to-watch"]=g.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";g.viewTransitionCoordinator.registerElement(u,L)}q&&(u={},g.viewTransitionCoordinator.registerElement(q,(u["lockup-to-watch"]="below-lockup-to-watch",u["watch-next-appears"]="below-watch-next-loaded",u)));Q&&(q={},g.viewTransitionCoordinator.registerElement(Q,(q["watch-next-appears"]="secondary-watch-next-loaded",
q)))}},LmK=function(g,u){g.isBrowseTransitionEnabled?nxE(g.viewTransitionCoordinator,u,{transitionType:"slide"}):(u(),Promise.resolve())},EIZ=function(g,u){g.isLockupToWatchTransitionEnabled?nxE(g.viewTransitionCoordinator,u,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){g.registeredLockupThumbnail=void 0;g.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(u(),Promise.resolve())},Pgx=function(g,u){g.isLockupToWatchTransitionEnabled?nxE(g.viewTransitionCoordinator,u,{transitionType:"watch-next-appears"}):(u(),Promise.resolve())},Ndz=function(g,u){g.isLearningJourneyTransitionEnabled?nxE(g.viewTransitionCoordinator,u,{transitionType:"learning-journey"}):(u(),Promise.resolve())},sxC=function(g,u,q){if(g.isInitialized()){var Q=
mu(q),L=Q==="watch";
Q=Q==="shorts";var E=mu(u)==="watch";if(L)E||(g.backgroundPageData=u),g.watchPipMode&&E||g.deactivate(q.endpoint);else if(Q){if(mu(u)!=="shorts"){var y;(y=g.getPlayerElement())==null||y.pause()}}else E&&!g.watchPipMode&&(NVb(u,q,!0)?(g.watchWhileMode&&_.$_K(g,!1),_.joh(g,u)):g.isMiniplayerActive()&&g.watchWhileMode&&g.deactivate());E&&_.w69(g);g.shortsPipMode&&!Q&&(window.focus(),g.deactivate());if(g.pictureInPictureEnabled())if(Q&&g.shortsPipEnabled||L&&g.JSC$19357_watchPipEnabled&&(!g.watchPipManualOnlyEnabled||
_.X7J()&&_.cTu("Chromium")>=142))_.WIF(g.handleMediaSessionPipActivation);else if((!g.isMiniplayerActive()||g.watchPipManualOnlyEnabled)&&(g.shortsPipEnabled||g.JSC$19357_watchPipEnabled)&&_.X7J()){g=_.rIk().mediaSession;try{g.setActionHandler("enterpictureinpicture",null)}catch(v){}}}},ymE=function(g,u){var q,Q;
_.D(function(L){if(L.nextAddress==1){if(!g||!g.navigationEndpoint)return L.return();_.Uw().lockupActivation=!0;var E;u?E=_.I7(_.Ug("QUEUE",void 0,"Queue")):E=g.longBylineText;Q=(q=E)&&g.title?{miniplayerTitle:g.title,miniplayerSubtitle:q,playlistData:null}:void 0;return L.yield(_.R$R(_.Bk().resolve(_.RO),g.navigationEndpoint,!0,Q),2)}_.Uw().userActivation=!0;_.Wx(L)})},Q6z=function(g,u){var q,Q,L,E,y,v;
_.D(function(J){if(J.nextAddress==1){q=_.c(u,_.ymx);if(!q||!q.listId)return J.return();g.index=q.index||g.index||0;Q=g.response&&g.response.playingVideoId||void 0;return J.yield(_.VcH(g.JSC$13399_playlistNetworkManager,q.listId,g.index,Q),2)}L=J.yieldResult;if(!L)return J.return();E=L.playlistId;y=L.playlistPanelRenderer;!g.queueProxy&&E&&y&&E.startsWith("TLPQ")&&(g.queueProxy=new _.$a(g.JSC$13399_playlistNetworkManager,E,g.setPlaylistData.bind(g),g.clearQueue.bind(g),_.Wwk(y),g.storage));if(q.openMiniplayer&&
(v=_.T7M(y))&&!g.JSC$13399_pageManager.isOnWatch()){var f=v,t=q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";g.isMiniplayerActive()||ymE(f,t)}g.setPlaylistData(E,y,L.autoplayRenderer);_.Wx(J)})},g0t=function(g,u){var q=_.Ic();
q.index===void 0&&(q.index=0);q.temporaryItems.push.apply(q.temporaryItems,_.na(g));if((u.videoId||u.videoIds)&&q.index!==void 0&&u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!q.queueProxy){var Q=[];if(q.response){var L=_.Bk().resolve(_.RO).isMiniplayerActive();if(q.response.playlistPanelRenderer&&q.response.playlistId&&!q.response.playlistId.startsWith("TLPQ")){if(q.JSC$13399_pageManager.isOnWatch()||L)Q=_.Wwk(q.response.playlistPanelRenderer)}else q.response.playingVideoId&&!u.openMiniplayer?
Q.push(q.response.playingVideoId):L&&q.response.playingVideoId&&u.openMiniplayer&&Q.push(q.response.playingVideoId)}q.queueProxy=new _.$a(q.JSC$13399_playlistNetworkManager,"",q.setPlaylistData.bind(q),q.clearQueue.bind(q),Q,q.storage);q.queueProxy.JSC$13345_setCurrentIndex(q.index)}q.queueProxy.addVideos(u.videoIds||[u.videoId],u)}l9E(q,g);q.response&&_.io(q,_.CI(q,q.response.autoplayRenderer));q.JSC$13399_pageManager.isOnWatch()||(g=g[0],u=u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",q.isMiniplayerActive()||
ymE(g,u))},vIh=function(g,u){var q;
return _.D(function(Q){return Q.nextAddress==1?u&&g.lastWelcomeContinuationSent!==u?_.X6K(g)?Q.yield(g.panelController.isVisible("PAai_companion"),3):Q.jumpTo(2):Q.return(!1):Q.nextAddress==2||(q=Q.yieldResult,q)?Q.return(!0):Q.return(!1)})},DIb=function(g){var u,q,Q,L,E;
return _.D(function(y){if(y.nextAddress==1){if(!g.welcomeOptions)return y.return();u=g.welcomeOptions;q=u.command;Q=u.setPending;if(q){var v;var J=(v=_.c(q,_.fe))==null?void 0:v.token}else J=void 0;L=J;return y.yield(vIh(g,L),2)}if(!y.yieldResult)return y.return();g.lastWelcomeContinuationSent=L;(E=Q)==null||E(!0);J="youchat-"+Date.now();v=(v=_.Ke())?String(Math.floor(v.getCurrentTime())*1E3):void 0;_.fr(q,{form:{formData:_.Iq({clientMessageId:J,playerOffsetMs:v,pageContext:_.C7K(g,g.pageSubtype)})}});
_.Wx(y)})},pN9=function(g,u){_.D(function(q){g.welcomeOptions=u;
return q.yield(DIb(g),0)})},Jmx=function(g){var u=_.EZ(g);
if(u=="object"||u=="array"){if(typeof g.clone==="function")return g.clone();if(typeof Map!=="undefined"&&g instanceof Map)return new Map(g);if(typeof Set!=="undefined"&&g instanceof Set)return new Set(g);u=u=="array"?[]:{};for(var q in g)u[q]=Jmx(g[q]);return u}return g},yJz=function(g,u){return Array.prototype.reduce.call(g,u,{duration:0})},jH=function(g,u){return _.IHT(_.Uc(g,u,void 0,_.oO))},Mn=function(g,u){return _.Jh(_.Uc(g,u,void 0,_.oO))},tY=function(g,u){return _.Uc(g,u,void 0,_.oO,_.L9)},
jxz=_.te(function(g,u,q,Q){if(_.YS)return _.Lsf(g,u,q,Q);
if(g.nextWireType_!==0)return!1;_.ZO(u,q,Q,_.Ae(g.decoder_,_.ki));return!0},_.w0,_.ZP),fSb=_.te(function(g,u,q){if(_.YS)return _.NtF(g,u,q);
if(g.nextWireType_!==1)return!1;var Q=g.decoder_;g=_.wm(Q);Q=_.wm(Q);g=_.xi(g,Q);_.eO(u,q,g);return!0},_.nVq,_.GsX),Mef=_.te(function(g,u,q){if(g.nextWireType_!==5)return!1;
_.eO(u,q,_.wm(g.decoder_));return!0},function(g,u,q){u=_.bof(u);
u!=null&&(_.Gs(g,q,5),_.$V(g.encoder_,u))},_.MOx),ten=_.te(function(g,u,q){if(g.nextWireType_!==2)return!1;
g=_.Q3H(g);_.eO(u,q,g===_.FW()?void 0:g);return!0},_.gA3,_.wTZ),egb=_.WGT(function(g,u,q){if(g.nextWireType_!==0&&g.nextWireType_!==2)return!1;
u=_.sT(u,u[_.Nx]|0,q);g.nextWireType_==2?_.LGH(g,Lpp,u):u.push(_.R6(g.decoder_));return!0},function(g,u,q){u=_.reJ(_.Jh,u,!0);
if(u!=null&&u.length){q=_.vVi(g,q);for(var Q=0;Q<u.length;Q++)_.xkZ(g.encoder_,u[Q]);_.Dk5(g,q)}},_.ce2),GPK=_.te(function(g,u,q,Q){if(g.nextWireType_!==0)return!1;
_.ZO(u,q,Q,_.R6(g.decoder_));return!0},_.qP3,_.ce2),$IK=function(g,u,q){return Math.abs(g-u)<=(q||1E-6)},Rgf=function(g,u){return g==u?!0:g&&u?g.width==u.width&&g.height==u.height:!1},eH=function(g,u){g.insertBefore(u,g.childNodes[0]||null)},wNL=function(g){return g.previousElementSibling!==void 0?g.previousElementSibling:_.miH(g.previousSibling,!1)},aqL=_.bO(_.jV),cmh=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(cmh,_.fv);cmh.prototype.getTypeName=function(){return _.J2(this,1).split("/").pop()};
cmh.prototype.getValue=function(){var g=_.Uc(this,2);if(Array.isArray(g)||g instanceof _.fv)throw Error("X");return _.Lp(this,2)};
var H8C=[0,2,_.mE],Yip=function(){var g=_.TN();this.JSC$10224_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.hk("channel_type"))};
Yip.prototype.increment=function(g){this.JSC$10224_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",g)};
var OEC=function(){var g=_.TN();this.JSC$10227_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.hk("channel_type"))};
OEC.prototype.increment=function(g){this.JSC$10227_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",g)};
var xmL=function(){var g=_.TN();this.JSC$10230_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.hk("channel_type"))};
xmL.prototype.increment=function(g){this.JSC$10230_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",g)};
var KXn=function(){var g=_.TN();this.JSC$10233_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
KXn.prototype.increment=function(){this.JSC$10233_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var BOC=function(){var g=_.TN();this.JSC$10236_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.hk("channel_type"),_.hk("error_type"))};
BOC.prototype.increment=function(g,u){this.JSC$10236_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",g,u)};
var zqZ=function(){var g=_.TN();this.JSC$10239_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
zqZ.prototype.increment=function(){this.JSC$10239_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var n9Z=function(){var g=_.TN();this.JSC$10242_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
n9Z.prototype.increment=function(){this.JSC$10242_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var XlZ=function(){var g=_.TN();this.JSC$10248_streamzService=g;g.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
XlZ.prototype.increment=function(){this.JSC$10248_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Am9=function(g){return g.getCount&&typeof g.getCount=="function"?g.getCount():_.xu(g)||typeof g==="string"?g.length:_.pH.getCount(g)},Z8b=function(g,u){if(typeof g.every=="function")return g.every(u,void 0);
if(_.xu(g)||typeof g==="string")return Array.prototype.every.call(g,u,void 0);for(var q=_.Qon(g),Q=_.VV(g),L=Q.length,E=0;E<L;E++)if(!u.call(void 0,Q[E],q&&q[E],g))return!1;return!0},lSh=function(g,u,q,Q){var L=new _.Ir(null);
g&&_.Xy(L,g);u&&_.rJ(L,u);q&&_.Wl(L,q);Q&&_.TA(L,Q);return L},ISL=function(g){if(g>=48&&g<=57||g>=96&&g<=106||g>=65&&g<=90||_.u6&&g==0)return!0;
switch(g){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 _.qM;default:return!1}},i8f=function(g){if(g.altKey&&!g.ctrlKey||g.metaKey||g.keyCode>=112&&g.keyCode<=123)return!1;
if(ISL(g.keyCode))return!0;switch(g.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!_.qM;default:return g.keyCode<166||g.keyCode>183}},Cg9=[0,
_.I6,Mef,-1],bdp=0,VZh=!1,XKL=function(g,u,q,Q,L,E,y){this.date=typeof g==="number"?new Date(g,u||0,q||1,Q||0,L||0,E||0,y||0):new Date(g&&g.getTime?g.getTime():_.WK())};
_.TK(XKL,_.Qj);_.P=XKL.prototype;_.P.getHours=function(){return this.date.getHours()};
_.P.getMinutes=function(){return this.date.getMinutes()};
_.P.getSeconds=function(){return this.date.getSeconds()};
_.P.getMilliseconds=function(){return this.date.getMilliseconds()};
_.P.getUTCDay=function(){return this.date.getUTCDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.P.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.P.setHours=function(g){this.date.setHours(g)};
_.P.setMinutes=function(g){this.date.setMinutes(g)};
_.P.setSeconds=function(g){this.date.setSeconds(g)};
_.P.setMilliseconds=function(g){this.date.setMilliseconds(g)};
_.P.setUTCHours=function(g){this.date.setUTCHours(g)};
_.P.setUTCMinutes=function(g){this.date.setUTCMinutes(g)};
_.P.setUTCSeconds=function(g){this.date.setUTCSeconds(g)};
_.P.setUTCMilliseconds=function(g){this.date.setUTCMilliseconds(g)};
_.P.add=function(g){_.Qj.prototype.add.call(this,g);g.hours&&this.setUTCHours(this.date.getUTCHours()+g.hours);g.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+g.minutes);g.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+g.seconds)};
_.P.JSC$11640_toIsoString=function(g){var u=_.Qj.prototype.JSC$11640_toIsoString.call(this,g);return g?u+"T"+_.np(this.getHours(),2)+":"+_.np(this.getMinutes(),2)+":"+_.np(this.getSeconds(),2):u+"T"+_.np(this.getHours(),2)+_.np(this.getMinutes(),2)+_.np(this.getSeconds(),2)};
_.P.equals=function(g){return this.getTime()==g.getTime()};
_.P.toString=function(){return this.JSC$11640_toIsoString()};
_.P.clone=function(){var g=new XKL(this.date);g.firstDayOfWeek_=this.firstDayOfWeek_;g.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return g};
rgf.prototype.set=function(g){this.relativeTimeStart_=g};
rgf.prototype.reset=function(){this.set(_.WK())};
rgf.prototype.get=function(){return this.relativeTimeStart_};
var b8h=null,dIx=function(){b8h||(b8h=new rgf)},Fmz=function(){b8h||(b8h=new rgf)};
_.TK(Fmz,dIx);_.P=WLC.prototype;_.P.JSC$11666_buffer_="";_.P.set=function(g){this.JSC$11666_buffer_=""+g};
_.P.append=function(g,u,q){this.JSC$11666_buffer_+=String(g);if(u!=null)for(var Q=1;Q<arguments.length;Q++)this.JSC$11666_buffer_+=arguments[Q];return this};
_.P.clear=function(){this.JSC$11666_buffer_=""};
_.P.getLength=function(){return this.JSC$11666_buffer_.length};
_.P.toString=function(){return this.JSC$11666_buffer_};
var nCZ={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"},YAb=function(g){this.xhr=g},Odb=function(g,u,q){_.gq.call(this,g+", errorCode="+u);
this.errorCode=u;this.xhr=q;this.name="PromiseAjaxError"};
_.A(Odb,_.gq);var mIh=!1,qgZ=function(g){_.gq.call(this,g.message||g.description||g.name);this.isMissing=g instanceof oCL;this.isTimeout=g instanceof Odb&&g.errorCode=="net.timeout";this.isCanceled=g instanceof _.Gx};
_.A(qgZ,_.gq);qgZ.prototype.name="BiscottiError";var oCL=function(){_.gq.call(this,"Biscotti ID is missing from server")};
_.A(oCL,_.gq);oCL.prototype.name="BiscottiMissingError";var hth={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},UMZ=null,Bv9=function(){try{var g=_.ri("yt.ads.biscotti.getId_");return g?g():Hdx()}catch(u){return _.NY(u)}},pXC={'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"},aSK=function(g,u){return _.rF({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:g,command:u}})},VeZ=function(g){return _.rF({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:g}})},XNh=function(g){return _.rF({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:g}})},rmK=function(g){return _.rF({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:g}})},Wmz=function(g){return _.rF({type:"SET_GUIDE_IS_EXPANDED",
payload:g})},Tdp=function(g){return _.rF({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:g})},hgz=function(g){return _.rF({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:g})},YtC=function(g){return _.rF({type:"SET_ONLINE_STATUS",
payload:g})},O8K=function(g){return _.rF({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:g}})},Kmb=function(g){return _.rF({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:g}})},xIn=function(g){return _.rF({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:g}})},Bd9=function(g,u){return _.rF({type:"SET_TRANSCRIPTION_STATE",
payload:{high:g,low:u}})},zgL=function(g){return _.rF({type:"SET_OVERLAY_STATE",
payload:g})},I4z=[[["I2F5bTNlNjlxejN5cXByaW1hcnk=",
null,null],[null,["dGF5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNkYjdoNWhqeHU5","NHZ6MmdzdHlsZS1zY29wZSNtZjV3aGV0"],null],["MjFjdG1tYXN0aGVhZC1hZCNuOHgyamJ3",["ZW5kZXJlciM2Y2w0ZmlpMXFpYnl0ZC1yaWNoLWdyaWQtcg=="],null],[null,["ZGVyZXIjODJpNzZmOGcyMnRieXRkLXJpY2gtZ3JpZC1yZW4=","ODAydHJzdHlsZS1zY29wZSNqZDJjN2k5"],null],[null,["ZXIjYmd0OXA0dnNteHFueXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","cXhyNjRzdHlsZS1zY29wZSNlNzQ2NHl4"],null],[null,["ZW5kZXJlciNjNW5zM2x2cXptNjR5dGQtYWQtc2xvdC1y"],null]],[["OTg1cG95cHBsYXllci1hZHMjcmdjOWY=",
null,null]],[[null,null,"ZGVyZXIjNWFxZXZwcXRpaTZ5dGxyLWJhbm5lci1jdGEtcmVu"]]],wXK="#",nIf=0,kPC=function(g,u,q){var Q=this;this.priority=u;this.delay=q;this.jobId=0;this.completionCallback=_.vH;this.wrappedJob=function(){g();Q.completionCallback()};
this.id=++nIf};
kPC.prototype.enqueue=function(g){this.completionCallback=g;this.jobId=_.Hv.addJob(this.wrappedJob,this.priority,this.delay)};
var Gd=function(){_.Vc.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.A(Gd,_.Vc);Gd.prototype.addJob=function(g,u,q){g=new kPC(g,u,q);this.taskIdToTask.set(g.id,g);this.isActive?StK(this,g):this.suspendedTasks.add(g);return g.id};
var StK=function(g,u){g.scheduledTasks.add(u);u.enqueue(function(){g.scheduledTasks.delete(u)})};
Gd.prototype.cancelJob=function(g){(g=this.taskIdToTask.get(g))&&(this.scheduledTasks.delete(g)?_.Hv.cancelJob(g.jobId):this.suspendedTasks.delete(g))};
Gd.prototype.pause=function(){var g=this;this.isActive=!1;this.scheduledTasks.forEach(function(u){_.Hv.cancelJob(u.jobId);g.suspendedTasks.add(u)});
this.scheduledTasks.clear()};
Gd.prototype.start=function(){var g=this;this.isActive=!0;this.suspendedTasks.forEach(function(u){StK(g,u)});
this.suspendedTasks.clear()};
Gd.prototype.reset=function(){this.scheduledTasks.forEach(function(g){_.Hv.cancelJob(g.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var oIx=function(g,u){this.JSC$13525_networkService_=g;this.pageRequestPromise=u};
oIx.prototype.fetchData=function(g){UIn(this,this.JSC$13525_networkService_.fetchData(g))};
oIx.prototype.postData=function(g,u){UIn(this,this.JSC$13525_networkService_.postData(g,u))};
oIx.prototype.requestDataForServiceEndpoint=function(g,u){UIn(this,this.JSC$13525_networkService_.requestDataForServiceEndpoint(g,u))};
var UIn=function(g,u){u.then(g.pageRequestPromise.onSuccess,g.pageRequestPromise.onFailure,g.pageRequestPromise)};
oIx.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var gfn=function(g){this.buildNetworkRequest_=g;this.pendingRequests_=new Set};
gfn.prototype.reset=function(){this.pendingRequests_.forEach(function(g){g.cancel()});
this.pendingRequests_.clear()};
gfn.prototype.fetchData=function(g){var u=uMn(this);u.fetchData(g);return u.pageRequestPromise};
gfn.prototype.postData=function(g,u){var q=uMn(this);q.postData(g,u);return q.pageRequestPromise};
gfn.prototype.requestDataForServiceEndpoint=function(g,u){var q=uMn(this);q.requestDataForServiceEndpoint(g,u);return q.pageRequestPromise};
var uMn=function(g){var u=g.buildNetworkRequest_();g.pendingRequests_.add(u);var q=function(){g.pendingRequests_.delete(u)};
u.pageRequestPromise.then(q,q);return u},qdH=function(g){var u=new Gd;
this.JSC$13532_networkService_=g;this.JSC$13532_taskManager_=u;this.JSC$13532_networkManager_=new gfn(this.networkRequestFactory_.bind(this))};
_.P=qdH.prototype;_.P.networkRequestFactory_=function(){return new oIx(this.JSC$13532_networkService_,new _.xa(this.JSC$13532_taskManager_))};
_.P.reset=function(){this.JSC$13532_taskManager_.reset();this.JSC$13532_networkManager_.reset()};
_.P.start=function(){this.JSC$13532_taskManager_.start()};
_.P.pause=function(){this.JSC$13532_taskManager_.pause()};
_.P.getTaskManager=function(){return this.JSC$13532_taskManager_};
_.P.getNetworkManager=function(){return this.JSC$13532_networkManager_};
var rJh=null,hfH=[],Fgh=0,XXt=0,mKK=null,Kgx=null,O8=function(g){this.token=g};
O8.getInstance=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield(_.BW(),2);g=u.yieldResult;if(!g)return u.return();O8.instance||(O8.instance=new O8(g));return u.return(O8.instance)})};
var g6f=function(g){var u;return _.D(function(q){if(q.nextAddress==1)return q.yield(SgL(g.token),2);u=q.yieldResult;return q.return(u.clear("resource-manifest-assets"))})},YM=function(g){this.token=g};
YM.getInstance=function(){var g;return _.D(function(u){if(u.nextAddress==1)return u.yield(_.BW(),2);g=u.yieldResult;if(!g)return u.return();YM.instance||(YM.instance=new YM(g));return u.return(YM.instance)})};
var oJf=function(g){var u;return _.D(function(q){if(q.nextAddress==1)return q.yield(SgL(g.token),2);u=q.yieldResult;return q.yield(u.clear("auth"),0)})},QBC=!1,Gzt=null,$fh=void 0,iWz=!1,Ldx=function(g){if(!_.a9(document,"gtm-noscript")){var u=document.createElement("noscript");
u.id="gtm-noscript";u.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+g+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(u)}},EfZ=function(g){_.gq.call(this,g)};
_.A(EfZ,_.fNi);
var wcH=!1,ADH=[],HUh=!1,WcC={},h2z=function(g,u){var q=PGx,Q=this;this.renderFn=g;this.listeners=q;this.context=u;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var L;this.lastSeenPlayerApi=_.$S((L=this.playerControlsData)==null?void 0:L.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.KUm(),void 0);_.w("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Yfh(Q).setState({playerState:-1});Q.resetRecentlyNavigatedJobId&&
_.Hv.cancelJob(Q.resetRecentlyNavigatedJobId);Q.recentlyNavigated=!0;Q.resetRecentlyNavigatedJobId=_.Hv.addJob(function(){Q.recentlyNavigated=!1},8,1E4)})};
h2z.prototype.setState=function(g){if(!_.w("mweb_player_skip_no_op_state_changes")||!TrZ(g,this.state))if(this.state=Object.assign({},this.state,g),!_.w("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)g=-1,_.w("player_controls_log_creation_killswitch")||hhh()||(g=(0,_.n0)()),_.fW("pcu_s"),_.fW("pcu_se"),_.fW("pcu_rs"),this.renderFn(Yfh(this)),_.fW("pcu_re"),Y3H(g),_.Hv.addJob(function(){_.fW("pcu_ap")},8)};
var Yfh=function(g){if(g.getPlayerApi)var u=_.$S(g.getPlayerApi());else{var q;u=_.$S((q=g.playerControlsData)==null?void 0:q.playerApi)}return Object.assign({},g.state,{setState:g.boundSetState,domMeasurements:{progressBarLineRect:g.progressBarLineRect},playerApi:u,appApi:g.context.appApi,playerContainer:g.context.playerContainer,playerControlContainer:g.context.playerControlContainer,uxConfig:g.context.uxConfig})},O3K=function(g){g.listeners.forEach(function(u){g.eventListenerCleanupFunctions.push(u.register(function(){return Yfh(g)},
function(){return g.getData()}))})},KZZ=function(g){g.eventListenerCleanupFunctions.forEach(function(u){u()});
g.eventListenerCleanupFunctions.length=0};
h2z.prototype.getData=function(){return this.playerControlsData};var roC=function(){var g=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return g?parseInt(g[1],10):0},N5H=function(g){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+g)!=-1||document.currentScript.src.indexOf("&"+g)!=-1)},sBx=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Orx=function(g){g.length?yOn(g.shift(),function(){Orx(g)}):TLZ()},xYh=function(g){return"chrome-extension://"+g+"/cast_sender.js"},yOn=function(g,
u,q){var Q=document.createElement("script");
Q.onerror=u;q&&(Q.onload=q);_.jx(Q,_.J5(g));(document.head||document.documentElement).appendChild(Q)},vf9=function(){var g=roC(),u=[];
if(g>1){var q=g-1;u.push("//www.gstatic.com/eureka/clank/"+g+"/cast_sender.js");u.push("//www.gstatic.com/eureka/clank/"+q+"/cast_sender.js")}return u},TLZ=function(){var g=sBx();
g&&g(!1,"No cast extension found")},YEp=function(){if(Dsp){var g=2,u=sBx(),q=function(){g--;
g==0&&u&&u(!0)};
window.__onGCastApiAvailable=q;yOn("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",TLZ,q)}},Wyp=function(){YEp();
var g=vf9();g.push("//www.gstatic.com/eureka/clank/cast_sender.js");Orx(g)},hEz=function(){YEp();
var g=vf9();g.push.apply(g,_.na(KyC.map(xYh)));g.push("//www.gstatic.com/eureka/clank/cast_sender.js");Orx(g)},Dsp=N5H("loadCastFramework")||N5H("loadCastApplicationFramework"),KyC=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var pIL=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(pIL,_.fv);var JOZ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(JOZ,_.fv);var jBh=function(){var g=new JOZ;return _.Gw(g,1,3)};var $h=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A($h,_.fv);var p9x=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(p9x,_.fv);var f8H=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(f8H,_.fv);f8H.prototype.getToken=function(){return _.J2(this,1)};
f8H.prototype.setToken=function(g){return _.I1(this,1,g)};
var v_b=function(g){return _.uO(g,3,_.C9,_.Xo())},DRn=function(g){return _.uO(g,6,_.C9,_.Xo())};var Rl=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Rl,_.fv);Rl.prototype.getToken=function(){return _.o0(this,f8H,2)};
Rl.prototype.setToken=function(g){return _.FV(this,2,g)};
Rl.prototype.getName=function(){return _.J2(this,6)};
var Mnt=_.bO(Rl);var tnC=function(g,u,q){this.requestMessage=g;this.methodDescriptor=u;this.metadata=q};
tnC.prototype.getMetadata=function(){return this.metadata};var e0H=function(g,u){u=u===void 0?{}:u;this.responseMessage=g;this.metadata=u;this.status=null};
e0H.prototype.getMetadata=function(){return this.metadata};
e0H.prototype.getStatus=function(){return this.status};var wH=function(g,u,q,Q,L){this.name=g;this.methodType="unary";this.requestType=u;this.responseType=q;this.requestSerializeFn=Q;this.responseDeserializeFn=L},GoK=function(g,u,q){q=q===void 0?{}:q;
return new tnC(u,g,q)};
wH.prototype.getName=function(){return this.name};var c3=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(c3,_.fv);c3.prototype.getHeader=function(){return _.o0(this,$h,1)};
c3.prototype.setHeader=function(g){return _.FV(this,1,g)};
c3.prototype.hasHeader=function(){return _.gm(this,$h,1)};var $sH=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A($sH,_.fv);var R0E=new wH("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",c3,$sH,function(g){return g.serialize()},_.bO($sH));var H3=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(H3,_.fv);H3.prototype.getHeader=function(){return _.o0(this,$h,1)};
H3.prototype.setHeader=function(g){return _.FV(this,1,g)};
H3.prototype.hasHeader=function(){return _.gm(this,$h,1)};var wIb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(wIb,_.fv);var cOZ=new wH("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",H3,wIb,function(g){return g.serialize()},_.bO(wIb));var AY=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(AY,_.fv);AY.prototype.getHeader=function(){return _.o0(this,$h,1)};
AY.prototype.setHeader=function(g){return _.FV(this,1,g)};
AY.prototype.hasHeader=function(){return _.gm(this,$h,1)};var HJn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(HJn,_.fv);HJn.prototype.getValues=function(g){return _.O9$(this,1,g)};var AOK=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(AOK,_.fv);AOK.prototype.getLink=function(){return _.o0(this,Rl,1)};var ZJE=new wH("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",AY,AOK,function(g){return g.serialize()},_.bO(AOK));var Zu=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Zu,_.fv);Zu.prototype.getHeader=function(){return _.o0(this,$h,1)};
Zu.prototype.setHeader=function(g){return _.FV(this,1,g)};
Zu.prototype.hasHeader=function(){return _.gm(this,$h,1)};var l89=new wH("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Zu,Rl,function(g){return g.serialize()},Mnt);var I8p=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(I8p,_.fv);var iJH=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(iJH,_.fv);iJH.prototype.getUrl=function(){return _.J2(this,2)};
iJH.prototype.setUrl=function(g){return _.I1(this,2,g)};var CGh=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(CGh,_.fv);var bJp=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(bJp,_.fv);var dsp=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(dsp,_.fv);var ARK=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(ARK,_.fv);var cRh=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(cRh,_.fv);var Fdn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Fdn,_.fv);var mRC=_.bO(Fdn);var msn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(msn,_.fv);var a8L=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(a8L,_.fv);_.P=a8L.prototype;_.P.getHeader=function(){return _.o0(this,$h,1)};
_.P.setHeader=function(g){return _.FV(this,1,g)};
_.P.hasHeader=function(){return _.gm(this,$h,1)};
_.P.getCompletionUrl=function(){return _.J2(this,6)};
_.P.getDeviceId=function(){return _.J2(this,11)};var VnE=new wH("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",a8L,Fdn,function(g){return g.serialize()},mRC);var XIn=new Set(["SAPISIDHASH","APISIDHASH"]);var rOt=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(rOt,_.fv);rOt.prototype.getMessage=function(){return _.J2(this,2)};
var Wdh=_.bO(rOt);var h0n=function(g,u){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=g.nodeReadableStream;this.grpcResponseDeserializeFn=u;this.xhr=g.xhr;this.xhrNodeReadableStream&&T5p(this)},nfx=function(g,u){var q=new YdZ;
_.Z1(g.xhr,"complete",function(){if(g.xhr.isSuccess()){var Q=g.xhr.getResponseText();var L;if(L=u)L=g.xhr,L.JSC$10103_xhr_&&L.isComplete()?(L=L.JSC$10103_xhr_.getResponseHeader("Content-Type"),L=L===null?void 0:L):L=void 0,L=L==="text/plain";if(L){if(!atob)throw Error("ek");Q=atob(Q)}try{var E=g.grpcResponseDeserializeFn(Q)}catch(v){OJL(g,zhh(new _.tz(13,"Error when deserializing response data; error: "+v+(", response: "+Q)),q));return}Q=_.xqT(g.xhr.getStatus());KdL(g,xst(g));Q===0?B5z(g,E):OJL(g,
zhh(new _.tz(Q,"Xhr succeeded but the status code is not 200"),q))}else{Q=g.xhr.getResponseText();E=xst(g);if(Q){var y=z0E(g,Q);Q=y.code;L=y.details;y=y.metadata}else Q=2,L="Rpc failed due to xhr error. uri: "+String(g.xhr.JSC$10103_lastUri_)+", error code: "+(g.xhr.JSC$10103_lastErrorCode_+", error: ")+g.xhr.getLastError(),y=E;KdL(g,E);OJL(g,zhh(new _.tz(Q,L,y),q))}})},T5p=function(g){g.xhrNodeReadableStream.on("data",function(u){if("1"in u){var q=u["1"];
try{var Q=g.grpcResponseDeserializeFn(q)}catch(L){OJL(g,new _.tz(13,"Error when deserializing response data; error: "+L+(", response: "+q)))}Q&&B5z(g,Q)}if("2"in u)for(u=z0E(g,u["2"]),q=0;q<g.onStatusCallbacks.length;q++)g.onStatusCallbacks[q](u)});
g.xhrNodeReadableStream.on("end",function(){KdL(g,xst(g));for(var u=0;u<g.onEndCallbacks.length;u++)g.onEndCallbacks[u]()});
g.xhrNodeReadableStream.on("error",function(){if(g.onErrorCallbacks.length!==0){var u=g.xhr.JSC$10103_lastErrorCode_;u!==0||g.xhr.isSuccess()||(u=6);var q=-1;switch(u){case 0:var Q=2;break;case 7:Q=10;break;case 8:Q=4;break;case 6:q=g.xhr.getStatus();Q=_.xqT(q);break;default:Q=14}KdL(g,xst(g));u=_.rMH(u)+", error: "+g.xhr.getLastError();q!==-1&&(u+=", http status code: "+q);OJL(g,new _.tz(Q,u))}})},xst=function(g){var u={},q=N2z(g.xhr);
Object.keys(q).forEach(function(Q){u[Q]=q[Q]});
return u},z0E=function(g,u){var q=2,Q={};
try{var L=Wdh(u);q=_.r6(L,1);var E=L.getMessage();_.Vu(L,cmh,3,_.Xo()).length&&(Q["grpc-web-status-details-bin"]=u)}catch(y){g.xhr&&g.xhr.getStatus()===404?(q=5,E="Not Found: "+String(g.xhr.JSC$10103_lastUri_)):(q=14,E="Unable to parse RpcStatus: "+y)}return{code:q,details:E,metadata:Q}};
h0n.prototype.on=function(g,u){g==="data"?this.onDataCallbacks.push(u):g==="metadata"?this.onMetadataCallbacks.push(u):g==="status"?this.onStatusCallbacks.push(u):g==="end"?this.onEndCallbacks.push(u):g==="error"&&this.onErrorCallbacks.push(u);return this};
var koC=function(g,u){u=g.indexOf(u);u>-1&&g.splice(u,1)};
h0n.prototype.removeListener=function(g,u){g==="data"?koC(this.onDataCallbacks,u):g==="metadata"?koC(this.onMetadataCallbacks,u):g==="status"?koC(this.onStatusCallbacks,u):g==="end"?koC(this.onEndCallbacks,u):g==="error"&&koC(this.onErrorCallbacks,u);return this};
h0n.prototype.cancel=function(){this.xhr.abort()};
var B5z=function(g,u){for(var q=0;q<g.onDataCallbacks.length;q++)g.onDataCallbacks[q](u)},KdL=function(g,u){for(var q=0;q<g.onMetadataCallbacks.length;q++)g.onMetadataCallbacks[q](u)},OJL=function(g,u){for(var q=0;q<g.onErrorCallbacks.length;q++)g.onErrorCallbacks[q](u)},YdZ=function(){var g=Error.call(this);
this.message=g.message;"stack"in g&&(this.stack=g.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(YdZ,Error);var SdC=function(g){this.JSC$19593_worker_=g.worker||null;this.JSC$19593_streamBinaryChunks_=g.streamBinaryChunks||!1;this.JSC$19593_credentialsMode_=void 0};
_.TK(SdC,_.zI3);SdC.prototype.createInstance=function(){var g=new lN(this.JSC$19593_worker_,this.JSC$19593_streamBinaryChunks_);this.JSC$19593_credentialsMode_&&g.setCredentialsMode(this.JSC$19593_credentialsMode_);return g};
SdC.prototype.setCredentialsMode=function(g){this.JSC$19593_credentialsMode_=g};
var lN=function(g,u){_.A5.call(this);this.JSC$19597_worker_=g;this.JSC$19597_streamBinaryChunks_=u;this.JSC$19597_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$19597_responseHeaders_=null;this.JSC$19597_method_="GET";this.JSC$19597_url_="";this.inProgress_=!1;this.JSC$19597_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.TK(lN,_.A5);lN.prototype.open=function(g,u){if(this.readyState!=0)throw this.abort(),Error("fk");this.JSC$19597_method_=g;this.JSC$19597_url_=u;this.readyState=1;ofz(this)};
lN.prototype.send=function(g){if(this.readyState!=1)throw this.abort(),Error("gk");if(this.abortController_.signal.aborted)throw this.abort(),Error("hk");this.inProgress_=!0;var u={headers:this.requestHeaders_,method:this.JSC$19597_method_,credentials:this.JSC$19597_credentialsMode_,cache:void 0,signal:this.abortController_.signal};g&&(u.body=g);(this.JSC$19597_worker_||_.Qq).fetch(new Request(this.JSC$19597_url_,u)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
lN.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,Usz(this));this.readyState=0};
lN.prototype.handleResponse_=function(g){if(this.inProgress_&&(this.fetchResponse_=g,this.JSC$19597_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19597_responseHeaders_=g.headers,this.readyState=2,ofz(this)),this.inProgress_&&(this.readyState=3,ofz(this),this.inProgress_)))if(this.responseType==="arraybuffer")g.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Qq.ReadableStream!==
"undefined"&&"body"in g){this.currentReader_=g.body.getReader();if(this.JSC$19597_streamBinaryChunks_){if(this.responseType)throw Error("ik");this.response=[]}else this.response=this.responseText="",this.JSC$19597_textDecoder_=new TextDecoder;glt(this)}else g.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var glt=function(g){g.currentReader_.read().then(g.handleDataFromStream_.bind(g)).catch(g.handleSendFailure_.bind(g))};
lN.prototype.handleDataFromStream_=function(g){if(this.inProgress_){if(this.JSC$19597_streamBinaryChunks_&&g.value)this.response.push(g.value);else if(!this.JSC$19597_streamBinaryChunks_){var u=g.value?g.value:new Uint8Array(0);if(u=this.JSC$19597_textDecoder_.decode(u,{stream:!g.done}))this.response=this.responseText+=u}g.done?Usz(this):ofz(this);this.readyState==3&&glt(this)}};
lN.prototype.handleResponseText_=function(g){this.inProgress_&&(this.response=this.responseText=g,Usz(this))};
lN.prototype.handleResponseArrayBuffer_=function(g){this.inProgress_&&(this.response=g,Usz(this))};
lN.prototype.handleSendFailure_=function(){this.inProgress_&&Usz(this)};
var Usz=function(g){g.readyState=4;g.fetchResponse_=null;g.currentReader_=null;g.JSC$19597_textDecoder_=null;ofz(g)};
lN.prototype.setRequestHeader=function(g,u){this.requestHeaders_.append(g,u)};
lN.prototype.getResponseHeader=function(g){return this.JSC$19597_responseHeaders_?this.JSC$19597_responseHeaders_.get(g.toLowerCase())||"":""};
lN.prototype.getAllResponseHeaders=function(){if(!this.JSC$19597_responseHeaders_)return"";for(var g=[],u=this.JSC$19597_responseHeaders_.entries(),q=u.next();!q.done;)q=q.value,g.push(q[0]+": "+q[1]),q=u.next();return g.join("\r\n")};
lN.prototype.setCredentialsMode=function(g){this.JSC$19597_credentialsMode_=g};
var ofz=function(g){g.onreadystatechange&&g.onreadystatechange.call(g)};
Object.defineProperty(lN.prototype,"withCredentials",{get:function(){return this.JSC$19597_credentialsMode_==="include"},
set:function(g){this.setCredentialsMode(g?"include":"same-origin")}});var uuh=function(g){var u="";_.pH.forEach(g,function(q,Q){u+=Q;u+=":";u+=q;u+="\r\n"});
return u},qw9=function(g,u,q){if(_.pH.isEmpty(q))return g;
q=uuh(q);if(typeof g==="string")return _.oW(g,_.nO(u),q);_.WD(g,u,q);return g};nZt.prototype.isInputValid=function(){return this.isInputValid_};
nZt.prototype.decode=function(g){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("jk`"+this.JSC$19603_streamPos_+"`stream already broken`"+g);this.leftoverInput_+=g;g=Math.floor(this.leftoverInput_.length/4);if(g==0)return null;try{var u=_.OZq(this.leftoverInput_.slice(0,g*4))}catch(q){throw u=this.leftoverInput_,g=q.message,this.isInputValid_=!1,Error("jk`"+this.JSC$19603_streamPos_+"`"+g+"`"+u);}this.JSC$19603_streamPos_+=g*4;this.leftoverInput_=this.leftoverInput_.slice(g*4);return u};kNp.prototype.isInputValid=function(){return this.state_!=3};
var Qnt=function(g,u,q,Q){g.state_=3;g.errorMessage_="The stream is broken @"+g.JSC$19606_streamPos_+"/"+q+". Error: "+Q+". With input:\n"+u;throw Error(g.errorMessage_);};
kNp.prototype.acceptsBinaryInput=function(){return!0};
kNp.prototype.parse=function(g){function u(J){J&128&&Qnt(E,y,v,"invalid tag");(J&7)!=2&&Qnt(E,y,v,"invalid wire type");E.tag_=J>>>3;E.tag_!=1&&E.tag_!=2&&E.tag_!=15&&Qnt(E,y,v,"unexpected tag");E.state_=1;E.length_=0;E.countLengthBytes_=0}
function q(J){E.countLengthBytes_++;E.countLengthBytes_==5&&J&240&&Qnt(E,y,v,"message length too long");E.length_|=(J&127)<<(E.countLengthBytes_-1)*7;J&128||(E.state_=2,E.countMessageBytes_=0,typeof Uint8Array!=="undefined"?E.messageBuffer_=new Uint8Array(E.length_):E.messageBuffer_=Array(E.length_),E.length_==0&&L())}
function Q(J){E.messageBuffer_[E.countMessageBytes_++]=J;E.countMessageBytes_==E.length_&&L()}
function L(){if(E.tag_<15){var J={};J[E.tag_]=E.messageBuffer_;E.result_.push(J)}E.state_=0}
for(var E=this,y=g instanceof Array?g:new Uint8Array(g),v=0;v<y.length;){switch(E.state_){case 3:Qnt(E,y,v,"stream already broken");break;case 0:u(y[v]);break;case 1:q(y[v]);break;case 2:Q(y[v]);break;default:throw Error("kk`"+E.state_);}E.JSC$19606_streamPos_++;v++}g=E.result_;E.result_=[];return g.length>0?g:null};var UZH=function(){this.errorMessage_=null;this.JSC$19609_streamPos_=0;this.base64Decoder_=new nZt;this.pbParser_=new kNp};
UZH.prototype.isInputValid=function(){return this.errorMessage_===null};
var LBf=function(g,u,q){g.errorMessage_="The stream is broken @"+g.JSC$19609_streamPos_+". Error: "+q+". With input:\n"+u;throw Error(g.errorMessage_);};
UZH.prototype.acceptsBinaryInput=function(){return!1};
UZH.prototype.parse=function(g){this.errorMessage_!==null&&LBf(this,g,"stream already broken");var u=null;try{var q=this.base64Decoder_.decode(g);u=q===null?null:this.pbParser_.parse(q)}catch(Q){LBf(this,g,Q.message)}this.JSC$19609_streamPos_+=g.length;return u};var oZt=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19612_streamPos_=0;this.result_=[];this.statusParsed_=!1};
oZt.prototype.isInputValid=function(){return this.errorMessage_===null};
oZt.prototype.acceptsBinaryInput=function(){return!1};
oZt.prototype.parse=function(g){function u(J){E.state_=6;E.errorMessage_="The stream is broken @"+E.JSC$19612_streamPos_+"/"+y+". Error: "+J+". With input:\n";throw Error(E.errorMessage_);}
function q(){E.jsonStreamParser_=new _.vU({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function Q(J){if(J)for(var f=0;f<J.length;f++){var t={};t[1]=J[f];E.result_.push(t)}}
function L(J){if(J){(E.statusParsed_||J.length>1)&&u("extra status: "+J);E.statusParsed_=!0;var f={};f[2]=J[0];E.result_.push(f)}}
for(var E=this,y=0;y<g.length;){var v;if(v=E.state_!==2){a:{for(;y<g.length;){if(!_.mm(g[y])){v=!0;break a}y++;E.JSC$19612_streamPos_++}v=!1}v=!v}if(v)return null;switch(E.state_){case 6:u("stream already broken");break;case 0:g[y]==="["?(E.state_=1,y++,E.JSC$19612_streamPos_++):u("unexpected input token");break;case 1:g[y]==="["?(E.state_=2,q()):g[y]===","||g.slice(y,y+5)=="null,"?E.state_=3:g[y]==="]"?(E.state_=5,y++,E.JSC$19612_streamPos_++):u("unexpected input token");break;case 2:v=E.jsonStreamParser_.parse(g.substring(y));
Q(v);E.jsonStreamParser_.done()?(E.state_=3,v=E.jsonStreamParser_.JSC$11792_buffer_,E.JSC$19612_streamPos_+=g.length-y-v.length,g=v,y=0):(E.JSC$19612_streamPos_+=g.length-y,y=g.length);break;case 3:g[y]===","||g.slice(y,y+5)=="null,"?(E.state_=4,q(),E.jsonStreamParser_.parse("["),y+=g[y]===","?1:5,E.JSC$19612_streamPos_++):g[y]==="]"&&(E.state_=5,y++,E.JSC$19612_streamPos_++);break;case 4:v=E.jsonStreamParser_.parse(g.substring(y));L(v);E.jsonStreamParser_.done()?(E.state_=5,v=E.jsonStreamParser_.JSC$11792_buffer_,
E.JSC$19612_streamPos_+=g.length-y-v.length,g=v,y=0):(E.JSC$19612_streamPos_+=g.length-y,y=g.length);break;case 5:u("extra input after stream end")}}return E.result_.length>0?(g=E.result_,E.result_=[],g):null};var Elh=function(g){this.JSC$19615_xhr_=g;this.JSC$19615_parser_=null;this.status_=this.JSC$19615_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19615_textDecoder_=null;this.JSC$19615_eventHandler_=new _.NV(this);this.JSC$19615_eventHandler_.listen(this.JSC$19615_xhr_,"readystatechange",this.JSC$19617_readyStateChangeHandler_)},Il=function(g,u){g.status_!=u&&(g.status_=u,g.statusHandler_&&g.statusHandler_())},PkH=function(g){g.JSC$19615_eventHandler_.removeAll();
if(g.JSC$19615_xhr_){var u=g.JSC$19615_xhr_;g.JSC$19615_xhr_=null;u.abort();u.dispose()}};
Elh.prototype.getStatus=function(){return this.status_};
Elh.prototype.JSC$19617_readyStateChangeHandler_=function(g){g=g.target;try{if(g==this.JSC$19615_xhr_)a:{var u=_.$k(this.JSC$19615_xhr_),q=this.JSC$19615_xhr_.JSC$10103_lastErrorCode_,Q=this.JSC$19615_xhr_.getStatus(),L=this.JSC$19615_xhr_.getResponseText();g=[];if(this.JSC$19615_xhr_.getResponse()instanceof Array){var E=this.JSC$19615_xhr_.getResponse();E.length>0&&E[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,g=E)}if(!(u<3||u==3&&!L&&g.length==0))if(Q=Q==200||Q==206,u==4&&(q==8?
Il(this,7):q==7?Il(this,8):Q||Il(this,3)),this.JSC$19615_parser_||(this.JSC$19615_parser_=g_t(this.JSC$19615_xhr_),this.JSC$19615_parser_==null&&Il(this,5)),this.status_>2)PkH(this);else{if(g.length>this.JSC$19615_pos_){var y=g.length;q=[];try{if(this.JSC$19615_parser_.acceptsBinaryInput())for(var v=0;v<y;v++){var J=this.JSC$19615_parser_.parse(Array.from(g[v]));J&&(q=q.concat(J))}else{J="";if(!this.JSC$19615_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("lk");this.JSC$19615_textDecoder_=
new TextDecoder}for(v=0;v<y;v++)J+=this.JSC$19615_textDecoder_.decode(g[v],{stream:u==4&&v==y-1});q=this.JSC$19615_parser_.parse(J)}g.splice(0,y);q&&this.dataHandler_(q)}catch(t){Il(this,5);PkH(this);break a}}else if(L.length>this.JSC$19615_pos_){v=L.slice(this.JSC$19615_pos_);this.JSC$19615_pos_=L.length;try{var f=this.JSC$19615_parser_.parse(v);f!=null&&this.dataHandler_&&this.dataHandler_(f)}catch(t){Il(this,5);PkH(this);break a}}u==4?(L.length!=0||this.hasStreamingResponseData_?Il(this,2):Il(this,
4),PkH(this)):Il(this,1)}}}catch(t){Il(this,6),PkH(this)}};var NSK=function(g){g=this.xhrReader_=g;var u=(0,_.EH)(this.onData_,this);g.dataHandler_=u;g=this.xhrReader_;u=(0,_.EH)(this.onStatusChange_,this);g.statusHandler_=u;this.JSC$19619_callbackMap_={};this.callbackOnceMap_={}};
_.P=NSK.prototype;_.P.on=function(g,u){var q=this.JSC$19619_callbackMap_[g];q||(q=[],this.JSC$19619_callbackMap_[g]=q);q.push(u);return this};
_.P.addListener=function(g,u){this.on(g,u);return this};
_.P.removeListener=function(g,u){var q=this.JSC$19619_callbackMap_[g];q&&_.TM(q,u);(g=this.callbackOnceMap_[g])&&_.TM(g,u);return this};
_.P.once=function(g,u){var q=this.callbackOnceMap_[g];q||(q=[],this.callbackOnceMap_[g]=q);q.push(u);return this};
_.P.onData_=function(g){var u=this.JSC$19619_callbackMap_.data;u&&snH(g,u);(u=this.callbackOnceMap_.data)&&snH(g,u);this.callbackOnceMap_.data=[]};
var snH=function(g,u){for(var q={},Q=0;Q<g.length;q={message$jscomp$1008:void 0},Q++)q.message$jscomp$1008=g[Q],u.forEach(function(L){return function(E){try{E(L.message$jscomp$1008)}catch(y){}}}(q))};
NSK.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:ynC(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ynC(this,"error");break;case 8:ynC(this,"close");break;case 2:ynC(this,"end")}};
var ynC=function(g,u){var q=g.JSC$19619_callbackMap_[u];q&&q.forEach(function(Q){try{Q()}catch(L){}});
(q=g.callbackOnceMap_[u])&&q.forEach(function(Q){Q()});
g.callbackOnceMap_[u]=[]};var vlC=function(){var g={format:"jspb"};g=g===void 0?{}:g;this.suppressCorsPreflight=g.suppressCorsPreflight||_.ri("suppressCorsPreflight",g)||!1;this.withCredentials=g.withCredentials||_.ri("withCredentials",g)||!1;this.streamInterceptors=g.streamInterceptors||[];this.unaryInterceptors=g.unaryInterceptors||[];this.workerScope=g.workerScope;this.chunkedServerStreaming=g.useFetchDownloadStreams||!1},Jnz=function(g,u,q,Q,L,E){E=E===void 0?{}:E;
var y=u.substring(0,u.length-L.name.length),v,J=(v=E)==null?void 0:v.signal;return D4h(function(f){return new Promise(function(t,e){if(J==null?0:J.aborted){var G=new _.tz(1,"Aborted");G.cause=J.reason;e(G)}else{var R={},H=pFh(g,f,y);H.on("error",function(l){return void e(l)});
H.on("metadata",function(l){R=l});
H.on("data",function(l){var d=R;d=d===void 0?{}:d;t(new e0H(l,d))});
J&&J.addEventListener("abort",function(){H.cancel();var l=new _.tz(1,"Aborted");l.cause=J.reason;e(l)})}})},g.unaryInterceptors).call(g,GoK(L,q,Q)).then(function(f){return f.responseMessage})},jnC=function(g,u,q,Q,L,E){E=E===void 0?{}:E;
return Jnz(g,u,q,Q,L,E)};
vlC.prototype.serverStreaming=function(g,u,q,Q){var L=this,E=g.substring(0,g.length-Q.name.length);return fLK(function(y){var v=y.methodDescriptor,J=y.getMetadata(),f=MWZ(L,!1);J=tWZ(L,J,f,E+v.getName());var t=e99(f,v.responseDeserializeFn,!0);y=v.requestSerializeFn(y.requestMessage);f.send(J,"POST",y);return t},this.streamInterceptors).call(this,GoK(Q,u,q))};
var pFh=function(g,u,q){var Q=u.methodDescriptor,L=u.getMetadata(),E=MWZ(g,!0);g=tWZ(g,L,E,q+Q.getName());q=e99(E,Q.responseDeserializeFn,!1);nfx(q,L["X-Goog-Encode-Response-If-Executable"]==="base64");u=Q.requestSerializeFn(u.requestMessage);E.send(g,"POST",u);return q},MWZ=function(g,u){u=g.chunkedServerStreaming&&!u;
return g.workerScope||u?new _.GA(new SdC({worker:g.workerScope,streamBinaryChunks:u})):new _.GA},tWZ=function(g,u,q,Q){u["Content-Type"]="application/json+protobuf";
u["X-User-Agent"]="grpc-web-javascript/0.1";var L=u.Authorization;if(L&&XIn.has(L.split(" ")[0])||g.withCredentials)q.JSC$10103_withCredentials_=!0;if(g.suppressCorsPreflight)Q=qw9(Q,"$httpHeaders",u);else for(g=_.N(Object.keys(u)),L=g.next();!L.done;L=g.next())L=L.value,q.headers.set(L,u[L]);return Q},e99=function(g,u,q){if(q){q=new Elh(g);
var Q=new NSK(q)}return new h0n({xhr:g,nodeReadableStream:Q},u)},fLK=function(g,u){return u.reduce(function(q,Q){return function(L){return Q.intercept(L,q)}},g)},D4h=function(g,u){return u.reduce(function(q,Q){return function(L){return Q.intercept(L,q)}},g)};var GZx=function(g){this.client_=new vlC;this.hostname_=g==void 0?g:g.replace(/\/+$/,"")};
_.P=GZx.prototype;_.P.JSC$19637_depositGoogleCredential=function(g,u,q){return jnC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",g,u||{},cOZ,q)};
_.P.deleteLink=function(g,u,q){return jnC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",g,u||{},R0E,q)};
_.P.JSC$19637_finishOAuth=function(g,u,q){return jnC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",g,u||{},ZJE,q)};
_.P.getLink=function(g,u,q){return jnC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",g,u||{},l89,q)};
_.P.startLinkingSession=function(g,u,q){return jnC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",g,u||{},VnE,q)};var $4E=[0,_.FE,1,egb,[0,_.XE,[0,_.a6,-1]],[0,ten],[0,_.Y0,-1],[0,ten]];var R99=function(){this.storage=new Map},cnL=function(g,u,q,Q,L){if(!g.storage.has(u))return null;
g=_.N(g.storage.get(u));for(u=g.next();!u.done;u=g.next())if(u=u.value,!L||u.linkName===L)if(q&&u.scopes&&wFn(u.scopes,q)||Q&&u.capabilities&&wFn(u.capabilities,Q))return u;return null},Hqt=function(g,u,q){if(!q)g.storage.delete(u);
else if(g.storage.has(u)){var Q=g.storage.get(u).filter(function(L){return L.linkName!==q});
Q.length>0?g.storage.set(u,Q):g.storage.delete(u)}},wFn=function(g,u){u=_.N(u);
for(var q=u.next();!q.done;q=u.next())if(!g.has(q.value))return!1;return!0};var Anp=function(){var g=_.FR("LINK_GAL_DOMAIN");this.alsDomain1p=_.FR("LINK_GAL_DOMAIN");this.alsDomain3p=g;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},Zqz=function(g,u){g.apiKey=u;
return g};
Anp.prototype.build=function(){var g={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("mk");g.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("nk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("ok");g.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(g.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)g.apiKey=
this.apiKey,g.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("pk");g.oauthToken=this.oauthToken;g.alsDomain=this.alsDomain3p}g.clientXd3=this.clientXd3;g.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(g.authUser=this.authUser);this.bucket!==void 0&&(g.bucket=this.bucket);this.completionUrl!==void 0&&(g.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(g.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(g.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(g.locale=this.locale);this.localStorage!==void 0&&(g.localStorage=this.localStorage);g.loggerType=this.loggerType;g.clientEnvironment=this.clientEnvironment;g.colorScheme=this.colorScheme;g.showCloseOption=this.showCloseOption;return g};var Sr=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Sr,_.fv);var lLt=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(lLt,_.fv);var ILE=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(ILE,_.fv);var U8=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(U8,_.fv);var iq9=function(g){return _.j$(g,1)};var Ckx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Ckx,_.fv);var N$Z=_.bO(Ckx),oq=[1,2,3,4,5];var QEZ=function(g){try{return N$Z(g)}catch(u){return null}},bqf=function(){},LCZ=function(g,u){switch(_.Ea(u,oq)){case 4:return(u=_.t2(u,ILE,4,oq))&&g.logStateTransition(_.j$(u,1)),!0;
case 5:return(u=_.t2(u,lLt,5,oq))&&g.logInternalEvent(_.j$(u,1)),!0}return!1},sEn=function(g){switch(g){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.qE(g)}};var uTh=function(g,u){var q=this;this.validator=g;this.messageListener=u;this.dismissCallback=function(){d4t(q,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19666_receiveMessage=function(Q){Q.type==="message"&&(Q=Q.event_,Q!==null&&(new URL(q.iframe.src)).origin===Q.origin&&q.validator(Q.data,Q.origin)&&!q.messageListener(Q.data)&&(q.JSC$19666_resolveCb!==void 0&&q.JSC$19666_resolveCb(Q.data),FBf(q)))}},Pdn=function(g,u,q){g.uiHandler!==void 0&&d4t(g,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(Q,L){g.JSC$19666_resolveCb=Q;g.JSC$19666_rejectCb=L;g.iframe=document.createElement("iframe");_.Px(g.iframe,u);g.uiHandler=q.displayContent(g.iframe,g.dismissCallback);_.Z1(window,"message",g.JSC$19666_receiveMessage,!1,g)})},d4t=function(g,u){g.JSC$19666_rejectCb!==void 0&&g.JSC$19666_rejectCb(u);
FBf(g)},FBf=function(g){g.uiHandler!==void 0&&g.uiHandler.hideContent();
_.DB(window,"message",g.JSC$19666_receiveMessage,!1,g);g.JSC$19666_resolveCb=void 0;g.JSC$19666_rejectCb=void 0;g.uiHandler=void 0;g.iframe=void 0};var m4n=function(g){if(g===2){var u;g=((u=window)==null?0:u.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return g},E_f=function(g){g=m4n(g);
switch(g){case 0:return"light";case 1:return"dark";default:_.qE(g)}};var qxt=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),aLz=function(g,u){this.JSC$19678_linkingSession=g;this.noticeConfig=u;this.displayInfoMap=new Map;var q=new Map;if(_.gm(this.JSC$19678_linkingSession,CGh,7))for(g=_.o0(this.JSC$19678_linkingSession,CGh,7),g=_.Vu(g,iJH,1,_.Xo()),g=_.N(g),u=g.next();!u.done;u=g.next())u=u.value,q.set(_.j$(u,1),_.s0q(_.o0(u,_.QjS,3)));if(q.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){u=this.noticeConfig.enabledDataUsageNoticeUis;g=u.has(0)?q.get(1):void 0;u=u.has(1)?q.get(2):void 0;q=g!==void 0&&u!==void 0?q.get(3):void 0;var Q=this.noticeConfig.nestedOrigins;var L=new Ckx;var E=new Sr;L=_.mG(L,2,oq,E);E=new Ckx;var y=new Sr;E=_.mG(E,3,oq,y);y=[];g!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:g,lastEvent:L,nestedOrigins:Q}]),y.push({trustedUrl:g,lastEvent:L,nestedOrigins:Q}));u!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:u,lastEvent:E,nestedOrigins:Q}]),y.push({trustedUrl:u,lastEvent:E,nestedOrigins:Q}));q!==void 0?this.displayInfoMap.set(3,[{trustedUrl:q,lastEvent:E,nestedOrigins:Q}]):this.displayInfoMap.set(3,y)}};var VWx=function(g){var u=new R99;this.galService=g;this.galCache=u};
VWx.prototype.getLink=function(g){var u=g.serviceId;var q=g.scopes;var Q=g.capabilities;var L=g.linkName;var E=this,y;return _.D(function(v){if(Q!==void 0&&q!==void 0)throw Error("qk");y=cnL(E.galCache,u,q,Q,L);return y!==null?v.return(y):v.return(E.galService.getLink({serviceId:u,sessionId:Math.floor(Math.random()*2147483648),scopes:q,capabilities:Q,linkName:L}).then(function(J){J=JRb(J);var f=E.galCache;f.storage.has(u)?f.storage.get(u).push(J):f.storage.set(u,[J]);return J}))})};
VWx.prototype.deleteLink=function(g,u,q){var Q=this;return _.D(function(L){Hqt(Q.galCache,g,q);return L.return(Q.galService.deleteLink({serviceId:g,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:u,linkName:q}).then(function(){return!0}))})};var rnZ=function(g,u){var q=this;this.validator=g;this.msgHandler=u;this.closedPopupTimeout=this.JSC$19700_rejectCb=this.JSC$19700_resolveCb=this.popup=null;this.JSC$19700_receiveMessage=function(Q){if(Q!==null&&(Q=Q.event_,Q.source===q.popup)){var L=Q.data;if(q.validator(L,Q.origin)){var E;(E=q.msgHandler)!=null&&E.call(q,L)||(q.JSC$19700_resolveCb!==null&&q.JSC$19700_resolveCb(L),XF9(q))}}}};
rnZ.prototype.open=function(g,u){var q=this;this.popup!==null&&WBp(this);return new Promise(function(Q,L){q.JSC$19700_resolveCb=Q;q.JSC$19700_rejectCb=L;q.popup=_.sP(window,g,"",u);_.Z1(window,"message",q.JSC$19700_receiveMessage,!1,q);TSZ(q)})};
var WBp=function(g,u){g.JSC$19700_rejectCb!==null&&g.JSC$19700_rejectCb(u);XF9(g)},XF9=function(g){g.closedPopupTimeout&&(g.closedPopupTimeout.cancel(),g.closedPopupTimeout=null);
g.popup&&g.popup.close();_.DB(window,"message",g.JSC$19700_receiveMessage,!1,g);g.popup=null;g.JSC$19700_resolveCb=null;g.JSC$19700_rejectCb=null},TSZ=function(g){g.closedPopupTimeout=_.FW5(100).then(function(){g.popup?g.popup.closed?h9L(g):TSZ(g):WBp(g,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},h9L=function(g){g.closedPopupTimeout=_.FW5(100).then(function(){WBp(g,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var YwE=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),Oqx=function(g,u,q,Q,L,E,y,v,J,f){var t=this;this.serviceId=g;this.sessionId=u;this.galService=q;this.oauthDetails=Q;this.galLogger=L;this.interactionMode=E;this.redirectServiceUrl=y;this.consentLanguageKeys=v;this.dynamicUrlParameters=J;this.partnerConfigMinReadTimestamp=f;this.started=!1;this.JSC$19706_dataValidator=function(e,
G){var R=YwE.has(G);R||t.redirectServiceUrl===void 0||(R=t.redirectServiceUrl===G);return R?e.sentinel==="gdi":!1}};
Oqx.prototype.complete=function(){var g=this,u;return _.D(function(q){if(g.interactionMode!==1)return q.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));u=H69.getRedirectStateFromUri();return u===null?q.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):q.return(KBK(g,u))})};
Oqx.prototype.start=function(){var g=this,u;return _.D(function(q){if(g.started)return q.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.J2(g.oauthDetails,1))return q.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(g.interactionMode===1)return H69.setLocation(_.J2(g.oauthDetails,1)),q.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));g.started=!0;g.galLogger.logStateTransition(5);
u=H69.getPostMessagePopup(g.JSC$19706_dataValidator);return q.return(u.open(_.J2(g.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(Q){g.started=!1;var L=g.galLogger;if((Q==null?void 0:Q.error)!==void 0)throw L.logInternalEvent(59),Error("rk");if((Q==null?void 0:Q.redirect_state)===void 0)throw L.logInternalEvent(131),Error("sk");return KBK(g,Q.redirect_state)}).catch(function(Q){g.started=
!1;
return Q.errorCode!==void 0?{statusCode:Q.errorCode,statusMessage:Q.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var KBK=function(g,u){return _.D(function(q){return q.return(x4p(g.galService,{serviceId:g.serviceId,sessionId:g.sessionId,dynamicUrlParameters:g.dynamicUrlParameters,redirectState:u,consentLanguageKeys:g.consentLanguageKeys,partnerConfigMinReadTimestamp:g.partnerConfigMinReadTimestamp}).then(function(Q){var L={statusCode:1,link:JRb(Q.getLink())};fMb(_.Lp(Q,3))!==void 0&&(L.callerState=fMb(_.Lp(Q,3)));_.xEb(Q,4,HJn,jMt).size>0&&(L.redirectUriParams=new Map(Array.from(_.xEb(Q,4,HJn,jMt).entries()).map(function(E){var y=
_.N(E);E=y.next().value;var v=y.next().value;y=[];var J=y.concat;v=_.uO(v,1,_.C9,_.Xo());return[E,J.call(y,_.na(v))]})));
g.galLogger.logInternalEvent(134);return L}))})},H69={getPostMessagePopup:function(g){return new rnZ(g)},
getRedirectStateFromUri:function(){var g=_.X_(H69.getLocation()).fragment_;return(new _.KY(g)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(g){_.maK(window.location,_.SO(g))},
createOAuthFlow:function(g,u){return new Oqx(g.serviceId,g.sessionId,g.galService,u,g.galLogger,g.interactionMode,g.redirectServiceUrl,g.consentLanguageKeys,g.dynamicUrlParameters,g.partnerConfigMinReadTimestamp)}};var BSb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(BSb,_.fv);var z9t=_.bO(BSb);var nlb=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),kZp=function(g,u,q,Q,L,E,y,v,J){var f=this;this.serviceId=g;this.sessionId=u;this.galService=q;this.gsiWebFlowDetails=Q;this.colorScheme=L;this.showCloseOption=E;this.galLogger=y;this.interactionMode=v;this.redirectServiceUrl=J;this.started=!1;this.JSC$19719_dataValidator=function(t,e){var G=nlb.has(e);G||f.redirectServiceUrl===
void 0||(G=f.redirectServiceUrl===e);return G?t.sentinel==="gal":!1};
this.logEventProcessor=function(t){return t.result?(t=QEZ(t.result))?LCZ(f.galLogger,t):!1:!1}};
kZp.prototype.complete=function(){var g=this,u,q;return _.D(function(Q){if(g.interactionMode!==1)return Q.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));u=Z6p.getRedirectStateFromUri();if(u===void 0)return g.galLogger.JSC$19658_logErrorEvent(131),Q.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return q=Swt(g,u),Q.return(olZ(g,q))}catch(L){return Q.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
kZp.prototype.start=function(){var g=this,u;return _.D(function(q){if(g.started)return q.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.J2(g.gsiWebFlowDetails,1))return q.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(g.interactionMode===1)return Z6p.setLocation(U4x(g,_.J2(g.gsiWebFlowDetails,1))),q.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
g.started=!0;u=Z6p.getPostMessagePopup(g.JSC$19719_dataValidator,g.logEventProcessor);return q.return(u.open(U4x(g,_.J2(g.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(Q){g.started=!1;if((Q==null?void 0:Q.result)===void 0)throw g.galLogger.JSC$19658_logErrorEvent(131),Error("sk");Q=Swt(g,Q.result);return olZ(g,Q)}).catch(function(Q){g.started=!1;
return Q.errorCode!==void 0?{statusCode:Q.errorCode,statusMessage:Q.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var U4x=function(g,u){g=["result_channel",g.interactionMode===1?"2":"1","color_scheme",E_f(g.colorScheme),"show_close_option",g.showCloseOption];return etL(u,g)},olZ=function(g,u){if(u!==null&&_.gm(u,U8,2)){var q,Q=u==null?void 0:(q=_.o0(u,U8,2))==null?void 0:_.j$(q,2);
Q&&g.galLogger.JSC$19658_logErrorEvent(sEn(Q));return iq9(_.o0(u,U8,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 g.galService.getLink({serviceId:g.serviceId,sessionId:g.sessionId,consistencyKey:_.J2(u,1)}).then(function(L){L=JRb(L);g.galLogger.logInternalEvent(134);return{statusCode:1,link:L}})},Swt=function(g,u){u=z9t(u);
if(!_.gm(u,U8,2)&&_.J2(u,1)==="")throw g.galLogger.JSC$19658_logErrorEvent(5),Error("tk");return u},Z6p={getPostMessagePopup:function(g,u){return new rnZ(g,u)},
getRedirectStateFromUri:function(){return _.rc(_.X_(Z6p.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(g){_.maK(window.location,_.SO(g))},
createStreamlinedFlow:function(g,u){return new kZp(g.serviceId,g.sessionId,g.galService,u,g.colorScheme,g.showCloseOption,g.galLogger,g.interactionMode,g.redirectServiceUrl)}};var dRp=function(g){this.storage=(g=g?_.G8("GAL"):_.fsb("GAL"))?new _.jj(g):null};
dRp.prototype.getSession=function(g){if(this.storage!==null)try{var u=this.storage.get("SAVED_SESSION");if(u===void 0)return null;if(u.serviceId===g)return u}catch(q){}return null};var gaL=function(){};
_.A(gaL,bqf);gaL.prototype.logStateTransition=function(){};
gaL.prototype.logInternalEvent=function(){};
gaL.prototype.JSC$19658_logErrorEvent=function(){};var uCz=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(uCz,_.fv);uCz.prototype.getCompletionUrl=function(){return _.J2(this,15)};var iN=function(g,u,q,Q,L,E){this.serviceId=g;this.environment=u;this.sessionId=q;this.colorSchemeSelected=Q;this.colorThemeDisplayed=L;this.JSC$19732_transport=E;this.currentState=1};
_.A(iN,bqf);iN.prototype.logStateTransition=function(g){var u=q1f(this);u=_.Uk(u,3,this.currentState);u=_.Uk(u,1,g);this.currentState=g;g=PE9(1);this.dispatch(u,g)};
iN.prototype.logInternalEvent=function(g){g=PE9(g);this.dispatch(q1f(this),g)};
iN.prototype.JSC$19658_logErrorEvent=function(g){var u=q1f(this);u=_.Uk(u,1,10);g=PE9(g);this.dispatch(u,g)};
var q1f=function(g){var u=new uCz;u=_.Uk(u,1,g.currentState);u=_.EU(u,7,g.serviceId);var q,Q;var L=((q=window)==null?0:(Q=q.location)==null?0:Q.href)?_.X_(window.location.href).JSC$10339_domain_:"NO_PACKAGE_NAME";q=_.EU(u,8,L);q=_.Uk(q,6,g.environment);q=_.EU(q,5,"100");q=_.Uk(q,11,g.colorSchemeSelected);return _.Uk(q,12,g.colorThemeDisplayed)};
iN.prototype.dispatch=function(g,u){u===void 0&&(u=new _.UQ);var q=u;g=g.serialize();q=_.EU(q,8,g);_.jQ(q,12,this.sessionId);this.JSC$19732_transport.dispatch(u)};var Qch=function(g,u){this.loggerType=g;this.sessionIndex=u!=null?u:0},L_E;
Qch.prototype.create=function(g,u,q,Q,L){switch(this.loggerType){case 0:return new gaL;case 1:return L_E||(L_E=(new _.B8(555,this.sessionIndex.toString())).build()),new iN(g,u,q,Q,L,L_E);default:_.qE(this.loggerType,"unknown logger type")}};var lq9=[6,2,3,1],rRh=new Map([[4,1],[1,6],[2,2],[3,3]]),thK={statusCode:7,statusMessage:"Failed to create flow object"},Cdp=function(g,u,q,Q,L,E,y,v,J,f){this.serviceId=g;this.sessionId=u;this.config=q;this.galService=Q;this.JSC$19739_linkingSession=L;this.googleScopes=E;this.callerState=y;this.consentLanguageKeys=v;this.dynamicUrlParameters=J;this.partnerConfigMinReadTimestamp=f;this.currentFlow=0;Q=this.JSC$19739_linkingSession;L=new Set;_.gm(Q,cRh,1)&&L.add(1);_.gm(Q,dsp,2)&&_.gm(Q,ARK,6)&&L.add(2);
_.gm(Q,bJp,3)&&_.gm(Q,ARK,6)&&L.add(3);_.gm(Q,I8p,4)&&L.add(6);this.supportedFlows=L;Q=q.loggerType;L=q.clientEnvironment;a:{E=q.colorScheme;switch(E){case 0:E=1;break a;case 1:E=2;break a;case 2:E=3;break a;default:_.qE(E)}E=void 0}a:{y=q.colorScheme;y=m4n(y);switch(y){case 0:y=1;break a;case 1:y=2;break a;default:_.qE(y)}y=void 0}this.galLogger=(new Qch(Q,q.authUser)).create(g,L,u,E,y)},NEC=function(g){return new Promise(function(u){var q,Q,L,E,y,v,J,f,t,e;
return _.D(function(G){switch(G.nextAddress){case 1:q=Iqp(g.currentFlow,g.supportedFlows),Q=!1,L=new aLz(g.JSC$19739_linkingSession,g.config.dataUsageNoticeConfig);case 2:if(q===void 0){G.jumpTo(4);break}_.b8(G,5);var R=L,H=q,l=void 0;Q?H===1&&(l=R.displayInfoMap.get(2)):H===2||H===3?l=R.displayInfoMap.get(1):H===1&&(l=R.displayInfoMap.get(3));E=l?l:[];y=g.consentLanguageKeys;v=_.N(E);J=v.next();case 7:if(J.done)return g.currentFlow=q,G.yield(Grb(Ea9(g,y)),11);f=J.value;return G.yield(yRb(f,g.config.dataUsageNoticeConfig.uiAdapter,
g.config.colorScheme,g.galLogger),10);case 10:t=G.yieldResult;if(t.statusCode!==1)return Pot(g),u($Rh({statusCode:t.statusCode,statusMessage:t.statusMessage},g.callerState)),G.return();t.consentLanguageKeys!==void 0&&(y=t.consentLanguageKeys);J=v.next();G.jumpTo(7);break;case 11:e=G.yieldResult;if(e.statusCode!==10)return e.statusCode!==6&&Pot(g),e.statusCode!==1&&g.callerState!==void 0&&(e.callerState=g.callerState),u(e),G.return();_.Xx(G,6);break;case 5:_.rt(G);case 6:q=Iqp(g.currentFlow,g.supportedFlows);
Q=!0;G.jumpTo(2);break;case 4:Pot(g),u($Rh({statusCode:12,statusMessage:"Linking failed"},g.callerState)),_.Wx(G)}})})},Pot=function(g){FCE(g.serviceId,g.config.localStorage);
g.currentFlow=0},Vhf=function(g,u,q){g.currentFlow=u;
return R5p(Ea9(g,q)).then(function(Q){return Q.statusCode===10&&g.config.interactionMode===1&&Iqp(g.currentFlow,g.supportedFlows)!==void 0?NEC(g):Q})},Ea9=function(g,u){return{flowParams:{serviceId:g.serviceId,
sessionId:g.sessionId,galService:g.galService,galLogger:g.galLogger,interactionMode:g.config.interactionMode,redirectServiceUrl:g.config.redirectServiceUrl,colorScheme:g.config.colorScheme,consentLanguageKeys:u,dynamicUrlParameters:g.dynamicUrlParameters,showCloseOption:g.config.showCloseOption,partnerConfigMinReadTimestamp:g.partnerConfigMinReadTimestamp},currentFlow:g.currentFlow,config:g.config,session:g.JSC$19739_linkingSession,googleScopes:g.googleScopes,callerState:g.callerState}};var T$h=function(g,u){this.config=g;this.galService=u.getService();this.JSC$19752_galRepository=u.JSC$19770_galRepository};
T$h.prototype.getLink=function(g,u){return scp(this,g,u)};
var scp=function(g,u,q){return g.JSC$19752_galRepository.getLink({serviceId:u,scopes:void 0,capabilities:void 0,linkName:q}).then(function(Q){return{statusCode:1,link:Q}}).catch(function(Q){return{statusCode:WCb(Q.code),
statusMessage:Q.message}})};
T$h.prototype.deleteLink=function(g,u){return this.JSC$19752_galRepository.deleteLink(g,this.config.accountLinkingEntryPoint,u).then(function(){return{statusCode:1}}).catch(function(q){return{statusCode:WCb(q.code),
statusMessage:q.message}})};
T$h.prototype.startLinkingSession=function(g){var u=g.serviceId;var q=g.sessionId;return b6n({serviceId:u,sessionId:q!==void 0?q:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:g.loginHint,callerState:g.callerState,consentLanguageKeys:g.consentLanguageKeys,linkName:g.linkName,dynamicUrlParameters:g.dynamicUrlParameters,partnerConfigMinReadTimestamp:g.partnerConfigMinReadTimestamp})};var Cs=function(g,u,q,Q,L,E,y){this.apiKey=u;this.authUser=q;this.oauthToken=Q;this.bucket=L;this.locale=E;this.galSdkEventHandler=y;if(Q===void 0){if(u===void 0)throw Error("uk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new GZx(g)};
Cs.prototype.deleteLink=function(g){var u=g.serviceId;var q=g.sessionId;var Q=g.accountLinkingEntryPoint;var L=g.linkName;var E=this,y;return _.D(function(v){var J=(new c3).setHeader(E.getHeader(q));var f=y4L({serviceId:u,linkName:L});J=_.FV(J,2,f);y=_.Gw(J,3,Q);return v.return(E.makeRequest(E.galServiceClient.deleteLink,y,[1,3],[2,4]))})};
var x4p=function(g,u){var q=u.serviceId;var Q=u.sessionId;var L=u.dynamicUrlParameters;var E=u.redirectState;var y=u.consentLanguageKeys;var v=u.partnerConfigMinReadTimestamp;var J;return _.D(function(f){var t=(new AY).setHeader(g.getHeader(Q,L));t=_.I1(t,2,q);J=_.I1(t,4,E);y!==void 0&&_.I1(J,5,y);v!==void 0&&_.FV(J,6,v);return f.return(g.makeRequest(g.galServiceClient.JSC$19637_finishOAuth,J,[1,3],[2,4]))})};
Cs.prototype.getLink=function(g){var u=g.serviceId;var q=g.sessionId;var Q=g.scopes;var L=g.capabilities;var E=g.consistencyKey;var y=g.linkName;var v=this,J;return _.D(function(f){var t=(new Zu).setHeader(v.getHeader(q)),e=y4L({serviceId:u,scopes:Q,capabilities:L,linkName:y});J=_.FV(t,2,e);E!==void 0&&(t=jBh(),t=_.I1(t,2,E),_.FV(J,3,t));return f.return(v.makeRequest(v.galServiceClient.getLink,J,[1,3],[2,4]))})};
var w9p=function(g,u){var q=u.serviceId;var Q=u.sessionId;var L=u.googleScopes;var E=u.consistencyKey;var y;return _.D(function(v){var J=(new H3).setHeader(g.getHeader(Q));J=_.I1(J,2,q);var f=Array.from(L.values());J=_.Lv(J,3,f,_.Zb);f=jBh();f=_.I1(f,2,E);y=_.FV(J,4,f);return v.return(g.makeRequest(g.galServiceClient.JSC$19637_depositGoogleCredential,y,[1,3],[2,4]))})};
Cs.prototype.startLinkingSession=function(g){var u=g.serviceId;var q=g.sessionId;var Q=g.scopes;var L=g.capabilities;var E=g.loginHint;var y=g.supportedFlows;var v=g.completionUrl;var J=g.usePingPong;var f=g.twoWayLinking;var t=g.accountLinkingEntryPoint;var e=g.callerState;var G=g.consentLanguageKeys;var R=g.googleScopes;var H=g.dataUsageNoticeConfig;var l=g.linkName;var d=g.dynamicUrlParameters;var F=g.partnerConfigMinReadTimestamp;var V=this,z,O;return _.D(function(W){if(L!==void 0&&Q!==void 0)throw Error("qk");
var x=(new a8L).setHeader(V.getHeader(q,d));z=_.I1(x,2,u);l!==void 0&&_.I1(z,14,l);if(L!==void 0){x=z;var k=Array.from(L.values());_.Lv(x,5,k,_.Zb)}else Q!==void 0&&(x=z,k=Array.from(Q.values()),_.Lv(x,3,k,_.Zb));v!==void 0&&_.I1(z,6,v);J!==void 0&&_.vX(z,15,J);y!==void 0&&(x=z,k=Array.from(y.values()),_.Lv(x,4,k,_.vn));if(f!==void 0){if(f&&(!R||R.size===0))throw Error("vk");_.vX(z,8,f)}t!==void 0&&_.Gw(z,9,t);E!==void 0&&_.I1(z,13,E);e!==void 0&&(x=z,k=(new TextEncoder).encode(e),_.PT(x,12,_.m8(k,
!1),_.FW()));G!==void 0&&_.I1(z,16,G);F!==void 0&&_.FV(z,18,F);if(H!==void 0&&H.size>0||R!==void 0&&R.size>0)O=new msn,R!==void 0&&R.size>0&&(x=O,k=Array.from(R.values()),_.Lv(x,1,k,_.Zb)),H!==void 0&&(H.has(0)&&_.UEb(O,2,_.vn,1,_.Db),H.has(1)&&_.UEb(O,2,_.vn,2,_.Db)),_.FV(z,17,O);return W.return(V.makeRequest(V.galServiceClient.startLinkingSession,z,[1],[2]))})};
Cs.prototype.getMetadata=function(){var g=this,u,q;return _.D(function(Q){u={};g.useFpa?(u["X-Goog-Api-Key"]=g.apiKey,u["X-Goog-AuthUser"]=g.authUser!==void 0?g.authUser.toString():"0",(q=_.WXf([]))&&(u.Authorization=q)):u.Authorization="Bearer "+g.oauthToken;g.locale&&(u["accept-language"]=g.locale);return Q.return(u)})};
Cs.prototype.makeRequest=function(g,u,q,Q){var L=this,E;return _.D(function(y){if(y.nextAddress==1)return y.yield(L.getMetadata(),2);E=y.yieldResult;vaL(L,q);return y.return(g.bind(L.galServiceClient)(u,E).finally(function(){vaL(L,Q)}))})};
var vaL=function(g,u){g.galSdkEventHandler!==void 0&&u.forEach(function(q){g.galSdkEventHandler.onEvent(q)})};
Cs.prototype.getHeader=function(g,u){var q=new $h;g=_.PT(q,2,_.p9(g),0);g=_.Gw(g,5,3);u=_.Lv(g,8,u,_.Zb);this.bucket!==void 0&&_.I1(u,1,this.bucket);return u};
var y4L=function(g){var u=g.serviceId;var q=g.scopes;var Q=g.capabilities;g=g.linkName;if(Q!==void 0&&q!==void 0)throw Error("qk");var L=new pIL;u=_.I1(L,1,u);Q!==void 0?(q=Array.from(Q.values()),_.Lv(u,5,q,_.Zb)):q!==void 0&&(q=Array.from(q.values()),_.Lv(u,3,q,_.Zb));g!==void 0&&_.I1(u,6,g);return u};var h5p=function(g){this.galService=new Cs(g.alsDomain,g.apiKey,g.authUser,g.oauthToken,g.bucket,g.locale,g.galSdkEventHandler);this.JSC$19770_galRepository=new VWx(this.galService)};
h5p.prototype.getService=function(){return this.galService};var DGz=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(DGz,_.fv);var pdZ=function(g){var u=new DGz;return _.Uk(u,1,g)};
DGz.prototype.setErrorMessage=function(g){return _.EU(this,2,g)};var J4C=[0,_.h2,_.mE,_.h2];var bN=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(bN,_.fv);var jch=[0,[1,2,3],_.rm,[0,_.CO$,Mef,-1],_.rm,[0,fSb,-1],_.VE];var fVK=[0,_.b$,1,_.h2,_.mE,-1,1,_.WM,_.I6,_.h2,-1,jch];var M9h=[0,_.h2,[0,_.WM,_.I6,[0,_.mE]],_.dm,[0,_.h2,-1]];var Nn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Nn,_.fv);var t9t=[0,_.mE,_.h2,-2,_.b$,_.h2,_.b$,_.h2,-2,1,_.dm];var ePE=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(ePE,_.fv);var GL9=[0,_.b$];var $Gb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A($Gb,_.fv);var RPh=[0,_.h2,M9h,GL9,t9t,fVK];var mPL=_.lO($Gb,RPh);var wdb=[0,$4E];var hyh=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(hyh,_.fv);var c4f=[0,[1,3],GPK,_.h2,GPK];var TJh=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(TJh,_.fv);var HIz=[0,_.h2];var A4x=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(A4x,_.fv);var YOx=function(g){return _.t2(g,DGz,2,P3)},ZIn=function(g){var u=new A4x;
return _.mG(u,2,P3,g)},P3=[1,
2];var lVZ=[0,P3,_.rm,HIz,_.rm,J4C,_.XE,c4f,1,_.h2,wdb];var IVZ=[0,1,[0,[1,2,3],_.rm,[0],_.rm,[0,H8C],_.rm,[0,$4E]]];var iI9=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(iI9,_.fv);var bIf=function(g){var u=new iI9;return _.mG(u,3,Coh,g)},Coh=[2,
3];var dG9=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(dG9,_.fv);var F_f=function(g,u){return _.FV(g,2,u)},mGn=function(g,u){return _.FV(g,8,u)},aVK=function(g,u){return _.FV(g,3,u)};var V9h=[0,_.h2,lVZ,RPh,_.OQ,[0,[5,6,7],[0,_.h2,-2],[0,_.b$,_.h2,_.mE],[0,jch],[0,_.mE,_.h2,-1,_.Y2,_.h2],_.rm,[0,[0,_.b$],_.h2,-1],_.rm,[0,[3,4],_.h2,-1,_.rm,[0,[0,_.h2,_.dm]],_.rm,[0,[0,[0,[1,2,3],_.rm,[0],_.rm,[0],_.rm,[0]]]]],_.rm,[0,_.h2]],_.OQ,-1,[0,Coh,_.h2,_.rm,HIz,_.rm,J4C,_.XE,c4f,[0,$4E],IVZ]];var XdL=_.lO(dG9,V9h),r4L=_.iO(V9h);var W_H=function(){_.Lh.call(this)};
_.A(W_H,_.Lh);W_H.prototype.init=function(){};
new W_H;_.WK();var TEL=_.CT(["data-"]),hPp=_.CT(["aria-"]),Y1f=_.CT(["aria-"]),dH=function(g,u){this.isLatencyMeasurementExperiment=g===void 0?!1:g;this.enableDialogA11yFix=u===void 0?!1:u;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.k$M(_.Qq.location.href)},VkZ=function(g,u){g.onConsentPrimitiveShownCallback=u},OIp=function(g,u){return g.overriddenIframeLoadTimeout?g.overriddenIframeLoadTimeout:u!==void 0?u:5E3},rzZ=function(g){if(g.prewarmPromise!==void 0)return g.prewarmPromise;
g.prewarmPromise=new Promise(function(u,q){Fp(g,1);K_L(g,xGp(g,!0),BEh(g));g.iframe?g.prewarmChannel||zPf(g,g.iframe,u):q(Error("wk"))});
g.prewarmPromise.finally(function(){g.prewarmPromise=void 0});
return g.prewarmPromise};
dH.prototype.showPrimitive=function(){var g=this;if(this.consentPromise!==void 0)return this.consentPromise;var u=Date.now();nap(this,u);this.consentPromise=new Promise(function(q,Q){Fp(g,0,u);var L=g.isDarkTheme();g.isLatencyMeasurementExperiment||g.initialLoadingStrategy===1||g.initialLoadingStrategy===2||(g.loadingBar||(g.loadingBar=xRz(getComputedStyle(document.body).direction==="rtl",L),g.loadingBar.style.position="fixed",g.loadingBar.style.zIndex="15000"),document.body.appendChild(g.loadingBar));
K_L(g,xGp(g),BEh(g));g.iframe?g.channel||kLH(g,g.iframe,q,Q):(S1K(g),Q(Error("wk")))});
this.consentPromise.finally(function(){g.consentPromise=void 0});
return this.consentPromise};
var kLH=function(g,u,q,Q){var L,E;_.D(function(y){switch(y.nextAddress){case 1:Fp(g,3);L=!1;setTimeout(function(){if(!L){S1K(g);oa9(g);UGH(g);var v=pdZ(7).setErrorMessage("Timeout connecting to iframe");q(mGn(F_f(new dG9,ZIn(v)),bIf(v)))}},OIp(g,gK9(g)));
if(!g.prewarmPromise){y.jumpTo(2);break}_.b8(y,3);return y.yield(g.prewarmPromise,5);case 5:_.Xx(y,2);break;case 3:_.rt(y),E=pdZ(4).setErrorMessage("Error while prewarming."),q(mGn(F_f(new dG9,ZIn(E)),bIf(E)));case 2:g.prewarmChannel&&g.prewarmChannel.send(r4L(aVK(new dG9,g.consentPrimitiveRequest))),g.channel=_.x0({destination:g.win,iframe:u,origin:uKh(g),channelName:"cpw",onEstablished:function(){L=!0;S1K(g);g.isLatencyMeasurementExperiment||(g.JSC$19799_previousBodyOverflow=document.body.style.overflow,
g.JSC$19799_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,g.JSC$19799_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",g.enableDialogA11yFix&&window.addEventListener("blur",g.focusChangeListener));var v=g.iframe;v.style.bottom="0";v.style.position="fixed";v.style.right="0";v.style.border="none";v.style.left="0";v.style.top=
"0";v.style.zIndex="5000";v.style.pointerEvents="";v.style.visibility="";g.initialLoadingStrategy===2||g.initialLoadingStrategy===3?Fp(g,4):Fp(g,6);var J;(J=g.onConsentPrimitiveShownCallback)==null||J.call(g)},
onMessage:function(v){v=XdL(v.data);switch(_.j$(v,1)){case 1:oa9(g);var J=B$x(_.o0(v,_.jV,7));J&&(g.initialLoadingStrategy!==2&&g.initialLoadingStrategy!==3||Fp(g,6,J),Fp(g,5,J));if(J=B$x(_.o0(v,_.jV,6)))Fp(g,7,J),Fp(g,8);var f,t;((f=_.o0(v,A4x,2))==null?void 0:_.Ea(f,P3))!==0&&((t=_.o0(v,iI9,8))==null?void 0:_.Ea(t,Coh))!==0||Q(Error("xk"));q(v);break;case 2:UGH(g)}}}),_.Wx(y)}})},zPf=function(g,u,q){g.prewarmChannel=_.x0({destination:g.win,
iframe:u,origin:uKh(g),channelName:"pwcp",onEstablished:function(){Fp(g,2);q()}})},uKh=function(g){var u=_.WT(g.src).toString();
return u&&u.indexOf("://")<0&&u.indexOf("//")!==0?g.origin:_.k$M(u)},xGp=function(g,u){u=u===void 0?!1:u;
var q,Q=new Map([["origin",g.origin],["hl",(q=qvH(g))!=null?q:null]]);u&&Q.set("pw","1");u=_.N([["cpr",g.consentPrimitiveRequest.serialize()]]);for(q=u.next();!q.done;q=u.next()){var L=_.N(q.value);q=L.next().value;L=L.next().value;Q.set(q,L)}g.isDarkTheme()&&Q.set("color_scheme","dark");return _.Zi(g.src,Q)},S1K=function(g){g.isLatencyMeasurementExperiment||g.loadingBar&&document.body.removeChild(g.loadingBar)};
dH.prototype.getSrc=function(){var g=_.h1(this.origin),u;var q=(u=_.o0(this.consentPrimitiveRequest,ePE,3))==null?void 0:_.r6(u,1);u="consent.google.com";q=q?"/u/"+encodeURIComponent(q.toString()):"";(g==null?0:g.endsWith("youtube.com"))?u="consent.youtube.com":(g=g==null?void 0:g.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(u="consent.google."+((g[1]?"co.":"")+encodeURIComponent(g[2])));return _.r0("https://"+u+"/signedin"+q+"/landing")};
var K_L=function(g,u,q){g.iframe||(g.iframe=document.createElement("iframe"),g.iframe.style.width="100%",g.iframe.style.height="100%",q!==112496729&&(g.iframe.style.colorScheme="auto"),g.isLatencyMeasurementExperiment&&(g.iframe.style.display="none"),_.Px(g.iframe,u),g.iframe.setAttribute("jsname","C5o1O"),QgE(g.iframe),document.body.appendChild(g.iframe))},QgE=function(g){g.style.bottom="-200vh";
g.style.position="fixed";g.style.right="-200vw";g.style.border="";g.style.left="";g.style.top="";g.style.zIndex="";g.style.pointerEvents="none";g.style.visibility="hidden"},oa9=function(g){g.iframe&&(g.isLatencyMeasurementExperiment||(g.JSC$19799_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=g.JSC$19799_previousHtmlOverscroll),g.JSC$19799_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=g.JSC$19799_previousBodyOverscroll),g.JSC$19799_previousBodyOverflow!==
void 0&&(document.body.style.overflow=g.JSC$19799_previousBodyOverflow),g.enableDialogA11yFix&&L5z(g,!1)),QgE(g.iframe))};
dH.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(L5z(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var L5z=function(g,u){var q,Q,L=(q=g.iframe)==null?void 0:(Q=q.parentElement)==null?void 0:Q.children;if(L)for(q=0;q<L.length;q++)Q=L[q],Q!==g.iframe&&(u?(Q.hasAttribute("aria-hidden")&&_.Ma([_.cq(TEL)],Q,"data-old-aria-hidden",Q.getAttribute("aria-hidden")),_.Ma([_.cq(hPp)],Q,"aria-hidden","true")):(Q.removeAttribute("aria-hidden"),Q.hasAttribute("data-old-aria-hidden")&&(_.Ma([_.cq(Y1f)],Q,"aria-hidden",Q.getAttribute("data-old-aria-hidden")),Q.removeAttribute("data-old-aria-hidden"))))},Fp=function(g,
u,q){var Q;
(Q=g.latencyCallback)==null||Q.call(g,{latencyType:u,timestampEpochMillis:q!=null?q:Date.now()})};var EKH=function(g,u,q){dH.call(this,u,q===void 0?!1:q);this.consentPrimitiveRequest=g;g=qvH(this);_.sRK(g);this.src=this.getSrc();var Q;this.initialLoadingStrategy=(Q=_.o0(this.consentPrimitiveRequest,Nn,4))==null?void 0:_.j$(Q,4)},Pwx;
_.A(EKH,dH);var aBz=function(g){g={request:g,enableDialogA11yFix:!0};Pwx||(Pwx=new EKH(g.request,g.isLatencyMeasurementExperiment||_.j$(g.request,1)===2,g.enableDialogA11yFix));return Pwx},qvH=function(g){var u;
return(u=_.o0(g.consentPrimitiveRequest,Nn,4))==null?void 0:_.J2(u,1)},nap=function(g,u){if(!_.gm(g.consentPrimitiveRequest,bN,5)){var q=g.consentPrimitiveRequest,Q=new bN;
_.FV(q,5,Q)}var L;if((L=_.o0(g.consentPrimitiveRequest,bN,5))==null||_.TCa(L,8)==null){var E;(E=_.o0(g.consentPrimitiveRequest,bN,5))!=null&&_.jQ(E,8,u)}},BEh=function(g){var u;
return(u=_.o0(g.consentPrimitiveRequest,bN,5))==null?void 0:_.r6(u,1)};
EKH.prototype.isDarkTheme=function(){var g;return((g=_.o0(this.consentPrimitiveRequest,Nn,4))==null?void 0:_.j$(g,2))===2};
var gK9=function(g){var u;return((u=_.o0(g.consentPrimitiveRequest,Nn,4))==null?void 0:_.r6(u,5))||void 0},UGH=function(g){g.channel=void 0;
g.prewarmChannel=void 0;g.iframe&&(document.body.contains(g.iframe)&&document.body.removeChild(g.iframe),g.iframe=void 0);Pwx=void 0},W2Z=function(g){return dH.prototype.showPrimitive.call(g).then(function(u){return _.o0(u,A4x,2)})};for(var mo={},NgZ=(mo[64]="ma",mo[73]="ogb",mo[89]="cr",mo[21]="test",mo[0]="unkn",mo[137]="con",mo[155]="hl",mo[78]="yt",mo[171]="lp",mo[172]="ap",mo[177]="amo",mo[178]="pqe",mo[74]="gg",mo[1]="gm",mo[140]="am",mo[193]="sc",mo),sgZ=_.N(Object.keys(NgZ)),yap=sgZ.next();!yap.done;yap=sgZ.next());var vKh=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(vKh,_.fv);var D8L=[0,[2,3,4],_.h2,jxz,GPK,_.VE];var p2p=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(p2p,_.fv);var Jah=_.lO(p2p,[0,_.Y0,_.mE,_.h2,_.mE,_.h2,D8L]);var jgt=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(jgt,_.fv);jgt.prototype.getCommand=function(){return _.j$(this,1)};
var fxt=function(){var g=new jgt;return _.Gw(g,1,0)};var M3x=_.iO([0,_.Y0,_.mE,[0,_.h2,_.mE,-1]]);var t3H=new _.NP("s"),e8Z=new _.NP("t"),GTz=new _.NP("u"),$8x=new _.NP("v"),R8H=function(g,u,q){_.YF.call(this,t3H);this.mediaKey=g;this.photoUrl=u;this.photoSource=q};
_.A(R8H,_.YF);var w2L=function(){_.YF.call(this,e8Z)};
_.A(w2L,_.YF);var ca9=function(g){g=g===void 0?!1:g;_.YF.call(this,GTz);this.isError=g};
_.A(ca9,_.YF);var HKh=function(){_.YF.call(this,$8x)};
_.A(HKh,_.YF);var AaL=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,iKf=function(g){if(typeof g=="string"){if(g.charAt(0)==".")return ZKn(g.substr(1));if(g.charAt(0)=="["){var u=AaL.exec(g);g=g.indexOf("=")==-1?void 0:u[3];return lxp(u[1],g)}return IxL(g)}return g},ZKn=function(g){return function(u){return u.getAttribute&&_.dJ(u,g)}},lxp=function(g,u){return function(q){return u!==void 0?q.getAttribute&&q.getAttribute(g)==u:q.hasAttribute&&q.hasAttribute(g)}},IxL=function(g){g=g.toUpperCase();
return function(u){return(u=u.tagName)&&u.toUpperCase()==g}},Cwf=function(){return!0};var al=function(g,u){this.JSC$19827_key_=g;this.JSC$19827_value_=u},bKn=function(g){throw Error("yk`"+g.JSC$19827_key_);
},d8h=function(g,u){return new TypeError("zk`"+u+"`"+g.JSC$19827_key_+"`"+g.JSC$19827_value_+"`"+typeof g.JSC$19827_value_)};
al.prototype.string=function(g){return arguments.length==0?F5h(this):m89(this,g)};
var m89=function(g,u){var q;return(q=axp(g))!=null?q:u},F5h=function(g){var u=axp(g);
u===null&&bKn(g);return u},axp=function(g){var u=g.JSC$19827_value_;
if(u==null)return null;if(typeof u==="string")return u;throw d8h(g,"string");};
al.prototype.bool=function(g){if(arguments.length==0){var u=this.optionalBool();u===null&&bKn(this)}else{var q;u=(q=this.optionalBool())!=null?q:g}return u};
al.prototype.optionalBool=function(){var g=this.JSC$19827_value_;if(g==null)return null;if(typeof g==="boolean")return g;if(typeof g==="string"){g=g.toLowerCase();if(g==="true"||g==="1")return!0;if(g==="false"||g==="0")return!1}throw d8h(this,"boolean");};
al.prototype.number=function(g){if(arguments.length==0){var u=V3p(this);u===null&&bKn(this)}else u=X2C(this,g);return u};
var X2C=function(g,u){var q;return(q=V3p(g))!=null?q:u},V3p=function(g){var u=g.JSC$19827_value_;
if(u==null)return null;if(typeof u==="number")return u;if(typeof u==="string"){var q=Number(u);if(!isNaN(q)&&(q!==0||u.trim().length!==0))return q}throw d8h(g,"number");};
al.prototype.toString=function(){return F5h(this)};
al.prototype.enum=function(g,u){var q=!0,Q=void 0,L;for(L in g){var E=g[L];q&&(q=!1,Q=typeof E==="number"?X2C(this,u):m89(this,u));if(E==Q)return Q}JSON.stringify(g);return Q};
al.prototype.array=function(g){if(arguments.length==0){var u=raf(this);u===null&&bKn(this);return u}u=raf(this);return u==null?g:u};
var raf=function(g){var u=g.JSC$19827_value_;if(u==null)return null;Array.isArray(u)||(typeof u!=="string"?u=[u]:(u=u.trim(),u=u==""?[]:u.split(",").map(function(q){return q.trim()})));
return W5b(g,u)},W5b=function(g,u){var q=g.JSC$19827_key_+"[";
return Array.from(u,function(Q,L){return new al(q+L+"]",Q)})};
al.prototype.object=function(g){var u=this.JSC$19827_value_;if(u==null)return g===void 0&&bKn(this),g;if(typeof u==="object"&&u.constructor===Object){g={};var q=this.JSC$19827_key_+".",Q;for(Q in u)g[Q]=new al(q+Q,u[Q]);return g}throw d8h(this,"object");};var VS=function(g){this.list_=Tgh(g)},Tgh=function(g){if(g instanceof VS)g=g.list_;
else if(g[0]instanceof VS){for(var u=new Set,q=0;q<g.length;q++)for(var Q=_.N(g[q].list_),L=Q.next();!L.done;L=Q.next())u.add(L.value);g=u}return[].concat(_.na(g))};
_.P=VS.prototype;_.P.each=function(g,u,q){((q===void 0?0:q)?ygZ:_.Tv)(this.list_,g,u);return this};
_.P.size=function(){return this.list_.length};
_.P.isEmpty=function(){return this.list_.length===0};
_.P.get=function(g){return this.list_[g]||null};
_.P.el=function(){return this.list_[0]||null};
_.P.map=function(g,u){return _.Jk(this.list_,g,u)};
_.P.equals=function(g){return this===g||_.SK(this.list_,g.list_)};
_.P.first=function(){return this.list_.length==0?null:new Xp(this.list_[0])};
_.P.last=function(){return this.list_.length==0?null:new Xp(this.list_[this.list_.length-1])};
_.P.find=function(g){var u=[];this.each(function(q){q=q.querySelectorAll(String(g));for(var Q=0;Q<q.length;Q++)u.push(q[Q])});
return new VS(u)};
_.P.parent=function(){var g=[];this.each(function(u){(u=u.parentElement||null)&&!_.WS(g,u)&&g.push(u)});
return new VS(g)};
_.P.children=function(){var g=[];this.each(function(u){u=_.HH(u);for(var q=0;q<u.length;q++)g.push(u[q])});
return new VS(g)};
_.P.filter=function(g){g=_.Oc(this.list_,iKf(g));return new VS(g)};
_.P.closest=function(g){var u=[],q=iKf(g),Q=function(L){return _.BD(L)&&q(L)};
this.each(function(L){(L=_.ep(L,Q,!0))&&!_.WS(u,L)&&u.push(L)});
return new VS(u)};
_.P.next=function(g){return h8K(this,_.aWa,g)};
_.P.prev=function(g){return h8K(this,wNL,g)};
var h8K=function(g,u,q){var Q=[];var L=q?iKf(q):Cwf;g.each(function(E){(E=u(E))&&L(E)&&Q.push(E)});
return new VS(Q)};
VS.prototype.setClass=function(g){return this.each(function(u){_.bJ(u,g)})};
var Yv9=function(g,u){return g.each(function(q){_.Za(q,u)})},OK9=function(g,u){return g.each(function(q){_.Ao(q,u)})};
VS.prototype.toggleClass=function(g,u){return u===!0?Yv9(this,g):u===!1?OK9(this,g):this.each(function(q){_.dJ(q,g)?_.Ao(q,g):_.Za(q,g)})};
VS.prototype.setText=function(g){return this.each(function(u){_.Ay(u,g)})};
var K5f=function(g){g.each(function(u){u.removeAttribute("aria-hidden")})};
VS.prototype.getStyle=function(g){if(this.list_.length>0){var u=this.list_[0],q=u.style[_.oM(g)];return typeof q!=="undefined"?q:u.style[_.zvi(u,g)]||""}};
VS.prototype.getData=function(g){if(this.list_.length===0)return new al(g,null);var u=GBh(this.list_[0],g);return new al(g,u)};
VS.prototype.focus=function(g){try{g?this.el().focus(g):this.el().focus()}catch(u){}return this};
VS.prototype.click=function(){var g=_.fH(this.el());if(g.createEvent){var u=g.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,g.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(u)}else g=g.createEventObject(),g.clientX=0,g.clientY=0,g.screenX=0,g.screenY=0,g.altKey=!1,g.ctrlKey=!1,g.shiftKey=!1,g.button=0,this.el().fireEvent("onclick",g)};
var rH=function(g,u,q,Q){function L(v,J,f){var t=J;J&&J.parentNode&&(t=J.cloneNode(!0));v(t,f)}
Q=Q===void 0?!1:Q;if(g.list_.length==1){var E=g.list_[0],y=function(v){return u(v,E)};
q instanceof VS?q.each(y,void 0,Q):Array.isArray(q)?(Q?ygZ:_.Tv)(q,y):y(q);return g}return g.each(function(v){q instanceof VS?q.each(function(J){L(u,J,v)}):Array.isArray(q)?_.Tv(q,function(J){L(u,J,v)}):L(u,q,v)})};
_.P=VS.prototype;_.P.append=function(g){return rH(this,function(u,q){u&&q.appendChild(u)},g)};
_.P.appendTo=function(g){(new VS([g])).append(this);return this};
_.P.remove=function(){return rH(this,function(g,u){_.UU(u)},null)};
_.P.empty=function(){return rH(this,function(g,u){_.RA(u)},null)};
_.P.after=function(g,u){return rH(this,function(q,Q){q&&_.cH(q,Q)},g,!(u===void 0||u))};
_.P.before=function(g){return rH(this,function(u,q){u&&_.wX(u,q)},g)};
_.P.replaceWith=function(g){return rH(this,function(u,q){u&&_.diX(u,q)},g)};
_.P.toggle=function(g){return this.each(function(u){_.TQ(u,g)})};
_.P.show=function(){return this.toggle(!0)};
_.P.hide=function(){return this.toggle(!1)};
_.P.trigger=function(g,u,q,Q){return x8p(this,g,u,q,Q)};
var x8p=function(g,u,q,Q,L){return g.each(function(E){_.wvf(_.fH(E)).triggerWizEventInternal(E,u,q,Q,L)})},Xp=function(g,u){g instanceof VS&&(u=g.list_,g=null);
this.list_=Tgh(g!=null?[g]:u)};
_.TK(Xp,VS);_.P=Xp.prototype;_.P.children=function(){return new VS(Array.prototype.slice.call(_.HH(this.list_[0])))};
_.P.each=function(g,u){g.call(u,this.list_[0],0);return this};
_.P.size=function(){return 1};
_.P.el=function(){return this.list_[0]};
_.P.first=function(){return this};var W3=function(g,u){u=u===void 0?window:u;this.hostId=g;this.win=u;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$19838_previousHtmlOverscroll=this.JSC$19838_previousBodyOverscroll=this.JSC$19838_previousBodyOverflow="";this.eventTarget=new _.A5;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},nKE=function(g){var u=
BgC(BgC(BgC(new z8L(78),"po"),"hppp"),"hhc");
u.authUser=Number(_.FR("SESSION_INDEX","0"));u.colorScheme=g;return u};
W3.prototype.getOrigin=function(){return this.origin?this.origin:_.Wl(_.rJ(_.Xy(new _.Ir,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
W3.prototype.getTargetOrigin=function(){return _.Wl(_.rJ(_.Xy(new _.Ir,this.scheme),this.domain),this.port)};
W3.prototype.preloadIframe=function(g){var u=this;if(this.iframeLoadPromise===void 0){var q=document.createElement("iframe");this.iframe=q;g9h(q,g);this.iframeLoadPromise=new Promise(function(Q,L){var E=!1,y=function(v){v.stopPropagation();q.removeEventListener("error",y);q.removeEventListener("securitypolicyviolation",y);L(Error("Ak",{cause:v}))};
q.addEventListener("error",y);q.addEventListener("securitypolicyviolation",y);setTimeout(function(){E||L(Error("Bk"))},3E4);
kTh(u,q,function(){E=!0;q.removeEventListener("error",y);q.removeEventListener("securitypolicyviolation",y);Q()})});
Svn(this);g=this.getTargetOrigin().toString();q.setAttribute("allow","camera "+g+"; display-capture "+g);this.parentElement.appendChild(q)}return this.iframeLoadPromise};
var g3f=function(g,u){var q,Q;return _.D(function(L){if(L.nextAddress==1)return q=xRz(getComputedStyle(g.parentElement).direction==="rtl"),g.parentElement.appendChild(q),document.activeElement instanceof HTMLElement&&(g.elementToFocusAfterClose=document.activeElement),_.b8(L,2),L.yield(g.preloadIframe(u),4);if(L.nextAddress!=2){g.parentElement.removeChild(q);g.JSC$19838_previousBodyOverflow=g.parentElement.style.overflow;g.JSC$19838_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
g.JSC$19838_previousBodyOverscroll=g.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";g.parentElement.style.overscrollBehavior="contain";g.parentElement.style.overflow="hidden";var E=g.iframe;E.style.bottom="0";E.style.border="none";E.style.height="100%";E.style.left="0";E.style.position=g.iframePosition;E.style.right="0";E.style.top="0";E.style.width="100%";E.style.zIndex="2202";E.setAttribute("aria-hidden","false");E.setAttribute("aria-modal","true");
g.opened=!0;oKE(g);return _.Xx(L,0)}Q=_.rt(L);g.parentElement.removeChild(q);SxE(g.isDarkTheme());U8n(g,!1);throw Error("Ck",{cause:Q});})},U8n=function(g,u){u=u===void 0?!0:u;
g.iframe!==void 0&&(u6z(g),document.documentElement.style.overscrollBehavior=g.JSC$19838_previousHtmlOverscroll,g.parentElement.style.overscrollBehavior=g.JSC$19838_previousBodyOverscroll,g.parentElement.style.overflow=g.JSC$19838_previousBodyOverflow,g.elementToFocusAfterClose!==void 0&&(g.elementToFocusAfterClose.focus(),g.elementToFocusAfterClose=void 0),u?Svn(g):(g.parentElement.removeChild(g.iframe),g.iframe=void 0,g.iframeLoadPromise=void 0,g.mainChannel=void 0),g.opened=!1)},u6z=function(g){g.backgroundElementsAriaHiddenIsNull&&
(K5f(g.backgroundElementsAriaHiddenIsNull),g.backgroundElementsAriaHiddenIsNull=void 0);
g.backgroundElementsAriaHiddenIsFalse&&(g.backgroundElementsAriaHiddenIsFalse.each(function(u){u.setAttribute("aria-hidden","false")}),g.backgroundElementsAriaHiddenIsFalse=void 0);
g.backgroundElementsWithoutInert&&(g.backgroundElementsWithoutInert.each(function(u){u.removeAttribute("inert")}),g.backgroundElementsWithoutInert=void 0)},oKE=function(g){g.backgroundElementsAriaHiddenIsNull=(new Xp(g.iframe.parentElement)).children().filter(function(u){return u.getAttribute("aria-hidden")===null&&u!==g.iframe});
g.backgroundElementsAriaHiddenIsNull.each(function(u){u.setAttribute("aria-hidden","true")});
g.backgroundElementsAriaHiddenIsFalse=(new Xp(g.iframe.parentElement)).children().filter(function(u){return u.getAttribute("aria-hidden")==="false"&&u!==g.iframe});
g.backgroundElementsAriaHiddenIsFalse.each(function(u){u.setAttribute("aria-hidden","true")});
g.backgroundElementsWithoutInert=(new Xp(g.iframe.parentElement)).children().filter(function(u){return!u.hasAttribute("inert")&&u!==g.iframe});
g.backgroundElementsWithoutInert.each(function(u){u.setAttribute("inert","true")})},Svn=function(g){g=g.iframe;
g.style.bottom="-1000px";g.style.position="fixed";g.style.right="-1000px";g.style.border="";g.style.height="";g.style.left="";g.style.top="";g.style.width="";g.style.zIndex="";g.setAttribute("aria-hidden","true");g.setAttribute("aria-modal","false")};
W3.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var z8L=function(g,u){W3.call(this,NgZ[g],u);this.options=[];this.style=""};
_.A(z8L,W3);var q6x=function(g){g.style="youtube";return g},Qzb=function(g,u){g.eventTarget.listen(GTz,u);
return g},L4n=function(g,u){g.eventTarget.listen(t3H,u);
return g},BgC=function(g,u){g.options.push(u);
return g},E39=function(g){var u=[g.getOrigin()];
g.ancestorOrigins&&u.push.apply(u,_.na(g.ancestorOrigins));var q=new _.Ir(g.win.location.href),Q=g.startUrl?g.startUrl:g.options.includes("po")?"profile-picture/art":"profile-picture";u=y$p(_.TA(g.getTargetOrigin(),Q),"origin",u);g.startUrl&&_.WD(u,"startPath",g.startUrl);g.authUser>0&&_.WD(u,"authuser",g.authUser);g.pageId!==void 0&&_.WD(u,"pageId",g.pageId);_.WD(u,"hostId",g.hostId);g.jsMode!==void 0&&_.WD(u,"jsmode",g.jsMode);g.rectangleRatio!==void 0&&_.WD(u,"rectangleRatio",g.rectangleRatio);
g.options.length>0&&_.WD(u,"opts",g.options.join(","));try{for(var L=_.N(["utm_source","utm_medium","utm_campaign","utm_content"]),E=L.next();!E.done;E=L.next()){var y=E.value;_.rc(q,y)&&_.WD(u,y,_.rc(q,y))}var v,J=(v=g.hl)!=null?v:_.rc(q,"hl");J!==void 0&&_.WD(u,"hl",J)}catch(f){if(!(f instanceof URIError))throw f;}g.colorScheme&&_.WD(u,"theme",g.colorScheme);g.style&&_.WD(u,"style",g.style);return u},PTx=function(g,u){g.mainChannel=_.x0({destination:g.win,
iframe:u,origin:g.getTargetOrigin().toString(),channelName:"ow",onMessage:function(q){q=Jah(q.data);if(u===g.iframe)switch(_.j$(q,1)){case 1:g.eventTarget.dispatchEvent(new ca9);U8n(g);break;case 2:g.eventTarget.dispatchEvent(new R8H(_.J2(q,4),_.J2(q,2),_.j$(q,5),_.o0(q,vKh,6)));break;case 0:var Q;g.eventTarget.dispatchEvent(new w2L(_.J2(q,2),(Q=_.j$(q,3))!=null?Q:0));break;case 3:g.eventTarget.dispatchEvent(new ca9(!0));U8n(g,!1);break;case 4:g.eventTarget.dispatchEvent(new HKh)}}})},kTh=function(g,
u,q){_.x0({destination:g.win,
iframe:u,origin:_.Wl(_.rJ(_.Xy(new _.Ir,g.scheme),g.domain),g.port).toString(),channelName:"owi",onMessage:function(Q){u===g.iframe&&(q!==void 0&&q(),PTx(g,u),g.opened&&g.mainChannel.send(M3x(fxt())),Q.reply(),kTh(g,u))}})};
z8L.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?W3.prototype.preloadIframe.call(this,E39(this).toString()):this.iframeLoadPromise};
z8L.prototype.openPicker=function(g){var u=this;return _.D(function(q){if(q.nextAddress==1)return u.startUrl=g?g:u.options.includes("po")?"profile-picture/art":"profile-picture",q.yield(g3f(u,E39(u).toString()),2);if(u.mainChannel){var Q=u.mainChannel,L=Q.send;var E=fxt();E=_.EU(E,2,u.startUrl);L.call(Q,M3x(E))}_.Wx(q)})};var Nxx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Nxx,_.fv);_.P=Nxx.prototype;_.P.getSize=function(){return Mn(this,1)};
_.P.setSize=function(g){return _.e$(this,1,g)};
_.P.getWidth=function(){return Mn(this,12)};
_.P.getHeight=function(){return Mn(this,13)};
_.P.setCenterCrop=function(g){return _.OU(this,20,g)};
_.P.getHtml=function(){return _.vM(this,4)};
_.P.getToken=function(){return _.Sp(this,24)};
_.P.setToken=function(g){return _.EU(this,24,g)};
_.P.getBackgroundColor=function(){return Mn(this,87)};
_.P.hasBackgroundColor=function(){return _.Jh(_.Uc(this,87))!=null};
_.P.getStoryboardLevel=function(){return Mn(this,109)};gQ.prototype.set=function(g,u){szz(this,g,u,!1)};
gQ.prototype.add=function(g,u){szz(this,g,u,!0)};
var szz=function(g,u,q,Q){for(var L=0;L<u.length;L++){var E=u.charAt(L);g.childNodes_[E]||(g.childNodes_[E]=new gQ);g=g.childNodes_[E]}if(Q&&g.JSC$19846_value_!==void 0)throw Error("Dk`"+u);g.JSC$19846_value_=q},yXK=function(g,u){for(var q=0;q<u.length;q++)if(g=g.childNodes_[u.charAt(q)],!g)return;
return g};
gQ.prototype.get=function(g){return(g=yXK(this,g))?g.JSC$19846_value_:void 0};
gQ.prototype.getValues=function(){var g=[];v3h(this,g);return g};
var v3h=function(g,u){g.JSC$19846_value_!==void 0&&u.push(g.JSC$19846_value_);for(var q in g.childNodes_)v3h(g.childNodes_[q],u)};
gQ.prototype.getKeys=function(g){var u=[];if(g){for(var q=this,Q=0;Q<g.length;Q++){var L=g.charAt(Q);if(!q.childNodes_[L])return[];q=q.childNodes_[L]}DJZ(q,g,u)}else DJZ(this,"",u);return u};
var DJZ=function(g,u,q){g.JSC$19846_value_!==void 0&&q.push(u);for(var Q in g.childNodes_)DJZ(g.childNodes_[Q],u+Q,q)};
_.P=gQ.prototype;_.P.containsKey=function(g){return this.get(g)!==void 0};
_.P.containsValue=function(g){if(this.JSC$19846_value_===g)return!0;for(var u in this.childNodes_)if(this.childNodes_[u].containsValue(g))return!0;return!1};
_.P.clear=function(){this.childNodes_={};this.JSC$19846_value_=void 0};
_.P.remove=function(g){for(var u=this,q=[],Q=0;Q<g.length;Q++){var L=g.charAt(Q);if(!u.childNodes_[L])throw Error("Ek`"+g);q.push([u,L]);u=u.childNodes_[L]}g=u.JSC$19846_value_;for(delete u.JSC$19846_value_;q.length>0;)if(Q=q.pop(),u=Q[0],Q=Q[1],u.childNodes_[Q].isEmpty())delete u.childNodes_[Q];else break;return g};
_.P.clone=function(){return new gQ(this)};
_.P.getCount=function(){return Am9(this.getValues())};
_.P.isEmpty=function(){return this.JSC$19846_value_===void 0&&_.pH.isEmpty(this.childNodes_)};var E9h=function(){if(!pOE){var g=pOE=new gQ,u;for(u in JXz)g.add(u,JXz[u])}},pOE,Td=function(g,u){this.types=g;
this.setters=u},JXz={a:new Td([3,
0],[function(g,u){_.OU(g,21,u)},
function(g,u){_.e$(g,56,u)}]),
al:new Td([3],[function(g,u){_.OU(g,74,u)}]),
b:new Td([3,0],[function(g,u){_.OU(g,23,u)},
function(g,u){_.e$(g,38,u)}]),
ba:new Td([0],[function(g,u){_.e$(g,85,u)}]),
bc:new Td([0],[function(g,u){_.e$(g,87,u)}]),
br:new Td([0],[function(g,u){_.e$(g,86,u)}]),
c:new Td([3,0],[function(g,u){_.OU(g,2,u)},
function(g,u){_.e$(g,39,u)}]),
cc:new Td([3],[function(g,u){_.OU(g,51,u)}]),
ci:new Td([3],[function(g,u){_.OU(g,32,u)}]),
ckm:new Td([3],[function(g,u){_.OU(g,104,u)}]),
cp:new Td([0],[function(g,u){_.e$(g,92,u)}]),
cr:new Td([3],[function(g,u){_.OU(g,108,u)}]),
cv:new Td([0],[function(g,u){_.e$(g,94,u)}]),
d:new Td([3],[function(g,u){_.OU(g,3,u)}]),
dc:new Td([5],[function(g,u){_.EU(g,99,u)}]),
df:new Td([3],[function(g,u){_.OU(g,80,u)}]),
dv:new Td([3],[function(g,u){_.OU(g,90,u)}]),
e:new Td([0],[function(g,u){_.e$(g,15,u)}]),
em:new Td([0],[function(g,u){_.e$(g,107,u)}]),
f:new Td([4],[function(g,u){_.EU(g,16,u)}]),
fg:new Td([3],[function(g,u){_.OU(g,34,u)}]),
fh:new Td([3],[function(g,u){_.OU(g,30,u)}]),
fm:new Td([3],[function(g,u){_.OU(g,84,u)}]),
fo:new Td([2],[function(g,u){_.gN(g,79,_.Qp(u))}]),
ft:new Td([3],[function(g,u){_.OU(g,50,u)}]),
fv:new Td([3],[function(g,u){_.OU(g,31,u)}]),
g:new Td([3],[function(g,u){_.OU(g,14,u)}]),
gce:new Td([4],[function(g,u){_.EU(g,112,u)}]),
gd:new Td([3],[function(g,u){_.OU(g,83,u)}]),
gm:new Td([3],[function(g,u){_.OU(g,105,u)}]),
h:new Td([3,0],[function(g,u){_.OU(g,4,u)},
function(g,u){_.e$(g,13,u)}]),
i:new Td([3],[function(g,u){_.OU(g,22,u)}]),
ic:new Td([0],[function(g,u){_.e$(g,71,u)}]),
id:new Td([3],[function(g,u){_.OU(g,70,u)}]),
il:new Td([3],[function(g,u){_.OU(g,96,u)}]),
ip:new Td([3],[function(g,u){_.OU(g,54,u)}]),
iv:new Td([0],[function(g,u){_.jQ(g,75,u)}]),
j:new Td([1],[function(g,u){u=u==null?u:JgZ(u);_.gN(g,29,u)}]),
k:new Td([3,0],[function(g,u){_.OU(g,17,u)},
function(g,u){_.e$(g,42,u)}]),
l:new Td([0],[function(g,u){_.e$(g,44,u)}]),
lf:new Td([3],[function(g,u){_.OU(g,65,u)}]),
lo:new Td([3],[function(g,u){_.OU(g,97,u)}]),
m:new Td([0],[function(g,u){_.e$(g,63,u)}]),
md:new Td([3],[function(g,u){_.OU(g,91,u)}]),
mm:new Td([4],[function(g,u){_.EU(g,81,u)}]),
mo:new Td([3],[function(g,u){_.OU(g,73,u)}]),
mp:new Td([0],[function(g,u){_.e$(g,115,u)}]),
mv:new Td([3],[function(g,u){_.OU(g,66,u)}]),
n:new Td([3],[function(g,u){g.setCenterCrop(u)}]),
nc:new Td([3],[function(g,u){_.OU(g,55,u)}]),
nd:new Td([3],[function(g,u){_.OU(g,53,u)}]),
ng:new Td([3],[function(g,u){_.OU(g,95,u)}]),
ngm:new Td([3],[function(g,u){_.OU(g,106,u)}]),
no:new Td([3],[function(g,u){_.OU(g,37,u)}]),
ns:new Td([3],[function(g,u){_.OU(g,40,u)}]),
nt0:new Td([4],[function(g,u){_.EU(g,36,u)}]),
ntm:new Td([3],[function(g,u){_.OU(g,114,u)}]),
nu:new Td([3],[function(g,u){_.OU(g,46,u)}]),
nw:new Td([3],[function(g,u){_.OU(g,48,u)}]),
o:new Td([1,3],[function(g,u){u=u==null?u:JgZ(u);_.gN(g,7,u)},
function(g,u){_.OU(g,27,u)}]),
p:new Td([3,0],[function(g,u){_.OU(g,19,u)},
function(g,u){_.e$(g,43,u)}]),
pa:new Td([3],[function(g,u){_.OU(g,61,u)}]),
pc:new Td([0],[function(g,u){_.e$(g,88,u)}]),
pd:new Td([3],[function(g,u){_.OU(g,60,u)}]),
pf:new Td([3],[function(g,u){_.OU(g,67,u)}]),
pg:new Td([3],[function(g,u){_.OU(g,72,u)}]),
pi:new Td([2],[function(g,u){_.gN(g,76,_.Qp(u))}]),
pp:new Td([3],[function(g,u){_.OU(g,52,u)}]),
pt:new Td([4],[function(g,u){_.EU(g,111,u)}]),
q:new Td([4],[function(g,u){_.EU(g,28,u)}]),
r:new Td([3,0],[function(g,u){_.OU(g,6,u)},
function(g,u){_.e$(g,26,u)}]),
ra:new Td([3],[function(g,u){_.OU(g,103,u)}]),
rf:new Td([3],[function(g,u){_.OU(g,100,u)}]),
rg:new Td([3],[function(g,u){_.OU(g,59,u)}]),
rh:new Td([3],[function(g,u){_.OU(g,49,u)}]),
rj:new Td([3],[function(g,u){_.OU(g,57,u)}]),
ro:new Td([2],[function(g,u){_.gN(g,78,_.Qp(u))}]),
rp:new Td([3],[function(g,u){_.OU(g,58,u)}]),
rw:new Td([3],[function(g,u){_.OU(g,35,u)}]),
rwa:new Td([3],[function(g,u){_.OU(g,64,u)}]),
rwu:new Td([3],[function(g,u){_.OU(g,41,u)}]),
s:new Td([3,0],[function(g,u){_.OU(g,33,u)},
function(g,u){g.setSize(u)}]),
sb:new Td([0],[function(g,u){_.e$(g,110,u)}]),
sc:new Td([0],[function(g,u){_.e$(g,89,u)}]),
sg:new Td([3],[function(g,u){_.OU(g,82,u)}]),
sl:new Td([0],[function(g,u){_.e$(g,109,u)}]),
sm:new Td([3],[function(g,u){_.OU(g,93,u)}]),
t:new Td([4],[function(g,u){g.setToken(u)}]),
tm:new Td([3],[function(g,u){_.OU(g,113,u)}]),
u:new Td([3],[function(g,u){_.OU(g,18,u)}]),
ut:new Td([3],[function(g,u){_.OU(g,45,u)}]),
v:new Td([0],[function(g,u){_.e$(g,62,u)}]),
vb:new Td([0],[function(g,u){_.jQ(g,68,u)}]),
vf:new Td([4],[function(g,u){_.EU(g,102,u)}]),
vl:new Td([0],[function(g,u){_.jQ(g,69,u)}]),
vm:new Td([3],[function(g,u){_.OU(g,98,u)}]),
w:new Td([0],[function(g,u){_.e$(g,12,u)}]),
x:new Td([0],[function(g,u){_.e$(g,9,u)}]),
y:new Td([0],[function(g,u){_.e$(g,10,u)}]),
ya:new Td([2],[function(g,u){_.gN(g,77,_.Qp(u))}]),
z:new Td([0],[function(g,u){_.e$(g,11,u)}])};
E9h.prototype.parse=function(g){var u=new Nxx,q=new Nxx;if(g=="")g=!0;else{g=g.split("-");for(var Q=!0,L=0;L<g.length;L++){var E=g[L];if(E.length==0)Q=!1;else{var y=E,v=!1;var J=y;var f=y.charAt(0);f!=f.toLowerCase()&&(v=!0,J=y.charAt(0).toLowerCase()+y.substring(1));var t=pOE;for(f=1;f<=J.length;++f){var e=t,G=J.substring(0,f);if(G.length==0?e.isEmpty():!yXK(e,G))break}J=f==1?null:(J=t.get(J.substring(0,f-1)))?{option:y.substring(0,f-1),value:y.substring(f-1),signed:v,attributes:J}:null;if(J){y=
[];v=[];f=!1;for(t=0;t<J.attributes.types.length;t++){e=J.attributes.types[t];var R=J.value;G=L;if(J.signed&&e==1)for(var H=R.length;H<12&&G<g.length-1;)R+="-"+g[G+1],H=R.length,++G;else if(e==2)for(;G<g.length-1&&g[G+1].match(/^[\d\.]/);)R+="-"+g[G+1],++G;H=J.attributes.setters[t];R=jzn(this,e)(J.option,R,u,q,H);if(R===null){f=!0;L=G;break}else y.push(e),v.push(R)}if(!f)for(J=0;J<v.length;J++)t=y[J],R=v[J],fCZ(this,t)(E,R);Q=Q&&f}else Q=!1}}g=Q}return new MCh(u,q,g)};
var tCt=function(g,u,q,Q,L,E){L(q,u);g=g.charAt(0);E=E(g==g.toUpperCase());L(Q,E)};
_.P=E9h.prototype;_.P.parseAndSetIntOption_=function(g,u,q,Q,L){if(u=="")return 0;isFinite(u)&&(u=String(u));u=typeof u==="string"?/^\s*-?0x/i.test(u)?parseInt(u,16):parseInt(u,10):NaN;if(isNaN(u))return 1;tCt(g,u,q,Q,L,Number);return null};
_.P.logIntParseError_=function(){};
_.P.parseAndSetFloatOption_=function(g,u,q,Q,L){if(u=="")return 0;var E=Number(u);u=E==0&&_.vS(u)?NaN:E;if(isNaN(u))return 1;tCt(g,u,q,Q,L,Number);return null};
_.P.logFloatParseError_=function(){};
_.P.parseAndSetBoolOption_=function(g,u,q,Q,L){if(u!="")return 2;tCt(g,!0,q,Q,L,Boolean);return null};
_.P.logBoolParseError_=function(){};
_.P.parseAndSetStringOption_=function(g,u,q,Q,L){if(u=="")return 0;tCt(g,u,q,Q,L,function(E){return E?"1":""});
return null};
_.P.logStringParseError_=function(){};
_.P.parseAndSetUint64Base64Option_=function(g,u,q,Q,L){if(u=="")return 0;tCt(g,u,q,Q,L,function(E){return E?1:0});
return null};
var jzn=function(g,u){switch(u){case 0:return(0,_.EH)(g.parseAndSetIntOption_,g);case 2:return(0,_.EH)(g.parseAndSetFloatOption_,g);case 3:return(0,_.EH)(g.parseAndSetBoolOption_,g);case 4:return(0,_.EH)(g.parseAndSetStringOption_,g);case 1:return(0,_.EH)(g.parseAndSetUint64Base64Option_,g);default:return function(){}}},fCZ=function(g,u){switch(u){case 0:return(0,_.EH)(g.logIntParseError_,g);
case 2:return(0,_.EH)(g.logFloatParseError_,g);case 3:return(0,_.EH)(g.logBoolParseError_,g);case 4:case 1:return(0,_.EH)(g.logStringParseError_,g);default:return function(){}}},MCh=function(g,u,q){this.valueProto_=g;
this.signatureFlagProto_=u;this.JSC$19858_valid_=q};
MCh.prototype.isValid=function(){return this.JSC$19858_valid_};var uIt=function(g){this.JSC$19859_parser_=null;this.JSC$19859_components_=[];this.JSC$19859_parsedOptions_=null;eVf(this,g)},GRH=function(g){g.JSC$19859_parser_==null&&(g.JSC$19859_parser_=new E9h);
return g.JSC$19859_parser_},eVf=function(g,u){g.JSC$19859_parsedOptions_=u?typeof u==="string"?GRH(g).parse(u):u:GRH(g).parse("")},hY=function(g,u){return g==u?!1:!0};
_.P=uIt.prototype;_.P.JSC$19861_setCrop=function(g){g=g||void 0;var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,_.vM(q,2),_.vM(u.signatureFlagProto_,2))&&_.OU(q,2,g);return this};
_.P.JSC$19861_setCircleCrop=function(g){g=g||void 0;var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,jH(q,51),jH(u.signatureFlagProto_,51))&&_.OU(q,51,g);return this};
_.P.JSC$19861_setImageCrop=function(g){g=g||void 0;var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,jH(q,32),jH(u.signatureFlagProto_,32))&&_.OU(q,32,g);return this};
_.P.JSC$19861_setHeight=function(g){var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,q.getHeight(),u.signatureFlagProto_.getHeight())&&_.e$(q,13,g);return this};
_.P.setCenterCrop=function(g){g=g||void 0;var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,_.vM(q,20),_.vM(u.signatureFlagProto_,20))&&q.setCenterCrop(g);return this};
_.P.JSC$19861_setSmartCrop=function(g){g=g||void 0;var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,_.vM(q,19),_.vM(u.signatureFlagProto_,19))&&_.OU(q,19,g);return this};
_.P.JSC$19861_setPad=function(g){g=g||void 0;var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,jH(q,60),jH(u.signatureFlagProto_,60))&&_.OU(q,60,g);return this};
_.P.JSC$19861_setSmartCropUseFace=function(g){g=g||void 0;var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,_.vM(q,67),_.vM(u.signatureFlagProto_,67))&&_.OU(q,67,g);return this};
_.P.JSC$19861_setSmartCropNoClip=function(g){g=g||void 0;var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,_.vM(q,52),_.vM(u.signatureFlagProto_,52))&&_.OU(q,52,g);return this};
_.P.setSize=function(g){var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,q.getSize(),u.signatureFlagProto_.getSize())&&q.setSize(g);return this};
_.P.setToken=function(g){g=g||void 0;var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,q.getToken(),u.signatureFlagProto_.getToken())&&q.setToken(g);return this};
_.P.JSC$19861_setWidth=function(g){var u=this.JSC$19859_parsedOptions_,q=u.valueProto_;hY(g,q.getWidth(),u.signatureFlagProto_.getWidth())&&_.e$(q,12,g);return this};
_.P.clearOptions=function(){eVf(this,"");return this};
_.P.build=function(){this.JSC$19859_components_.length=0;var g=this.JSC$19859_parsedOptions_,u=g.valueProto_;g=g.signatureFlagProto_;Yh(this,"s",u.getSize(),g.getSize());Yh(this,"w",u.getWidth(),g.getWidth());OV(this,"c",_.vM(u,2),_.vM(g,2));OV(this,"d",_.vM(u,3),_.vM(g,3));Yh(this,"h",u.getHeight(),g.getHeight());OV(this,"s",jH(u,33),jH(g,33));OV(this,"h",u.getHtml(),g.getHtml());OV(this,"p",_.vM(u,19),_.vM(g,19));OV(this,"pp",_.vM(u,52),_.vM(g,52));OV(this,"pf",_.vM(u,67),_.vM(g,67));OV(this,"n",
_.vM(u,20),_.vM(g,20));Yh(this,"r",Mn(u,26),Mn(g,26));OV(this,"r",_.vM(u,6),_.vM(g,6));OV(this,"o",jH(u,27),jH(g,27));var q=_.yE(u,7,_.oO);Ks(this,"o",q,_.yE(g,7,_.oO));q=_.yE(u,29,_.oO);Ks(this,"j",q,_.yE(g,29,_.oO));Yh(this,"x",Mn(u,9),Mn(g,9));Yh(this,"y",Mn(u,10),Mn(g,10));Yh(this,"z",Mn(u,11),Mn(g,11));OV(this,"g",_.vM(u,14),_.vM(g,14));Yh(this,"e",Mn(u,15),Mn(g,15));Ks(this,"f",_.Sp(u,16),_.Sp(g,16));OV(this,"k",jH(u,17),jH(g,17));OV(this,"u",jH(u,18),!0);OV(this,"ut",jH(u,45),!0);OV(this,"i",
jH(u,22),!0);OV(this,"a",jH(u,21),jH(g,21));OV(this,"b",_.vM(u,23),_.vM(g,23));Yh(this,"b",Mn(u,38),Mn(g,38));Yh(this,"c",Mn(u,39),Mn(g,39),16,8);Ks(this,"q",_.Sp(u,28),_.Sp(g,28));OV(this,"fh",jH(u,30),jH(g,30));OV(this,"fv",jH(u,31),jH(g,31));OV(this,"fg",_.vM(u,34),_.vM(g,34));OV(this,"ci",jH(u,32),jH(g,32));Ks(this,"t",u.getToken(),g.getToken());Ks(this,"nt0",_.Sp(u,36),_.Sp(g,36));OV(this,"rw",_.vM(u,35),_.vM(g,35));OV(this,"rwu",_.vM(u,41),_.vM(g,41));OV(this,"rwa",_.vM(u,64),_.vM(g,64));OV(this,
"nw",_.vM(u,48),_.vM(g,48));OV(this,"rh",_.vM(u,49),_.vM(g,49));OV(this,"no",_.vM(u,37),_.vM(g,37));OV(this,"ns",jH(u,40),jH(g,40));Yh(this,"k",Mn(u,42),Mn(g,42));Yh(this,"p",Mn(u,43),Mn(g,43));Yh(this,"l",Mn(u,44),Mn(g,44));Yh(this,"v",Mn(u,62),Mn(g,62));OV(this,"nu",jH(u,46),jH(g,46));OV(this,"ft",jH(u,50),jH(g,50));OV(this,"cc",jH(u,51),jH(g,51));OV(this,"nd",jH(u,53),jH(g,53));OV(this,"ip",jH(u,54),jH(g,54));OV(this,"nc",jH(u,55),jH(g,55));Yh(this,"a",Mn(u,56),Mn(g,56));OV(this,"rj",jH(u,57),
jH(g,57));OV(this,"rp",jH(u,58),jH(g,58));OV(this,"rg",jH(u,59),jH(g,59));OV(this,"pd",jH(u,60),jH(g,60));OV(this,"pa",jH(u,61),jH(g,61));Yh(this,"m",Mn(u,63),Mn(g,63));Yh(this,"vb",_.sa(u,68,_.oO),_.sa(g,68,_.oO));Yh(this,"vl",_.sa(u,69,_.oO),_.sa(g,69,_.oO));OV(this,"lf",jH(u,65),jH(g,65));OV(this,"mv",jH(u,66),jH(g,66));OV(this,"id",jH(u,70),jH(g,70));Yh(this,"ic",Mn(u,71),!0);OV(this,"pg",_.vM(u,72),_.vM(g,72));OV(this,"mo",jH(u,73),jH(g,73));OV(this,"al",jH(u,74),jH(g,74));Yh(this,"iv",_.sa(u,
75,_.oO),_.sa(g,75,_.oO));Yh(this,"pi",tY(u,76),tY(g,76));Yh(this,"ya",tY(u,77),tY(g,77));Yh(this,"ro",tY(u,78),tY(g,78));Yh(this,"fo",tY(u,79),tY(g,79));OV(this,"df",jH(u,80),jH(g,80));Ks(this,"mm",_.Sp(u,81),_.Sp(g,81));OV(this,"sg",jH(u,82),jH(g,82));OV(this,"gd",jH(u,83),jH(g,83));OV(this,"fm",jH(u,84),jH(g,84));Yh(this,"ba",Mn(u,85),Mn(g,85));Yh(this,"br",Mn(u,86),Mn(g,86));Yh(this,"bc",u.getBackgroundColor(),g.getBackgroundColor(),16,8);Yh(this,"pc",Mn(u,88),Mn(g,88),16,8);Yh(this,"sc",Mn(u,
89),Mn(g,89),16,8);OV(this,"dv",jH(u,90),jH(g,90));OV(this,"md",jH(u,91),jH(g,91));Yh(this,"cp",Mn(u,92),Mn(g,92));OV(this,"sm",jH(u,93),jH(g,93));Yh(this,"cv",Mn(u,94),Mn(g,94));OV(this,"ng",jH(u,95),jH(g,95));OV(this,"il",jH(u,96),jH(g,96));OV(this,"lo",jH(u,97),jH(g,97));OV(this,"vm",jH(u,98),jH(g,98));Ks(this,"dc",_.Sp(u,99),_.Sp(g,99));OV(this,"rf",jH(u,100),jH(g,100));Ks(this,"vf",_.Sp(u,102),_.Sp(g,102));OV(this,"ra",_.vM(u,103),_.vM(g,103));OV(this,"ckm",jH(u,104),jH(g,104));OV(this,"gm",
jH(u,105),jH(g,105));OV(this,"ngm",jH(u,106),jH(g,106));Yh(this,"em",Mn(u,107),Mn(g,107));OV(this,"cr",jH(u,108),jH(g,108));Yh(this,"sl",u.getStoryboardLevel(),g.getStoryboardLevel());Yh(this,"sb",Mn(u,110),Mn(g,110));Ks(this,"pt",_.Sp(u,111),_.Sp(g,111));Ks(this,"gce",_.Sp(u,112),_.Sp(g,112));OV(this,"tm",jH(u,113),jH(g,113));OV(this,"ntm",jH(u,114),jH(g,114));Yh(this,"mp",Mn(u,115),Mn(g,115));return this.JSC$19859_components_.join("-")};
var Yh=function(g,u,q,Q,L,E){if(q!=null){var y=L==void 0||L!=10&&L!=16?10:L;q=Number(q).toString(y);L=new WLC;L.append(y==16?"0x":"");y=L.append;E==void 0?E="":(E-=q.length,E=E<=0?"":(0,_.wqZ)("0",E));y.call(L,E);L.append(q);$Jh(g,u,L.toString(),!!Number(Q))}},OV=function(g,u,q,Q){q&&$Jh(g,u,"",!!Q)},Ks=function(g,u,q,Q){q&&$Jh(g,u,String(q),!!Number(Q))},$Jh=function(g,u,q,Q){Q&&(u=u.charAt(0).toUpperCase()+u.substring(1));
g.JSC$19859_components_.push(u+q)};_.TK(uQ,uIt);_.P=uQ.prototype;_.P.JSC$19861_setCrop=function(g){g&&xh(this);return uQ.superClass_.JSC$19861_setCrop.call(this,g)};
_.P.JSC$19861_setHeight=function(g){g=g==null||g<0?void 0:g;g!=null&&this.setSize();return uQ.superClass_.JSC$19861_setHeight.call(this,g)};
_.P.JSC$19861_setImageCrop=function(g){g&&xh(this);return uQ.superClass_.JSC$19861_setImageCrop.call(this,g)};
_.P.JSC$19861_setCircleCrop=function(g){g&&xh(this);return uQ.superClass_.JSC$19861_setCircleCrop.call(this,g)};
_.P.setSize=function(g){_.zM(g)&&(g=Math.max(g.width,g.height));g=g==null||g<0?void 0:g;g!=null&&(this.JSC$19861_setWidth(),this.JSC$19861_setHeight());return uQ.superClass_.setSize.call(this,g)};
_.P.JSC$19861_setSmartCrop=function(g){g&&xh(this);return uQ.superClass_.JSC$19861_setSmartCrop.call(this,g)};
_.P.JSC$19861_setSmartCropNoClip=function(g){g&&xh(this);return uQ.superClass_.JSC$19861_setSmartCropNoClip.call(this,g)};
_.P.JSC$19861_setSmartCropUseFace=function(g){g&&xh(this);return uQ.superClass_.JSC$19861_setSmartCropUseFace.call(this,g)};
_.P.setCenterCrop=function(g){g&&xh(this);return uQ.superClass_.setCenterCrop.call(this,g)};
_.P.JSC$19861_setPad=function(g){g&&xh(this);return uQ.superClass_.JSC$19861_setPad.call(this,g)};
_.P.JSC$19861_setWidth=function(g){g=g==null||g<0?void 0:g;g!=null&&this.setSize();return uQ.superClass_.JSC$19861_setWidth.call(this,g)};
var RVz=function(g){g.clearOptions();var u=g.JSC$19859_parsedOptions_,q=u.valueProto_;hY(!0,_.vM(q,3),_.vM(u.signatureFlagProto_,3))&&_.OU(q,3,!0);return g},xh=function(g){g.setCenterCrop();
g.JSC$19861_setCircleCrop();g.JSC$19861_setCrop();g.JSC$19861_setImageCrop();g.JSC$19861_setPad();g.JSC$19861_setSmartCrop();g.JSC$19861_setSmartCropNoClip();g.JSC$19861_setSmartCropUseFace()};
uQ.prototype.build=function(){var g=this.JSC$19859_parsedOptions_.valueProto_;jH(g,18)||jH(g,45)?g.getSize()||this.setSize(0):(g=this.JSC$19859_parsedOptions_.valueProto_,g.getSize()||g.getWidth()||g.getHeight()||(this.setSize(),this.JSC$19861_setHeight(),this.JSC$19861_setWidth(),xh(this)));return uQ.superClass_.build.call(this)};var wOn=/^[^\/]*\/\//,cXH=function(g,u){u=u===void 0?!1:u;this.original_=g;this.originalPrefix_="";(g=this.original_.match(wOn))&&g[0]?(this.originalPrefix_=g[0],g=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):g="http://"+this.original_;this.uri_=_.X_(g,!0);this.isFreeformUrl_=u;this.JSC$19865_valid_=!0;this.obfuscated_=!1},HFn=function(g,u){g.JSC$19867_pathPrefix_=g.JSC$19867_pathPrefix_?g.JSC$19867_pathPrefix_+("/"+u):u},B3=function(g){if(g.JSC$19867_components_==
void 0){var u=g.uri_.getPath().substring(1);
g.JSC$19867_pathPrefix_=null;if(g.isFreeformUrl_){g.JSC$19867_components_=[];if((u.match(/=/g)||[]).length>1)return g.JSC$19865_valid_=!1,g.JSC$19867_components_;var q=u.indexOf("=");q!=-1?(g.JSC$19867_components_.push(u.substr(0,q)),g.JSC$19867_components_.push(u.substr(q+1))):g.JSC$19867_components_.push(u);return g.JSC$19867_components_}g.JSC$19867_components_=u.split("/");u=g.JSC$19867_components_.length;u>2&&g.JSC$19867_components_[0]=="u"&&(HFn(g,g.JSC$19867_components_[0]+"/"+g.JSC$19867_components_[1]),
g.JSC$19867_components_.shift(),g.JSC$19867_components_.shift(),u-=2);if(u==0||u==4||u>7)return g.JSC$19865_valid_=!1,g.JSC$19867_components_;if(u==2)HFn(g,g.JSC$19867_components_[0]);else if(g.JSC$19867_components_[0]=="image")HFn(g,g.JSC$19867_components_[0]);else if(u==7||u==3)return g.JSC$19865_valid_=!1,g.JSC$19867_components_;if(u<=3){g.obfuscated_=!0;u==3&&(HFn(g,g.JSC$19867_components_[1]),g.JSC$19867_components_.shift(),--u);--u;q=g.JSC$19867_components_[u];var Q=q.indexOf("=");Q!=-1&&(g.JSC$19867_components_[u]=
q.substr(0,Q),g.JSC$19867_components_.push(q.substr(Q+1)))}}return g.JSC$19867_components_};
cXH.prototype.isValid=function(){B3(this);return this.JSC$19865_valid_};
cXH.prototype.isObfuscated=function(){B3(this);return this.obfuscated_};
var AXx=function(g){B3(g);return g.isFreeformUrl_},zd=function(g){B3(g);
g.JSC$19867_pathPrefix_==void 0&&(g.JSC$19867_pathPrefix_=null);return g.JSC$19867_pathPrefix_},ZF9=function(g){switch(B3(g).length){case 7:return!0;
case 6:return zd(g)==null;case 5:return!1;case 3:return!0;case 2:return zd(g)==null;case 1:return!1;default:return!1}},ns=function(g,u){if(AXx(g))a:{switch(u){case 7:u=0;
break;case 4:if(!ZF9(g)){g=null;break a}u=1;break;default:g=null;break a}g=B3(g)[u]}else if(g.isObfuscated())a:{var q=zd(g)!=null?1:0;switch(u){case 6:u=q;break;case 4:if(!ZF9(g)){g=null;break a}u=1+q;break;default:g=null;break a}g=B3(g)[u]}else a:{q=zd(g)!=null?1:0;switch(u){case 0:u=q;break;case 1:u=1+q;break;case 2:u=2+q;break;case 3:u=3+q;break;case 4:if(!ZF9(g)){g=null;break a}u=4+q;break;case 5:u=ZF9(g)?1:0;u=4+q+u;break;default:g=null;break a}g=B3(g)[u]}return g};
cXH.prototype.getOptions=function(){this.options_==void 0&&(this.options_=ns(this,4));return this.options_};var LXC=function(){};
LXC.prototype.parse=function(g,u){return new qix(g,u===void 0?!1:u)};
var qix=function(g,u){cXH.call(this,g,u===void 0?!1:u)};
_.A(qix,cXH);_.TK(PUh,uQ);var Q5C;PUh.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
PUh.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var g=PUh.superClass_.build.call(this),u=[];zd(this.parsedImageUrl_)!=null&&u.push(zd(this.parsedImageUrl_));var q=AXx(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var Q=this.parsedImageUrl_;Q.obfuscatedData_==void 0&&(Q.obfuscatedData_=ns(Q,6));u.push(Q.obfuscatedData_+(g?"="+g:""))}else if(q){Q=u.push;var L=this.parsedImageUrl_;L.freeformUrlPath_===void 0&&(L.freeformUrlPath_=
ns(L,7));Q.call(u,L.freeformUrlPath_);g&&u.push(g)}else Q=u.push,L=this.parsedImageUrl_,L.obfuscatedGaiaId_==void 0&&(L.obfuscatedGaiaId_=ns(L,0)),Q.call(u,L.obfuscatedGaiaId_),Q=u.push,L=this.parsedImageUrl_,L.photoId_==void 0&&(L.photoId_=ns(L,1)),Q.call(u,L.photoId_),Q=u.push,L=this.parsedImageUrl_,L.imageVersion_==void 0&&(L.imageVersion_=ns(L,2)),Q.call(u,L.imageVersion_),Q=u.push,L=this.parsedImageUrl_,L.signature_==void 0&&(L.signature_=ns(L,3)),Q.call(u,L.signature_),g&&u.push(g),g=u.push,
Q=this.parsedImageUrl_,Q.filename_==void 0&&(Q.filename_=ns(Q,5)),g.call(u,Q.filename_);u=q?u.join("="):u.join("/");u=_.X_(this.protocolPrefix_+this.JSC$19873_domain_+"/"+u+(this.JSC$19873_query_?"?"+this.JSC$19873_query_:"")).toString();u.startsWith("%3a//")&&(u=u.replace("%3a//","://"));return u};_.TK(ql,_.Pt);ql.prototype.JSC$10381_setLabel=function(g){ql.superClass_.JSC$10381_setLabel.call(this,g);return this};
ql.prototype.addUploadMetadata=function(g,u){ql.superClass_.addUploadMetadata.call(this,g,u);return this};var lCf=function(g){if(g!=="youtubebanner"&&g!=="youtube-channel-banner")throw Error("Fk");ql.call(this,g)};
_.A(lCf,ql);lCf.prototype.JSC$10381_setLabel=function(g){ql.prototype.JSC$10381_setLabel.call(this,g);return this};
lCf.prototype.addUploadMetadata=function(g,u){ql.prototype.addUploadMetadata.call(this,g,u);return this};var ICt=[0,_.h2,_.b$,_.h2,-1,_.b$,[0,_.dm,_.mE,-1],_.h2,-1];var iFf=[0,[1,2,3],_.VE,-2];var CTZ=[0,_.h2];var bFp=_.CT(["viewBox"]),dJf=_.CT(["width"]),F4h=_.CT(["height"]),mJh=_.CT(["fill"]),aCp=_.CT(["id"]),VCL=_.CT(["x"]),XOh=_.CT(["y"]);NOL.prototype.getLength=function(){return this.parsedData.length};
NOL.prototype.write=function(g){for(var u=0,q=this.parsedData.length;u<q;u++)g.put(this.parsedData[u],8)};
var j5E=function(g,u){var q=new NOL(u);g.dataList.push(q);q=g.errorCorrectLevel;var Q=1,L=encodeURI(u).toString().replace(/%[0-9a-fA-F]{2}/g,"a");u=L.length+(L.length!=u?3:0);L=0;for(var E=kh.length;L<=E;L++){var y=0;switch(q){case 1:y=kh[L][0];break;case 0:y=kh[L][1];break;case 3:y=kh[L][2];break;case 2:y=kh[L][3]}if(u<=y)break;else Q++}if(Q>kh.length)throw Error("Ok");g.typeNumber=Q;g.dataCache=null};
s5f.prototype.isDark=function(g,u){if(g<0||this.moduleCount<=g||u<0||this.moduleCount<=u)throw Error("Gk`"+g+"`"+u);return this.modules[g][u]};
for(var f3Z=function(g,u,q){g.moduleCount=g.typeNumber*4+17;g.modules=Array(g.moduleCount);for(var Q=0;Q<g.moduleCount;Q++){g.modules[Q]=Array(g.moduleCount);for(var L=0;L<g.moduleCount;L++)g.modules[Q][L]=null}rXH(g,0,0);rXH(g,g.moduleCount-7,0);rXH(g,0,g.moduleCount-7);Q=W4f[g.typeNumber-1];for(L=0;L<Q.length;L++)for(var E=0;E<Q.length;E++){var y=Q[L],v=Q[E];if(g.modules[y][v]==null)for(var J=-2;J<=2;J++)for(var f=-2;f<=2;f++)g.modules[y+J][v+f]=J==-2||J==2||f==-2||f==2||J==0&&f==0?!0:!1}for(Q=
8;Q<g.moduleCount-8;Q++)g.modules[Q][6]==null&&(g.modules[Q][6]=Q%2==0);for(Q=8;Q<g.moduleCount-8;Q++)g.modules[6][Q]==null&&(g.modules[6][Q]=Q%2==0);Q=g.errorCorrectLevel<<3|q;for(L=Q<<10;SH(L)-SH(1335)>=0;)L^=1335<<SH(L)-SH(1335);Q=(Q<<10|L)^21522;for(L=0;L<15;L++)E=!u&&(Q>>L&1)==1,L<6?g.modules[L][8]=E:L<8?g.modules[L+1][8]=E:g.modules[g.moduleCount-15+L][8]=E;for(L=0;L<15;L++)E=!u&&(Q>>L&1)==1,L<8?g.modules[8][g.moduleCount-L-1]=E:L<9?g.modules[8][15-L-1+1]=E:g.modules[8][15-L-1]=E;g.modules[g.moduleCount-
8][8]=!u;if(g.typeNumber>=7){Q=g.typeNumber;for(L=Q<<12;SH(L)-SH(7973)>=0;)L^=7973<<SH(L)-SH(7973);Q=Q<<12|L;for(L=0;L<18;L++)E=!u&&(Q>>L&1)==1,g.modules[Math.floor(L/3)][L%3+g.moduleCount-8-3]=E;for(L=0;L<18;L++)E=!u&&(Q>>L&1)==1,g.modules[L%3+g.moduleCount-8-3][Math.floor(L/3)]=E}if(g.dataCache==null){L=g.typeNumber;E=g.dataList;u=g.errorCorrectLevel;Q=Tx9(L,u);if(Q==void 0)throw Error("Nk`"+L+"`"+u);y=Q.length/3;u=[];for(v=0;v<y;v++){J=Q[v*3];f=Q[v*3+1];for(var t=Q[v*3+2],e=0;e<J;e++)u.push(new yrt(f,
t))}Q=new v9L;for(y=0;y<E.length;y++)v=E[y],Q.put(v.mode,4),Q.put(v.getLength(),hVH(v.mode,L)),v.write(Q);for(y=L=0;y<u.length;y++)L+=u[y].dataCount;if(Q.length>L*8)throw Error("Hk`"+Q.length+"`"+L*8);for(Q.length+4<=L*8&&Q.put(0,4);Q.length%8!=0;)Y6L(Q,!1);for(;!(Q.length>=L*8);){Q.put(236,8);if(Q.length>=L*8)break;Q.put(17,8)}E=L=f=0;y=Array(u.length);v=Array(u.length);for(J=0;J<u.length;J++){e=u[J].dataCount;var G=u[J].totalCount-e;L=Math.max(L,e);E=Math.max(E,G);y[J]=Array(e);for(t=0;t<y[J].length;t++)y[J][t]=
255&Q.buffer[t+f];f+=e;t=G;e=new Q6([1],0);for(G=0;G<t;G++)e=e.multiply(new Q6([1,OFH(G)],0));t=e;e=(new Q6(y[J],t.getLength()-1)).mod(t);v[J]=Array(t.getLength()-1);for(t=0;t<v[J].length;t++)G=t+e.getLength()-v[J].length,v[J][t]=G>=0?e.get(G):0}for(t=Q=0;t<u.length;t++)Q+=u[t].totalCount;Q=Array(Q);for(t=f=0;t<L;t++)for(J=0;J<u.length;J++)t<y[J].length&&(Q[f++]=y[J][t]);for(t=0;t<E;t++)for(J=0;J<u.length;J++)t<v[J].length&&(Q[f++]=v[J][t]);g.dataCache=Q}u=g.dataCache;Q=-1;L=g.moduleCount-1;E=7;y=
0;for(v=g.moduleCount-1;v>0;v-=2)for(v==6&&v--;;){for(J=0;J<2;J++)g.modules[L][v-J]==null&&(f=!1,y<u.length&&(f=(u[y]>>>E&1)==1),K4h(q,L,v-J)&&(f=!f),g.modules[L][v-J]=f,E--,E==-1&&(y++,E=7));L+=Q;if(L<0||g.moduleCount<=L){L-=Q;Q=-Q;break}}},rXH=function(g,u,q){for(var Q=-1;Q<=7;Q++)if(!(u+Q<=-1||g.moduleCount<=u+Q))for(var L=-1;L<=7;L++)q+L<=-1||g.moduleCount<=q+L||(g.modules[u+Q][q+L]=0<=Q&&Q<=6&&(L==0||L==6)||0<=L&&L<=6&&(Q==0||Q==6)||2<=Q&&Q<=4&&2<=L&&L<=4?!0:!1)},MPZ=function(g){for(var u=0,
q=0,Q=0;Q<8;Q++){f3Z(g,!0,Q);
var L=g;for(var E=L.moduleCount,y=0,v=0;v<E;v++)for(var J=0;J<E;J++){for(var f=0,t=L.isDark(v,J),e=-1;e<=1;e++)if(!(v+e<0||E<=v+e))for(var G=-1;G<=1;G++)J+G<0||E<=J+G||(e!=0||G!=0)&&t==L.isDark(v+e,J+G)&&f++;f>5&&(y+=3+f-5)}for(v=0;v<E-1;v++)for(J=0;J<E-1;J++)if(f=0,L.isDark(v,J)&&f++,L.isDark(v+1,J)&&f++,L.isDark(v,J+1)&&f++,L.isDark(v+1,J+1)&&f++,f==0||f==4)y+=3;for(v=0;v<E;v++)for(J=0;J<E-6;J++)L.isDark(v,J)&&!L.isDark(v,J+1)&&L.isDark(v,J+2)&&L.isDark(v,J+3)&&L.isDark(v,J+4)&&!L.isDark(v,J+5)&&
L.isDark(v,J+6)&&(y+=40);for(J=0;J<E;J++)for(v=0;v<E-6;v++)L.isDark(v,J)&&!L.isDark(v+1,J)&&L.isDark(v+2,J)&&L.isDark(v+3,J)&&L.isDark(v+4,J)&&!L.isDark(v+5,J)&&L.isDark(v+6,J)&&(y+=40);for(J=f=0;J<E;J++)for(v=0;v<E;v++)L.isDark(v,J)&&f++;L=y+=Math.abs(100*f/E/E-50)/5*10;if(Q==0||u>L)u=L,q=Q}return q},W4f=[[],
[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]],SH=function(g){for(var u=0;g!=0;)u++,g>>>=1;return u},K4h=function(g,u,q){switch(g){case 0:return(u+q)%2==0;
case 1:return u%2==0;case 2:return q%3==0;case 3:return(u+q)%3==0;case 4:return(Math.floor(u/2)+Math.floor(q/3))%2==0;case 5:return u*q%2+u*q%3==0;case 6:return(u*q%2+u*q%3)%2==0;case 7:return(u*q%3+(u+q)%2)%2==0;default:throw Error("Ik`"+g);}},hVH=function(g,u){if(1<=u&&u<10)switch(g){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Jk`"+g);}else if(u<27)switch(g){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Jk`"+g);}else if(u<41)switch(g){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Jk`"+g);}else throw Error("Kk`"+u);},Bxf=function(g){if(g<1)throw Error("Lk`"+g);
return xJh[g]},OFH=function(g){for(;g<0;)g+=255;
for(;g>=256;)g-=255;return ol[g]},ol=Array(256),xJh=Array(256),zVE=0;zVE<8;zVE++)ol[zVE]=1<<zVE;
for(var UV=8;UV<256;UV++)ol[UV]=ol[UV-4]^ol[UV-5]^ol[UV-6]^ol[UV-8];for(var n3L=0;n3L<255;n3L++)xJh[ol[n3L]]=n3L;Q6.prototype.get=function(g){return this.num[g]};
Q6.prototype.getLength=function(){return this.num.length};
Q6.prototype.multiply=function(g){for(var u=Array(this.getLength()+g.getLength()-1),q=0;q<this.getLength();q++)for(var Q=0;Q<g.getLength();Q++)u[q+Q]^=OFH(Bxf(this.get(q))+Bxf(g.get(Q)));return new Q6(u,0)};
Q6.prototype.mod=function(g){if(this.getLength()-g.getLength()<0)return this;for(var u=Bxf(this.get(0))-Bxf(g.get(0)),q=Array(this.getLength()),Q=0;Q<this.getLength();Q++)q[Q]=this.get(Q);for(Q=0;Q<g.getLength();Q++)q[Q]^=OFH(Bxf(g.get(Q))+u);return(new Q6(q,0)).mod(g)};
var kRz=[[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]],Tx9=function(g,u){switch(u){case 1:return kRz[(g-1)*4];case 0:return kRz[(g-1)*4+1];case 3:return kRz[(g-1)*4+2];case 2:return kRz[(g-1)*4+3]}};
v9L.prototype.get=function(g){return(this.buffer[Math.floor(g/8)]>>>7-g%8&1)==1};
v9L.prototype.put=function(g,u){for(var q=0;q<u;q++)Y6L(this,(g>>>u-q-1&1)==1)};
var Y6L=function(g,u){var q=Math.floor(g.length/8);g.buffer.length<=q&&g.buffer.push(0);u&&(g.buffer[q]|=128>>>g.length%8);g.length++},kh=[[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]],JrZ=function(){var g=function(u,q){this.JSC$19899__el=u;this.JSC$19899__htOption=q};
g.prototype.draw=function(u){function q(t,e){t=document.createElementNS("http://www.w3.org/2000/svg",t);for(var G in e)e.hasOwnProperty(G)&&(G==="href"?MZb(t,e[G]):_.Ma([_.cq(bFp),_.cq(dJf),_.cq(F4h),_.cq(mJh),_.cq(aCp),_.cq(VCL),_.cq(XOh)],t,G,e[G]));return t}
var Q=this.JSC$19899__htOption,L=this.JSC$19899__el,E=u.moduleCount;this.clear();var y=q("svg",{viewBox:"0 0 "+String(E)+" "+String(E),width:"100%",height:"100%",fill:Q.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});L.appendChild(y);y.appendChild(q("rect",{fill:Q.colorLight,width:"100%",height:"100%"}));y.appendChild(q("rect",{fill:Q.colorDark,width:"1",height:"1",id:"template"}));for(var v=0;v<E;v++)for(var J=0;J<E;J++)if(u.isDark(v,J)){var f=q("use",{x:String(v),y:String(J),href:"#template"});
y.appendChild(f)}};
g.prototype.clear=function(){for(;this.JSC$19899__el.hasChildNodes();)this.JSC$19899__el.removeChild(this.JSC$19899__el.lastChild)};
return g}(),p$f=document.documentElement.tagName.toLowerCase()==="svg"?JrZ:typeof CanvasRenderingContext2D!="undefined"?function(){var g=function(u,q){this._bIsPainted=!1;
DmH();this.JSC$19899__htOption=q;this._elCanvas=document.createElement("canvas");this._elCanvas.width=q.width;this._elCanvas.height=q.height;u.appendChild(this._elCanvas);this.JSC$19899__el=u;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$19899__el.appendChild(this._elImage);this._bSupportDataURI=null};
g.prototype._onMakeImage=function(){var u=this._elCanvas.toDataURL("image/png");this._elImage.src=u;this._elImage.style.display="block";this._elCanvas.style.display="none"};
g.prototype._safeSetDataURI=function(u,q){var Q=this;Q._fFail=q;Q._fSuccess=u;Q._bSupportDataURI===null?(u=_.oG("IMG"),q=function(){Q._bSupportDataURI=!1;Q._fFail&&Q._fFail.call(Q)},u.onabort=q,u.onerror=q,u.onload=function(){Q._bSupportDataURI=!0;
Q._fSuccess&&Q._fSuccess.call(Q)},u.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):Q._bSupportDataURI===!0&&Q._fSuccess?Q._fSuccess.call(Q):Q._bSupportDataURI===!1&&Q._fFail&&Q._fFail.call(Q)};
g.prototype.draw=function(u){var q=this._oContext,Q=this.JSC$19899__htOption,L=u.moduleCount,E=Q.width/L,y=Q.height/L,v=Math.round(E),J=Math.round(y);this._elImage.style.display="none";this.clear();for(var f=0;f<L;f++)for(var t=0;t<L;t++){var e=u.isDark(f,t),G=t*E,R=f*y;q.strokeStyle=e?Q.colorDark:Q.colorLight;q.lineWidth=1;q.fillStyle=e?Q.colorDark:Q.colorLight;q.fillRect(G,R,E,y);q.strokeRect(Math.floor(G)+.5,Math.floor(R)+.5,v,J);q.strokeRect(Math.ceil(G)-.5,Math.ceil(R)-.5,v,J)}this._bIsPainted=
!0};
g.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
g.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
g.prototype.round=function(u){return u?Math.floor(u*1E3)/1E3:u};
return g}():function(){var g=function(u,q){this.JSC$19899__el=u;
this.JSC$19899__htOption=q};
g.prototype.draw=function(u){for(var q=this.JSC$19899__htOption,Q=this.JSC$19899__el,L=u.moduleCount,E=Math.floor(q.width/L),y=Math.floor(q.height/L),v=['<table style="border:0;border-collapse:collapse;">'],J=0;J<L;J++){v.push("<tr>");for(var f=0;f<L;f++)v.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+E+"px;height:"+y+"px;background-color:"+(u.isDark(J,f)?q.colorDark:q.colorLight)+';"></td>');v.push("</tr>")}v.push("</table>");u=v.join("");u=_.v$W(_.p80,u);_.fa(Q,u);
u=Q.childNodes[0];L=(q.width-u.offsetWidth)/2;E=(q.height-u.offsetHeight)/2;L>0&&E>0&&(u.style.margin=E+"px "+L+"px")};
g.prototype.clear=function(){this.JSC$19899__el.textContent=""};
return g}();
tPf.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19902__android||this.JSC$19902__android>=3)&&this._oDrawing.makeImage()};
tPf.prototype.clear=function(){this._oDrawing.clear()};
_.Qq.QRCode=tPf;var S6f={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var CUL=function(){};
CUL.prototype.stringify=function(g){return _.Qq.JSON.stringify(g,void 0)};
CUL.prototype.parse=function(g){return _.Qq.JSON.parse(g,void 0)};var o3h=function(){_.YF.call(this,"z")};
_.TK(o3h,_.YF);var UJE=function(){_.YF.call(this,"y")};
_.TK(UJE,_.YF);var GeL=null;_.TK(RqL,_.YF);_.TK(crt,_.YF);_.TK(HEp,_.YF);Eu.prototype.disableRedact=function(){this.redactEnabled_=!1};
var get=function(g,u,q,Q,L,E){g.info(function(){if(g.redactEnabled_)if(E){var y="";for(var v=E.split("&"),J=0;J<v.length;J++){var f=v[J].split("=");if(f.length>1){var t=f[0];f=f[1];var e=t.split("_");y=e.length>=2&&e[1]=="type"?y+(t+"="+f+"&"):y+(t+"=redacted&")}}}else y=null;else y=E;return"XMLHTTP REQ ("+Q+") [attempt "+L+"]: "+u+"\n"+q+"\n"+y})},uq9=function(g,u,q,Q,L,E,y){g.info(function(){return"XMLHTTP RESP ("+Q+") [ attempt "+L+"]: "+u+"\n"+q+"\n"+E+" "+y})},g1=function(g,u,q,Q){g.info(function(){return"XMLHTTP TEXT ("+
u+"): "+qMK(g,q)+(Q?" "+Q:"")})},Q_b=function(g,u){g.info(function(){return"TIMEOUT: "+u})};
Eu.prototype.debug=function(){};
Eu.prototype.info=function(){};
Eu.prototype.warning=function(){};
var qMK=function(g,u){if(!g.redactEnabled_)return u;if(!u)return null;try{var q=JSON.parse(u);if(q)for(var Q=0;Q<q.length;Q++)if(Array.isArray(q[Q])){var L=q[Q];if(!(L.length<2)){var E=L[1];if(Array.isArray(E)&&!(E.length<1)){var y=E[0];if(y!="noop"&&y!="stop"&&y!="close")for(var v=1;v<E.length;v++)E[v]=""}}}return _.ek(q)}catch(J){return g.debug("Exception parsing expected JS array - probably was not JS"),u}};var l3L=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},Lfx=function(g,u){switch(g){case 0:return"Non-200 return code ("+u+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Eeh={},Ppb={};
PZ.prototype.setTimeout=function(g){this.timeout_=g};
var s_L=function(g,u,q){g.JSC$19924_type_=1;g.JSC$19924_baseUri_=_.Bl(u.clone());g.JSC$19924_postData_=q;g.decodeChunks_=!0;NoH(g,null)},NoH=function(g,u){g.JSC$19924_requestStartTime_=Date.now();
yFn(g);g.JSC$19924_requestUri_=g.JSC$19924_baseUri_.clone();y$p(g.JSC$19924_requestUri_,"t",g.JSC$19924_retryId_);g.JSC$19924_xmlHttpChunkStart_=0;var q=g.JSC$19924_channel_.JSC$19943_supportsCrossDomainXhrs_;g.fetchResponseState_=new l3L;g.JSC$19924_xmlHttp_=veE(g.JSC$19924_channel_,q?u:null,!g.JSC$19924_postData_);g.JSC$19924_readyStateChangeThrottleMs_>0&&(g.JSC$19924_readyStateChangeThrottle_=new _.Kr((0,_.EH)(g.JSC$19928_xmlHttpHandler_,g,g.JSC$19924_xmlHttp_),g.JSC$19924_readyStateChangeThrottleMs_));
g.JSC$19924_eventHandler_.listen(g.JSC$19924_xmlHttp_,"readystatechange",g.JSC$19928_readyStateChangeHandler_);u=g.JSC$19924_extraHeaders_?_.pH.clone(g.JSC$19924_extraHeaders_):{};g.JSC$19924_postData_?(g.JSC$19924_verb_||(g.JSC$19924_verb_="POST"),u["Content-Type"]="application/x-www-form-urlencoded",g.JSC$19924_xmlHttp_.send(g.JSC$19924_requestUri_,g.JSC$19924_verb_,g.JSC$19924_postData_,u)):(g.JSC$19924_verb_="GET",g.JSC$19924_xmlHttp_.send(g.JSC$19924_requestUri_,g.JSC$19924_verb_,null,u));w$h(1);
get(g.JSC$19924_channelDebug_,g.JSC$19924_verb_,g.JSC$19924_requestUri_,g.JSC$19924_rid_,g.JSC$19924_retryId_,g.JSC$19924_postData_)};
PZ.prototype.JSC$19928_readyStateChangeHandler_=function(g){g=g.target;var u=this.JSC$19924_readyStateChangeThrottle_;u&&_.$k(g)==3?(this.JSC$19924_channelDebug_.debug("Throttling readystatechange."),u.fire()):this.JSC$19928_xmlHttpHandler_(g)};
PZ.prototype.JSC$19928_xmlHttpHandler_=function(g){try{g==this.JSC$19924_xmlHttp_?D5f(this):this.JSC$19924_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(u){this.JSC$19924_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),p_C(this)}finally{}};
var D5f=function(g){var u=_.$k(g.JSC$19924_xmlHttp_),q=g.JSC$19924_xmlHttp_.JSC$10103_lastErrorCode_,Q=g.JSC$19924_xmlHttp_.getStatus();if(!(u<3||u==3&&!p_C(g))){g.JSC$19924_cancelled_||u!=4||q==7||(q==8||Q<=0?w$h(3):w$h(2));JFn(g);var L=g.JSC$19924_xmlHttp_.getStatus();g.JSC$19924_lastStatusCode_=L;q=j_f(g);p_C(g)||g.JSC$19924_channelDebug_.debug(function(){return"No response text for uri "+g.JSC$19924_requestUri_+" status "+L});
g.JSC$19924_successful_=L==200;uq9(g.JSC$19924_channelDebug_,g.JSC$19924_verb_,g.JSC$19924_requestUri_,g.JSC$19924_rid_,g.JSC$19924_retryId_,u,L);if(g.JSC$19924_successful_){if(g.decodeInitialResponse_&&!g.initialResponseDecoded_)if(Q=fhn(g))g1(g.JSC$19924_channelDebug_,g.JSC$19924_rid_,Q,"Initial handshake response via X-HTTP-Initial-Response"),g.initialResponseDecoded_=!0,MBZ(g,Q);else{g.JSC$19924_successful_=!1;g.JSC$19924_lastError_=3;L$(12);g.JSC$19924_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
g.JSC$19924_rid_+")");ue(g);tBC(g);return}g.decodeChunks_?eOC(g,u,q):(g1(g.JSC$19924_channelDebug_,g.JSC$19924_rid_,q,null),MBZ(g,q));u==4&&ue(g);g.JSC$19924_successful_&&!g.JSC$19924_cancelled_&&(u==4?Gun(g.JSC$19924_channel_,g):(g.JSC$19924_successful_=!1,yFn(g)))}else N2z(g.JSC$19924_xmlHttp_),L==400&&q.indexOf("Unknown SID")>0?(g.JSC$19924_lastError_=3,L$(12),g.JSC$19924_channelDebug_.warning("XMLHTTP Unknown SID ("+g.JSC$19924_rid_+")")):(g.JSC$19924_lastError_=0,L$(13),g.JSC$19924_channelDebug_.warning("XMLHTTP Bad status "+
L+" ("+g.JSC$19924_rid_+")")),ue(g),tBC(g)}},fhn=function(g){return g.JSC$19924_xmlHttp_&&(g=S3b(g.JSC$19924_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.vS(g)?g:null},j_f=function(g){if(!$5C(g))return g.JSC$19924_xmlHttp_.getResponseText();
var u=g.JSC$19924_xmlHttp_.getResponse();if(u==="")return"";var q="",Q=u.length,L=_.$k(g.JSC$19924_xmlHttp_)==4;if(!g.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return ue(g),tBC(g),"";g.fetchResponseState_.textDecoder=new _.Qq.TextDecoder}for(var E=0;E<Q;E++)g.fetchResponseState_.responseArrivedForFetch=!0,q+=g.fetchResponseState_.textDecoder.decode(u[E],{stream:!(L&&E==Q-1)});u.length=0;g.fetchResponseState_.responseBuffer+=q;g.JSC$19924_xmlHttpChunkStart_=0;return g.fetchResponseState_.responseBuffer},
p_C=function(g){return g.JSC$19924_xmlHttp_?g.fetchResponseState_.responseArrivedForFetch?!0:!(!g.JSC$19924_xmlHttp_.getResponseText()&&!g.JSC$19924_xmlHttp_.getResponse()):!1},$5C=function(g){return g.JSC$19924_xmlHttp_?g.JSC$19924_verb_=="GET"&&g.JSC$19924_type_!=2&&g.JSC$19924_channel_.usesFetchStreams_:!1},eOC=function(g,u,q){for(var Q=!0,L;!g.JSC$19924_cancelled_&&g.JSC$19924_xmlHttpChunkStart_<q.length;)if(L=ROb(g,q),L==Ppb){u==4&&(g.JSC$19924_lastError_=4,L$(14),Q=!1);
g1(g.JSC$19924_channelDebug_,g.JSC$19924_rid_,null,"[Incomplete Response]");break}else if(L==Eeh){g.JSC$19924_lastError_=4;L$(15);g1(g.JSC$19924_channelDebug_,g.JSC$19924_rid_,q,"[Invalid Chunk]");Q=!1;break}else g1(g.JSC$19924_channelDebug_,g.JSC$19924_rid_,L,null),MBZ(g,L);$5C(g)&&g.JSC$19924_xmlHttpChunkStart_!=0&&(g.fetchResponseState_.responseBuffer=g.fetchResponseState_.responseBuffer.slice(g.JSC$19924_xmlHttpChunkStart_),g.JSC$19924_xmlHttpChunkStart_=0);u!=4||q.length!=0||g.fetchResponseState_.responseArrivedForFetch||
(g.JSC$19924_lastError_=1,L$(16),Q=!1);g.JSC$19924_successful_=g.JSC$19924_successful_&&Q;Q?q.length>0&&!g.firstByteReceived_&&(g.firstByteReceived_=!0,u=g.JSC$19924_channel_,u.JSC$19943_backChannelRequest_==g&&u.detectBufferingProxy_&&!u.bpDetectionDone_&&(u.JSC$19943_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+q.length),w_K(u),u.bpDetectionDone_=!0,L$(11))):(g1(g.JSC$19924_channelDebug_,g.JSC$19924_rid_,q,"[Invalid Chunked Response]"),ue(g),tBC(g))},ROb=function(g,
u){var q=g.JSC$19924_xmlHttpChunkStart_,Q=u.indexOf("\n",q);
if(Q==-1)return Ppb;q=Number(u.substring(q,Q));if(isNaN(q))return Eeh;Q+=1;if(Q+q>u.length)return Ppb;u=u.slice(Q,Q+q);g.JSC$19924_xmlHttpChunkStart_=Q+q;return u};
PZ.prototype.cancel=function(){this.JSC$19924_cancelled_=!0;ue(this)};
var yFn=function(g){g.JSC$19924_watchDogTimeoutTime_=Date.now()+g.timeout_;cFn(g,g.timeout_)},cFn=function(g,u){if(g.JSC$19924_watchDogTimerId_!=null)throw Error("Qk");
g.JSC$19924_watchDogTimerId_=ZEb((0,_.EH)(g.JSC$19928_onWatchDogTimeout_,g),u)},JFn=function(g){g.JSC$19924_watchDogTimerId_&&(_.Qq.clearTimeout(g.JSC$19924_watchDogTimerId_),g.JSC$19924_watchDogTimerId_=null)};
PZ.prototype.JSC$19928_onWatchDogTimeout_=function(){this.JSC$19924_watchDogTimerId_=null;var g=Date.now();g-this.JSC$19924_watchDogTimeoutTime_>=0?(Q_b(this.JSC$19924_channelDebug_,this.JSC$19924_requestUri_),this.JSC$19924_type_!=2&&(w$h(3),L$(17)),ue(this),this.JSC$19924_lastError_=2,tBC(this)):(this.JSC$19924_channelDebug_.warning("WatchDog timer called too early"),cFn(this,this.JSC$19924_watchDogTimeoutTime_-g))};
var tBC=function(g){g.JSC$19924_channel_.state_==0||g.JSC$19924_cancelled_||Gun(g.JSC$19924_channel_,g)},ue=function(g){JFn(g);
_.Fo(g.JSC$19924_readyStateChangeThrottle_);g.JSC$19924_readyStateChangeThrottle_=null;g.JSC$19924_eventHandler_.removeAll();if(g.JSC$19924_xmlHttp_){var u=g.JSC$19924_xmlHttp_;g.JSC$19924_xmlHttp_=null;u.abort();u.dispose()}};
PZ.prototype.getLastError=function(){return this.JSC$19924_lastError_};
var MBZ=function(g,u){try{var q=g.JSC$19924_channel_;if(q.state_!=0&&(q.JSC$19943_backChannelRequest_==g||H1H(q.forwardChannelRequestPool_,g)))if(!g.initialResponseDecoded_&&H1H(q.forwardChannelRequestPool_,g)&&q.state_==3){try{var Q=q.wireCodec_.JSC$19938_parser_.parse(u)}catch(v){Q=null}if(Array.isArray(Q)&&Q.length==3){u=Q;if(u[0]==0)a:if(q.JSC$19943_channelDebug_.debug("Server claims our backchannel is missing."),q.JSC$19943_backChannelTimerId_)q.JSC$19943_channelDebug_.debug("But we are currently starting the request.");
else{if(q.JSC$19943_backChannelRequest_)if(q.JSC$19943_backChannelRequest_.JSC$19924_requestStartTime_+3E3<g.JSC$19924_requestStartTime_)AFn(q),Z1p(q);else break a;else q.JSC$19943_channelDebug_.warning("We do not have a BackChannel established");lhC(q);L$(18)}else{q.JSC$19943_lastPostResponseArrayId_=u[1];var L=q.JSC$19943_lastPostResponseArrayId_-q.JSC$19943_lastArrayId_;if(0<L){var E=u[2];q.JSC$19943_channelDebug_.debug(E+" bytes (in "+L+" arrays) are outstanding on the BackChannel");E<37500&&
q.enableStreaming_&&q.JSC$19943_backChannelRetryCount_==0&&!q.JSC$19943_deadBackChannelTimerId_&&(q.JSC$19943_deadBackChannelTimerId_=ZEb((0,_.EH)(q.JSC$19945_onBackChannelDead_,q),6E3))}}if(Ihz(q.forwardChannelRequestPool_)<=1&&q.forwardChannelFlushedCallback_){try{q.forwardChannelFlushedCallback_()}catch(v){}q.forwardChannelFlushedCallback_=void 0}}else q.JSC$19943_channelDebug_.debug("Bad POST response data returned"),qD(q,11)}else if((g.initialResponseDecoded_||q.JSC$19943_backChannelRequest_==
g)&&AFn(q),!_.vS(u)){var y=q.wireCodec_.JSC$19938_parser_.parse(u);q.onInput_(y,g)}w$h(4)}catch(v){}};var i1h=function(g,u){this.JSC$19931_mapId=g;this.map=u;this.context=null};var FXL=function(g){this.maxPoolSizeConfigured_=g||10;_.Qq.PerformanceNavigationTiming?(g=_.Qq.performance.getEntriesByType("navigation"),g=g.length>0&&(g[0].nextHopProtocol=="hq"||g[0].nextHopProtocol=="h2")):g=!!(_.Qq.chrome&&_.Qq.chrome.loadTimes&&_.Qq.chrome.loadTimes()&&_.Qq.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19934_maxSize_=g?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19934_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19934_request_=null;this.JSC$19934_pendingMessages_=
[]},CpK=function(g){return g.JSC$19934_request_?!0:g.requestPool_?g.requestPool_.size>=g.JSC$19934_maxSize_:!1},Ihz=function(g){return g.JSC$19934_request_?1:g.requestPool_?g.requestPool_.size:0},H1H=function(g,u){return g.JSC$19934_request_?g.JSC$19934_request_==u:g.requestPool_?g.requestPool_.has(u):!1},b1h=function(g,u){g.requestPool_?g.requestPool_.add(u):g.JSC$19934_request_=u},d5Z=function(g,u){g.JSC$19934_request_&&g.JSC$19934_request_==u?g.JSC$19934_request_=null:g.requestPool_&&g.requestPool_.has(u)&&
g.requestPool_.delete(u)};
FXL.prototype.cancel=function(){this.JSC$19934_pendingMessages_=FfH(this);if(this.JSC$19934_request_)this.JSC$19934_request_.cancel(),this.JSC$19934_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var g=_.N(this.requestPool_.values()),u=g.next();!u.done;u=g.next())u.value.cancel();this.requestPool_.clear()}};
var FfH=function(g){if(g.JSC$19934_request_!=null)return g.JSC$19934_pendingMessages_.concat(g.JSC$19934_request_.JSC$19924_pendingMessages_);if(g.requestPool_!=null&&g.requestPool_.size!==0){var u=g.JSC$19934_pendingMessages_;g=_.N(g.requestPool_.values());for(var q=g.next();!q.done;q=g.next())u=u.concat(q.value.JSC$19924_pendingMessages_);return u}return _.Ob(g.JSC$19934_pendingMessages_)},m5p=function(g,u){g.JSC$19934_pendingMessages_=g.JSC$19934_pendingMessages_.concat(u)};su.prototype.JSC$19945_channelVersion_=8;su.prototype.state_=1;
su.prototype.connect=function(g,u,q,Q){this.JSC$19943_channelDebug_.debug("connect()");L$(0);this.JSC$19943_path_=g;this.JSC$19943_extraParams_=u||{};q&&Q!==void 0&&(this.JSC$19943_extraParams_.OSID=q,this.JSC$19943_extraParams_.OAID=Q);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19943_channelDebug_.debug("connectChannel_()");g=ahL(this,null,this.JSC$19943_path_);this.JSC$19943_channelDebug_.debug("GetForwardChannelUri: "+g);this.JSC$19943_forwardChannelUri_=g;VBp(this)};
su.prototype.disconnect=function(){this.JSC$19943_channelDebug_.debug("disconnect()");X_z(this);if(this.state_==3){var g=this.JSC$19943_nextRid_++,u=this.JSC$19943_forwardChannelUri_.clone();_.WD(u,"SID",this.sid_);_.WD(u,"RID",g);_.WD(u,"TYPE","terminate");rF9(this,u);g=new PZ(this,this.JSC$19943_channelDebug_,this.sid_,g);g.JSC$19924_type_=2;g.JSC$19924_baseUri_=_.Bl(u.clone());u=!1;if(_.Qq.navigator&&_.Qq.navigator.sendBeacon)try{u=_.Qq.navigator.sendBeacon(g.JSC$19924_baseUri_.toString(),"")}catch(q){}!u&&
_.Qq.Image&&((new Image).src=g.JSC$19924_baseUri_,u=!0);u||(g.JSC$19924_xmlHttp_=veE(g.JSC$19924_channel_,null),g.JSC$19924_xmlHttp_.send(g.JSC$19924_baseUri_));g.JSC$19924_requestStartTime_=Date.now();yFn(g)}Wfz(this)};
var Z1p=function(g){g.JSC$19943_backChannelRequest_&&(w_K(g),g.JSC$19943_backChannelRequest_.cancel(),g.JSC$19943_backChannelRequest_=null)},X_z=function(g){Z1p(g);
g.JSC$19943_backChannelTimerId_&&(_.Qq.clearTimeout(g.JSC$19943_backChannelTimerId_),g.JSC$19943_backChannelTimerId_=null);AFn(g);g.forwardChannelRequestPool_.cancel();g.JSC$19943_forwardChannelTimerId_&&(typeof g.JSC$19943_forwardChannelTimerId_==="number"&&_.Qq.clearTimeout(g.JSC$19943_forwardChannelTimerId_),g.JSC$19943_forwardChannelTimerId_=null)};
su.prototype.getState=function(){return this.state_};
var VBp=function(g){CpK(g.forwardChannelRequestPool_)||g.JSC$19943_forwardChannelTimerId_||(g.JSC$19943_forwardChannelTimerId_=!0,_.Jz(g.JSC$19945_onStartForwardChannelTimer_,g),g.JSC$19943_forwardChannelRetryCount_=0)},hO9=function(g,u){if(Ihz(g.forwardChannelRequestPool_)>=g.forwardChannelRequestPool_.JSC$19934_maxSize_-(g.JSC$19943_forwardChannelTimerId_?1:0))return!1;
if(g.JSC$19943_forwardChannelTimerId_)return g.JSC$19943_channelDebug_.debug("Use the retry request that is already scheduled."),g.JSC$19943_outgoingMaps_=u.JSC$19924_pendingMessages_.concat(g.JSC$19943_outgoingMaps_),!0;if(g.state_==1||g.state_==2||g.JSC$19943_forwardChannelRetryCount_>=(g.JSC$19943_failFast_?0:g.JSC$19943_forwardChannelMaxRetries_))return!1;g.JSC$19943_channelDebug_.debug("Going to retry POST");g.JSC$19943_forwardChannelTimerId_=ZEb((0,_.EH)(g.JSC$19945_onStartForwardChannelTimer_,
g,u),Toh(g,g.JSC$19943_forwardChannelRetryCount_));g.JSC$19943_forwardChannelRetryCount_++;return!0};
su.prototype.JSC$19945_onStartForwardChannelTimer_=function(g){if(this.JSC$19943_forwardChannelTimerId_)if(this.JSC$19943_forwardChannelTimerId_=null,this.JSC$19943_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!g){this.JSC$19943_channelDebug_.debug("open_()");this.JSC$19943_nextRid_=Math.floor(Math.random()*1E5);g=this.JSC$19943_nextRid_++;var u=new PZ(this,this.JSC$19943_channelDebug_,"",g),q=this.JSC$19943_extraHeaders_;this.initHeaders_&&(q?(q=_.pH.clone(q),_.pH.extend(q,this.initHeaders_)):
q=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(u.JSC$19924_extraHeaders_=q,q=null);var Q;if(this.fastHandshake_)a:{for(var L=Q=0;L<this.JSC$19943_outgoingMaps_.length;L++){b:{var E=this.JSC$19943_outgoingMaps_[L];if("__data__"in E.map&&(E=E.map.__data__,typeof E==="string")){E=E.length;break b}E=void 0}if(E===void 0)break;Q+=E;if(Q>4096){Q=L;break a}if(Q===4096||L===this.JSC$19943_outgoingMaps_.length-1){Q=L+1;break a}}Q=1E3}else Q=1E3;Q=YMx(this,u,Q);
L=this.JSC$19943_forwardChannelUri_.clone();_.WD(L,"RID",g);_.WD(L,"CVER",22);this.httpSessionIdParam_&&_.WD(L,"X-HTTP-Session-Id",this.httpSessionIdParam_);rF9(this,L);q&&(this.encodeInitMessageHeaders_?Q="headers="+_.nO(uuh(q))+"&"+Q:this.httpHeadersOverwriteParam_&&qw9(L,this.httpHeadersOverwriteParam_,q));b1h(this.forwardChannelRequestPool_,u);this.blockingHandshake_&&_.WD(L,"TYPE","init");this.fastHandshake_?(_.WD(L,"$req",Q),_.WD(L,"SID","null"),u.decodeInitialResponse_=!0,s_L(u,L,null)):s_L(u,
L,Q);this.state_=2}}else this.state_==3&&(g?O1h(this,g):this.JSC$19943_outgoingMaps_.length==0?this.JSC$19943_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):CpK(this.forwardChannelRequestPool_)||(O1h(this),this.JSC$19943_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var O1h=function(g,u){var q;u?q=u.JSC$19924_rid_:q=g.JSC$19943_nextRid_++;var Q=g.JSC$19943_forwardChannelUri_.clone();_.WD(Q,"SID",g.sid_);_.WD(Q,"RID",q);_.WD(Q,"AID",g.JSC$19943_lastArrayId_);rF9(g,Q);g.httpHeadersOverwriteParam_&&g.JSC$19943_extraHeaders_&&qw9(Q,g.httpHeadersOverwriteParam_,g.JSC$19943_extraHeaders_);q=new PZ(g,g.JSC$19943_channelDebug_,g.sid_,q,g.JSC$19943_forwardChannelRetryCount_+1);g.httpHeadersOverwriteParam_===null&&(q.JSC$19924_extraHeaders_=g.JSC$19943_extraHeaders_);
u&&(g.JSC$19943_outgoingMaps_=u.JSC$19924_pendingMessages_.concat(g.JSC$19943_outgoingMaps_));u=YMx(g,q,1E3);q.setTimeout(Math.round(g.JSC$19943_forwardChannelRequestTimeoutMs_*.5)+Math.round(g.JSC$19943_forwardChannelRequestTimeoutMs_*.5*Math.random()));b1h(g.forwardChannelRequestPool_,q);s_L(q,Q,u)},rF9=function(g,u){g.JSC$19943_extraParams_&&_.pH.forEach(g.JSC$19943_extraParams_,function(q,Q){_.WD(u,Q,q)});
g.handler_&&_.pH.forEach({},function(q,Q){_.WD(u,Q,q)})},YMx=function(g,u,q){q=Math.min(g.JSC$19943_outgoingMaps_.length,q);
var Q=g.handler_?(0,_.EH)(g.handler_.JSC$19949_badMapError,g.handler_,g):null;a:{for(var L=g.JSC$19943_outgoingMaps_,E=-1;;){var y=["count="+q];E==-1?q>0?(E=L[0].JSC$19931_mapId,y.push("ofs="+E)):E=0:y.push("ofs="+E);for(var v=!0,J=0;J<q;J++){var f=L[J].JSC$19931_mapId,t=L[J].map;f-=E;if(f<0)E=Math.max(0,L[J].JSC$19931_mapId-100),v=!1;else try{f="req"+f+"_"||"";try{var e=t instanceof Map?t:Object.entries(t);for(var G=_.N(e),R=G.next();!R.done;R=G.next()){var H=_.N(R.value),l=H.next().value,d=H.next().value,
F=d;_.zM(d)&&(F=_.ek(d));y.push(f+l+"="+encodeURIComponent(F))}}catch(V){throw y.push(f+"type="+encodeURIComponent("_badmap")),V;}}catch(V){Q&&Q(t)}}if(v){e=y.join("&");break a}}e=void 0}g=g.JSC$19943_outgoingMaps_.splice(0,q);u.JSC$19924_pendingMessages_=g;return e},KfK=function(g){g.JSC$19943_backChannelRequest_||g.JSC$19943_backChannelTimerId_||(g.JSC$19943_backChannelAttemptId_=1,_.Jz(g.JSC$19945_onStartBackChannelTimer_,g),g.JSC$19943_backChannelRetryCount_=0)},lhC=function(g){if(g.JSC$19943_backChannelRequest_||
g.JSC$19943_backChannelTimerId_||g.JSC$19943_backChannelRetryCount_>=3)return!1;
g.JSC$19943_channelDebug_.debug("Going to retry GET");g.JSC$19943_backChannelAttemptId_++;g.JSC$19943_backChannelTimerId_=ZEb((0,_.EH)(g.JSC$19945_onStartBackChannelTimer_,g),Toh(g,g.JSC$19943_backChannelRetryCount_));g.JSC$19943_backChannelRetryCount_++;return!0};
su.prototype.JSC$19945_onStartBackChannelTimer_=function(){this.JSC$19943_backChannelTimerId_=null;x5C(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19943_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19943_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19943_backChannelRequest_+" "+this.handshakeRttMs_);else{var g=4*this.handshakeRttMs_;this.JSC$19943_channelDebug_.info("BP detection timer enabled: "+g);this.bpDetectionTimerId_=ZEb((0,_.EH)(this.onBpDetectionTimer_,
this),g)}};
su.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19943_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19943_backChannelRequest_.JSC$19924_xmlHttp_!=null){var g=this.JSC$19943_backChannelRequest_.JSC$19924_xmlHttp_.getResponseText();g&&this.JSC$19943_channelDebug_.warning("Timer should have been cancelled : "+g)}this.JSC$19943_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;L$(10);Z1p(this);x5C(this)}else this.JSC$19943_channelDebug_.warning("Invalid operation.")};
var w_K=function(g){g.bpDetectionTimerId_!=null&&(g.JSC$19943_channelDebug_.debug("Cancel the BP detection timer."),_.Qq.clearTimeout(g.bpDetectionTimerId_),g.bpDetectionTimerId_=null)},x5C=function(g){g.JSC$19943_channelDebug_.debug("Creating new HttpRequest");
g.JSC$19943_backChannelRequest_=new PZ(g,g.JSC$19943_channelDebug_,g.sid_,"rpc",g.JSC$19943_backChannelAttemptId_);g.httpHeadersOverwriteParam_===null&&(g.JSC$19943_backChannelRequest_.JSC$19924_extraHeaders_=g.JSC$19943_extraHeaders_);g.JSC$19943_backChannelRequest_.JSC$19924_readyStateChangeThrottleMs_=0;var u=g.JSC$19943_backChannelUri_.clone();_.WD(u,"RID","rpc");_.WD(u,"SID",g.sid_);_.WD(u,"AID",g.JSC$19943_lastArrayId_);_.WD(u,"CI",g.enableStreaming_?"0":"1");!g.enableStreaming_&&g.longPollingTimeout_&&
_.WD(u,"TO",g.longPollingTimeout_);_.WD(u,"TYPE","xmlhttp");rF9(g,u);g.httpHeadersOverwriteParam_&&g.JSC$19943_extraHeaders_&&qw9(u,g.httpHeadersOverwriteParam_,g.JSC$19943_extraHeaders_);g.backChannelRequestTimeoutMs_&&g.JSC$19943_backChannelRequest_.setTimeout(g.backChannelRequestTimeoutMs_);var q=g.JSC$19943_backChannelRequest_,Q=g.JSC$19943_hostPrefix_;q.JSC$19924_type_=1;q.JSC$19924_baseUri_=_.Bl(u.clone());q.JSC$19924_postData_=null;q.decodeChunks_=!0;NoH(q,Q);g.JSC$19943_channelDebug_.debug("New Request created")};
su.prototype.JSC$19945_onBackChannelDead_=function(){this.JSC$19943_deadBackChannelTimerId_!=null&&(this.JSC$19943_deadBackChannelTimerId_=null,Z1p(this),lhC(this),L$(19))};
var AFn=function(g){g.JSC$19943_deadBackChannelTimerId_!=null&&(_.Qq.clearTimeout(g.JSC$19943_deadBackChannelTimerId_),g.JSC$19943_deadBackChannelTimerId_=null)},Gun=function(g,u){g.JSC$19943_channelDebug_.debug("Request complete");
var q=null;if(g.JSC$19943_backChannelRequest_==u){AFn(g);w_K(g);g.JSC$19943_backChannelRequest_=null;var Q=2}else if(H1H(g.forwardChannelRequestPool_,u))q=u.JSC$19924_pendingMessages_,d5Z(g.forwardChannelRequestPool_,u),Q=1;else return;if(g.state_!=0)if(u.JSC$19924_successful_)Q==1?(Arh(u.JSC$19924_postData_?u.JSC$19924_postData_.length:0,Date.now()-u.JSC$19924_requestStartTime_,g.JSC$19943_forwardChannelRetryCount_),VBp(g)):KfK(g);else{var L=u.JSC$19924_lastStatusCode_,E=u.getLastError();if(E==3||
E==0&&L>0)g.JSC$19943_channelDebug_.debug("Not retrying due to error type"),L>200&&(g.errorResponseStatusCode_=u.JSC$19924_lastStatusCode_);else{g.JSC$19943_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Lfx(E,g.errorResponseStatusCode_)});
if(Q==1&&hO9(g,u)||Q==2&&lhC(g))return;g.JSC$19943_channelDebug_.debug("Exceeded max number of retries")}q&&q.length>0&&m5p(g.forwardChannelRequestPool_,q);g.JSC$19943_channelDebug_.debug("Error: HTTP request failed");switch(E){case 1:qD(g,5);break;case 4:qD(g,10);break;case 3:qD(g,6);break;default:qD(g,2)}}},Toh=function(g,u){var q=g.JSC$19943_baseRetryDelayMs_+Math.floor(Math.random()*g.JSC$19943_retryDelaySeedMs_);
g.isActive()||(g.JSC$19943_channelDebug_.debug("Inactive channel"),q*=2);return q*u};
su.prototype.onInput_=function(g,u){for(var q=0;q<g.length;q++){var Q=g[q],L=Q[0];if(L<=this.JSC$19943_lastArrayId_)this.JSC$19943_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+L+", lastArrayId: "+this.JSC$19943_lastArrayId_);else if(L>this.JSC$19943_lastArrayId_+1&&this.JSC$19943_lastArrayId_>-1&&this.JSC$19943_channelDebug_.warning("Received non-consecutive message with arrayId: "+L+", lastArrayId: "+this.JSC$19943_lastArrayId_),this.JSC$19943_lastArrayId_=L,
Q=Q[1],this.state_==2)if(Q[0]=="c"){this.sid_=Q[1];this.JSC$19943_hostPrefix_=Q[2];L=Q[3];L!=null&&(this.JSC$19945_channelVersion_=L,this.JSC$19943_channelDebug_.info("VER="+this.JSC$19945_channelVersion_));L=Q[4];L!=null&&(this.serverVersion_=L,this.JSC$19943_channelDebug_.info("SVER="+this.serverVersion_));Q=Q[5];Q!=null&&typeof Q==="number"&&Q>0&&(this.backChannelRequestTimeoutMs_=Q*=1.5,this.JSC$19943_channelDebug_.info("backChannelRequestTimeoutMs_="+Q));if(Q=u.JSC$19924_xmlHttp_){var E=S3b(Q,
"X-Client-Wire-Protocol");E&&(L=this.forwardChannelRequestPool_,!L.requestPool_&&(_.pZ(E,"spdy")||_.pZ(E,"quic")||_.pZ(E,"h2"))&&(L.JSC$19934_maxSize_=L.maxPoolSizeConfigured_,L.requestPool_=new Set,L.JSC$19934_request_&&(b1h(L,L.JSC$19934_request_),L.JSC$19934_request_=null)));this.httpSessionIdParam_&&((Q=S3b(Q,"X-HTTP-Session-Id"))?(this.httpSessionId_=Q,_.WD(this.JSC$19943_forwardChannelUri_,this.httpSessionIdParam_,Q)):this.JSC$19943_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19949_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-u.JSC$19924_requestStartTime_,this.JSC$19943_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));Q=u;L=ahL(this,this.JSC$19943_supportsCrossDomainXhrs_?this.JSC$19943_hostPrefix_:null,this.JSC$19943_path_);this.JSC$19943_channelDebug_.debug("GetBackChannelUri: "+L);this.JSC$19943_backChannelUri_=L;Q.initialResponseDecoded_?(this.JSC$19943_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
d5Z(this.forwardChannelRequestPool_,Q),L=Q,(E=this.backChannelRequestTimeoutMs_)&&L.setTimeout(E),L.JSC$19924_watchDogTimerId_&&(JFn(L),yFn(L)),this.JSC$19943_backChannelRequest_=Q):KfK(this);this.JSC$19943_outgoingMaps_.length>0&&VBp(this)}else Q[0]!="stop"&&Q[0]!="close"||qD(this,7);else this.state_==3&&(Q[0]=="stop"||Q[0]=="close"?Q[0]=="stop"?qD(this,7):this.disconnect():Q[0]!="noop"&&this.handler_&&this.handler_.JSC$19949_channelHandleArray(Q),this.JSC$19943_backChannelRetryCount_=0)}};
var qD=function(g,u){g.JSC$19943_channelDebug_.info("Error code "+u);if(u==2){var q=(0,_.EH)(g.testNetworkCallback_,g),Q=g.networkTestUrl_,L=!Q;Q=new _.Ir(Q||"//www.google.com/images/cleardot.gif");_.Qq.location&&_.Qq.location.protocol=="http"||_.Xy(Q,"https");_.Bl(Q);L?I3C(Q.toString(),q):iEH(Q.toString(),q)}else L$(2);g.onError_(u)};
su.prototype.testNetworkCallback_=function(g){g?(this.JSC$19943_channelDebug_.info("Successfully pinged google.com"),L$(2)):(this.JSC$19943_channelDebug_.info("Failed to ping google.com"),L$(1))};
su.prototype.onError_=function(g){this.JSC$19943_channelDebug_.debug("HttpChannel: error - "+g);this.state_=0;this.handler_&&this.handler_.JSC$19949_channelError(g);Wfz(this);X_z(this)};
var Wfz=function(g){g.state_=0;g.nonAckedMapsAtChannelClose_=[];if(g.handler_){var u=FfH(g.forwardChannelRequestPool_);if(u.length!=0||g.JSC$19943_outgoingMaps_.length!=0)g.JSC$19943_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+u.length+", outgoing: "+g.JSC$19943_outgoingMaps_.length}),_.BS(g.nonAckedMapsAtChannelClose_,u),_.BS(g.nonAckedMapsAtChannelClose_,g.JSC$19943_outgoingMaps_),g.forwardChannelRequestPool_.JSC$19934_pendingMessages_.length=0,_.Ob(g.JSC$19943_outgoingMaps_),
g.JSC$19943_outgoingMaps_.length=0;
g.handler_.JSC$19949_channelClosed()}},Bo9=function(g){if(g.state_==0)return g.nonAckedMapsAtChannelClose_;
var u=[];_.BS(u,FfH(g.forwardChannelRequestPool_));_.BS(u,g.JSC$19943_outgoingMaps_);return u},ahL=function(g,u,q){var Q=_.X_(q);
Q.JSC$10339_domain_!=""?(u&&_.rJ(Q,u+"."+Q.JSC$10339_domain_),_.Wl(Q,Q.JSC$10339_port_)):(Q=_.Qq.location,Q=lSh(Q.protocol,u?u+"."+Q.hostname:Q.hostname,+Q.port,q));u=g.httpSessionIdParam_;q=g.httpSessionId_;u&&q&&_.WD(Q,u,q);_.WD(Q,"VER",g.JSC$19945_channelVersion_);rF9(g,Q);return Q},veE=function(g,u,q){if(u&&!g.JSC$19943_supportsCrossDomainXhrs_)throw Error("Rk");
u=g.usesFetchStreams_&&!g.JSC$19943_xmlHttpFactory_?new _.GA(new SdC({streamBinaryChunks:q})):new _.GA(g.JSC$19943_xmlHttpFactory_);u.JSC$10103_withCredentials_=g.JSC$19943_supportsCrossDomainXhrs_;return u};
su.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var zOZ=function(){};
_.P=zOZ.prototype;_.P.JSC$19949_channelOpened=function(){};
_.P.JSC$19949_channelHandleArray=function(){};
_.P.JSC$19949_channelError=function(){};
_.P.JSC$19949_channelClosed=function(){};
_.P.isActive=function(){return!0};
_.P.JSC$19949_badMapError=function(){};var L4=function(g,u){_.A5.call(this);this.JSC$19952_channel_=new su(u);this.JSC$19952_url_=g;this.messageUrlParams_=u&&u.messageUrlParams||null;g=u&&u.messageHeaders||null;u&&u.clientProtocolHeaderRequired&&(g?_.pH.set(g,"X-Client-Protocol","webchannel"):g=_.pH.create("X-Client-Protocol","webchannel"));this.JSC$19952_channel_.JSC$19943_extraHeaders_=g;g=u&&u.initMessageHeaders||null;u&&u.messageContentType&&(g?_.pH.set(g,"X-WebChannel-Content-Type",u.messageContentType):g=_.pH.create("X-WebChannel-Content-Type",
u.messageContentType));u&&u.clientProfile&&(g?_.pH.set(g,"X-WebChannel-Client-Profile",u.clientProfile):g=_.pH.create("X-WebChannel-Client-Profile",u.clientProfile));this.JSC$19952_channel_.initHeaders_=g;(g=u&&u.httpHeadersOverwriteParam)&&!_.vS(g)&&(this.JSC$19952_channel_.httpHeadersOverwriteParam_=g);this.supportsCrossDomainXhr_=u&&u.supportsCrossDomainXhr||!1;this.sendRawJson_=u&&u.sendRawJson||!1;(u=u&&u.httpSessionIdParam)&&!_.vS(u)&&(this.JSC$19952_channel_.httpSessionIdParam_=u,_.pH.containsKey(this.messageUrlParams_,
u)&&_.pH.remove(this.messageUrlParams_,u));this.channelHandler_=new QQ(this)};
_.TK(L4,_.A5);L4.prototype.open=function(){this.JSC$19952_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19952_channel_.JSC$19943_supportsCrossDomainXhrs_=!0);this.JSC$19952_channel_.connect(this.JSC$19952_url_,this.messageUrlParams_||void 0)};
L4.prototype.close=function(){this.JSC$19952_channel_.disconnect()};
L4.prototype.send=function(g){var u=this.JSC$19952_channel_;if(typeof g==="string"){var q={};q.__data__=g;g=q}else this.sendRawJson_&&(q={},q.__data__=_.ek(g),g=q);u.JSC$19943_outgoingMaps_.push(new i1h(u.JSC$19943_nextMapId_++,g));u.state_==3&&VBp(u)};
L4.prototype.disposeInternal=function(){this.JSC$19952_channel_.handler_=null;delete this.channelHandler_;this.JSC$19952_channel_.disconnect();delete this.JSC$19952_channel_;L4.superClass_.disposeInternal.call(this)};
var nez=function(g){o3h.call(this);g.__headers__&&(this.headers=g.__headers__,this.statusCode=g.__status__,delete g.__headers__,delete g.__status__);var u=g.__sm__;u?this.data=(this.metadataKey=_.pH.getAnyKey(u))?_.pH.get(u,this.metadataKey):u:this.data=g};
_.TK(nez,o3h);var kux=function(g){UJE.call(this);this.status=1;this.errorCode=g};
_.TK(kux,UJE);var QQ=function(g){this.JSC$19959_channel_=g};
_.TK(QQ,zOZ);QQ.prototype.JSC$19949_channelOpened=function(){this.JSC$19959_channel_.dispatchEvent("w")};
QQ.prototype.JSC$19949_channelHandleArray=function(g){this.JSC$19959_channel_.dispatchEvent(new nez(g))};
QQ.prototype.JSC$19949_channelError=function(g){this.JSC$19959_channel_.dispatchEvent(new kux(g))};
QQ.prototype.JSC$19949_channelClosed=function(){this.JSC$19959_channel_.dispatchEvent("x")};
var SMz=function(g,u){this.transportChannel_=g;this.JSC$19962_channel_=u},oe9=function(g){return Bo9(g.JSC$19962_channel_).map(function(u){var q=g.transportChannel_;
u=u.map;"__data__"in u?(u=u.__data__,q=q.sendRawJson_?_.Xk2(u):u):q=u;return q})};
SMz.prototype.commit=function(g){this.JSC$19962_channel_.forwardChannelFlushedCallback_=g};var U5n=function(g,u,q){for(var Q=0;Q<g.getSize().height;Q++)for(var L=0;L<g.getSize().width;L++)u.call(q,g.array_[Q][L],Q,L,g)},gsz=function(g,u){var q=new y6(g.getSize());
U5n(g,function(Q,L,E){q.array_[L][E]=u.call(void 0,Q,L,E,g)});
return q},a3Z=function(g,u){for(var q=[],Q=0;Q<g;Q++){q[Q]=[];
for(var L=0;L<u;L++)q[Q][L]=0}return q};
y6.prototype.add=function(g){if(!Rgf(this.size_,g.getSize()))throw Error("Uk");return gsz(this,function(u,q,Q){return u+g.array_[q][Q]})};
y6.prototype.equals=function(g,u){if(this.size_.width!=g.size_.width||this.size_.height!=g.size_.height)return!1;u=u||0;for(var q=0;q<this.size_.height;q++)for(var Q=0;Q<this.size_.width;Q++)if(!$IK(this.array_[q][Q],g.array_[q][Q],u))return!1;return!0};
y6.prototype.getSize=function(){return this.size_};
var E4=function(g,u,q){return u>=0&&u<g.size_.height&&q>=0&&q<g.size_.width?g.array_[u][q]:null};
y6.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var uNh=function(g,u,q,Q){if(!(u>=0&&u<g.size_.height&&q>=0&&q<g.size_.width))throw Error("Vk`"+u+"`"+q+"`"+g.size_.height+"`"+g.size_.width);g.array_[u][q]=Q};
y6.prototype.multiply=function(g){if(g instanceof y6){if(this.size_.width!=g.getSize().height)throw Error("Wk");return qCC(this,g)}if(typeof g==="number")return QPz(this,g);throw Error("Xk");};
var qCC=function(g,u){var q=new y6(g.size_.height,u.getSize().width);U5n(q,function(Q,L,E){for(var y=Q=0;y<this.size_.width;y++)Q+=E4(this,L,y)*E4(u,y,E);uNh(q,L,E,Q)},g);
return q},QPz=function(g,u){return gsz(g,function(q){return q*u})};var PB=function(g){LAn.dispatchEvent(new Esn(LAn,g))},LAn=new _.A5,Esn=function(g,u){_.YF.call(this,"statevent",g);
this.stat=u};
_.A(Esn,_.YF);_.P=DE.prototype;_.P.JSC$19972_extraHeaders_=null;_.P.JSC$19972_successful_=!1;_.P.JSC$19972_watchDogTimerId_=null;_.P.JSC$19972_watchDogTimeoutTime_=null;_.P.JSC$19972_requestStartTime_=null;_.P.JSC$19972_type_=null;_.P.JSC$19972_baseUri_=null;_.P.JSC$19972_requestUri_=null;_.P.JSC$19972_postData_=null;_.P.JSC$19972_xmlHttp_=null;_.P.JSC$19972_xmlHttpChunkStart_=0;_.P.trident_=null;_.P.JSC$19972_verb_=null;_.P.JSC$19972_lastError_=null;_.P.JSC$19972_lastStatusCode_=-1;_.P.sendClose_=!0;
_.P.JSC$19972_cancelled_=!1;_.P.JSC$19972_readyStateChangeThrottleMs_=0;_.P.JSC$19972_readyStateChangeThrottle_=null;var Pqt=function(g,u){switch(g){case 0:return"Non-200 return code ("+u+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},NZh={},sPL={};
DE.prototype.setTimeout=function(g){this.timeout_=g};
var vsp=function(g,u,q){g.JSC$19972_type_=1;g.JSC$19972_baseUri_=_.Bl(u.clone());g.JSC$19972_postData_=q;g.decodeChunks_=!0;yPp(g,null)},Dph=function(g,u,q,Q,L){g.JSC$19972_type_=1;
g.JSC$19972_baseUri_=_.Bl(u.clone());g.JSC$19972_postData_=null;g.decodeChunks_=q;L&&(g.sendClose_=!1);yPp(g,Q)},yPp=function(g,u){g.JSC$19972_requestStartTime_=Date.now();
py9(g);g.JSC$19972_requestUri_=g.JSC$19972_baseUri_.clone();y$p(g.JSC$19972_requestUri_,"t",g.JSC$19970_retryId_);g.JSC$19972_xmlHttpChunkStart_=0;g.JSC$19972_xmlHttp_=g.JSC$19970_channel_.JSC$19979_createXhrIo(g.JSC$19970_channel_.JSC$19979_shouldUseSecondaryDomains()?u:null);g.JSC$19972_readyStateChangeThrottleMs_>0&&(g.JSC$19972_readyStateChangeThrottle_=new _.Kr((0,_.EH)(g.JSC$19972_xmlHttpHandler_,g,g.JSC$19972_xmlHttp_),g.JSC$19972_readyStateChangeThrottleMs_));g.JSC$19970_eventHandler_.listen(g.JSC$19972_xmlHttp_,
"readystatechange",g.JSC$19972_readyStateChangeHandler_);u=g.JSC$19972_extraHeaders_?_.pH.clone(g.JSC$19972_extraHeaders_):{};g.JSC$19972_postData_?(g.JSC$19972_verb_="POST",u["Content-Type"]="application/x-www-form-urlencoded",g.JSC$19972_xmlHttp_.send(g.JSC$19972_requestUri_,g.JSC$19972_verb_,g.JSC$19972_postData_,u)):(g.JSC$19972_verb_="GET",g.sendClose_&&!_.u6&&(u.Connection="close"),g.JSC$19972_xmlHttp_.send(g.JSC$19972_requestUri_,g.JSC$19972_verb_,null,u));g.JSC$19970_channel_.notifyServerReachabilityEvent(1);
u=g.JSC$19970_channelDebug_;var q=g.JSC$19972_postData_;if(q){var Q="";q=q.split("&");for(var L=0;L<q.length;L++){var E=q[L].split("=");if(E.length>1){var y=E[0];E=E[1];var v=y.split("_");Q=v.length>=2&&v[1]=="type"?Q+(y+"="+E+"&"):Q+(y+"=redacted&")}}}else Q=null;u.info("XMLHTTP REQ ("+g.JSC$19970_rid_+") [attempt "+g.JSC$19970_retryId_+"]: "+g.JSC$19972_verb_+"\n"+g.JSC$19972_requestUri_+"\n"+Q)};
DE.prototype.JSC$19972_readyStateChangeHandler_=function(g){g=g.target;var u=this.JSC$19972_readyStateChangeThrottle_;u&&_.$k(g)==3?(this.JSC$19970_channelDebug_.debug("Throttling readystatechange."),u.fire()):this.JSC$19972_xmlHttpHandler_(g)};
DE.prototype.JSC$19972_xmlHttpHandler_=function(g){try{if(g==this.JSC$19972_xmlHttp_)a:{var u=_.$k(this.JSC$19972_xmlHttp_),q=this.JSC$19972_xmlHttp_.JSC$10103_lastErrorCode_,Q=this.JSC$19972_xmlHttp_.getStatus();if(_.u6&&!_.BK("420+")){if(u<4)break a}else if(u<3||u==3&&!this.JSC$19972_xmlHttp_.getResponseText())break a;this.JSC$19972_cancelled_||u!=4||q==7||(q==8||Q<=0?this.JSC$19970_channel_.notifyServerReachabilityEvent(3):this.JSC$19970_channel_.notifyServerReachabilityEvent(2));JPK(this);var L=
this.JSC$19972_xmlHttp_.getStatus();this.JSC$19972_lastStatusCode_=L;var E=this.JSC$19972_xmlHttp_.getResponseText();E||this.JSC$19970_channelDebug_.debug("No response text for uri "+this.JSC$19972_requestUri_+" status "+L);this.JSC$19972_successful_=L==200;this.JSC$19970_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19970_rid_+") [ attempt "+this.JSC$19970_retryId_+"]: "+this.JSC$19972_verb_+"\n"+this.JSC$19972_requestUri_+"\n"+u+" "+L);if(this.JSC$19972_successful_){u==4&&jPH(this);if(this.decodeChunks_){for(g=
!0;!this.JSC$19972_cancelled_&&this.JSC$19972_xmlHttpChunkStart_<E.length;){var y=f5x(this,E);if(y==sPL){u==4&&(this.JSC$19972_lastError_=4,PB(15),g=!1);Mtb(this.JSC$19970_channelDebug_,this.JSC$19970_rid_,null,"[Incomplete Response]");break}else if(y==NZh){this.JSC$19972_lastError_=4;PB(16);Mtb(this.JSC$19970_channelDebug_,this.JSC$19970_rid_,E,"[Invalid Chunk]");g=!1;break}else Mtb(this.JSC$19970_channelDebug_,this.JSC$19970_rid_,y,null),ttZ(this,y)}u==4&&E.length==0&&(this.JSC$19972_lastError_=
1,PB(17),g=!1);this.JSC$19972_successful_=this.JSC$19972_successful_&&g;g||(Mtb(this.JSC$19970_channelDebug_,this.JSC$19970_rid_,E,"[Invalid Chunked Response]"),jPH(this),e6E(this))}else Mtb(this.JSC$19970_channelDebug_,this.JSC$19970_rid_,E,null),ttZ(this,E);this.JSC$19972_successful_&&!this.JSC$19972_cancelled_&&(u==4?this.JSC$19970_channel_.JSC$19979_onRequestComplete(this):(this.JSC$19972_successful_=!1,py9(this)))}else L==400&&E.indexOf("Unknown SID")>0?(this.JSC$19972_lastError_=3,PB(13),this.JSC$19970_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19970_rid_+")")):(this.JSC$19972_lastError_=0,PB(14),this.JSC$19970_channelDebug_.warning("XMLHTTP Bad status "+L+" ("+this.JSC$19970_rid_+")")),jPH(this),e6E(this)}else this.JSC$19970_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(v){this.JSC$19970_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var f5x=function(g,u){var q=g.JSC$19972_xmlHttpChunkStart_,Q=u.indexOf("\n",q);if(Q==-1)return sPL;q=Number(u.substring(q,Q));if(isNaN(q))return NZh;Q+=1;if(Q+q>u.length)return sPL;u=u.slice(Q,Q+q);g.JSC$19972_xmlHttpChunkStart_=Q+q;return u};
DE.prototype.cancel=function(){this.JSC$19972_cancelled_=!0;jPH(this)};
var py9=function(g){g.JSC$19972_watchDogTimeoutTime_=Date.now()+g.timeout_;Gff(g,g.timeout_)},Gff=function(g,u){if(g.JSC$19972_watchDogTimerId_!=null)throw Error("Qk");
g.JSC$19972_watchDogTimerId_=vZ((0,_.EH)(g.JSC$19972_onWatchDogTimeout_,g),u)},JPK=function(g){g.JSC$19972_watchDogTimerId_&&(_.Qq.clearTimeout(g.JSC$19972_watchDogTimerId_),g.JSC$19972_watchDogTimerId_=null)};
DE.prototype.JSC$19972_onWatchDogTimeout_=function(){this.JSC$19972_watchDogTimerId_=null;var g=Date.now();g-this.JSC$19972_watchDogTimeoutTime_>=0?(this.JSC$19970_channelDebug_.info("TIMEOUT: "+this.JSC$19972_requestUri_),this.JSC$19972_type_!=2&&this.JSC$19970_channel_.notifyServerReachabilityEvent(3),jPH(this),this.JSC$19972_lastError_=2,PB(18),e6E(this)):(this.JSC$19970_channelDebug_.warning("WatchDog timer called too early"),Gff(this,this.JSC$19972_watchDogTimeoutTime_-g))};
var e6E=function(g){g.JSC$19970_channel_.JSC$19979_isClosed()||g.JSC$19972_cancelled_||g.JSC$19970_channel_.JSC$19979_onRequestComplete(g)},jPH=function(g){JPK(g);
_.Fo(g.JSC$19972_readyStateChangeThrottle_);g.JSC$19972_readyStateChangeThrottle_=null;g.pollingTimer_.stop();g.JSC$19970_eventHandler_.removeAll();if(g.JSC$19972_xmlHttp_){var u=g.JSC$19972_xmlHttp_;g.JSC$19972_xmlHttp_=null;u.abort();u.dispose()}g.trident_&&(g.trident_=null)};
DE.prototype.getLastError=function(){return this.JSC$19972_lastError_};
var ttZ=function(g,u){try{g.JSC$19970_channel_.JSC$19979_onRequestData(g,u),g.JSC$19970_channel_.notifyServerReachabilityEvent(4)}catch(q){}};var Mtb=function(g,u,q,Q){var L=g.info;a:if(q&&q!="y2f%"){try{var E=JSON.parse(q);if(E)for(var y=0;y<E.length;y++)if(Array.isArray(E[y])){var v=E[y];if(!(v.length<2)){var J=v[1];if(Array.isArray(J)&&!(J.length<1)){var f=J[0];if(f!="noop"&&f!="stop")for(var t=1;t<J.length;t++)J[t]=""}}}var e=_.ek(E);break a}catch(G){g.debug("Exception parsing expected JS array - probably was not JS");e=q;break a}e=void 0}else e=q;L.call(g,"XMLHTTP TEXT ("+u+"): "+e+(Q?" "+Q:""))};
p$.prototype.debug=function(g){this.info(g)};
p$.prototype.info=function(){};
p$.prototype.warning=function(){};_.P=WXt.prototype;_.P.JSC$19979_extraHeaders_=null;_.P.JSC$19979_request_=null;_.P.receivedIntermediateResult_=!1;_.P.JSC$19979_path_=null;_.P.state_=null;_.P.JSC$19979_lastStatusCode_=-1;_.P.JSC$19979_hostPrefix_=null;_.P.blockedPrefix_=null;
_.P.connect=function(g){this.JSC$19979_path_=g;g=$px(this.JSC$19977_channel_,this.JSC$19979_path_);PB(3);Date.now();var u=this.JSC$19977_channel_.firstTestResults_;u!=null?(this.JSC$19979_hostPrefix_=u[0],(this.blockedPrefix_=u[1])?(this.state_=1,R6x(this)):(this.state_=2,wyt(this))):(y$p(g,"MODE","init"),this.JSC$19979_request_=new DE(this,this.JSC$19977_channelDebug_),this.JSC$19979_request_.JSC$19972_extraHeaders_=this.JSC$19979_extraHeaders_,Dph(this.JSC$19979_request_,g,!1,null,!0),this.state_=
0)};
var R6x=function(g){var u=cPh(g.JSC$19977_channel_,g.blockedPrefix_,"/mail/images/cleardot.gif");_.Bl(u);X$L(u.toString(),5E3,(0,_.EH)(g.checkBlockedCallback_,g),3,2E3);g.notifyServerReachabilityEvent(1)};
WXt.prototype.checkBlockedCallback_=function(g){if(g)this.state_=2,wyt(this);else{PB(4);var u=this.JSC$19977_channel_;u.JSC$19980_channelDebug_.debug("Test Connection Blocked");u.JSC$19984_lastStatusCode_=u.connectionTest_.JSC$19979_lastStatusCode_;ND(u,9)}g&&this.notifyServerReachabilityEvent(2)};
var wyt=function(g){g.JSC$19977_channelDebug_.debug("TestConnection: starting stage 2");var u=g.JSC$19977_channel_.secondTestResults_;u!=null?(g.JSC$19977_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+u?"Buffered":"Unbuffered"),PB(5),u?(PB(11),HlH(g.JSC$19977_channel_,g,!1)):(PB(12),HlH(g.JSC$19977_channel_,g,!0))):(g.JSC$19979_request_=new DE(g,g.JSC$19977_channelDebug_),g.JSC$19979_request_.JSC$19972_extraHeaders_=g.JSC$19979_extraHeaders_,u=APL(g.JSC$19977_channel_,
g.JSC$19979_hostPrefix_,g.JSC$19979_path_),PB(5),y$p(u,"TYPE","xmlhttp"),Dph(g.JSC$19979_request_,u,!1,g.JSC$19979_hostPrefix_,!1))};
_.P=WXt.prototype;_.P.JSC$19979_createXhrIo=function(g){return this.JSC$19977_channel_.JSC$19979_createXhrIo(g)};
_.P.abort=function(){this.JSC$19979_request_&&(this.JSC$19979_request_.cancel(),this.JSC$19979_request_=null);this.JSC$19979_lastStatusCode_=-1};
_.P.JSC$19979_isClosed=function(){return!1};
_.P.JSC$19979_onRequestData=function(g,u){this.JSC$19979_lastStatusCode_=g.JSC$19972_lastStatusCode_;if(this.state_==0)if(this.JSC$19977_channelDebug_.debug("TestConnection: Got data for stage 1"),u){try{var q=this.JSC$19977_parser_.parse(u)}catch(Q){Zlh(this.JSC$19977_channel_,this);return}this.JSC$19979_hostPrefix_=q[0];this.blockedPrefix_=q[1]}else this.JSC$19977_channelDebug_.debug("TestConnection: Null responseText"),Zlh(this.JSC$19977_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(PB(7),Date.now()):u=="11111"?(PB(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19979_lastStatusCode_=200,this.JSC$19979_request_.cancel(),this.JSC$19977_channelDebug_.debug("Test connection succeeded; using streaming connection"),PB(12),HlH(this.JSC$19977_channel_,this,!0)):(PB(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.P.JSC$19979_onRequestComplete=function(){this.JSC$19979_lastStatusCode_=this.JSC$19979_request_.JSC$19972_lastStatusCode_;this.JSC$19979_request_.JSC$19972_successful_?this.state_==0?(this.JSC$19977_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,R6x(this)):(this.state_=2,wyt(this))):this.state_==2&&(this.JSC$19977_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19977_channelDebug_.debug("Test connection succeeded; using streaming connection"),
PB(12),HlH(this.JSC$19977_channel_,this,!0)):(this.JSC$19977_channelDebug_.debug("Test connection failed; not using streaming"),PB(11),HlH(this.JSC$19977_channel_,this,!1))):(this.JSC$19977_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?PB(9):this.state_==2&&PB(10),Zlh(this.JSC$19977_channel_,this,this.JSC$19979_request_.getLastError()))};
_.P.JSC$19979_shouldUseSecondaryDomains=function(){return this.JSC$19977_channel_.JSC$19979_shouldUseSecondaryDomains()};
_.P.isActive=function(){return this.JSC$19977_channel_.isActive()};
_.P.notifyServerReachabilityEvent=function(g){this.JSC$19977_channel_.notifyServerReachabilityEvent(g)};var l5f=function(g,u){this.JSC$19982_mapId=g;this.map=u;this.context=null};
_.P=JG.prototype;_.P.JSC$19984_extraHeaders_=null;_.P.JSC$19984_extraParams_=null;_.P.forwardChannelRequest_=null;_.P.JSC$19984_backChannelRequest_=null;_.P.JSC$19984_path_=null;_.P.JSC$19984_forwardChannelUri_=null;_.P.JSC$19984_backChannelUri_=null;_.P.JSC$19984_hostPrefix_=null;_.P.JSC$19984_nextRid_=0;_.P.JSC$19984_nextMapId_=0;_.P.handler_=null;_.P.JSC$19984_forwardChannelTimerId_=null;_.P.JSC$19984_backChannelTimerId_=null;_.P.JSC$19984_deadBackChannelTimerId_=null;_.P.connectionTest_=null;
_.P.useChunked_=null;_.P.JSC$19984_lastArrayId_=-1;_.P.JSC$19984_lastPostResponseArrayId_=-1;_.P.JSC$19984_lastStatusCode_=-1;_.P.JSC$19984_forwardChannelRetryCount_=0;_.P.JSC$19984_backChannelRetryCount_=0;_.P.JSC$19984_channelVersion_=8;var I5L={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},ilh=function(g,u,q,Q){_.YF.call(this,"timingevent",g);this.size=u;this.rtt=q;this.retries=Q};
_.TK(ilh,_.YF);var Cqt=function(g){_.YF.call(this,"serverreachability",g)};
_.TK(Cqt,_.YF);JG.prototype.connect=function(g,u,q,Q,L){this.JSC$19980_channelDebug_.debug("connect()");PB(0);this.JSC$19984_path_=u;this.JSC$19984_extraParams_=q||{};Q&&L!==void 0&&(this.JSC$19984_extraParams_.OSID=Q,this.JSC$19984_extraParams_.OAID=L);this.asyncTest_?(vZ((0,_.EH)(this.connectTest_,this,g),100),bln(this)):this.connectTest_(g)};
JG.prototype.disconnect=function(){this.JSC$19980_channelDebug_.debug("disconnect()");dpp(this);if(this.state_==3){var g=this.JSC$19984_nextRid_++,u=this.JSC$19984_forwardChannelUri_.clone();_.WD(u,"SID",this.sid_);_.WD(u,"RID",g);_.WD(u,"TYPE","terminate");FAZ(this,u);g=new DE(this,this.JSC$19980_channelDebug_,this.sid_,g);g.JSC$19972_type_=2;g.JSC$19972_baseUri_=_.Bl(u.clone());(new Image).src=g.JSC$19972_baseUri_.toString();g.JSC$19972_requestStartTime_=Date.now();py9(g)}mpp(this)};
JG.prototype.connectTest_=function(g){this.JSC$19980_channelDebug_.debug("connectTest_()");this.connectionTest_=new WXt(this,this.JSC$19980_channelDebug_);this.connectionTest_.JSC$19979_extraHeaders_=this.JSC$19984_extraHeaders_;this.connectionTest_.JSC$19977_parser_=this.JSC$19980_parser_;this.connectionTest_.connect(g)};
var bln=function(g){g.JSC$19980_channelDebug_.debug("connectChannel_()");g.JSC$19984_ensureInState_(1,0);g.JSC$19984_forwardChannelUri_=$px(g,g.JSC$19984_path_);a5C(g)},dpp=function(g){g.connectionTest_&&(g.connectionTest_.abort(),g.connectionTest_=null);
g.JSC$19984_backChannelRequest_&&(g.JSC$19984_backChannelRequest_.cancel(),g.JSC$19984_backChannelRequest_=null);g.JSC$19984_backChannelTimerId_&&(_.Qq.clearTimeout(g.JSC$19984_backChannelTimerId_),g.JSC$19984_backChannelTimerId_=null);VtE(g);g.forwardChannelRequest_&&(g.forwardChannelRequest_.cancel(),g.forwardChannelRequest_=null);g.JSC$19984_forwardChannelTimerId_&&(_.Qq.clearTimeout(g.JSC$19984_forwardChannelTimerId_),g.JSC$19984_forwardChannelTimerId_=null)},Xyf=function(g,u){if(g.state_==0)throw Error("Yk");
g.JSC$19980_outgoingMaps_.length==1E3&&g.JSC$19980_parser_.stringify(u);g.JSC$19980_outgoingMaps_.push(new l5f(g.JSC$19984_nextMapId_++,u));g.state_!=2&&g.state_!=3||a5C(g)};
JG.prototype.JSC$19979_isClosed=function(){return this.state_==0};
JG.prototype.getState=function(){return this.state_};
var a5C=function(g){g.forwardChannelRequest_||g.JSC$19984_forwardChannelTimerId_||(g.JSC$19984_forwardChannelTimerId_=vZ((0,_.EH)(g.JSC$19984_onStartForwardChannelTimer_,g),0),g.JSC$19984_forwardChannelRetryCount_=0)};
JG.prototype.JSC$19984_onStartForwardChannelTimer_=function(g){this.JSC$19984_forwardChannelTimerId_=null;rPt(this,g)};
var rPt=function(g,u){g.JSC$19980_channelDebug_.debug("startForwardChannel_");if(g.state_==1){if(!u){g.JSC$19980_channelDebug_.debug("open_()");g.JSC$19984_nextRid_=Math.floor(Math.random()*1E5);u=g.JSC$19984_nextRid_++;var q=new DE(g,g.JSC$19980_channelDebug_,"",u);q.JSC$19972_extraHeaders_=g.JSC$19984_extraHeaders_;var Q=WAh(g),L=g.JSC$19984_forwardChannelUri_.clone();_.WD(L,"RID",u);_.WD(L,"CVER","1");FAZ(g,L);vsp(q,L,Q);g.forwardChannelRequest_=q;g.state_=2}}else g.state_==3&&(u?TZp(g,u):g.JSC$19980_outgoingMaps_.length==
0?g.JSC$19980_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):g.forwardChannelRequest_||(TZp(g),g.JSC$19980_channelDebug_.debug("startForwardChannel_ finished, sent request")))},TZp=function(g,u){if(u)if(g.JSC$19984_channelVersion_>6){g.JSC$19980_outgoingMaps_=g.pendingMaps_.concat(g.JSC$19980_outgoingMaps_);
g.pendingMaps_.length=0;var q=g.JSC$19984_nextRid_-1;u=WAh(g)}else q=u.JSC$19970_rid_,u=u.JSC$19972_postData_;else q=g.JSC$19984_nextRid_++,u=WAh(g);var Q=g.JSC$19984_forwardChannelUri_.clone();_.WD(Q,"SID",g.sid_);_.WD(Q,"RID",q);_.WD(Q,"AID",g.JSC$19984_lastArrayId_);FAZ(g,Q);q=new DE(g,g.JSC$19980_channelDebug_,g.sid_,q,g.JSC$19984_forwardChannelRetryCount_+1);q.JSC$19972_extraHeaders_=g.JSC$19984_extraHeaders_;q.setTimeout(1E4+Math.round(1E4*Math.random()));g.forwardChannelRequest_=q;vsp(q,Q,
u)},FAZ=function(g,u){g.handler_&&(g=g.handler_.JSC$19991_getAdditionalParams())&&_.pH.forEach(g,function(q,Q){_.WD(u,Q,q)})},WAh=function(g){var u=Math.min(g.JSC$19980_outgoingMaps_.length,1E3),q=["count="+u];
if(g.JSC$19984_channelVersion_>6&&u>0){var Q=g.JSC$19980_outgoingMaps_[0].JSC$19982_mapId;q.push("ofs="+Q)}else Q=0;for(var L={},E=0;E<u;L={mapId$jscomp$3:void 0},E++){L.mapId$jscomp$3=g.JSC$19980_outgoingMaps_[E].JSC$19982_mapId;var y=g.JSC$19980_outgoingMaps_[E].map;L.mapId$jscomp$3=g.JSC$19984_channelVersion_<=6?E:L.mapId$jscomp$3-Q;try{_.pH.forEach(y,function(v){return function(J,f){q.push("req"+v.mapId$jscomp$3+"_"+f+"="+encodeURIComponent(J))}}(L))}catch(v){q.push("req"+L.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}g.pendingMaps_=g.pendingMaps_.concat(g.JSC$19980_outgoingMaps_.splice(0,u));
return q.join("&")},h6x=function(g){g.JSC$19984_backChannelRequest_||g.JSC$19984_backChannelTimerId_||(g.JSC$19984_backChannelAttemptId_=1,g.JSC$19984_backChannelTimerId_=vZ((0,_.EH)(g.JSC$19984_onStartBackChannelTimer_,g),0),g.JSC$19984_backChannelRetryCount_=0)},OlK=function(g){if(g.JSC$19984_backChannelRequest_||g.JSC$19984_backChannelTimerId_||g.JSC$19984_backChannelRetryCount_>=3)return!1;
g.JSC$19980_channelDebug_.debug("Going to retry GET");g.JSC$19984_backChannelAttemptId_++;g.JSC$19984_backChannelTimerId_=vZ((0,_.EH)(g.JSC$19984_onStartBackChannelTimer_,g),YCZ(g,g.JSC$19984_backChannelRetryCount_));g.JSC$19984_backChannelRetryCount_++;return!0};
JG.prototype.JSC$19984_onStartBackChannelTimer_=function(){this.JSC$19984_backChannelTimerId_=null;this.JSC$19980_channelDebug_.debug("Creating new HttpRequest");this.JSC$19984_backChannelRequest_=new DE(this,this.JSC$19980_channelDebug_,this.sid_,"rpc",this.JSC$19984_backChannelAttemptId_);this.JSC$19984_backChannelRequest_.JSC$19972_extraHeaders_=this.JSC$19984_extraHeaders_;this.JSC$19984_backChannelRequest_.JSC$19972_readyStateChangeThrottleMs_=0;var g=this.JSC$19984_backChannelUri_.clone();_.WD(g,
"RID","rpc");_.WD(g,"SID",this.sid_);_.WD(g,"CI",this.useChunked_?"0":"1");_.WD(g,"AID",this.JSC$19984_lastArrayId_);FAZ(this,g);_.WD(g,"TYPE","xmlhttp");Dph(this.JSC$19984_backChannelRequest_,g,!0,this.JSC$19984_hostPrefix_,!1);this.JSC$19980_channelDebug_.debug("New Request created")};
var HlH=function(g,u,q){g.JSC$19980_channelDebug_.debug("Test Connection Finished");g.useChunked_=g.secondTestResults_==null?q:!g.secondTestResults_;g.JSC$19984_lastStatusCode_=u.JSC$19979_lastStatusCode_;g.asyncTest_||bln(g)},Zlh=function(g,u){g.JSC$19980_channelDebug_.debug("Test Connection Failed");
g.JSC$19984_lastStatusCode_=u.JSC$19979_lastStatusCode_;ND(g,2)};
JG.prototype.JSC$19979_onRequestData=function(g,u){if(this.state_!=0&&(this.JSC$19984_backChannelRequest_==g||this.forwardChannelRequest_==g))if(this.JSC$19984_lastStatusCode_=g.JSC$19972_lastStatusCode_,this.forwardChannelRequest_==g&&this.state_==3)if(this.JSC$19984_channelVersion_>7){try{var q=this.JSC$19980_parser_.parse(u)}catch(Q){q=null}if(Array.isArray(q)&&q.length==3)if(u=q,u[0]==0)a:if(this.JSC$19980_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19984_backChannelTimerId_)this.JSC$19980_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19984_backChannelRequest_)if(this.JSC$19984_backChannelRequest_.JSC$19972_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19972_requestStartTime_)VtE(this),this.JSC$19984_backChannelRequest_.cancel(),this.JSC$19984_backChannelRequest_=null;else break a;else this.JSC$19980_channelDebug_.warning("We do not have a BackChannel established");OlK(this);PB(19)}else this.JSC$19984_lastPostResponseArrayId_=u[1],g=this.JSC$19984_lastPostResponseArrayId_-this.JSC$19984_lastArrayId_,0<
g&&(u=u[2],this.JSC$19980_channelDebug_.debug(u+" bytes (in "+g+" arrays) are outstanding on the BackChannel"),u<37500&&this.useChunked_&&this.JSC$19984_backChannelRetryCount_==0&&!this.JSC$19984_deadBackChannelTimerId_&&(this.JSC$19984_deadBackChannelTimerId_=vZ((0,_.EH)(this.JSC$19984_onBackChannelDead_,this),6E3)));else this.JSC$19980_channelDebug_.debug("Bad POST response data returned"),ND(this,11)}else u!="y2f%"&&(this.JSC$19980_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
ND(this,11));else this.JSC$19984_backChannelRequest_==g&&VtE(this),_.vS(u)||(g=this.JSC$19980_parser_.parse(u),this.onInput_(g))};
JG.prototype.JSC$19984_onBackChannelDead_=function(){this.JSC$19984_deadBackChannelTimerId_!=null&&(this.JSC$19984_deadBackChannelTimerId_=null,this.JSC$19984_backChannelRequest_.cancel(),this.JSC$19984_backChannelRequest_=null,OlK(this),PB(20))};
var VtE=function(g){g.JSC$19984_deadBackChannelTimerId_!=null&&(_.Qq.clearTimeout(g.JSC$19984_deadBackChannelTimerId_),g.JSC$19984_deadBackChannelTimerId_=null)};
JG.prototype.JSC$19979_onRequestComplete=function(g){this.JSC$19980_channelDebug_.debug("Request complete");if(this.JSC$19984_backChannelRequest_==g){VtE(this);this.JSC$19984_backChannelRequest_=null;var u=2}else if(this.forwardChannelRequest_==g)this.forwardChannelRequest_=null,u=1;else return;this.JSC$19984_lastStatusCode_=g.JSC$19972_lastStatusCode_;if(this.state_!=0)if(g.JSC$19972_successful_)if(u==1){u=g.JSC$19972_postData_?g.JSC$19972_postData_.length:0;g=Date.now()-g.JSC$19972_requestStartTime_;
var q=LAn;q.dispatchEvent(new ilh(q,u,g,this.JSC$19984_forwardChannelRetryCount_));a5C(this);this.handler_&&this.handler_.JSC$19991_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else h6x(this);else{q=g.getLastError();if(q==3||q==7||q==0&&this.JSC$19984_lastStatusCode_>0)this.JSC$19980_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19980_channelDebug_.debug("Maybe retrying, last error: "+Pqt(q,this.JSC$19984_lastStatusCode_));var Q;if(Q=u==1)this.forwardChannelRequest_||
this.JSC$19984_forwardChannelTimerId_||this.state_==1||this.JSC$19984_forwardChannelRetryCount_>=2?Q=!1:(this.JSC$19980_channelDebug_.debug("Going to retry POST"),this.JSC$19984_forwardChannelTimerId_=vZ((0,_.EH)(this.JSC$19984_onStartForwardChannelTimer_,this,g),YCZ(this,this.JSC$19984_forwardChannelRetryCount_)),this.JSC$19984_forwardChannelRetryCount_++,Q=!0);if(Q||u==2&&OlK(this))return;this.JSC$19980_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19980_channelDebug_.debug("Error: HTTP request failed");
switch(q){case 1:ND(this,5);break;case 4:ND(this,10);break;case 3:ND(this,6);break;case 7:ND(this,12);break;default:ND(this,2)}}};
var YCZ=function(g,u){var q=5E3+Math.floor(Math.random()*1E4);g.isActive()||(g.JSC$19980_channelDebug_.debug("Inactive channel"),q*=2);return q*u};
JG.prototype.onInput_=function(g){for(var u=0;u<g.length;u++){var q=g[u];this.JSC$19984_lastArrayId_=q[0];q=q[1];this.state_==2?q[0]=="c"?(this.sid_=q[1],this.JSC$19984_hostPrefix_=q[2],q=q[3],q!=null?this.JSC$19984_channelVersion_=q:this.JSC$19984_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19991_channelOpened(),this.JSC$19984_backChannelUri_=APL(this,this.JSC$19984_hostPrefix_,this.JSC$19984_path_),h6x(this)):q[0]=="stop"&&ND(this,7):this.state_==3&&(q[0]=="stop"?ND(this,7):
q[0]!="noop"&&this.handler_&&this.handler_.JSC$19991_channelHandleArray(q),this.JSC$19984_backChannelRetryCount_=0)}};
JG.prototype.JSC$19984_ensureInState_=function(g){if(!_.WS(arguments,this.state_))throw Error("Zk`"+this.state_);};
var ND=function(g,u){g.JSC$19980_channelDebug_.info("Error code "+u);if(u==2||u==9){var q=null;g.handler_&&(q=null);var Q=(0,_.EH)(g.testGoogleComCallback_,g);q||(q=new _.Ir("//www.google.com/images/cleardot.gif"),_.Bl(q));VPf(q.toString(),1E4,Q)}else PB(2);g.onError_(u)};
JG.prototype.testGoogleComCallback_=function(g){g?(this.JSC$19980_channelDebug_.info("Successfully pinged google.com"),PB(2)):(this.JSC$19980_channelDebug_.info("Failed to ping google.com"),PB(1),this.onError_(8))};
JG.prototype.onError_=function(g){this.JSC$19980_channelDebug_.debug("HttpChannel: error - "+g);this.state_=0;this.handler_&&this.handler_.JSC$19991_channelError(g);mpp(this);dpp(this)};
var mpp=function(g){g.state_=0;g.JSC$19984_lastStatusCode_=-1;if(g.handler_)if(g.pendingMaps_.length==0&&g.JSC$19980_outgoingMaps_.length==0)g.handler_.JSC$19991_channelClosed();else{g.JSC$19980_channelDebug_.debug("Number of undelivered maps, pending: "+g.pendingMaps_.length+", outgoing: "+g.JSC$19980_outgoingMaps_.length);var u=_.Ob(g.pendingMaps_),q=_.Ob(g.JSC$19980_outgoingMaps_);g.pendingMaps_.length=0;g.JSC$19980_outgoingMaps_.length=0;g.handler_.JSC$19991_channelClosed(u,q)}},$px=function(g,
u){u=cPh(g,null,u);
g.JSC$19980_channelDebug_.debug("GetForwardChannelUri: "+u);return u},APL=function(g,u,q){u=cPh(g,g.JSC$19979_shouldUseSecondaryDomains()?u:null,q);
g.JSC$19980_channelDebug_.debug("GetBackChannelUri: "+u);return u},cPh=function(g,u,q){var Q=_.X_(q);
if(Q.JSC$10339_domain_!="")u&&_.rJ(Q,u+"."+Q.JSC$10339_domain_),_.Wl(Q,Q.JSC$10339_port_);else{var L=window.location;Q=lSh(L.protocol,u?u+"."+L.hostname:L.hostname,+L.port,q)}g.JSC$19984_extraParams_&&_.pH.forEach(g.JSC$19984_extraParams_,function(E,y){_.WD(Q,y,E)});
_.WD(Q,"VER",g.JSC$19984_channelVersion_);FAZ(g,Q);return Q};
JG.prototype.JSC$19979_createXhrIo=function(g){if(g)throw Error("Rk");g=new _.GA;g.JSC$10103_withCredentials_=!1;return g};
JG.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
JG.prototype.notifyServerReachabilityEvent=function(g){var u=LAn;u.dispatchEvent(new Cqt(u,g))};
JG.prototype.JSC$19979_shouldUseSecondaryDomains=function(){return!1};
new Fmz;var KAE=function(){};
_.P=KAE.prototype;_.P.JSC$19991_channelOpened=function(){};
_.P.JSC$19991_channelHandleArray=function(){};
_.P.JSC$19991_channelSuccess=function(){};
_.P.JSC$19991_channelError=function(){};
_.P.JSC$19991_channelClosed=function(){};
_.P.JSC$19991_getAdditionalParams=function(){return{}};
_.P.isActive=function(){return!0};var xpZ=function(g){g.front_.length===0&&(g.front_=g.back_,g.front_.reverse(),g.back_=[])};
_.P=TOZ.prototype;_.P.enqueue=function(g){this.back_.push(g)};
_.P.peek=function(){xpZ(this);return _.dq(this.front_)};
_.P.getCount=function(){return this.front_.length+this.back_.length};
_.P.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.P.clear=function(){this.front_=[];this.back_=[]};
_.P.contains=function(g){return _.WS(this.front_,g)||_.WS(this.back_,g)};
_.P.remove=function(g){var u=this.front_;var q=Array.prototype.lastIndexOf.call(u,g,u.length-1);q>=0?(_.bZb(u,q),u=!0):u=!1;return u||_.TM(this.back_,g)};
_.P.getValues=function(){for(var g=[],u=this.front_.length-1;u>=0;--u)g.push(this.front_[u]);u=this.back_.length;for(var q=0;q<u;++q)g.push(this.back_[q]);return g};var BZt=function(g){var u=typeof g;return u=="object"&&g||u=="function"?"o"+_.ku(g):u.charAt(0)+g};
_.P=jo.prototype;_.P.getCount=function(){return this.JSC$19995_map_.size};
_.P.add=function(g){this.JSC$19995_map_.set(BZt(g),g);this.size=this.JSC$19995_map_.size};
_.P.addAll=function(g){g=_.VV(g);for(var u=g.length,q=0;q<u;q++)this.add(g[q]);this.size=this.JSC$19995_map_.size};
_.P.removeAll=function(g){g=_.VV(g);for(var u=g.length,q=0;q<u;q++)this.remove(g[q]);this.size=this.JSC$19995_map_.size};
_.P.delete=function(g){g=this.JSC$19995_map_.remove(BZt(g));this.size=this.JSC$19995_map_.size;return g};
_.P.remove=function(g){return this.delete(g)};
_.P.clear=function(){this.JSC$19995_map_.clear();this.size=0};
_.P.isEmpty=function(){return this.JSC$19995_map_.size===0};
_.P.has=function(g){return this.JSC$19995_map_.containsKey(BZt(g))};
_.P.contains=function(g){return this.JSC$19995_map_.containsKey(BZt(g))};
_.P.getValues=function(){return this.JSC$19995_map_.getValues()};
_.P.values=function(){return this.JSC$19995_map_.values()};
_.P.clone=function(){return new jo(this)};
_.P.equals=function(g){return this.getCount()==Am9(g)&&z6Z(this,g)};
var z6Z=function(g,u){var q=Am9(u);if(g.getCount()>q)return!1;!(u instanceof jo)&&q>5&&(u=new jo(u));return Z8b(g,function(Q){var L=u;return L.contains&&typeof L.contains=="function"?L.contains(Q):L.containsValue&&typeof L.containsValue=="function"?L.containsValue(Q):_.xu(L)||typeof L==="string"?_.WS(L,Q):_.pH.containsValue(L,Q)})};
jo.prototype.__iterator__=function(){return this.JSC$19995_map_.__iterator__(!1)};
jo.prototype[Symbol.iterator]=function(){return this.values()};_.ys({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 g=this.query;g&&(this.full||g[0]==="("||(g="("+g+")"),this._mq=window.matchMedia(g),this._add(),this.queryHandler(this._mq))},
queryHandler:function(g){this._setQueryMatches(g.matches)}});var nsh={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(g){return(this._clampValue(g)-this.min)/(this.max-this.min)},
_clampValue:function(g){return Math.min(this.max,Math.max(this.min,this._calcStep(g)))},
_calcStep:function(g){g=parseFloat(g);if(!this.step)return g;g=Math.round((g-this.min)/this.step);return this.step<1?g/(1/this.step)+this.min:g*this.step+this.min},
_validateValue:function(){var g=this._clampValue(this.value);this.value=this.oldValue=isNaN(g)?this.oldValue:g;return this.value!==g},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var kfZ=[_.LJ,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(g){_.Eg(g).path[0]!==this&&(this.resetLayout(),g.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var g=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Tn(this._layoutDebouncer,_.P1,g);_.hH(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var g=this;requestAnimationFrame(function(){g.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(g){this.resizerShouldNotify(g)&&this._notifyDescendant(g)},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 SCf=[_.fg5,{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(g,u){var q=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[g];if(!q)throw new ReferenceError(this._getUndefinedMsg(g));g=this._boundEffect(q,u||{});g.setUp();return g},
_effectsChanged:function(g,u,q){this._tearDownEffects();g&&q&&(g.split(" ").forEach(function(Q){var L;Q!==""&&((L=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Q])?this._effects.push(this._boundEffect(L,u[Q])):console.warn(this._getUndefinedMsg(Q)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(g,u){u=u||{};var q=parseFloat(u.startsAt||0),Q=parseFloat(u.endsAt||1),L=Q-q,E=function(){};
Q=q===0&&Q===1?g.run:function(y,v){g.run.call(this,Math.max(0,(y-q)/L),v)};
return{setUp:g.setUp?g.setUp.bind(this,u):E,run:g.run?Q.bind(this):E,tearDown:g.tearDown?g.tearDown.bind(this):E}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(g){g.setUp()!==!1&&this._effectsRunFn.push(g.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(g){g.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(g,u){this._effectsRunFn&&this._effectsRunFn.forEach(function(q){q(g,u)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var g=this._clampedScrollTop;this._updateScrollState(g);this.threshold>0&&this._setThresholdTriggered(g>=this.threshold)}},
_getDOMRef:function(g){console.warn("_getDOMRef","`"+g+"` is undefined")},
_getUndefinedMsg:function(g){return"Scroll effect `"+g+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+g+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("$k`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(g){var u={};g=parseFloat(g.scalar);u.background=this._getDOMRef("background");u.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");u.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");u.deltaBg=u.backgroundFrontLayer.offsetHeight-u.background.offsetHeight;u.deltaBg===0?(isNaN(g)&&(g=.8),u.deltaBg=(this._dHeight||0)*g):(isNaN(g)&&(g=
1),u.deltaBg*=g);this._fxParallaxBackground=u},
run:function(g){var u=this._fxParallaxBackground;this.transform("translate3d(0px, "+u.deltaBg*Math.min(1,g)+"px, 0px)",u.backgroundFrontLayer);u.backgroundRearLayer&&this.transform("translate3d(0px, "+u.deltaBg*Math.min(1,g)+"px, 0px)",u.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var osh;var Upn;_.ys({_template:function(){if(Upn!==void 0)return Upn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;osh===void 0&&(osh=document.createElement("template"));var Q=osh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Upn=g},
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(){_.xt(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(g){g.keyCode===27&&(g.preventDefault(),this.close())},
_track:function(g){if(!this.persistent&&!this.disableSwipe)switch(g.preventDefault(),g.detail.state){case "start":this._trackStart(g);break;case "track":this._trackMove(g);break;case "end":this._trackEnd(g)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var g=this.$.contentContainer.getBoundingClientRect();this._savedWidth=g.width;this._translateOffset=this.position==="left"?g.left:g.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(g){this._trackDetails&&(this._translateDrawer(g.detail.dx+this._translateOffset),this._trackDetails.push({dx:g.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(g){if(this._trackDetails){var u=g.detail.dx+this._translateOffset,q=this.getWidth();u=this.position==="left"?u>=0||u<=-q:u<=0||u>=q;if(!u){var Q=this._trackDetails;this._trackDetails=null;this._flingDrawer(g,Q);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}q/=2;g.detail.dx<-q?this.opened=this.position==="right":g.detail.dx>q&&(this.opened=this.position==="left");u?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(g,u){for(var q=Date.now(),Q=q-100,L,E=0,y=u.length-1;E<=y;){var v=E+y>>1,J=u[v];J.timeStamp>=Q?(L=J,y=v-1):E=v+1}return L?(g.detail.dx-L.dx)/(q-L.timeStamp||1):0},
_flingDrawer:function(g,u){u=this._calculateVelocity(g,u);if(!(Math.abs(u)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;g=g.detail.dx+this._translateOffset;var q=this.getWidth(),Q=this.position==="left",L=u>0;L?(u=Math.max(u,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(u=Math.min(u,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");u=this._FLING_INITIAL_SLOPE*(!L&&Q?-(g+q):L&&!Q?q-g:-g)/u;this._styleTransitionDuration(u);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,u)}},
_styleTransitionDuration:function(g){this.style.transitionDuration=g+"ms";this.$.contentContainer.style.transitionDuration=g+"ms";this.$.scrim.style.transitionDuration=g+"ms"},
_styleTransitionTimingFunction:function(g){this.$.contentContainer.style.transitionTimingFunction=g;this.$.scrim.style.transitionTimingFunction=g},
_translateDrawer:function(g){var u=this.getWidth();this.position==="left"?(g=Math.max(-u,Math.min(g,0)),this.$.scrim.style.opacity=1+g/u):(g=Math.max(0,Math.min(g,u)),this.$.scrim.style.opacity=1-g/u);this.translate3d(g+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var g=this._drawerState;g===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;g!==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=""),g!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var g=_.Eg(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"])');g.length>0?(this._firstTabStop=g[0],this._lastTabStop=g[g.length-1]):
this._lastTabStop=this._firstTabStop=null;(g=this.getAttribute("tabindex"))&&parseInt(g,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(g){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||g.keyCode!==9||(g.shiftKey?this._firstTabStop&&_.Eg(g).localTarget===this._firstTabStop&&(g.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Eg(g).localTarget===this._lastTabStop&&(g.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(g,u){this.toggleClass("visible",g&&!u,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 g4p;var uYx;var qmp=function(){};
_.P=qmp.prototype;_.P._scrollTargetChanged=function(){};
_.P.scroll=function(){};
_.P._isValidScrollTarget=function(){};
_.P._toggleScrollListener=function(){};
_.P.toggleScrollListener=function(){};
_.P.createEffect=function(){};
_.P._effectsChanged=function(){};
_.P._layoutIfDirty=function(){};
_.P._boundEffect=function(){};
_.P._setUpEffect=function(){};
_.P._tearDownEffects=function(){};
_.P._runEffects=function(){};
_.P._scrollHandler=function(){};
_.P._scrollStateChanged=function(){};
_.P._getUndefinedMsg=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P._appResetLayoutHandler=function(){};
_.P.resetLayout=function(){};
_.P._notifyLayoutChanged=function(){};
_.P._notifyDescendantResize=function(){};
_.P._setThresholdTriggered=function(){};
qmp=_.ys({_template:function(){if(uYx!==void 0)return uYx;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;g4p===void 0&&(g4p=document.createElement("template"));var Q=g4p;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return uYx=g},
is:"tp-yt-app-header",behaviors:[SCf,kfZ],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 g=_.Eg(this.$.slot).getDistributedNodes(),u=0,q;q=g[u];u++)if(q.nodeType===Node.ELEMENT_NODE)if(q.hasAttribute("sticky")){this._stickyElRef=q;break}else this._stickyElRef||(this._stickyElRef=q);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var g=this._clampedScrollTop,u=this._height===0||g===0,q=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;u||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();u?this._updateScrollState(g,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=q}},
_updateScrollState:function(g,u){if(this._height!==0){var q=0,Q=this._top;var L=this._maxHeaderTop;var E=g-this._lastScrollTop,y=Math.abs(E),v=g>this._lastScrollTop,J=performance.now();this._mayMove()&&(q=this._clamp(this.reveals?Q+E:g,0,L));g>=this._dHeight&&(q=this.condenses&&!this.fixed?Math.max(this._dHeight,q):q,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&y<100){if(J-this._initTimestamp>300||this._wasScrollingDown!==v)this._initScrollTop=g,this._initTimestamp=J;g>=L&&
(Math.abs(this._initScrollTop-g)>30||y>10?(v&&g>=L?q=L:!v&&g>=this._dHeight&&(q=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((q-Q)/(E/(J-this._lastTimestamp)),0,300)+"ms"):q=this._top)}L=this._dHeight===0?g>0?1:0:q/this._dHeight;u||(this._lastScrollTop=g,this._top=q,this._wasScrollingDown=v,this._lastTimestamp=J);if(u||L!==this._progress||Q!==q||g===0)this._progress=L,this._runEffects(L,q),this._transformHeader(q)}},
_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(g){this.translate3d(0,-g+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&g>=this._stickyElTop?Math.min(g,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(g,u,q){return Math.min(q,Math.max(u,g))},
_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),_.Eg(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(g){switch(g){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Eg(this).querySelector("[main-title]");case "condensedTitle":return _.Eg(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var QwE;var Lwn;_.ys({_template:function(){if(Lwn!==void 0)return Lwn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;QwE===void 0&&(QwE=document.createElement("template"));var Q=QwE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Lwn=g},
is:"tp-yt-app-header-layout",behaviors:[kfZ],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 _.Eg(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var g=this.header;if(this.isAttached&&g){this.$.wrapper.classList.remove("initializing");g.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)g.style.left="",g.style.right="";else{var u=this.getBoundingClientRect(),q=document.documentElement.clientWidth-u.right;g.style.left=u.left+"px";g.style.right=q+"px"}u=this.$.contentContainer.style;q=g.offsetHeight;g.fixed&&!g.condenses&&this.hasScrollingRegion?
(u.marginTop=q+"px",u.paddingTop=""):(u.paddingTop=q+"px",u.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 E4h=_.CT(['<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>']),
PYf=_.$mH(E4h);PYf.setAttribute("style","display: none;");document.head.appendChild(PYf.content);var N7z;var swE;/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
_.ys({_template:function(){if(swE!==void 0)return swE;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;N7z===void 0&&(N7z=document.createElement("template"));var Q=N7z;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return swE=g},
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(g,u){var q=this._resolveSrc(g);q!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",g===""||u?this._setLoading(!1):(this._resolvedSrc=q,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 g=this.$.sizedImgDiv.style,u=this.$.placeholder.style;g.backgroundSize=u.backgroundSize=this.sizing;g.backgroundPosition=u.backgroundPosition=this.sizing?this.position:"";g.backgroundRepeat=u.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(g){g=_.gU(g,this.$.baseURIAnchor.href);g.length>=2&&g[0]==="/"&&g[1]!=="/"&&(g=(location.origin||location.protocol+"//"+location.host)+g);return g}});var yWK;var v4x;_.ys({_template:function(){if(v4x!==void 0)return v4x;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=
g.content,q=u.insertBefore;yWK===void 0&&(yWK=document.createElement("template"));var Q=yWK;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return v4x=g},
is:"tp-yt-iron-pages",behaviors:[_.LJ,_.Ar],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var DUh;var ppz;_.ys({_template:function(){if(ppz!==void 0)return ppz;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;DUh===void 0&&(DUh=document.createElement("template"));var Q=DUh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return ppz=g},
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(g){return g?"false":"true"},
_headingChanged:function(g){var u=this.getAttribute("heading"),q=this.getAttribute("aria-label");typeof q==="string"&&q!==u||this.setAttribute("aria-label",g)},
_computeHeadingClass:function(g){return g?" over-image":""},
_computeAnimated:function(g){return g}});var JWE;var jwp;_.ys({_template:function(){if(jwp!==void 0)return jwp;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;JWE===void 0&&(JWE=document.createElement("template"));var Q=JWE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return jwp=g},
is:"tp-yt-paper-checkbox",behaviors:[_.$Ho],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.xt(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var g=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),u="px",q=g.match(/[A-Za-z]+$/);q!==null&&(u=q[0]);g=parseFloat(g);q=8/3*g;u==="px"&&(q=Math.floor(q),q%2!==g%2&&q++);this.updateStyles({"--paper-checkbox-ink-size":q+
u})}})},
_computeCheckboxClass:function(g,u){var q="";g&&(q+="checked ");u&&(q+="invalid");return q},
_computeCheckmarkClass:function(g){return g?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.exZ._createRipple.call(this)}});var fmx;var Mvz;var tvh=_.ox.IronButtonState,eCf=(0,_.ug)(HTMLElement);
_.ys({_template:function(){if(Mvz!==void 0)return Mvz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;fmx===void 0&&(fmx=document.createElement("template"));var Q=fmx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return Mvz=g},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[tvh,_.kI,_.Ut,_.qs],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(g){var u=(0,_.j7)(this);u.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:g});u.shadowRoot.appendChild(g);return eCf.prototype._attachDom.call(this,g)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var g=this.contentElement;g&&g.selectedItem&&this._setSelectedItem(g.selectedItem)},
get contentElement(){for(var g=_.Eg(this.$.content).getDistributedNodes(),u=0,q=g.length;u<q;u++)if(g[u].nodeType===Node.ELEMENT_NODE)return g[u]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(g){this._setSelectedItem(g.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(g){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g)===this&&this.open()},
_selectedItemChanged:function(g){var u="";g?u=g.label||g.getAttribute("label")||g.textContent.trim():u="";this.value=u;this._setSelectedItemLabel(u)},
_computeMenuVerticalOffset:function(g,u){return u?u:g?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var g=this.opened?"true":"false",u=this.contentElement;u&&u.setAttribute("aria-expanded",g)}});var Gbh;var $UK;_.ys({_template:function(){if($UK!==void 0)return $UK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
var u=g.content,q=u.insertBefore;Gbh===void 0&&(Gbh=document.createElement("template"));var Q=Gbh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return $UK=g},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var RCf;var wpb;_.ys({_template:function(){if(wpb!==void 0)return wpb;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;RCf===void 0&&(RCf=document.createElement("template"));var Q=RCf;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return wpb=g},
is:"tp-yt-paper-progress",behaviors:[nsh],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(g){this.toggleClass("indeterminate",g,this.$.primaryProgress)},
_transformProgress:function(g,u){g.style.transform=g.style.webkitTransform="scaleX("+u/100+")"},
_mainRatioChanged:function(g){this._transformProgress(this.$.primaryProgress,g)},
_progressChanged:function(g,u,q,Q,L){g=this._clampValue(g);u=this._clampValue(u);var E=this._calcRatio(g)*100,y=this._calcRatio(u)*100;this._setSecondaryRatio(E);this._transformProgress(this.$.secondaryProgress,E);this._transformProgress(this.$.primaryProgress,y);this.secondaryProgress=g;L?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",u);this.setAttribute("aria-valuemin",q);this.setAttribute("aria-valuemax",Q)},
_disabledChanged:function(g){this.setAttribute("aria-disabled",g?"true":"false")},
_hideSecondaryProgress:function(g){return g===0}});var cWp;var HG9;var AWt=function(){};
_.P=AWt.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P._createRipple=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
AWt=_.ys({is:"tp-yt-paper-radio-button",_template:function(){if(HG9!==void 0)return HG9;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;cWp===void 0&&(cWp=document.createElement("template"));var Q=cWp;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return HG9=g},
behaviors:[_.$Ho],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(){_.xt(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var g=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),u=Math.floor(3*g);u%2!==g%2&&u++;this.updateStyles({"--paper-radio-button-ink-size":u+"px"})}})}});var ZGn;var lmf;_.ys({_template:function(){if(lmf!==void 0)return lmf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;ZGn===void 0&&(ZGn=document.createElement("template"));var Q=ZGn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return lmf=g},
is:"tp-yt-paper-radio-group",behaviors:[_.JL0],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(g){var u=this._valueToItem(g);if(!u||!u.hasAttribute("disabled")){if(this.selected){u=this._valueToItem(this.selected);if(this.selected==g)if(this.allowEmptySelection)g="";else{u&&(u.checked=!0);return}u&&
(u.checked=!1)}_.Ar.select.apply(this,[g]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(g){this._focusPrevious();g.preventDefault();this._activateFocusedItem()},
_onDownKey:function(g){this._focusNext();g.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(g){_.pKa._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(g){_.pKa._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Ar._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.QG._resetTabindices.apply(this,arguments);this.items.forEach(function(g){g.removeAttribute("aria-selected")},this)}});var ImE;var iGp;var CYh=function(){};
_.P=CYh.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._calcRatio=function(){};
_.P._clampValue=function(){};
_.P._calcStep=function(){};
_.P._validateValue=function(){};
_.P._update=function(){};
_.P._setImmediateValue=function(){};
_.P._setExpand=function(){};
_.P._setDragging=function(){};
_.P._setTransiting=function(){};
_.P._setMarkers=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setRatio=function(){};
CYh=_.ys({_template:function(){if(iGp!==void 0)return iGp;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;ImE===void 0&&(ImE=document.createElement("template"));var Q=ImE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return iGp=g},
is:"tp-yt-paper-slider",behaviors:[_.n8,_.Ut,_.G0$,nsh],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&&_.IK(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(g,u,q){this.setAttribute("aria-valuemin",u);this.setAttribute("aria-valuemax",q);this.setAttribute("aria-valuenow",g);this._positionKnob(this._calcRatio(g)*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(g){this._setImmediateValue(this._calcStep(this._calcKnobPosition(g)));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(g){return(this.max-this.min)*g/100+this.min},
_onTrack:function(g){g.stopPropagation();switch(g.detail.state){case "start":this._trackStart(g);break;case "track":this._trackX(g);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(g){this.dragging||this._trackStart(g);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,g.detail.dx*(this._isRTL?-1:1)));g=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(g);g=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(g+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var g=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;g.transform=g.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(g){this._expandKnob();g.preventDefault();this.focus()},
_bartrack:function(g){this._allowBarEvent(g)&&this._onTrack(g)},
_barclick:function(g){this._w=this.$.sliderBar.offsetWidth;var u=this.$.sliderBar.getBoundingClientRect();u=(g.detail.x-u.left)/this._w*100;this._isRTL&&(u=100-u);var q=this.ratio;this._setTransiting(!0);this._positionKnob(u);q===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
g.preventDefault();this.focus()},
_bardown:function(g){this._allowBarEvent(g)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(g))},
_knobTransitionEnd:function(g){g.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(g,u,q,Q){Q||this._setMarkers([]);u=Math.round((q-u)/this.step);u>g&&(u=g);if(u<0||!isFinite(u))u=0;this._setMarkers(Array(u))},
_mergeClasses:function(g){return Object.keys(g).filter(function(u){return g[u]}).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(g){return!this.ignoreBarTouch||g.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(g){this._isRTL?this._incrementKey(g):this._decrementKey(g)},
_rightKey:function(g){this._isRTL?this._decrementKey(g):this._incrementKey(g)},
_incrementKey:function(g){this.disabled||(g.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),g.preventDefault())},
_decrementKey:function(g){this.disabled||(g.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),g.preventDefault())},
_changeValue:function(g){this.value=g.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(g){g.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.exZ._createRipple.call(this)},
_focusedChanged:function(g){g&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=g?"":"none",this._ripple.holdDown=g)}});var bGH;var dUC;var s4=null,Fwf=function(){};
_.P=Fwf.prototype;_.P.fit=function(){};
_.P._discoverInfo=function(){};
_.P.resetFit=function(){};
_.P.refit=function(){};
_.P.position=function(){};
_.P.constrain=function(){};
_.P._sizeDimension=function(){};
_.P.__sizeDimension=function(){};
_.P.center=function(){};
_.P.__getNormalizedRect=function(){};
_.P.__getOffscreenArea=function(){};
_.P.__getPosition=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P.toggle=function(){};
_.P.open=function(){};
_.P.close=function(){};
_.P.cancel=function(){};
_.P.invalidateTabbables=function(){};
_.P._ensureSetup=function(){};
_.P._canceledChanged=function(){};
_.P._withBackdropChanged=function(){};
_.P._prepareRenderOpened=function(){};
_.P._finishRenderOpened=function(){};
_.P._finishRenderClosed=function(){};
_.P._preparePositioning=function(){};
_.P._finishPositioning=function(){};
_.P._applyFocus=function(){};
_.P._onCaptureClick=function(){};
_.P._onCaptureFocus=function(){};
_.P._onCaptureEsc=function(){};
_.P._onCaptureTab=function(){};
_.P._onIronResize=function(){};
_.P._onNodesChange=function(){};
_.P.__ensureFirstLastFocusables=function(){};
_.P.__openedChanged=function(){};
_.P.__deraf=function(){};
_.P.__updateScrollObservers=function(){};
_.P.__addScrollListeners=function(){};
_.P.__removeScrollListeners=function(){};
_.P.__isValidScrollAction=function(){};
_.P.__onCaptureScroll=function(){};
_.P.__saveScrollPosition=function(){};
_.P.__restoreScrollPosition=function(){};
_.P._setCanceled=function(){};
Fwf=_.ys({_template:function(){if(dUC!==void 0)return dUC;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;bGH===void 0&&(bGH=document.createElement("template"));var Q=bGH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return dUC=g},
is:"tp-yt-paper-toast",behaviors:[_.RB],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(){_.qI._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Ms.requestAvailability()},
show:function(g){typeof g=="string"&&(g={text:g});for(var u in g)u.indexOf("_")===0?_.qI._warn('The property "'+u+'" is private and was not set.'):u in this?this[u]=g[u]:_.qI._warn('The property "'+u+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(g){g&&g.target===this&&g.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(s4&&s4!==this&&s4.close(),s4=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):s4===this&&(s4=null);_.$f._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(g){this.positionTarget=g},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var mUZ=new _.d2("disablePersonalizationAction");var dPx=new _.d2("showDmaConsentFlowCommand");var F2n=new _.d2("showMmgNoticeCommand");var amC=new _.d2("saveConsentAction");var Vv9=new _.d2("navigateAction");var Xpt=new _.d2("replaceFeedContentAction");var rWz=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(rWz,_.fv);var Wwb=_.vAq(rWz);var T7h=new _.d2("imageTileRenderer");var hCx=new _.d2("promotedSparklesWebRenderer");var YmH=new _.d2("adGridCardCollectionViewModel");var OGx=new _.d2("addRendererToItemSectionAction");var KwZ=new _.d2("updateTopbarAvatarAction");var xUp=new _.d2("channelHandleValidationResultRenderer");var B7h=new _.d2("generateHandleFromNameResultRenderer");var zCZ=new _.d2("channelHandleInputRenderer");var n49=new _.d2("copyLinkRenderer");var kb9=new _.d2("carouselTitleViewModel");var SmK=new _.d2("ctaCarouselItemViewModel");var o4z=new _.d2("timedCommand");var UUh=new _.d2("textFieldViewModel");var grH=new _.d2("crowdsourcedContextUserRatingFormFlowState");var usz=new _.d2("noteViewModel");var qyp=new _.d2("alertCommand");var Qdz=new _.d2("clearCookieAction");var LFE=new _.d2("engagementPanelHeaderShowNavigationButtonCommand");var Erh=new _.d2("getMultiPageMenuAction");var P5x=new _.d2("addToGuideSectionAction"),NRb=new _.d2("removeFromGuideSectionAction");var sdh=new _.d2("hideEngagementPanelScrimAction");var yV9=new _.d2("updateNotificationsUnseenCountAction");var vrz=new _.d2("resetChannelUnreadCountCommand");var D2n=new _.d2("resetSubscriptionsUnreadDotCommand");var pwH=new _.d2("selectLanguageCommand");var xHK=new _.d2("sendFeedbackAction");var JVZ=new _.d2("setActivePanelItemAction");var jdx=new _.d2("showEngagementPanelScrimAction");var fGz=new _.d2("updateEngagementPanelAction");var MmH=new _.d2("updateSearchInVideoResultsAction");var tmK=new _.d2("uploadImageToScottyCommand");var eDh=new _.d2("webWatchNextResponseExtensionData");var GVE=new _.d2("manageLabsStateCommand");var $2h=new _.d2("registerPromoCommand");var RDp=new _.d2("setPushNotificationsEnabledCommand");var wwz=new _.d2("updateSentimentBarStateCommand");var cVC=new _.d2("desktopTopbarRenderer");var Hmz=new _.d2("surveyFollowUpRenderer");var AVh=new _.d2("formRenderer");var Zmt=new _.d2("inlineFormRenderer");var lGZ=new _.d2("handlesClaimingRadioOptionRenderer");var IGZ=new _.d2("hotkeyDialogRenderer");var imC=new _.d2("playlistSidebarPrimaryInfoRenderer");var C5C=new _.d2("transcriptCueGroupRenderer");var bmt=new _.d2("transcriptCueRenderer");var d2t=new _.d2("transcriptFooterRenderer");var FFE=new _.d2("engagementPanelAdSubtitleRenderer");var m2E=new _.d2("videoDescriptionFantasySectionViewModel");var aGb=new _.d2("inlineSurveyRenderer");var Vm9=new _.d2("radioButtonSurveyOptionRenderer"),Xwf=new _.d2("checkboxSurveyOptionRenderer");var rVZ=new _.d2("showSurveyCommand");var yQ=new _.d2("abuseReportFlowState");var WFz=new _.d2("modifyReportFormCommand");var TR9=new _.d2("feedbackFormFlowState");var $o9=new _.d2("inputBoxViewModel");var RwE=new _.d2("flowRootRenderer");var oyt=new _.d2("lengthValidationRule");var gbf=new _.d2("regexValidationRule");var qfz=new _.d2("selectedValidationRule");var wEK=new _.d2("accountLinkCommand");var cKK=new _.d2("accountUnlinkCommand");var HPh=new _.d2("deleteClipEngagementPanelCommand");var AKC=new _.d2("logAccountLinkingEventCommand");var ZPp=new _.d2("loopCommand");var r2x=new _.d2("guideCollapsibleEntryRenderer");var lth=new _.d2("guideDownloadsEntryRenderer");var XMh=new _.d2("guideEntryRenderer");var ItE=[0,_.mE,_.h2,_.OQ];var iPz=[0,_.b$,-2,Cg9];var Cih=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YL(g)};
_.A(Cih,_.fv);Cih.prototype.getFeature=function(){return _.J2(this,6)};
Cih.prototype.hasFeature=function(){return _.C9(_.Uc(this,6))!=null};var bPz=[0,_.mE];var doh=_.lO(Cih,[0,_.b$,-2,Cg9,_.b$,_.mE,-1,_.Cp,-1,_.mE,-3,_.VOa,_.dm,iPz,_.mE,-1,ICt,_.Cp,_.mE,ItE,[0,[0,_.mE,-2,2,_.mE,-1,[0,_.mE],[0,_.h2,_.mE],[0,_.h2],[0,_.mE],2,[0,_.h2,2,[0,[2,3],_.h2,GPK,_.rm,[0,[1,2,3],GPK,-2]],[0,_.XE,iFf],1,[0,CTZ],1,[0,_.mE],1,[0,[2],_.mE,_.rm,[0,_.b$]]],[0,_.dm],[0,[1,2],_.rm,[0,_.mE],_.rm,[0,_.mE,_.Tw,-1]],[0,_.h2],[0,_.mE,[0,[1,2,3,4],_.rm,[0,[0,_.mE],bPz],_.rm,[0,[0,_.mE],bPz],_.rm,[0,bPz],_.rm,[0,[0,_.mE],bPz]]],[0,_.mE],1,[0,_.mE,_.h2],1,[0,_.mE],[0,_.dm],[0,_.mE,
_.h2,-1,[0,_.mE,-4]],[0,_.mE],[0,_.mE,-2],1,[0,_.mE],[0,_.dm],[0,_.dm,_.mE],1,[0,_.dm],[0],[0]],_.mE,_.h2,_.I6,1,_.WM,_.mE,_.h2],_.b$,_.WM,_.h2,-1,_.b$]);var FDh=new _.d2("interstitialViewModel");var moH=new _.d2("changeCreatorEndscreenVisibilityCommand");var at9=new _.d2("liveChatCallForQuestionsRenderer");var Vcb=new _.d2("getLocationCommand");var XEh=new _.d2("locationCollectionCommand");var rKC=new _.d2("chipsShelfViewModel");var vB=new _.d2("cinematicContainerRenderer");var Dz=new _.d2("changeMarkersVisibilityCommand");var WDH=new _.d2("updateTimedMarkersSyncObserverCommand");var TWL=new _.d2("storiesItemViewModel");var hwZ=new _.d2("talkToRecsViewModel");var rLZ=new _.d2("timelyActionViewModel");var YSh=new _.d2("timelyActionsOverlayViewModel");var OPL=new _.d2("addToRemoteQueueAction");var KDb=new _.d2("insertInRemoteQueueAction");var xoz=new _.d2("removeFromRemoteQueueAction");var BWp=new _.d2("productDetailsThumbnailRenderer"),zwK=new _.d2("productDetailsVariantRenderer"),ndK=new _.d2("productDetailsVariantOptionRenderer"),k_h=new _.d2("productDetailsOffersContainerRenderer"),SSt=new _.d2("productDetailsOfferRenderer");var odn=new _.d2("shoppingFlaggingRenderer");var UoE=new _.d2("notificationActionRenderer");var gEZ=new _.d2("notificationRenderer");var fBf=new _.d2("localWatchHistoryCommand");var uGh=new _.d2("pdgBuyFlowHeaderRenderer");var qWf=new _.d2("pdgColorSliderRenderer");var QSx=new _.d2("pdgCommentOptionRenderer");var L0h=new _.d2("pdgCommentPreviewRenderer");var EEn=new _.d2("superVodSelectableItemButtonRenderer");var PCL=new _.d2("creatorGoalSetUpFlowDropdownItemViewModel");var N4t=new _.d2("creatorGoalSetUpFlowDropdownViewModel");var sSZ=new _.d2("repeatChapterCommand");var y8Z=new _.d2("watchPlayerOverflowMenuCommand");var vEt=new _.d2("compositeVideoOverlayRenderer");var DNb=new _.d2("playlistBylineRenderer");var pQp=new _.d2("reelNavigateCommand");var J8p=new _.d2("reelNonVideoContentDismissalCommand");var jSn=new _.d2("showReelsCommentsOverlayCommand");var fdh=new _.d2("switchButtonRenderer");var MuH=new _.d2("responsiveContainerConfiguration");var tub=new _.d2("sortFilterSubMenuRenderer");var ei9=new _.d2("upsellDialogRenderer");var GIH=new _.d2("insertChannelTabCommand");var $Np=new _.d2("feedbackQuestionRenderer"),Rif=new _.d2("feedbackOptionRenderer");var wQC=new _.d2("sponsorshipsTierRenderer"),c8z=new _.d2("sponsorshipsPromotionChannelRenderer");var HXL=new _.d2("simpleSurveyMessageRenderer");var Xbt=new _.d2("thumbnailBadgeViewModel");var A8f=new _.d2("checkboxGroupViewModel");var hzp=new _.d2("checkboxItemViewModel");var ZXt=new _.d2("radioButtonGroupViewModel");var ldh=new _.d2("radioButtonItemViewModel");var IdL=new _.d2("switchListItemViewModel");var MUE=new _.d2("inputComposerViewModel");var feh=new _.d2("panelFooterViewModel");var iXz=new _.d2("transcriptEditSegmentCommand");var CCK=new _.d2("transcriptUpdateSegmentTextCommand");var bX9=new _.d2("transcriptSearchBoxRenderer");var dNt=new _.d2("transcriptSegmentListRenderer");var F0K=new _.d2("transcriptSegmentRenderer");var mNC=new _.d2("videoInteractionPopUpRenderer");var adb=new _.d2("updateDateTextAction");var Vuh=new _.d2("updateTitleAction");var XQx=new _.d2("updateViewershipAction");var r89=new _.d2("relatedChipCommand");var W0b=new _.d2("carouselLockupRenderer");var T4L=new _.d2("engagementPanelSectionListRenderer");var p4=new _.d2("expandableVideoDescriptionBodyRenderer");var hiC=new _.d2("videoDescriptionHeaderRenderer");var YWH=new _.d2("videoDescriptionYouchatSectionViewModel");var kAC=new _.d2("invokeInstrumentManagerAction");var OXL=new _.d2("logYpcFlowDismissCommand");var K0C=new _.d2("logYpcFlowStartCommand");var xN9=new _.d2("ypcCancelRecurrenceCommand");var B4f=new _.d2("cancellationFlowState");var C2b=new _.d2("premiumPurchaseFlowState");var ziH=new _.d2("unlimitedCreateFamilyEndpoint");var nEZ=new _.d2("surveyAnswerCardRenderer");var kI9=new _.d2("iconBadgeRenderer");var SWt=new _.d2("showMoreButtonRenderer");var oEh=new _.d2("pollChoiceData");var t0z=new _.d2("collaborativePlaylistVisibilityValidationRule");var UNt=function(g){_.YF.call(this,"channelMessage");this.message=g};
_.A(UNt,_.YF);var g7x=function(g){_.YF.call(this,"channelError");this.error=g};
_.A(g7x,_.YF);var uHK={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"},qnh={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},QNH={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},LKf={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},E7H={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var JE=function(g){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 _.Jg;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;g&&(this.id=g.id||g.name,this.name=g.name,this.clientName=g.clientName?g.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=g.app,this.type=g.type||"REMOTE_CONTROL",this.username=g.user||"",this.avatar=g.userAvatarUri||"",this.obfuscatedGaiaId=g.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=g.ownerObfuscatedGaiaId||"",this.castUserId=g.castUserId||"",this.theme=g.theme||"u",Plh(this,g.capabilities||""),Nnh(this,
g.compatibleSenderThemes||""),sNn(this,g.experiments||""),this.remoteControllerUrl=g.remoteControllerUrl||"",this.localChannelEncryptionKey=g.localChannelEncryptionKey||"",this.deviceContext=g.deviceContext,this.brand=g.brand||"",this.model=g.model||"",this.year=g.year||0,this.os=g.os||"",this.osVersion=g.osVersion||"",this.chipset=g.chipset||"",this.mdxDialServerType=g.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=g.pairingType||"unknown",g=g.deviceInfo)&&(g=JSON.parse(g),this.brand=
g.brand||"",this.model=g.model||"",this.year=g.year||0,this.os=g.os||"",this.osVersion=g.osVersion||"",this.chipset=g.chipset||"",this.clientName=g.clientName?g.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=g.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
JE.prototype.copy=function(){var g={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&&(g.brand=this.brand);
this.model&&(g.model=this.model);this.year&&(g.year=this.year);this.os&&(g.os=this.os);this.osVersion&&(g.osVersion=this.osVersion);this.chipset&&(g.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(g.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(g.mdxDialServerType=this.mdxDialServerType);g=new JE(g);g.connected=this.connected;g.remoteControllerUrl=this.remoteControllerUrl;g.localChannelEncryptionKey=this.localChannelEncryptionKey;g.deviceContext=
this.deviceContext;g.castUserId=this.castUserId;return g};
JE.prototype.equals=function(g){return g?this.id==g.id:!1};
var Plh=function(g,u){g.capabilities.clear();_.Oc(u.split(","),_.uH(_.pH.contains,uHK)).forEach(function(q){g.capabilities.add(q)})},Nnh=function(g,u){g.compatibleSenderThemes.clear();
_.Oc(u.split(","),_.uH(_.pH.contains,qnh)).forEach(function(q){g.compatibleSenderThemes.add(q)})},sNn=function(g,u){g.experiments.clear();
u.split(",").forEach(function(q){g.experiments.add(q)})};_.TK(f$,_.Lh);_.P=f$.prototype;_.P.JSC$20069_onTick_=function(){this.retryCount++;this.JSC$20067_interval_=Math.min(3E5,this.JSC$20067_interval_*2);this.JSC$20069_listener_();this.nextTickTime_&&this.start()};
_.P.getRetryCount=function(){return this.retryCount};
_.P.start=function(){var g=this.JSC$20067_interval_+15E3*Math.random(),u=this.delay_;u.isActive()||u.start(g);this.nextTickTime_=Date.now()+g};
_.P.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.P.isActive=function(){return this.delay_.isActive()};
_.P.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$20067_interval_=5E3};_.TK(Ml,KAE);_.P=Ml.prototype;_.P.subscribe=function(g,u,q){return this.pubsub_.subscribe(g,u,q)};
_.P.unsubscribe=function(g,u,q){return this.pubsub_.unsubscribe(g,u,q)};
_.P.unsubscribeByKey=function(g){return this.pubsub_.unsubscribeByKey(g)};
_.P.publish=function(g,u){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.P.dispose=function(){this.JSC$20070_disposed_||(this.JSC$20070_disposed_=!0,_.Fo(this.pubsub_),this.disconnect(),_.Fo(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20070_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.BX({})})};
_.P.isDisposed=function(){return this.JSC$20070_disposed_};
_.P.connect=function(g,u,q){var Q=this,L,E,y,v;return _.D(function(J){if(J.nextAddress==1)return _.ms(J,2),Q.useAsyncBrowserChannelHandler_?J.yield(Q.connectPromise_,2):J.jumpTo(2);_.Fr(J);if(Q.JSC$20070_disposed_||Q.JSC$20070_channel_&&Q.JSC$20070_channel_.getState()==2&&!Q.isInitialReconnectTimer_)return J.return();Q.sCookie_="";Q.isInitialReconnectTimer_||Q.reconnectTimer_.stop();Q.connectionParams_=g||null;Q.connectUi_=u||0;L=Q.JSC$20070_pathPrefix_+"/test";E=Q.JSC$20070_pathPrefix_+"/bind";y=
new JG(q?q.firstTestResults:null,q?q.secondTestResults:null,Q.enableAsyncTest_);if(v=Q.JSC$20070_channel_)v.handler_=null;y.handler_=Q;Q.JSC$20070_channel_=y;if(Q.useAsyncBrowserChannelHandler_)return Q.connectPromise_=yQb(Q).then(function(){return v7f(Q,L,E,v,q)}),J.return(Q.connectPromise_.then(function(){Q.connectPromise_=_.BX()}));
v7f(Q,L,E,v,q);return _.Xr(J,0)})};
var v7f=function(g,u,q,Q,L){DFx(g);if(g.JSC$20070_channel_){var E=_.FR("ID_TOKEN"),y=g.JSC$20070_channel_.JSC$19984_extraHeaders_||{};E?y["x-youtube-identity-token"]=E:delete y["x-youtube-identity-token"];g.JSC$20070_channel_.JSC$19984_extraHeaders_=y}pR9(g);Q?(Q.getState(),g.JSC$20070_channel_.connect(u,q,g.defaultQueryParams_,Q.sid_,Q.JSC$19984_lastArrayId_)):L?g.JSC$20070_channel_.connect(u,q,g.defaultQueryParams_,L.sessionId,L.arrayId):g.JSC$20070_channel_.connect(u,q,g.defaultQueryParams_);g.isInitialReconnectTimer_&&
!g.reconnectTimer_.isActive()&&g.reconnectTimer_.start();g.retryLogger_&&g.retryLogger_.startLogTimeout()};
Ml.prototype.disconnect=function(g){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.BX())}finally{this.disconnectUi_=g||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),DFx(this),this.JSC$20070_channel_&&(this.JSC$20070_channel_.getState()==3&&rPt(this.JSC$20070_channel_),this.JSC$20070_channel_.disconnect()),this.disconnectUi_=0}};
Ml.prototype.sendMessage=function(g,u){var q=this,Q;return _.D(function(L){switch(L.nextAddress){case 1:_.ms(L,2);if(!q.useAsyncBrowserChannelHandler_){L.jumpTo(2);break}return L.yield(q.connectPromise_,2);case 2:_.Fr(L);if(q.JSC$20070_disposed_)return L.return();Q={_sc:g};u&&_.pH.extend(Q,u);if(q.reconnectTimer_.isActive()||(q.JSC$20070_channel_?q.JSC$20070_channel_.getState():0)==2){q.JSC$20070_pendingMessages_.push(Q);L.jumpTo(6);break}if(!q.isChannelOpened()){L.jumpTo(6);break}_.ms(L,8);if(!q.useAsyncBrowserChannelHandler_||
JQb(q,g)){L.jumpTo(8);break}return L.yield(yQb(q),8);case 8:_.Fr(L,0,0,1);q.isChannelOpened()&&(JQb(q,g)||pR9(q),DFx(q),Xyf(q.JSC$20070_channel_,Q));_.Xr(L,6,1);break;case 6:_.Xr(L,0)}})};
var JQb=function(g,u){return g.enableMdxAuthForConnectionOnly_?!0:g.disableMdxAuthForAdMessages_?Object.values(QNH).includes(u):g.disableMdxAuthForNonPlaybackMessages_?!Object.values(LKf).includes(u):g.disableMdxAuthForShortsMessages_?Object.values(E7H).includes(u):!1};
Ml.prototype.JSC$19991_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(),_.Fo(this.reconnectTimer_),this.reconnectTimer_=new f$(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();
this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20070_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)jNp(this);else{var g=this.JSC$20070_pendingMessages_;this.JSC$20070_pendingMessages_=[];var u=g.length;pR9(this);fwp(this,g,u);Mzh(this)}else Mzh(this)};
var jNp=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return _.ms(Q,2),Q.yield(yQb(g),2);_.Fr(Q);u=g.JSC$20070_pendingMessages_;g.JSC$20070_pendingMessages_=[];q=u.length;fwp(g,u,q);Mzh(g);return _.Xr(Q,0)})},fwp=function(g,u,q){for(var Q=0;Q<q;++Q)Xyf(g.JSC$20070_channel_,u[Q]);
Mzh(g)},Mzh=function(g){g.publish("handlerOpened");
g.JSC$20070_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.P=Ml.prototype;_.P.JSC$19991_channelError=function(g){var u=g==2&&this.JSC$20070_channel_.JSC$19984_lastStatusCode_==401;g==4||u||(this.isInitialReconnectTimer_&&!this.reconnectTimer_.isActive()&&(_.Fo(this.reconnectTimer_),this.reconnectTimer_=new f$(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1),this.reconnectTimer_.start());this.publish("handlerError",g,u);u=Object.keys(I5L).find(function(q){return I5L[q]===g});
this.JSC$20070_channelErrorCounter.increment("BROWSER_CHANNEL",u!=null?u:"UNKNOWN")};
_.P.JSC$19991_channelClosed=function(g,u){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(u)for(var q=u.length,Q=0;Q<q;++Q){var L=u[Q].map;L&&this.JSC$20070_pendingMessages_.push(L)}this.JSC$20070_channelClosedCounter.increment("BROWSER_CHANNEL");g&&this.pendingMapsOnClosedCounter.JSC$10239_streamzService.JSC$10094_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",g.length);u&&this.undeliveredMapsOnClosedCounter.JSC$10242_streamzService.JSC$10094_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
u.length)};
_.P.JSC$19991_channelSuccess=function(g,u){u!=null&&g!=null&&this.channelMessageSentCounter.increment()};
_.P.JSC$19991_getAdditionalParams=function(){var g={v:2};this.sCookie_&&(g.gsessionid=this.sCookie_);this.connectUi_!=0&&(g.ui=""+this.connectUi_);this.disconnectUi_!=0&&(g.ui=""+this.disconnectUi_);this.connectionParams_&&_.pH.extend(g,this.connectionParams_);return g};
_.P.JSC$19991_channelHandleArray=function(g){g[0]=="S"?this.sCookie_=g[1]:g[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20070_channel_.disconnect()):this.publish("handlerMessage",new hqt(g[0],g[1]));this.JSC$20070_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.P.isChannelOpened=function(){return!!this.JSC$20070_channel_&&this.JSC$20070_channel_.getState()==3};
var DFx=function(g){if(g.JSC$20070_channel_){var u=g.JSC$20070_getXsrfToken_(),q=g.JSC$20070_channel_.JSC$19984_extraHeaders_||{};u?q["x-youtube-lounge-xsrf-token"]=u:delete q["x-youtube-lounge-xsrf-token"];g.JSC$20070_channel_.JSC$19984_extraHeaders_=q}},yQb=function(g){if(g.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.BX();
if(!g.enableCachedUpdateAuthorizationHeader_)return tz9(g);g.updateAuthorizationHeaderPromise_===null&&(g.updateAuthorizationHeaderPromise_=tz9(g));return g.updateAuthorizationHeaderPromise_},tz9=function(g){return _.fY(g.getAuthorizationHeader_().then(function(u){eTt(g,u)}).thenCatch(function(){}),function(){g.updateAuthorizationHeaderPromise_=null})},eTt=function(g,u){if(g.JSC$20070_channel_){var q=g.JSC$20070_channel_.JSC$19984_extraHeaders_||{};
u&&Object.keys(u).length>0?q=Object.assign({},q,u):delete q.Authorization;g.JSC$20070_channel_.JSC$19984_extraHeaders_=q}},pR9=function(g){g.getAuthorizationHeaderSync_&&!g.useAsyncBrowserChannelHandler_&&eTt(g,g.getAuthorizationHeaderSync_())};
_.P=Ml.prototype;_.P.setLoungeToken=function(g){(this.defaultQueryParams_.loungeIdToken=g)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20070_channel_){var u=this.JSC$20070_channel_.JSC$19984_extraHeaders_||{};g?u["X-YouTube-LoungeId-Token"]=g:delete u["X-YouTube-LoungeId-Token"];this.JSC$20070_channel_.JSC$19984_extraHeaders_=u}};
_.P.getDeviceId=function(){return this.defaultQueryParams_.id};
_.P.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var g=this.reconnectTimer_;g.delay_.fire();g.start()};
_.P.safeReconnect_=function(){var g=this.JSC$20070_channel_,u=0;g.JSC$19984_backChannelRequest_&&u++;g.forwardChannelRequest_&&u++;u==0&&this.connect(this.connectionParams_,this.connectUi_)};var $c=function(g,u){var q=g.basePath;g.supportCors&&(q=g.scheme+"://"+g.domain+g.port+g.basePath);return _.Sg(q+u,{})};
kex.prototype.sendRequest=function(g,u,q,Q,L,E,y){g={format:E?"RAW":"JSON",method:g,context:this,timeout:5E3,withCredentials:!!y,onSuccess:_.uH(this.JSC$20077_onSuccess_,Q,!E),onError:_.uH(this.onError_,L),onTimeout:_.uH(this.JSC$20077_onTimeout_,L)};q&&(g.postParams=q,g.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Ek(u,g)};
kex.prototype.JSC$20077_onSuccess_=function(g,u,q,Q){u?g(Q):g({text:q.responseText})};
kex.prototype.onError_=function(g,u){g(Error("al`"+u.status))};
kex.prototype.JSC$20077_onTimeout_=function(g){g(Error("bl"))};var gH9=function(g,u){return!!u&&(g.id==u||g.uuid==u)},GH9=function(g){return{name:g.name,
screenId:g.id,loungeToken:g.token,dialId:g.uuid,screenIdType:g.idType,screenIdSecret:g.secret}},$FL=function(g){return new tG(g)},RTt=function(g){return Array.isArray(g)?_.Jk(g,$FL):[]},qpH=function(g){if(!g)return"null";
var u=g.token?".."+g.token.slice(-6):"-",q=g.uuid?".."+g.uuid.slice(-6):"-",Q=g.secret?".."+g.secret.slice(-6):"-";return'{name:"'+g.name+'",id:'+g.id.substr(0,6)+"..,token:"+(u+",uuid:"+q+",idType:"+g.idType+",secret:")+(Q+"}")},irf=function(g){return Array.isArray(g)?"["+_.Jk(g,qpH).join(",")+"]":"null"};var NL9="",Gi=null;var tyL=function(g,u){_.A5.call(this);var q=this;this.handler=g();this.handler.subscribe("handlerOpened",this.JSC$20084_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(Q,L){q.onError(L)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=u};
_.A(tyL,_.A5);_.P=tyL.prototype;_.P.connect=function(g,u,q){this.handler.connect(g,u,q)};
_.P.disconnect=function(g){this.handler.disconnect(g)};
_.P.reconnect=function(){this.handler.reconnect()};
_.P.getDeviceId=function(){return this.handler.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.P.JSC$20084_onOpened=function(){this.dispatchEvent("channelOpened");var g=this.handler,u=this.currentScreenId;_.Ex("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!g.JSC$20070_channel_.useChunked_,sessionId:g.JSC$20070_channel_.sid_,arrayId:g.JSC$20070_channel_.JSC$19984_lastArrayId_});_.Ex("yt-remote-session-screen-id",u);g=uht();u=qEx();_.WS(g,u)||g.push(u);PFt(g);EHt()};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(g){this.dispatchEvent(new UNt(g))};
_.P.onError=function(g){this.dispatchEvent(new g7x(g?1:0))};
_.P.sendMessage=function(g,u){this.handler.sendMessage(g,u)};
_.P.setLoungeToken=function(g){this.handler.setLoungeToken(g)};
_.P.dispose=function(){this.handler.dispose()};var Myx=function(g,u,q){var Q=this;q=q===void 0?function(){return""}:q;
var L=L===void 0?new mmf:L;var E=E===void 0?new _.PW:E;this.pathPrefix=g;this.defaultQueryParams=u;this.getXsrfToken=q;this.JSC$20087_pubsub=E;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new f$(function(){var y;((y=Q.channel)==null?void 0:Ihz((new SMz(y,y.JSC$19952_channel_)).JSC$19962_channel_.forwardChannelRequestPool_))===0&&Q.connect(Q.connectionParams,Q.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20087_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20087_channelOpenedCounter=new Yip;this.JSC$20087_channelClosedCounter=new OEC;this.JSC$20087_channelMessageReceivedCounter=new xmL;this.JSC$20087_channelErrorCounter=new BOC};
Myx.prototype.connect=function(g,u){g=g===void 0?{}:g;u=u===void 0?0:u;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=g,this.connectUi=u,wRK(this),(g=_.FR("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=g: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 L4(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,cQt(this))};
var cQt=function(g){_.Z1(g.channel,"w",function(){g.channelState=3;g.reconnectTimer.reset();g.connectionParams=null;g.connectUi=0;for(var u=_.N(g.nonAckedMessagesOnChannelClosed),q=u.next();!q.done;q=u.next())q=q.value,g.channel&&g.channel.send(q);g.nonAckedMessagesOnChannelClosed=[];g.publish("webChannelOpened");g.JSC$20087_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Z1(g.channel,"x",function(){g.channelState=0;g.reconnectTimer.isActive()||g.publish("webChannelClosed");var u,q=(u=g.channel)==null?void 0:oe9(new SMz(u,u.JSC$19952_channel_));q&&(g.nonAckedMessagesOnChannelClosed=[].concat(_.na(q)));g.JSC$20087_channelClosedCounter.increment("WEB_CHANNEL")});
_.Z1(g.channel,"z",function(u){var q=u.data;q[0]==="gracefulReconnect"?(g.reconnectTimer.start(),g.channel&&g.channel.close()):g.publish("webChannelMessage",new hqt(q[0],q[1]));g.lastStatusCode=u.statusCode;g.JSC$20087_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Z1(g.channel,"y",function(){g.lastStatusCode===401||g.reconnectTimer.start();g.publish("webChannelError");g.JSC$20087_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.P=Myx.prototype;_.P.disconnect=function(g){this.disconnectUi=g===void 0?0:g;this.reconnectTimer.stop();wRK(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.P.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var g=this.reconnectTimer;g.delay_.fire();g.start()};
_.P.sendMessage=function(g,u){this.channel&&(wRK(this),g=Object.assign({},{_sc:g},u),this.channel.send(g))};
_.P.setLoungeToken=function(g){g||this.reconnectTimer.stop();g?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=g:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var wRK=function(g){var u=g.getXsrfToken();u?g.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=u:delete g.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.P=Myx.prototype;_.P.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.P.publish=function(g){return this.JSC$20087_pubsub.publish.apply(this.JSC$20087_pubsub,[g].concat(_.na(_.UT.apply(1,arguments))))};
_.P.subscribe=function(g,u,q){return this.JSC$20087_pubsub.subscribe(g,u,q)};
_.P.unsubscribe=function(g,u,q){return this.JSC$20087_pubsub.unsubscribe(g,u,q)};
_.P.unsubscribeByKey=function(g){return this.JSC$20087_pubsub.unsubscribeByKey(g)};
_.P.dispose=function(){this.JSC$20087_disposed||(this.JSC$20087_disposed=!0,_.Fo(this.JSC$20087_pubsub),this.disconnect(),_.Fo(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.P.isDisposed=function(){return this.JSC$20087_disposed};var fah=function(g){_.A5.call(this);this.webChannelService=g();this.webChannelService.subscribe("webChannelOpened",this.JSC$20095_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.A(fah,_.A5);_.P=fah.prototype;_.P.connect=function(g,u){this.webChannelService.connect(g,u)};
_.P.disconnect=function(g){this.webChannelService.disconnect(g)};
_.P.reconnect=function(){this.webChannelService.reconnect()};
_.P.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.P.JSC$20095_onOpened=function(){this.dispatchEvent("channelOpened")};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(g){this.dispatchEvent(new UNt(g))};
_.P.onError=function(){this.dispatchEvent(new g7x(this.webChannelService.lastStatusCode===401?1:0))};
_.P.sendMessage=function(g,u){this.webChannelService.sendMessage(g,u)};
_.P.setLoungeToken=function(g){this.webChannelService.setLoungeToken(g)};
_.P.dispose=function(){this.webChannelService.dispose()};var IaL=Date.now(),Ra=null,Zrz=Array(50),Ao9=-1,laz=!1;var HZ=function(g){g=g===void 0?!1:g;_.Lh.call(this);this.pubSub_=new _.PW(g);_.z$(this,this.pubSub_)};
_.TK(HZ,_.Lh);HZ.prototype.subscribe=function(g,u,q){return this.isDisposed()?0:this.pubSub_.subscribe(g,u,q)};
HZ.prototype.unsubscribe=function(g,u,q){return this.isDisposed()?!1:this.pubSub_.unsubscribe(g,u,q)};
HZ.prototype.unsubscribeByKey=function(g){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(g)};
HZ.prototype.publish=function(g,u){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.TK(AG,HZ);AG.prototype.getScreens=function(){return this.screens};
AG.prototype.contains=function(g){return!!Umx(this.screens,g)};
AG.prototype.get=function(g){return g?eo(this.screens,g):null};
var HiZ=function(g,u){var q=g.get(u.uuid)||g.get(u.id);if(q)return g=q.name,q.id=u.id||q.id,q.name=u.name,q.token=u.token,q.uuid=u.uuid||q.uuid,q.name!=g;g.screens.push(u);return!0},AQh=function(g,u){var q=g.screens.length!=u.length;
g.screens=_.Oc(g.screens,function(E){return!!Umx(u,E)});
for(var Q=u.length,L=0;L<Q;L++)q=HiZ(g,u[L])||q;return q},Zix=function(g,u){var q=g.screens.length;
g.screens=_.Oc(g.screens,function(Q){return!(Q||u?!Q!=!u?0:Q.id==u.id:1)});
return g.screens.length<q};
AG.prototype.info=function(g){wQ(this.JSC$20099_logName_,g)};var lwn=function(g,u,q,Q,L){HZ.call(this);this.JSC$20102_http_=g;this.pairingCode_=u;this.deviceId_=q;this.friendlyName_=Q;this.enableShortLivedLoungeToken_=L;this.pollIndex_=0;this.JSC$20102_xhr_=null;this.JSC$20102_timer_=NaN};
_.A(lwn,HZ);_.P=lwn.prototype;_.P.start=function(){!this.JSC$20102_xhr_&&isNaN(this.JSC$20102_timer_)&&this.poll_()};
_.P.stop=function(){this.JSC$20102_xhr_&&(this.JSC$20102_xhr_.abort(),this.JSC$20102_xhr_=null);isNaN(this.JSC$20102_timer_)||(_.L0(this.JSC$20102_timer_),this.JSC$20102_timer_=NaN)};
_.P.disposeInternal=function(){this.stop();HZ.prototype.disposeInternal.call(this)};
_.P.poll_=function(){this.JSC$20102_timer_=NaN;this.JSC$20102_xhr_=_.Ek($c(this.JSC$20102_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.EH)(this.JSC$20104_onSuccess_,this),onError:(0,_.EH)(this.onError_,this),onTimeout:(0,_.EH)(this.JSC$20104_onTimeout_,this)})};
_.P.JSC$20104_onSuccess_=function(g,u){this.JSC$20102_xhr_=null;g=u.screen||{};g.dialId=this.deviceId_;g.name=this.friendlyName_;u=-1;this.enableShortLivedLoungeToken_&&g.shortLivedLoungeToken&&g.shortLivedLoungeToken.value&&g.shortLivedLoungeToken.refreshIntervalMs&&(g.screenIdType="shortLived",g.loungeToken=g.shortLivedLoungeToken.value,u=g.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new tG(g),u)};
_.P.onError_=function(g){this.JSC$20102_xhr_=null;g.status&&g.status==404?this.pollIndex_>=Iwx.length?this.publish("pairingFailed",Error("cl")):(g=Iwx[this.pollIndex_],this.JSC$20102_timer_=_.uS((0,_.EH)(this.poll_,this),g),this.pollIndex_++):this.publish("pairingFailed",Error("dl`"+g.status))};
_.P.JSC$20104_onTimeout_=function(){this.JSC$20102_xhr_=null;this.publish("pairingFailed",Error("el"))};
var Iwx=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.TK(lQ,AG);_.P=lQ.prototype;_.P.start=function(){ZE(this)&&this.publish("screenChange");!_.P9("yt-remote-lounge-token-expiration")&&iix(this);_.L0(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.uS((0,_.EH)(this.start,this),1E4)};
_.P.add=function(g,u){ZE(this);HiZ(this,g);Clb(this,!1);this.publish("screenChange");u(g);g.token||iix(this)};
_.P.remove=function(g,u){var q=ZE(this);Zix(this,g)&&(Clb(this,!1),q=!0);u(g);q&&this.publish("screenChange")};
_.P.updateName=function(g,u,q,Q){var L=ZE(this),E=this.get(g.id);E?(E.name!=u&&(E.name=u,Clb(this,!1),L=!0),q(g)):Q(Error("fl"));L&&this.publish("screenChange")};
_.P.disposeInternal=function(){_.L0(this.loungeTokenRefreshTimer_);lQ.superClass_.disposeInternal.call(this)};
var iix=function(g){if(g.screens.length){var u=_.Jk(g.screens,function(Q){return Q.id}),q=$c(g.JSC$20106_http_,"/pairing/get_lounge_token_batch");
g.JSC$20106_http_.sendRequest("POST",q,{screen_ids:u.join(",")},(0,_.EH)(g.handleLoungeTokens_,g),(0,_.EH)(g.handleLoungeTokenError_,g))}};
lQ.prototype.handleLoungeTokens_=function(g){ZE(this);var u=this.screens.length;g=g&&g.screens||[];for(var q=g.length,Q=0;Q<q;++Q){var L=g[Q],E=this.get(L.screenId);E&&(E.token=L.loungeToken,--u)}Clb(this,!u);u&&wQ(this.JSC$20099_logName_,"Missed "+u+" lounge tokens.")};
lQ.prototype.handleLoungeTokenError_=function(g){wQ(this.JSC$20099_logName_,"Requesting lounge tokens failed: "+g)};
var ZE=function(g){if(_.w("deprecate_pair_servlet_enabled"))return AQh(g,[]);var u=RTt(yo9());u=_.Oc(u,function(q){return!q.uuid});
return AQh(g,u)},Clb=function(g,u){DYC(_.Jk(g.screens,GH9));
u&&vHh()};var jA=function(g,u){HZ.call(this);this.getScreensToCheck_=u;u=(u=_.P9("yt-remote-online-screen-ids")||"")?u.split(","):[];for(var q={},Q=this.getScreensToCheck_(),L=Q.length,E=0;E<L;++E){var y=Q[E].id;q[y]=_.WS(u,y)}this.screenIdSet_=q;this.JSC$20109_http_=g;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;bif("Initialized with "+_.ek(this.screenIdSet_))};
_.A(jA,HZ);jA.prototype.isOnline=function(g){return!!this.screenIdSet_[g]};
jA.prototype.start=function(){var g=parseInt(_.P9("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.WK()-144E5<g?0:g)?dFp(this):(this.fastCheckEndTime_=_.WK()+3E5,_.Ex("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
jA.prototype.isEmpty=function(){return _.pH.isEmpty(this.screenIdSet_)};
jA.prototype.update=function(){bif("Updating availability on schedule.");var g=this.getScreensToCheck_(),u=_.pH.filter(this.screenIdSet_,function(q,Q){return q&&!!eo(g,Q)},this);
FKH(this,u)};
var mFC=function(g,u,q){var Q=$c(g.JSC$20109_http_,"/pairing/get_screen_availability");g.JSC$20109_http_.sendRequest("POST",Q,{lounge_token:u.token},(0,_.EH)(function(L){L=L.screens||[];for(var E=L.length,y=0;y<E;++y)if(L[y].loungeToken==u.token){q(L[y].status=="online");return}q(!1)},g),(0,_.EH)(function(){q(!1)},g))};
jA.prototype.disposeInternal=function(){_.L0(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);HZ.prototype.disposeInternal.call(this)};
var FKH=function(g,u){a:if(_.pH.getCount(u)!=_.pH.getCount(g.screenIdSet_))var q=!1;else{q=_.pH.getKeys(u);for(var Q=q.length,L=0;L<Q;++L)if(!g.screenIdSet_[q[L]]){q=!1;break a}q=!0}q||(bif("Updated online screens: "+_.ek(g.screenIdSet_)),g.screenIdSet_=u,g.publish("screenChange"));awz(g)},dFp=function(g){isNaN(g.refreshTimer_)||_.L0(g.refreshTimer_);
g.refreshTimer_=_.uS((0,_.EH)(g.requestScreenAvailability_,g),g.fastCheckEndTime_>0&&g.fastCheckEndTime_<_.WK()?2E4:1E4)};
jA.prototype.requestScreenAvailability_=function(){_.L0(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var g=Vzz(this);if(_.pH.getCount(g)){var u=$c(this.JSC$20109_http_,"/pairing/get_screen_availability"),q={lounge_token:_.pH.getKeys(g).join(",")};this.currentRequest_=this.JSC$20109_http_.sendRequest("POST",u,q,(0,_.EH)(this.onScreenAvailability_,this,g),(0,_.EH)(this.onScreenAvailabilityError_,this))}else FKH(this,{}),dFp(this)};
jA.prototype.onScreenAvailability_=function(g,u){this.currentRequest_=null;var q=_.pH.getKeys(Vzz(this));if(_.SK(q,_.pH.getKeys(g))){u=u.screens||[];q={};for(var Q=u.length,L=0;L<Q;++L)q[g[u[L].loungeToken]]=u[L].status=="online";FKH(this,q);dFp(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
jA.prototype.onScreenAvailabilityError_=function(g){this.warn_("Screen availability failed: "+g);this.currentRequest_=null;dFp(this)};
var bif=function(g){wQ("OnlineScreenService",g)};
jA.prototype.warn_=function(g){wQ("OnlineScreenService",g)};
var Vzz=function(g){var u={};_.Tv(g.getScreensToCheck_(),function(q){q.token?u[q.token]=q.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return u},awz=function(g){g=_.pH.getKeys(_.pH.filter(g.screenIdSet_,function(u){return u}));
g.sort(_.akq);g.length?_.Ex("yt-remote-online-screen-ids",g.join(","),60):_.yY("yt-remote-online-screen-ids")};_.TK(Ia,AG);_.P=Ia.prototype;_.P.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.P.add=function(g,u,q){this.localScreenService_.add(g,u,q)};
_.P.remove=function(g,u,q){this.localScreenService_.remove(g,u,q);this.onlineScreenService_.update()};
_.P.updateName=function(g,u,q,Q){this.localScreenService_.contains(g)?this.localScreenService_.updateName(g,u,q,Q):(g="Updating name of unknown screen: "+g.name,wQ(this.JSC$20099_logName_,g),Q(Error(g)))};
_.P.getScreens=function(g){return g?this.screens:pUp(this.screens,_.Oc(this.automaticScreens_,function(u){return!this.contains(u)},this))};
_.P.JSC$20114_getOnlineScreens=function(){return _.Oc(this.getScreens(!0),function(g){return this.onlineScreenService_.isOnline(g.id)},this)};
var rQf=function(g,u,q,Q,L,E){g.info("getAutomaticScreenByIds "+q+" / "+u);q||(q=g.deviceToScreenId_[u]);var y=g.getScreens(),v=q?eo(y,q):null;q&&(g.disableAutomaticScreenCache_||v)||(v=eo(y,u));if(v){v.uuid=u;var J=f4(g,v);mFC(g.onlineScreenService_,J,function(f){L(f?J:null)})}else q?XRz(g,q,(0,_.EH)(function(f){var t=f4(this,new tG({name:Q,
screenId:q,loungeToken:f,dialId:u||""}));mFC(this.onlineScreenService_,t,function(e){L(e?t:null)})},g),E):L(null)};
Ia.prototype.JSC$20114_getScreenByPollingPairingCode=function(g,u,q,Q,L,E){var y=this;this.info("getDialScreenByPairingCode "+g+" / "+u);var v=new lwn(this.JSC$20112_http_,g,u,q,Q);v.subscribe("pairingComplete",function(J,f){_.Fo(v);L(f4(y,J),f)});
v.subscribe("pairingFailed",function(J){_.Fo(v);E(J)});
v.start();return(0,_.EH)(v.stop,v)};
var WKZ=function(g,u){for(var q=g.screens.length,Q=0;Q<q;++Q)if(g.screens[Q].name==u)return g.screens[Q];return null};
Ia.prototype.JSC$20114_getScreenByPairingCode=function(g,u,q,Q){_.Ek($c(this.JSC$20112_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:g},timeout:5E3,onSuccess:(0,_.EH)(function(L,E){L=new tG(E.screen||{});if(!L.name||WKZ(this,L.name)){a:{E=L.name;for(var y=2,v=u(E,y);WKZ(this,v);){y++;if(y>20)break a;v=u(E,y)}E=v}L.name=E}q(f4(this,L))},this),
onError:(0,_.EH)(function(L){Q(Error("gl`"+L.status))},this),
onTimeout:(0,_.EH)(function(){Q(Error("hl"))},this)})};
var TnE=function(g,u,q){mFC(g.onlineScreenService_,u,q)};
Ia.prototype.disposeInternal=function(){_.Fo(this.localScreenService_);_.Fo(this.onlineScreenService_);Ia.superClass_.disposeInternal.call(this)};
var XRz=function(g,u,q,Q){g.info("requestLoungeToken_ for "+u);var L={postParams:{screen_ids:u},method:"POST",context:g,onSuccess:function(E,y){E=y&&y.screens||[];E[0]&&E[0].screenId==u?q(E[0].loungeToken):Q(Error("il"))},
onError:function(){Q(Error("jl"))}};
_.Ek($c(g.JSC$20112_http_,"/pairing/get_lounge_token_batch"),L)},hTz=function(g){g.screens=g.localScreenService_.getScreens();
for(var u=_.pH.transpose(g.deviceToScreenId_),q=g.screens.length,Q=0;Q<q;++Q){var L=g.screens[Q];L.uuid=u[L.id]||""}g.info("Updated manual screens: "+irf(g.screens))};
Ia.prototype.handleScreenChange_=function(){hTz(this);this.publish("screenChange");this.onlineScreenService_.update()};
var CFn=function(g){YnK(g);g.localScreenService_=new lQ(g.JSC$20112_http_);g.localScreenService_.subscribe("screenChange",(0,_.EH)(g.handleScreenChange_,g));hTz(g);g.disableAutomaticScreenCache_||(g.automaticScreens_=RTt(_.P9("yt-remote-automatic-screen-cache")||[]));YnK(g);g.info("Initializing automatic screens: "+irf(g.automaticScreens_));g.onlineScreenService_=new jA(g.JSC$20112_http_,(0,_.EH)(g.getScreens,g,!0));g.onlineScreenService_.subscribe("screenChange",(0,_.EH)(function(){this.publish("onlineScreenChange")},
g))},f4=function(g,u){var q=g.get(u.id);
q?(q.uuid=u.uuid,u=q):((q=eo(g.automaticScreens_,u.uuid))?(q.id=u.id,q.token=u.token,u=q):g.automaticScreens_.push(u),g.disableAutomaticScreenCache_||Oix(g));YnK(g);g.deviceToScreenId_[u.uuid]=u.id;_.Ex("yt-remote-device-id-map",g.deviceToScreenId_,31536E3);return u},Oix=function(g){g=_.Oc(g.automaticScreens_,function(u){return u.idType!="shortLived"});
_.Ex("yt-remote-automatic-screen-cache",_.Jk(g,GH9))},YnK=function(g){g.deviceToScreenId_=_.P9("yt-remote-device-id-map")||{}};
Ia.prototype.dispose=Ia.prototype.dispose;_.TK(iQ,HZ);var MD=function(g,u){g.screen_=u;g.publish("sessionScreen",g.screen_)},KK9=function(g,u){g.screen_&&(g.screen_.token=u,f4(g.JSC$20116_screenService_,g.screen_));
g.publish("sessionScreen",g.screen_)};
iQ.prototype.onSessionStopped=function(g){this.isDisposed()||(g&&(tE(this,""+g),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
iQ.prototype.info=function(g){wQ(this.JSC$20116_logName_,g)};
var tE=function(g,u){wQ(g.JSC$20116_logName_,u)};
iQ.prototype.JSC$20118_getCastSession=function(){return null};
iQ.prototype.setDisplayStatus=function(g){var u=this.receiver_;g?(u.displayStatus=new chrome.cast.ReceiverDisplayStatus(g,[]),u.displayStatus.showStop=!0):u.displayStatus=null;chrome.cast.setReceiverDisplayStatus(u,(0,_.EH)(function(){this.info("Updated receiver status for "+u.friendlyName+": "+g)},this),(0,_.EH)(function(){tE(this,"Failed to update receiver status for: "+u.friendlyName)},this))};
iQ.prototype.disposeInternal=function(){this.setDisplayStatus("");iQ.superClass_.disposeInternal.call(this)};var eA=function(g,u,q){iQ.call(this,g,u,"CastSession");var Q=this;this.config_=q;this.JSC$20121_session_=null;this.JSC$20121_boundSessionUpdate_=(0,_.EH)(this.JSC$20123_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.EH)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.uS(function(){xFx(Q,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20121_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20121_isInitLoungeToken_=!1;this.JSC$20121_lastLoungeTokenRefreshError_="unknown"};
_.A(eA,iQ);_.P=eA.prototype;
_.P.setCastSession=function(g){if(this.JSC$20121_session_){if(this.JSC$20121_session_==g)return;tE(this,"Overriding cast session with new session object");BnL(this);this.JSC$20121_isInitLoungeToken_=!1;this.JSC$20121_lastLoungeTokenRefreshError_="unknown";this.JSC$20121_session_.removeUpdateListener(this.JSC$20121_boundSessionUpdate_);this.JSC$20121_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20121_session_=g;this.JSC$20121_session_.addUpdateListener(this.JSC$20121_boundSessionUpdate_);this.JSC$20121_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);zTp(this,"getMdxSessionStatus")};
_.P.launchWithParams=function(g){this.info("launchWithParams no-op for Cast: "+_.ek(g))};
_.P.stop=function(){if(this.JSC$20121_session_)this.JSC$20121_session_.stop((0,_.EH)(function(){this.onSessionStopped()},this),(0,_.EH)(function(){this.onSessionStopped(Error("kl"))},this));
else this.onSessionStopped(Error("ll"))};
_.P.setDisplayStatus=function(){};
_.P.disposeInternal=function(){this.info("disposeInternal");BnL(this);this.JSC$20121_session_&&(this.JSC$20121_session_.removeUpdateListener(this.JSC$20121_boundSessionUpdate_),this.JSC$20121_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20121_session_=null;iQ.prototype.disposeInternal.call(this)};
var kHC=function(g,u){_.L0(g.getLoungeTokenTimeoutKey_);g.getLoungeTokenTimeoutKey_=0;u==0?n7z(g):g.getLoungeTokenTimeoutKey_=_.uS(function(){n7z(g)},u)},n7z=function(g){zTp(g,"getLoungeToken");
_.L0(g.onLoungeTokenTimeoutKey_);g.onLoungeTokenTimeoutKey_=_.uS(function(){Snp(g,null)},3E4)},zTp=function(g,u){g.info("sendYoutubeMessage_: "+u+" "+_.ek(void 0));
var q={};q.type=u;g.JSC$20121_session_?g.JSC$20121_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",q,function(){},(0,_.EH)(function(){tE(this,"Failed to send message: "+u+".")},g)):tE(g,"Sending yt message without session: "+_.ek(q))};
eA.prototype.onYoutubeMessage_=function(g,u){if(!this.isDisposed())if(u)if(u=_.yD(u),_.zM(u))switch(g=""+u.type,u=u.data||{},this.info("onYoutubeMessage_: "+g+" "+_.ek(u)),g){case "mdxSessionStatus":xFx(this,u);break;case "loungeToken":Snp(this,u);break;default:tE(this,"Unknown youtube message: "+g)}else tE(this,"Unable to parse message.");else tE(this,"No data in message.")};
var o7t=function(g,u){if(u)g.info("onConnectedScreenId_: Received screenId: "+u),g.screen_&&g.screen_.id==u||g.getScreen_(u,function(q){MD(g,q)},function(){return g.onSessionStopped()},5);
else g.onSessionStopped(Error("ml"))},gYn=function(g,u,q){g.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(u));
var Q=new tG(u);UFt(g,Q,function(L){L?(g.JSC$20121_isInitLoungeToken_=!0,f4(g.JSC$20116_screenService_,Q),MD(g,Q),g.JSC$20121_lastLoungeTokenRefreshError_="unknown",kHC(g,q)):(_.a4(Error("nl`"+JSON.stringify(u))),g.onSessionStopped())},5)},xFx=function(g,u){_.L0(g.sessionStatusTimeoutKey_);
g.sessionStatusTimeoutKey_=0;if(u)g.config_.enableCastLoungeToken&&u.loungeToken?u.deviceId?g.screen_&&g.screen_.uuid==u.deviceId||(u.loungeTokenRefreshIntervalMs?gYn(g,{name:g.receiver_.friendlyName,screenId:u.screenId,loungeToken:u.loungeToken,dialId:u.deviceId,screenIdType:"shortLived"},u.loungeTokenRefreshIntervalMs):(_.a4(Error("pl`"+JSON.stringify(u))),o7t(g,u.screenId))):(_.a4(Error("ol`"+JSON.stringify(u))),o7t(g,u.screenId)):o7t(g,u.screenId);else g.onSessionStopped(Error("ml"))},Snp=function(g,
u){_.L0(g.onLoungeTokenTimeoutKey_);
g.onLoungeTokenTimeoutKey_=0;var q=null;if(u)if(u.loungeToken){var Q;((Q=g.screen_)==null?void 0:Q.token)==u.loungeToken&&(q="staleLoungeToken")}else q="missingLoungeToken";else q="noLoungeTokenResponse";q?(g.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(u)+", error: "+q)),g.JSC$20121_lastLoungeTokenRefreshError_=q,kHC(g,3E4)):(KK9(g,u.loungeToken),g.JSC$20121_isInitLoungeToken_=!1,g.JSC$20121_lastLoungeTokenRefreshError_="unknown",kHC(g,u.loungeTokenRefreshIntervalMs))};
eA.prototype.getScreen_=function(g,u,q,Q){_.L0(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;rQf(this.JSC$20116_screenService_,this.receiver_.label,g,this.receiver_.friendlyName,(0,_.EH)(function(L){L?u(L):Q>=0?(tE(this,"Screen "+g+" appears to be offline. "+Q+" retries left."),this.getScreenTimeoutKey_=_.uS((0,_.EH)(this.getScreen_,this,g,u,q,Q-1),300)):q(Error("ql"))},this),q)};
var UFt=function(g,u,q,Q){_.L0(g.JSC$20121_checkScreenAvailabilityTimeoutKey_);g.JSC$20121_checkScreenAvailabilityTimeoutKey_=0;TnE(g.JSC$20116_screenService_,u,function(L){L||Q<0?q(L):g.JSC$20121_checkScreenAvailabilityTimeoutKey_=_.uS(function(){UFt(g,u,q,Q-1)},300)})};
eA.prototype.JSC$20118_getCastSession=function(){return this.JSC$20121_session_};
eA.prototype.JSC$20123_onSessionUpdate_=function(g){this.isDisposed()||g||(tE(this,"Cast session died."),this.onSessionStopped())};
var BnL=function(g){_.L0(g.getScreenTimeoutKey_);g.getScreenTimeoutKey_=0;_.L0(g.JSC$20121_checkScreenAvailabilityTimeoutKey_);g.JSC$20121_checkScreenAvailabilityTimeoutKey_=0;_.L0(g.sessionStatusTimeoutKey_);g.sessionStatusTimeoutKey_=0;_.L0(g.onLoungeTokenTimeoutKey_);g.onLoungeTokenTimeoutKey_=0;_.L0(g.getLoungeTokenTimeoutKey_);g.getLoungeTokenTimeoutKey_=0};var GS=function(g,u,q,Q){iQ.call(this,g,u,"DialSession");this.config_=Q;this.JSC$20125_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20125_theme_=q;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20125_deferredLaunchDeadlineTimer_=NaN;this.JSC$20125_boundSessionUpdate_=(0,_.EH)(this.JSC$20127_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20125_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20125_isInitLoungeToken_=!1;this.JSC$20125_lastLoungeTokenRefreshError_="unknown"};
_.A(GS,iQ);GS.prototype.setCastSession=function(g){this.JSC$20125_session_=g;this.JSC$20125_session_.addUpdateListener(this.JSC$20125_boundSessionUpdate_)};
GS.prototype.launchWithParams=function(g){this.connectData_=g;this.deferredLaunch_()};
GS.prototype.stop=function(){uFL(this);if(this.JSC$20125_session_)this.JSC$20125_session_.stop((0,_.EH)(this.onSessionStopped,this,null),(0,_.EH)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
GS.prototype.disposeInternal=function(){uFL(this);this.JSC$20125_session_&&this.JSC$20125_session_.removeUpdateListener(this.JSC$20125_boundSessionUpdate_);this.JSC$20125_session_=null;iQ.prototype.disposeInternal.call(this)};
var qeE=function(g){var u;return!!(g.config_.enableDialLoungeToken&&((u=g.JSC$20125_session_)==null?0:u.getDialAppInfo))},Lif=function(g){g.cancelPolling_=g.JSC$20116_screenService_.JSC$20114_getScreenByPollingPairingCode(g.reversePairingCode_,g.receiver_.label,g.receiver_.friendlyName,qeE(g),function(u,q){g.cancelPolling_=function(){};
g.JSC$20125_isInitLoungeToken_=!0;MD(g,u);u.idType=="shortLived"&&q>0&&QDz(g,q)},function(u){g.cancelPolling_=function(){};
g.onSessionStopped(u)})};
GS.prototype.JSC$20127_onSessionUpdate_=function(g){this.isDisposed()||g||(tE(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var EYb=function(g){var u={};u.pairingCode=g.reversePairingCode_;u.theme=g.JSC$20125_theme_;jTz()&&(u.env_useStageMdx=1);return _.kB(u)},PWb=function(g){return new Promise(function(u){g.reversePairingCode_=Sit();
if(g.connectData_){var q=new chrome.cast.DialLaunchResponse(!0,EYb(g));u(q);Lif(g)}else g.deferredLaunch_=function(){_.L0(g.JSC$20125_deferredLaunchDeadlineTimer_);g.deferredLaunch_=function(){};
g.JSC$20125_deferredLaunchDeadlineTimer_=NaN;var Q=new chrome.cast.DialLaunchResponse(!0,EYb(g));u(Q);Lif(g)},g.JSC$20125_deferredLaunchDeadlineTimer_=_.uS(function(){g.deferredLaunch_()},100)})},sDh=function(g,u,q){g.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(u));
var Q=new tG(u);return(new Promise(function(L){NAL(g,Q,function(E){E?(g.JSC$20125_isInitLoungeToken_=!0,f4(g.JSC$20116_screenService_,Q),MD(g,Q),QDz(g,q)):_.a4(Error("sl`"+JSON.stringify(u)));L(E)},5)})).then(function(L){return L?new chrome.cast.DialLaunchResponse(!1):PWb(g)})},y0t=function(g,u){var q=g.launchData_.receiver.label,Q=g.receiver_.friendlyName;
return(new Promise(function(L){rQf(g.JSC$20116_screenService_,q,u,Q,function(E){E&&E.token&&MD(g,E);L(E)},function(E){tE(g,"Failed to get DIAL screen: "+E);
L(null)})})).then(function(L){return L&&L.token?new chrome.cast.DialLaunchResponse(!1):PWb(g)})},NAL=function(g,u,q,Q){_.L0(g.JSC$20125_checkScreenAvailabilityTimeoutKey_);
g.JSC$20125_checkScreenAvailabilityTimeoutKey_=0;TnE(g.JSC$20116_screenService_,u,function(L){L||Q<0?q(L):g.JSC$20125_checkScreenAvailabilityTimeoutKey_=_.uS(function(){NAL(g,u,q,Q-1)},300)})},QDz=function(g,u){g.info("getDialAppInfoWithTimeout_ "+u);
qeE(g)&&(_.L0(g.getDialAppInfoTimeoutKey_),g.getDialAppInfoTimeoutKey_=0,u==0?vYp(g):g.getDialAppInfoTimeoutKey_=_.uS(function(){vYp(g)},u))},vYp=function(g){qeE(g)&&g.JSC$20125_session_.getDialAppInfo(function(u){g.info("getDialAppInfo dialLaunchData: "+JSON.stringify(u));
u=u.extraData||{};var q=null;if(u.loungeToken){var Q;((Q=g.screen_)==null?void 0:Q.token)==u.loungeToken&&(q="staleLoungeToken")}else q="missingLoungeToken";q?(g.JSC$20125_lastLoungeTokenRefreshError_=q,QDz(g,3E4)):(g.JSC$20125_isInitLoungeToken_=!1,g.JSC$20125_lastLoungeTokenRefreshError_="unknown",KK9(g,u.loungeToken),QDz(g,u.loungeTokenRefreshIntervalMs))},function(u){g.info("getDialAppInfo error: "+u);
g.JSC$20125_lastLoungeTokenRefreshError_="noLoungeTokenResponse";QDz(g,3E4)})},uFL=function(g){_.L0(g.JSC$20125_checkScreenAvailabilityTimeoutKey_);
g.JSC$20125_checkScreenAvailabilityTimeoutKey_=0;_.L0(g.getDialAppInfoTimeoutKey_);g.getDialAppInfoTimeoutKey_=0;g.cancelPolling_();g.cancelPolling_=function(){};
_.L0(g.JSC$20125_deferredLaunchDeadlineTimer_)};var $8=function(g,u){iQ.call(this,g,u,"ManualSession");this.JSC$20129_deferredLaunchDeadlineTimer_=_.uS((0,_.EH)(this.launchWithParams,this,null),150)};
_.A($8,iQ);$8.prototype.stop=function(){this.onSessionStopped()};
$8.prototype.setCastSession=function(){};
$8.prototype.launchWithParams=function(){_.L0(this.JSC$20129_deferredLaunchDeadlineTimer_);this.JSC$20129_deferredLaunchDeadlineTimer_=NaN;var g=eo(this.JSC$20116_screenService_.getScreens(),this.receiver_.label);if(g)MD(this,g);else this.onSessionStopped(Error("tl"))};
$8.prototype.disposeInternal=function(){_.L0(this.JSC$20129_deferredLaunchDeadlineTimer_);this.JSC$20129_deferredLaunchDeadlineTimer_=NaN;iQ.prototype.disposeInternal.call(this)};var F5=function(g,u){HZ.call(this);this.config_=u;this.JSC$20132_screenService_=g;this.JSC$20132_appId_=u.appId||"233637DE";this.JSC$20132_theme_=u.theme||"cl";this.disableDial_=u.disableCastApi||!1;this.forceMirroring_=u.forceMirroring||!1;this.JSC$20132_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.EH)(this.onReceiverAction_,this)};
_.A(F5,HZ);
F5.prototype.init=function(g,u){chrome.cast.timeout.requestSession=3E4;var q=new chrome.cast.SessionRequest(this.JSC$20132_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.w("desktop_enable_cast_connect")&&(q.androidReceiverCompatible=!0);this.disableDial_||(q.dialRequest=new chrome.cast.DialRequest("YouTube"));var Q=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;g=g||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var L=(0,_.EH)(this.onReceiverUpdated_,this);
q=new chrome.cast.ApiConfig(q,(0,_.EH)(this.onSessionEstablished_,this),L,Q,g);q.customDialLaunchCallback=(0,_.EH)(this.onDialLaunchRequested_,this);chrome.cast.initialize(q,(0,_.EH)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),w1z(),this.JSC$20132_screenService_.subscribe("onlineScreenChange",(0,_.EH)(this.JSC$20134_onScreenChange_,this)),this.customReceivers_=Drn(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.EH)(function(E){this.warn_("Failed to set initial custom receivers: "+
_.ek(E))},this)),this.publish("yt-remote-cast2-availability-change",pin(this)),u(!0))},this),(0,_.EH)(function(E){this.warn_("Failed to initialize API: "+_.ek(E));
u(!1)},this))};
F5.prototype.setConnectedScreenStatus=function(g,u){R8("Setting connected screen ID: "+g+" -> "+u);if(this.JSC$20132_session_){var q=this.JSC$20132_session_.screen_;if(!g||q&&q.id!=g)R8("Unsetting old screen status: "+this.JSC$20132_session_.receiver_.friendlyName),w1(this,null)}if(g&&u){if(!this.JSC$20132_session_){g=eo(this.JSC$20132_screenService_.getScreens(),g);if(!g){R8("setConnectedScreenStatus: Unknown screen.");return}if(g.idType=="shortLived"){R8("setConnectedScreenStatus: Screen with id type to be short lived.");
return}q=J0H(this,g);q||(R8("setConnectedScreenStatus: Connected receiver not custom..."),q=new chrome.cast.Receiver(g.uuid?g.uuid:g.id,g.name),q.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(q),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.EH)(function(Q){this.warn_("Failed to set initial custom receivers: "+_.ek(Q))},this)));
R8("setConnectedScreenStatus: new active receiver: "+q.friendlyName);w1(this,new $8(this.JSC$20132_screenService_,q),!0)}this.JSC$20132_session_.setDisplayStatus(u)}else R8("setConnectedScreenStatus: no screen.")};
var J0H=function(g,u){return u?aq(g.customReceivers_,function(q){return gH9(u,q.label)},g):null};
F5.prototype.setLaunchParams=function(g){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20132_session_?this.JSC$20132_session_.launchWithParams(g):this.warn_("Setting connection data without a session")};
F5.prototype.JSC$20134_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20132_session_?(this.JSC$20132_session_.stop(),w1(this,null)):R8("Stopping non-existing session")};
F5.prototype.requestSession=function(){chrome.cast.requestSession((0,_.EH)(this.onSessionEstablished_,this),(0,_.EH)(this.onSessionRequestFailed_,this))};
F5.prototype.disposeInternal=function(){this.JSC$20132_screenService_.unsubscribe("onlineScreenChange",(0,_.EH)(this.JSC$20134_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.TM(_.ri("yt.mdx.remote.debug.handlers_")||[],Gy9);_.Fo(this.JSC$20132_session_);HZ.prototype.disposeInternal.call(this)};
var R8=function(g){wQ("Controller",g)};
F5.prototype.warn_=function(g){wQ("Controller",g)};
var Gy9=function(g){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(g)},pin=function(g){return g.hasCastReceiver_||!!g.customReceivers_.length||!!g.JSC$20132_session_},w1=function(g,u,q){u!=g.JSC$20132_session_&&(_.Fo(g.JSC$20132_session_),(g.JSC$20132_session_=u)?(q?g.publish("yt-remote-cast2-receiver-resumed",u.receiver_):g.publish("yt-remote-cast2-receiver-selected",u.receiver_),u.subscribe("sessionScreen",(0,_.EH)(g.onSessionScreen_,g,u)),u.subscribe("sessionFailed",
function(){return jDL(g,u)}),u.screen_?g.publish("yt-remote-cast2-session-change",u.screen_):q&&g.JSC$20132_session_.launchWithParams(null)):g.publish("yt-remote-cast2-session-change",null))},jDL=function(g,u){g.JSC$20132_session_==u&&g.publish("yt-remote-cast2-session-failed")};
_.P=F5.prototype;_.P.onSessionScreen_=function(g,u){this.JSC$20132_session_==g&&(u||w1(this,null),this.publish("yt-remote-cast2-session-change",u))};
_.P.onReceiverAction_=function(g,u){if(!this.isDisposed())if(g)switch(g.friendlyName=chrome.cast.unescape(g.friendlyName),R8("onReceiverAction_ "+g.label+" / "+g.friendlyName+"-- "+u),u){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20132_session_)if(this.JSC$20132_session_.receiver_.label!=g.label)R8("onReceiverAction_: Stopping active receiver: "+this.JSC$20132_session_.receiver_.friendlyName),this.JSC$20132_session_.stop();else{R8("onReceiverAction_: Casting to active receiver.");this.JSC$20132_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20132_session_.screen_);break}switch(g.receiverType){case chrome.cast.ReceiverType.CUSTOM:w1(this,new $8(this.JSC$20132_screenService_,g));break;case chrome.cast.ReceiverType.DIAL:w1(this,new GS(this.JSC$20132_screenService_,g,this.JSC$20132_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:w1(this,new eA(this.JSC$20132_screenService_,g,this.config_));break;default:this.warn_("Unknown receiver type: "+g.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20132_session_&&
this.JSC$20132_session_.receiver_.label==g.label?this.JSC$20132_session_.stop():this.warn_("Stopping receiver w/o session: "+g.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.P.onDialLaunchRequested_=function(g){if(this.isDisposed())return Promise.reject(Error("ul"));var u=g.receiver;u.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+u.friendlyName),u.receiverType=chrome.cast.ReceiverType.DIAL);var q=this.JSC$20132_session_?this.JSC$20132_session_.receiver_:null;if(!q||q.label!=u.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+u.friendlyName),Promise.reject(Error("vl"));if(q&&q.label==u.label&&q.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20132_session_.screen_)return R8("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20132_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+q.receiverType+'" to "dial" for '+u.friendlyName);w1(this,new GS(this.JSC$20132_screenService_,u,this.JSC$20132_theme_,this.config_))}u=this.JSC$20132_session_;u.launchData_=g;u.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(g=u.launchData_.extraData||{},q=g.screenId||null,qeE(u)&&g.loungeToken?g.loungeTokenRefreshIntervalMs?g=sDh(u,{name:u.receiver_.friendlyName,screenId:g.screenId,loungeToken:g.loungeToken,dialId:u.launchData_.receiver.label,screenIdType:"shortLived"},g.loungeTokenRefreshIntervalMs):(_.a4(Error("rl`"+JSON.stringify(g))),g=y0t(u,q)):g=y0t(u,q)):g=PWb(u);return g};
_.P.onSessionEstablished_=function(g){var u=this;if(!this.isDisposed()&&!this.forceMirroring_){R8("New cast session ID: "+g.sessionId);var q=g.receiver;if(q.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20132_session_)if(q.receiverType==chrome.cast.ReceiverType.CAST)R8("Got resumed cast session before resumed mdx connection."),q.friendlyName=chrome.cast.unescape(q.friendlyName),w1(this,new eA(this.JSC$20132_screenService_,q,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var Q=this.JSC$20132_session_.receiver_,L=eo(this.JSC$20132_screenService_.getScreens(),Q.label);L&&gH9(L,q.label)&&Q.receiverType!=chrome.cast.ReceiverType.CAST&&q.receiverType==chrome.cast.ReceiverType.CAST&&(R8("onSessionEstablished_: manual to cast session change "+q.friendlyName),_.Fo(this.JSC$20132_session_),this.JSC$20132_session_=new eA(this.JSC$20132_screenService_,q,this.config_),this.JSC$20132_session_.subscribe("sessionScreen",(0,_.EH)(this.onSessionScreen_,this,this.JSC$20132_session_)),
this.JSC$20132_session_.subscribe("sessionFailed",function(){return jDL(u,u.JSC$20132_session_)}),this.JSC$20132_session_.launchWithParams(null));
this.JSC$20132_session_.setCastSession(g)}}};
_.P.JSC$20134_getCastSession=function(){return this.JSC$20132_session_?this.JSC$20132_session_.JSC$20118_getCastSession():null};
_.P.onSessionRequestFailed_=function(g){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+_.ek(g)),g.code!=chrome.cast.ErrorCode.CANCEL&&w1(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.P.onReceiverUpdated_=function(g){R8("Receiver availability updated: "+g);if(!this.isDisposed()){var u=pin(this);this.hasCastReceiver_=g==chrome.cast.ReceiverAvailability.AVAILABLE;pin(this)!=u&&this.publish("yt-remote-cast2-availability-change",pin(this))}};
var Drn=function(g){var u=g.JSC$20132_screenService_.JSC$20114_getOnlineScreens(),q=g.JSC$20132_session_&&g.JSC$20132_session_.receiver_;g=_.Jk(u,function(Q){q&&gH9(Q,q.label)&&(q=null);var L=Q.uuid?Q.uuid:Q.id,E=J0H(this,Q);E?(E.label=L,E.friendlyName=Q.name):(E=new chrome.cast.Receiver(L,Q.name),E.receiverType=chrome.cast.ReceiverType.CUSTOM);return E},g);
q&&(q.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(q=new chrome.cast.Receiver(q.label,q.friendlyName),q.receiverType=chrome.cast.ReceiverType.CUSTOM),g.push(q));return g};
F5.prototype.JSC$20134_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Drn(this),R8("Updating custom receivers: "+_.ek(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.EH)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",pin(this)))};
F5.prototype.setLaunchParams=F5.prototype.setLaunchParams;F5.prototype.setConnectedScreenStatus=F5.prototype.setConnectedScreenStatus;F5.prototype.stopSession=F5.prototype.JSC$20134_stopSession;F5.prototype.getCastSession=F5.prototype.JSC$20134_getCastSession;F5.prototype.requestSession=F5.prototype.requestSession;F5.prototype.init=F5.prototype.init;F5.prototype.dispose=F5.prototype.dispose;var f_x=_.CT(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),nHx=[],X1E=_.A1(f_x);var Mdp=function(g){g.audioTrackId=null;g.trackData=null;g.playerState=-1;g.hasPrevious=!1;g.hasNext=!1;g.playerTime_=0;g.playerTimeAt_=_.WK();g.seekableStart_=0;g.seekableEnd_=0;g.duration_=0;g.loadedTime=0;g.liveIngestionTime_=NaN;g.isLive_=!1};
_.P=mj.prototype;
_.P.reset=function(g){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;g&&(this.index=g.index,this.listId=g.listId,this.videoId=g.videoId,this.playerState=g.playerState,this.volume=g.volume,this.muted=g.muted,this.audioTrackId=g.audioTrackId,this.trackData=g.trackData,this.hasPrevious=g.hasPrevious,this.hasNext=g.hasNext,this.playerTime_=g.playerTime,this.playerTimeAt_=g.playerTimeAt,this.seekableStart_=g.seekableStart,this.seekableEnd_=g.seekableEnd,this.duration_=g.duration,this.loadedTime=
g.loadedTime,this.liveIngestionTime_=g.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.P.stopPlayer=function(){this.index=-1;this.videoId="";Mdp(this)};
_.P.isPlaying=function(){return this.playerState==1};
_.P.isBuffering=function(){return this.playerState==3};
_.P.isAdPlaying=function(){return this.playerState==1081};
var cB=function(g,u){g.playerTime_=u;g.playerTimeAt_=_.WK()},tdp=function(g){switch(g.playerState){case 1:case 1081:return(_.WK()-g.playerTimeAt_)/1E3+g.playerTime_;
case -1E3:return 0}return g.playerTime_};
mj.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.WK()-this.playerTimeAt_)/1E3:0):this.duration_};
var eaf=function(g,u,q){var Q=g.videoId;g.videoId=u;g.index=q;u!=Q&&Mdp(g)},Gjb=function(g){var u={};
u.index=g.index;u.listId=g.listId;u.videoId=g.videoId;u.playerState=g.playerState;u.volume=g.volume;u.muted=g.muted;u.audioTrackId=g.audioTrackId;u.trackData=_.pH.unsafeClone(g.trackData);u.hasPrevious=g.hasPrevious;u.hasNext=g.hasNext;u.playerTime=g.playerTime_;u.playerTimeAt=g.playerTimeAt_;u.seekableStart=g.seekableStart_;u.seekableEnd=g.seekableEnd_;u.duration=g.duration_;u.loadedTime=g.loadedTime;u.liveIngestionTime=g.liveIngestionTime_;return u};
mj.prototype.clone=function(){return new mj(Gjb(this))};var rQ=function(g,u){HZ.call(this);var q=this;this.state_=0;this.connection_=g;this.contextSubscriptions_=[];this.actionQueue_=new TOZ;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.EH)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.EH)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.EH)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.EH)(this.onCloudviewAvailabilityChange_,this);var Q=0;g?(Q=g.getProxyState(),
Q!=3&&(g.subscribe("proxyStateChange",this.setState_,this),$rK(this))):Q=3;Q!=0&&(u?this.setState_(Q):_.uS(function(){q.setState_(Q)},0));
(g=UYt())&&Raz(this,g);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.A(rQ,HZ);rQ.prototype.getState=function(){return this.state_};
rQ.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
rQ.prototype.reconnect=function(){this.connection_.reconnect()};
var HB=function(g){return new mj(g.connection_.getPlayerContextData())};
_.P=rQ.prototype;_.P.play=function(){AE(this)?(this.castMedia_?this.castMedia_.play(null,_.vH,wiL(this,"play")):Zz(this,"play"),c0h(this,1,tdp(HB(this))),this.publish("remotePlayerChange")):le(this,this.play)};
_.P.pause=function(){AE(this)?(this.castMedia_?this.castMedia_.pause(null,_.vH,wiL(this,"pause")):Zz(this,"pause"),c0h(this,2,tdp(HB(this))),this.publish("remotePlayerChange")):le(this,this.pause)};
_.P.seekTo=function(g){if(AE(this)){if(this.castMedia_){var u=HB(this),q=new chrome.cast.media.SeekRequest;q.currentTime=g;u.isPlaying()||u.isBuffering()?q.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:q.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(q,_.vH,wiL(this,"seekTo",{newTime:g}))}else Zz(this,"seekTo",{newTime:g});c0h(this,3,g);this.publish("remotePlayerChange")}else le(this,_.uH(this.seekTo,g))};
_.P.stop=function(){if(AE(this)){this.castMedia_?this.castMedia_.stop(null,_.vH,wiL(this,"stopVideo")):Zz(this,"stopVideo");var g=HB(this);g.stopPlayer();I8(this,g);this.publish("remotePlayerChange")}else le(this,this.stop)};
_.P.setVolume=function(g,u){if(AE(this)){var q=HB(this);if(this.castSession_){if(q.volume!=g){var Q=Math.round(g)/100;this.castSession_.setReceiverVolumeLevel(Q,(0,_.EH)(function(){cZ("set receiver volume: "+Q)},this),(0,_.EH)(function(){this.warn_("failed to set receiver volume.")},this))}q.muted!=u&&this.castSession_.setReceiverMuted(u,(0,_.EH)(function(){cZ("set receiver muted: "+u)},this),(0,_.EH)(function(){this.warn_("failed to set receiver muted.")},this))}else{var L={volume:g,
muted:u};q.volume!=-1&&(L.delta=g-q.volume);Zz(this,"setVolume",L)}q.muted=u;q.volume=g;I8(this,q)}else le(this,_.uH(this.setVolume,g,u))};
_.P.setAudioTrack=function(g,u){AE(this)?(u=u.getLanguageInfo().getId(),Zz(this,"setAudioTrack",{videoId:g,audioTrackId:u}),g=HB(this),g.audioTrackId=u,I8(this,g)):le(this,_.uH(this.setAudioTrack,g,u))};
_.P.addVideo=function(g){AE(this)?Zz(this,"addVideo",{videoId:g}):le(this,_.uH(this.addVideo,g))};
_.P.addPlaylist=function(g){AE(this)?Zz(this,"addVideos",{listId:g}):le(this,_.uH(this.addPlaylist,g))};
_.P.addVideos=function(g){g.length==0?this.warn_("Ignore add videos request due to empty list"):AE(this)?Zz(this,"addVideos",{videoIds:g.join(",")}):le(this,_.uH(this.addVideos,g))};
_.P.JSC$20144_removeVideo=function(g){AE(this)?Zz(this,"removeVideo",{videoId:g}):le(this,_.uH(this.JSC$20144_removeVideo,g))};
_.P.JSC$20144_insertVideo=function(g){AE(this)?Zz(this,"insertVideo",{videoId:g}):le(this,_.uH(this.JSC$20144_insertVideo,g))};
_.P.playVideo=function(g,u,q,Q,L,E,y){Q=Q===void 0?null:Q;L=L===void 0?null:L;E=E===void 0?null:E;y=y===void 0?null:y;var v=HB(this),J={videoId:g};q!==void 0&&(J.currentIndex=q);eaf(v,g,q||0);u!==void 0&&(cB(v,u),J.currentTime=u);Q&&(J.listId=Q);L&&(J.playerParams=L);E&&(J.clickTrackingParams=E);y&&(J.locationInfo=_.ek(y));Zz(this,"setPlaylist",J);Q||I8(this,v)};
_.P.nextVideo=function(g,u){if(AE(this)){if(g&&u){var q=HB(this);eaf(q,g,u);I8(this,q)}Zz(this,"next")}else le(this,_.uH(this.nextVideo,g,u))};
_.P.clearPlaylist=function(){if(AE(this)){Zz(this,"clearPlaylist");var g=HB(this);g.reset();I8(this,g);this.publish("remotePlayerChange")}else le(this,this.clearPlaylist)};
_.P.dispose=function(){if(this.state_!=3){var g=this.state_;this.state_=3;this.publish("proxyStateChange",g,this.state_)}HZ.prototype.dispose.call(this)};
_.P.disposeInternal=function(){Hzh(this);this.connection_=null;this.actionQueue_.clear();Raz(this,null);HZ.prototype.disposeInternal.call(this)};
var $rK=function(g){_.Tv("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(u){this.contextSubscriptions_.push(this.connection_.subscribe(u,_.uH(this.onProxyEvent_,u),this))},g)},Hzh=function(g){_.Tv(g.contextSubscriptions_,function(u){this.connection_.unsubscribeByKey(u)},g);
g.contextSubscriptions_.length=0},AE=function(g){return g.getState()==1},le=function(g,u){g.actionQueue_.getCount()<50&&g.actionQueue_.enqueue(u)},c0h=function(g,u,q){var Q=HB(g);
cB(Q,q);Q.playerState!=-1E3&&(Q.playerState=u);I8(g,Q)},Zz=function(g,u,q){g.connection_.sendMessage(u,q)},I8=function(g,u){Hzh(g);
g.connection_.setPlayerContextData(Gjb(u));$rK(g)};
rQ.prototype.setState_=function(g){if((g!=this.state_||g==2)&&this.state_!=3&&g!=0){var u=this.state_;this.state_=g;this.publish("proxyStateChange",u,g);if(g==1)for(;!this.actionQueue_.isEmpty();)g=this.actionQueue_,xpZ(g),g.front_.pop().apply(this);else g==3&&this.dispose()}};
rQ.prototype.onProxyEvent_=function(g,u){this.publish(g,u)};
var Raz=function(g,u){g.castSession_&&(g.castSession_.removeUpdateListener(g.boundCastStatusListener_),g.castSession_.removeMediaListener(g.boundCastMediaListener_),g.onCastMediaChange_(null));g.castSession_=u;if(g.castSession_&&(cZ("Setting cast session: "+g.castSession_.sessionId),g.castSession_.addUpdateListener(g.boundCastStatusListener_),g.castSession_.addMediaListener(g.boundCastMediaListener_),g.castSession_.media.length))g.onCastMediaChange_(g.castSession_.media[0])};
rQ.prototype.onCastStatusUpdate_=function(g){if(!g)this.onCastMediaChange_(null),Raz(this,null);else if(this.castSession_.receiver.volume){g=this.castSession_.receiver.volume;var u=HB(this),q=Math.round(100*g.level||0);if(u.volume!=q||u.muted!=g.muted)cZ("Cast volume update: "+g.level+(g.muted?" muted":"")),u.volume=q,u.muted=!!g.muted,I8(this,u)}};
rQ.prototype.onCastMediaChange_=function(g){cZ("Cast media: "+!!g);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=g)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),A0p(this),this.publish("remotePlayerChange")};
var A0p=function(g){var u=g.castMedia_.media,q=g.castMedia_.customData;if(u&&q){var Q=HB(g);u.contentId!=Q.videoId&&cZ("Cast changing video to: "+u.contentId);Q.videoId=u.contentId;Q.playerState=q.playerState;cB(Q,g.castMedia_.getEstimatedTime());I8(g,Q)}else cZ("No cast media video. Ignoring state update.")};
rQ.prototype.onCastMediaUpdate_=function(g){if(g)A0p(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
rQ.prototype.onCloudviewAvailabilityChange_=function(){var g=UYt();g&&Raz(this,g)};
rQ.prototype.warn_=function(g){wQ("CP",g)};
var wiL=function(g,u,q){return(0,_.EH)(function(Q){this.warn_("Failed to "+u+" with cast v2 channel. Error code: "+Q.code);Q.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+u+" using MDx browser channel."),Zz(this,u,q))},g)};var WZ=function(g,u,q,Q){Q=Q===void 0?!1:Q;HZ.call(this);var L=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$20149_http_=g;this.enableConnectWithInitialState_=Q;this.listeners_.push(_.xO(window,"beforeunload",function(){L.JSC$20152_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new mj;this.currentScreenId_=u.id;this.currentScreenIdType_=u.idType;this.channelService=eEE(this.JSC$20149_http_,q,this.JSC$20152_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){ZzE(L)});
this.channelService.listen("channelClosed",function(){ie("Channel closed");isNaN(L.connectTimerId_)?p1E(!0):p1E();L.dispose()});
this.channelService.listen("channelError",function(E){p1E();isNaN(L.getReconnectTimeout_())?(E==1&&L.currentScreenIdType_=="shortLived"&&L.publish("browserChannelAuthError",E),ie("Channel error: "+E+" without reconnection"),L.dispose()):(L.reconnecting_=!0,ie("Channel error: "+E+" with reconnection in "+L.getReconnectTimeout_()+" ms"),l_n(L,2))});
this.channelService.listen("channelMessage",function(E){I_Z(L,E)});
this.channelService.setLoungeToken(u.token);this.subscribe("remoteQueueChange",function(){var E=L.playerContext_.videoId;QTt()&&_.Ex("yt-remote-session-video-id",E)})};
_.A(WZ,HZ);
WZ.prototype.connect=function(g,u){if(u){var q=u.listId,Q=u.videoId,L=u.videoIds,E=u.playerParams,y=u.clickTrackingParams,v=u.index,J={videoId:Q},f=u.currentTime,t=u.locationInfo;u=u.loopMode;f!==void 0&&(J.currentTime=f<=5?0:f);E&&(J.playerParams=E);t&&(J.locationInfo=t);y&&(J.clickTrackingParams=y);q&&(J.listId=q);L&&L.length>0&&(J.videoIds=L.join(","));v!==void 0&&(J.currentIndex=v);this.enableConnectWithInitialState_&&(J.loopMode=u||"LOOP_MODE_OFF");q&&(this.playerContext_.listId=q);this.playerContext_.videoId=
Q;this.playerContext_.index=v||0;this.playerContext_.state=3;cB(this.playerContext_,f);this.autoplayMode_="UNSUPPORTED";q=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";ie("Connecting with "+q+" and params: "+_.ek(J));this.channelService.connect({method:q,params:_.ek(J)},g,sTh())}else ie("Connecting without params"),this.channelService.connect({},g,sTh());izz(this)};
WZ.prototype.setLoungeToken=function(g){this.channelService.setLoungeToken(g)};
WZ.prototype.dispose=function(){this.isDisposed()||(_.xQ("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),l_n(this,3));HZ.prototype.dispose.call(this)};
WZ.prototype.disposeInternal=function(){CWh(this);bz9(this);drK(this);_.L0(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.L0(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.roq(this.listeners_);this.listeners_.length=0;this.channelService.dispose();HZ.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Fip=function(g){return aq(g.connectedDevices_,function(u){return u.type=="LOUNGE_SCREEN"})},ie=function(g){wQ("conn",g)},l_n=function(g,u){g.publish("proxyStateChange",u)},izz=function(g){g.connectTimerId_=_.uS(function(){ie("Connecting timeout");
g.JSC$20152_disconnect_(1)},2E4)},CWh=function(g){_.L0(g.connectTimerId_);
g.connectTimerId_=NaN},drK=function(g){_.L0(g.reconnectedCheckScreenTimeout_);
g.reconnectedCheckScreenTimeout_=NaN},a_p=function(g){bz9(g);
g.playingSyncTimerId_=_.uS(function(){mrp(g,"getNowPlaying")},2E4)},bz9=function(g){_.L0(g.playingSyncTimerId_);
g.playingSyncTimerId_=NaN},ZzE=function(g){ie("Channel opened");
g.reconnecting_&&(g.reconnecting_=!1,drK(g),g.reconnectedCheckScreenTimeout_=_.uS(function(){ie("Timing out waiting for a screen.");g.JSC$20152_disconnect_(1)},15E3))},Xih=function(g,u){var q=null;
if(u){var Q=Fip(g);Q&&(q={clientName:Q.clientName,deviceMake:Q.brand,deviceModel:Q.model,osVersion:Q.osVersion})}_.xQ("yt.mdx.remote.remoteClient_",q);u&&(CWh(g),drK(g));q=g.channelService.isChannelOpened()&&isNaN(g.connectTimerId_);u==q?u&&(l_n(g,1),mrp(g,"getSubtitlesTrack")):u?(g.getOtherConnectedRemoteId_()&&g.playerContext_.reset(),l_n(g,1),mrp(g,"getNowPlaying"),Vd9(g)):g.JSC$20152_disconnect_(1)},r0L=function(g,u){var q=u.params.videoId;
delete u.params.videoId;q==g.playerContext_.videoId&&(_.pH.isEmpty(u.params)?g.playerContext_.trackData=null:g.playerContext_.trackData=u.params,g.publish("remotePlayerChange"))},Win=function(g,u,q){var Q=u.params.videoId||u.params.video_id,L=parseInt(u.params.currentIndex,10);
g.playerContext_.listId=u.params.listId||g.playerContext_.listId;eaf(g.playerContext_,Q,L);g.publish("remoteQueueChange",q)},TAb=function(g,u){u.params=u.params||{};
Win(g,u,"NOW_PLAYING_MAY_CHANGE");g.onStateChange_(u);g.publish("autoplayDismissed")};
WZ.prototype.onStateChange_=function(g){var u=parseInt(g.params.currentTime||g.params.current_time,10);cB(this.playerContext_,isNaN(u)?0:u);u=parseInt(g.params.state,10);u=isNaN(u)?-1:u;u==-1&&this.playerContext_.playerState==-1E3&&(u=-1E3);this.playerContext_.playerState=u;u=Number(g.params.loadedTime);this.playerContext_.loadedTime=isNaN(u)?0:u;u=Number(g.params.duration);this.playerContext_.duration_=isNaN(u)?0:u;u=this.playerContext_;var q=Number(g.params.liveIngestionTime);u.liveIngestionTime_=
q;u.isLive_=isNaN(q)?!1:!0;u=this.playerContext_;q=Number(g.params.seekableStartTime);g=Number(g.params.seekableEndTime);u.seekableStart_=isNaN(q)?0:q;u.seekableEnd_=isNaN(g)?0:g;this.playerContext_.playerState==1?a_p(this):bz9(this);this.publish("remotePlayerChange")};
WZ.prototype.onAdStateChange_=function(g){if(this.playerContext_.playerState!=-1E3){var u=1085;switch(parseInt(g.params.adState,10)){case 1:u=1081;break;case 2:u=1084;break;case 0:u=1083}this.playerContext_.playerState=u;g=parseInt(g.params.currentTime,10);cB(this.playerContext_,isNaN(g)?0:g);this.publish("remotePlayerChange")}};
var haZ=function(g,u){var q=u.params.muted=="true";g.playerContext_.volume=parseInt(u.params.volume,10);g.playerContext_.muted=q;g.publish("remotePlayerChange")},Yeh=function(g,u){g.autoplayVideoId_=u.params.videoId;
g.publish("nowAutoplaying",parseInt(u.params.timeout,10))},Ozh=function(g,u){g.autoplayVideoId_=u.params.videoId||null;
g.publish("autoplayUpNext",g.autoplayVideoId_)},Kip=function(g,u){g.autoplayMode_=u.params.autoplayMode;
g.publish("autoplayModeChange",g.autoplayMode_);g.autoplayMode_=="DISABLED"&&g.publish("autoplayDismissed")},xr9=function(g,u){var q=u.params.hasNext=="true";
g.playerContext_.hasPrevious=u.params.hasPrevious=="true";g.playerContext_.hasNext=q;g.publish("previousNextChange")};
WZ.prototype.isCapabilitySupportedOnConnectedDevices_=function(g){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var u=_.N(this.connectedDevices_),q=u.next();!q.done;q=u.next())if(!q.value.capabilities.has(g))return!1;return!0};
var I_Z=function(g,u){u=u.message;u.params?ie("Received: action="+u.action+", params="+_.ek(u.params)):ie("Received: action="+u.action+" {}");switch(u.action){case "loungeStatus":u=_.yD(u.params.devices);g.connectedDevices_=_.Jk(u,function(Q){return new JE(Q)});
u=!!aq(g.connectedDevices_,function(Q){return Q.type=="LOUNGE_SCREEN"});
Xih(g,u);u=g.isCapabilitySupportedOnConnectedDevices_("mlm");g.publish("multiStateLoopEnabled",u);break;case "loungeScreenDisconnected":DMC(g.connectedDevices_,function(Q){return Q.type=="LOUNGE_SCREEN"});
Xih(g,!1);break;case "remoteConnected":var q=new JE(_.yD(u.params.device));aq(g.connectedDevices_,function(Q){return Q.equals(q)})||_.Chk(g.connectedDevices_,q);
break;case "remoteDisconnected":q=new JE(_.yD(u.params.device));DMC(g.connectedDevices_,function(Q){return Q.equals(q)});
break;case "gracefulDisconnect":break;case "playlistModified":Win(g,u,"QUEUE_MODIFIED");break;case "nowPlaying":TAb(g,u);break;case "onStateChange":g.onStateChange_(u);break;case "onAdStateChange":g.onAdStateChange_(u);break;case "onVolumeChanged":haZ(g,u);break;case "onSubtitlesTrackChanged":r0L(g,u);break;case "nowAutoplaying":Yeh(g,u);break;case "autoplayDismissed":g.publish("autoplayDismissed");break;case "autoplayUpNext":Ozh(g,u);break;case "onAutoplayModeChanged":Kip(g,u);break;case "onHasPreviousNextChanged":xr9(g,
u);break;case "requestAssistedSignIn":g.publish("assistedSignInRequested",u.params.authCode);break;case "onLoopModeChanged":g.publish("loopModeChange",u.params.loopMode);break;default:ie("Unrecognized action: "+u.action)}};
_.P=WZ.prototype;_.P.getProxyState_=function(){var g=3;this.isDisposed()||(g=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(g=1):g=2);return g};
_.P.JSC$20152_disconnect_=function(g){ie("Disconnecting with "+g);_.xQ("yt.mdx.remote.remoteClient_",null);CWh(this);this.publish("beforeDisconnect",g);g==1&&p1E();this.channelService.disconnect(g);this.dispose()};
_.P.getPlayerContextData_=function(){var g=this.playerContext_;this.clientVideoId_&&(g=this.playerContext_.clone(),eaf(g,this.clientVideoId_,g.index));return Gjb(g)};
_.P.setPlayerContextData_=function(g){var u=this,q=new mj(g);q.videoId&&q.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=q.videoId,_.L0(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.uS(function(){if(u.clientVideoId_){var L=u.clientVideoId_;u.clientVideoId_=null;u.playerContext_.videoId!=L&&mrp(u,"getNowPlaying")}},5E3));
var Q=[];this.playerContext_.listId==q.listId&&this.playerContext_.videoId==q.videoId&&this.playerContext_.index==q.index||Q.push("remoteQueueChange");this.playerContext_.playerState==q.playerState&&this.playerContext_.volume==q.volume&&this.playerContext_.muted==q.muted&&tdp(this.playerContext_)==tdp(q)&&_.ek(this.playerContext_.trackData)==_.ek(q.trackData)||Q.push("remotePlayerChange");this.playerContext_.reset(g);_.Tv(Q,function(L){this.publish(L)},this)};
_.P.getOtherConnectedRemoteId_=function(){var g=this.channelService.getDeviceId(),u=aq(this.connectedDevices_,function(q){return q.type=="REMOTE_CONTROL"&&q.id!=g});
return u?u.id:""};
_.P.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.P.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.P.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.P.JSC$20152_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var Vd9=function(g){_.L0(g.idleDisconnectTimerId_);g.idleDisconnectTimerId_=_.uS(function(){g.JSC$20152_disconnect_(1)},864E5)},mrp=function(g,u,q){q?ie("Sending: action="+u+", params="+_.ek(q)):ie("Sending: action="+u);
g.channelService.sendMessage(u,q)};
WZ.prototype.sendMessageWithUserAction_=function(g,u){mrp(this,g,u);Vd9(this)};
WZ.prototype.JSC$20152_getXsrfToken_=function(){var g=_.sk.get("SAPISID","")||_.sk.get("__Secure-1PAPISID",void 0)||"",u=_.sk.get("__Secure-3PAPISID","")||"";if(!g&&!u)return"";g=_.om(_.PS(g),2);u=_.om(_.PS(u),2);return _.om(_.PS(","+g+","+u),2)};
WZ.prototype.subscribe=WZ.prototype.subscribe;WZ.prototype.unsubscribeByKey=WZ.prototype.unsubscribeByKey;WZ.prototype.getProxyState=WZ.prototype.getProxyState_;WZ.prototype.disconnect=WZ.prototype.JSC$20152_disconnect_;WZ.prototype.getPlayerContextData=WZ.prototype.getPlayerContextData_;WZ.prototype.setPlayerContextData=WZ.prototype.setPlayerContextData_;WZ.prototype.getOtherConnectedRemoteId=WZ.prototype.getOtherConnectedRemoteId_;WZ.prototype.getReconnectTimeout=WZ.prototype.getReconnectTimeout_;
WZ.prototype.getAutoplayMode=WZ.prototype.getAutoplayMode_;WZ.prototype.getAutoplayVideoId=WZ.prototype.getAutoplayVideoId_;WZ.prototype.reconnect=WZ.prototype.JSC$20152_reconnect_;WZ.prototype.sendMessage=WZ.prototype.sendMessageWithUserAction_;WZ.prototype.getXsrfToken=WZ.prototype.JSC$20152_getXsrfToken_;WZ.prototype.isCapabilitySupportedOnConnectedDevices=WZ.prototype.isCapabilitySupportedOnConnectedDevices_;var c9K=function(g){AG.call(this,"ScreenServiceProxy");this.instance_=g;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.EH)(this.JSC$20155_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.EH)(this.onOnlineScreenChange_,this)))};
_.A(c9K,AG);_.P=c9K.prototype;_.P.getScreens=function(g){return this.instance_.$_gs(g)};
_.P.contains=function(g){return!!this.instance_.$_c(g)};
_.P.get=function(g){return this.instance_.$_g(g)};
_.P.start=function(){this.instance_.$_st()};
_.P.add=function(g,u,q){this.instance_.$_a(g,u,q)};
_.P.remove=function(g,u,q){this.instance_.$_r(g,u,q)};
_.P.updateName=function(g,u,q,Q){this.instance_.$_un(g,u,q,Q)};
_.P.disposeInternal=function(){for(var g=this.subscriptionKeys_.length,u=0;u<g;++u)this.instance_.$_ubk(this.subscriptionKeys_[u]);this.subscriptionKeys_.length=0;this.instance_=null;AG.prototype.disposeInternal.call(this)};
_.P.JSC$20155_onScreenChange_=function(){this.publish("screenChange")};
_.P.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Ia.prototype.$_st=Ia.prototype.start;Ia.prototype.$_gspc=Ia.prototype.JSC$20114_getScreenByPairingCode;Ia.prototype.$_gsppc=Ia.prototype.JSC$20114_getScreenByPollingPairingCode;Ia.prototype.$_c=Ia.prototype.contains;Ia.prototype.$_g=Ia.prototype.get;Ia.prototype.$_a=Ia.prototype.add;Ia.prototype.$_un=Ia.prototype.updateName;Ia.prototype.$_r=Ia.prototype.remove;Ia.prototype.$_gs=Ia.prototype.getScreens;Ia.prototype.$_gos=Ia.prototype.JSC$20114_getOnlineScreens;Ia.prototype.$_s=Ia.prototype.subscribe;
Ia.prototype.$_ubk=Ia.prototype.unsubscribeByKey;var tTZ=null,A9z=!1,Q9h=null,aa=null,wef=null,V6=[];var BAf=new _.CB("yt-menu"),zah=function(){},kjK=function(g,u,q){g=u=="right-click"?q.rightClickMenuPopupHint:q.menuPopupHint;
if(!(nYH(u)>10))return u=u||"default",BAf.set(u+"-impression",nYH(u)+1),g},nYH=function(g){return parseInt(BAf.get((g||"default")+"-impression")||0,10)};
_.rT(zah);var Seb=function(){this.contexts_=new WeakMap;this.JSC$20161_networkService_=this.activeContext_=null},oYK=function(g,u,q){var Q=g.contexts_.get(u);
Q||(Q=new qdH(g.JSC$20161_networkService_),g.contexts_.set(u,Q));g.activeContext_=Q;q&&g.activeContext_.reset();g.activeContext_.start();return g.activeContext_};var Ti=_.fvT(function(g){var u=_.oG("DIV");g&&(u.className=g);u.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";g=_.oG("DIV");_.SUR(g,"200px","200px");u.appendChild(g);document.body.appendChild(u);g=u.offsetWidth-u.clientWidth;_.UU(u);return g});var Yc=_.S8("kevlar_watch_page_horizontal_margin",24),FHZ=_.S8("kevlar_watch_page_columns_top_padding",24),lcC=426+Yc*2,hG=_.S8("kevlar_watch_two_column_width_threshold",1E3),ieE=Yc*2,Caf=_.S8("kevlar_watch_secondary_width",402),dyE=_.S8("kevlar_watch_max_player_width",1280),myK=_.S8("kevlar_watch_flexy_metadata_height",136),beC=ieE+310+Yc,Ich=ieE+360+Yc;var C4=function(){};
C4.prototype.enqueue=function(){var g=this,u;return _.D(function(q){if(g.isCounterfactual())return(u=g.getCounterfactualData())&&g.shouldLogCounterfactualImpression()&&g.sendImpressionEndpoints(u),q.return();g.doEnqueue();_.Wx(q)})};
C4.prototype.sendImpressionEndpoints=function(g){_.VC.getInstance().triggerOptionalAction("yt-service-request",{},g[0])};var be=function(g,u){this.renderer=g;this.page=u};
_.A(be,C4);be.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
be.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
be.prototype.shouldLogCounterfactualImpression=function(){return!0};
be.prototype.doEnqueue=function(){var g=_.dv(this.page);g&&g.pause();this.renderer.impressionCommand&&_.VC.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.j2(_.VC.getInstance(),[this.renderer.promoCommand],this.page)};var UrZ=function(g,u){this.renderer=g;this.resolver=_.A9();this.JSC$20173_enforcementCounter=new _.NN0;u?this.JSC$20173_playerManager=_.dv(u):this.JSC$20173_playerManager=null;_.zN(1,!0)};
_.A(UrZ,C4);_.P=UrZ.prototype;_.P.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var g=[];this.renderer.impressionEndpoints.forEach(function(u){(u=_.jy(u))&&g.push(u)});
return g}};
_.P.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.P.shouldLogCounterfactualImpression=function(){var g=_.BMS();g?(this.JSC$20173_enforcementCounter.increment("POPUP"),_.zN(3)):_.zN(2);return g};
_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.doEnqueue=function(){var g=this;_.BMS()?(this.JSC$20173_enforcementCounter.increment("POPUP"),_.zN(3),gpZ(this)):this.JSC$20173_playerManager?(this.resolver.promise.then(function(){gpZ(g)}),uOL(this.resolver,this.JSC$20173_playerManager)):_.zN(2)};
var uOL=function(g,u){var q=_.A9();u.getPlayerPromise().then(function(Q){q.resolve(Q)});
q.promise.then(function(Q){Q.addEventListener("onAbnormalityDetected",g.resolve);_.fY(g.promise,function(){Q.removeEventListener("onAbnormalityDetected",g.resolve)})});
g.promise.thenCatch(function(){q.promise.cancel()})},gpZ=function(g){_.zN(3);
var u={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:g.renderer}};u=_.VC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:u},{});Promise.all(u).then(function(){qLZ();g.JSC$20173_playerManager&&g.JSC$20173_playerManager.pause()})},qLZ=function(){HVx(function(g,u){dKh(g,u);
g===0?_.zN(7):_.zN(4)})};var QUn=function(g,u){this.renderer=g;this.page=u;this.resolver=_.A9()};
_.A(QUn,C4);_.P=QUn.prototype;_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var g=this;this.resolver.promise.then(function(){var q={popup:{mealbarPromoRenderer:g.renderer},popupType:"MEALBAR"};_.VC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:q},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var u=_.dv(this.page);u&&LTh(this.resolver,u)}break;default:this.resolver.resolve()}};
var LTh=function(g,u){var q=_.A9();u.getPlayerPromise().then(function(Q){q.resolve(Q)});
q.promise.then(function(Q){Q.addEventListener("onAdEnd",g.resolve);_.fY(g.promise,function(){Q.removeEventListener("onAdEnd",g.resolve)})});
g.promise.thenCatch(function(){q.promise.cancel()})};var EpK=function(g,u){this.renderer=g;this.page=u};
_.A(EpK,C4);_.P=EpK.prototype;_.P.cancel=function(){this.JSC$20181_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20181_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20181_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var g=this,u,q;((u=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(q=u.playbackUpsellDialogTriggerConditionData)==null?void 0:q.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20181_downloadedVideosCountSelectorUnsubscriber=_.qG(_.bR(),GgK,function(Q,L){Q>L&&(PfL(g),g.cancel())}):PfL(this)};
var PfL=function(g){var u={popup:{upsellDialogRenderer:g.renderer},popupType:"MODAL"};_.VC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:u},{});(g=_.dv(g.page))&&g.pause()};var d1={},NKx=(d1.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",d1.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",d1.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",d1.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",d1.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",d1.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",d1.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",d1),sUz=function(g,u){this.renderer=g;this.targetManager=
u};
_.A(sUz,C4);_.P=sUz.prototype;_.P.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20188_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20188_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20188_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){if(this.isCounterfactual()){var g;return(g=this.renderer.promoConfig)==null?void 0:g.impressionEndpoints}};
_.P.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var g=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20188_downloadedVideosCountSelectorUnsubscriber=_.qG(_.bR(),GgK,function(u,q){g.renderer.targetId&&u>q&&(noC(g.targetManager,g.renderer.targetId,yph(g)),g.cancel())});
break;default:noC(this.targetManager,this.renderer.targetId,yph(this))}};
var yph=function(g){var u;if((u=g.renderer.suggestedPosition)==null?0:u.type)var q=NKx[g.renderer.suggestedPosition.type];q||(q="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:g.renderer},popupType:"HINT",position:q}}};var vpp=function(){this.previousPage=null},DjL;
vpp.prototype.registerPromoCommand=function(g,u){ph9(this,void 0,void 0,_.c(g.roadblock,ei9),void 0,void 0,u)};
var ph9=function(g,u,q,Q,L,E,y){g.previousPage!==y&&g.pendingTooltipPromo&&g.pendingTooltipPromo.cancel();g.previousPage=y;L?(g.pendingEnforcementPromo&&g.pendingEnforcementPromo.cancel(),g.pendingEnforcementPromo=new UrZ(L,y),g.pendingEnforcementPromo.enqueue()):E?(g.pendingCommandWrapperPromo=new be(E,y),g.pendingCommandWrapperPromo.enqueue()):Q?(g.pendingRoadblockPromo&&g.pendingRoadblockPromo.cancel(),g.pendingRoadblockPromo=new EpK(Q,y),g.pendingRoadblockPromo.enqueue()):u?(g.pendingMealbarPromo&&
g.pendingMealbarPromo.cancel(),g.pendingMealbarPromo=new QUn(u,y),g.pendingMealbarPromo.enqueue()):q&&(g.pendingTooltipPromo&&g.pendingTooltipPromo.cancel(),g.pendingTooltipPromo=new sUz(q,_.S9()),g.pendingTooltipPromo.enqueue())},Jpf=function(){DjL||(DjL=new vpp);
return DjL};var jUf=function(){this.horizontal=!1},fUh=function(g,u){g.horizontal=u};
jUf.prototype.position=function(g,u,q,Q){Q=Q===void 0?1:Q;g=this.delta(g)*Q+u;Q=Math.max(u,q);return g>=Math.min(u,q)&&g<=Q?g:q};
jUf.prototype.axis=function(g){g=this.direction(g);return g==="up"||g==="down"?"Y":"X"};var FB=function(g,u,q){u=u===void 0?_.oc():u;this.target=g;this.manager=u;this.touchAction=q;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
FB.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(_.na(this.events)));for(var g=_.N(this.events),u=g.next();!u.done;u=g.next())this.listen(u.value)}};
FB.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.na(this.events)));for(var g=_.N(this.events),u=g.next();!u.done;u=g.next())this.unlisten(u.value)}};
FB.prototype.listen=function(g){this.eventMap[g]&&this.target.addEventListener(g,this.eventMap[g])};
FB.prototype.unlisten=function(g){this.eventMap[g]&&this.target.removeEventListener(g,this.eventMap[g])};var mO=function(){jUf.apply(this,arguments)};
_.A(mO,jUf);mO.prototype.direction=function(g){var u=g.detail;g=u.deltaY;u=u.deltaX;return g&&!this.horizontal?g>0?"down":"up":u&&this.horizontal?u>0?"right":"left":"none"};
mO.prototype.distance=function(g){return Math.abs(this.delta(g))};
mO.prototype.delta=function(g){var u=this.direction(g),q=g.detail;g=q.deltaX;q=q.deltaY;return u==="up"||u==="down"?q||0:g||0};
mO.prototype.velocity=function(g){var u=this.direction(g),q=g.detail;g=q.velocityX;q=q.velocityY;return Math.abs(u==="up"||u==="down"?q||0:g||0)};var a8=function(g,u,q,Q,L,E){L=L===void 0?new mO:L;E=E===void 0?_.oc():E;FB.call(this,u,E,Q);var y=this;this.element=g;this.target=u;this.config=q;this.input=L;this.manager=E;this.events=["panstart","panmove","panend"];this.onPanStart=function(){y.config.draggingClass&&y.element.classList.add(y.config.draggingClass);y.config.startAction&&y.config.startAction()};
this.onPanMove=function(v){var J=MYK(y,v);if(J){y.move(v,J);J.fade&&y.fade(v,J);var f=y.input.direction(v);J.moveAction&&J.moveAction(tYh(y,v,J),f)}};
this.onPanEnd=function(v){var J,f,t,e,G,R;return _.D(function(H){if(H.nextAddress==1){y.animationRequestId&&cancelAnimationFrame(y.animationRequestId);y.animationRequestId=void 0;J=MYK(y,v);if(!J)return H.return();f=J;t=f.triggerAction;e=f.fade;G=f.disableFinish;R=f.translateBack;var l=y.input.velocity(v),d=y.input.distance(v),F=y.threshold(J);return l>.3&&d>10||d>F?G?H.jumpTo(6):e?H.yield(eQp(y,v),6):H.yield(G6L(y,v,J),6):R?H.yield(y.translateBack(v),3):H.jumpTo(3)}H.nextAddress!=3&&t&&t();y.config.draggingClass&&
y.element.classList.remove(y.config.draggingClass);y.reset();_.Wx(H)})};
g=Object.keys(q.triggers);this.directions=new Set(g);fUh(this.input,this.directions.has("right")||this.directions.has("left"))};
_.A(a8,FB);a8.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var MYK=function(g,u){u=g.input.direction(u);return g.config.triggers[u]};
a8.prototype.move=function(g,u){var q=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var Q=q.input.axis(g),L=q.input.position(g,q.config.startPosition,u.endPosition,u.moveRatio||1);q.element.style.transform="translate"+Q+"("+L+"px)";q.animationRequestId=void 0}))};
var tYh=function(g,u,q){var Q=q.moveRatio||1;q=Math.abs(g.config.startPosition-q.endPosition);return Math.min(g.input.distance(u)*Q,q)/q};
a8.prototype.fade=function(g,u){var q=u.endOpacity;g=tYh(this,g,u);g>0&&(this.element.style.opacity=""+(((q||0)-1)*g+1))};
a8.prototype.threshold=function(g){return g.threshold?g.threshold:Math.abs(g.endPosition-this.config.startPosition)/3};
var G6L=function(g,u,q){var Q,L,E,y,v,J,f;return _.D(function(t){if(t.nextAddress==1)return Q=g.input.delta(u)+g.config.startPosition,L=g.input.axis(u),E=q,y=E.endPosition,v=E.transitionEndPosition,f=(J=v)!=null?J:y,t.yield(g.element.animate([{transform:"translate"+L+"("+Q+"px)"},{transform:"translate"+L+"("+f+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);g.element.style.transform="translate"+L+"("+f+"px)";_.Wx(t)})};
a8.prototype.translateBack=function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1){if(!u.element.style.transform)return L.return();q=u.input.axis(g);Q=u.config.startPosition;return L.yield(u.element.animate([{transform:u.element.style.transform},{transform:"translate"+q+"("+Q+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}u.element.style.transform="translate"+q+"("+Q+"px)";_.Wx(L)})};
var eQp=function(g,u){var q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return q=g.input.delta(u)+g.config.startPosition,Q=g.input.axis(u),L=q+70,E=g.element.style.opacity===""?1:g.element.style.opacity,y.yield(g.element.animate([{transform:"translate"+Q+"("+q+"px)",opacity:E},{transform:"translate"+Q+"("+L+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);g.element.style.transform="translate"+Q+"("+L+"px)";g.element.style.opacity="0";_.Wx(y)})};var hGZ=new _.CB("ratelimit");var $jn=function(g,u){this.playerProvider_=g;this.actionSenderElement_=u;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
$jn.prototype.reset=function(){RQf(this);this.isUserPredictedAbsent_=!1};
var RQf=function(g,u){!g.youThereData_||g.showWarningJob_||u!==void 0&&u||(Ou("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.j_(),g.youThereData_,g.clientPlaybackNonce_),_.A_());_.Hv.cancelJob(g.showWarningJob_);g.showWarningJob_=0;_.Hv.cancelJob(g.showBlockingWarningJob_);g.showBlockingWarningJob_=0;_.Hv.cancelJob(g.pausePlaybackJob_);g.pausePlaybackJob_=0;g.youThereData_=null;g.clientPlaybackNonce_=void 0;g.inYouThereFlow_=!1},cp9=function(g,u){var q,Q,L;
_.D(function(E){if(E.nextAddress==1)return g.reset(),E.yield(g.playerProvider_().getPlayerPromise(),2);q=E.yieldResult;g.clientPlaybackNonce_=q.getVideoData().cpn;g.youThereData_=u.configData.youThereData;if(!g.youThereData_)return E.return();if(g.youThereData_.triggerReason&&g.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!YpZ())return Ou("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.j_(),g.youThereData_,g.clientPlaybackNonce_),E.return();Q=g.youThereData_.promptDelaySec;L=q.getCurrentTime();
g.showWarningJob_=_.Hv.addLowPriorityJob(function(){return _.D(function(y){g.showWarningJob_=0;return y.yield(whf(g),0)})},Math.max(Q-L,0)*1E3);
_.Wx(E)})},whf=function(g){var u,q,Q,L,E,y;
return _.D(function(v){if(v.nextAddress==1)return v.yield(g.playerProvider_().getPlayerPromise(),2);if(v.nextAddress!=3)return u=v.yieldResult,q=u.getCurrentTime(),v.yield(H_f(g),3);Q=v.yieldResult;if(!Q||!g.youThereData_)return v.return();if(_.w("check_user_lact_at_prompt_shown_time_on_web")&&(L=parseInt(g.youThereData_.lactThresholdMs,10),_.nB()<L))return Ou("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.j_(),g.youThereData_,g.clientPlaybackNonce_),v.return();if(g.youThereData_.playbackPauseDelayMs<=
0)return App(g),v.return();!_.w("external_fullscreen")&&(E=_.b1())&&(g.ignoreFullscreenExitUserActivity_=!0,_.Hv.addLowPriorityJob(function(){g.ignoreFullscreenExitUserActivity_=!1},2E3),_.dw(E));
g.youThereData_.showToastWarningPrompt&&(VQ(g,g.youThereData_.showWarningActions),g.inYouThereFlow_=!0,Ou("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.j_(),g.youThereData_,g.clientPlaybackNonce_,q),Ou("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.j_(),g.youThereData_,g.clientPlaybackNonce_,q));y=0;g.youThereData_.blockingPromptDelayMs&&(y=g.youThereData_.blockingPromptDelayMs);g.showBlockingWarningJob_=_.Hv.addLowPriorityJob(function(){return _.D(function(J){g.showBlockingWarningJob_=0;return J.yield(Z_H(g),
0)})},y);
_.Wx(v)})},Z_H=function(g){var u,q,Q;
return _.D(function(L){if(L.nextAddress==1)return L.yield(H_f(g),2);u=L.yieldResult;if(!g.youThereData_)return L.return();u&&(g.youThereData_.showBlockingWarningAction&&(Ou("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.j_(),g.youThereData_,g.clientPlaybackNonce_),(q=_.c(g.youThereData_.showBlockingWarningAction,_.zg))?VQ(g,q.commands):VQ(g,[g.youThereData_.showBlockingWarningAction]),g.inYouThereFlow_=!0),Q=g.youThereData_.playbackPauseDelayMs,g.pausePlaybackJob_=_.Hv.addLowPriorityJob(function(){return _.D(function(E){g.pausePlaybackJob_=
0;return E.yield(App(g),0)})},Q));
_.Wx(L)})},App=function(g){var u;
return _.D(function(q){if(q.nextAddress==1)return q.yield(H_f(g),2);u=q.yieldResult;if(!g.youThereData_)return q.return();u&&(Ou("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.j_(),g.youThereData_,g.clientPlaybackNonce_),VQ(g,g.youThereData_.showPausedActions),g.inYouThereFlow_=!0);_.Wx(q)})};
$jn.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var g=_.c(this.youThereData_.userActiveDuringFlowAction,_.zg);g?VQ(this,g.commands):VQ(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(Ou("YOU_THERE_EVENT_TYPE_LACT_RESET",_.j_(),this.youThereData_,this.clientPlaybackNonce_),_.A_());RQf(this,!0)}lUC(this,!1)};
var IUZ=function(g){Ou("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.j_(),g.youThereData_,g.clientPlaybackNonce_)},H_f=function(g){var u,q;
return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.playerProvider_().getPlayerPromise(),2);u=Q.yieldResult;q=u.getPlayerState();return Q.return(q==-1||q==1||q==3)})},lUC=function(g,u){var q;
_.D(function(Q){if(Q.nextAddress==1){if(g.isUserPredictedAbsent_==u)return Q.jumpTo(0);g.isUserPredictedAbsent_=u;return Q.yield(g.playerProvider_().getPlayerPromise(),3)}q=Q.yieldResult;q.setUserEngagement(u);u&&Ou("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.j_(),g.youThereData_,g.clientPlaybackNonce_);_.Wx(Q)})},VQ=function(g,u){if(_.w("handle_service_request_actions")||_.w("kevlar_youthere_service_endpoint_actions_killswitch"))_.xJ(g.actionSenderElement_,u,g.actionSenderElement_);
else{u=_.N(u);for(var q=u.next();!q.done;q=u.next())q=q.value,q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.sendPost?_.KV(g.actionSenderElement_,[q]):_.xJ(g.actionSenderElement_,[q],g.actionSenderElement_)}};var OeE=!1;var i_h={PAUSE_CHAT:18};var nkC=function(g,u){var q=_.FR("SESSION_INDEX");this.actionToken_=g;this.commonToken_=u;this.sessionIndex_=q},zyb=function(g){var u=_.A9(),q=_.ri("payments.business.integration.bootstrap"),Q=_.ri("payments.business.integration"),L=Q.Style.create().withMaterialDesignStyle(),E=Q.mashupMode.popup("instrument-manager");
q.asMashupMode(E).usingUserIndex(g.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(L).inStandaloneContext(Q.standaloneContextAuthId.forUserId()).instrumentManager(g.actionToken_,g.commonToken_.length>0?g.commonToken_:void 0,function(y){var v=y.instrumentId;v?u.resolve(v):(v=_.ri("payments.business.integration.scenario.InstrumentManager"),u.reject(y.errorCode&&y.errorCode===v.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(y){_.a4(y);
u.reject("instrumentManagerLoadError")});
return u.promise};var Ls=function(g,u,q){this.payloadName="transactionFlowFailed";this.payload={errorType:g,serializedTransactionFlowLoggingParams:u,isUserDismiss:q===void 0?!1:q}};
_.xQ("yt.ypc.shared.YpcTransactionFlowError",Ls);var XB=function(){return _.gO.apply(this,arguments)||this};
_.A(XB,_.gO);XB.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
XB.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
XB.prototype.onErrorMessageDismiss=XB.prototype.onErrorMessageDismiss;_.Y([_.a({readOnly:!0,observer:"errorRendererChanged"}),_.K("design:type",Object)],XB.prototype,"errorRenderer",void 0);_.Y([_.n6("yt-live-chat-error-message-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XB.prototype,"onErrorMessageDismiss",null);_.Y([_.uU()],XB);var Cfb=[XB.prototype];var b_H;var djC,FT9=function(){if(djC!==void 0)return djC;var g=document.createElement("template");_.Z(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;b_H===void 0&&(b_H=document.createElement("template"));var Q=b_H;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return djC=g};var r1=function(){var g=_.X.apply(this,arguments)||this;g.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";g.goalDescription="";g.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";g.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";g.startButtonId="start-button";g.exampleButtonId="example-button";return g};
_.A(r1,_.X);_.P=r1.prototype;_.P.getGoalDropdownItems=function(){var g,u;return(u=_.c((g=this.data)==null?void 0:g.purchaseTargetDropdown,N4t))==null?void 0:u.dropdownItems};
_.P.getTimerDropdownItems=function(){var g,u;return(u=_.c((g=this.data)==null?void 0:g.timerDropdown,N4t))==null?void 0:u.dropdownItems};
_.P.getColorDropdownItems=function(){var g,u;return(u=_.c((g=this.data)==null?void 0:g.colorDropdown,N4t))==null?void 0:u.dropdownItems};
_.P.getDropdownItemText=function(g){var u;return(u=_.c(g,PCL))==null?void 0:u.itemLabel};
_.P.getDropdownItemValue=function(g){g=_.c(g,PCL);return(g==null?void 0:g.timeLimit)||(g==null?void 0:g.purchaseTarget)||(g==null?void 0:g.eligiblePurchaseType)};
_.P.updateFlowState=function(g){_.YJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:g}])};
_.P.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.P.updateGoalValue=function(g){this.goal=g.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.P.onTextValueChanged=function(g){this.goalDescription=g.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.P.updateTimerValue=function(g){this.timer=g.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.P.updateTierValue=function(g){this.tier=g.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.P.getButtonViewModel=function(g){g=(g==null?void 0:g.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var u,q=_.c((u=this.data)==null?void 0:u.startGoalButton,_.Rn);return Object.assign({},q,{state:g})};
_.z3.Object.defineProperties(r1,{template:{configurable:!0,enumerable:!0,get:function(){return FT9()}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],r1.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],r1.prototype,"goal",void 0);_.Y([_.a(),_.K("design:type",Object)],r1.prototype,"goalDescription",void 0);_.Y([_.a(),_.K("design:type",Object)],r1.prototype,"timer",void 0);_.Y([_.a(),_.K("design:type",Object)],r1.prototype,"tier",void 0);
_.Y([_.a(),_.K("design:type",Object)],r1.prototype,"startButtonId",void 0);_.Y([_.a(),_.K("design:type",Object)],r1.prototype,"exampleButtonId",void 0);_.Y([_.jP({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],r1);_.T(r1,"yt-creator-goal-set-up-flow-view-model",function(){return FT9()},{mode:0});var mj9;var aUK;var WB=function(){return _.X.apply(this,arguments)||this};
_.A(WB,_.X);WB.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
WB.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var g=_.c(this.data.button,_.Rn);g&&(g.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.z3.Object.defineProperties(WB,{template:{configurable:!0,enumerable:!0,get:function(){if(aUK===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;mj9===void 0&&(mj9=document.createElement("template"));var Q=mj9;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);aUK=g}g=aUK;return g}}});
_.Y([_.I(_.j3),_.K("design:type",Object)],WB.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a({selectorArgs:["data.enabledEntityKey"],selector:o6Z,observer:"onEnabledChange"}),_.K("design:type",Boolean)],WB.prototype,"enabled",void 0);_.Y([_.a(),_.K("design:type",Object)],WB.prototype,"data",void 0);_.Y([_.jP({is:"yt-disableable-button-view-model",noInjection:!0})],WB);var VYx;var Xhz;var rp9=["transVert01","transVert02","transVert03"],WTt="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),TS=function(){var g=_.X.apply(this,arguments)||this;g.emojiManager=_.wx;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};g.reactionBuckets=[];g.noEmojiIdentifier="NO_EMOJI";return g};
_.A(TS,_.X);_.P=TS.prototype;_.P.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.P.desktopFountainEmojiSizePxChanged=function(){_.x_(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.P.createUserReactionAnimation=function(g){this.createEmojiAnimation(g,!0)};
_.P.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var g;((g=this.data)==null?0:g.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.u2("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.na(this.emojiContainer.children)).forEach(function(u){u.remove()})};
_.P.detached=function(){this.cleanupFountain()};
_.P.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var g;this.reactionBuckets=_.pH.unsafeClone((g=this.emojiFountainData)==null?void 0:g.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.P.processEmojiBucket=function(g){var u=this;if(this.reactionBuckets&&!(g>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var q=this.reactionBuckets[g];this.generateEmojiAnimations(q);if(g<this.reactionBuckets.length-1){var Q;if(q==null?0:(Q=q.duration)==null?0:Q.seconds)this.emojiBucketTimerId=setTimeout(function(){u.processEmojiBucket(g+1)},Number(q.duration.seconds)*1E3)}}};
_.P.generateEmojiAnimations=function(g){var u=this,q=this.getRandomEmojiIdFromBucketWithOverride(g);if(q&&q!==this.noEmojiIdentifier){var Q=0;g.targetEps?(Q=this.linearInterpolateBounded(1,20,100,12,g.emojiSizeIndex||0),this.createEmojiAnimation(q,!1,g.emojiAnimationMs,Q),Q=this.getEmojiDelayMsFromTargetEps(g.targetEps)):(this.createEmojiAnimation(q),Q=this.getEmojiDelayMsFromDistribution(g.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){u.generateEmojiAnimations(g)},Q)}};
_.P.getRandomEmojiIdFromBucketWithOverride=function(g){if(!(g&&g.reactionsData&&g.reactionsData.length&&g.totalReactions))return this.noEmojiIdentifier;for(var u=g.totalReactions,q=1,Q=_.N(g.reactionsData),L=Q.next();!L.done;L=Q.next())L=L.value,(L.reactionWeightOverride||L.reactionWeightOverride===0)&&L.reactionCount&&(u-=L.reactionCount,q-=L.reactionWeightOverride);Q=!0;q<0&&(Q=!1,u=g.totalReactions,q=1);if(Q&&q>0&&u===0)if(q===1){L=0;for(var E=_.N(g.reactionsData),y=E.next();!y.done;y=E.next())y=
y.value,y.reactionCount&&y.reactionCount>0&&L++;L=1/L;E=_.N(g.reactionsData);for(y=E.next();!y.done;y=E.next())y.value.reactionWeightOverride=L}else for(L=1/(1-q),E=_.N(g.reactionsData),y=E.next();!y.done;y=E.next())y=y.value,y.reactionWeightOverride&&(y.reactionWeightOverride*=L);L=Math.random();E=0;y=_.N(g.reactionsData);for(var v=y.next();!v.done;v=y.next())if(v=v.value,v.reactionCount&&(E=(v.reactionWeightOverride||v.reactionWeightOverride===0)&&Q?E+v.reactionWeightOverride:E+q*v.reactionCount/
u,E>L&&(v.reactionCount--,g.totalReactions--,v=this.reactionItemToEmojiString(v),v!==this.noEmojiIdentifier)))return v;return this.noEmojiIdentifier};
_.P.reactionItemToEmojiString=function(g){if(g.unicodeEmojiId)return g.unicodeEmojiId;if(g.emoteId)return g.emoteId;if(g.videoReactionType)switch(g.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.P.createEmojiAnimation=function(g,u,q,Q){u=u===void 0?!1:u;this.lastEmojiRequestedForTesting=g;var L=g.startsWith("yt-icons:"),E=_.$3(this.emojiManager,g);if(E||L){var y=document.createElement("emoji");y.classList.add("yt-emoji-fountain-view-model");y.classList.add(rp9[Math.floor(Math.random()*rp9.length)]);var v=document.createElement("div");v.classList.add("yt-emoji-fountain-view-model");v.classList.add("horizontal-container");v.classList.add(WTt[Math.floor(Math.random()*WTt.length)]);u?(q=document.createElement("div"),
q.classList.add("user-reaction-bubble"),q.classList.add("yt-emoji-fountain-view-model"),v.appendChild(q)):(q&&(y.style.animationDuration=q+"ms",v.style.animationDuration=q+"ms"),Q&&(y.style.width=Q+"px",y.style.height=Q+"px"));L?(L=document.createElement("yt-icon"),L.polymerController.icon=g,Q&&(L.style.width=Q+"px",L.style.height=Q+"px"),g=L):g=this.emojiManager.createEmoji(E,!1);g.classList.add("yt-emoji-fountain-view-model");v.appendChild(g);y.appendChild(v);this.emojiContainer.appendChild(y);
y.addEventListener("animationend",function(){y.remove()});
var J,f;if((J=this.data)==null?0:(f=J.loggingDirectives)==null?0:f.trackingParams)u=u?_.Yq(183501):_.Yq(183500),Ufn(this.data.loggingDirectives.trackingParams,u),_.ZgF(u);setTimeout(function(){y&&y.remove()},2E3)}};
_.P.getEmojiDelayMsFromDistribution=function(g){return Math.random()*(g||1)*1E3};
_.P.getEmojiDelayMsFromTargetEps=function(g){return Math.random()*2*(1/g)*1E3};
_.P.linearInterpolateBounded=function(g,u,q,Q,L){L=Math.min(Math.max(L,g),q);return(u*(q-L)+Q*(L-g))/(q-g)};
TS.prototype.onEmojiFountainDataEntityUpdate=TS.prototype.onEmojiFountainDataEntityUpdate;TS.prototype.desktopFountainEmojiSizePxChanged=TS.prototype.desktopFountainEmojiSizePxChanged;TS.prototype.isActiveChanged=TS.prototype.isActiveChanged;_.Y([_.a(),_.K("design:type",_.GR)],TS.prototype,"emojiManager",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],TS.prototype,"ytLiveChatReduxBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],TS.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],TS.prototype,"data",void 0);_.Y([_.a({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(g,u){return _.BC(g.entities,"emojiFountainDataEntity",u)}}),
_.K("design:type",Object)],TS.prototype,"emojiFountainData",void 0);_.Y([_.a(),_.K("design:type",Boolean)],TS.prototype,"isActive",void 0);_.Y([_.k_("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TS.prototype,"isActiveChanged",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],TS.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",String)],TS.prototype,"lastEmojiRequestedForTesting",void 0);
_.Y([_.a({value:function(){return _.S8("desktop_fountain_emoji_size_px",20)}}),
_.K("design:type",Number)],TS.prototype,"desktopFountainEmojiSizePx",void 0);_.Y([_.k_("desktopFountainEmojiSizePx"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TS.prototype,"desktopFountainEmojiSizePxChanged",null);_.Y([_.oE("#emoji-container"),_.K("design:type",HTMLElement)],TS.prototype,"emojiContainer",void 0);
_.Y([_.k_("emojiFountainData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TS.prototype,"onEmojiFountainDataEntityUpdate",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],TS);
_.T(TS,"yt-emoji-fountain-view-model",function(){if(Xhz===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;VYx===void 0&&(VYx=document.createElement("template"));var Q=VYx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Xhz=g}g=Xhz;return g},{mode:0});var TKZ;var hQx;var hE=function(){return _.X.apply(this,arguments)||this};
_.A(hE,_.X);hE.prototype.onChoiceChanged=function(){this.data&&_.x_(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
hE.prototype.onChoiceChanged=hE.prototype.onChoiceChanged;_.Y([_.a(),_.K("design:type",Object)],hE.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hE.prototype,"onChoiceChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],hE);
_.T(hE,"yt-live-chat-banner-poll-choice",function(){if(hQx===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;TKZ===void 0&&(TKZ=document.createElement("template"));var Q=TKZ;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);hQx=g}g=hQx;return g},{mode:0});var YLp;var O_C;var Y8=function(){var g=_.X.apply(this,arguments)||this;g.modern=_.w("web_button_rework_with_live");g.small=!1;return g};
_.A(Y8,_.X);Y8.prototype.computeIsSmall=function(){var g;return((g=this.buttonOverrides)==null?void 0:g.size)==="S"};
Y8.prototype.computeId=function(){return this.data&&this.data.targetId};
_.Y([_.I(_.fK.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],Y8.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.a({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",String)],Y8.prototype,"id",void 0);_.Y([_.a(),_.K("design:type",Object)],Y8.prototype,"buttonOverrides",void 0);_.Y([_.a(),_.K("design:type",Object)],Y8.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Y8.prototype,"modern",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.K("design:type",Object)],Y8.prototype,"small",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"yt-live-chat-button"})],Y8);
_.T(Y8,"yt-live-chat-button",function(){if(O_C===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;YLp===void 0&&(YLp=document.createElement("template"));var Q=YLp;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);O_C=g}g=O_C;return g},{mode:0});var KTE;var xjp;var O4=function(){var g=_.X.apply(this,arguments)||this;g.inCollapsedBanner=!1;g.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};g.questionButtonOverrides={style:"mono",type:"filled"};return g};
_.A(O4,_.X);_.P=O4.prototype;_.P.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]]"}}}}}};
_.P.onContextMenuButtonClick=function(g){this.ytLiveChatItemBehavior.showContextMenu(g)};
_.P.onYtRendererstamperFinished=function(){this.menuButton=_.Tr(this.hostElement).querySelector("#menu-button")};
_.P.dataChanged=function(){var g,u;if((u=_.c((g=this.data)==null?void 0:g.overflowMenuButton,_.eW))==null?0:u.command)this.data.contextMenuEndpoint=_.c(this.data.overflowMenuButton,_.eW).command};
_.P.onButtonClick=function(){var g,u=_.c((g=this.data)==null?void 0:g.askQuestionButton,_.eW);if(u){if(u.trackingParams&&(g=_.Lr(u.trackingParams))){var q=_.j_();q&&_.Ip(q,g)}_.hJ(this.hostElement,"innertube-command",u.command)}};
O4.prototype.onYtRendererstamperFinished=O4.prototype.onYtRendererstamperFinished;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],O4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],O4.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],O4.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.a({observer:"dataChanged"}),_.K("design:type",Object)],O4.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],O4.prototype,"inCollapsedBanner",void 0);_.Y([_.a(),_.K("design:type",Object)],O4.prototype,"buttonOverrides",void 0);_.Y([_.a(),_.K("design:type",Object)],O4.prototype,"questionButtonOverrides",void 0);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O4.prototype,"onYtRendererstamperFinished",null);
_.Y([_.fE({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],O4);
_.T(O4,"yt-live-chat-call-for-questions-renderer",function(){if(xjp===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;KTE===void 0&&(KTE=document.createElement("template"));var Q=KTE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);xjp=g}g=xjp;return g},{mode:0});var BKH={};BKH.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 g=this;window.requestAnimationFrame(function(){g.restoreFocusNode_||(g.restoreFocusNode_=document.activeElement);var u=_.U$X(g.hostElement);u.length&&u[u.length-1].focus()})},
isAttachedChanged_:function(g,u){g?this.focusChild_():u&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(g){this.hidden||_.C6(g).indexOf(this.hostElement)!==-1||(g.stopPropagation(),this.focusChild_())}};var zQz;var npL;var K4=function(){return _.X.apply(this,arguments)||this};
_.A(K4,_.X);K4.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
K4.prototype.onClick=function(g){g.target!==this.confirmButton&&g.target!==this.cancelButton&&(this.hidden=!0)};
_.Y([_.oE("#confirm_button"),_.K("design:type",Object)],K4.prototype,"confirmButton",void 0);_.Y([_.oE("#cancel_button"),_.K("design:type",Object)],K4.prototype,"cancelButton",void 0);_.Y([_.a(),_.K("design:type",k6Z)],K4.prototype,"data",void 0);_.Y([_.a({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],K4.prototype,"hidden",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(BKH.YtLiveChatDialogBehavior),_.K("design:type",Object)],K4.prototype,"ytLiveChatDialogBehavior",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],K4);
var k6Z=_.T(K4,"yt-live-chat-dialog-renderer",function(){if(npL===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;zQz===void 0&&(zQz=document.createElement("template"));var Q=zQz;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);npL=g}g=npL;return g},{mode:0});var SLp;var opf,UjZ=function(){if(opf!==void 0)return opf;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;SLp===void 0&&(SLp=document.createElement("template"));var Q=SLp;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);return opf=g};var gnn;var ueH;var x8=function(){var g=_.X.apply(this,arguments)||this;g.icon=null;return g};
_.A(x8,_.X);x8.prototype.dismiss=function(){_.hJ(this.hostElement,"yt-live-chat-error-message-dismiss")};
x8.prototype.computeIcon=function(g){return g&&g.iconType?"yt-icons:"+g.iconType.toLowerCase():"yt-icons:close"};
_.Y([_.a(),_.K("design:type",Object)],x8.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon(data.icon)"}),_.K("design:type",Object)],x8.prototype,"icon",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],x8);
_.T(x8,"yt-live-chat-error-message-renderer",function(){if(ueH===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;gnn===void 0&&(gnn=document.createElement("template"));var Q=gnn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ueH=g}g=ueH;return g},{mode:0});var qBh;var QJZ;var BB=function(){var g=_.X.apply(this,arguments)||this;g.tooltip=null;g.data=null;g.id="";g.active=!1;g.icon="";g.disabled=!1;g.showTooltip=!1;g.useToggledActiveState=!0;g.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return g};
_.A(BB,_.X);_.P=BB.prototype;
_.P.dataChanged=function(){var g;((g=this.data)==null?0:g.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,_.K6)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var u;if((u=this.data)==null?0:u.disabled)this.disabled=!0};
_.P.computeId=function(g){return g};
_.P.computeIcon=function(g,u){if(!g)return"";if(this.useToggledActiveState)return"yt-icons:"+g.toLowerCase();var q,Q;return u&&((q=this.data)==null?0:(Q=q.toggledIcon)==null?0:Q.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+g.toLowerCase()};
_.P.logPDGEntryPoint=function(){_.WFJ(_.xZ("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")};
_.P.immediatelyShowTooltip=function(){var g=_.Tr(this.hostElement).querySelector("#tooltip");g.animationDelay=0;g.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};g.show()};
_.P.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.P.onClick=function(g){var u;((u=this.data)==null?0:u.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(),g.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.hJ(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.P.computeShowTooltip=function(g,u){return!!(g&&g.tooltip&&u)};
_.P.maybeUpdateTooltipText=function(){var g=this,u;if((u=this.data)==null?0:u.tooltip){var q=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.K6)(g.tooltip).textContent=q},250)}};
_.P.handleLiveChatActions=function(g){var u=this;g.length&&(this.id!=="creator"&&this.id!=="product-picker"||g.forEach(function(q){(q=u.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",q))&&q.durationSec===q.fullDurationSec&&u.startBubble(u.colorFromDecimal(q.startBackgroundColor))}))};
_.P.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.P.startBubble=function(g){_.x_(this.hostElement,{"--yt-live-chat-monetization-button-glow":g});this.hostElement.setAttribute("bubble","")};
_.P.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.P.colorFromDecimal=function(g){typeof g==="string"&&(g=Number(g));return"rgba("+[g>>16&255,g>>8&255,g&255,(g>>24&255)/255].join()+")"};
BB.prototype.onAnimationEnd=BB.prototype.onAnimationEnd;BB.prototype.disabledChanged=BB.prototype.disabledChanged;BB.prototype.dataChanged=BB.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],BB.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.fK.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],BB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BB.prototype,"data",void 0);_.Y([_.a({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",Object)],BB.prototype,"id",void 0);_.Y([_.a({notify:!0,reflectToAttribute:!0}),_.K("design:type",Object)],BB.prototype,"active",void 0);
_.Y([_.a({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.K("design:type",Object)],BB.prototype,"icon",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],BB.prototype,"disabled",void 0);_.Y([_.a({computed:"computeShowTooltip(data, disabled)"}),_.K("design:type",Object)],BB.prototype,"showTooltip",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],BB.prototype,"useToggledActiveState",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BB.prototype,"dataChanged",null);_.Y([_.k_("disabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BB.prototype,"disabledChanged",null);_.Y([_.n6("animationend"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],BB.prototype,"onAnimationEnd",null);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],BB);
_.T(BB,"yt-live-chat-icon-toggle-button-renderer",function(){if(QJZ===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;qBh===void 0&&(qBh=document.createElement("template"));var Q=qBh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);QJZ=g}g=QJZ;return g},{mode:0});var LxE;var EnL;var zS=function(){return _.X.apply(this,arguments)||this};
_.A(zS,_.X);zS.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y([_.a(),_.K("design:type",Object)],zS.prototype,"data",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],zS);
_.T(zS,"yt-live-chat-message-input-prompt-header-renderer",function(){if(EnL===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;LxE===void 0&&(LxE=document.createElement("template"));var Q=LxE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);EnL=g}g=EnL;return g},{mode:0});var PyH;var NzC;var sJt;var yqb;var vnK;var DXL;var pup=function(){return _.X.apply(this,arguments)||this};
_.A(pup,_.X);_.Y([_.a(),_.K("design:type",Object)],pup.prototype,"data",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],pup);
_.T(pup,"yt-live-chat-message-subtext-renderer",function(){if(DXL===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;vnK===void 0&&(vnK=document.createElement("template"));var Q=vnK;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);DXL=g}g=DXL;return g},{mode:0});var n4=function(){var g=_.X.apply(this,arguments)||this;g.subtextOnBottom=!1;g.buttonOverrides={style:"mono",type:"tonal"};return g};
_.A(n4,_.X);n4.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],n4.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],n4.prototype,"subtextOnBottom",void 0);_.Y([_.a(),_.K("design:type",Object)],n4.prototype,"buttonOverrides",void 0);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],n4);
_.T(n4,"yt-live-chat-message-renderer",function(){if(yqb===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;sJt===void 0&&(sJt=document.createElement("template"));var Q=sJt;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);yqb=g}g=yqb;return g},{mode:0});var Jqn;var jJn;var k8=function(){var g=_.X.apply(this,arguments)||this;g.isRemovable=!1;g.hasPrefilledText=!1;g.isInputDirty=!1;g.overCharacterLimit=!1;g.underCharacterLimit=!1;g.showErrorMessage=!1;return g};
_.A(k8,_.X);_.P=k8.prototype;_.P.computeId=function(){return this.data.id};
_.P.computeInputData=function(){return this.data.inputData};
_.P.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.P.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.P.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.P.getLiveChatRichMessageInput=function(){return _.Tr(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.P.clearInput=function(){_.Tr(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.P.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.P.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.P.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.P.handleTextInputCharCountChanged=function(g){g=g.detail&&g.detail.characterCount;g!==void 0&&(this.characterCount=g,g!==0&&(this.isInputDirty=!0))};
_.P.onInputFocusOut=function(){this.isInputDirty=!0};
_.P.onClickCloseButton=function(){_.hJ(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
k8.prototype.handleTextInputCharCountChanged=k8.prototype.handleTextInputCharCountChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],k8.prototype,"data",void 0);_.Y([_.a({computed:"computeId(data.id)"}),_.K("design:type",String)],k8.prototype,"id",void 0);_.Y([_.a({computed:"computeInputData(data.inputData)"}),_.K("design:type",Object)],k8.prototype,"inputData",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.K("design:type",Object)],k8.prototype,"isRemovable",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.K("design:type",Object)],k8.prototype,"hasPrefilledText",void 0);_.Y([_.a({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.K("design:type",Number)],k8.prototype,"charactersRemaining",void 0);
_.Y([_.a(),_.K("design:type",Number)],k8.prototype,"characterCount",void 0);_.Y([_.a(),_.K("design:type",Object)],k8.prototype,"isInputDirty",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.K("design:type",Object)],k8.prototype,"overCharacterLimit",void 0);_.Y([_.a({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.K("design:type",Object)],k8.prototype,"underCharacterLimit",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.K("design:type",Object)],k8.prototype,"showErrorMessage",void 0);_.Y([_.n6("yt-live-chat-text-input-field-renderer-character-count-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],k8.prototype,"handleTextInputCharCountChanged",null);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],k8);
_.T(k8,"yt-live-chat-poll-editor-input",function(){if(jJn===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Jqn===void 0&&(Jqn=document.createElement("template"));var Q=Jqn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);jJn=g}g=jJn;return g},{mode:0});var f$C;var M4z;var t4K={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},SA=function(){var g=_.X.apply(this,arguments)||this;g.modern=_.w("web_button_rework_with_live");g.closeButtonOverrides={iconPosition:"icon-only"};g.startButtonOverrides={style:"mono",type:"filled"};g.addOptionButtonOverrides={style:"mono",type:"text"};return g};
_.A(SA,_.X);_.P=SA.prototype;
_.P.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"}}}}};
_.P.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var g;_.c((g=this.data)==null?void 0:g.startButton,_.eW)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.computeId=function(){return this.data&&this.data.id||""};
_.P.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.P.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.P.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.P.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.P.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var g=0;g<this.pollEditorInfoWithDefaults.minPollOptions;g++)this.addPollOptionData()};
_.P.getIsValidPoll=function(){var g=this;if(!this.pollEditorInfoWithDefaults)return!1;var u=this.pollEditorInfoWithDefaults,q=u.minPollOptionChars,Q=u.maxPollOptionChars,L=u.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>u.maxPollQuestionChars)return!1;u=_.Tr(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(u).every(function(E,y){E=E.characterCount;!E&&L[y]&&(E=g.ytRendererBehavior.getSimpleString(L[y]).length);return E!==void 0&&E>=q&&E<=Q})};
_.P.isValidPollChanged=function(){var g;_.c((g=this.data)==null?void 0:g.startButton,_.eW)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.addPollOptionData=function(){var g=this.pollEditorInfoWithDefaults,u=g.maxPollOptionChars,q=g.optionPlaceholderText,Q=g.customOptionPlaceholderText,L=g.pollOptionData;this.currentNumPollOptions>=g.maxPollOptions||(g={liveChatPollOptionInput:{inputData:{placeholder:Q[this.currentNumPollOptions]||q,maxCharacterLimit:u},maxCharacterLimit:u,minCharacterLimit:g.minPollOptionChars,hasPrefilledText:!!Q[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=g.minPollOptions}},L.charCountErrorText&&
(g.liveChatPollOptionInput.charCountErrorText=L.charCountErrorText),L.charsRemainingAltLabel&&(g.liveChatPollOptionInput.charsRemainingAltLabel=L.charsRemainingAltLabel),L.removeOptionAltText&&(g.liveChatPollOptionInput.removeOptionAltText=L.removeOptionAltText),this.push("pollOptionsData",g),L=Array.from(_.Tr(_.Tr(this.hostElement).querySelector("#poll-options")).children),L.forEach(function(E,y){E.polymerController.set("data.id",y)}),_.Tr(L[L.length-1]).querySelector("#input").focus())};
_.P.getPollOptionInputValues=function(){var g=this,u=[],q=_.Tr(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),Q=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(q).forEach(function(L,E){var y=null;L=L.getLiveChatRichMessageInput();var v;(L==null?0:(v=L.textSegments)==null?0:v.length)?y=_.eT(L):Q[E]&&(y=g.formattedStringToLiveChatRichMessageInput(Q[E]));u.push(y)});
return u};
_.P.requestCreateAndStartPoll=function(g){var u=this.getPollOptionInputValues();if(!u.some(function(Q){return!Q})){u={optionText:u};
var q=_.Tr(_.Tr(this.hostElement).querySelector("#poll-question")).firstChild;q&&q.liveChatRichMessageInput&&(u.questionText=_.eT(q.liveChatRichMessageInput));_.KV(this.hostElement,[g,u])}};
_.P.selectedChanged=function(){if(this.selected){var g=_.Tr(_.Tr(this.hostElement).querySelector("#start-button")).firstElementChild;if(g){var u;(u=_.Tr(g).querySelector("#button")||_.hR(g).querySelector("button"))==null||u.focus()}}};
_.P.handleTextInputChanged=function(g){var u;((u=g.target)==null?void 0:u.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=g.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.P.handleStartButtonAction=function(g){g.detail.actionName==="yt-service-request"&&(g.stopPropagation(),(g=g.detail.args[1])&&this.requestCreateAndStartPoll(g))};
_.P.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(g){this.createPollRequestInFlight=!1;(g=g.detail&&g.detail.data)&&g.success&&(_.hJ(this.hostElement,"picker-cancelled"),_.YJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.P.onCloseClick=function(){_.hJ(this.hostElement,"picker-cancelled");_.YJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.P.handlePollEditorInputClosed=function(g){var u=this.pollOptionsData.findIndex(function(q){return q.liveChatPollOptionInput.id===g.detail.id});
this.splice("pollOptionsData",u,1);this.isValidPoll=this.getIsValidPoll()};
_.P.onPickerCancelled=function(){this.reset()};
_.P.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var g=_.Tr(_.Tr(this.hostElement).querySelector("#poll-question")).firstChild;g&&g.setLiveChatRichMessageInput(null);if(g=_.Tr(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){g=_.N(Array.from(g));for(var u=g.next();!u.done;u=g.next())u.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.P.formattedStringToLiveChatRichMessageInput=function(g){return g.simpleText?{text_segments:[g.simpleText]}:{text_segments:g.runs}};
_.z3.Object.defineProperties(SA.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(t4K,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
SA.prototype.onPickerCancelled=SA.prototype.onPickerCancelled;SA.prototype.handlePollEditorInputClosed=SA.prototype.handlePollEditorInputClosed;SA.prototype.handleServiceRequestCompleted=SA.prototype.handleServiceRequestCompleted;SA.prototype.handleServiceRequestSent=SA.prototype.handleServiceRequestSent;SA.prototype.handleTextInputChanged=SA.prototype.handleTextInputChanged;SA.prototype.selectedChanged=SA.prototype.selectedChanged;SA.prototype.isValidPollChanged=SA.prototype.isValidPollChanged;
SA.prototype.shouldInitializePollChanged=SA.prototype.shouldInitializePollChanged;SA.prototype.dataChanged=SA.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],SA.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],SA.prototype,"modern",void 0);
_.Y([_.a(),_.K("design:type",Object)],SA.prototype,"closeButtonOverrides",void 0);_.Y([_.a(),_.K("design:type",Object)],SA.prototype,"startButtonOverrides",void 0);_.Y([_.a(),_.K("design:type",Object)],SA.prototype,"addOptionButtonOverrides",void 0);_.Y([_.a({computed:"computeId(data.id)",reflectToAttribute:!0}),_.K("design:type",String)],SA.prototype,"id",void 0);_.Y([_.a({value:function(){return[]}}),
_.K("design:type",Array)],SA.prototype,"pollOptionsData",void 0);_.Y([_.C("pollEditorInfoWithDefaults"),_.K("design:type",Object),_.K("design:paramtypes",[])],SA.prototype,"pollQuestionData",null);_.Y([_.a({value:0}),_.K("design:type",Number)],SA.prototype,"pollQuestionCharacterCount",void 0);_.Y([_.C("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.K("design:type",Object),_.K("design:paramtypes",[])],SA.prototype,"pollQuestionCharactersRemaining",null);
_.Y([_.a({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.K("design:type",Boolean)],SA.prototype,"overQuestionCharacterLimit",void 0);_.Y([_.C("data.pollEditorInfo"),_.K("design:type",Object),_.K("design:paramtypes",[])],SA.prototype,"pollEditorInfoWithDefaults",null);_.Y([_.a({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.K("design:type",Number)],SA.prototype,"currentNumPollOptions",void 0);
_.Y([_.a({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.K("design:type",Boolean)],SA.prototype,"hasMaxNumPollOptions",void 0);_.Y([_.C("pollEditorInfoWithDefaults","pollOptionsData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],SA.prototype,"shouldInitializePoll",null);_.Y([_.a(),_.K("design:type",Object)],SA.prototype,"isValidPoll",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],SA.prototype,"createPollRequestInFlight",void 0);_.Y([_.a(),_.K("design:type",Object)],SA.prototype,"selected",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.K("design:type",Boolean)],SA.prototype,"showQuestionErrorMessage",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SA.prototype,"dataChanged",null);_.Y([_.k_("shouldInitializePoll"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SA.prototype,"shouldInitializePollChanged",null);_.Y([_.k_("isValidPoll"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SA.prototype,"isValidPollChanged",null);
_.Y([_.k_("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SA.prototype,"selectedChanged",null);_.Y([_.n6("yt-live-chat-text-input-field-renderer-character-count-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],SA.prototype,"handleTextInputChanged",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SA.prototype,"handleServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],SA.prototype,"handleServiceRequestCompleted",null);
_.Y([_.n6("yt-live-chat-poll-editor-input-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],SA.prototype,"handlePollEditorInputClosed",null);_.Y([_.n6("picker-cancelled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SA.prototype,"onPickerCancelled",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],SA);
_.T(SA,"yt-live-chat-poll-editor-panel-renderer",function(){if(M4z===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;f$C===void 0&&(f$C=document.createElement("template"));var Q=f$C;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);M4z=g}g=M4z;return g},{mode:0});var epn;var GCL;var o8=function(){return _.X.apply(this,arguments)||this};
_.A(o8,_.X);o8.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
o8.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.z3.Object.defineProperties(o8.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var g,u;return(g=this.data)==null?void 0:(u=g.title)==null?void 0:u.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var g;return _.jy((g=this.data)==null?void 0:g.onTapCommand)}}});
_.Y([_.I(_.KK.YtEndpointBehavior),_.K("design:type",Object)],o8.prototype,"ytEndpointBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],o8.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],o8.prototype,"itemId",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],o8.prototype,"hasPromotion",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],o8.prototype,"innertubeCommand",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],o8);
_.T(o8,"yt-live-chat-product-picker-panel-item-view-model",function(){if(GCL===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;epn===void 0&&(epn=document.createElement("template"));var Q=epn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);GCL=g}g=GCL;return g},{mode:0});var $Xb;var Rpf;var U4=function(){var g=_.X.apply(this,arguments)||this;g.id="product-picker";g.selected=!1;g.closeButtonId="close-button";g.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return g};
_.A(U4,_.X);_.P=U4.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var g=_.Tr(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");g.length&&g[0].focus()};
_.P.onCloseBuyFlow=function(){_.hJ(this.hostElement,"picker-cancelled")};
_.P.onCloseClick=function(){_.hJ(this.hostElement,"picker-cancelled");var g;((g=this.data)==null?0:g.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.c(this.data.closeButton,_.Rn))};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.hJ(this.hostElement,"picker-cancelled")};
U4.prototype.observeSelected=U4.prototype.observeSelected;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],U4.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],U4.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],U4.prototype,"id",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],U4.prototype,"selected",void 0);_.Y([_.a(),_.K("design:type",Object)],U4.prototype,"closeButtonId",void 0);_.Y([_.k_("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],U4.prototype,"observeSelected",null);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],U4);
_.T(U4,"yt-live-chat-product-picker-panel-view-model",function(){if(Rpf===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;$Xb===void 0&&($Xb=document.createElement("template"));var Q=$Xb;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Rpf=g}g=Rpf;return g},{mode:0});var wux;var cqx;var g3=function(){var g=_.X.apply(this,arguments)||this;g.iconId="";g.icon="";g.disabled=!1;g.systemIcons=_.w("kevlar_system_icons");return g};
_.A(g3,_.X);_.P=g3.prototype;_.P.computeIconId=function(g){return g&&g.icon&&g.icon.iconType?g.icon.iconType.toLowerCase():""};
_.P.computeIcon=function(g){return g&&g.icon&&g.icon.iconType?(g=g.icon.iconType.toLowerCase(),(g.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+g):""};
_.P.computeDisabled=function(g){return!!g};
_.P.computeCommand=function(g,u){return u?void 0:g};
_.P.computeTooltip=function(g,u){return u&&g?g:""};
_.P.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.z3.Object.defineProperties(g3.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var g="",u,q,Q;if((u=this.data)==null?0:(q=u.text)==null?0:(Q=q.runs)==null?0:Q.length)g=this.data.text.runs[0].text||"";else{var L,E;if((L=this.data)==null?0:(E=L.text)==null?0:E.simpleText)g=this.data.text.simpleText}var y,v,J;if((y=this.data)==null?0:(v=y.subtext)==null?0:(J=v.runs)==null?0:J.length)g&&(g+=". "),g+=this.data.subtext.runs[0].text||"";else{var f,t;if((f=this.data)==null?0:(t=f.subtext)==
null?0:t.simpleText)g&&(g+=". "),g+=this.data.subtext.simpleText}return g}}});
_.Y([_.I(_.KK.YtEndpointBehavior),_.K("design:type",Object)],g3.prototype,"ytEndpointBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],g3.prototype,"data",void 0);_.Y([_.a({computed:"computeIconId(data)",reflectToAttribute:!0}),_.K("design:type",Object)],g3.prototype,"iconId",void 0);
_.Y([_.a({computed:"computeIcon(data)",reflectToAttribute:!0}),_.K("design:type",Object)],g3.prototype,"icon",void 0);_.Y([_.a({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.K("design:type",Object)],g3.prototype,"disabled",void 0);_.Y([_.a({computed:"computeCommand(data.command, disabled)"}),_.K("design:type",Object)],g3.prototype,"command",void 0);_.Y([_.a({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.K("design:type",String)],g3.prototype,"tooltip",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],g3.prototype,"systemIcons",void 0);_.Y([_.C("data.text","data.subtext"),_.a(),_.K("design:type",String),_.K("design:paramtypes",[])],g3.prototype,"ariaLabel",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],g3);
_.T(g3,"yt-live-chat-product-button-renderer",function(){if(cqx===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;wux===void 0&&(wux=document.createElement("template"));var Q=wux;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);cqx=g}g=cqx;return g},{mode:0});var Htf;var Aqb;var u4=function(){var g=_.X.apply(this,arguments)||this;g.selected=!1;g.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 g};
_.A(u4,_.X);_.P=u4.prototype;_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.computeId=function(g){return g.id||""};
_.P.onCloseClick=function(){_.hJ(this.hostElement,"picker-cancelled")};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var g=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");g.length&&g[0].focus()};
_.P.onCloseBuyFlow=function(){_.hJ(this.hostElement,"picker-cancelled")};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.hJ(this.hostElement,"picker-cancelled")};
u4.prototype.observeSelected=u4.prototype.observeSelected;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],u4.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],u4.prototype,"data",void 0);
_.Y([_.a({computed:"computeId(data)",reflectToAttribute:!0}),_.K("design:type",String)],u4.prototype,"id",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],u4.prototype,"selected",void 0);_.Y([_.k_("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u4.prototype,"observeSelected",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],u4);
_.T(u4,"yt-live-chat-product-picker-renderer",function(){if(Aqb===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Htf===void 0&&(Htf=document.createElement("template"));var Q=Htf;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Aqb=g}g=Aqb;return g},{mode:0});var Ztn;var l$f;var I$Z;var itx;var qO=function(){return _.X.apply(this,arguments)||this};
_.A(qO,_.X);qO.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()};
qO.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
qO.prototype.created=function(){this.ids={background:XX(),maskOne:XX(),maskTwo:XX(),gradient:XX(),largeBackground:XX(),largeGradientOne:XX(),largeGradientTwo:XX(),largeGradientPath:XX()}};
qO.prototype.maybeLoadAnimationBackground=qO.prototype.maybeLoadAnimationBackground;_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qO.prototype,"useLargeBackground",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qO.prototype,"useAnimationBackground",void 0);_.Y([_.a({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.K("design:type",Boolean)],qO.prototype,"useRegularBackground",void 0);
_.Y([_.a(),_.K("design:type",Object)],qO.prototype,"ids",void 0);_.Y([_.a(),_.K("design:type",Object)],qO.prototype,"lottieAnimation",void 0);_.Y([_.oE("#animation-background"),_.K("design:type",HTMLDivElement)],qO.prototype,"animationBackground",void 0);_.Y([_.k_("useAnimationBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qO.prototype,"maybeLoadAnimationBackground",null);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],qO);
_.T(qO,"yt-live-interactivity-component-background",function(){if(itx===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;I$Z===void 0&&(I$Z=document.createElement("template"));var Q=I$Z;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);itx=g}g=itx;return g},{mode:0});var Qm=function(){var g=_.X.apply(this,arguments)||this;g.characterCount=0;g.showInputErrorMessage=!1;g.startQnaRequestInFlight=!1;g.modern=_.w("web_button_rework_with_live");g.buttonOverrides={style:"mono",type:"filled"};g.closeButtonOverrides={iconPosition:"icon-only"};g.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return g};
_.A(Qm,_.X);_.P=Qm.prototype;
_.P.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]]"}}}}}};
_.P.onCharacterCountChanged=function(g){var u,q,Q,L,E=(q=_.c(this==null?void 0:(u=this.data)==null?void 0:u.creatorCallForQuestions,at9))==null?void 0:(Q=q.inputField)==null?void 0:(L=Q.liveChatTextInputFieldRenderer)==null?void 0:L.maxCharacterLimit,y,v;E!=null&&(g==null?void 0:(y=g.detail)==null?void 0:y.characterCount)!=null&&_.c(this==null?void 0:(v=this.data)==null?void 0:v.startButton,_.eW)&&(u=g.detail.characterCount>E,this.set("data.startButton.buttonRenderer.isDisabled",g.detail.characterCount===
0||u),this.showInputErrorMessage=u)};
_.P.onCloseClick=function(){_.hJ(this.hostElement,"picker-cancelled");_.YJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onPickerCancelled=function(){var g=_.Tr(this.hostElement).querySelector("#qna-creator-text-input-field");g&&g.setLiveChatRichMessageInput(null)};
_.P.handleOpenQnaStartPanel=function(){var g=_.Tr(this.hostElement).querySelector("#qna-creator-text-input-field");g&&g.focus()};
_.P.handleStartButtonAction=function(g){var u=this;if(g.detail.actionName==="yt-service-request"&&(g.stopPropagation(),g=g.detail.args[1])){var q=_.Tr(this.hostElement).querySelector("#qna-creator-text-input-field"),Q;(q==null?0:(Q=q.liveChatRichMessageInput)==null?0:Q.textSegments)&&q.liveChatRichMessageInput.textSegments.length!==0&&(Q={rich_message:_.eT(q.liveChatRichMessageInput)},_.KV(this.hostElement,[g,Q]).then(function(){_.hJ(u.hostElement,"picker-cancelled")}))}};
_.P.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(g){var u;g=g==null?void 0:(u=g.detail)==null?void 0:u.data;(g==null?0:g.actions)&&g.actions.length>0?this.startQnaRequestInFlight=!1:_.YJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Qm.prototype.handleServiceRequestError=Qm.prototype.handleServiceRequestError;Qm.prototype.handleServiceRequestCompleted=Qm.prototype.handleServiceRequestCompleted;Qm.prototype.handleServiceRequestSent=Qm.prototype.handleServiceRequestSent;Qm.prototype.onPickerCancelled=Qm.prototype.onPickerCancelled;Qm.prototype.onCharacterCountChanged=Qm.prototype.onCharacterCountChanged;_.Y([_.a(),_.K("design:type",Object)],Qm.prototype,"characterCount",void 0);
_.Y([_.a(),_.K("design:type",Object)],Qm.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Qm.prototype,"showInputErrorMessage",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Qm.prototype,"startQnaRequestInFlight",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Qm.prototype,"modern",void 0);_.Y([_.a(),_.K("design:type",Object)],Qm.prototype,"buttonOverrides",void 0);
_.Y([_.a(),_.K("design:type",Object)],Qm.prototype,"closeButtonOverrides",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],Qm.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.I(_.cO.YtLiveChatItemBehavior),_.K("design:type",_.HO)],Qm.prototype,"ytLiveChatItemBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Qm.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.n6("yt-live-chat-text-input-field-renderer-character-count-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Qm.prototype,"onCharacterCountChanged",null);_.Y([_.n6("picker-cancelled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qm.prototype,"onPickerCancelled",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qm.prototype,"handleServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Qm.prototype,"handleServiceRequestCompleted",null);
_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Qm.prototype,"handleServiceRequestError",null);_.Y([_.fE({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Qm);
_.T(Qm,"yt-live-chat-qna-start-panel-renderer",function(){if(l$f===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Ztn===void 0&&(Ztn=document.createElement("template"));var Q=Ztn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);l$f=g}g=l$f;return g},{mode:0});var Cyn;var btz;var Lu=function(){return _.X.apply(this,arguments)||this};
_.A(Lu,_.X);Lu.prototype.dismiss=function(){_.hJ(this.hostElement,"yt-live-chat-error-message-dismiss")};
Lu.prototype.edit=function(){_.hJ(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.Y([_.a(),_.K("design:type",Object)],Lu.prototype,"data",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Lu);
_.T(Lu,"yt-live-chat-text-actions-error-message-renderer",function(){if(btz===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Cyn===void 0&&(Cyn=document.createElement("template"));var Q=Cyn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);btz=g}g=btz;return g},{mode:0});var dXK;var Fxb;var mXh;var a$E;var EK=function(){var g=_.X.apply(this,arguments)||this;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.newnessDotEligible=!1;return g};
_.A(EK,_.X);EK.prototype.sendReaction=function(){var g,u,q=((g=this.data)==null?void 0:g.emojiId)||((u=this.data)==null?void 0:u.emoteId),Q;q&&((Q=this.data)==null?0:Q.shouldTriggerAnimation)&&_.YJ(this.hostElement,"yt-create-user-reaction-animation",[q]);var L;(g=_.jy((L=this.data)==null?void 0:L.onTap))&&_.nE(g,this.hostElement);this.showNewnessDot&&_.YJ(this.hostElement,"yt-hide-newness-dot")};
EK.prototype.onClick=function(g){(!g||g.clientX||g.clientY)&&this.sendReaction()};
EK.prototype.onKeyDown=function(g){g.key!=="Enter"&&g.key!==" "||g.repeat||this.sendReaction()};
_.z3.Object.defineProperties(EK.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var g,u;return!!(((g=this.data)==null?0:g.emojiId)||((u=this.data)==null?0:u.emoteId))}}});
_.Y([_.a(),_.K("design:type",Object)],EK.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],EK.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",Object)],EK.prototype,"newnessDotEligible",void 0);_.Y([_.C("data.maybeShowNewnessDot"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],EK.prototype,"showNewnessDot",null);_.Y([_.C("data.emojiId","data.emoteId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],EK.prototype,"useYtImage",null);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],EK);
_.T(EK,"yt-reaction-control-panel-button-view-model",function(){if(a$E===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;mXh===void 0&&(mXh=document.createElement("template"));var Q=mXh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);a$E=g}g=a$E;return g},{mode:0});var V4E;var Xup;var PG=function(){var g=_.X.apply(this,arguments)||this;g.reactionControlPanelExpanded=!1;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.newnessDotEligible=!1;return g};
_.A(PG,_.X);_.P=PG.prototype;_.P.expandedButtonsChanged=function(){var g,u;_.x_(this.hostElement,{"--expanded-buttons-height":((u=(g=this.expandedButtonsData)==null?void 0:g.length)!=null?u:0)*36+"px"})};
_.P.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}}};
_.P.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.P.onMouseLeave=function(){var g=this;this.collapseTimer=setTimeout(function(){g.reactionControlPanelExpanded=!1},500)};
_.P.onFocusIn=function(){this.onMouseEnter()};
_.P.onFocusOut=function(){this.onMouseLeave()};
_.P.onCollapsedButtonFocusIn=function(){var g=this;setTimeout(function(){var u;(u=g.expandedButtons.querySelector("button"))==null||u.focus()},100)};
_.P.onCollapsedButtonFocusOut=function(g){g.stopPropagation()};
_.z3.Object.defineProperties(PG.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var g,u;return _.pH.unsafeClone((g=this.liveReactionsData)==null?void 0:g.emojiButtonData)||((u=this.data)==null?void 0:u.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var g;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((g=this.data)==null||!g.maybeShowNewnessDot)}}});
PG.prototype.expandedButtonsChanged=PG.prototype.expandedButtonsChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],PG.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],PG.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],PG.prototype,"reactionControlPanelExpanded",void 0);_.Y([_.a({selectorArgs:["data.liveReactionsDataEntityKey"],selector:SR9}),_.K("design:type",Object)],PG.prototype,"liveReactionsData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],PG.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",Object)],PG.prototype,"newnessDotEligible",void 0);
_.Y([_.C("liveReactionsData","data.expandedButtons"),_.K("design:type",Object),_.K("design:paramtypes",[])],PG.prototype,"expandedButtonsData",null);_.Y([_.C("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.a({reflectToAttribute:!0}),_.K("design:type",Object),_.K("design:paramtypes",[])],PG.prototype,"showNewnessDot",null);_.Y([_.oE("#expanded-buttons"),_.K("design:type",HTMLElement)],PG.prototype,"expandedButtons",void 0);
_.Y([_.k_("expandedButtonsData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PG.prototype,"expandedButtonsChanged",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],PG);
_.T(PG,"yt-reaction-control-panel-view-model",function(){if(Xup===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;V4E===void 0&&(V4E=document.createElement("template"));var Q=V4E;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Xup=g}g=Xup;return g},{mode:0});var NO=new _.CB("yt-live-chat"),rqn=Date.parse("2024-7-24"),sK=function(){var g=_.X.apply(this,arguments)||this;g.emojiManager=_.wx;g.newnessDotEligible=!1;g.newnessDotImpressionCounted=!1;g.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return g};
_.A(sK,_.X);_.P=sK.prototype;_.P.emojiCustomizationEnabledChanged=function(){var g;((g=this.data)==null?0:g.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((g=NO.getCreationTime("emoji-customization-count"))&&g<rqn&&NO.set("emoji-customization-count","0"),g=Number(NO.get("emoji-customization-count"))||0,g<3&&(this.newnessDotEligible=!0,NO.set("emoji-customization-count",(g+1).toString())),this.newnessDotImpressionCounted=!0)};
_.P.hideNewnessDot=function(){this.newnessDotEligible=!1;NO.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.P.handleReactionsMute=function(g){var u=_.j_(),q=_.Yq(206221),Q={checkboxData:{state:g?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};u&&_.Ip(u,q,Q);this.reactionsMuted=g};
_.P.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.P.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}}};
_.z3.Object.defineProperties(sK.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var g;return(!((g=this.liveReactionsData)==null||!g.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
sK.prototype.liveReactionsSettingChanged=sK.prototype.liveReactionsSettingChanged;sK.prototype.emojiCustomizationEnabledChanged=sK.prototype.emojiCustomizationEnabledChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.j3),_.K("design:type",Object)],sK.prototype,"ytLiveChatReduxBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],sK.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sK.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",_.GR)],sK.prototype,"emojiManager",void 0);_.Y([_.a(),_.K("design:type",Object)],sK.prototype,"newnessDotEligible",void 0);_.Y([_.a(),_.K("design:type",Object)],sK.prototype,"newnessDotImpressionCounted",void 0);
_.Y([_.a({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:o6Z}),_.K("design:type",Boolean)],sK.prototype,"liveReactionsSetting",void 0);_.Y([_.a({selectorArgs:["data.liveReactionsDataEntityKey"],selector:SR9}),_.K("design:type",Object)],sK.prototype,"liveReactionsData",void 0);_.Y([_.a({value:function(){var g=_.w("enable_lwe_web_mute"),u=NO.get("allow-reactions");return u===void 0?!1:!u&&g}}),
_.K("design:type",Boolean)],sK.prototype,"reactionsMuted",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sK.prototype,"liveReactionsEnabled",null);_.Y([_.k_("data.emojiCustomizationEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sK.prototype,"emojiCustomizationEnabledChanged",null);
_.Y([_.k_("liveReactionsEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sK.prototype,"liveReactionsSettingChanged",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],sK);
_.T(sK,"yt-reaction-control-panel-overlay-view-model",function(){if(Fxb===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;dXK===void 0&&(dXK=document.createElement("template"));var Q=dXK;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Fxb=g}g=Fxb;return g},{mode:0});var Wxt={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(g){var u=this.$.pickers.selected;if(u){_.Tr(this.hostElement).removeAttribute(u+"-open");var q="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(q="#picker-buttons",u==="emoji"&&_.Tr(this.hostElement).querySelector("#emoji-picker-button")&&(q="#emoji-picker-button"));if(q=_.Tr(this.hostElement).querySelector(q).querySelector("#"+u))q.active=!1}q=g;u==g&&(q=null);u!=
g&&_.Tr(this.hostElement).setAttribute(g+"-open","");this.$.pickers.selected=q;_.YJ(this.hostElement,"yt-live-chat-picker-changed",[q])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var ym=function(){var g=_.X.apply(this,arguments)||this;g.numSentMessages=0;g.timeoutDurationMs=0;g.timeoutMs=0;g.lastTimeoutTimeMs=0;g.pendingMessageId="";g.hasFiredInitialFocusActions=!1;g.isBeforeFocusEnabled=!0;g.id="";g.characterCount=0;g.maxCharacterLimit=0;g.remainingCharacterCount=0;g.inputExpanded=!1;g.buttonOverrides={iconPosition:"icon-only"};g.inReplyPanel=!1;g.countdownRatio=0;g.isTooltipVisible=!1;g.tooltipTimeout=1E4;g.systemIcons=_.w("kevlar_system_icons");g.tallerEmojiPicker=_.w("live_chat_taller_emoji_picker");
g.sendReplyMessageInFlight=!1;g.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"};g.onResize=function(){g.maybeToggleCharacterCount()};
return g};
_.A(ym,_.X);_.P=ym.prototype;
_.P.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"}}}};
_.P.attached=function(){window.addEventListener("resize",this.onResize)};
_.P.detached=function(){window.removeEventListener("resize",this.onResize)};
_.P.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.P.sendMessage=function(){var g=this,u,q,Q,L;return _.D(function(E){if(g.sendDisabled)return E.return();g.isTooltipVisible&&_.YJ(g.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(g.data.sendButton&&g.data.sendButton.buttonRenderer){g.input.completeEmojis();u=g.data.sendButton.buttonRenderer.serviceEndpoint;if(!u)return E.return();Q=((q=_.c(u,_.XFo))==null?void 0:q.clientIdPrefix)||"";L={client_message_id:Q+String(g.numSentMessages++),rich_message:_.eT(g.input.liveChatRichMessageInput)};
g.pendingMessageId=L.client_message_id;g.inReplyPanel&&(g.sendReplyMessageInFlight=!0);_.KV(g.hostElement,[u,L]);g.input.setLiveChatRichMessageInput(null)}_.Wx(E)})};
_.P.handleSendButtonAction=function(g){g.detail.actionName==="yt-service-request"&&(g.stopPropagation(),this.sendMessage())};
_.P.onSendCompleted=function(g,u){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(g=this.get("timeoutDurationUsec",u.data))&&this.handleTimeout(Number(g)/1E3);this.errorMessage=this.get("errorMessage",u.data);this.pendingMessageId=""};
_.P.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.YJ(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.P.handlePickerButtonToggle=function(g){g=g.detail.targetId;this.ytPickerBehavior.togglePicker_(g);if(g==="emoji")this.input.focus();else if(g==="qna-start-panel"){var u,q;(u=_.Tr(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(q=u.querySelector("#qna-creator-text-input-field"))==null||q.focus()}};
_.P.onComponentReplaced=function(g){var u,q;g.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((u=g.replacement.liveChatMessageInputRenderer)==null?0:(q=u.headerRenderer)==null?0:q.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.P.onEmojiSelect=function(g){this.input.focus();this.input.insertEmoji(g.detail)};
_.P.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.P.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.YJ(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.YJ(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.P.onOpenPopupAction=function(g,u){var q=this;u===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.YJ(q.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.P.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.P.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.P.focusChanged=function(){this.maybeToggleCharacterCount()};
_.P.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var g=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",g>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.P.computeId=function(){return this.data&&this.data.targetId||""};
_.P.computeSendDisabled=function(g,u,q,Q){g=!!(!g||u&&g>u||Q);(u=_.Tr(this.hostElement).querySelector("#send-button"))&&u.children.length&&(u.children[0].disabled=g);return g};
_.P.handleTimeout=function(g){this.timeoutDurationMs=this.timeoutMs=g;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.P.updateTimeout=function(g){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(g-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=g,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.P.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.P.onErrorMessageEdit=function(g){this.input.setLiveChatRichMessageInput(g.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.P.errorMessageChanged=function(){var g=this;_.wO(function(){_.YJ(g.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.P.computeAuthorNameColor=function(g){var u;if(_.w("live_chat_author_name_color_usernames")&&(g==null?0:(u=g.authorName)==null?0:u.simpleText))return _.zaT(_.nYm(g.authorName.simpleText));if(_.w("live_chat_seed_color_usernames")&&(g==null?0:g.authorSeedColorArgb))return _.zaT(_.Oi(g.authorSeedColorArgb));if(_.w("live_chat_colored_usernames"))return"#cc0000";var q;return _.w("live_chat_simple_color_usernames")&&(g==null?0:(q=g.authorName)==null?0:q.simpleText)&&(g==null?0:g.authorUsernameColorLight)&&
(g==null?0:g.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Oi(g.authorUsernameColorDark):_.Oi(g.authorUsernameColorLight):""};
_.P.onIsTooltipVisibleChanged=function(){var g=_.Tr(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){g.hidden=!1;g.setAttribute("role","alert")},0):(g.hidden=!0,g.removeAttribute("role"))};
_.P.onFocusedChanged=function(g){this.inputFocused=g.detail.value};
_.z3.Object.defineProperties(ym.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 g;return!((g=this.data)==null||!g.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:(u=g.pickers)==null?void 0:u.find(function(q){return q.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var g=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return g?this.ytRendererBehavior.getSimpleString(g):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
ym.prototype.onIsTooltipVisibleChanged=ym.prototype.onIsTooltipVisibleChanged;ym.prototype.errorMessageChanged=ym.prototype.errorMessageChanged;ym.prototype.onErrorMessageEdit=ym.prototype.onErrorMessageEdit;ym.prototype.onErrorMessageDismiss=ym.prototype.onErrorMessageDismiss;ym.prototype.focusChanged=ym.prototype.focusChanged;ym.prototype.characterCountChanged=ym.prototype.characterCountChanged;ym.prototype.onEmojiSelect=ym.prototype.onEmojiSelect;ym.prototype.handlePickerButtonToggle=ym.prototype.handlePickerButtonToggle;
ym.prototype.onSendError=ym.prototype.onSendError;ym.prototype.onSendCompleted=ym.prototype.onSendCompleted;ym.prototype.sendMessage=ym.prototype.sendMessage;ym.prototype.dataChanged=ym.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ym.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(Wxt.YtPickerBehavior),_.K("design:type",Object)],ym.prototype,"ytPickerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.fK.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],ym.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"hasFiredInitialFocusActions",void 0);
_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"isBeforeFocusEnabled",void 0);_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"data",void 0);_.Y([_.a({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",Object)],ym.prototype,"id",void 0);_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"characterCount",void 0);_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"maxCharacterLimit",void 0);
_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"remainingCharacterCount",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ym.prototype,"inputExpanded",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ym.prototype,"inputFocused",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],ym.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.Y([_.a(),_.K("design:type",_.lT)],ym.prototype,"participantsManager",void 0);
_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"buttonOverrides",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ym.prototype,"inReplyPanel",void 0);_.Y([_.C("characterCount, maxCharacterLimit, countdownActive"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ym.prototype,"sendDisabled",null);_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"countdownRatio",void 0);
_.Y([_.C("countdownRatio"),_.K("design:type",Number),_.K("design:paramtypes",[])],ym.prototype,"countdownStrokeDashOffset",null);_.Y([_.C("countdownRatio"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ym.prototype,"countdownActive",null);_.Y([_.C("data.interactionMessage"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ym.prototype,"hasInteractionMessage",null);
_.Y([_.C("data.emojiPickerButton"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ym.prototype,"hasEmojiPickerButton",null);_.Y([_.C("data, characterCount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ym.prototype,"showAvatar",null);_.Y([_.C("data.pickers"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ym.prototype,"hasProductPickerPanelViewModel",null);
_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"errorMessage",void 0);_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"genericErrorMessage",void 0);_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"isTooltipVisible",void 0);_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"tooltipTimeout",void 0);_.Y([_.C("data.onInitialFocusCommand"),_.K("design:type",String),_.K("design:paramtypes",[])],ym.prototype,"tooltipMessage",null);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ym.prototype,"systemIcons",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ym.prototype,"tallerEmojiPicker",void 0);_.Y([_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],ym.prototype,"authorNameColor",null);_.Y([_.a(),_.K("design:type",Object)],ym.prototype,"sendReplyMessageInFlight",void 0);_.Y([_.oE("#input"),_.K("design:type",_.cuZ)],ym.prototype,"input",void 0);
_.Y([_.oE("#count"),_.K("design:type",HTMLElement)],ym.prototype,"count",void 0);_.Y([_.oE("#input-container"),_.K("design:type",HTMLElement)],ym.prototype,"inputContainer",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ym.prototype,"dataChanged",null);_.Y([_.n6("yt-live-chat-send-message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],ym.prototype,"sendMessage",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[Event,_.la]),_.K("design:returntype")],ym.prototype,"onSendCompleted",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ym.prototype,"onSendError",null);
_.Y([_.n6("yt-live-chat-icon-toggle-button-renderer-toggle"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ym.prototype,"handlePickerButtonToggle",null);_.Y([_.n6("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ym.prototype,"onEmojiSelect",null);
_.Y([_.k_("characterCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ym.prototype,"characterCountChanged",null);_.Y([_.k_("inputFocused"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ym.prototype,"focusChanged",null);_.Y([_.n6("yt-live-chat-error-message-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ym.prototype,"onErrorMessageDismiss",null);
_.Y([_.n6("yt-live-chat-error-message-edit"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ym.prototype,"onErrorMessageEdit",null);_.Y([_.k_("errorMessage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ym.prototype,"errorMessageChanged",null);_.Y([_.k_("isTooltipVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ym.prototype,"onIsTooltipVisibleChanged",null);
_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],ym);
_.T(ym,"yt-live-chat-message-input-renderer",function(){if(NzC===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;PyH===void 0&&(PyH=document.createElement("template"));var Q=PyH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);NzC=g}g=NzC;return g},{mode:0});var TzC;var hpz;var vG=function(){var g=_.X.apply(this,arguments)||this;g.systemIcons=_.w("kevlar_system_icons");g.firedOnClickCommand=!1;g.inReplyPanel=!1;return g};
_.A(vG,_.X);
vG.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"}}}};
vG.prototype.onButtonToggle=function(g){g.target.disabled||this.ytPickerBehavior.togglePicker_(g.detail.targetId)};
vG.prototype.onClick=function(){var g=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.YJ(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return g.firedOnClickCommand=!1},5E3))};
_.z3.Object.defineProperties(vG.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:(u=g.panels)==null?void 0:u.find(function(q){return q.liveChatProductPickerPanelViewModel}))!==void 0}}});
vG.prototype.onButtonToggle=vG.prototype.onButtonToggle;_.Y([_.I(Wxt.YtPickerBehavior),_.K("design:type",Object)],vG.prototype,"ytPickerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vG.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],vG.prototype,"systemIcons",void 0);_.Y([_.a({reflectToAttribute:!1}),_.K("design:type",Object)],vG.prototype,"firedOnClickCommand",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],vG.prototype,"inReplyPanel",void 0);_.Y([_.C("data.pickers"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vG.prototype,"hasProductPickerPanelViewModel",null);
_.Y([_.n6("yt-live-chat-icon-toggle-button-renderer-toggle"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],vG.prototype,"onButtonToggle",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],vG);
_.T(vG,"yt-live-chat-restricted-participation-renderer",function(){if(hpz===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;TzC===void 0&&(TzC=document.createElement("template"));var Q=TzC;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);hpz=g}g=hpz;return g},{mode:0});var D2=function(){var g=_.X.apply(this,arguments)||this;g.genericErrorMessage=_.I7("Error, try again.");g.inReplyPanel=!1;g.hideBorder=!1;return g};
_.A(D2,_.X);D2.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}}}}}};
_.z3.Object.defineProperties(D2,{template:{configurable:!0,enumerable:!0,get:function(){return UjZ()}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],D2.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],D2.prototype,"genericErrorMessage",void 0);_.Y([_.a(),_.K("design:type",Object)],D2.prototype,"inReplyPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],D2.prototype,"hideBorder",void 0);
_.Y([_.jP({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],D2);_.T(D2,"yt-live-chat-engagement-panel-input-renderer",function(){return UjZ()},{mode:0});var YBE;var OtE;var Kxf=new _.CB("yt-live-chat"),xXH=new Map;xXH.set("timestamp_toggle","show-timestamps");xXH.set("reactions_toggle","allow-reactions");var pu=function(){return _.X.apply(this,arguments)||this};
_.A(pu,_.X);_.P=pu.prototype;_.P.menuItemIdentifierChanged=function(){var g;(g=this.data)!=null&&g.menuItemIdentifier&&(g=xXH.get(this.data.menuItemIdentifier))&&(_.w("enable_lwe_web_mute")?(g=Kxf.get(g),this.isToggled=!(g===void 0?!this.data.isToggled:!g)):this.isToggled=Kxf.get(g))};
_.P.onFocus=function(){this.toggleButton.focus()};
_.P.onTap=function(){var g=this.data.command;g&&this.componentBehavior.resolveCommand(g)};
_.P.computeText=function(g,u,q){return this.componentBehavior.getSimpleString(g?q:u)};
_.P.computeIcon=function(g,u,q){return(g=g?q:u)&&g.iconType?_.x9(g.iconType):""};
pu.prototype.onTap=pu.prototype.onTap;pu.prototype.onFocus=pu.prototype.onFocus;pu.prototype.menuItemIdentifierChanged=pu.prototype.menuItemIdentifierChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],pu.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pu.prototype,"data",void 0);
_.Y([_.a({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.K("design:type",String)],pu.prototype,"icon",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],pu.prototype,"isToggled",void 0);_.Y([_.oE("tp-yt-paper-toggle-button"),_.K("design:type",Object)],pu.prototype,"toggleButton",void 0);_.Y([_.k_("data.menuItemIdentifier"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pu.prototype,"menuItemIdentifierChanged",null);
_.Y([_.n6("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pu.prototype,"onFocus",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pu.prototype,"onTap",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],pu);
_.T(pu,"yt-live-chat-toggle-renderer",function(){if(OtE===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;YBE===void 0&&(YBE=document.createElement("template"));var Q=YBE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);OtE=g}g=OtE;return g},{mode:0});var Bzh=new _.Fv("NAVIGATION_PROGRESS_TOKEN");var zph={},nnb={},kCx=(nnb[XEh.name]=!0,nnb),Jd=function(){var g=_.gO.apply(this,arguments)||this;g._noAccessors=!0;g.tabGesturesIsActive=!1;g.actionRouterIsRoot=!0;g.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"};g.pageTitle="";g.titleSuffix="YouTube";g.unseenNotificationCount=
0;g.hasNavigated=!1;g.hasSetScrollTopForNavigation=!1;g.pagePreparer=null;g.zwiebackInitJobId=0;g.dataUpdatePromise=null;g.loadDepsPromise=_.BX();g.hasPendingNavigation=!1;g.pendingPlayerOnResponseReceivedActions=[];return g};
_.A(Jd,_.gO);Jd.prototype.attached=function(){SBL(this);document.addEventListener("yt-navigate-cache",_.zr(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var g=jl();g.init();g.dispatchElement=this.hostElement};
var SBL=function(g,u){u=u===void 0?0:u;var q=_.Bk().resolve(_.xv(_.zL));if(q)onC(g,q);else{if(u>=5)throw Error("wl");setTimeout(function(){SBL(g,u+1)},0)}},onC=function(g,u){u.addEventListener("yt-navigate-start",_.zr(g,g.onYtNavigateStart));
u.addEventListener("yt-navigate-finish",_.zr(g,g.onYtNavigateFinish));u.addEventListener("yt-navigate-error",_.zr(g,g.onYtNavigateError));u.addEventListener("yt-page-data-fetched",_.zr(g,g.onYtPageDataFetched))};
_.P=Jd.prototype;_.P.detached=function(){var g=_.Bk().resolve(_.zL);g.removeEventListener("yt-navigate-start",_.zr(this,this.onYtNavigateStart));g.removeEventListener("yt-navigate-finish",_.zr(this,this.onYtNavigateFinish));g.removeEventListener("yt-navigate-error",_.zr(this,this.onYtNavigateError));g.removeEventListener("yt-page-data-fetched",_.zr(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.zr(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.P.setPageOffset=function(g,u){g?_.YJ(this.hostElement,"yt-set-page-offset",[g,u]):_.Zf(Error("xl"))};
_.P.setPageOffsetForNavigation=function(g,u){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(g,u))};
_.P.onYtNavigateSetPageOffset=function(g,u){this.setPageOffsetForNavigation(u.page,u.offset)};
_.P.getPageOffset=function(){var g=_.Tr(this.hostElement).querySelector("#page-manager").getCurrentPage(),u=0;g&&(u=_.YJ(this.hostElement,"yt-get-page-offset",[g])[0]);return u};
_.P.onYtHistoryPop=function(g,u){if(_.mW("DISABLE_WARM_LOADS"))g.preventDefault(),window.location.reload();else{var q=_.Bk().resolve(_.zL);q.hasPendingNavigation()&&g.preventDefault();q.cancelPendingNavigation();_.Og(this.hostElement,"yt-pending-navigation-cancelled");u.errorMsg&&(g=u.errorMsg.split(" - "),u=Error(g[0]),g.length==2&&g[1]&&(_.iD(u,g[1]),_.Io(u)),window.location.reload())}};
_.P.onYtHistoryLoad=function(g,u){var q=this;if(_.mW("DISABLE_WARM_LOADS"))window.location.reload();else{(g=u.endpoint)&&Object.keys(g).length||(g=null);var Q=u.historyEntry,L=_.Bk().resolve(_.zL),E=_.Bk().resolve(_.ba),y=null;Q&&Q.rootData&&(y=Q.rootData);var v=y&&UXn(y);!y||v||y.filler?g?(L.navigate(g,!0),gwf(this,g)):(u.legacyBorder||v||(u.JSC$31231_savedComponentState==null&&y==null?_.Io(new _.Ji("Incomplete history entry",u.forward)):_.lD(new _.Ji("Malformed history entry",u.JSC$31231_savedComponentState,
u.forward,y))),window.location.reload()):(_.OIq({isHot:!0}),_.pW({webInfo:{navigationReason:"h"}}),_.bsZ(),_.fW("srt"),_.fW("pdc"),this.cancelPendingTasks(),unf(this,u.forward,y),y.player&&(y.player.loaded=!1),gwf(this,g),_.qK0(L,g||{},y,2,{},!1,u).then(function(){q.setPageOffset(E.getCurrentPage(),Q.scrollTop||0)}))}};
_.P.initHistoryManager=function(g){if(!this.hasNavigated){this.hasNavigated=!0;var u=_.Tr(this.hostElement).querySelector("#page-manager").getCurrentData();g=isNaN(g)?this.getPageOffset():g;var q=_.Bk().resolve(_.zL).currentEndpoint;this.replaceState(q,u,g)}};
_.P.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.P.onYtNavigateStart=function(g,u){this.navigationSpan&&(this.navigationSpan.addAttributes({cancelled:!0}),this.navigationSpan.end());var q;this.navigationSpan=_.WX("navigate",{fromPath:window.location.pathname,toPath:u.url?(q=_.YB(u.url))!=null?q:void 0:void 0});this.cancelPendingTasks();u.noProgressBar||(g=_.Bk().resolve(_.xv(Bzh)))&&g.start();g=this.hasPendingNavigation?null:this.data;q=_.Bk().resolve(_.ba);var Q,L,E;_.w("kevlar_use_vimio_behavior")&&!((Q=u.endpoint)==null?0:(L=Q.commandMetadata)==
null?0:(E=L.webCommandMetadata)==null?0:E.ignoreNavigation)&&(Q=q.getCurrentPage())&&Q.disconnectVisibilityRoot();q.prepareForNavigation(u.pageType,u.endpoint);_.w("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.bw(1,"pcl"),_.dg(this.pagePreparer,q.preparePage.bind(q,u.pageType,u.endpoint)));Q=this.getPageOffset();this.initHistoryManager(Q);u.reload||this.hasPendingNavigation?(u.pageType==="shorts"&&u.reload&&_.hJ(this.hostElement,"yt-shorts-reset"),this.replaceState(u.endpoint,g,Q)):
(g==null?void 0:g.page)==="watch"&&u.pageType==="watch"&&_.w("kevlar_replace_watch_to_watch_history_state")?this.replaceState(u.endpoint,g,Q):(g==null?void 0:g.page)!=="shorts"||u.pageType!=="shorts"||u.endpoint.reelWatchEndpoint.sequenceParams||_.w("short_to_short_back_nav_killswitch")?u.type!="navigate-back"&&u.type!="navigate-forward"&&(u.pageType==="shorts"&&_.hJ(this.hostElement,"yt-shorts-reset"),this.saveAndPush(u.url,u.endpoint,g,Q)):this.replaceState(u.endpoint,g,0);this.hasPendingNavigation=
!0};
var q5b=function(g){g.hasPendingNavigation=!1;(g=_.Bk().resolve(_.xv(Bzh)))&&g.finish()};
Jd.prototype.onYtNavigateError=function(g,u){this.navigationSpan&&(this.navigationSpan.end("SPAN_STATUS_ERROR"),this.navigationSpan=void 0);q5b(this);g=this.get("endpoint.commandMetadata.webCommandMetadata.url",u);var q=_.Yv(window.location.href);g&&!q.pbjreload&&(u=u.navigationErrorReason||"10",_.w("kevlar_parent_on_pbjreload")&&(q={csn:_.j_()},this.get("data.endpoint.clickTrackingParams")&&(q.itct=this.data.endpoint.clickTrackingParams),_.CV(g,q)),_.Gr(_.O_(g,{pbjreload:u})))};
Jd.prototype.onYtNavigateCache=function(g,u){var q=this,Q=u.url,L=u.endpoint,E=u.data;g=!!u.miniplayer;u=!!u.skipHistory;if(Q&&L&&E){var y=this.getPageOffset(),v=this.data||null;u||this.saveAndPush(Q,L,v,y);Q=_.qK0(_.Bk().resolve(_.zL),L,E,g?4:3,{},g);g&&Q.then(function(){q.dataUpdatePromise&&q.dataUpdatePromise.then(function(){var J=_.Bk().resolve(_.ba);q.setPageOffset(J.getCurrentPage(),0)})})}};
Jd.prototype.onYtNavigateFinish=function(g,u){var q=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){QbZ(q,u.fromHistory)})};
var QbZ=function(g,u){g.navigationSpan&&(g.navigationSpan.end(),g.navigationSpan=void 0);q5b(g);if(g.pendingPlayerOnResponseReceivedActions){for(var q=_.N(g.pendingPlayerOnResponseReceivedActions),Q=q.next();!Q.done;Q=q.next())_.nE(Q.value,g.hostElement);g.pendingPlayerOnResponseReceivedActions=[]}q=_.Bk().resolve(_.ba);u||!g.hasNavigated||_.w("web_disable_scroll_on_navigate_finish")||((u=q.getCurrentPage())?u.is==="ytd-shorts"||g.tabGesturesIsActive||g.setPageOffsetForNavigation(u,0):_.Io(Error("yl")));
_.wO(function(){_.wO(function(){_.fW("pda")})})};
Jd.prototype.onYtNavigate=function(g){if(!g.detail.endpoint){var u=new _.Ji("Error: Missing yt-navigate endpoint from target:",g.target,g.target.nodeName);_.Zf(u)}if(u=_.w("cold_missing_history"))u=jl(),u.init(!1),u=!(u.browserHistory.boundHistoryReplaceState&&u.browserHistory.boundHistoryPushState);if(u){_.di("DISABLE_WARM_LOADS",!0);u=new _.Ji("Failed to initialize history manager",this.getDebugString());var q=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
q?_.Io(u):_.Zf(u)}u=g.detail.endpoint;var Q,L;_.w("debug_forward_web_query_parameters")&&((Q=u.commandMetadata)==null?0:(L=Q.webCommandMetadata)==null?0:L.url)&&(u=JSON.parse(JSON.stringify(u)),u.commandMetadata.webCommandMetadata.url=_.TFq(u.commandMetadata.webCommandMetadata.url,window.location.search));g={type:0,command:u,form:{params:g.detail.params,tempData:g.detail.tempData||{},requestType:g.detail.type,createScreenConfig:g.detail.createScreenConfig,reload:g.detail.reload?g.detail.reload:!1,
requestForm:g.detail}};_.w("kevlar_yt_navigate_command_handler")?(Q=_.Bk().resolve(_.Gy),g.form.skipDefaultElement=!0,Q.resolveCommand(u,{form:g.form})):this.handleNavigate(g)};
Jd.prototype.handleNavigate=function(g){this.hasSetScrollTopForNavigation=!1;var u=_.Bk().resolve(_.zL),q=g.form||{};u.navigate(g.command,q.reload,q.params,q.tempData,q.requestType,q.createScreenConfig,q.ignoreConfirmation,q.requestForm)&&gwf(this,g.command,q.tempData)};
Jd.prototype.onYtPageDataFetched=function(g,u){try{_.KTx().reset();this.data=u.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.Bk().resolve(_.ba).updatePageData(this.data);var q=this.get("playerResponse.onResponseReceivedActions",this.data);q&&(q=L1h(this,q));q&&_.xJ(this.hostElement,q,this.hostElement);var Q=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),L=this.get("response.responseContext.consistencyTokenJar",this.data);if(Q||L){var E=_.nDq(),y=(0,_.pH.getValues)(E.tokenJars);Q&&E.replace(y,Q);L&&E.replace(y,L)}}catch(v){_.Zf(v)}};
var gwf=function(g,u,q){try{g.onYtEndpointChangeHandler(u,q)}catch(Q){_.Zf(Q)}};
_.P=Jd.prototype;_.P.onYtEndpointChangeHandler=function(){};
_.P.setPageTitle=function(g){g=(this.pageTitle=g)?g+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+g};
_.P.onYtUpdateTitle=function(g,u){this.setPageTitle(u)};
_.P.setUnseenNotificationCount=function(g){this.unseenNotificationCount=g;this.setPageTitle(this.pageTitle)};
_.P.handleUpdateNotificationsUnseenCountAction=function(g){_.c(g,yV9)&&((g=_.c(g,yV9).unseenCount)?this.setUnseenNotificationCount(g):this.setUnseenNotificationCount(0))};
_.P.handleClearCookieAction=function(g){var u;(g=(u=_.c(g,Qdz))==null?void 0:u.cookieName)&&_.PRM(g)};
_.P.onYtUpdateUnseenNotificationCount=function(g,u){this.setUnseenNotificationCount(u)};
_.P.loadData=function(g){var u=this;this.loadDepsPromise.then(function(){var q=_.Bk().resolve(_.xv(_.zL));q||_.Zf(Error("zl"));if(g&&g.response){if(!g.endpoint){var Q=_.KO(window.document.location.href)||"/",L="";if(Q==="/"||Q.startsWith("/?"))L="WEB_PAGE_TYPE_BROWSE";g.endpoint={commandMetadata:{webCommandMetadata:{url:Q,webPageType:L,rootVe:3854}}}}_.qK0(q,g.endpoint,g,5,{})}else g.endpoint?q.navigate(g.endpoint):q.navigate(_.uo);_.Hv.cancelJob(u.zwiebackInitJobId);u.zwiebackInitJobId=_.Hv.addLowPriorityJob(KHz)})};
var jl=function(){return _.Bk().resolve(_.SB)};
Jd.prototype.getDebugString=function(){return jl().getDebugString()};
Jd.prototype.getThirdPartyManipulationSuspected=function(){return jl().getThirdPartyManipulationSuspected()};
Jd.prototype.replaceState=function(g,u,q){jl().saveAndReplace(g,u,q)};
Jd.prototype.saveAndPush=function(g,u,q,Q){jl().saveAndPush(g,u,q,Q)};
var UXn=function(g){return _.c(g.endpoint,_.l1)||_.c(g.endpoint,_.g$)?!0:!g||isNaN(g.expirationTime)?!1:(0,_.n0)()>g.expirationTime},unf=function(g,u,q){var Q=g.get("response.trackingParams",q),L=_.JJ(),E=_.j_();
if(Q&&L&&E&&(Q=g.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",q),!Q&&q.rootVe&&(Q=q.rootVe),L=u?"forwardButton":"backButton",u=g.get("playerResponse.topbar.desktopTopbarRenderer."+L+".buttonRenderer.command.clickTrackingParams",g.data),g=g.get("response.topbar.desktopTopbarRenderer."+L+".buttonRenderer.command.clickTrackingParams",g.data),u=(g=u||g)?_.Lr(g):void 0,g=_.gL(),L=[_.BX(q)],_.Kq(g,Q,u,{dataPromises:L,csnToClone:q.csn}),q.graftedVes))for(q=
_.N(q.graftedVes),Q=q.next();!Q.done;Q=q.next())_.xl(g,Q.value)};
Jd.prototype.onStoreGraftedVeAction=function(g){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(g)):_.Io(Error("Al"))};
var L1h=function(g,u){return u.filter(function(q){for(var Q in q)if(kCx[Q])return g.pendingPlayerOnResponseReceivedActions.push(q),!0;return!1})};
_.z3.Object.defineProperties(Jd.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Jd.prototype.onStoreGraftedVeAction=Jd.prototype.onStoreGraftedVeAction;Jd.prototype.loadData=Jd.prototype.loadData;Jd.prototype.onYtUpdateUnseenNotificationCount=Jd.prototype.onYtUpdateUnseenNotificationCount;Jd.prototype.handleClearCookieAction=Jd.prototype.handleClearCookieAction;Jd.prototype.handleUpdateNotificationsUnseenCountAction=Jd.prototype.handleUpdateNotificationsUnseenCountAction;Jd.prototype.setUnseenNotificationCount=Jd.prototype.setUnseenNotificationCount;
Jd.prototype.onYtUpdateTitle=Jd.prototype.onYtUpdateTitle;Jd.prototype.setPageTitle=Jd.prototype.setPageTitle;Jd.prototype.onYtEndpointChangeHandler=Jd.prototype.onYtEndpointChangeHandler;Jd.prototype.onYtPageDataFetched=Jd.prototype.onYtPageDataFetched;Jd.prototype.handleNavigate=Jd.prototype.handleNavigate;Jd.prototype.onYtNavigate=Jd.prototype.onYtNavigate;Jd.prototype.onYtNavigateFinish=Jd.prototype.onYtNavigateFinish;Jd.prototype.onYtNavigateCache=Jd.prototype.onYtNavigateCache;
Jd.prototype.onYtNavigateError=Jd.prototype.onYtNavigateError;Jd.prototype.onYtNavigateStart=Jd.prototype.onYtNavigateStart;Jd.prototype.cancelPendingTasks=Jd.prototype.cancelPendingTasks;Jd.prototype.initHistoryManager=Jd.prototype.initHistoryManager;Jd.prototype.onYtHistoryLoad=Jd.prototype.onYtHistoryLoad;Jd.prototype.onYtHistoryPop=Jd.prototype.onYtHistoryPop;Jd.prototype.onYtNavigateSetPageOffset=Jd.prototype.onYtNavigateSetPageOffset;Jd.prototype.setPageOffset=Jd.prototype.setPageOffset;
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Jd.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Jd.prototype,"data",void 0);_.Y([_.n6("yt-navigate-set-page-offset"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Jd.prototype,"onYtNavigateSetPageOffset",null);
_.Y([_.n6("yt-history-pop"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Jd.prototype,"onYtHistoryPop",null);_.Y([_.n6("yt-history-load"),_.K("design:type",Function),_.K("design:paramtypes",[Event,_.erH]),_.K("design:returntype")],Jd.prototype,"onYtHistoryLoad",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Jd.prototype,"onYtNavigate",null);
_.Y([_.n6("yt-update-title"),_.K("design:type",Function),_.K("design:paramtypes",[Event,String]),_.K("design:returntype")],Jd.prototype,"onYtUpdateTitle",null);_.Y([_.n6("yt-update-unseen-notification-count"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Number]),_.K("design:returntype")],Jd.prototype,"onYtUpdateUnseenNotificationCount",null);_.Y([_.uU()],Jd);zph.YtdAppBehavior=[_.xK.YtActionHandlerBehavior,Jd.prototype];var fu=function(){var g=_.gO.apply(this,arguments)||this;g._noAccessors=!0;g.scrollRate=3;g.autoScrollAnimationStart=0;g.autoScrollPaused=!1;g.autoScrollRafId=0;return g};
_.A(fu,_.gO);_.P=fu.prototype;_.P.created=function(){var g=this;this.boundAutoScrollHandler=function(u){g.autoScroll(u)}};
_.P.detached=function(){this.hostElement.removeEventListener("mouseout",_.zr(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.zr(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.zr(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.P.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.zr(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.zr(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.zr(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.zr(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.zr(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.zr(this,this.endAutoScroll)),this.endAutoScroll())};
_.P.autoScroll=function(g){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=g);var u;if(u=!this.autoScrollPaused&&this.scrollTarget)u=this.scrollTarget,u=u.scrollHeight-u.scrollTop!==u.clientHeight;u&&(u=1E3/this.scrollRate,g-=this.autoScrollAnimationStart,g>u&&(this.scrollTarget.scrollTop+=Math.ceil(g/u),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.P.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.P.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
fu.prototype.autoScrollEnabledChanged=fu.prototype.autoScrollEnabledChanged;_.Y([_.a(),_.K("design:type",Object)],fu.prototype,"scrollRate",void 0);_.Y([_.a(),_.K("design:type",Object)],fu.prototype,"scrollTarget",void 0);_.Y([_.a(),_.K("design:type",Boolean)],fu.prototype,"autoScrollEnabled",void 0);_.Y([_.k_("autoScrollEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fu.prototype,"autoScrollEnabledChanged",null);_.Y([_.uU()],fu);var Ewh=[fu.prototype];var MO=function(){var g=_.gO.apply(this,arguments)||this;g._noAccessors=!0;return g};
_.A(MO,_.gO);MO.prototype.ready=function(){var g=this;_.Tr(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){g.onChange_()})};
MO.prototype.dataChanged_=function(){_.Tr(this.hostElement).querySelector("#checkbox").checked=!1};
MO.prototype.onChange_=function(){var g=_.Tr(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.hJ(this.hostElement,"yt-dismissal-reason-"+g,this.data.feedbackToken)};
MO.prototype.dataChanged_=MO.prototype.dataChanged_;_.Y([_.a(),_.K("design:type",Object)],MO.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MO.prototype,"dataChanged_",null);_.Y([_.uU()],MO);var Prh=[MO.prototype];var td=function(){var g=_.gO.apply(this,arguments)||this;g.showInput=!1;return g};
_.A(td,_.gO);_.P=td.prototype;_.P.detached=function(){this.showInput&&window.removeEventListener("click",_.zr(this,this.closeOnOutsideClick_))};
_.P.stopPropagation_=function(g){this.showInput&&g.stopPropagation()};
_.P.closeOnOutsideClick_=function(g){this.closeOnOutsideClickCondition(g)&&(this.showInput=!1,window.removeEventListener("click",_.zr(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.P.closeOnOutsideClickCondition=function(){return!0};
_.P.closeOnOutsideClickHandler=function(){};
_.P.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.zr(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.P.openOnClickHandler=function(){};
_.P.showInputChanged=function(){};
_.P.setShowInput=function(g){this.showInput=g};
td.prototype.setShowInput=td.prototype.setShowInput;td.prototype.showInputChanged=td.prototype.showInputChanged;td.prototype.openOnClickHandler=td.prototype.openOnClickHandler;td.prototype.openOnClick_=td.prototype.openOnClick_;td.prototype.closeOnOutsideClickHandler=td.prototype.closeOnOutsideClickHandler;td.prototype.closeOnOutsideClickCondition=td.prototype.closeOnOutsideClickCondition;td.prototype.closeOnOutsideClick_=td.prototype.closeOnOutsideClick_;td.prototype.stopPropagation_=td.prototype.stopPropagation_;
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],td.prototype,"showInput",void 0);_.Y([_.n6("click"),_.n6("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],td.prototype,"stopPropagation_",null);_.Y([_.k_("showInput"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean]),_.K("design:returntype")],td.prototype,"showInputChanged",null);_.Y([_.uU()],td);var NPL=[td.prototype];var el=function(){var g=_.gO.apply(this,arguments)||this;g.timeoutJobId=0;g.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return g};
_.A(el,_.gO);el.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
el.prototype.startTimeout=function(){var g=this,u=this.data&&this.data.displayDurationSeconds;u&&!this.timeoutJobId&&(this.timeoutJobId=_.M_(_.Hv,function(){_.YJ(g.hostElement,"yt-close-popup-action",[g.is]);g.timeoutJobId=0},u*1E3))};
el.prototype.cancelTimeout=function(){_.Hv.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
el.prototype.ytdHatsSurveyBehaviorDataChanged=el.prototype.ytdHatsSurveyBehaviorDataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],el.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],el.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.Y([_.uU()],el);var sbC=[_.xK.YtActionHandlerBehavior,el.prototype];var ysx=_.Yq(115994),vwK=_.Yq(115993),Deh=function(g,u,q){var Q=this;var L=q.dragDownAction;this.layer=0;this.JSC$20419_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Q.dragDownAction()}}}};
this.JSC$20419_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Q.dragDownAction()}}}};
this.fullscreen=!1;var E=_.gL();_.BF(E,ysx,this.layer);_.BF(E,vwK,this.layer);this.dragDownAction=function(){L();_.$q(E,{visualElement:Q.fullscreen?ysx:vwK})};
this.gesture=new a8(g,u,this.getConfig(!1),"pandown");this.attach()};
Deh.prototype.attach=function(){this.gesture.attach()};
Deh.prototype.detach=function(){this.gesture.detach()};
Deh.prototype.update=function(g){this.fullscreen=g;var u=this.gesture;g=this.getConfig(g);u.config=g};
Deh.prototype.getConfig=function(g){return g?this.JSC$20419_watchFullScreenConfig:this.JSC$20419_watchConfig};var pJh;var Jsp;var Gt=function(){var g=_.X.apply(this,arguments)||this;g.systemIcons=_.w("kevlar_system_icons");g.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return g};
_.A(Gt,_.X);Gt.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var g=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(g=this.data.percentIfLiked||0,this.activated=!0):(g=this.data.percentIfIndifferent||0,this.activated=!1);_.Tr(this.hostElement).querySelector("#like-bar").style.width=g+"%"}};
Gt.prototype.handleUpdateSentimentBarStateCommand=function(g){this.data&&this.set("data.likeStatus",_.c(g,wwz).likeStatus)};
Gt.prototype.observeLikeStatus=Gt.prototype.observeLikeStatus;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Gt.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Gt.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Gt.prototype,"activated",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Gt.prototype,"systemIcons",void 0);_.Y([_.k_("data.likeStatus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gt.prototype,"observeLikeStatus",null);_.Y([_.fE({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Gt);
_.T(Gt,"ytd-sentiment-bar-renderer",function(){if(Jsp!==void 0)return Jsp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Jsp=g},{mode:1});var jbL;var $5=function(){var g=_.X.apply(this,arguments)||this;g.small=!0;return g};
_.A($5,_.X);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],$5.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],$5.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$5.prototype,"small",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],$5);
_.T($5,"ytd-video-view-count-renderer",function(){if(jbL!==void 0)return jbL;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return jbL=g},{mode:2});var Re=function(){var g=_.X.apply(this,arguments)||this;g.infoFormattedStrings=[];g.wrapVideoActions=_.w("kevar_watch_wrap_video_actions");g.hideSentimentBar=_.w("kevlar_watch_hide_sentiment_bar");g.actionMap={};return g};
_.A(Re,_.X);_.P=Re.prototype;_.P.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.P.dataChanged=function(){_.w("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.P.computeInfoFormattedStrings=function(g){if(!g)return[];var u=[];g.dateText&&u.push(g.dateText);g.stationName&&u.push(g.stationName);g.rating&&u.push(g.rating);g.startEndTimeTemplate&&g.startTimeUtcMillis&&g.endTimeUtcMillis&&u.push(_.I7(fsZ(_.iR(g.startEndTimeTemplate),Number(g.startTimeUtcMillis),Number(g.endTimeUtcMillis))));g.upNextProgramText&&u.push(g.upNextProgramText);return u};
_.P.scheduleInitialUpdatedMetadataRequest=function(){var g,u=(g=this.data)==null?void 0:g.updatedMetadataEndpoint;if(u){var q;g=Number((q=_.c(u,_.s_i))==null?void 0:q.initialDelayMs);q=isNaN(g)?250:g;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),q)}};
_.P.setSentimentBarWidth=function(){var g=this;_.xt(this,function(){var u=_.Tr(g.hostElement).querySelector("ytd-menu-renderer");if(u){u=u.topLevelButtons;for(var q=0,Q=0;Q<u.length;Q++){var L=u[Q],E=g.get("toggleButtonSupportedData.toggleButtonIdData.id",L.data);if(E==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||E==="TOGGLE_BUTTON_ID_TYPE_LIKE")q+=L.clientWidth+8;else break}q&&(g.sentiment.style.width=q-8+" px")}})};
_.P.fetchUpdatedMetadata=function(g){var u;g&&(u={continuation:g});var q;(g=(q=this.data)==null?void 0:q.updatedMetadataEndpoint)&&_.Bk().resolve(_.Gy).resolveCommand(g,{form:Object.assign({},u,{element:this.hostElement})})};
_.P.onYtServiceRequestSent=function(g,u){u.endpoint&&_.c(u.endpoint,_.sw)&&(this.hasUpdateSentimentBarStateCommands()&&!_.w("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.c(u.endpoint,_.sw).status),this.setSentimentBarWidth())};
_.P.hasUpdateSentimentBarStateCommands=function(){var g,u,q,Q,L=(Q=(g=this.data)==null?void 0:(u=g.videoActions)==null?void 0:(q=u.menuRenderer)==null?void 0:q.topLevelButtons)!=null?Q:[];g=_.N(L);for(u=g.next();!u.done;u=g.next()){u=u.value;L=Q=q=void 0;var E=(q=u.toggleButtonRenderer)==null?void 0:(Q=q.toggleButtonSupportedData)==null?void 0:(L=Q.toggleButtonIdData)==null?void 0:L.id;if(E==="TOGGLE_BUTTON_ID_TYPE_LIKE"||E==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){Q=q=void 0;u=(Q=_.c((q=u.toggleButtonRenderer)==
null?void 0:q.defaultServiceEndpoint,_.zg))==null?void 0:Q.commands;if(!u)break;u=_.N(u);for(q=u.next();!q.done;q=u.next())if(_.c(q.value,wwz))return!0}}return!1};
_.P.onYtServiceRequestCompleted=function(g,u){var q;(g=(q=u.data)==null?void 0:q.loggingDirectives)&&_.ySf(_.gL(),g);this.get("continuation.timedContinuationData",u.data)&&this.data&&this.data.updatedMetadataEndpoint&&(u=u.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,u.continuation),u.timeoutMs))};
_.P.computeHasDateText=function(g){return!!g&&!!g.dateText};
_.z3.Object.defineProperties(Re.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q;return!((Q=(g=this.data)==null?void 0:(u=g.videoActions)==null?void 0:(q=u.menuRenderer)==null?void 0:q.flexibleItems)==null||!Q.length)}}});
Re.prototype.onYtServiceRequestCompleted=Re.prototype.onYtServiceRequestCompleted;Re.prototype.onYtServiceRequestSent=Re.prototype.onYtServiceRequestSent;Re.prototype.dataChanged=Re.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Re.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.iw.YtTaskEmitterBehavior),_.K("design:type",Object)],Re.prototype,"ytTaskEmitterBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Re.prototype,"data",void 0);_.Y([_.a({computed:"computeInfoFormattedStrings(data)"}),_.K("design:type",Array)],Re.prototype,"infoFormattedStrings",void 0);
_.Y([_.a({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Re.prototype,"hasDateText",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Re.prototype,"wrapVideoActions",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Re.prototype,"hideSentimentBar",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Re.prototype,"flexMenuEnabled",null);
_.Y([_.oE("#sentiment"),_.K("design:type",Object)],Re.prototype,"sentiment",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Re.prototype,"dataChanged",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],Re.prototype,"onYtServiceRequestSent",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],Re.prototype,"onYtServiceRequestCompleted",null);
_.T(Re,"ytd-video-primary-info-renderer",function(){if(pJh===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);pJh=g}g=pJh;return g},{mode:1});var flp;var MIx;var w3=function(){return _.X.apply(this,arguments)||this};
_.A(w3,_.X);w3.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
w3.prototype.onTap=function(g){var u=this.data&&this.data.endpoint;u&&!_.ia(_.C6(g),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.hJ(this.hostElement,"yt-navigate",{endpoint:u})};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],w3.prototype,"data",void 0);_.Y([_.fE({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],w3);
_.T(w3,"ytd-autotagging-metadata-renderer",function(){if(MIx!==void 0)return MIx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return MIx=g},{mode:1});var tI9;var cG=function(){return _.X.apply(this,arguments)||this};
_.A(cG,_.X);cG.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cG.prototype,"data",void 0);_.Y([_.fE({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],cG);
_.T(cG,"ytd-autotagging-metadata-row-renderer",function(){if(tI9!==void 0)return tI9;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return tI9=g},{mode:1});var eZ9;var GYb;var HG=function(){var g=_.X.apply(this,arguments)||this;g.engagementPanelContent=!1;return g};
_.A(HG,_.X);HG.prototype.computeHasDividerLine=function(g,u){return g&&!u};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],HG.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.K("design:type",Boolean)],HG.prototype,"hasDividerLine",void 0);_.Y([_.a(),_.K("design:type",Object)],HG.prototype,"engagementPanelContent",void 0);
_.Y([_.fE({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],HG);
_.T(HG,"ytd-metadata-row-header-renderer",function(){if(GYb!==void 0)return GYb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return GYb=g},{mode:1});var $ef;var Ad=function(){return _.X.apply(this,arguments)||this};
_.A(Ad,_.X);Ad.prototype.computeHasDividerLine=function(g){return g};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ad.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.K("design:type",Boolean)],Ad.prototype,"hasDividerLine",void 0);_.Y([_.fE({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Ad);
_.T(Ad,"ytd-metadata-row-renderer",function(){if($ef!==void 0)return $ef;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return $ef=g},{mode:1});var RZt;var wJx=function(){return _.X.apply(this,arguments)||this};
_.A(wJx,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],wJx.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wJx.prototype,"data",void 0);_.Y([_.fE({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],wJx);
_.T(wJx,"ytd-metadata-with-image-row-renderer",function(){if(RZt!==void 0)return RZt;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return RZt=g},{mode:1});var csC;var Z2=function(){var g=_.X.apply(this,arguments)||this;g.rounded=!0;g.fixie=!1;g.fullWidth=!1;return g};
_.A(Z2,_.X);_.P=Z2.prototype;_.P.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onDataChanged=function(){var g=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(u){g.onEndpointLinkKeyPress(u)}))};
_.P.onEndpointLinkKeyPress=function(g){g.target===this.endpointLink&&g.keyCode===13&&_.hJ(this.hostElement,"click")};
_.P.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var g;if((g=this.data)==null?0:g.endpoint)_.xJ(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.P.onYtNavigate=function(g){this.endpointHref||(g.stopPropagation(),g.preventDefault())};
_.P.onInformationButtonContainerClick=function(g){g.target.id!=="information-button-container"&&(g.stopPropagation(),g.preventDefault())};
_.P.computeStyle=function(g){return g};
_.P.computeIsThumbnailStyle=function(g){return g==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.P.computeThumbnailWidth=function(g){switch(g){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}};
_.P.computeThumbnailObjectFit=function(g){switch(g){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.z3.Object.defineProperties(Z2.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Z2.prototype.onYtNavigate=Z2.prototype.onYtNavigate;Z2.prototype.onClick=Z2.prototype.onClick;Z2.prototype.onDataChanged=Z2.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Z2.prototype,"componentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],Z2.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],Z2.prototype,"componentStyle",void 0);_.Y([_.a({computed:"computeIsThumbnailStyle(data.style)"}),_.K("design:type",Boolean)],Z2.prototype,"isThumbnailStyle",void 0);_.Y([_.a({computed:"computeThumbnailObjectFit(data.style)"}),_.K("design:type",String)],Z2.prototype,"thumbnailObjectFit",void 0);
_.Y([_.a({computed:"computeThumbnailWidth(data.style)"}),_.K("design:type",Number)],Z2.prototype,"thumbnailWidth",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Z2.prototype,"rounded",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Z2.prototype,"fixie",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Z2.prototype,"fullWidth",void 0);_.Y([_.oE("#endpoint-link"),_.K("design:type",HTMLAnchorElement)],Z2.prototype,"endpointLink",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Z2.prototype,"onDataChanged",null);_.Y([_.C("data.endpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],Z2.prototype,"endpointHref",null);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Z2.prototype,"onClick",null);
_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Z2.prototype,"onYtNavigate",null);_.Y([_.fE({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Z2);
_.T(Z2,"ytd-rich-metadata-renderer",function(){if(csC!==void 0)return csC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return csC=g},{mode:2});var HQZ;var l4=function(){var g=_.X.apply(this,arguments)||this;g.fixie=!1;g.fullWidth=!1;return g};
_.A(l4,_.X);l4.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
l4.prototype.computeHasDividerLine=function(g){return g};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],l4.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.K("design:type",Boolean)],l4.prototype,"hasDividerLine",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],l4.prototype,"fixie",void 0);_.Y([_.a(),_.K("design:type",Object)],l4.prototype,"fullWidth",void 0);
_.Y([_.fE({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],l4);
_.T(l4,"ytd-rich-metadata-row-renderer",function(){if(HQZ!==void 0)return HQZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return HQZ=g},{mode:1});var Ie=function(){var g=_.X.apply(this,arguments)||this;g.engagementPanelContent=!1;g.fixie=!1;g.fullWidth=!1;return g};
_.A(Ie,_.X);
Ie.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"}}}};
Ie.prototype.computeCollapsibleItems=function(g,u,q){return g===void 0||u===void 0||q===void 0||q?[]:g.slice(u)};
Ie.prototype.computeAlwaysShownItems=function(g,u){return g&&g.length?g.slice(0,u):[]};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ie.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],Ie.prototype,"collapsed",void 0);
_.Y([_.a({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.K("design:type",Array)],Ie.prototype,"alwaysShownItems",void 0);_.Y([_.a({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.K("design:type",Array)],Ie.prototype,"collapsibleItems",void 0);_.Y([_.a(),_.K("design:type",Object)],Ie.prototype,"engagementPanelContent",void 0);_.Y([_.a(),_.K("design:type",Object)],Ie.prototype,"fixie",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ie.prototype,"fullWidth",void 0);_.Y([_.fE({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Ie);
_.T(Ie,"ytd-metadata-row-container-renderer",function(){if(eZ9!==void 0)return eZ9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return eZ9=g},{mode:1});var Asf;var i4=function(){return _.X.apply(this,arguments)||this};
_.A(i4,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],i4.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],i4.prototype,"data",void 0);_.Y([_.fE({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],i4);
_.T(i4,"ytd-error-corrections-section-item-renderer",function(){if(Asf!==void 0)return Asf;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Asf=g},{mode:1});var ZQ9;var Cu=function(){return _.X.apply(this,arguments)||this};
_.A(Cu,_.X);Cu.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Cu.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Cu.prototype,"data",void 0);_.Y([_.fE({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Cu);
_.T(Cu,"ytd-error-corrections-section-renderer",function(){if(ZQ9!==void 0)return ZQ9;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ZQ9=g},{mode:1});var llC;var b4=function(){return _.X.apply(this,arguments)||this};
_.A(b4,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],b4.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],b4.prototype,"data",void 0);_.Y([_.fE({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],b4);
_.T(b4,"ytd-topic-link-renderer",function(){if(llC!==void 0)return llC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return llC=g},{mode:1});var Ilp;var d3=function(){var g=_.X.apply(this,arguments)||this;g.modernLockupV2=_.w("modernize_structured_description_playlist_lockups_v2");return g};
_.A(d3,_.X);d3.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],d3.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],d3.prototype,"modernLockupV2",void 0);_.Y([_.fE({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],d3);
_.T(d3,"ytd-video-description-course-section-renderer",function(){if(Ilp!==void 0)return Ilp;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Ilp=g},{mode:1});var iQL;var FQ=function(){return _.X.apply(this,arguments)||this};
_.A(FQ,_.X);FQ.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],FQ.prototype,"data",void 0);_.Y([_.fE({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],FQ);
_.T(FQ,"ytd-video-description-files-section-renderer",function(){if(iQL!==void 0)return iQL;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return iQL=g},{mode:1});var Crh;var mh=function(){return _.X.apply(this,arguments)||this};
_.A(mh,_.X);mh.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],mh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],mh.prototype,"data",void 0);_.Y([_.fE({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],mh);
_.T(mh,"ytd-video-description-gaming-section-renderer",function(){if(Crh!==void 0)return Crh;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Crh=g},{mode:1});var bQE;var ae=function(){var g=_.X.apply(this,arguments)||this;g.isExpanded=!1;return g};
_.A(ae,_.X);ae.prototype.computeHasDefaultMetadataEndpoint=function(g){var u;g=g==null?void 0:(u=g.defaultMetadata)==null?void 0:u.runs;return!(!g||g.length!==1||!g[0].navigationEndpoint)};
ae.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.z3.Object.defineProperties(ae.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ae.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ae.prototype,"isExpanded",void 0);_.Y([_.a({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ae.prototype,"hasDefaultMetadataEndpoint",void 0);
_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ae.prototype,"isExpandable",null);_.Y([_.C("data","isExpandable","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ae.prototype,"showExpandedMetadata",null);_.Y([_.fE({is:"ytd-info-row-renderer",disableElementRegistration:!0})],ae);
_.T(ae,"ytd-info-row-renderer",function(){if(bQE!==void 0)return bQE;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return bQE=g},{mode:1});var dex;var Vm=function(){var g=_.X.apply(this,arguments)||this;g.currentIndex=0;g.supportComponentResize=!0;g.JSC$20476_lastScrollContainerWidth=NaN;return g};
_.A(Vm,_.X);_.P=Vm.prototype;
_.P.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"}}}};
_.P.getItemsPath=function(){return"videoLockups"};
_.P.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.P.onIronResize=function(){this.updateVideoLockupStyles()};
_.P.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.P.updateVideoLockupStyles=function(){var g;this.JSC$20476_scrollContainer!==void 0&&(g=this.videoLockups)!=null&&g.length&&(g=this.JSC$20476_scrollContainer.clientWidth,g!==this.JSC$20476_lastScrollContainerWidth&&(this.JSC$20476_lastScrollContainerWidth=g,_.x_(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(g*.8,415)+"px"}),_.hJ(this.hostElement,"iron-resize")))};
_.z3.Object.defineProperties(Vm.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var g=[],u;if((u=this.data)==null||!u.carouselLockups)return g;u=_.N(this.data.carouselLockups);for(var q=u.next();!q.done;q=u.next()){q=q.value;var Q=void 0;((Q=_.c(q,W0b))==null?0:Q.videoLockup)&&g.push(_.c(q,W0b).videoLockup)}return g}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.videoLockups)==null||!g.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var g=[],u;if((u=this.data)==null||!u.carouselLockups)return g;var q;return(q=_.c(this.data.carouselLockups[this.scrollCount],W0b))==null?void 0:q.infoRows}}});
Vm.prototype.dataChanged=Vm.prototype.dataChanged;Vm.prototype.onIronResize=Vm.prototype.onIronResize;Vm.prototype.hiddenChanged=Vm.prototype.hiddenChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Vm.prototype,"componentBehavior",void 0);_.Y([_.I(_.VR.YtdHorizontalListBehavior),_.K("design:type",Object)],Vm.prototype,"ytdHorizontalListBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Vm.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Vm.prototype,"inlineStructuredDescription",void 0);_.Y([_.a({value:2}),_.K("design:type",Number)],Vm.prototype,"initialCount",void 0);_.Y([_.a(),_.K("design:type",Object)],Vm.prototype,"currentIndex",void 0);
_.Y([_.a(),_.K("design:type",Number)],Vm.prototype,"scrollCount",void 0);_.Y([_.a(),_.K("design:type",Object)],Vm.prototype,"supportComponentResize",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Vm.prototype,"contentHidden",void 0);_.Y([_.oE("#scroll-container"),_.K("design:type",HTMLDivElement)],Vm.prototype,"JSC$20476_scrollContainer",void 0);
_.Y([_.k_("contentHidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vm.prototype,"hiddenChanged",null);_.Y([_.C("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],Vm.prototype,"videoLockups",null);_.Y([_.C("videoLockups"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vm.prototype,"hasVideoLockups",null);
_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vm.prototype,"onIronResize",null);_.Y([_.C("data","scrollCount"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vm.prototype,"infoRows",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vm.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Vm);
_.T(Vm,"ytd-video-description-music-section-renderer",function(){if(dex!==void 0)return dex;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return dex=g},{mode:2});var F1Z;var XQ=function(){return _.X.apply(this,arguments)||this};
_.A(XQ,_.X);XQ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.Y([_.a({}),_.K("design:type",Object)],XQ.prototype,"data",void 0);_.Y([_.fE({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],XQ);
_.T(XQ,"ytd-video-description-transcript-section-renderer",function(){if(F1Z!==void 0)return F1Z;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return F1Z=g},{mode:1});var mef;_.dL(_.r(function(g){var u=_.kq(_.dOq,function(){return g.data().firstProviderLinkStatusEntityKey}),q=_.kq(_.dOq,function(){return g.data().secondProviderLinkStatusEntityKey}),Q=function(){var L,E;
return((L=u())==null?void 0:L.linked)||((E=q())==null?void 0:E.linked)};
return _.p("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.p(_.c2,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return g.data().sectionTitle}}),_.p(_.c2,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return Q()?g.data().connectedMessage:g.data().notConnectedMessage}}),_.p(_.M,{cond:Q,
then:function(){return _.p(_.Up,{data:function(){return g.data().connectedButton}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.p(_.M,{cond:function(){return!Q()},
then:function(){return _.p(_.Up,{data:function(){return g.data().notConnectedButton}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Qh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;return _.p("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.p("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.p(_.c2,{text:function(){return u().sectionTitle}})),_.p("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.p(_.c2,{text:function(){return u().bodyHeader}})),_.p("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.p(_.c2,{text:function(){return u().bodyText}})),_.p(_.M,{cond:function(){return u().attributionText},
then:function(){return _.p("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.p(_.c2,{text:function(){return u().attributionText}}))}}))},"Rh"),"how-this-was-made-section-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){return _.p("yt-video-description-youchat-section-view-model",{class:_.Ty("ytVideoDescriptionYouchatSectionViewModelHost")},_.p("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.p(_.c2,{text:function(){return g.data().sectionTitle}})),_.p("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.p(_.c2,{text:function(){return g.data().subHeaderText}})),_.p("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.p(_.TT,{data:function(){return _.c(g.data().primaryButton,
_.Rn)}})))},"Sh"),"yt-video-description-youchat-section-view-model",{props:{data:_.H2}});var r3=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return g};
_.A(r3,_.X);_.P=r3.prototype;
_.P.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}}}}}};
_.P.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.P.dataChanged=function(){var g,u;this.hasDescriptionOnly=!(((g=this.data)==null?void 0:(u=g.items)==null?void 0:u.length)!==1||!_.c(this.data.items[0],p4))};
_.P.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.P.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.P.autoFocusDescription=function(){var g;((g=_.Bk().resolve(_.xv(_.m5)))==null?0:g.isKeyBoardInUse())&&this.description&&_.YO(this.description)};
_.P.resize=function(){if(_.w("kevlar_disable_sd_resize"))this.JSC$20483_cardList&&_.hJ(this.JSC$20483_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.hJ(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.hJ(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.P.scrollToSection=function(g){if(g=this.getSectionElement(g))_.YJ(this.hostElement,"yt-scroll-to-watch-element",[g]),g.focus()};
_.P.getSectionElement=function(g){switch(g){case "infocards-item-section":var u;return(u=this.infocardsSection)!=null?u:null;case "transcript-item-section":var q;return(q=this.transcriptSection)!=null?q:null;case "how-this-was-made-section-item-section":var Q;return(Q=this.howThisWasMadeSection)!=null?Q:null;case "files-item-section":var L;return(L=this.filesSection)!=null?L:null;default:return null}};
_.P.handleSetActiveItemAction=function(g){var u=_.c(g,JVZ),q=u&&(u==null?void 0:u.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20483_cardList;if(u&&q){g=this.currentActiveChapter;var Q=this.currentActiveProblem;u=q==null?void 0:q.getItemByIndex(u.itemIndex);var L=q=!0;u&&(u.active=!0,u.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(q=g!==u,L=!1,this.currentActiveChapter=u):(u==null?void 0:u.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(q=!1,L=Q!==u,this.currentActiveProblem=u));g&&q&&(g.active=!1);Q&&L&&(Q.active=!1)}};
_.z3.Object.defineProperties(r3.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Of("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
r3.prototype.onYtExpanderMoreTapped=r3.prototype.onYtExpanderMoreTapped;r3.prototype.onHiddenChanged=r3.prototype.onHiddenChanged;r3.prototype.dataChanged=r3.prototype.dataChanged;r3.prototype.panelContentVisibleChanged=r3.prototype.panelContentVisibleChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],r3.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.LJ),_.K("design:type",Object)],r3.prototype,"ironResizableBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],r3.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],r3.prototype,"panelContentVisible",void 0);_.Y([_.a(),_.K("design:type",Boolean)],r3.prototype,"hasDescriptionOnly",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],r3.prototype,"inlineStructuredDescription",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],r3.prototype,"hidden",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],r3.prototype,"shortsPanel",void 0);_.Y([_.a(),_.K("design:type",Object)],r3.prototype,"videoSummary",void 0);_.Y([_.a(),_.K("design:type",Object)],r3.prototype,"merchShelf",void 0);
_.Y([_.C("videoSummary"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],r3.prototype,"showVideoSummary",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],r3.prototype,"engagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],r3.prototype,"watchWhileSdp",void 0);_.Y([_.oE("ytd-expandable-video-description-body-renderer"),_.K("design:type",Object)],r3.prototype,"description",void 0);
_.Y([_.oE("ytd-horizontal-card-list-renderer"),_.K("design:type",Object)],r3.prototype,"JSC$20483_cardList",void 0);_.Y([_.oE("ytd-horizontal-card-list-renderer[center-items]"),_.K("design:type",Object)],r3.prototype,"problemWalkthroughCardList",void 0);_.Y([_.oE("ytd-shelf-renderer"),_.K("design:type",Object)],r3.prototype,"shelfSection",void 0);_.Y([_.oE("ytd-video-description-music-section-renderer"),_.K("design:type",Object)],r3.prototype,"musicMetadataSection",void 0);
_.Y([_.oE("ytd-video-description-infocards-section-renderer"),_.K("design:type",Object)],r3.prototype,"infocardsSection",void 0);_.Y([_.oE("ytd-video-description-transcript-section-renderer"),_.K("design:type",Object)],r3.prototype,"transcriptSection",void 0);_.Y([_.oE("how-this-was-made-section-view-model"),_.K("design:type",Object)],r3.prototype,"howThisWasMadeSection",void 0);_.Y([_.oE("ytd-video-description-files-section-renderer"),_.K("design:type",Object)],r3.prototype,"filesSection",void 0);
_.Y([_.k_("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],r3.prototype,"panelContentVisibleChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],r3.prototype,"dataChanged",null);_.Y([_.k_("hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],r3.prototype,"onHiddenChanged",null);
_.Y([_.n6("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],r3.prototype,"onYtExpanderMoreTapped",null);_.Y([_.fE({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],r3);
_.T(r3,"ytd-structured-description-content-renderer",function(){if(mef!==void 0)return mef;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return mef=g},{mode:2});var WG=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return g};
_.A(WG,_.X);_.P=WG.prototype;_.P.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"}}}};
_.P.dataChanged=function(){var g;this.descriptionToggled=!((g=this.data)==null||!g.defaultExpanded);var u;this.collapsed=this.descriptionAlwaysCollapsed||!((u=this.data)==null?0:u.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Yq(110509);this.showLessClientVe=_.Yq(110510);g=_.j_();u=_.JJ();g&&u&&_.HC(g,u,[this.showMoreClientVe,this.showLessClientVe])};
_.P.onYtExpanderMoreTapped=function(){var g,u=(g=this.data)==null?void 0:g.showMoreCommand;u&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(u);(g=_.j_())&&this.showMoreClientVe&&_.Ip(g,this.showMoreClientVe)};
_.P.onYtExpanderLessTapped=function(){var g=_.j_();g&&this.showLessClientVe&&_.Ip(g,this.showLessClientVe);var u;(g=(u=this.data)==null?void 0:u.showLessCommand)&&this.componentBehavior.resolveCommand(g)};
_.P.handleUpdateDateTextAction=function(g){this.data&&this.data.dateText&&this.set("data.dateText",_.c(g,adb).dateText)};
_.P.handleUpdateDescriptionAction=function(g){if(g=_.c(g,_.Es5))g.isEmpty||!g.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.v1(g.description)):this.set("data.description",g.description)};
_.P.onYtChangeEngagementPanelVisibilityAction=function(g){if(_.w("web_structured_description_show_more")||_.w("web_engagement_panel_open_description")){var u,q=(u=_.c(g,_.u9X))==null?void 0:u.targetId,Q;g=((Q=_.c(g,_.u9X))==null?void 0:Q.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";q==="engagement-panel-structured-description"&&g&&(this.descriptionToggled=!0)}};
_.P.updateCollapsedFromBinding=function(g){this.collapsed=g.detail.value};
_.P.updateDescriptionToggledFromBinding=function(g){this.descriptionToggled=g.detail.value};
_.P.updateCanCollapseFromBinding=function(g){this.canCollapse=g.detail.value};
_.z3.Object.defineProperties(WG.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.data)==null?void 0:(u=g.metadataRowContainer)==null?void 0:u.metadataRowContainerRenderer;return!!q&&!!q.rows&&q.rows.length>q.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.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}}});
WG.prototype.onYtExpanderLessTapped=WG.prototype.onYtExpanderLessTapped;WG.prototype.onYtExpanderMoreTapped=WG.prototype.onYtExpanderMoreTapped;WG.prototype.dataChanged=WG.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],WG.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],WG.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],WG.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],WG.prototype,"collapsed",void 0);_.Y([_.a(),_.K("design:type",Boolean)],WG.prototype,"descriptionToggled",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],WG.prototype,"canCollapse",void 0);_.Y([_.a(),_.K("design:type",Object)],WG.prototype,"subscribeButtonData",void 0);_.Y([_.a(),_.K("design:type",Number)],WG.prototype,"descriptionCollapsedHeight",void 0);_.Y([_.a(),_.K("design:type",Object)],WG.prototype,"structuredDescriptionContentRenderer",void 0);_.Y([_.a({value:function(){return _.w("web_watch_description_always_collapsed")}}),
_.K("design:type",Boolean)],WG.prototype,"descriptionAlwaysCollapsed",void 0);_.Y([_.oE("#description"),_.K("design:type",HTMLDivElement)],WG.prototype,"description",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WG.prototype,"dataChanged",null);_.Y([_.n6("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WG.prototype,"onYtExpanderMoreTapped",null);
_.Y([_.n6("yt-expander-less-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WG.prototype,"onYtExpanderLessTapped",null);_.Y([_.C("data.metadataRowContainer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WG.prototype,"metadataCollapsible",null);_.Y([_.C("data","structuredDescriptionContentRenderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WG.prototype,"hasInlineStructuredDescription",null);
_.Y([_.C("data.attributedDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WG.prototype,"hasAttributedDescription",null);_.Y([_.C("hasInlineStructuredDescription","collapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WG.prototype,"loadStructuredDescription",null);_.Y([_.C("data","structuredDescriptionContentRenderer","collapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WG.prototype,"showInlineStructuredDescription",null);
_.Y([_.C("data","hasInlineStructuredDescription","metadataCollapsible"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WG.prototype,"descriptionAlwaysCollapsible",null);
_.T(WG,"ytd-video-secondary-info-renderer",function(){if(flp===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);flp=g}g=flp;return g},{mode:2});var alx;var Tt=function(){return _.X.apply(this,arguments)||this};
_.A(Tt,_.X);Tt.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Tt.prototype,"rendererBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],Tt.prototype,"dismissibleItemBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Tt.prototype,"rendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Tt.prototype,"data",void 0);_.Y([_.fE({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Tt);
_.T(Tt,"ytd-comment-history-entry-renderer",function(){if(alx!==void 0)return alx;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return alx=g},{mode:1});var VIp;var hd=function(){var g=_.X.apply(this,arguments)||this;g.isCollapsed=!1;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return g};
_.A(hd,_.X);_.P=hd.prototype;_.P.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.onDonateTap=function(){var g=this.get("data.donateButton.buttonRenderer.command");if(g){var u=_.j_(),q=this.get("data.donateButton.buttonRenderer.trackingParams");u&&q&&_.Ip(u,_.Lr(q));this.ytOpenPopupBehavior.openPopup(g)}};
_.P.onShowMore=function(){this.isCollapsed=!1;var g=_.j_(),u=this.get("data.expandButton.buttonRenderer.trackingParams");g&&u&&_.Ip(g,_.Lr(u))};
_.P.onShowLess=function(){this.isCollapsed=!0};
_.P.dataChanged=function(){_.x_(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.P.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.P.handleUpdate=function(g){if(g=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",g))this.set("data.startLabel",g.startLabel),this.set("data.endLabel",g.endLabel),this.set("data.progress",g.progress),this.set("data.amountRaisedLabel",g.amountRaisedLabel),this.dataChanged()};
_.P.handleOpenPopupAction=function(g){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",g)&&_.YJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.P.computeHeaderBackgroundUrl=function(g,u){if(g)return u?g.headerBackgroundDarkUrl:g.headerBackgroundUrl};
_.P.isProgressBarVisible=function(g){return!(!g||g.progress===void 0)};
_.P.headerBackgroundClass=function(){return _.FR("HTML_DIR")==="rtl"?"flip":""};
hd.prototype.dataChanged=hd.prototype.dataChanged;_.Y([_.I(_.Ov.YtOpenPopupBehavior),_.K("design:type",Object)],hd.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],hd.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],hd.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],hd.prototype,"isCollapsed",void 0);_.Y([_.a({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.K("design:type",String)],hd.prototype,"headerBackgroundUrl",void 0);_.Y([_.a(),_.K("design:type",Boolean)],hd.prototype,"isDarkTheme",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hd.prototype,"dataChanged",null);
_.Y([_.fE({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],hd);
_.T(hd,"ytd-donation-shelf-renderer",function(){if(VIp!==void 0)return VIp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return VIp=g},{mode:1});var XJh;var rsZ=function(){return _.X.apply(this,arguments)||this};
_.A(rsZ,_.X);_.Y([_.a(),_.K("design:type",Object)],rsZ.prototype,"data",void 0);_.Y([_.fE({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],rsZ);
_.T(rsZ,"ytd-donation-unavailable-renderer",function(){if(XJh!==void 0)return XJh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return XJh=g},{mode:1});var W1h;var Y5=function(){var g=_.X.apply(this,arguments)||this;g.playerListenerConfig=null;g.actionMap={"yt-show-watch-page-survey":"openSurvey"};return g};
_.A(Y5,_.X);_.P=Y5.prototype;_.P.dataChanged=function(){var g=this,u=_.F0();u&&u.getPlayerPromise().then(function(Q){g.maybeRemovePlayerListeners(Q)});
var q=this.data&&this.data.survey;q&&((q=(q=q.singleOptionSurveyRenderer||q.checkboxSurveyRenderer||q.multiStageSurveyRenderer)&&q.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(u,q):this.openSurvey())};
_.P.triggerWatchPageSurvey=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e;return _.D(function(G){if(G.nextAddress==1)return g?G.yield(g.getPlayerPromise(),2):G.return();q.player=G.yieldResult;if(!q.player)return G.return();Q={};L=_.N(u);for(E=L.next();!E.done;E=L.next())y=E.value,v=_.N(q.createEventListenerPair(y)),J=v.next().value,f=v.next().value,t=J,e=f,t&&e&&(Q[t]=e,q.ytPlayerListenerBehavior.listenToPlayerEvent(q.player,t,e));q.playerListenerConfig=Q;_.Wx(G)})};
_.P.createEventListenerPair=function(g){var u=g.playbackEventTrigger;return u?this.handlePlaybackTrigger(u):(g=g.watchTimeTrigger)?this.handleWatchTimeTrigger(g):[void 0,void 0]};
_.P.handleWatchTimeTrigger=function(g){var u=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var q=g.videoWatchFraction,Q=g.watchTimeSec;return Q&&q?["onVideoProgress",function(){u.player&&u.isWatchTimeConditionMet(u.player,q,Q)&&u.showSurvey()}]:[void 0,
void 0]};
_.P.isWatchTimeConditionMet=function(g,u,q){var Q=g.getProgressState(),L=Q.current-this.lastKnownPlaybackPosition;L<5&&(this.accumulatedMediaTime+=L);this.lastKnownPlaybackPosition=Q.current;Q=Math.round(this.accumulatedMediaTime/Q.duration*1E3)/1E3;return g.getPresentingPlayerType&&g.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>q||Q>u)};
_.P.handlePlaybackTrigger=function(g){var u=this;g=g.playbackEvent;if(g==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var q="onStateChange";var Q=function(L){L===0&&u.showSurvey()}}else g==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(q="onVideoProgress",Q=function(L){u.player&&u.player.getPresentingPlayerType&&u.player.getPresentingPlayerType()===1&&L&&u.showSurvey()}):g==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(q="onAdEnd",Q=this.showSurvey);
return[q,Q]};
_.P.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.P.openSurvey=function(){var g=this,u=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(Tdp(!!u));_.Hv.addJob(function(){g.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:u}})},0,0)};
_.P.maybeRemovePlayerListeners=function(g){if(this.playerListenerConfig){for(var u=_.N(Object.keys(this.playerListenerConfig)),q=u.next();!q.done;q=u.next())q=q.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(g,q,this.playerListenerConfig[q]);this.playerListenerConfig=null}};
Y5.prototype.dataChanged=Y5.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],Y5.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],Y5.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Y5.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],Y5.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Y5.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Y5.prototype,"playerListenerConfig",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],Y5.prototype,"lastKnownPlaybackPosition",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],Y5.prototype,"accumulatedMediaTime",void 0);_.Y([_.a(),_.K("design:type",Object)],Y5.prototype,"player",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Y5.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Y5);
_.T(Y5,"ytd-survey-trigger-renderer",function(){if(W1h!==void 0)return W1h;var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return W1h=g},{mode:1});var TPf;_.Ny("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var OK=function(){var g=_.X.apply(this,arguments)||this;g.role="link";g.tabindex="0";g.actionMap=_.w("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 g};
_.A(OK,_.X);_.P=OK.prototype;_.P.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.RE()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.P.getCurrentTheme=function(){return _.w$()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.RE()};
_.P.onThemeSelected=function(g,u){var q=g||u?g:_.$_(),Q=(q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.x7Z(_.YB(window.location.href));_.QX(0,165,g);_.QX(0,174,u);this.prefs.save();Q&&_.YJ(this.hostElement,"yt-dark-mode-toggled-action",[q]);_.YJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.onTap=function(){this.data.serviceEndpoint&&_.KV(this.hostElement,[this.data.serviceEndpoint])};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
OK.prototype.onTap=OK.prototype.onTap;OK.prototype.dataChanged=OK.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],OK.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.HI),_.K("design:type",Object)],OK.prototype,"paperItemBehaviors",void 0);_.Y([_.a(),_.K("design:type",Object)],OK.prototype,"data",void 0);_.Y([_.a({value:function(){return _.qf()}}),
_.K("design:type",_.aQ)],OK.prototype,"prefs",void 0);_.Y([_.a(),_.K("design:type",Object)],OK.prototype,"label",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],OK.prototype,"role",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],OK.prototype,"tabindex",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],OK.prototype,"dataChanged",null);
_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],OK.prototype,"onTap",null);_.Y([_.fE({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],OK);
_.Te()(OK,"ytd-toggle-theme-compact-link-renderer",function(){if(TPf===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);TPf=g}g=TPf;return g},{allowedProps:["data"],
mode:1});var hZC;_.Ny("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Ny("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Ku=function(){return _.X.apply(this,arguments)||this};
_.A(Ku,_.X);_.P=Ku.prototype;_.P.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onKeyUp=function(g){if(g.keyCode===13)this.onTap()};
_.P.onTap=function(){this.data.recordClickEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var g=this.data.navigationEndpoint;g&&_.c(g,_.jW)&&_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}})};
_.P.readChanged=function(){var g;_.Y_(this.hostElement,"unread",!((g=this.data)==null?0:g.read))};
_.P.dataChanged=function(){this.data&&_.Y_(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.P.computeThumbnailSize=function(){var g;return((g=this.data)==null?0:g.highPriorityNotification)?32:48};
_.P.getEndpointURL=function(g){return g&&!_.c(g,_.jW)?this.componentBehavior.computeHref_(g):null};
_.P.getEndpointData=function(g){return g&&!_.c(g,_.jW)?g:null};
Ku.prototype.computeThumbnailSize=Ku.prototype.computeThumbnailSize;Ku.prototype.dataChanged=Ku.prototype.dataChanged;Ku.prototype.readChanged=Ku.prototype.readChanged;Ku.prototype.onKeyUp=Ku.prototype.onKeyUp;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Ku.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ku.prototype,"data",void 0);_.Y([_.a({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.K("design:type",Number)],Ku.prototype,"thumbnailSize",void 0);_.Y([_.n6("keyup"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],Ku.prototype,"onKeyUp",null);
_.Y([_.k_("data.read"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ku.prototype,"readChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ku.prototype,"dataChanged",null);_.Y([_.k_("data.highPriorityNotification"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ku.prototype,"computeThumbnailSize",null);
_.Y([_.fE({is:"ytd-notification-renderer",disableElementRegistration:!0})],Ku);
_.T(Ku,"ytd-notification-renderer",function(){if(hZC!==void 0)return hZC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return hZC=g},{mode:1});var Y5n;var x5=function(){return _.X.apply(this,arguments)||this};
_.A(x5,_.X);x5.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"}}}};
x5.prototype.computeActionButtonClass=function(g){return!g.actionButtons||g.actionButtons.length<=1?"single-button":g.description?"vertical-buttons":"horizontal-buttons"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],x5.prototype,"data",void 0);_.Y([_.fE({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],x5);
_.T(x5,"ytd-playlist-show-metadata-renderer",function(){if(Y5n!==void 0)return Y5n;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Y5n=g},{mode:1});var OQH;_.Ny("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var BG=function(){return _.X.apply(this,arguments)||this};
_.A(BG,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BG.prototype,"data",void 0);_.Y([_.fE({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],BG);
_.T(BG,"ytd-purchase-item-renderer",function(){if(OQH!==void 0)return OQH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return OQH=g},{mode:1});var K1f;var xeC={};xeC.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(g){if(g)return g.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(g){if(g==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Ny("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var zt=function(){return _.X.apply(this,arguments)||this};
_.A(zt,_.X);zt.prototype.onYtNavigate=function(g){var u=this.openPopupBehavior.getNavigationEndpointPopupAction(g.detail.endpoint);u&&(g.stopPropagation(),this.openPopupBehavior.openPopup(u))};
zt.prototype.onYtNavigate=zt.prototype.onYtNavigate;_.Y([_.I(xeC.YtSimpleTextSectionBehavior),_.K("design:type",Object)],zt.prototype,"ytSimpleTextSectionBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],zt.prototype,"openPopupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zt.prototype,"data",void 0);
_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],zt.prototype,"onYtNavigate",null);_.Y([_.fE({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],zt);
_.T(zt,"ytd-simple-text-section-renderer",function(){if(K1f!==void 0)return K1f;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return K1f=g},{mode:1});var BPz;_.Ny("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var zZp=function(){return _.X.apply(this,arguments)||this};
_.A(zZp,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],zZp.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zZp.prototype,"data",void 0);_.Y([_.fE({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],zZp);
_.T(zZp,"ytd-unlimited-page-feature-info-renderer",function(){if(BPz!==void 0)return BPz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return BPz=g},{mode:1});var nwC;var kYp;var nu=function(){return _.X.apply(this,arguments)||this};
_.A(nu,_.X);nu.prototype.dataChanged=function(){if(this.data){var g=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);g&&(g=_.Fh(g,screen.width),this.hostElement.style.backgroundImage="url("+g+")")}};
nu.prototype.dataChanged=nu.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],nu.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nu.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],nu);
_.T(nu,"ytd-post-redemption-section-renderer",function(){if(kYp!==void 0)return kYp;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return kYp=g},{mode:1});var S5L;var k5=function(){return _.X.apply(this,arguments)||this};
_.A(k5,_.X);k5.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],k5.prototype,"data",void 0);_.Y([_.fE({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],k5);
_.T(k5,"ytd-ypc-post-redemption-renderer",function(){if(S5L!==void 0)return S5L;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return S5L=g},{mode:1});_.Ny("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Sl=function(){var g=_.X.apply(this,arguments)||this;g.MIN_CODE_LENGTH=12;g.MAX_CODE_LENGTH=24;return g};
_.A(Sl,_.X);_.P=Sl.prototype;_.P.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.P.created=function(){this.riskService=new _.SjK;this.loadPaymentThenable=_.ULu(_.FR("YPC_MB_URL"))};
_.P.ready=function(){var g=this;this.code.addEventListener("keypress",function(u){g.onCodeInputKeypress(u)})};
_.P.dataChanged=function(){var g=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(u){u=_.N(u);for(var q=u.next();!q.done;q=u.next())q=q.value,q.type==="attributes"&&q.attributeName==="dark"&&g.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.P.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var g=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+g+")")}};
_.P.computeRedeemButton=function(g){(g=this.get("redeemButton.buttonRenderer",g))&&(g=Object.assign({},g,{serviceEndpoint:void 0}));return g};
_.P.onRedeemButtonTap=function(g){g.stopPropagation();YRZ();this.redeemCode()};
_.P.redeemCode=function(){var g=this;this.isLoading=!0;var u=this.riskService.init();_.jk([u,this.loadPaymentThenable]).then(function(){var q=g.data.redeemButton.buttonRenderer.serviceEndpoint,Q=_.oPq(),L=_.Xa.payments.business.integration.ClientTokenFactory.createClientToken(_.c(q,_.Kw0).countryCode,Q);Q={c:g.code.value.trim(),rd:window.btoa(Q),ctk:L};q&&_.Bk().resolve(_.Gy).resolveCommand(q,{form:Object.assign({},Q,{element:g.hostElement})})},function(){g.showGenericError();
OW9("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.a4(Error("Bl"))})};
_.P.onYtServiceRequestCompleted=function(g){g.stopPropagation();this.isLoading=!1;var u,q;this.errorMessage=(u=g.detail)==null?void 0:(q=u.data)==null?void 0:q.errorMessage;var Q,L;this.postRedemptionRenderer=(Q=g.detail)==null?void 0:(L=Q.data)==null?void 0:L.renderer;var E,y;if(g=(E=g.detail)==null?void 0:(y=E.data)==null?void 0:y.redirectEndpoint)this.isLoading=!0,_.hJ(this.hostElement,"yt-navigate",{endpoint:g});this.errorMessage?OW9("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
g)&&Kg("ypcRedeemFlowSucceeded")};
_.P.onYtServiceRequestError=function(g){g.stopPropagation();this.isLoading=!1;if(g=this.get("detail.error.message",g))this.errorMessage=_.I7(g);OW9("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.P.onInvokeInstrumentManagerActionCompleted=function(g){g.stopPropagation();this.redeemCode()};
_.P.onInvokeInstrumentManagerActionError=function(g){g.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",g)){case "instrumentManagerLoadError":this.showGenericError();OW9("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();OW9("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":Kg("ypcRedeemFlowCancelled")}};
_.P.onInput=function(){var g=this;_.c$(this,"onInput",function(){var u=g.code.value.trim();g.redeemButtonDisabled=u.length<g.MIN_CODE_LENGTH||u.length>g.MAX_CODE_LENGTH},200)};
_.P.onCodeInputKeypress=function(g){g.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(YRZ(),this.redeemCode())};
_.P.computeImageUrl=function(g){return g?_.Fh(g.thumbnails,600):null};
_.P.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Sl.prototype.onInvokeInstrumentManagerActionError=Sl.prototype.onInvokeInstrumentManagerActionError;Sl.prototype.onInvokeInstrumentManagerActionCompleted=Sl.prototype.onInvokeInstrumentManagerActionCompleted;Sl.prototype.onYtServiceRequestError=Sl.prototype.onYtServiceRequestError;Sl.prototype.onYtServiceRequestCompleted=Sl.prototype.onYtServiceRequestCompleted;Sl.prototype.dataChanged=Sl.prototype.dataChanged;
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Sl.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Sl.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Sl.prototype,"redeemButtonDisabled",void 0);
_.Y([_.a(),_.K("design:type",Object)],Sl.prototype,"errorMessage",void 0);_.Y([_.a(),_.K("design:type",Object)],Sl.prototype,"postRedemptionRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],Sl.prototype,"observer",void 0);_.Y([_.oE("#code"),_.K("design:type",HTMLInputElement)],Sl.prototype,"code",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sl.prototype,"dataChanged",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Sl.prototype,"onYtServiceRequestCompleted",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Sl.prototype,"onYtServiceRequestError",null);
_.Y([_.n6("yt-invoke-instrument-manager-action-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Sl.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.Y([_.n6("yt-invoke-instrument-manager-action-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Sl.prototype,"onInvokeInstrumentManagerActionError",null);_.Y([_.fE({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Sl);
_.T(Sl,"ytd-redeem-code-renderer",function(){if(nwC!==void 0)return nwC;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return nwC=g},{mode:1});var owp;_.Ny("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var oe=function(){var g=_.X.apply(this,arguments)||this;g.businessEmailDisplayState="HIDE_SECTION";return g};
_.A(oe,_.X);_.P=oe.prototype;_.P.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}}}}}};
_.P.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"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Rr(_.YoR),this.businessEmailDisplayState="CAPTCHA"))};
_.P.onYtServiceRequestCompleted=function(g){var u;if((u=g.detail.data)==null?0:u.businessEmail)this.businessEmail=g.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var q;if((q=g.detail.data)==null?0:q.errorMessage)this.businessEmailErrorMessage=g.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.computeEmailHref=function(g){return"mailto:"+g};
_.P.computeSafeUrl=function(g){if(g)return _.SO(g)};
_.P.onBusinessEmailCaptchaSubmit=function(){var g;(g=this.data)!=null&&g.onBusinessEmailRevealClickCommand&&(g=this.JSC$20543_captchaTextarea.value)&&(g={recaptcha_response_token:g,channel_id:this.data.channelId},_.Bk().resolve(_.Gy).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},g,{element:this.hostElement})}))};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.z3.Object.defineProperties(oe.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 g,u;return!((g=this.data)==null||!g.primaryLinks)&&!((u=this.data)==null?0:u.links)&&this.data.primaryLinks.every(function(q){return q.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var g,u;return!((g=this.data)==null||!g.primaryLinks)&&!((u=this.data)==null?0:u.links)&&!this.shouldShowNewLinks}}});
oe.prototype.onYtServiceRequestCompleted=oe.prototype.onYtServiceRequestCompleted;oe.prototype.dataChanged=oe.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],oe.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],oe.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.oE("#g-recaptcha-response"),_.K("design:type",HTMLTextAreaElement)],oe.prototype,"JSC$20543_captchaTextarea",void 0);_.Y([_.a(),_.K("design:type",Object)],oe.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],oe.prototype,"businessEmailDisplayState",void 0);_.Y([_.a(),_.K("design:type",String)],oe.prototype,"businessEmail",void 0);_.Y([_.a(),_.K("design:type",String)],oe.prototype,"businessEmailErrorMessage",void 0);
_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oe.prototype,"hideDetailsSection",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oe.prototype,"dataChanged",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oe.prototype,"shouldShowNewLinks",null);_.Y([_.C("data","shouldShowLinks"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oe.prototype,"shouldShowLegacyLinks",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],oe.prototype,"onYtServiceRequestCompleted",null);_.Y([_.fE({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],oe);
_.T(oe,"ytd-channel-about-metadata-renderer",function(){if(owp!==void 0)return owp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return owp=g},{mode:1});var Uep;_.Ny("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var UK=function(){return _.X.apply(this,arguments)||this};
_.A(UK,_.X);UK.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]]"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],UK.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],UK.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],UK.prototype,"lockupContainerType",void 0);_.Y([_.a(),_.K("design:type",String)],UK.prototype,"thumbnailFixedWidth",void 0);
_.Y([_.fE({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],UK);
_.T(UK,"ytd-channel-featured-content-renderer",function(){if(Uep!==void 0)return Uep;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Uep=g},{mode:1});var gMx;_.Ny("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var ge=function(){var g=_.X.apply(this,arguments)||this;g.roundContainer=!0;g.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return g};
_.A(ge,_.X);_.P=ge.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.dataChanged=function(){this.imageWidth=this.imageHeight=24;var g=this.data;g.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!g.style&&g.image&&g.image.thumbnails.length&&(g=g.image.thumbnails[0],this.imageWidth=g.width||0,this.imageHeight=g.height||0)};
_.P.computeSource=function(g){return g.secondarySource?_.iR(g.secondarySource):_.iR(g.source)};
_.P.computeClarifyStyle=function(g){return g?g.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.P.isLargeStyle=function(g){return g==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.P.computeBackgroundStyle=function(g){return g?g.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.P.computeHasActionButton=function(g){return!!g.actionButton};
_.P.computeHasBottomSection=function(g){return!!g.ctaHasBottomSection};
_.P.computeIsSourceMissing=function(g){return g.ctaHasBottomSection===!1?!0:g&&this.computeSource(g)?!1:!0};
_.P.computeSecondaryEndpoint=function(g){return g.secondaryEndpoint||g.endpoint};
ge.prototype.dataChanged=ge.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ge.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],ge.prototype,"imageWidth",void 0);_.Y([_.a(),_.K("design:type",Number)],ge.prototype,"imageHeight",void 0);
_.Y([_.a({computed:"computeSecondaryEndpoint(data)"}),_.K("design:type",Object)],ge.prototype,"secondaryEndpoint",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.K("design:type",Boolean)],ge.prototype,"hasActionButton",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.K("design:type",Boolean)],ge.prototype,"hasBottomSection",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.K("design:type",Boolean)],ge.prototype,"missingSource",void 0);_.Y([_.a({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],ge.prototype,"icon",void 0);_.Y([_.a({computed:"computeIcon_(data.secondaryIcon)"}),_.K("design:type",String)],ge.prototype,"secondaryIcon",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.K("design:type",String)],ge.prototype,"clarifyStyle",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.K("design:type",String)],ge.prototype,"backgroundStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ge.prototype,"roundContainer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ge.prototype,"amsterdamEnabled",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ge.prototype,"dataChanged",null);
_.Y([_.fE({is:"ytd-clarification-renderer",disableElementRegistration:!0})],ge);
_.T(ge,"ytd-clarification-renderer",function(){if(gMx!==void 0)return gMx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return gMx=g},{mode:1});var uXh;_.Ny("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var un=function(){return _.X.apply(this,arguments)||this};
_.A(un,_.X);_.P=un.prototype;_.P.computeHasPrimaryIcon=function(g){return!(!g.icon&&!g.thumbnail)};
_.P.computeHasSecondary=function(g){return!(!g.secondaryIcon&&!g.secondaryNotificationText)};
_.P.computeHideSecondaryString=function(g){return!_.w("disable_hide_empty_secondary_string")&&!g.secondaryNotificationText};
_.P.computeCompactLinkStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.P.computeHasFitHeight=function(g){return g==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.P.isActiveEndpoint=function(g){return(g=this.get("commandMetadata.webCommandMetadata.url",g))?_.YB(window.location.href)!=="/account_transfer_channel"&&_.YB(window.location.href)!=="/gaia_link"&&_.YB(window.location.href)!=="/channel_switcher"||g!=="/account"?_.YB(window.location.href)===g:!0:!1};
_.P.onTap=function(){var g;((g=this.data)==null?0:g.serviceEndpoint)&&_.KV(this.hostElement,[this.data.serviceEndpoint])};
un.prototype.onTap=un.prototype.onTap;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],un.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.K("design:type",Boolean)],un.prototype,"active",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.K("design:type",String)],un.prototype,"compactLinkStyle",void 0);
_.Y([_.a({computed:"computeIcon_(data.icon)"}),_.K("design:type",Object)],un.prototype,"icon",void 0);_.Y([_.a({computed:"computeIcon_(data.secondaryIcon)"}),_.K("design:type",Object)],un.prototype,"secondaryIcon",void 0);_.Y([_.a({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],un.prototype,"hasSecondary",void 0);_.Y([_.a({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],un.prototype,"hideSecondaryString",void 0);
_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],un.prototype,"onTap",null);_.Y([_.fE({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],un);
_.T(un,"ytd-compact-link-renderer",function(){if(uXh!==void 0)return uXh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return uXh=g},{mode:1});var q8H;var QqK;var qv=function(){var g=_.X.apply(this,arguments)||this;g.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return g};
_.A(qv,_.X);_.P=qv.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.P.computeIcon=function(g){return g?"yt-icons:"+g.toLowerCase():null};
_.P.computeUseContacts=function(g){return!!g.contacts&&g.contacts.length>0};
_.P.computePhoneContact=function(g){var u,q;return(u=g.contacts)==null?void 0:(q=u.find(function(Q){var L;return(Q==null?void 0:(L=Q.icon)==null?void 0:L.iconType)==="PHONE"}))==null?void 0:q.actionText};
_.P.computeSmsContact=function(g){var u,q;return(u=g.contacts)==null?void 0:(q=u.find(function(Q){var L;return(Q==null?void 0:(L=Q.icon)==null?void 0:L.iconType)==="SMS"}))==null?void 0:q.actionText};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qv.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],qv.prototype,"amsterdamEnabled",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.K("design:type",Boolean)],qv.prototype,"useContacts",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.K("design:type",String)],qv.prototype,"phoneContact",void 0);_.Y([_.fE({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],qv);
_.T(qv,"ytd-single-action-emergency-support-renderer",function(){if(QqK!==void 0)return QqK;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return QqK=g},{mode:1});_.Ny("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Q2=function(){var g=_.X.apply(this,arguments)||this;g.roundedContainer=!0;g.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return g};
_.A(Q2,_.X);Q2.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"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Q2.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Q2.prototype,"roundedContainer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Q2.prototype,"amsterdamEnabled",void 0);
_.Y([_.fE({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Q2);
_.T(Q2,"ytd-emergency-onebox-renderer",function(){if(q8H!==void 0)return q8H;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return q8H=g},{mode:1});var Lub;_.Ny("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var L7=function(){return _.X.apply(this,arguments)||this};
_.A(L7,_.X);L7.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],L7.prototype,"data",void 0);_.Y([_.fE({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],L7);
_.T(L7,"ytd-exploratory-results-renderer",function(){if(Lub!==void 0)return Lub;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Lub=g},{mode:1});var EMK;_.Ny("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var EX=function(){var g=_.X.apply(this,arguments)||this;g.messageData=null;return g};
_.A(EX,_.X);_.P=EX.prototype;_.P.onServiceRequestCompleted=function(g,u){g=u.actions||[];u=0;for(var q=g.length;u<q;u++){var Q=g[u],L=void 0,E=void 0;if((L=_.c(Q,_.oB))==null?0:(E=L.item)==null?0:E.messageRenderer)this.messageData=_.c(Q,_.oB).item.messageRenderer}};
_.P.dataChanged=function(){var g=this.data;this.hostElement.hidden=!1;_.Y_(this.hostElement,"is-channel",g&&!g.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.P.computeThumbnailWidth=function(g){return g?126:56};
_.P.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.P.onSubmitTap=function(){var g=this.data,u=this.selectedResponseIndex;g!==void 0&&u!==void 0&&(g=g.responses[u],g.responseData&&_.Bk().resolve(_.Gy).resolveCommand(g.responseData,{form:{element:this.hostElement}}))};
_.P.onDismissTap=function(){this.hostElement.hidden=!0;var g=this.data;g!==void 0&&g.dismissalEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(g.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.updateSelectedResponseIndexFromBinding=function(g){this.selectedResponseIndex=g.detail.value};
EX.prototype.onSelectedResponseIndexChange=EX.prototype.onSelectedResponseIndexChange;EX.prototype.dataChanged=EX.prototype.dataChanged;EX.prototype.onServiceRequestCompleted=EX.prototype.onServiceRequestCompleted;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],EX.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],EX.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],EX.prototype,"messageData",void 0);
_.Y([_.a(),_.K("design:type",Number)],EX.prototype,"selectedResponseIndex",void 0);_.Y([_.oE("#submit-button"),_.K("design:type",HTMLButtonElement)],EX.prototype,"submitButton",void 0);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],EX.prototype,"onServiceRequestCompleted",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EX.prototype,"dataChanged",null);
_.Y([_.k_("selectedResponseIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EX.prototype,"onSelectedResponseIndexChange",null);_.Y([_.fE({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],EX);
_.T(EX,"ytd-feedback-elicitation-single-question-renderer",function(){if(EMK!==void 0)return EMK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return EMK=g},{mode:1});var PKL;var Ps=function(){return _.X.apply(this,arguments)||this};
_.A(Ps,_.X);Ps.prototype.computeIconType=function(g){return g?"yt-icons:"+g.toLowerCase():null};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ps.prototype,"data",void 0);_.Y([_.fE({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Ps);
_.T(Ps,"ytd-limited-state-message-renderer",function(){if(PKL!==void 0)return PKL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return PKL=g},{mode:1});var Nhb;var Nv=function(){return _.X.apply(this,arguments)||this};
_.A(Nv,_.X);Nv.prototype.computeThumbnailWidth=function(g){return g?602:428};
Nv.prototype.updateWideFromBinding=function(g){this.wide=g.detail.value};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Nv.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Nv.prototype,"wide",void 0);_.Y([_.fE({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Nv);
_.T(Nv,"ytd-newspaper-hero-video-renderer",function(){if(Nhb!==void 0)return Nhb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Nhb=g},{mode:1});var sqf;var yuh=function(){return _.X.apply(this,arguments)||this};
_.A(yuh,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yuh.prototype,"rendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yuh.prototype,"data",void 0);_.Y([_.fE({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],yuh);
_.T(yuh,"ytd-newspaper-mini-video-renderer",function(){if(sqf!==void 0)return sqf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return sqf=g},{mode:1});var vMz;_.Ny("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var sX=function(){return _.X.apply(this,arguments)||this};
_.A(sX,_.X);sX.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"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sX.prototype,"data",void 0);_.Y([_.fE({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],sX);
_.T(sX,"ytd-newspaper-renderer",function(){if(vMz!==void 0)return vMz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return vMz=g},{mode:1});var Dzb;_.Ny("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var y2=function(){var g=_.X.apply(this,arguments)||this;g.isSegment=!1;g.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};g.nextContinuation={continuationType:"playlistVideoListContinuation"};return g};
_.A(y2,_.X);_.P=y2.prototype;_.P.created=function(){var g=this;this.JSC$20582_ytReorderableController=new _.dD2(101,function(u){g.handleDrop(u)})};
_.P.attached=function(){_.Bk();var g;(g=_.Bk().resolve(_.xv(_.yM)))!=null&&(g.playlistVideoListElement=this.hostElement)};
_.P.detached=function(){var g;(g=_.Bk().resolve(_.xv(_.yM)))!=null&&(g.playlistVideoListElement=void 0);g=_.Bk().resolve(_.xv(_.z_));_.w("web_enable_voting_animation")&&g&&(g.parentElem=void 0,g.videos=[],g.continuationsPresent=!1,g.showRefreshPill=!1);_.UM(this.JSC$20582_ytReorderableController)};
_.P.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"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.dataChanged=function(){var g=_.Bk().resolve(_.xv(_.z_));if(_.w("web_enable_voting_animation")&&this.data&&g){var u=_.Tr(this.hostElement).querySelector("#contents");u&&(g.parentElem=u);g.addVideos(this.data.contents)}_.UM(this.JSC$20582_ytReorderableController)};
_.P.onRendererstamperFinished=function(){this.canReorder&&_.FOo(this.JSC$20582_ytReorderableController,_.Tr(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.P.onPlaylistReloading=function(){this.isReloading=!0};
_.P.onUpdateSetVideoId=function(g){if(g.detail&&this.data&&this.data.contents){var u=g.detail;g=this.data.contents.findIndex(function(L){var E;return((E=L.playlistVideoRenderer)==null?void 0:E.videoId)===u.videoId});
if(!(g<0)&&u.setVideoId&&(this.set("data.contents."+g+".playlistVideoRenderer.setVideoId",u.setVideoId),_.w("web_enable_voting_animation"))){var q;if(g=_.c((q=this.data.contents[g].playlistVideoRenderer)==null?void 0:q.engagementBar,_.Mwf)){var Q;(Q=g.actions)==null||Q.forEach(function(L){if(L=_.c(L,_.twF))L.itemId=u.setVideoId})}(q=_.Bk().resolve(_.xv(_.z_)))&&qFE(q,u.videoId,u.setVideoId)}}};
_.P.computeContentsClass=function(g){return g?"reloading":""};
_.P.computeIsSortable=function(g,u){return g&&u>0&&!this.isSegment&&!_.w("shorts_in_playlists_web")};
_.P.computeIsEditable=function(g){return g};
_.P.computeCanReorder=function(g){return g};
_.P.handlePlaylistRemoveVideosAction=function(g){if(this.get("playlistRemoveVideosAction.setVideoIds",g)&&this.data&&this.data.contents){g=_.c(g,_.EI0).setVideoIds;for(var u=this.data.contents.length-1;u>=0;){var q=this.data.contents[u].playlistVideoRenderer;q&&q.setVideoId&&g.includes(q.setVideoId)&&this.splice("data.contents",u,1);u--}_.YJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var g=0;g<this.data.contents.length;g++)this.set("data.contents."+g+".playlistVideoRenderer.index",_.I7(String(g+1)))};
_.P.handleDrop=function(g){g=g.currDragItem;var u=_.Vq(g.parentNode.childNodes,g),q=this.data.contents.splice(Number(_.iR(g.data.index))-1,1)[0];this.data.contents.splice(u,0,q);u=u?this.get("contents."+(u-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();g=this.buildReorderServiceEndpoint(g.data.setVideoId,u);this.ytComponentBehavior.resolveCommand(g)};
_.P.buildReorderServiceEndpoint=function(g,u){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",g),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",u),this.data.onReorderEndpoint):null};
_.P.handleUpdatePlaylistAction=function(g){var u;(g=_.c((u=_.c(g,_.PgZ))==null?void 0:u.updatedRenderer,_.v3b))&&this.canReorder!==g.canReorder&&this.set("data.canReorder",g.canReorder);g&&g.contents&&(this.set("data.contents",g.contents),this.isReloading=!1);g&&g.continuations&&this.set("data.continuations",g.continuations)};
_.P.handleAddRendererToItemSectionAction=function(g){var u,q=(u=_.c(g,OGx))==null?void 0:u.renderer,Q;q&&((Q=_.c(g,OGx))==null?void 0:Q.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,q),g=_.Bk().resolve(_.xv(_.z_)),_.w("web_enable_voting_animation")&&g&&(q&&(u=_.fAZ(q))&&g.recommendedVideos.push({itemId:u,videoId:_.e7M(q),voteCount:_.G1J(q),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.P.isVotingEnabledOnPlaylist=function(g){if(!g)return!1;g=_.N(g);for(g=g.next();!g.done;g=g.next()){var u=void 0;return!!_.c((u=g.value.playlistVideoRenderer)==null?void 0:u.engagementBar,_.Mwf)}return!1};
_.P.onAppendContinuationItemsActionFinished=function(){var g;this.isVotingEnabledOnPlaylist((g=this.data)==null?void 0:g.contents)&&(this.updateIndices(),g=_.Bk().resolve(_.xv(_.z_)),_.w("web_enable_voting_animation")&&g&&this.data&&g.addVideos(this.data.contents))};
_.P.updateVideoData=function(g){if(g.detail&&this.data&&this.data.contents){var u=g.detail;g=u.toIdx;var q=u.itemId,Q=u.newVoteCount,L=u.voteStatus;u=u.hideItem;var E,y,v=(E=this.data)==null?void 0:(y=E.contents)==null?void 0:y.findIndex(function(e){return _.fAZ(e)===q});
if(!(v<0)){E=this.data.contents[v];var J;if((J=E.playlistVideoRenderer)==null?0:J.voteCount)E.playlistVideoRenderer.voteCount=Q;var f;if(J=_.c((f=E.playlistVideoRenderer)==null?void 0:f.engagementBar,_.Mwf)){var t;(t=J.actions)==null||t.forEach(function(e){(e=_.c(e,_.twF))&&e.initialState&&(e.initialState.votes=Q,e.initialState.status=L)})}this.data.contents.splice(v,1);
u||this.data.contents.splice(g,0,E);this.updateIndices()}}};
y2.prototype.updateVideoData=y2.prototype.updateVideoData;y2.prototype.onAppendContinuationItemsActionFinished=y2.prototype.onAppendContinuationItemsActionFinished;y2.prototype.onUpdateSetVideoId=y2.prototype.onUpdateSetVideoId;y2.prototype.onPlaylistReloading=y2.prototype.onPlaylistReloading;y2.prototype.onRendererstamperFinished=y2.prototype.onRendererstamperFinished;y2.prototype.dataChanged=y2.prototype.dataChanged;
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],y2.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.Cm.YtNextContinuationBehavior),_.K("design:type",Object)],y2.prototype,"ytNextContinuationBehavior",void 0);
_.Y([_.I(_.i5),_.K("design:type",Object)],y2.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],y2.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],y2.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],y2.prototype,"isReloading",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],y2.prototype,"isSegment",void 0);
_.Y([_.a({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.K("design:type",Boolean)],y2.prototype,"isSortable",void 0);_.Y([_.a({computed:"computeIsEditable(data.isEditable)"}),_.K("design:type",Boolean)],y2.prototype,"isEditable",void 0);_.Y([_.a({computed:"computeCanReorder(data.canReorder)"}),_.K("design:type",Boolean)],y2.prototype,"canReorder",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y2.prototype,"dataChanged",null);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y2.prototype,"onRendererstamperFinished",null);_.Y([_.n6("yt-playlist-reloading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y2.prototype,"onPlaylistReloading",null);
_.Y([_.n6("yt-update-set-video-id"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],y2.prototype,"onUpdateSetVideoId",null);_.Y([_.n6("yt-append-continuation-items-action-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y2.prototype,"onAppendContinuationItemsActionFinished",null);
_.Y([_.n6("yt-update-video-data-voting-animation"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],y2.prototype,"updateVideoData",null);_.Y([_.fE({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],y2);
_.T(y2,"ytd-playlist-video-list-renderer",function(){if(Dzb!==void 0)return Dzb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Dzb=g},{mode:2});var prf;var vs=function(){return _.X.apply(this,arguments)||this};
_.A(vs,_.X);vs.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"}}}}};
vs.prototype.onTextWrapperTap=function(g){var u=this.data&&this.data.navigationEndpoint;u&&!_.ia(_.C6(g),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.hJ(this.hostElement,"yt-navigate",{endpoint:u})};
vs.prototype.dataChanged=function(){var g=this.get("data.offerButton.buttonRenderer.serviceEndpoint");g&&g.commandMetadata&&_.c(g.commandMetadata,_.QP)&&_.c(g.commandMetadata,_.QP).fireAutomatically&&_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}})};
vs.prototype.dataChanged=vs.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.c_),_.K("design:type",Object)],vs.prototype,"ytdLockupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vs.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],vs.prototype,"useBiggerThumbs",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.o4("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],vs.prototype,"biggerThumbsStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],vs.prototype,"leftAligned",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vs.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-movie-renderer"})],vs);
_.T(vs,"ytd-movie-renderer",function(){if(prf!==void 0)return prf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return prf=g},{mode:1});var Jux={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(g){if(g&&g.length==1&&Array.isArray(g[0].loggingUrls)){g=_.pH.unsafeClone(g[0]);var u=this.macros||{},q=this.getAdModuleClient_();if(!q)return _.BX();g.loggingUrls.forEach(function(Q){if(Q.baseUrl){var L=Q.baseUrl;var E=u;E=E===void 0?{}:E;L=q.getOptions().includes("replaceUrlMacros")?_.nWi(q,"replaceUrlMacros",{url:L,additionalMapping:E}):L;Q.baseUrl=L}},this);
g=[g]}return _.KV(this.hostElement,g)},
getAdModuleClient_:function(){var g=_.F0(this);return g?(g=g.getPlayer())?new _.DG(g):null:null}}]};var jqn;var Do=function(){var g=_.X.apply(this,arguments)||this;g.modern=_.w("web_modern_buttons");g.buttonOverrides={style:"call-to-action",type:"filled"};return g};
_.A(Do,_.X);Do.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=_.JR(this.data.backgroundColor)))};
Do.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var g=this.getFormattedStringLoggingDirectives(this.data.headline);g&&this.rendererBehavior.logExplicitClick(g)}};
Do.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var g=this.getFormattedStringLoggingDirectives(this.data.description);g&&this.rendererBehavior.logExplicitClick(g)}};
Do.prototype.getFormattedStringLoggingDirectives=function(g){return g&&g.runs&&g.runs.length>0&&g.runs[0]&&g.runs[0].loggingDirectives?g.runs[0].loggingDirectives:null};
Do.prototype.dataChanged=Do.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Do.prototype,"rendererBehavior",void 0);_.Y([_.I(Jux.YtMacroReplacementBehavior),_.K("design:type",Object)],Do.prototype,"macroReplacementBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Do.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Do.prototype,"navigationEndpoint",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Do.prototype,"enableColors",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Do.prototype,"modern",void 0);_.Y([_.a(),_.K("design:type",Object)],Do.prototype,"buttonOverrides",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Do.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Do);
_.T(Do,"ytd-action-basic-immersive-content-renderer",function(){if(jqn!==void 0)return jqn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return jqn=g},{mode:1});var fRL;var MrE;var p7=function(){return _.X.apply(this,arguments)||this};
_.A(p7,_.X);p7.prototype.dataChanged=function(){var g;((g=this.data)==null?void 0:g.backgroundColor)!==void 0&&_.x_(this.hostElement,{"--bgu-color":_.JR(this.data.backgroundColor)})};
p7.prototype.onImageTileClick=function(){var g;((g=this.data)==null?0:g.navigationEndpoint)&&_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var u;((u=this.data)==null?0:u.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.z3.Object.defineProperties(p7.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var g;if(((g=this.data)==null?void 0:g.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 g;return((g=this.data)==null?void 0:g.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var g,u,q;if(((g=this.data)==null?void 0:(u=g.detailsLine)==null?void 0:u.texts)!=null&&((q=this.data)==null?void 0:q.detailsLine.texts.length)>0){var Q;return(Q=this.data)==null?void 0:Q.detailsLine.texts.map(function(L){return L.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var g,u,q;if(((g=this.data)==null?void 0:(u=g.optionalDetailsLine)==null?void 0:u.texts)!=null&&((q=this.data)==null?void 0:q.optionalDetailsLine.texts.length)>0){var Q;return(Q=this.data)==null?void 0:Q.optionalDetailsLine.texts.map(function(L){return L.text}).join("")}return null}}});
p7.prototype.dataChanged=p7.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],p7.prototype,"rendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],p7.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],p7.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.backgroundColor"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],p7.prototype,"hasBackgroundColor",null);
_.Y([_.C("data.objectFit"),_.K("design:type",Object),_.K("design:paramtypes",[])],p7.prototype,"getObjectFit",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.tileRenderingStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],p7.prototype,"hasTileMetadata",null);_.Y([_.C("data.detailsLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],p7.prototype,"getSecondaryDetails",null);
_.Y([_.C("data.optionalDetailsLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],p7.prototype,"getOptionalDetails",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],p7.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],p7);
_.T(p7,"ytd-image-tile-renderer",function(){if(MrE!==void 0)return MrE;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return MrE=g},{mode:1});var trH;var J3=function(){return _.X.apply(this,arguments)||this};
_.A(J3,_.X);J3.prototype.getOpenLinkIcon=function(){return _.w("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
J3.prototype.onSitelinkTap=function(){_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.w("kevlar_command_handler_migration_killswitch"))_.xJ(this.hostElement,this.data.clickCommands,this.hostElement);else for(var g=_.N(this.data.clickCommands),u=g.next();!u.done;u=g.next())this.ytComponentBehavior.resolveCommand(u.value)};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],J3.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],J3.prototype,"rendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],J3.prototype,"data",void 0);_.Y([_.fE({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],J3);
_.T(J3,"ytd-sitelink-renderer",function(){if(trH!==void 0)return trH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return trH=g},{mode:1});var jL=function(){var g=_.X.apply(this,arguments)||this;g.paddingFix=_.w("enable_ads_web_ep_buenos_aires_and_padding_fix");return g};
_.A(jL,_.X);jL.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"}}}};
jL.prototype.dataChanged=function(){var g=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(u){u.clickTrackingParams&&delete u.clickTrackingParams;g.ytMacroReplacementBehavior.sendServiceRequestAction([u])})};
jL.prototype.shouldHideFooter=function(g){return!(g&&_.w("use_ads_engagement_panel_desktop_footer_cta"))};
_.z3.Object.defineProperties(jL.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:g.imageTileRenderers)===void 0||((u=this.data)==null?void 0:u.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(q){var Q;return(Q=_.c(q,T7h))==null?void 0:Q.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:g.imageTileRenderers)===void 0||((u=this.data)==null?void 0:u.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(q){var Q;return((Q=_.c(q,T7h))==null?void 0:Q.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
jL.prototype.dataChanged=jL.prototype.dataChanged;_.Y([_.I(Jux.YtMacroReplacementBehavior),_.K("design:type",Object)],jL.prototype,"ytMacroReplacementBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],jL.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],jL.prototype,"paddingFix",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.imageTileRenderers"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jL.prototype,"removeBorderFromImageTiles",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.imageTileRenderers"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jL.prototype,"useFooteredMetadataRenderingStyle",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jL.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],jL);
_.T(jL,"ytd-action-engagement-panel-content-renderer",function(){if(fRL!==void 0)return fRL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return fRL=g},{mode:1});var eXn;var G4z=_.r(function(g){var u=g.data;var q=g.customCommandResolver;return _.p("ad-grid-card-image-full-metadata-view-model",{class:function(){var Q;return((Q=u().interaction)==null?0:Q.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.lF(_.x1({visibilityCallback:function(Q){var L,E=(L=u().interaction)==null?void 0:L.onFirstVisible;Q&&E&&_.ey(E)},
showOption:_.XY}),_.eJ(function(){return u().interaction},q)),
"aria-label":function(){var Q,L;return(Q=u().interaction)==null?void 0:(L=Q.accessibility)==null?void 0:L.label}},_.p("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.p(_.Up,{data:function(){return u().adImage}},{adImageViewModel:function(Q){return _.p(_.Wp,{data:Q.data,
customCommandResolver:q})}})),_.p("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.p(_.M,{cond:function(){return u().headline},
then:function(Q){return _.p(_.c2,{text:Q,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.p(_.M,{cond:function(){return u().detailsLine},
then:function(Q){return _.p("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.p(_.Up,{data:Q},{adDetailsLineViewModel:function(L){return _.p(_.Bp,{data:L.data,customCommandResolver:q,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.p(_.M,{cond:function(){return u().secondaryDetailsLine},
then:function(Q){return _.p("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.p(_.Up,{data:Q},{adDetailsLineViewModel:function(L){return _.p(_.Bp,{data:L.data,customCommandResolver:q,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Th");var $zL=_.r(function(g){var u=g.data;var q=g.customCommandResolver;return _.p("ad-grid-card-image-view-model",{class:function(){var Q;return((Q=u().interaction)==null?0:Q.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.lF(_.x1({visibilityCallback:function(Q){var L,E=(L=u().interaction)==null?void 0:L.onFirstVisible;Q&&E&&_.ey(E)},
showOption:_.XY}),_.eJ(function(){return u().interaction},q)),
"aria-label":function(){var Q,L;return(Q=u().interaction)==null?void 0:(L=Q.accessibility)==null?void 0:L.label}},_.p(_.Up,{data:function(){return u().adImage}},{adImageViewModel:function(Q){return _.p(_.Wp,{data:Q.data,
customCommandResolver:q})}}),_.p("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.p(_.Up,{data:function(){return u().adCardBadge}},{adCardBadgeViewModel:_.umo})))},"Uh");var RXC=_.r(function(g){var u=g.data;var q=g.customCommandResolver;return _.p("ad-grid-card-text-view-model",{class:function(){var Q;return((Q=u().interaction)==null?0:Q.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.lF(_.x1({visibilityCallback:function(Q){var L,E=(L=u().interaction)==null?void 0:L.onFirstVisible;Q&&E&&_.ey(E)},
showOption:_.XY}),_.eJ(function(){return u().interaction},q)),
"aria-label":function(){var Q,L;return(Q=u().interaction)==null?void 0:(L=Q.accessibility)==null?void 0:L.label}},_.p("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.p(_.M,{cond:function(){return u().title},
then:function(Q){return _.p(_.c2,{text:Q,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.p("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.p(_.R4,{each:function(){var Q;
return((Q=u())==null?void 0:Q.descriptions)||[]},
keyBy:"INDEX"},function(Q){return _.p(_.c2,{text:Q,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.p("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.p(_.Up,{data:function(){return u().moreInfoButton}},{adButtonViewModel:function(Q){return _.p(_.Tb,{data:Q.data,
customCommandResolver:q})}})))},"Vh");var wrz=_.r(function(g){var u=g.data;var q=g.customCommandResolver;var Q=g.adGridCardCollectionStyle;return _.p("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.lF(_.x1({visibilityCallback:function(L){var E,y=(E=u().interaction)==null?void 0:E.onFirstVisible;L&&y&&_.ey(y)},
showOption:_.XY})),style:function(){return"grid-template-columns: repeat("+Uyh(Q?Q():u().style)+", minmax(0, 1fr));"}},_.p(_.Up,{data:function(){var L;
return(L=u())==null?void 0:L.gridCards}},{adGridCardImageViewModel:function(L){return _.p($zL,{data:L.data,
customCommandResolver:q})},
adGridCardImageFullMetadataViewModel:function(L){return _.p(G4z,{data:L.data,customCommandResolver:q})},
adGridCardTextViewModel:function(L){return _.p(RXC,{data:L.data,customCommandResolver:q})}}))},"Wh");_.dL(_.r(function(g){var u=g.data;return _.p("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.lF(_.x1({visibilityCallback:function(q){var Q,L=(Q=u().interaction)==null?void 0:Q.onFirstVisible;q&&L&&_.ey(L)},
showOption:_.XY}),_.eJ(function(){return u().interaction},ugK))},_.p("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.p(_.M,{cond:_.mth("(min-width: "+(Ti()+hG)+"px)"),
then:function(){return _.p(_.Up,{data:function(){return u().adGridCardCollection}},{adGridCardCollectionViewModel:function(q){return _.p(wrz,{data:q.data,
customCommandResolver:ugK})}})},
else:function(){return _.p(_.Up,{data:function(){return u().adGridCardCollection}},{adGridCardCollectionViewModel:function(q){return _.p(wrz,{data:q.data,
customCommandResolver:ugK,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.p("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.p(_.Up,{data:function(){return u().adButton}},{adButtonViewModel:function(q){return _.p(_.Tb,{data:q.data,
customCommandResolver:ugK})}})))},"Xh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;return _.p("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.lF(_.x1({visibilityCallback:function(q){var Q,L=(Q=u().interaction)==null?void 0:Q.onFirstVisible;q&&L&&_.ey(L)},
showOption:_.XY}),_.eJ(function(){return u().interaction},qIZ))},_.p("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.p(_.Up,{data:function(){if(_.mth("(min-width: "+(Ti()+hG)+"px)")())var q=u().adGridCardCollection;
else{q=Object.assign({},_.c(u().adGridCardCollection,YmH));var Q;q.gridCards!==void 0&&((Q=q.gridCards)==null?void 0:Q.length)>1?q.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":q.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";q={adGridCardCollectionViewModel:q}}return q}},{adGridCardCollectionViewModel:function(q){return _.p(wrz,{data:q.data,
customCommandResolver:qIZ})}})),_.p("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.p(_.Up,{data:function(){return u().adButton}},{adButtonViewModel:function(q){return _.p(_.Tb,{data:q.data,
customCommandResolver:qIZ})}})))},"Yh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.H2}});var f7=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return g};
_.A(f7,_.X);_.P=f7.prototype;_.P.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"}}}};
_.P.attached=function(){this.getDataFromPlayerAndRender()};
_.P.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.P.getDataFromPlayerAndRender=function(){var g=this,u=_.F0(this.hostElement);u&&u.getPlayerPromise().then(function(q){g.getCachedDataAndListen(q)})};
_.P.getCachedDataAndListen=function(g){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(g,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(g,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=g)};
_.P.resolveCachedActions=function(){var g=_.ri("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(g=g&&g())&&!_.pH.isEmpty(g)&&this.sendUpdateEngagementPanelAction(g);(g=(g=_.ri("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&g())&&!_.pH.isEmpty(g)&&this.sendChangeEngagementPanelVisibilityAction(g);(g=(g=_.ri("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&g())&&!_.pH.isEmpty(g)&&this.sendScrollToEngagementPanelCommand(g)};
_.P.sendUpdateEngagementPanelAction=function(g){var u;_.YJ(this.hostElement,"yt-update-engagement-panel-action",[(u=_.pH.get(g,"action"))!=null?u:g])};
_.P.sendChangeEngagementPanelVisibilityAction=function(g){_.YJ(this.hostElement,"yt-change-engagement-panel-visibility-action",[g])};
_.P.sendScrollToEngagementPanelCommand=function(g){_.YJ(this.hostElement,"yt-scroll-to-engagement-panel-command",[g])};
_.P.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.w("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Io(Error("Cl"))};
f7.prototype.dataChanged=f7.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],f7.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],f7.prototype,"componentBehavior",void 0);_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],f7.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],f7.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],f7.prototype,"player",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],f7.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],f7);
_.T(f7,"ytd-ads-engagement-panel-content-renderer",function(){if(eXn!==void 0)return eXn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return eXn=g},{mode:1});var cux;var Mv=function(){var g=_.X.apply(this,arguments)||this;g.player=null;g.JSC$20620_playerEvents=new Map;g.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return g};
_.A(Mv,_.X);_.P=Mv.prototype;_.P.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]]"}}}}}};
_.P.created=function(){this.player=null;this.JSC$20620_playerEvents=new Map;this.JSC$20620_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20620_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20620_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20620_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.attached=function(){var g=this,u=_.F0();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));u&&u.getPlayerPromise().then(function(q){g.setPlayer(q);g.set("isPageLoad",!1)})};
_.P.setPlayer=function(g){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20620_playerEvents);this.set("player",g);g&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$20620_playerEvents),g.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.P.onLoopRangeChange=function(g){var u=_.Bk().resolve(_.xv(_.ba));if((!u||u.isOnWatch())&&this.hostElement.clientHeight){var q;!g&&((q=this.data)==null?0:q.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.P.onVideoProgress=function(g){var u,q,Q=((u=this.player)==null?void 0:(q=u.getPresentingPlayerType)==null?void 0:q.call(u))===2;this.isAdPlaying!==Q&&this.set("isAdPlaying",Q);var L;if(!Q&&(L=this.player)!=null&&L.getLoopRange()){q=this.player.getLoopRange();u=q.startTimeMs;q=q.endTimeMs;Q=this.player.getProgressState(1).seekableStart;var E;u<Q*1E3&&((E=this.data)==null?0:E.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
g=q<g*1E3;var y;((y=this.player)==null?0:y.getLoopRange())&&g&&this.player.seekTo(u/1E3)}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onYtDeleteClipEngagementPanelCommand=function(g){_.c(g,HPh).command&&this.ytComponentBehavior.resolveCommand(_.c(g,HPh).command)};
_.z3.Object.defineProperties(Mv.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.voteCount)||_.I7("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Mv.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Mv.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],Mv.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Mv.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Mv.prototype,"isAdPlaying",void 0);_.Y([_.a({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Mv.prototype,"isPageLoad",void 0);_.Y([_.a({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Mv.prototype,"isDarkTheme",void 0);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Mv.prototype,"voteCount",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Mv.prototype,"channelEndpoint",null);_.Y([_.C("channelEndpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],Mv.prototype,"channelHref",null);_.Y([_.fE({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Mv);
_.T(Mv,"ytd-clip-attribution-renderer",function(){if(cux!==void 0)return cux;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return cux=g},{mode:1});var Hgn;var t3=function(){var g=_.X.apply(this,arguments)||this;g.player=null;g.JSC$20625_playerEvents=new Map;return g};
_.A(t3,_.X);_.P=t3.prototype;_.P.created=function(){this.player=null;this.JSC$20625_playerEvents=new Map;this.JSC$20625_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20625_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20625_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.P.attached=function(){var g=this,u=_.F0();u&&u.getPlayerPromise().then(function(q){g.setPlayer(q);g.set("isPageLoad",!1)})};
_.P.setPlayer=function(g){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20625_playerEvents);this.set("player",g);if(g){this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$20625_playerEvents);var u;(g==null?void 0:(u=g.getPresentingPlayerType)==null?void 0:u.call(g))===2&&this.playerAdStartHandler()}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onVideoProgress=function(){var g,u,q=((g=this.player)==null?void 0:(u=g.getPresentingPlayerType)==null?void 0:u.call(g))===2;this.isAdPlaying!==q&&this.set("isAdPlaying",q)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],t3.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],t3.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],t3.prototype,"isAdPlaying",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],t3.prototype,"isPageLoad",void 0);_.Y([_.fE({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],t3);
_.T(t3,"ytd-clip-section-footer-renderer",function(){if(Hgn!==void 0)return Hgn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Hgn=g},{mode:1});var Auz;var ZgK;var lRH=function(){return _.X.apply(this,arguments)||this};
_.A(lRH,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],lRH.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],lRH.prototype,"data",void 0);_.Y([_.fE({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],lRH);
_.T(lRH,"ytd-clip-ad-state-renderer",function(){if(ZgK!==void 0)return ZgK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ZgK=g},{mode:1});var IRb;var eL=function(){var g=_.X.apply(this,arguments)||this;g.value="";g.valid=!1;g.userChangedValue=!1;g.disabled=!1;g.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return g};
_.A(eL,_.X);_.P=eL.prototype;_.P.detached=function(){this.userChangedValue=!1};
_.P.handleKeyDown=function(g){if(_.qM)var u=13;else _.ELW&&_.u6?u=13:u=13;g.keyCode===u&&g.preventDefault()};
_.P.handleInput=function(){var g=_.Tr(this.hostElement).querySelector("#title");if(g){var u=(g.value||"").replace(/\r|\n/g," ");this.set("value",u);g.value=u;this.valid=g.validate();this.userChangedValue=!0}};
_.P.handleBlur=function(){this.valid=_.Tr(this.hostElement).querySelector("#title").validate()};
_.P.onValueChanged=function(){_.hJ(this.hostElement,"title-changed",{title:this.value})};
_.P.onValidChanged=function(){_.hJ(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.P.setInput=function(g,u){var q=_.Tr(this.hostElement).querySelector("#title");q&&(q.value=g,this.handleInput(),u&&(q.invalid=!1,this.valid=!0))};
_.P.onClipCreationDisable=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable=function(){this.set("disabled",!1)};
_.P.onClipCreationVisibilityChange=function(g){var u=this;g.visible?requestAnimationFrame(function(){var q;((q=_.Tr(u.hostElement).querySelector("#title"))==null?void 0:q.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
eL.prototype.onValidChanged=eL.prototype.onValidChanged;eL.prototype.onValueChanged=eL.prototype.onValueChanged;eL.prototype.handleBlur=eL.prototype.handleBlur;eL.prototype.handleInput=eL.prototype.handleInput;eL.prototype.handleKeyDown=eL.prototype.handleKeyDown;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],eL.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],eL.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],eL.prototype,"value",void 0);_.Y([_.a(),_.K("design:type",Object)],eL.prototype,"valid",void 0);_.Y([_.a(),_.K("design:type",Object)],eL.prototype,"userChangedValue",void 0);_.Y([_.a(),_.K("design:type",Object)],eL.prototype,"disabled",void 0);_.Y([_.n6("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],eL.prototype,"handleKeyDown",null);
_.Y([_.n6("input"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eL.prototype,"handleInput",null);_.Y([_.n6("blur"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eL.prototype,"handleBlur",null);_.Y([_.k_("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eL.prototype,"onValueChanged",null);
_.Y([_.k_("valid"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eL.prototype,"onValidChanged",null);_.Y([_.fE({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],eL);
_.T(eL,"ytd-clip-creation-text-input-renderer",function(){if(IRb!==void 0)return IRb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return IRb=g},{mode:1});var ig9;var CKf;var bgE;var dzh;var FuK;var G5=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};g.pendingStoryboardImages_={};g.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];g.tickLabelInterval=30;g.mediumTickInterval=5;g.largeTickInterval=15;g.aboveRulerHeight=32;g.rulerHeight=50;g.smallTickHeight=4;g.mediumTickHeight=8;g.largeTickHeight=16;g.mediaListeners_=
{};return g};
_.A(G5,_.X);_.P=G5.prototype;_.P.attached=function(){var g=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(u){u=_.N(["screen and (min-resolution: "+u+")","screen and (max-resolution: "+u+")"]);for(var q=u.next();!q.done;q=u.next()){q=q.value;var Q=window.matchMedia(q);Q&&(g.mediaListeners_[q]=g.updatePixelRatio_.bind(g),Q.addEventListener?Q.addEventListener("change",g.mediaListeners_[q]):Q.addListener?Q.addListener(g.mediaListeners_[q]):delete g.mediaListeners_[q])}})};
_.P.detached=function(){this.setPlayer(null);for(var g=_.N(Object.keys(this.mediaListeners_)),u=g.next();!u.done;u=g.next()){var q=u.value;u=this.mediaListeners_[q];(q=window.matchMedia(q))&&(q.removeEventListener?q.removeEventListener("change",u):q.removeListener&&q.removeListener(u))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.P.onVisibilityChangedAction_=function(g){var u=this;g.visible&&!this.player_&&(g=_.F0())&&g.getPlayerPromise().then(function(q){u.setPlayer(q)})};
_.P.setPlayer=function(g){g&&this.set("player_",g)};
_.P.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.P.setUpCanvas_=function(){var g=this.rulerWidth,u=this.devicePixelRatio_,q=this.visible;this.set("canvasReady_",!1);if(q&&u!==0){q=this.aboveRulerHeight+this.rulerHeight;var Q=_.Tr(this.hostElement).querySelector("#ticks");Q.width=g*u;Q.height=q*u;Q.style.width=g+"px";Q.style.height=q+"px";Q.getContext("2d").scale(u,u);this.set("canvasReady_",!0)}};
_.P.drawRuler_=function(g,u,q,Q,L,E,y,v,J,f,t,e){g&&q&&u&&(g=_.Tr(this.hostElement).querySelector("#ticks"),u=g.getContext("2d"),u.clearRect(0,0,g.width,g.height),u.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),u.lineWidth=2,u.beginPath(),u.moveTo(0,this.aboveRulerHeight),u.lineTo(g.width,this.aboveRulerHeight),u.moveTo(0,g.height),u.lineTo(g.width,g.height),u.stroke(),this.drawRulerTicks_(g,E,L,Q),this.drawStoryboardImages_(g,q,E,L,Q),u.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
u.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(y-E,Q,!1),this.rulerHeight),q=this.timeToPixels_(v-E,Q,!1),u.fillRect(q,this.aboveRulerHeight,g.width-q,this.rulerHeight),this.drawSpeedLines_(g,E,e))};
_.P.drawRulerTicks_=function(g,u,q,Q){var L=g.getContext("2d");L.save();L.lineWidth=1;for(var E=Math.floor(Math.max(0,u-this.tickLabelInterval));E<u+q;E++){L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var y=(E-u)*Q;L.beginPath();L.moveTo(y,g.height);var v=this.smallTickHeight;E%this.largeTickInterval===0?v=this.largeTickHeight:E%this.mediumTickInterval===0&&(v=this.mediumTickHeight);L.lineTo(y,g.height-v);L.stroke();E%this.tickLabelInterval===0&&(L.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),L.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),L.fillText(K$(E),y+4,12),L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),L.moveTo(y,0),L.lineTo(y,this.aboveRulerHeight),L.stroke())}L.restore()};
_.P.percentToHex_=function(g){g=Math.round(g*255).toString(16);g.length<2&&(g="0"+g);return g};
_.P.drawSpeedLines_=function(g,u,q){var Q=g.getContext("2d");Q.save();var L=Math.min(25,Math.abs(q)-15)/25,E=g.width*.3*L,y=g.width*-.3,v=g.width*1.3,J=this.aboveRulerHeight;g=g.height;var f=Math.round(4*L),t=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");t.length<7&&(t="#"+t.substring(1,4).repeat(2));var e=this.percentToHex_(.5+L/2);e=t+e;t+="00";if(L>0)for(L=0;L<f;L++){var G=y+Math.random()*(v-y),R=J+Math.random()*(g-J),H=E+u%E,l=Q.createLinearGradient(G,R,G+H,R);
q<0?(l.addColorStop(0,e),l.addColorStop(.4,e),l.addColorStop(.9,t)):(l.addColorStop(.1,t),l.addColorStop(.6,e),l.addColorStop(1,e));Q.strokeStyle=l;Q.lineWidth=1;Q.beginPath();Q.moveTo(G,R);Q.lineTo(G+H,R);Q.stroke()}Q.restore()};
_.P.getStoryboardForTime_=function(g,u,q){q===void 0&&(q=u.getNumberOfStoryboardLevels()-1);g=u.getStoryboardFrameIndex(g,q);return u.getStoryboardFrame(g,q)};
_.P.drawStoryboardImages_=function(g,u,q,Q,L){if(!this.disabled){g=g.getContext("2d");var E=this.getStoryboardForTime_(0,u);if(E){var y=E.width/E.columns;E=E.height/E.rows;var v=y/E,J=this.rulerHeight*v;J=this.tickLabelInterval*(v<this.tickLabelInterval*L/this.rulerHeight?1/Math.floor(this.tickLabelInterval*L/J):Math.round(J/(this.tickLabelInterval*L)));var f=J*L,t=this.rulerHeight,e=f/this.rulerHeight,G=Math.floor(Math.max(0,q-J));for(G-=G%J;G<q+Q;G+=J){var R=this.getStoryboardForTime_(G,u),H=this.getPreloadedStoryboard_(R.url);
if(H){var l=(G-q)*L,d=this.aboveRulerHeight,F=R.column*y,V=R.row*E;if(v<e){var z=t/(f/v);R=y;z*=E;V+=(E-z)/2}else R=f/(t*v)*y,z=E,F+=(y-R)/2;g.drawImage(H,F,V,R,z,l,d,f,t)}else this.fetchStoryboardImage_(R)}}}};
_.P.getPreloadedStoryboard_=function(g){return this.storyboardImages_.find(function(u){if(u.src==g)return!0;var q=u.src.indexOf(g);return q!=-1&&q==u.src.length-g.length})};
_.P.fetchStoryboardImage_=function(g){var u=this,q=this.getPreloadedStoryboard_(g.url),Q=this.pendingStoryboardImages_[g.url];q||Q!==void 0||(q=new Promise(function(L){var E=new Image(g.width,g.height);E.src=g.url;E.onload=function(){L(E)};
E.onerror=function(){L(null)}}),this.pendingStoryboardImages_[g.url]=q,q.then(function(L){L&&u.push("storyboardImages_",L);
return L}).finally(function(){delete u.pendingStoryboardImages_[g.url]}))};
_.P.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.P.timeToPixels_=function(g,u,q){g*=u;return q===void 0||q?g+"px":g};
_.P.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
G5.prototype.drawRuler_=G5.prototype.drawRuler_;G5.prototype.setUpCanvas_=G5.prototype.setUpCanvas_;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],G5.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],G5.prototype,"start",void 0);_.Y([_.a({value:30}),_.K("design:type",Number)],G5.prototype,"end",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],G5.prototype,"visible",void 0);_.Y([_.a(),_.K("design:type",Object)],G5.prototype,"player_",void 0);_.Y([_.a(),_.K("design:type",Number)],G5.prototype,"tickSpacing",void 0);_.Y([_.a(),_.K("design:type",Number)],G5.prototype,"windowSizeSec",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],G5.prototype,"rulerWidth",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],G5.prototype,"rulerShift",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],G5.prototype,"canvasReady_",void 0);_.Y([_.a({value:function(){return[]}}),
_.K("design:type",Array)],G5.prototype,"storyboardImages_",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],G5.prototype,"disabled",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],G5.prototype,"forceRender_",void 0);_.Y([_.a({value:1}),_.K("design:type",Number)],G5.prototype,"devicePixelRatio_",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],G5.prototype,"windowSpeed",void 0);
_.Y([_.k_("visible","devicePixelRatio_","rulerWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],G5.prototype,"setUpCanvas_",null);
_.Y([_.k_("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.K("design:returntype")],G5.prototype,"drawRuler_",null);_.Y([_.jP({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],G5);
_.T(G5,"yt-clip-creation-scrubber-canvas",function(){if(FuK===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);FuK=g}g=FuK;return g},
{mode:2});var mzh;var aRz;var $N=function(){var g=_.X.apply(this,arguments)||this;g.start=0;g.end=30;g.visible=!1;g.draggingLeft_=!1;g.draggingRight_=!1;g.draggingRuler_=!1;g.draggingWindow_=!1;g.seekableStart=0;g.seekableEnd=0;g.rulerWidth_=0;g.rulerShift_=0;g.windowSlideSpeed=0;g.disabled=!1;g.initialized=!1;g.durationAccessibilityLabel="";g.activeLoopRange_=!1;g.rulerDragMouseStart_=0;g.rulerDragRulerStart_=0;g.rulerDragStartTime_=0;g.rulerDragEndTime_=0;g.dragMouseLastX_=0;g.scrollInterval_=null;g.scrubberVe_=null;g.boundHandlers_=
{};g.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return g};
_.A($N,_.X);_.P=$N.prototype;
_.P.created=function(){var g=this;this.JSC$20639_playerEvents=new Map;this.JSC$20639_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20639_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20639_playerEvents.set("onStateChange",this.onStateChange_);var u={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(u).forEach(function(q){g.boundHandlers_[q]=u[q].bind(g)})};
_.P.attached=function(){this.activeLoopRange_=!1;_.Tr(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Tr(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Yq(156731)};
_.P.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Tr(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Tr(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.P.onVisibilityChangedAction_=function(g){var u=this;g.visible&&!this.player_&&(g=_.F0())&&g.getPlayerPromise().then(function(q){u.setPlayer(q)})};
_.P.setPlayer=function(g){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20639_playerEvents);g&&(this.set("player_",g),this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$20639_playerEvents))};
_.P.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.beginHandleDrag_=function(g){this.disabled||(g.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=g.clientX,g.target===_.Tr(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():g.target===_.Tr(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.P.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.P.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.P.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.P.beginRulerDrag_=function(g){this.disabled||(g.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=g.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.P.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.P.beginWindowScroll_=function(){var g=this;this.scrollInterval_=setInterval(function(){var u=g.windowSlideSpeed;if(u=$IK(g.start,g.boundedRulerStartLimit_())?u-.1:$IK(g.end,g.boundedRulerEndLimit_())?u+.1:0){var q=g.capRulerOffset_(g.rulerShift_+u);q==g.rulerShift_?u=0:(g.set("rulerShift_",q),_.hJ(g.hostElement,"set-fixed-length-range",{start:g.start+u,duration:g.end-g.start}))}g.set("windowSlideSpeed",u)},33)};
_.P.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.P.endDrag_=function(){this.logClick();var g=void 0;this.draggingRight_?g=this.end-1:this.draggingLeft_&&(g=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,g);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))};
_.P.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.P.updateRulerSize_=function(){this.set("rulerWidth_",_.Tr(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.P.handleMouseDrag_=function(g){g.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(g):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(g):this.draggingWindow_&&this.handleWindowDrag_(g))};
_.P.handleRulerDrag_=function(g){g=this.pixelsToTime_(g.clientX-this.rulerDragMouseStart_);g=this.capRulerOffset_(this.rulerDragRulerStart_-g);this.set("rulerShift_",g);var u=this.rulerDragStartTime_-(this.rulerDragRulerStart_-g);_.hJ(this.hostElement,"set-fixed-length-range",{start:u,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-g)-u})};
_.P.handleWindowDrag_=function(g){var u=g.clientX-this.dragMouseLastX_;this.dragMouseLastX_=g.clientX;g=this.pixelsToTime_(u);_.hJ(this.hostElement,"set-fixed-length-range",{start:this.start+g,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.capRulerOffset_=function(g){var u=this.seekableStart-this.pixelsToTime_(16),q=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(u,g),q)};
_.P.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.P.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.P.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.P.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.P.handleWindowHandleDrag_=function(g){var u=g.clientX-this.dragMouseLastX_;this.dragMouseLastX_=g.clientX;g=this.pixelsToTime_(u);if(this.draggingLeft_){var q=this.start+g;var Q=this.end}else this.draggingRight_&&(q=this.start,Q=this.end+g);_.hJ(this.hostElement,"set-range",{start:q,end:Q,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.onVideoProgress_=function(g){this.disabled||(g=this.timeToPixels_(g-this.rulerShift_,this.tickSpacing_),_.Tr(this.hostElement).querySelector("#playhead").style.transform="translateX("+g+")")};
_.P.onClipCreationDisable_=function(){this.endDrag_()};
_.P.timeToPixels_=function(g,u,q){g*=u;return q===void 0||q?g+"px":g};
_.P.pixelsToTime_=function(g){return g/this.tickSpacing_};
_.P.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.centerRuler_=function(g,u,q){this.set("rulerShift_",this.capRulerOffset_(g+(u-g)/2-q/2))};
_.P.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.P.updateLoopRange_=function(g,u,q,Q,L,E,y){g&&(u&&Q&&!q?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(g.pauseVideo(),g.seekTo(L,!1,void 0,void 0,50)):this.draggingRight_?(g.pauseVideo(),g.seekTo(E-.1,!1,void 0,void 0,50)):(y!==void 0?g.seekTo(y,!0,void 0,void 0,50):(u=g.getCurrentTime(),u<L||u>E?g.seekTo(L,!0,void 0,void 0,50):g.seekTo(u,!0,void 0,void 0,50)),g.playVideo()),g.setLoopRange({startTimeMs:L*1E3,endTimeMs:E*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(g.getCurrentTime())):
this.activeLoopRange_&&(g.setLoopRange(null),this.activeLoopRange_=!1))};
_.P.updateHandles_=function(){_.Tr(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Tr(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.P.updateRuler_=function(){var g=this.end,u=this.start,q=this.draggableStartLimit_(),Q=this.draggableEndLimit_();(u<q-.001||g>Q+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.computeDurationLabel_=function(g,u){return g?g.replace("$clip_length",parseFloat(u).toFixed(1)):""};
_.P.computeDuration_=function(g,u){return this.isValidTime_(g)&&this.isValidTime_(u)&&g<u?u-g:0};
_.P.isValidTime_=function(g){return isNaN(parseFloat(g))||g<0?!1:this.player_?g>=this.seekableStart&&g<=this.seekableEnd:!0};
_.P.computeWindowSizeSec_=function(g,u,q){return Math.min((g||12E4)/1E3,q-u)};
_.P.computeTickSpacing_=function(g,u){return u?u/g:1};
_.P.onDragStateChanged_=function(){_.hJ(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.P.centerRangeOnTime_=function(g){var u=this.duration;g=LlL(g-u/2,u,this.seekableStart,this.seekableEnd);_.hJ(this.hostElement,"set-fixed-length-range",{start:g.start,duration:g.end-g.start})};
_.P.nearlyLessThan_=function(g,u,q){return g+(q===void 0?1E-6:q)<u};
_.P.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var g=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(g,this.start)||this.nearlyLessThan_(this.end,g))&&this.centerRangeOnTime_(g)}};
_.P.onStateChange_=function(g){this.visible&&!this.disabled&&g==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.P.computeDragState_=function(g,u,q,Q){return g?"left":u?"right":q?"ruler":Q?"window":"none"};
_.P.logClick=function(){var g=_.j_(),u=_.JJ();g&&u&&this.scrubberVe_&&(_.w("combine_ve_grafts")?_.xl(_.gL(),this.scrubberVe_,u):_.cC(g,u,this.scrubberVe_),_.Ip(g,this.scrubberVe_))};
$N.prototype.onDragStateChanged_=$N.prototype.onDragStateChanged_;$N.prototype.updateRuler_=$N.prototype.updateRuler_;$N.prototype.updateHandles_=$N.prototype.updateHandles_;$N.prototype.onUpdateLoopRange=$N.prototype.onUpdateLoopRange;$N.prototype.onInitializedChanged_=$N.prototype.onInitializedChanged_;$N.prototype.onVisibleChanged_=$N.prototype.onVisibleChanged_;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],$N.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",Object)],$N.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"start",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"end",void 0);_.Y([_.a({computed:"computeDuration_(start, end)"}),_.K("design:type",Number)],$N.prototype,"duration",void 0);
_.Y([_.a(),_.K("design:type",String)],$N.prototype,"lengthTemplate",void 0);_.Y([_.a({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.K("design:type",String)],$N.prototype,"durationLabel",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"visible",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"player_",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"draggingLeft_",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"draggingRight_",void 0);
_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"draggingRuler_",void 0);_.Y([_.a({value:!1}),_.K("design:type",Object)],$N.prototype,"draggingWindow_",void 0);_.Y([_.a({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.K("design:type",Number)],$N.prototype,"tickSpacing_",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"seekableStart",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"seekableEnd",void 0);
_.Y([_.a(),_.K("design:type",Number)],$N.prototype,"windowSizeMs",void 0);_.Y([_.a({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.K("design:type",Number)],$N.prototype,"windowSizeSec_",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"rulerWidth_",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"rulerShift_",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"windowSlideSpeed",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$N.prototype,"disabled",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"initialized",void 0);_.Y([_.a(),_.K("design:type",Object)],$N.prototype,"durationAccessibilityLabel",void 0);_.Y([_.a({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.K("design:type",String)],$N.prototype,"dragState",void 0);
_.Y([_.k_("visible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$N.prototype,"onVisibleChanged_",null);_.Y([_.k_("initialized"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$N.prototype,"onInitializedChanged_",null);_.Y([_.k_("player_","visible","disabled","initialized","start","end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$N.prototype,"onUpdateLoopRange",null);
_.Y([_.k_("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$N.prototype,"updateHandles_",null);_.Y([_.k_("start","end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$N.prototype,"updateRuler_",null);
_.Y([_.k_("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$N.prototype,"onDragStateChanged_",null);_.Y([_.jP({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],$N);
_.T($N,"yt-clip-creation-scrubber-view",function(){if(aRz===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;mzh===void 0&&(mzh=document.createElement("template"));var Q=mzh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);aRz=g}g=aRz;return g},{mode:2});var RX=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};g.startHighlightTimeout=0;g.endHighlightTimeout=0;return g};
_.A(RX,_.X);_.P=RX.prototype;_.P.attached=function(){var g=this;this.startInput.addEventListener("input",function(u){return g.handleStartInput_(u)});
this.endInput.addEventListener("input",function(u){return g.handleEndInput_(u)});
this.startInput.addEventListener("focusout",function(u){return g.handleStartBlur_(u)});
this.endInput.addEventListener("focusout",function(u){return g.handleEndBlur_(u)})};
_.P.setPlayer=function(g){this.set("player_",g)};
_.P.onSetFixedLengthRange_=function(g){var u=g.detail;g=u.start;var q=u.duration,Q=u.startLimit;u=u.endLimit;Q||(Q=this.seekableStart_);u||(u=this.seekableEnd_);g=LlL(g,q,Q,u);this.start=g.start;this.end=g.end};
_.P.onSetRange_=function(g){var u=g.detail;g=u.start;var q=u.end,Q=u.startLimit;u=u.endLimit;Q||(Q=this.seekableStart_);u||(u=this.seekableEnd_);if(g=EyL(g,q,Q,u,this.minLengthSec,this.maxLengthSec))this.start=g.start,this.end=g.end};
_.P.updateInputs_=function(){var g=this.end,u=this.start;this.startInput.focused||(this.startInput.value=K$(u,!0));this.endInput.focused||(this.endInput.value=K$(g,!0))};
_.P.handleStartInput_=function(g){g=Qsz(g.target.value);if(g===null)this.set("startValid",!1);else{var u=this.end,q=EyL(g,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);q?(this.set("endWillUpdate",q.end!==u),this.set("startValid",q.start===g)):this.set("startValid",!1)}};
_.P.handleEndInput_=function(g){g=Qsz(g.target.value);if(g===null)this.set("endValid",!1);else{var u=this.start,q=P29(this.start,g,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);q?(this.set("startWillUpdate",q.start!==u),this.set("endValid",q.end===g)):this.set("endValid",!1)}};
_.P.handleStartBlur_=function(g){g=Qsz(g.target.value);g===null?this.startInput.value=K$(this.start,!0):this.forceUpdateInputs_(EyL(g,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.handleEndBlur_=function(g){g=Qsz(g.target.value);g===null?this.endInput.value=K$(this.end,!0):this.forceUpdateInputs_(P29(this.start,g,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.forceUpdateInputs_=function(g){g&&(this.start=g.start,this.end=g.end);this.startInput.value=K$(this.start,!0);this.endInput.value=K$(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.P.initializeClipRange_=function(){var g=this.seekableEnd_,u=this.seekableStart_,q=this.visible_,Q=this.player_;if(!Q||!q||u===null||!g)this.set("initialized",!1);else if(!this.initialized){var L=Q.getCurrentTime(),E=this.getDefaultLengthSec_();q=Q.getVideoData();var y=Q.getPlayerState()==1,v=q.isLive;E=Math.min(E,g-u);L=Math.max(0,L);g=v?P29(L-E,L,u,g,this.minLengthSec,this.maxLengthSec):y?LlL(L-E/2,E,u,g):LlL(L,E,u,g);this.start=g.start;this.end=g.end;this.set("initialized",!0);q.isLive&&Q.seekTo(g.start);
this.startInput.value=K$(this.start,!0);this.endInput.value=K$(this.end,!0)}};
_.P.onStartChanged_=function(){var g=this;_.hJ(this.hostElement,"start-changed",{start:this.start});var u;isNaN((u=this.oldStart)!=null?u:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){g.set("highlightStart",!1);g.startHighlightTimeout=0;g.oldStart=g.start},3E3))};
_.P.onEndChanged_=function(){var g=this;_.hJ(this.hostElement,"end-changed",{end:this.end});var u;isNaN((u=this.oldEnd)!=null?u:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){g.set("highlightEnd",!1);g.endHighlightTimeout=0;g.oldEnd=g.end},3E3))};
_.P.onVisibilityChangedAction_=function(g){var u=this;this.set("visible_",g.visible);this.visible_&&!this.player_&&(g=_.F0())&&g.getPlayerPromise().then(function(q){u.setPlayer(q)})};
_.P.computeMinLengthSec_=function(g){return g/1E3||5};
_.P.computeMaxLengthSec_=function(g){return g/1E3||60};
_.P.computeDefaultLengthSec_=function(g){return g/1E3};
_.P.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.P.computeSeekableStart_=function(g,u){return g&&u?g.getProgressState(1).seekableStart:0};
_.P.computeSeekableEnd_=function(g,u){return g&&u?g.getProgressState(1).seekableEnd:0};
_.P.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.P.onDragState_=function(g){this.set("highlightStart",g.detail.startChanging);this.set("highlightEnd",g.detail.endChanging)};
RX.prototype.onDragState_=RX.prototype.onDragState_;RX.prototype.onEndChanged_=RX.prototype.onEndChanged_;RX.prototype.onStartChanged_=RX.prototype.onStartChanged_;RX.prototype.initializeClipRange_=RX.prototype.initializeClipRange_;RX.prototype.updateInputs_=RX.prototype.updateInputs_;RX.prototype.onSetRange_=RX.prototype.onSetRange_;RX.prototype.onSetFixedLengthRange_=RX.prototype.onSetFixedLengthRange_;
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],RX.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],RX.prototype,"data",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],RX.prototype,"start",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],RX.prototype,"startValid",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],RX.prototype,"startWillUpdate",void 0);_.Y([_.a({value:30}),_.K("design:type",Number)],RX.prototype,"end",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],RX.prototype,"endValid",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],RX.prototype,"endWillUpdate",void 0);_.Y([_.a({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.K("design:type",Number)],RX.prototype,"minLengthSec",void 0);
_.Y([_.a({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.K("design:type",Number)],RX.prototype,"maxLengthSec",void 0);_.Y([_.a({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.K("design:type",Number)],RX.prototype,"defaultLengthSec",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],RX.prototype,"visible_",void 0);_.Y([_.a(),_.K("design:type",Object)],RX.prototype,"player_",void 0);
_.Y([_.a({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.K("design:type",Number)],RX.prototype,"seekableStart_",void 0);_.Y([_.a({computed:"computeSeekableEnd_(player_, visible_)"}),_.K("design:type",Number)],RX.prototype,"seekableEnd_",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],RX.prototype,"initialized",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],RX.prototype,"disabled",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],RX.prototype,"highlightStart",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],RX.prototype,"highlightEnd",void 0);_.Y([_.oE("#start"),_.K("design:type",HTMLInputElement)],RX.prototype,"startInput",void 0);_.Y([_.oE("#end"),_.K("design:type",HTMLInputElement)],RX.prototype,"endInput",void 0);
_.Y([_.n6("set-fixed-length-range"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],RX.prototype,"onSetFixedLengthRange_",null);_.Y([_.n6("set-range"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],RX.prototype,"onSetRange_",null);_.Y([_.k_("start","end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RX.prototype,"updateInputs_",null);
_.Y([_.k_("player_","visible_","seekableStart_","seekableEnd_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RX.prototype,"initializeClipRange_",null);_.Y([_.k_("start"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RX.prototype,"onStartChanged_",null);_.Y([_.k_("end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RX.prototype,"onEndChanged_",null);
_.Y([_.n6("clips-drag-state"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],RX.prototype,"onDragState_",null);_.Y([_.jP({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],RX);
_.T(RX,"yt-clip-creation-scrubber-renderer",function(){if(dzh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;bgE===void 0&&(bgE=document.createElement("template"));var Q=bgE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);dzh=g}g=dzh;return g},{mode:2});var we=function(){var g=_.X.apply(this,arguments)||this;g.player_=null;g.JSC$20653_playerEvents=new Map;g.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return g};
_.A(we,_.X);_.P=we.prototype;_.P.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"}}}};
_.P.created=function(){this.JSC$20653_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20653_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20653_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20653_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.P.detached=function(){this.setPlayer(null)};
_.P.onVisibilityChangedAction_=function(g){var u=this,q;if((q=this.data)==null?0:q.externalVideoId){var Q;this.videoId=(Q=this.data)==null?void 0:Q.externalVideoId}this.getPlayer().then(function(L){if(g.visible)u.returnTime=L.getCurrentTime(),u.isAtLiveHead=L.getProgressState().isAtLiveHead;else{var E=u.returnTime;u.isAtLiveHead&&(E=Number.POSITIVE_INFINITY);L.seekTo(E,void 0,void 0,void 0,51)}})};
_.P.getPlayer=function(){var g=this;if(!this.player_){var u=_.F0();if(u)return u.getPlayerPromise().then(function(q){g.setPlayer(q);return q})}return Promise.resolve(this.player_)};
_.P.setPlayer=function(g){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20653_playerEvents);if(g){this.player_=g;var u;((u=this.data)==null?0:u.externalVideoId)||this.set("videoId",g.getVideoData().video_id||"");var q;(g==null?void 0:(q=g.getPresentingPlayerType)==null?void 0:q.call(g))===2&&(this.set("isAdPlaying",!0),_.YJ(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$20653_playerEvents)}};
_.P.ready=function(){_.Tr(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.P.onTitleChanged_=function(g){this.set("titleValue",g.detail.title)};
_.P.onStartChanged_=function(g){this.set("start",g.detail.start)};
_.P.onEndChanged_=function(g){this.set("end",g.detail.end)};
_.P.onTitleValidChanged_=function(g){this.set("titleValid",g.detail.valid)};
_.P.onStartValidChanged_=function(g){this.set("startValid",g.detail.valid)};
_.P.onEndValidChanged_=function(g){this.set("endValid",g.detail.valid)};
_.P.onVideoDataChange_=function(){var g;if((g=this.data)==null||!g.externalVideoId){var u;this.set("videoId",((u=this.player_)==null?void 0:u.getVideoData().video_id)||"")}};
_.P.computeFormValid_=function(g,u,q,Q){return!!(g&&u&&q&&Q)};
_.P.computeCancelButton_=function(g,u,q){return g&&_.c(g,_.eW)?{buttonRenderer:Object.assign({},_.c(g,_.eW),{isDisabled:u||q})}:null};
_.P.computeSubmitButton_=function(g,u,q){return g&&_.c(g,_.eW)?{buttonRenderer:Object.assign({},_.c(g,_.eW),{command:void 0,isDisabled:!this.formValid||u||q})}:null};
_.P.computeSubmitCommand_=function(g){return g||null};
_.P.onSubmit_=function(g){var u=this;g.stopPropagation();g.preventDefault();this.submitCommand_&&(g={},g.comment_text=this.titleValue,g.clip_external_video_id=this.videoId,g.clip_offset_ms=parseInt(this.start*1E3,10),g.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.KV(this.hostElement,[this.submitCommand_,g]).then(function(){u.set("isLoading_",!1)},function(){u.set("isLoading_",!1)}))};
_.P.playerAdStartHandler_=function(){_.YJ(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler_=function(){_.YJ(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.P.onVideoProgress_=function(){var g=this;this.getPlayer().then(function(u){var q,Q=(u==null?void 0:(q=u.getPresentingPlayerType)==null?void 0:q.call(u))===2;g.isAdPlaying!==Q&&(Q?g.playerAdStartHandler_():g.playerAdEndHandler_())})};
we.prototype.onEndValidChanged_=we.prototype.onEndValidChanged_;we.prototype.onStartValidChanged_=we.prototype.onStartValidChanged_;we.prototype.onTitleValidChanged_=we.prototype.onTitleValidChanged_;we.prototype.onEndChanged_=we.prototype.onEndChanged_;we.prototype.onStartChanged_=we.prototype.onStartChanged_;we.prototype.onTitleChanged_=we.prototype.onTitleChanged_;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],we.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",Object)],we.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],we.prototype,"data",void 0);_.Y([_.a({value:""}),_.K("design:type",String)],we.prototype,"titleValue",void 0);
_.Y([_.a({value:!1}),_.K("design:type",Boolean)],we.prototype,"titleValid",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],we.prototype,"start",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],we.prototype,"startValid",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],we.prototype,"end",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],we.prototype,"endValid",void 0);_.Y([_.a({value:""}),_.K("design:type",String)],we.prototype,"videoId",void 0);
_.Y([_.a({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.K("design:type",Boolean)],we.prototype,"formValid",void 0);_.Y([_.a({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.K("design:type",Object)],we.prototype,"submitButton_",void 0);_.Y([_.a({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.K("design:type",Object)],we.prototype,"submitCommand_",void 0);
_.Y([_.a({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.K("design:type",Object)],we.prototype,"cancelButton_",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],we.prototype,"isLoading_",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],we.prototype,"isAdPlaying",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],we.prototype,"returnTime",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],we.prototype,"isAtLiveHead",void 0);
_.Y([_.n6("title-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],we.prototype,"onTitleChanged_",null);_.Y([_.n6("start-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],we.prototype,"onStartChanged_",null);_.Y([_.n6("end-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],we.prototype,"onEndChanged_",null);
_.Y([_.n6("title-valid-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],we.prototype,"onTitleValidChanged_",null);_.Y([_.n6("start-valid-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],we.prototype,"onStartValidChanged_",null);_.Y([_.n6("end-valid-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],we.prototype,"onEndValidChanged_",null);
_.Y([_.jP({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],we);
_.T(we,"yt-clip-creation-renderer",function(){if(CKf===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;ig9===void 0&&(ig9=document.createElement("template"));var Q=ig9;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);CKf=g}g=CKf;return g},{mode:2});var cs=function(){return _.X.apply(this,arguments)||this};
_.A(cs,_.X);cs.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"}}}};
cs.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(g){return g.hasOwnProperty("clipCreationRenderer")})&&_.YJ(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
cs.prototype.onPanelContentVisibleChanged=cs.prototype.onPanelContentVisibleChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],cs.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.GT.YtVisibilityBehavior),_.K("design:type",Object)],cs.prototype,"ytVisibilityBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],cs.prototype,"ytdReduxBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],cs.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],cs.prototype,"panelContentVisible",void 0);_.Y([_.k_("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cs.prototype,"onPanelContentVisibleChanged",null);_.Y([_.fE({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],cs);
_.T(cs,"ytd-clip-section-renderer",function(){if(Auz!==void 0)return Auz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Auz=g},{mode:1});var Vrz;var XrH;var ruE;var Wun=function(){return _.X.apply(this,arguments)||this};
_.A(Wun,_.X);_.Y([_.a(),_.K("design:type",Object)],Wun.prototype,"data",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Wun.prototype,"ytRendererBehavior",void 0);_.Y([_.fE({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Wun);
_.T(Wun,"ytd-hashtag-grid-tile-renderer",function(){if(ruE!==void 0)return ruE;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ruE=g},{mode:1});var Hs=function(){return _.X.apply(this,arguments)||this};
_.A(Hs,_.X);Hs.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Hs.prototype.updateRichGridTrendingHashtagsVisibility=function(){var g,u;if(((g=this.data)==null||!g.isExpanded)&&(u=this.data)!=null&&u.tiles){g=this.data.tiles.length;u=g>this.richGridItemsPerRow?this.richGridItemsPerRow+1:g;var q=Math.ceil(g/u);this.fullyVisibleRows=g%u===1&&q===2?1:Math.min(q,2);this.isShowMoreVisible=this.fullyVisibleRows<q}};
Hs.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Hs.prototype.updateRichGridTrendingHashtagsVisibility=Hs.prototype.updateRichGridTrendingHashtagsVisibility;_.Y([_.a(),_.K("design:type",Object)],Hs.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Number)],Hs.prototype,"fullyVisibleRows",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Hs.prototype,"isShowMoreVisible",void 0);_.Y([_.a({selector:_.JD,value:0}),_.K("design:type",Number)],Hs.prototype,"richGridItemsPerRow",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Hs.prototype,"ytdReduxBehavior",void 0);_.Y([_.k_("data","richGridItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hs.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.Y([_.fE({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Hs);
_.T(Hs,"ytd-hashtag-grid-shelf-renderer",function(){if(XrH!==void 0)return XrH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return XrH=g},{mode:1});var Thh;var hXZ;var Y8L=0,A3=function(){var g=_.X.call(this)||this;g.selected=!1;g.isOverlay=!1;g.inputId="toggle-option-"+Y8L;Y8L++;return g};
_.A(A3,_.X);A3.prototype.onTap=function(){_.hJ(this.hostElement,"ytd-toggle-option-clicked")};
_.Y([_.a(),_.K("design:type",String)],A3.prototype,"label",void 0);_.Y([_.a(),_.K("design:type",String)],A3.prototype,"inputId",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],A3.prototype,"selected",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],A3.prototype,"isOverlay",void 0);_.Y([_.fE({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.K("design:paramtypes",[])],A3);
_.T(A3,"ytd-toggle-option-renderer",function(){if(hXZ!==void 0)return hXZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return hXZ=g},{mode:1});var Zo=function(){var g=_.X.apply(this,arguments)||this;g.isToggleOption=!1;g.isOverlay=!1;return g};
_.A(Zo,_.X);Zo.prototype.onTap=function(g){g.preventDefault();this.data&&(g=!this.data.checked,this.set("data.checked",g),_.hJ(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:g,value:this.data.value}))};
_.z3.Object.defineProperties(Zo.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Zo.prototype.onTap=Zo.prototype.onTap;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Zo.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Zo.prototype,"isToggleOption",void 0);_.Y([_.a(),_.K("design:type",Object)],Zo.prototype,"isOverlay",void 0);_.Y([_.C("data.responseText"),_.K("design:type",String),_.K("design:paramtypes",[])],Zo.prototype,"label",null);
_.Y([_.n6("ytd-toggle-option-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Zo.prototype,"onTap",null);_.Y([_.fE({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Zo);
_.T(Zo,"ytd-checkbox-survey-option-renderer",function(){if(Thh!==void 0)return Thh;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Thh=g},{mode:1});var OgL;var Kup;var ln=function(){var g=_.X.apply(this,arguments)||this;g.checked=!1;g.isToggleOption=!1;return g};
_.A(ln,_.X);ln.prototype.onTap=function(){this.data&&(this.checked?_.YJ(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.YJ(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
ln.prototype.onTap=ln.prototype.onTap;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ln.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],ln.prototype,"checked",void 0);_.Y([_.a(),_.K("design:type",Object)],ln.prototype,"isToggleOption",void 0);_.Y([_.n6("ytd-toggle-option-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],ln.prototype,"onTap",null);
_.Y([_.fE({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],ln);
_.T(ln,"ytd-radio-button-survey-option-renderer",function(){if(Kup!==void 0)return Kup;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Kup=g},{mode:1});var IX=function(){var g=_.X.apply(this,arguments)||this;g.disableAnimation=!1;g.isToggleOption=!0;g.followUpSurveyCommand=null;g.selectedRatingEndpoint=null;g.isSlimlineSurveyFollowUp=!1;g.isShortsStyle=!1;g.styleOverrideAttribute=!0;g.isDarkMode=!1;g.isSubmitted=!1;g.roundedContainer=!0;g.improveShortsResponseRate=_.w("web_improve_shorts_response_rate");g.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 g};
_.A(IX,_.X);_.P=IX.prototype;
_.P.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"}}}}};
_.P.attached=function(){var g=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(q){var Q;if((Q=q[0])!=null&&Q.isIntersecting){_.o5().reportShown(g.hostElement);var L;(L=g.intersectionObserver)==null||L.unobserve(g.hostElement)}},{rootMargin:"0px",
threshold:.6});var u;(u=this.intersectionObserver)==null||u.observe(this.hostElement)};
_.P.onDarkModeToggledAction=function(g){this.isDarkMode=g};
_.P.dataChanged=function(){var g;if(((g=this.data)==null?void 0:g.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var u;((u=this.data)==null?void 0:u.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var q,Q,L,E;this.darkColorPalette=(q=this.data)==null?void 0:(Q=q.inlineContent)==null?void 0:(L=Q.compactVideoRenderer)==null?void 0:(E=L.thumbnail)==null?
void 0:E.darkColorPalette;var y,v,J,f;this.lightColorPalette=(y=this.data)==null?void 0:(v=y.inlineContent)==null?void 0:(J=v.compactVideoRenderer)==null?void 0:(f=J.thumbnail)==null?void 0:f.lightColorPalette;var t,e;if(((t=this.data)==null?0:(e=t.inlineContent)==null?0:e.compactVideoRenderer)&&this.isShortsStyle){var G,R,H,l;g=_.my((G=this.data)==null?void 0:(R=G.inlineContent)==null?void 0:(H=R.compactVideoRenderer)==null?void 0:(l=H.thumbnail)==null?void 0:l.thumbnails);_.x_(this.hostElement,
{"--yt-background-url":"url("+g+")"})}};
_.P.handleRequestCompletion=function(){this.hostElement.hidden&&_.hJ(this.hostElement,"yt-dismissible-item-dismissed")};
_.P.onPopupClosed=function(g){var u;((u=g.detail)==null?void 0:u.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.YJ(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.P.handleInlineSurveyRatingSelect=function(g,u){var q=this;this.selectedRatingEndpoint=g;this.followUpSurveyCommand=u;this.expanded=!!g;this.getOptionRenderers().forEach(function(Q,L){q.notifyPath("followUpSurveyCommand.followUpOptions."+L+".checkboxSurveyOptionRenderer.checked");q.set("followUpSurveyCommand.followUpOptions."+L+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),g=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.YJ(this.hostElement,"yt-reel-non-video-content-dismissal-command",[g]))};
_.P.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.YJ(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var g,u=(g=this.data)==null?void 0:g.dismissalEndpoint;u&&this.ytComponentBehavior.resolveCommand(u)}};
_.P.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.YJ(this.hostElement,"yt-close-popup-action"))};
_.P.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var g=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{g=this.getOptionRenderers().filter(function(Q){return Q.checked});
if(g.length===0)return;g=g.map(function(Q){return Q.responseEndpoint})}var u=[];
g.forEach(function(Q,L){L!==0&&(Q=_.c(Q,_.MB))&&Q.feedbackToken&&u.push(Q.feedbackToken)});
if(g=g[0]){var q={};u.length>0&&(q.extra_feedback_tokens=u);this.ytComponentBehavior.resolveCommand(g,{form:q})}}};
_.P.getOptionRenderers=function(){var g=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(u){g.isSingleSelect=!!_.c(u,Vm9);return g.isSingleSelect?_.c(u,Vm9):_.c(u,Xwf)}):[]};
_.P.handleInlineSurveyOptionSelect=function(g){g=this.optionSelector.indexOf(g);g!==-1&&this.optionSelector.selectIndex(g)};
_.P.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.P.maybeGetBackgroundColor=function(g){return this.isDarkMode?g.section2Color:g.section3Color};
_.P.colorPaletteChanged=function(){var g=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;g=g&&this.maybeGetBackgroundColor(g);this.dismissibleEl.style.backgroundColor=!g||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.JR(g)};
_.z3.Object.defineProperties(IX.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
IX.prototype.colorPaletteChanged=IX.prototype.colorPaletteChanged;IX.prototype.onPopupClosed=IX.prototype.onPopupClosed;IX.prototype.handleRequestCompletion=IX.prototype.handleRequestCompletion;IX.prototype.dataChanged=IX.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],IX.prototype,"actionHandlerBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],IX.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.oE("#follow-up-survey-options"),_.K("design:type",Object)],IX.prototype,"optionSelector",void 0);_.Y([_.a(),_.K("design:type",Object)],IX.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],IX.prototype,"disableAnimation",void 0);_.Y([_.a(),_.K("design:type",Object)],IX.prototype,"isToggleOption",void 0);_.Y([_.a(),_.K("design:type",Object)],IX.prototype,"followUpSurveyCommand",void 0);_.Y([_.a(),_.K("design:type",Object)],IX.prototype,"selectedRatingEndpoint",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],IX.prototype,"expanded",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],IX.prototype,"isSlimlineSurveyFollowUp",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],IX.prototype,"isShortsStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],IX.prototype,"styleOverrideAttribute",void 0);_.Y([_.a(),_.K("design:type",Boolean)],IX.prototype,"isSingleSelect",void 0);_.Y([_.a(),_.K("design:type",Object)],IX.prototype,"isDarkMode",void 0);
_.Y([_.a(),_.K("design:type",Object)],IX.prototype,"lightColorPalette",void 0);_.Y([_.a(),_.K("design:type",Object)],IX.prototype,"darkColorPalette",void 0);_.Y([_.C("selectedRatingEndpoint","isShortsStyle"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IX.prototype,"isOptionSelected",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],IX.prototype,"roundedContainer",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],IX.prototype,"improveShortsResponseRate",void 0);_.Y([_.oE("#dismissible"),_.K("design:type",HTMLElement)],IX.prototype,"dismissibleEl",void 0);_.Y([_.oE("#dismiss-button yt-icon-button"),_.K("design:type",HTMLElement)],IX.prototype,"dismissButtonEl",void 0);_.Y([_.oE("#inline-survey-header yt-icon-button"),_.K("design:type",HTMLElement)],IX.prototype,"inlineHeaderDismissButtonEl",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IX.prototype,"dataChanged",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IX.prototype,"handleRequestCompletion",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],IX.prototype,"onPopupClosed",null);
_.Y([_.k_("darkColorPalette","lightColorPalette","isDarkMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IX.prototype,"colorPaletteChanged",null);_.Y([_.fE({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],IX);
_.T(IX,"ytd-inline-survey-renderer",function(){if(OgL!==void 0)return OgL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return OgL=g},{mode:1});var xzC;var Bht;var C7=function(){var g=_.X.apply(this,arguments)||this;g.visibleVideos=[];g.hiddenVideos=[];g.modern=_.w("web_modern_buttons");g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(C7,_.X);_.P=C7.prototype;_.P.attached=function(){var g=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",g);this.onDarkModeToggledAction(g)};
_.P.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"}}}};
_.P.dataChanged=function(){var g=this;this.requestElementsPerRow();var u,q;this.currentColorPalette=this.isDarkTheme?(u=this.data)==null?void 0:u.darkColorData:(q=this.data)==null?void 0:q.lightColorData;var Q;if((Q=this.currentColorPalette)==null?0:Q.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.xt(this,function(){g.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.computeIsFirstFeedItem=function(g){return g};
_.P.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&this.set("isDarkTheme",g);this.data&&(this.currentColorPalette=g?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.P.getCurrentLogo=function(g,u){if(g)return u?g.darkLogoImage:g.lightLogoImage};
_.P.computeTitleStyle=function(g){var u;if((u=this.data)!=null&&u.title&&g&&g.textPrimary!==void 0)return"color:"+_.JR(g.textPrimary)+";"};
_.P.computeSubtitleStyle=function(g){var u;if((u=this.data)!=null&&u.subtitle&&g&&g.textSecondary!==void 0)return"color:"+_.JR(g.textSecondary)+";"};
_.P.computeDismissIconStyle=function(g){if(this.data&&this.data.dismissButton&&g&&g.textPrimary!==void 0)return"--yt-button-color:"+_.JR(g.textPrimary)+";"};
_.P.computeOverflowButtonStyle=function(g){if(this.data&&this.data.overflowButton&&g&&g.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.JR(g.textPrimary)+";--yt-spec-icon-active-other:"+_.JR(g.textPrimary)+";"};
_.P.computeBackgroundStyle=function(g){if(g&&this.data){var u="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var q=_.my((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);q&&(u+='background-image:url("'+q+'");')}g.backgroundColor!==void 0&&(u+="background-color:"+_.jh(g.backgroundColor)+";");return u}};
_.P.computeButton=function(){var g,u=Object.assign({},_.c((g=this.data)==null?void 0:g.showMoreButton,_.eW));if(this.modern&&u){u.style="STYLE_MONO_OUTLINE";var q;if(g=(q=this.currentColorPalette)==null?void 0:q.textPrimary)u.colorData={basicColorPaletteData:{foregroundTitleColor:g,borderColor:g}}}return u};
_.P.shouldShowBottomButton=function(g,u){return!(g==null?0:g.header)&&!(g==null||!g.primaryButton)&&u<3};
_.P.checkExpanded=function(g){this.isExpanded=g&&g.content?this.hiddenVideos.length===0:!0};
_.P.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.P.getLogoHeight=function(g){return this.logoWithPadding(g)?"26":"20"};
_.P.getLogoImageId=function(g){return this.logoWithPadding(g)?"logo-image-with-padding":"logo-image"};
_.P.computeHasSectionHeader=function(g){return!!g.header};
_.P.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var g;if((g=this.data.primaryButton)==null?0:g.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 u;((u=this.data.dismissButton)==null?0:u.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var q,Q;((q=this.data)==null?0:(Q=q.primaryButton)==null?0:Q.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.P.setVisibleVideos=function(g){if(this.data&&this.data.content)if(this.data.content.length){var u=this.data.content.length;this.data.header?g?(this.visibleVideos=this.data.content.slice(0,Math.min(u,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(u,this.slimItemsPerRow),u)):(this.visibleVideos=this.data.content.slice(0,Math.min(u,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(u,this.elementsPerRow),u)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(u,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(u,this.elementsPerRow),u)):(this.visibleVideos=this.data.content.slice(0,Math.min(u,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(u,this.elementsPerRow-1),u))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.P.setHasMovieRenderer=function(){var g;if((g=this.data)!=null&&g.content){var u;this.hasMovieRenderer=!!_.c((u=this.data)==null?void 0:u.content[0],_.UGR)}else this.hasMovieRenderer=!1};
_.P.requestElementsPerRow=function(){_.hJ(this.hostElement,"yt-request-elements-per-row")};
_.P.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var g=_.N(this.hiddenMediaRenderers),u=g.next();!u.done;u=g.next())u.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(g=_.Tr(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&g.focus()}};
_.P.updateTitleSpec=function(){var g;(g=this.data)!=null&&g.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.P.logoWithPadding=function(g){var u,q,Q;return(g=(u=this.getCurrentLogo(g,this.isDarkTheme))==null?void 0:(q=u.thumbnails)==null?void 0:(Q=q[0])==null?void 0:Q.height)&&g%31===0?!0:!1};
_.P.onUpdateElementsPerRowAction=function(g,u,q){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g);q&&this.slimItemsPerRow!==q&&(this.slimItemsPerRow=q)};
C7.prototype.slimItemsPerRowChanged=C7.prototype.slimItemsPerRowChanged;C7.prototype.elementsPerRowChanged=C7.prototype.elementsPerRowChanged;C7.prototype.dataChanged=C7.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],C7.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],C7.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],C7.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],C7.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],C7.prototype,"currentColorPalette",void 0);_.Y([_.a(),_.K("design:type",Array)],C7.prototype,"visibleVideos",void 0);_.Y([_.a(),_.K("design:type",Array)],C7.prototype,"hiddenVideos",void 0);
_.Y([_.a(),_.K("design:type",Object)],C7.prototype,"primaryButton",void 0);_.Y([_.a({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],C7.prototype,"elementsPerRow",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],C7.prototype,"isDarkTheme",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],C7.prototype,"isExpanded",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],C7.prototype,"largeTitle",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],C7.prototype,"hasMovieRenderer",void 0);_.Y([_.a(),_.K("design:type",Number)],C7.prototype,"slimItemsPerRow",void 0);_.Y([_.a(),_.K("design:type",Boolean)],C7.prototype,"showLightVideoMetadata",void 0);_.Y([_.a(),_.K("design:type",Boolean)],C7.prototype,"showDarkVideoMetadata",void 0);_.Y([_.a(),_.K("design:type",Number)],C7.prototype,"videoMetadataColor",void 0);
_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],C7.prototype,"miniMode",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.K("design:type",Boolean)],C7.prototype,"isFirstFeedItem",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.K("design:type",Boolean)],C7.prototype,"hasSectionHeader",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],C7.prototype,"roundedContainer",void 0);_.Y([_.Ux("#visible-video-container ytd-rich-grid-media"),_.K("design:type",Array)],C7.prototype,"visibleMediaRenderers",void 0);_.Y([_.Ux("#hidden-video-container ytd-rich-grid-media"),_.K("design:type",Array)],C7.prototype,"hiddenMediaRenderers",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],C7.prototype,"modern",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],C7.prototype,"dataChanged",null);_.Y([_.k_("elementsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],C7.prototype,"elementsPerRowChanged",null);_.Y([_.k_("slimItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],C7.prototype,"slimItemsPerRowChanged",null);
_.Y([_.fE({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],C7);
_.T(C7,"ytd-brand-video-shelf-renderer",function(){if(Bht!==void 0)return Bht;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Bht=g},{mode:1});var zXt;var bn=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(bn,_.X);_.P=bn.prototype;_.P.attached=function(){var g=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",g);this.onDarkModeToggledAction(g)};
_.P.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"}}}};
_.P.dataChanged=function(){this.requestElementsPerRow();var g,u;this.currentColorPalette=this.isDarkTheme?(g=this.data)==null?void 0:g.darkColorData:(u=this.data)==null?void 0:u.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.P.computeIsFirstFeedItem=function(g){return g};
_.P.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&this.set("isDarkTheme",g);this.data&&(this.currentColorPalette=g?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(g),this.updateButtonPalette())};
_.P.shouldShowThumbnailInMetadata=function(g){return g<=1};
_.P.computeVideoMetadataColor=function(){if(this.data){var g;if((g=this.currentColorPalette)==null?0:g.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.P.computeTitleStyle=function(g){var u;if((u=this.data)!=null&&u.title&&g&&g.textPrimary!==void 0)return"color:"+_.JR(g.textPrimary)+";"};
_.P.computeSubtitleStyle=function(g){var u;if((u=this.data)!=null&&u.subtitle&&g&&g.textSecondary!==void 0)return"color:"+_.JR(g.textSecondary)+";"};
_.P.computeOverflowButtonStyle=function(g){if(this.data&&this.data.overflowButton&&g.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.JR(g.textPrimary)+";--yt-spec-icon-active-other:"+_.JR(g.textPrimary)+";"};
_.P.computeBackgroundStyle=function(g){if(g&&this.data){var u="";g.backgroundColor!==void 0&&(u+="background-color:"+_.jh(g.backgroundColor)+";");return u}};
_.P.computeHasOverflowButton=function(g){return!!g.overflowButton};
_.P.updateButtonPalette=function(){if(this.data){var g;if((g=this.data.primaryButton)==null?0:g.buttonRenderer){var u;if((u=this.currentColorPalette)==null?0:u.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var q;((q=this.currentColorPalette)==null?0:q.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)})}}};
_.P.requestElementsPerRow=function(){_.hJ(this.hostElement,"yt-request-elements-per-row")};
_.P.updateTitleSpec=function(){var g;(g=this.data)!=null&&g.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")};
_.P.onUpdateElementsPerRowAction=function(g){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g)};
bn.prototype.elementsPerRowChanged=bn.prototype.elementsPerRowChanged;bn.prototype.dataChanged=bn.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],bn.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],bn.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],bn.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],bn.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],bn.prototype,"currentColorPalette",void 0);_.Y([_.a(),_.K("design:type",Object)],bn.prototype,"primaryButton",void 0);
_.Y([_.a({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],bn.prototype,"elementsPerRow",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],bn.prototype,"isDarkTheme",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],bn.prototype,"titleSize",void 0);_.Y([_.a(),_.K("design:type",Number)],bn.prototype,"videoMetadataColor",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],bn.prototype,"miniMode",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.K("design:type",Boolean)],bn.prototype,"isFirstFeedItem",void 0);_.Y([_.a({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],bn.prototype,"roundedContainer",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.K("design:type",Boolean)],bn.prototype,"hasOverflowButton",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bn.prototype,"dataChanged",null);_.Y([_.k_("elementsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bn.prototype,"elementsPerRowChanged",null);_.Y([_.fE({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],bn);
_.T(bn,"ytd-brand-video-singleton-renderer",function(){if(zXt!==void 0)return zXt;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return zXt=g},{mode:2});var nMZ;var k4L=_.r(function(g){var u=g.data;return _.p(_.IT,{data:function(){return u().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(u().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var q=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":q=88;break a;default:q=88}return q},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return u().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Zh"),oMt=_.r(function(g){var u=g.metadataRow;
var q=g.delimiter;return _.p(_.R4,{each:function(){return u().textParts||[]},
keyBy:"INDEX"},function(Q,L){return _.p(_.U9,null,_.p(_.c2,{text:Q,noWrap:!0,userInput:!0}),_.p(S8E,{delimiter:q,max:function(){return u().textParts.length},
index:L}))})},"$h"),S8E=_.r(function(g){var u=g.delimiter;
var q=g.max;var Q=g.index;return _.p(_.M,{cond:function(){return(u==null?void 0:u())&&q()-1>Q()},
then:function(){return _.p("span",null,u)}})},"ai"),Uzx=_.r(function(g){var u=g.data;
g={};return _.p("yt-profile-page-header-information-view-model",{class:_.Ty("profilePageHeaderInformationViewModelHost",(g.profilePageHeaderInformationViewModelMobile=!1,g))},_.p(_.M,{cond:function(){return u().onTap},
then:function(){return _.p(_.ag,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.jy(u().onTap)}},_.p(_.Up,{data:function(){return u().thumbnail}},{profilePageHeaderThumbnailViewModel:k4L}))},
else:function(){return _.p("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.p(_.Up,{data:function(){return u().thumbnail}},{profilePageHeaderThumbnailViewModel:k4L}))}}),_.p("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.p(_.M,{cond:function(){return u().onTap},
then:function(){return _.p(_.Up,{data:function(){return u().title}},{profilePageHeaderTitleViewModel:function(q){var Q=q.data;
return _.p(_.ag,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.jy(Q().onTap)}},_.p(_.c2,{text:function(){return Q().title}}))}})},
else:function(){return _.p(_.Up,{data:function(){return u().title}},{profilePageHeaderTitleViewModel:function(q){var Q=q.data;
return _.p(_.c2,{text:function(){return Q().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.p(_.Up,{data:function(){return u().metadata}},{profilePageHeaderMetadataViewModel:function(q){var Q=q.data;
return _.p(_.M,{cond:function(){return Q().metadataRows},
then:function(L){return _.p("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.p(_.R4,{each:L,keyBy:"INDEX"},function(E,y){return _.p(_.U9,null,_.p(oMt,{metadataRow:E,delimiter:" \u2022 "}),_.p(S8E,{delimiter:" \u2022 ",max:function(){return L().length},
index:y}))}))}})}})))},"bi");
Uzx.idomCompat=!0;_.dL(Uzx,"yt-profile-page-header-information-view-model",{props:{data:_.H2}});var de=function(){return _.X.apply(this,arguments)||this};
_.A(de,_.X);de.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],de.prototype,"data",void 0);_.Y([_.fE({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],de);
_.T(de,"ytd-effect-pivot-header-view-model",function(){if(nMZ!==void 0)return nMZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return nMZ=
g},{mode:1});var gc9;var Fj=function(){return _.X.apply(this,arguments)||this};
_.A(Fj,_.X);Fj.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Fj.prototype,"data",void 0);_.Y([_.fE({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Fj);
_.T(Fj,"ytd-source-pivot-header-renderer",function(){if(gc9!==void 0)return gc9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return gc9=g},{mode:1});var u59;var qup;var Qax;var mY=function(){var g=_.X.apply(this,arguments)||this;g.playing=!1;g.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.ku(g);g.active=!1;return g};
_.A(mY,_.X);_.P=mY.prototype;_.P.detached=function(){this.stop()};
_.P.play=function(){var g=this,u,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return g.active=!0,u=g.get("data.inlinePlaybackEndpoint.watchEndpoint"),q=u.videoId||g.data.videoId,Q=u.startTimeSeconds||0,L=u.playerParams||null,_.w("kevlar_player_update_killswitch")?y.yield(g.playerEl.update({args:{video_id:q,startSeconds:Q,player_params:L}}),2):(g.playerEl.loadVideoWithPlayerVars({video_id:q,startSeconds:Q,player_params:L,autoplay:!0}),y.jumpTo(2));if(y.nextAddress!=4)return y.yield(g.playerEl.getPlayerPromise(),
4);E=y.yieldResult;E.unloadModule("annotations_module");E.addEventListener("onStateChange",function(v){g.onPlayerStateChange(v)});
_.Wx(y)})};
_.P.onPlayerStateChange=function(g){if(this.active)switch(this.playing=g===1,g){case 1:_.hJ(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.hJ(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.P.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.P.resize=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return q.yield(g.playerEl.getPlayerPromise(),2);u=q.yieldResult;u.setSize(NaN,NaN);_.Wx(q)})};
_.Y([_.a(),_.K("design:type",Object)],mY.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],mY.prototype,"playing",void 0);_.Y([_.a(),_.K("design:type",Object)],mY.prototype,"playerId",void 0);_.Y([_.oE("#player"),_.K("design:type",Object)],mY.prototype,"playerEl",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],mY);
_.T(mY,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Qax!==void 0)return Qax;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Qax=g},{mode:1});var Ljf;var EcK;var aX=function(){var g=_.X.apply(this,arguments)||this;g.width=0;return g};
_.A(aX,_.X);_.P=aX.prototype;_.P.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.zr(this,this.onEnded));this.mp4El.addEventListener("error",_.zr(this,this.onError))};
_.P.detached=function(){this.videoEl.removeEventListener("ended",_.zr(this,this.onEnded));this.mp4El.removeEventListener("error",_.zr(this,this.onError))};
_.P.play=function(){var g=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var u=this.videoEl.play();u?u.then(function(){g.handleVideoStartPlaying()}).catch(function(){_.hJ(g.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.hJ(this.hostElement,"yt-video-thumbnail-not-playing")};
_.P.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.P.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.P.dataChanged=function(){var g;if((g=this.data)==null?0:g.thumbnailPlaceholder)g=_.Fh(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+g+")";this.stop();this.autoplay&&this.play()};
_.P.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.P.onEnded=function(){this.stop();_.hJ(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.P.onError=function(){_.hJ(this.hostElement,"yt-video-thumbnail-error")};
_.P.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.P.getVideoThumbnail=function(g){if(g&&g.length)return g[0]};
aX.prototype.dataChanged=aX.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],aX.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],aX.prototype,"animatePlaceholderOnEntrance",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],aX.prototype,"autoplay",void 0);_.Y([_.a({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.K("design:type",Object)],aX.prototype,"videoThumbnail",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],aX.prototype,"loop",void 0);_.Y([_.a(),_.K("design:type",Boolean)],aX.prototype,"isVideoPlaying",void 0);_.Y([_.a(),_.K("design:type",Object)],aX.prototype,"width",void 0);_.Y([_.oE("#mp4"),_.K("design:type",HTMLElement)],aX.prototype,"mp4El",void 0);_.Y([_.oE("#placeholder"),_.K("design:type",HTMLElement)],aX.prototype,"placeholderEl",void 0);_.Y([_.oE("#video"),_.K("design:type",HTMLVideoElement)],aX.prototype,"videoEl",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aX.prototype,"dataChanged",null);_.Y([_.jP({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],aX);
_.T(aX,"yt-video-as-thumbnail-details",function(){if(EcK===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Ljf===void 0&&(Ljf=document.createElement("template"));var Q=Ljf;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);EcK=g}g=EcK;return g},{mode:2});var V2=function(){var g=_.X.apply(this,arguments)||this;g.disableGridStateAware=!1;g.animationEnabled=_.w("enable_web_ketchup_hero_animation");g.transitioningOut=!1;g.narrow=!1;g.narrower=!1;g.isCarouselInFeed=!1;g.videoTimeoutJobId=0;g.panelTimeoutJobId=0;g.panelTimeoutJobStartMs=0;g.actionMap={"yt-window-resized":"onWindowResized"};return g};
_.A(V2,_.X);_.P=V2.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.P.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var g;this.player&&((g=this.data)==null?0:g.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.P.attached=function(){this.onWindowResized()};
_.P.detached=function(){this.clearTimeouts()};
_.P.onWindowResized=function(){this.updateSize()};
_.P.computePanelLayout=function(g){return g&&g.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.playVideo=function(){var g;this.video&&((g=this.data)==null?0:g.videoThumbnail)&&this.video.play();var u;this.player&&((u=this.data)==null?0:u.inlinePlaybackRenderer)&&this.player.play()};
_.P.stopVideo=function(){var g;this.video&&((g=this.data)==null?0:g.videoThumbnail)&&this.video.stop();var u;this.player&&((u=this.data)==null?0:u.inlinePlaybackRenderer)&&this.player.stop()};
_.P.transitionOut=function(){var g=this;this.transitioningOut=!0;return new Promise(function(u){g.player&&(g.player.playing=!1);var q=_.Tr(g.hostElement).querySelector("#action-button");if(q){var Q=function(){q.removeEventListener("animationend",Q);_.Hv.cancelJob(L);u();g.transitioningOut=!1};
var L=_.M_(_.Hv,Q,1E3);q.addEventListener("animationend",Q)}else u(),g.transitioningOut=!1})};
_.P.computeMetadataOrder=function(g){return g&&g.metadataOrder&&g.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?g.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.P.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.P.computeAvatarSize=function(g){return g&&g.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.P.onContentClick=function(g){if(!_.ia(_.C6(g),this.hostElement,["A".toString(),"BUTTON".toString()])){var u;if((u=this.data)==null?0:u.navigationEndpoint){var q;this.componentBehavior.resolveCommand((q=this.data)==null?void 0:q.navigationEndpoint)}}};
_.P.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.P.setBackgroundImage=function(g){if(g=this.getBackgroundImageUrl(g))_.Tr(this.hostElement).querySelector("#hero").style.backgroundImage="url("+g+")"};
_.P.setScrimLayer=function(g){var u=this.getScrimLayerColorStops(g);g=((g==null?void 0:g.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(g=180);_.FR("HTML_DIR")==="rtl"&&(g=-g);u&&(_.Tr(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+g+"deg, "+u+")")};
_.P.isNarrower=function(){return this.hostElement.clientWidth<V2.NARROW_VERSION_SIZE};
_.P.getScrimLayerColorStops=function(){var g,u=(g=this.data)==null?void 0:g.scrimColorValues;if(!u)return null;if(u.length===1)return g=_.jh(u[0]),g+" 0%, "+g+" 100%";if(u.length===3){var q=[0,72,98];return u.map(function(Q,L){return _.jh(Q)+" "+q[L]+"%"}).join(",")}return null};
_.P.getBackgroundImageUrl=function(g){return g&&g.largeFormFactorBackgroundThumbnail?_.Fh((g.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||g.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.P.onPlaying=function(){this.startVideoTimeout()};
_.P.onEnded=function(){this.rotate()};
_.P.startPanelTimeout=function(){var g=this;if(!this.panelTimeoutJobId){var u=this.get("data.minPanelDisplayDurationMs");u&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.M_(_.Hv,function(){g.rotate()},u))}};
_.P.startVideoTimeout=function(){var g=this;if(!this.videoTimeoutJobId){_.Hv.cancelJob(this.panelTimeoutJobId);var u=Date.now()-this.panelTimeoutJobStartMs;u=Math.max(0,this.get("data.minPanelDisplayDurationMs")-u);u=Math.max(this.get("data.minVideoPlayDurationMs")||0,u);this.videoTimeoutJobId=_.M_(_.Hv,function(){g.rotate()},u)}};
_.P.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Hv.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Hv.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.P.rotate=function(){this.clearTimeouts();_.hJ(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.z3.Object.defineProperties(V2.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Tr(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Tr(this.hostElement).querySelector("#video")}}});
_.z3.Object.defineProperties(V2,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
V2.prototype.onEnded=V2.prototype.onEnded;V2.prototype.onPlaying=V2.prototype.onPlaying;V2.prototype.dataChanged=V2.prototype.dataChanged;_.Y([_.I(_.eB),_.K("design:type",Object)],V2.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],V2.prototype,"componentBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],V2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.I(_.FzC),_.K("design:type",Object)],V2.prototype,"ytBooleanLogicBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],V2.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],V2.prototype,"disableGridStateAware",void 0);_.Y([_.a(),_.K("design:type",Object)],V2.prototype,"data",void 0);_.Y([_.a({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.K("design:type",String)],V2.prototype,"panelLayout",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],V2.prototype,"animationEnabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],V2.prototype,"transitioningOut",void 0);
_.Y([_.a({computed:"computeMetadataOrder(data)"}),_.K("design:type",Boolean)],V2.prototype,"metadataOrder",void 0);_.Y([_.a({computed:"computeByline(data)"}),_.K("design:type",Object)],V2.prototype,"byline",void 0);_.Y([_.a({computed:"computeAvatarSize(data)"}),_.K("design:type",Number)],V2.prototype,"avatarSize",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],V2.prototype,"narrow",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],V2.prototype,"narrower",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],V2.prototype,"layoutStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],V2.prototype,"isCarouselInFeed",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],V2.prototype,"dataChanged",null);_.Y([_.n6("yt-default-promo-panel-renderer-playing"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],V2.prototype,"onPlaying",null);
_.Y([_.n6("yt-default-promo-panel-renderer-ended"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],V2.prototype,"onEnded",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],V2);
_.T(V2,"ytd-default-promo-panel-renderer",function(){if(qup!==void 0)return qup;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return qup=g},{mode:1});_.Ny("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Xj=function(){var g=_.X.apply(this,arguments)||this;g.narrower=!1;g.dotMenuVisible=!1;g.paginationThumbnailsVisible=!1;g.active=!0;g.disableGridStateAware=!1;g.actionMap={"yt-window-resized":"onWindowResized"};return g};
_.A(Xj,_.X);_.P=Xj.prototype;_.P.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]]"}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.zr(this,this.onPageTypeChange));this.currentPageSubtype=_.Omu(location.pathname);this.onWindowResized()};
_.P.detached=function(){this.jobId&&_.Hv.cancelJob(this.jobId);this.updateSizeJobId&&_.Hv.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.zr(this,this.onPageTypeChange))};
_.P.onPageTypeChange=function(g){this.active=g.detail.newPageSubtype===this.currentPageSubtype};
_.P.onWindowResized=function(){this.updateSize()};
_.P.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.P.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.P.setCarouselItem=function(g){g>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Hv.cancelJob(this.jobId);var u=this.getCurrentPanelElement();u&&u.stopVideo();this.currentItemIndex=g%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(u||(u=this.getCurrentPanelElement()),u.playVideo()):this.startRotationJob()};
_.P.scrollThumbnails=function(g){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var u=this.getCurrentPaginationElement();if(u){var q=_.Tr(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?q.style.transform="translateX(0)":(u=u.offsetWidth+8,q.style.transform="translateX(-"+u*(g-Math.ceil(Math.floor(this.overlay.offsetWidth/u)/2)+1)+"px)")}}};
_.P.onDataChanged=function(){var g=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.gT(_.Hv,function(){var u;(u=g.getCurrentPanelElement())==null||u.updateSize();g.updateSize()}))};
_.P.getCurrentPanelElement=function(){return _.Tr(_.Tr(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.P.getCurrentPaginationElement=function(){return _.Tr(_.Tr(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.P.getNavigationClass=function(g,u){return g===u?"selected":""};
_.P.getNavigationDurationStyle=function(g){return"animation-duration:"+(this.get("data.carouselItems."+g+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.P.onNavigationTap=function(g){var u=this,q=g.model.index;q!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){u.setCarouselItem(q)}),this.autorotateActive=!1)};
_.P.onVideoThumbnailEnded=function(){var g=this;if(this.shouldRotate()){var u=this.getCurrentPaginationElement();u&&(u.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){u.classList.remove("finished");g.setNextCarouselItem()}))}};
_.P.onVideoThumbnailError=function(){this.startRotationJob()};
_.P.onVideoNotPlaying=function(){this.startRotationJob()};
_.P.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.P.startRotationJob=function(){var g=this;_.Hv.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Hv.addLowPriorityJob(function(){g.getCurrentPanelElement().transitionOut().then(function(){g.setNextCarouselItem()})},this.rotationTimeout))};
_.P.computeDotMenuVisible=function(g,u){return!!g&&!!g.carouselItems&&g.carouselItems.length>1&&!g.paginationThumbnails||!!u};
_.P.computePaginationThumbnailsVisible=function(g,u){var q,Q;return((Q=g==null?void 0:(q=g.paginationThumbnails)==null?void 0:q.length)!=null?Q:0)>1&&!u};
_.P.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.computePaginatorAlignment=function(g){return(g==null?void 0:g.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.P.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.P.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.P.isNarrower=function(g){return(g!=null?g:0)<V2.NARROW_VERSION_SIZE};
Xj.prototype.activeChanged=Xj.prototype.activeChanged;Xj.prototype.onVideoNotPlaying=Xj.prototype.onVideoNotPlaying;Xj.prototype.onVideoThumbnailError=Xj.prototype.onVideoThumbnailError;Xj.prototype.onVideoThumbnailEnded=Xj.prototype.onVideoThumbnailEnded;Xj.prototype.onDataChanged=Xj.prototype.onDataChanged;_.Y([_.I(_.eB),_.K("design:type",Object)],Xj.prototype,"ytdGridStateAwareBehavior",void 0);
_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Xj.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Xj.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Xj.prototype,"currentItem",void 0);
_.Y([_.a(),_.K("design:type",Number)],Xj.prototype,"currentItemIndex",void 0);_.Y([_.a(),_.K("design:type",Number)],Xj.prototype,"rotationTimeout",void 0);_.Y([_.a(),_.K("design:type",Number)],Xj.prototype,"loopCount",void 0);_.Y([_.a({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.K("design:type",String)],Xj.prototype,"paginatorAlignment",void 0);_.Y([_.a(),_.K("design:type",Number)],Xj.prototype,"jobId",void 0);
_.Y([_.a(),_.K("design:type",Number)],Xj.prototype,"updateSizeJobId",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Xj.prototype,"isCarouselInFeed",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xj.prototype,"narrower",void 0);_.Y([_.a({computed:"computeDotMenuVisible(data, narrower)"}),_.K("design:type",Object)],Xj.prototype,"dotMenuVisible",void 0);
_.Y([_.a({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.K("design:type",Object)],Xj.prototype,"paginationThumbnailsVisible",void 0);_.Y([_.a({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.K("design:type",String)],Xj.prototype,"layoutType",void 0);_.Y([_.a({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],Xj.prototype,"autorotateActive",void 0);_.Y([_.a(),_.K("design:type",Object)],Xj.prototype,"active",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xj.prototype,"disableGridStateAware",void 0);_.Y([_.oE("#overlay"),_.K("design:type",HTMLElement)],Xj.prototype,"overlay",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xj.prototype,"onDataChanged",null);
_.Y([_.n6("yt-video-thumbnail-ended"),_.n6("yt-default-promo-panel-renderer-rotate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xj.prototype,"onVideoThumbnailEnded",null);_.Y([_.n6("yt-video-thumbnail-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xj.prototype,"onVideoThumbnailError",null);
_.Y([_.n6("yt-video-thumbnail-not-playing"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xj.prototype,"onVideoNotPlaying",null);_.Y([_.qm("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xj.prototype,"activeChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Xj);
_.T(Xj,"ytd-carousel-item-renderer",function(){if(u59!==void 0)return u59;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return u59=g},{mode:2});var PQC;var NQh;var sah;var yGH;var re=function(){var g=_.X.apply(this,arguments)||this;g.answerExpanded=!1;return g};
_.A(re,_.X);re.prototype.toggleAnswer_=function(g){var u=_.bd(g);u&&u.classList.contains("yt-simple-endpoint")||(g.preventDefault(),g.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
re.prototype.toggleAnswer_=re.prototype.toggleAnswer_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],re.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],re.prototype,"answerExpanded",void 0);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],re.prototype,"toggleAnswer_",null);
_.Y([_.jP({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],re);
_.T(re,"yt-generic-faq-question-renderer",function(){if(yGH===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;sah===void 0&&(sah=document.createElement("template"));var Q=sah;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);yGH=g}g=yGH;return g},{mode:2});_.Ny("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Ws=function(){return _.X.apply(this,arguments)||this};
_.A(Ws,_.X);Ws.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ws.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ws.prototype,"data",void 0);_.Y([_.jP({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Ws);
_.T(Ws,"yt-faq-section-renderer",function(){if(NQh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;PQC===void 0&&(PQC=document.createElement("template"));var Q=PQC;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);NQh=g}g=NQh;return g},{mode:2});_.dL(_.AjK,"yt-card-view-model",{props:{data:_.H2,className:_.H2,isSelected:_.H2}});var vcz;var Dlf;var pZZ=function(){return _.X.apply(this,arguments)||this};
_.A(pZZ,_.X);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],pZZ.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pZZ.prototype,"data",void 0);_.Y([_.fE({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],pZZ);
_.T(pZZ,"ytd-channel-history-renderer",function(){if(Dlf!==void 0)return Dlf;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Dlf=g},{mode:1});var JGx;var jab=function(){return _.X.apply(this,arguments)||this};
_.A(jab,_.X);_.Y([_.a(),_.K("design:type",Object)],jab.prototype,"data",void 0);_.Y([_.fE({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],jab);
_.T(jab,"ytd-feature-enablement-info-renderer",function(){if(JGx!==void 0)return JGx;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return JGx=g},{mode:1});var fEz;var MoK;var T5=function(){var g=_.X.apply(this,arguments)||this;g.textBoxMaxLength=_.w("enable_tvod_campaign_code_integration")?15:12;return g};
_.A(T5,_.X);_.P=T5.prototype;_.P.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.P.onSubmit=function(){var g=this.data.serviceEndpoint,u=_.c(g,_.Is);u&&g&&(u.couponCode=this.userInput,_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}}))};
_.P.validate=function(){var g=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=g&&!this.data.errorMessage;this.showErrorMessage=g&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.w("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.P.computeStyle=function(g){return g};
_.P.computeShowValidationBelowInput=function(g){return g!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.P.updateUserInputFromBinding=function(g){this.userInput=g.currentTarget.value};
_.P.updateShowErrorMessageFromBinding=function(g){this.showErrorMessage=g.detail.value};
_.z3.Object.defineProperties(T5.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
T5.prototype.dataChanged=T5.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],T5.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],T5.prototype,"userInput",void 0);_.Y([_.a(),_.K("design:type",Boolean)],T5.prototype,"disableApplyButton",void 0);_.Y([_.a(),_.K("design:type",Boolean)],T5.prototype,"hideApplyButton",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],T5.prototype,"hideErrorMessage",void 0);_.Y([_.a(),_.K("design:type",Boolean)],T5.prototype,"showTick",void 0);_.Y([_.a(),_.K("design:type",Boolean)],T5.prototype,"showErrorMessage",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],T5.prototype,"couponStyle",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.K("design:type",Boolean)],T5.prototype,"showValidationBelowInput",void 0);_.Y([_.a(),_.K("design:type",Object)],T5.prototype,"textBoxMaxLength",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T5.prototype,"dataChanged",null);
_.Y([_.C("showTick","showErrorMessage","userInput"),_.K("design:type",String),_.K("design:paramtypes",[])],T5.prototype,"validationState",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],T5);
_.T(T5,"ytd-ypc-coupon-renderer",function(){if(MoK!==void 0)return MoK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return MoK=g},{mode:1});var h3=function(){return _.X.apply(this,arguments)||this};
_.A(h3,_.X);h3.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"}}}};
h3.prototype.computeStyle=function(g){return g};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],h3.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],h3.prototype,"buttonStyle",void 0);_.Y([_.fE({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],h3);
_.T(h3,"ytd-flow-bottom-bar-renderer",function(){if(fEz!==void 0)return fEz;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return fEz=g},{mode:1});var ton;var e1H;var YN=function(){return _.X.apply(this,arguments)||this};
_.A(YN,_.X);YN.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
YN.prototype.focus=function(g){this.title&&_.h6(this.title,g)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],YN.prototype,"data",void 0);_.Y([_.oE("#title"),_.K("design:type",HTMLElement)],YN.prototype,"title",void 0);_.Y([_.fE({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],YN);
_.T(YN,"ytd-flow-top-bar-renderer",function(){if(e1H!==void 0)return e1H;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return e1H=g},{mode:1});var GiK;var $lp;var R1n;var OX=function(){return _.X.apply(this,arguments)||this};
_.A(OX,_.X);OX.prototype.freeTextValueChanged=function(){_.YJ(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
OX.prototype.updateFreeTextValueFromBinding=function(g){this.freeTextValue=g.detail.value};
_.z3.Object.defineProperties(OX.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(u=(g=this.data)==null?void 0:g.responseMaxLength)!=null?u:500,Q;return((Q=this.freeTextValue)!=null?Q:"").length>=q?"maxed-out":""}}});
OX.prototype.freeTextValueChanged=OX.prototype.freeTextValueChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],OX.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],OX.prototype,"freeTextValue",void 0);_.Y([_.oE("#user-input"),_.K("design:type",HTMLTextAreaElement)],OX.prototype,"input",void 0);
_.Y([_.C("freeTextValue"),_.K("design:type",Object),_.K("design:paramtypes",[])],OX.prototype,"characterLimitClass",null);_.Y([_.k_("freeTextValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],OX.prototype,"freeTextValueChanged",null);_.Y([_.jP({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],OX);
_.T(OX,"yt-free-text-input-flow-step-renderer",function(){if(R1n===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;$lp===void 0&&($lp=document.createElement("template"));var Q=$lp;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);R1n=g}g=R1n;return g},{mode:2});var K7=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return g};
_.A(K7,_.X);K7.prototype.handleFreeTextFlowStepInputChanged=function(g){_.YJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:g}}])};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],K7.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],K7.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],K7.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],K7);
_.T(K7,"ytd-free-text-input-flow-step-renderer",function(){if(GiK!==void 0)return GiK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return GiK=g},{mode:1});var wZH;var cGK;var H$t;var AGt=function(){return _.X.apply(this,arguments)||this};
_.A(AGt,_.X);_.Y([_.a(),_.K("design:type",Object)],AGt.prototype,"data",void 0);_.Y([_.jP({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],AGt);
_.T(AGt,"yt-survey-answer-card-renderer",function(){if(H$t===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;cGK===void 0&&(cGK=document.createElement("template"));var Q=cGK;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);H$t=g}g=H$t;return g},{mode:2});var Z$h;var lEh;var xN=function(){return _.X.apply(this,arguments)||this};
_.A(xN,_.X);_.P=xN.prototype;_.P.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.P.selectedItemChanged=function(g){_.YJ(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[g.feedbackToken||""]}])};
_.P.surveyAnswerCardRendererClicked=function(g){if(g.target&&_.c(g.model.item,nEZ)){var u=g.target;g=_.c(g.model.item,nEZ);g.onTapCommand?_.xJ(u,[g.onTapCommand],u):this.data.onTapCommand&&_.xJ(u,[this.data.onTapCommand],u);this.selectedItemChanged(g)}};
_.P.checkIsCancellationStyle=function(g){return g==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.P.updateSelectedItemFromBinding=function(g){this.selectedItem=g.detail.value};
xN.prototype.onSelectedItemChanged=xN.prototype.onSelectedItemChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],xN.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],xN.prototype,"selectedItem",void 0);_.Y([_.a({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.K("design:type",Boolean)],xN.prototype,"isCancellationStyle",void 0);
_.Y([_.k_("selectedItem"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xN.prototype,"onSelectedItemChanged",null);_.Y([_.jP({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],xN);
_.T(xN,"yt-survey-flow-step-renderer",function(){if(lEh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Z$h===void 0&&(Z$h=document.createElement("template"));var Q=Z$h;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);lEh=g}g=lEh;return g},{mode:2});var Bs=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return g};
_.A(Bs,_.X);Bs.prototype.handleSurveyFlowStepOptionChanged=function(g){this.ytdReduxBehavior.dispatch(_.rF({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:g}));_.YJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:g}}])};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Bs.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Bs.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Bs.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Bs);
_.T(Bs,"ytd-survey-flow-step-renderer",function(){if(wZH!==void 0)return wZH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return wZH=g},{mode:1});var IEK;var i$z;var CQH=function(){return _.X.apply(this,arguments)||this};
_.A(CQH,_.X);_.Y([_.a(),_.K("design:type",Object)],CQH.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],CQH);
_.T(CQH,"ytd-metadata-line-renderer",function(){if(i$z!==void 0)return i$z;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return i$z=g},{mode:1});var z5=function(){return _.X.apply(this,arguments)||this};
_.A(z5,_.X);z5.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],z5.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],z5.prototype,"isMasthead",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],z5);
_.T(z5,"ytd-media-product-renderer",function(){if(IEK!==void 0)return IEK;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return IEK=g},{mode:1});var b$H;var n7=function(){return _.X.apply(this,arguments)||this};
_.A(n7,_.X);n7.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
n7.prototype.onBillboardImageLoaded=function(){_.hJ(this.hostElement,"yt-refit")};
n7.prototype.onBillboardImageLoaded=n7.prototype.onBillboardImageLoaded;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],n7.prototype,"data",void 0);_.Y([_.oE("#billboardImage"),_.K("design:type",Object)],n7.prototype,"billboardImage",void 0);_.Y([_.n6("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],n7.prototype,"onBillboardImageLoaded",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],n7);
_.T(n7,"ytd-billboard-masthead-renderer",function(){if(b$H!==void 0)return b$H;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return b$H=g},{mode:1});var dln;var kN=function(){var g=_.X.apply(this,arguments)||this;g.smallSize=!1;return g};
_.A(kN,_.X);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],kN.prototype,"ytComponentBehaviorType",void 0);_.Y([_.a(),_.K("design:type",Object)],kN.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],kN.prototype,"smallSize",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],kN);
_.T(kN,"ytd-bullet-formatted-string",function(){if(dln!==void 0)return dln;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return dln=g},{mode:1});var Fjp;var SL=function(){return _.X.apply(this,arguments)||this};
_.A(SL,_.X);SL.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],SL.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],SL);
_.T(SL,"ytd-offer-detail-renderer",function(){if(Fjp!==void 0)return Fjp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Fjp=g},{mode:1});var mlE;var oX=function(){return _.X.apply(this,arguments)||this};
_.A(oX,_.X);oX.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],oX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],oX.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],oX);
_.T(oX,"ytd-offer-detail-step-renderer",function(){if(mlE!==void 0)return mlE;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return mlE=g},{mode:1});var aEZ;var UX=function(){var g=_.X.apply(this,arguments)||this;g.isInOfferModule=!1;return g};
_.A(UX,_.X);_.P=UX.prototype;_.P.computeHasEndpoint=function(){var g;return!((g=this.data)==null||!g.onClickCommand)};
_.P.dataChanged=function(){var g;if((g=this.data)==null?0:g.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")};
_.P.detached=function(){var g;if((g=this.data)==null?0:g.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.P.handleClickEvent=function(){var g;if((g=this.data)==null?0:g.onClickCommand){var u;this.componentBehavior.resolveCommand((u=this.data)==null?void 0:u.onClickCommand)}};
_.P.onContentKeyDown=function(g){g.key==="Enter"?this.handleClickEvent(g):g.key===" "&&g.preventDefault()};
_.P.onContentKeyUp=function(g){g.key===" "&&this.handleClickEvent(g)};
UX.prototype.dataChanged=UX.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],UX.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],UX.prototype,"data",void 0);_.Y([_.a({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],UX.prototype,"hasEndpoint",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],UX.prototype,"isInOfferModule",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UX.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],UX);
_.T(UX,"ytd-channel-masthead-renderer",function(){if(aEZ!==void 0)return aEZ;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return aEZ=g},{mode:1});var Voz;var gl=function(){var g=_.X.apply(this,arguments)||this;g.thumbnailObjectFit="CONTAIN";g.thumbnailObjectPosition="LEFT";g.isExpanded=!1;return g};
_.A(gl,_.X);_.P=gl.prototype;_.P.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.P.dataChanged=function(){this.resetStates()};
_.P.computeisTapOnOfferInfoContainerEnabled=function(){var g;return((g=this.data)==null?void 0:g.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.P.onExpandBtnClick=function(){var g,u=_.c((g=this.data)==null?void 0:g.showMoreButtonRenderer,SWt);u&&_.nq(_.gL(),u.trackingParams);this.isExpanded=!this.isExpanded};
_.P.onOfferInfoClick=function(g){this.isTapOnOfferInfoContainerEnabled&&(_.ia(_.C6(g)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Ce(_.C6(g)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.P.onBottomBarClick=function(){this.executeTapCommand()};
_.P.executeTapCommand=function(){var g,u=(g=this.data)==null?void 0:g.tapCommand;u&&this.ytComponentBehavior.resolveCommand(u)};
_.P.resetStates=function(){this.isExpanded=!1};
_.z3.Object.defineProperties(gl.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var g=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),u,q,Q;return((u=this.data)==null?void 0:u.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&g&&!!((q=this.data)==null?0:(Q=q.benefits)==null?0:Q.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((u=_.c((g=this.data)==null?void 0:g.showMoreButtonRenderer,SWt))==null?void 0:u.showMoreButtonTitle)||((q=this.data)==null?void 0:q.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((u=_.c((g=this.data)==null?void 0:g.showMoreButtonRenderer,SWt))==null?void 0:u.showLessButtonTitle)||((q=this.data)==null?void 0:q.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var g;return(g=this.showLessButtonTitle)!=null?g:""}var u;return(u=this.showMoreButtonTitle)!=null?u:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.data)==null?void 0:g.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((u=this.data)==null?0:u.footerTitle)||((q=this.data)==null?0:q.footerSubtitle))}}});
gl.prototype.dataChanged=gl.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],gl.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",String)],gl.prototype,"thumbnailObjectFit",void 0);
_.Y([_.a(),_.K("design:type",String)],gl.prototype,"thumbnailObjectPosition",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.K("design:type",Boolean)],gl.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.Y([_.a(),_.K("design:type",Object)],gl.prototype,"isExpanded",void 0);_.Y([_.a(),_.K("design:type",Object)],gl.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.footerIcon)"}),_.K("design:type",String)],gl.prototype,"icon",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gl.prototype,"dataChanged",null);_.Y([_.C("data.thumbnail"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gl.prototype,"hasThumbnail",null);_.Y([_.C("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gl.prototype,"enableExpandButton",null);
_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gl.prototype,"enableOfferContentIcon",null);_.Y([_.C("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.K("design:type",Object),_.K("design:paramtypes",[])],gl.prototype,"showMoreButtonTitle",null);_.Y([_.C("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.K("design:type",Object),_.K("design:paramtypes",[])],gl.prototype,"showLessButtonTitle",null);
_.Y([_.C("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.K("design:type",String),_.K("design:paramtypes",[])],gl.prototype,"expandedBtnText",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gl.prototype,"enableBottomBar",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],gl);
_.T(gl,"ytd-offer-card-renderer",function(){if(Voz!==void 0)return Voz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Voz=g},{mode:1});var XZx;var uz=function(){return _.X.apply(this,arguments)||this};
_.A(uz,_.X);uz.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"}}}};
uz.prototype.onClick=function(g){if(!_.ia(g.composedPath()||[],this.hostElement,["A".toString()])){var u,q;if((g=(q=_.c((u=this.data)==null?void 0:u.actionButton,_.eW))==null?void 0:q.command)&&!this.ytComponentBehavior.resolveCommand(g)){var Q;(Q=_.gL())==null||Q.clickCommand(g);_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}})}}};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],uz.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],uz.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],uz);
_.T(uz,"ytd-offer-content-renderer",function(){if(XZx!==void 0)return XZx;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return XZx=g},{mode:1});var rGL;var qh=function(){return _.X.apply(this,arguments)||this};
_.A(qh,_.X);qh.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.z3.Object.defineProperties(qh.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var g,u;return!((g=this.data)==null||!g.title)||!((u=this.data)==null||!u.description)}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qh.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],qh.prototype,"hasHeaderData",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],qh);
_.T(qh,"ytd-offer-section-renderer",function(){if(rGL!==void 0)return rGL;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return rGL=g},{mode:1});var Wjn;var Qw=function(){return _.X.apply(this,arguments)||this};
_.A(Qw,_.X);
Qw.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"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Qw.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Qw);
_.T(Qw,"ytd-offer-selection-step-renderer",function(){if(Wjn!==void 0)return Wjn;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Wjn=g},{mode:1});var TQK;var Lx=function(){return _.X.apply(this,arguments)||this};
_.A(Lx,_.X);Lx.prototype.computeStyle=function(g){return g};
Lx.prototype.computeImageWidth=function(g){return g==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.Y([_.a({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.K("design:type",String)],Lx.prototype,"containerStyle",void 0);_.Y([_.a({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.K("design:type",String)],Lx.prototype,"imageWidth",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Lx.prototype,"data",void 0);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Lx);
_.T(Lx,"ytd-confirmation-masthead-renderer",function(){if(TQK!==void 0)return TQK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return TQK=g},{mode:1});var h1x;var El=function(){return _.X.apply(this,arguments)||this};
_.A(El,_.X);El.prototype.computeStyle=function(g){return g};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],El.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.K("design:type",String)],El.prototype,"containerStyle",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],El);
_.T(El,"ytd-purchase-complete-detail-renderer",function(){if(h1x!==void 0)return h1x;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return h1x=g},{mode:1});var Yut;var PA=function(){var g=_.X.apply(this,arguments)||this;g.scriptsAppended=!1;return g};
_.A(PA,_.X);PA.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"}}}};
PA.prototype.onDataChanged=function(){var g=this.get("data.gtmId");g&&(_.QU(g,_.FR("GL","")),this.setupConversionTracking())};
PA.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var g=document.createElement("noscript");g.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(g);this.scriptsAppended=!0}};
PA.prototype.onDataChanged=PA.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],PA.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],PA.prototype,"scriptsAppended",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PA.prototype,"onDataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],PA);
_.T(PA,"ytd-purchase-complete-step-renderer",function(){if(Yut!==void 0)return Yut;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Yut=g},{mode:1});var O$E;var Nh=function(){return _.X.apply(this,arguments)||this};
_.A(Nh,_.X);Nh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Nh.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Nh);
_.T(Nh,"ytd-ypc-transaction-error-message-renderer",function(){if(O$E!==void 0)return O$E;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return O$E=g},{mode:1});var KjE;var xlK;var sl=function(){var g=_.X.apply(this,arguments)||this;g.handlePhoneVerificationSuccess=function(u){if(g.isValidPhoneVerificationCompletionMessageEvent(u)){var q;((q=g.data)==null?0:q.nextStepCommand)&&g.ytComponentBehavior.resolveCommand(g.data.nextStepCommand)}};
return g};
_.A(sl,_.X);sl.prototype.isValidPhoneVerificationCompletionMessageEvent=function(g){if(g.data!=="yt-phone-verification-complete")return!1;g=_.h1(g.origin);return g!==null&&g.includes("youtube.com")};
sl.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
sl.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],sl.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sl.prototype,"data",void 0);_.Y([_.jP({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],sl);
_.T(sl,"yt-feature-enablement-soft-entry-renderer",function(){if(xlK===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;KjE===void 0&&(KjE=document.createElement("template"));var Q=KjE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);xlK=g}g=xlK;return g},{mode:1});var BQZ;var z19;var ncp;var kiZ;var Sux=function(){return _.X.apply(this,arguments)||this};
_.A(Sux,_.X);_.Y([_.a(),_.K("design:type",Object)],Sux.prototype,"data",void 0);_.Y([_.jP({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Sux);
_.T(Sux,"yt-benefits-item-renderer",function(){if(kiZ===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;ncp===void 0&&(ncp=document.createElement("template"));var Q=ncp;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);kiZ=g}g=kiZ;return g},{mode:2});var ocf;var UlH;var yw=function(){return _.X.apply(this,arguments)||this};
_.A(yw,_.X);yw.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
yw.prototype.computeisWithoutPadding=function(){var g;return((g=this.data)==null?void 0:g.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yw.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.K("design:type",Boolean)],yw.prototype,"isWithoutPadding",void 0);_.Y([_.jP({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],yw);
_.T(yw,"yt-benefits-section-renderer",function(){if(UlH===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;ocf===void 0&&(ocf=document.createElement("template"));var Q=ocf;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);UlH=g}g=UlH;return g},{mode:2});var vA=function(){return _.X.apply(this,arguments)||this};
_.A(vA,_.X);vA.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
vA.prototype.computeisUsingLargeWidth=function(){var g;return((g=this.data)==null?void 0:g.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vA.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.K("design:type",Boolean)],vA.prototype,"isUsingLargeWidth",void 0);_.Y([_.jP({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],vA);
_.T(vA,"yt-benefits-flow-step-renderer",function(){if(z19===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;BQZ===void 0&&(BQZ=document.createElement("template"));var Q=BQZ;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);z19=g}g=z19;return g},{mode:2});var ghn;var upL;var DZ=function(){return _.X.apply(this,arguments)||this};
_.A(DZ,_.X);DZ.prototype.checkIsUsingLargeWidth=function(){var g;return((g=this.data)==null?void 0:g.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Y([_.a(),_.K("design:type",Object)],DZ.prototype,"data",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.K("design:type",Boolean)],DZ.prototype,"isUsingLargeWidth",void 0);_.Y([_.jP({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],DZ);
_.T(DZ,"yt-confirmation-flow-step-renderer",function(){if(upL===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;ghn===void 0&&(ghn=document.createElement("template"));var Q=ghn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);upL=g}g=upL;return g},{mode:2});var qVn;var QlZ;var Loz=function(){return _.X.apply(this,arguments)||this};
_.A(Loz,_.X);_.Y([_.a(),_.K("design:type",Object)],Loz.prototype,"data",void 0);_.Y([_.jP({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Loz);
_.T(Loz,"yt-info-flow-step-renderer",function(){if(QlZ===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;qVn===void 0&&(qVn=document.createElement("template"));var Q=qVn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);QlZ=g}g=QlZ;return g},{mode:2});var EhK;var PNf;var NHH=function(){return _.X.apply(this,arguments)||this};
_.A(NHH,_.X);_.Y([_.a(),_.K("design:type",Object)],NHH.prototype,"data",void 0);_.Y([_.jP({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],NHH);
_.T(NHH,"yt-info-list-flow-step-renderer",function(){if(PNf===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;EhK===void 0&&(EhK=document.createElement("template"));var Q=EhK;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);PNf=g}g=PNf;return g},{mode:2});var slL=_.r(function(g){var u=g.data;return _.p("styled-text-view-model",{class:_.Ty("ytStyledTextViewModelHost",function(){return GkE(u().fontAttributes)},function(){return ezZ(u().color)})},_.p(_.c2,{text:function(){return u().text},
ariaLabel:function(){var q,Q,L;return(L=(q=u().accessibility)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label)!=null?L:""}}))},"ci");
slL.idomCompat=!0;var yYb=_.r(function(g){var u=function(){var L,E,y,v;return(v=(y=(L=g.alt)==null?void 0:L.call(g))!=null?y:(E=g.data().accessibilityData)==null?void 0:E.label)!=null?v:""},q=function(){return g.data().imageWidth},Q=function(){return g.data().imageHeight};
return _.p("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.p(_.M,{cond:function(){var L=g.data();if(L){var E,y,v;var J=((E=_.Bk().resolve(_.xv(_.gy)))==null?0:E())?(y=L.imageDark)!=null?y:L.imageLight:(v=L.imageLight)!=null?v:L.imageDark}else J=void 0;return J},
then:function(L){return _.p(_.IT,Object.assign({},g,{data:L,alt:u,targetWidth:q,targetHeight:Q,preserveHeight:!0,preserveWidth:!0}))}}))},"di");
yYb.idomCompat=!0;var px=_.r(function(g){var u=g.data;g=_.dO(function(){return u().slots},[]);
var q=_.dO(function(){return u().layoutProperties},{}),Q=_.Bk().resolve(_.cY);
return _.p("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:J7E(q,Q)},_.p(_.R4,{each:g,keyBy:"INDEX"},function(L){return _.p("div",{class:"ytContainerLayoutViewModelSlot",style:J7E(function(){return L().layoutProperties},Q)},_.p(_.Up,{data:function(){return L().contents}},{containerLayoutViewModel:px,
badgeViewModel:_.bY,buttonViewModel:_.TT,styledTextViewModel:slL,contentPreviewImageViewModel:function(E){return _.p(_.hW,{data:E.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(E){return _.p(yYb,{data:E.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ei");
px.idomCompat=!0;var vhh=_.r(function(g){var u=g.data;var q=g.stateFns;var Q=function(){var f=u(),t=f.productId;return!(!f.clearGroupId&&!t)},L=function(){var f=u(),t=f.clearGroupId;
return(f=f.productId)?q().isProductSelected(f):t?q().getSelectedProductByGroupId(t)==null:!1},E=function(f){var t=u(),e=t.clearGroupId;
if(t=t.productId)q().onProductSelected(t),f==null||f.forEach(function(G){_.ey(G)});
else if(e)q().onClearGroupSelected(e)},y=function(){var f=u(),t=f.clearGroupId;
if(f=f.productId){var e;return"group:"+(((e=q().getProductById(f))==null?void 0:e.groupId)||"")}return t?"group:"+t:""},v=_.dO(function(){return u().header},[]),J=_.dO(function(){return u().body},[]);
return _.p("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.p(_.M,{cond:function(){return v().length>0||Q()},
then:function(){return _.p("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.p("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.p(_.Up,{data:v},{containerLayoutViewModel:function(f){return _.p("div",{class:"ytPdpCardSectionViewModelContentItem"},_.p(px,{data:f.data}))},
styledTextViewModel:function(f){return _.p("div",{class:"ytPdpCardSectionViewModelContentItem"},_.p(slL,{data:f.data}))}})),_.p(_.M,{cond:Q,
then:function(){return _.p("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.p(_.HQ,{checked:L,name:y,onChange:function(){E(u().onSelect)}}))}}))}}),_.p(_.M,{cond:function(){return J().length>0},
then:function(){return _.p("div",null,_.p(_.Up,{data:J},{containerLayoutViewModel:function(f){return _.p("div",{class:"ytPdpCardSectionViewModelContentItem"},_.p(px,{data:f.data}))}}))}}))},"fi");
vhh.idomCompat=!0;var DnK=_.r(function(g){var u=g.data;var q=g.stateFns;return _.p("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.p(_.M,{cond:function(){return u().banner},
then:function(Q){return _.p("div",{class:"ytPdpCardViewModelBanner"},_.p(_.c2,{text:Q}))}}),_.p(_.Up,{data:function(){return u().sections}},{pdpCardSectionViewModel:function(Q){Q=Q.data;
var L={};return _.p("div",{class:_.Ty("ytPdpCardViewModelSectionContainer",(L.ytPdpCardViewModelShowDividers=function(){return u().showDividers},L))},_.p(vhh,{data:Q,
stateFns:q}))}}))},"gi");
DnK.idomCompat=!0;var p3K=_.r(function(g){var u=g.data;var q=g.isOverlay;g={};return _.p("pdp-masthead-view-model",{class:_.Ty("ytPdpMastheadViewModelHost",(g.ytPdpMastheadViewModelIsOverlay=q,g))},_.p(_.Up,{data:function(){return u().image}},{contentPreviewImageViewModel:_.hW,
themedImageViewModel:function(Q){return _.p(yYb,{data:Q.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.p(_.M,{cond:function(){return u().title},
then:function(Q){return _.p("h1",{class:"ytPdpMastheadViewModelHeading"},_.p(_.c2,{text:Q,isOverlay:q}))}}),_.p(_.R4,{each:function(){var Q;
return(Q=u().finePrint)!=null?Q:[]}},function(Q){return _.p("div",{class:"ytPdpMastheadViewModelFinePrint"},_.p(_.c2,{text:Q,
isOverlay:q}))}))},"hi");
p3K.idomCompat=!0;var JYh=_.r(function(g){var u=g.data;var q=g.stateFns;var Q=function(){return"pdp-pricing-group-selector-"+u().pricingGroupAttributeIds},L=_.dO(function(){return u().pricingGroupSelectorSectionHeader});
return _.p("pdp-pricing-group-selector-view-model",null,_.p(_.M,{cond:function(){return!!L()},
then:function(){return _.p(_.Up,{data:L},{sectionHeaderViewModel:function(E){E=E.data;var y={};return _.p("div",{class:_.Ty("ytPdpPricingGroupSelectorViewModelSectionHeader",(y.ytPdpPricingGroupSelectorViewModelFullBleed=!0,y.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,y))},_.p(_.US,{data:E}))}})}}),_.p("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.p(_.R4,{each:function(){var E=q().getSelectedProductByGroupId(u().groupId);
if(!E)return _.lD(Error("El`"+u().groupId)),[];var y,v=(y=u().pricingGroupAttributeIds)!=null?y:[],J;if((J=E.pricingGroups)==null||!J.length||!v.length)return[];y=E.pricingGroups.filter(function(G){return v.length?G.pricingGroupAttributes.every(function(R){return v.includes(R)}):!1});
E=[];if(v.length>0){y=[].concat(_.na(y));J=_.N(v);for(var f=J.next(),t={};!f.done;t={targetAttrId:void 0},f=J.next())t.targetAttrId=f.value,f=y.findIndex(function(G){return function(R){return R.pricingGroupAttributes.includes(G.targetAttrId)}}(t)),f!==-1&&(E.push(y[f]),y.splice(f,1))}var e=q().getSelectedPricingGroupAttributesByGroupId(u().groupId);
return E.map(function(G){var R=!1;e&&G.pricingGroupAttributes&&(R=kc(G.pricingGroupAttributes,e));return{pricingGroup:G,isSelected:R}})},
keyBy:function(E){return E.pricingGroup.pricingGroupId}},function(E){return _.p("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.p("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.p(_.Up,{data:function(){return E().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:px})),_.p("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.p(_.HQ,{checked:function(){return E().isSelected},
name:Q,onClick:function(){var y=E().pricingGroup;q().onPricingGroupSelected(y.pricingGroupId);if(y=_.jy(y.onSelectPricingGroup)){var v;(v=_.Bk().resolve(_.Gy))==null||v.resolveCommand(y)}}})))})))},"ii");
JYh.idomCompat=!0;var jl9=_.r(function(g){var u=g.data;var q=g.stateFns;var Q=function(){var y=q().getSelectedPricingOptions().map(function(f){return f.pricingOptionId}),v=q().getSelectedProductByGroupId(u().groupId);
if(!v)return _.lD(Error("Fl`"+u().groupId)),[];var J=q().getSelectedPricingGroupAttributesByGroupId(u().groupId);return HnC(v.pricingOptions,J,y)},L=_.dO(function(){return u().pricingOptionSelectorSectionHeader}),E=function(){return Q().length>1};
return _.p("pdp-pricing-option-selector-view-model",null,_.p(_.M,{cond:function(){return!!L()&&E()},
then:function(){return _.p(_.Up,{data:L},{sectionHeaderViewModel:function(y){y=y.data;var v={};return _.p("div",{class:_.Ty("ytPdpPricingOptionSelectorViewModelSectionHeader",(v.ytPdpPricingOptionSelectorViewModelFullBleed=!0,v.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,v))},_.p(_.US,{data:y}))}})}}),_.p(_.M,{cond:E,
then:function(){return _.p("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.p(_.R4,{each:Q,keyBy:"INDEX"},function(y){return _.p("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.p("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.p(_.Up,{data:function(){return y().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:px})),_.p("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.p(_.HQ,{checked:function(){return y().isSelected},
onClick:function(){q().onPricingOptionSelected(y().pricingOption.pricingOptionId);var v=y().pricingOption.onSelectPricingOption;if(v=_.jy(v)){var J;(J=_.Bk().resolve(_.Gy))==null||J.resolveCommand(v)}}})))}))}}))},"ji");
jl9.idomCompat=!0;var fuL=_.r(function(g){var u=g.data;var q=g.stateFns;return _.p("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.p(_.Up,{data:function(){var Q,L;return(L=(Q=q().getSelectedPricingOptions()[0])==null?void 0:Q.primaryButton)!=null?L:u().emptyStateButton}},{buttonViewModel:_.TT}))},"ki");
fuL.idomCompat=!0;var MHn=_.r(function(g){var u=g.stateFns;return _.p("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.p(_.Up,{data:function(){return u().getSelectedPricingOptions().flatMap(function(q){return q.summaryLines}).filter(function(q){return!!q})}},{containerLayoutViewModel:function(q){return _.p("div",{class:"ytPdpSummaryViewModelLineItem"},_.p(px,{data:q.data}))}}))},"li");
MHn.idomCompat=!0;var tHt=_.r(function(g){function u(H){var l=y();_.bU(_.JZ("pdpStateEntity",l,{key:l,selectedPricingOptions:H}))}
var q=g.data;var Q=g.internalScrolling;var L=g.stateFnsForTesting;var E=_.dO(function(){return q().allProducts},[]),y=_.dO(function(){return q().pdpStateEntityKey},""),v=_.kq(A7x,y),J=_.G9(function(){_.mV(!0);
var H;return(H=L==null?void 0:L())!=null?H:l7C(v,E,u)},void 0,"Pzdsic"),f=_.dO(function(){return q().body},[]),t=_.dO(function(){return q().columnBreakHints},[]),e=function(){return q().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},G=function(){return e()||q().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},R=_.G9(function(){var H=_.Rs(q().background),l;
if(H==null?0:(l=H.sources)==null?0:l.length){var d=d===void 0?!0:d;H=_.HtK(void 0,H.sources,void 0,d,d?1E3:void 0,d?void 0:1E3)}else H=null;return H},void 0,"RDPOae");
_.I4(function(){var H=q().onStartCommand;if(H&&(H=_.jy(H))){var l;(l=_.Bk().resolve(_.Gy))==null||l.resolveCommand(H)}});
g={};return _.p("pdp-view-model",{class:_.Ty("ytPdpViewModelHost",(g.ytPdpViewModelHasBackground=function(){return G()||!!R()},g.ytPdpViewModelHasDarkBackground=G,g.ytPdpViewModelHasScrim=e,g.ytPdpViewModelInternalScrolling=Q,g.ytPdpViewModelForceSingleColumn=function(){return t().length===0},g)),
style:_.xH({"--pdp-view-model-background":function(){return R()?"url("+R()+")":void 0}})},_.p("div",{class:"ytPdpViewModelColumnContainer"},_.p(_.R4,{each:function(){return I7L(f(),t())},
keyBy:"INDEX"},function(H){return _.p("div",{class:"ytPdpViewModelColumn"},_.p(_.Up,{data:H},{containerLayoutViewModel:function(l){return _.p(Jv,null,_.p(px,{data:l.data}))},
dividerViewModel:function(l){return _.p(Jv,{fullBleed:!0},_.p(_.dAW,{data:l.data}))},
pdpCardViewModel:function(l){return _.p(Jv,null,_.p(DnK,{data:l.data,stateFns:J}))},
pdpMastheadViewModel:function(l){return _.p(Jv,null,_.p(p3K,{data:l.data,isOverlay:G}))},
pdpPricingGroupSelectorViewModel:function(l){return _.p(Jv,null,_.p(JYh,{data:l.data,stateFns:J}))},
pdpPricingOptionSelectorViewModel:function(l){return _.p(Jv,null,_.p(jl9,{data:l.data,stateFns:J}))},
pdpPrimaryButtonViewModel:function(l){return _.p(Jv,null,_.p(fuL,{data:l.data,stateFns:J}))},
pdpSummaryViewModel:function(l){return _.p(Jv,null,_.p(MHn,{data:l.data,stateFns:J}))},
sectionHeaderViewModel:function(l){return _.p(Jv,{fullBleed:!0,noVerticalPadding:!0},_.p(_.US,{data:l.data}))}}))})))},"mi");
tHt.idomCompat=!0;var Jv=_.r(function(g){var u={};return _.p("div",{class:_.Ty("ytPdpViewModelItem",(u.ytPdpViewModelFullBleed=g.fullBleed,u.ytPdpViewModelNoVerticalPadding=g.noVerticalPadding,u))},g.children)},"ni");_.dL(tHt,"pdp-view-model",{props:{data:_.H2,stateFnsForTesting:_.iF,internalScrolling:_.iF}});var e3C=_.r(function(g){var u=g.data;var q=g.className;var Q=_.kq(_.mZ,function(){return u().flowStateEntityKey});
return _.p("ytm-premium-purchase-button-renderer",{class:_.Ty("ytPremiumPurchaseButtonRendererHost",q)},_.p(_.Up,{data:function(){var L;return(L=_.c(Q(),C2b))==null?void 0:L.primaryButtonOverride}},{buttonRenderer:function(L){return _.p(_.CG,{data:L.data,
className:q})},
buttonViewModel:function(L){return _.p(_.TT,{data:L.data,className:q})}}))},"oi");
e3C.idomCompat=!0;var Gdn=_.r(function(g){var u=g.data;g=g.className;var q=function(){return inZ(u().style)},Q=_.Ty("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",q),L=_.Ty("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",q);
return _.p("yt-flow-bottom-bar-renderer",{class:_.Ty("yt-flow-bottom-bar-renderer",g,q)},_.p(_.Up,{data:function(){return u().secondaryButton}},{buttonRenderer:function(E){return _.p(_.CG,{data:E.data,
className:L})},
buttonViewModel:function(E){return _.p(_.TT,{data:E.data,className:L})},
premiumPurchaseButtonRenderer:function(E){return _.p(e3C,{data:E.data,className:L})}}),_.p(_.Up,{data:function(){return u().primaryButton}},{buttonRenderer:function(E){return _.p(_.CG,{data:E.data,
className:Q})},
buttonViewModel:function(E){return _.p(_.TT,{data:E.data,className:Q})},
premiumPurchaseButtonRenderer:function(E){return _.p(e3C,{data:E.data,className:Q})}}))},"pi");
Gdn.idomCompat=!0;_.dL(Gdn,"yt-flow-bottom-bar-renderer",{props:{data:_.H2,className:_.H2}});var $nh=_.r(function(g){var u=_.Ty(g.className,"ytOfferSummaryRendererHost");return _.p("yt-offer-summary-renderer",{class:u},_.p("div",{class:"ytOfferSummaryRendererTextContainer"},_.p("div",{class:"ytOfferSummaryRendererEyebrowText"},_.p(_.c2,{text:function(){return g.data().eyebrowText}})),_.p("div",{class:"ytOfferSummaryRendererTitle"},_.p(_.c2,{text:function(){return g.data().title}})),_.p("div",{class:"ytOfferSummaryRendererSubtitle"},_.p(_.c2,{text:function(){return g.data().subtitle}})),_.p("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.p(_.R4,{each:function(){var q;
return(q=g.data().featureListData)!=null?q:[]}},function(q){var Q;
return _.p("div",{class:"ytOfferSummaryRendererFeatureList"},_.p(_.B1,{icon:(Q=q.icon)==null?void 0:Q.iconType,active:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(q.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.p("div",{class:"ytOfferSummaryRendererFeatureListText"},_.p(_.c2,{text:q.text,
className:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.p("div",{class:"ytOfferSummaryRendererDescription"},_.p(_.c2,{text:function(){return g.data().description}}))))},"qi");_.dL(_.r(function(g){var u={};u=_.Ty("ytOfferSummaryFlowStepRendererHost",(u.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=g.shouldDisableHeaderTopMargin,u));return _.p("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:u},_.p("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.p("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.p(_.c2,{text:function(){return g.data().header}})),_.p("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.p(_.c2,{text:function(){return g.data().subtitle}}))),_.p("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.p(_.Up,{data:function(){return g.data().offerSummary}},{offerSummaryRenderer:function(q){return _.p($nh,{data:q.data,
className:g.flowClassName})}})))},"ri"),"yt-offer-summary-flow-step-renderer",{props:{data:_.iF,
flowClassName:_.iF,flowStateEntityKey:_.iF,shouldDisableHeaderTopMargin:_.iF}});var R3h=_.r(function(g){var u=g.data;var q=g.className;var Q=g.flowStateEntityKey;var L=g.selectionStepStyle;g=_.YH(function(J){var f=u(),t=Q==null?void 0:Q();J.target&&(J.stopPropagation(),J=t||"",t=_.mZ(_.CE().getState(),J),f=Object.assign({},t,{premiumPurchaseFlowState:{selectedOptionId:f.optionId,primaryButtonOverride:f.primaryButtonOverride}}),_.CE().dispatch(_.u2("flowStateEntity",J,f)));return!1});
var E=function(){return(Q==null?void 0:Q())||""},y=_.kq(_.mZ,E);
_.I4(function(){var J=u(),f=E(),t=y();J.defaultSelected&&f!==""&&J.primaryButtonOverride&&bnL(J.optionId||"",f,J.primaryButtonOverride,t)});
var v={};return _.p("ytm-option-item-renderer",{"on:click":g,class:_.Ty(q,"ytm-option-item-renderer",(v["ytm-option-item-renderer--lp2-style"]=function(){return(L==null?void 0:L())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},v))},_.p("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.p("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var J=u(),f=E(),t=y();t=_.c(t,C2b);return(t?(t==null?void 0:t.selectedOptionId)||"":J.defaultSelected&&f!==""?(J==null?void 0:J.optionId)||"":"")===u().optionId},
name:("input"+_.M6(_.eu)).toString()})),_.p("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.p(_.Up,{data:function(){return u().titleBadge}},{badgeViewModel:function(J){return _.p(_.bY,{data:J.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.p(_.M,{cond:function(){return u().eyebrowText},
then:function(){return _.p("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.p(_.c2,{text:function(){return u().eyebrowText}}))}}),_.p("div",{class:"ytm-option-item-renderer__option-item-title"},_.p(_.c2,{text:function(){return u().title}})),_.p("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.p(_.c2,{text:function(){return u().subtitle}})),_.p(_.M,{cond:function(){return u().featureListData},
then:function(){return _.p("div",{class:"ytm-option-item-renderer__feature-list-data"},_.p(_.R4,{each:function(){return u().featureListData||[]}},function(J){var f,t=(f=J.icon)==null?void 0:f.iconType;
a:switch(J.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":f="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":f="ytm-option-item-renderer__feature-list-icon-small";break a;default:f="ytm-option-item-renderer__feature-list-icon-default"}return _.p("div",{class:"ytm-option-item-renderer__feature-list"},_.p(_.B1,{icon:t,className:f,active:function(){return J.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.p("div",{class:"ytm-option-item-renderer__feature-list-text"},_.p(_.c2,{text:J.text,
className:function(){return J.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.p("div",{class:"ytm-option-item-renderer__option-item-description"},_.p(_.c2,{text:function(){return u().description}}))))},"si");var w3E=_.r(function(g){var u=g.data;var q=g.flowClassName;var Q=g.flowStateEntityKey;var L=g.selectionStepStyle;return _.p("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.p("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.p("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.p(_.c2,{text:function(){return u().title}}),_.p(_.Up,{data:function(){return u().titleBadge}},{badgeViewModel:function(E){return _.p(_.bY,{data:E.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.p(_.M,{cond:function(){return u().subtitle},
then:function(){return _.p("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.p(_.c2,{text:function(){return u().subtitle}}))}}),_.p(_.M,{cond:function(){return u().featureListData},
then:function(E){return _.p("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.p(_.R4,{each:E},function(y){var v;return _.p("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.p(_.B1,{icon:(v=y.icon)==null?void 0:v.iconType,active:function(){return y.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(y.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"}}}),_.p("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.p(_.c2,{text:y.text,
className:function(){return y.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.p(_.M,{cond:function(){return u().secondaryTitle},
then:function(){return _.p("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.p(_.c2,{text:function(){return u().secondaryTitle}}))}}),_.p(_.R4,{each:function(){return u().sectionDisclaimers||[]}},function(E){return _.p("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.p(_.c2,{text:E}))})),_.p(_.Up,{data:function(){return u().optionItems}},{optionItemRenderer:function(E){return _.p("div",{class:"ytOptionSectionRendererOptionItem"},_.p(R3h,{data:E.data,
className:q,flowStateEntityKey:Q,selectionStepStyle:L}))}}),_.p(_.M,{cond:function(){return u().offerText},
then:function(){return _.p("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.p(_.c2,{text:function(){return u().offerText}}))}}))},"ti");
w3E.idomCompat=!0;var cYE=_.r(function(g){var u=g.data;var q=g.flowClassName;var Q=g.flowStateEntityKey;g=g.isDesktop;var L=_.Hk("div"),E=function(){var t;return(t=u().flowStateEntityKey)!=null?t:Q==null?void 0:Q()},y=function(){return(E==null?void 0:E())||""},v=function(){return u().style},J=_.kq(_.mZ,y);
_.I4(function(){d0h(u(),y(),J());setTimeout(function(){var t;(t=L.value)==null||t.focus()})});
var f={};return _.p("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Ty("ytm-option-selection-flow-step-renderer",(f["ytm-option-selection-flow-step-renderer--desktop"]=g,f["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return u().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},f))},_.p("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"},
_.p("div",{el:L,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.p(_.c2,{text:function(){return u().header}})),_.p("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.p(_.c2,{text:function(){return u().subtitle}}))),_.p(_.Up,{data:function(){return u().optionItems||[]}},{optionItemRenderer:function(t){return _.p("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.p(R3h,{data:t.data,
className:q,flowStateEntityKey:E,selectionStepStyle:v}))},
optionSectionRenderer:function(t){return _.p("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.p(w3E,{data:t.data,flowClassName:q,flowStateEntityKey:E,selectionStepStyle:v}))}}))},"ui");
cYE.idomCompat=!0;_.dL(cYE,"yt-option-selection-flow-step-renderer",{props:{data:_.H2,flowClassName:_.H2,flowStateEntityKey:_.H2,isDesktop:_.H2}});var jS=_.r(function(g){var u=_.FI(g,{type:1,disablePadding:!1,disablePrimaryButton:!1}),q=u.data,Q=u.type;g=u.disablePadding;var L=u.disablePrimaryButton,E=u.onClickPrimaryButton,y=function(){return q().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},v=function(){return{disabled:L(),
state:L()?"disabled":"active"}},J=function(){return q().leadingLabel||q().trailingLabel};
u={};return _.p("yt-panel-footer-view-model",{class:_.Ty("yt-panel-footer-view-model",(u["yt-panel-footer-view-model--hide-divider"]=function(){return q().shouldHideDivider},u["yt-panel-footer-view-model--disable-padding"]=g,u))},_.p(_.M,{cond:J,
then:function(){var f={},t={};return _.p("div",{class:_.Ty("yt-panel-footer-view-model__text-row",(f["yt-panel-footer-view-model--row-bottom-padding"]=function(){var e=q();return!(!e.leadingLabel&&!e.trailingLabel||!e.primaryButton&&!e.secondaryButton)},f))},_.p(_.c2,{text:function(){return q().leadingLabel},
className:_.Ty((t["yt-panel-footer-view-model--text-padding"]=J,t))}),_.p(_.c2,{text:function(){return q().trailingLabel}}))}}),_.p(_.M,{cond:y,
then:function(){var f={};return _.p("div",{class:"yt-panel-footer-view-model__button-stack"},_.p("div",{class:_.Ty("yt-panel-footer-view-model__primary-button",(f["yt-panel-footer-view-model__button-stack--top-button"]=function(){return q().secondaryButton},f))},_.p(_.Up,{data:function(){return q().primaryButton}},{buttonViewModel:function(t){return _.p(_.TT,{data:t.data,
buttonOverrides:v,onClick:E})}})),_.p(_.Up,{data:function(){return q().secondaryButton}},{buttonViewModel:_.TT}))}}),_.p(_.M,{cond:function(){return!y()},
then:function(){var f={},t={},e={};return _.p("div",{class:_.Ty("yt-panel-footer-view-model__button-row",(f["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===Q()},f))},_.p("div",{class:_.Ty("yt-panel-footer-view-model__button-row--left-button",(t["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===Q()},t["yt-panel-footer-view-model__button-row--hidden"]=function(){return!q().secondaryButton||0===Q()},t["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===Q()},t))},_.p(_.Up,{data:function(){return q().secondaryButton}},{buttonViewModel:_.TT})),_.p("div",{class:_.Ty("yt-panel-footer-view-model__primary-button",(e["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===Q()||1===Q()},e["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===Q()},e))},_.p(_.Up,{data:function(){return q().primaryButton}},{buttonViewModel:function(G){return _.p(_.TT,{data:G.data,
buttonOverrides:v,onClick:E})}})))}}))},"vi");
jS.idomCompat=!0;var Hst=_.r(function(g){g=_.FI(g,{disablePadding:!1});var u=g.data,q=g.disablePadding;g=_.wBh(function(){return u().formId},void 0,function(){return u().onSubmitSuccess});
var Q=g.submitForm,L=g.isValid,E=g.isSubmitting;return _.p("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.p(_.Up,{data:function(){return u().panelFooter}},{panelFooterViewModel:function(y){return _.p(jS,{data:y.data,
onClickPrimaryButton:function(){Q()},
disablePrimaryButton:function(){return!L()||E()},
disablePadding:q})}}))},"wi");_.dL(Hst,"yt-form-footer-view-model",{props:{data:_.H2,disablePadding:_.H2}});var AYx=_.r(function(g){var u=_.w("enable_user_rating_web");return _.p("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.p("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.p(_.M,{cond:function(){var q;return(q=g.data())==null?void 0:q.image},
then:function(q){return _.p(_.IT,{data:q,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.p("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.p(_.c2,{text:function(){var q;
return(q=g.data())==null?void 0:q.title}})),_.p("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.p(_.c2,{text:function(){var q;
return(q=g.data())==null?void 0:q.subtitle}})),_.p(_.M,{cond:function(){return!u},
then:function(){return _.p(_.Up,{data:function(){var q;return(q=g.data())==null?void 0:q.viewTipsButton}},{buttonViewModel:function(q){return _.p(_.TT,{data:q.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"xi");_.dL(AYx,"yt-contributor-zero-state-view-model",{props:{data:_.H2}});var ZsC=_.r(function(g){var u=function(){var q;return(q=g.data())==null?void 0:q.image};
return _.p("yt-featured-content-item-view-model",{class:_.Ty("ytFeaturedContentItemViewModelHost")},_.p("div",{class:_.Ty(function(){return u()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.p("div",{class:function(){return u()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.p(_.M,{cond:u,
then:function(){return _.p("div",{class:"ytFeaturedContentItemViewModelImage"},_.p(_.Up,{data:function(){return g.data().image}},{themedImageViewModel:function(q){return _.p(yYb,{data:q.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.p(_.M,{cond:function(){var q;
return!u()&&((q=g.data())==null?void 0:q.iconName)},
then:function(){return _.p("div",{class:"ytFeaturedContentItemViewModelIcon"},_.p(_.B1,{icon:function(){return g.data().iconName}}))}}),_.p("div",{class:"ytFeaturedContentItemViewModelContent"},_.p(_.M,{cond:function(){var q;
return(q=g.data())==null?void 0:q.title},
then:function(){return _.p("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.p(_.c2,{text:function(){return g.data().title}}))}}),_.p(_.M,{cond:function(){var q;
return(q=g.data())==null?void 0:q.body},
then:function(){return _.p("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.p(_.c2,{text:function(){return g.data().body}}))}})))))},"yi");var lub=_.r(function(g){var u=function(){var L;return Flx((L=g.data())==null?void 0:L.titleFontSize)},q=function(){var L;
return m0K((L=g.data())==null?void 0:L.descriptionFontSize)},Q=function(){var L;
return((L=g.data())==null?void 0:L.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.p("yt-landing-page-view-model",{class:_.Ty("ytLandingPageViewModelHost",g.className)},_.p("div",{class:"ytLandingPageViewModelHeader"},_.p(_.M,{cond:function(){var L;return(L=g.data())==null?void 0:L.bannerImage},
then:function(L){return _.p("div",{class:"ytLandingPageViewModelHeaderImage"},_.p(_.Up,{data:function(){return L()}},{imageBannerViewModel:function(E){return _.p(_.iC,{data:E.data,
isPositionRelative:!0})}}))}}),_.p(_.M,{cond:function(){var L;
return(L=g.data())==null?void 0:L.bannerAnimation},
then:function(L){return _.p(_.B2,{data:function(){var E=L();if(E==null?0:E.url){var y;E={path:(y=E==null?void 0:E.url)!=null?y:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(E==null?0:E.payload){var v;E={animationData:JSON.parse((v=E==null?void 0:E.payload)!=null?v:""),autoplay:!0,loop:!0,renderer:"svg"}}else E=void 0;return{animationConfig:E}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.p("div",{class:"ytLandingPageViewModelHeaderTitle"},_.p(_.M,{cond:function(){var L;
return(L=g.data())==null?void 0:L.title},
then:function(L){return _.p("div",{class:_.Ty("ytLandingPageViewModelHeaderTitleContent",u)},_.p(_.c2,{text:function(){return L()}}))}}),_.p(_.M,{cond:function(){var L;
return(L=g.data())==null?void 0:L.description},
then:function(L){var E={};return _.p(_.c2,{className:_.Ty("ytLandingPageViewModelHeaderTitleDescription",q,(E.ytLandingPageViewModelHeaderTitleDescriptionMargin=Q,E)),text:function(){return L()}})}}))),_.p(_.M,{cond:function(){var L,E;
return(L=g.data())==null?void 0:(E=L.featuredContentList)==null?void 0:E.length},
then:function(){return _.p("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.p(_.Up,{data:function(){return g.data().featuredContentList}},{featuredContentItemViewModel:function(L){return _.p(ZsC,{data:L.data})}}))}}),_.p(_.M,{cond:function(){var L,E;
return(L=g.data())==null?void 0:(E=L.expandableContentList)==null?void 0:E.length},
then:function(){return _.p("div",{class:"ytLandingPageViewModelFaqSection"},_.p(_.Up,{data:function(){return g.data().expandableContentList}},{faqEntryViewModel:function(L){return _.p("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.p(_.fTo,{data:L.data}))}}))}}),_.p("div",{class:"ytLandingPageViewModelFooter"},_.p(_.M,{cond:function(){var L;
return(L=g.data())==null?void 0:L.legalCopy},
then:function(L){return _.p("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.p(_.c2,{text:function(){return L()}}))}}),_.p(_.M,{cond:function(){var L;
return(L=g.data())==null?void 0:L.actions},
then:function(L){return _.p("div",null,_.p(_.Up,{data:function(){return L()}},{flexibleActionsViewModel:function(E){return _.p(_.Mp,{data:E.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"zi");_.dL(_.r(function(g){return _.p("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.p("div",{class:"ytLpSectionGroupViewModelContainer"},_.p(_.Up,{data:function(){return g.data().sections}},{landingPageViewModel:function(u){return _.p(lub,{data:u.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Ai"),"yt-lp-section-group-view-model",{props:{data:_.H2}});var IuH=_.r(function(g){var u=g.data;var q=g.selectedKey;var Q=g.onSelected;var L=g.groupName;var E=function(){return u().text},y=function(){return u().attributedText},v=function(){return u().subtext},J=function(){return u().attributedSubtext},f=function(){return u().selectionText},t=function(){return u().trailingIconName},e=_.p("div",{class:"ytRadioButtonItemViewModelLabel"},_.p("div",null,_.p(_.M,{cond:E,
then:function(){return _.p("div",null,E)}}),_.p(_.M,{cond:y,
then:function(){return _.p(_.c2,{text:y})}}),_.p(_.M,{cond:v,
then:function(){return _.p("div",{class:"ytRadioButtonItemViewModelSubText"},v)}}),_.p(_.M,{cond:J,
then:function(){return _.p(_.c2,{text:J,className:"ytRadioButtonItemViewModelSubText"})}})),_.p(_.M,{cond:function(){return f()||t()},
then:function(){return _.p("div",{class:"ytRadioButtonItemViewModelTrailingContainer"},_.p(_.M,{cond:f,then:function(){return _.p(_.c2,{text:f,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}),_.p(_.M,{cond:t,
then:function(){return _.p(_.B1,{icon:t,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}))}}));
g={};return _.p("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.p(_.HQ,{name:L,checked:function(){return!(q==null||!q()||u().key!==(q==null?void 0:q()))},
onChange:function(G){Q==null||Q(G.target,u(),L==null?void 0:L())},
labelRenderable:function(){return e},
ariaLabel:function(){var G,R;var H=(R=(G=J())==null?void 0:G.content)!=null?R:v();var l,d;G=(d=(l=y())==null?void 0:l.content)!=null?d:E();return H?G+", "+H:G},
className:_.Ty((g.ytRadioButtonItemViewModelSubTitle=function(){return!!v()},g))}))},"Bi");var isn=_.r(function(g){var u=g.data,q=g.onSelected,Q=g.selectedKey,L=g.groupName;g=g.className;var E=_.N(_.jR(!1,void 0,"mDtSad")),y=E.next().value,v=E.next().value,J=function(){if(Q!==void 0){var f=Q();return!(!f||u().key!==f)}return y()};
E=_.YH(function(f){q?q(f.currentTarget,u(),L==null?void 0:L()):v(!y())});
return _.p("yt-selectable-item-view-model",{class:_.Ty("ytSelectableItemViewModelHost",g,"ytSelectableItemViewModelContainer"),"on:click":E,"prop:checked":J},_.p(_.Up,{data:function(){return u().content}},{cardViewModel:function(f){return _.p(_.AjK,{data:f.data,
isSelected:J})}}))},"Ci");var CNx=_.r(function(g){var u=g.data;var q=g.onSelected;var Q=g.selectedKey;var L=g.groupName;var E=function(){return(L==null?void 0:L())||u().key};
return _.p("yt-radio-button-group-view-model",{class:_.Ty("ytRadioButtonGroupViewModelHost",g.className)},_.p("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.p(_.Up,{data:function(){return u().radioButtons}},{radioButtonItemViewModel:function(y){return _.p(IuH,{data:y.data,
onSelected:q,selectedKey:Q,groupName:E})},
selectableItemViewModel:function(y){return _.p(isn,{data:y.data,onSelected:q,selectedKey:Q,groupName:E})}})))},"Di");var bs9=_.r(function(g){_.I4(function(){if(g.controlledMode()&&g.data().defaultSelected)_.Zf(Error("Gl"));else{var E;!g.controlledMode()&&((E=g.selected)==null?0:E.call(g))&&_.Zf(Error("Hl"))}});
var u=_.N(_.mX(function(){if(!g.controlledMode())return g.data().defaultSelected})),q=u.next().value,Q=u.next().value,L=function(){if(!g.controlledMode())return q();
var E;return(E=g.selected)==null?void 0:E.call(g)};
return _.p("yt-checkbox-item-view-model",{class:_.Ty("ytCheckboxItemViewModelHost",g.className)},_.p(_.A8,{data:function(){var E=g.data(),y=L();return{title:E.text,subtitle:E.subtext,superlabel:E.superlabel,isSelected:!!y,isDisabled:E.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!g.controlledMode()&&Q(!q());var E,y;(y=g.onTap)==null||y.call(g,!!L(),g.data(),(E=g.groupName)==null?void 0:E.call(g))},
isCompact:g.isCompact,disableHorizontalPadding:g.disableHorizontalPadding}))},"Ei");var dnz=_.r(function(g){var u=g.data;var q=g.controlledMode;var Q=g.selectedKeys;var L=g.onItemTap;var E=g.groupName;var y=g.disableHorizontalPadding;var v=function(){return(E==null?void 0:E())||u().key};
_.I4(function(){q()&&u().defaultSelectedKeys?_.Zf(Error("Il")):!q()&&(Q==null?0:Q())&&_.Zf(Error("Jl"))});
g=_.N(_.mX(function(){if(!q())return u().defaultSelectedKeys}));
var J=g.next().value,f=g.next().value,t=function(e,G,R){e=[];!q()&&G.key&&(e=a79(G.key,J()||[]),f(e));L==null||L(G,e,R)};
return _.p("yt-checkbox-group-view-model",{class:_.Ty("ytCheckboxGroupViewModelHost")},_.p("fieldset",{class:_.Ty("ytCheckboxGroupViewModelFieldset")},_.p("div",{role:"list"},_.p(_.Up,{data:function(){return u().checkboxes}},{checkboxItemViewModel:function(e){var G=e.data;
return _.p(bs9,{data:G,controlledMode:!0,selected:function(){var R=q()?(Q==null?void 0:Q())||[]:J()||[],H=G().key;return H?R.includes(H):!1},
onTap:t,groupName:v,disableHorizontalPadding:y})}}))))},"Fi");var Fox=_.Q5(VJE,{debugName:"ytAlertBannerViewModel"});_.nS(_.$E,function(g){_.RS(g,"ytAlertBannerViewModel","n0DHg",VJE)});var fx=_.r(function(g){var u=_.kq(XYt,_.dO(function(){var v;return(v=g.data())==null?void 0:v.noteFeedEntityKey},"")),q=_.kq(JDf,_.dO(function(){var v;
return(v=g.data())==null?void 0:v.userRatingEntityKey},"")),Q=_.w("enable_user_rating_web"),L=function(){var v,J,f;
return((v=u())==null?0:v.contributorNote)?(J=u())==null?void 0:J.contributorNote:(f=g.data())==null?void 0:f.existingNote},E=function(){var v,J;
return!!q()&&!!r7t((v=q())==null?void 0:v.helpfulnessValue,(J=g.data())==null?void 0:J.noteData)};
if(Q){var y={};return _.p("yt-note-view-model",{class:_.Ty("ytNoteViewModelHostUserRating",(y.ytNoteViewModelHostUserRatingPublishedNote=function(){var v,J,f,t;return((v=g.data())==null?void 0:(J=v.noteData)==null?void 0:J.isPublished)&&!((f=g.data())==null?0:(t=f.noteData)==null?0:t.isUserRatingForm)},y))},_.p("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.p("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.p(_.M,{cond:function(){var v,J;
return(v=g.data())==null?void 0:(J=v.noteData)==null?void 0:J.isPinned},
then:function(){return _.p(_.B1,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.p(_.M,{cond:function(){var v,J;return(v=g.data())==null?void 0:(J=v.noteData)==null?void 0:J.isPublished},
then:function(){return _.p(_.B1,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.p(_.Up,{data:function(){var v;
return(v=g.data())==null?void 0:v.metadata}},{contentMetadataViewModel:_.Om}),_.p("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var v,J;
return(J=_.c((v=g.data())==null?void 0:v.metadata,_.Wf8))==null?void 0:J.delimiter}),_.p(_.c2,{text:function(){var v;
return(v=L())==null?void 0:v.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.p(_.M,{cond:function(){var v,J;return!((v=g.data())==null?0:(J=v.noteData)==null?0:J.isUserRatingForm)},
then:function(){return _.p(_.Up,{data:function(){var v,J,f,t,e,G,R,H=!!((v=g.data())==null?0:(J=v.noteData)==null?0:J.isPinned);v=E();J=(f=g.data())==null?void 0:f.noteData;f=(t=u())==null?void 0:(e=t.contributorNote)==null?void 0:e.deleteAction;t=(G=g.data())==null?void 0:G.overflowButtonNoteWithRatingOnTapOverride;G=(R=g.data())==null?void 0:R.overflowButton;var l;R=(l=_.c(G,_.Rn))==null?void 0:l.accessibilityText;return H?Wl9(J,f,R):v?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:t,accessibilityText:R}}:G}},{buttonViewModel:function(v){return _.p(_.TT,{data:v.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.p("div",{class:"ytNoteViewModelNoteContent"},_.p(_.c2,{text:function(){var v;
return(v=L())==null?void 0:v.text}})),_.p(_.M,{cond:function(){var v,J,f,t;
return!((v=g.data())==null?0:(J=v.noteData)==null?0:J.isPinned)&&!((f=g.data())==null?0:(t=f.noteData)==null?0:t.isUserRatingForm)},
then:function(){return _.p(_.M,{cond:E,then:function(){return _.p("div",{class:"ytNoteViewModelUserRatingContainer"},_.p(_.c2,{text:function(){var v,J;return r7t((v=q())==null?void 0:v.helpfulnessValue,(J=g.data())==null?void 0:J.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.p(_.Up,{data:function(){var v;return(v=g.data())==null?void 0:v.userRatingButton}},{buttonViewModel:function(v){return _.p(_.TT,{data:v.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.p(_.M,{cond:function(){var v,J,f,t;
return!((v=g.data())==null?0:(J=v.noteData)==null?0:J.ignoreDivider)&&!((f=g.data())==null?0:(t=f.noteData)==null?0:t.isUserRatingForm)},
then:function(){return _.p("div",{class:"ytNoteViewModelDivider"},_.p(_.Up,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(v){return _.p(_.dAW,{data:v.data})}}))}}))}return _.p("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.p("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.p("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.p(_.M,{cond:function(){var v,J;return(v=g.data())==null?void 0:(J=v.noteData)==null?void 0:J.isPinned},
then:function(){return _.p(_.B1,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.p(_.M,{cond:function(){var v,J;return(v=g.data())==null?void 0:(J=v.noteData)==null?void 0:J.isPublished},
then:function(){return _.p(_.B1,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.p(_.M,{cond:function(){return Q},
then:function(){return _.p(_.Up,{data:function(){var v;return(v=g.data())==null?void 0:v.metadata}},{contentMetadataViewModel:function(v){return _.p(_.Om,{data:v.data})}})}}),_.p(_.c2,{text:function(){var v,J;
return(v=g.data())==null?void 0:(J=v.noteData)==null?void 0:J.headerText}}),_.p("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.p(_.c2,{text:function(){var v,J;
return(v=g.data())==null?void 0:(J=v.noteData)==null?void 0:J.delimiter}})),_.p(_.c2,{text:function(){var v,J;
return(v=u())==null?void 0:(J=v.contributorNote)==null?void 0:J.publishedTimeText}})),_.p(_.Up,{data:function(){var v,J,f;
return Wl9((v=g.data())==null?void 0:v.noteData,(J=u())==null?void 0:(f=J.contributorNote)==null?void 0:f.deleteAction)}},{buttonViewModel:function(v){return _.p(_.TT,{data:v.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.p("div",{class:"ytNoteViewModelNoteContent"},_.p(_.c2,{text:function(){var v,J;
return(v=u())==null?void 0:(J=v.contributorNote)==null?void 0:J.text}})))},"Gi");
fx.idomCompat=!0;_.dL(_.r(function(g){var u=_.dO(function(){var V;return(V=g.data())==null?void 0:V.flowStateEntityKey},""),q=_.kq(_.mZ,u),Q=_.kq(XYt,_.dO(function(){var V;
return(V=g.data())==null?void 0:V.noteFeedEntityKey},"")),L=_.N(_.mX(function(){var V;
return(V=_.c(g.data().helpfulnessValue,ZXt))==null?void 0:V.defaultSelectedKey})),E=L.next().value,y=L.next().value;
L=_.N(_.mX(function(){var V,z,O;return(O=_.c((V=_.c(g.data().helpfulnessValue,ZXt))==null?void 0:(z=V.radioButtons)==null?void 0:z.find(function(W){var x;return((x=_.c(W,ldh))==null?void 0:x.key)===E()}),ldh))==null?void 0:O.value}));
var v=L.next().value,J=L.next().value;L=_.N(_.mX(function(){var V;return(V=_.c(g.data().helpfulReasons,A8f))==null?void 0:V.defaultSelectedKeys}));
var f=L.next().value,t=L.next().value;L=_.N(_.mX(function(){var V;return(V=_.c(g.data().notHelpfulReasons,A8f))==null?void 0:V.defaultSelectedKeys}));
var e=L.next().value,G=L.next().value,R=function(V,z){y(z.key);J(z.value);t([]);G([])},H=function(){var V,z;
return((V=v())==null?void 0:V.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((z=v())==null?void 0:z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},l=function(){var V,z;
return((V=v())==null?void 0:V.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((z=v())==null?void 0:z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},d=function(V){TyZ(V.key,f,t)},F=function(V){TyZ(V.key,e,G)};
_.I4(function(){var V,z,O;vZK((V=g.data())==null?void 0:(z=V.userRatingFormSchema)==null?void 0:z.id,{isValid:function(){return!!E()},
formData:function(){var W=v(),x=YIb(f(),_.c(g.data().helpfulReasons,A8f)),k=YIb(e(),_.c(g.data().notHelpfulReasons,A8f));W={helpfulnessValue:W==null?void 0:W.noteHelpfulnessValue};if(x){W.helpfulReasons=[];x=_.N(x);for(var LZ=x.next();!LZ.done;LZ=x.next()){LZ=LZ.value;var sb=void 0;if((sb=LZ)==null?0:sb.noteHelpfulReason)sb=void 0,W.helpfulReasons.push((sb=LZ)==null?void 0:sb.noteHelpfulReason)}}if(k)for(W.notHelpfulReasons=[],k=_.N(k),x=k.next();!x.done;x=k.next())if(x=x.value,LZ=void 0,(LZ=x)==
null?0:LZ.noteNotHelpfulReason)LZ=void 0,W.notHelpfulReasons.push((LZ=x)==null?void 0:LZ.noteNotHelpfulReason);return{userRatingFormData:W}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(O=_.c(q(),grH))==null?void 0:O.submitFormParams},onSubmitResult:function(){var W,x=(W=_.c(q(),grH))==null?void 0:W.userRatingEntityKey,k;W={key:x,helpfulnessValue:(k=v())==null?void 0:k.noteHelpfulnessValue};x&&_.bU(_.u2("contextNoteUserRatingEntityPayload",x,W));var LZ;x=(LZ=g.data())==null?void 0:LZ.viewNoteFlowStepId;var sb;if((sb=Q())==null||!sb.contributorNote){var Rm;x=(Rm=g.data())==null?void 0:Rm.zeroStateFlowStepId}(LZ=
Object.assign({},q()))&&x&&(LZ.currentStepId=x,LZ.stepIdStack=[x],_.bU(_.u2("flowStateEntity",u(),LZ)));var M3;(LZ=(M3=g.data())==null?void 0:M3.ratingSubmittedSnackbarCommand)&&_.ey(LZ)},
disableDuringSubmission:!0})});
return _.p("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.p(_.Up,{data:function(){var V=_.c(q(),grH);if(V){var z;var O={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:V==null?void 0:(z=V.note)==null?void 0:z.headerText}]}],delimiter:"\u2022"}},existingNote:V.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else O=void 0;return O}},{noteViewModel:function(V){return _.p("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.p(fx,{data:V.data}))}}),_.p(_.Up,{data:function(){var V;
return(V=g.data())==null?void 0:V.helpfulnessValue}},{radioButtonGroupViewModel:function(V){return _.p("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.p(CNx,{data:V.data,
onSelected:R,selectedKey:E}))}}),_.p(_.M,{cond:H,
then:function(){return _.p("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.p("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.p(_.c2,{text:function(){var V;return(V=g.data())==null?void 0:V.helpfulReasonQuestion}})),_.p(_.Up,{data:function(){var V;
return(V=g.data())==null?void 0:V.helpfulReasons}},{checkboxGroupViewModel:function(V){return _.p(dnz,{data:V.data,
onItemTap:d,selectedKeys:f,controlledMode:!0})}}))}}),_.p(_.M,{cond:l,
then:function(){return _.p("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.p("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.p(_.c2,{text:function(){var V;return(V=g.data())==null?void 0:V.notHelpfulReasonQuestion}})),_.p(_.Up,{data:function(){var V;
return(V=g.data())==null?void 0:V.notHelpfulReasons}},{checkboxGroupViewModel:function(V){return _.p(dnz,{data:V.data,
onItemTap:F,selectedKeys:e,controlledMode:!0})}}))}}),_.p(_.M,{cond:function(){return!H()&&!l()},
then:function(){return _.p(_.Up,{data:function(){var V;return(V=g.data())==null?void 0:V.helpfulNoteFeatures}},{alertBannerViewModel:function(V){return _.p("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.p(Fox,{data:V.data}))}})}}))},"Hi"),"yt-note-user-rating-view-model",{props:{data:_.H2}});_.dL(fx,"yt-note-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=_.kq(XYt,_.dO(function(){var q;return(q=g.data())==null?void 0:q.noteFeedEntityKey},""));
return _.p("yt-notes-wrapper-view-model",{class:_.Ty("ytNotesWrapperViewModelHost")},_.p(_.M,{cond:function(){var q,Q,L;return!((q=g.data())==null||!q.existingNotes)||!((Q=g.data())==null||!Q.currentNote)&&!((L=u())==null||!L.contributorNote)},
then:function(){return _.p(_.U9,null,_.p(_.Up,{data:function(){var q,Q,L,E;return((Q=_.c((q=g.data())==null?void 0:q.currentNote,usz))==null?0:(L=Q.noteData)==null?0:L.isPublished)?(E=g.data())==null?void 0:E.currentNote:void 0}},{noteViewModel:function(q){return _.p(fx,{data:q.data})}}),_.p(_.Up,{data:function(){var q;
return(q=g.data())==null?void 0:q.existingNotes}},{noteViewModel:function(q){var Q=q.data;
return _.p(_.M,{cond:function(){var L,E;return(L=Q())==null?void 0:(E=L.noteData)==null?void 0:E.isPublished},
then:function(){return _.p(fx,{data:Q})}})}}),_.p(_.Up,{data:function(){var q,Q,L,E,y;
return((Q=_.c((q=g.data())==null?void 0:q.currentNote,usz))==null?0:(L=Q.noteData)==null?0:L.isPublished)||(E=u())==null||!E.contributorNote?void 0:(y=g.data())==null?void 0:y.currentNote}},{noteViewModel:function(q){return _.p(fx,{data:q.data})}}),_.p(_.Up,{data:function(){var q;
return(q=g.data())==null?void 0:q.existingNotes}},{noteViewModel:function(q){var Q=q.data;
return _.p(_.M,{cond:function(){var L,E;return!((L=Q())==null?0:(E=L.noteData)==null?0:E.isPublished)},
then:function(){return _.p(fx,{data:Q})}})}}))},
else:function(){return _.p(_.Up,{data:function(){var q;return(q=g.data())==null?void 0:q.zeroStateData}},{contributorZeroStateViewModel:AYx})}}))},"Ii"),"yt-notes-wrapper-view-model",{props:{data:_.H2}});var Klh=new Map;var Byh;var zzh=new Map;var auf=_.r(function(g){var u=_.FI(g,{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}),q=u.label,Q=u.hideLabel,L=u.text,E=u.placeholder,y=u.hint;g=u.rows;var v=u.overflowStyle,J=u.outline,f=u.disabled,t=u.disableNewLines,e=u.onInput,G=u.ariaLabel,R=u.timePickerData,H=u.error,l=u.hasError,d=u.validation,F=u.characterLimit,
V=_.Hk("textarea");u=_.N(_.mX(function(){return L()}));
var z=u.next().value,O=u.next().value;u=_.N(_.jR(!1,void 0,"PheJId"));var W=u.next().value,x=u.next().value,k=function(){x(!0)},LZ=function(){x(!1)};
_.I4(function(){var tb=V.value,lx=v(),NE=z();lx==="expand-vertically"&&NE&&kkZ(tb);V.value.addEventListener("focusin",k);V.value.addEventListener("focusout",LZ)});
_.dB(function(){V.value.removeEventListener("focusin",k);V.value.removeEventListener("focusout",LZ)});
var sb=function(){var tb;return(tb=d())==null?void 0:tb.validate(z())},Rm=function(){var tb,lx,NE;
return(NE=(tb=H())==null?void 0:tb.maxChars)!=null?NE:(lx=F())==null?void 0:lx.maxChars},M3=function(){return Rm()===void 0?!1:!sb()&&z().length>Rm()},tT=function(){var tb,lx;
return((tb=H())==null?void 0:tb.errorMessage)||sb()||M3()&&((lx=F())==null?void 0:lx.errorMessage)},mJ=function(){return!!tT()||l()};
u=_.YH(function(tb){if(!tb.currentTarget)return!1;tb=tb.currentTarget;O(tb.value);v()==="expand-vertically"&&kkZ(tb);e==null||e(tb.value);return!0});
var hT=_.YH(function(tb){t()&&tb.key==="Enter"&&tb.preventDefault();return!1}),Yu=_.YH(function(){V.value.focus()}),Mx=function(){return E()||q()},po={},KZ={},G2={},Ab={};
return _.p("textarea-shape",{class:_.Ty("ytStandardsTextareaShapeHost",(po.ytStandardsTextareaShapeTimePicker=function(){var tb;return(tb=R())==null?void 0:tb.useTimePickerStyles},po))},_.p("div",{class:_.Ty("ytStandardsTextareaShapeTextareaContainer",(KZ.ytStandardsTextareaShapeTextareaContainerOutline=J,KZ.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=f,KZ.ytStandardsTextareaShapeTextareaContainerOutlineError=mJ,KZ.ytStandardsTextareaShapeTextareaContainerLabelHidden=Q,KZ)),
"on:click":Yu},_.p("label",{class:_.Ty("ytStandardsTextareaShapeLabel",(G2.ytStandardsTextareaShapeLabelFocused=W,G2.ytStandardsTextareaShapeLabelDisabled=f,G2.ytStandardsTextareaShapeLabelError=function(){return mJ()&&!f()},G2.ytStandardsTextareaShapeLabelHidden=function(){return Q()||!W()&&!z()&&!!Mx()},G2))},q),_.p("div",{class:_.Ty("ytStandardsTextareaShapePlaceholder",(Ab.ytStandardsTextareaShapePlaceholderVisible=function(){return!W()&&!z()},Ab)),
"aria-hidden":"true"},Mx),_.p("textarea",{el:V,"aria-label":G,class:"ytStandardsTextareaShapeTextarea",rows:g,disabled:f,placeholder:Mx,"prop:value":z,"on:input":u,"on:keydown":hT})),_.p(_.M,{cond:function(){return y()&&!mJ()},
then:function(){var tb={};return _.p("div",{class:_.Ty("ytStandardsTextareaShapeHint",(tb.ytStandardsTextareaShapeHintDisabled=f,tb))},_.p("div",{class:"ytStandardsTextareaShapeHintHintMessage"},y))}}),_.p(_.M,{cond:tT,
then:function(){return _.p(mnt,{disabled:f},_.p("div",{class:"ytStandardsTextareaShapeErrorMessage"},tT),_.p(_.M,{cond:M3,then:function(){return _.p("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return z().length+"/"+Rm()})}}))}}))},"Ji");
auf.idomCompat={callbacks:{onInput:!0}};var mnt=_.r(function(g){var u={};return _.p("div",{class:_.Ty("ytStandardsTextareaShapeError",(u.ytStandardsTextareaShapeErrorDisabled=g.disabled,u)),role:"alert"},_.p(_.B1,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),g.children)},"Ki");var VHx=_.r(function(g){var u=g.data;var q=g.controlledMode;var Q=g.disableFormsApiMode;var L=g.text;var E=g.onInput;var y=g.characterLimit;var v=g.validation;g=g.disabled;var J=function(){return u().formFieldMetadata},f=function(){return(q==null?0:q())?2:!J()||Q!=null&&Q()?1:3};
_.I4(function(){f()===2?(L==null?void 0:L())===void 0&&_.Zf(Error("Ll")):f()===3&&((L==null?void 0:L())!==void 0&&_.Zf(Error("Ml")),(v==null?void 0:v())!==void 0&&_.Zf(Error("Nl")),(y==null?void 0:y())!==void 0&&_.Zf(Error("Ol")),E!==void 0&&_.Zf(Error("Pl")))});
var t=nyZ(J);return _.p("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.p(auf,{text:function(){if(f()===2)return L==null?void 0:L();if(f()===3){var e;return(e=t())==null?void 0:e.value}return""},
label:function(){var e;return(e=u().contentProperties)==null?void 0:e.labelText},
hideLabel:function(){var e;return(e=u().displayProperties)==null?void 0:e.hideLabel},
placeholder:function(){var e;return(e=u().contentProperties)==null?void 0:e.placeholderText},
hint:function(){var e;return(e=u().contentProperties)==null?void 0:e.hintText},
outline:function(){var e;return!((e=u().displayProperties)==null?0:e.hideBorder)},
overflowStyle:function(){var e;return((e=u().displayProperties)==null?0:e.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:g,disableNewLines:function(){var e;return(e=u().displayProperties)==null?void 0:e.disableNewLines},
onInput:function(e){if(f()===3){var G;(G=t())==null||G.updateValue(e)}else E==null||E(e)},
error:function(){if(f()===3){var e;if(((e=t())==null?0:e.errors)&&t().errors.length>0){e=t().errors[0].message;var G,R=(G=u().contentProperties)==null?void 0:G.maxCharacterCount;return{errorMessage:e,maxChars:R}}}},
validation:v,characterLimit:y,rows:function(){var e;return(e=u().displayProperties)==null?void 0:e.rows}}))},"Li");var X3z=_.r(function(g){var u=g.data;return _.p("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.p(auf,{text:g.text,label:function(){var q;return(q=u().contentProperties)==null?void 0:q.labelText},
placeholder:function(){var q;return(q=u().contentProperties)==null?void 0:q.placeholderText},
hint:function(){var q;return(q=u().contentProperties)==null?void 0:q.hintText},
outline:function(){var q;return!((q=u().displayProperties)==null?0:q.hideBorder)},
overflowStyle:function(){var q;return((q=u().displayProperties)==null?0:q.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var q;return(q=u().displayProperties)==null?void 0:q.disableNewLines},
onInput:g.onInput,characterLimit:g.characterLimit,validation:g.validation,rows:function(){var q;return(q=u().displayProperties)==null?void 0:q.rows}}))},"Mi");var rYC=_.r(function(g){var u=_.N(_.mX(function(){var sb,Rm;return((sb=g.data().structuredContextNoteFormSchema)==null?0:(Rm=sb.initialValues)==null?0:Rm.noteBody)?g.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),q=u.next().value,Q=u.next().value;
u=_.N(_.mX(function(){g.data();return!1}));
var L=u.next().value,E=u.next().value;u=_.N(_.mX(function(){g.data();return!1}));
var y=u.next().value,v=u.next().value;u=_.N(_.mX(function(){var sb,Rm;return((sb=g.data().structuredContextNoteFormSchema)==null?0:(Rm=sb.initialValues)==null?0:Rm.timestamp)?g.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var J=u.next().value,f=u.next().value;u=_.N(_.mX(function(){g.data();return!1}));
var t=u.next().value,e=u.next().value;u=_.N(_.mX(function(){var sb,Rm;return((sb=g.data().structuredContextNoteFormSchema)==null?0:(Rm=sb.initialValues)==null?0:Rm.sources)?[g.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var G=u.next().value,R=u.next().value;u=_.N(_.mX(function(){g.data();return!1}));
var H=u.next().value,l=u.next().value;u=_.N(_.mX(function(){return!1}));
var d=u.next().value,F=u.next().value;_.I4(function(){var sb;DZH((sb=g.data().structuredContextNoteFormSchema)==null?void 0:sb.id,{isSubmitting:d,onSubmit:function(){F(!0);var Rm=EbL(q(),J(),G(),g.data()),M3=_.Bk().resolve(_.Gy);Rm&&M3&&M3.resolveCommand(Rm,{commandController:{onSuccess:function(){F(!1)}}})},
isValid:function(){return L()&&!y()&&!t()&&!H()}})});
var V=function(sb){if(sb!==void 0&&(Q(sb),!L()&&sb.length>0&&E(!0),L())){var Rm=U0n(g.data());if(Rm){var M3=Rm.minLength;Rm=Rm.maxLength;M3&&sb.length<M3?v(!0):Rm&&sb.length>Rm?v(!0):v(!1)}}},z=function(sb){if(sb!==void 0){f(sb);
if(sb.length>0){var Rm,M3,tT,mJ,hT=uaf((Rm=g.data())==null?void 0:(M3=Rm.structuredContextNoteFormSchema)==null?void 0:(tT=M3.fieldSchemas)==null?void 0:(mJ=tT.timestamp)==null?void 0:mJ.validationSchema);if(hT&&(Rm=hT.regex)&&!(new RegExp(Rm)).test(sb)){e(!0);return}}e(!1)}},O=function(sb){if(sb!==void 0){var Rm=sb.split(/[ \n]/).map(function(M3){return M3.trim()});
R(Rm);if(sb.length>0)for(sb=_.N(Rm),Rm=sb.next();!Rm.done;Rm=sb.next())if(!LZh(Rm.value)){l(!0);return}l(!1)}},W=function(){return{validate:function(sb){if(L()){var Rm=U0n(g.data());
if(Rm){var M3=Rm.minLength;Rm=Rm.translations;if(M3&&sb.length<M3)return Rm==null?void 0:Rm.minLengthErrorMessage}}}}},x=function(){var sb=U0n(g.data()),Rm=sb==null?void 0:sb.maxLength,M3;
sb=sb==null?void 0:(M3=sb.translations)==null?void 0:M3.maxLengthErrorMessage;if(Rm&&sb)return{maxChars:Rm,errorMessage:sb}},k=function(){return{validate:function(sb){if(sb){var Rm,M3,tT,mJ,hT=uaf((Rm=g.data())==null?void 0:(M3=Rm.structuredContextNoteFormSchema)==null?void 0:(tT=M3.fieldSchemas)==null?void 0:(mJ=tT.timestamp)==null?void 0:mJ.validationSchema);
if(hT&&(Rm=hT.regex,hT=hT.translations,Rm&&!(new RegExp(Rm)).test(sb)))return hT==null?void 0:hT.regexErrorMessage}}}},LZ=function(){return{validate:function(sb){if(sb){var Rm,M3,tT,mJ,hT=Q1Z((Rm=g.data())==null?void 0:(M3=Rm.structuredContextNoteFormSchema)==null?void 0:(tT=M3.fieldSchemas)==null?void 0:(mJ=tT.sources)==null?void 0:mJ.validationSchema);
if(hT&&(Rm=hT.translations,Rm==null?0:Rm.selectedErrorMessage))for(sb=sb.split(/[ \n]/).map(function(Yu){return Yu.trim()}),sb=_.N(sb),M3=sb.next();!M3.done;M3=sb.next())if(!LZh(M3.value))return sb=void 0,(sb=Rm)==null?void 0:sb.selectedErrorMessage}}}};
return _.p("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.p("div",{class:"ytStructuredContextNoteViewModelTextField"},_.p(_.Up,{data:function(){var sb;return(sb=g.data())==null?void 0:sb.noteContents}},{textFormFieldViewModel:function(sb){return _.p(X3z,{data:sb.data,
onInput:V,validation:W,characterLimit:x})},
textFieldViewModel:function(sb){return _.p(VHx,{data:sb.data,disableFormsApiMode:!0,onInput:V,validation:W,characterLimit:x})}})),_.p("div",{class:"ytStructuredContextNoteViewModelTextField"},_.p(_.Up,{data:function(){var sb;
return(sb=g.data())==null?void 0:sb.noteTimestamp}},{textFormFieldViewModel:function(sb){return _.p(X3z,{data:sb.data,
onInput:z,validation:k})},
textFieldViewModel:function(sb){return _.p(VHx,{data:sb.data,disableFormsApiMode:!0,onInput:z,validation:k})}})),_.p("div",{class:"ytStructuredContextNoteViewModelTextField"},_.p(_.Up,{data:function(){var sb;
return(sb=g.data())==null?void 0:sb.noteSources}},{textFormFieldViewModel:function(sb){return _.p(X3z,{data:sb.data,
onInput:O,validation:LZ})},
textFieldViewModel:function(sb){return _.p(VHx,{data:sb.data,disableFormsApiMode:!0,onInput:O,validation:LZ})}})))},"Ni");
rYC.idomCompat=!0;_.dL(rYC,"yt-structured-context-note-view-model",{props:{data:_.H2}});var Wot=_.r(function(g){var u=_.N(_.mX(function(){var E;if((E=g.controlled)==null?0:E.call(g))return[];var y;return(((y=g.data())==null?void 0:y.chips)||[]).map(function(v){v=_.c(v,_.wS);if(v==null?0:v.selected)return Pbf(v.chipValue)}).filter(function(v){return v!==void 0})})),q=u.next().value,Q=u.next().value,L=function(E){var y=Pbf(E.chipValue);
if(y!==void 0){var v;if((v=g.controlled)==null?0:v.call(g))return void g.controlled().onTap(y);E=q().includes(y)?[].concat(_.na(q().filter(function(f){return f!==y}))):[].concat(_.na(q()),[y]);
Q(E);var J;if((J=g.uncontrolled)==null?0:J.call(g))g.uncontrolled().onUpdate(E)}};
return _.p("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.p(_.R4,{each:function(){return g.data().chips||[]}},function(E){return _.p("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.p(_.u3Z,{data:function(){return _.c(E,_.wS)},
selected:function(){var y;if(y=_.c(E,_.wS)){var v=Pbf(y.chipValue);if(v!==void 0){var J;y=((J=g.controlled)==null?0:J.call(g))?g.controlled().selectedValues.includes(v):q().includes(v)}else y=void 0}else y=!1;return y},
callback:L}))}))},"Oi");var THb=_.r(function(g){var u=g.data;var q=function(){var v;return((v=u())==null?void 0:v.flowStateKey)||""},Q=_.kq(_.mZ,q),L=function(){var v;
return(v=_.c(Q(),TR9))==null?void 0:v.chips},E=function(v){if(v!==void 0){var J=L()||[];
J=J.find(function(f){return f===v})?J.filter(function(f){return f!==v}):[].concat(_.na(J),[v]);
J=Object.assign({},Q(),{feedbackFormFlowState:Object.assign({},_.c(Q(),TR9),{chips:J})});_.bU(_.u2("flowStateEntity",q(),J))}},y=function(){var v;
return _.c((v=u())==null?void 0:v.inputBox,$o9)};
g=_.pN(function(v){var J=y();J=!(J==null?0:J.maxChars)||v.length<=J.maxChars;v=Object.assign({},Q(),{feedbackFormFlowState:Object.assign({},_.c(Q(),TR9),{detail:v}),abuseReportFlowState:Object.assign({},_.c(Q(),yQ),{navigationEnabled:J})});_.bU(_.u2("flowStateEntity",q(),v))},150);
return _.p("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.p("div",{class:"ytFeedbackFormViewModelChips"},_.p(_.Up,{data:function(){var v;return(v=u())==null?void 0:v.chipSelection}},{chipSelectionFormFieldViewModel:function(v){return _.p(Wot,{data:v.data,
controlled:function(){return{selectedValues:L()||[],onTap:E}}})}})),_.p("div",{class:"ytFeedbackFormViewModelInputBox"},_.p(auf,{text:function(){var v;
return(v=_.c(Q(),TR9))==null?void 0:v.detail},
placeholder:function(){var v;return((v=y())==null?void 0:v.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var v=y();if(v&&v.maxChars)return{maxChars:v.maxChars,errorMessage:v.maxCharsExceededErrorMessage||""}},
onInput:g})),_.p("div",{class:"ytFeedbackFormViewModelFooterText"},_.p(_.c2,{text:function(){return u().footerText}})))},"Pi");
THb.idomCompat=!0;_.dL(THb,"yt-feedback-form-view-model",{props:{data:_.H2}});var h3p=_.r(function(g){var u=g.data;var q=_.kq(EZp,function(){return u().flowStateKey||""}),Q=function(){var L;
_.ey((L=_.c(q(),yQ))==null?void 0:L.navigationCommand)};
return _.p("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.p("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.p(_.Up,{data:function(){return u().cancelButton}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:Q})}}),_.p(_.Up,{data:function(){var L;
if(u().navButton){var E=Object;var y=E.assign,v=_.c(u().navButton,_.Rn),J=((L=_.c(q(),yQ))==null?0:L.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",f,t;L=_.c((f=_.c(q(),yQ))==null?void 0:f.navigationCommand,_.Jo);f=(t=_.c(L,_.ao))==null?void 0:t.url;E={buttonViewModel:y.call(E,{},v,{state:J,iconName:f?"OPEN_IN_NEW":""})}}else E=void 0;return E}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:Q})}})))},"Qi");
h3p.idomCompat=!0;_.dL(h3p,"yt-report-form-bottom-bar-view-model",{props:{data:_.H2}});var YVz=_.r(function(g){var u=g.nextStep;return _.p("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.p("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.p(_.B1,{icon:function(){return u().iconName||""}})),_.p("div",null,_.p(_.c2,{text:function(){return u().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ri"),Osh=_.r(function(g){var u=g.data;
var q,Q=(q=_.Bk().resolve(_.xv(_.gy)))==null?void 0:q(),L=_.kq(_.mZ,function(){return u().flowStateKey||""});
return _.p("yt-report-form-confirmation-page-view-model",{class:function(){var E;return((E=_.c(L(),yQ))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.p("div",{class:function(){var E;
return((E=_.c(L(),yQ))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.p(_.IT,{data:function(){return Q&&u().imageDark?u().imageDark:u().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.p("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.p("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return u().confirmationHeader}),_.p("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.p(_.c2,{text:function(){return u().confirmationText}})),_.p("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.p(_.c2,{text:function(){return u().lawEnforcementText}})),
_.p("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return u().whatToExpectHeader}),_.p(_.M,{cond:function(){return u().nextSteps},
then:function(E){return _.p("div",null,_.p(_.R4,{each:E},function(y){return _.p(YVz,{nextStep:y})}))}}),_.p(_.M,{cond:function(){return u().legalReportText},
then:function(E){return _.p("div",null,_.p(_.c2,{text:E,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Si");
Osh.idomCompat=!0;_.dL(Osh,"yt-report-form-confirmation-page-view-model",{props:{data:_.H2}});var Kof=_.r(function(g){var u=g.data;var q=function(){var E;return((E=_.c(u().inputBox,$o9))==null?void 0:E.maxChars)||500},Q=function(){return u().flowStateKey||""},L=_.kq(_.mZ,Q);
g=_.pN(function(E){E=Object.assign({},L(),{flowFormState:{isValid:E.length<=q()},abuseReportFlowState:{userComments:E,navigationEnabled:!(E.length>q()),isReportFormDirty:!0}});_.CE().dispatch(_.JZ("flowStateEntity",Q(),E))},150);
_.I4(function(){var E=Object.assign({},L(),{flowFormState:{isValid:!0}});_.CE().dispatch(_.JZ("flowStateEntity",Q(),E))});
return _.p("yt-report-form-details-page-view-model",{class:function(){var E;return((E=_.c(L(),yQ))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.p("h1",{class:function(){var E;
return((E=_.c(L(),yQ))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return u().detailsPageHeader}),_.p("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.p(_.c2,{text:function(){return u().bodyText}})),_.p("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.p(auf,{label:function(){var E;
return((E=_.c(u().inputBox,$o9))==null?void 0:E.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var E;return{errorMessage:((E=_.c(u().inputBox,$o9))==null?void 0:E.maxCharsExceededErrorMessage)||"",maxChars:q()}},
onInput:g})))},"Ti");
Kof.idomCompat=!0;_.dL(Kof,"yt-report-form-details-page-view-model",{props:{data:_.H2}});var xnp=_.r(function(g){var u=g.data;var q=function(){return u().flowStateKey||""},Q=_.kq(_.mZ,q),L=function(){return _.c(Q(),yQ)};
return _.p("yt-report-form-reason-select-page-view-model",{class:function(){var E;return((E=L())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.p("h1",{class:function(){var E;
return((E=L())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return u().pageHeader}),_.p("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.p(_.c2,{text:function(){return u().bodyText}})),_.p("div",{class:function(){var E;
return((E=L())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.p(CNx,{data:function(){return _.c(u().radioButtonGroup,ZXt)},
onSelected:function(E,y){E=Object.assign({},Q(),{abuseReportFlowState:Object.assign({},L(),{reasonKey:y.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:y.command})});_.bU(_.u2("flowStateEntity",q(),E))},
selectedKey:function(){var E;return(E=L())==null?void 0:E.reasonKey},
groupName:"report-form-reason-select-page"})))},"Ui");
xnp.idomCompat=!0;_.dL(xnp,"yt-report-form-reason-select-page-view-model",{props:{data:_.H2}});var BHt=_.r(function(g){var u=g.data;var q,Q=(q=_.Bk().resolve(_.xv(_.gy)))==null?void 0:q();return _.p("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.p("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.p(_.IT,{data:function(){return Q&&u().imageDark?u().imageDark:u().image},
alt:""})),_.p("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.p("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return u().header}),_.p(_.c2,{text:function(){return u().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Vi");
BHt.idomCompat=!0;_.dL(BHt,"yt-report-form-sign-in-page-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=function(){return u().titleSuperscript},Q=function(){return u().answersShelf},L=function(){return u().videoShelf},E=function(){var W;
return(W=u().textInputPlaceholder)==null?void 0:W.content},y=function(){return u().showOpenTextInput},v=function(){var W;
return(W=u().textInputValue)==null?void 0:W.content},J="",f=function(){return u().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
g=_.N(_.jR("",void 0,"ioQph"));var t=g.next().value,e=g.next().value;g=_.N(_.jR(!1,void 0,"Srxao"));var G=g.next().value,R=g.next().value,H=function(){return{state:G()||t()?"active":"disabled",disabled:!(G()||t())}};
_.lL(function(){y()&&v()&&e(v())});
var l=function(W){var x=u().onUpdateText;x&&_.ey(x,{form:{userQuery:W}});e(W)},d=_.pN(function(W){l(W.target.value.trim())},150),F=_.YH(function(W){var x;
J=(x=W.target.value)==null?void 0:x.trim();d(W);return!1}),V=_.YH(function(W){W.key==="Enter"&&(G()||t())&&(l(W.target.value.trim()),O());
return!1}),z=function(W,x){R(x);
if(x){if(u().isMultiTurnFlow&&!J){var k;l((k=W==null?void 0:W.text)!=null?k:"")}u().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&O()}else e(J)},O=function(){var W=_.c(u().nextButtonViewModel,_.Rn);
if(W==null?0:W.trackingParams){W=_.Lr(W.trackingParams);var x=_.j_();x&&W&&_.iH(x,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(W=u().onNextStepCommand)&&_.ey(W)};
g={};return _.p("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.p("div",{class:"ytwTalkToRecsTopCornerButton"},_.p(_.Up,{data:function(){return u().topCornerButton}},{buttonViewModel:_.TT})),_.p("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.p("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.p(_.c2,{text:function(){return u().title}}),_.p(_.M,{cond:q,
then:function(){return _.p("sup",{class:"ytwTalkToRecsSuperScript"},_.p(_.c2,{text:q}))}})),_.p("div",{class:"ytwTalkToRecsSubtitle"},_.p(_.c2,{text:function(){return u().subtitle}})),_.p("div",{class:"ytwTalkToRecsResultsShelf"},_.p(_.M,{cond:Q,
then:function(){return _.p(_.Up,{data:Q},{chipsShelfViewModel:function(W){return _.p("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.p(_.UJ,{data:W.data,callback:z,selectionBehavior:f}))}})}}),_.p(_.M,{cond:L,
then:function(){return _.p(_.Up,{data:L},{horizontalShelfViewModel:function(W){return _.p("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.p(_.IS,{data:W.data,thumbnailAspectRatio:0}))}})}})),_.p("div",{class:_.Ty("ytwTalkToRecsRefinementContainer",(g.ytwTalkToRecsBottomMargin=function(){return u().isMultiTurnFlow},g))},_.p(_.M,{cond:y,
then:function(){return _.p("div",{class:"ytwTalkToRecsUserInputBox"},_.p("input",{type:"text",class:"ytwTalkToRecsTextInput",title:E,placeholder:E,value:t,"on:input":F,"on:keyup":V,maxlength:200}))}}),_.p(_.Up,{data:function(){return u().isMultiTurnFlow?u().nextButtonViewModel:void 0}},{buttonViewModel:function(W){return _.p("div",{class:"ytwTalkToRecsFlowControlButtons"},_.p(_.TT,{data:W.data,
buttonOverrides:H}))}}),_.p(_.Up,{data:function(){return u().isMultiTurnFlow?u().resetButtonViewModel:void 0}},{buttonViewModel:function(W){return _.p("div",{class:"ytwTalkToRecsFlowControlButtons"},_.p(_.TT,{data:W.data,
onClick:function(){var x,k=(x=_.c(u().resetButtonViewModel,_.Rn))==null?void 0:x.onTap;k&&_.ey(k)}}))}}))))},"Xi"),"yt-talk-to-recs-view-model",{props:{data:_.H2}});var N_t={sources:[{clientResource:{imageName:"CHECK"}}]};var z39=_.r(function(g){var u=_.Hk("div");g=_.FI(g,{error:void 0});var q=g.data,Q=g.error,L=g.onSelected;g=g.className;var E=_.N(_.mX(function(){return vbh(q())})),y=E.next().value,v=E.next().value;
j1h(q,function(R){v(R);var H,l,d=yZt((H=q().options)==null?void 0:(l=H[R])==null?void 0:l.value,q().type);L==null||L(d);u.value.focus()});
E=_.YH(function(){if(!q().disabled){var R=q(),H=y(),l=u.value;R.options&&(R=s1C(R.options,H,R.label),_.Bk().resolve(_.vy).openSheet({viewModel:R},l))}});
var J=_.gNq(),f=function(){return!!Q()},t=function(){return!!q().disabled},e={},G={};
return _.p("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.p("div",{class:_.Ty("ytDropdownViewModelDropdownContainer",g,(e.ytDropdownViewModelDropdownContainerErrorBorder=f,e.ytDropdownViewModelDropdownContainerDisabled=t,e)),"on:click":E,el:u,role:"combobox",tabindex:0,"on:keydown":J,"aria-invalid":f,"aria-disabled":t,"aria-describedby":function(){return f()?"dropdown-view-model-error":void 0}},_.p("div",{class:"ytDropdownViewModelText"},DWh(q,f,y),pbK(q,y)),_.p("div",{class:_.Ty("ytDropdownViewModelChevronDown",
(G.ytDropdownViewModelChevronDownDisabled=t,G))},_.p(_.B1,{icon:"CHEVRON_DOWN"}))),JZC(q,Q))},"Yi");_.dL(_.r(function(g){var u=g.data;var q=function(L){var E=MVt(u());E.videoMetadata||(E.videoMetadata={});E.videoMetadata.sponsorshipsMetadata||(E.videoMetadata.sponsorshipsMetadata={});E.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(L)},Q=function(L){var E=MVt(u());
E.scheduledRedirectMetadata||(E.scheduledRedirectMetadata={});E.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(L)};
return _.p("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.p("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.p("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.p(_.c2,{text:function(){return u().title}}),_.p(_.B1,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.p(_.c2,{text:function(){return u().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.p(_.Up,{data:function(){return u().tierChoices}},{dropdownViewModel:function(L){return _.p("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.p(z39,{data:L.data,
onSelected:q}))}}),_.p(_.Up,{data:function(){return u().startTimeChoices}},{dropdownViewModel:function(L){return _.p("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.p(z39,{data:L.data,
onSelected:Q}))}}),_.p(_.c2,{text:function(){return u().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.p("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.p(_.Up,{data:function(){return u().scheduleButton}},{panelFooterViewModel:jS})))},"Zi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;g=g.className===void 0?"":g.className;var q=_.kq(EZp,function(){return u().flowStateEntityKey||""}),Q={};
Q=_.Ty("ytFlowBottomBarViewModelFlowBottomBarButtons",(Q.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return u().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||u().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},Q));
var L={},E=_.Ty("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",Q,(L.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return u().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},L.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return u().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},L));
L={};var y=_.Ty("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",Q,(L.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return u().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},L.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return u().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},L));
Q={};Q=_.Ty("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(Q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return u().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return u().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},Q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return u().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
Q));
g=_.Ty("ytFlowBottomBarViewModelHost",g);return _.p("yt-flow-bottom-bar-view-model",{class:g},_.p(_.M,{cond:function(){var v;return(v=u())==null?void 0:v.textSection},
then:function(v){return _.p("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.p(_.c2,{text:v}))}}),_.p("div",{class:Q},_.p(_.Up,{data:function(){return u().secondaryButton}},{buttonViewModel:function(v){return _.p(_.TT,{data:v.data,
className:y})}}),_.p(_.Up,{data:function(){return u().primaryButton}},{buttonViewModel:function(v){return _.p(_.TT,{data:v.data,
className:E,buttonOverrides:function(){var J;return{disabled:!((J=q())==null||!J.primaryButtonDisabled)}}})}})))},"$i"),"yt-flow-bottom-bar-view-model",{props:{data:_.H2,
className:_.iF}});var nhf="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Mh=function(){var g=_.X.apply(this,arguments)||this;g.enableScrollingFix=!0;g.bottomBar=!1;g.fitContent=!1;return g};
_.A(Mh,_.X);_.P=Mh.prototype;_.P.ready=function(){_.w("enable_pdp_icon_prefetch")&&oxt(_.Bk().resolve(_.AMx),0,nhf)};
_.P.focus=function(g){this.topBar?_.h6(this.topBar,g):this.paperDialog.focus(g)};
_.P.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20974_scroller&&(this.JSC$20974_scroller.dialogElement=this.paperDialog,this.JSC$20974_scroller.attached&&typeof this.JSC$20974_scroller.attached==="function"&&this.JSC$20974_scroller.attached())};
_.P.onDataChanged=function(){var g;this.fitContent=!((g=this.data)==null||!g.fitContent);var u;this.bottomBar=!((u=this.data)==null||!u.bottomBar)};
_.P.onProgressChanged=function(){var g,u,q=((u=(g=this.data)==null?void 0:g.progress)!=null?u:0)*100;this.progressElement.style.width=q+"%"};
_.P.isProgressHidden=function(){var g;return!((g=this.data)==null?0:g.progress)};
_.P.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(g){return g&&!g.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
Mh.prototype.onProgressChanged=Mh.prototype.onProgressChanged;Mh.prototype.onDataChanged=Mh.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Mh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Mh.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Mh.prototype,"enableScrollingFix",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Mh.prototype,"bottomBar",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Mh.prototype,"fitContent",void 0);_.Y([_.oE("#progress"),_.K("design:type",HTMLElement)],Mh.prototype,"progressElement",void 0);_.Y([_.oE("#scroller"),_.K("design:type",Object)],Mh.prototype,"JSC$20974_scroller",void 0);_.Y([_.oE("ytd-flow-top-bar-renderer"),_.K("design:type",HTMLElement)],Mh.prototype,"topBar",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mh.prototype,"onDataChanged",null);_.Y([_.k_("data.progress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mh.prototype,"onProgressChanged",null);_.Y([_.fE({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Mh);
_.T(Mh,"ytd-flow-step-renderer",function(){if(ton!==void 0)return ton;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ton=g},{mode:1});var tv=function(g){this.resolveCommand=g;this.steps={}},kdf=function(g,u){u=_.N(u||[]);
for(var q=u.next();!q.done;q=u.next()){q=q.value;var Q=Object.values(q)[0],L=void 0;if((L=Q)==null?0:L.stepId)g.steps[Q.stepId]=q}},ohh=function(g,u){var q,Q,L,E,y;
return _.D(function(v){if((q=g.state)==null||!q.currentStepId)return v.return(void 0);Q=g.getCurrentStep();if(!Q)return v.return(SVb(g));if(L=_.c(Q,_.Ew))g.logVEScreen(L),((E=L)==null?0:E.onStepStartCommand)&&g.resolveCommand((y=L)==null?void 0:y.onStepStartCommand,{});L&&u&&(g.logFlowEvent(L,u),u.steps&&!u.steps.includes(Q)&&u.steps.push(Q));return v.return(Q)})};
tv.prototype.back=function(){var g;(g=this.state)!=null&&g.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
tv.prototype.handleUpdateFlowCommand=function(g){g.steps&&kdf(this,g.steps);g.entityUpdateCommand&&this.resolveCommand(g.entityUpdateCommand,{});g.flowContinuationCommand&&(g=g.flowContinuationCommand)&&(this.getFlowContinuationCommand=g);this.awaitFlowContinuation&&(g=this.getCurrentStep(),this.awaitFlowContinuation(g),this.awaitFlowContinuation=void 0)};
tv.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var SVb=function(g){return _.D(function(u){return g.getFlowContinuationCommand?u.return(new Promise(function(q){g.awaitFlowContinuation=q;g.getFlowContinuationCommand&&g.resolveCommand(g.getFlowContinuationCommand,{flow_state:g.state})})):u.return(Promise.resolve(void 0))})};
tv.prototype.getCurrentStep=function(){var g;if((g=this.state)!=null&&g.currentStepId)return this.steps[this.state.currentStepId]};
tv.prototype.logVEScreen=function(g){var u;((u=g.screenLoggingData)==null?0:u.screenVeType)&&_.Kq(_.gL(),g.screenLoggingData.screenVeType)};
tv.prototype.logFlowEvent=function(g,u){var q,Q,L,E;((q=u.flowLoggingData)==null?0:q.eventNamespace)&&((Q=g.flowEventData)==null?0:Q.eventType)&&((L=g.flowEventData)==null?0:L.eventMetadata)&&((E=u.flowLoggingData)==null?0:E.flowType)&&(g=_.xZ(u.flowLoggingData.eventNamespace,g.flowEventData.eventType,g.flowEventData.eventMetadata),_.Bc().logFlowEvent(g,u.flowLoggingData.flowType))};
_.z3.Object.defineProperties(tv.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.state)==null?void 0:g.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.state)!=null&&g.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(u,q){q.key&&q.value&&(u[q.key]=q.value);return u},{})}}});var eS=function(){var g=_.X.apply(this,arguments)||this;g.flowState=_.w("web_use_flow_state_manager")?void 0:new tv(function(u,q){q=q===void 0?{}:q;_.ze.instance.resolveCommand(u,{form:{form:q,element:g.hostElement}})});
g.JSC$20985_flowStateManager=_.w("web_use_flow_state_manager")?_.Bk().resolve(_.uW):void 0;g.currentTargetId="";g.initialState=!0;g.isLoading=!1;g.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"};g.containsTalkToRecs=!1;return g};
_.A(eS,_.X);_.P=eS.prototype;_.P.onPopupClosed=function(g){if(!g||this.hostElement===g.detail.popupRenderer){if(this.JSC$20985_flowStateManager){var u;((u=this.data)==null?0:u.flowStateEntityKey)&&this.JSC$20985_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.P.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"}}}};
_.P.focus=function(g){var u=this;_.wO(function(){var q=_.Tr(u.hostElement).querySelector("ytd-flow-step-renderer");(q==null?0:q.topBar)?q.focus(g):u.topBar&&_.h6(u.topBar,g)},1)};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.P.computeTopBarHidden=function(g){var u;return!((u=_.c(g,_.Ew))==null||!u.topBarOverride)};
_.P.onCurrentFlowChange=function(){if(this.JSC$20985_flowStateManager&&this.data&&this.flow){var g=L$L(this.JSC$20985_flowStateManager,this.data),u;if(g&&((u=this.flow)==null?0:u.currentStepId)){g=NGZ(g,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var q;!g&&((q=this.data)==null?0:q.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.P.observeData=function(){var g=this;if(this.JSC$20985_flowStateManager){var u=this.currentTargetId,q,Q,L=(Q=(q=this.data)==null?void 0:q.targetId)!=null?Q:"";u!==L&&u&&Exh(this.JSC$20985_flowStateManager,u);this.currentTargetId=L;this.data&&PuH(L$L(this.JSC$20985_flowStateManager,this.data),function(E){E&&(g.initialState=!1,g.currentFlowStep={flowStepRenderer:E},g.isLoading=!g.currentFlowStep,g.autofocusAndRefit(),g.updateContainsTalkToRecs(),g.logVEScreen(),g.logFlowEvent())})}};
_.P.dataChanged=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1){if(!g.flowState)return Q.return();((u=g.data)==null?0:u.steps)&&kdf(g.flowState,g.data.steps);if((q=g.data)==null?0:q.flowContinuationCommand){var L=g.flowState,E=g.data.flowContinuationCommand;E&&(L.getFlowContinuationCommand=E)}return Q.yield(ohh(g.flowState,g.data),2)}g.currentFlowStep=Q.yieldResult;_.Wx(Q)})};
_.P.flowChanged=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1){if(!g.flowState||!g.flow)return q.return();g.flowState.state=g.flow;g.isLoading=!0;return q.yield(ohh(g.flowState,g.data),2)}u=q.yieldResult;if(!u||g.flow.isLoading)return q.return();g.currentFlowStep=u;g.initialState=!1;g.isLoading=!1;g.autofocusAndRefit();g.updateContainsTalkToRecs();_.Wx(q)})};
_.P.logVEScreen=function(){var g,u,q=(g=_.c(this.currentFlowStep,_.Ew))==null?void 0:(u=g.screenLoggingData)==null?void 0:u.screenVeType;q&&_.Kq(_.Bk().resolve(_.QA),q)};
_.P.logFlowEvent=function(){var g=_.c(this.currentFlowStep,_.Ew),u,q,Q,L,E,y;(this==null?0:(u=this.data)==null?0:(q=u.flowLoggingData)==null?0:q.eventNamespace)&&(this==null?0:(Q=this.data)==null?0:(L=Q.flowLoggingData)==null?0:L.flowType)&&(g==null?0:(E=g.flowEventData)==null?0:E.eventType)&&(g==null?0:(y=g.flowEventData)==null?0:y.eventMetadata)&&(g=_.xZ(this.data.flowLoggingData.eventNamespace,g.flowEventData.eventType,g.flowEventData.eventMetadata),_.Bc().logFlowEvent(g,this.data.flowLoggingData.flowType))};
_.P.updateContainsTalkToRecs=function(){var g,u=(g=_.c(this.currentFlowStep,_.Ew))==null?void 0:g.content;this.containsTalkToRecs=!!u&&!!_.c(u,hwZ)};
_.P.autofocusAndRefit=function(){var g=this,u=_.Bk().resolve(_.xv(_.m5)),q=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),Q=document.querySelector("yt-report-form-confirmation-page-view-model"),L=document.querySelector("yt-report-form-details-page-view-model"),E=document.querySelector("yt-report-form-reason-select-page-view-model"),y=document.querySelector("yt-contributor-zero-state-view-model"),
v=document.querySelector("yt-structured-context-note-view-model"),J=document.querySelector("yt-note-view-model");(!q&&u&&u.isKeyBoardInUse()||Q||!q&&L||!q&&E||!q&&(y||v||J))&&_.YO(this.hostElement);_.xt(this,function(){_.hJ(g.hostElement,"yt-refit")})};
_.P.handleUpdateFlowCommand=function(g){this.flowState?this.data&&(g=_.c(g,_.AOn),g.targetId===this.data.targetId&&(g.flowContinuationCommand&&(this.data.flowContinuationCommand=g.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(g),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(g)};
_.P.handleFlowNextStepCommand=function(g){this.JSC$20985_flowStateManager?this.ytComponentBehavior.resolveCommand(g):this.data&&this.flow&&this.flow.key&&(g=_.c(g,_.R0x),g.targetId===this.data.targetId&&(g=g.stepId||"",this.ytdReduxBehavior.dispatch(_.JZ("flowStateEntity",this.flow.key,{currentStepId:g,stepIdStack:(this.flow.stepIdStack||[]).concat(g)}))))};
_.P.handleFlowPrevStepCommand=function(g){if(this.JSC$20985_flowStateManager)this.ytComponentBehavior.resolveCommand(g);else if(this.data&&this.flow&&this.flow.key&&(g=_.c(g,_.wIH),g.targetId===this.data.targetId)){var u=[].concat(_.na(this.flow.stepIdStack||[]));u.length>1?(u.pop(),this.ytdReduxBehavior.dispatch(_.JZ("flowStateEntity",this.flow.key,{currentStepId:u[u.length-1],stepIdStack:u}))):g.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(g.onFirstStepCommand)}};
_.P.handleYpcCancelRecurrenceCommand=function(g){if(this.data&&this.flow&&this.flow.key&&(g=_.c(g,xN9),g.targetId===this.data.targetId&&g.endpointCommand)){var u=_.c(this.flow,B4f);u&&_.c(g.endpointCommand,_.rPW)&&(_.c(g.endpointCommand,_.rPW).feedbackData=u.surveyFeedback);this.ytComponentBehavior.resolveCommand(g.endpointCommand)}};
_.P.handlePartialUpdateFlowStateEntity=function(g){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.JZ("flowStateEntity",this.flow.key,g,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
eS.prototype.flowChanged=eS.prototype.flowChanged;eS.prototype.dataChanged=eS.prototype.dataChanged;eS.prototype.observeData=eS.prototype.observeData;eS.prototype.onCurrentFlowChange=eS.prototype.onCurrentFlowChange;eS.prototype.onPopupClosed=eS.prototype.onPopupClosed;_.Y([_.I(_.jB),_.K("design:type",Object)],eS.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],eS.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],eS.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],eS.prototype,"initialState",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],eS.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",Object)],eS.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],eS.prototype,"currentFlowStep",void 0);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],eS.prototype,"onPopupClosed",null);
_.Y([_.a({selectorArgs:["data.flowStateEntityKey"],selector:EZp}),_.K("design:type",Object)],eS.prototype,"flow",void 0);_.Y([_.oE("ytd-flow-top-bar-renderer"),_.K("design:type",HTMLElement)],eS.prototype,"topBar",void 0);_.Y([_.k_("data","flow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eS.prototype,"onCurrentFlowChange",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eS.prototype,"observeData",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],eS.prototype,"dataChanged",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],eS.prototype,"containsTalkToRecs",void 0);_.Y([_.qm("flow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],eS.prototype,"flowChanged",null);_.Y([_.fE({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],eS);
var Unt=_.Te()(eS,"ytd-flow-root-renderer",function(){if(vcz!==void 0)return vcz;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return vcz=g},{mode:_.hr("kevlar_poly_si_batch_j025")?1:2});var cZz=_.P_b.talkToRecsStateSelector;_.dL(_.r(function(g){var u=function(){return _.c(g.data().flowRoot,RwE)};
_.I4(function(){var q=u(),Q=function(){},L=function(){};
q&&($Wb(q,tVK(q)),Q=wbz(q),L=H3H(q));_.dB(function(){Q();Q=function(){};
L();L=function(){};
var E=u();E&&(_.bR().dispatch(_.u2("flowStateEntity",E.flowStateEntityKey)),_.bU(_.rF({type:"TALK_TO_RECS_RESET_STEP_STATE",payload:{stepId:tVK(E)}})))})});
return _.p("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.p(_.KG,{contentId:function(){return g.data().contentId}},function(){return _.p("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.p(_.M,{cond:u,
then:function(q){return _.p(Unt,{data:q})}}))}))},"aj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.H2}});var g8f=_.r(function(g){var u=_.FI(g,{numberOfChips:5}).numberOfChips;return _.p("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.p(_.R4,{each:function(){return Array(u==null?void 0:u())}},function(){return _.p("div",{class:"ytGhostChipShelfChip"})}))},"bj");_.dL(_.r(function(){return _.p("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.p("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.p("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.p(g8f,null)),_.p(_.wza,{data:{rows:1},isExploreHub:!0}))},"cj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.dL(_.r(function(g){var u=g.data;var q=g.standardUnitMinWidth;g=_.N((0,_.ZG)(u));var Q=g.next().value,L=g.next().value,E=function(){var v,J=(v=Q())==null?void 0:v.contents;return J==null||J.length===0},y=function(){L(Object.assign({},Q(),{contents:[]}))};
return _.p("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.lF(_.x1({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var v=_.c(u().chipsShelf,rKC);if(v!=null&&v!=null&&v.autoselectChipOnVisible){var J,f,t=_.c(v==null?void 0:(J=v.contents)==null?void 0:J[(f=v.autoselectedChipIndex)!=null?f:0],_.wS);t&&t.tapCommand&&_.ey(t.tapCommand)}}}))},_.p(_.KG,{contentId:function(){return u().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.p("div",null,_.p("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.p(_.Up,{data:function(){return u().header}},{sectionHeaderViewModel:function(v){return _.p(_.US,{data:v.data,
disableHorizontalPadding:!0})}})),_.p("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.p(_.Up,{data:function(){return u().chipsShelf}},{chipsShelfViewModel:function(v){return _.p(_.UJ,{data:v.data,
callback:y,selectionBehavior:1})}})),_.p("div",null,_.p(_.M,{cond:E,
then:function(){return _.p("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.p(_.wza,{data:{rows:1},isExploreHub:!0}))}}),_.p(_.Up,{data:function(){var v;
return(v=Q())==null?void 0:v.contents}},{richShelfRenderer:function(v){return _.p(_.X78,{data:v.data,
isInnerShelf:!0,standardUnitMinWidth:q})}})))}))},"dj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.H2,
standardUnitMinWidth:_.H2}});var Gq=function(){return _.X.apply(this,arguments)||this};
_.A(Gq,_.X);
Gq.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}}};
Gq.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.Y([_.I(_.jB),_.K("design:type",Object)],Gq.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.i5),_.K("design:type",Object)],Gq.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Gq.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Number)],Gq.prototype,"standardUnitMinWidth",void 0);_.Y([_.fE({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Gq);
_.T(Gq,"ytd-rich-section-renderer",function(){if(xzC!==void 0)return xzC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return xzC=g},{mode:2});var uBh;var b3K=null;_.dL(_.r(function(g){return _.p("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.p("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.p(_.c2,{text:function(){return g.data().text}}),_.p("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"ej"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.H2}});var q4C=_.r(function(g){var u=g.playerControlsProps;var q=g.isShortsPage;return _.p("yt-bigboard",null,_.p(_.M,{cond:function(){return u().isDragging},
then:function(){return _.p("div",{class:"ytBigboardStoryboardHost"},_.p(_.Srz,{progressBarProps:u,isShortsPage:q}))}}))},"fj");
q4C.idomCompat=!0;var $g={ACCOUNT_LABEL:oa("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:oa("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:oa("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:oa("AD_BADGE_HINT"),AD_BADGE_TEXT:oa("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:oa("ALL_CHANNELS_LABEL"),AMBIENT_MODE:oa("AMBIENT_MODE"),AMBIENT_MODE_OFF:oa("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:oa("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:oa("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:oa("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:oa("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:oa("APP_UPSELL_TITLE"),AUDIO_TRACK:oa("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:oa("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:oa("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:oa("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:oa("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:oa("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:oa("AUTO_ZOOM","Auto zoom"),BACK:oa("BACK"),CANCEL:oa("CANCEL"),CHANNEL_SWITCHER_LABEL:oa("CHANNEL_SWITCHER_LABEL"),CLOSE:oa("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:oa("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:oa("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:oa("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:oa("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:oa("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:oa("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:oa("COMMENT_MODAL_CONTENT"),CONFIRM_OK:oa("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:oa("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:oa("COPIED_TO_CLIPBOARD"),COPY:oa("COPY"),COPY_DEBUG_INFO:oa("COPY_DEBUG_INFO"),COPY_EMBED_CODE:oa("COPY_EMBED_CODE"),
COPY_LINK_LABEL:oa("COPY_LINK_LABEL"),COPY_VIDEO_URL:oa("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:oa("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:oa("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:oa("DELETE_FROM_DOWNLOADS"),DIALOG:oa("DIALOG"),DONE:oa("DONE"),DOWNLOAD:oa("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:oa("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:oa("FLAG_CONFIRM"),FLAG_CONTENT:oa("FLAG_CONTENT"),FLAG_LABEL:oa("FLAG_LABEL"),FLAG_TITLE:oa("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:oa("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:oa("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:oa("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:oa("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:oa("HIDE_SEARCH_FILTERS_LABEL"),HOME:oa("HOME","Home"),INVALID_RESPONSE_RECEIVED:oa("INVALID_RESPONSE_RECEIVED"),LIBRARY:oa("LIBRARY","Library"),LISTENING:oa("LISTENING"),LOADING:oa("LOADING"),LONG_PRESS_MIC_TO_SPEAK:oa("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:oa("LOOP"),MENU_DESKTOP:oa("MENU_DESKTOP"),
MENU_EXIT:oa("MENU_EXIT"),MENU_FEEDBACK:oa("MENU_FEEDBACK"),MENU_HELP:oa("MENU_HELP"),MENU_IMPRESSUM:oa("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:oa("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:oa("MENU_SETTINGS"),MENU_SIGN_IN:oa("MENU_SIGN_IN"),MENU_TITLE:oa("MENU_TITLE"),MENU_YOUR_DATA:oa("MENU_YOUR_DATA"),MORE_INFO:oa("MORE_INFO"),MORE_OPTIONS:oa("MORE_OPTIONS"),MUTE_VOLUME:oa("MUTE_VOLUME"),NEW_PLAYLIST:oa("NEW_PLAYLIST"),NEXT_VIDEO:oa("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:oa("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:oa("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:oa("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:oa("NOT_FOUND_TITLE"),NO_DOWNLOADS:oa("NO_DOWNLOADS"),NO_MIC_INPUT:oa("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:oa("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:oa("OOPS_MESSAGE"),OPEN_APP:oa("OPEN_APP"),OPEN_YOUTUBE:oa("OPEN_YOUTUBE"),PAUSE:oa("PAUSE"),PLAY:oa("PLAY"),PLAYER_CAPTION:oa("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:oa("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:oa("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:oa("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:oa("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:oa("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:oa("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:oa("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:oa("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:oa("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:oa("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:oa("PLAYER_MINIMIZE"),PLAYER_NEXT:oa("PLAYER_NEXT"),PLAYER_PAUSE:oa("PLAYER_PAUSE"),PLAYER_PLAY:oa("PLAYER_PLAY"),
PLAYER_PREVIOUS:oa("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:oa("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:oa("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:oa("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:oa("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:oa("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:oa("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:oa("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:oa("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:oa("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:oa("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:oa("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:oa("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:oa("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:oa("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:oa("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:oa("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:oa("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:oa("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:oa("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:oa("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:oa("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:oa("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:oa("PLAY_ALL"),PLEASE_FIX_ERRORS:oa("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:oa("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:oa("PREVIOUS_VIDEO"),PRIVACY_POLICY:oa("PRIVACY_POLICY"),RELOAD:oa("RELOAD"),REQUIRED_LABEL:oa("REQUIRED_LABEL"),SAVE_PLAYLIST:oa("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:oa("SCRUB_SLIDE_USER_EDU"),SEARCH:oa("SEARCH","Search"),
SEARCH_APPEND_LABEL:oa("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:oa("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:oa("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:oa("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:oa("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:oa("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:oa("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:oa("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:oa("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:oa("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:oa("SEEK_SLIDER"),SETTINGS_LABEL:oa("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:oa("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:oa("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:oa("SHOW_LESS"),SHOW_MORE:oa("SHOW_MORE"),SHOW_PLAYER_CONTROLS:oa("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:oa("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:oa("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:oa("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:oa("SIGN_IN_ON_WEB"),STABLE_VOLUME:oa("STABLE_VOLUME"),STABLE_VOLUME_OFF:oa("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:oa("STABLE_VOLUME_ON"),STATS_FOR_NERDS:oa("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:oa("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:oa("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:oa("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:oa("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:oa("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:oa("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:oa("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:oa("TIMESTAMP_SECONDS"),TOGGLE_OFF:oa("TOGGLE_OFF"),TOGGLE_ON:oa("TOGGLE_ON"),TRENDING:oa("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:oa("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:oa("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:oa("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:oa("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:oa("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:oa("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:oa("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:oa("VIDEO_LINK_LABEL")};var Q8x=_.r(function(g){var u=g.playerApi;g=_.Hk("button",function(Q){ng(Q,36843)});
var q=oa("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.p("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.p("button",{el:g,class:"ytPlayerControlsJumpForwardButtonButton",title:q,"aria-label":q,"on:click":_.YH(function(){kM(36843);u&&u().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.p("span",null,_.p(_.B1,{icon:"FAST_FORWARD"}))))},"gj");var LOf=_.r(function(g){var u=g.appApi;g=_.Hk("button",function(Q){ng(Q,62946)});
var q=oa("OPEN_IN_MINIPLAYER");return _.p("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.p("button",{el:g,class:"ytMiniplayerButtonButton",title:q,"aria-label":q,"on:click":_.YH(function(){kM(62946);var Q,L;(L=(Q=u()).openInMiniplayer)==null||L.call(Q);return!1})},_.p(_.B1,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"hj");var E8h=_.r(function(g){var u=g.playerApi;g=_.Hk("button",function(E){ng(E,142812)});
var q=_.N(_.jR(!1,void 0,"eOMRAb")),Q=q.next().value,L=q.next().value;q=function(){return oa("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(Q()?1:2)})};
return _.p("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.p("button",{el:g,class:"ytPlaybackSpeedButtonButton",title:q,"aria-label":q,"on:click":_.YH(function(){kM(142812);if(u){var E=u(),y=Q();E.setPlaybackRate(y?1:2);L(!Q())}return!1})},_.p("span",null,_.p(_.B1,{icon:function(){return Q()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"ij");var PeK=_.r(function(g){var u=g.title;var q=g.ariaLabel;var Q=g.icon;var L=g.command;var E=g.visualElementId;g=_.Hk("button",function(y){E&&ng(y,E())});
return _.p("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.p("button",{el:g,class:"ytdThumbnailOverlayButtonButton",title:u,"aria-label":q,"on:click":_.YH(function(){E&&kM(E());L&&_.Bk().resolve(_.Gy).resolveCommand(L())})},_.p(_.B1,{icon:Q})))},"jj");var N1h=["en-CA","en","es-MX","fr-CA"];var s8C=_.r(function(g){var u=_.FI(g,{isOverlay:!1}),q=u.captionIconType,Q=u.onClick;g=u.ariaLabel;var L=u.ariaPressed,E=u.isOverlay;u=_.Hk("button",function(J){ng(J,127299)});
var y=_.YH(function(J){kM(127299);Q==null||Q(J);return!1}),v={};
return _.p("ytm-closed-captioning-button",{class:_.Ty("ytmClosedCaptioningButtonHost",(v.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return q()===-1&&E()},v.ytmClosedCaptioningButtonIconDisabled=function(){return q()===-1&&!E()},v))},_.p("button",{el:u,
class:"ytmClosedCaptioningButtonButton",title:g,"aria-label":g,"aria-pressed":L,"on:click":y},_.p(_.B1,{icon:function(){var J="";var f=_.qf().get("hl");f=!f||N1h.includes(f)?"CLOSED_CAPTION":"SUBTITLES";var t=q();switch(t){case -1:case 0:J=f;break;case 1:J=f+"_FILLED";break;default:_.qE(t)}return J}})))},"kj");
s8C.idomCompat={callbacks:{onClick:!0}};var z4="";var yEL=_.r(function(g){var u=g.playerControlsProps,q=g.onClickFn;g=_.G9(function(){var E=u(),y=-1;E.captionsAvailable&&(y=E.captionsEnabled?1:0);return y},void 0,"MZ0Wqe");
var Q=_.G9(function(){var E=u();return E.captionsAvailable?_.Ug(E.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Ug("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),L=_.G9(function(){var E=u();
E=E.captionsAvailable?E.captionsEnabled:void 0;return E},void 0,"fhuQRe");
return _.p("yt-closed-captions-toggle-button",null,_.p(s8C,{captionIconType:g,ariaLabel:Q,ariaPressed:L,onClick:function(E){var y=u();if(y.captionsAvailable){var v=y.playerApi;if(v){var J=y.playerApi;if(J){var f=z4;if(f){J=J.getOption("captions","track");var t;z4=(t=J?J.displayName:null)!=null?t:f}else ls9(J)?(f=_.TsZ(J),z4=f.length?(t=iU9(f))?t.displayName:f[0].displayName:""):z4=""}CRh(v);_.w("mweb_disable_set_state_captions_killswitch")&&y.setState({captionsEnabled:!y.captionsEnabled})}}var e,
G;(G=(e=y.appApi).showCaptionsToggleToast)==null||G.call(e,y);q==null||q(E)},
isOverlay:!0}))},"lj");var v8n=_.r(function(g){var u=g.data;return _.p("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.p(_.$s,{data:function(){return{type:17,text:_.xCh(u().label)}}}))},"mj");var DDn=_.r(function(g){var u=_.Ty("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return g.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return g.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return g.size()==="small"?g.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
g.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.p("animated-seek-arrows",{class:_.Ty("ytPlayerControlsAnimatedSeekArrowsHost")},_.p("span",{class:u}),_.p("span",{class:u}),_.p("span",{class:u}))},"nj");
DDn.idomCompat=!0;var pBx=_.r(function(){var g=_.Ug("PLAYER_SECONDS",{seconds_placeholder:"30"}),u=_.N(_.jR(!1,void 0,"iRJu8c")),q=u.next().value,Q=u.next().value,L=_.N(_.jR(!1,void 0,"MPnizf"));u=L.next().value;var E=L.next().value;L={};var y=_.Ty("jumpForwardOverlayOverlay",(L.jumpForwardOverlayOverlayHidden=u,L));_.I4(function(){var v=null,J=null,f=function(){v!==null&&_.pT().cancelJob(v);J!==null&&_.pT().cancelJob(J);E(!0);Q(!0);_.Xh(_.pT(),function(){E(!1)});
v=_.Xh(_.pT(),function(){E(!0);J=_.Xh(_.pT(),function(){Q(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",f);_.dB(function(){window.removeEventListener("jump-forward-clicked",f)})});
return _.p("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.p(_.M,{cond:q,then:function(){return _.p("div",{class:y},_.p(DDn,{direction:1,size:"large"}),_.p("div",null,g))}}))},"oj");var JEh=$g.MUTE_VOLUME,j8L=$g.UNMUTE_VOLUME,fzH=_.r(function(g){var u=g.muteIconType;var q=g.onClick;var Q=g.useOutlineIcon;var L=g.useDelhiIcons;g=_.Hk("button",function(v){ng(v,28662)});
var E=function(){var v=u(),J=Q==null?void 0:Q(),f=L==null?void 0:L(),t="",e="";switch(v){case -1:case 0:t=J?"VOLUME_OFF":f?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";e=j8L;break;case 1:t=J?"VOLUME_UP_OUTLINE":f?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";e=JEh;break;case 2:t=J?"VOLUME_DOWN_OUTLINE":f?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";e=JEh;break;default:_.qE(v)}return{iconName:t,ariaLabel:e}},y=function(){return E().ariaLabel};
return _.p("ytm-mute-button",{class:"ytmMuteButtonHost"},_.p("button",{el:g,class:"ytmMuteButtonButton",title:y,"aria-label":y,"on:click":_.YH(function(v){kM(28662);q==null||q(v);return!1})},_.p("span",null,_.p(_.B1,{icon:function(){return E().iconName}}))))},"pj");var MAK=_.r(function(g){var u=g.volumeProps;var q=g.onClickFn;var Q=g.useOutlineIcon;var L=g.useDelhiIcons;return _.p("yt-mute-toggle-button",null,_.p(fzH,{muteIconType:function(){var E=u();return E.volumeMuted||E.volume===0?0:E.volume>50?1:2},
onClick:function(E){var y=u().playerApi;y&&(y.isMuted()?y.unMute():y.mute(!1));q==null||q(E)},
useOutlineIcon:function(){return!(Q==null||!Q())},
useDelhiIcons:function(){return!(L==null||!L())}}))},"qj");
MAK.idomCompat=!0;var tAH=_.r(function(g){var u=g.data;var q=_.Hk("ytm-paid-content-overlay-renderer");return _.p("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:q,"on:animationend":_.YH(function(){q.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.p(_.ag,{command:function(){return u().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.p(_.M,{cond:function(){var Q;return(Q=u().icon)==null?void 0:Q.iconType},
then:function(){return _.p("span",null,_.p(_.B1,{icon:function(){var Q;return(Q=u().icon)==null?void 0:Q.iconType}}))}}),_.p("div",{class:"ytmPaidContentOverlayText"},_.p(_.c2,{text:function(){return u().text}})),_.p(_.M,{cond:function(){return u().navigationEndpoint},
then:function(){return _.p(_.B1,{icon:"CHEVRON_RIGHT"})}})))},"rj");
tAH.idomCompat=!0;var PGx=[].concat(_.na([{register:function(g){var u=Sfp(g),q;(q=g().playerApi)==null||q.addEventListener("onVolumeChange",u);return function(){}}},
{register:function(g){var u=obx(g);g=g().playerApi;g==null||g.addEventListener("captionschanged",u);g==null||g.addEventListener("captionssettingschanged",u);g==null||g.addEventListener("onCaptionsTrackListChanged",u);return function(){}}}]),[{register:function(g){var u=B_H(g),q;
(q=g().playerApi)==null||q.addEventListener("onStateChange",u);return function(){}}},
{register:function(g){var u=z2K(g),q;(q=g().playerApi)==null||q.addEventListener("onPlaybackRateChange",u);return function(){}}},
{register:function(g){var u=nbx(g),q;(q=g().playerApi)==null||q.addEventListener("onVideoDataChange",u);return function(){}}},
{register:function(g){var u=kxt(g),q,Q;(q=g())==null||(Q=q.playerApi)==null||Q.addEventListener("onVideoProgress",u);return function(){}}}]);var erb=_.r(function(g){var u=g.data;var q=function(){return _.Ug("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+u().playbackRate})};
return _.p(_.M,{cond:function(){return u().playbackRate&&u().playbackRate!==1},
then:function(){return _.p("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.p("div",{class:"ytPlaybackRateOverlayOverlay"},_.p(DDn,{direction:1,size:"small"}),_.p("div",{class:"ytPlaybackRateOverlayLabel"},q)))}})},"tj");var GSZ=_.r(function(g){var u=g.data;return _.p("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.p(_.M,{cond:function(){var q,Q=(q=u())==null?void 0:q.playerResponse,L;return Q==null?void 0:(L=Q.paidContentOverlay)==null?void 0:L.paidContentOverlayRenderer},
then:function(q){return _.p(tAH,{data:q})}}))},"vj"),$Db=_.r(function(g){var u=g.props;
var q=g.data;var Q=g.options;var L=function(){var f,t,e,G;return(f=q())==null?void 0:(t=f.playerResponse)==null?void 0:(e=t.playerConfig)==null?void 0:(G=e.inlinePlaybackConfig)==null?void 0:G.showAudioControls},E=function(){var f,t;
if(L()&&((f=Q())==null?void 0:(t=f.additionalButton)==null?void 0:t.button)!==void 0){var e,G,R;f=(e=q())==null?void 0:(G=e.playerApi)==null?void 0:(R=G.getSize())==null?void 0:R.height;if(!(f===void 0||f<180)){var H,l;return(H=Q())==null?void 0:(l=H.additionalButton)==null?void 0:l.button}}},y=function(){var f,t;
return(f=Q())==null?void 0:(t=f.additionalButton)==null?void 0:t.thumbnailOverlayButtonRenderers},v=function(){var f,t;
return(f=Q())==null?void 0:(t=f.additionalButton)==null?void 0:t.thumbnailOverlayButtonViewModels},J=function(){var f=[_.p(MAK,{volumeProps:u})],t;
((t=Q())==null?0:t.hideCaptionsToggleButton)||f.push(_.p(yEL,{playerControlsProps:u}));E()===1&&f.push(_.p(Q8x,{playerApi:function(){return u().playerApi}}));
E()===2&&f.push(_.p(LOf,{appApi:function(){return u().appApi}}));
E()===3&&f.push(_.p(E8h,{playerApi:function(){return u().playerApi}}));
t=y();if(E()===4&&t){t=_.N(t);for(var e=t.next(),G={};!e.done;G={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$55:void 0,command$jscomp$631:void 0},e=t.next()){e=e.value;G.tooltip$jscomp$3=e.tooltip;var R=void 0,H=void 0;G.ariaLabel$jscomp$20=((R=e.accessibility)==null?void 0:(H=R.accessibilityData)==null?void 0:H.label)||G.tooltip$jscomp$3;R=void 0;G.icon$jscomp$55=(R=e.icon)==null?void 0:R.iconType;G.command$jscomp$631=e.command;G.tooltip$jscomp$3&&G.ariaLabel$jscomp$20&&G.icon$jscomp$55&&
f.push(_.p(PeK,{title:function(l){return function(){return l.tooltip$jscomp$3}}(G),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$20}}(G),
icon:function(l){return function(){return l.icon$jscomp$55}}(G),
command:function(l){return function(){return l.command$jscomp$631}}(G)}))}}t=v();
if(E()===4&&t)for(t=_.N(t),e=t.next(),G={};!e.done;G={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$56:void 0,command$jscomp$632:void 0,trackingParamsVeType:void 0},e=t.next())e=e.value,G.tooltip$jscomp$4=e.title,G.ariaLabel$jscomp$21=e.accessibilityText||G.tooltip$jscomp$4,G.icon$jscomp$56=e.iconName,G.command$jscomp$632=_.jy(e.onTap),H=R=void 0,G.trackingParamsVeType=((R=e.loggingDirectives)==null?0:R.trackingParams)?(H=doh(_.Ub(e.loggingDirectives.trackingParams)))==null?void 0:
_.r6(H,2):void 0,G.tooltip$jscomp$4&&G.ariaLabel$jscomp$21&&G.icon$jscomp$56&&f.push(_.p(PeK,{title:function(l){return function(){return l.tooltip$jscomp$4}}(G),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$21}}(G),
icon:function(l){return function(){return l.icon$jscomp$56}}(G),
command:function(l){return function(){return l.command$jscomp$632}}(G),
visualElementId:function(l){return function(){return l.trackingParamsVeType}}(G)}));
return f};
return _.p(_.M,{cond:L,then:function(){return _.p("div",{class:"ytInlinePlayerControlsTopRightControls"},_.p(_.R4,{each:J},function(f){return _.p("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.p("div",{class:"ytInlinePlayerControlsButtonIcon"},f))}))}})},"wj"),cEC=_.r(function(g){var u=g.props;
var q=g.data;var Q=g.options;g={};g=_.Ty("ytInlinePlayerControlsBottomRightControls",(g.ytInlinePlayerControlsBottomRightControlsHidden=function(){var L;return gSZ(q(),Q())&&((L=Q())==null?void 0:L.insetProgressBar)&&(u().isHovering||u().isDragging)},g));
return _.p("div",{class:g},_.p(Rrh,{data:q}),_.p(_.M,{cond:function(){var L;return!((L=Q())==null?0:L.hideTimeDisplay)},
then:function(){return _.p(wBx,{props:u,data:q})}}))},"xj"),Rrh=_.r(function(g){var u=g.data;
return _.p(_.Up,{data:function(){var q;return WZK((q=u())==null?void 0:q.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:v8n})},"yj"),wBx=_.r(function(g){var u=g.props;
var q=g.data;return _.p(_.M,{cond:function(){return u().isLive},
then:function(){return _.p(H49,{props:u,data:q})},
else:function(){return _.p(AEE,{props:u,data:q})}})},"zj"),AEE=_.r(function(g){var u=g.props;
var q=g.data;var Q=_.G9(function(){var L;return T_H((L=q())==null?void 0:L.thumbnailOverlays)},void 0,"Pf9uIe");
return _.p("div",{class:_.Ty("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return $g.PLAYER_TIME_ELAPSED+" "+_.vun(u().playedTime)}},_.p(_.$s,{data:function(){var L=_.vun(u().videoDuration-u().playedTime);
return Object.assign({},{type:17,text:L},Q())}}))},"Aj"),Z4x=_.r(function(g){g=g.badgeShapeData;
return _.p("div",{class:_.Ty("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.p(_.$s,{data:g}))},"Bj"),H49=_.r(function(g){var u=g.data;
g=_.G9(function(){if(_.w("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var Q,L=_.N(((Q=u())==null?void 0:Q.thumbnailOverlays)||[]);for(Q=L.next();!Q.done;Q=L.next()){Q=Q.value;if(Q.thumbnailOverlayTimeStatusRenderer||Q.thumbnailOverlayBadgeViewModel)return Q;var E=void 0;if((E=Q.thumbnailBottomOverlayViewModel)==null?0:E.badges)if(Q=Q.thumbnailBottomOverlayViewModel.badges.find(function(y){return _.c(y,Xbt)}))return Q}}},void 0,"GPGpgc");
var q=_.G9(function(){var Q,L,E,y,v,J;return _.S5u((Q=u())==null?void 0:(L=Q.playerApi)==null?void 0:(E=L.getSize())==null?void 0:E.width,(y=u())==null?void 0:(v=y.playerApi)==null?void 0:(J=v.getSize())==null?void 0:J.height)},void 0,"OeIVKe");
return _.p(_.M,{cond:g,then:function(Q){return _.p(_.Up,{data:Q},{thumbnailOverlayTimeStatusRenderer:function(L){var E=L.data;L=_.G9(function(){return _.hcM(E(),0)},void 0,"skoDC");
return _.p(Z4x,{badgeShapeData:L})},
thumbnailBadgeViewModel:function(L){return _.p(_.xvX,{data:L.data,class:_.Ty("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(L){return _.p(_.oNx,{data:L.data,thumbnailSize:q})}})},
else:function(){var Q={type:18,text:$g.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.p(Z4x,{badgeShapeData:function(){return Q}})}})},"Cj"),lzh=_.r(function(g){var u=g.props;
var q=g.data;var Q=g.options;return _.p(_.QoK,{progressBarProps:u,config:function(){var L,E=_.c((L=q())==null?void 0:L.multiMarkersPlayerBar,_.vs$),y;L=((y=Q())==null?0:y.insetProgressBar)?2:1;var v;y=(v=Q())==null?void 0:v.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:L,chapterData:E,isInlinePlayback:!0,doSeekOnClick:y,playheadDotBehavior:y?1:0}}})},"Dj");_.dL(_.r(function(g){var u=g.data;var q=g.appApi;var Q=g.options;var L=xWE(u,UWt(q));g={};q={};return _.p("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.p("div",{class:_.Ty("ytInlinePlayerControlsDarkenedOverlay",(g.ytInlinePlayerControlsDarkenedOverlayShow=function(){return L().isHovering},g))}),_.p(pBx,null),_.p(erb,{data:L}),_.p(GSZ,{data:u}),_.p(q4C,{playerControlsProps:L,
isShortsPage:!1}),_.p("div",{class:_.Ty((q.ytInlinePlayerControlsControlsHidden=function(){return L().isDragging},q))},_.p($Db,{props:L,
data:u,options:Q}),_.p(cEC,{props:L,data:u,options:Q})),_.p(_.M,{cond:function(){return gSZ(u(),Q())},
then:function(){return _.p(lzh,{props:L,data:u,options:Q})}}))},"uj"),"yt-inline-player-controls",{props:{data:_.H2,
appApi:_.iF,options:_.H2}});var Ri=function(){var g=_.X.apply(this,arguments)||this;g.opts=null;g.playerControlsData=null;g.playerControlsAppApi={openInMiniplayer:function(){g.openInMiniplayer()}};
g.playerControlsOptions={};g.noAnimation=!1;g.playbackIntentTriggered=!1;g.positionData=null;g.hidden=!0;g.active=!1;g.playing=!1;g.persistentPanelVisible=!1;g.videoPreviewDataIndex=0;g.JSC$21044_playerPromise=null;g.player=null;g.enableAudioControls=!1;g.hasBeenUnmuted=!1;g.captionsHaveBeenTurnedOff=!1;g.JSC$21044_playerEvents=new Map;g.videoPreviewFetchRequest=null;g.scheduledPreviewEndJobId=null;g.JSC$21044_preventProgressSaveTimer=null;g.watchEndpointStartTimeUpdaterInterval=null;g.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};g.windowOnBlurFn=function(){g.deactivate()};
return g};
_.A(Ri,_.X);_.P=Ri.prototype;
_.P.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"}}}};
_.P.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$21044_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$21044_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$21044_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$21044_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.zr(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.zr(this,this.onScroll))};
_.P.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.zr(this,this.onScroll))};
_.P.onPageTypeChange=function(){this.deactivate()};
_.P.onWindowResized=function(){this.deactivate()};
_.P.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.P.onCaptionsChanged=function(g){g=!!g.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!g);this.setCaptionSize()};
_.P.setCaptionSize=function(){var g;if(this.active&&!this.captionsHaveBeenTurnedOff&&((g=this.player)==null?0:g.getCaptionWindowContainerId())){var u;(u=this.player)==null||u.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.P.currentPageAllowed=function(){return!this.isWatchPage};
_.P.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.w("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var g=this.positionData,u=g.initialTopPosition,q=g.initialHorizontalPosition;_.x_(this.hostElement,{"--ytd-video-preview-translate-left":g.finalHorizontalPosition-q+"px","--ytd-video-preview-translate-top":g.finalTopPosition-u+"px","--ytd-video-preview-original-top-position":u+
"px","--ytd-video-preview-original-horizontal-position":q+"px","--ytd-video-preview-initial-scale":"scale("+g.initialScale+")","--ytd-video-preview-width":g.videoPreviewWidth+"px","--ytd-video-preview-height":g.videoPreviewHeight+"px"});return!0};
_.P.isOutOfBounds=function(g){var u=g.initialHorizontalPosition+12;g=u+g.videoPreviewWidth>window.innerWidth;return u<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&u<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&u<72||g};
_.P.handleOpenVideoPreviewAction=function(g){var u=this,q;return _.D(function(Q){if(!u.currentPageAllowed())return Q.return(0);u.opts=g;return(q=u.alignVideoPreviewForAnimation(g.thumbnail))?Q.return(u.activate()):Q.return(0)})};
_.P.onMouseLeave=function(g){var u,q;(u=this.opts)==null||(q=u.mouseleaveCallback)==null||q.call(u);this.shouldDeactivateOnMouseLeave(g)&&this.deactivate()};
_.P.onScroll=function(){var g,u;((g=this.opts)==null?0:g.isAutoplay)&&((u=this.opts)==null?0:u.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.P.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Hv.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.P.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.P.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Ri.JSC$21043_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ri.JSC$21043_CLICK_LOCATION_ID_MAP)};
_.P.shouldDeactivateOnMouseLeave=function(g){g=g.relatedTarget;if(!g)return!0;var u;return(u=this.opts)!=null&&u.mediaRenderer?!_.hR(this.opts.mediaRenderer).contains(g):!0};
_.P.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.P.onPlaybackStart=function(){var g=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$21044_preventProgressSaveTimer=
_.Xh(_.Hv,function(){g.resetPreventProgressSaveTimer()},1E4);
var u;if((u=this.opts)==null?0:u.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Xh(_.Hv,function(){g.hasMultipleVideoPreviews()?g.startPlaybackForNextVideo():g.deactivate()},this.opts.videoPreviewDurationMs);
var q;this.player.setGlobalCrop(((q=this.opts)==null?0:q.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.P.getRoundedCornersSize=function(){var g;if((g=this.opts)==null?0:g.roundedCornersSize){var u;return(u=this.opts)==null?void 0:u.roundedCornersSize}var q;if((q=this.opts)==null?0:q.enableRounding){var Q;if(((Q=this.opts)==null?void 0:Q.thumbnailSize)==="small")return 1;var L;if(((L=this.opts)==null?void 0:L.thumbnailSize)==="medium")return 2;var E;if(((E=this.opts)==null?void 0:E.thumbnailSize)==="large")return 3}return _.w("web_imp_inset_progress_bar")?3:0};
_.P.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.P.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.P.onMediaContainerClick=function(g){this.isShortcutClick(g)||(this.navigateToWatch(g),g.preventDefault(),g.stopPropagation())};
_.P.activate=function(){var g=this,u,q,Q,L,E,y,v,J,f;return _.D(function(t){switch(t.nextAddress){case 1:if(!g.currentPageAllowed())return t.return(0);q=(u=g.videoPreviewData)==null?void 0:u.inlinePlaybackEndpoint;Q=_.R9.instance;if(!q||!Q)return t.return(0);g.playbackIntentTriggered=!0;((L=g.opts)==null?0:L.mediaRenderer)&&((E=g.opts)==null||!E.isAutoplay)&&aet(g.opts.mediaRenderer,function(){g.deactivate()});
_.xt(g,function(){g.revealPreviewUi()});
y={};_.w("enable_unknown_lact_fix_on_html5")&&(_.Bk().resolve(_.UE),y.lact=_.nB());g.videoPreviewFetchRequest=IeZ(Q,g.getInlinePlaybackRequestData(g.videoPreviewData),y);_.b8(t,2);return t.yield(g.videoPreviewFetchRequest,4);case 4:v=t.yieldResult;if(((J=v)==null?void 0:(f=J.playabilityStatus)==null?void 0:f.status)==="OK")return t.return(g.handlePlayerResponse(v));throw Error("Rl");case 2:_.rt(t),g.deactivate();case 3:return t.return(1)}})};
_.P.getInlinePlaybackRequestData=function(g){var u,q=_.w("web_imp_player_mute_params")?((u=this.opts)==null?void 0:u.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:g.inlinePlaybackEndpoint,startPlaybackInMutedState:q}};
_.P.handlePlayerResponse=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e,G,R,H,l;return _.D(function(d){if(d.nextAddress==1){q=u.getInlinePlaybackVideoId();if(!(((Q=g)==null?0:(L=Q.videoDetails)==null?0:L.videoId)&&u.currentPageAllowed()&&u.playbackIntentTriggered&&u.opts&&q))return u.deactivate(),d.return(0);if(g.videoDetails.videoId!==q)return d.return(0);u.enableAudioControls=!!((E=g.playerConfig)==null?0:(y=E.inlinePlaybackConfig)==null?0:y.showAudioControls);g.trackingParams=u.getInlinePlaybackTrackingParams();
if(!u.inlinePlayer)return d.return(0);v={};if(f=_.c((J=u.videoPreviewData)==null?void 0:J.inlinePlaybackEndpoint,_.l1))v.watch_endpoint=f;if(u.videoPreviewData){var F,V=(F=_.c(u.videoPreviewData.inlinePlaybackEndpoint,_.l1))==null?void 0:F.startTimeSeconds;V!==void 0&&(g.playerConfig||(g.playerConfig={}),g.playerConfig.playbackStartConfig||(g.playerConfig.playbackStartConfig={}),g.playerConfig.playbackStartConfig.startPosition||(g.playerConfig.playbackStartConfig.startPosition={}),g.playerConfig.playbackStartConfig.startSeconds=
V,g.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(V*1E3))}u.inlinePlayer.loadVideoWithPlayerResponse(g,v);if(u.JSC$21044_playerPromise)return d.jumpTo(2);u.JSC$21044_playerPromise=u.inlinePlayer.getPlayerPromise();return d.yield(u.JSC$21044_playerPromise,3)}d.nextAddress!=2&&(t=d.yieldResult,t.setInlinePreview(!0),e=!_.w("web_imp_theater_bugfix"),t.setSizeStyle(!1,e),u.ytPlayerListenerBehavior.listenToPlayerEvents(t,u.JSC$21044_playerEvents),u.player=t,_.hJ(u.hostElement,
"player-api-ready"));((G=u.opts)==null?0:G.showPlayerControls)&&u.videoPreviewData&&u.player&&(u.playerControlsData={playerResponse:g,isInlinePlayback:!0,thumbnailOverlays:u.videoPreviewData.thumbnailOverlays,playerApi:u.player},u.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!u.unroundCornersForPlayback,additionalButton:u.getAdditionalButtonType(u.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(R=u.opts)==null?void 0:R.hideTimeDisplay,hideScrubbingControls:(H=u.opts)==
null?void 0:H.hideScrubber,hideCaptionsToggleButton:(l=u.opts)==null?void 0:l.hideCaptionsToggleButton});return d.return(2)})};
_.P.revealPreviewUi=function(){var g=this;this.playbackIntentTriggered&&_.XMT(this,function(){g.hasThumbnailPositionChangedSinceTriggered()||(g.updateActiveState(!0),g.noAnimation=!1)})};
_.P.hasThumbnailPositionChangedSinceTriggered=function(){var g=this.positionData,u=this.getThumbnailPositionData();return(g==null?void 0:g.initialTopPosition)!==(u==null?void 0:u.initialTopPosition)||(g==null?void 0:g.initialHorizontalPosition)!==(u==null?void 0:u.initialHorizontalPosition)};
_.P.getThumbnailPositionData=function(){var g,u;if((u=this.opts)==null||!u.thumbnail)return null;u=this.opts.thumbnail;var q=((g=this.opts)==null?0:g.cropPlayerToFillThumbnailHorizontally)?!1:!0;var Q=u.getBoundingClientRect();g=Q.width;u=Q.height;var L=Q.top+window.scrollY;Q=Q.left+window.scrollX;var E=q?Math.ceil(g):g;q=q?Math.ceil(u):u;var y=g/E;g={initialScale:y,initialTopPosition:L-12*y,finalTopPosition:L-12-(q-u)/2,initialHorizontalPosition:Q-(12+(E-g)/2),finalHorizontalPosition:Q-12-(E-g)/
2,videoPreviewWidth:E,videoPreviewHeight:q};return g};
_.P.updateActiveState=function(g){this.active=g;this.ytdReduxBehavior.dispatch(_.rF({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:g}))};
_.P.stopPlayer=function(g){g=g.resetWatchEndpointStartTime===void 0?!1:g.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(g)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Hv.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.P.deactivate=function(g){g=g===void 0?{}:g;g=g.resetWatchEndpointStartTime===void 0?!1:g.resetWatchEndpointStartTime;b3K&&(b3K.disconnect(),b3K=null);this.stopPlayer({resetWatchEndpointStartTime:g});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.P.isValidThumbnailOverlayButton=function(g,u){g=g.thumbnailOverlayButtonRenderer;var q;return!!g&&!!g.tooltip&&!((q=g.icon)==null||!q.iconType)&&u.includes(g.icon.iconType)};
_.P.isValidThumbnailOverlayButtonViewModel=function(g,u){var q;g=_.c((q=g.thumbnailOverlayButtonViewModel)==null?void 0:q.overlayButton,_.Rn);return!!g&&!!g.title&&!!g.iconName&&u.includes(g.iconName)};
_.P.getAdditionalButtonType=function(g){var u=this;if(_.w("web_imp_fastforward_button"))return{button:1};if(_.w("web_imp_miniplayer_button"))return{button:2};if(_.w("web_imp_playback_speed_button"))return{button:3};var q=["BOX_STACK_3"],Q=(g||[]).filter(function(E){return u.isValidThumbnailOverlayButton(E,q)}).map(function(E){return E.thumbnailOverlayButtonRenderer});
if(Q.length)return{button:4,thumbnailOverlayButtonRenderers:Q};var L=["BOX_STACK_3"];g=(g||[]).filter(function(E){return u.isValidThumbnailOverlayButtonViewModel(E,L)}).map(function(E){return _.c(E.thumbnailOverlayButtonViewModel.overlayButton,_.Rn)});
if(g.length)return{button:4,thumbnailOverlayButtonViewModels:g}};
_.P.allowCaptions=function(){var g;return!((g=this.opts)==null?0:g.forceCaptionsOff)};
_.P.allowUnmuting=function(){var g;return this.enableAudioControls&&!((g=this.opts)==null?0:g.forceMutedVolume)};
_.P.beginStartTimeUpdater=function(){var g=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.qu(function(){g.updateWatchEndpointStartTime()},1E3)};
_.P.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.P.resetPreventProgressSaveTimer=function(){this.JSC$21044_preventProgressSaveTimer!==null&&(_.Hv.cancelJob(this.JSC$21044_preventProgressSaveTimer),this.JSC$21044_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.P.updateWatchEndpointStartTime=function(g){var u=this.videoPreviewData;if(this.player&&u!=null&&u.inlinePlaybackEndpoint&&!this.JSC$21044_preventProgressSaveTimer){g=g?0:Math.floor(this.player.getCurrentTime());var q=_.c(u.navigationEndpoint,_.l1);q&&(q.startTimeSeconds=g);if(u=_.c(u.inlinePlaybackEndpoint,_.l1))u.startTimeSeconds=g}};
_.P.isShortcutClick=function(g){return!!g&&(g.ctrlKey||g.shiftKey||g.metaKey)};
_.P.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.P.openInMiniplayer=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1){q=(u=g.videoPreviewData)==null?void 0:u.navigationEndpoint;if(!q)return Q.return();_.Uw().lockupActivation=!0;return Q.yield(_.R$R(_.Bk().resolve(_.RO),q),2)}_.Uw().userActivation=!0;_.Wx(Q)})};
_.P.navigateToWatch=function(g){var u,q=(u=this.videoPreviewData)==null?void 0:u.navigationEndpoint;if(q){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(q,g,!0);else{var Q;_.w("web_thumbnail_to_watch_transition")&&((Q=this.opts)==null?0:Q.thumbnail)&&_.eW0(_.Bk().resolve(_.LP),this.opts.thumbnail);_.hJ(this.hostElement,"yt-navigate",{endpoint:q})}this.deactivate()}};
_.P.getInlinePlaybackVideoId=function(){var g,u;return(u=_.c((g=this.videoPreviewData)==null?void 0:g.inlinePlaybackEndpoint,_.l1))==null?void 0:u.videoId};
_.P.getInlinePlaybackTrackingParams=function(){var g,u;return(g=this.videoPreviewData)==null?void 0:(u=g.inlinePlaybackEndpoint)==null?void 0:u.clickTrackingParams};
_.P.hasMultipleVideoPreviews=function(){var g;return!!(((g=this.opts)==null?0:g.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.P.startPlaybackForNextVideo=function(){var g;(g=this.opts)!=null&&g.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())};
_.z3.Object.defineProperties(Ri.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.opts)==null?0:g.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.opts)==null||!g.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 g;if(Array.isArray((g=this.opts)==null?void 0:g.videoPreviewData)){var u;return(u=this.opts)==null?void 0:u.videoPreviewData[this.videoPreviewDataIndex]}var q;return(q=this.opts)==null?void 0:q.videoPreviewData}}});
Ri.prototype.onIsAdsVideoChange=Ri.prototype.onIsAdsVideoChange;Ri.prototype.onInlinePreviewIsEnabledChange=Ri.prototype.onInlinePreviewIsEnabledChange;Ri.prototype.optsChanged=Ri.prototype.optsChanged;Ri.prototype.onMouseLeave=Ri.prototype.onMouseLeave;Ri.prototype.onPersistentPanelVisibleChange=Ri.prototype.onPersistentPanelVisibleChange;Ri.JSC$21043_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
Ri.JSC$21043_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"}];_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Ri.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],Ri.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Ri.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Ri.prototype,"componentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],Ri.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.mf.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Ri.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ri.prototype,"opts",void 0);_.Y([_.a(),_.K("design:type",Object)],Ri.prototype,"playerControlsData",void 0);_.Y([_.a(),_.K("design:type",Object)],Ri.prototype,"playerControlsAppApi",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ri.prototype,"playerControlsOptions",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ri.prototype,"noAnimation",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ri.prototype,"hidden",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ri.prototype,"active",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ri.prototype,"playing",void 0);
_.Y([_.a({selector:_.cFS}),_.K("design:type",Boolean)],Ri.prototype,"inlinePreviewIsEnabled",void 0);_.Y([_.a(),_.K("design:type",String)],Ri.prototype,"pagePath",void 0);_.Y([_.a({selector:_.$5q}),_.K("design:type",Boolean)],Ri.prototype,"isWatchPage",void 0);_.Y([_.a({selector:_.wy.persistentPanelVisibleSelector}),_.K("design:type",Object)],Ri.prototype,"persistentPanelVisible",void 0);
_.Y([_.C("videoPreviewData"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ri.prototype,"thumbnailData",null);_.Y([_.C("opts","active"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ri.prototype,"hidePlayerControls",null);_.Y([_.C("opts"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ri.prototype,"isAdsVideo",null);
_.Y([_.C("opts"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ri.prototype,"roundedCornersSmall",null);_.Y([_.C("opts"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ri.prototype,"roundedCornersMedium",null);_.Y([_.C("opts"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ri.prototype,"roundedCornersLarge",null);
_.Y([_.C("opts"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ri.prototype,"unroundCornersForPlayback",null);_.Y([_.C("opts","videoPreviewDataIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ri.prototype,"videoPreviewData",null);_.Y([_.a(),_.K("design:type",Object)],Ri.prototype,"videoPreviewDataIndex",void 0);_.Y([_.oE("#inline-player"),_.K("design:type",Object)],Ri.prototype,"inlinePlayer",void 0);
_.Y([_.k_("persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ri.prototype,"onPersistentPanelVisibleChange",null);_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],Ri.prototype,"onMouseLeave",null);_.Y([_.qm("opts"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ri.prototype,"optsChanged",null);
_.Y([_.qm("inlinePreviewIsEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ri.prototype,"onInlinePreviewIsEnabledChange",null);_.Y([_.k_("isAdsVideo"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ri.prototype,"onIsAdsVideoChange",null);_.Y([_.fE({is:"ytd-video-preview",disableElementRegistration:!0})],Ri);
_.T(Ri,"ytd-video-preview",function(){if(uBh!==void 0)return uBh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return uBh=g},{mode:2});var Izh;var wl=function(){var g=_.X.apply(this,arguments)||this;g.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};g.forceDarkTheme=!1;g.forceLightTheme=!1;g.dynamicTextHeight=94;g.hasOverflowButton=!1;g.isInfeedModernization=!1;return g};
_.A(wl,_.X);_.P=wl.prototype;_.P.computeUrlImg=function(g){if(g)return _.my(g.thumbnails)};
_.P.getLogoHeight=function(g){return this.logoWithPadding(g)?"31":"24"};
_.P.getLogoClassName=function(g){return this.logoWithPadding(g)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.P.logoWithPadding=function(g){var u,q;return(g=(u=g.thumbnails)==null?void 0:(q=u[0])==null?void 0:q.height)&&g%31===0?!0:!1};
_.P.sendImpressionEndpoints=function(g){g.impressionEndpoints&&_.KV(this.hostElement,g.impressionEndpoints)};
_.P.observeBasicPalette=function(){var g,u,q=(g=this.data)==null?void 0:(u=g.colorData)==null?void 0:u.basicColorPaletteData;q?_.Le(this.hostElement,q):_.Le(this.hostElement,{})};
_.P.observeDataChanged=function(){var g;this.dynamicTextHeight=((g=this.data)==null?0:g.supplementalText)?74:94;var u;this.hasSupplementalText=!((u=this.data)==null||!u.supplementalText);var q,Q,L,E;g=(q=this.data)==null?void 0:(Q=q.actionButton)==null?void 0:(L=Q.buttonRenderer)==null?void 0:(E=L.colorData)==null?void 0:E.basicColorPaletteData;var y,v,J;if(!((y=this.data)==null?0:(v=y.actionButton)==null?0:(J=v.buttonRenderer)==null?0:J.style)&&g){this.computeIsInfeedModernization(this.data)||(g.borderColor=
g.foregroundTitleColor);var f,t;this.set("data.actionButton.buttonRenderer",_.pH.unsafeClone((f=this.data)==null?void 0:(t=f.actionButton)==null?void 0:t.buttonRenderer))}};
_.P.observeDataForCounterfactual=function(){if(_.w("kevlar_banner_cf_extra_logging")){var g;((g=this.data)==null?0:g.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.P.computeSupplementalStyle=function(){var g;if((g=this.data)!=null&&g.supplementalText){var u,q,Q;if((u=this.data)==null?0:(q=u.colorData)==null?0:(Q=q.basicColorPaletteData)==null?0:Q.foregroundActivatedColor)return g=_.JR(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+g+"; --yt-endpoint-hover-color:"+g+"; --yt-endpoint-visited-color:"+g+"; --yt-formatted-string-bold-font-weight:700;"}};
_.P.computeForcedDarkTheme=function(){var g,u,q,Q=(g=this.data)==null?void 0:(u=g.actionButton)==null?void 0:(q=u.buttonRenderer)==null?void 0:q.style,L,E,y;g=PHp(((L=this.data)==null?void 0:(E=L.colorData)==null?void 0:(y=E.basicColorPaletteData)==null?void 0:y.backgroundColor)||0);return Q&&g};
_.P.computeForcedLightTheme=function(){var g,u,q,Q=(g=this.data)==null?void 0:(u=g.actionButton)==null?void 0:(q=u.buttonRenderer)==null?void 0:q.style,L,E,y;g=!PHp(((L=this.data)==null?void 0:(E=L.colorData)==null?void 0:(y=E.basicColorPaletteData)==null?void 0:y.backgroundColor)||0);return Q&&g};
_.P.computeHasOverflowButton=function(g){return!!g.overflowButton};
_.P.computeHasTitle=function(g){return!!g.title};
_.P.computeTitleMaxFontSize=function(g){return this.computeHasOverflowButton(g)?28:64};
_.P.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.P.computeIsInfeedModernization=function(){var g,u,q,Q,L=(g=this.data)==null?void 0:(u=g.actionButton)==null?void 0:(q=u.buttonRenderer)==null?void 0:(Q=q.colorData)==null?void 0:Q.basicColorPaletteData;return(L==null?void 0:L.backgroundColor)===452984831||(L==null?void 0:L.backgroundColor)===218103808};
wl.prototype.observeDataForCounterfactual=wl.prototype.observeDataForCounterfactual;wl.prototype.observeDataChanged=wl.prototype.observeDataChanged;wl.prototype.observeBasicPalette=wl.prototype.observeBasicPalette;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],wl.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],wl.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wl.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],wl.prototype,"hasSupplementalText",void 0);_.Y([_.a(),_.K("design:type",Object)],wl.prototype,"dismissButtonOverrides",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.K("design:type",Boolean)],wl.prototype,"hasTitle",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.K("design:type",Object)],wl.prototype,"forceDarkTheme",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.K("design:type",Object)],wl.prototype,"forceLightTheme",void 0);_.Y([_.a(),_.K("design:type",Object)],wl.prototype,"dynamicTextHeight",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.K("design:type",Object)],wl.prototype,"hasOverflowButton",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.K("design:type",Object)],wl.prototype,"isInfeedModernization",void 0);_.Y([_.k_("data.colorData.basicColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wl.prototype,"observeBasicPalette",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wl.prototype,"observeDataChanged",null);_.Y([_.k_("data.isVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wl.prototype,"observeDataForCounterfactual",null);_.Y([_.fE({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],wl);
_.T(wl,"ytd-banner-promo-renderer",function(){if(Izh!==void 0)return Izh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Izh=g},{mode:1});var dDh=_.r(function(g){var u=g.data;var q=g.hideDivider;var Q=g.isChannelInfoCard;g={};return _.p("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.p("div",{class:_.Ty("yt-profile-identity-info-view-model__frame",(g["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!u().channelBanner},g))},_.p(i4f,{profileIdentityInfoData:u}),_.p("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.p("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.p(_.Up,{data:function(){return u().avatar}},{avatarViewModel:_.jv})),_.p(Cef,{profileIdentityInfoData:u})),_.p(_.M,{cond:function(){return u().channelDescription},
then:function(L){var E={};return _.p("div",{class:_.Ty((E["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(Q==null||!Q())},E["yt-profile-identity-info-view-model__channel-description"]=function(){return!(Q==null?0:Q())},E))},L)}}),_.p(b49,{profileIdentityInfoData:u}),_.p(_.M,{cond:function(){return!(q==null?0:q())},
then:function(){return _.p("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Ej");
dDh.idomCompat=!0;var b49=_.r(function(g){var u=g.profileIdentityInfoData;return _.p("div",{class:"yt-profile-identity-info-view-model__buttons"},_.p(_.R4,{each:function(){return u().subscribeButton?[u().subscribeButton,u().channelAccess]:[u().channelAccess]}},function(q){return _.p("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.p("div",{class:"yt-profile-identity-info-view-model--button"},_.p(_.Up,{data:function(){return q}},{buttonViewModel:_.TT,
subscribeButtonViewModel:_.jt})))}))},"Fj"),Cef=_.r(function(g){var u=g.profileIdentityInfoData;
return _.p("div",{class:"yt-profile-identity-info-view-model__trio"},_.p("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.p(FO9,{profileIdentityInfoData:u}),_.p(_.Up,{data:function(){return u().threeDotMenu}},{buttonViewModel:_.TT})),_.p(mDt,{profileIdentityInfoData:u}))},"Gj"),FO9=_.r(function(g){var u=g.profileIdentityInfoData;
return _.p("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.p("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return u().channelDisplayName}),_.p(_.M,{cond:function(){return u().verifiedOrOacBadge},
then:function(q){return _.p("div",{class:"yt-profile-identity-info-view-model__badge"},_.p(_.IT,{data:function(){return{thumbnails:[{url:q().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Hj"),i4f=_.r(function(g){var u=g.profileIdentityInfoData;
return _.p("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.p(_.Up,{data:function(){var q=u().channelBanner;if(q)return{imageBannerViewModel:{image:q.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(q){return _.p("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.p(_.iC,{data:q.data,
isPositionRelative:!0}))}}))},"Ij"),mDt=_.r(function(g){var u=g.profileIdentityInfoData;
return _.p("div",{class:"yt-profile-identity-info-view-model__metadata"},_.p("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.p("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return u().channelHandle}),_.p(_.M,{cond:function(){return u().channelPronouns&&u().channelHandle},
then:function(){return _.p("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.p("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return u().channelPronouns})),_.p("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.p("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return u().leftOfBulletInfo}),_.p(_.M,{cond:function(){return u().leftOfBulletInfo&&u().rightOfBulletInfo},
then:function(){return _.p("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.p("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return u().rightOfBulletInfo})))},"Jj");_.dL(dDh,"yt-profile-identity-info-view-model",{props:{data:_.H2,hideDivider:_.H2,isChannelInfoCard:_.H2}});_.dL(_.XSt,"yt-page-header-view-model",{props:{data:_.H2,noPadding:_.H2,enableBanner:_.H2,cinematicContainerTopbarOffset:_.H2,allowCinematicContainerOverflow:_.H2,displayAsSidebar:_.H2,displayAsPanel:_.H2,alwaysUseMediumTextDescription:_.H2}});var azH=_.r(function(){return _.p("div",{class:_.Ty("ytdGhostGridViewModelGhostCard")},_.p("div",{class:_.Ty("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.p("div",{class:_.Ty("ytdGhostGridViewModelDetails")},_.p("div",{class:_.Ty("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.p("div",{class:_.Ty("ytdGhostGridViewModelDetailsTextShell")},_.p("div",{class:_.Ty("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.p("div",{class:_.Ty("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"Lj");_.dL(_.r(function(g){var u=g.data;var q=_.Sy(_.JD);return _.p("ytd-ghost-grid-view-model",{class:_.Ty("ytdGhostGridViewModelHost")},_.p(_.R4,{each:function(){var Q=Array,L;var E=((L=u().numRows)!=null?L:0)*q();return Q(E)},
keyBy:"INDEX"},function(){return _.p(azH,null)}))},"Kj"),"ytd-ghost-grid-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=function(){var L;return(L=u().numColumns)!=null?L:2},Q=function(){return q()>1?3:2};
g={};return _.p("ytd-rich-grid-group",{class:_.Ty("ytdRichGridGroupHost",(g.ytdRichGridGroupHostFirstColumn=function(){return u().colIndex===0},g)),
style:_.xH({"--ytd-rich-grid-group-num-columns":q,"--ytd-rich-grid-items-per-group":Q})},_.p("div",{class:"ytdRichGridGroupContents"},_.p(_.Up,{data:function(){var L;return(L=u().contents)==null?void 0:L.slice(0,Q())}},{richItemRenderer:function(L){return _.p(_.aDX,{data:L.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Mj"),"ytd-rich-grid-group",{props:{data:_.H2}});var cA=function(){var g=_.X.apply(this,arguments)||this;g.resizeOnObserverInit=!1;g.isInlinePreviewDisabled=_.w("web_disable_inline_preview");g.disableStickyFilterBar=!1;g.transparentBackgroundChipsBar=!1;g.hideChipsBar=!1;g.isScrolled=!1;g.isWatchDefaultLayout=!0;g.continuationShowButton=!1;g.rowReducedHorizontalMargin=!1;g.useCompactList=!1;g.manualDownloadsPresent=!1;g.smartDownloadsPresent=!1;g.isOnline=!1;g.shouldRenderDownloadsBanner=!1;g.shouldRenderDownloadsBannerUpsell=!1;g.hasOptedIntoSmartDownloads=
!1;g.elementsPerRow=4;g.typographyBump=!1;g.slimItemsPerRow=1;g.pageLoadingFromNavigation=!1;g.resizeObserver=null;g.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"};g.rendererToTagNameMap=new Map(Object.entries(g.contentMapping()).map(function(u){var q=
_.N(u);u=q.next().value;q=q.next().value;return[u,q.component]}));
g.insertedContent=new Map;return g};
_.A(cA,_.X);_.P=cA.prototype;_.P.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var g=_.N(_.Tr(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),u=g.next();!u.done;u=g.next())u.value.useCompactList=this.useCompactList};
_.P.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var g=_.N(_.Tr(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),u=g.next();!u.done;u=g.next())u=u.value,u.sizing=this.sizing,u.typographyBump=this.typographyBump};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.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]]"}}}};
_.P.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"}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.zr(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.zr(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$21073_throttledOnResize=new _.Kr(this.resizeObserved,_.S8("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.zr(this,this.onScroll))};
_.P.detached=function(){var g;(g=this.resizeObserver)==null||g.disconnect();document.removeEventListener("yt-page-type-changed",_.zr(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.zr(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.zr(this,this.onScroll))};
_.P.insertRichSection=function(g){var u=g.richItemTargetId;g=g.richSectionRendererToInsert;u&&g&&(this.insertedContent.set(u,{content:g,timestamp:Date.now()}),this.reflowContent())};
_.P.computeIsInlinePreviewEnabled=function(g,u,q){return _.w("web_disable_inline_preview")?!1:!q&&uip({miniplayerIsActive:g,miniplayerPlaybackState:u})};
_.P.computeSizing=function(){var g=_.nNu(this.data);if(g||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return g?this.useCompactList?"COMPACT":g:this.miniMode?"COMPACT":"STANDARD"};
_.P.updateItemMinAndMaxWidth=function(){var g=_.S8("rich_grid_max_item_width",500);g>0&&_.x_(this.hostElement,{"--ytd-rich-grid-item-max-width":g+"px"});var u;g=this.getRichItemMinWidth((u=this.hostElement)==null?void 0:u.clientWidth);g>0&&_.x_(this.hostElement,{"--ytd-rich-grid-item-min-width":g+"px"})};
_.P.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.P.resizeObserved=function(){_.Og(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.P.onPageChange=function(){var g=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Og(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Hv.addJob(function(){g.pageLoadingFromNavigation=!1;g.setMasthead();g.maybeSetBigYoodle();g.forceRefreshAndLog();g.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.P.dataChanged=function(){var g=this;_.Og(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.xt(this,function(){g.updateRichItemGridPositions();g.contentsElement&&_.x_(g.hostElement,{"--ytd-rich-grid-content-offset-top":g.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.P.initResizeObserver=function(){var g=this;if(window.ResizeObserver){var u;(u=this.resizeObserver)==null||u.disconnect();var q=!1;this.resizeObserver=new ResizeObserver(function(){if(q){var Q;(Q=g.resizeObserver)==null||Q.disconnect();var L;(L=g.JSC$21073_throttledOnResize)==null||L.fire();requestAnimationFrame(function(){var y;(y=g.JSC$21073_throttledOnResize)==null||y.fire();g.initResizeObserver()})}else if(q=!0,g.resizeOnObserverInit){var E;
(E=g.JSC$21073_throttledOnResize)==null||E.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.P.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Og(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.updateElementsPerRow=function(){_.Og(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.rF({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.rF({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.P.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.P.onRichShelfRendererCollapse=function(g){if(this.shownItems){var u=g.detail;g=this.shownItems.findIndex(function(Q){var L,E;return((E=_.c(Q==null?void 0:(L=Q.richSectionRenderer)==null?void 0:L.content,_.Yta))==null?void 0:E.trackingParams)===u});
var q=g+1;g<0||q>=this.contentsElement.children.length||!this.shownItems[q].richItemRenderer||this.contentsElement.children[q].scrollIntoView({behavior:"smooth",block:"start"})}};
_.P.onSoftReloadPage=function(){this.scrollUpToTop()};
_.P.handleRerenderDownloadsData=function(){_.w("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.P.handlePlaylistRemoveVideosAction=function(g){var u;if(((u=_.c(g,_.EI0))==null?0:u.setVideoIds)&&this.data&&this.data.contents){g=_.c(g,_.EI0).setVideoIds;for(u=this.data.contents.length-1;u>=0;){var q=_.c(this.data.contents[u],_.Lq);(q=q&&_.c(q.content,_.tn))&&q.setVideoId&&g.includes(q.setVideoId)&&this.splice("data.contents",u,1);u--}this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var g=0;g<this.data.contents.length;g++)this.set("data.contents."+g+".richItemRenderer.index",_.I7(String(g+1)))};
_.P.hasTopRowInlinePlayableVideoWithEndorsement=function(g){var u;return!((u=g.slice(0,this.getItemsPerRow()))==null||!u.some(function(q){var Q;q=_.c(q==null?void 0:(Q=q.richItemRenderer)==null?void 0:Q.content,_.W4X);var L;return(q==null?void 0:q.inlinePlaybackEndpoint)&&(q==null?void 0:(L=q.thumbnailOverlays)==null?void 0:L.some(function(E){return E.thumbnailOverlayEndorsementRenderer}))}))};
_.P.refreshGridLayoutNew=function(g,u,q,Q){var L=Q.postsPerRow;var E=Q.slimItemsPerRow;var y=Q.gameCardsPerRow;Q=Q.miniGameCardsPerRow;var v;if((v=this.data)==null||!v.contents||!this.containerWidth)return!1;var J;if((J=this.data.responsiveContainerConfiguration)==null?0:J.responsiveSize){var f=_.Zcq(this.data.responsiveContainerConfiguration,this.containerWidth,2),t;v=_.Gk(Object.assign({},f,{standardUnitMinWidth:(t=this.data)==null?void 0:t.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&f.isCompactList)}else v=_.Gk({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(f=this.data)==null?void 0:f.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=v.typographyBump;t=!1;if(g||this.elementsPerRow!==v.numItems||this.postsPerRow!==L||this.slimItemsPerRow!==E||this.gameCardsPerRow!==
y||this.miniGameCardsPerRow!==Q||this.gutter!==v.gutter)t=this.elementsPerRow!==v.numItems,this.elementsPerRow=v.numItems,this.postsPerRow=L,this.slimItemsPerRow=E,this.gameCardsPerRow=y,this.miniGameCardsPerRow=Q,this.gutter=v.gutter,this.itemWidth=v.itemWidth,this.reflowContent(u),_.x_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":v.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(q);this.ytdReduxBehavior.dispatch(_.rF({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:v.maxContainerWidth}));return t};
_.P.refreshGridLayout=function(g,u){var q,Q=(q=this.hostElement)==null?void 0:q.clientWidth;this.containerWidth=this.adjustRichGridWidth(Q,!0);var L;if((L=this.data)==null||!L.contents||!this.containerWidth)return g&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(g=!0,this.pendingForceReflow=!1);q=this.getRichItemMinWidth(Q);var E=this.isShortsPanel?146:194,y=this.getMiniGameCardMinWidth(),v=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.S8("rich_grid_default_max_items_per_row",
6);Q=q=this.calcElementsPerRow(q,v);(L=q<=3&&this.miniModeAllowed())&&(q=this.calcElementsPerRow(240,4));var J=this.calcMaxSlimElementsPerRow(q,v,this.isDefaultGrid);v=this.calcElementsPerRow(E,J);var f=this.calcElementsPerRow(this.isCompactGrid?E:154,J);E=this.calcElementsPerRow(this.isCompactGrid?E:y,J);y=!1;if(this.sizing)return this.refreshGridLayoutNew(g,u,L,{postsPerRow:Q,slimItemsPerRow:v,gameCardsPerRow:f,miniGameCardsPerRow:E});if(g||this.elementsPerRow!==q||this.postsPerRow!==Q||this.slimItemsPerRow!==
v||this.gameCardsPerRow!==f||this.miniGameCardsPerRow!==E)y=this.elementsPerRow!==q,this.elementsPerRow=q,this.postsPerRow=Q,this.slimItemsPerRow=v,this.gameCardsPerRow=f,this.miniGameCardsPerRow=E,this.reflowContent(u),this.updateElementsPerRow(),_.x_(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)&&_.x_(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(L);_.Og(this.hostElement,"yt-rich-grid-layout-refreshed");return y};
_.P.getRichItemMinWidth=function(g){var u=_.S8("rich_grid_min_item_width",310);if(!_.w("kevlar_disable_min_width_override")){var q,Q;u=(Q=(q=this.data)==null?void 0:q.minItemWidth)!=null?Q:u}return u+_.YXF(g)};
_.P.calcMaxSlimElementsPerRow=function(g,u,q){return(q===void 0?0:q)?g===1?2:g%2===0?g/2*3:g+2:u*2};
_.P.adjustRichGridWidth=function(g,u){var q=_.w("disable_rich_grid_guide_compensation");if(!this.isWatch&&!q&&this.hostElement.offsetWidth===document.body.clientWidth&&(q=_.Bk().resolve(_.xv(_.Gu)))&&!q.getData())if(q.canFitPersistentGuide(g)&&q.getGuideExpandsAutomatically()){var Q,L,E=Number((Q=window.getComputedStyle(this.hostElement))==null?void 0:(L=Q.getPropertyValue("--app-drawer-width"))==null?void 0:L.replace("px",""));g-=E||0}else if(q.canFitMiniGuide(g)){var y;Q=Number((E=window.getComputedStyle(this.hostElement))==
null?void 0:(y=E.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:y.replace("px",""));g-=Q||0}g>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(g-=u?32:48));return g};
_.P.calcElementsPerRow=function(g,u){var q=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),Q=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((q+Q)/(g+Q))||1,u)};
_.P.reflowContent=function(g){var u=this;if(!this.isReflowing){this.isReflowing=!0;var q,Q,L=!!((q=this.data)==null?0:(Q=q.contents)==null?0:Q.some(function(v){return _.c(v,_.V5)}));
q=this.getItemsPerRow();var E;Q=(E=this.data)==null?void 0:E.reflowOptions;g&&(_.fW("rgr_s"),_.xt(this,function(){_.fW("rgr_nrf")}));
g={};(E=_.Tr(this.hostElement).querySelector("#contents"))&&(g={contentElement:E,rendererToTagNameMap:this.rendererToTagNameMap});E=(E=this.data.contents)?E.slice():[];L=GNt(E,q,L,Q,this.getRichGridStyle(),g,this.insertedContent);var y=L.orderedContent;if(L=L.pinnedContentNotShownTargetIds)for(L=_.N(L),q=L.next();!q.done;q=L.next())this.insertedContent.delete(q.value);L=function(){u.shownItems=y;u.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(y),_.xt(this,L)):L()}};
_.P.getFirstRowItems=function(g){for(var u=[],q=0;q<g.length;q++){var Q=void 0,L=void 0,E=void 0,y=void 0,v=void 0,J=void 0;if(((Q=g[q])==null?void 0:(L=Q.richItemRenderer)==null?void 0:L.rowIndex)===0||((E=g[q])==null?void 0:(y=E.richGroupRenderer)==null?void 0:y.rowIndex)===0||((v=g[q])==null?void 0:(J=v.richSectionRenderer)==null?void 0:J.rowIndex)===0)u.push(g[q]);else break}return u};
_.P.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.P.resetInsertedContentIfNeeded=function(){(_.w("web_explore_hub_on_hover")||_.w("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.P.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.P.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()};
_.P.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.P.terminateVideoPreview=function(){_.Og(this.hostElement,"yt-terminate-video-preview-action")};
_.P.updateRichItemGridPositions=function(){var g={gridData:{gridColumnCount:this.elementsPerRow}},u;((u=this.data)==null?0:u.trackingParams)&&(u=_.j_())&&_.CW(u,_.Lr(this.data.trackingParams),g);_.Og(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.miniModeAllowed=function(){return this.isChannelPage};
_.P.getMiniGameCardMinWidth=function(){return 154};
_.P.updateMiniMode=function(g){this.miniMode=this.miniModeAllowed()&&g;this.ytdReduxBehavior.dispatch(_.rF({type:"SET_RICH_GRID_MINI_MODE",payload:g}))};
_.P.isCurrentPage=function(){return location.pathname===this.pagePath};
_.P.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var g=_.Bk().resolve(_.ba).getCurrentPage();g&&g.setScrollTop(0)}};
_.P.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.P.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.P.maybeSetBigYoodle=function(){var g,u=(g=this.data)==null?void 0:g.bigYoodle;this.bigYoodleData!==u&&(this.bigYoodleData=u)};
_.P.setMasthead=function(){var g;((g=this.data)==null?0:g.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.P.getRichGridStyle=function(){var g,u;return(u=(g=this.data)==null?void 0:g.style)!=null?u:"RICH_GRID_STYLE_UNKNOWN"};
_.P.onIsShortsGridChange=function(){var g=this.ytdReduxBehavior,u=g.dispatch,q=this.getRichGridStyle();u.call(g,_.rF({type:"SET_RICH_GRID_STYLE",payload:q}))};
_.P.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.P.onScroll=function(){this.isScrolled=window.scrollY>0};
_.z3.Object.defineProperties(cA.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.ytContinuationHandlerBehavior)==null?void 0:g.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var g=_.Bk().resolve(_.ba).getCurrentPage(),u,q,Q;return(((u=this.data)==null?void 0:u.targetId)==="browse-feedFEsfv_audio_pivot"||_.w("web_enable_channel_pivot_panel")&&((q=this.data)==null?void 0:q.targetId)==="browse-feedFEsfv_channel_pivot"||_.w("web_enable_effect_pivot_panel")&&((Q=this.data)==null?void 0:Q.targetId)==="browse-feedFEsfv_effect_pivot")&&(g==null?void 0:g.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.w("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 g;return!((g=this.data)==null?0:g.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var g;return((g=_.Bk().resolve(_.ba).getCurrentPage())==null?void 0:g.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var g;return((g=_.Bk().resolve(_.ba).getCurrentPage())==null?void 0:g.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 g;return(((g=this.data)==null?void 0:g.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.data)==null?0:g.enableContentSpecificAspectRatio)||((u=this.data)==null?0:(q=u.responsiveContainerConfiguration)==null?0:q.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.S8("web_continuation_handler_margin",0):0}}});
cA.prototype.onIsShortsGridChange=cA.prototype.onIsShortsGridChange;cA.prototype.onReloadContinuationFinish=cA.prototype.onReloadContinuationFinish;cA.prototype.reflowContent=cA.prototype.reflowContent;cA.prototype.handleRerenderDownloadsData=cA.prototype.handleRerenderDownloadsData;cA.prototype.onRichShelfRendererCollapse=cA.prototype.onRichShelfRendererCollapse;cA.prototype.onRequestElementsPerRow=cA.prototype.onRequestElementsPerRow;cA.prototype.contentLengthChanged=cA.prototype.contentLengthChanged;
cA.prototype.dataChanged=cA.prototype.dataChanged;cA.prototype.onSizingChange=cA.prototype.onSizingChange;cA.prototype.onUseCompactListChange=cA.prototype.onUseCompactListChange;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],cA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.LJ),_.K("design:type",Object)],cA.prototype,"ironResizableBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],cA.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.i5),_.K("design:type",Object)],cA.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],cA.prototype,"componentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],cA.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cA.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],cA.prototype,"miniMode",void 0);_.Y([_.a({value:[]}),_.K("design:type",Array)],cA.prototype,"shownItems",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],cA.prototype,"isReflowing",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],cA.prototype,"isFilteredFeed",void 0);_.Y([_.a({selector:_.eOq}),_.K("design:type",Boolean)],cA.prototype,"guideIsExpanded",void 0);
_.Y([_.a({selectorArgs:["entitySelectorType"],selector:function(g,u){if(_.w("kevlar_modern_downloads_page")&&u&&u!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(u){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":u=g.entities;var q=_.yv(u),Q=_.vc(u),L=_.VBq(g),E=_.ahu(g),y=_.X_J(g),v=_.s_u(u),J=_.Qv(q),f=_.Ds(u);return _.$du(q,Q,v,_.p_q(u),L,E,J,f,y,_.WfJ(g),_.MZ(g));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return g=_.yv(g.entities),_.wzq(g);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return g=
_.EeT(g.entities),_.cxF(g);default:_.Io(new _.Ji("Error: entitySelectorType defined but not matched in selector.",g,u))}}}),
_.K("design:type",Object)],cA.prototype,"entityDrivenRichGridData",void 0);_.Y([_.a(),_.K("design:type",Object)],cA.prototype,"resizeOnObserverInit",void 0);_.Y([_.a(),_.K("design:type",Object)],cA.prototype,"bigYoodleData",void 0);_.Y([_.a(),_.K("design:type",Object)],cA.prototype,"mastheadData",void 0);_.Y([_.a(),_.K("design:type",Boolean)],cA.prototype,"isInlinePreviewDisabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],cA.prototype,"disableStickyFilterBar",void 0);
_.Y([_.a(),_.K("design:type",Object)],cA.prototype,"transparentBackgroundChipsBar",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],cA.prototype,"hideChipsBar",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("isHomePage","isFilteredFeed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"showChipsOnScroll",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],cA.prototype,"isScrolled",void 0);
_.Y([_.a(),_.K("design:type",Object)],cA.prototype,"isWatchDefaultLayout",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],cA.prototype,"continuationShowButton",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],cA.prototype,"rowReducedHorizontalMargin",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],cA.prototype,"useCompactList",void 0);_.Y([_.a({selector:function(g){return _.vc(g.entities).length>0}}),
_.K("design:type",Object)],cA.prototype,"manualDownloadsPresent",void 0);_.Y([_.a({selector:function(g){return _.yv(g.entities).length>0}}),
_.K("design:type",Object)],cA.prototype,"smartDownloadsPresent",void 0);_.Y([_.a({selector:_.MZ}),_.K("design:type",Object)],cA.prototype,"isOnline",void 0);_.Y([_.a({selector:_.ahu}),_.K("design:type",Object)],cA.prototype,"shouldRenderDownloadsBanner",void 0);_.Y([_.a({selector:_.WfJ}),_.K("design:type",Object)],cA.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.Y([_.a({selector:_.VBq}),_.K("design:type",Object)],cA.prototype,"hasOptedIntoSmartDownloads",void 0);
_.Y([_.k_("useCompactList"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cA.prototype,"onUseCompactListChange",null);_.Y([_.k_("sizing","typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cA.prototype,"onSizingChange",null);_.Y([_.a({selector:_.H1m}),_.K("design:type",Number)],cA.prototype,"miniplayerPlaybackState",void 0);_.Y([_.a({selector:_.jb}),_.K("design:type",Boolean)],cA.prototype,"miniplayerIsActive",void 0);
_.Y([_.a({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.K("design:type",Boolean)],cA.prototype,"isInlinePreviewEnabled",void 0);_.Y([_.a({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.K("design:type",String)],cA.prototype,"sizing",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],cA.prototype,"elementsPerRow",void 0);
_.Y([_.a(),_.K("design:type",Object)],cA.prototype,"typographyBump",void 0);_.Y([_.a(),_.K("design:type",Number)],cA.prototype,"itemWidth",void 0);_.Y([_.oE("#header"),_.K("design:type",HTMLElement)],cA.prototype,"headerElement",void 0);_.Y([_.oE("#contents"),_.K("design:type",HTMLElement)],cA.prototype,"contentsElement",void 0);_.Y([_.C("reloadUiContent"),_.K("design:type",Object),_.K("design:paramtypes",[])],cA.prototype,"loadingContentRenderer",null);
_.Y([_.C("reloadUiContent"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"hasLoadingContent",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cA.prototype,"dataChanged",null);_.Y([_.qm("data.contents.length"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cA.prototype,"contentLengthChanged",null);
_.Y([_.n6("yt-request-elements-per-row"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cA.prototype,"onRequestElementsPerRow",null);_.Y([_.n6("yt-rich-shelf-renderer-collapse"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],cA.prototype,"onRichShelfRendererCollapse",null);
_.Y([_.qm("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cA.prototype,"handleRerenderDownloadsData",null);_.Y([_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],cA.prototype,"entitySelectorType",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"isSub",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"isWatch",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"isShortsPanel",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("isWatch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"reducedTopMargin",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data","isWatch","isWatchDefaultLayout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"noTopMargin",null);_.Y([_.a({reflectToAttribute:!0}),_.C("isInlinePreviewEnabled","shownItems"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"topRowEndorsement",null);
_.Y([_.C("data.header"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"hideHeader",null);_.Y([_.n6("yt-rich-grid-reflow"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean]),_.K("design:returntype")],cA.prototype,"reflowContent",null);_.Y([_.n6("yt-reload-continuation-finish"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cA.prototype,"onReloadContinuationFinish",null);
_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"isSlimGrid",null);_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"isShortsGrid",null);_.Y([_.C("data","isSlimGrid","isShortsGrid"),_.a(),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"noRichItemGutterMargins",null);
_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"isShortsGridSlim",null);_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"isCompactGrid",null);_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"isDefaultGrid",null);
_.Y([_.C("data.targetId"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"hideChipsBarOnWatch",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cA.prototype,"onIsShortsGridChange",null);_.Y([_.C("data.enableContentSpecificAspectRatio"),_.a(),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cA.prototype,"force16By9ThumbnailAspectRatio",null);
_.Y([_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],cA.prototype,"continuationTriggerOffset",null);_.Y([_.fE({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],cA);
_.T(cA,"ytd-rich-grid-renderer",function(){if(Vrz!==void 0)return Vrz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Vrz=g},{mode:2});var VAz;var HA=function(){return _.X.apply(this,arguments)||this};
_.A(HA,_.X);_.P=HA.prototype;
_.P.onKeyDown=function(g){if(this.snippetElements.length!==0&&(g=g.keyCode,g===38||g===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);g===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.tL(this.highlightedIndex,-1,this.snippetElements.length);g=this.snippetElements.length;var u=this.highlightedIndex%g;this.highlightedIndex=u*g<0?u+g:u;g=this.snippetElements[this.highlightedIndex];this.highlightSnippet(g);this.ensureVisible(g)}};
_.P.onKeyUp=function(g){var u=this;i8f(g)&&(g.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Hv.cancelJob(this.inputTimerId),this.inputTimerId=_.Hv.addLowPriorityJob(function(){u.typedValue&&(u.fetchSnippets(u.typedValue),u.logInputGesture(u.data))},1E3))};
_.P.onClick=function(g){(g=_.B6W(g.target,null,"snippet-item"))&&this.selectSnippet(g)};
_.P.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.P.ready=function(){var g=this;this.inputElement.addEventListener("focus",function(){g.snippetsWrapper.style.removeProperty("display")})};
_.P.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.P.getSourceTimelines=function(){if(!this.data)return[];var g=[];if(this.data.searchInVideoSources)for(var u=_.N(this.data.searchInVideoSources),q=u.next();!q.done;q=u.next())q=q.value,q==="SEARCH_IN_VIDEO_SOURCE_ASR"?g.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):q==="SEARCH_IN_VIDEO_SOURCE_OCR"&&g.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return g};
_.P.fetchSnippets=function(g){var u=_.YJ(this.hostElement,"yt-get-current-video-id-action")[0],q=this.getSourceTimelines();g={getSearchInVideoCommand:{externalVideoId:u,query:g!=null?g:"",sourceTimelines:q},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}})};
_.P.filterSnippets=function(g,u){var q=this;if(u){this.filteredSnippets=(0,_.pH.unsafeClone)(g);var Q=RegExp(_.GPF(u),"i");this.filteredSnippets=this.filteredSnippets.filter(function(y){return Q.test(q.ytRendererBehavior.getSimpleString(y.snippet))});
g=_.N(this.filteredSnippets);for(var L=g.next();!L.done;L=g.next()){L=L.value;var E=this.ytRendererBehavior.getSimpleString(L.snippet);L.snippet={runs:[{text:E.substring(0,E.toLowerCase().indexOf(u))},{text:E.substring(E.toLowerCase().indexOf(u),E.toLowerCase().indexOf(u)+u.length),bold:!0},{text:E.substring(E.toLowerCase().indexOf(u)+u.length,E.length)}]}}}else this.filteredSnippets=g};
_.P.onUpdateSearchInVideoResults=function(g){if(!(this.snippets.length>0)){var u,q,Q;if((Q=(u=_.c(g,MmH))==null?void 0:(q=u.results)==null?void 0:q.length)!=null&&Q){var L;this.filteredSnippets=this.snippets=((L=_.c(g,MmH))==null?void 0:L.results).map(function(E){var y,v,J;return{startMs:E==null?void 0:(y=E.searchInVideoResultRenderer)==null?void 0:y.startMs,startTimeText:E==null?void 0:(v=E.searchInVideoResultRenderer)==null?void 0:v.startTimeText,snippet:E==null?void 0:(J=E.searchInVideoResultRenderer)==
null?void 0:J.snippet}})}}};
_.P.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};
_.P.highlightSnippet=function(g){g.classList.add("highlighted")};
_.P.removeSnippetHighlight=function(g){g.classList.remove("highlighted")};
_.P.selectSnippet=function(g){this.typedValue=String(g.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(g);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.P.ensureVisible=function(g){var u=this.snippetsWrapper.scrollTop,q=u+this.snippetsWrapper.clientHeight,Q=g.offsetTop-this.snippetsWrapper.offsetTop;g=Q+g.clientHeight;Q<u?this.snippetsWrapper.scrollTop-=u-Q:g>q&&(this.snippetsWrapper.scrollTop+=g-q)};
_.P.seekPlayer=function(g){var u,q;return _.D(function(Q){if(Q.nextAddress==1){if(!g)return Q.jumpTo(0);u=Number(g.dataset.startOffset);return Q.yield(_.mH().getPlayerPromise(),3)}q=Q.yieldResult;q.seekTo(u/1E3,!0);q.wakeUpControls();_.Wx(Q)})};
_.P.logInputGesture=function(g){var u=_.j_();u&&(g==null?0:g.trackingParams)&&_.iH(u,_.Lr(g.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.P.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("typed-value-changed",this.typedValue))};
_.P.updateTypedValueFromBinding=function(g){this.typedValue=g.currentTarget.value};
HA.prototype.typedValueChangedForBinding=HA.prototype.typedValueChangedForBinding;HA.prototype.dataChanged=HA.prototype.dataChanged;HA.prototype.panelContentVisibleChanged=HA.prototype.panelContentVisibleChanged;HA.prototype.onClick=HA.prototype.onClick;HA.prototype.onKeyUp=HA.prototype.onKeyUp;HA.prototype.onKeyDown=HA.prototype.onKeyDown;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],HA.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],HA.prototype,"data",void 0);_.Y([_.a({value:[]}),_.K("design:type",Array)],HA.prototype,"snippets",void 0);_.Y([_.a({value:[]}),_.K("design:type",Array)],HA.prototype,"filteredSnippets",void 0);_.Y([_.a({value:[]}),_.K("design:type",Array)],HA.prototype,"snippetElements",void 0);
_.Y([_.oE("#siv-input"),_.K("design:type",HTMLElement)],HA.prototype,"inputElement",void 0);_.Y([_.oE("#siv-snippets-wrapper"),_.K("design:type",HTMLElement)],HA.prototype,"snippetsWrapper",void 0);_.Y([_.a(),_.K("design:type",String)],HA.prototype,"typedValue",void 0);_.Y([_.a({value:-1}),_.K("design:type",Number)],HA.prototype,"highlightedIndex",void 0);_.Y([_.n6("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[_.sO]),_.K("design:returntype")],HA.prototype,"onKeyDown",null);
_.Y([_.n6("keyup"),_.K("design:type",Function),_.K("design:paramtypes",[_.sO]),_.K("design:returntype")],HA.prototype,"onKeyUp",null);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],HA.prototype,"onClick",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],HA.prototype,"panelContentVisible",void 0);
_.Y([_.k_("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HA.prototype,"panelContentVisibleChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HA.prototype,"dataChanged",null);_.Y([_.k_("typedValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HA.prototype,"typedValueChangedForBinding",null);
_.Y([_.fE({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],HA);
_.T(HA,"ytd-search-in-video-renderer",function(){if(VAz!==void 0)return VAz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return VAz=g},{mode:1});var XBZ;var Av=function(){return _.X.apply(this,arguments)||this};
_.A(Av,_.X);Av.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Av.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]]"}}}}}};
Av.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var g,u,q,Q,L=(u=_.c((g=this.data)==null?void 0:g.onClickCommand,_.YGi))==null?void 0:(q=u.item)==null?void 0:(Q=q.notificationTextRenderer)==null?void 0:Q.successResponseText;L&&_.Avq(this.hostElement,L)}};
_.z3.Object.defineProperties(Av.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q;return this.isProductPlaceholder&&((g=this.data)==null?void 0:(u=g.hiddenProductOptions)==null?void 0:u.showDropCountdown)&&!!((q=this.data)==null?0:(Q=q.hiddenProductOptions)==null?0:Q.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var g;return!this.isProductPlaceholder&&!((g=this.data)==null?0:g.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var g,u;return!((g=this.data)==null?0:g.priceReplacementText)&&!((u=this.data)==null||!u.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Av.prototype,"componentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Av.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("isProductPlaceholder"),_.K("design:type",Object),_.K("design:paramtypes",[])],Av.prototype,"useCenterLayoutContainer",null);_.Y([_.a({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],Av.prototype,"buttonOverride",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Av.prototype,"isProductPlaceholder",null);
_.Y([_.C("isProductPlaceholder"),_.K("design:type",Object),_.K("design:paramtypes",[])],Av.prototype,"showDropCountdown",null);_.Y([_.C("isProductPlaceholder","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Av.prototype,"showBrandName",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Av.prototype,"showPriceReplacementText",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Av.prototype,"showPrice",null);
_.Y([_.C("isProductPlaceholder"),_.K("design:type",Object),_.K("design:paramtypes",[])],Av.prototype,"showMetadata",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Av);
_.T(Av,"ytd-product-list-item-renderer",function(){if(XBZ!==void 0)return XBZ;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return XBZ=g},{mode:1});var rEz;var ZZ=function(){return _.X.apply(this,arguments)||this};
_.A(ZZ,_.X);ZZ.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
ZZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
ZZ.prototype.panelContentVisibleChanged=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return g.playerApi?q.jumpTo(2):q.yield(_.mH().getPlayerPromise(),3);q.nextAddress!=2&&(g.playerApi=q.yieldResult);(u=g.playerApi)==null||u.productsInVideoVisibilityUpdated(!!g.panelContentVisible);_.Wx(q)})};
ZZ.prototype.panelContentVisibleChanged=ZZ.prototype.panelContentVisibleChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ZZ.prototype,"panelContentVisible",void 0);_.Y([_.a(),_.K("design:type",Object)],ZZ.prototype,"data",void 0);
_.Y([_.k_("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],ZZ.prototype,"panelContentVisibleChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],ZZ);
_.T(ZZ,"ytd-product-list-renderer",function(){if(rEz!==void 0)return rEz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return rEz=g},{mode:1});var WOK;var lz=function(){var g=_.X.apply(this,arguments)||this;g.isToggleChecked=!1;return g};
_.A(lz,_.X);lz.prototype.onDataChanged=function(){var g;this.isToggleChecked=((g=this.data)==null?void 0:g.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
lz.prototype.close=function(){var g;((g=this.data)==null?0:g.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
lz.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var g,u=_.c((g=this.data)==null?void 0:g.switchButton,fdh);u&&(this.isToggleChecked&&u.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(u.switchOnInnertubeCommand),!this.isToggleChecked&&u.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(u.switchOffInnertubeCommand))};
lz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lz.prototype.onDataChanged=lz.prototype.onDataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],lz.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],lz.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],lz.prototype,"isToggleChecked",void 0);_.Y([_.a({value:_.Ug("CLOSE")}),_.K("design:type",String)],lz.prototype,"closeButtonAriaLabel",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lz.prototype,"onDataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],lz);
_.T(lz,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(WOK!==void 0)return WOK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return WOK=g},{mode:1});var T1n;var Ii=function(){var g=_.X.apply(this,arguments)||this;g.hideTimestamps=!!_.P9("hide-transcript-timestamps");g.currentCueIndex=-1;g.flatCues=[];g.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};g.TEST_ONLY={getFlatCues:function(){return g.flatCues}};
return g};
_.A(Ii,_.X);_.P=Ii.prototype;_.P.hideTimestampsChanged=function(){_.Ex("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.dataChanged=function(){var g;if((g=this.data)!=null&&g.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;g=_.N(this.data.cueGroups);for(var u=g.next();!u.done;u=g.next()){u=_.N(_.c(u.value,C5C).cues);for(var q=u.next();!q.done;q=u.next())this.flatCues.push(Number(_.c(q.value,bmt).startOffsetMs))}}};
_.P.onYtPlayerTimeChanged=function(g){if(!(g<0)){for(var u=this.currentCueIndex,q=u;;){var Q=q>=0?this.flatCues[q]/1E3:-1;if(g+.5<Q)--q;else if(Q=q+1<this.flatCues.length?this.flatCues[q+1]/1E3:Infinity,g+.5>Q)q+=1;else break}q!==u&&(u>=0&&((g=this.getCueElement(u))&&g.classList.remove("active"),(u=this.getCueGroupElement(u))&&u.classList.remove("active")),(u=this.getCueElement(q))&&u.classList.add("active"),(u=this.getCueGroupElement(q))&&u.classList.add("active"),this.currentCueIndex=q,this.isHovered||
this.scrollElementToTop(q))}};
_.P.scrollElementToTop=function(g){g=this.getCueElement(g>=3?g-3:0);this.hostElement.scrollTop=Math.min(g.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.getCueElement=function(g){return _.Tr(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[g]+'"]')};
_.P.getCueGroupElement=function(g){return(g=this.getCueElement(g))&&g.parentElement?g.parentElement.parentElement:null};
_.P.onTap=function(g){var u=_.bd(g);g.target.classList.contains("cue")&&this.seekCueElement(u)};
_.P.onKeyPress=function(g){g.keyCode==13&&(g=_.B6W(g.target,null,"cue"))&&this.seekCueElement(g)};
_.P.seekCueElement=function(g){g=Number(g.getAttribute("start-offset"));_.YJ(this.hostElement,"yt-transcript-player-seek",[g/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
Ii.prototype.onMouseLeave=Ii.prototype.onMouseLeave;Ii.prototype.onMouseEnter=Ii.prototype.onMouseEnter;Ii.prototype.onKeyPress=Ii.prototype.onKeyPress;Ii.prototype.onTap=Ii.prototype.onTap;Ii.prototype.dataChanged=Ii.prototype.dataChanged;Ii.prototype.hideTimestampsChanged=Ii.prototype.hideTimestampsChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Ii.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ii.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ii.prototype,"hideTimestamps",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Ii.prototype,"isHovered",void 0);_.Y([_.k_("hideTimestamps"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ii.prototype,"hideTimestampsChanged",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ii.prototype,"dataChanged",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Ii.prototype,"onTap",null);_.Y([_.n6("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Ii.prototype,"onKeyPress",null);
_.Y([_.n6("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ii.prototype,"onMouseEnter",null);_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ii.prototype,"onMouseLeave",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Ii);
_.T(Ii,"ytd-transcript-body-renderer",function(){if(T1n!==void 0)return T1n;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return T1n=g},{mode:1});var hrL;var iz=function(){var g=_.X.apply(this,arguments)||this;g.darkerPanels=_.w("web_watch_darker_panels");return g};
_.A(iz,_.X);iz.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],iz.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],iz.prototype,"darkerPanels",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],iz);
_.T(iz,"ytd-transcript-footer-renderer",function(){if(hrL!==void 0)return hrL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return hrL=g},{mode:1});var Y4H;var O4H;var Cx=function(){var g=_.X.apply(this,arguments)||this;g.systemIcons=_.w("kevlar_system_icons");g.showClearButton=!1;return g};
_.A(Cx,_.X);_.P=Cx.prototype;_.P.handleInput=function(g){var u=this;g.target.value.length?_.c$(this,"ytdTranscriptSearchBoxSearch",function(){u.emitSearchEvent(g)},500):(_.QNm(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=g.target.value.length>0};
_.P.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.P.handleClick=function(){var g,u=(g=this.data)==null?void 0:g.trackingParams;u&&_.nq(_.gL(),u)};
_.P.handleClear=function(){_.QNm(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var g,u,q=(u=_.c((g=this.data)==null?void 0:g.clearButton,_.eW))==null?void 0:u.trackingParams;q&&_.nq(_.gL(),q);this.clear()};
_.P.emitSearchEvent=function(g){_.hJ(this.hostElement,"yt-transcript-search-box-search",{query:g.target.value});var u,q;(g=(q=_.c((u=this.data)==null?void 0:u.searchButton,_.eW))==null?void 0:q.trackingParams)&&_.nq(_.gL(),g)};
_.P.emitClearEvent=function(){_.hJ(this.hostElement,"yt-transcript-search-box-clear")};
_.z3.Object.defineProperties(Cx.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Tr(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Cx.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Cx.prototype,"systemIcons",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Cx);
_.T(Cx,"ytd-transcript-search-box-renderer",function(){if(O4H!==void 0)return O4H;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return O4H=g},{mode:1});var KOn;var xDn;var bz=function(){return _.X.apply(this,arguments)||this};
_.A(bz,_.X);bz.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var g,u;this.sectionHeaderAriaLabel=(g=this.data)==null?void 0:(u=g.accessibility)==null?void 0:u.accessibilityData.label}};
bz.prototype.fireSelectedEvent=function(g){_.hJ(this.hostElement,"ytd-transcript-section-header",{startMs:g})};
bz.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
bz.prototype.handleKeyPress=function(g){this.data&&g.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.z3.Object.defineProperties(bz.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=(g=this.data)==null?void 0:g.enableTappableTranscriptHeader)!=null?u:!1}}});
bz.prototype.dataChanged=bz.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],bz.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],bz.prototype,"sectionHeaderAriaLabel",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],bz.prototype,"enableTappableTranscriptHeader",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bz.prototype,"dataChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],bz);
_.T(bz,"ytd-transcript-section-header-renderer",function(){if(xDn!==void 0)return xDn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return xDn=g},{mode:1});var B1L;var zrt;var dl=function(){var g=_.X.apply(this,arguments)||this;g.isEditMode=!1;g.touchCaptionsEnabled=!1;g.deleteCaptionCorrectionPopupCommand=null;g.voteCaptionCorrectionPopupCommand=null;g.roundedContainer=!0;g.mouseOver=!1;g.textChanged=!1;g.messages={suggest_correction:_.Ug("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Ug("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Ug("submit_correction",void 0,"Submit for review"),cancel_correction:_.Ug("cancel_correction",
void 0,"Cancel"),replay_segment:_.Ug("replay_segment",void 0,"Re-play segment"),delete_correction:_.Ug("delete_correction",void 0,"Delete correction")};g.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return g};
_.A(dl,_.X);_.P=dl.prototype;_.P.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)};
_.P.handleDelete=function(g){if(this.deleteCaptionCorrectionPopupCommand){var u=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);u&&this.ytdOpenPopupBehavior.openPopup(u);g.stopPropagation()}};
_.P.handleSubmit=function(g){if(this.data&&this.data.submitCaptionCorrectionCommand&&(g.stopPropagation(),this.textChanged)){var u;g=(u=_.c(this.data.submitCaptionCorrectionCommand,_.gs8))==null?void 0:u.params;u=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:g,correctionText:String(this.ironTextAreaElement.value),originalText:_.iR(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(u);this.isEditMode=!1}};
_.P.handleUpdateSegmentText=function(g){(g=_.c(g,CCK))&&g.targetId&&this.data&&g.targetId===this.data.targetId&&(g.userCorrection&&(this.editedText=g.userCorrection),g.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.iR(this.data.snippet)),g.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=g.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=g.voteCaptionCorrectionPopupCommand?
g.voteCaptionCorrectionPopupCommand:null,g.accessibility&&(this.segmentAriaLabel=g.accessibility.accessibilityData.label))};
_.P.handleCancel=function(g){this.isEditMode=!1;g.stopPropagation();this.logClientVe(159409)};
_.P.handleEditSegmentCommand=function(g){(g=_.c(g,iXz))&&g.targetId&&this.data&&g.targetId===this.data.targetId&&this.handleEdit()};
_.P.handleEditButtonClick=function(g){this.data&&(this.handleEdit(),g.stopPropagation())};
_.P.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var g;(g=this.ironTextAreaElement.textarea)==null||g.focus();this.logClientVe(159407)}};
_.P.handleMouseEnter=function(){this.mouseOver=!0};
_.P.handleMouseLeave=function(){this.mouseOver=!1};
_.P.handleReplay=function(g){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),g.stopPropagation(),this.logClientVe(159408))};
_.P.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()))};
_.P.handleKeypress=function(g){this.data&&(this.isEditMode?g.stopPropagation():this.isEnterPress(g)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(g)&&this.logClientVe(138758))};
_.P.handleTextboxClick=function(g){g.stopPropagation()};
_.P.handleTextboxKeydown=function(g){this.isControlEnterPress(g)?this.handleSubmit(g):g.key==="Escape"&&this.handleCancel(g)};
_.P.handleTextboxKeyup=function(){this.textChanged=_.iR(this.latestText)!==String(this.ironTextAreaElement.value)};
_.P.fireSelectedEvent=function(g){_.hJ(this.hostElement,"yt-transcript-segment-selected",{startMs:g})};
_.P.fireReplayEvent=function(g,u){_.hJ(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(g-100,0),endMs:u})};
_.P.fireEditEvent=function(g,u){_.hJ(this.hostElement,"yt-transcript-segment-edit",{startMs:g,endMs:u})};
_.P.isEnterPress=function(g){return g.key==="Enter"||g.code==="Enter"||g.code==="NumpadEnter"||g.keyCode===13?!0:!1};
_.P.isControlEnterPress=function(g){var u=g.key==="Enter"||g.code==="Enter"||g.code==="NumpadEnter"||g.keyCode===13;return(g.ctrlKey||g.metaKey)&&u};
_.P.isCopyPress=function(g){var u=g.ctrlKey;return g.key==="c"&&u};
_.P.logClick=function(){var g,u=(g=this.data)==null?void 0:g.trackingParams;u&&_.nq(_.gL(),u)};
_.P.logClientVe=function(g){_.zZ(_.gL(),_.Yq(g))};
_.z3.Object.defineProperties(dl.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}}});
dl.prototype.handleMouseLeave=dl.prototype.handleMouseLeave;dl.prototype.handleMouseEnter=dl.prototype.handleMouseEnter;dl.prototype.dataChanged=dl.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],dl.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],dl.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],dl.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dl.prototype,"isEditMode",void 0);_.Y([_.a(),_.K("design:type",Object)],dl.prototype,"touchCaptionsEnabled",void 0);_.Y([_.a(),_.K("design:type",Object)],dl.prototype,"editedText",void 0);_.Y([_.a(),_.K("design:type",Object)],dl.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.Y([_.a(),_.K("design:type",Object)],dl.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.Y([_.a(),_.K("design:type",String)],dl.prototype,"segmentAriaLabel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dl.prototype,"roundedContainer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dl.prototype,"mouseOver",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dl.prototype,"textChanged",void 0);_.Y([_.a(),_.K("design:type",Object)],dl.prototype,"messages",void 0);
_.Y([_.oE("#suggestion"),_.K("design:type",Object)],dl.prototype,"ironTextAreaElement",void 0);_.Y([_.C("data","editedText"),_.K("design:type",Object),_.K("design:paramtypes",[])],dl.prototype,"latestText",null);_.Y([_.C("touchCaptionsEnabled","isEditMode"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],dl.prototype,"enableEditButton",null);
_.Y([_.C("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],dl.prototype,"enableUndoButton",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dl.prototype,"dataChanged",null);_.Y([_.n6("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dl.prototype,"handleMouseEnter",null);
_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dl.prototype,"handleMouseLeave",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],dl);
_.T(dl,"ytd-transcript-segment-renderer",function(){if(zrt!==void 0)return zrt;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return zrt=g},{mode:1});var FL=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};g.isError=!1;g.darkerPanels=_.w("web_watch_darker_panels");g.useParentMaxHeight=_.w("web_watch_transscript_use_parent_max_height");g.segmentOffsets=[];g.segmentIndex=-1;return g};
_.A(FL,_.X);_.P=FL.prototype;_.P.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"}}}}};
_.P.segmentsChanged=function(){this.updateOffsets()};
_.P.onYtPlayerTimeChanged=function(g){for(var u=this.segmentIndex,q=u;;){if(q>=0){var Q=this.segmentOffsets[q].start;var L=this.segmentOffsets[q].isAutoScrollable}else Q=-1,L=!0;var E=g+.5;if(!L){Q=q+1<this.segmentOffsets.length?this.segmentOffsets[q+1].start:Infinity;if(E>=Q){q+=1;continue}q=-1;break}if(E<Q)Q=q-1>=0&&this.segmentOffsets[q-1].isAutoScrollable,L=q===0||Q?1:2,q-=L;else if(L=q+1<this.segmentOffsets.length&&this.segmentOffsets[q+1].isAutoScrollable?1:2,Q=q+L<this.segmentOffsets.length?
this.segmentOffsets[q+L].start:Infinity,E>Q)q+=L;else{if(q<0)break;q<this.segmentOffsets.length&&E>this.segmentOffsets[q].end&&(q=-1);break}}if(u!==q){if(u>=0){var y;(y=this.getSegmentElement(u))==null||y.classList.remove("active")}this.segmentIndex=q;if(!(q<0)){var v;(v=this.getSegmentElement(q))==null||v.classList.add("active");this.isHovered||this.scrollElementToTop(q)}}};
_.P.handleSegmentEdit=function(g){g.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=g.target,_.YJ(this.hostElement,"yt-transcript-player-edit",[g.detail.startMs/1E3,g.detail.endMs/1E3]))};
_.P.handleSegmentSelected=function(g){_.YJ(this.hostElement,"yt-transcript-player-seek",[g.detail.startMs/1E3])};
_.P.handleSegmentReplay=function(g){_.YJ(this.hostElement,"yt-transcript-player-replay",[g.detail.startMs/1E3,g.detail.endMs/1E3])};
_.P.handleSectionHeaderSelected=function(g){_.YJ(this.hostElement,"yt-transcript-player-seek",[g.detail.startMs/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.onRetryButtonClick=function(){_.hJ(this.hostElement,"transcript-retry-button-click")};
_.P.getSegmentElement=function(g){return _.Tr(this.hostElement).querySelector(":nth-child("+(g+1)+")")};
_.P.scrollElementToTop=function(g){g=this.getSegmentElement(g>=2?g-2:0);this.hostElement.scrollTop=Math.min(g.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(g){var u,q=(u=g.transcriptSegmentRenderer)!=null?u:g.transcriptSectionHeaderRenderer;return{start:Number(q.startMs)/1E3,end:Number(q.endMs)/1E3,isAutoScrollable:g.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.P.clearHighlightedSegments=function(){var g=_.Tr(this.hostElement);g=_.N(g.querySelectorAll("ytd-transcript-segment-renderer"));for(var u=g.next();!u.done;u=g.next())u.value.classList.remove("active")};
_.z3.Object.defineProperties(FL.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:g.searchResultSegments)||((u=this.data)==null?void 0:u.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
FL.prototype.onMouseLeave=FL.prototype.onMouseLeave;FL.prototype.onMouseEnter=FL.prototype.onMouseEnter;FL.prototype.handleSectionHeaderSelected=FL.prototype.handleSectionHeaderSelected;FL.prototype.handleSegmentReplay=FL.prototype.handleSegmentReplay;FL.prototype.handleSegmentSelected=FL.prototype.handleSegmentSelected;FL.prototype.handleSegmentEdit=FL.prototype.handleSegmentEdit;FL.prototype.segmentsChanged=FL.prototype.segmentsChanged;
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],FL.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],FL.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],FL.prototype,"isError",void 0);
_.Y([_.a(),_.K("design:type",Object)],FL.prototype,"noResultLabel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],FL.prototype,"darkerPanels",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],FL.prototype,"useParentMaxHeight",void 0);_.Y([_.C("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],FL.prototype,"segments",null);
_.Y([_.C("segments","noResultLabel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FL.prototype,"displayNoResults",null);_.Y([_.k_("segments"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FL.prototype,"segmentsChanged",null);_.Y([_.n6("yt-transcript-segment-edit"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],FL.prototype,"handleSegmentEdit",null);
_.Y([_.n6("yt-transcript-segment-selected"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],FL.prototype,"handleSegmentSelected",null);_.Y([_.n6("yt-transcript-segment-replay"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],FL.prototype,"handleSegmentReplay",null);
_.Y([_.n6("ytd-transcript-section-header"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],FL.prototype,"handleSectionHeaderSelected",null);_.Y([_.n6("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FL.prototype,"onMouseEnter",null);_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FL.prototype,"onMouseLeave",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],FL);
_.T(FL,"ytd-transcript-segment-list-renderer",function(){if(B1L!==void 0)return B1L;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return B1L=g},{mode:1});var mQ=function(){var g=_.X.apply(this,arguments)||this;g.hideTimestamps=!!_.P9("hide-transcript-timestamps");g.isLoadingTranscripts=!1;g.darkerPanels=_.w("web_watch_darker_panels");g.isError=!1;g.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return g};
_.A(mQ,_.X);_.P=mQ.prototype;_.P.headerChanged=function(){var g,u;this.baseGetTranscriptsCommand=(u=_.c((g=this.data)==null?void 0:g.header,bX9))==null?void 0:u.onTextChangeCommand};
_.P.bodyChanged=function(){var g=this.getBodyRenderer();g&&(g.initialSegments&&(this.initialTranscriptsRenderer=g),g.noResultLabel&&(this.noResultLabel=g.noResultLabel),g.retryLabel&&(this.retryLabel=g.retryLabel))};
_.P.detached=function(){this.clearSearchBoxText()};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.P.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"}}}};
_.P.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.P.fireSearch=function(g){var u=this;if(g){var q=g.detail.query;if(this.baseGetTranscriptsCommand){var Q;g=(Q=_.c(this.baseGetTranscriptsCommand,_.kPa))==null?void 0:Q.params;var L;Q=_.c((L=this.data)==null?void 0:L.footer,d2t);var E;if((L=(E=_.c(Q==null?void 0:Q.languageMenu,tub))==null?void 0:E.subMenuItems)&&L.length>0&&(E=L.find(function(J){return J.selected}))){var y,v;
g=(y=E.continuation)==null?void 0:(v=y.reloadContinuationData)==null?void 0:v.continuation}y=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:g,searchQuery:q}});this.ytComponentBehavior.resolveCommand(y,{commandController:{onServerError:function(){u.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});ukt(this.ytContinuationHandlerBehavior,function(){return q===u.getCurrentSearchBoxText()})}}};
_.P.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.P.onRetryButtonClick=function(){this.isError=!1;var g={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:g}))};
_.P.hideTimestampsChanged=function(){_.Ex("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.handleSignalActionCopyTranscript=function(){var g=this,u=this.getBodyRenderer();u&&(u=((u==null?void 0:u.searchResultSegments)||(u==null?void 0:u.initialSegments)||[]).map(function(q){return _.c(q,F0K)}).filter(function(q){return!!q}).map(function(q){return{snippet:q.snippet||{runs:[{text:""}]},
startTimeText:q.startTimeText||{simpleText:""}}}).map(function(q){var Q=(q.snippet.runs||[]).reduce(function(L,E){return L+E.text},"");
return g.hideTimestamps?Q:q.startTimeText.simpleText+" "+Q}).join("\n"),this.copyToClipboard(u))};
_.P.copyToClipboard=function(g){navigator.clipboard&&navigator.clipboard.writeText(g)};
_.P.getCurrentSearchBoxText=function(){var g;return(g=this.searchBox)==null?void 0:g.value};
_.P.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.P.getBodyRenderer=function(){var g;return _.c((g=this.data)==null?void 0:g.body,dNt)};
_.P.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.z3.Object.defineProperties(mQ.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Tr(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
mQ.prototype.hideTimestampsChanged=mQ.prototype.hideTimestampsChanged;mQ.prototype.searchCleared=mQ.prototype.searchCleared;mQ.prototype.fireSearch=mQ.prototype.fireSearch;mQ.prototype.onReloadContinuationFinish=mQ.prototype.onReloadContinuationFinish;mQ.prototype.bodyChanged=mQ.prototype.bodyChanged;mQ.prototype.headerChanged=mQ.prototype.headerChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],mQ.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.i5),_.K("design:type",Object)],mQ.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],mQ.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],mQ.prototype,"hideTimestamps",void 0);
_.Y([_.a(),_.K("design:type",Object)],mQ.prototype,"isLoadingTranscripts",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],mQ.prototype,"darkerPanels",void 0);_.Y([_.a(),_.K("design:type",Object)],mQ.prototype,"isError",void 0);_.Y([_.k_("data.header"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mQ.prototype,"headerChanged",null);
_.Y([_.qm("data.body"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mQ.prototype,"bodyChanged",null);_.Y([_.n6("yt-reload-continuation-finish"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mQ.prototype,"onReloadContinuationFinish",null);_.Y([_.n6("yt-transcript-search-box-search"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],mQ.prototype,"fireSearch",null);
_.Y([_.n6("yt-transcript-search-box-clear"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mQ.prototype,"searchCleared",null);_.Y([_.k_("hideTimestamps"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mQ.prototype,"hideTimestampsChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],mQ);
_.T(mQ,"ytd-transcript-search-panel-renderer",function(){if(KOn!==void 0)return KOn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return KOn=g},{mode:1});var ai=function(){var g=_.X.apply(this,arguments)||this;g.player=null;g.playerPollJobId=0;return g};
_.A(ai,_.X);_.P=ai.prototype;_.P.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.P.onLoadReloadContinuation=function(g){_.w("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:g.target.data.continuation}}):(g={clickTrackingParams:g.target.data.clickTrackingParams,getTranscriptEndpoint:{params:g.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}}))};
_.P.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"}}}};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.P.attached=function(){this.updatePlayerListening()};
_.P.detached=function(){this.updatePlayerListening()};
_.P.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.P.startPlayerListening=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return(u=_.F0())?q.yield(u.getPlayerPromise(),2):q.return();g.player=q.yieldResult;g.playerPollJobId=_.Hv.addLowPriorityJob(function(){g.getPlayerVideoProgress()},1E3);
g.player.addEventListener("onCueRangeEnter",function(Q){g.onCueRangeEnter(Q)});
g.player.addEventListener("onCueRangeExit",function(Q){g.onCueRangeExit(Q)});
g.player.addEventListener("onStateChange",function(Q){g.onPlayerStateChange(Q)});
g.player.addEventListener("SEEK_TO",function(Q){g.onPlayerSeek(Q)});
_.Wx(q)})};
_.P.getPlayerVideoProgress=function(){var g=this;_.Hv.cancelJob(this.playerPollJobId);if(this.player){var u=this.player.getCurrentTime();_.YJ(this.hostElement,"yt-player-time-changed",[u])}this.playerPollJobId=_.Hv.addLowPriorityJob(function(){g.getPlayerVideoProgress()},1E3)};
_.P.stopPlayerListening=function(){this.player=null;_.Hv.cancelJob(this.playerPollJobId)};
_.P.onPlayerStateChange=function(g){g===2&&this.removePendingCue()};
_.P.onPlayerSeek=function(g){var u;if(u=this.pendingReplayCueId)u=this.pendingReplayCueId,u=g===(_.w("web_transcript_cue_id_killswitch")?Number(u):Number(u.split("_")[1]));u||this.removePendingCue()};
_.P.onCueRangeEnter=function(g){QOx(g)&&(this.pendingReplayCueId=g)};
_.P.onCueRangeExit=function(g){QOx(g)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.P.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.P.onYtTranscriptPlayerSeek=function(g){this.player&&this.player.seekTo(g,!0)};
_.P.onYtTranscriptPlayerReplay=function(g,u){this.player&&(this.player.addCueRange(qcf(g),g,u),this.player.seekTo(g,!0),this.player.playVideo())};
_.P.onYtTranscriptPlayerEdit=function(g,u){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(qcf(g),g,u),this.player.seekTo(g,!0))};
ai.prototype.onLoadReloadContinuation=ai.prototype.onLoadReloadContinuation;ai.prototype.panelContentVisibleChanged=ai.prototype.panelContentVisibleChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ai.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ai.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ai.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ai.prototype,"panelContentVisible",void 0);_.Y([_.k_("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ai.prototype,"panelContentVisibleChanged",null);
_.Y([_.n6("yt-load-reload-continuation"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],ai.prototype,"onLoadReloadContinuation",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],ai);
_.T(ai,"ytd-transcript-renderer",function(){if(Y4H!==void 0)return Y4H;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Y4H=g},{mode:1});var n8L;var kSp;var Vw=function(){return _.X.apply(this,arguments)||this};
_.A(Vw,_.X);Vw.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.xJ(this.hostElement,[this.data.clickCommand],this.hostElement))};
Vw.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(Ti()+hG)+"px)"};
Vw.prototype.updateShouldHideFromBinding=function(g){this.shouldHide=g.detail.value};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Vw.prototype,"rendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Vw.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Vw.prototype,"shouldHide",void 0);_.Y([_.fE({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Vw);
_.T(Vw,"ytd-ad-engagement-panel-banner-renderer",function(){if(kSp!==void 0)return kSp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return kSp=g},{mode:2});var S4H;var XL=function(){var g=_.X.apply(this,arguments)||this;g.buttonUpdate=_.w("web_modern_buttons");g.adsSemanticText=_.w("enable_ads_web_ep_buenos_aires_and_padding_fix");return g};
_.A(XL,_.X);XL.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.Y([_.a(),_.K("design:type",Object)],XL.prototype,"data",void 0);_.Y([_.a({computed:"computeHideDefaultAdBadge(data)"}),_.K("design:type",Boolean)],XL.prototype,"hideDefaultAdBadge",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],XL.prototype,"buttonUpdate",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],XL.prototype,"adsSemanticText",void 0);_.Y([_.fE({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],XL);
_.T(XL,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(S4H!==void 0)return S4H;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return S4H=g},{mode:1});var o8x;var rl=function(){var g=_.X.apply(this,arguments)||this;g.darkerPanels=_.w("web_watch_darker_panels");g.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");g.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");g.headerClickListener=function(u){g.onHeaderClick(u)};
g.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return g};
_.A(rl,_.X);_.P=rl.prototype;_.P.computeAdsInfoButton=function(){if(_.w("web_modern_buttons")){var g,u;return(u=_.c((g=this.data)==null?void 0:g.subtitleComplex,FFE))==null?void 0:u.adInfoRenderer}};
_.P.updateHeaderClickListener=function(){var g,u,q;((g=this.data)==null?0:g.navigationEndpoint)||((u=this.data)==null?0:u.onClickCommand)||_.c((q=this.data)==null?void 0:q.visibilityButton,_.GZ)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.P.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}}}}}};
_.P.collapsedChanged=function(){var g;(g=this.data)!=null&&g.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.w("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.P.focus=function(g){var u=this;this.titleElement&&_.Hv.addJob(function(){_.h6(u.titleElement,g)},0,500)};
_.P.computeTitleAriaLabel=function(g){var u=[];if(g.title){var q,Q;u.push(this.ytRendererBehavior.getSimpleString(g.title)||((q=g.title.accessibility)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label))}g.contextualInfo&&u.push(this.ytRendererBehavior.getSimpleString(g.contextualInfo));return u.join(" ")};
_.P.onHeaderClick=function(g){this.shouldTriggerHeaderClick(g)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.xJ(this.hostElement,[this.data.onClickCommand],this.hostElement)):(g=this.getVisibilityToggleButton())&&g.click())};
_.P.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var g=_.c(this.data.visibilityButton,_.eW)||_.c(this.data.visibilityButton,_.GZ);g&&this.ytRendererBehavior.logExplicitClick(g)}};
_.P.getVisibilityToggleButton=function(){var g=_.Tr(this.hostElement).querySelector("#visibility-button").firstElementChild;return(g==null?void 0:g.is)==="ytd-toggle-button-renderer"?g:null};
_.P.shouldTriggerHeaderClick=function(g){return!_.ia(_.C6(g),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.P.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(g){g=_.c(g,LFE);this.targetId&&(g==null?void 0:g.targetId)===this.targetId&&(g=g.navigationButton)&&this.set("data.navigationButton",g)};
_.z3.Object.defineProperties(rl.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var g;return!!(((g=this.entity)==null?0:g.isActionButtonHidden)||this.hideActionButton)}}});
rl.prototype.collapsedChanged=rl.prototype.collapsedChanged;rl.prototype.updateHeaderClickListener=rl.prototype.updateHeaderClickListener;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],rl.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],rl.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],rl.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],rl.prototype,"targetId",void 0);_.Y([_.a(),_.K("design:type",Boolean)],rl.prototype,"collapsed",void 0);_.Y([_.a(),_.K("design:type",Boolean)],rl.prototype,"hideActionButton",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],rl.prototype,"shortsPanel",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],rl.prototype,"liveChatEngagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],rl.prototype,"learningChatEngagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rl.prototype,"darkerPanels",void 0);_.Y([_.oE("#title"),_.K("design:type",HTMLElement)],rl.prototype,"titleElement",void 0);_.Y([_.oE("#header"),_.K("design:type",HTMLElement)],rl.prototype,"headerElement",void 0);
_.Y([_.a({computed:"computeAdsInfoButton(data)"}),_.K("design:type",Object)],rl.prototype,"adsInfoButton",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rl.prototype,"enableSqueezebackPanels",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rl.prototype,"enableAnchoredPanel",void 0);_.Y([_.a({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(g,u){return _.BC(g.entities,"engagementPanelTitleHeaderEntity",u)}}),
_.K("design:type",Object)],rl.prototype,"entity",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rl.prototype,"adsSemanticText",null);_.Y([_.k_("data","data.navigationEndpoint","data.onClickCommand"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rl.prototype,"updateHeaderClickListener",null);
_.Y([_.qm("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rl.prototype,"collapsedChanged",null);_.Y([_.C("entity","hideActionButton"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rl.prototype,"isActionButtonHidden",null);_.Y([_.fE({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],rl);
_.T(rl,"ytd-engagement-panel-title-header-renderer",function(){if(o8x!==void 0)return o8x;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return o8x=g},{mode:1});var UDL;var WA=function(){return _.X.apply(this,arguments)||this};
_.A(WA,_.X);WA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],WA.prototype,"data",void 0);_.Y([_.fE({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],WA);
_.T(WA,"ytd-macro-markers-info-item-renderer",function(){if(UDL!==void 0)return UDL;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return UDL=g},{mode:1});var g5t;var Tq=function(g,u,q,Q,L,E){_.Lh.call(this);var y=this;this.JSC$21180_containerElement=g;this.hostElement=u;this.supportedSyncItems=q;this.syncEntityKey=Q;this.options=L;this.renderLazyListItems=E;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;uQt(this);qKZ(this);this.JSC$21180_scrollAnimation=new _.FH(function(v){g.scrollTop=v});
_.z$(this,this.JSC$21180_scrollAnimation);this.addOnDisposeCallback(function(){QeE(y,!1);y.activeItem&&y.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.A(Tq,_.Lh);var uQt=function(g){var u=_.qG(_.Bk().resolve(_.Ja),function(q){return q.entities.markersEngagementPanelSyncEntity||{}},function(q,Q){var L;
if(q[g.syncEntityKey]!==Q[g.syncEntityKey]&&((L=q[g.syncEntityKey])==null?void 0:L.activeItemIndex)!==void 0)if(Q=q[g.syncEntityKey].activeItemIndex,q=g.getItemByIndex(Q)){if(Lh9(g,q),g.contentVisible)if(g.browsingMode){var E;((E=g.options)==null?void 0:E.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(E=E5f(g),q.offsetTop<g.JSC$21180_containerElement.clientHeight+g.JSC$21180_containerElement.scrollTop&&E&&!g.activeItemBelowSyncPosition&&QeE(g,!1));P4K(g)}else g.scrollToItem(q)}else _.Io(new _.Ji("Could not find "+
g.supportedSyncItems+" sync child to set active.",Q,g.JSC$21180_containerElement.querySelectorAll(g.supportedSyncItems).length))});
g.unsubscribeFromTimedMarkersListSyncEntity=u;g.addOnDisposeCallback(u);N3H(g)},N3H=function(g){var u=_.Bk().resolve(_.Ja);
u=_.Ilq(u.getState(),g.syncEntityKey);(u==null?void 0:u.activeItemIndex)!==void 0&&(u=g.getItemByIndex(u.activeItemIndex))&&Lh9(g,u)},qKZ=function(g){var u=new _.Kr(g.onScroll,50,g);
_.z$(g,u);var q=function(){u.fire()};
g.JSC$21180_containerElement.addEventListener("scroll",q);g.addOnDisposeCallback(function(){g.JSC$21180_containerElement.removeEventListener("scroll",q)})};
Tq.prototype.getItemByIndex=function(g){var u;(u=this.renderLazyListItems)==null||u.call(this,g);u=this.JSC$21180_containerElement.querySelectorAll(this.supportedSyncItems);if(u.length>g)return u[g]};
var Lh9=function(g,u){g.activeItem&&g.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));u.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));g.activeItem=u};
Tq.prototype.scrollToItem=function(g){g=this.getScrollPositionForItem(g);this.JSC$21180_containerElement.scrollTop!==g&&this.JSC$21180_scrollAnimation.start(this.JSC$21180_containerElement.scrollTop,g,300)};
Tq.prototype.getScrollPositionForItem=function(g){if(this.JSC$21180_containerElement.querySelectorAll(this.supportedSyncItems)[0]===g)return 0;var u,q=((u=this.options)==null?0:u.percentOffset)?this.JSC$21180_containerElement.clientHeight*this.options.percentOffset:0;g=_.Mi(g).y+this.JSC$21180_containerElement.scrollTop-(_.Mi(this.JSC$21180_containerElement).y+q);return Math.max(0,Math.min(g,this.JSC$21180_containerElement.scrollHeight-this.JSC$21180_containerElement.offsetHeight))};
Tq.prototype.onScroll=function(){this.activeItemBelowSyncPosition=E5f(this);if(this.activeItem&&!this.JSC$21180_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21180_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var g;switch((g=this.options)==null?void 0:g.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":seb(this,!ydh(this));P4K(this);break;default:seb(this,!0)}}};
var seb=function(g,u){var q,Q;_.D(function(L){if(L.nextAddress==1){if(g.browsingMode)return L.return();g.browsingMode=!0;u&&g.hostElement.classList.add("browsing-mode");g.playerExitBrowsingModeListener=function(){QeE(g,!1)};
return L.yield(_.Op(),2)}q=L.yieldResult;(Q=q)==null||Q.addEventListener("SEEK_TO",g.playerExitBrowsingModeListener);_.Wx(L)})},QeE=function(g,u){u=u===void 0?!0:u;
g.browsingMode&&(g.browsingMode=!1,g.hostElement.classList.remove("browsing-mode"),u&&g.scrollToItem(g.activeItem),v5E(g))},v5E=function(g){var u,q;
_.D(function(Q){if(Q.nextAddress==1)return g.playerExitBrowsingModeListener?Q.yield(_.Op(),3):Q.jumpTo(0);u=Q.yieldResult;(q=u)==null||q.removeEventListener("SEEK_TO",g.playerExitBrowsingModeListener);g.playerExitBrowsingModeListener=void 0;_.Wx(Q)})},P4K=function(g){var u;
((u=g.options)==null?void 0:u.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(ydh(g)?g.hostElement.classList.remove("browsing-mode"):g.activeItem&&g.hostElement.classList.add("browsing-mode"))},E5f=function(g){if(!g.activeItem)return!1;
var u,q=((u=g.options)==null?0:u.percentOffset)?g.JSC$21180_containerElement.clientHeight*g.options.percentOffset:0;return g.activeItem.offsetTop>=g.JSC$21180_containerElement.scrollTop+q},ydh=function(g){if(!g.activeItem)return!1;
var u=g.activeItem.offsetTop+14<=g.JSC$21180_containerElement.scrollTop+g.JSC$21180_containerElement.clientHeight;return g.activeItem.offsetTop+g.activeItem.clientHeight-14>=g.JSC$21180_containerElement.scrollTop&&u};
Tq.prototype.panelContentVisibleChanged=function(g){(this.contentVisible=g)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var DOE=function(g,u){g.syncEntityKey=u;var q;(q=g.unsubscribeFromTimedMarkersListSyncEntity)==null||q.call(g);uQt(g)},pGb=function(g,u){g.options=u};var hv=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return g};
_.A(hv,_.X);_.P=hv.prototype;_.P.detached=function(){var g;(g=this.scrollController)==null||g.dispose();this.scrollController=void 0};
_.P.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"}}}};
_.P.dataChanged=function(){var g=this;_.xt(this,function(){if(g.scrollController){var u;(u=g.scrollController)==null||QeE(u,!1);var q,Q,L;(Q=g.scrollController)==null||DOE(Q,(L=(q=g.data)==null?void 0:q.syncModelEntityKey)!=null?L:"default-macro-markers-list-renderer-entity-key");var E,y,v;(v=g.scrollController)==null||pGb(v,{percentOffset:(E=g.data)==null?void 0:E.selectedItemAlignmentPercentOffset,floatingPillType:(y=g.data)==null?void 0:y.floatingPillType})}else{var J,f,t,e;g.scrollController=
new Tq(g.contents,g.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(e=(J=g.data)==null?void 0:J.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key",{percentOffset:(f=g.data)==null?void 0:f.selectedItemAlignmentPercentOffset,floatingPillType:(t=g.data)==null?void 0:t.floatingPillType},function(G){g.renderLazyListItems(G)})}g.scrollController.panelContentVisibleChanged(!!g.panelContentVisible)})};
_.P.computeButtonShape=function(){var g=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){g.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.P.renderLazyListItems=function(g){for(var u=this.contents.children,q=0,Q=0;Q<u.length;Q++){var L=void 0;(L=u[Q].ytLazyListBehavior)==null||L.fillRemainingListItems();var E=void 0,y=void 0;L=_.c((E=this.data)==null?void 0:(y=E.contents)==null?void 0:y[Q],_.VCi);y=E=void 0;if((E=L)==null?0:(y=E.contents)==null?0:y.length)q+=L.contents.length;if(q>=g)break}};
_.P.handleSetActivePanelItemAction=function(g){if((g=_.c(g,JVZ))&&this.panelTargetId===g.panelTargetId){g=g.itemIndex;var u,q,Q=(q=(u=this.data)==null?void 0:u.syncModelEntityKey)!=null?q:"default-macro-markers-list-renderer-entity-key",L;((L=this.syncEntity)==null?void 0:L.activeItemIndex)!==g&&this.ytdReduxBehavior.dispatch(_.u2("markersEngagementPanelSyncEntity",Q,{key:Q,activeItemIndex:g}))}};
_.P.onSyncClick=function(){var g;(g=this.scrollController)==null||QeE(g)};
_.P.panelContentVisibleChanged=function(){var g;(g=this.scrollController)==null||g.panelContentVisibleChanged(!!this.panelContentVisible)};
hv.prototype.panelContentVisibleChanged=hv.prototype.panelContentVisibleChanged;hv.prototype.dataChanged=hv.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],hv.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],hv.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],hv.prototype,"data",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],hv.prototype,"useCustomColors",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],hv.prototype,"panelTargetId",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],hv.prototype,"panelContentVisible",void 0);
_.Y([_.oE("#contents"),_.K("design:type",HTMLElement)],hv.prototype,"contents",void 0);_.Y([_.a({selectorArgs:["data.syncModelEntityKey"],selector:_.Ilq}),_.K("design:type",Object)],hv.prototype,"syncEntity",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hv.prototype,"dataChanged",null);
_.Y([_.k_("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hv.prototype,"panelContentVisibleChanged",null);_.Y([_.fE({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],hv);
_.T(hv,"ytd-macro-markers-list-renderer",function(){if(g5t!==void 0)return g5t;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return g5t=g},{mode:1});var Jdh;var jex;var Yg=function(){return _.X.apply(this,arguments)||this};
_.A(Yg,_.X);Yg.prototype.computeAriaLabel=function(g){var u,q;return(g==null?void 0:(u=g.accessibility)==null?void 0:(q=u.accessibilityData)==null?void 0:q.label)||_.Ug("LOADING",void 0,"Loading")};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Yg.prototype,"data",void 0);_.Y([_.a({computed:"computeAriaLabel(data)"}),_.K("design:type",String)],Yg.prototype,"ariaLabel",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Yg);
_.T(Yg,"yt-content-loading-renderer",function(){if(jex===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Jdh===void 0&&(Jdh=document.createElement("template"));var Q=Jdh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);jex=g}g=jex;return g},{mode:1});_.dL(_.r(function(g){var u=_.N(_.jR(!1,void 0,"OZMtVb")),q=u.next().value,Q=u.next().value;u=_.N(_.jR(!1,void 0,"qWERsf"));var L=u.next().value,E=u.next().value;_.I4(function(){var J=_.c(g.data().collaboratePlaylistCollaborationSetting,IdL);J&&Q(J.switchedOnByDefault);var f=_.c(g.data().allowNewCollaboratorsPlaylistCollaborationSetting,IdL);f&&E(f.switchedOnByDefault);if(!J&&!f||!J&&g.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")Q(!0),E(!0)});
var y=function(J){Q(J);E(J);var f=g.data().playlistCollaborationEntityKey||"";var t=_.CE().getState();(t=_.BC(t.entities,"playlistCollaborationEntity",f))&&(t==null?void 0:t.isCollaborative)===J||_.CE().dispatch(_.u2("playlistCollaborationEntity",f,Object.assign({},t,{isCollaborative:J})))},v=function(J){E(J)};
return _.p("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.p("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.p(_.Up,{data:function(){return g.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(J){return _.p(_.Sqn,{data:J.data,
onSwitch:y})}})),_.p(_.M,{cond:q,
then:function(){return _.p(_.U9,null,_.p("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.p(_.Up,{data:function(){return g.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(J){return _.p(_.Sqn,{data:J.data,
onSwitch:v,overrideDisabled:!1})}})),_.p(_.M,{cond:L,
then:function(){return _.p("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.p(_.Up,{data:function(){return g.data().copyLinkButton}},{buttonViewModel:_.TT}))}}),_.p("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.p(_.Up,{data:function(){return g.data().playlistCollaborators}},{contentListItemViewModel:_.$wp})))}}))},"Nj"),"playlist-collaboration-view-model",{props:{data:_.H2}});var f2p=_.r(function(g){var u=g.data;var q=g.customCommandResolver;return _.p(_.U9,null,_.p("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.p(_.Up,{data:function(){return u().adAvatar}},{adAvatarViewModel:function(Q){return _.p(_.Ro8,{data:Q.data,
customCommandResolver:q})}})),_.p("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.p(_.M,{cond:function(){return u().headline},
then:function(Q){return _.p(_.c2,{text:Q,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.p("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.p(_.Up,{data:function(){return u().adBadge}},{adBadgeViewModel:function(Q){return _.p(_.x4,{data:Q.data,
hasDot:function(){return u().primaryDetailsLine!==void 0},
customCommandResolver:q,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.p(_.Up,{data:function(){return u().primaryDetailsLine}},{adDetailsLineViewModel:function(Q){return _.p(_.Bp,{data:Q.data,
customCommandResolver:q,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Oj"),Mlt=_.r(function(g){var u=g.data;
var q=g.customCommandResolver;return _.p("ad-avatar-lockup-view-model",{class:function(){var Q;return((Q=u().interaction)==null?0:Q.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.lF(_.x1({visibilityCallback:function(Q){var L,E=(L=u().interaction)==null?void 0:L.onFirstVisible;Q&&E&&_.ey(E)},
showOption:_.XY}),_.eJ(function(){return u().interaction},q)),
"aria-label":function(){var Q,L;return(Q=u().interaction)==null?void 0:(L=Q.accessibility)==null?void 0:L.label}},_.p(_.wi,null,_.p(_.Gv,{when:function(){return u().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.p(f2p,{data:u,
customCommandResolver:q})}),_.p(_.$v,null,function(){return null})))},"Pj");_.dL(_.r(function(g){var u=g.data;var q=g.panelContentVisibility;g=_.x1({visibilityCallback:function(E){var y,v=(y=u().interaction)==null?void 0:y.onFirstVisible;E&&v&&_.ey(v)},
showOption:_.XY});var Q=_.eJ(function(){return u().interaction},L3x);
_.C2(function(){var E,y;if(y=_.ri("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var v;y=(v=y())==null?void 0:v.onLayoutVisibleCallback}else y=null;(E=y)==null||E()},"Qj");
var L=function(){return q()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.p("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.lF(g,Q)},_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.p(_.M,{cond:_.mth("(min-width: "+(Ti()+hG)+"px) or (max-width: 600px)"),then:function(){return _.p(_.Up,{data:function(){return u().adImage}},{adImageViewModel:function(E){return _.p(_.Wp,{data:E.data,
targetHeight:80,customCommandResolver:L3x})}})}})),_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.p(_.Up,{data:function(){return u().adAvatarLockup}},{adAvatarLockupViewModel:function(E){return _.p(Mlt,{data:E.data,
customCommandResolver:L3x})}})),_.p(_.M,{cond:L,
then:function(){return _.p(_.Up,{data:function(){return u().adButton}},{adButtonViewModel:function(E){return _.p(_.Tb,{data:E.data,
customCommandResolver:L3x})}})},
else:function(){return _.p(_.Up,{data:function(){return u().menu}},{buttonViewModel:_.TT})}}),_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.p(_.Up,{data:function(){var E=_.c(u().toggleButton,_.cF);
return{toggleButtonViewModel:Object.assign({},E,{isTogglingDisabled:!0,isToggled:L()})}}},{toggleButtonViewModel:_.E6})))))},"Rj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.H2,
panelContentVisibility:_.H2}});var tlb=_.Q5(ESp,{debugName:"chipBarViewModel"});_.nS(_.$E,function(g){_.RS(g,"chipBarViewModel","HwlOhd",ESp)});var ecp=_.Q5(PAK,{debugName:"gridShelfViewModel"});_.nS(_.$E,function(g){_.RS(g,"gridShelfViewModel","JoU6vf",PAK)});var GtE=_.Q5(NT9,{debugName:"ytFeedbackPromptViewModel"});_.nS(_.$E,function(g){_.RS(g,"ytFeedbackPromptViewModel","hU04te",NT9)});var $On=_.Q5(sOK,{debugName:"learningJourneyLoaderViewModel"});_.nS(_.$E,function(g){_.RS(g,"learningJourneyLoaderViewModel","dIvQ6c",sOK)});var Rch=_.Q5(yLb,{debugName:"ytAccordionViewModel"});_.nS(_.$E,function(g){_.RS(g,"ytAccordionViewModel","m9Vw4",yLb)});var wGb=_.Q5(vS9,{debugName:"videoOverviewViewModel"});_.nS(_.$E,function(g){_.RS(g,"videoOverviewViewModel","mcjWUc",vS9)});var cdx=_.Q5(DBE,{debugName:"youChatItemViewModel"});_.nS(_.$E,function(g){_.RS(g,"youChatItemViewModel","QiZf0e",DBE)});var Huh=_.Q5(pKC,{debugName:"ytChatLoadingViewModel"});_.nS(_.$E,function(g){_.RS(g,"ytChatLoadingViewModel","f8YPh",pKC)});var Adf=_.Q5(JLZ,{debugName:"ytChatUserTurnViewModel"});_.nS(_.$E,function(g){_.RS(g,"ytChatUserTurnViewModel","b3MoKf",JLZ)});var Zu9=_.r(function(g){var u=_.N((0,_.IN8)(g.data)).next().value,q=function(){var Q,L;return(L=(Q=u().contents)==null?void 0:Q.length)!=null?L:0};
return _.p("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return g.data().targetId||""},
"aria-busy":function(){var Q,L;return(L=(Q=u().contents)==null?void 0:Q.some(function(E){return!!E.chatLoadingViewModel}))!=null?L:!1}},_.p(_.Up,{data:function(){return g.data().header}},{chipBarViewModel:tlb,
sectionHeaderViewModel:_.US}),_.p(_.Up,{data:function(){return u().contents}},{accordionViewModel:Rch,
alertBannerViewModel:Fox,chatLoadingViewModel:function(Q,L){return _.p(Huh,{data:Q.data,containerHeight:g.containerHeight,isLastItem:function(){return L()===q()-1}})},
chatUserTurnViewModel:function(Q,L){return _.p(Adf,{data:Q.data,containerHeight:g.containerHeight,isLastItem:function(){return L()===q()-1}})},
feedbackPromptViewModel:GtE,gridShelfViewModel:function(Q){return _.p(ecp,{data:Q.data,shouldUseOwnContainerSize:!0,marginSettings:g.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:$On,linearLayoutViewModel:_.Zd,lockupViewModel:function(Q){return _.p(_.nG,{data:Q.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:g.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.US,videoOverviewViewModel:wGb,youChatItemViewModel:function(Q,L){return _.p(cdx,{data:Q.data,pending:!1,containerHeight:g.containerHeight,isLastItem:function(){return L()===q()-1}})}}))},"Sj");_.dL(_.r(function(g){var u=_.N((0,_.IN8)(g.data)).next().value,q=_.N(_.qW()),Q=q.next().value;q=q.next().value;var L=_.lF(q);q=_.N(_.jR(void 0,void 0,"fqbUqd"));var E=q.next().value,y=q.next().value,v=function(){var J;return _.c((J=g.data().sectionListLayoutConfiguration)==null?void 0:J.layoutConfiguration,MuH)};
_.I4(function(){var J,f=(J=L.value)==null?void 0:J.clientWidth;J=v()?_.pPq(f,v()):void 0;y(J)});
q={};return _.p("yt-section-list-renderer",{class:_.Ty("ytSectionListRendererHost",g.className,(q.ytSectionListRendererHostOverscrollContain=function(){var J;return(J=g.overscrollContain)==null?void 0:J.call(g)},q)),
el:L,"data-target-id":function(){return g.data().targetId||""}},_.p(_.Up,{data:function(){return u().contents}},{itemSectionRenderer:function(J){return _.p(Zu9,{data:J.data,
containerLayoutConfig:E,marginSettings:g.marginSettings,containerHeight:function(){return Q.height()}})}}))},"Tj"),"yt-section-list-renderer",{props:{data:_.H2,
className:_.iF,marginSettings:_.H2,overscrollContain:_.H2}});_.dL(_.r(function(g){var u=function(){return _.c(g.data().inputComposerViewModel,MUE)},q=_.Sy(_.wy.currentPageSubTypeSelector),Q=_.Sy(_.wy.persistentPanelVisibleSelector),L=_.N(_.jR(!1,void 0,"RXGzYc")),E=L.next().value,y=L.next().value;
L=_.N(_.jR(!1,void 0,"oyonKd"));var v=L.next().value,J=L.next().value,f=function(){l(!0);var tT;_.ey(((tT=u())==null?void 0:tT.onSubmitCommand)||{})},t=function(){if(Q()&&!v()){var tT;
(tT=_.Ke())==null||tT.removeCueRange("aic-proactive");y(!1);J(!0);f();_.fr(_.M79(u().endOfVideoContinuation),{form:{formData:_.Iq({clientMessageId:"youchat-"+Date.now(),pageContext:Rm()})},commandController:{onSuccess:function(){l(!1)},
onServerError:function(){_.fr(OUt(z()));l(!1)}}})}},e=function(){var tT=_.Ke();
if(tT&&!E()&&!v()){var mJ=tT.getDuration();mJ>60&&(tT.addCueRange("aic-proactive",mJ-60,mJ-20),y(!0))}},G=function(){var tT;
return((tT=u())==null?void 0:tT.youchatPendingResponseEntityKey)||""},R=_.kq(_.eSp,G),H=function(){var tT;
return!((tT=R())==null||!tT.isPendingResponse)},l=function(tT){_.G3H(G())(tT)};
L=_.N(_.jR(!0,void 0,"umCoCf"));var d=L.next().value,F=L.next().value,V=function(){var tT,mJ;var hT=_.c((mJ=u())==null?void 0:mJ.inputFormField,UUh);return hT==null?void 0:(tT=hT.contentProperties)==null?void 0:tT.placeholderText},z=function(){return u().sectionTargetId||"youchat_messages_section"};
L=_.AM("yt-chat-input-view-model");var O=_.Hk("textarea"),W=_.kq(xZp,"chat_input_view_model_state"),x=Brt(),k=function(){var tT;return!((tT=W())==null||!tT.value)},LZ=function(){return g.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},sb=function(){var tT;
(tT=_.Ke())==null||tT.removeCueRange("aic-proactive");y(!1);J(!1);var mJ;_.w("enable_navigational_proactive_messages_on_ai_companion")&&((mJ=u())==null?0:mJ.navigationContinuation)&&Q()&&(f(),_.fr(_.M79(u().navigationContinuation),{form:{formData:_.Iq({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:fgn(),pageContext:Rm()})},commandController:{onSuccess:function(){l(!1)},
onServerError:function(){_.fr(OUt(z()));l(!1)}}}))},Rm=function(){var tT;
return(tT=_.Bk().resolve(_.xv(_.jd)))==null?void 0:_.C7K(tT,q())};
_.I4(function(){if(_.Of("enable_ai_chat_controller")){var tT;(tT=_.Bk().resolve(_.xv(_.jd)))==null||tT.init(g.data().environment)}else if(tT=tUt(g.data()),!k()&&tT){var mJ;((mJ=u())==null?0:mJ.setPendingResponseOnWelcome)&&l(!0);_.fr(tT,{form:{formData:_.Iq({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:fgn(),pageContext:Rm()})}});x(!0)}var hT=z(),Yu=_.Bk().resolve(_.xv(_.zL)),Mx=function(){_.o9.remove(hT);if(_.Of("enable_ai_chat_controller")){var KZ;(KZ=_.Bk().resolve(_.xv(_.jd)))!=null&&
KZ.environment==="CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(KZ.lastWelcomeContinuationSent=void 0)}else x(!1)},po=function(){_.D6(function(){if(LZ()&&(sb(hT),q()==="watch")){var KZ=_.Ke();
KZ&&(KZ.addEventListener("onStateChange",e),KZ.addEventListener("onCueRangeEnter",t))}})};
mJ=_.w("enable_ai_companion")?!LZ():!0;Yu==null||Yu.addEventListener("yt-navigate-start",Mx,{once:mJ});Yu==null||Yu.addEventListener("yt-navigate-finish",po,{once:mJ});_.dB(function(){Yu==null||Yu.removeEventListener("yt-navigate-start",Mx);Yu==null||Yu.removeEventListener("yt-navigate-finish",po);var KZ=_.Ke();KZ&&(KZ.removeEventListener("onCueRangeEnter",t),KZ.removeEventListener("onStateChange",e),KZ.removeCueRange("aic-proactive"))})});
_.bX(function(){if(_.Of("enable_ai_chat_controller")){var tT=tUt(g.data());if(tT){var mJ,hT=((mJ=u())==null?0:mJ.setPendingResponseOnWelcome)?l:void 0,Yu;(Yu=_.Bk().resolve(_.xv(_.jd)))==null||pN9(Yu,{command:tT,setPending:hT})}}},"SXTMBe");
var M3=function(){var tT=O.value.value;O.value.value="";jOh(O.value);var mJ,hT=((mJ=u())==null?void 0:mJ.enableGradientColorBg)||!1,Yu;mJ=Kct(z(),tT,hT,(Yu=u())==null?void 0:Yu.chatUserTurnBackgroundStyle);_.fr(mJ);f();var Mx,po,KZ;Yu=(KZ=_.jy((Mx=g.data())==null?void 0:Mx.sendUserQueryCommand))!=null?KZ:_.M79((po=u())==null?void 0:po.continuation);_.fr(Yu,{form:{formData:_.Iq({clientMessageId:"youchat-"+Date.now(),userInputText:tT,playerOffsetMs:fgn(),pageContext:Rm()})},commandController:{onSuccess:function(){l(!1)},
onServerError:function(){_.fr(OUt(z()));l(!1)}}})};
return _.p("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:L},_.p("div",{class:"chatInputViewModelChatInputWrapper"},_.p("form",{class:"chatInputViewModelChatInputForm"},_.p("textarea",{class:"chatInputViewModelChatInput",el:O,"on:keydown":_.YH(function(tT){var mJ=H()||!1;jOh(O.value);mJ||tT.key!=="Enter"||tT.shiftKey||(tT.preventDefault(),M3());return!1}),
"on:keyup":_.YH(function(){F(O.value.value.length===0);return!1}),
"aria-label":function(){if(H()){var tT,mJ;return((tT=u())==null?void 0:(mJ=tT.loadingConfig)==null?void 0:mJ.loadingAnimationA11yLabel)||""}return V()},
placeholder:V,rows:1}),_.p(_.TT,{data:function(){return _.c(g.data().sendButton,_.Rn)},
onClick:function(tT){tT.preventDefault();M3();F(O.value.value.length===0)},
buttonOverrides:function(){return{disabled:d()||H()}}})),_.p(_.c2,{className:"chatInputViewModelChatDisclaimer",
text:function(){var tT;return g.data().disclaimerText||((tT=_.c(g.data().disclaimer,_.XO2))==null?void 0:tT.text)}})))},"Vj"),"yt-chat-input-view-model",{props:{data:_.H2}});var l2p=["engagement-panel-clip-create","engagement-panel-clip-view"],I2n=0,Ol=function(){var g=_.X.apply(this,arguments)||this;var u;g.headerData=(u=g.data)==null?void 0:u.header;g.darkerPanels=_.w("web_watch_darker_panels");g.matchContentTheme=_.w("web_watch_panel_content_match_theme");g.disableAutoFill=!1;g.isFullscreen=!1;g.isTheaterMode=!1;g.liveChatReplyPanel=!1;g.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");g.disableBackdropFilter=_.w("web_disable_backdrop_filter");g.isPersistentPanel=
!1;g.trackEngagementPanelVisibility=_.w("web_watch_track_engagement_panel_visibility");g.overscrollContain=!1;g.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 g};
_.A(Ol,_.X);_.P=Ol.prototype;
_.P.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(g){var u;return(g==null?void 0:(u=g.webComponentHint)==null?void 0:u.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"}}}};
_.P.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var g;if((g=this.hostElement.parentElement)==null?0:g.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.P.detached=function(){this.updateTheaterDisablement()};
_.P.showPanel=function(){var g=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Hv.addJob(function(){g.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.P.maybeScrollToItemSection=function(g){var u=this,q,Q=g==null?void 0:(q=g.sectionListEngagementPanelExtras)==null?void 0:q.scrollToItemSectionIdentifier;Q&&_.Hv.addJob(function(){var L;(L=u.sectionListRendererElement)==null||L.scrollToItemSection(Q)},8)};
_.P.hidePanel=function(){var g=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Hv.addJob(function(){g.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.P.updatePanel=function(g,u,q,Q){var L=this;if((g=g==null?void 0:g.engagementPanelSectionListRenderer)||Q){if(g){Q=g.header;var E=g.content,y=g.footer,v=g.targetId,J=g.onShowCommands;g=g.onHideCommands;v&&this.set("data.targetId",v);Q&&this.set("data.header",Q);E&&this.set("data.content",E);y&&this.set("data.footer",y);_.w("enable_on_visibility_change_commands_for_panels")&&(J&&this.set("data.onShowCommands",J),g&&this.set("data.onHideCommands",g))}else Q&&(g=Q.content,E=Q.secondaryHeaderContent,
y=Q.targetId,Q=Q.loggingDirectives,y&&this.set("data.targetId",y),g&&this.set("data.content",g),Q&&_.w("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",Q),E&&(this.secondaryHeaderData=E));this.updateChildVisibilityProperties();if(u){var f;_.w("kevlar_update_panel_focus_scroll_killswitch")||(f={preventScroll:!0});this.focus(f)}_.xt(this,function(){_.hJ(L.hostElement,"yt-refit");L.maybeScrollToItemSection(q)})}};
_.P.computeHeaderData=function(){var g,u=(0,_.pH.unsafeClone)((g=this.data)==null?void 0:g.header);if(u){g=new _.d2(Object.keys(u)[0]);var q=_.c(u,g),Q=_.c(this.secondaryHeaderData,g);Q&&_.yb(u,g,Object.assign({},Q,q))}return u};
_.P.getReloadContinuation=function(){var g,u,q,Q=_.N(((g=this.data)==null?void 0:(u=g.content)==null?void 0:(q=u.sectionListRenderer)==null?void 0:q.continuations)||[]);for(g=Q.next();!g.done;g=Q.next())if(g=g.value,g.reloadContinuationData)return g.reloadContinuationData.continuation};
_.P.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var g;((g=this.data)==null?0:g.targetId)&&(g=this.contentElement.firstElementChild)&&g.setAttribute("panel-target-id",this.data.targetId)};
_.P.forwardPopupClosedToFlowRootRenderer=function(){var g=_.Tr(this.hostElement).querySelector("ytd-flow-root-renderer");if(g&&this.hostElement.closest("ytd-popup-container"))g.onPopupClosed()};
_.P.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var g;if(!l2p.includes((g=this.theaterDisablementPanelIdentifier)!=null?g:""))if(g=_.w("web_watch_imax_theater_mode")&&this.isTheaterMode,g=_.w("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||g,_.w("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||g){var u;this.visibility=(u=this.data)==null?void 0:u.visibility;var q;this.trackEngagementPanelVisibility&&((q=this.data)==null?void 0:q.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var Q,L,E,y;this.contentEmpty=!!(((Q=this.data)==null?0:(L=Q.content)==null?0:L.structuredDescriptionContentRenderer)&&Object.keys((E=this.data)==null?void 0:(y=E.content)==null?void 0:
y.structuredDescriptionContentRenderer).length===0);(u=_.Bk().resolve(_.yH))&&u.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.P.isTheaterModeChanged=function(){_.w("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.P.isFullscreenChanged=function(){_.w("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.P.focus=function(g){if(this.header)this.header.focus(g);else{var u;(u=_.Tr(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||u.focus(g)}};
_.P.visibilityChanged=function(){if(!_.w("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var g=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L=Q||!this.lastVisibility,E,y,v,J=((E=this.data)==null?void 0:(y=E.identifier)==null?void 0:
y.tag)||((v=this.data)==null?void 0:v.panelIdentifier);if(g&&L){var f;if((f=this.data)==null?0:f.onShowCommands)if(_.w("enable_on_visibility_change_commands_for_panels"))for(u=_.N(this.data.onShowCommands),q=u.next();!q.done;q=u.next())this.ytComponentBehavior.resolveCommand(q.value);else _.xJ(this.hostElement,this.data.onShowCommands,this.hostElement);J&&_.bR().dispatch(_.rF({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:J}}))}else if(u&&q){var t;if((t=this.data)==null?0:t.onHideCommands)if(_.w("enable_on_visibility_change_commands_for_panels"))for(u=
_.N(this.data.onHideCommands),q=u.next();!q.done;q=u.next())this.ytComponentBehavior.resolveCommand(q.value);else _.xJ(this.hostElement,this.data.onHideCommands,this.hostElement);J&&_.bR().dispatch(_.rF({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:J}}))}g&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*I2n++));_.w("kevlar_watch_focus_on_engagement_panels")&&g&&Q&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.P.notifyVisibilityChanged=function(g){var u;_.Og(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,g,(u=this.data)==null?void 0:u.targetId]);if(_.w("autonav_pause_for_comments_ep")){var q;_.hJ(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:g==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(q=this.data)==null?void 0:q.targetId})}};
_.P.updateTheaterDisablement=function(){if(!_.w("kevlar_watch_theater_disablement_killswitch")){var g=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&l2p.includes(g)&&!_.w("watch_next_grid_ignore_disallowed_panels")){var u=_.Dc(_.bR().getState()),q=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";g!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():q?(this.originalTheaterState===void 0&&(this.originalTheaterState=u,this.theaterDisablementPanelIdentifier=
g),u&&_.YJ(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.P.clearTheaterDisablement=function(){_.YJ(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.P.updateChildVisibilityProperties=function(){this.hostElement||_.w("kevlar_panel_property_init_killswitch")||this._enableProperties();var g=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=g);var u,q=(u=this.headerElement)==null?void 0:u.firstElementChild;if(q&&!this.adHeaderImageLockupViewModel){u=g==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";q.collapsed=u;q=_.Tr(q).querySelector("#visibility-button");if(!q)return;(q=q.firstElementChild)&&
q.polymerController.is==="ytd-toggle-button-renderer"&&q.polymerController.data.isToggled!==u&&q.polymerController.set("data.isToggled",u)}var Q;if(u=(Q=this.contentElement)==null?void 0:Q.firstElementChild)if(g&&g!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")u.removeAttribute("panel-content-visible");else{u.setAttribute("panel-content-visible","");var L;(L=u.markDirty)==null||L.call(u)}};
_.P.onYtChangeEngagementPanelVisibilityAction=function(g){var u=this,q,Q=(q=this.data)==null?void 0:q.targetId,L,E,y;q=((L=this.data)==null?void 0:(E=L.identifier)==null?void 0:E.tag)||((y=this.data)==null?void 0:y.panelIdentifier);var v=_.c(g,_.u9X),J;g=Q&&(v==null?void 0:v.targetId)===Q||q&&(v==null?void 0:(J=v.panelIdentifier)==null?void 0:J.tag)===q;this.dialog&&g&&(v==null?void 0:v.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Q==="engagement-panel-comments-section"?_.YJ(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.YJ(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",q]));!_.w("kevlar_use_engagement_panel_management_component")&&g&&(Q=v.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!Q?_.Hv.addJob(function(){u.visibility=v.visibility},2,this.hideDelayMs):this.visibility=v.visibility,v.visibility&&this.notifyVisibilityChanged(v.visibility))};
_.P.onYtScrollToEngagementPanelCommand=function(g){var u,q=(u=this.data)==null?void 0:u.targetId,Q,L,E;u=((Q=this.data)==null?void 0:(L=Q.identifier)==null?void 0:L.tag)||((E=this.data)==null?void 0:E.panelIdentifier);g=_.c(g,_.jx8);var y;(q&&(g==null?void 0:g.targetId)===q||u&&(g==null?void 0:(y=g.panelIdentifier)==null?void 0:y.tag)===u)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.YJ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.P.attachVEs=function(g){var u,q;(g==null?0:(u=g.content)==null?0:(q=u.productListRenderer)==null?0:q.trackingParams)&&_.gL().graftServerVe(g.content.productListRenderer.trackingParams);var Q,L;(g==null?0:(Q=g.content)==null?0:(L=Q.transcriptRenderer)==null?0:L.trackingParams)&&_.gL().graftServerVe(g.content.transcriptRenderer.trackingParams)};
_.P.onYtUpdateEngagementPanelAction=function(g){var u,q=(u=this.data)==null?void 0:u.targetId;g=_.c(g,fGz);q&&(g==null?void 0:g.targetId)===q&&(this.updatePanel({engagementPanelSectionListRenderer:{header:g==null?void 0:g.header,content:g==null?void 0:g.content}},!1),this.attachVEs(g))};
_.P.onYtShowEngagementPanelScrimAction=function(g){var u,q=(u=this.data)==null?void 0:u.targetId;g=_.c(g,jdx);q&&(g==null?void 0:g.engagementPanelTargetId)===q&&(this.scrimmed=!0)};
_.P.onYtHideEngagementPanelScrimAction=function(g){var u,q=(u=this.data)==null?void 0:u.targetId;g=_.c(g,sdh);q&&(g==null?void 0:g.engagementPanelTargetId)===q&&(this.scrimmed=!1)};
_.P.getIdentifier=function(){var g,u,q;return((g=this.data)==null?void 0:g.panelIdentifier)||((u=this.data)==null?void 0:(q=u.identifier)==null?void 0:q.tag)};
_.P.getSurface=function(){var g,u;return(g=this.data)==null?void 0:(u=g.identifier)==null?void 0:u.surface};
_.z3.Object.defineProperties(Ol.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var g=this.getIdentifier();return g==="engagement-panel-youchat"||g==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
Ol.prototype.visibilityChanged=Ol.prototype.visibilityChanged;Ol.prototype.isFullscreenChanged=Ol.prototype.isFullscreenChanged;Ol.prototype.isTheaterModeChanged=Ol.prototype.isTheaterModeChanged;Ol.prototype.dataChanged=Ol.prototype.dataChanged;Ol.prototype.forwardPopupClosedToFlowRootRenderer=Ol.prototype.forwardPopupClosedToFlowRootRenderer;Ol.prototype.onYtRendererstamperFinished=Ol.prototype.onYtRendererstamperFinished;
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Ol.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Ol.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ol.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Ol.prototype,"ytdReduxBehavior",void 0);
_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],Ol.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ol.prototype,"data",void 0);_.Y([_.a({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.K("design:type",Object)],Ol.prototype,"headerData",void 0);_.Y([_.a(),_.K("design:type",Object)],Ol.prototype,"secondaryHeaderData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ol.prototype,"visibility",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ol.prototype,"contentEmpty",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ol.prototype,"scrimmed",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ol.prototype,"dialog",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ol.prototype,"dropdown",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ol.prototype,"darkerPanels",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ol.prototype,"matchContentTheme",void 0);_.Y([_.a(),_.K("design:type",Object)],Ol.prototype,"disableAutoFill",void 0);_.Y([_.a({reflectToAttribute:!0,value:_.w("optimal_reading_width_comments_ep")}),_.K("design:type",Boolean)],Ol.prototype,"optimalReadingWidthComments",void 0);_.Y([_.a(),_.K("design:type",Number)],Ol.prototype,"hideDelayMs",void 0);
_.Y([_.a({selector:_.pe,reflectToAttribute:!0}),_.K("design:type",Object)],Ol.prototype,"isFullscreen",void 0);_.Y([_.a({selector:_.Dc,reflectToAttribute:!0}),_.K("design:type",Object)],Ol.prototype,"isTheaterMode",void 0);_.Y([_.a(),_.K("design:type",Number)],Ol.prototype,"showDelayMs",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.targetId"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ol.prototype,"targetId",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ol.prototype,"webSize",null);_.Y([_.a(),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ol.prototype,"hideFooterBorder",null);_.Y([_.a(),_.K("design:type",Object)],Ol.prototype,"isWatch",void 0);_.Y([_.a(),_.K("design:type",Object)],Ol.prototype,"originalTheaterState",void 0);_.Y([_.a(),_.K("design:type",Object)],Ol.prototype,"theaterDisablementPanelIdentifier",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ol.prototype,"isWatchWhilePanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ol.prototype,"shortsPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ol.prototype,"liveChatEngagementPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ol.prototype,"learningChatEngagementPanel",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ol.prototype,"liveChatReplyPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ol.prototype,"enableAnchoredPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ol.prototype,"disableBackdropFilter",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ol.prototype,"isPersistentPanel",void 0);_.Y([_.a(),_.K("design:type",Object)],Ol.prototype,"trackEngagementPanelVisibility",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ol.prototype,"overscrollContain",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ol.prototype,"isAiCompanionPanel",null);_.Y([_.oE("#header"),_.K("design:type",HTMLElement)],Ol.prototype,"headerElement",void 0);_.Y([_.oE("#header > *"),_.K("design:type",HTMLElement)],Ol.prototype,"header",void 0);_.Y([_.oE("ytd-section-list-renderer"),_.K("design:type",Object)],Ol.prototype,"sectionListRendererElement",void 0);
_.Y([_.oE("panel-ad-header-image-lockup-view-model"),_.K("design:type",HTMLElement)],Ol.prototype,"adHeaderImageLockupViewModel",void 0);_.Y([_.oE("#content"),_.K("design:type",HTMLElement)],Ol.prototype,"contentElement",void 0);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ol.prototype,"onYtRendererstamperFinished",null);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ol.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.Y([_.qm("data","isFullscreen","isTheaterMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ol.prototype,"dataChanged",null);_.Y([_.k_("isTheaterMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ol.prototype,"isTheaterModeChanged",null);
_.Y([_.k_("isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ol.prototype,"isFullscreenChanged",null);_.Y([_.k_("visibility"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ol.prototype,"visibilityChanged",null);_.Y([_.fE({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Ol);
_.T(Ol,"ytd-engagement-panel-section-list-renderer",function(){if(n8L!==void 0)return n8L;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return n8L=g},{mode:2});var iuh;var Kx=function(){var g=_.X.apply(this,arguments)||this;g.rounded=!0;g.pageAttachedTo=void 0;g.currentRequestResolver=void 0;g.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return g};
_.A(Kx,_.X);Kx.prototype.attached=function(){this.pageAttachedTo=_.Bk().resolve(_.ba).getCurrentPage();_.hJ(this.hostElement,"yt-player-attached",this.player)};
Kx.prototype.detached=function(){var g;if((g=this.pageAttachedTo)==null?0:g.hostElement)_.hJ(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Kx.prototype.dataChanged=function(){var g=this,u;if(((u=this.data)==null?0:u.inlinePlaybackEndpoint)&&!_.w("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();u=this.data.inlinePlaybackEndpoint;var q=_.Bk().resolve(_.QY),Q={};_.Bk().resolve(_.UE);Q.lact=_.nB();var L=new _.KU;this.currentRequestResolver=L;L.promise.then(function(E){var y={autoplay:!0};!_.w("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Bk().resolve(_.RO).isMiniplayerActive()&&(y.pause_at_start=
!0,y.autoplay=!1);E&&g.player.loadVideoWithPlayerResponse(E,y)});
IeZ(q,{endpoint:u,startPlaybackInMutedState:!1},Q).then(function(E){L.resolve(E)}).catch(function(){})}else if((q=this.data)==null?0:q.videoId)u={video_id:this.data.videoId,
autoplay:!0},!_.w("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Bk().resolve(_.RO).isMiniplayerActive()&&(u.pause_at_start=!0,u.autoplay=!1),this.player.loadVideoWithPlayerVars(u)};
Kx.prototype.handleSignalActionPausePlayer=function(){_.mH().pause()};
Kx.prototype.dataChanged=Kx.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],Kx.prototype,"data",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Kx.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Kx.prototype,"rounded",void 0);_.Y([_.oE("#player"),_.K("design:type",Object)],Kx.prototype,"player",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kx.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Kx);
_.T(Kx,"ytd-channel-video-player-renderer",function(){if(iuh!==void 0)return iuh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return iuh=g},{mode:1});var C4Z;var xg=function(){return _.X.apply(this,arguments)||this};
_.A(xg,_.X);xg.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.fa(_.Tr(this.hostElement).querySelector("#text"),_.v$W(_.JkR,this.data.companionLegalText))};
xg.prototype.computeAutoScrollEnabled=function(g,u){return g&&!u};
xg.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
xg.prototype.onToggleTap=function(){this.expanded=!this.expanded};
xg.prototype.expandedChanged=xg.prototype.expandedChanged;xg.prototype.dataChanged=xg.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(Ewh),_.K("design:type",Object)],xg.prototype,"ytdAutoScrollBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],xg.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],xg.prototype,"expanded",void 0);
_.Y([_.a({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.K("design:type",Boolean)],xg.prototype,"autoScrollEnabled",void 0);_.Y([_.a(),_.K("design:type",String)],xg.prototype,"expanderIcon",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xg.prototype,"dataChanged",null);
_.Y([_.k_("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xg.prototype,"expandedChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],xg);
_.T(xg,"ytd-companion-legal-text-renderer",function(){if(C4Z!==void 0)return C4Z;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return C4Z=g},{mode:1});var bup;var BA=function(){var g=_.X.apply(this,arguments)||this;g.buttonUpdate=_.w("web_modern_buttons");g.kevlarWatchGrid=_.w("kevlar_watch_grid");g.centerAlignDescription=_.w("action_companion_center_align_description");g.truncateDomain=_.w("action_companion_truncate_domain");g.enableMonoStyle=_.w("enable_default_mono_cta_migration_web_client");return g};
_.A(BA,_.X);_.P=BA.prototype;_.P.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.P.getOnLayoutVisibleCallback=function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.layoutId:null};
_.P.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",BA.JSC$21245_DEFAULT_AD_BADGE_RENDERER);var g=this.getOnLayoutVisibleCallback();g&&g()}};
_.P.getButtonRenderer=function(g){return g.actionButton&&_.c(g.actionButton,_.eW)?(delete _.c(g.actionButton,_.eW).navigationEndpoint,_.c(g.actionButton,_.eW)):{}};
_.P.onClick=function(g){var u=this;if((!_.w("web_modern_buttons")||!_.ia(_.C6(g),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){g=_.F0();var q=this.getLayoutId();g&&q&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?g.getPlayerPromise().then(function(Q){(new _.DG(Q)).executeCommand(u.data.navigationEndpoint,q)}):_.w("kevlar_companion_resolve_command_killswitch")?_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.YJ(this.hostElement,"yt-companion-ad-clicked",["action-companion",q])}};
_.z3.Object.defineProperties(BA.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.data)==null?0:(u=g.detailsLine)==null?0:(q=u.adRating)==null?0:q.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 g,u,q,Q;return((g=this.data)==null?0:(u=g.detailsLine)==null?0:(q=u.adRating)==null?0:(Q=q.ratingIcon)==null?0:Q.iconType)?_.x9(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q;return((g=this.data)==null?0:(u=g.detailsLine)==null?0:(q=u.texts)==null?0:(Q=q[0])==null?0:Q.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 g,u;return((g=this.data)==null?0:(u=g.description)==null?0:u.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var g=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return g?g.indexOf("/default_banner")!==-1:!0}}});
BA.prototype.onClick=BA.prototype.onClick;BA.prototype.dataChanged=BA.prototype.dataChanged;BA.JSC$21245_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Ug("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],BA.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BA.prototype,"rendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BA.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],BA.prototype,"buttonUpdate",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],BA.prototype,"kevlarWatchGrid",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],BA.prototype,"centerAlignDescription",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],BA.prototype,"truncateDomain",void 0);
_.Y([_.a({computed:"computeButtonOverride(buttonUpdate)"}),_.K("design:type",Object)],BA.prototype,"buttonOverride",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],BA.prototype,"enableMonoStyle",void 0);_.Y([_.C("data.detailsLine.adRating.ratingText"),_.K("design:type",Object),_.K("design:paramtypes",[])],BA.prototype,"getRating",null);_.Y([_.C("getRating"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BA.prototype,"computeRatingHidden",null);
_.Y([_.C("data.detailsLine.adRating.ratingIcon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],BA.prototype,"iconType",null);_.Y([_.C("data.detailsLine.texts.0.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],BA.prototype,"getDetailsLine",null);_.Y([_.C("getDetailsLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BA.prototype,"computeDetailsLineHidden",null);
_.Y([_.C("data.description.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],BA.prototype,"getDescriptionText",null);_.Y([_.C("getDescriptionText"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BA.prototype,"computeDescriptionTextHidden",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],BA.prototype,"interactionLoggingClientData",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BA.prototype,"hideBanner",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BA.prototype,"dataChanged",null);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],BA.prototype,"onClick",null);_.Y([_.fE({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],BA);
_.T(BA,"ytd-action-companion-ad-renderer",function(){if(bup!==void 0)return bup;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return bup=g},{mode:2});var dOp;var FhE;var zq=function(){var g=_.X.apply(this,arguments)||this;g.buttonUpdate=_.w("web_modern_buttons");g.hideLegacyBanner=_.w("enable_dsa_one_click_ata_translators_infeed_elements");g.adInfoButtonStyle="mono";g.adInfoButtonType="text";g.noDotAdBadge=!0;return g};
_.A(zq,_.X);_.P=zq.prototype;_.P.getOnLayoutVisibleCallback=function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.layoutId:null};
_.P.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 g=this.data.image.thumbnail.thumbnails[0];this.imageSrc=g.url?_.SO(g.url):void 0;this.imageWidth=g.width||0;this.imageHeight=g.height||0}this.data.clickthroughEndpoint&&_.c(this.data.clickthroughEndpoint,_.ao)&&(g=_.c(this.data.clickthroughEndpoint,_.ao).url,_.w("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
g||"":g?(g=_.SO(g),this.clickThroughUrl=_.BT(g)):this.clickThroughUrl=void 0);(g=this.getOnLayoutVisibleCallback())&&g()}};
_.P.onClick=function(g){_.ia(_.C6(g),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(g)};
_.P.handleClick=function(){var g=this;this.data&&this.data.clickthroughEndpoint&&(_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(u){g.macroReplacementBehavior.sendServiceRequestAction([u])}),_.YJ(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.P.onLoad=function(){_.Og(this.hostElement,"yt-refit-popups-action")};
_.z3.Object.defineProperties(zq.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.interactionLoggingClientData:null}}});
zq.prototype.onLoad=zq.prototype.onLoad;zq.prototype.onClick=zq.prototype.onClick;zq.prototype.dataChanged=zq.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],zq.prototype,"rendererBehavior",void 0);_.Y([_.I(Jux.YtMacroReplacementBehavior),_.K("design:type",Object)],zq.prototype,"macroReplacementBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zq.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],zq.prototype,"buttonUpdate",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],zq.prototype,"hideLegacyBanner",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],zq.prototype,"adInfoButtonStyle",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],zq.prototype,"adInfoButtonType",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],zq.prototype,"macros",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],zq.prototype,"interactionLoggingClientData",null);_.Y([_.a(),_.K("design:type",String)],zq.prototype,"clickThroughUrl",void 0);_.Y([_.a(),_.K("design:type",_.he)],zq.prototype,"imageSrc",void 0);_.Y([_.a(),_.K("design:type",Number)],zq.prototype,"imageWidth",void 0);_.Y([_.a(),_.K("design:type",Number)],zq.prototype,"imageHeight",void 0);_.Y([_.a(),_.K("design:type",Object)],zq.prototype,"noDotAdBadge",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zq.prototype,"dataChanged",null);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],zq.prototype,"onClick",null);_.Y([_.n6("load"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zq.prototype,"onLoad",null);_.Y([_.fE({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],zq);
_.T(zq,"ytd-image-companion-renderer",function(){if(FhE!==void 0)return FhE;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return FhE=g},{mode:2});var mO9;var nx=function(){return _.X.apply(this,arguments)||this};
_.A(nx,_.X);_.P=nx.prototype;_.P.dataChanged=function(){this.set("data.adBadge",nx.JSC$21254_DEFAULT_AD_BADGE_RENDERER);if(this.data){var g=this.getOnLayoutVisibleCallback();g&&g()}};
_.P.getOnLayoutVisibleCallback=function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.layoutId:null};
_.P.onCompanionClicked=function(g){this.data&&(g.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.YJ(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.P.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var g=_.F0(),u=this.getLayoutId(),q=this.data.clickToAdvSiteEndpoint;g&&u&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?g.getPlayerPromise().then(function(Q){(new _.DG(Q)).executeCommand(q,u)}):_.hJ(this.hostElement,"yt-navigate",{endpoint:q})}};
_.P.sendTrackingPings=function(g){if(g&&g.length!==0&&g[0].loggingUrls&&(g=g[0].loggingUrls.map(this.getBaseUrl)))for(var u=0;u<g.length;u++)_.VI(g[u])};
_.P.getBaseUrl=function(g){return g.baseUrl||""};
_.z3.Object.defineProperties(nx.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var g=_.ri("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.interactionLoggingClientData:null}}});
nx.prototype.onCompanionClicked=nx.prototype.onCompanionClicked;nx.prototype.dataChanged=nx.prototype.dataChanged;nx.JSC$21254_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Ug("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],nx.prototype,"data",void 0);_.Y([_.oE("#title"),_.K("design:type",HTMLElement)],nx.prototype,"shopTitle",void 0);
_.Y([_.qm("data.impressionEndpoints"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nx.prototype,"dataChanged",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],nx.prototype,"interactionLoggingClientData",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],nx.prototype,"onCompanionClicked",null);
_.Y([_.fE({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],nx);
_.T(nx,"ytd-shopping-companion-renderer",function(){if(mO9!==void 0)return mO9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return mO9=g},{mode:1});_.dL(_.r(function(g){var u=g.data;g=_.x1({visibilityCallback:function(Q){var L,E=(L=u().interaction)==null?void 0:L.onFirstVisible;Q&&E&&_.ey(E)},
showOption:_.XY});var q=_.eJ(function(){return u().interaction},eB9);
_.C2(function(){var Q,L;L=(L=_.ri("yt.www.ads.eventcache.getLastCompanionData"))?(L=L())&&L.onLayoutVisibleCallback:null;(Q=L)==null||Q()},"Wj");
return _.p("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.YH(function(Q){_.Og(Q.currentTarget,"yt-refit-popups-action")}),
el:_.lF(g,q),"aria-label":function(){var Q,L;return(Q=u().interaction)==null?void 0:(L=Q.accessibility)==null?void 0:L.label}},_.p("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.p(_.Up,{data:function(){return u().adImage}},{adImageViewModel:function(Q){return _.p(_.Wp,{data:Q.data,
targetHeight:80,customCommandResolver:eB9})}})),_.p("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.p("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.p(_.Up,{data:function(){return u().adBadge}},{adBadgeViewModel:function(Q){return _.p(_.x4,{data:Q.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.p("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.p(_.Up,{data:function(){return u().menu}},{buttonViewModel:_.TT}))))},"Xj"),"banner-image-layout-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;g=_.x1({visibilityCallback:function(Q){var L,E=(L=u().interaction)==null?void 0:L.onFirstVisible;Q&&E&&_.ey(E)},
showOption:_.XY});var q=_.eJ(function(){return u().interaction},GK9);
_.C2(function(){var Q,L;L=(L=_.ri("yt.www.ads.eventcache.getLastCompanionData"))?(L=L())&&L.onLayoutVisibleCallback:null;(Q=L)==null||Q()},"Yj");
return _.p("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.lF(g,q)},_.p("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.p(_.Up,{data:function(){return u().adImage}},{adImageViewModel:function(Q){return _.p(_.Wp,{data:Q.data,
targetHeight:80,customCommandResolver:GK9})}})),_.p("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.p("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.p(_.Up,{data:function(){return u().adAvatarLockup}},{adAvatarLockupViewModel:function(Q){return _.p(Mlt,{data:Q.data,
customCommandResolver:GK9})}})),_.p(_.Up,{data:function(){return u().adButton}},{adButtonViewModel:function(Q){return _.p(_.Tb,{data:Q.data,
customCommandResolver:GK9})}}),_.p("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.p(_.Up,{data:function(){return u().menu}},{buttonViewModel:_.TT}))))},"Zj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.H2}});var a2L={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"},kg=function(){var g=_.X.apply(this,arguments)||this;g.updateCompanionDataJobId=0;g.contentVideoId=null;g.player=null;g.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return g};
_.A(kg,_.X);_.P=kg.prototype;_.P.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:a2L}}};
_.P.attached=function(){var g=this,u=_.F0();u&&u.getPlayerPromise().then(function(q){g.getCachedDataAndListen(q)})};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.P.updateRendererStamper=function(){var g={};if(this.data)for(var u in a2L)if(this.data[u]){g[u]=this.data[u];break}if(this.oneofRenderer!=void 0||Object.keys(g).length)this.oneofRenderer=g};
_.P.getCachedDataAndListen=function(g){var u=this.retrieveCachedCompanionData();u&&Object.keys(u).length&&this.receiveCompanionData(u);this.ytPlayerListenerBehavior.listenToPlayerEvent(g,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=g};
_.P.retrieveCachedCompanionData=function(){return _.Qq.yt&&_.Qq.yt.www&&_.Qq.yt.www.ads&&_.Qq.yt.www.ads.eventcache&&_.Qq.yt.www.ads.eventcache.getLastCompanionData?_.Qq.yt.www.ads.eventcache.getLastCompanionData():null};
_.P.receiveCompanionData=function(g){g&&Object.keys(g).length?(this.contentVideoId=g.contentVideoId,this.setCompanionData(g)):this.setCompanionData(g)};
_.P.setCompanionData=function(g){this.cancelPendingCompanionAdJobs();if(g){this.updateCompanionDataJobId=0;for(var u in a2L)a2L.hasOwnProperty(u)&&(this.data[u]=void 0);g.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",g.shoppingCompanionCarouselRenderer):g.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",g.imageCompanionAdRenderer):g.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",g.actionCompanionAdRenderer),_.Og(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Og(this.hostElement,"yt-hide-tvfilm-offer-module")):g.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",g.bannerImageLayoutViewModel):g.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",g.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.P.dataChanged=function(){var g=this,u=_.F0();u?u.getPlayerPromise().then(function(q){g.contentVideoId&&q.getVideoUrl().includes("v="+g.contentVideoId)||(g.cancelPendingCompanionAdJobs(),g.updateRendererStamper())}):_.Wk(Error("Sl"))};
_.P.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Hv.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.P.handleCompanionAdClicked=function(g,u){this.player.onAdUxClicked(g,u);this.player.pauseVideo()};
kg.prototype.dataChanged=kg.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],kg.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],kg.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],kg.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],kg.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],kg.prototype,"oneofRenderer",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kg.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],kg);
_.T(kg,"ytd-companion-slot-renderer",function(){if(dOp!==void 0)return dOp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return dOp=g},{mode:2});var Vlf;var SS=function(){return _.X.apply(this,arguments)||this};
_.A(SS,_.X);SS.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
SS.prototype.dataChanged=SS.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],SS.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],SS.prototype,"companionSlotData",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SS.prototype,"dataChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],SS);
_.T(SS,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Vlf!==void 0)return Vlf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Vlf=g},{mode:1});var XGf;var oi=function(){var g=_.X.apply(this,arguments)||this;g.skinnyMode=!1;g.COMPACT_EVENT_COUNT=4;g.onShelfToggleButtonTap=function(){g.logTap(g.data);g.showingMore=!g.showingMore};
g.onShelfToggleButtonFocus=function(){g.showingMore||(g.logTap(g.data),g.showingMore=!0,_.xt(g,function(){var u=g.COMPACT_EVENT_COUNT-1,q;(q=_.Tr(g.hostElement).querySelector("#event-"+u))==null||q.focus()}))};
return g};
_.A(oi,_.X);_.P=oi.prototype;_.P.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.P.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.P.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.zr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.zr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.zr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.zr(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.zr(this.infoTooltip,this.infoTooltip.hide))};
_.P.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.zr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.zr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.zr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.zr(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.zr(this.infoTooltip,this.infoTooltip.hide))};
_.P.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)};
_.P.onShowingMoreChanged=function(){var g;this.showingMoreChanged((g=this.showingMore)!=null?g:!1)};
_.P.showingMoreChanged=function(g){var u=this.get("data.events")||[];this.set("restEvents",u.slice(1,g?u.length:this.COMPACT_EVENT_COUNT).map(function(q){return q.ticketEventRenderer}));
u.slice(0,g?u.length:this.COMPACT_EVENT_COUNT).forEach(function(q){var Q=_.j_();q=q.ticketEventRenderer.trackingParams;_.JJ()&&Q&&q&&(q=_.Lr(q),Q&&_.At(Q,q))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.P.computeAriaLabel=function(g){return g.subtitle1+", "+g.subtitle2};
_.P.logTap=function(g){_.JJ()&&this.ytRendererBehavior.logExplicitClick(g)};
_.P.isKeyboardAction=function(g){return this.get("detail.x",g)===0&&this.get("detail.y",g)===0};
_.P.onFirstEventTap=function(g){g.target&&this.handleTap(g.target,this.firstEvent,this.isKeyboardAction(g))};
_.P.onTicketLinkTap=function(g){g.target&&this.handleTap(g.target,g.model.item,this.isKeyboardAction(g))};
_.P.handleTap=function(g,u,q){if(u.buttonCommand)if(u.hasMultipleOffers)Object.assign(_.c(u.buttonCommand,_.q4),{properties:{source:q?"keyboard":"tap"}}),this.logTap(u),this.popupPositionTarget=g,_.xJ(this.hostElement,[u.buttonCommand],this.hostElement);else{var Q;if((Q=_.c(u.buttonCommand,_.ao))==null?0:Q.url)this.logTap(u),_.sP(window,_.c(u.buttonCommand,_.ao).url)}};
oi.prototype.onShowingMoreChanged=oi.prototype.onShowingMoreChanged;oi.prototype.dataChanged=oi.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],oi.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],oi.prototype,"firstEvent",void 0);_.Y([_.a(),_.K("design:type",Object)],oi.prototype,"restEvents",void 0);_.Y([_.a(),_.K("design:type",String)],oi.prototype,"imageUrl",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],oi.prototype,"showingMore",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],oi.prototype,"canShowMore",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],oi.prototype,"skinnyMode",void 0);_.Y([_.a(),_.K("design:type",HTMLElement)],oi.prototype,"popupPositionTarget",void 0);_.Y([_.oE("#banner-info-tooltip"),_.K("design:type",Object)],oi.prototype,"infoTooltip",void 0);
_.Y([_.oE("#info-container"),_.K("design:type",HTMLElement)],oi.prototype,"infoContainer",void 0);_.Y([_.oE("#shelf-toggler"),_.K("design:type",HTMLElement)],oi.prototype,"shelfToggleButton",void 0);_.Y([_.oE("#separator"),_.K("design:type",HTMLDivElement)],oi.prototype,"separator",void 0);_.Y([_.a(),_.K("design:type",String)],oi.prototype,"shelfTogglerLabelText",void 0);_.Y([_.a(),_.K("design:type",String)],oi.prototype,"shelfTogglerIcon",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oi.prototype,"dataChanged",null);_.Y([_.qm("showingMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oi.prototype,"onShowingMoreChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],oi);
_.T(oi,"ytd-ticket-shelf-renderer",function(){if(XGf!==void 0)return XGf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return XGf=g},{mode:1});var rdC={};rdC.YtVisibilityRootBehavior=[_.ha0.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Fo(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.FR("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var g=_.FR("INNERTUBE_CLIENT_NAME")!=="WEB";_.w("kevlar_use_vimio_behavior")&&g&&_.Db$()}}];var Ul={};Ul.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(g){g.detail.contextProvider=this;g.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
rdC.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.A9();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(g){var u=this;this.pageCount+=1;_.w("kevlar_use_vimio_behavior")&&(_.FR("INNERTUBE_CLIENT_NAME")==="WEB"?_.Hv.addJob(function(){u.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(g)},
loadPage_:function(g){this.data=g},
ytPageBehaviorActiveObserver_:function(g){var u=this;_.w("kevlar_use_vimio_behavior")&&(g?_.FR("INNERTUBE_CLIENT_NAME")==="WEB"?_.Hv.addJob(function(){u.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(g){if(!this.setScrollTopJobId_){var u=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){u.setScrollTopJobId_=0;var q=_.Bk().resolve(_.xv(_.UE));q&&_.Fq(q);this.getPageScrollingElement().scrollTop=g}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.ty(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var Whn;var T3t;var hch;var YKp;var gD=function(){var g=_.X.apply(this,arguments)||this;g.originalQuery=null;g.originalEndpoint=null;return g};
_.A(gD,_.X);gD.prototype.computeShowOriginalQueryWithoutEndpoint_=function(g,u){return!(!g||u)};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],gD.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],gD.prototype,"correctedText",void 0);_.Y([_.a(),_.K("design:type",Object)],gD.prototype,"correctedQuery",void 0);_.Y([_.a(),_.K("design:type",Object)],gD.prototype,"correctedEndpoint",void 0);_.Y([_.a(),_.K("design:type",Object)],gD.prototype,"originalText",void 0);_.Y([_.a(),_.K("design:type",Object)],gD.prototype,"originalQuery",void 0);
_.Y([_.a(),_.K("design:type",Object)],gD.prototype,"originalEndpoint",void 0);_.Y([_.a({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.K("design:type",Boolean)],gD.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.Y([_.jP({is:"yt-search-query-correction",disableElementRegistration:!0})],gD);
_.T(gD,"yt-search-query-correction",function(){if(YKp===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;hch===void 0&&(hch=document.createElement("template"));var Q=hch;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);YKp=g}g=YKp;return g},{mode:2});_.Ny("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var OuC=function(){return _.X.apply(this,arguments)||this};
_.A(OuC,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],OuC.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],OuC.prototype,"data",void 0);_.Y([_.jP({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],OuC);
_.T(OuC,"yt-did-you-mean-renderer",function(){if(T3t===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Whn===void 0&&(Whn=document.createElement("template"));var Q=Whn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);T3t=g}g=T3t;return g},{mode:2});var KhL;var xOh;_.Ny("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var B3x=function(){return _.X.apply(this,arguments)||this};
_.A(B3x,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],B3x.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],B3x.prototype,"data",void 0);_.Y([_.jP({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],B3x);
_.T(B3x,"yt-including-results-for-renderer",function(){if(xOh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;KhL===void 0&&(KhL=document.createElement("template"));var Q=KhL;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);xOh=g}g=xOh;return g},{mode:2});var zcK;var n5p;_.Ny("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var uI=function(){return _.X.apply(this,arguments)||this};
_.A(uI,_.X);uI.prototype.computeExtraClasses_=function(g,u){var q="";g&&(q+=" "+g.toLowerCase().replace(/_/g,"-"));u&&(q+=" "+u.toLowerCase().replace(/_/g,"-"));return q};
uI.prototype.computeUrlImg_=function(){var g=this.data;g.image&&(_.Tr(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Fh(g.image.thumbnails,Number.MAX_VALUE)+")")};
uI.prototype.computeUrlImg_=uI.prototype.computeUrlImg_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],uI.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uI.prototype,"computeUrlImg_",null);_.Y([_.jP({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],uI);
_.T(uI,"yt-music-pass-feature-info-renderer",function(){if(n5p===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;zcK===void 0&&(zcK=document.createElement("template"));var Q=zcK;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);n5p=g}g=n5p;return g},{mode:2});var ktf;var SKH;_.Ny("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var o5Z=function(){return _.X.apply(this,arguments)||this};
_.A(o5Z,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],o5Z.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],o5Z.prototype,"data",void 0);_.Y([_.jP({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],o5Z);
_.T(o5Z,"yt-no-results-found-showing-results-for-renderer",function(){if(SKH===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;ktf===void 0&&(ktf=document.createElement("template"));var Q=ktf;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);SKH=g}g=SKH;return g},{mode:2});var UOh;var gNC;_.Ny("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var ujx=function(){return _.X.apply(this,arguments)||this};
_.A(ujx,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ujx.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ujx.prototype,"data",void 0);_.Y([_.jP({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],ujx);
_.T(ujx,"yt-results-without-quotes-renderer",function(){if(gNC===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;UOh===void 0&&(UOh=document.createElement("template"));var Q=UOh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);gNC=g}g=gNC;return g},{mode:2});var qXz;var QXz;_.Ny("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var LYL=function(){return _.X.apply(this,arguments)||this};
_.A(LYL,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],LYL.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],LYL.prototype,"data",void 0);_.Y([_.jP({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],LYL);
_.T(LYL,"yt-search-no-results-renderer",function(){if(QXz===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;qXz===void 0&&(qXz=document.createElement("template"));var Q=qXz;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);QXz=g}g=QXz;return g},{mode:2});var ENx;var Pnb;_.Ny("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var NeL=function(){return _.X.apply(this,arguments)||this};
_.A(NeL,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],NeL.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],NeL.prototype,"data",void 0);_.Y([_.jP({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],NeL);
_.T(NeL,"yt-showing-results-for-renderer",function(){if(Pnb===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;ENx===void 0&&(ENx=document.createElement("template"));var Q=ENx;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Pnb=g}g=Pnb;return g},{mode:2});var sXZ;var y3C;_.Ny("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var qC=function(){return _.X.apply(this,arguments)||this};
_.A(qC,_.X);
qC.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"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qC.prototype,"data",void 0);_.Y([_.jP({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],qC);
_.T(qC,"yt-offer-item-expanded-renderer",function(){if(y3C===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;sXZ===void 0&&(sXZ=document.createElement("template"));var Q=sXZ;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);y3C=g}g=y3C;return g},{mode:2});var vN9;var Dvh;_.Ny("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Qd=function(){return _.X.apply(this,arguments)||this};
_.A(Qd,_.X);
Qd.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
Qd.prototype.computeFullWidthMode=function(g){return!(!g||!g.fullWidthMode)};
Qd.prototype.computeBorderlessMode=function(g){return!(!g||!g.borderlessMode)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Qd.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Qd.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.K("design:type",Boolean)],Qd.prototype,"fullWidthMode",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.K("design:type",Boolean)],Qd.prototype,"borderlessMode",void 0);_.Y([_.jP({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Qd);
_.T(Qd,"yt-offer-item-renderer",function(){if(Dvh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;vN9===void 0&&(vN9=document.createElement("template"));var Q=vN9;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Dvh=g}g=Dvh;return g},{mode:2});var psC;var J3h;_.Ny("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var LL=function(){return _.X.apply(this,arguments)||this};
_.A(LL,_.X);LL.prototype.computeAriaLevel_=function(g){return this.getLevelID_(g)};
LL.prototype.getLevelID_=function(g){return(g=g.match(/[0-9]+$/))&&g.length==1?g[0]:"1"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],LL.prototype,"data",void 0);_.Y([_.a({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.K("design:type",String)],LL.prototype,"ariaLevel",void 0);_.Y([_.a({value:"heading",reflectToAttribute:!0}),_.K("design:type",String)],LL.prototype,"role",void 0);
_.Y([_.a({value:-1,reflectToAttribute:!0}),_.K("design:type",Number)],LL.prototype,"tabindex",void 0);_.Y([_.jP({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],LL);
_.T(LL,"yt-subscription-product-header-renderer",function(){if(J3h===void 0){var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;psC===void 0&&(psC=document.createElement("template"));var Q=psC;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);J3h=g}g=J3h;return g},{mode:2});var jXH;var foh;_.Ny("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var ED=function(){return _.X.apply(this,arguments)||this};
_.A(ED,_.X);ED.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:_.sp("menuRenderer"),events:!0}}};
ED.prototype.onStampFinished_=function(){_.Tr(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
ED.prototype.onStampFinished_=ED.prototype.onStampFinished_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ED.prototype,"data",void 0);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ED.prototype,"onStampFinished_",null);
_.Y([_.jP({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],ED);
_.T(ED,"yt-subscription-product-renderer",function(){if(foh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;jXH===void 0&&(jXH=document.createElement("template"));var Q=jXH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);foh=g}g=foh;return g},{mode:2});var MLh;var tLx;_.Ny("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Pf=function(){return _.X.apply(this,arguments)||this};
_.A(Pf,_.X);Pf.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Pf.prototype.imageScrimColorValuesChanged_=function(){var g,u=(g=this.data)==null?void 0:g.imageScrimColorValues;_.Tr(this.hostElement).querySelector("#scrim").style.backgroundColor=u?_.jh(u[0]):"transparent"};
Pf.prototype.imageScrimColorValuesChanged_=Pf.prototype.imageScrimColorValuesChanged_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Pf.prototype,"data",void 0);
_.Y([_.k_("data.imageScrimColorValues"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pf.prototype,"imageScrimColorValuesChanged_",null);_.Y([_.jP({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Pf);
_.T(Pf,"yt-subscription-product-upsell-offer-renderer",function(){if(tLx===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;MLh===void 0&&(MLh=document.createElement("template"));var Q=MLh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);tLx=g}g=tLx;return g},{mode:2});var eRn;var G5t;var $vb;var RRC;var wsh;var c3t;var NC=function(){return _.X.apply(this,arguments)||this};
_.A(NC,_.X);NC.prototype.onYtServiceRequestError_=function(g){_.A7(this.hostElement,g.detail.error.message)};
NC.prototype.onYtServiceRequestError_=NC.prototype.onYtServiceRequestError_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],NC.prototype,"data",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],NC.prototype,"collapsible",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],NC.prototype,"isManageRed",void 0);
_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],NC.prototype,"onYtServiceRequestError_",null);_.Y([_.jP({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],NC);
_.T(NC,"yt-single-ypc-offer-renderer",function(){if(c3t===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;wsh===void 0&&(wsh=document.createElement("template"));var Q=wsh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);c3t=g}g=c3t;return g},{mode:2});var sD=function(){return _.X.apply(this,arguments)||this};
_.A(sD,_.X);sD.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sD.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],sD.prototype,"isManageRed",void 0);_.Y([_.jP({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],sD);
_.T(sD,"yt-single-ypc-offer-list-renderer",function(){if(RRC===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;$vb===void 0&&($vb=document.createElement("template"));var Q=$vb;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);RRC=g}g=RRC;return g},{mode:2});var H7p;var A3p;_.Ny("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var yd=function(){return _.X.apply(this,arguments)||this};
_.A(yd,_.X);yd.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yd.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],yd.prototype,"isManageRed",void 0);_.Y([_.jP({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],yd);
_.T(yd,"yt-ypc-offers-list-renderer",function(){if(A3p===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;H7p===void 0&&(H7p=document.createElement("template"));var Q=H7p;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);A3p=g}g=A3p;return g},{mode:2});_.Ny("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var vf=function(){return _.X.apply(this,arguments)||this};
_.A(vf,_.X);
vf.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}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vf.prototype,"data",void 0);_.Y([_.jP({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],vf);
_.T(vf,"yt-unlimited-manage-subscription-page-renderer",function(){if(G5t===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;eRn===void 0&&(eRn=document.createElement("template"));var Q=eRn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);G5t=g}g=G5t;return g},{mode:2});var Z7f;var lop;var Dj=function(){return _.X.apply(this,arguments)||this};
_.A(Dj,_.X);_.P=Dj.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.P.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.onKeypress_=function(g){g.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.P.handleHeaderTap_=function(g){g.preventDefault();g.stopPropagation();this.expandOffers_()};
_.P.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.P.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Dj.prototype.dataChanged_=Dj.prototype.dataChanged_;_.Y([_.I(_.n8),_.K("design:type",Object)],Dj.prototype,"ironA11yKeysBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Dj.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Dj.prototype,"offersVisible_",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dj.prototype,"dataChanged_",null);_.Y([_.jP({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Dj);
_.T(Dj,"yt-collapsible-ypc-offer-renderer",function(){if(lop===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Z7f===void 0&&(Z7f=document.createElement("template"));var Q=Z7f;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);lop=g}g=lop;return g},{mode:2});var Ioh;var i7H;_.Ny("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var pL=function(){return _.X.apply(this,arguments)||this};
_.A(pL,_.X);_.P=pL.prototype;_.P.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.P.dataChanged_=function(){if(this.data.backgroundImage){var g=_.Fh(this.data.backgroundImage.thumbnails,screen.width),u=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=u?"linear-gradient(180deg, "+u+"), url("+g+")":"url("+g+")";this.data.gtmId&&_.QU(this.data.gtmId,_.FR("GL",""))}};
_.P.onYtServiceRequestError_=function(g){_.A7(this.hostElement,g.detail.error.message)};
_.P.getScrimLayerColorStops_=function(){var g,u,q=(g=this.data.unlimitedHeaderV2Data)==null?void 0:(u=g.unlimitedHeaderV2Data)==null?void 0:u.scrimLayerColors;if(!q)return null;var Q=100/q.length;return q.map(function(L,E){E*=Q;return _.jh(L)+" "+E+"%"}).join(",")};
_.P.computeLogoWithPadding=function(g){var u,q,Q;return(g=(u=g.unlimitedLogoImage)==null?void 0:(q=u.thumbnails)==null?void 0:(Q=q[0])==null?void 0:Q.height)&&g%31===0?!0:!1};
pL.prototype.onYtServiceRequestError_=pL.prototype.onYtServiceRequestError_;pL.prototype.dataChanged_=pL.prototype.dataChanged_;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.Y([_.a({computed:"computeLogoWithPadding(data)"}),_.K("design:type",Boolean)],pL.prototype,"logoWithPadding",void 0);
_.Y([_.a(),_.K("design:type",Object)],pL.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pL.prototype,"dataChanged_",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],pL.prototype,"onYtServiceRequestError_",null);_.Y([_.jP({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],pL);
_.T(pL,"yt-unlimited-page-header-renderer",function(){if(i7H===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Ioh===void 0&&(Ioh=document.createElement("template"));var Q=Ioh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);i7H=g}g=i7H;return g},{mode:2});var CnE;var b7E;_.Ny("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Jl=function(){return _.X.apply(this,arguments)||this};
_.A(Jl,_.X);Jl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Jl.prototype,"data",void 0);_.Y([_.jP({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Jl);
_.T(Jl,"yt-unlimited-user-notification-renderer",function(){if(b7E===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;CnE===void 0&&(CnE=document.createElement("template"));var Q=CnE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);b7E=g}g=b7E;return g},{mode:2});var dvE;var FYH;var mvp=function(){return _.X.apply(this,arguments)||this};
_.A(mvp,_.X);_.Y([_.a(),_.K("design:type",Object)],mvp.prototype,"data",void 0);_.Y([_.jP({is:"yt-alert-renderer",disableElementRegistration:!0})],mvp);
_.T(mvp,"yt-alert-renderer",function(){if(FYH===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;dvE===void 0&&(dvE=document.createElement("template"));var Q=dvE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);FYH=g}g=FYH;return g},{mode:2});var YXK=function(g){_.Lh.call(this);this.JSC$21342_watchApi=g;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;aof(this);VLK(this);XsE(this);r3n(this);WYt(this);Teh(this);hRp(this)};
_.A(YXK,_.Lh);var XsE=function(g){var u=function(){_.w("kevlar_is_pupi_enabled")||jq(g)};
g.JSC$21342_watchApi.getRoot().addEventListener("yt-player-updated",u);g.addOnDisposeCallback(function(){g.JSC$21342_watchApi.getRoot().removeEventListener("yt-player-updated",u)})},WYt=function(g){if(_.w("kevlar_endscreen_auto_theater_mode")){var u=g.JSC$21342_watchApi.subscribeToActiveChanged(function(){O7b(g)},!1);
g.addOnDisposeCallback(u)}},aof=function(g){var u,q,Q,L,E;
_.D(function(y){if(y.nextAddress==1)return y.yield(g.JSC$21342_watchApi.playerApi,2);u=y.yieldResult;q=function(v){v=!!v;KYx(g)&&(v=v?2:1,_.mB.getInstance().setState(v,!0,!1))};
Q=function(v){v&&Q7L(_.bR().getState())&&(_.YJ(g.JSC$21342_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),g.temporaryTheaterMode=!0)};
L=function(v){_.w("kevlar_player_update_autonav_on_new_data")&&v.type==="newdata"&&(_.w("kevlar_is_pupi_enabled")||jq(g))};
E=function(v){g.onPlayerStateChange(v)};
_.w("kevlar_endscreen_auto_theater_mode")&&u.addEventListener("onAutonavCancelled",Q);u.addEventListener("onAutonavChangeRequest",q);u.addEventListener("onVideoDataChange",L);u.addEventListener("onStateChange",E);g.addOnDisposeCallback(function(){u.removeEventListener("onAutonavChangeRequest",q);u.removeEventListener("onVideoDataChange",L);u.removeEventListener("onStateChange",E);_.w("kevlar_endscreen_auto_theater_mode")&&u.removeEventListener("onAutonavCancelled",Q)});
_.Wx(y)})},VLK=function(g){g.JSC$21342_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){g.autonavCancelledBySignal=!0;
_.w("kevlar_is_pupi_enabled")||jq(g)});
g.JSC$21342_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(u,q,Q){q&&jq(g,Q)});
g.JSC$21342_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){KYx(g)&&_.mB.getInstance().setState(2,!0,!0)});
g.JSC$21342_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){KYx(g)&&_.mB.getInstance().setState(1,!0,!0)});
g.addOnDisposeCallback(function(){g.JSC$21342_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");g.JSC$21342_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");g.JSC$21342_watchApi.unregisterActionHandler("yt-enable-autoplay-command");g.JSC$21342_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},r3n=function(g){var u=g.JSC$21342_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){hRp(g)}),q=g.JSC$21342_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Teh(g)});
g.addOnDisposeCallback(function(){g.JSC$21342_watchApi.unsubscribeByKey(u);g.JSC$21342_watchApi.unsubscribeByKey(q)})},hRp=function(g){g.autonavCancelledBySignal=!1;
_.w("kevlar_is_pupi_enabled")||jq(g)},Teh=function(g){var u=g.JSC$21342_watchApi.getWatchNextResponse(),q,Q;
var L=(u=(Q=_.c(u==null?void 0:(L=u.playerOverlays)==null?void 0:(q=L.playerOverlayRenderer)==null?void 0:q.autonavToggle,_.yP$))==null?void 0:Q.enabled)?2:1;_.w("kevlar_is_pupi_enabled")?_.mB.getInstance().setState(L,!1,!1):jq(g);_.w("web_persist_server_autonav_state_on_client")&&typeof u==="boolean"&&_.DGJ(L===2)},KYx=function(g){if(g.autonavCancelledBySignal)return!1;
var u,q,Q,L;return!!((u=g.JSC$21342_watchApi.getWatchNextResponse())==null?0:(q=u.contents)==null?0:(Q=q.twoColumnWatchNextResults)==null?0:(L=Q.autoplay)==null?0:L.autoplay)};
YXK.prototype.onPlayerStateChange=function(g){if(g===0){g=!_.mB.getInstance().isAutoplaySetExplicitly();var u=this.JSC$21342_watchApi.getWatchNextResponse(),q,Q,L,E;u=_.c(u==null?void 0:(q=u.contents)==null?void 0:(Q=q.twoColumnWatchNextResults)==null?void 0:(L=Q.autoplay)==null?void 0:(E=L.autoplay)==null?void 0:E.autoplayExplicitChoiceDialogRenderer,_.lCX);KYx(this)&&g&&u&&_.ze.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:u},popupType:"DIALOG"}})}else O7b(this)};
var O7b=function(g){g.temporaryTheaterMode&&(g.temporaryTheaterMode=!1,_.YJ(g.JSC$21342_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},jq=function(g,u){u=u===void 0?!1:u;
var q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21342_watchApi.playerApi,2);q=Q.yieldResult;KYx(g)?q.setAutonavState(_.mB.getInstance().getState(),u):q.setAutonavState(1,u);_.Wx(Q)})};var xvf={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 zRL=function(g){_.Lh.call(this);var u=this;this.JSC$21347_watchApi=g;var q=this.JSC$21347_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Bez(u)});
this.addOnDisposeCallback(function(){u.JSC$21347_watchApi.unsubscribeByKey(q)});
Bez(this)};
_.A(zRL,_.Lh);var Bez=function(g){var u=g.JSC$21347_watchApi.getPlayerResponse(),q=g.JSC$21347_watchApi.getWatchNextResponse();if(!_.LNm(u==null?void 0:u.playabilityStatus,q==null?void 0:q.playerOverlays)){var Q;var L=u==null?void 0:(Q=u.playabilityStatus)==null?void 0:Q.errorScreen}g.JSC$21347_watchApi.provideRenderingData("ERROR_SCREEN",L)};var nNL=_.r(function(g){return _.p("yt-player-grid-renderer",{class:_.Ty("ytPlayerGridRendererHost",g.className)},_.p(_.Up,{data:g.data},{lockupViewModel:function(u){return _.p(_.nG,{data:u.data,useOverlayStyling:!0})}}))},"$j");var k5n=_.r(function(g){var u=g.data;g=_.w("web_watch_video_details_hide_subtitle");var q=_.w("web_watch_video_details_single_line_title"),Q=_.YH(function(){var v=u().onTap;v&&_.Bk().resolve(_.Gy).resolveCommand(v)}),L={},E={},y={};
return _.p("yt-player-overlay-video-details-renderer",{class:_.Ty("ytPlayerOverlayVideoDetailsRendererHost",(L.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.w("web_watch_video_details_transparent_background"),L)),"on:click":Q,role:"button"},_.p("h2",{class:_.Ty("ytPlayerOverlayVideoDetailsRendererTitle",(E.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return q},E))},_.p(_.c2,{text:function(){return u().title}})),_.p("div",{class:_.Ty("ytPlayerOverlayVideoDetailsRendererSubtitle",
(y.ytPlayerOverlayVideoDetailsRendererHideSubtitle=g,y))},_.p(_.c2,{text:function(){return u().subtitle}})))},"ak");var fL={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},SXZ=_.r(function(g){var u=g.data;var q=_.Sy(_.pe),Q=_.w("web_watch_action_bar_resize_buttons"),L=_.w("web_watch_video_action_dsdvb"),E=_.w("delhi_modern_web_player_icons")&&!_.w("enable_web_delhi_icons");g=_.w("delhi_modern_web_player_disable_frosted_glass");var y=_.w("delhi_modern_web_player_compact_video_actions_controls"),
v=_.w("web_player_quick_action_buttons_icon_only"),J=function(){var t=Q&&!q(),e={};y?e.size="S":t&&(e.size="M");v&&(e.iconPosition="icon-only");if(Object.keys(e).length!==0)return e},f={};
return _.p("yt-player-quick-action-buttons",{class:_.Ty("ytPlayerQuickActionButtonsHost",(f.ytPlayerQuickActionButtonsHostCompactControls=function(){return!q()||y},f.ytPlayerQuickActionButtonsHostDisableBackdropFilter=g,f))},_.p(_.R4,{each:function(){var t=u();
if(E){t=JSON.parse(JSON.stringify(t));for(var e=_.N(t),G=e.next();!G.done;G=e.next()){var R=G.value,H=void 0;G=_.c((H=_.c(R,_.wT))==null?void 0:H.toggleButtonViewModel,_.cF);var l=void 0;H=_.c((l=_.c(R,_.cK))==null?void 0:l.toggleButtonViewModel,_.cF);l=_.c(R,_.Rn);R=_.c(R,_.cF);if(G)H=_.c(G.defaultButtonViewModel,_.Rn),G=_.c(G.toggledButtonViewModel,_.Rn),H&&H.iconName&&(H.iconName=fL[H.iconName]),G&&G.iconName&&(G.iconName=fL[G.iconName]);else if(H)G=_.c(H.defaultButtonViewModel,_.Rn),H=_.c(H.toggledButtonViewModel,
_.Rn),G&&G.iconName&&(G.iconName=fL[G.iconName]),H&&H.iconName&&(H.iconName=fL[H.iconName]);else if(l)l.iconName&&(l.iconName=fL[l.iconName]);else if(R){G=_.c(R.defaultButtonViewModel,_.Rn);H=_.c(R.toggledButtonViewModel,_.Rn);R=void 0;if((R=G)==null?0:R.iconName)G.iconName=fL[G.iconName];G=void 0;if((G=H)==null?0:G.iconName)H.iconName=fL[H.iconName]}}}L&&(t=$Bh(t));return t}},function(t){return _.p(_.Up,{data:function(){return t}},{buttonViewModel:function(e){return _.p(_.TT,{data:e.data,
buttonOverrides:J})},
likeButtonViewModel:function(e){return _.p(_.et,{data:e.data,buttonShapeOverrideables:J})},
dislikeButtonViewModel:function(e){return _.p(_.tP,{data:e.data,buttonShapeOverrideables:J})},
toggleButtonViewModel:function(e){return _.p(_.E6,{data:e.data,buttonShapeOverrides:J})}})}))},"bk");var UvL=function(g){_.Lh.call(this);var u=this;this.JSC$21355_watchApi=g;g=_.N(_.jR({},void 0,"NNzZMe"));this.quickActionsViewModel=g.next().value;this.setQuickActionsViewModel=g.next().value;g=_.N(_.jR({},void 0,"iORsec"));this.playerOverlayVideoDetailsRenderer=g.next().value;this.setPlayerOverlayVideoDetailsRenderer=g.next().value;g=_.N(_.jR([],void 0,"dektd"));this.lockupViewModels=g.next().value;this.setLockupViewModels=g.next().value;g=_.N(_.jR({},void 0,"Sp5Hqf"));this.commentsButton=g.next().value;
this.setCommentsButton=g.next().value;g=_.N(_.jR({},void 0,"yDAoue"));this.descriptionButton=g.next().value;this.setDescriptionButton=g.next().value;var q=this.JSC$21355_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){oNE(u)});
this.addOnDisposeCallback(function(){u.JSC$21355_watchApi.unsubscribeByKey(q)});
oNE(this)};
_.A(UvL,_.Lh);
var oNE=function(g){var u,q,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F,V,z,O,W,x,k,LZ,sb;_.D(function(Rm){if(Rm.nextAddress==1)return Rm.yield(g.JSC$21355_watchApi.playerApi,2);u=Rm.yieldResult;q=g.JSC$21355_watchApi.getWatchNextResponse();E=(Q=q)==null?void 0:(L=Q.playerOverlays)==null?void 0:L.playerOverlayRenderer;v=_.c((y=E)==null?void 0:y.fullscreenQuickActionsBar,_.NxZ);(f=(J=g).setQuickActionsViewModel)==null||f.call(J,v||{});v&&ggb(g,u);G=(t=E)==null?void 0:(e=t.videoDetails)==null?void 0:e.playerOverlayVideoDetailsRenderer;
(H=(R=g).setPlayerOverlayVideoDetailsRenderer)==null||H.call(R,G||{});G&&uLL(g,u);if(_.w("web_player_use_external_grid_component")){var M3=[],tT,mJ,hT,Yu,Mx=q==null?void 0:(tT=q.contents)==null?void 0:(mJ=tT.twoColumnWatchNextResults)==null?void 0:(hT=mJ.secondaryResults)==null?void 0:(Yu=hT.secondaryResults)==null?void 0:Yu.results;if(Mx)for(tT=_.N(Mx),mJ=tT.next();!mJ.done;mJ=tT.next())if(mJ=mJ.value,mJ.lockupViewModel)M3.push(mJ);else if(hT=void 0,(hT=mJ.itemSectionRenderer)==null?0:hT.contents)for(mJ=
_.N(mJ.itemSectionRenderer.contents),hT=mJ.next();!hT.done;hT=mJ.next())hT=hT.value,hT.lockupViewModel&&M3.push(hT);l=M3;(F=(d=g).setLockupViewModels)==null||F.call(d,l||[]);qlt(g,u)}z=_.c((V=E)==null?void 0:V.commentsButton,_.cF);(W=(O=g).setCommentsButton)==null||W.call(O,z||{});z&&QiL(g,u);k=_.c((x=E)==null?void 0:x.descriptionButton,_.Rn);(sb=(LZ=g).setDescriptionButton)==null||sb.call(LZ,k||{});k&&LQL(g,u);_.Wx(Rm)})},ggb=function(g,u){if(!g.quickActionButtonsContainer)if(u.setFullscreenQuickActions){g.quickActionButtonsContainer=
document.createElement("div");
u.setFullscreenQuickActions(g.quickActionButtonsContainer);var q=function(){return g.quickActionsViewModel().quickActionButtons||[]},Q=_.ZY(g.quickActionButtonsContainer,function(){return _.p(SXZ,{data:q})},"ck");
g.addOnDisposeCallback(function(){u.setFullscreenQuickActions(void 0);Q()})}else _.Io(new _.Ji("setFullscreenQuickActions not defined",{playerApi:Object.keys(u),
isReady:u.isReady(),appState:u.getAppState()}))},uLL=function(g,u){if(!g.playerOverlayVideoDetailsRendererContainer)if(u.setPlayerOverlayVideoDetailsRenderer){g.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
u.setPlayerOverlayVideoDetailsRenderer(g.playerOverlayVideoDetailsRendererContainer);var q=_.ZY(g.playerOverlayVideoDetailsRendererContainer,function(){return _.p(k5n,{data:g.playerOverlayVideoDetailsRenderer})},"dk");
g.addOnDisposeCallback(function(){u.setPlayerOverlayVideoDetailsRenderer(void 0);q()})}else _.Io(new _.Ji("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(u),
isReady:u.isReady(),appState:u.getAppState()}))},qlt=function(g,u){if(!g.gridRendererContainer)if(u.setFullscreenGrid){g.gridRendererContainer=document.createElement("div");
u.setFullscreenGrid(g.gridRendererContainer);var q=_.ZY(g.gridRendererContainer,function(){return _.p(nNL,{data:g.lockupViewModels})},"ek");
g.addOnDisposeCallback(function(){u.setFullscreenGrid(void 0);q()})}else _.Io(new _.Ji("setFullscreenGrid not defined",{playerApi:Object.keys(u),
isReady:u.isReady(),appState:u.getAppState()}))},QiL=function(g,u){if(!g.commentsButtonContainer)if(u.setCommentsButton){g.commentsButtonContainer=document.createElement("div");
u.setCommentsButton(g.commentsButtonContainer);var q=_.ZY(g.commentsButtonContainer,function(){return _.p(_.E6,{data:g.commentsButton})},"fk");
g.addOnDisposeCallback(function(){u.setCommentsButton(void 0);q()})}else _.Io(new _.Ji("setCommentsButton not defined",{playerApi:Object.keys(u),
isReady:u.isReady(),appState:u.getAppState()}))},LQL=function(g,u){if(!g.descriptionButtonContainer)if(u.setDescriptionButton){g.descriptionButtonContainer=document.createElement("div");
u.setDescriptionButton(g.descriptionButtonContainer);var q=_.ZY(g.descriptionButtonContainer,function(){return _.p(_.TT,{data:g.descriptionButton})},"gk");
g.addOnDisposeCallback(function(){u.setDescriptionButton(void 0);q()})}else _.Io(new _.Ji("setDescriptionButton not defined",{playerApi:Object.keys(u),
isReady:u.isReady(),appState:u.getAppState()}))};var MC=function(g){_.Lh.call(this);var u=this;this.JSC$21361_watchApi=g;this.JSC$21361_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;g=_.qG(_.bR(),_.pe,function(q){u.onFullscreenChanged(q)});
this.addOnDisposeCallback(g);g=_.qG(_.bR(),Br,function(q){u.onWatchScroll(q)});
this.addOnDisposeCallback(g);_.w("kevlar_watch_while_v2")&&(g=_.qG(_.bR(),_.jb,function(q){Egh(u,q)}),this.addOnDisposeCallback(g));
Pzz(this);Nlt(this);siC();this.onWatchScroll(Br(_.bR().getState()));_.mW("START_IN_FULL_WINDOW_MODE")&&this.JSC$21361_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.A(MC,_.Lh);var Pzz=function(g){g.JSC$21361_watchApi.registerActionHandler("yt-fullscreen-change-action",function(u){var q=g.JSC$21361_watchApi.isActive();u&&!q||_.bR().dispatch(_.rF({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!u}}))});
g.addOnDisposeCallback(function(){g.JSC$21361_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},Nlt=function(g){var u,q;
_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21361_watchApi.playerApi,2);u=Q.yieldResult;q=function(){g.onFullerscreenEduClicked()};
u.addEventListener("onFullerscreenEduClicked",q);g.addOnDisposeCallback(function(){u.removeEventListener("onFullerscreenEduClicked",q)});
_.Wx(Q)})};
MC.prototype.onFullscreenChanged=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return u.isFullscreen=!!_.b1(),Q.yield(u.JSC$21361_watchApi.playerApi,2);q=Q.yieldResult;u.JSC$21361_miniplayerActive||q.setFauxFullscreen(u.isFullscreen);if(g&&(u.JSC$21361_watchApi.focusOnPlayer(),!u.fullerscreenEduButtonShownThisPlayback)){u.fullerscreenEduButtonShownThisPlayback=!0;var L=_.P9("yt-fullerscreen-edu-button-shown-count")||0;_.Ex("yt-fullerscreen-edu-button-shown-count",L+1,31536E3);
u.updateFullerscreenEduButtonSubtleModeState()}_.Wx(Q)})};
var Egh=function(g,u){var q;_.D(function(Q){if(Q.nextAddress==1)return g.JSC$21361_miniplayerActive=u,Q.yield(g.JSC$21361_watchApi.playerApi,2);q=Q.yieldResult;q.setFauxFullscreen(!g.JSC$21361_miniplayerActive&&g.isFullscreen);_.Wx(Q)})};
MC.prototype.onWatchScroll=function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1)return _.w("external_fullscreen_with_edu")?L.yield(u.JSC$21361_watchApi.playerApi,2):L.return();q=L.yieldResult;Q=g<=0;u.shouldShowFullerscreenEdu!==Q&&(u.shouldShowFullerscreenEdu=Q,q.updateFullerscreenEduButtonVisibility(!u.shouldShowFullerscreenEdu));_.Wx(L)})};
MC.prototype.onFullerscreenEduClicked=function(){this.JSC$21361_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var g=_.P9("yt-fullerscreen-edu-button-click-count")||0;_.Ex("yt-fullerscreen-edu-button-click-count",g+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
MC.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var g=this,u,q,Q,L,E,y;return _.D(function(v){if(v.nextAddress==1)return u=_.P9("yt-fullerscreen-edu-button-click-count")||0,q=_.P9("yt-fullerscreen-edu-button-shown-count")||0,Q=_.S8("external_fullscreen_button_click_threshold"),L=_.S8("external_fullscreen_button_shown_threshold"),E=u>=Q||q>=L,v.yield(g.JSC$21361_watchApi.playerApi,2);y=v.yieldResult;y.updateFullerscreenEduButtonSubtleModeState(E);_.Wx(v)})};
MC.prototype.disposeInternal=function(){_.Lh.prototype.disposeInternal.call(this);var g=_.b1();_.w("kevlar_exit_fullscreen_leaving_watch")&&g&&_.dw(g)};
var siC=function(){if(_.w("web_watch_add_viewport_meta_tag")){var g=document.querySelector("meta[name=viewport]"),u=document.head;u&&!g&&(g=document.createElement("meta"),g.name="viewport",g.content="width=device-width, initial-scale=1.0, viewport-fit=cover",u.appendChild(g))}};var vgZ=function(g){_.Lh.call(this);var u=this;this.JSC$21364_watchApi=g;this.jobId=0;this.pendingRequestId=void 0;var q=this.JSC$21364_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yvz(u)});
this.addOnDisposeCallback(function(){u.JSC$21364_watchApi.unsubscribeByKey(q)});
yvz(this)};
_.A(vgZ,_.Lh);var Dhx=function(g){_.Hv.cancelJob(g.jobId);g.pendingRequestId=void 0},yvz=function(g){Dhx(g);
var u=RBh(g.JSC$21364_watchApi.getWatchNextResponse());if(u){var q=250,Q,L=(Q=_.c(u,_.s_i))==null?void 0:Q.initialDelayMs;_.w("web_watch_updated_metadata_server_initial_delay")&&L&&(q=L);g.jobId=_.Hv.addLowPriorityJob(function(){return g.fetchUpdatedMetadata(u)},q)}};
vgZ.prototype.fetchUpdatedMetadata=function(g,u){var q=this,Q,L,E,y,v,J,f,t,e,G,R,H,l,d,F;return _.D(function(V){switch(V.nextAddress){case 1:u&&(Q={continuation:u});if(!_.w("web_get_updated_metadata_fantasy_panel_continuation_params")){V.jumpTo(2);break}L=_.Bk().resolve(_.yH);E="PAsports_fantasy";return V.yield(L.isVisible(E,!0),3);case 3:V.yieldResult&&(f=(v=(y=L).getUpdatePanelContinuationData)==null?void 0:(J=v.call(y,E))==null?void 0:J.updatePanelContinuationRequest)&&(Q||(Q={}),Q.clientParams=
{panelContinuationParams:{panelContinuation:f}});case 2:t=_.Bk().resolve(_.QY);if(!t)return _.Zf(Error("Tl")),V.return();e={};q.pendingRequestId=e;return V.yield(_.ce(t,g,Q),4);case 4:G=V.yieldResult;if(e!==q.pendingRequestId)return V.return();l=(R=G)==null?void 0:(H=R.continuation)==null?void 0:H.timedContinuationData;((d=l)==null?0:d.continuation)&&((F=l)==null?0:F.timeoutMs)&&(q.jobId=_.Hv.addLowPriorityJob(function(){return q.fetchUpdatedMetadata(g,l.continuation)},l.timeoutMs));
_.Wx(V)}})};
vgZ.prototype.disposeInternal=function(){_.Lh.prototype.disposeInternal.call(this);Dhx(this)};var pA9=_.r(function(g){var u=_.YH(function(){var Q=g.data().videoId;if(g.active())Q=_.m7(Q),_.Bk().resolve(_.Gy).resolveCommand(Q);else{var L=g.playerApi(),E=L.getAvailableAudioTracks(),y,v,J=(y=g.sourceVideoConfig().audioTracks)==null?void 0:(v=y.find(function(f){return f.isDefaultForSource}))==null?void 0:v.id;
if(E=E.find(function(f){return f.getLanguageInfo().getId()===J}))L.setAudioTrack(E,!0),L.setCompositeParam({activeVideoId:Q}),g.setActiveSourceId(Q)}}),q={};
return _.p("ytw-composite-source-video-overlay",{class:_.Ty("ytwCompositeSourceVideoOverlayHost",(q.ytwCompositeSourceVideoOverlayActive=g.active,q.ytwCompositeSourceVideoOverlayInteracting=g.interacting,q)),style:_.xH({left:function(){var Q;return((Q=g.data().topLeftCornerX)!=null?Q:0)*100+"%"},
top:function(){var Q;return((Q=g.data().topLeftCornerY)!=null?Q:0)*100+"%"},
width:function(){var Q;return((Q=g.data().width)!=null?Q:0)*100+"%"},
height:function(){var Q;return((Q=g.data().height)!=null?Q:0)*100+"%"}}),
"on:click":u},_.p("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"hk");var Jvn=_.r(function(g){var u=_.N(_.mX(function(){var y,v=(y=g.data().sources)==null?void 0:y.find(function(J){return J.isActive});
if(v)return v.videoId})),q=u.next().value,Q=u.next().value;
u=_.N(_.jR(!1,void 0,"rmRJ8d"));var L=u.next().value,E=u.next().value;return _.p("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.YH(function(){E(!0)}),
"on:mouseout":_.YH(function(){E(!1)})},_.p(_.M,{cond:function(){return g.data().sources},
then:function(y){return _.p(_.R4,{each:y},function(v){return _.p(pA9,{data:v,active:function(){return v.videoId===q()},
setActiveSourceId:Q,interacting:L,playerApi:g.playerApi,sourceVideoConfig:function(){return wKp(g.compositeVideoConfig(),v.videoId)}})})}}))},"ik");var MSK=function(g){_.Lh.call(this);this.JSC$21379_watchApi=g;g=_.N(_.jR({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=g.next().value;this.setCompositeVideoOverlayRenderer=g.next().value;g=_.N(_.jR({},void 0,"OlaJpc"));this.compositeVideoConfig=g.next().value;this.setCompositeVideoConfig=g.next().value;jif(this);fZh(this)};
_.A(MSK,_.Lh);var jif=function(g){var u=g.JSC$21379_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){fZh(g)});
g.addOnDisposeCallback(function(){g.JSC$21379_watchApi.unsubscribeByKey(u)})},tSL=function(g){var u;
return _.D(function(q){if(q.nextAddress==1)return q.yield(g.JSC$21379_watchApi.playerApi,2);u=q.yieldResult;u.setCompositeVideoOverlayRendererComponent(g.container);_.Wx(q)})},ebC=function(g){var u;
return _.D(function(q){if(q.nextAddress==1)return q.yield(g.JSC$21379_watchApi.playerApi,2);u=q.yieldResult;u.setCompositeVideoOverlayRendererComponent(void 0);_.Wx(q)})},GqK=function(g){var u,q;
return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21379_watchApi.playerApi,2);u=Q.yieldResult;g.container=document.createElement("div");q=_.ZY(g.container,function(){return _.p(Jvn,{data:g.compositeVideoOverlayRenderer,compositeVideoConfig:g.compositeVideoConfig,playerApi:u})},"jk");
g.addOnDisposeCallback(q);_.Wx(Q)})},fZh=function(g){var u,q,Q,L,E,y,v,J;
_.D(function(f){return f.nextAddress==1?(u=g.JSC$21379_watchApi.getPlayerResponse(),E=_.c((q=u)==null?void 0:(Q=q.overlay)==null?void 0:(L=Q.playerControlsOverlayRenderer)==null?void 0:L.compositeVideoOverlay,vEt),J=(y=u)==null?void 0:(v=y.playerConfig)==null?void 0:v.compositeVideoConfig,E&&g.setCompositeVideoOverlayRenderer(E),J&&g.setCompositeVideoConfig(J),E&&J?g.container?f.jumpTo(6):f.yield(GqK(g),6):$ht(g)?f.yield(ebC(g),0):f.jumpTo(0)):$ht(g)?f.jumpTo(0):f.yield(tSL(g),0)})},$ht=function(g){var u;
return!((u=g.container)==null||!u.parentElement)};
MSK.prototype.disposeInternal=function(){$ht(this)&&ebC(this);_.Lh.prototype.disposeInternal.call(this)};var Avp=function(g){_.Lh.call(this);var u=this;this.JSC$21385_watchApi=g;var q=this.JSC$21385_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var Q=u.JSC$21385_watchApi.getPlayerResponse();if(Q){var L,E;if(Q=_.c((L=Q.endscreen)==null?void 0:(E=L.endscreenRenderer)==null?void 0:E.hideButton,_.cF)){var y;(y=u.setEndscreenHideButton)==null||y.call(u,Q);Rbx(u)}}});
this.addOnDisposeCallback(function(){u.JSC$21385_watchApi.unsubscribeByKey(q)});
g=_.N(_.jR({},void 0,"ER3tqb"));this.endscreenHideButton=g.next().value;this.setEndscreenHideButton=g.next().value;wAE(this);cvt(this);HxC(this)};
_.A(Avp,_.Lh);var Rbx=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return g.creatorEndscreenHideButtonContainer?Q.return():Q.yield(g.JSC$21385_watchApi.playerApi,2);u=Q.yieldResult;g.creatorEndscreenHideButtonContainer=document.createElement("div");_.TQ(g.creatorEndscreenHideButtonContainer,!1);u.setCreatorEndscreenHideButton(g.creatorEndscreenHideButtonContainer);q=_.ZY(g.creatorEndscreenHideButtonContainer,function(){return _.p(_.E6,{data:g.endscreenHideButton,useOutlinedIcon:!0})},"kk");
g.addOnDisposeCallback(function(){q();var L;(L=u)==null||L.setCreatorEndscreenHideButton(void 0)});
_.Wx(Q)})},wAE=function(g){var u,q;
_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21385_watchApi.playerApi,2);u=Q.yieldResult;q=function(){g.creatorEndscreenHideButtonContainer&&_.TQ(g.creatorEndscreenHideButtonContainer,!0)};
u.addEventListener("endscreenelementshown",q);g.addOnDisposeCallback(function(){var L;(L=u)==null||L.removeEventListener("endscreenelementshown",q)});
_.Wx(Q)})},cvt=function(g){var u=function(){g.creatorEndscreenHideButtonContainer&&_.TQ(g.creatorEndscreenHideButtonContainer,!1)},q=g.JSC$21385_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",u),Q=g.JSC$21385_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",u);
g.addOnDisposeCallback(function(){g.JSC$21385_watchApi.unsubscribeByKey(q);g.JSC$21385_watchApi.unsubscribeByKey(Q)})},HxC=function(g){g.JSC$21385_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(u){var q=_.c(u,moH);
g.JSC$21385_watchApi.playerApi.then(function(Q){Q==null||Q.setCreatorEndscreenVisibility(!!q.hide)})});
g.addOnDisposeCallback(function(){g.JSC$21385_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var lZh=function(g){_.Lh.call(this);this.JSC$21391_watchApi=g;Zxp(this)};
_.A(lZh,_.Lh);var Zxp=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21391_watchApi.playerApi,2);u=Q.yieldResult;q=function(L){_.bR().dispatch(_.rF({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:L}}))};
u.addEventListener("onRetroModeChanged",q);g.addOnDisposeCallback(function(){u.removeEventListener("onRetroModeChanged",q)});
_.Wx(Q)})};var CAh=0,Uu=0,dBt=0;var IZh=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),tl=function(g){_.Lh.call(this);this.JSC$21408_watchApi=g;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;ixC(this)};
_.A(tl,_.Lh);
var ixC=function(g){var u,q,Q;_.D(function(L){if(L.nextAddress==1)return L.yield(g.JSC$21408_watchApi.playerApi,2);u=L.yieldResult;if(g.isDisposed())return L.return();g.sessionStorage=_.yi9("yt-sleep-timer");g.sessionStorage||_.Io(new _.Ji("SessionStorage for Sleep Timer is undefined."));((q=g.sessionStorage)==null?void 0:q.get("yt-sleep-timer"))==="true"&&(agL(),(Q=g.sessionStorage)==null||Q.remove("yt-sleep-timer"),u.syncVolume());Czn(g,u);bxz(g,u);dhn(g,u);_.Wx(L)})},Czn=function(g,u){var q=function(f){g.onSleepTimerSettingsChanged(f,
u)},Q=function(f){g.onPlayerStateChange(f,u)},L=function(){g.onLoopChange(u)},E=function(){g.onCloseMiniplayer(u)},y=function(){iTx(u,(0,_.n0)(),VUz(u),g.selectedOption==="End of video",u.getPlayerState()!==1)},v=function(){g.onSeekComplete(u)},J=function(){_.Hv.cancelJob(Uu);
var f=u.getCurrentTime()>=u.getDuration(),t=g.selectedOption==="End of video"||g.selectedOption==="End of playlist"&&!ZTf(g.playlistId);f&&t&&FQh(g,u)};
u.addEventListener("onSleepTimerSettingsChanged",q);u.addEventListener("onLoopChange",L);u.addEventListener("onLoopRangeChange",L);u.addEventListener("onStateChange",Q);u.addEventListener("onCloseMiniplayer",E);u.addEventListener("onSleepTimerFeatureAvailable",y);u.addEventListener("SEEK_COMPLETE",v);u.addEventListener("onAdStart",J);g.addOnDisposeCallback(function(){u.removeEventListener("onSleepTimerSettingsChanged",q);u.removeEventListener("onLoopChange",L);u.removeEventListener("onLoopRangeChange",
L);u.removeEventListener("onStateChange",Q);u.removeEventListener("onCloseMiniplayer",E);u.removeEventListener("onSleepTimerFeatureAvailable",y);u.removeEventListener("SEEK_COMPLETE",v);u.removeEventListener("onAdStart",J)})},bxz=function(g,u){var q=g.JSC$21408_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var Q=u.getVideoData().video_id,L,E=(L=HTn(g.JSC$21408_watchApi))==null?void 0:L.playlistId;
g.pauseAutonavPlayback&&(u.pauseVideo(),u.syncVolume(),g.pauseAutonavPlayback=!1);if(g.selectedOption==="End of video"&&Q!==g.videoId)eq(g,u);else{if(g.selectedOption==="End of playlist"){L=ZTf(g.playlistId);if(E!==g.playlistId){eq(g,u);break a}L?L&&mhZ(g,u):aZx(g,u)}g.videoId=Q;g.playlistId=E}}});
g.addOnDisposeCallback(function(){g.JSC$21408_watchApi.unsubscribeByKey(q)})},dhn=function(g,u){var q=_.Bk().resolve(_.Ja),Q=_.qG(q,_.ROk,function(E){E&&g.selectedOption!=="Off"&&eq(g,u)}),L=g.JSC$21408_watchApi.subscribeToActiveChanged(function(E){var y,v;
return _.D(function(J){if(J.nextAddress==1)return J.yield(_.Uw().navigationFinishPromise,2);y=!_.II2();v=_.Bk().resolve(_.RO).isMiniplayerActive();E||!cLE(g.selectedOption)||v||y||eq(g,u);_.Wx(J)})},!1);
q=_.qG(q,function(E){return E.entities.playlistLoopStateEntity||{}},function(E){E=E===void 0?{}:E;
var y=ALH(g.JSC$21408_watchApi);if(y){var v;((v=E[y])==null?void 0:v.state)==="PLAYLIST_LOOP_STATE_ALL"&&cLE(g.selectedOption)&&eq(g,u)}});
g.addOnDisposeCallback(Q);g.addOnDisposeCallback(q);g.addOnDisposeCallback(L)};
tl.prototype.onSleepTimerSettingsChanged=function(g,u){switch(g){case "Off":this.selectedOption!=="Off"&&eq(this,u);break;case "End of video":case "End of playlist":VSt(this,g,u);break;default:VSt(this,g,u,IZh.get(g))}};
tl.prototype.onLoopChange=function(g){(g.getLoopVideo()||g.getLoopRange())&&cLE(this.selectedOption)&&eq(this,g)};
tl.prototype.onCloseMiniplayer=function(g){cLE(this.selectedOption)&&eq(this,g)};
var VSt=function(g,u,q,Q){XAK(g,q);g.selectedOption=u;g.videoId=q.getVideoData().video_id;g.playlistId="";var L;(L=g.sessionStorage)==null||L.set("yt-sleep-timer","true");g.adjustmentsCount++;iTx(q,(0,_.n0)(),VUz(q),g.selectedOption==="End of video");if(g.selectedOption==="End of video")aZx(g,q),rvt(g,q);else if(g.selectedOption==="End of playlist"){rvt(g,q);var E,y;g.playlistId=(y=(E=HTn(g.JSC$21408_watchApi))==null?void 0:E.playlistId)!=null?y:"";ZTf(g.playlistId)||aZx(g,q)}else Q&&(g.presetFadeSchedulerId=
_.Ln(_.Hv,function(){F3h(q,15E3)},Q-15E3),g.presetPauseSchedulerId=_.Ln(_.Hv,function(){FQh(g,q)},Q),bTZ(q,(0,_.n0)(),Q))},FQh=function(g,u){if(g.JSC$21408_watchApi.isActive()){var q={dismissDialogEndpoint:{}};
var Q={commandExecutorCommand:{commands:[q,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};q={buttonViewModel:{title:_.Ug("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:q}}};Q={buttonViewModel:{title:_.Ug("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Q}}};var L={dialogHeaderViewModel:{headline:{content:_.Ug("SLEEP_TIMER_ENDED_TITLE")}}},
E={basicContentViewModel:{paragraphs:[{text:{content:_.Ug("SLEEP_TIMER_ENDED_TEXT")}}]}};q={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:L,content:E,footer:{panelFooterViewModel:{primaryButton:q,secondaryButton:Q,shouldHideDivider:!0}}}}}}};_.Bk().resolve(_.Gy).resolveCommand(q,{form:{element:g}})}else agL();WQb(g,!1);Tlh(g,u);u.pauseVideo();_.mB.getInstance().getState()===2&&u.getPlayerState()===5&&(g.pauseAutonavPlayback=!0)},eq=function(g,u){WQb(g,!0);
Tlh(g,u);agL()},Tlh=function(g,u){XAK(g,u);
g.selectedOption="Off";g.videoId="";g.playlistId="";g.adjustmentsCount=0;var q;(q=g.sessionStorage)==null||q.remove("yt-sleep-timer");_.Hv.cancelJob(CAh);u.resetSleepTimerMenuSettings()},WQb=function(g,u){u={timer_length_adjustment_times_during_session:g.adjustmentsCount-1,
is_session_cancelled:u};switch(g.selectedOption){case "Off":u.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":u.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":u.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:u.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",u.option_duration_in_minutes=IZh.get(g.selectedOption)/6E4}_.H6("sleepTimerSessionFinishEvent",u)};
tl.prototype.onPlayerStateChange=function(g,u){g===1?iTx(u,(0,_.n0)(),VUz(u),this.selectedOption==="End of video"):g===0?(_.Hv.cancelJob(Uu),u.setVideoTimeLeft(Igb(0,0))):g===2&&_.Hv.cancelJob(Uu);this.selectedOption==="End of video"?g===0?FQh(this,u):g===2&&mBh(u):this.selectedOption!=="End of playlist"||ZTf(this.playlistId)||(g===0?FQh(this,u):g===2&&mBh(u))};
tl.prototype.onSeekComplete=function(g){g.getPlayerState()===2&&iTx(g,(0,_.n0)(),VUz(g),this.selectedOption==="End of video",!0)};
tl.prototype.onCueRangeEnter=function(g,u){g==="sleep-timer-fade-audio"&&F3h(u,(u.getDuration()-u.getProgressState().current)*1E3)};
tl.prototype.onCueRangeExit=function(g,u){g==="sleep-timer-fade-audio"&&u.getPlayerState()!==0&&mBh(u,!0)};
var aZx=function(g,u){u.addCueRange("sleep-timer-fade-audio",u.getDuration()-15,u.getDuration());u.addEventListener("onCueRangeEnter",function(q){g.onCueRangeEnter(q,u)});
u.addEventListener("onCueRangeExit",function(q){g.onCueRangeExit(q,u)})},mhZ=function(g,u){u.removeCueRange("sleep-timer-fade-audio");
u.removeEventListener("onCueRangeEnter",function(q){g.onCueRangeEnter(q,u)});
u.removeEventListener("onCueRangeExit",function(q){g.onCueRangeExit(q,u)})},XAK=function(g,u){cLE(g.selectedOption)?mhZ(g,u):(_.Hv.cancelJob(g.presetPauseSchedulerId),_.Hv.cancelJob(g.presetFadeSchedulerId),g.presetPauseSchedulerId=0,g.presetFadeSchedulerId=0);
mBh(u,!0)},rvt=function(g,u){u.setLoop(!1);
u.setLoopVideo(!1);u.setLoopRange(null);(g=ALH(g.JSC$21408_watchApi))&&_.Bk().resolve(_.Ja).dispatch(_.u2("playlistLoopStateEntity",g,{key:g,state:"PLAYLIST_LOOP_STATE_NONE"}))};var xhh=function(g){_.Lh.call(this);var u=this;this.JSC$21411_watchApi=g;_.w("web_watch_force_start_in_theater_mode")&&hbp(this,!0,!1);YlZ(this);Oxh(this);KQL(this);var q=this.JSC$21411_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.S8("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.sk.get("wide",void 0)==="1"&&_.yW("wide","1",_.S8("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){u.JSC$21411_watchApi.unsubscribeByKey(q)});
g=g.getRoot();if(g.is==="ytd-watch-flexy"||g.is==="ytd-watch-grid")g.onTheaterReduxValueUpdate(this.getState());this.getState()&&j7p();_.w("web_watch_log_theater_mode_cookie_state")&&_.sk.get("wide","0")==="1"&&_.T3f("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.A(xhh,_.Lh);var YlZ=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21411_watchApi.playerApi,2);u=Q.yieldResult;q=function(L){hbp(g,!!L)};
u.addEventListener("SIZE_CLICKED",q);g.addOnDisposeCallback(function(){u.removeEventListener("SIZE_CLICKED",q)});
_.Wx(Q)})},Oxh=function(g){g.JSC$21411_watchApi.registerActionHandler("yt-toggle-theater-mode",function(u,q){hbp(g,u,q===void 0?!0:q)});
g.addOnDisposeCallback(function(){g.JSC$21411_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
xhh.prototype.getState=function(){return _.Dc(_.bR().getState())};
var hbp=function(g,u,q){q=q===void 0?!0:q;var Q,L,E,y=_.w("enable_player_resize_transition")&&!!g.JSC$21411_watchApi.getWatchNextResponse()&&!((Q=g.JSC$21411_watchApi.getWatchNextResponse())==null?0:(L=Q.contents)==null?0:(E=L.twoColumnWatchNextResults)==null?0:E.conversationBar);P6z(function(){_.bR().dispatch(_.rF({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:u}}));_.w("theater_mode_scroll_to_top_killswitch")||g.JSC$21411_watchApi.scrollWatchTo(0,!1);_.b1()&&_.w("external_fullscreen")&&_.dw(document.documentElement);
KQL(g);q&&_.yW("wide",u?"1":"0",_.S8("theater_mode_cookie_max_age_seconds",-1));_.YJ(g.JSC$21411_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);g.JSC$21411_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:u});u&&j7p()},{shouldWrap:y})},KQL=function(g){var u;
_.D(function(q){if(q.nextAddress==1)return q.yield(g.JSC$21411_watchApi.playerApi,2);u=q.yieldResult;u.setSizeStyle(!0,g.getState());_.Wx(q)})};var ngt=function(g){_.Lh.call(this);var u=this;this.playerApi=g;this.timeToPanelSyncKeyMap={};var q;if(g==null?0:(q=g.isReady)==null?0:q.call(g)){q=_.qG(_.Bk().resolve(_.Ja),function(L){return L.entities.timedMarkersListSyncEntity||{}},function(L,E){L=L===void 0?{}:L;
E=E===void 0?{}:E;for(var y=_.N(Object.keys(E)),v=y.next();!v.done;v=y.next())v=v.value,L[v]!==E[v]&&Blb(u,E[v]);E=_.N(Object.keys(L));for(y=E.next();!y.done;y=E.next())y=y.value,v=L[y],u.timeToPanelSyncKeyMap[y]&&zbC(u,v)});
this.addOnDisposeCallback(q);var Q=function(L){u.onCueRangeEnter(L)};
g.addEventListener("onCueRangeEnter",Q);this.addOnDisposeCallback(function(){var L;(L=g.removeEventListener)==null||L.call(g,"onCueRangeEnter",Q)})}};
_.A(ngt,_.Lh);
var zbC=function(g,u){var q,Q;if((q=g.playerApi)==null?0:(Q=q.isReady)==null?0:Q.call(q)){var L;if((q=u==null?void 0:(L=u.timedListData)==null?void 0:L.sections)&&u!=null&&u.key)for(L=_.N(q),q=L.next();!q.done;q=L.next())if(q=q.value,q.timedSyncDataList&&q.sectionId)for(Q=0;Q<q.timedSyncDataList.length;Q++){var E=q.timedSyncDataList[Q];E.syncItemId&&g.playerApi.addCueRange(q.sectionId+"_"+u.key+"_"+E.syncItemId,Number(E.videoTimeMs)/1E3,Q===q.timedSyncDataList.length-1?0x8000000000000:Number(q.timedSyncDataList[Q+
1].videoTimeMs)/1E3)}}},Blb=function(g,u){var q,Q;
if((q=g.playerApi)==null?0:(Q=q.isReady)==null?0:Q.call(q)){var L;if((q=u==null?void 0:(L=u.timedListData)==null?void 0:L.sections)&&u!=null&&u.key)for(L=_.N(q),q=L.next();!q.done;q=L.next())if(q=q.value,q.timedSyncDataList&&q.sectionId){Q=_.N(q.timedSyncDataList);for(var E=Q.next();!E.done;E=Q.next())E=E.value,E.syncItemId&&g.playerApi.removeCueRange(q.sectionId+"_"+u.key+"_"+E.syncItemId)}}};
ngt.prototype.onCueRangeEnter=function(g){for(var u=_.N(Object.keys(this.timeToPanelSyncKeyMap)),q=u.next();!q.done;q=u.next()){q=q.value;var Q=_.N(g.split("_"+q+"_")),L=Q.next().value;Q=Q.next().value;if(L&&Q){g=_.Bk().resolve(_.Ja);u=this.timeToPanelSyncKeyMap[q];var E=_.Ilq(g.getState(),u);q=kqK(q,L,Q);if(q===-1)break;q={activeSyncId:Q,activeItemIndex:q,activeSectionInfo:{sectionIdentifier:L}};E?g.dispatch(_.JZ("markersEngagementPanelSyncEntity",u,q)):g.dispatch(_.u2("markersEngagementPanelSyncEntity",
u,Object.assign({},{key:u},q)));break}}};
var kqK=function(g,u,q){var Q=_.Bk().resolve(_.Ja),L,E;g=(L=kzh(Q.getState(),g))==null?void 0:(E=L.timedListData)==null?void 0:E.sections;if(!g)return-1;L=0;E=_.N(g);for(g=E.next();!g.done;g=E.next()){g=g.value;Q=g.timedSyncDataList||[];if(g.sectionId===u)return u=Q.findIndex(function(y){return y.syncItemId===q}),u===-1?u:L+u;
L+=Q.length}return-1};var Uhp=function(g){_.Lh.call(this);var u=this;this.JSC$21425_watchApi=g;this.unresolvedCommands=[];this.JSC$21425_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(q){SlK(u,q)});
this.addOnDisposeCallback(function(){u.JSC$21425_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
ogL(this)};
_.A(Uhp,_.Lh);var ogL=function(g){var u;_.D(function(q){if(q.nextAddress==1)return q.yield(g.JSC$21425_watchApi.playerApi,2);u=q.yieldResult;if(g.isDisposed())return q.return();g.timedSyncObserver=new ngt(u);g.unresolvedCommands.length&&(g.unresolvedCommands.forEach(function(Q){return SlK(g,Q)}),g.unresolvedCommands=[]);
_.z$(g,g.timedSyncObserver);_.Wx(q)})},SlK=function(g,u){if(g.timedSyncObserver){var q=_.c(u,WDH);
if(q&&q.timedSyncEntityKey&&q.panelSyncEntityKey){g=g.timedSyncObserver;u=q.timedSyncEntityKey;var Q=q.panelSyncEntityKey;q=!!q.isEnabled;q=q===void 0?!0:q;var L=_.Bk().resolve(_.Ja);L=kzh(L.getState(),u);q?g.timeToPanelSyncKeyMap[u]||(g.timeToPanelSyncKeyMap[u]=Q,zbC(g,L)):(delete g.timeToPanelSyncKeyMap[u],Blb(g,L))}}else g.unresolvedCommands.push(u)};var gW9=_.r(function(g){var u=g.data,q=g.maybeLogSmartSkipClientData,Q=null,L=null,E=_.w("web_enable_auto_focus_for_timely_action_button"),y=function(){Q=document.activeElement},v=function(){u().smartSkipMetadata&&(Q=document.activeElement,_.jKb(function(){return L}))},J=function(t){if(u().smartSkipMetadata&&(!t||t.key!=="Enter")){Q&&Q.isConnected&&(_.jKb(function(){return Q}),Q=null);
var e;(e=L)==null||e.blur()}};
g=_.YH(function(){q==null||q(!0,u());return!1});
var f=_.lF(_.J7(function(){return u().rendererContext},{onTap:function(t,e){e({disableClickTracking:!0})}}),_.x1({visibilityCallback:function(t){if(E)t?L&&u().smartSkipMetadata&&(v(),document.addEventListener("focusin",y)):(document.removeEventListener("focusin",y),J());
else if(t){t=_.D7(u().rendererContext);var e=Number(u().maxVisibleDurationMilliseconds),G,R=(G=_.c(u().rendererContext,_.L3))==null?void 0:G.label;t&&e&&R&&(G={label:R,command:t,durationMs:e},_.Bk().resolve(_.fg).enqueue(G))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.lL(function(){if(E){var t;if((L=(t=f.value)==null?void 0:t.querySelector("button"))&&u().smartSkipMetadata){var e;(e=f.value)==null||e.addEventListener("keydown",J)}}});
_.dB(function(){E&&(L&&u().smartSkipMetadata&&L.removeEventListener("keydown",J),document.removeEventListener("focusin",y),J())});
return _.p("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:f,"on:click":g},_.p(_.Up,{data:function(){return u().content}},{buttonViewModel:_.TT}))},"mk");var um9=_.r(function(g){var u=g.data,q=g.playerApi,Q=_.Bk().resolve(_.E$K);g=_.N(_.mX(function(){u()}));
var L=g.next().value,E=g.next().value,y=function(){return W3n(u(),L())},v=function(f,t){var e,G,R=(e=_.c(t==null?void 0:t.rendererContext,_.uF))==null?void 0:(G=e.loggingDirectives)==null?void 0:G.trackingParams;
if((t=t==null?void 0:t.smartSkipMetadata)&&t.loggingData&&(G=t.loggingData,t=G.algorithmId,e=G.startMilliseconds,G=G.endMilliseconds,t&&e!==void 0&&G!==void 0)){var H,l;f={smartSkipData:Object.assign({},{versionName:t,startMediaTimeMs:e,endMediaTimeMs:G},f&&{userInteractionMediaTimeMs:(Math.floor(((H=_.F0())==null?void 0:(l=H.getPlayer())==null?void 0:l.getCurrentTime())||0)*1E3).toString()})};H=_.j_();var d;R&&(d=_.Lr(R));H&&d&&_.CW(H,d,f)}},J=function(f,t){var e=W3n(u(),f);
if(e){var G=_.c(e,rLZ),R;if(R=t)R=q(),e=_.c(e,rLZ),R=e!=null&&e.smartSkipMetadata?!(R==null?0:R.isSameMarkerTypeVisible((e==null?void 0:e.smartSkipMetadata.markerKey)||"")):!0;if(R){var H,l;(G==null?0:(H=G.smartSkipMetadata)==null?0:(l=H.loggingData)==null?0:l.isCounterfactual)||(v(!1,G),E(f))}else t||L()!==f||E(void 0)}};
_.bX(function(){var f=u().timelyActions;if(f){f=_.N(f);for(var t=f.next();!t.done;t=f.next()){t=_.c(t.value,rLZ);var e=void 0;(e=t)!=null&&e.cueRangeId&&Q.timelyActionsMap.set(t.cueRangeId,J)}_.dB(function(){Q.timelyActionsMap.clear()})}},"l2RtC");
return _.p("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.p(_.Up,{data:y},{timelyActionViewModel:function(f){return _.p(gW9,{data:f.data,maybeLogSmartSkipClientData:function(){v(!0,_.c(y(),rLZ))}})}}))},"ok");var Q$L=function(g){_.Lh.call(this);this.JSC$21438_watchApi=g;g=_.N(_.jR({},void 0,"UN7k5e"));this.timelyActionsOverlay=g.next().value;this.setTimelyActionsOverlay=g.next().value;qDz(this)};
_.A(Q$L,_.Lh);var qDz=function(g){var u,q,Q,L;_.D(function(E){if(E.nextAddress==1)return LPn(g),EWn(g),g.timelyActionsContainer=document.createElement("div"),E.yield(g.JSC$21438_watchApi.playerApi,2);u=E.yieldResult;(Q=(q=u).insertTimelyActionUi)==null||Q.call(q,g.timelyActionsContainer);L=_.ZY(g.timelyActionsContainer,function(){return _.p(um9,{data:g.timelyActionsOverlay,playerApi:u})},"pk");
g.addOnDisposeCallback(L);_.Wx(E)})},EWn=function(g){var u=g.JSC$21438_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){LPn(g)});
g.addOnDisposeCallback(function(){g.JSC$21438_watchApi.unsubscribeByKey(u)})},LPn=function(g){var u=g.JSC$21438_watchApi.getWatchNextResponse();
if(u){var q,Q;if(u=_.c((q=u.playerOverlays)==null?void 0:(Q=q.playerOverlayRenderer)==null?void 0:Q.timelyActionsOverlayViewModel,YSh)){var L;(L=g.setTimelyActionsOverlay)==null||L.call(g,u)}}};var NDz=function(g){_.Lh.call(this);this.JSC$21442_watchApi=g;PIH(this)};
_.A(NDz,_.Lh);var PIH=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21442_watchApi.playerApi,2);u=Q.yieldResult;q=function(L){_.ze.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.c(L,UoE)},popupType:"TOAST"}})};
u.addEventListener("onYtShowToast",q);g.addOnDisposeCallback(function(){u.removeEventListener("onYtShowToast",q)});
_.Wx(Q)})};var s$L=function(g){var u=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.KU;this.element.addEventListener("load",function(){u.loaded=!0;u.resolver.resolve(u.element)});
this.element.addEventListener("error",function(){u.failed=!0});
this.element.src=g};var ylh=function(g,u){this.image=g;this.frame=u};
ylh.prototype.drawToCanvas=function(g,u){var q=this.frame.width/this.frame.columns,Q=this.frame.height/this.frame.rows,L=u.offsetX,E=u.offsetY;TTC(u)?(g.fillStyle=u.fullscreen?"#000":"#0f0f0f",g.fillRect(L,E,(u==null?void 0:u.width)||q,(u==null?void 0:u.height)||Q)):g.drawImage(this.image,this.frame.column*q,this.frame.row*Q,q,Q,L,E,(u==null?void 0:u.width)||q,(u==null?void 0:u.height)||Q)};
var vWb=function(g){this.color=g};
vWb.prototype.drawToCanvas=function(g,u){var q=u.offsetX,Q=u.offsetY,L=u.width,E=u.height;g.fillStyle=TTC(u)?u.fullscreen?"#000":"#0f0f0f":this.color;g.fillRect(q,Q,L,E)};var GD=function(g,u){HZ.call(this);this.playerApi=u;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.IW(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();DCt(this,g);pfH(this);this.update()};
_.A(GD,HZ);GD.prototype.addEventListeners=function(){var g=this,u=function(){g.update()},q=function(L){g.paused||(L.type==="newdata"&&(g.mosaics.clear(),JlH(g),$W(g)),pfH(g),g.update())},Q=function(){g.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",u);this.playerApi.addEventListener("onVideoDataChange",q);this.playerApi.addEventListener("onStateChange",Q);this.addOnDisposeCallback(function(){g.playerApi.removeEventListener("onVideoProgress",u);g.playerApi.removeEventListener("onVideoDataChange",q);g.playerApi.removeEventListener("onStateChange",Q)})};
var DCt=function(g,u){g.cinematicContainerRenderer!==u&&(g.cinematicContainerRenderer=u,JlH(g),$W(g),g.colorStoreUpdateJobId=_.Hv.addLowPriorityJob(function(){var q;if((q=g.cinematicContainerRenderer.colorStore)!=null&&q.sampledColors){q=Infinity;for(var Q=_.N(g.cinematicContainerRenderer.colorStore.sampledColors),L=Q.next();!L.done;L=Q.next()){L=L.value;var E=Number(L.key);E!==0&&E<q&&(q=E);E=_.jh(L.value);g.colorStore.set(L.key,E)}g.colorStoreTimeInterval=q}}))},JlH=function(g){g.colorStoreUpdateJobId&&
(_.Hv.cancelJob(g.colorStoreUpdateJobId),g.colorStoreUpdateJobId=void 0);
g.colorStore.clear();g.currentStoryboardColor=void 0},j$x=function(g,u){var q;
return(q=g.getStoryboardFrame(u))==null?void 0:q.url};
GD.prototype.onPlayerStateChange=function(){this.update()};
GD.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var pfH=function(g){var u=g.getStoryboardFrame(0);u&&(u=new _.IW(u.width/u.columns,u.height/u.rows),Rgf(g.currentStoryboardSize,u)||(g.currentStoryboardSize=u,g.publish("STORYBOARD_SIZE_CHANGED",g.currentStoryboardSize)))},fjt=function(g,u){g.currentStoryboardIndex=u;
g.pendingStoryboardIndex=NaN;u=g.getStoryboardFrame(g.currentStoryboardIndex);g.currentStoryboard=new ylh(g.mosaics.get(u.url).element,u);g.publish("STORYBOARD_CHANGED",g.currentStoryboard);g.lastUpdateTime=(0,_.n0)()};
GD.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var $W=function(g){g.currentStoryboardIndex=NaN;g.pendingStoryboardIndex=NaN;g.currentStoryboard&&(g.currentStoryboard=void 0,g.publish("STORYBOARD_CHANGED",void 0));g.lastUpdateTime=NaN};
GD.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)$W(this);else{var g=this.playerApi.getPlayerState(1);if(g===-1||g===5||g===0)$W(this);else if(isNaN(this.lastUpdateTime)||!((0,_.n0)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(g=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){g=""+Math.round(g*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var u=this.colorStore.get(g);u?u!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=u,this.currentStoryboard=new vWb(u),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.n0)()):(_.Io(new _.Ji("Could not find color for timestamp: "+g,this.cinematicContainerRenderer)),$W(this))}else $W(this);else MqK(this,g)}};
var MqK=function(g,u){var q=g.getStoryboardFrameIndex(u);if(q!==g.currentStoryboardIndex&&q!==g.pendingStoryboardIndex){u=j$x(g,q);var Q=g.mosaics.get(u);Q?Q.loaded&&fjt(g,q):(g.pendingStoryboardIndex=q,q=new s$L(u),g.mosaics.set(u,q),q.resolver.promise.then(function(){if(!g.isDisposed()&&!g.paused&&!isNaN(g.pendingStoryboardIndex)){var L=j$x(g,g.pendingStoryboardIndex);if(L){var E;(E=g.mosaics.get(L))!=null&&E.loaded&&fjt(g,g.pendingStoryboardIndex)}else $W(g)}}))}};
GD.prototype.getStoryboardFrameIndex=function(g){var u=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(g,u)};
GD.prototype.getStoryboardFrame=function(g){var u=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,q,Q;return((Q=(q=this.playerApi).getStoryboardFrame)==null?void 0:Q.call(q,g,u))||null};
GD.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var wD=function(g,u,q,Q){Q=Q===void 0?!1:Q;_.Lh.call(this);this.cinematicContainerRenderer=u;this.playerApi=q;this.theater=this.fullscreen=!1;var L;this.ambientLightThemeEnabled=!Q&&!!(u==null?0:(L=u.config)==null?0:L.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=Q)&&!0;this.container=document.createElement("div");g.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);tq9(this);this.backCanvas=
hBz();this.frontCanvas=hBz();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new GD(u,this.playerApi);_.z$(this,this.storyboardManager);this.addEventListeners();eob(this)?GDh(this,100+R$(this)*3*2,100+R$(this)*3*2):$Ch(this);Roz(this,this.storyboardManager.currentStoryboard)};
_.A(wD,_.Lh);
var tq9=function(g){var u=g.playerApi.getVideoAspectRatio();_.ZX(g.container,{"aspect-ratio":""+u,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var q;var Q;if((g.fullscreen||g.theater)&&((q=g.cinematicContainerRenderer.config)==null?0:(Q=q.watchFullscreenConfig)==null?0:Q.colorSourceWidthMultiplier))q=g.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var L;q=(L=
g.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?L:g.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var E,y;if((g.fullscreen||g.theater)&&((E=g.cinematicContainerRenderer.config)==null?0:(y=E.watchFullscreenConfig)==null?0:y.colorSourceHeightMultiplier))L=g.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var v;L=(v=g.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?v:g.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.ZX(g.innerContainer,
{"aspect-ratio":""+u,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+q+", "+L+")"});Ycb()&&_.ZX(g.innerContainer,"filter","blur("+_.S8("cinematic_watch_css_filter_blur_strength",40)+"px)")};
wD.prototype.setFullscreen=function(g,u){this.fullscreen=g;this.theater=!!u;tq9(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),g=this.storyboardManager.currentStoryboard,wfL(this),g&&clp(this,g)};
wD.prototype.addEventListeners=function(){var g=this,u=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(L){Roz(g,L)}),q=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){$Ch(g)});
this.addOnDisposeCallback(function(){g.storyboardManager.unsubscribeByKey(u);g.storyboardManager.unsubscribeByKey(q)});
var Q=function(){tq9(g)};
this.playerApi.addEventListener("onVideoDataChange",Q);this.addOnDisposeCallback(function(){g.playerApi.removeEventListener("onVideoDataChange",Q)})};
var $Ch=function(g){if(!eob(g)){var u=g.storyboardManager.currentStoryboardSize;isNaN(u.width)||isNaN(u.height)||GDh(g,Number(u.width)+R$(g)*3*2,Number(u.height)+R$(g)*3*2)}},GDh=function(g,u,q){g.backCanvas.element.width=u;
g.backCanvas.element.height=q;g.frontCanvas.element.width=u;g.frontCanvas.element.height=q},eob=function(g){return g.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Roz=function(g,u,q){q=q===void 0?!1:q;
var Q=g.frontCanvas.element.getAnimations()[0];Q?(Q.pause(),g.backCanvas.context.globalAlpha=Number(getComputedStyle(g.frontCanvas.element).opacity),g.frontCanvas.element.style.opacity="0",Q.finish()):g.backCanvas.context.globalAlpha=1;g.backCanvas.context.drawImage(g.frontCanvas.element,0,0,g.backCanvas.element.width,g.backCanvas.element.height);wfL(g);u&&clp(g,u);u=u?g.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.S8("cinematic_watch_fade_out_duration",500);Q=_.S8("cinematic_watch_transition_frame_rate")/
1E3;var L={};Q&&(L={easing:"steps("+Math.round(u*Q)+")"});(q===void 0?0:q)||g.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:u,iterations:1},L));g.frontCanvas.element.style.opacity="1"},wfL=function(g){var u=g.ambientLightThemeEnabled||g.ambientTheaterModeEnabled,q=g.ambientLightThemeEnabled||g.ambientFullscreenEnabled;
g.frontCanvas.context.fillStyle=g.theater&&u||g.fullscreen&&q?"#000":"#0f0f0f";Ycb()||(g.frontCanvas.context.filter="blur(0)");g.frontCanvas.context.fillRect(0,0,g.frontCanvas.element.width,g.frontCanvas.element.height)},clp=function(g,u){Ycb()||(g.frontCanvas.context.filter="blur("+R$(g)+"px)");
g.frontCanvas.context.globalAlpha=g.fullscreen&&g.ambientFullscreenEnabled||g.theater&&g.ambientTheaterModeEnabled?_.S8("cinematic_watch_effect_letterbox_opacity",.4):_.S8("cinematic_watch_effect_opacity",.4);var q={offsetX:R$(g)*3,offsetY:R$(g)*3,theater:g.theater,fullscreen:g.fullscreen};eob(g)&&(q.width=100,q.height=100);u.drawToCanvas(g.frontCanvas.context,q);g.frontCanvas.context.globalAlpha=1},R$=function(g){var u;
return(u=g.cinematicContainerRenderer.config.blurStrength)!=null?u:5};
wD.prototype.disposeInternal=function(){_.Lh.prototype.disposeInternal.call(this);this.container.remove()};
wD.prototype.clear=function(){Roz(this,void 0,!0)};
wD.prototype.pause=function(){this.storyboardManager.pause()};var HLZ=_.DX(function(){var g,u,q=!((u=(g=document.createElement("canvas")).getContext)==null||!u.call(g,"2d")),Q;g=!((Q=CSS)==null||!Q.supports("filter: blur(0)"));Q=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var L;return q&&g&&Q&&!((L=CSS)==null||!L.supports("aspect-ratio: 1 / 1"))}),cf=function(g,u){HZ.call(this);
this.container=g;this.playerApi=u;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Aln(this);this.update()};
_.A(cf,HZ);var ZLC=function(g){var u=document.documentElement.hasAttribute("dark");g.isDarkModeEnabled=u;g.update()},ljt=function(g,u){g.settingEnabled=u;
g.update()};
cf.prototype.setFullscreen=function(g,u){this.fullscreen=g;this.theater=!!u;this.update()};
var Ijh=function(g,u){g.cinematicContainerRenderer=u;g.cinematicContainerRenderer&&(g.cinematicsVe=_.Yq(g.isShorts()?227858:159022),_.xl(_.gL(),g.cinematicsVe),g.loggingClientData={watchCinematicContainerData:{presentationStyle:g.cinematicContainerRenderer.presentationStyle}});g.update()};
cf.prototype.isShorts=function(){var g,u;return((g=this.cinematicContainerRenderer)==null?void 0:(u=g.config)==null?void 0:u.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
cf.prototype.isAllowed=function(){var g;if(g=HLZ()){var u,q,Q;g=((q=this.cinematicContainerRenderer)==null?void 0:q.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((Q=this.cinematicContainerRenderer)==null||!Q.colorStore)||((u=this.cinematicContainerRenderer)==null?void 0:u.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(g)if(_.w("web_cinematics_pausing")){var L,E;g=this.isDarkModeEnabled||!!((L=this.cinematicContainerRenderer)==
null?0:(E=L.config)==null?0:E.enableInLightTheme)}else{var y,v;L=!!((y=this.cinematicContainerRenderer)==null?0:(v=y.config)==null?0:v.enableInLightTheme)&&(_.FR("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);g=this.isDarkModeEnabled||L}if(y=g){var J,f;y=!((f=(J=this.prefersReducedMotionQuery)==null?void 0:J.matches)!=null&&f)}return y};
var iLx=function(g){var u;(u=g.currentCinematicEffect)==null||u.clear()},CIn=function(g){var u;
(u=g.currentCinematicEffect)==null||u.pause()},bLz=function(g){(g=g.currentCinematicEffect)!=null&&(g=g.storyboardManager,g.paused=!1,pfH(g),g.update())};
cf.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Aln=function(g){if(!_.w("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var u=window.matchMedia("(prefers-reduced-motion: reduce)"),q=function(){g.update()};
u.addListener(q);g.addOnDisposeCallback(function(){u.removeListener(q)});
return u}};
cf.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var g=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new wD(this.container,g,this.playerApi,this.isDarkModeEnabled),_.z$(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var u=this.currentCinematicEffect;u.cinematicContainerRenderer!==
g&&(u.cinematicContainerRenderer=g,DCt(u.storyboardManager,g),tq9(u));g=_.qf();_.QX(0,194,!0);g.save();g=_.j_();this.cinematicsVe&&g&&_.Z0(g,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(g=_.j_(),this.cinematicsVe&&g&&_.lH(g,[this.cinematicsVe],!1,this.loggingClientData),_.Fo(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.z3.Object.defineProperties(cf.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var dCH=!1,VqK=function(g){_.Lh.call(this);this.JSC$21475_watchApi=g;this.fullscreen=this.theater=!1;FPn(this);mCE(this);ajK(this)};
_.A(VqK,_.Lh);var ajK=function(g){var u,q,Q;_.D(function(L){if(L.nextAddress==1)return L.yield(g.JSC$21475_watchApi.playerApi,2);u=L.yieldResult;if(g.isDisposed())return L.return();q=g.JSC$21475_watchApi.getElement("CINEMATICS");if(!q)return L.return();g.JSC$21475_cinematicController=new cf(q,u);_.z$(g,g.JSC$21475_cinematicController);ZLC(g.JSC$21475_cinematicController);Xfz(g,_.MN3());Q=g.JSC$21475_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(E){rlL(g,E)});
g.addOnDisposeCallback(function(){g.JSC$21475_watchApi.unsubscribeByKey(Q)});
WPH(g);rlL(g,g.JSC$21475_cinematicController.isAllowed());TDb(g);hoh(g);_.Wx(L)})},TDb=function(g){g.fullscreen=_.pe(_.bR().getState());
g.theater=_.Dc(_.bR().getState());YDn(g,g.fullscreen,g.theater);var u=_.qG(_.bR(),_.pe,function(Q){g.fullscreen=Q;YDn(g,g.fullscreen,g.theater)}),q=_.qG(_.bR(),_.Dc,function(Q){g.theater=Q;
YDn(g,g.fullscreen,g.theater)});
g.addOnDisposeCallback(u);g.addOnDisposeCallback(q)},FPn=function(g){var u=g.JSC$21475_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WPH(g)});
g.addOnDisposeCallback(function(){g.JSC$21475_watchApi.unsubscribeByKey(u)})},mCE=function(g){var u,q;
_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21475_watchApi.playerApi,2);u=Q.yieldResult;q=function(L){Xfz(g,L)};
u.addEventListener("cinematicSettingsToggleChange",q);g.addOnDisposeCallback(function(){u.removeEventListener("cinematicSettingsToggleChange",q)});
_.Wx(Q)})},WPH=function(g){var u=g.JSC$21475_watchApi.getWatchNextResponse(),q;
u=_.c(u==null?void 0:(q=u.pageVisualEffects)==null?void 0:q[0],vB);var Q;(Q=g.JSC$21475_cinematicController)==null||Ijh(Q,u)},Xfz=function(g,u){var q;
(q=g.JSC$21475_cinematicController)==null||ljt(q,u);OL9(g)},rlL=function(g,u){var q;
_.D(function(Q){if(Q.nextAddress==1)return _.w("kevlar_watch_cinematics_invisible")&&(u=!1),Q.yield(g.JSC$21475_watchApi.playerApi,2);q=Q.yieldResult;q.updateCinematicSettings(u);OL9(g);_.Wx(Q)})},hoh=function(g){var u=_.qf();
if(_.w("kevlar_measure_ambient_mode_idle")&&!u.getFlag(192)&&!dCH){dCH=!0;var q=_.M_(_.Hv,function(){_.Bk().resolve(_.NuH).start(1E4)},5E3);
g.addOnDisposeCallback(function(){_.Hv.cancelJob(q);_.Bk().resolve(_.NuH).stop()})}},YDn=function(g,u,q){g.fullscreen=u;
g.theater=q;var Q;(Q=g.JSC$21475_cinematicController)==null||Q.setFullscreen(g.fullscreen,g.theater);if(_.w("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(g.theater||g.fullscreen){var L;(L=g.JSC$21475_cinematicController)==null||bLz(L)}else{var E;(E=g.JSC$21475_cinematicController)==null||CIn(E)}},OL9=function(g){var u;
g.JSC$21475_watchApi.getRoot().toggleCinematicsActive(!((u=g.JSC$21475_cinematicController)==null||!u.isEnabled()))};var zof=function(g){_.Lh.call(this);var u=this;this.JSC$21478_watchApi=g;this.commentsReady=!1;this.setCommentsJobId=0;g=_.qG(_.bR(),Br,function(){KPZ(u)});
this.addOnDisposeCallback(g);var q=this.JSC$21478_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xCx(u)}),Q=this.JSC$21478_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){xCx(u)});
this.addOnDisposeCallback(function(){u.JSC$21478_watchApi.unsubscribeByKey(q);u.JSC$21478_watchApi.unsubscribeByKey(Q)});
var L=function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&BDp(u,"false")};
this.JSC$21478_watchApi.getRoot().addEventListener("yt-page-data-will-update",L);this.addOnDisposeCallback(function(){u.JSC$21478_watchApi.getRoot().removeEventListener("yt-page-data-will-update",L)});
xCx(this)};
_.A(zof,_.Lh);var xCx=function(g){g.commentsReady=!1;_.Hv.cancelJob(g.setCommentsJobId);g.setCommentsJobId=_.M_(_.Hv,function(){KPZ(g)},1E3)},KPZ=function(g){if(!g.commentsReady){_.fW("cmi");
_.Hv.cancelJob(g.setCommentsJobId);var u,q,Q,L,E=(u=g.JSC$21478_watchApi.getWatchNextResponse())==null?void 0:(q=u.contents)==null?void 0:(Q=q.twoColumnWatchNextResults)==null?void 0:(L=Q.results)==null?void 0:L.results.contents;u=void 0;if(E&&E.length)for(E=_.N(E),q=E.next();!q.done;q=E.next())if(q=q.value,L=Q=void 0,((Q=q)==null?void 0:(L=Q.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section"){_.w("web_watch_provide_undefined_comments")?u=q.itemSectionRenderer:g.JSC$21478_watchApi.provideRenderingData("COMMENTS",
q.itemSectionRenderer);BDp(g,"true");break}_.w("web_watch_provide_undefined_comments")&&g.JSC$21478_watchApi.provideRenderingData("COMMENTS",u);g.commentsReady=!0;g.JSC$21478_watchApi.dispatchEvent("yt-watch-comments-ready")}},BDp=function(g,u){var q;
(q=g.JSC$21478_watchApi.getElement("COMMENTS"))==null||q.setAttribute("canScheduleJobs",u)};var nWL=["engagement-panel-ads"],gjb=function(g){_.Lh.call(this);var u=this;this.JSC$21481_watchApi=g;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.w("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.w("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.w("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.S8("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)kDE(this);else{var q=this.JSC$21481_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){SDz(u);Hf(u)}),Q=this.JSC$21481_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Al(u);
Hf(u)});
this.JSC$21481_watchApi.getRoot().is==="ytd-watch-grid"&&_.w("swatcheroo_pbs_load_grid")&&(oWL(this),UC9(this));this.addOnDisposeCallback(function(){u.JSC$21481_watchApi.unsubscribeByKey(q);u.JSC$21481_watchApi.unsubscribeByKey(Q);_.Hv.cancelJob(u.provideRichGridJobId)});
SDz(this);Al(this)}};
_.A(gjb,_.Lh);var kDE=function(g){var u=g.JSC$21481_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){g.providePlayerJobId=_.gT(_.Hv,function(){SDz(g);Hf(g)},g.provideAllDataDelayMs)}),q=g.JSC$21481_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){g.provideWatchNextJobId=_.gT(_.Hv,function(){Al(g);
Hf(g)},g.provideAllDataDelayMs)}),Q=g.JSC$21481_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){g.provideWatchNextJobId=_.gT(_.Hv,function(){Al(g);
Hf(g)},g.provideAllDataDelayMs)});
g.JSC$21481_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.M_(_.Hv,function(){SDz(g);Al(g);Hf(g)},100)});
g.JSC$21481_watchApi.addPageDisposeJob(function(){_.Hv.cancelJob(g.provideWatchNextJobId);_.Hv.cancelJob(g.providePlayerJobId)});
g.addOnDisposeCallback(function(){g.JSC$21481_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");g.JSC$21481_watchApi.unsubscribeByKey(u);g.JSC$21481_watchApi.unsubscribeByKey(q);g.JSC$21481_watchApi.unsubscribeByKey(Q);_.Hv.cancelJob(g.providePlayerJobId);_.Hv.cancelJob(g.provideWatchNextJobId)});
SDz(g);Al(g)},SDz=function(g){var u=g.JSC$21481_watchApi.getPlayerResponse(),q,Q,L=(Q=u==null?void 0:(q=u.playabilityStatus)==null?void 0:q.messageRenderers)!=null?Q:[],E,y;
u=(y=u==null?void 0:(E=u.playabilityStatus)==null?void 0:E.messages)!=null?y:[];E=_.N(u);for(y=E.next();!y.done;y=E.next())L.push({alertRenderer:{text:_.I7(y.value),type:"WARNING"}});g.JSC$21481_watchApi.provideRenderingData("ALERTS",L)},Al=function(g){var u=[],q,Q,L,E=g.JSC$21481_watchApi.getWatchNextResponse(),y,v,J,f,t=E==null?void 0:(y=E.contents)==null?void 0:(v=y.twoColumnWatchNextResults)==null?void 0:(J=v.results)==null?void 0:(f=J.results)==null?void 0:f.contents;
if(t)for(y=_.N(t),v=y.next();!v.done;v=y.next())if(v=v.value,v.videoPrimaryInfoRenderer)var e=v;else if(v.videoSecondaryInfoRenderer){var G=v;f=J=void 0;v=Object.assign({},(J=v.videoSecondaryInfoRenderer)==null?void 0:(f=J.metadataRowContainer)==null?void 0:f.metadataRowContainerRenderer);if(v.rows&&v.collapsedItemCount!==void 0){v.rows=v.rows.slice(0,v.collapsedItemCount).filter(function(gC){return!!gC.richMetadataRowRenderer});
v.collapsedItemCount=v.rows.length;var R={metadataRowContainerRenderer:v}}}else if(v.merchandiseShelfRenderer)var H=v;else if(v.ticketShelfRenderer)var l=v;else if(v.expandableMetadataRenderer)var d=v;else if(v.itemSectionRenderer)if(J=v.itemSectionRenderer.contents,f=void 0,g.directlyProvideComments&&((f=v.itemSectionRenderer)==null?void 0:f.sectionIdentifier)==="comment-item-section")_.fW("cmi"),g.JSC$21481_watchApi.provideRenderingData("COMMENTS",v.itemSectionRenderer);else if(J)for(v=_.N(J),J=
v.next();!J.done;J=v.next())if(J=J.value,J.commentsEntryPointHeaderRenderer)var F=J;else if(J.clarificationRenderer||J.infoPanelContainerRenderer||J.infoPanelContentRenderer||J.emergencyOneboxRenderer){u.push(J);var V=V||!!G}else J.limitedStateMessageRenderer?Q=J:J.videoMetadataCarouselViewModel&&(L=J);if(_.w("web_watch_merch_in_sd_when_ticket_shelf_present")&&H&&l){var z=H;H=void 0}if(g.provideWatchNextSecondaryResults){var O,W,x;g.JSC$21481_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
E==null?void 0:(O=E.contents)==null?void 0:(W=O.twoColumnWatchNextResults)==null?void 0:(x=W.secondaryResults)==null?void 0:x.secondaryResults)}if(g.JSC$21481_watchApi.getRoot().is==="ytd-watch-grid"){var k,LZ;g.JSC$21481_watchApi.provideRenderingData("LIVE_CHAT",E==null?void 0:(k=E.contents)==null?void 0:(LZ=k.twoColumnWatchNextResults)==null?void 0:LZ.conversationBar)}var sb,Rm,M3,tT;(O=E==null?void 0:(sb=E.contents)==null?void 0:(Rm=sb.twoColumnWatchNextResults)==null?void 0:(M3=Rm.secondaryResults)==
null?void 0:(tT=M3.secondaryResults)==null?void 0:tT.offerModule)&&(O.donationShelfRenderer||O.donationUnavailableRenderer)&&g.JSC$21481_watchApi.getRoot().is!=="ytd-watch-grid"&&(q=O);sb=g.JSC$21481_watchApi.getPlayerResponse();if(!sb||!_.LNm(sb.playabilityStatus,E==null?void 0:E.playerOverlays)){var mJ;if(E==null?0:(mJ=E.contents)==null?0:mJ.singleColumnWatchNextResults){var hT,Yu;var Mx=E==null?void 0:(hT=E.contents.singleColumnWatchNextResults.results)==null?void 0:(Yu=hT.results)==null?void 0:
Yu.contents}else{var po,KZ,G2,Ab;mJ=!!(t==null?0:(po=t[0])==null?0:(KZ=po.itemSectionRenderer)==null?0:(G2=KZ.contents)==null?0:(Ab=G2[0])==null?0:Ab.backgroundPromoRenderer);var tb,lx;po=!!(E==null?0:(tb=E.contents)==null?0:(lx=tb.twoColumnWatchNextResults)==null?0:lx.secondaryResults);mJ&&!po&&(Mx=t)}}t=u[0];tb=u[1];V&&u.length===1&&(tb=t,t=void 0);g.JSC$21481_watchApi.provideRenderingData("PRIMARY_INFO",e);g.JSC$21481_watchApi.provideRenderingData("SECONDARY_INFO",G);g.JSC$21481_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
F);g.JSC$21481_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",L);g.JSC$21481_watchApi.provideRenderingData("CLARIFICATION",t);g.JSC$21481_watchApi.provideRenderingData("RICH_METADATA",R);g.JSC$21481_watchApi.provideRenderingData("MERCH_SHELF",H);_.w("web_watch_merch_in_sd_when_ticket_shelf_present")&&g.JSC$21481_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",z);g.JSC$21481_watchApi.provideRenderingData("TICKET_SHELF",l);g.JSC$21481_watchApi.provideRenderingData("LIMITED_STATE",Q);g.JSC$21481_watchApi.getRoot().is!==
"ytd-watch-grid"&&g.JSC$21481_watchApi.provideRenderingData("DONATION_SHELF",q);g.JSC$21481_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Mx);g.JSC$21481_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",tb);g.JSC$21481_watchApi.provideRenderingData("EXPANDABLE_METADATA",d);if(g.swatcherooProvideAllDataOnScheduledJob){var NE,fZ,Xf,eX,no,Co;e=E==null?void 0:(NE=E.contents)==null?void 0:(fZ=NE.twoColumnWatchNextResults)==null?void 0:(Xf=fZ.secondaryResults)==null?void 0:(eX=Xf.secondaryResults)==
null?void 0:(no=eX.results)==null?void 0:(Co=no[0])==null?void 0:Co.richGridRenderer;g.JSC$21481_watchApi.provideRenderingData("RICH_GRID_RENDERER",e)}};
gjb.prototype.hasCompanionAds=function(g){var u,q;return(q=g==null?void 0:(u=g.adPlacements)==null?void 0:u.some(function(Q){var L,E,y,v;return(Q==null?void 0:(L=Q.adPlacementRenderer)==null?void 0:(E=L.renderer)==null?void 0:E.actionCompanionAdRenderer)||(Q==null?void 0:(y=Q.adPlacementRenderer)==null?void 0:(v=y.renderer)==null?void 0:v.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?q:!1};
var Hf=function(g){if(!_.w("swaterdoo_ps_wn_handle_ks")){g.swatcherooProvideAllDataOnScheduledJob||UC9(g,3E3);var u=g.JSC$21481_watchApi.getPlayerResponse(),q,Q,L,E,y,v=(q=g.JSC$21481_watchApi.getWatchNextResponse())==null?void 0:(Q=q.contents)==null?void 0:(L=Q.twoColumnWatchNextResults)==null?void 0:(E=L.secondaryResults)==null?void 0:(y=E.secondaryResults)==null?void 0:y.offerModule;u=g.hasCompanionAds(u);var J,f;q=(v==null?void 0:(J=v.tvfilmOfferModuleRenderer)==null?void 0:J.clientShouldSuppressIfCompanionAdDisplayed)||
(v==null?void 0:(f=v.unlimitedOfferModuleRenderer)==null?void 0:f.suppressIfCompanionAds);J=u&&q;g.JSC$21481_watchApi.getRoot().is==="ytd-watch-grid"&&g.JSC$21481_watchApi.provideRenderingData("OFFER_MODULE",J?void 0:v)}},UC9=function(g,u){_.w("swatcheroo_pbs_load_grid")&&(g.provideRichGridJobId&&_.Hv.cancelJob(g.provideRichGridJobId),g.provideRichGridJobId=_.gT(_.Hv,function(){g.provideRichGridJobId=0;
var q,Q,L,E,y,v,J,f=(q=g.JSC$21481_watchApi.getWatchNextResponse())==null?void 0:(Q=q.contents)==null?void 0:(L=Q.twoColumnWatchNextResults)==null?void 0:(E=L.secondaryResults)==null?void 0:(y=E.secondaryResults)==null?void 0:(v=y.results)==null?void 0:(J=v[0])==null?void 0:J.richGridRenderer;f&&g.JSC$21481_watchApi.provideRenderingData("RICH_GRID_RENDERER",f)},u))},oWL=function(g){var u,q;
_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21481_watchApi.playerApi,2);u=Q.yieldResult;q=function(){g.onPlaybackStart()};
u.addEventListener("onPlaybackStartExternal",q);g.addOnDisposeCallback(function(){u.removeEventListener("onPlaybackStartExternal",q)});
_.Wx(Q)})};
gjb.prototype.onPlaybackStart=function(){UC9(this)};var ulH=_.Yq(115994),q2H=_.Yq(115993),Zj=function(g,u,q){var Q=this;var L=q.dragDownAction;this.layer=0;this.JSC$21496_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Q.dragDownAction()}}}};
this.JSC$21496_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Q.dragDownAction()}}}};
this.fullscreen=!1;var E=_.gL();_.BF(E,ulH,this.layer);_.BF(E,q2H,this.layer);this.dragDownAction=function(){L();_.$q(E,{visualElement:Q.fullscreen?ulH:q2H})};
this.gesture=new a8(g,u,this.getConfig(!1),"pandown");this.attach()};
Zj.prototype.attach=function(){this.gesture.attach()};
Zj.prototype.detach=function(){this.gesture.detach()};
Zj.prototype.update=function(g){this.fullscreen=g;var u=this.gesture;g=this.getConfig(g);u.config=g};
Zj.prototype.getConfig=function(g){return g?this.JSC$21496_watchFullScreenConfig:this.JSC$21496_watchConfig};var Lrb=function(g){_.Lh.call(this);var u=this;this.JSC$21499_watchApi=g;g.playerApi.then(function(q){u.player=q});
this.gestures=new Zj(this.JSC$21499_watchApi.getRoot(),g.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(gZC(_.bR().getState())&&Br(_.bR().getState())<=0)if(_.pe(_.bR().getState())){var q;(q=u.player)==null||q.toggleFullscreen()}else _.YJ(u.JSC$21499_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
QFZ(this)};
_.A(Lrb,_.Lh);var QFZ=function(g){var u=_.qG(_.bR(),_.pe,function(q){g.onFullscreenChanged(q)});
g.addOnDisposeCallback(u);u=_.qG(_.bR(),Br,function(q){g.gestures&&(q>0?g.gestures.detach():g.gestures.attach())});
g.addOnDisposeCallback(u)};
Lrb.prototype.onFullscreenChanged=function(g){this.gestures&&this.gestures.update(g)};var Ejn=["PLAYLIST"],Npp=function(g){_.Lh.call(this);var u=this;this.JSC$21502_watchApi=g;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(g.subscribeToActiveChanged(function(q){u.onActiveChanged(q)}));
Pjf(this)};
_.A(Npp,_.Lh);var sFK=function(g){g.pageDisposalDataTypes=Object.values(xvf).filter(function(u){return!Ejn.includes(u)})},Pjf=function(g){if(_.w("swatcheroo_enable_ghost_cards")||_.w("web_watch_clear_data_on_page_dispose"))sFK(g),g.JSC$21502_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Hv.cancelJob(g.clearDataJobId);
g.clearDataJobId=0}),g.runPageDisposeJob=function(){var u=_.Bk().resolve(_.ba).getDestinationPageType()==="watch";
g.clearDataJobId=_.gT(_.Hv,g.runClearDataJob,u?0:_.S8("web_watch_delay_page_dispose_ms",1E4))},g.runClearDataJob=function(){yxt(g)},g.runOnYtNavigateAwayFinish=function(){g.clearDataJobId&&(_.Hv.cancelJob(g.clearDataJobId),g.clearDataJobId=0,yxt(g))},document.addEventListener("yt-navigate-finish",g.runOnYtNavigateAwayFinish),g.JSC$21502_watchApi.addPageDisposeJob(g.runPageDisposeJob),g.addOnDisposeCallback(function(){g.JSC$21502_watchApi.removePageDisposeJob(g.runPageDisposeJob);
g.JSC$21502_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",g.runOnYtNavigateAwayFinish)})},yxt=function(g){g.pageDisposalDataTypes.forEach(function(u){g.JSC$21502_watchApi.provideRenderingData(u,void 0)});
g.clearDataJobId=0};
Npp.prototype.onActiveChanged=function(g){g&&((g=document.querySelector("#watch-page-skeleton"))&&_.UU(g),vjZ(this),document.body.removeAttribute("no-y-overflow"),_.mW("IS_SHELL_LOAD")&&cDZ())};
var vjZ=function(g){_.D(function(u){if(u.nextAddress==1)return u.yield(g.JSC$21502_watchApi.playerApi,2);_.w_();_.Wx(u)})};var Ddz=_.w("kevlar_watch_while_counterfactual")?0:.25,fNL=function(g){_.Lh.call(this);this.JSC$21505_watchApi=g;this.JSC$21505_watchWhileEnabled=_.w("kevlar_watch_while_v2");this.JSC$21505_watchPipEnabled=_.w("web_watch_pip");pzt(this);Jxh(this);jFK(this)};
_.A(fNL,_.Lh);var pzt=function(g){g.JSC$21505_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){MMC(g)});
g.addOnDisposeCallback(function(){g.JSC$21505_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Jxh=function(g){var u,q;
_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21505_watchApi.playerApi,2);u=Q.yieldResult;q=function(L){L&&g.JSC$21505_watchPipEnabled?tMt(g):MMC(g)};
u.addEventListener("onCollapseMiniplayer",q);g.addOnDisposeCallback(function(){u.removeEventListener("onCollapseMiniplayer",q)});
_.Wx(Q)})},jFK=function(g){var u=g.JSC$21505_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&u&&g.JSC$21505_watchWhileEnabled&&(g.playerIntersectionObserver=new IntersectionObserver(function(q){g.handleIntersect(q)},{threshold:[Ddz]}),g.playerIntersectionObserver.observe(u),g.addOnDisposeCallback(function(){var q;
(q=g.playerIntersectionObserver)==null||q.disconnect()}))},MMC=function(g){var u,q,Q;
_.D(function(L){if(L.nextAddress==1)return u=_.Bk().resolve(_.ba),q=u.data,Q=_.aTu(q.response,q.playerResponse),_.Uw().miniplayerButtonActivation=!0,_.Bk().resolve(_.RO).collapse(),L.yield(_.Uw().navigationFinishPromise,2);if(L.nextAddress!=3)return _.Uw().currentEndpoint=Q.watchEndpoint||null,L.yield(_.Bk().resolve(_.RO).activate(g.JSC$21505_watchApi.getElement("PLAYER"),Q,q),3);_.Uw().userActivation=!0;_.Wx(L)})},tMt=function(g){var u,q,Q;
_.D(function(L){if(L.nextAddress==1)return _.Bk().resolve(_.RO).pictureInPictureSupported()?L.jumpTo(2):L.yield(g.JSC$21505_watchApi.playerApi,3);if(L.nextAddress!=2)return u=L.yieldResult,(q=u)==null||q.togglePictureInPicture(),L.return();Q=_.Bk().resolve(_.ba);_.Uw().watchPipActivation=!0;_.joh(_.Bk().resolve(_.RO),Q.data);_.Wx(L)})};
fNL.prototype.handleIntersect=function(g){euL(this,g[g.length-1])};
var euL=function(g,u){g.watchWhileJobId&&_.Hv.cancelJob(g.watchWhileJobId);g.watchWhileJobId=_.Hv.addLowPriorityJob(function(){var q,Q;return _.D(function(L){if(L.nextAddress==1)return g.watchWhileJobId=void 0,q=_.Bk().resolve(_.RO),u.intersectionRatio>Ddz?q.isMiniplayerActive()?L.yield(q.deactivate(),0):L.jumpTo(0):(Q=!q.isMiniplayerActive())?L.yield(Gl9(g),5):L.jumpTo(4);L.nextAddress!=4&&(Q=L.yieldResult);if(!Q)return L.jumpTo(0);_.Uw().watchWhileActivation=!0;return L.yield($dL(g),0)})},100)},
Gl9=function(g){return _.D(function(u){return u.nextAddress==1?_.w("kevlar_watch_while_paused")?u.return(!0):u.yield(g.isPlayerPlaying(),2):u.return(u.yieldResult)})};
fNL.prototype.isPlayerPlaying=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return q.yield(g.JSC$21505_watchApi.playerApi,2);u=q.yieldResult;return q.return(u.getPlayerStateObject().isPlaying)})};
var $dL=function(g){var u,q;return _.D(function(Q){u=_.Bk().resolve(_.ba).data;q=_.aTu(u.response,u.playerResponse);_.Uw().currentEndpoint=q.watchEndpoint||null;return Q.yield(_.Bk().resolve(_.RO).activate(g.JSC$21505_watchApi.getElement("PLAYER"),q,u),0)})};var cxK=function(g){_.Lh.call(this);this.JSC$21509_watchApi=g;Ru9(this);wzC(this)};
_.A(cxK,_.Lh);var wzC=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21509_watchApi.playerApi,2);u=Q.yieldResult;q=function(L){var E;L.sessionData&&L.sessionData.itct&&(E=L.sessionData.itct);var y=L.watchEndpoint;if(y&&L.sessionData&&L.sessionData.autonav)y=_.Ulm(y,E);else{var v;y=_.m7(L.videoId,(v=L.listId)!=null?v:void 0,E)}E={endpoint:y};L.sessionData&&(E.tempData=L.sessionData);g.JSC$21509_watchApi.dispatchEvent("yt-navigate",E)};
u.addEventListener("onPlayVideo",q);g.addOnDisposeCallback(function(){u.removeEventListener("onPlayVideo",q)});
_.Wx(Q)})},Ru9=function(g){var u=function(q){g.onYtNavigate(q)};
g.JSC$21509_watchApi.getRoot().addEventListener("yt-navigate",u);g.addOnDisposeCallback(function(){g.JSC$21509_watchApi.getRoot().removeEventListener("yt-navigate",u)})};
cxK.prototype.onYtNavigate=function(g){var u=this,q,Q,L,E,y,v,J,f,t;return _.D(function(e){if(e.nextAddress==1){if(!((q=g.detail)==null?0:(Q=q.endpoint)==null?0:Q.watchEndpoint))return e.return();L=g.detail.endpoint.watchEndpoint;E=u.JSC$21509_watchApi.getWatchNextResponse();v=_.c((y=E)==null?void 0:y.currentVideoEndpoint,_.l1);if(!v)return e.return();if(L.videoId!==v.videoId||L.playlistId&&L.playlistId!==v.playlistId||typeof L.startTimeSeconds!=="number")return e.jumpTo(0);g.stopPropagation();(J=
_.w("kevlar_watch_while_v2")&&!_.w("kevlar_watch_while_counterfactual"))&&_.Bk().resolve(_.RO).isMiniplayerActive()||u.JSC$21509_watchApi.scrollWatchTo(0,!0);return e.yield(u.JSC$21509_watchApi.playerApi,3)}f=e.yieldResult;t=L.startTimeSeconds;f.seekTo(t,void 0,void 0,void 0,84);f.wakeUpControls();t<f.getDuration()&&f.playVideo();_.Wx(e)})};var Axf=function(g){_.Lh.call(this);var u=this;this.JSC$21512_watchApi=g;var q=this.JSC$21512_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Hc9(u)});
this.addOnDisposeCallback(function(){u.JSC$21512_watchApi.unsubscribeByKey(q)});
Hc9(this);_.w("enable_ai_companion")&&(g=this.JSC$21512_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&arx(g,"WATCH")};
_.A(Axf,_.Lh);var Hc9=function(g){var u=g.JSC$21512_watchApi.getWatchNextResponse();if(u){var q,Q=[].concat(_.na((q=u==null?void 0:u.engagementPanels)!=null?q:[]));_.w("web_watch_comments_visible_by_default")&&(q=Q.find(function(L){var E;return((E=L.engagementPanelSectionListRenderer)==null?void 0:E.targetId)==="engagement-panel-comments-section"}),q==null?0:q.engagementPanelSectionListRenderer)&&(q.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
Q.unshift.apply(Q,_.na(ZcC(u)));g.JSC$21512_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Q)}},INz=function(g){var u,q,Q,L=(u=g.engagementPanels)==null?void 0:(q=u.find(function(R){var H;
return((H=R.engagementPanelSectionListRenderer)==null?void 0:H.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Q=q.engagementPanelSectionListRenderer.content)==null?void 0:Q.structuredDescriptionContentRenderer,E;
if(_.c(L==null?void 0:(E=L.items)==null?void 0:E.find(function(R){return!!_.c(R,YWH)}),YWH))return!0;
var y,v,J,f;if(g=(((y=g.contents)==null?void 0:(v=y.twoColumnWatchNextResults)==null?void 0:(J=v.results)==null?void 0:(f=J.results)==null?void 0:f.contents)||[]).find(function(R){return R.videoPrimaryInfoRenderer})){var t,e,G;
return(((t=g.videoPrimaryInfoRenderer)==null?void 0:(e=t.videoActions)==null?void 0:(G=e.menuRenderer)==null?void 0:G.flexibleItems)||[]).some(function(R){R=_.c(R,_.iFX);if(!R)return!1;var H,l;R=(H=R.topLevelButton)==null?void 0:(l=H.buttonViewModel)==null?void 0:l.onTap;if(!R)return!1;H=_.jy(R);if(!H)return!1;if(lNx(H))return!0;if(_.w("enable_creator_chatbot")){H=_.c(H,_.zg);if(!H)return!1;var d;return(d=H.commands)==null?void 0:d.some(function(F){return lNx(F)})}return!1})}return!1},lNx=function(g){var u;
return((u=_.c(g,_.fT))==null?void 0:u.panelIdentifier)==="PAyouchat"},ZcC=function(g){var u=[];
if(!_.w("web_watch_inject_placeholder_fantasy_panel_killswitch")){var q,Q,L,E=(q=g.engagementPanels)==null?void 0:(Q=q.find(function(v){var J;return((J=v.engagementPanelSectionListRenderer)==null?void 0:J.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(L=Q.engagementPanelSectionListRenderer.content)==null?void 0:L.structuredDescriptionContentRenderer,y;
_.c(E==null?void 0:(y=E.items)==null?void 0:y.find(function(v){return!!_.c(v,m2E)}),m2E)&&(q=_.Xgf("PAsports_fantasy"),q.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u.push(q))}INz(g)&&(g=_.Xgf("PAyouchat"),g.engagementPanelSectionListRenderer.targetId="PAyouchat",g.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u.push(g));
return u};var CjL=function(g){_.Lh.call(this);this.JSC$21515_watchApi=g;icC(this)};
_.A(CjL,_.Lh);var icC=function(g){g.JSC$21515_watchApi.registerActionHandler("yt-loop-command",function(u){bcz(g,u)});
g.JSC$21515_watchApi.registerActionHandler("yt-repeat-chapter-command",function(u){ddz(g,u)});
g.addOnDisposeCallback(function(){g.JSC$21515_watchApi.unregisterActionHandler("yt-loop-command");g.JSC$21515_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},bcz=function(g,u){var q;
_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21515_watchApi.playerApi,2);q=Q.yieldResult;_.c(u,ZPp).loop?(q.setLoopRange({startTimeMs:Number(_.c(u,ZPp).startTimeMs),endTimeMs:Number(_.c(u,ZPp).endTimeMs),postId:_.c(u,ZPp).postId,type:"clips"}),q.playVideo()):q.setLoopRange(null);_.Wx(Q)})},ddz=function(g,u){var q,Q;
_.D(function(L){if(L.nextAddress==1)return L.yield(g.JSC$21515_watchApi.playerApi,2);q=L.yieldResult;Q=_.c(u,sSZ).repeat;Q==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(q.setLoopRange({startTimeMs:Number(_.c(u,sSZ).startTimeMs),endTimeMs:Number(_.c(u,sSZ).endTimeMs),type:"repeatChapter"}),q.playVideo()):Q==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&q.setLoopRange(null);_.Wx(L)})};var mdZ=function(g){_.Lh.call(this);this.JSC$21520_watchApi=g;FrK(this)};
_.A(mdZ,_.Lh);var FrK=function(g){g.JSC$21520_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(u){aNn(g,u)});
g.addOnDisposeCallback(function(){g.JSC$21520_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},aNn=function(g,u){var q,Q,L,E,y,v,J,f,t,e,G;
_.D(function(R){if(R.nextAddress==1)return R.yield(g.JSC$21520_watchApi.playerApi,2);q=R.yieldResult;if(E=(L=(Q=_.c(u,y8Z))==null?void 0:Q.highlightedMenuItemKey)!=null?L:"")(v=(y=q).highlightSettingsMenuItem)==null||v.call(y,E);if(t=(f=(J=_.c(u,y8Z))==null?void 0:J.openMenuItemKey)!=null?f:"")(G=(e=q).openSettingsMenuItem)==null||G.call(e,t);_.Wx(R)})};var VMx=_.x6("/youtube/app/watch/player_state","playerStateEntity");var lI=function(g){_.Lh.call(this);this.JSC$21523_watchApi=g;Xzt(this)};
_.A(lI,_.Lh);var rxL=function(g){switch(g){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"}},Xzt=function(g){var u,q,Q,L,E;
_.D(function(y){if(y.nextAddress==1)return y.yield(g.JSC$21523_watchApi.playerApi,2);u=y.yieldResult;if(g.isDisposed())return y.return();q=function(v){g.onPlayerStateChange(v)};
Q=function(v){g.onAdStateChange(v)};
L=function(){g.onAdSkip()};
E=function(v){g.onVideoDataChange(v)};
u.addEventListener("onStateChange",q);u.addEventListener("onAdStateChange",Q);u.addEventListener("onAdSkip",L);u.addEventListener("onVideoDataChange",E);g.addOnDisposeCallback(function(){u.removeEventListener("onStateChange",q);u.removeEventListener("onAdStateChange",Q);u.removeEventListener("onAdSkip",L);u.removeEventListener("onVideoDataChange",E)});
_.Wx(y)})},Wrt=function(g){var u=_.CE(),q=u.dispatch;
a:switch(g.adsState){case -1:case 0:var Q="ADS_STATE_NONE";break a;case 1:case 2:case 3:Q="ADS_STATE_PLAYING";break a;default:Q="ADS_STATE_UNKNOWN"}q.call(u,_.u2("playerStateEntity",VMx,{key:VMx,playerState:rxL(g.playerState),adsState:Q,videoId:g.videoId}))};
lI.prototype.onPlayerStateChange=function(g){var u=this,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(u.JSC$21523_watchApi.playerApi,2);q=Q.yieldResult;if(u.isDisposed())return Q.return();u.playerState=g;u.videoId=q.getVideoData().video_id;Wrt(u);_.Wx(Q)})};
lI.prototype.onAdStateChange=function(g){this.adsState=g;Wrt(this)};
lI.prototype.onAdSkip=function(){this.adsState=0;Wrt(this)};
lI.prototype.onVideoDataChange=function(g){g.type==="newdata"&&(this.adsState=-1,Wrt(this))};var huZ=function(g){_.Lh.call(this);var u=this;this.JSC$21527_watchApi=g;this.enableExternalPlaylistPanelInPlayer=_.w("delhi_web_player_use_external_playlist_panel");_.Bk().resolve(_.cd).setPlayer(this.JSC$21527_watchApi.getElement("PLAYER"));g=this.JSC$21527_watchApi.subscribeToActiveChanged(function(q){u.onActiveChanged(q)});
this.addOnDisposeCallback(g);Tph(this)};
_.A(huZ,_.Lh);var Tph=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return g.enableExternalPlaylistPanelInPlayer?Q.yield(g.JSC$21527_watchApi.playerApi,2):Q.return();u=Q.yieldResult;q=function(){if(g.playlistPanelElement)g.playlistPanelElement.onToggleExpanded()};
u.addEventListener("onToggleExternalPlaylistPanel",q);g.addOnDisposeCallback(function(){u.removeEventListener("onToggleExternalPlaylistPanel",q)});
_.Wx(Q)})};
huZ.prototype.onActiveChanged=function(g){var u=this,q=_.Bk().resolve(_.cd),Q=function(){Y2z(u)};
g?(this.playlistPanelElement=this.JSC$21527_watchApi.getElement("PLAYLIST_PANEL"))?(q.setPlaylistComponent(this.playlistPanelElement),q.addEventListener("yt-playlist-data-updated",Q),this.addOnDisposeCallback(function(){q.removeEventListener("yt-playlist-data-updated",Q)}),Y2z(this)):_.Wk(Error("Vl")):(q.removeEventListener("yt-playlist-data-updated",Q),q.cancelVideoSkip())};
var Y2z=function(g){var u=_.Bk().resolve(_.cd);g.JSC$21527_watchApi.provideRenderingData("PLAYLIST",u.getPlaylistData())};var I$=function(g){_.Lh.call(this);var u=this;this.JSC$21530_watchApi=g;this.onPageScroll=function(){u.scrollThrottle.fire();u.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Kr(this.onThrottledScroll,200,this);_.z$(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Kr(this.onMastheadThrottledScroll,50,this);_.z$(this,this.mastheadScrollThrottle);this.animation=new _.FH(function(q){u.JSC$21530_watchApi.getRoot().setScrollTop(q)});
g=_.qG(_.bR(),_.pe,function(){u.onFullscreenChanged()});
this.addOnDisposeCallback(g);Och(this);Krh(this);this.onThrottledScroll()};
_.A(I$,_.Lh);
I$.prototype.onFullscreenChanged=function(){var g=this,u=this.JSC$21530_watchApi.getRoot();!this.pageScrollElement&&u.pageScrollElement?(this.pageScrollElement=u.pageScrollElement,u.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){g.pageScrollElement&&g.pageScrollElement.removeEventListener("scroll",g.onPageScroll)})):this.pageScrollElement&&!u.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var Och=function(g){window.addEventListener("scroll",g.onPageScroll);g.addOnDisposeCallback(function(){window.removeEventListener("scroll",g.onPageScroll)})},Krh=function(g){g.JSC$21530_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(u){a:{var q;
if(q=g.JSC$21530_watchApi.getRoot().contains(u)&&!g.animation.isAnimating()){q=u.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var Q,L,E=(u==null?void 0:(Q=u.parentElement)==null?void 0:(L=Q.parentElement)==null?void 0:L.id)==="fixed-secondary";q=!(q&&E)}if(q){if(_.w("kevlar_watch_scroll_manager_absolute_offset_killswitch"))Q=u.offsetTop;else for(Q=0,L=u;L!==null;)Q+=L.offsetTop,Q-=L.scrollTop,L=L.offsetParent;L=Q;Q=L-24;u=L+u.offsetHeight+24;L=g.JSC$21530_watchApi.getRoot().getPageScrollingElement();
q=g.JSC$21530_watchApi.getRoot().getScrollTop();E=q+L.clientHeight-56;if(Q<q+56)u=Q-56;else if(u>E)u-=L.clientHeight;else break a;g.scrollWatchTo(Math.max(0,u),!0)}}});
g.addOnDisposeCallback(function(){g.JSC$21530_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
I$.prototype.onThrottledScroll=function(){var g=_.bR(),u=g.dispatch,q=this.JSC$21530_watchApi.getRoot().getScrollTop();u.call(g,_.rF({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:q}}))};
I$.prototype.onMastheadThrottledScroll=function(){this.JSC$21530_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21530_watchApi.getRoot().getScrollTop())};
I$.prototype.scrollWatchTo=function(g,u){(u===void 0?0:u)?this.animation.start(this.JSC$21530_watchApi.getRoot().getScrollTop(),Math.max(0,g),500):this.JSC$21530_watchApi.getRoot().setScrollTop(g)};var zux=function(g){_.Lh.call(this);var u=this;this.JSC$21533_watchApi=g;var q=this.JSC$21533_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){xdt(u)}),Q=this.JSC$21533_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Bp9(u)});
this.addOnDisposeCallback(function(){u.JSC$21533_watchApi.unsubscribeByKey(q);u.JSC$21533_watchApi.unsubscribeByKey(Q)});
xdt(this);Bp9(this)};
_.A(zux,_.Lh);
var xdt=function(g){var u,q,Q,L=(Q=(u=g.JSC$21533_watchApi.getPlayerResponse())==null?void 0:(q=u.videoDetails)==null?void 0:q.title)!=null?Q:"";g.JSC$21533_watchApi.dispatchEvent("yt-update-title",L)},Bp9=function(g){var u,q,Q,L,E,y,v,J=(v=((y=(u=g.JSC$21533_watchApi.getWatchNextResponse())==null?void 0:(q=u.contents)==null?void 0:(Q=q.twoColumnWatchNextResults)==null?void 0:(L=Q.results)==null?void 0:(E=L.results)==null?void 0:E.contents)!=null?y:[]).find(function(f){return!!f.videoPrimaryInfoRenderer}))==null?
void 0:v.videoPrimaryInfoRenderer;
(u=_.iR(J==null?void 0:J.title))&&g.JSC$21533_watchApi.dispatchEvent("yt-update-title",u)};var klh=function(g){_.Lh.call(this);this.JSC$21536_watchApi=g;njb(this)};
_.A(klh,_.Lh);var njb=function(g){var u,q;_.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.JSC$21536_watchApi.playerApi,2);u=Q.yieldResult;q=function(){g.onYpcContentRequest()};
u.addEventListener("onYpcContentRequest",q);g.addOnDisposeCallback(function(){u.removeEventListener("onYpcContentRequest",q)});
_.Wx(Q)})};
klh.prototype.onYpcContentRequest=function(){var g,u,q,Q,L,E=(g=this.JSC$21536_watchApi.getWatchNextResponse())==null?void 0:(u=g.contents)==null?void 0:(q=u.twoColumnWatchNextResults)==null?void 0:(Q=q.secondaryResults)==null?void 0:(L=Q.secondaryResults)==null?void 0:L.offerModule,y,v,J,f;g=(f=(J=(v=(y=E==null?void 0:E.episodeOfferModuleRenderer)!=null?y:E==null?void 0:E.movieOfferModuleRenderer)!=null?v:E==null?void 0:E.unlimitedOfferModuleRenderer)!=null?J:E==null?void 0:E.liveOfferModuleRenderer)!=
null?f:E==null?void 0:E.tvfilmOfferModuleRenderer;var t,e,G;E=(G=E==null?void 0:(t=E.tvfilmOfferModuleRenderer)==null?void 0:(e=t.actionButtons)==null?void 0:e.length)!=null?G:0;e=Math.max(E-1,0);var R,H,l;t=(l=g==null?void 0:(R=g.offerButton)==null?void 0:R.buttonRenderer)!=null?l:g==null?void 0:(H=g.actionButtons)==null?void 0:H[e].buttonRenderer;var d,F;(R=(F=(d=t==null?void 0:t.navigationEndpoint)!=null?d:t==null?void 0:t.serviceEndpoint)!=null?F:t==null?void 0:t.command)&&_.ze.instance.resolveCommand(R)};var S2h=function(g){HZ.call(this);var u=this;this.rootElement=g;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return u.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(q){u.initOrDisposeActiveModules(q)}));
this.onAttached()};
_.A(S2h,HZ);_.P=S2h.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(g){return this.rootElement.getElement(g)};
_.P.setPlayerResponse=function(g){this.playerResponse=g;this.publish("PLAYER_RESPONSE_UPDATED",g)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(g){this.watchNextResponse===g?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=g,this.publish("WATCH_NEXT_RESPONSE_UPDATED",g))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(g,u){var q=this;if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var Q={};_.XU(_.VC.getInstance(),(Q[g]=u,Q),this.getRoot())}else this.actionHandlers.has(g)||(this.actionHandlers.set(g,[]),Q={},_.XU(_.VC.getInstance(),(Q[g]=function(){var L=_.UT.apply(0,arguments);return(q.actionHandlers.get(g)||[]).map(function(E){return E.apply(null,_.na(L))})},Q),this.getRoot())),this.actionHandlers.get(g).push(u)};
_.P.unregisterActionHandler=function(g){if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var u={};_.r9(_.VC.getInstance(),(u[g]=!0,u),this.getRoot())}else(u=this.actionHandlers.get(g))?(u.pop(),u.length===0&&(u={},_.r9(_.VC.getInstance(),(u[g]=!0,u),this.getRoot()),this.actionHandlers.delete(g))):_.Io(new _.Ji("Attempted to unregister an action handler which is not registered.",g))};
_.P.addPageDisposeJob=function(g){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Chk(this.rootElement.pageDisposeJobs,g)};
_.P.removePageDisposeJob=function(g){this.rootElement.pageDisposeJobs&&_.TM(this.rootElement.pageDisposeJobs,g)};
_.P.dispatchEvent=function(g,u){_.hJ(this.rootElement,g,u)};
_.P.provideRenderingData=function(g,u){this.rootElement.provideRenderingData(g,u)};
_.P.scrollWatchTo=function(g,u){var q;(q=this.watchScrollManager)==null||q.scrollWatchTo(g,u)};
_.P.focusOnPlayer=function(){var g=this.getElement("PLAYER");_.xt(g,function(){if(g&&g.firstElementChild){var u=g.querySelector(".html5-video-player");u&&(_.Fq(_.Bk().resolve(_.UE)),u.focus())}else _.Io(Error("Wl"))})};
var ojZ=function(g){var u=!!g.rootElement.theater,q=!!g.rootElement.fullscreen,Q;(Q=g.watchCinematicManager)==null||YDn(Q,q,u)};
_.P=S2h.prototype;_.P.subscribeToActiveChanged=function(g,u){u=u===void 0?!0:u;var q=_.qG(_.bR(),uJC,function(Q){g(Q)});
u&&g(uJC(_.bR().getState()));return q};
_.P.isActive=function(){return uJC(_.bR().getState())};
_.P.onAttached=function(){var g=_.w("external_fullscreen");_.w("use_unified_flag_accessor")&&(g=_.Bk().resolve(_.hIx).retriever.getFlag(_.c65));(g||_.mW("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.P.initPersistentModules=function(){if(_.w("kevlar_watch_flexy_theater_manager")){var g=new xhh(this);_.z$(this,g)}g=new Npp(this);_.z$(this,g);g=new MC(this);_.z$(this,g);g=new gjb(this);_.z$(this,g);g=new lI(this);_.z$(this,g);g=new tl(this);_.z$(this,g);_.w("kevlar_watch_flexy_playlist_manager")&&(g=new huZ(this),_.z$(this,g))};
_.P.initOrDisposeActiveModules=function(g){g?(this.watchScrollManager=new I$(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new cxK(this)),this.activeModules.push(new YXK(this)),this.activeModules.push(new zux(this)),this.activeModules.push(new fNL(this)),_.w("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new zRL(this)),this.activeModules.push(new CjL(this)),_.w("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new klh(this)),_.w("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new NDz(this)),_.Of("kevlar_watch_cinematics")&&(this.watchCinematicManager=new VqK(this),this.activeModules.push(this.watchCinematicManager),ojZ(this)),_.w("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new mdZ(this)),_.w("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new Lrb(this)),g=_.w("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.w("kevlar_watch_flexy_comments_manager")&&!g&&this.activeModules.push(new zof(this)),
_.w("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new vgZ(this)),this.activeModules.push(new Uhp(this)),this.activeModules.push(new Axf(this)),_.w("web_enable_timely_actions")&&this.activeModules.push(new Q$L(this)),_.w("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new Avp(this)),_.w("web_watch_enable_multiview_manager")&&this.activeModules.push(new MSK(this)),_.w("web_fullscreen_components")&&this.activeModules.push(new UvL(this)),_.w("web_player_rtr_ctrls")&&
this.activeModules.push(new lZh(this))):(_.mv(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.P.disposeInternal=function(){HZ.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.z3.Object.defineProperties(S2h.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.dL(_.r(function(g){var u=_.Hk("script");_.bX(function(){var q;if(q=JSON)q=xBt(g.data()),q=_.DK(JSON.stringify(q).replace(/</g,"\\u003C"));var Q=g.data(),L=_.iR(Q.title).trim().length===0,E=!Q.publishDate||Q.publishDate.trim().length===0,y,v,J,f,t=!((y=Q.thumbnail)==null?0:(v=y.thumbnails)==null?0:v.length)||!((J=Q.thumbnail)==null?0:J.thumbnails[0].url)||((f=Q.thumbnail)==null?void 0:f.thumbnails[0].url.trim().length)===0;u.value&&q&&!(L||E||t)&&_.JB(u.value,q)},"Vy9K7b");
return _.p("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.p("script",{el:u,type:"application/ld+json"}))},"rk"),"player-microformat-renderer",{props:{data:_.iF}});var UdH={},gXf=["learning-journey-engagement-panel","PAlearning_chat"];
UdH.YtdLearningJourneyWatchBehavior=[_.n.YtRendererBehavior,_.AF.YtPlayerListenerBehavior,_.FK.YtRendererstamperBehavior,_.xK.YtActionHandlerBehavior,Ul.YtPageBehavior,_.KK.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 _.mW("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.w("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 _.mW("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 _.w("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.w("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 _.S8("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.S8("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 _.Of("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 _.w("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("web_watch_rounded_player_large")||_.w("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 _.w("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.w("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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:yS(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:yS(["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 g=this;this.watchController=void 0;this.pageDisposeJobs=[function(){g.showMetadataPlaceholder_()},
function(){_.w("web_watch_dont_clear_comments")||g.clearComments_()},
function(){g.clearPlayerAds_()},
function(){g.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;_.w("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.w("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new $jn(function(){return _.dv(g)},
this.hostElement);
this.pageDisposeJobs.push(function(){g.youThereManager_.reset()});
_.w("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){g.resetFullerscreenEduButtonForNewPlayback_()}));
_.w("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Jg;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;_.w("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.w("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));_.w("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.zr(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(g){g&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:g}),g.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(g){_.w("kevlar_watch_flexy_theater_manager")&&(this.theater=g,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.w("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(g){!_.w("kevlar_watch_while_v2")&&!_.w("web_watch_pip")||g||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(g){this.active!==void 0&&(this.fullscreen=g,_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(g){this.active!==void 0&&(_.hJ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(g>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(g){JJb("learning_journey_watch",["pbs","pbp","pbu"]);this.updatePageData_(g)},
updatePageData_:function(g){var u=this;if(g)if(this.data===g){this.onPageLoadWithSameData_();var q;(q=this.watchController)==null||q.setWatchNextResponse(this.data)}else this.data=g;this.playlist&&_.pW({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.fW("nw");this.loading=!1;_.M_(_.Hv,function(){ZUC();var Q,L=((Q=u.player)==null?void 0:Q.getVideoData().cpn)||"";C1n(function(E,y){dKh(E,y,L)})})},
onPageLoadWithSameData_:function(){_.w("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 g=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!g);this.set("loadingData.playlistLoading",g&&g!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),g=this.watchNextSkeletonEl_.firstElementChild;g;)g.classList.remove("hidden"),g=g.nextElementSibling;var u,q,Q;g=(u=this.loadingData)==null?void 0:(q=u.endpoint)==null?void 0:(Q=q.watchEndpoint)==null?void 0:Q.videoId;var L;g&&(L="https://i.ytimg.com/vi/"+g+"/frame0.jpg");_.Tr(this.hostElement).querySelector("#player").style.backgroundImage=L?"url("+L+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var g=_.Tr(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&g&&(g.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var u,q;(q=(u=this.watchMetadata).updateSentimentBarWidth)==
null||q.call(u);var Q,L;(L=(Q=this.watchMetadata).resize)==null||L.call(Q)}_.Tr(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(g){var u=_.Tr(this.hostElement).querySelector(g);u?_.ar(u,!1):_.Io(new _.Ji("Overscroll monitor not found for component: ",g))},
removeSplitScrollMouseTrap:function(g){var u=_.Tr(this.hostElement).querySelector(g);u?_.VD(u):_.Io(new _.Ji("Disposal component for  overscroll monitoring not found: ",g))},
onLoadingChanged_:function(g){g?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(g){var u=this;g?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Hv.addLowPriorityJob(function(){u.onWindowResized_(_.U3(!0))})},
updateTheaterModeState_:function(g){if(!_.w("kevlar_watch_flexy_theater_manager")){g=g||this.fullWindowMode_;if(this.theater!==void 0||g)this.theater=g;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();g&&j7p()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var g=this.theater;_.w("external_fullscreen")&&this.fullscreen&&(g=!0);g=g?_.Tr(this.hostElement).querySelector("#player-full-bleed-container"):_.Tr(this.hostElement).querySelector("#player-container-inner");var u=this.getPlayerContainer(),q=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip");u.parentElement!==g&&(q&&_.Bk().resolve(_.RO).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.dv(this).appendTo(g,u),g.appendChild(_.Tr(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var g=this;return _.D(function(u){if(u.nextAddress==1)return u.yield(_.Bk().resolve(_.RO).deactivate(),2);g.updatePlayerLocation();_.Wx(u)})},
updateCinematicsLocation:function(){var g=this.getElement("CINEMATICS");if(g){var u=this.getCinematicsLocationContainer();g.parentElement!==u&&u.appendChild(g);var q;(q=this.watchController)==null||ojZ(q)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Tr(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Tr(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(g,u){var q=document.documentElement.hasAttribute("dark"),Q=!q&&this.cinematicLightTheme;return g&&q||u&&q||(u||g)&&Q},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var g;(g=this.watchController)==null||g.setWatchNextResponse(this.data);_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Bk().resolve(_.cd).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.w("web_watch_start_chat_in_theater_mode")){var u,
q,Q;if((u=this.data)==null?0:(q=u.contents)==null?0:(Q=q.twoColumnWatchNextResults)==null?0:Q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var L,E;((L=this.data)==null?0:(E=L.contents)==null?0:E.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(g){var u;(u=this.watchController)==null||u.setPlayerResponse(this.playerData);g&&g.playabilityStatus&&(u=this.isVideoPlayable_(g.playabilityStatus,this.getPlayerOverlays_(this.data)),g=BT9(g.playabilityStatus),u&&!g||_.xt(this,function(){_.fW("pbu")}));
this.setPlayerAds_();_.Og(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(g){_.bR().dispatch(_.rF({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));g?this.activate_():this.deactivate_()},
attached:function(){var g=this;this.watchController=new S2h(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.w("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var u=_.dv(this);_.w("kevlar_disable_prepare_player")||u.preparePlayer();_.w("kevlar_watch_flexy_playlist_manager")||_.Bk().resolve(_.cd).setPlayer(u);this.updatePageMediaQueries();u={"--ytd-watch-flexy-scrollbar-width":Ti()+
"px"};!_.S8("kv_pl_mx_sz_ks")&&_.S8("kevlar_watch_max_player_width")&&(u["--ytd-watch-flexy-max-player-width-wide-screen"]=dyE+"px");_.S8("kevlar_watch_flexy_metadata_height")&&(u["--ytd-watch-flexy-space-below-player"]=myK+"px");this.safeUpdateStyles(u);_.w("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Deh(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return g.onPlayerTouchPanDown_()}}));
_.w("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Tr(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var g=Ti(),u=hG+g,q=u;this.fixedPanels&&(u+=Caf);var Q=657+g;g=1327+g;_.Tr(this.hostElement).querySelector("#two-column-query").query="(min-width: "+u+"px)";_.Tr(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Q+"px), (min-height: 630px) and (min-width: ")+(u+"px) and (max-width: ")+(g+"px)");_.Tr(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(g+"px)");_.Tr(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+q+"px)"},
calculateCurrentPlayerSize_:function(){return this.theater||_.w("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.IW(NaN,NaN):acH(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return acH(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Fo(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var g=this;this.onWindowResized_(_.U3());_.w("browse_skeleton_removal_on_watch_killswitch")||_.mW("IS_SHELL_LOAD")&&cDZ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var u=_.dv(this);u.addEventListener("yt-player-updated",_.zr(this,this.onPlayerUpdated_));u.getPlayerPromise().then(function(q){g.playerApiReady_(q)});
_.w("kevlar_watch_flexy_playlist_manager")||(u=_.Bk().resolve(_.cd),_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&u.addEventListener("yt-navigate",_.zr(this,this.onYtNavigate_)),u.setPlaylistComponent(_.Tr(this.hostElement).querySelector("#playlist")),u.addEventListener("yt-playlist-data-updated",_.zr(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Hv.addLowPriorityJob(function(){_.hJ(g.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.dv(this).removeEventListener("yt-player-updated",_.zr(this,this.onPlayerUpdated_));if(!_.w("kevlar_watch_flexy_playlist_manager")){var g=_.Bk().resolve(_.cd);_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&g.removeEventListener("yt-navigate",_.zr(this,this.onYtNavigate_));g.cancelVideoSkip();g.removeEventListener("yt-playlist-data-updated",_.zr(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();
_.hJ(this.hostElement,"yt-autonav-pause-player",!1);g=_.b1();_.w("kevlar_exit_fullscreen_leaving_watch")&&g&&_.dw(g)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(g){this.player&&this.player.updateVideoData({rvs:g.rvs})},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(g){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",g)},
onRetrieveLocation_:function(g,u){u.hasComments?u.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):u.locationRetrieved("/related_ajax",void 0);g.stopPropagation()},
onSubscriptionChanged_:function(g,u){this.player&&(u?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Tr(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Tr(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(g){this.player=g;g=g.getPlayerState();_.bR().dispatch(_.MG(g));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.w("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.w("kevlar_unified_player")||_.w("kevlar_player_new_bootstrap_adoption"))&&_.w_()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(g,u){u=u===void 0?!0:u;_.b1()&&_.w("external_fullscreen")&&_.dw(document.documentElement);this.theaterRequested_=g;u&&_.yW("wide",g?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.YJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.hJ(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(g){_.iD(g,typeof this.player),this.player&&_.iD(g,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var g;((g=this.player)==null?0:g.isFullscreen())?this.player.toggleFullscreen():_.YJ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(g,u){return this.loading?u:!!Object.keys(g).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(g){if(g){g=_.N(g);for(var u=g.next();!u.done;u=g.next())u=u.value,u.youThereRenderer&&cp9(this.youThereManager_,u.youThereRenderer)}},
setPlaylistData_:function(g){return g||{}},
userEngagementConfigDataChanged_:function(g){if(g)if(g.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var u=this.youThereManager_;_.nB()<g.lowEngagementThresholdMs||lUC(u,!0)}else g.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.YJ(this.hostElement,"yt-autonav-pause-user-engagement",[g])},
isPlayerUnavailable_:function(g,u,q){return!!g&&!this.isVideoPlayable_(g,q)&&!u},
getPlayerOverlays_:function(g){return(g==null?void 0:g.playerOverlays)||null},
isVideoPlayable_:function(g,u){if(!g)return!1;var q=g.status==="OK"||g.status==="LIVE_STREAM_OFFLINE",Q=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",g)||this.get("errorScreen.ypcTrailerRenderer",g);g=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",g);var L;u=u==null?void 0:(L=u.playerOverlayRenderer)==null?void 0:L.gatedActionsOverlayRenderer;return!!q||!!Q||!!g||!!u},
shouldProceedToNextVideo_:function(g,u,q){var Q=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",u),L=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];L=_.w("web_no_skip_video_on_verification_checks")?(g==null?void 0:g.status)&&L.includes(g.status):g&&g.status==="AGE_CHECK_REQUIRED";var E=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",g);E==void 0&&(E=!0);!q||this.isVideoPlayable_(g,this.getPlayerOverlays_(u))||
Q||L||!E||_.Bk().resolve(_.cd).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();kct()},
onPlayerFeedbackStartRequest_:function(g){_.YJ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:g}])},
onPlayerFeedbackArticleRequest_:function(g){_.YJ(this.hostElement,"yt-help-dialog-requested",[g])},
onPlayerYpcContentRequest_:function(){var g,u,q,Q,L,E,y,v,J=((g=this.data)==null?NaN:(u=g.contents)==null?NaN:(q=u.twoColumnWatchNextResults)==null?NaN:(Q=q.secondaryResults)==null?NaN:(L=Q.secondaryResults)==null?NaN:(E=L.offerModule)==null?NaN:(y=E.tvfilmOfferModuleRenderer)==null?NaN:(v=y.actionButtons)==null?NaN:v.length)-1;g=[".offerButton.buttonRenderer.",".actionButtons."+(J>=0?J:0)+".buttonRenderer."];u=_.N(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(q=u.next();!q.done;q=u.next())for(q=q.value,Q=_.N(g),L=Q.next();!L.done;L=Q.next())if(L="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+q+L.value,L=this.get(L+"navigationEndpoint",this.data)||this.get(L+"serviceEndpoint",this.data)||this.get(L+"command",this.data)){_.nE(L,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(g){_.hJ(this.hostElement,"yt-autonav-pause-player",g)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(g){g()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(g){switch(g){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(g){switch(g){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.hJ(this.hostElement,"yt-autonav-pause-player-ended")}_.bR().dispatch(_.MG(g))},
onPlayerSubscribe_:function(g){_.YJ(this.hostElement,"yt-player-subscribe",[g])},
onPlayerUnsubscribe_:function(g){_.YJ(this.hostElement,"yt-player-unsubscribe",[g])},
onPlayerAdYtShowToast_:function(g){_.YJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:g.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(g){if(g)return g},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(g){return!_.Of("web_watch_move_summary_to_sd")&&!!g},
computeWatchMetadataRefresh:function(){return _.w("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var g,u,q,Q;this.watchNextSecondaryResults=(g=this.data)==null?void 0:(u=g.contents)==null?void 0:(q=u.twoColumnWatchNextResults)==null?void 0:(Q=q.secondaryResults)==null?void 0:Q.secondaryResults}},
setRichGridRendererData:function(g){this.richGridRendererData=g},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var g,u=(g=this.data)==null?void 0:g.engagementPanels;if(u==null?0:u.length){g=null;u=_.N(u);for(var q=u.next();!q.done;q=u.next()){q=q.value;var Q=void 0;if(((Q=q.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)==="engagement-panel-structured-description"){g=q;break}}var L,E,y;g=(L=g)==null?void 0:(E=L.engagementPanelSectionListRenderer)==null?void 0:(y=E.content)==null?void 0:y.structuredDescriptionContentRenderer;if(g==null?0:g.items){L=
[];E=_.N(g.items);for(y=E.next();!y.done;y=E.next()){y=y.value;if(!_.w("sd_horizontal_list_show_nav_killswitch")){var v=Q=q=u=g=void 0,J=void 0,f=(g=y.horizontalCardListRenderer)==null?void 0:(u=g.header)==null?void 0:(q=u.richListHeaderRenderer)==null?void 0:(Q=q.navigationButton)==null?void 0:(v=Q.buttonRenderer)==null?void 0:(J=v.command)==null?void 0:J.commandExecutorCommand;f&&f.commands&&(f.commands=f.commands.filter(function(t){return!_.c(t,LFE)}))}y.expandableVideoDescriptionBodyRenderer||
y.videoDescriptionHeaderRenderer||L.push(y)}return{items:L}}}},
isPlaShelfEnabled_:function(g){if((this.get("adPlacements",g)||[]).length)return!0;g=this.get("playerAds",g)||[];return!(!g.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",g[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var g=this;_.hJ(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var u=this.getScrollTop()>0;this.gestures_&&(u?this.gestures_.detach():this.gestures_.attach());u!==this.showFullerscreenEdu_&&_.w("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=u,_.dv(this).getPlayerPromise().then(function(q){q.updateFullerscreenEduButtonVisibility(g.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.hJ(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var g=this;this.commentsReady=!1;_.Hv.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.M_(_.Hv,function(){g.setComments_()},1E3)},
setComments_:function(){if(!_.w("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.fW("cmi");_.Hv.cancelJob(this.setCommentsJobId_);var g=zB9(this.data);if(g&&g.length){g=_.N(g);for(var u=g.next();!u.done;u=g.next())if(u=u.value,this.get("itemSectionRenderer.sectionIdentifier",u)==="comment-item-section"){this.comments=u.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.hJ(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.fW("cmc")},
doRemoveComments_:function(){this.comments={};_.w("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Hv.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Hv.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(g,u){var q=_.c(u.endpoint,_.l1);q&&(!(u=this.get("data.currentVideoEndpoint.watchEndpoint"))||q.videoId!==u.videoId||q.playlistId&&q.playlistId!==u.playlistId||q.index!==void 0&&q.index!==u.index||typeof q.startTimeSeconds!=="number"||(g.stopPropagation(),this.setScrollTop(0),_.dv(this).getPlayerPromise().then(function(Q){var L=q.startTimeSeconds;Q.seekTo(L);Q.wakeUpControls();L<Q.getDuration()&&Q.playVideo()})))},
updatePlayerStartTime_:function(){var g=cgt();"t"in g&&(g=xyH(g.t),this.player.seekTo(g,!0))},
updateTitleFromWatchNext:function(g){g=zB9(g);var u,q;(g=_.iR(g==null?void 0:(u=g[0])==null?void 0:(q=u.videoPrimaryInfoRenderer)==null?void 0:q.title))&&_.hJ(this.hostElement,"yt-update-title",g)},
updateTitle_:function(g){g=this.get("videoDetails.title",g)||"";_.hJ(this.hostElement,"yt-update-title",g)},
syncWithRemoteVideo_:function(g,u,q){if(this.active&&this.player){var Q=this.player.getVideoData();Q.video_id===q&&(q=Q.list,_.w("polymer_enable_mdx_queue")&&q&&q.startsWith("RQ")&&(q=void 0),Q.video_id!==g||q!=u)&&(g=_.w("kevlar_player_watch_endpoint_navigation")?_.Ulm(Nrt(g,u)):_.m7(g,u),_.hJ(this.hostElement,"yt-navigate",{endpoint:g,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var g=document.querySelector("#watch-page-skeleton");if(g){var u=g.querySelector("#primary-info"),q=g.querySelector("#secondary-info"),Q=g.querySelector("#related");u&&_.Tr(this.hostElement).querySelector("#info-skeleton").appendChild(u);q&&_.Tr(this.hostElement).querySelector("#meta-skeleton").appendChild(q);Q&&(_.Tr(this.hostElement).querySelector("#related-skeleton").appendChild(Q),this.watchNextSkeletonEl_=Q);_.UU(g)}},
handlePlayerUpdated_:function(){_.dv(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(g,u){if(this.watchNextSkeletonEl_&&typeof u!=="undefined"){var q=this.watchNextSkeletonEl_.children,Q=g&&g.indexSplices.length?g.indexSplices[0].index:0;g=Math.min(this.watchNextShownItems.length,q.length);u||(Q=0,g=q.length);for(u=Q;u<g;u++)q[u].classList.add("hidden")}},
onPlayerFullscreenChange_:function(g){_.w("external_fullscreen")||_.YJ(this.hostElement,"yt-player-fullscreen",[g.fullscreen])},
onFullscreenChange_:function(g){this.fullscreen=g;this.gestures_&&this.gestures_.update(this.fullscreen);var u=_.dv(this);u.getPlayerPromise().then(function(q){q.setFauxFullscreen(!!_.b1())});
this.updateFullBleedElementLocations();g&&(u.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(g,u){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!u},
computeIsDonationShelfCollapsed_:function(g){return g},
computeShouldShowMerchShelf:function(g,u){return u&&!!g},
computeResponseHasComments:function(g){var u,q,Q,L,E;return!!(g==null?0:(u=g.contents)==null?0:(q=u.twoColumnWatchNextResults)==null?0:(Q=q.results)==null?0:(L=Q.results)==null?0:(E=L.contents)==null?0:E.some(function(y){var v;return(y==null?void 0:(v=y.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(g,u){this.responseHasComments=this.computeResponseHasComments(this.data);return!!g&&!!Object.keys(g).length&&!u},
identity:_.am,onWindowResized_:function(g){this.windowSize_=g;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onPlayerPresentingVideoDataChange_:function(g){var u=this;g&&g.type!=="dataloaded"&&g.type!=="dataupdated"||_.dv(this).getPlayerPromise().then(function(q){var Q=q.getPlayerState();Q!==5&&Q!==0&&(q=1/q.getVideoAspectRatio(),u.videoHeightToWidthRatio_!==q&&(u.videoHeightToWidthRatio_=q))})},
schedulePlayerSizeUpdate_:function(g){var u=this,q=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"),Q=function(){if(u.watchMetadata){var L,E;(E=(L=u.watchMetadata).resize)==null||E.call(L)}_.dv(u).getPlayerPromise().then(function(y){if(_.Of("kevlar_set_internal_player_size")){if(!q||!_.Bk().resolve(_.RO).isMiniplayerActive()){var v=u.calculateCurrentPlayerSize_();y.setInternalSize(v.width,v.height)}}else y.setSize(NaN,NaN);_.w("kevlar_watch_while")&&u.updateWatchWhileScrollThreshold_()})};
g?Q():_.gT(_.Hv,Q)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(g){this.set("data.survey",g.detail)},
onYtShowSurveyCommand_:function(g){this.set("data.survey",_.c(g,rVZ).survey)},
onDownloadedVideoDeleted:function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1){if(!u.active||(q=u.playerData)==null||!q.offlineState||u.videoId!==g)return L.return();(Q=u.player)==null||Q.stopVideo();_.Uw().navigatingAwayFromWatchDeletedVideo=!0;_.nE(_.EjS,u.hostElement);return L.yield(_.Uw().navigationFinishPromise,2)}_.Uw().navigatingAwayFromWatchDeletedVideo=!1;_.Wx(L)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var g;this.theater?g=_.tL(.5625*this.windowSize_.width,480,this.windowSize_.height-185):g=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==g&&(this.watchWhileScrollThreshold_=g)}},
isTwoColumnsChanged_:function(g,u){if(g!==!0||u!==void 0){g=!_.w("live_chat_over_engagement_panels");u=_.Tr(this.hostElement).querySelector("#chat-container");var q=_.Tr(this.hostElement).querySelector("#plj-sidebar"),Q=_.Tr(this.hostElement).querySelector("#panels"),L=_.Tr(this.hostElement).querySelector("#plj-panels"),E=_.Tr(this.hostElement).querySelector("#plj-playlist"),y=_.Tr(this.hostElement).querySelector("#alerts"),v=_.Tr(this.hostElement).querySelector("#playlist"),J=_.Tr(this.hostElement).querySelector("#related"),
f=_.Tr(this.hostElement).querySelector("#donation-shelf"),t=_.Tr(this.hostElement).querySelector("#comments");this.isTwoColumns_?(y=_.Tr(this.hostElement).querySelector("#secondary-inner"),y.appendChild(q),q.appendChild(E),E.appendChild(v),q.appendChild(L),g&&y.appendChild(Q),_.w("web_watch_theater_chat")||y.appendChild(u),g||y.appendChild(Q),y.appendChild(f),y.appendChild(J)):(g&&_.wX(Q,y),_.wX(v,y),_.w("web_watch_theater_chat")||_.wX(u,y),g||_.wX(Q,y),_.wX(f,y),t&&(L&&_.wX(L,t),_.wX(J,t)));_.w("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.w("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.w("web_watch_theater_chat")){var g=_.Tr(this.hostElement).querySelector("#chat-container"),u=this.theater&&!this.fullscreen||_.w("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&u?_.w("web_watch_theater_chat_beside_player")?(u=_.Tr(this.hostElement).querySelector("#panels-full-bleed-container"),(g==null?void 0:g.parentElement)!==u&&u.append(g),this.panelsBesidePlayer=!0):_.w("web_watch_theater_fixed_chat")&&
(u=_.Tr(this.hostElement).querySelector("#columns"),(g==null?void 0:g.parentElement)!==u&&u.append(g),this.fixedPanels=!0):(_.w("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.w("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),u=_.Tr(this.hostElement).querySelector("#playlist"),g&&u?_.cH(g,u):_.Io(new _.Ji("Missing element when updating chat location",{"chatContainer defined":!!g,"playlist defined":!!u})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(g,u){return _.w("sw_metadata_vis_toggle_ks")?!0:!!g||!!u},
computeForceDarkPanelTheme:function(g){return _.w("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&g:!1},
safeUpdateStyles:function(g){try{_.x_(this.hostElement,g)}catch(u){_.Io(u)}},
videoHeightToWidthRatioChanged_:function(g,u){u&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(g){this.videoHeightToWidthRatio_=1/g},
computeIsVerticalVideo_:function(g){return g>=1},
computeIsFourThreeToSixteenNineVideo_:function(g){return g<=.7501&&g>=.5624},
computeIsExtraWideVideo_:function(g){return g<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.dv(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.dv(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){IUZ(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(g){var u=_.P9(g)||0;_.Ex(g,u+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var g=_.P9("yt-fullerscreen-edu-button-click-count")||0,u=_.P9("yt-fullerscreen-edu-button-shown-count")||0,q=_.S8("external_fullscreen_button_shown_threshold"),Q=g>=_.S8("external_fullscreen_button_click_threshold")||u>=q;_.dv(this).getPlayerPromise().then(function(L){L.updateFullerscreenEduButtonSubtleModeState(Q)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(g,u){return u},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Bk().resolve(_.cd).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var g=this;this.panelMaxHeightUpdateJob_&&_.Hv.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Hv.addLowPriorityJob(function(){g.panelMaxHeightUpdateJob_=0;var u;!g.isTwoColumns_||g.theater||g.fullscreen?u=460:u=g.calculateNormalPlayerSize_().height;var q=u+"px";_.w("live_chat_taller_height")&&!g.theater&&(q="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.w("live_chat_medium_height")&&
!g.theater&&(q="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.w("live_chat_scaled_height")&&!g.theater&&(q="calc(100vh - var(--ytd-toolbar-height) - 238px)");g.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":u+"px","--ytd-watch-flexy-chat-max-height":q,"--ytd-watch-flexy-structured-description-max-height":u+"px","--ytd-watch-flexy-comments-panel-max-height":u+"px","--ytd-comments-engagement-panel-content-height":u+"px"})})},
onYtShowEngagementPanelScrimAction_:function(g){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",g)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.xJ(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(g){var u=_.Tr(this.hostElement).querySelector("#engagement-panel-scrim");g?u.addEventListener("tap",_.zr(this,this.onEngagementPanelScrimClick_)):u.removeEventListener("tap",_.zr(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(g){if(this.hostElement.contains(g)&&!this.scrollToAnimation_.isAnimating()){var u=g.offsetTop-24;g=g.offsetTop+g.offsetHeight+24;var q=this.getPageScrollingElement(),Q=this.getScrollTop(),L=Q+q.clientHeight-56;if(u<Q+56)u-=56;else if(g>L)u=g-q.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,u),500)}},
onYtSignalActionScrollToComments:function(){var g=this.hostElement.querySelector("#comments");if(g&&!this.scrollToAnimation_.isAnimating()){g=g.offsetTop-56-24;if(_.w("kevlar_comment_teaser_scroll_to_midpoint")&&(g-=_.qi().height/3,g<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,g),500)}},
onYtEngagementPanelVisibleChanged:function(g,u,q){this.active&&this.trackEngagementPanelVisibility&&!nWL.includes(q)&&(u==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(q),u!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&u!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(q),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(g){return g?"":"watch-active-metadata"},
computeNewMetadataClass:function(g){return g?"watch-active-metadata":""},
computeFullBleedPlayer:function(g,u){return g||u},
computeDefaultLayout:function(g){return!g},
computeDefaultTwoColumnLayout:function(g,u){return!g&&u},
computeWatchWhilePanelsActive:function(g,u){return g||u},
computeNoBorderOnChat:function(g){return _.w("web_watch_theater_chat_no_border")&&g},
computeLiveChatPresentAndExpanded:function(g,u){return g&&!u},
computePanelExpanded:function(g,u,q){return g||u||q},
onChangeMarkersVisibility:function(g){_.dv(this).getPlayerPromise().then(function(u){var q;(q=u.changeMarkerVisibility)==null||q.call(u,_.c(g,Dz).isVisible||!1,_.c(g,Dz).entityKeys||[],_.c(g,Dz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(g){this.liveChatCollapsed=g.detail;_.bR().dispatch(xIn(g.detail))},
provideRenderingData:function(g,u){switch(g){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=u;break;case "PRIMARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=u);this.videoPrimaryInfoRendererValue=u==null?void 0:u.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=u);this.videoSecondaryInfoRendererValue=u==null?void 0:u.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
u;break;case "CLARIFICATION":this.clarifyBoxValue=u;break;case "LIVE_CHAT":this.conversationBar=u;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=u;break;case "PLAYLIST":this.externalPlaylistData_=u!=null?u:{};break;case "MERCH_SHELF":this.merchShelfValue=u==null?void 0:u.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=u;break;case "OFFER_MODULE":this.offerModule=u;break;case "LIMITED_STATE":this.limitedStateValue=u;break;case "DONATION_SHELF":this.donation=u;break;
case "ALERTS":this.alertsValue=u;break;case "COMMENTS":this.comments=u;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=u;break;case "ENGAGEMENT_PANELS":this.engagementPanels=u;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=u;break;case "RICH_GRID_RENDERER":this.richGridRendererData=u;break;case "EXPANDABLE_METADATA":this.expandableMetadata=u;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=u}},
toggleCinematicsActive:function(g){this.cinematicsActive=g},
getLearningJourneyEngagementPanels:function(g){return gXf.map(function(u){return g.find(function(q){var Q;return(q==null?void 0:(Q=q.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)===u})}).filter(function(u){return u!==void 0})},
getNonLearningJourneyEngagementPanels:function(g){return g.filter(function(u){var q;return!gXf.includes((u==null?void 0:(q=u.engagementPanelSectionListRenderer)==null?void 0:q.targetId)||"")})}}];var iI=function(){return _.gO.apply(this,arguments)||this};
_.A(iI,_.gO);_.P=iI.prototype;_.P.activeChanged=function(){if(this.active){var g=_.Tr(this.hostElement).querySelector("#header");g&&_.hJ(g,"iron-resize");window.addEventListener("scroll",_.zr(this,this.onScroll))}else window.removeEventListener("scroll",_.zr(this,this.onScroll)),_.hJ(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.P.guideVisibleChanged=function(){var g=_.Tr(this.hostElement).querySelector("#header");g&&_.hJ(g,"iron-resize")};
_.P.onScroll=function(){var g=this;_.c$(this,"onScroll",function(){var u=_.Tr(g.hostElement).querySelector("#header");u&&u.polymerController&&(u=u.polymerController.getScrollState().progress===1?"standard":"seamed",_.hJ(g.hostElement,"yt-request-panel-mode-change",{mode:u}))},10)};
_.P.tabsChanged=function(){if(this.tabs){for(var g=null,u=0,q=this.tabs.length;u<q;++u){var Q=this.tabs[u].tabRenderer;if(Q&&Q.selected){g=u;break}}this.selected=g}};
_.P.onTabsActivate=function(g){_.hJ(this.hostElement,"yt-navigate",{endpoint:this.tabs[g.detail.selected].tabRenderer.endpoint})};
iI.prototype.tabsChanged=iI.prototype.tabsChanged;iI.prototype.guideVisibleChanged=iI.prototype.guideVisibleChanged;iI.prototype.activeChanged=iI.prototype.activeChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],iI.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.a(),_.K("design:type",Array)],iI.prototype,"tabs",void 0);
_.Y([_.a(),_.K("design:type",Object)],iI.prototype,"selected",void 0);_.Y([_.a(),_.K("design:type",Boolean)],iI.prototype,"active",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],iI.prototype,"disableHeaderFluidWidth",void 0);_.Y([_.k_("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iI.prototype,"activeChanged",null);
_.Y([_.k_("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iI.prototype,"guideVisibleChanged",null);_.Y([_.k_("tabs"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iI.prototype,"tabsChanged",null);_.Y([_.uU()],iI);var ucH=[_.n.YtRendererBehavior,_.$e.YtdGuideStateAwareBehavior,iI.prototype];var QZt=function(g){_.Lh.call(this);var u=this;this.JSC$21568_watchApi=g;this.observer=null;var q=this.JSC$21568_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){qNn(u)});
this.addOnDisposeCallback(function(){u.JSC$21568_watchApi.unsubscribeByKey(q);u.observer&&(u.observer.disconnect(),u.observer=null)});
qNn(this)};
_.A(QZt,_.Lh);var qNn=function(g){var u,q,Q,L,E;_.D(function(y){if(y.nextAddress==1){g.observer&&(g.observer.disconnect(),g.observer=null);u=g.JSC$21568_watchApi.getWatchNextResponse();if(!u)return y.return();q=_.c(u,eDh);return((Q=q)==null?0:Q.enableCreatorChatbot)&&q.creatorChannelId?_.w("enable_creator_chatbot_link_out")?y.yield((0,_.SQ)("NSzT5"),6):y.yield((0,_.SQ)("NSzT5"),5):y.jumpTo(0)}if(y.nextAddress!=6)return L=_.Lax,L(q.creatorChannelId),y.jumpTo(0);E=_.EXt;E(q.creatorChannelId);_.Wx(y)})};var CL=function(g){_.Lh.call(this);this.JSC$21572_watchApi=g;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;PcC(this)};
_.A(CL,_.Lh);var PcC=function(g){_.D(function(u){if(u.nextAddress==1)return u.yield(NYL(g),2);sZx(g);_.Wx(u)})},NYL=function(g){var u,q,Q,L,E,y,v,J,f;
return _.D(function(t){if(t.nextAddress==1)return t.yield(g.JSC$21572_watchApi.playerApi,2);u=t.yieldResult;g.JSC$21572_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){ycL(g)});
g.JSC$21572_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){g.isShelfVisible?vXp(g):bI(g)});
q=_.bR().subscribe(function(){g.isTheaterMode=_.Dc(_.bR().getState());g.isTheaterMode?bI(g):DtH(g)});
Q=g.JSC$21572_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){sZx(g)});
L=function(e){g.onCueRangeEnter(e)};
u.addEventListener("onCueRangeEnter",L);E=function(e){g.onCueRangeExit(e)};
u.addEventListener("onCueRangeExit",E);y=function(){g.isSeeking=!0};
u.addEventListener("SEEK_TO",y);v=function(){g.onSeekComplete()};
u.addEventListener("SEEK_COMPLETE",v);J=function(){g.onAdStart()};
u.addEventListener("onAdStart",J);f=function(){g.onAdComplete()};
u.addEventListener("onAdComplete",f);g.addOnDisposeCallback(function(){q();g.JSC$21572_watchApi.unsubscribeByKey(Q);u.removeEventListener("onCueRangeEnter",L);u.removeEventListener("onCueRangeExit",E);u.removeEventListener("SEEK_TO",y);u.removeEventListener("SEEK_COMPLETE",v);u.removeEventListener("onAdStart",J);u.removeEventListener("onAdComplete",f)});
_.Wx(t)})},pPp=function(g){var u,q,Q,L,E,y,v,J,f;
return(E=(u=g.contents)==null?void 0:(q=u.twoColumnWatchNextResults)==null?void 0:(Q=q.results)==null?void 0:(L=Q.results)==null?void 0:L.contents)==null?void 0:(y=E.find(function(t){var e,G,R;return(e=t.itemSectionRenderer)==null?void 0:(G=e.contents)==null?void 0:(R=G[0])==null?void 0:R.shoppingTimelyShelfViewModel}))==null?void 0:(v=y.itemSectionRenderer)==null?void 0:(J=v.contents)==null?void 0:(f=J[0])==null?void 0:f.shoppingTimelyShelfViewModel},sZx=function(g){var u;
_.D(function(q){if(q.nextAddress==1)return(u=g.JSC$21572_watchApi.getWatchNextResponse())?q.yield(ycL(g),2):q.return();g.shoppingTimelyShelfViewModel=pPp(u);Jch(g);jZp(g);_.Wx(q)})},Jch=function(g){var u,q=(u=g.shoppingTimelyShelfViewModel)==null?void 0:u.offerIdToVariants;
q&&(u=q.filter(function(Q){return Q.key&&Q.value}).map(function(Q){return[Q.key,
Q.value]}),g.variantsMap=new Map(u))},jZp=function(g){var u,q,Q,L,E,y;
_.D(function(v){if(v.nextAddress==1)return(q=(u=g.shoppingTimelyShelfViewModel)==null?void 0:u.cueRanges)?v.yield(g.JSC$21572_watchApi.playerApi,2):v.return();Q=v.yieldResult;g.cueRanges=q;L=_.N(q);for(E=L.next();!E.done;E=L.next())y=E.value,y.startTime!==void 0&&y.endTime!==void 0&&y.id!==void 0&&Q.addCueRange("shopping_timely_shelf"+y.id,fJf(y.startTime),fJf(y.endTime));_.Wx(v)})},fJf=function(g){return Number(g.seconds||0)+(g.nanos||0)/1E9};
CL.prototype.onCueRangeEnter=function(g){if(g.startsWith("shopping_timely_shelf")&&(this.activeCueId=g,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){g=g.substring(21);var u,q,Q=(u=this.variantsMap)==null?void 0:(q=u.get(g))==null?void 0:q.shelf;Q&&(this.JSC$21572_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",Q),vXp(this))}};
CL.prototype.onCueRangeExit=function(g){g.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||bI(this))};
CL.prototype.onSeekComplete=function(){this.isSeeking=!1;DtH(this)};
var vXp=function(g){g.shoppingTimelyShelfViewModel&&(g.isShelfVisible=!0,_.VC.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},bI=function(g){g.shoppingTimelyShelfViewModel&&g.isShelfVisible&&(g.isShelfVisible=!1,_.VC.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},ycL=function(g){var u,q,Q,L,E;
return _.D(function(y){if(y.nextAddress==1)return y.yield(g.JSC$21572_watchApi.playerApi,2);u=y.yieldResult;if(g.cueRanges)for(q=_.N(g.cueRanges),Q=q.next();!Q.done;Q=q.next())L=Q.value,L.id&&(E="shopping_timely_shelf"+L.id,u.removeCueRange(E));g.JSC$21572_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});bI(g);g.shoppingTimelyShelfViewModel=void 0;g.cueRanges=void 0;g.variantsMap=void 0;g.isSeeking=!1;g.activeCueId=void 0;_.Wx(y)})};
CL.prototype.onAdStart=function(){this.isAdPlaying=!0;bI(this)};
CL.prototype.onAdComplete=function(){this.isAdPlaying=!1;DtH(this)};
var DtH=function(g){if(g.activeCueId)g.onCueRangeEnter(g.activeCueId);else bI(g)};var $tK=function(g){_.Lh.call(this);var u=this;this.JSC$21579_watchApi=g;g=_.qG(_.bR(),_.jak,function(){M1h(u)});
this.addOnDisposeCallback(g);g=_.qG(_.bR(),q3n,function(){M1h(u)});
this.addOnDisposeCallback(g);t1f(this);eHt(this);Gaf()};
_.A($tK,_.Lh);var t1f=function(g){var u=function(Q){_.bR().dispatch(Kmb(Q.matches))},q=window.matchMedia("(max-width: "+(999+Ti())+"px)");
q.addListener(u);g.addOnDisposeCallback(function(){q.removeListener(u)});
u(q)},eHt=function(g){g.JSC$21579_watchApi.registerActionHandler("yt-window-resized",function(){Gaf()});
g.addOnDisposeCallback(function(){g.JSC$21579_watchApi.unregisterActionHandler("yt-window-resized")})},Gaf=function(){var g=_.U3();
_.bR().dispatch(_.rF({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:g.width,height:g.height}}}))},M1h=function(g){var u;
_.D(function(q){if(q.nextAddress==1)return q.yield(g.JSC$21579_watchApi.playerApi,2);u=q.yieldResult;u.setSize(NaN,NaN);_.Wx(q)})};var RHh=function(g){_.Lh.call(this);var u=_.Bk().resolve(_.LP);QxK(u,g.getElement("PLAYER_CONTAINER"),g.getElement("BELOW_THE_PLAYER"),g.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var q=g.getElement("PLAYER_CONTAINER"),Q=g.getElement("BELOW_THE_PLAYER"),L=g.getElement("SECONDARY");u.isLockupToWatchTransitionEnabled&&(q&&_.t7(u.viewTransitionCoordinator,q),Q&&_.t7(u.viewTransitionCoordinator,Q),L&&_.t7(u.viewTransitionCoordinator,L))})};
_.A(RHh,_.Lh);var dD=function(g){HZ.call(this);var u=this;this.rootElement=g;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return u.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(q){u.initOrDisposeActiveModules(q)}));
this.onAttached()};
_.A(dD,HZ);_.P=dD.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(g){return this.rootElement.getElement(g)};
_.P.setPlayerResponse=function(g){this.playerResponse=g;this.publish("PLAYER_RESPONSE_UPDATED",g)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(g){this.watchNextResponse===g?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=g,this.publish("WATCH_NEXT_RESPONSE_UPDATED",g))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(g,u){var q=this;if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var Q={};_.XU(_.VC.getInstance(),(Q[g]=u,Q),this.getRoot())}else this.actionHandlers.has(g)||(this.actionHandlers.set(g,[]),Q={},_.XU(_.VC.getInstance(),(Q[g]=function(){var L=_.UT.apply(0,arguments);return(q.actionHandlers.get(g)||[]).map(function(E){return E.apply(null,_.na(L))})},Q),this.getRoot())),this.actionHandlers.get(g).push(u)};
_.P.unregisterActionHandler=function(g){if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var u={};_.r9(_.VC.getInstance(),(u[g]=!0,u),this.getRoot())}else(u=this.actionHandlers.get(g))?(u.pop(),u.length===0&&(u={},_.r9(_.VC.getInstance(),(u[g]=!0,u),this.getRoot()),this.actionHandlers.delete(g))):_.Io(new _.Ji("Attempted to unregister an action handler which is not registered.",g))};
_.P.addPageDisposeJob=function(g){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Chk(this.rootElement.pageDisposeJobs,g)};
_.P.removePageDisposeJob=function(g){this.rootElement.pageDisposeJobs&&_.TM(this.rootElement.pageDisposeJobs,g)};
_.P.dispatchEvent=function(g,u){_.hJ(this.rootElement,g,u)};
_.P.provideRenderingData=function(g,u){this.rootElement.provideRenderingData(g,u)};
_.P.scrollWatchTo=function(g,u){var q;(q=this.watchScrollManager)==null||q.scrollWatchTo(g,u)};
_.P.focusOnPlayer=function(){var g=this.getElement("PLAYER");_.xt(g,function(){if(g&&g.firstElementChild){var u=g.querySelector(".html5-video-player");u&&(_.Fq(_.Bk().resolve(_.UE)),u.focus())}else _.Io(Error("Wl"))})};
_.P.subscribeToActiveChanged=function(g,u){u=u===void 0?!0:u;var q=_.qG(_.bR(),gZC,function(Q){g(Q)});
u&&g(gZC(_.bR().getState()));return q};
_.P.isActive=function(){return gZC(_.bR().getState())};
_.P.onAttached=function(){var g=_.w("external_fullscreen");_.w("use_unified_flag_accessor")&&(g=_.Bk().resolve(_.hIx).retriever.getFlag(_.c65));(g||_.mW("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var wPb=function(g){return g.getRoot().is==="ytd-watch-flexy"||g.getRoot().is==="ytd-watch-grid"},Fm=function(g){return g.getRoot().is==="ytd-watch-fixie"};
dD.prototype.initPersistentModules=function(){if(Fm(this)||wPb(this)&&_.w("kevlar_watch_flexy_theater_manager")){var g=new xhh(this);_.z$(this,g)}g=new Npp(this);_.z$(this,g);g=new MC(this);_.z$(this,g);g=new gjb(this);_.z$(this,g);g=new lI(this);_.z$(this,g);g=new tl(this);_.z$(this,g);if(Fm(this)||wPb(this)&&_.w("kevlar_watch_flexy_playlist_manager"))g=new huZ(this),_.z$(this,g);_.w("web_thumbnail_to_watch_transition")&&(g=new RHh(this),_.z$(this,g))};
dD.prototype.initOrDisposeActiveModules=function(g){g?(this.watchScrollManager=new I$(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new cxK(this)),_.w("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new CL(this)),this.activeModules.push(new YXK(this)),Fm(this)&&this.activeModules.push(new $tK(this)),this.activeModules.push(new zux(this)),this.activeModules.push(new fNL(this)),(Fm(this)||_.w("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new zRL(this)),
this.activeModules.push(new CjL(this)),(Fm(this)||_.w("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new klh(this)),(Fm(this)||_.w("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new NDz(this)),_.Of("kevlar_watch_cinematics")&&(this.watchCinematicManager=new VqK(this),this.activeModules.push(this.watchCinematicManager)),_.w("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new mdZ(this)),_.w("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new Lrb(this)),
g=_.w("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.w("kevlar_watch_flexy_comments_manager")&&!g&&this.activeModules.push(new zof(this)),_.w("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new vgZ(this)),this.activeModules.push(new Uhp(this)),this.activeModules.push(new Axf(this)),_.w("web_enable_timely_actions")&&this.activeModules.push(new Q$L(this)),_.w("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new Avp(this)),_.w("web_watch_enable_multiview_manager")&&
this.activeModules.push(new MSK(this)),_.w("web_fullscreen_components")&&this.activeModules.push(new UvL(this)),_.w("web_player_rtr_ctrls")&&this.activeModules.push(new lZh(this)),(_.w("enable_creator_chatbot")||_.w("enable_creator_chatbot_link_out"))&&this.activeModules.push(new QZt(this))):(_.mv(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
dD.prototype.disposeInternal=function(){HZ.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.z3.Object.defineProperties(dD.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.dL(_.r(function(g){var u=g.data;g=_.N(_.jR(!1,void 0,"VotqNe"));var q=g.next().value,Q=g.next().value;_.I4(function(){_.VC.getInstance().triggerAction("yt-request-timely-shelf-state")});
var L=_.G9(function(){var f,t,e=(f=_.c(u().rendererContext,_.uF))==null?void 0:(t=f.loggingDirectives)==null?void 0:t.trackingParams;if(e)return _.Lr(e)},void 0,"AvMXxb");
_.XU(_.VC.getInstance(),{"yt-hide-shopping-timely-shelf":function(){Q(!1);var f=_.j_(),t=L();f&&t&&_.lH(f,[t])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){Q(!0);var f=_.j_(),t=L();f&&t&&_.Z0(f,[t])})}});
var E=function(){var f;return(f=u().image)==null?void 0:f.image},y=function(){var f,t;
return!!((f=E())==null?0:(t=f.sources)==null?0:t.some(function(e){var G;return!!(e==null?0:(G=e.clientResource)==null?0:G.imageName)}))},v=function(){var f;
return((f=u().image)==null?void 0:f.height)||40},J=function(){var f;
return(f=u().image)==null?void 0:f.backgroundColor};
g={};return _.p("yt-shopping-timely-shelf-content-view-model",{el:_.lF(_.J7(function(){return u().rendererContext})),
class:_.Ty("ytShoppingTimelyShelfContentViewModelHost",(g.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(u().image||u().avatar||u().line1)&&q()},g)),
style:_.xH({"--shopping-timely-shelf-content-padding-top":function(){var f;return nSC((f=u().padding)==null?void 0:f.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var f;return nSC((f=u().padding)==null?void 0:f.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var f;return nSC((f=u().padding)==null?void 0:f.start)},
"--shopping-timely-shelf-content-padding-end":function(){var f;return nSC((f=u().padding)==null?void 0:f.end)},
"--yt-shopping-timely-shelf-background-color":function(){return u().backgroundColor!==void 0?_.jh(u().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var f,t;return((t=(f=u().image)==null?void 0:f.cornerRadius)!=null?t:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return J()!==void 0?_.jh(J()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var f;return(((f=u().image)==null?void 0:f.width)||40)+"px"}})},_.p(_.M,{cond:E,
then:function(f){var t={};return _.p(_.IT,{preserveHeight:!0,preserveWidth:!0,height:v,data:f,alt:"",className:_.Ty("ytShoppingTimelyShelfContentViewModelImage",(t.ytShoppingTimelyShelfContentViewModelIcon=y,t))})}}),_.p(_.Up,{data:function(){return u().avatar}},{avatarViewModel:_.jv}),_.p("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.p(_.Up,{data:function(){return u().line1}},{shoppingContentLineViewModel:function(f){return _.p(_.d4,{data:f.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.p(_.Up,{data:function(){return u().line2}},{shoppingContentLineViewModel:function(f){return _.p(_.d4,{data:f.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.p("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.p(_.Up,{data:function(){var f;
return(f=u().button)!=null?f:[]}},{buttonViewModel:function(f){var t=f.data;
return _.p(_.TT,{data:t,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(e){t().onTap&&e.stopPropagation()}})}})))},"sk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.H2}});var ccn={};
ccn.YtdWatchBehavior=[_.n.YtRendererBehavior,_.AF.YtPlayerListenerBehavior,_.FK.YtRendererstamperBehavior,_.xK.YtActionHandlerBehavior,Ul.YtPageBehavior,_.KK.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 _.mW("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.w("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 _.mW("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 _.w("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.w("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 _.S8("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.S8("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 _.w("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.w("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.w("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.w("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.w("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_enable_ghost_cards")||_.w("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 _.w("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 _.w("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("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 _.w("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(g,u,q){return g&&(u||!q)},
computeShowGhostRelated_:function(g,u,q){return g&&(u||!q)},
monitorScroll:!0,configureRendererStamper:function(){var g={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:yS(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:yS(["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"||_.w("swa_prov_panels_ks")?g.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(g.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},g.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return g},
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 g=this;this.watchController=void 0;this.pageDisposeJobs=[function(){g.showMetadataPlaceholder_()},
function(){_.w("web_watch_dont_clear_comments")||g.clearComments_()},
function(){g.clearPlayerAds_()},
function(){g.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;_.w("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.w("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new $jn(function(){return _.dv(g)},this.hostElement);
this.pageDisposeJobs.push(function(){g.youThereManager_.reset()});
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Jg;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;_.w("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));_.w("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.zr(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(g){g&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:g}),g.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(g){_.w("kevlar_watch_flexy_theater_manager")&&(this.theater=g,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(g){!_.w("kevlar_watch_while_v2")&&!_.w("web_watch_pip")||g||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(g){this.active!==void 0&&(this.fullscreen=g,_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(g){this.active!==void 0&&(_.hJ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(g>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(g){JJb("watch",["pbs","pbp","pbu"]);this.updatePageData_(g)},
updatePageData_:function(g){var u=this;if(g)if(this.data===g){this.onPageLoadWithSameData_();var q;(q=this.watchController)==null||q.setWatchNextResponse(this.data)}else this.data=g;this.playlist&&_.pW({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.fW("nw");this.loading=!1;_.M_(_.Hv,function(){ZUC();var Q,L=((Q=u.player)==null?void 0:Q.getVideoData().cpn)||"";C1n(function(E,y){dKh(E,y,L)})})},
onPageLoadWithSameData_:function(){_.w("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 g=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!g);this.set("loadingData.playlistLoading",g&&g!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),g=this.watchNextSkeletonEl_.firstElementChild;g;)g.classList.remove("hidden"),g=g.nextElementSibling;if(_.w("kevlar_watch_frame0_loading_state")){var u,q,Q;g=(u=this.loadingData)==null?void 0:(q=u.endpoint)==null?void 0:(Q=q.watchEndpoint)==null?void 0:Q.videoId;var L;g&&(L="https://i.ytimg.com/vi/"+g+"/frame0.jpg");_.Tr(this.hostElement).querySelector("#player").style.backgroundImage=L?"url("+L+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var g=_.Tr(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&g&&(g.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var u,q;(q=(u=this.watchMetadata).updateSentimentBarWidth)==
null||q.call(u);var Q,L;(L=(Q=this.watchMetadata).resize)==null||L.call(Q)}_.w("kevlar_watch_frame0_loading_state")&&(_.Tr(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(g){var u=_.Tr(this.hostElement).querySelector(g);u?_.ar(u,!1):_.Io(new _.Ji("Overscroll monitor not found for component: ",g))},
removeSplitScrollMouseTrap:function(g){var u=_.Tr(this.hostElement).querySelector(g);u?_.VD(u):_.Io(new _.Ji("Disposal component for  overscroll monitoring not found: ",g))},
onLoadingChanged_:function(g){g?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.w("web_thumbnail_to_watch_transition")&&!_.vOL||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.w("web_thumbnail_to_watch_transition")&&!_.vOL||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(g){var u=this;g?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Hv.addLowPriorityJob(function(){u.onWindowResized_(_.U3(!0))})},
updateTheaterModeState_:function(g){if(!_.w("kevlar_watch_flexy_theater_manager")){g=g||this.fullWindowMode_;if(this.theater!==void 0||g)this.theater=g;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();g&&j7p()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var g=this.fullBleedPlayer?_.Tr(this.hostElement).querySelector("#player-full-bleed-container"):_.Tr(this.hostElement).querySelector("#player-container-inner");var u=this.getPlayerContainer(),q=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip");u.parentElement!==g&&(q&&_.Bk().resolve(_.RO).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.dv(this).appendTo(g,u))},
updateErrorScreenLocation:function(){var g=_.Tr(this.hostElement).querySelector("#error-screen"),u=this.fullBleedPlayer?_.Tr(this.hostElement).querySelector("#player-full-bleed-container"):_.Tr(this.hostElement).querySelector("#player");g.parentElement!==u&&u.appendChild(g)},
deactivateMiniplayerAndResetPlayer:function(){var g=this;return _.D(function(u){if(u.nextAddress==1)return u.yield(_.Bk().resolve(_.RO).deactivate(),2);g.updatePlayerLocation();_.Wx(u)})},
updateCinematicsLocation:function(){var g=this.getElement("CINEMATICS");if(g){var u=this.getCinematicsLocationContainer();g.parentElement!==u&&u.appendChild(g)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.Tr(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Tr(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(g,u,q){var Q=document.documentElement.hasAttribute("dark"),L=!Q&&this.cinematicLightTheme;return q||g&&Q||u&&Q||(u||g)&&L},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var g=this,u;(u=this.watchController)==null||u.setWatchNextResponse(this.data);_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Bk().resolve(_.cd).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,_.w("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Hv.addLowPriorityJob(function(){_.Og(g.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.w("web_watch_start_chat_in_theater_mode")){var q,Q,L;if((q=this.data)==null?0:(Q=q.contents)==null?0:(L=Q.twoColumnWatchNextResults)==null?0:L.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var E,y;((E=this.data)==null?0:(y=E.contents)==null?0:y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(g){var u;(u=this.watchController)==null||u.setPlayerResponse(this.playerData);g&&g.playabilityStatus&&(u=this.isVideoPlayable_(g.playabilityStatus,this.getPlayerOverlays_(this.data)),g=kKx(g.playabilityStatus),u&&!g||_.xt(this,function(){_.fW("pbu")}));
this.setPlayerAds_();_.Og(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(g,u){if((_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"))&&this.playerData&&u)return this.playerData.videoDetails},
watchPageActiveChanged_:function(g){_.bR().dispatch(O8K(this.active));g?this.activate_():this.deactivate_()},
attached:function(){var g=this;this.watchController=new dD(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);_.w("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var u=_.dv(this);_.w("kevlar_disable_prepare_player")||
u.preparePlayer();_.w("kevlar_watch_flexy_playlist_manager")||_.Bk().resolve(_.cd).setPlayer(u);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();u={"--ytd-watch-flexy-scrollbar-width":Ti()+"px"};this.is==="ytd-watch-grid"&&(_.bR().dispatch(_.rF({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),u["--ytd-watch-flexy-sidebar-width"]=Caf+"px",u["--ytd-watch-grid-horizontal-page-margins"]=Yc+"px",u["--ytd-watch-grid-columns-top-margins"]=FHZ+"px",
u["--ytd-watch-grid-min-player-height-medium"]="360px");!_.S8("kv_pl_mx_sz_ks")&&_.S8("kevlar_watch_max_player_width")&&(u["--ytd-watch-flexy-max-player-width-wide-screen"]=dyE+"px");_.S8("kevlar_watch_flexy_metadata_height")&&(u["--ytd-watch-flexy-space-below-player"]=myK+"px");this.safeUpdateStyles(u);_.w("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Zj(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return g.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Tr(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var g=Ti(),u=hG+g,q=u;this.fixedPanels&&(u+=Caf);var Q=657+g;g=1327+g;_.Tr(this.hostElement).querySelector("#two-column-query").query="(min-width: "+u+"px)";_.Tr(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Q+"px), (min-height: 630px) and (min-width: ")+(u+"px) and (max-width: ")+(g+"px)");_.Tr(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(g+"px)");_.Tr(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+q+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var g=this.squeezeback&&!_.w("web_watch_squeezeback_player_size_killswitch");return this.theater||_.w("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||g||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.IW(NaN,NaN):acH(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return acH(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Fo(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var g=this;this.onWindowResized_(_.U3());_.w("browse_skeleton_removal_on_watch_killswitch")||_.mW("IS_SHELL_LOAD")&&cDZ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var u=_.dv(this);u.addEventListener("yt-player-updated",_.zr(this,this.onPlayerUpdated_));u.getPlayerPromise().then(function(q){g.playerApiReady_(q)});
_.w("kevlar_watch_flexy_playlist_manager")||(u=_.Bk().resolve(_.cd),_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&u.addEventListener("yt-navigate",_.zr(this,this.onYtNavigate_)),u.setPlaylistComponent(_.Tr(this.hostElement).querySelector("#playlist")),u.addEventListener("yt-playlist-data-updated",_.zr(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Hv.addLowPriorityJob(function(){_.hJ(g.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.dv(this).removeEventListener("yt-player-updated",_.zr(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.w("kevlar_watch_flexy_playlist_manager")){var g=_.Bk().resolve(_.cd);_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&g.removeEventListener("yt-navigate",_.zr(this,this.onYtNavigate_));
g.cancelVideoSkip();g.removeEventListener("yt-playlist-data-updated",_.zr(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();_.hJ(this.hostElement,"yt-autonav-pause-player",!1);g=_.b1();_.w("kevlar_exit_fullscreen_leaving_watch")&&g&&_.dw(g)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(g){this.player&&this.player.updateVideoData({rvs:g.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(g){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",g)},
onRetrieveLocation_:function(g,u){u.hasComments?u.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):u.locationRetrieved("/related_ajax",void 0);g.stopPropagation()},
onSubscriptionChanged_:function(g,u){this.player&&(u?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Tr(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Tr(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(g){this.player=g;g=g.getPlayerState();_.bR().dispatch(_.MG(g));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();(_.w("kevlar_unified_player")||_.w("kevlar_player_new_bootstrap_adoption"))&&_.w_()},
setTheaterModeRequested:function(g,u){u=u===void 0?!0:u;_.b1()&&_.w("external_fullscreen")&&_.dw(document.documentElement);this.theaterRequested_=g;u&&_.yW("wide",g?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.YJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.hJ(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(g){_.iD(g,typeof this.player),this.player&&_.iD(g,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var g;((g=this.player)==null?0:g.isFullscreen())?this.player.toggleFullscreen():_.YJ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(g,u){return this.loading?u:!!Object.keys(g).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(g){if(g){g=_.N(g);for(var u=g.next();!u.done;u=g.next())u=u.value,u.youThereRenderer&&cp9(this.youThereManager_,u.youThereRenderer)}},
setPlaylistData_:function(g){return g||{}},
userEngagementConfigDataChanged_:function(g){if(g)if(g.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var u=this.youThereManager_;_.nB()<g.lowEngagementThresholdMs||lUC(u,!0)}else g.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.YJ(this.hostElement,"yt-autonav-pause-user-engagement",[g])},
isPlayerUnavailable_:function(g,u,q){return!!g&&!this.isVideoPlayable_(g,q)&&!u},
getPlayerOverlays_:function(g){return(g==null?void 0:g.playerOverlays)||null},
isVideoPlayable_:function(g,u){if(!g)return!1;var q=g.status==="OK"||g.status==="LIVE_STREAM_OFFLINE",Q=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",g)||this.get("errorScreen.ypcTrailerRenderer",g);g=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",g);var L;u=u==null?void 0:(L=u.playerOverlayRenderer)==null?void 0:L.gatedActionsOverlayRenderer;return!!q||!!Q||!!g||!!u},
shouldProceedToNextVideo_:function(g,u,q){var Q=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",u),L=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];L=_.w("web_no_skip_video_on_verification_checks")?(g==null?void 0:g.status)&&L.includes(g.status):g&&g.status==="AGE_CHECK_REQUIRED";var E=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",g);E==void 0&&(E=!0);!q||this.isVideoPlayable_(g,this.getPlayerOverlays_(u))||
Q||L||!E||_.Bk().resolve(_.cd).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();kct()},
onPlayerFeedbackStartRequest_:function(g){_.YJ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:g}])},
onPlayerFeedbackArticleRequest_:function(g){_.YJ(this.hostElement,"yt-help-dialog-requested",[g])},
onPlayerYpcContentRequest_:function(){var g,u,q,Q,L,E,y,v,J=((g=this.data)==null?NaN:(u=g.contents)==null?NaN:(q=u.twoColumnWatchNextResults)==null?NaN:(Q=q.secondaryResults)==null?NaN:(L=Q.secondaryResults)==null?NaN:(E=L.offerModule)==null?NaN:(y=E.tvfilmOfferModuleRenderer)==null?NaN:(v=y.actionButtons)==null?NaN:v.length)-1;g=[".offerButton.buttonRenderer.",".actionButtons."+(J>=0?J:0)+".buttonRenderer."];u=_.N(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(q=u.next();!q.done;q=u.next())for(q=q.value,Q=_.N(g),L=Q.next();!L.done;L=Q.next())if(L="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+q+L.value,L=this.get(L+"navigationEndpoint",this.data)||this.get(L+"serviceEndpoint",this.data)||this.get(L+"command",this.data)){_.nE(L,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(g){_.hJ(this.hostElement,"yt-autonav-pause-player",g)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(g){g()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(g){switch(g){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(g){switch(g){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.hJ(this.hostElement,"yt-autonav-pause-player-ended")}_.bR().dispatch(_.MG(g))},
onPlayerSubscribe_:function(g){_.YJ(this.hostElement,"yt-player-subscribe",[g])},
onPlayerUnsubscribe_:function(g){_.YJ(this.hostElement,"yt-player-unsubscribe",[g])},
onPlayerAdYtShowToast_:function(g){_.YJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:g.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(g){if(g)return g},
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(g){return!_.Of("web_watch_move_summary_to_sd")&&!!g},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.w("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var g,u,q,Q;this.watchNextSecondaryResults=(g=this.data)==null?void 0:(u=g.contents)==null?void 0:(q=u.twoColumnWatchNextResults)==null?void 0:(Q=q.secondaryResults)==null?void 0:Q.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var g,u=(g=this.data)==null?void 0:g.engagementPanels;if(u==null?0:u.length){g=null;u=_.N(u);for(var q=u.next();!q.done;q=u.next()){q=q.value;var Q=void 0;if(((Q=q.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)==="engagement-panel-structured-description"){g=q;break}}var L,E,y;g=(L=g)==null?void 0:(E=L.engagementPanelSectionListRenderer)==null?void 0:(y=E.content)==null?void 0:y.structuredDescriptionContentRenderer;if(g==null?0:g.items){L=
[];E=_.N(g.items);for(y=E.next();!y.done;y=E.next()){y=y.value;if(!_.w("sd_horizontal_list_show_nav_killswitch")){var v=Q=q=u=g=void 0,J=void 0,f=(g=y.horizontalCardListRenderer)==null?void 0:(u=g.header)==null?void 0:(q=u.richListHeaderRenderer)==null?void 0:(Q=q.navigationButton)==null?void 0:(v=Q.buttonRenderer)==null?void 0:(J=v.command)==null?void 0:J.commandExecutorCommand;f&&f.commands&&(f.commands=f.commands.filter(function(t){return!_.c(t,LFE)}))}(!y.expandableVideoDescriptionBodyRenderer&&
!y.videoDescriptionHeaderRenderer||_.w("web_delhi_colorful_sd"))&&L.push(y)}return{items:L}}}},
isPlaShelfEnabled_:function(g){if((this.get("adPlacements",g)||[]).length)return!0;g=this.get("playerAds",g)||[];return!(!g.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",g[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var g=this;this.commentsReady=!1;_.Hv.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.M_(_.Hv,function(){g.setComments_()},1E3)},
setComments_:function(){if(!_.w("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.fW("cmi");_.Hv.cancelJob(this.setCommentsJobId_);var g=Sc9(this.data);if(g&&g.length){g=_.N(g);for(var u=g.next();!u.done;u=g.next())if(u=u.value,this.get("itemSectionRenderer.sectionIdentifier",u)==="comment-item-section"){this.comments=u.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.hJ(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.fW("cmc")},
doRemoveComments_:function(){this.comments={};_.w("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Hv.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Hv.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(g,u){var q=_.c(u.endpoint,_.l1);q&&(!(u=this.get("data.currentVideoEndpoint.watchEndpoint"))||q.videoId!==u.videoId||q.playlistId&&q.playlistId!==u.playlistId||q.index!==void 0&&q.index!==u.index||typeof q.startTimeSeconds!=="number"||(g.stopPropagation(),this.setScrollTop(0),_.dv(this).getPlayerPromise().then(function(Q){var L=q.startTimeSeconds;Q.seekTo(L);Q.wakeUpControls();L<Q.getDuration()&&Q.playVideo()})))},
updatePlayerStartTime_:function(){var g=cgt();"t"in g&&(g=xyH(g.t),this.player.seekTo(g,!0))},
updateTitleFromWatchNext:function(g){g=Sc9(g);var u,q;(g=_.iR(g==null?void 0:(u=g[0])==null?void 0:(q=u.videoPrimaryInfoRenderer)==null?void 0:q.title))&&_.hJ(this.hostElement,"yt-update-title",g)},
updateTitle_:function(g){g=this.get("videoDetails.title",g)||"";_.hJ(this.hostElement,"yt-update-title",g)},
syncWithRemoteVideo_:function(g,u,q){if(this.active&&this.player){var Q=this.player.getVideoData();Q.video_id===q&&(q=Q.list,_.w("polymer_enable_mdx_queue")&&q&&q.startsWith("RQ")&&(q=void 0),Q.video_id!==g||q!=u)&&(g=_.w("kevlar_player_watch_endpoint_navigation")?_.Ulm(Nrt(g,u)):_.m7(g,u),_.hJ(this.hostElement,"yt-navigate",{endpoint:g,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var g=document.querySelector("#watch-page-skeleton");if(g){var u=g.querySelector("#primary-info"),q=g.querySelector("#secondary-info"),Q=g.querySelector("#related");u&&_.Tr(this.hostElement).querySelector("#info-skeleton").appendChild(u);q&&_.Tr(this.hostElement).querySelector("#meta-skeleton").appendChild(q);Q&&(_.Tr(this.hostElement).querySelector("#related-skeleton").appendChild(Q),this.watchNextSkeletonEl_=Q);_.UU(g)}},
handlePlayerUpdated_:function(){_.dv(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(g,u){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof u!=="undefined"){var q=this.watchNextSkeletonEl_.children,Q=g&&g.indexSplices.length?g.indexSplices[0].index:0;g=Math.min(this.watchNextShownItems.length,q.length);u||(Q=0,g=q.length);if(!this.ghostCardsEnabled)for(u=Q;u<g;u++)q[u].classList.add("hidden")}},
onPlayerFullscreenChange_:function(g){_.w("external_fullscreen")||_.YJ(this.hostElement,"yt-player-fullscreen",[g.fullscreen])},
onFullscreenChange_:function(g){this.fullscreen=g;this.gestures_&&this.gestures_.update(this.fullscreen);var u=_.dv(this);u.getPlayerPromise().then(function(q){q.setFauxFullscreen(!!_.b1())});
this.updateFullBleedElementLocations();g&&u.focusOnPlayer()},
computeShouldStampChat_:function(g,u){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!u},
computeIsDonationShelfCollapsed_:function(g){return g},
computeShouldShowMerchShelf:function(g,u){return u&&!!g},
computeResponseHasComments:function(g){var u,q,Q,L,E;return!!(g==null?0:(u=g.contents)==null?0:(q=u.twoColumnWatchNextResults)==null?0:(Q=q.results)==null?0:(L=Q.results)==null?0:(E=L.contents)==null?0:E.some(function(y){var v;return(y==null?void 0:(v=y.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(g,u,q,Q){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&Q?!1:!!g&&!!Object.keys(g).length&&!u},
identity:_.am,onWindowResized_:function(g){this.windowSize_=g;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())},
onPlayerPresentingVideoDataChange_:function(g){var u=this;g&&g.type!=="dataloaded"&&g.type!=="dataupdated"||_.dv(this).getPlayerPromise().then(function(q){var Q=q.getPlayerState();Q!==5&&Q!==0&&(q=1/q.getVideoAspectRatio(),u.videoHeightToWidthRatio_!==q&&(u.videoHeightToWidthRatio_=q))})},
schedulePlayerSizeUpdate_:function(g){var u=this,q=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"),Q=function(){if(u.watchMetadata){var L,E;(E=(L=u.watchMetadata).resize)==null||E.call(L)}_.dv(u).getPlayerPromise().then(function(y){if(_.Of("kevlar_set_internal_player_size")){if(!q||!_.Bk().resolve(_.RO).isMiniplayerActive()){var v=u.calculateCurrentPlayerSize_();y.setInternalSize(v.width,v.height)}}else y.setSize(NaN,NaN);_.w("kevlar_watch_while")&&u.updateWatchWhileScrollThreshold_()})};
g?Q():_.gT(_.Hv,Q)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(g){this.set("data.survey",g.detail)},
onYtShowSurveyCommand_:function(g){this.set("data.survey",_.c(g,rVZ).survey)},
onDownloadedVideoDeleted:function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1){if(!u.active||(q=u.playerData)==null||!q.offlineState||u.videoId!==g)return L.return();(Q=u.player)==null||Q.stopVideo();_.Uw().navigatingAwayFromWatchDeletedVideo=!0;_.nE(_.EjS,u.hostElement);return L.yield(_.Uw().navigationFinishPromise,2)}_.Uw().navigatingAwayFromWatchDeletedVideo=!1;_.Wx(L)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var g;this.theater?g=_.tL(.5625*this.windowSize_.width,480,this.windowSize_.height-185):g=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==g&&(this.watchWhileScrollThreshold_=g)}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var g=_.Tr(this.hostElement).querySelector("#secondary-inner");if(g){var u=_.Tr(this.hostElement).querySelector("#below"),q=_.Tr(this.hostElement).querySelector("#secondary"),Q=_.Tr(this.hostElement).querySelector("#comments");Q&&q&&u&&(this.defaultTwoColumnLayout?(g.appendChild(Q),q.appendChild(g)):(u.appendChild(Q),eH(u,g)))}}},
isTwoColumnsChanged_:function(g,u){if(g!==!0||u!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(g=_.Tr(this.hostElement).querySelector("#secondary-inner"))){u=_.Tr(this.hostElement).querySelector("#below");var q=_.Tr(this.hostElement).querySelector("#secondary"),Q=_.Tr(this.hostElement).querySelector("#comments");Q&&q&&u&&(this.isTwoColumns_?(g.appendChild(Q),q.appendChild(g)):(u.appendChild(Q),eH(u,g)))}}else{g=!_.w("web_watch_enable_fs_squeezeback_panels");
u=_.Tr(this.hostElement).querySelector("#panels");var L=_.Tr(this.hostElement).querySelector("#alerts"),E=_.Tr(this.hostElement).querySelector("#shopping-timely-shelf");q=_.Tr(this.hostElement).querySelector("#playlist");Q=_.Tr(this.hostElement).querySelector("#related");var y=_.Tr(this.hostElement).querySelector("#donation-shelf"),v=_.Tr(this.hostElement).querySelector("#comments"),J=_.Tr(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(L=_.Tr(this.hostElement).querySelector("#secondary-inner"),
g&&(L.appendChild(u),L.appendChild(q),this.aiCompanionEnabled&&J&&L.appendChild(J)),L.appendChild(y),L.appendChild(Q)):(g&&(_.wX(u,L),_.wX(q,L),this.aiCompanionEnabled&&J&&_.wX(J,L),_.wX(E,q)),_.wX(y,L),v&&_.wX(Q,v));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.w("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.w("web_watch_enable_fs_squeezeback_panels")&&_.w("web_watch_theater_chat")){var g=_.Tr(this.hostElement).querySelector("#chat-container"),u=this.theater&&!this.fullscreen||_.w("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&u?(u=_.Tr(this.hostElement).querySelector("#columns"),(g==null?void 0:g.parentElement)!==u&&u.append(g),this.fixedPanels=!0):(this.fixedPanels=
!1,u=_.Tr(this.hostElement).querySelector("#playlist"),g&&u?_.cH(g,u):_.Io(new _.Ji("Missing element when updating chat location",{"chatContainer defined":!!g,"playlist defined":!!u})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(g,u){return _.w("sw_metadata_vis_toggle_ks")?!0:!!g||!!u},
computeForceDarkPanelTheme:function(g){return _.w("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&g:!1},
safeUpdateStyles:function(g){try{_.x_(this.hostElement,g)}catch(u){_.Io(u)}},
videoHeightToWidthRatioChanged_:function(g,u){u&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(g){this.videoHeightToWidthRatio_=1/g},
computeIsVerticalVideo_:function(g){return g>=1},
computeIsFourThreeToSixteenNineVideo_:function(g){return g<=.7501&&g>=.5624},
computeIsExtraWideVideo_:function(g){return g<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.dv(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.dv(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){IUZ(this.youThereManager_)},
computePlaylistData_:function(g,u){return u},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Bk().resolve(_.cd).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var g=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Hv.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Hv.addLowPriorityJob(function(){g.fullHeightPanelPositionUpdateJobId=0;var u=_.Tr(g.hostElement).querySelector("#secondary"),q=_.Tr(g.hostElement).querySelector("#fixed-secondary");u=u.getBoundingClientRect();var Q=u.width;g.swatcherooSqueezeback&&
(Q+=Yc);if(g.swatcherooSqueezeback){var L=_.Tr(g.hostElement).querySelector("#squeezeback-constraining-container");L.style.width=Q+"px";L.style.flex="0 0 "+Q+"px"}q.style.width=Q+"px";q.style.left=u.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var g=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Hv.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Hv.addLowPriorityJob(function(){g.panelMaxHeightUpdateJob_=0;var u;!g.isTwoColumns_||g.theater||g.fullscreen?u=460:u=g.calculateNormalPlayerSize_().height;var q=u+"px";_.w("live_chat_taller_height")&&!g.theater&&(q="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.w("live_chat_medium_height")&&!g.theater&&(q="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.w("live_chat_scaled_height")&&!g.theater&&(q="calc(100vh - var(--ytd-toolbar-height) - 238px)");g.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":u+"px","--ytd-watch-flexy-chat-max-height":q,"--ytd-watch-flexy-structured-description-max-height":u+"px","--ytd-watch-flexy-comments-panel-max-height":u+"px","--ytd-comments-engagement-panel-content-height":u+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(g){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",g)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.xJ(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(g){var u=_.Tr(this.hostElement).querySelector("#engagement-panel-scrim");g?u.addEventListener("tap",_.zr(this,this.onEngagementPanelScrimClick_)):u.removeEventListener("tap",_.zr(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtEngagementPanelVisibleChanged:function(g,u,q){if(this.active&&this.trackEngagementPanelVisibility&&!nWL.includes(q)){if(u==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Og(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var Q=_.Bk().resolve(_.yH);this.visiblePanelIdentifiers_.forEach(function(L){L!==q&&Q.hidePanel({identifier:L})})}this.visiblePanelIdentifiers_.add(q)}u!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&u!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(q);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(g){return g?"":"watch-active-metadata"},
computeNewMetadataClass:function(g){return g?"watch-active-metadata":""},
computeIsSingleColumn:function(g,u){return u&&!g},
computeFullBleedPlayer:function(g,u,q){return _.w("external_fullscreen")&&g||u||q},
computeDefaultLayout:function(g){return!g},
computeDefaultTwoColumnLayout:function(g,u){return!g&&u},
updatePanelsLocation:function(){if(_.w("web_watch_enable_fs_squeezeback_panels")){var g=_.Tr(this.hostElement).querySelector("#below"),u=_.Tr(this.hostElement).querySelector("#panels"),q=_.Tr(this.hostElement).querySelector("#playlist"),Q=_.Tr(this.hostElement).querySelector("#chat-container"),L=_.Tr(this.hostElement).querySelector("#panels-full-bleed-container"),E=_.Tr(this.hostElement).querySelector("#secondary-inner"),y=_.Tr(this.hostElement).querySelector("#shopping-timely-shelf"),v=_.Tr(this.hostElement).querySelector("#persistent-panel-container");
if(g&&u&&q&&Q&&L&&E&&y&&(this.aiCompanionEnabled?v:1)){var J=this.fullscreen||this.theater&&this.iMaxTheaterMode,f=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;f?(f=_.Tr(this.hostElement).querySelector("#columns"),(Q==null?void 0:Q.parentElement)!==f&&f.append(Q),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):J?L.appendChild(Q):this.isTwoColumns_?eH(E,Q):eH(g,Q);J?(L.appendChild(u),L.appendChild(q),
this.aiCompanionEnabled&&v&&L.appendChild(v)):(this.isTwoColumns_?(eH(E,u),eH(E,q),this.aiCompanionEnabled&&v&&eH(E,v)):(eH(g,u),eH(g,q),this.aiCompanionEnabled&&v&&eH(g,v)),eH(g,y))}}},
swatcherooUpdatePanelsLocation:function(g,u,q,Q,L,E){if(this.is==="ytd-watch-grid"){u=g&&!u;this.swatcherooSplitScroll&&(u?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));q=_.Tr(this.hostElement).querySelector("#panels");var y=_.Tr(this.hostElement).querySelector("#playlist"),v=_.Tr(this.hostElement).querySelector("#persistent-panel-container"),
J=_.Tr(this.hostElement).querySelector("#fixed-secondary"),f=_.Tr(this.hostElement).querySelector("#fixed-below"),t=_.Tr(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),e=_.Tr(this.hostElement).querySelector("#chat-container");E&&(g?(J.appendChild(q),this.aiCompanionEnabled&&v&&J.appendChild(v)):(f.appendChild(q),this.aiCompanionEnabled&&v&&f.appendChild(v)));L?g?J.appendChild(e):f.appendChild(e):_.cH(e,t);Q?g?J.appendChild(y):f.appendChild(y):_.cH(y,
t);this.swatcherooSplitScroll&&(g=_.Tr(this.hostElement).querySelector("#secondary"),Q=_.Tr(this.hostElement).querySelector("#columns"),L=_.Tr(this.hostElement).querySelector("#fixed-columns-secondary"),u?L.appendChild(g):Q.appendChild(g))}},
computeMetadataSkinnyMode:function(g,u,q){return this.is!=="ytd-watch-grid"?!1:g?q:u},
computeWatchWhilePanelsActive:function(g,u){return g||u},
computeNoBorderOnChat:function(g){return _.w("web_watch_theater_chat_no_border")&&g},
computeLiveChatPresentAndExpanded:function(g,u){return g&&!u},
computePanelExpanded:function(g,u,q){return g||u||q},
computeSqueezeback:function(g,u,q,Q){if(_.w("web_watch_enable_fs_squeezeback_panels")){var L=this.iMaxTheaterMode&&this.theater,E=this.theater&&!this.iMaxTheaterMode;return(g||u||q)&&(L||Q)||u&&E}},
computeSwatcherooSqueezeback:function(g,u,q){return this.is!=="ytd-watch-grid"||_.w("ww_squeezeback_killswitch")?!1:g&&u&&q},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(g){_.dv(this).getPlayerPromise().then(function(u){var q;(q=u.changeMarkerVisibility)==null||q.call(u,_.c(g,Dz).isVisible||!1,_.c(g,Dz).entityKeys||[],_.c(g,Dz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(g){this.liveChatCollapsed=g.detail;_.bR().dispatch(xIn(g.detail));if(!this.liveChatCollapsed&&this.squeezeback){var u=_.Bk().resolve(_.yH);this.visiblePanelIdentifiers_.forEach(function(q){u.hidePanel({identifier:q})})}},
onSetPlaylistCollapsed:function(g){_.w("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!g)},
provideRenderingData:function(g,u){switch(g){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=u;break;case "PRIMARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=u);this.videoPrimaryInfoRendererValue=u==null?void 0:u.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=u);this.videoSecondaryInfoRendererValue=u==null?void 0:u.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
u;break;case "CLARIFICATION":this.clarifyBoxValue=u;break;case "LIVE_CHAT":this.conversationBar=u;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=u;break;case "PLAYLIST":this.externalPlaylistData_=u!=null?u:{};break;case "MERCH_SHELF":this.merchShelfValue=u==null?void 0:u.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=u;break;case "TICKET_SHELF":this.ticket=u;break;case "OFFER_MODULE":this.offerModule=u;break;case "LIMITED_STATE":this.limitedStateValue=
u;break;case "DONATION_SHELF":this.donation=u;break;case "ALERTS":this.alertsValue=u;break;case "COMMENTS":this.comments=u;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=u;break;case "ENGAGEMENT_PANELS":this.engagementPanels=u;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=u;break;case "RICH_GRID_RENDERER":this.richGridRendererData=u;break;case "EXPANDABLE_METADATA":this.expandableMetadata=u;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
u;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=u;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=u}},
toggleCinematicsActive:function(g){this.cinematicsActive=g}}];var HkH=function(g,u){var q;return((q=g.prefixMapping)==null?0:q[u])?g.prefixMapping[u]:g.SHARED_RENDERERS_.hasOwnProperty(u)?"yt":g.prefix},mP={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}}};mP.DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,addSpacing:_.w("kevlar_add_spacing_to_sheets")},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
mP.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"};
mP.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"};mP.LOCKED_OVERLAY_DIALOG={component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,scrollAction:"lock",withBackdrop:!0},preventAutonav:!0};
mP.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.w("kevlar_mealbar_above_player"),modern:_.FR("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"}};
mP.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};mP.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};mP.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
mP.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)"}};
mP.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};
mP.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};
mP.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};
mP.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.w("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"}};
mP.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"}};mP.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};mP.TOAST={component:null,properties:{}};var Acn=new function(g,u,q){this.supportedPopups=g;this.navigationEndpointPopupMap=u;this.popupTypeMap=q;this.supportedPopups=g;this.navigationEndpointPopupMap=u;this.popupTypeMap=q}({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:_.w("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"}),Zkh=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$21597_popupConfig=mP;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 lJL=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.JF.getInstance()},a$=function(g,u){var q=g.pageNameToElement.get(u);
if(!q){switch(u){case "watch":var Q=_.w("web_watch_force_learning_journey_for_testing")?_.CK("ytd-watch-learning-journey"):_.w("kevlar_watch_fixie")?_.CK("ytd-watch-fixie"):_.w("kevlar_watch_grid")?_.CK("ytd-watch-grid"):_.CK("ytd-watch-flexy");break;case "learning_journey_watch":Q=_.CK("ytd-watch-learning-journey");break;case "shorts":Q=_.CK("ytd-shorts");break;case "search":Q=_.CK("ytd-search");break;case "channel":Q=_.CK("ytd-browse");Q.pageSubtype="channels";break;case "trending":Q=_.CK("ytd-browse");
Q.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":Q=
_.CK("ytd-browse");Q.pageSubtype=u;break;case "browse":Q=_.CK("ytd-browse");break;default:_.Io(new _.Ji("Error getting page element for type",u))}q=Q;g.pageNameToElement.set(u,q)}return q};
lJL.prototype.preparePage=function(g,u,q){q&&(g=_.nU(q)||g);if(g!=="watch"&&g!=="learning_journey_watch"){var Q=this.elementPoolPopulator,L=g;L!=Q.targetPage_&&Q.pendingPages_.indexOf(L)>-1&&(Q.targetPage_&&(Q.pendingPages_.unshift(Q.targetPage_),Q.abort()),U6H(Q,L),_.Gd5(Q,L))}if((Q=a$(this,g))||!_.c(q,_.ao)){Q.isAttached||Q===u||(Q.hidden=!0);if(!Q.data&&(g!=="watch"&&g!=="learning_journey_watch"||!_.w("swatcheroo_page_pool_dont_provide_filler_data"))){var E;if(g=(E=_.FR("FILLER_DATA",{})[g])==
null?void 0:E.response)Q.data=g}return Q}};var IJf=function(g){this.JSC$33497_clientRoot=g;this.playlistHandlerActionMap={"yt-add-to-playlist-command":uEZ,"yt-end-playlist-command":qaf,"yt-recover-playlist-command":LEC,"yt-refresh-playlist-command":Nm9,"yt-playlist-remove-videos-action":E0t};_.XU(_.VC.getInstance(),this.playlistHandlerActionMap,this.JSC$33497_clientRoot);M2z()},ikn;var Vd=function(g,u,q){this.apiKey=g;this.endpoint=u;this.confidenceThreshold=q===void 0?.5:q;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=u==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||u==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
u==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||u==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new mmf};
_.P=Vd.prototype;
_.P.start=function(g){if(this.state===0)if(this.isOnline()){g.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=g.supportsHttpHeadersOverwriteParam);g.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=g.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.jF("voice_assistant");_.Mf("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=g.languageCode||"en-US";this.supportsCrossDomainXhr=g.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=g.youtubeAssistantRequest||null;this.listeningHandler=g.listeningHandler||this.listeningHandler;this.audioDetectedHandler=g.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=g.stopHandler||this.stopHandler;this.completeHandler=g.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=g.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=g.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
g.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=g.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=g.accessToken;this.additionalHeaders=g.additionalHeaders||{};var u;this.prefetchResponseTimeoutMs=(u=g.prefetchResponseTimeoutMs)!=null?u:this.prefetchResponseTimeoutMs;Cct(this);this.startAudio();bkh(this)}else this.errorHandler("OFFLINE")};
_.P.stop=function(g){var u=g===void 0?{}:g;g=u.logCancel===void 0?!0:u.logCancel;var q=u.logMicClosed===void 0?!0:u.logMicClosed;var Q=u.handleError===void 0?!0:u.handleError;u=u.handleStop===void 0?!0:u.handleStop;this.state!==0&&(g&&Xm("voz_cx"),rD(this,{logMicClosed:q,handleStop:u}),Q&&this.errorHandler("ABORTED"))};
_.P.getState=function(){return this.state};
_.P.isSupported=function(){return!0};
_.P.stopAudio=function(g){(g===void 0||g)&&Xm("voz_mf")};
_.P.startAudio=function(){Xm("voz_vp");return _.BX(null)};
var dtb=function(g,u){g.channelOpen&&(g.state!==2&&(g.state=2,Xm("voz_ss"),g.listeningHandler()),u=new Uint8Array(u),u='{ "audioIn": "'+_.om(u)+'" }',g.channel.send(u))},rD=function(g,u){var q=u===void 0?{}:u;
u=q.logMicClosed===void 0?!0:q.logMicClosed;q=q.handleStop===void 0?!0:q.handleStop;g.vozEndOfDataTimeout>-1&&(clearTimeout(g.vozEndOfDataTimeout),g.vozEndOfDataTimeout=-1);FaK(g);g.stopAudio(u);g.channel&&(g.channelOpen=!1,g.manuallyClosedChannel=!0,g.channel.close(),g.channel=void 0);g.transcribedSpeechResults=[];g.state=0;q&&g.stopHandler()},Cct=function(g){var u={httpHeadersOverwriteParam:g.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},g.additionalHeaders,g.accessToken&&g.isUsingVoz?{Authorization:"Bearer "+g.accessToken}:{"x-goog-api-key":g.apiKey}),supportsCrossDomainXhr:g.supportsCrossDomainXhr};g.channel=new L4(g.endpoint,u);g.channel.open();_.Z1(g.channel,"w",function(){var q=g.channel,Q=q.send,L=g.isUsingVoz?"PLACEHOLDER":"example";L={config:{dialogStateIn:{languageCode:g.languageCode},deviceConfig:{deviceId:L,deviceModelId:L},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!g.isUsingVoz)L.config.requestType=4;else if(g.isUsingVoz&&g.youtubeAssistantRequest){var E=JSON.stringify(g.youtubeAssistantRequest);L.config.internalIn={youtubeAssistantS3InputJson:E}}Q.call(q,L);g.channelOpen=!0;g.manuallyClosedChannel=!1});
_.Z1(g.channel,"x",function(){g.manuallyClosedChannel||(g.channelOpen=!1,g.channel=void 0,rD(g))});
_.Z1(g.channel,"z",function(q){if(q.data){FaK(g);for(var Q=0;Q<q.data.length;Q++){var L=g,E=q.data[Q],y=E.speechResults;if(y)a:{var v=[];E=[];var J=!1;y=_.N(y);for(var f=y.next();!f.done;f=y.next()){f=f.value;if(f.noSpeech){rD(L);L.errorHandler("NO_SPEECH");break a}f.transcript!==void 0&&f.stability!==void 0&&(f.stability<L.confidenceThreshold&&(J=!0),J?E.push(f.transcript):v.push(f.transcript))}if(v.length!==0||E.length!==0)v=v.join(" "),E=E.join(" "),L.receivedEndOfUtterance&&!L.isUsingVoz?L.isUsingVoz||
L.completeHandler([v,E]):(J=L,y=v,f=E,Xm("voz_sf"),J.transcriptionUpdateHandler(y,f),J.transcribedSpeechResults=[y,f]),L.receivedEndOfUtterance&&(Xm("voz_eou"),L.transcriptionCompleteHandler([v,E]),L.isUsingVoz&&(L.prefetchResponseTimeoutMs===0?rD(L,{logMicClosed:!1,handleStop:!0}):L.prefetchResponseTimeoutMs>0&&mtx(L)))}else L.isUsingVoz&&(E==null?0:E.internalOut)?(E=JSON.parse(E.internalOut.youtubeAssistantS3OutputJson),E.userHasOptedInToVaa||E.vaaConsent?L.vaaConsentUpdateHandler(!!E.userHasOptedInToVaa,
!!E.vaaConsent):(aJZ(L),E&&(v=L.transcribedSpeechResults,Xm("voz_rqf"),L.completeHandler(v,E)))):E.eventType==="END_OF_UTTERANCE"?L.receivedEndOfUtterance=!0:(Xm("voz_err"),L.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Io(Error("Xl")))}}});
_.Z1(g.channel,"y",function(q){rD(g);switch(q.status){case 1:q="WEBCHANNEL_NETWORK_ERROR";break;case 2:q="WEBCHANNEL_SERVER_ERROR";break;default:q="WEBCHANNEL_UNKNOWN_ERROR"}g.errorHandler(q);g.logError(Error(q))})};
Vd.prototype.logError=function(g){_.Zf(g)};
Vd.prototype.isOnline=function(){return!0};
var mtx=function(g){aJZ(g);g.prefetchResponseSetTimeoutId=setTimeout(function(){rD(g,{logMicClosed:!1,handleStop:!0})},g.prefetchResponseTimeoutMs)},aJZ=function(g){g.prefetchResponseSetTimeoutId>-1&&(clearTimeout(g.prefetchResponseSetTimeoutId),g.prefetchResponseSetTimeoutId=-1)},bkh=function(g){FaK(g);
g.noResponseReceivedTimeout=window.setTimeout(function(){rD(g);g.errorHandler("NO_SPEECH")},11E3)},FaK=function(g){g.noResponseReceivedTimeout>-1&&(window.clearTimeout(g.noResponseReceivedTimeout),g.noResponseReceivedTimeout=-1)},Xm=function(g){_.fW(g,void 0,"voice_assistant")};var Wf=function(){Vd.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.A(Wf,Vd);Wf.prototype.isSupported=function(){return s6L()};
Wf.prototype.startAudio=function(){var g=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.NY(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(Q){V1f(g,Q)};
this.processor.connect(this.audioContext.destination);var u=function(Q){g.stream=Q;if(!g.audioContext)return _.BX(null);Q=g.audioContext.createMediaStreamSource(Q);g.processor&&Q.connect(g.processor);return _.BX(null)},q={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?u(this.stream):(q=navigator.mediaDevices.getUserMedia(q))?q.then(u).catch(function(Q){rD(g);Q.name&&Q.name==="NotAllowedError"?g.errorHandler("NO_MICROPHONE_PERMISSION"):(g.errorHandler("AUDIO_ERROR"),g.logError(Q));return _.NY(null)}):(rD(this),this.errorHandler("AUDIO_ERROR"),_.Io(Error("Yl")));
return Vd.prototype.startAudio.call(this)};
Wf.prototype.stopAudio=function(g){g=g===void 0?!0:g;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(u){u.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Vd.prototype.stopAudio.call(this,g)};
Wf.prototype.isOnline=function(){return navigator.onLine};
var V1f=function(g,u){if(g.audioContext)if(window.OfflineAudioContext){var q=g.audioContext.sampleRate,Q=u.inputBuffer.getChannelData(0);u=new window.OfflineAudioContext(1,Q.length,16E3);for(var L=u.createBuffer(1,Q.length,q),E=L.getChannelData(0),y=0,v=0;v<Q.length;v++)E[v]=Q[v],y+=E[v]*E[v];!g.audioDetected&&Math.sqrt(y/Q.length)>.01&&(g.audioDetected=!0,g.audioDetectedHandler());Q=u.createBufferSource();Q.buffer=L;Q.connect(u.destination);Q.start(0);u.oncomplete=function(J){J=J.renderedBuffer.getChannelData(0);
for(var f=Math.floor(16384E3/q),t=new Int16Array(f),e=0;e<f;++e)t[e]=Math.max(-1,Math.min(1,J[e]))*32767;dtb(g,t.buffer)};
u.startRendering()}else XPh(g,u)},XPh=function(g,u){var q=g.audioContext.sampleRate,Q=u.inputBuffer.getChannelData(0),L=Math.floor((q+8E3)/16E3);
q=Q.length/L;u=new Float32Array(q);for(var E=0;E<q;++E)u[E]=Q[E*L];Q=new Int16Array(q);for(L=0;L<q;++L)Q[L]=Math.max(-1,Math.min(1,u[L]))*32767;dtb(g,Q.buffer)};var rcL={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var WaZ=function(){this.JSC$21662_audioEnabled=!0;this.audioFeedbackHolder={}};
WaZ.prototype.isPlaying=function(g){return g.currentTime>0&&!g.paused&&!g.ended&&g.readyState>2};
var TYh=function(g){for(var u=_.N(Object.values(rcL)),q=u.next();!q.done;q=u.next())q=q.value,g.audioFeedbackHolder[q]=new Audio,g.audioFeedbackHolder[q].src="/s/search/audio/"+q+".mp3",g.audioFeedbackHolder[q].load()},TD=function(g,u){if(g.JSC$21662_audioEnabled!==!1&&u in g.audioFeedbackHolder){for(var q=_.N(Object.values(g.audioFeedbackHolder)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,g.isPlaying(Q)&&Q.pause();
g.audioFeedbackHolder[u].currentTime=0;g.audioFeedbackHolder[u].play().catch(function(){})}};var hHz=function(g,u){var q=this;this.store=g;this.service=u;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){q.setState("offline");q.stop()};
this.audioPlayer=new WaZ;var Q;(Q=this.audioPlayer)==null||TYh(Q)};
_.P=hHz.prototype;_.P.getService=function(){return this.service};
_.P.isEnabled=function(){return!!this.service};
_.P.isSupported=function(){var g;return(g=this.service)==null?void 0:g.isSupported()};
_.P.start=function(){var g=this,u,q,Q,L,E,y,v,J,f,t,e,G,R;return _.D(function(H){switch(H.nextAddress){case 1:g.store.dispatch(Bd9("",""));if(!navigator.onLine)return g.setState("offline"),H.return();window.addEventListener("offline",g.handleOfflineEvent);g.stream=null;if(!g.permissionsSupported){H.jumpTo(2);break}_.b8(H,3);return H.yield(YNn(g),5);case 5:u=H.yieldResult;if(!u)return(q=g.audioPlayer)==null||TD(q,"failure"),H.return();g.service.stream=g.stream;g.setState("listening");_.Xx(H,2);break;
case 3:_.rt(H),g.permissionsSupported=!1;case 2:Q={context:_.DRS(_.Sj())},Q.youtubeAssistantParams={searchParams:{inlineSearchResponse:g.enableInlineSearchResponse}},L=function(l,d){g.store.dispatch(zgL("transcribing"));g.store.dispatch(Bd9(l,d))},E=function(){var l;
(l=g.audioPlayer)==null||TD(l,"open");g.setState("listening")},y=function(){g.setState("transcribing")},v=function(l){g.setErrorState(l)},J=function(l,d){var F;
(F=g.audioPlayer)==null||TD(F,"success");d&&(_.w("kevlar_voice_search_inline_search")&&(g.responseProcessor=_.Bk().resolve(_.bZ0),g.responseProcessor&&(F=d.navigationAction,l=d.prefetchedSearchResponse,F&&l&&(F=(new _.u_9).JSC$14490_getStoreKey(F),_.AL(g.responseProcessor,l,F)))),g.JSC$21680_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",d))},f=function(){window.removeEventListener("offline",g.handleOfflineEvent)},t=_.$RT(!1),e=t.Authorization!=null,G=g.enableFirstPartyAuth||
g.enableFPAForSignedInUsers&&e?t:{"X-Goog-Visitor-Id":t["X-Goog-Visitor-Id"]},R={completeHandler:J,
errorHandler:v,listeningHandler:E,audioDetectedHandler:y,stopHandler:f,transcriptionUpdateHandler:L,youtubeAssistantRequest:Q,languageCode:Okf(),additionalHeaders:G,supportsCrossDomainXhr:g.enableFirstPartyAuth||g.enableFPAForSignedInUsers&&e,supportsHttpHeadersOverwriteParam:!g.disableHttpHeadersOverwrite},g.service.start(R),_.Wx(H)}})};
_.P.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.P.reset=function(){this.store.dispatch(_.rF({type:"RESET_VOICE_SEARCH_STATE"}))};
_.P.setState=function(g){this.store.dispatch(zgL(g))};
_.P.setErrorState=function(g){switch(g){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var u;(u=this.audioPlayer)==null||TD(u,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)YNn(this);else{var q;(q=this.audioPlayer)==null||TD(q,"failure");this.setState("permission-denied")}break;case "ABORTED":var Q;(Q=this.audioPlayer)==null||TD(Q,"no_input");break;default:var L;(L=this.audioPlayer)==
null||TD(L,"no_input");this.setState("timeout")}};
var YNn=function(g){var u,q;return _.D(function(Q){switch(Q.nextAddress){case 1:return Q.yield(navigator.permissions.query({name:"microphone"}),2);case 2:u=Q.yieldResult;if(u.state==="granted")return Q.return(!0);if(u.state==="denied")return g.setState("permission-denied"),Q.return(!1);g.setState("permission");q={audio:{sampleSize:16,channelCount:1},video:!1};_.b8(Q,3);return Q.yield(navigator.mediaDevices.getUserMedia(q),5);case 5:return g.stream=Q.yieldResult,Q.return(!0);case 3:return _.rt(Q),
g.setState("permission-denied"),Q.return(!1)}})},Okf=function(){var g=_.FR("INNERTUBE_CONTEXT_HL"),u=_.FR("INNERTUBE_CONTEXT_GL");
return g.indexOf("-")>-1?g:g+"-"+u};var KaL=function(g,u,q){hHz.call(this,u,q);this.JSC$21680_actionRouter=g;this.enableInlineSearchResponse=_.w("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.w("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.w("kevlar_voice_search_enable_fpa_signedin_users")},xtK;
_.A(KaL,hHz);
var BYE=function(){if(!xtK){var g="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.w("kevlar_voice_search_auth_enabled")||_.w("kevlar_voice_search_use_yt_endpoint")?g="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.w("kevlar_voice_search_use_fp_endpoint")&&(g="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");xtK=
new KaL(_.VC.getInstance(),_.bR(),new Wf(_.FR("VOZ_API_KEY"),g,.5))}return xtK};var zHh=function(g){this.JSC$21684_clientRoot=g;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$21684_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)]]));g=_.N(this.eventListeners);for(var u=g.next();!u.done;u=g.next()){var q=
_.N(u.value);u=q.next().value;q=q.next().value;q=_.N(q);for(var Q=q.next();!Q.done;Q=q.next()){var L=_.N(Q.value);Q=L.next().value;L=L.next().value;u.addEventListener(Q,L)}}_.XU(_.VC.getInstance(),this.autonavPauseActionMap,this.JSC$21684_clientRoot)},nXH,kah=function(g){return _.w("kevlar_autonav_popup_filtering")?(g=_.bd(g))?g.hasAttribute("prevent-autonav"):!0:!0};
_.P=zHh.prototype;_.P.onIronOverlayOpened=function(g){kah(g)&&(this.autonavPauseReasons.overlayOpen=!0,hl(this))};
_.P.onIronOverlayClosed=function(g){kah(g)&&(this.autonavPauseReasons.overlayOpen=!1,hl(this))};
_.P.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;hl(this)};
_.P.onYtAutonavPauseBlur=function(){var g=this;_.Hv.addJob(function(){SNx()||(g.autonavPauseReasons.inputBoxFocus=!1,hl(g))},8,0)};
_.P.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;hl(this)};
_.P.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;hl(this)};
_.P.onYtAutonavPauseScroll=function(){var g=_.Bk().resolve(_.ba);g.isOnWatch()&&(g=g.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=g.getBoundingClientRect().top<-200,hl(this))};
_.P.onYtAutonavPauseUserEngagement=function(g){var u=this;if(_.w("user_engagement_enable_autoplay_pause_feature")){var q=Number(g.lowEngagementThresholdMs);isNaN(q)||q<=0||g.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?Ou("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.Bk().resolve(_.UE),_.nB()<q?_.M_(_.Hv,function(){Ou("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):YpZ()?(this.userEngagementCsn=_.j_(),_.M_(_.Hv,function(){Ou("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
u.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,hl(this)):Ou("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Rzb(Error("Zl`"+JSON.stringify(g)))};
_.P.onYtAutonavPausePlayer=function(g){this.autonavPauseReasons.requestedByPlayer=!!g.detail;hl(this)};
_.P.onYtAutonavVisibilityChanged=function(){var g=this,u,q,Q;return _.D(function(L){if(L.nextAddress==1)return(u=_.F0())?L.yield(u.getPlayerPromise(),2):L.return();q=L.yieldResult;Q=q.isMuted()||q.getVolume()===0;g.autonavPauseReasons.backgroundAndMute=SNx()&&Q;hl(g);_.Wx(L)})};
_.P.onYtAutonavPausePlayerEnded=function(){_.Bk().resolve(_.UE);var g=144E5;_.w("user_engagement_enable_autoplay_pause_feature")||_.w("is_part_of_any_user_engagement_experiment")||(g=45E5);this.autonavPauseReasons.longIdle=_.nB()>g;oXt(this);hl(this)};
_.P.onYtUserActivity=function(){var g=this;this.autonavPauseReasons.userEngagement&&(_.M_(_.Hv,function(){Ou("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",g.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,hl(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.M_(_.Hv,function(){Ou("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",g.userEngagementCsn);_.A_()}),this.autonavPauseReasons.youthereLactExperiment=!1,hl(this));
this.autonavPauseReasons.longIdle&&!_.w("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,hl(this))};
var SNx=function(){var g=window.document.visibilityState;return!(!g||g==="visible")},hl=function(g){for(var u=!1,q=_.N(Object.values(g.autonavPauseReasons)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,u=u||Q;
u?_.mB.getInstance().pause(g.autonavPauseReasons):(g=_.mB.getInstance(),g.autonavState_==3?(g.setState(2,!1,!1),g.autonavPauseReason_=void 0):g.autonavState_==1&&(g.disabledAutonavPauseReason_=void 0))},oXt=function(g){var u=!1;
if(_.w("enable_autoplay_pause_by_lact")){_.Bk().resolve(_.UE);u=_.S8("autoplay_pause_by_lact_sec")*1E3;var q=_.S8("autoplay_pause_by_lact_sampling_fraction");(u=_.nB()>=u&&Math.random()<q)&&!YpZ()&&(_.M_(_.Hv,function(){Ou("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),u=!1)}u!==g.autonavPauseReasons.youthereLactExperiment&&(g.autonavPauseReasons.youthereLactExperiment=u)&&(g.userEngagementCsn=_.j_(),_.M_(_.Hv,function(){Ou("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",g.userEngagementCsn)}));
g.autonavPauseReasons.userEngagement&&_.M_(_.Hv,function(){Ou("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",g.userEngagementCsn)})};
zHh.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(Ou("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.A_(),this.autonavPauseReasons.youthereLactExperiment=!1,hl(this));this.autonavPauseReasons.userEngagement&&(Ou("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,hl(this))};
zHh.prototype.onYtEngagementPanelVisibleChanged=function(g){g.detail&&g.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=g.detail.visible,hl(this))};
zHh.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var UtK=_.wy.persistentPanelVisibleSelector,YW=function(){var g=_.X.apply(this,arguments)||this;g.miniGuideVisible=!1;g.guideOpened=_.w("disable_initial_guide_state_fix")?!1:g.canFitPersistentGuide(g.initialBodyClientWidth);g.guideUserStateOpened=g.getInitialGuideUserStateOpened();g.isFullscreenShorts=!1;g.miniGuideWidthThreshold=_.S8("kevlar_mini_guide_width_threshold",791);g.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
g.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");g.persistentGuideBlockedPagePathRegex=new RegExp(g.persistentGuideBlockedPagesPatterns.join("|"));g.animationTransitionDuration=0;g.lateDataResolver=_.A9();g.initialGuideDataFetchFailed=!1;g.initialLoad=!0;g.guideRenderers=new Set;g.isMouseOverGuide=!1;g.sessionUserManuallyExpandedGuideState=
!1;g.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return g};
_.A(YW,_.X);_.P=YW.prototype;_.P.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.P.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.P.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.P.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.P.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.P.ready=function(){_.Bk().addProvider({provide:_.Gu,useValue:this.hostElement})};
_.P.attached=function(){var g=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.zr(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.zr(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.zr(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.zr(this,this.onYtGuideShow));_.xt(this,function(){g.animationTransitionDuration=200})};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.zr(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.zr(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.zr(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.zr(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.zr(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.zr(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.zr(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.P.getData=function(){return this.data};
_.P.load=function(){var g=this,u,q,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=g.lateDataResolver.resolve.bind(g),E.return(g.lateDataResolver.promise);if(window.ytInitialGuideData)return u=_.A9(),u.resolve(window.ytInitialGuideData),E.return(u.promise);Q=!1;_.b8(E,2);return E.yield(g.fetchGuideData(),4);case 4:q=E.yieldResult;_.Xx(E,3);break;case 2:L=_.rt(E),L.message==="Returned error"&&(Q=
!0);case 3:if(q)return E.return(q);g.onYtGuideClose();Q||(g.initialGuideDataFetchFailed=!0);return E.return(g.lateDataResolver.promise)}})};
_.P.fetchGuideData=function(){var g=this,u,q,Q,L,E,y,v;return _.D(function(J){if(J.nextAddress==1)return u=_.Bk(),g.guidePromise||(q=u.resolve(_.QY),g.guidePromise=_.ce(q,wth)),J.yield(g.guidePromise,2);if(J.nextAddress!=3)return Q=J.yieldResult,L=u.resolve(_.QO),J.yield(L(),3);(E=J.yieldResult)&&((y=Q)==null?void 0:(v=y.responseContext)==null?void 0:v.maxAgeSeconds)!==0&&E.put("service:guide:fallback",new _.B_({innertubeResponse:Q}));return J.return(Q)})};
_.P.initializeGuideDataIfEmpty=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1){if(!g.initialGuideDataFetchFailed||g.data)return Q.return();_.b8(Q,2);return Q.yield(g.fetchGuideData(),4)}if(Q.nextAddress!=2)return(u=Q.yieldResult)&&g.lateDataResolver.resolve(u),_.Xx(Q,0);q=_.rt(Q);_.Io(q);_.Wx(Q)})};
_.P.initializeGuideData=function(){var g=this,u,q;return _.D(function(Q){switch(Q.nextAddress){case 1:return _.SV(TVt(),{mainAppWeb:_.Zq()}),_.b8(Q,2),Q.yield(g.load(),4);case 4:g.data=Q.yieldResult;_.Xx(Q,3);break;case 2:u=_.rt(Q),_.o1(TVt(),"FAILURE"),_.Io(new _.Ji("Guide data not present",{errorMessage:u.message}));case 3:q=g.data&&g.data.items&&g.data.items.length>0?"SUCCESS":"FAILURE",q==="FAILURE"&&_.Io(new _.Ji("Guide data.items empty")),_.o1(TVt(),q),_.Wx(Q)}})};
_.P.setGuideData=function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1)return u.disabled?L.return():u.data?(g.data=u.data,u.guideRenderers.add(g),L.return()):L.yield(u.initializeGuideData(),2);u.graftGuideToPage();q=_.mW("IS_HOMEPAGE_COLD")?"eop":void 0;_.w("disable_element_pool_populator")?u.setGuideDataAfterInit(g):(Q=new _.bw(1,q),_.dg(Q,u.setGuideDataAfterInit.bind(u,g)));_.Wx(L)})};
_.P.setGuideDataAfterInit=function(g){g.data=this.data;g.markDirty();this.guideRenderers.add(g);_.wO(function(){_.fW("gle")});
_.xt(this,function(){_.fW("gpe")})};
_.P.graftGuideToPage=function(){if(this.data){var g=this.data&&this.data.trackingParams;g&&(g=_.Lr(g),_.BF(_.gL(),g))}};
_.P.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.zr(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.P.onDrawerOpenedChanged=function(g,u){!u.value&&this.guideOpened&&(this.guideOpened=!1)};
_.P.onYtGuideToggle=function(g){var u=this.guideOpened;this.guideOpened=!u;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var q=_.qf();_.QX(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;q.save()}this.updateGuideDrawerElementState();if(this.guideElement){var Q;this.guideOpened&&((Q=g.detail)==null?0:Q.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.zr(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.zr(this,this.onAppDrawerTransitioned))}u||this.initializeGuideDataIfEmpty()};
_.P.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.zr(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.YO(this.guideElement)};
_.P.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.zr(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Wmz(this.guideOpened))};
_.P.guidePersistentAndVisibleChanged=function(){_.Og(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.P.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.rF({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.P.miniGuideVisibleChanged=function(){_.Og(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.P.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Wmz(this.guideOpened)),this.initialLoad=!1);_.Og(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.P.activeEndpointChanged=function(){_.Og(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.P.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.P.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()};
_.P.cachedClientWidthChanged=function(){this.updateGuideState()};
_.P.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.P.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var g=this.canFitPersistentGuide(this.cachedClientWidth);g?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=g}this.updateGuideDrawerElementState()};
_.P.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.P.getGuideOpened=function(){return this.guideOpened};
_.P.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.P.getActiveEndpoint=function(){return this.activeEndpoint};
_.P.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.P.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&&_.hJ(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.P.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.w("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.P.handleGuideMouseLeave=function(){var g=this;!this.sessionUserManuallyExpandedGuideState&&_.w("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.c$(this,"handleGuideMouseLeave",function(){g.isMouseOverGuide||!g.guideOpened||g.miniGuideVisible||(g.guideOpened=!1,g.updateGuideDrawerElementState())},100))};
_.P.computeGuidePersistentAndVisible=function(){var g=this;_.c$(this,"computeGuidePersistentAndVisible",function(){g.guidePersistentAndVisible=g.guideOpened&&g.guidePersistent;g.guideIsVisibleButNotPersistent=!(!g.guideOpened||g.guidePersistent)})};
_.P.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.P.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.P.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.P.startLoadingWatch=function(){this.closeGuide()};
_.P.startLoadingShorts=function(){_.w("web_hide_guide_on_shorts")&&this.closeGuide()};
_.P.onYtNavigateFinish=function(g,u){if(!_.xS||u){this.activeEndpoint=u.endpoint;this.pageType=u.pageType;this.pageUrl=u.response.url;var q,Q;g=(Q=_.c((q=u.endpoint)==null?void 0:q.commandMetadata,_.S_))==null?void 0:Q.url;!this.pageUrl&&g&&(this.pageUrl=g);_.w("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.P.getVisibleGuideRenderer=function(){for(var g=_.N(this.guideRenderers),u=g.next();!u.done;u=g.next())if(u=u.value,this.miniGuideVisible&&u.is==="ytd-mini-guide-renderer"||this.guideOpened&&u.is==="ytd-guide-renderer")return u;return null};
_.P.markGuideRendererDirty=function(g){if(g){typeof g.markDirty==="function"&&g.markDirty();g=_.N([].concat(_.na(_.Tr(g).children)));for(var u=g.next();!u.done;u=g.next())this.markGuideRendererDirty(u.value)}};
_.P.persistentGuideEnabled=function(g,u){if(!u||g==="watch"||g==="settings"||g==="shorts"&&this.isFullscreenShorts||_.w("reels_web_disable_persistent_guide_shorts")&&g==="shorts")return!1;var q=_.YB(u)||"";return _.w("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(Q){return q===Q}):!this.persistentGuideBlockedPagePathRegex.test(q)};
_.P.canFitPersistentGuide=function(g){var u=_.S8("kevlar_persistent_guide_width_threshold",1312);return u===-1||_.w("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:g>this.calculateGuideThreshold(u)};
_.P.calculateGuideThreshold=function(g){return _.w("enable_ai_companion")?g+(this.persistentPanelVisible?400:0):g};
_.P.canFitMiniGuide=function(g){return this.miniGuideWidthThreshold===-1?!1:g>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.P.onResize=function(){var g=this;_.c$(this,"calculateGuideState",function(){g.onResizeDebounced()})};
_.P.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.P.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.P.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.P.getInitialGuideUserStateOpened=function(){return _.w("web_force_mini_guide_default")?!1:!_.qf().getFlag(109)};
_.z3.Object.defineProperties(YW.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.FR("initialBodyClientWidth")||window.innerWidth}}});
YW.prototype.onResize=YW.prototype.onResize;YW.prototype.observeForMiniGuideVisible=YW.prototype.observeForMiniGuideVisible;YW.prototype.computeGuidePersistentAndVisible=YW.prototype.computeGuidePersistentAndVisible;YW.prototype.persistentPanelVisibleChanged=YW.prototype.persistentPanelVisibleChanged;YW.prototype.cachedClientWidthChanged=YW.prototype.cachedClientWidthChanged;YW.prototype.resetGuide=YW.prototype.resetGuide;YW.prototype.activeEndpointChanged=YW.prototype.activeEndpointChanged;
YW.prototype.guideOpenedChanged=YW.prototype.guideOpenedChanged;YW.prototype.miniGuideVisibleChanged=YW.prototype.miniGuideVisibleChanged;YW.prototype.guideIsVisibleButNotPersistentChanged=YW.prototype.guideIsVisibleButNotPersistentChanged;YW.prototype.guidePersistentAndVisibleChanged=YW.prototype.guidePersistentAndVisibleChanged;YW.prototype.onGuideElementChanged=YW.prototype.onGuideElementChanged;YW.prototype.onGuidePersistentChanged=YW.prototype.onGuidePersistentChanged;
YW.prototype.onRenderGuideChanged=YW.prototype.onRenderGuideChanged;YW.prototype.onActiveEndpointChanged=YW.prototype.onActiveEndpointChanged;YW.prototype.onMiniGuideVisibleChanged=YW.prototype.onMiniGuideVisibleChanged;YW.prototype.onGuideIsVisibleButNotPersistentChanged=YW.prototype.onGuideIsVisibleButNotPersistentChanged;YW.prototype.onGuidePersistendAndVisibleChanged=YW.prototype.onGuidePersistendAndVisibleChanged;
_.Y([_.I(_.LJ),_.K("design:type",Object)],YW.prototype,"ironResizableBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],YW.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],YW.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],YW.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],YW.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],YW.prototype,"disabled",void 0);_.Y([_.a(),_.K("design:type",Boolean)],YW.prototype,"guidePersistentAndVisible",void 0);_.Y([_.k_("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"onGuidePersistendAndVisibleChanged",null);_.Y([_.a(),_.K("design:type",Boolean)],YW.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Y([_.k_("guideIsVisibleButNotPersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.Y([_.a(),_.K("design:type",Object)],YW.prototype,"miniGuideVisible",void 0);_.Y([_.k_("miniGuideVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"onMiniGuideVisibleChanged",null);_.Y([_.a(),_.K("design:type",Boolean)],YW.prototype,"forceMiniGuideClose",void 0);
_.Y([_.a(),_.K("design:type",Object)],YW.prototype,"activeEndpoint",void 0);_.Y([_.k_("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"onActiveEndpointChanged",null);_.Y([_.a(),_.K("design:type",Boolean)],YW.prototype,"renderGuide",void 0);_.Y([_.k_("renderGuide"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"onRenderGuideChanged",null);
_.Y([_.a({selector:UtK}),_.K("design:type",Boolean)],YW.prototype,"persistentPanelVisible",void 0);_.Y([_.a(),_.K("design:type",Object)],YW.prototype,"guideOpened",void 0);_.Y([_.a(),_.K("design:type",Boolean)],YW.prototype,"guidePersistent",void 0);_.Y([_.k_("guidePersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"onGuidePersistentChanged",null);_.Y([_.a(),_.K("design:type",Object)],YW.prototype,"guideUserStateOpened",void 0);
_.Y([_.a(),_.K("design:type",String)],YW.prototype,"pageUrl",void 0);_.Y([_.a(),_.K("design:type",String)],YW.prototype,"pageType",void 0);_.Y([_.a(),_.K("design:type",Number)],YW.prototype,"cachedClientWidth",void 0);_.Y([_.a(),_.K("design:type",Object)],YW.prototype,"guideElement",void 0);_.Y([_.a({selector:_.ry}),_.K("design:type",Object)],YW.prototype,"isFullscreenShorts",void 0);
_.Y([_.k_("guideElement"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"onGuideElementChanged",null);_.Y([_.k_("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"guidePersistentAndVisibleChanged",null);
_.Y([_.qm("guideIsVisibleButNotPersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"guideIsVisibleButNotPersistentChanged",null);_.Y([_.k_("miniGuideVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"miniGuideVisibleChanged",null);_.Y([_.qm("guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"guideOpenedChanged",null);
_.Y([_.k_("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"activeEndpointChanged",null);_.Y([_.qm("pageUrl"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"resetGuide",null);_.Y([_.qm("cachedClientWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"cachedClientWidthChanged",null);
_.Y([_.qm("persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"persistentPanelVisibleChanged",null);_.Y([_.k_("guideOpened","guidePersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"computeGuidePersistentAndVisible",null);
_.Y([_.qm("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"observeForMiniGuideVisible",null);_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YW.prototype,"onResize",null);_.Y([_.fE({disableElementRegistration:!0,is:"yt-guide-manager"})],YW);var gmL=_.T(YW,"yt-guide-manager",void 0,{mode:2});var D$C=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],uN=new Map;uN.set(32,59972);uN.set(27,50765);uN.set(70,60102);uN.set(76,60221);uN.set(77,60222);uN.set(74,60223);uN.set(84,60224);uN.set(38,61941);uN.set(40,61942);uN.set(73,62521);uN.set(67,62522);uN.set(80,63390);uN.set(78,63397);uN.set(75,59972);uN.set(188,63385);uN.set(190,63384);uN.set(36,63387);uN.set(35,63386);uN.set(37,63388);
uN.set(39,63389);uN.set(79,63423);uN.set(87,63424);uN.set(107,63426);uN.set(109,63425);uN.set(65,63428);uN.set(83,63430);uN.set(68,63429);uN.set(221,63431);uN.set(219,63432);uN.set(97,63439);uN.set(98,63440);uN.set(99,63441);uN.set(100,63442);uN.set(101,63443);uN.set(102,63444);uN.set(103,63445);uN.set(104,63446);uN.set(105,63447);var gH=new Map;gH.set(80,63390);gH.set(78,63397);gH.set(188,63400);gH.set(190,63401);gH.set(191,60765);gH.set(13,247917);var v0b=new Map,y2h=new Map;var OD=function(){var g=_.X.apply(this,arguments)||this;g.JSC$21693_keyboardInUse=!1;g.boundHandleCapturedKeydownEvent=function(u){g.handleCapturedKeydownEvent(u)};
return g};
_.A(OD,_.X);_.P=OD.prototype;_.P.attached=function(){this.listenToDocument(document)};
_.P.listenToDocument=function(g){g.addEventListener("keydown",_.zr(this,this.onKeyDownEvent));g.addEventListener("keyup",_.zr(this,this.onKeyUpEvent));g.addEventListener("mousedown",_.zr(this,this.onMouseDownEvent));_.w("desktop_keyboard_capture_keydown_killswitch")||g.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);g.addEventListener("yt-page-data-updated",_.zr(this,this.onPageUpdate))};
_.P.detached=function(){this.unlistenFromDocument(document)};
_.P.unlistenFromDocument=function(g){g.removeEventListener("keydown",_.zr(this,this.onKeyDownEvent));g.removeEventListener("keyup",_.zr(this,this.onKeyUpEvent));g.removeEventListener("mousedown",_.zr(this,this.onMouseDownEvent));_.w("desktop_keyboard_capture_keydown_killswitch")||g.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);g.removeEventListener("yt-page-data-updated",_.zr(this,this.onPageUpdate))};
_.P.ready=function(){_.Bk().addProvider({provide:_.m5,useValue:this})};
_.P.isKeyBoardInUse=function(){return this.JSC$21693_keyboardInUse};
_.P.handleCapturedKeydownEvent=function(g){if(g.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(g)};
_.P.onMouseDownEvent=function(){this.JSC$21693_keyboardInUse=!1};
_.P.onPageUpdate=function(){if(_.w("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.w("web_shorts_keyboard_shortcut_usage_log")){v0b.clear();for(var g=_.N(uN),u=g.next();!u.done;u=g.next()){var q=_.N(u.value);u=q.next().value;q=q.next().value;q=_.Yq(q);v0b.set(u,q);_.cC(_.j_(),_.JJ(),q)}y2h.clear();g=_.N(gH);for(u=g.next();!u.done;u=g.next())q=_.N(u.value),u=q.next().value,q=q.next().value,q=_.Yq(q),y2h.set(u,q),_.cC(_.j_(),_.JJ(),q);_.HC(_.j_(),_.JJ(),[].concat(_.na(y2h.values()),_.na(v0b.values())));
_.Z0(_.j_(),[].concat(_.na(y2h.values()),_.na(v0b.values())))}};
_.P.onMiniplayerActiveChange=function(){var g;(g=_.Bk().resolve(_.RO).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(g.document):this.unlistenFromDocument(g.document))};
_.P.ignoreKeyEvent=function(g){if(g.ctrlKey||g.altKey)if(_.w("kevlar_macro_markers_keyboard_shortcut")){if(g.keyCode!==37&&g.keyCode!==39)return!0}else return!0;var u=_.C6(g)||[];return pMx(u)?(_.w("web_button_or_anchor_list_item")&&J2Z(u,g)&&(this.JSC$21693_keyboardInUse=!0),!0):g.defaultPrevented?(qn(g.keyCode,g.shiftKey,this.isShortsPage),!0):g.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(g):!1};
_.P.isSpacebarClick=function(g){var u=g||window.event;var q;u.composedPath&&typeof u.composedPath==="function"?q=u.composedPath():q=u.path;q&&q.length?u=q[0]:(u=u||window.event,u=u.target||u.srcElement,u.nodeType==3&&(u=u.parentNode));return u&&g.keyCode===32&&(g=u.tagName==="BUTTON"||u.tagName==="A"||u.tagName==="INPUT",u=(u=u.getAttribute("role"))&&(u==="option"||u==="button"||u.indexOf("menuitem")===0),g||u)?!0:!1};
_.P.onKeyDownEvent=function(g){if(!this.ignoreKeyEvent(g)&&(g.keyCode===191&&(g.shiftKey||g.metaKey?g.repeat!=null&&g.repeat||(this.openHotkeyDialog(),qn(g.keyCode,g.shiftKey,this.isShortsPage)):(this.focusSearchBox(),g.preventDefault())),!g.metaKey)){var u=_.Bk().resolve(_.RO);switch(g.keyCode){case 9:this.JSC$21693_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(g);break;case 84:u.pipController.getWindow()&&window.focus();this.toggleTheaterMode(g.keyCode,g.shiftKey);break;case 73:u.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(g.keyCode,g.shiftKey);break;case 70:if(this.isShortsPage){TGt();break}this.isMiniplayerActive()?u.pipController.getWindow()&&(u.close(!0),window.focus()):this.passEventToPlayer(g);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(g.keyCode,g.shiftKey):this.closeMiniplayer(g.keyCode,g.shiftKey)||this.passEventToPlayer(g);break;case 13:g.shiftKey&&_.Bk().resolve(_.fg).activate(g);break;default:this.passEventToPlayer(g)}}};
_.P.onKeyUpEvent=function(g){if(!this.ignoreKeyEvent(g))if(_.w("web_speedmaster_spacebar_control")&&g.keyCode===32)this.handlePlayerSpaceKey(g,!0);else{var u=this.getPlayerManager();u&&(u=u.getPlayer())&&u.handleGlobalKeyUp(g.keyCode,g.shiftKey,g.ctrlKey,g.altKey,g.metaKey,g.key,g.code)}};
_.P.getPlayerManager=function(){var g=_.F0(),u=_.Bk().resolve(_.xv(_.ba));return g&&u&&u.isOnWatch()?g:null};
_.P.passEventToPlayer=function(g,u){var q=this,Q,L,E,y;return _.D(function(v){if(v.nextAddress==1){if(!_.w("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&q.isMiniplayerActive())Q=_.Bk().resolve(_.RO).getPlayerElement();else if(q.inlinePreviewIsActive){if(L=_.Og(q.hostElement,"yt-get-inline-preview-player-action"),(E=L)==null?0:E[0])Q=L[0]}else Q=_.F0();return Q?v.yield(Q.getPlayerPromise(),3):v.jumpTo(0)}y=v.yieldResult;u?y.handleGlobalKeyUp(g.keyCode,g.shiftKey,g.ctrlKey,g.altKey,g.metaKey,
g.key,g.code):y.handleGlobalKeyDown(g.keyCode,g.shiftKey,g.ctrlKey,g.altKey,g.metaKey,g.key,g.code,g.repeat);g.keyCode!==38&&g.keyCode!==40&&qn(g.keyCode,g.shiftKey,q.isShortsPage);_.Wx(v)})};
_.P.focusSearchBox=function(){_.hJ(this.hostElement,"yt-focus-searchbox")};
_.P.openHotkeyDialog=function(){_.hJ(this.hostElement,"yt-open-hotkey-dialog")};
_.P.isMiniplayerActive=function(){return _.Bk().resolve(_.RO).isMiniplayerActive()};
_.P.closeMiniplayer=function(g,u){return this.isMiniplayerActive()?(_.Bk().resolve(_.RO).close(),qn(g,u,this.isShortsPage),!0):!1};
_.P.toggleTheaterMode=function(g,u){var q=_.Dc(_.bR().getState()),Q=this.getPlayerManager(),L=_.w("disable_theater_mode_keyboard")||_.mW("START_IN_FULL_WINDOW_MODE");Q&&!L&&(q=!q,_.b1()&&_.w("external_fullscreen")&&(q=!0),_.YJ(this.hostElement,"yt-toggle-theater-mode",[q]),qn(g,u,this.isShortsPage))};
_.P.toggleMiniplayer=function(g,u){var q=this.getPlayerManager();if(this.isMiniplayerActive()){var Q;((Q=_.Bk().resolve(_.xv(_.ba)))==null?0:Q.isOnWatch())?_.Bk().resolve(_.RO).close(!0):_.Hr(_.Bk().resolve(_.RO));qn(g,u,this.isShortsPage)}else q&&(_.YJ(this.hostElement,"yt-activate-miniplayer-from-watch-action"),qn(g,u,this.isShortsPage))};
_.P.handlePlayerSpaceKey=function(g,u){var q=!!_.F0()||this.isMiniplayerActive();q=_.w("disable_space_scroll_fix")||q;_.w("global_spacebar_pause")&&!this.isKeyBoardInUse()&&q&&(g.preventDefault(),this.passEventToPlayer(g,u))};
_.P.isPresentingTheaterMode=function(){return _.w("web_watch_enable_tm_esc_key")?_.Dc(_.bR().getState())&&!_.b1():!1};
OD.prototype.onMiniplayerActiveChange=OD.prototype.onMiniplayerActiveChange;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],OD.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],OD.prototype,"ytdReduxBehavior",void 0);_.Y([_.a({selector:_.w_F}),_.K("design:type",Boolean)],OD.prototype,"inlinePreviewIsActive",void 0);_.Y([_.a({selector:_.umZ}),_.K("design:type",Boolean)],OD.prototype,"isShortsPage",void 0);
_.Y([_.a({selector:_.jb}),_.K("design:type",Boolean)],OD.prototype,"miniplayerIsActive",void 0);_.Y([_.k_("miniplayerIsActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],OD.prototype,"onMiniplayerActiveChange",null);_.Y([_.fE({disableElementRegistration:!0,is:"yt-hotkey-manager"})],OD);_.T(OD,"yt-hotkey-manager",void 0,{mode:2});var KL=function(){var g=_.X.apply(this,arguments)||this;g.loopStateEntityKey_=null;g.playlistLoopStateEntity_=null;g.isShuffleNextPlaylist=!1;g.PLAYER_EVENTS_=new Map;g.playerListenersSetup_=!1;g.videoSkipJob_=0;g.canAutoAdvance_=!1;g.playerManager_=null;g.TEST_ONLY={};return g};
_.A(KL,_.X);_.P=KL.prototype;_.P.ready=function(){_.Bk().addProvider({provide:_.cd,useValue:this.hostElement})};
_.P.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_)};
_.P.attached=function(){document.addEventListener("yt-navigate-start",_.zr(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.zr(this,this.onYtNavigateFinish_))};
_.P.detached=function(){document.removeEventListener("yt-navigate-start",_.zr(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.zr(this,this.onYtNavigateFinish_))};
_.P.updatePlaylistEventListeners=function(g,u){u&&!this.playerListenersSetup_?(this.playerManager_=g,this.registerPlaylistEventListeners_(g)):!u&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(g))};
_.P.setPlayer=function(g){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=g};
_.P.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.P.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.P.registerPlaylistEventListeners_=function(g){var u=this;g.getPlayerPromise().then(function(q){u.playerListenersSetup_||(u.ytPlayerListenerBehavior.listenToPlayerEvents(q,u.PLAYER_EVENTS_),u.playerListenersSetup_=!0)})};
_.P.removePlaylistEventListeners_=function(g){var u=this;g.getPlayerPromise().then(function(q){u.playerListenersSetup_&&(u.ytPlayerListenerBehavior.unlistenFromPlayerEvents(q,u.PLAYER_EVENTS_),u.playerListenersSetup_=!1)})};
_.P.setPlaylistComponent=function(g){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.zr(this,this.onPlaylistYtNavigate_)),g&&(g.data&&this.playlistComponent.data&&g.data.playlistId==this.playlistComponent.data.playlistId?(g.loopOn=this.playlistComponent.loopOn,g.shuffleOn=this.playlistComponent.shuffleOn):(g.loopOn=!1,g.shuffleOn=!1),this.isShuffleNextPlaylist&&(g.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=g;this.playlistComponent.addEventListener("yt-navigate",
_.zr(this,this.onPlaylistYtNavigate_))};
_.P.setAutoplayRenderer=function(g){this.autoplayData=g};
_.P.setPlaylistData=function(g){this.currentPlaylistData_=g;_.hJ(this.hostElement,"yt-playlist-data-updated");_.pH.isEmpty(g)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(g)};
_.P.setPlayerPlaybackControlData=function(g){this.playerManager_&&this.playerManager_.updatePlayerComponents(g.playlistPanelRenderer)};
_.P.getPlaylistData=function(){return this.currentPlaylistData_};
_.P.getTempData_=function(g,u){if(this.playlistComponent==null)return null;g={};this.playlistComponent.shuffleOn&&(g.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(g.loop_on=this.playlistComponent.loopOn);u&&(g.autonav="1",_.Bk().resolve(_.UE),u=_.nB(),u>0&&(g.lact=u),this.playerManager_&&(u=this.playerManager_.getPlayer())&&u.shouldSendVisibilityState()&&(u=u.getVisibilityState(),u!=0&&(g.vis=u)));_.w("enable_unknown_lact_fix_on_html5")&&(_.Bk().resolve(_.UE),g.lact=
_.nB());return g};
_.P.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.P.setLoopStateEntityKey_=function(g){var u;this.loopStateEntityKey_=((u=this.getPlaylistLoopData_(g))==null?void 0:u.playlistLoopStateEntityKey)||null};
_.P.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.P.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.P.skipVideo=function(){var g=this,u=_.w("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||u)u=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Ln(_.Hv,function(){g.onPlaylistNext();g.videoSkipJob_=0},u)};
_.P.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Hv.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.P.isInBackground_=function(){var g=window.document.visibilityState;return!(!g||g=="visible")};
_.P.onPlaylistIndex_=function(g){this.playlistComponent&&(g=this.playlistComponent.data.contents[g].playlistPanelVideoRenderer.navigationEndpoint,_.hJ(this.hostElement,"yt-navigate",{endpoint:g,tempData:this.getTempData_(g)}))};
_.P.onPlayerStateChange_=function(g){if(g=g==0&&this.playlistComponent&&this.canAutoAdvance_)g=_.mB.getInstance(),g=!(g.autonavState_===3?g.autonavPauseReason_&&g.autonavPauseReason_.inputBoxFocus===!0:g.autonavState_===1&&g.disabledAutonavPauseReason_&&g.disabledAutonavPauseReason_.inputBoxFocus===!0);g&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.P.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.P.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.P.navigateToAutoplayWatchEndpoint_=function(g,u,q){var Q=this.playlistComponent.data.currentIndex,L=this.getNumPlayableVideos_();g=="NORMAL"&&u=="autoplayVideo"&&Q+1>=L&&q||!(g=this.getVideoEndpoint_(g,u))||(q=this.getTempData_(g,q),_.hJ(this.hostElement,"yt-navigate",{endpoint:g,tempData:q}))};
_.P.getNumPlayableVideos_=function(){for(var g=0,u=_.N(this.playlistComponent.data.contents||[]),q=u.next();!q.done;q=u.next())q.value.playlistPanelVideoRenderer&&(g+=1);return g};
_.P.getVideoEndpoint_=function(g,u){if(this.autoplayData&&this.autoplayData.sets)for(var q=0,Q=this.autoplayData.sets.length;q<Q;q++){var L=this.autoplayData.sets[q];if(L.mode==g){if(L[u])return L[u];break}}else g=new _.Ji("AutoplayData is undefined in playlist manager","Mode: "+g+" endpoint: "+u),_.Io(g)};
_.P.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.P.onPlaylistYtNavigate_=function(g){if(g.detail.endpoint){g.stopPropagation();var u=g.detail;u.tempData=this.getTempData_(g.detail.endpoint);_.hJ(this.hostElement,"yt-navigate",u)}};
_.P.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.P.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.P.playlistLoopStateEntityChanged_=function(g){var u=this,q,Q,L;return _.D(function(E){if(E.nextAddress==1){if(!g)return E.return();q=g.state==="PLAYLIST_LOOP_STATE_ONE";return u.playerManager_?E.yield(u.playerManager_.getPlayerPromise(),3):E.jumpTo(2)}E.nextAddress!=2&&(Q=E.yieldResult,Q.setLoopVideo(q));L=g.state==="PLAYLIST_LOOP_STATE_ALL";u.playlistComponent&&(u.playlistComponent.loopOn=L);_.Wx(E)})};
_.P.getPlaylistLoopData_=function(g){var u,q;if(g=g==null?void 0:(u=g.playlistButtons)==null?void 0:(q=u.menuRenderer)==null?void 0:q.topLevelButtons)for(u=_.N(g),q=u.next();!q.done;q=u.next())if(q=q.value,q.playlistLoopButtonRenderer)return q.playlistLoopButtonRenderer};
_.P.getLoopStateCommand_=function(g){var u=this.getPlaylistData(),q;u=((q=this.getPlaylistLoopData_(u))==null?void 0:q.states)||[];var Q;g=(Q=_.c(u[g?1:2],_.xI5))==null?void 0:Q.button;var L;return(L=_.c(g,_.eW))==null?void 0:L.command};
_.P.onPlayerLoopChange_=function(g){this.playlistLoopStateEntity_&&(g?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(g=this.getLoopStateCommand_(g))&&this.ytComponentBehavior.resolveCommand(g)};
_.P.onSleepTimerSettingsChanged_=function(g){this.canAutoAdvance_=g!=="End of video"};
KL.prototype.onPlaylistLoopStateEntityChanged=KL.prototype.onPlaylistLoopStateEntityChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],KL.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],KL.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],KL.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],KL.prototype,"loopStateEntityKey_",void 0);
_.Y([_.a({selectorArgs:["loopStateEntityKey_"],selector:_.LF.playlistLoopStateEntitySelector}),_.K("design:type",Object)],KL.prototype,"playlistLoopStateEntity_",void 0);_.Y([_.k_("playlistLoopStateEntity_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KL.prototype,"onPlaylistLoopStateEntityChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"yt-playlist-manager"})],KL);_.T(KL,"yt-playlist-manager",void 0,{mode:2});var uZh,qsf=function(){if(uZh!==void 0)return uZh;var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return uZh=g};var xW=function(){var g=_.X.apply(this,arguments)||this;g.lastCallback=null;g.getAccountLinkPromises={};g.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);g.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return g};
_.A(xW,_.X);_.P=xW.prototype;_.P.getLocation=function(){return window.location.href};
_.P.getCompletionUrl=function(){return _.xB(this.getLocation())};
_.P.containsRedirectState=function(g){return(g=_.TW(_.zvu(g)))?(new URLSearchParams(g)).get("redirect_state")!==null:!1};
_.P.createGalConfig=function(g,u){var q=new Anp;g=q=u?this.getPopupOrRedirectSetting(q,_.FR("LINK_API_KEY"),_.FR("LINK_API_KEY_REDIRECT"),g):Zqz(q,_.FR("LINK_API_KEY"));g.authUser=_.FR("SESSION_INDEX")||0;g.supportedFlows=new Set([4]);return g.build()};
_.P.getPopupOrRedirectSetting=function(g,u,q,Q){this.isGalInteractionPopupMode(Q)?(g.interactionMode=0,g=Zqz(g,u)):(g.interactionMode=1,u=this.getCompletionUrl(),g.completionUrl=u,g=Zqz(g,q));return g};
_.P.isGalInteractionPopupMode=function(g){if(this.redirectModeProviderAllowlist.has(g))switch(g){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.P.getStatusEntityKeyForProviderId=function(g){return _.x6(g+":all","accountLinkStatusEntity")};
_.P.findNestedPropValue=function(g,u){var q=!1,Q=null;JSON.stringify(g,function(L,E){q||L!==u||(q=!0,Q=E);return q?null:E});
return Q};
_.P.findAccountLinkButtonViewModel=function(g,u){var q=null,Q=!1;JSON.stringify(g,function(L,E){Q||E.accountLinkStatusEntityKey!==u||E.accountLinkStatusSecondaryEntityKey||(Q=!0,q=E);return Q?null:E});
return q};
_.P.executeLinkingSuccessOrFailureCommands=function(g,u,q){var Q=null,L;(u==null?0:(L=u.url)==null?0:L.includes("account_sharing"))?Q=u==null?void 0:u.response:Q=u==null?void 0:u.response;(u=this.findAccountLinkButtonViewModel(Q,g))?(g=q?this.findNestedPropValue(u,"onSuccessCommand"):this.findNestedPropValue(u,"onFailureCommand"))?_.nV([g],this.hostElement):_.Wk(Error("$l")):_.Wk(Error("am`"+g))};
_.P.handleInitializeRequest=function(g,u){var q=this,Q=YxC(this.createGalConfig(g,!0));this.containsRedirectState(this.getLocation())?X9f(g,Q.config,Q.galService).then(function(L){var E=q.getStatusEntityKeyForProviderId(g);if(L.statusCode===1)u&&q.executeLinkingSuccessOrFailureCommands(E,u,!0),L=q.getLocation().indexOf("#"),L!==-1&&window.history.pushState(null,"",q.getLocation().substring(0,L));else return u&&q.executeLinkingSuccessOrFailureCommands(E,u,!1),Promise.reject(Error(L.statusMessage))}).catch(function(L){_.Io(L);
_.H6("gamingAccountLinkStatusChanged",{serviceId:g,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(L)}):this.getAccountLinkPromises[g]=Q.startLinkingSession({serviceId:g})};
_.P.handleAccountLinkCommand=function(g){_.c(g,wEK)&&this.handleLinkRequest(_.c(g,wEK))};
_.P.handleLinkRequest=function(g){var u=this,q=g.thirdPartyId;if(q)if(this.isGalInteractionPopupMode(q)){var Q=function(){u.closeAndFire("ytd-gaming-account-link-setting-renderer",g.onFailureCommand)},L=function(){u.closeAndFire("ytd-gaming-account-link-setting-renderer",g.onSuccessCommand)};
this.lastCallback=L;this.getAccountLinkPromises[q].then(function(E){NEC(E).then(function(y){y.statusCode===1?L():Q()})}).catch(function(){Q()})}else this.getAccountLinkPromises[q].then(function(E){NEC(E).then(function(y){if(y.statusCode!==1)return Promise.reject(Error(y.statusMessage))})}).catch(function(E){_.Io(E);
_.H6("gamingAccountLinkStatusChanged",{serviceId:q,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(E)})};
_.P.closeAndFire=function(g,u){_.YJ(this.hostElement,"yt-close-popup-action",[g]);u&&_.nV([u],this.hostElement)};
_.P.handleAccountUnlinkCommand=function(g){_.c(g,cKK)&&this.handleUnlinkRequest(_.c(g,cKK))};
_.P.handleUnlinkRequest=function(g){var u=this,q=g.thirdPartyId;if(q){var Q=function(){u.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",g.onFailureCommand)},L=function(){u.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",g.onSuccessCommand)};
this.lastCallback=L;var E=YxC(this.createGalConfig(q,!1));this.unlinkUserGal(E,q).then(function(y){y.statusCode===1?L():Q()}).catch(function(){Q()})}};
_.P.unlinkUserGal=function(g,u){return g.deleteLink(u)};
_.P.handleLogAccountLinkingEventCommand=function(g){_.w("enable_gel_log_commands")&&_.c(g,AKC)&&(g=_.c(g,AKC).event)&&_.H6("gamingAccountLinkStatusChanged",g)};
_.z3.Object.defineProperties(xW,{template:{configurable:!0,enumerable:!0,get:function(){return qsf()}}});
_.Y([_.I(_.Ov.YtOpenPopupBehavior),_.K("design:type",Object)],xW.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],xW.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-third-party-manager"})],xW);_.T(xW,"ytd-third-party-manager",function(){return qsf()},{mode:2});var Qfb=2/3,LqH=_.Yq(130749),Emx=function(g,u){var q=this;this.element=g;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){q.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Qfb,moveAction:function(Q){q.moveAction(Q)},
triggerAction:function(){q.element.isReloading=!0;_.$q(_.gL(),{visualElement:LqH});_.ze.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:q.element}})}}}};
_.BF(_.gL(),LqH,this.layer);this.gesture=new a8(g,u,this.refreshConfig,"pan-down");this.attach()};
_.P=Emx.prototype;_.P.attach=function(){this.gesture.attach()};
_.P.detach=function(){this.gesture.detach()};
_.P.reset=function(){this.element.close()};
_.P.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.P.moveAction=function(g){this.element.rotation=g*360};var Pmf=_.Yq(130750),sfL=function(g,u,q,Q,L){var E=this;this.element=g;this.parent=q;this.channelHeader=Q;this.ytdReduxDispatch=L;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){E.tabsStartAtInPx=E.channelHeader.clientHeight-48;var y;(y=E.selectedTab)!=null&&y.title&&(y=_.Bk().resolve(_.xv(_.ba)))&&(y=y.getCurrentPage(),E.lastVisitedTabScrollPosition=y.getScrollTop(),E.previousTab&&
((E.lastVisitedTabScrollPosition===void 0?0:E.lastVisitedTabScrollPosition<E.channelHeader.clientHeight-48)?E.scrollPositionForTabs.has(E.selectedTab.title)&&E.scrollPositionForTabs.delete(E.selectedTab.title):E.scrollPositionForTabs.set(E.selectedTab.title,y.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:NMf(),triggerAction:function(){E.navigate(E.previousTab)},
moveAction:function(y,v){E.moveAction(y,v)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-NMf(),triggerAction:function(){E.navigate(E.nextTab)},
moveAction:function(y,v){E.moveAction(y,v)}}}};
_.BF(_.gL(),Pmf,this.layer);this.gesture=new a8(g,u,this.tabConfig);this.attach()};
_.P=sfL.prototype;_.P.attach=function(){this.gesture.attach()};
_.P.detach=function(){this.gesture.detach()};
_.P.tabsChanged=function(g){if(g){var u=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;g=_.N(g);for(var q=g.next();!q.done;q=g.next()){q=q.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=q);var Q=void 0;if((Q=q)==null?0:Q.selected)this.previousTab=u,this.selectedTab=q;u=q}u=this.gesture;g=this.getConfig();u.config=g;this.scrollPositionNeedsUpdate=!0}};
_.P.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}})};
_.P.moveAction=function(g,u){if(!this.tabsElement){var q;this.tabsElement=(q=this.parent.header)==null?void 0:q.tabsElement;u==="right"&&this.previousTab?(q=this.previousTab.endpoint,_.hvC(_.Bk().resolve(_.vK),q,{},"")):u==="left"&&this.nextTab&&(q=this.nextTab.endpoint,_.hvC(_.Bk().resolve(_.vK),q,{},""));if(!this.tabsElement)return}q=this.tabsElement._pos;u==="right"&&(g*=-1);this.tabsElement._positionBar(q.width,q.left*1+q.width*g)};
var NMf=function(){var g,u;return(u=(g=_.Bk().resolve(_.ba).getCurrentPage())==null?void 0:g.clientWidth)!=null?u:0};
sfL.prototype.navigate=function(g){this.element.data=void 0;if(g=g==null?void 0:g.endpoint)this.ytdReduxDispatch(hgz(!0)),_.$q(_.gL(),{visualElement:Pmf}),_.ze.instance.resolveCommand({navigateAction:{endpoint:g}},{form:{element:this.element}})};var yUh;var vmh;var Bf=function(){var g=_.X.apply(this,arguments)||this;g.rotation=0;g.isReloading=!1;return g};
_.A(Bf,_.X);Bf.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Bf.prototype.reset=function(){this.hostElement.style.opacity=""};
Bf.prototype.close=function(){var g=this;return _.D(function(u){if(u.nextAddress==1)return u.yield(g.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);g.hostElement.style.opacity="0";_.Wx(u)})};
Bf.prototype.rotationChanged=Bf.prototype.rotationChanged;_.Y([_.a(),_.K("design:type",Object)],Bf.prototype,"rotation",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Bf.prototype,"isReloading",void 0);_.Y([_.oE("#icon"),_.K("design:type",HTMLElement)],Bf.prototype,"icon",void 0);_.Y([_.k_("rotation"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bf.prototype,"rotationChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-refresh"})],Bf);
_.T(Bf,"ytd-refresh",function(){if(vmh!==void 0)return vmh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return vmh=g},{mode:1});var D9Z;var zD=function(){var g=_.X.apply(this,arguments)||this;g.useRaf=!_.w("web_use_raf_app_header_layout_killswitch");return g};
_.A(zD,_.X);zD.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"}}}};
zD.prototype.dataChanged=function(){if(this.data){var g=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var u=_.Fh(this.data.banner.thumbnails,this.hostElement.clientWidth);u&&(u.indexOf("//")===0&&(u="https:"+u),this.hasBannerArt=!0,_.x_(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+u+")"}))}this.hasBannerArt!==g&&_.Tr(this.hostElement).querySelector("#header").fire("iron-resize")}};
zD.prototype.updateSelectedFromBinding=function(g){this.selected=g.detail.value};
zD.prototype.dataChanged=zD.prototype.dataChanged;_.Y([_.I(ucH),_.K("design:type",Object)],zD.prototype,"ytdTabbedHeaderBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.eB),_.K("design:type",Object)],zD.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],zD.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],zD.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zD.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],zD.prototype,"selected",void 0);_.Y([_.a(),_.K("design:type",Boolean)],zD.prototype,"active",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],zD.prototype,"hasBannerArt",void 0);_.Y([_.a(),_.K("design:type",Object)],zD.prototype,"useRaf",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zD.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],zD);
_.T(zD,"ytd-interactive-tabbed-header-renderer",function(){if(D9Z!==void 0)return D9Z;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return D9Z=g},{mode:1});var p0h;var nL=function(){return _.X.apply(this,arguments)||this};
_.A(nL,_.X);nL.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
nL.prototype.computeActionsAlignment=function(g){return(g==null?void 0:g.actionsAlignment)||""};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],nL.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.K("design:type",String)],nL.prototype,"actionsAlignment",void 0);
_.Y([_.fE({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],nL);
_.T(nL,"ytd-page-footer-renderer",function(){if(p0h!==void 0)return p0h;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return p0h=g},{mode:1});var JUK;var jfZ;var kW=function(){var g=_.X.apply(this,arguments)||this;g.isEditing=!1;g.useSlot=!1;g.isMultiline=!1;return g};
_.A(kW,_.X);_.P=kW.prototype;_.P.onKeydown=function(g){if(g.keyCode===13&&!this.isMultiline)this.onSave();else if(g.keyCode===27)this.onCancel()};
_.P.computeComponentStyle=function(g){return(g==null?0:g.style)?g.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.P.computeisMultiline=function(g){if(this.multilineOverride!==void 0)return this.multilineOverride;var u,q;return!!(g==null?0:(u=g.formField)==null?0:(q=u.textInputFormFieldRenderer)==null?0:q.isMultiline)};
_.P.computeTextDisplayed=function(g,u){if(g)return g;if(u)return u};
_.P.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.P.onSave=function(){if(this.textForm.validate()){this.textForm.save();var g=this.textForm.value;if(g)this.set("data.textDisplayed",_.I7(g));else{var u;((u=this.data)==null?0:u.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.ZC("inline-form-changed",this.data));this.isEditing=!1}};
_.P.onCancel=function(){var g=_.iR(this.data.textDisplayed);g===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(g);this.isEditing=!1};
kW.prototype.onKeydown=kW.prototype.onKeydown;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],kW.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],kW.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],kW.prototype,"isEditing",void 0);_.Y([_.a(),_.K("design:type",Object)],kW.prototype,"useSlot",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kW.prototype,"multilineOverride",void 0);_.Y([_.a(),_.K("design:type",Boolean)],kW.prototype,"enableOverlayTheme",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.K("design:type",String)],kW.prototype,"componentStyle",void 0);
_.Y([_.a({computed:"computeisMultiline(data)"}),_.K("design:type",Object)],kW.prototype,"isMultiline",void 0);_.Y([_.oE("#text-form"),_.K("design:type",Object)],kW.prototype,"textForm",void 0);_.Y([_.n6("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],kW.prototype,"onKeydown",null);_.Y([_.fE({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],kW);
_.T(kW,"ytd-inline-form-renderer",function(){if(jfZ!==void 0)return jfZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return jfZ=g},{mode:1});var fnp;var Sq=function(){var g=_.X.apply(this,arguments)||this;g.previousSelectValue=void 0;g.selectedItemMessage=void 0;return g};
_.A(Sq,_.X);Sq.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Sq.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var g,u,q,Q,L=(g=this.data)==null?void 0:(u=g.dropdown)==null?void 0:(q=u.dropdownRenderer)==null?void 0:(Q=q.entries)==null?void 0:Q.map(function(v){return v.privacyDropdownItemRenderer});
g=_.N(L!=null?L:[]);for(u=g.next();!u.done;u=g.next())if((u=u.value)&&u.int32Value===this.selectedValue){this.selectedItemMessage=u.itemMessage;break}}else this.selectedItemMessage=void 0;var E;(E=this.onValueChanged)==null||E.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var y;(y=this.data)!=null&&y.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Sq.prototype.onValueChangedForSelectedValue=function(g){this.selectedValue=g.detail.value};
Sq.prototype.selectedValueChanged=Sq.prototype.selectedValueChanged;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],Sq.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Sq.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Sq.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],Sq.prototype,"theme",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Number)],Sq.prototype,"selectedValue",void 0);_.Y([_.a(),_.K("design:type",Function)],Sq.prototype,"onValueChanged",void 0);
_.Y([_.qm("selectedValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sq.prototype,"selectedValueChanged",null);_.Y([_.fE({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Sq);
_.T(Sq,"ytd-dropdown-form-field-renderer",function(){if(fnp!==void 0)return fnp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return fnp=g},{mode:2});var MDp;var o$=function(){return _.X.apply(this,arguments)||this};
_.A(o$,_.X);_.z3.Object.defineProperties(o$.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var g=[],u=_.N(this.data||[]),q=u.next();!q.done;q=u.next())(q=_.c(q.value,DNb))&&g.push(q);return g}}});
_.Y([_.a(),_.K("design:type",Array)],o$.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],o$.prototype,"byline",null);_.Y([_.fE({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],o$);
_.T(o$,"ytd-playlist-byline-renderer",function(){if(MDp!==void 0)return MDp;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return MDp=g},{mode:1});var tDK;var UD=function(){var g=_.X.apply(this,arguments)||this;g.rtlBullet=_.w("web_playlist_stats_rtl_bullet_icon_killswitch");g.modern=_.w("web_modern_buttons");g.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return g};
_.A(UD,_.X);_.P=UD.prototype;_.P.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"}}}}};
_.P.attached=function(){};
_.P.computeIsCustomThumbnail=function(g){return g?!!g.playlistCustomThumbnailRenderer:!1};
_.P.onYtNavigate=function(g,u){if(u&&u.actions&&u.actions.indexOf("shuffle")>-1){g=_.Bk().resolve(_.cd);var q=u.tempData||{};q.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);u.tempData=q;g.isShuffleNextPlaylist=!0}};
_.P.onUpdatePlaylistAction=function(g){var u;g=(u=_.c(g,_.PgZ))==null?void 0:u.updatedRenderer;if(u=_.c(g,imC))this.data=u};
_.P.computeStyleType=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(g){return g==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.P.computeHideThumbnailAria=function(g){if(g==null?0:g.thumbnailOverlays)for(var u=0;u<g.thumbnailOverlays.length;u++){var q=void 0;if((q=g.thumbnailOverlays[u])==null?0:q.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
UD.prototype.onYtNavigate=UD.prototype.onYtNavigate;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],UD.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],UD.prototype,"ytComponentBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],UD.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],UD.prototype,"rtlBullet",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.K("design:type",String)],UD.prototype,"styleType",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.K("design:type",Number)],UD.prototype,"thumbnailWidth",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],UD.prototype,"modern",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.K("design:type",Boolean)],UD.prototype,"isCustomThumbnail",void 0);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Object]),_.K("design:returntype")],UD.prototype,"onYtNavigate",null);_.Y([_.fE({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],UD);
_.T(UD,"ytd-playlist-sidebar-primary-info-renderer",function(){if(tDK!==void 0)return tDK;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return tDK=g},{mode:1});var ejZ;var gp=function(){return _.X.apply(this,arguments)||this};
_.A(gp,_.X);gp.prototype.computeOwnerVisibility=function(g){return!(!g.videoOwner&&!g.button)};
gp.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],gp.prototype,"data",void 0);_.Y([_.fE({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],gp);
_.T(gp,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(ejZ!==void 0)return ejZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ejZ=g},{mode:1});var GEL;var uj=function(){var g=_.X.apply(this,arguments)||this;g.expanded=!1;g.isCompact=!1;return g};
_.A(uj,_.X);_.P=uj.prototype;_.P.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.P.dataChanged=function(){this.data&&_.fa(_.Tr(this.text),_.v$W(_.JkR,_.iR(this.data.text||null)))};
_.P.computeAutoScrollEnabled=function(g,u){return g&&!u};
_.P.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.P.toggleOnTap=function(){this.expanded=!this.expanded};
uj.prototype.expandedChanged=uj.prototype.expandedChanged;uj.prototype.dataChanged=uj.prototype.dataChanged;_.Y([_.I(Ewh),_.K("design:type",Object)],uj.prototype,"ytdAutoScrollBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],uj.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],uj.prototype,"expanded",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],uj.prototype,"isCompact",void 0);_.Y([_.a({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.K("design:type",Boolean)],uj.prototype,"autoScrollEnabled",void 0);_.Y([_.oE("#text"),_.K("design:type",Object)],uj.prototype,"text",void 0);_.Y([_.oE("#expander-icon"),_.K("design:type",Object)],uj.prototype,"expanderIcon",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uj.prototype,"dataChanged",null);_.Y([_.k_("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uj.prototype,"expandedChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],uj);
_.T(uj,"ytd-channel-legal-info-renderer",function(){if(GEL!==void 0)return GEL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return GEL=g},{mode:1});var $9p;var Rjf=_.Ug("DOWNLOAD",{},"Download"),w0h=_.Ug("DOWNLOADING",{},"Downloading"),cUh=_.Ug("DOWNLOADED",{},"Downloaded"),qd=function(){var g=_.X.apply(this,arguments)||this;g.downloadProgress=0;g.isDownloadComplete=!1;g.transferState="TRANSFER_STATE_UNKNOWN";return g};
_.A(qd,_.X);_.P=qd.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var g;(g=this.data)!=null&&g.tooltip||(g=_.eb(_.bR().getState(),this.playlistId),this.updateButtonState(g))};
_.P.computePlaylistId=function(g){return g};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(g){if(this.data&&(this.data.tooltip!==w0h||!_.qZ(g))){this.isDownloadComplete=!1;switch(g){case "TRANSFER_STATE_UNKNOWN":g=Rjf;var u="OFFLINE_DOWNLOAD";var q="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":g=cUh;u="OFFLINE_PIN";q="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":g=w0h;u="OFFLINE_DOWNLOADING_ZERO";q="ACTION_REMOVE_WITH_PROMPT";
break;default:g=Rjf,u="OFFLINE_DOWNLOAD",q="ACTION_ADD"}var Q=Object.assign({},this.data);Q.tooltip=g;Q.accessibilityData={accessibilityData:{label:g}};Q.icon={iconType:u};Q.size="SIZE_DEFAULT";_.c(Q.command,_.ne)&&(_.c(Q.command,_.ne).action=q);this.set("data",Q)}};
_.P.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var g="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?g="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?g="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?g="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?g="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?g="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(g="OFFLINE_PIN",this.isDownloadComplete=!0);var u;g!==((u=this.data.icon)==null?void 0:u.iconType)&&(u=Object.assign({},this.data),u.tooltip=w0h,u.accessibilityData={accessibilityData:{label:w0h}},u.icon={iconType:g},_.c(u.command,_.ne)&&(_.c(u.command,_.ne).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",u))}};
qd.prototype.updateProgress=qd.prototype.updateProgress;qd.prototype.onTransferStateChanged=qd.prototype.onTransferStateChanged;qd.prototype.dataChanged=qd.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],qd.prototype,"ytdReduxBehavior",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qd.prototype,"forceIconButton",void 0);
_.Y([_.a({value:!0}),_.K("design:type",Boolean)],qd.prototype,"forceIconOnly",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qd.prototype,"overrides",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qd.prototype,"buttonTooltipPosition",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qd.prototype,"styleActionButton",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qd.prototype,"disableTextTransform",void 0);
_.Y([_.a({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.K("design:type",String)],qd.prototype,"playlistId",void 0);_.Y([_.a(),_.K("design:type",Object)],qd.prototype,"data",void 0);_.Y([_.a({selector:_.b1M,selectorArgs:["playlistId"]}),_.K("design:type",Object)],qd.prototype,"downloadProgress",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],qd.prototype,"isDownloadComplete",void 0);
_.Y([_.a({selector:_.eb,selectorArgs:["playlistId"]}),_.K("design:type",String)],qd.prototype,"transferState",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],qd.prototype,"showTooltips",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],qd.prototype,"sendCommandWhenDisabled",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qd.prototype,"disabled",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qd.prototype,"dataChanged",null);_.Y([_.qm("transferState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qd.prototype,"onTransferStateChanged",null);_.Y([_.qm("downloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qd.prototype,"updateProgress",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],qd);
_.T(qd,"ytd-download-playlist-button-renderer",function(){if($9p!==void 0)return $9p;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return $9p=g},{mode:1});var H5x;_.dL(_.BlH,"thumbnail-overlay-button-view-model",{props:{data:_.H2,lockupExperiments:_.H2}});var Qn=function(){var g=_.X.apply(this,arguments)||this;g.isSquare=!1;g.isVertical=!1;return g};
_.A(Qn,_.X);Qn.prototype.computeIsSquare=function(g){return g!=null&&g.thumbnail?xfz(g.thumbnail)==="SQUARE":!1};
Qn.prototype.computeIsVertical=function(g){return g!=null&&g.thumbnail?xfz(g.thumbnail)==="VERTICAL":!1};
Qn.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Qn.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.K("design:type",Object)],Qn.prototype,"isSquare",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.K("design:type",Object)],Qn.prototype,"isVertical",void 0);
_.Y([_.a(),_.K("design:type",Object)],Qn.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Qn);
_.T(Qn,"ytd-hero-playlist-thumbnail-renderer",function(){if(H5x!==void 0)return H5x;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return H5x=g},{mode:1});var Lc=function(){var g=_.X.apply(this,arguments)||this;g.isDarkTheme=!1;g.isUltraWide=!1;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return g};
_.A(Lc,_.X);_.P=Lc.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.Bk();var g;(g=_.Bk().resolve(_.xv(_.yM)))!=null&&(g.headerElement=this.hostElement)};
_.P.detached=function(){var g;(g=_.Bk().resolve(_.xv(_.yM)))!=null&&(g.headerElement=void 0)};
_.P.onUpdateHeader=function(g){(g=g.detail)&&this.set("data",g)};
_.P.computeTextDisplayed=function(g){if(g)return g.textDisplayed?g.textDisplayed:g.placeholder};
_.P.gradientColorToLinearGradientStop=function(g){var u=this.isDarkTheme?g.darkThemeColor:g.lightThemeColor;return u?_.jh(u)+" "+((g==null?void 0:g.startLocation)||0)*100+"%":"transparent"};
_.P.onWindowResize=function(){var g;((g=this.data)==null?0:g.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.P.onIronResize=function(g){this.isUltraWide=!g.detail.value};
_.P.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.P.onUpdatePlaylistName=function(g){var u=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},g.detail.value));_.xt(this,function(){var q;(q=u.editableTitle)==null||q.resize()})};
_.P.onUpdatePlaylistDescription=function(g){var u=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},g.detail.value));_.xt(this,function(){var q;(q=u.editableDescriptionInlineExpander)==null||q.resize()})};
_.P.getCinematicData=function(g){return _.c(g==null?void 0:g.cinematicContainer,vB)};
_.z3.Object.defineProperties(Lc.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 g,u=(g=this.getCinematicData(this.data))==null?void 0:g.config;return(g=this.isDarkTheme?u==null?void 0:u.darkThemeBackgroundColor:u==null?void 0:u.lightThemeBackgroundColor)?"background-color:"+_.JR(g)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var g;return _.c((g=this.data)==null?void 0:g.descriptionForm,Zmt)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var g=this,u,q,Q;return"background:linear-gradient(to bottom, "+(((Q=(u=this.getCinematicData(this.data))==null?void 0:(q=u.gradientColorConfig)==null?void 0:q.map(function(L){return g.gradientColorToLinearGradientStop(L)}))==null?void 0:Q.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var g;return _.iR((g=this.data)==null?void 0:g.descriptionTapText)}}});
Lc.prototype.onUpdateHeader=Lc.prototype.onUpdateHeader;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Lc.prototype,"actionHandlerBehavior",void 0);_.Y([_.oE("#description-inline-expander"),_.K("design:type",Object)],Lc.prototype,"descriptionInlineExpander",void 0);
_.Y([_.oE("#editable-description-inline-expander"),_.K("design:type",Object)],Lc.prototype,"editableDescriptionInlineExpander",void 0);_.Y([_.a(),_.K("design:type",Object)],Lc.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Lc.prototype,"isUltraWide",void 0);_.Y([_.oE("#editable-title-display"),_.K("design:type",Object)],Lc.prototype,"editableTitle",void 0);_.Y([_.C("isUltraWide"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lc.prototype,"maxDescriptionLines",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lc.prototype,"noCinematicData",null);_.Y([_.n6("yt-new-playlist-header"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Lc.prototype,"onUpdateHeader",null);_.Y([_.C("data","isDarkTheme"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lc.prototype,"backgroundStyle",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lc.prototype,"descriptionFormData",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lc.prototype,"getDropdownTheme",null);_.Y([_.C("data","isDarkTheme"),_.K("design:type",String),_.K("design:paramtypes",[])],Lc.prototype,"gradientStyle",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lc.prototype,"descriptionTapText",null);
_.Y([_.fE({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Lc);
_.T(Lc,"ytd-playlist-header-renderer",function(){if(JUK!==void 0)return JUK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return JUK=g},{mode:2});var AUL;var Z5H;var E2=function(){return _.X.apply(this,arguments)||this};
_.A(E2,_.X);E2.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],E2.prototype,"data",void 0);_.Y([_.fE({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],E2);
_.T(E2,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Z5H!==void 0)return Z5H;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Z5H=g},{mode:1});var Pz=function(){return _.X.apply(this,arguments)||this};
_.A(Pz,_.X);
Pz.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}}}}};
Pz.prototype.computeUsePremiumShowStyle=function(g){if(!g||!g.items)return!1;for(var u=0;u<g.items.length;u++)if(_.c(g.items[u],imC)){var q=void 0;return((q=_.c(g.items[u],imC))==null?void 0:q.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Pz.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.K("design:type",Boolean)],Pz.prototype,"usePremiumShowStyle",void 0);
_.Y([_.fE({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Pz);
_.T(Pz,"ytd-playlist-sidebar-renderer",function(){if(AUL!==void 0)return AUL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return AUL=g},{mode:1});var ln9;var InH;var i5t=function(g,u,q,Q,L,E,y,v){this.minWidth=g;this.minHeight=u;this.recommendedWidth=q;this.recommendedHeight=Q;this.JSC$21768_maxFileSize=L;this.title=E;this.bannerGalleryTitle=y;this.channelId=v;this.picker_=null;g=_.kVf("yt-banner");u=g.addView;q=(new lCf("youtubebanner")).addUploadMetadata("silo_id","19");q.opts.ytMaxFileSize=this.JSC$21768_maxFileSize;Q=this.recommendedHeight;q.opts.ytRecWidth=this.recommendedWidth;q.opts.ytRecHeight=Q;u.call(g,q);g.addView(new _.yc);u=g.addView;q=new _.yc;
q.opts.type="ytbanner";u.call(g,q.JSC$10381_setLabel(this.bannerGalleryTitle));u=g.setTitle(this.title).setSize(1E3);u.urlParamMap_.set("thumbs","orig");q=this.minWidth;Q=this.minHeight;if(isNaN(q)||isNaN(Q))throw Error("ib`"+q+"`"+Q);u.urlParamMap_.set("minSize",q+"x"+Q);u.urlParamMap_.set("cropMode","ytcb");this.builder_=g};
i5t.prototype.open=function(){var g=this;return new _.Ez(function(u,q){_.IF0(g.builder_,function(Q){Q.action=="picked"?u(Q):Q.action=="cancel"&&q(Error("bm"))});
g.picker_&&g.picker_.dispose();g.picker_=g.builder_.build();g.picker_.setVisible(!0)})};
i5t.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var CmE=function(g){this.channelId=g};
CmE.prototype.upload=function(g){var u="";g.viewToken&&(u=g.viewToken[2].type);var q=g.docs[0];g=q.crop;u={channel_id:this.channelId,fife_url:q.thumbnails[0].url,photo_id:q.id,is_gallery_image:u=="ytbanner"};g&&(u.crop_top=g.top,u.crop_right=g.right,u.crop_bottom=g.bottom,u.crop_left=g.left);return _.Cm3("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:u})};var Nd=function(){var g=_.X.apply(this,arguments)||this;g.ariaLabel=null;return g};
_.A(Nd,_.X);_.P=Nd.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){this.picker&&this.picker.dispose()};
_.P.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.P.computeAriaLabel=function(g){return g};
_.P.onTap=function(){var g=this,u;if((u=this.data)==null||!u.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new i5t(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 q;(q=this.picker)==null||q.open().then(function(Q){g.handleBannerPicked(Q)},function(){})}};
_.P.handleBannerPicked=function(g){var u=this;this.uploader||(this.uploader=new CmE(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(g).then(function(q){u.handleBannerUploadSucceeded(q)},function(q){u.handleBannerUploadFailed(q)})};
_.P.handleBannerUploadSucceeded=function(g){g&&g.errors?this.handleBannerUploadFailed(g):(_.hJ(this.hostElement,"yt-banner-updated",g),this.message=null)};
_.P.handleBannerUploadFailed=function(g){this.message=g&&g.errors&&g.errors.length?g.errors[0]:null};
Nd.prototype.dataChanged=Nd.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Nd.prototype,"componentBehavior",void 0);_.Y([_.I(_.PI),_.K("design:type",Object)],Nd.prototype,"ironButtonState",void 0);_.Y([_.a(),_.K("design:type",Object)],Nd.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.K("design:type",Object)],Nd.prototype,"ariaLabel",void 0);
_.Y([_.a(),_.K("design:type",Object)],Nd.prototype,"message",void 0);_.Y([_.a(),_.K("design:type",Object)],Nd.prototype,"picker",void 0);_.Y([_.a(),_.K("design:type",Object)],Nd.prototype,"uploader",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Nd.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Nd);
_.T(Nd,"ytd-channel-banner-editor-renderer",function(){if(InH!==void 0)return InH;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return InH=g},{mode:1});var b59;var d99=_.CT(["#"]),s2=function(){return _.X.apply(this,arguments)||this};
_.A(s2,_.X);s2.prototype.computeHrefWithDefault=function(g){return this.ytComponentBehavior.computeHref_(g,!0)||_.Hah(d99)};
s2.prototype.dataChanged=function(){var g=this.data;g&&g.targetId&&_.ka(_.S9(),g.targetId,this.moreIcon)};
s2.prototype.dataChanged=s2.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],s2.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],s2.prototype,"data",void 0);_.Y([_.oE("#more-icon"),_.K("design:type",Object)],s2.prototype,"moreIcon",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],s2.prototype,"dataChanged",null);
_.Y([_.fE({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],s2);
_.T(s2,"ytd-channel-tagline-renderer",function(){if(b59!==void 0)return b59;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return b59=g},{mode:1});var FqK;var yn=function(){return _.X.apply(this,arguments)||this};
_.A(yn,_.X);_.P=yn.prototype;_.P.ready=function(){var g=this;_.Tr(this.hostElement).querySelector("#form").addEventListener("submit",function(u){g.onSubmit(u)})};
_.P.onDataChanged=function(){var g;((g=this.data)==null?0:g.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.P.onIconButtonKeydown=function(g){g.keyCode===13&&this.iconButton.click()};
_.P.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.P.openOnClickHandler=function(){this.input.focus()};
_.P.onSubmit=function(g){g.preventDefault();return!1};
_.P.submitOnEnterKeyUp=function(g){var u;if(g.keyCode===13&&((u=this.data)==null?0:u.expandedText)){g=this.data.endpoint;u=_.pH.unsafeClone(g);var q;((q=_.c(u==null?void 0:u.commandMetadata,_.S_))==null?0:q.url)?(_.c(u.commandMetadata,_.S_).url=_.u0(_.c(u.commandMetadata,_.S_).url,"query",this.data.expandedText),_.c(u,_.kZ)&&(_.c(u,_.kZ).query=this.data.expandedText),_.hJ(this.hostElement,"yt-navigate",{endpoint:u,tempData:{disableCache:!0}})):(q=new _.Ji("Error: Trying to navigate to an endpoint without url",
g),_.Zf(q))}};
_.P.updateDataExpandedTextFromBinding=function(g){this.set("data.expandedText",g.detail.value)};
_.z3.Object.defineProperties(yn.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
yn.prototype.onDataChanged=yn.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.Y([_.I(NPL),_.K("design:type",Object)],yn.prototype,"ytdExpandableInputBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yn.prototype,"data",void 0);_.Y([_.oE("#input"),_.K("design:type",Object)],yn.prototype,"input",void 0);_.Y([_.oE("#icon-button"),_.K("design:type",HTMLElement)],yn.prototype,"iconButton",void 0);
_.Y([_.a(),_.K("design:type",String),_.K("design:paramtypes",[])],yn.prototype,"searchIcon",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yn.prototype,"onDataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],yn);
var j6x=_.Te()(yn,"ytd-expandable-tab-renderer",function(){if(FqK===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);FqK=g}g=FqK;return g},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var m9x;var vz=function(){var g=_.X.apply(this,arguments)||this;g.avatarSize=80;g.ariaLabel=_.Ug("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return g};
_.A(vz,_.X);vz.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
vz.prototype.computeHref=function(g){var u;return((u=_.c(g,_.ao))==null?0:u.url)?this.componentBehavior.computeHref_(g):null};
vz.prototype.onTap=function(){var g,u;(g=this.data)==null||!g.editAvatarServiceEndpoint||((u=_.c(this.data.editAvatarServiceEndpoint,_.ao))==null?0:u.url)||_.Bk().resolve(_.Gy).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.Y([_.I(_.PI),_.K("design:type",Object)],vz.prototype,"ironButtonState",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],vz.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vz.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],vz.prototype,"avatarSize",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],vz.prototype,"ariaLabel",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],vz);
_.T(vz,"ytd-channel-avatar-editor",function(){if(m9x!==void 0)return m9x;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return m9x=g},{mode:1});var anE=_.r(function(g){var u=g.data;var q=g.noPadding;var Q=g.enableBanner;var L=g.cinematicContainerTopbarOffset;var E=g.allowCinematicContainerOverflow;var y=g.displayAsSidebar;g=g.className;_.bX(function(){u().tagManagerId&&(_.QU(u().tagManagerId,_.FR("GL")),Ldx(u().tagManagerId))},"vUc8md");
var v=_.kq(M$n,function(){return u().pageHeaderEntityKey});
return _.p("yt-page-header-renderer",{class:_.Ty("pageHeaderRendererHost",g)},_.p(_.Up,{data:function(){var J;return((J=v())==null?0:J.header)?v().header:(y==null?0:y())&&u().sidebarContent?u().sidebarContent:u().content}},{pageHeaderViewModel:function(J){return _.p(_.XSt,{data:J.data,
noPadding:q,enableBanner:Q,cinematicContainerTopbarOffset:L,allowCinematicContainerOverflow:E,displayAsSidebar:function(){return(y==null?void 0:y())&&u().enableSidebarView}})}}))},"uk");
anE.idomCompat=!0;_.dL(anE,"yt-page-header-renderer",{props:{data:_.H2,noPadding:_.H2,enableBanner:_.H2,cinematicContainerTopbarOffset:_.H2,allowCinematicContainerOverflow:_.H2,displayAsSidebar:_.H2,className:_.H2}});_.dL(_.iC,"yt-image-banner-view-model",{props:{data:_.H2,isPositionRelative:_.H2}});_.dL(_.QRK,"yt-tab-group-shape",{props:{shape:_.H2}});var VDK=_.wy.persistentPanelVisibleSelector,DN=function(){var g=_.X.apply(this,arguments)||this;g.expandableCustomTabRenderable=function(u){return fPK(u,function(){return void g.onSearchNavigate()})};
g.isRichGrid=!1;g.isConstrainedList=!1;g.richGridMiniMode=!1;g.richGridStyle="RICH_GRID_STYLE_UNKNOWN";g.isRichGridShorts=!1;g.responsiveSizing="COMPACT";g.disableGridStateAware=!1;g.useRaf=!_.w("web_use_raf_app_header_layout_killswitch");g.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return g};
_.A(DN,_.X);_.P=DN.prototype;_.P.computeHeaderDisabled=function(g,u){return u||!g||this.tabsHidden};
_.P.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.P.computeIsRichGridShorts=function(g){return g==="RICH_GRID_STYLE_SHORTS_GRID"||g==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.P.computeImageBannerViewModel=function(){var g,u;return _.c((u=_.c((g=this.data)==null?void 0:g.content,_.hOo))==null?void 0:u.banner,_.m5$)};
_.P.computeHasCinematicContainer=function(){var g,u;return!((u=_.c((g=this.data)==null?void 0:g.content,_.hOo))==null||!u.background)};
_.P.handleHeaderResize=function(){var g=_.Tr(this.hostElement).querySelector("#header");g&&_.hJ(g,"iron-resize")};
_.P.handleInsertTabCommand=function(g){var u=_.c(g,GIH);u&&(u.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(q){return q.tabRenderer&&q.tabRenderer.tabIdentifier===u.tabIdentifier})||this.splice("tabs",u.tabIndex||-1,0,u.tab))};
_.P.handleRefreshChannelTabAction=function(g){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===g&&_.hJ(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.P.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.P.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.x_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.P.observerRichGridSlimItemsPerRow=function(){_.x_(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.P.updateCssVars=function(){this.richGridItemsPerRow&&_.x_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.S8("rich_grid_max_item_width",500))+16)-16+"px"})};
_.P.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.x_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.P.onDataChanged=function(){this.handleHeaderResize()};
_.P.onWindowResize=function(){this.handleHeaderResize()};
_.P.onFocusedChanged=function(g){(g=_.bd(g))&&g.is==="tp-yt-paper-tab"&&g.hasRipple()&&(g.getRipple().holdDown=!g.pointerDown&&g.focused)};
_.P.updateSelectedFromBinding=function(g){this.ytdTabbedHeaderBehavior.selected=g.detail.value};
_.P.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.z3.Object.defineProperties(DN.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:edz(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.imageBannerViewModel)==null?void 0:g.style)==="IMAGE_BANNER_STYLE_INSET"}}});
DN.prototype.onDataChanged=DN.prototype.onDataChanged;DN.prototype.updateCssVarsForResponsiveGrid=DN.prototype.updateCssVarsForResponsiveGrid;DN.prototype.updateCssVars=DN.prototype.updateCssVars;DN.prototype.observerRichGridSlimItemsPerRow=DN.prototype.observerRichGridSlimItemsPerRow;DN.prototype.observerRichGridItemsPerRow=DN.prototype.observerRichGridItemsPerRow;DN.prototype.persistentPanelVisibleChanged=DN.prototype.persistentPanelVisibleChanged;
_.Y([_.I(_.eB),_.K("design:type",Object)],DN.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.I(ucH),_.K("design:type",Object)],DN.prototype,"ytdTabbedHeaderBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],DN.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],DN.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],DN.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],DN.prototype,"ytdReduxBehavior",void 0);_.Y([_.oE("#tabs"),_.K("design:type",Object)],DN.prototype,"tabsElement",void 0);_.Y([_.a(),_.K("design:type",Array)],DN.prototype,"tabs",void 0);_.Y([_.a(),_.K("design:type",Object)],DN.prototype,"expandableCustomTabRenderable",void 0);
_.Y([_.C("tabs.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],DN.prototype,"tabGroupShape",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],DN.prototype,"isRichGrid",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],DN.prototype,"isConstrainedList",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Object)],DN.prototype,"richGridMiniMode",void 0);_.Y([_.a({selector:function(g){return g.ui.richGridStyle}}),
_.K("design:type",Object)],DN.prototype,"richGridStyle",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.K("design:type",Object)],DN.prototype,"isRichGridShorts",void 0);_.Y([_.a({selector:_.JD}),_.K("design:type",Number)],DN.prototype,"richGridItemsPerRow",void 0);_.Y([_.a({selector:function(g){return g.ui.richGridContainerWidth}}),
_.K("design:type",Number)],DN.prototype,"richGridContainerWidth",void 0);_.Y([_.a({selector:_.tBq}),_.K("design:type",Number)],DN.prototype,"richGridSlimItemsPerRow",void 0);_.Y([_.a(),_.K("design:type",Object)],DN.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],DN.prototype,"responsiveSizing",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],DN.prototype,"disableGridStateAware",void 0);
_.Y([_.a({computed:"computeImageBannerViewModel(data)"}),_.K("design:type",Object)],DN.prototype,"imageBannerViewModel",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.K("design:type",Boolean)],DN.prototype,"hasCinematicContainer",void 0);_.Y([_.a({selector:M_Z,reflectToAttribute:!0}),_.K("design:type",Boolean)],DN.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Y([_.a({selector:VDK}),_.K("design:type",Boolean)],DN.prototype,"persistentPanelVisible",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("imageBannerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],DN.prototype,"hasBanner",null);_.Y([_.a({reflectToAttribute:!0}),_.C("imageBannerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],DN.prototype,"hasInsetBanner",null);_.Y([_.a(),_.K("design:type",Object)],DN.prototype,"useRaf",void 0);
_.Y([_.a({computed:"computeTabsHidden(tabs)",value:!0}),_.K("design:type",Boolean)],DN.prototype,"tabsHidden",void 0);_.Y([_.k_("persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DN.prototype,"persistentPanelVisibleChanged",null);_.Y([_.k_("richGridItemsPerRow","isRichGrid"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DN.prototype,"observerRichGridItemsPerRow",null);
_.Y([_.k_("richGridSlimItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DN.prototype,"observerRichGridSlimItemsPerRow",null);_.Y([_.k_("richGridItemsPerRow","richGridMiniMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DN.prototype,"updateCssVars",null);
_.Y([_.k_("richGridContainerWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DN.prototype,"updateCssVarsForResponsiveGrid",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DN.prototype,"onDataChanged",null);_.Y([_.fE({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],DN);
_.T(DN,"ytd-tabbed-page-header",function(){if(ln9!==void 0)return ln9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ln9=g},{mode:1});var X09;var pc=function(){return _.X.apply(this,arguments)||this};
_.A(pc,_.X);pc.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pc.prototype,"data",void 0);_.Y([_.fE({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],pc);
_.T(pc,"ytd-labs-edit-renderer",function(){if(X09!==void 0)return X09;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return X09=g},{mode:1});var rUx;var Jx=function(){var g=_.X.apply(this,arguments)||this;g.dark=!1;g.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";g.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(Jx,_.X);Jx.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Jx.prototype.ready=function(){var g=document.documentElement.hasAttribute("dark");this.setBackgroundImage(g);this.dark=g};
Jx.prototype.onDarkModeToggledAction=function(g){this.setBackgroundImage(g);this.dark=g};
Jx.prototype.setBackgroundImage=function(g){_.x_(this.hostElement,{"--yt-labs-header-background":"url("+(g?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Jx.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Jx.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Jx.prototype,"dark",void 0);
_.Y([_.fE({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Jx);
_.T(Jx,"ytd-labs-header-renderer",function(){if(rUx!==void 0)return rUx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return rUx=g},{mode:1});var Wqx;var jM=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return g};
_.A(jM,_.X);jM.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"}}}}}};
jM.prototype.onYtToggleButton=function(g){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",g.detail.toggled)};
jM.prototype.onManageLabsState=function(g){if(g=_.c(g,GVE))g.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?g.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&g.labsItemId===this.data.labsItemId&&(g.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.YJ(this.hostElement,"yt-check-labs-opted-in-state").some(function(u){return u})&&this.data.confirmationDialogCommand?_.xJ(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.Bk().resolve(_.Gy).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&g.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.Bk().resolve(_.Gy).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
jM.prototype.onCheckLabsOptedInState=function(){var g=this.get("data.primaryButton.toggleButtonRenderer");return g?g.isToggled:!1};
_.z3.Object.defineProperties(jM.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
jM.prototype.onYtToggleButton=jM.prototype.onYtToggleButton;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],jM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],jM.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],jM.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],jM.prototype,"itemStyle",null);_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],jM.prototype,"onYtToggleButton",null);_.Y([_.fE({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],jM);
_.T(jM,"ytd-labs-item-renderer",function(){if(Wqx!==void 0)return Wqx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Wqx=g},{mode:1});var TMH;var hj9;var YsK=function(){return _.X.apply(this,arguments)||this};
_.A(YsK,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],YsK.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],YsK.prototype,"data",void 0);_.Y([_.fE({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],YsK);
_.T(YsK,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(hj9!==void 0)return hj9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return hj9=g},{mode:1});var O59;var fc=function(){return _.X.apply(this,arguments)||this};
_.A(fc,_.X);fc.prototype.observeSuperchatChip=function(){if(this.data){var g={"--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)};_.x_(this.hostElement,g)}};
fc.prototype.colorFromDecimal=function(g){return _.jh(Number(g||0))};
fc.prototype.observeSuperchatChip=fc.prototype.observeSuperchatChip;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],fc.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fc.prototype,"observeSuperchatChip",null);_.Y([_.fE({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],fc);
_.T(fc,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(O59!==void 0)return O59;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return O59=g},{mode:1});var Md=function(){return _.X.apply(this,arguments)||this};
_.A(Md,_.X);Md.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"}}}};
_.z3.Object.defineProperties(Md.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],Md.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Md.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Md.prototype,"hideMessageBlock",null);
_.Y([_.fE({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Md);
_.T(Md,"ytd-live-chat-history-entry-renderer",function(){if(TMH!==void 0)return TMH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return TMH=g},{mode:1});var KqC;var tx=function(){return _.X.apply(this,arguments)||this};
_.A(tx,_.X);tx.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.x_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.z3.Object.defineProperties(tx.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var g,u;return this.componentBehavior.computeIcon_(((u=_.c((g=this.data)==null?void 0:g.badge,_.O8n))==null?void 0:u.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=_.c((g=this.data)==null?void 0:g.badge,_.O8n))==null?void 0:u.label}}});
tx.prototype.observerRichGridItemsPerRow=tx.prototype.observerRichGridItemsPerRow;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],tx.prototype,"componentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],tx.prototype,"ytdReduxBehavior",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.pU}),_.K("design:type",Boolean)],tx.prototype,"richGridMiniMode",void 0);
_.Y([_.a({selector:_.JD}),_.K("design:type",Number)],tx.prototype,"richGridItemsPerRow",void 0);_.Y([_.a(),_.K("design:type",Object)],tx.prototype,"data",void 0);_.Y([_.k_("richGridItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tx.prototype,"observerRichGridItemsPerRow",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],tx.prototype,"badgeIconName",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],tx.prototype,"badgeLabel",null);_.Y([_.fE({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],tx);
_.T(tx,"ytd-member-hub-profile-renderer",function(){if(KqC!==void 0)return KqC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return KqC=g},{mode:1});var x9p;var eM=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return g};
_.A(eM,_.X);
eM.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"}}}};
eM.prototype.handleUpdateTextCommand=function(g){(g=_.c(g,_.Cgo))&&this.data&&this.data.id===g.id&&this.set("data",g)};
eM.prototype.handleUpdateConnectedAppRendererCommand=function(g){if(_.c(g,_.Fm8)&&this.data){var u,q;if(g=(u=_.c(g,_.Fm8))==null?void 0:(q=u.newConnectedAppRenderer)==null?void 0:q.connectedAppRenderer)this.data=g}};
eM.prototype.computeConnectedAppStyle=function(g){return g.style?g.style.toLowerCase().replace(/_/g,"-"):""};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],eM.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],eM.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.K("design:type",String)],eM.prototype,"connectedAppStyle",void 0);_.Y([_.fE({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],eM);
_.T(eM,"ytd-connected-app-renderer",function(){if(x9p!==void 0)return x9p;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return x9p=g},{mode:1});var BMn;var zjb=function(){return _.X.apply(this,arguments)||this};
_.A(zjb,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],zjb.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zjb.prototype,"data",void 0);_.Y([_.fE({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],zjb);
_.T(zjb,"ytd-channel-options-renderer",function(){if(BMn!==void 0)return BMn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return BMn=g},{mode:1});var nmt;var Gl=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return g};
_.A(Gl,_.X);Gl.prototype.onCheckboxChange=function(g){this.data&&(g=(this.checked=_.bd(g).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}})};
Gl.prototype.handleUpdateCheckboxCommand=function(g){(g=_.c(g,_.i8X))&&this.data&&this.data.id===g.id&&(this.set("data.disabled",g.disabled),this.set("data.title",g.title))};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Gl.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Gl.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Gl.prototype,"checked",void 0);_.Y([_.fE({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Gl);
_.T(Gl,"ytd-settings-checkbox-renderer",function(){if(nmt!==void 0)return nmt;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return nmt=g},{mode:1});var kEh;var RF=function(){return _.X.apply(this,arguments)||this};
_.A(RF,_.X);RF.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],RF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],RF.prototype,"data",void 0);_.Y([_.fE({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],RF);
_.T(RF,"ytd-settings-email-item-renderer",function(){if(kEh!==void 0)return kEh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return kEh=g},{mode:1});var Ssn;var wp=function(){return _.X.apply(this,arguments)||this};
_.A(wp,_.X);wp.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"}}}};
wp.prototype.getExpansionIcon=function(g){return g?"COLLAPSE":"EXPAND"};
wp.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.z3.Object.defineProperties(wp.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],wp.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wp.prototype,"data",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],wp.prototype,"expanded",void 0);_.Y([_.C("expanded"),_.K("design:type",String),_.K("design:paramtypes",[])],wp.prototype,"emailListExpanded",null);
_.Y([_.oE("#options"),_.K("design:type",Object)],wp.prototype,"options",void 0);_.Y([_.fE({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],wp);
_.T(wp,"ytd-settings-email-list-renderer",function(){if(Ssn!==void 0)return Ssn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Ssn=g},{mode:1});var omK;var U9z;var gPx;var ubh;var qjt;var cz=function(){return _.X.apply(this,arguments)||this};
_.A(cz,_.X);_.P=cz.prototype;_.P.computePreselectedOption=function(g,u){return u===this.itemSelected_?g:void 0};
_.P.dataChanged_=function(){var g=this;this.preselectedSubreason=this.itemSelected_=-1;var u;(u=this.data)!=null&&u.key&&_.xt(this,function(){var q,Q=Number((q=g.data)==null?void 0:q.key);!Number.isNaN(Q)&&(g.itemSelected_=Q,q=(q=(g.data.items||[])[Q])&&q.optionSelectableItemRenderer&&q.optionSelectableItemRenderer.preselectedIndex)&&(g.preselectedSubreason=q)})};
_.P.isSubReasonHidden_=function(g,u){return g!=u};
_.P.onTopItemSelected_=function(g,u){for(var q=_.Tr(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),Q=0,L=q.length;Q<L;Q++)q[Q].select(0);_.YJ(this.hostElement,"yt-report-form-update",[u.item.value]);g.stopPropagation()};
_.P.onItemSelected_=function(g,u){_.YJ(this.hostElement,"yt-report-form-update",[u.item.value]);g.stopPropagation()};
_.P.getItem_=function(g){return g.serviceItem?g.serviceItem:g.navigationItem?g.navigationItem:g.optionSelectableItemRenderer?g.optionSelectableItemRenderer:null};
_.P.computeText_=function(g){return(g=this.getItem_(g))?this.ytRendererBehavior.getSimpleString(g.text):null};
_.P.validate=function(){return this.itemSelected_!==-1};
_.P.computeAriaLabel_=function(g){var u=_.iR(g.text);(g=g.accessibility&&g.accessibility.accessibilityData&&g.accessibility.accessibilityData.label)&&(u+=". "+g);return u};
_.P.computeItemSelected_=function(g){return g};
_.P.preventSelection_=function(g){g.stopPropagation();this.tooltipTapped=!0};
_.P.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.P.updateItemSelectedFromBinding=function(g){this.itemSelected_=g.detail.value};
_.P.save=function(){var g;this.validate()&&(g=this.data)!=null&&g.items&&(g=this.data.items[this.itemSelected_],g!=null&&g.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(g.optionSelectableItemRenderer.submitEndpoint)||_.KV(this.hostElement,[g.optionSelectableItemRenderer.submitEndpoint])))};
cz.prototype.onPaperRippleTransitionEnd_=cz.prototype.onPaperRippleTransitionEnd_;cz.prototype.dataChanged_=cz.prototype.dataChanged_;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],cz.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cz.prototype,"data",void 0);_.Y([_.a({value:-1}),_.K("design:type",Number)],cz.prototype,"itemSelected_",void 0);
_.Y([_.a({computed:"computeItemSelected_(itemSelected_)"}),_.K("design:type",Number)],cz.prototype,"value",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],cz.prototype,"restoreFocusOnClose",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],cz.prototype,"tooltipTapped",void 0);_.Y([_.a({value:-1}),_.K("design:type",Number)],cz.prototype,"preselectedSubreason",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cz.prototype,"dataChanged_",null);_.Y([_.n6("transitionend"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cz.prototype,"onPaperRippleTransitionEnd_",null);_.Y([_.jP({is:"yt-options-renderer",disableElementRegistration:!0})],cz);
_.T(cz,"yt-options-renderer",function(){if(qjt===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;ubh===void 0&&(ubh=document.createElement("template"));var Q=ubh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);qjt=g}g=qjt;return g},{mode:2});var Qjn;var LtZ;var EPH;var PVZ;var Hz=function(){return _.X.apply(this,arguments)||this};
_.A(Hz,_.X);Hz.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Hz.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Hz.prototype.onTap=function(g){if(this.hostElement.classList.contains("selected")||_.YJ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])g&&g.detail&&(g.detail.x||g.detail.y)&&_.Tr(this.hostElement).querySelector("#target").blur(),(g=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),g={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:g?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.YJ(this.hostElement,"yt-share-panel-select-contact-action",[g])};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.Y([_.a({observer:"onDataChanged"}),_.K("design:type",Object)],Hz.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.K("design:type",String)],Hz.prototype,"componentTitle",void 0);_.Y([_.oE("#thumbnail"),_.K("design:type",Object)],Hz.prototype,"thumbnail",void 0);_.Y([_.jP({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Hz);
_.T(Hz,"yt-enrolled-contact-renderer",function(){if(PVZ===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;EPH===void 0&&(EPH=document.createElement("template"));var Q=EPH;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);PVZ=g}g=PVZ;return g},{mode:2});var Nsh;var sjz;var Ax=function(){return _.X.apply(this,arguments)||this};
_.A(Ax,_.X);Ax.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Ax.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Ax.prototype.onTap=function(g){if(this.hostElement.classList.contains("selected")||_.YJ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])g&&g.detail&&(g.detail.x||g.detail.y)&&_.Tr(this.hostElement).querySelector("#target").blur(),(g=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),g={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:g?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.YJ(this.hostElement,"yt-share-panel-select-contact-action",[g])};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.Y([_.a({observer:"onDataChanged"}),_.K("design:type",Object)],Ax.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.K("design:type",String)],Ax.prototype,"componentTitle",void 0);_.Y([_.oE("#thumbnail"),_.K("design:type",Object)],Ax.prototype,"thumbnail",void 0);_.Y([_.jP({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Ax);
_.T(Ax,"yt-suggested-contact-renderer",function(){if(sjz===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Nsh===void 0&&(Nsh=document.createElement("template"));var Q=Nsh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);sjz=g}g=sjz;return g},{mode:2});var ZN=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-share-panel-reset-action":"onReset"};return g};
_.A(ZN,_.X);ZN.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"}}}}}};
ZN.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.YJ(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
ZN.prototype.onReset=function(){for(var g=_.Tr(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),u=g.length-1;u>=0;u--)g[u].classList.toggle("selected")};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ZN.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a({observer:"onDataChanged"}),_.K("design:type",Object)],ZN.prototype,"data",void 0);
_.Y([_.jP({is:"yt-contact-section-renderer",disableElementRegistration:!0})],ZN);
_.T(ZN,"yt-contact-section-renderer",function(){if(LtZ===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Qjn===void 0&&(Qjn=document.createElement("template"));var Q=Qjn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);LtZ=g}g=LtZ;return g},{mode:2});var lj=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return g};
_.A(lj,_.X);_.P=lj.prototype;_.P.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"}}}};
_.P.onYtRefreshFormCommand=function(g){var u;(g=_.c((u=_.c(g,_.DIH))==null?void 0:u.formRenderer,AVh))&&this.set("data",g)};
_.P.reset=function(){var g=_.Tr(this.hostElement).querySelector("#fields").children;g=_.N(g);for(var u=g.next();!u.done;u=g.next())u=u.value,u.reset&&u.reset()};
_.P.getForm=function(){var g={},u=_.Tr(this.hostElement).querySelector("#fields").children;u=_.N(u);for(var q=u.next();!q.done;q=u.next()){q=q.value;if(!q.validate())return null;g[q.data.key]=q.value}return g};
_.P.submitFormFields=function(){if(this.fields)for(var g=_.N(this.fields),u=g.next();!u.done;u=g.next())u=u.value,u.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?u.save():u.nodeName==="YT-OPTIONS-RENDERER"&&u.save()};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],lj.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],lj.prototype,"data",void 0);_.Y([_.Ux("#fields > *"),_.K("design:type",Array)],lj.prototype,"fields",void 0);
_.Y([_.jP({is:"yt-form-renderer",disableElementRegistration:!0})],lj);
_.T(lj,"yt-form-renderer",function(){if(gPx===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;U9z===void 0&&(U9z=document.createElement("template"));var Q=U9z;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);gPx=g}g=gPx;return g},{mode:2});var IF=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return g};
_.A(IF,_.X);IF.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"}}}};
IF.prototype.handleSignalActionSubmitForm=function(){var g,u=(g=this.formRenderer)==null?void 0:g.getForm();u&&this.data.serviceEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},u,{element:this.hostElement})})};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],IF.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],IF.prototype,"data",void 0);_.Y([_.oE("yt-form-renderer"),_.K("design:type",Object)],IF.prototype,"formRenderer",void 0);
_.Y([_.fE({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],IF);
_.T(IF,"ytd-settings-gaia-link-renderer",function(){if(omK!==void 0)return omK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return omK=g},{mode:1});var yNf;var vPp;var ij=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return g};
_.A(ij,_.X);ij.prototype.dataChanged=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return g.radio.removeAttribute("checked"),!g.data||!g.data.id||g.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||r9z()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(u=g.data&&g.data.id)?q.yield(Tvx(g.data.id),4):q.jumpTo(3):(g.set("data.hidden",!0),q.jumpTo(0));q.nextAddress!=3&&(u=q.yieldResult);u&&_.YJ(g.hostElement,"yt-select-settings-radio-option",[g.data.id]);_.Wx(q)})};
ij.prototype.onButtonChanged=function(g){_.bd(g).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.YJ(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
ij.prototype.onSelectOption=function(g){this.data&&this.data.id&&(this.data.id===g?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
ij.prototype.dataChanged=ij.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.oE("#radio"),_.K("design:type",Object)],ij.prototype,"radio",void 0);_.Y([_.a(),_.K("design:type",Object)],ij.prototype,"data",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],ij.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],ij);
_.T(ij,"ytd-settings-radio-option-renderer",function(){if(vPp!==void 0)return vPp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return vPp=g},{mode:1});_.dL(_.cQ,"basic-content-view-model",{props:{data:_.iF,className:_.iF}});var Cc=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return g};
_.A(Cc,_.X);Cc.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&r9z()&&this.set("data.hidden",!1)};
Cc.prototype.onSwitchReady=function(){var g=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.w("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){eN9().then(function(u){u&&(Notification.permission==="default"?g.set("data.hidden",!1):Notification.permission==="granted"&&hu("NotificationsDisabled").then(function(q){q||_.YJ(g.hostElement,"yt-toggle-settings-switch",[g.data.id,!q]);g.set("data.hidden",!1)}).catch(function(){}))})})};
Cc.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}}}}};
Cc.prototype.handleUpdateOptionsCommand=function(g){(g=_.c(g,_.b82))&&this.data&&this.data.id===g.id&&(this.set("data.hidden",g.hidden),g.text!==void 0&&this.set("data.text",g.text),g.clearOptions&&this.set("data.options",[]))};
Cc.prototype.onSwitchReady=Cc.prototype.onSwitchReady;Cc.prototype.dataChanged=Cc.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Cc.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Cc.prototype,"data",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Cc.prototype,"dataChanged",null);_.Y([_.n6("yt-settings-switch-ready"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Cc.prototype,"onSwitchReady",null);_.Y([_.fE({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Cc);
_.T(Cc,"ytd-settings-options-renderer",function(){if(yNf!==void 0)return yNf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return yNf=g},{mode:1});var DLh;var bj=function(){return _.X.apply(this,arguments)||this};
_.A(bj,_.X);bj.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],bj.prototype,"data",void 0);_.Y([_.fE({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],bj);
_.T(bj,"ytd-settings-sidebar-renderer",function(){if(DLh!==void 0)return DLh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return DLh=g},{mode:1});var pgH;var dp=function(){return _.X.apply(this,arguments)||this};
_.A(dp,_.X);dp.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
dp.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
dp.prototype.onYtExpanderMoreTapped=dp.prototype.onYtExpanderMoreTapped;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],dp.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],dp.prototype,"data",void 0);
_.Y([_.n6("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dp.prototype,"onYtExpanderMoreTapped",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],dp);
_.T(dp,"ytd-product-details-description-renderer",function(){if(pgH!==void 0)return pgH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return pgH=g},{mode:1});var JNx;var Fl=function(){var g=_.X.apply(this,arguments)||this;g.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";g.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";g.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";g.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return g};
_.A(Fl,_.X);Fl.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z3.Object.defineProperties(Fl.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:(u=g.offerData)==null?void 0:u.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?void 0:g.purchaseButtonRenderers)!==void 0&&((u=this.data)==null?void 0:u.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var g,u;return!((g=this.data)==null||!g.formattedFromMerchantText)&&(!((u=this.data)==null||!u.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Fl.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Fl.prototype,"data",void 0);
_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],Fl.prototype,"shippingIcon",void 0);_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],Fl.prototype,"shippingAddressIcon",void 0);_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],Fl.prototype,"googleGuaranteeIcon",void 0);
_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],Fl.prototype,"returnPolicyIcon",void 0);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Fl.prototype,"showAdditionalFees",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Fl.prototype,"showMultiPurchaseButtons",null);
_.Y([_.C("data","showMultiPurchaseButtons"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Fl.prototype,"showPurchaseData",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Fl);
_.T(Fl,"ytd-product-details-hero-offer-renderer",function(){if(JNx!==void 0)return JNx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return JNx=g},{mode:1});var jjx;var fA9;var mr=function(){return _.X.apply(this,arguments)||this};
_.A(mr,_.X);_.P=mr.prototype;_.P.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.P.onKeyDown=function(g){g=g.keyCode;g!==13&&g!==32||this.handleSelection()};
_.P.onMouseEnterImage=function(){var g;((g=this.data)==null?void 0:g.thumbnailDetails)!==void 0&&_.Og(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.P.onMouseLeaveImage=function(){_.Og(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.P.handleSelection=function(){this.data&&_.hJ(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.z3.Object.defineProperties(mr.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.isSelected)}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],mr.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mr.prototype,"isSelected",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],mr);
_.T(mr,"ytd-product-details-thumbnail-renderer",function(){if(fA9!==void 0)return fA9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return fA9=g},{mode:1});var aF=function(){var g=_.X.apply(this,arguments)||this;var u={};g.actionMap=(u["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",u["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",u);g.selectedThumbnailIndex=0;g.selectItem=function(q){q.target.onKeyDown(q)};
return g};
_.A(aF,_.X);_.P=aF.prototype;_.P.handlePreviewImageSelect=function(g){this.hoverThumbnail=g};
_.P.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.P.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.P.onThumbnailSelected=function(g,u){this.selectedThumbnailIndex=u};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.P.updateOffset=function(){var g=_.Tr(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-g));this.ytdHorizontalListBehavior.reposition_()};
_.z3.Object.defineProperties(aF.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null?0:g.imageRenderer){var u,q;return((u=this.data)==null?void 0:(q=u.imageRenderer)==null?void 0:q.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var g;if((g=this.data)==null?0:g.imageRenderer){var u;return(u=_.c(this.data.imageRenderer[this.selectedThumbnailIndex],BWp))==null?void 0:u.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var g=this,u,q,Q,L=(Q=(u=this.data)==null?void 0:(q=u.imageRenderer)==null?void 0:q.map(function(E,y){return{productDetailsThumbnailRenderer:Object.assign({},_.c(E,BWp),{index:y,isSelected:y===g.selectedThumbnailIndex})}}))!=null?Q:[];
return Object.assign({},this.data,{imageRenderer:L})}}});
aF.prototype.updateOffset=aF.prototype.updateOffset;aF.prototype.dataChanged=aF.prototype.dataChanged;aF.prototype.onThumbnailSelected=aF.prototype.onThumbnailSelected;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.VR.YtdHorizontalListBehavior),_.K("design:type",Object)],aF.prototype,"ytdHorizontalListBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],aF.prototype,"componentBehavior",void 0);_.Y([_.I([_.xK.YtActionHandlerBehavior]),_.K("design:type",Object)],aF.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],aF.prototype,"data",void 0);_.Y([_.a({value:"$.items.children"}),_.K("design:type",String)],aF.prototype,"itemsPath",void 0);_.Y([_.a({value:3}),_.K("design:type",Number)],aF.prototype,"initialCount",void 0);
_.Y([_.oE("#items"),_.K("design:type",Object)],aF.prototype,"items",void 0);_.Y([_.a(),_.K("design:type",Object)],aF.prototype,"selectedThumbnailIndex",void 0);_.Y([_.a(),_.K("design:type",Object)],aF.prototype,"hoverThumbnail",void 0);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],aF.prototype,"showThumbnails",null);
_.Y([_.n6("ytd-product-details-thumbnail-renderer-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Number]),_.K("design:returntype")],aF.prototype,"onThumbnailSelected",null);_.Y([_.C("data","selectedThumbnailIndex","hoverThumbnail"),_.K("design:type",Object),_.K("design:paramtypes",[])],aF.prototype,"thumbnailDetails",null);_.Y([_.C("data","selectedThumbnailIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],aF.prototype,"populatedData",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aF.prototype,"dataChanged",null);_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aF.prototype,"updateOffset",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],aF);
_.T(aF,"ytd-product-details-image-carousel-renderer",function(){if(jjx!==void 0)return jjx;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return jjx=g},{mode:2});var Mwt;var Vn=function(){return _.X.apply(this,arguments)||this};
_.A(Vn,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Vn.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Vn.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Vn);
_.T(Vn,"ytd-product-details-offer-renderer",function(){if(Mwt!==void 0)return Mwt;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Mwt=g},{mode:1});var twK;var Xl=function(){var g=_.X.apply(this,arguments)||this;g.isOffersHidden=!0;return g};
_.A(Xl,_.X);Xl.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var g,u=_.c((g=this.data)==null?void 0:g.viewOffersButton,_.eW);u&&this.ytRendererBehavior.logExplicitClick(u)};
Xl.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.z3.Object.defineProperties(Xl.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q;return(q=_.c((g=this.data)==null?void 0:(u=g.offers)==null?void 0:u[0],SSt))==null?void 0:(Q=q.offerData)==null?void 0:Q.vendorLogoUrl}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Xl.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Xl.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Xl.prototype,"isOffersHidden",void 0);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xl.prototype,"firstOfferVendorLogoUrl",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Xl);
_.T(Xl,"ytd-product-details-offers-container-renderer",function(){if(twK!==void 0)return twK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return twK=g},{mode:1});var e7h;var G1z;var rp=function(){return _.X.apply(this,arguments)||this};
_.A(rp,_.X);rp.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
rp.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Og(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
rp.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Og(this,"ytd-product-details-variant-image-unselect")};
_.z3.Object.defineProperties(rp.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 g;return((g=this.data)==null?void 0:g.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.data)==null?void 0:g.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((u=this.data)==null?void 0:u.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((q=this.data)==null?void 0:q.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var g;if(((g=this.data)==null?void 0:g.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var g,u;return this.isUnavailable?(g=this.data)==null?void 0:g.variantOptionUnavailableAccessibilityLabel:(u=this.data)==null?void 0:u.variantOptionAccessibilityLabel}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],rp.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],rp.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],rp.prototype,"displayType",void 0);
_.Y([_.C("displayType","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rp.prototype,"isImageButton",null);_.Y([_.C("displayType","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rp.prototype,"isPillButton",null);_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rp.prototype,"isActive",null);
_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rp.prototype,"isUnavailable",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rp.prototype,"thumbnailDetails",null);_.Y([_.C("isUnavailable","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rp.prototype,"accessibilityLabel",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],rp);
_.T(rp,"ytd-product-details-variant-option-renderer",function(){if(G1z!==void 0)return G1z;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return G1z=g},{mode:1});var $LH;var Wz=function(){var g=_.X.apply(this,arguments)||this;g.variantsExpanded=!1;g.hideShowMoreLessVariantButton=!0;g.initialized=!1;g.computeVariantsDebouncer=null;g.computeVariants=function(u){u=u===void 0?!1:u;g.variantsExpanded||g.showOptions()||!u||(g.variantsExpanded=!0);if(g.variantsExpanded){u=_.N(g.items.children);for(var q=u.next();!q.done;q=u.next())q.value.hidden=!1}g.initialized=!0};
return g};
_.A(Wz,_.X);_.P=Wz.prototype;_.P.ready=function(){var g=this;setTimeout(function(){g.computeVariants(!0)})};
_.P.showOptions=function(){for(var g=_.N(this.items.children),u=g.next();!u.done;u=g.next())u.value.hidden=!0;var q=this.container.getBoundingClientRect().width,Q=0,L=g=0;u=!1;for(var E=_.N(this.items.children),y=E.next();!y.done;y=E.next()){y=y.value;y.hidden=!1;var v=y.getBoundingClientRect().width;if(Q+v<q)Q+=v;else if(++L<2)Q=v;else break;g+=1;y.hasAttribute("is-active")&&(u=!0)}for(q=g;q<this.items.children.length;q++)this.items.children[q].hidden=!0;this.hideShowMoreLessVariantButton=g===this.items.children.length;
return u};
_.P.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Tn(this.computeVariantsDebouncer,_.Ih.after(100),this.computeVariants)};
_.P.onShowMoreLessVariantsButtonClick=function(){var g;(g=this.data)!=null&&g.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.P.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.z3.Object.defineProperties(Wz.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.data)==null?void 0:(u=g.variantOptionRenderers)==null?void 0:u.find(function(E){return _.c(E,ndK).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),Q,L;
return(L=(Q=_.c(q,ndK))==null?void 0:Q.name)!=null?L:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.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"}}}});
Wz.prototype.debouncedComputeVariants=Wz.prototype.debouncedComputeVariants;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Wz.prototype,"componentBehavior",void 0);_.Y([_.I(_.LJ),_.K("design:type",Object)],Wz.prototype,"ironResizableBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],Wz.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Wz.prototype,"variantsExpanded",void 0);_.Y([_.a(),_.K("design:type",Object)],Wz.prototype,"hideShowMoreLessVariantButton",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Wz.prototype,"initialized",void 0);_.Y([_.oE("#items"),_.K("design:type",HTMLDivElement)],Wz.prototype,"items",void 0);_.Y([_.oE("#container"),_.K("design:type",HTMLDivElement)],Wz.prototype,"container",void 0);
_.Y([_.oE("#more-variants-button"),_.K("design:type",HTMLElement)],Wz.prototype,"moreVariantsButton",void 0);_.Y([_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],Wz.prototype,"selectedOptionName",null);_.Y([_.k_("data","variantsExpanded"),_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Wz.prototype,"debouncedComputeVariants",null);
_.Y([_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],Wz.prototype,"displayType",null);_.Y([_.C("displayType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wz.prototype,"variantItemsClassname",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Wz);
_.T(Wz,"ytd-product-details-variant-renderer",function(){if($LH!==void 0)return $LH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return $LH=g},{mode:1});var Tl=function(){return _.X.apply(this,arguments)||this};
_.A(Tl,_.X);
Tl.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"}}}};
_.z3.Object.defineProperties(Tl.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(u=_.c((g=this.data)==null?void 0:g.offersContainerRenderer,k_h))==null?void 0:u.offers;return q!==void 0&&(q==null?void 0:q.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 g,u,q;return((q=(g=this.data)==null?void 0:(u=g.variants)==null?void 0:u.map(function(Q){var L,E;Q=(E=(L=_.c(Q,zwK))==null?void 0:L.variantOptionRenderers)==null?void 0:E.find(function(v){var J;return((J=_.c(v,ndK))==null?void 0:J.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var y;return(y=_.c(Q,ndK))==null?void 0:y.name}).filter(function(Q){return typeof Q==="string"}))!=null?q:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q=(u=_.c((g=this.data)==null?void 0:g.shoppingFlaggingRenderer,odn))==null?void 0:(q=u.reportButton)==null?void 0:q.buttonRenderer;if(Q)return{text:Q.text,command:Q.command,icon:{iconType:"FLAG"},accessibilityData:Q.accessibilityData,trackingParams:Q.trackingParams,loggingDirectives:Q.loggingDirectives}}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Tl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Tl.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Tl.prototype,"data",void 0);_.Y([_.oE("#image-carousel-renderer"),_.K("design:type",Object)],Tl.prototype,"imageCarouselRenderer",void 0);
_.Y([_.oE("#hero-offer-renderer"),_.K("design:type",Object)],Tl.prototype,"productDetailsHeroOfferRenderer",void 0);_.Y([_.oE("#variants"),_.K("design:type",Object)],Tl.prototype,"productDetailsVariantRenderer",void 0);_.Y([_.oE("#offers"),_.K("design:type",Object)],Tl.prototype,"productDetailsOffersContainerRenderer",void 0);_.Y([_.oE("#description-renderer"),_.K("design:type",Object)],Tl.prototype,"productDetailsDescriptionRenderer",void 0);
_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Tl.prototype,"showPurchaseData",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Tl.prototype,"showHeroOfferRenderer",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Tl.prototype,"showBrandText",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Tl.prototype,"showOffers",null);
_.Y([_.C("showOffers","showPurchaseData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Tl.prototype,"showBuySeparator",null);_.Y([_.C("showOffers","showPurchaseData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Tl.prototype,"showBuyCard",null);_.Y([_.C("data"),_.K("design:type",String),_.K("design:paramtypes",[])],Tl.prototype,"selectedVariantsText",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Tl.prototype,"shoppingReportingButtonData",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Tl);
_.T(Tl,"ytd-product-details-renderer",function(){if(e7h!==void 0)return e7h;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return e7h=g},{mode:1});var R7f;var wgK;var cNh;var hx=function(){return _.X.apply(this,arguments)||this};
_.A(hx,_.X);hx.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.z3.Object.defineProperties(hx.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],hx.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],hx.prototype,"formattedAmount",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],hx.prototype,"ariaLabel",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.style"),_.K("design:type",String),_.K("design:paramtypes",[])],hx.prototype,"vcBalanceWidgetStyle",null);_.Y([_.jP({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],hx);
_.T(hx,"yt-vc-balance-renderer",function(){if(cNh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;wgK===void 0&&(wgK=document.createElement("template"));var Q=wgK;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);cNh=g}g=cNh;return g},{mode:2});_.Ny("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Yj=function(){return _.X.apply(this,arguments)||this};
_.A(Yj,_.X);_.z3.Object.defineProperties(Yj.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:""}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Yj.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Yj.prototype,"data",void 0);_.Y([_.a({selectorArgs:["data.vcBalanceEntityKey"],selector:function(g,u){return _.BC(g.entities,"vcBalanceEntity",u)}}),
_.K("design:type",Object)],Yj.prototype,"vcBalanceEntity",void 0);_.Y([_.C("vcBalanceEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Yj.prototype,"formattedAmount",null);_.Y([_.C("vcBalanceEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Yj.prototype,"vcBalanceAriaLabel",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Yj);
_.T(Yj,"ytd-vc-balance-renderer",function(){if(R7f!==void 0)return R7f;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return R7f=g},{mode:1});var HDt;var O2=function(){var g=_.X.apply(this,arguments)||this;g.expandableCustomTabRenderable=function(u){return fPK(u,function(){return void g.onSearchNavigate()})};
return g};
_.A(O2,_.X);O2.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
O2.prototype.onSearchNavigate=function(){this.selected=void 0};
O2.prototype.onTabsChange=function(){var g,u=(g=this.tabs)==null?void 0:g.findIndex(function(q){var Q;return q==null?void 0:(Q=q.tabRenderer)==null?void 0:Q.selected});
u!==void 0&&(this.selected=u)};
O2.prototype.onTabsActive=function(g){if(this.tabs!==void 0){var u,q;(g=(u=this.tabs[g.detail.selected])==null?void 0:(q=u.tabRenderer)==null?void 0:q.endpoint)&&_.hJ(this.hostElement,"yt-navigate",{endpoint:g})}};
_.z3.Object.defineProperties(O2.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:edz(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
O2.prototype.onTabsChange=O2.prototype.onTabsChange;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.eB),_.K("design:type",Object)],O2.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],O2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],O2.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Array)],O2.prototype,"tabs",void 0);_.Y([_.a(),_.K("design:type",Number)],O2.prototype,"selected",void 0);_.Y([_.C("tabs.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],O2.prototype,"tabGroupShape",null);_.Y([_.a(),_.K("design:type",Object)],O2.prototype,"expandableCustomTabRenderable",void 0);
_.Y([_.C("tabs"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],O2.prototype,"tabsEnabled",null);_.Y([_.qm("tabs"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O2.prototype,"onTabsChange",null);_.Y([_.fE({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],O2);
_.T(O2,"ytd-topic-channel-details-renderer",function(){if(HDt!==void 0)return HDt;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return HDt=g},{mode:1});var ANH;var Kc=function(){var g=_.X.apply(this,arguments)||this;g.disableGridStateAware=!1;return g};
_.A(Kc,_.X);Kc.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]]"}}}}}};
Kc.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Kc.prototype.updateCssVars=function(){_.x_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.S8("rich_grid_max_item_width",500))+16)-16+"px"})};
Kc.prototype.updateCssVars=Kc.prototype.updateCssVars;Kc.prototype.activeChanged=Kc.prototype.activeChanged;_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Kc.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Kc.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Kc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Kc.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Array)],Kc.prototype,"tabs",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Kc.prototype,"active",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Kc.prototype,"disableGridStateAware",void 0);
_.Y([_.a({selector:_.JD}),_.K("design:type",Number)],Kc.prototype,"richGridItemsPerRow",void 0);_.Y([_.a({selector:_.pU}),_.K("design:type",Boolean)],Kc.prototype,"richGridMiniMode",void 0);_.Y([_.oE("ytd-carousel-item-renderer"),_.K("design:type",Object)],Kc.prototype,"carousel",void 0);_.Y([_.k_("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kc.prototype,"activeChanged",null);
_.Y([_.k_("richGridItemsPerRow","richGridMiniMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kc.prototype,"updateCssVars",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Kc);
_.T(Kc,"ytd-carousel-header-renderer",function(){if(ANH!==void 0)return ANH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ANH=g},{mode:1});var ZDK;var lA9=_.CT(["https://www.google-analytics.com/analytics.js"]),xj=function(){var g=_.X.apply(this,arguments)||this;g.scriptAnalyticsAdded=!1;return g};
_.A(xj,_.X);xj.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var g,u=(g=this.data)==null?void 0:g.tagManagerId;u&&(_.QU(u,_.FR("GL")),Ldx(u))};
xj.prototype.sendGoogleAnalyticsPageview=function(g){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var q=_.UT.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(q)};
var u=window.ga;u("set","page",window.location.pathname);u.l=+new Date;u("set","forceSSL",!0);u("create",g,"'auto'");u("send","pageview")};
xj.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var g=_.oG("SCRIPT");g.name="ga-analytics";var u=_.A1(lA9);_.jx(g,u);g.async=!0;_.Tr(this.hostElement).appendChild(g)};
xj.prototype.dataChanged=xj.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],xj.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xj.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],xj);
_.T(xj,"ytd-channel-metadata-renderer",function(){if(ZDK!==void 0)return ZDK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ZDK=g},{mode:1});var IAt;var iDz;var CVn=function(){return _.X.apply(this,arguments)||this};
_.A(CVn,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],CVn.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],CVn.prototype,"data",void 0);_.Y([_.fE({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],CVn);
_.T(CVn,"ytd-sub-feed-option-renderer",function(){if(iDz!==void 0)return iDz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return iDz=g},{mode:1});var bDH;var Bz=function(){return _.X.apply(this,arguments)||this};
_.A(Bz,_.X);Bz.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Bz.prototype,"ytRendererStamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Bz.prototype,"data",void 0);_.Y([_.fE({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Bz);
_.T(Bz,"ytd-sub-feed-selector-renderer",function(){if(bDH!==void 0)return bDH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return bDH=g},{mode:1});var zl=function(){return _.X.apply(this,arguments)||this};
_.A(zl,_.X);
zl.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}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zl.prototype,"data",void 0);_.Y([_.fE({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],zl);
_.T(zl,"ytd-browse-feed-actions-renderer",function(){if(IAt!==void 0)return IAt;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return IAt=g},{mode:1});var dLh;var Ftt;var nc=function(){return _.X.apply(this,arguments)||this};
_.A(nc,_.X);nc.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],nc.prototype,"data",void 0);_.Y([_.fE({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],nc);
_.T(nc,"ytd-mini-channel-renderer",function(){if(Ftt!==void 0)return Ftt;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Ftt=g},{mode:1});var mLL;var kj=function(){return _.X.apply(this,arguments)||this};
_.A(kj,_.X);kj.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],kj.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],kj);
_.T(kj,"ytd-vertical-channel-section-renderer",function(){if(mLL!==void 0)return mLL;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return mLL=g},{mode:1});var SM=function(){return _.X.apply(this,arguments)||this};
_.A(SM,_.X);SM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],SM.prototype,"data",void 0);_.Y([_.fE({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],SM);
_.T(SM,"ytd-browse-secondary-contents-renderer",function(){if(dLh!==void 0)return dLh;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return dLh=g},{mode:1});var aAZ;var oF=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};g.notActive=!1;g.isConstrainedList=!1;g.marginSettings=0;return g};
_.A(oF,_.X);_.P=oF.prototype;
_.P.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(g){var u;return(g==null?void 0:(u=g.webComponentHint)==null?void 0:u.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}}}}};
_.P.getPath=function(g,u){var q="data.tabs.#"+u+".";g.tabs[u].tabRenderer?q+="tabRenderer.":g.tabs[u].expandableTabRenderer&&(q+="expandableTabRenderer.");return q+"content.sectionListRenderer"};
_.P.computeDisplayedContent=function(g){this.unlinkPaths("content");if(g&&g.tabs)for(var u=g.tabs.length,q=0;q<u;q++){var Q=g.tabs[q].tabRenderer||g.tabs[q].expandableTabRenderer;if(Q.selected&&Q.content)return this.linkPaths("content",this.getPath(g,q)),Q.content}return null};
_.P.computeHasSecondaryColumnData=function(g){return!!g&&!!g.secondaryContents};
_.P.onRetrieveLocation=function(g,u){u.locationRetrieved(u.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);g.stopPropagation()};
_.P.onYtServiceRequestSent=function(g,u){_.w("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(u)};
_.P.onYtServiceRequestCompleted=function(g,u){_.w("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(u)};
_.P.onReplaceFeedContentAction=function(g){if(!_.w("replace_feed_content_action_killswitch")&&!this.notActive){var u;(g=(u=_.c(g,Xpt))==null?void 0:u.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(g)}};
_.P.handleServiceRequestActions=function(g){if(g=g.actions){g=_.N(g);for(var u=g.next();!u.done;u=g.next()){u=u.value;var q=void 0;((q=_.c(u,Xpt))==null?0:q.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.c(u,Xpt).items)}}};
oF.prototype.onYtServiceRequestCompleted=oF.prototype.onYtServiceRequestCompleted;oF.prototype.onYtServiceRequestSent=oF.prototype.onYtServiceRequestSent;oF.prototype.onRetrieveLocation=oF.prototype.onRetrieveLocation;_.Y([_.I(_.eB),_.K("design:type",Object)],oF.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],oF.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],oF.prototype,"data",void 0);_.Y([_.a({computed:"computeDisplayedContent(data)"}),_.K("design:type",Object)],oF.prototype,"content",void 0);
_.Y([_.a({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],oF.prototype,"hasSecondaryColumnData",void 0);_.Y([_.a({value:function(){return window.outerHeight>1024?3:2}}),
_.K("design:type",Number)],oF.prototype,"initialCount",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],oF.prototype,"pageSubtype",void 0);_.Y([_.oE("ytd-section-list-renderer"),_.K("design:type",Object)],oF.prototype,"listRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],oF.prototype,"notActive",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],oF.prototype,"isConstrainedList",void 0);
_.Y([_.a(),_.K("design:type",String)],oF.prototype,"responsiveSizing",void 0);_.Y([_.a(),_.K("design:type",Number)],oF.prototype,"marginSettings",void 0);_.Y([_.n6("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],oF.prototype,"onRetrieveLocation",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],oF.prototype,"onYtServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],oF.prototype,"onYtServiceRequestCompleted",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],oF);
_.T(oF,"ytd-two-column-browse-results-renderer",function(){if(aAZ!==void 0)return aAZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return aAZ=g},{mode:2});var VwK;var Xgt;var U2=function(){var g=_.X.apply(this,arguments)||this;g.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"]);g.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"]);g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return g};
_.A(U2,_.X);_.P=U2.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.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_]]"}}}}}};
_.P.onUpdateElementsPerRowAction=function(g){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g)};
_.P.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.computeAlertStyle_=function(g){return g};
_.P.observerElementsPerRow=function(){this.elementsPerRow&&_.x_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.P.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.P.requestElementsPerRow=function(){_.hJ(this.hostElement,"yt-request-elements-per-row")};
U2.prototype.onIsVisibleChanged_=U2.prototype.onIsVisibleChanged_;U2.prototype.observerElementsPerRow=U2.prototype.observerElementsPerRow;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],U2.prototype,"actionHandlerBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],U2.prototype,"data",void 0);_.Y([_.a({value:6,reflectToAttribute:!0}),_.K("design:type",Number)],U2.prototype,"elementsPerRow",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],U2.prototype,"wrapButtons",void 0);_.Y([_.a({value:_.FR("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.K("design:type",Boolean)],U2.prototype,"isMusic",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.K("design:type",String)],U2.prototype,"alertStyle",void 0);_.Y([_.a({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.K("design:type",Function)],U2.prototype,"dismissBoundButtonTap_",void 0);_.Y([_.a({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.K("design:type",Function)],U2.prototype,"acceptBoundButtonTap_",void 0);_.Y([_.k_("elementsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],U2.prototype,"observerElementsPerRow",null);_.Y([_.k_("data.isVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],U2.prototype,"onIsVisibleChanged_",null);_.Y([_.jP({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],U2);
_.T(U2,"yt-alert-with-actions-renderer",function(){if(Xgt===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;VwK===void 0&&(VwK=document.createElement("template"));var Q=VwK;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Xgt=g}g=Xgt;return g},{mode:2});var rNx=_.r(function(g){var u={};return _.p(_.c2,{text:g.text,className:_.Ty("ytPersonalGreetingViewModelHeadline",(u.ytPersonalGreetingViewModelHeadlineSmall=g.isSmallHeadline,u))})},"wk");_.dL(_.r(function(g){var u=_.J7(function(){var G;return(G=g.data())==null?void 0:G.rendererContext},void 0,void 0,void 0,!0),q=function(){return g.data().canvasPromoData},Q=function(){var G;
return(G=g.data().bannerHeight)!=null?G:56},L=_.N(_.qW({throttleMs:100})),E=L.next().value;
L=L.next().value;var y=_.N(_.qW({throttleMs:100})),v=y.next().value;y=y.next().value;var J=_.N(_.qW({throttleMs:100})),f=J.next().value;J=J.next().value;var t=function(){return v.width()-E.width()>1},e=function(){return Q()===48};
return _.p("yt-personal-greeting-view-model",{el:_.lF(u,L),"aria-hidden":t,class:_.Ty(g.className,"ytPersonalGreetingViewModelHost"),style:_.xH({height:(0,_.GI)(function(){return t()?0:Q()})})},_.p(_.M,{cond:function(){return g.data().avatar&&!(f.width()+(g.data().avatar?48:0)-E.width()>1)},
then:function(){return _.p(_.Up,{data:function(){return g.data().avatar}},{decoratedAvatarViewModel:function(G){return _.p(_.fG,{data:G.data,
className:_.Ty("ytPersonalGreetingViewModelAvatar")})}})}}),_.p("h1",null,_.p(rNx,{text:function(){var G;
return(q==null?void 0:(G=q())==null?void 0:G.headline)||(f.width()+(g.data().avatar?48:0)-E.width()>1?g.data().shorterGreeting:g.data().greeting)},
isSmallHeadline:e})),_.p("span",{el:_.lF(J),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.p(rNx,{text:function(){return g.data().greeting},
isSmallHeadline:e})),_.p("span",{el:_.lF(y),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.p(rNx,{text:function(){return g.data().shorterGreeting},
isSmallHeadline:e})))},"vk"),"yt-personal-greeting-view-model",{props:{data:_.H2,
className:_.H2}});var gY=function(){var g=_.X.apply(this,arguments)||this;g.hidden=!1;g.isConstrainedList=!1;g.responsiveSizing="COMPACT";g.attachedPlayers=_.w("kevlar_channel_trailer_multi_attach")?[]:void 0;g.player=null;g.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return g};
_.A(gY,_.X);_.P=gY.prototype;
_.P.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}}}}};
_.P.created=function(){var g=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){g.disposeMastheadAd()}]};
_.P.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new Emx(this.refresh,this.contents))};
_.P.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.P.activeChanged=function(){var g=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=g)};
_.P.tabsChanged=function(){var g=this,u,q;if(this.pageSubtype==="channels"||_.w("kevlar_tab_gestures_for_tabbed_header_data")&&((u=this.data)==null?0:(q=u.header)==null?0:q.carouselHeaderRenderer))this.tabGestures=new sfL(this.contents,this.contents,this.hostElement,this.header,function(y){g.ytdReduxBehavior.dispatch(y)});
var Q,L,E;u=(Q=this.data)==null?void 0:(L=Q.contents)==null?void 0:(E=L.twoColumnBrowseResultsRenderer)==null?void 0:E.tabs;this.tabGestures&&this.tabGestures.tabsChanged(u)};
_.P.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.P.engagementPanelsChanged=function(){var g=_.Bk().resolve(_.yH);if(g){if(this.engagementPanels)for(var u=_.N(this.engagementPanels),q=u.next();!q.done;q=u.next()){var Q=void 0;(q=(Q=q.value.identifier)==null?void 0:Q.tag)&&g.panelMap.delete(q)}this.engagementPanels=[];var L;u=_.N(((L=this.data)==null?void 0:L.panels)||[]);for(L=u.next();!L.done;L=u.next()){L=_.c(L.value,T4L);var E=q=void 0,y=void 0,v=void 0;if(Q=((q=L)==null?void 0:q.targetId)||((E=L)==null?void 0:E.panelIdentifier)||((y=L)==null?
void 0:(v=y.identifier)==null?void 0:v.tag))E=q=void 0,(E=(q=g).registerPanelContent)==null||E.call(q,Q,{engagementPanelSectionListRenderer:L}),this.engagementPanels.push(L)}}};
_.P.onStampFinished=function(){var g=this;_.xt(this,function(){if(g.tabGestures){var u=g.tabGestures;if(u.scrollPositionNeedsUpdate){var q=_.Bk().resolve(_.xv(_.ba)),Q;if((Q=u.selectedTab)!=null&&Q.title&&q&&(Q=q.getCurrentPage())){if(u.scrollPositionForTabs.has(u.selectedTab.title)){var L,E;q=(E=(L=q.getCurrentPage())==null?void 0:L.clientHeight)!=null?E:0;L=u.scrollPositionForTabs.get(u.selectedTab.title);Q.setScrollTop(L);q>L+100&&(u.scrollPositionNeedsUpdate=!1)}else Q.setScrollTop(Math.min(u.lastVisitedTabScrollPosition!==
void 0?u.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,u.tabsStartAtInPx)),u.scrollPositionNeedsUpdate=!1;u.ytdReduxDispatch(hgz(!1))}}}})};
_.P.loadPage_=function(g){this.initCsi();g&&(this.data=g);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.P.getTitle=function(g){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",g))return this.get("microformat.microformatDataRenderer.title",g);if(this.get("header.feedTabbedHeaderRenderer.title",g))return _.iR(this.get("header.feedTabbedHeaderRenderer.title",g));if(this.get("header.interactiveTabbedHeaderRenderer.title",g))return this.get("header.interactiveTabbedHeaderRenderer.title",g);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
g))return _.iR(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",g));var u,q;return(g==null?0:(u=g.header)==null?0:(q=u.pageHeaderRenderer)==null?0:q.pageTitle)?g.header.pageHeaderRenderer.pageTitle:""};
_.P.updateTitle=function(g){_.hJ(this.hostElement,"yt-update-title",this.getTitle(g))};
_.P.initCsi=function(){JJb(this.pageSubtype||"browse",["ol","cpt"])};
_.P.getPlayer=function(){if(_.w("kevlar_channel_trailer_multi_attach")){for(var g=_.N(this.attachedPlayers),u=g.next();!u.done;u=g.next())if(u=u.value,u.isConnected||_.a2(this.hostElement,u))return u;return null}return this.player};
_.P.getPlayerContainer=function(){return null};
_.P.onPlayerAttached=function(g,u){_.w("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(u):this.player=u};
_.P.onPlayerDetached=function(g,u){_.w("kevlar_channel_trailer_multi_attach")?(g=this.attachedPlayers.indexOf(u),g<0||this.attachedPlayers.splice(g,1)):this.player=null};
_.P.getServiceTrackingParams=function(){var g,u;return((g=this.data)==null?void 0:(u=g.responseContext)==null?void 0:u.serviceTrackingParams)||[]};
_.P.setMastheadAd=function(g){g&&g.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=g&&g.mastheadAd};
_.P.dataChanged=function(){var g=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||cDZ();_.xt(this,function(){_.Og(g.hostElement,"ytd-update-grid-state-action")})};
_.P.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.P.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var g=this.data.alerts;return g&&g.find(function(u){return!!u.alertWithActionsRenderer})}};
_.P.computeGreetingData=function(){if(this.data&&this.data.alerts){var g=this.data.alerts;return g&&g.find(function(u){return!!u.personalGreetingViewModel})}};
_.P.computeHasMemberHubProfileRenderer=function(g){var u;return!!(g==null?0:(u=g.header)==null?0:u.memberHubProfileRenderer)};
_.P.handleAlertCommand=function(g){this.get("alertCommand.alert.alertWithActionsRenderer",g)&&(g=_.c(g,qyp),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",g.alert))};
_.P.handleYtPlaylistDeletionRedirect=function(g){g=this.get("playlistDeletionRedirectCommand.redirectEndpoint",g);_.hJ(this.hostElement,"yt-navigate",{endpoint:g})};
_.P.computeFluidWidth=function(g,u,q){if(u==="mini_app"||q)return!0;var Q,L,E;g=g==null?void 0:(Q=g.contents)==null?void 0:(L=Q.twoColumnBrowseResultsRenderer)==null?void 0:(E=L.tabs)==null?void 0:E.find(function(J){var f;return J==null?void 0:(f=J.tabRenderer)==null?void 0:f.selected});
if(!g)return!1;var y,v;return!!((y=g.tabRenderer)==null?0:(v=y.content)==null?0:v.richGridRenderer)&&!["channel","channels","playables"].includes(u)};
_.P.computeHeaderFluidWidth=function(g){return g==="hashtag-landing-page"};
_.P.computeHasSidebar=function(g){var u;return!!(g.sidebar||((u=g.header)==null?0:u.playlistHeaderRenderer))};
_.P.computeHasPageHeaderSidebar=function(g){var u,q;return!!((u=g.header)==null?0:(q=u.pageHeaderRenderer)==null?0:q.enableSidebarView)};
_.P.computeUseUnifiedShowPageLayout=function(g){if(!g||this.pageSubtype!=="show"||!g.sidebar||!g.sidebar.playlistSidebarRenderer)return!1;g=g.sidebar.playlistSidebarRenderer;if(!g.items)return!1;for(var u=0;u<g.items.length;u++)if(_.c(g.items[u],imC)){var q=void 0;return((q=_.c(g.items[u],imC))==null?void 0:q.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.P.computeIsConstrainedList=function(g){return g==="subscriptions-channels"};
_.P.computeResponsiveSizing=function(g){return g==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.z3.Object.defineProperties(gY.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var g,u;return((g=this.data)==null?0:(u=g.header)==null?0:u.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var g,u;if(!((g=this.data)==null?0:(u=g.sidebar)==null?0:u.playlistSidebarRenderer))return!1;var q;return(q=this.data)!=null&&q.header?!1:!0}}});
_.z3.Object.defineProperties(gY,{template:{configurable:!0,enumerable:!0,get:function(){if(yUh===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);yUh=g}g=yUh;return g}}});
gY.prototype.dataChanged=gY.prototype.dataChanged;gY.prototype.onPlayerDetached=gY.prototype.onPlayerDetached;gY.prototype.onPlayerAttached=gY.prototype.onPlayerAttached;gY.prototype.onStampFinished=gY.prototype.onStampFinished;gY.prototype.engagementPanelsChanged=gY.prototype.engagementPanelsChanged;gY.prototype.scrollAtTopChanged=gY.prototype.scrollAtTopChanged;gY.prototype.tabsChanged=gY.prototype.tabsChanged;gY.prototype.activeChanged=gY.prototype.activeChanged;
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],gY.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],gY.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],gY.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(Ul.YtPageBehavior),_.K("design:type",Object)],gY.prototype,"ytPageBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],gY.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],gY.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],gY.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gY.prototype,"hidden",void 0);
_.Y([_.a(),_.K("design:type",Object)],gY.prototype,"mastheadAdData",void 0);_.Y([_.a({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.K("design:type",Object)],gY.prototype,"alertBannerData",void 0);_.Y([_.a({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.K("design:type",Object)],gY.prototype,"greetingData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],gY.prototype,"pageSubtype",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.K("design:type",Boolean)],gY.prototype,"hasMemberHubProfileRenderer",void 0);_.Y([_.a({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],gY.prototype,"hasSidebar",void 0);_.Y([_.a({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],gY.prototype,"hasPageHeaderSidebar",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],gY.prototype,"roundedContainer",void 0);_.Y([_.a({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],gY.prototype,"useUnifiedShowPageLayout",void 0);_.Y([_.a({computed:"computeIsConstrainedList(pageSubtype)"}),_.K("design:type",Object)],gY.prototype,"isConstrainedList",void 0);
_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gY.prototype,"usePlaylistHeaderRenderer",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gY.prototype,"useOldPlaylistSidebarRenderer",null);_.Y([_.a({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.K("design:type",Boolean)],gY.prototype,"fluidWidth",void 0);_.Y([_.a({selector:t_t}),_.K("design:type",Boolean)],gY.prototype,"scrollAtTop",void 0);
_.Y([_.a({selector:efh}),_.K("design:type",Boolean)],gY.prototype,"tabGesturesIsActive",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.K("design:type",Boolean)],gY.prototype,"disableHeaderFluidWidth",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.K("design:type",String)],gY.prototype,"responsiveSizing",void 0);
_.Y([_.oE("ytd-two-column-browse-results-renderer"),_.K("design:type",HTMLElement)],gY.prototype,"contents",void 0);_.Y([_.oE("#header"),_.K("design:type",HTMLElement)],gY.prototype,"header",void 0);_.Y([_.oE("ytd-refresh"),_.K("design:type",Object)],gY.prototype,"refresh",void 0);_.Y([_.k_("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gY.prototype,"activeChanged",null);
_.Y([_.k_("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gY.prototype,"tabsChanged",null);_.Y([_.k_("scrollAtTop"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gY.prototype,"scrollAtTopChanged",null);_.Y([_.a(),_.K("design:type",Object)],gY.prototype,"engagementPanels",void 0);
_.Y([_.k_("data.panels"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gY.prototype,"engagementPanelsChanged",null);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gY.prototype,"onStampFinished",null);_.Y([_.n6("yt-player-attached"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Element]),_.K("design:returntype")],gY.prototype,"onPlayerAttached",null);
_.Y([_.n6("yt-player-detached"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Element]),_.K("design:returntype")],gY.prototype,"onPlayerDetached",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gY.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-browse"})],gY);var WtC,Ts9=function(){if(WtC!==void 0)return WtC;var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return WtC=g};var uc=function(){var g=_.X.apply(this,arguments)||this;g.currentPage=void 0;g.renderLoadingStateJobId=0;g.updatePageDataJobId=0;g.pageDisposeJobsets=new WeakMap;g.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"};g.shouldApplyLockupToWatchTransition=_.w("web_thumbnail_to_watch_transition");g.shouldApplySlideTransition=_.o4("web_page_transition_type")==="slide"||_.w("enable_plj_landing_page");g.shouldApplyLearningJourneyTransition=_.w("enable_plj_landing_page");g.TEST_ONLY=void 0;return g};
_.A(uc,_.X);_.P=uc.prototype;_.P.ready=function(){var g=_.Bk();g.addProvider({provide:_.ba,useValue:this});g.addProvider({provide:_.dk9,useValue:this})};
_.P.created=function(){this.pagePool=new lJL;this.contextSwitcher=new Seb};
_.P.attached=function(){_.hJ(this.hostElement,"attached");var g=_.Bk().resolve(_.xv(_.qR));g&&(this.contextSwitcher.JSC$20161_networkService_=g);this.viewTransitionManager=_.Bk().resolve(_.LP)};
_.P.getPageOffset=function(g){return g.getScrollTop()};
_.P.setPageOffset=function(g,u){try{g.setScrollTop(u)}catch(q){}};
_.P.setPageOffsetForNavigation=function(g,u){_.hJ(this.hostElement,"yt-navigate-set-page-offset",{page:g,offset:u===void 0?0:u})};
_.P.pauseActiveContext=function(){var g=this.contextSwitcher;g.activeContext_&&g.activeContext_.pause()};
_.P.attachPage=function(g){var u,q=!_.w("pc_is_attached_ks")&&(g==null?void 0:(u=g.polymerController)==null?void 0:u.isAttached);if(!g.isAttached&&!q)try{_.Tr(this.hostElement).appendChild(g)}catch(L){var Q;_.Io(new _.Ji("Error attaching page element for component",{origin:(Q=this.currentPage)==null?void 0:Q.is,component:g.is}))}};
_.P.setActivePage=function(g,u){var q=this,Q=!1,L=function(){var E=q.isOnWatch(),y=q.currentPage;if(g)if(g!==q.currentPage){y&&(y.hidden=!0,y.active=!1,y.removeAttribute("role"));q.currentPage=g;var v,J=u!=null?u:_.nU((v=q.data)==null?void 0:v.endpoint);y&&_.hJ(q.hostElement,"yt-page-type-changed",{oldPageType:y.is,newPageType:g.is,newPageSubtype:J});_.CE().dispatch(_.rF({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:g.is}));_.CE().dispatch(_.rF({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:J||""}));
g.hidden=!1;q.attachPage(g);g.active=!0;g.setAttribute("role","main");y&&q.setPageOffsetForNavigation(g,0);_.w("kevlar_remove_page_dom_on_switch")&&!E&&y&&_.Tr(q.hostElement).removeChild(y)}else Q=!0;else q.handleMissingDestinationPage(y)};
this.shouldRunBrowseTransition(this.currentPage,g)?LmK(this.viewTransitionManager,L):this.shouldRunLearningJourneyTransition(this.currentPage,g)?Ndz(this.viewTransitionManager,L):L();return Q};
_.P.handleMissingDestinationPage=function(g){if(this.isColdLoadForUnknownPage(g))_.Io(new _.Ji("Cold load for unknown page"));else{var u;g=new _.Ji("Unable to set active page",g?g.is:"unknown origin",(u=this.data)==null?void 0:u.endpoint);_.Zf(g)}};
_.P.isColdLoadForUnknownPage=function(g){return!g&&mu(this.data)==="unknown"};
_.P.shouldRunBrowseTransition=function(g,u){return this.shouldApplySlideTransition&&(g==null?void 0:g.is)==="ytd-browse"&&(u==null?void 0:u.is)==="ytd-browse"&&g!==u};
_.P.shouldRunLearningJourneyTransition=function(g,u){return this.shouldApplyLearningJourneyTransition&&(g==null?void 0:g.is)==="ytd-browse"&&((u==null?void 0:u.is)==="ytd-watch-learning-journey"||(u==null?void 0:u.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.P.shouldRunWatchNextLoadedTransition=function(g,u){return this.viewTransitionManager&&g.is==="ytd-watch-flexy"&&u};
_.P.updatePageData=function(g){var u=this,q=this.data;this.updatePageDataJobId&&_.Hv.cancelJob(this.updatePageDataJobId);this.data=g;return new _.Ez(function(Q){var L=function(){g.filler?u.performDataUpdate(g,q):kGt(function(){u.performDataUpdate(g,q)});
var E=_.A4();_.ZV(E,"cr")||E.processSignal("cr");Q()};
g&&g.page==="watch"?u.updatePageDataJobId=_.Ln(_.Hv,L):L()})};
_.P.isDownloadsPage=function(g){var u,q;return(g==null?void 0:(u=g.endpoint)==null?void 0:(q=u.browseEndpoint)==null?void 0:q.browseId)==="FEdownloads"};
_.P.setPlayerSyncInterval=function(g){var u;return _.D(function(q){if(q.nextAddress==1)return q.yield(_.Bk().resolve(_.rv),2);u=q.yieldResult;u.setUpPositionSyncInterval(g);_.Wx(q)})};
_.P.performDataUpdate=function(g,u){_.w("kevlar_early_popup_close")||_.YJ(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var q=!g.filler;q&&(_.fW("lps"),_.w("config_age_report_killswitch")||L7h());var Q=mu(g),L,E=!1;if(_.w("kevlar_remove_page_dom_on_switch")){var y=u&&mu(u);Q===y&&(L=this.getCurrentPage())}L||(L=a$(this.pagePool,Q));q&&gx9(this.pagePool.elementPoolPopulator,Q);q&&!this.renderLoadingStateJobId&&(E=this.setActivePage(L));if(L){y=Q==="watch";var v=
Q==="shorts",J=Q==="learning_journey_watch";_.w("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(L);if(y||v||J)L.playerData=g.playerResponse;if(v){g.reelWatchSequenceResponse?L.reelWatchSequenceResponse=g.reelWatchSequenceResponse:L.cachedReelWatchSequenceResponse&&!L.reelWatchSequenceResponse&&(L.reelWatchSequenceResponse=L.cachedReelWatchSequenceResponse);g.reelWatchSequenceResponse&&(u==null?void 0:u.page)!=="shorts"&&(L.cachedReelWatchSequenceResponse=g.reelWatchSequenceResponse);
L.currentEndpoint=g.endpoint;var f;L.isPreviousPageShorts=!!(u==null?0:(f=u.endpoint)==null?0:f.reelWatchEndpoint)}f=this.isDownloadsPage(g);var t=this.isDownloadsPage(u);f&&!t?this.setPlayerSyncInterval(6E5):!f&&t&&this.setPlayerSyncInterval();_.w("block_all_player_prefetch_requests")||this.preparePrefetchRequest(g,L,q,y,v,J);sxC(_.Bk().resolve(_.RO),u,g);if(_.w("enable_ai_companion")){var e;(e=_.Bk().resolve(_.xv(_.pl)))==null||_.CXt(e,this.getPersistentPanelSurface(Q))}_.Fq(_.Bk().resolve(_.UE));
_.w("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(L);q?(q=typeof L.loadPage,q==="function"?(L.pageContext=oYK(this.contextSwitcher,L,L.data!==g.response),q=function(){L.loadPage(g.response)},this.shouldApplySlideTransition&&L.is==="ytd-browse"&&E&&(Q==="learning"||this.isDifferentBrowseId(g==null?void 0:g.endpoint,u==null?void 0:u.endpoint))?LmK(this.viewTransitionManager,q):this.shouldRunWatchNextLoadedTransition(L,E)?Pgx(this.viewTransitionManager,q):q()):_.lD(new _.Ji("b/38014653 ",
[Q,
L.is,L.nodeName,q,L.isAttached,u&&mu(u),this.hostElement.children.length])),_.fW("pdl")):(L.hidden=!0,g.response.filler=!0,L.data=g.response,this.attachPage(L));_.hJ(this.hostElement,"yt-page-data-updated",{pageType:Q})}_.M_(_.Hv,function(){_.w("logging_avoid_blocking_during_navigation")&&_.nqF().transition("none");var G=Jpf(),R=L;if(g){var H=VTH(g),l=Xep(g),d;a:{if(g.playerResponse){var F=g.playerResponse,V;if((d=F.auxiliaryUi)==null?0:(V=d.messageRenderers)==null?0:V.upsellDialogRenderer){d=F.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(g.response&&(d=g.response,(F=d.overlay)==null?0:F.upsellDialogRenderer)){d=d.overlay.upsellDialogRenderer;break a}d=void 0}var z;var O;V=(z=g.playerResponse)==null?void 0:(O=z.auxiliaryUi)==null?void 0:O.messageRenderers;z=(V==null?void 0:V.enforcementMessageViewModel)||(V==null?void 0:V.bkaEnforcementMessageViewModel);z=(z==null?void 0:z.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?z:void 0;var W;a:{if(g.response&&(O=g.response,(W=O.overlay)==null?0:W.commandWrapperPromoRenderer)){W=
O.overlay.commandWrapperPromoRenderer;break a}W=void 0}ph9(G,H,l,d,z,W,R)}})};
_.P.preparePrefetchRequest=function(g,u,q,Q,L,E){var y,v,J,f,t,e,G,R,H,l,d,F,V,z,O;return _.D(function(W){if(W.nextAddress==1)return!q||!(Q||L||E)||_.w("kevlar_disable_background_prefetch")&&_.V1(k3C)()===0?W.return():(y=_.dv(u))?W.yield(y.getPlayerPromise(),2):W.return();v=W.yieldResult;J=_.Bk().resolve(_.xv(_.qR));if(!J)return W.return();if(L)return f=_.r_(_.Bd),jhK(f,(t=g.endpoint)==null?void 0:t.reelWatchEndpoint,u.reelWatchSequenceResponse,v,J),W.return();R=(e=g.response)==null?void 0:(G=e.responseContext)==
null?void 0:G.webResponseContextExtensionData;if(!R)return W.return();V=(H=g.response)==null?void 0:(l=H.contents)==null?void 0:(d=l.twoColumnWatchNextResults)==null?void 0:(F=d.autoplay)==null?void 0:F.autoplay;z=_.Bk().resolve(_.cd);O=_.r_(_.Bd);frH(O,R,v,J,z,V);_.Wx(W)})};
_.P.movePlayerToWatch=function(g){var u=this,q,Q;return _.D(function(L){q=a$(u.pagePool,"watch");Q=q.getPlayerContainer();g.appendTo(Q);_.Wx(L)})};
_.P.movePlayerToShorts=function(g){var u=this,q,Q,L;return _.D(function(E){q=a$(u.pagePool,"shorts");Q=q.getPlayerContainer();(L=g)==null||L.appendTo(Q,void 0,!0);_.Wx(E)})};
_.P.getPlayerFromWatch=function(){var g=a$(this.pagePool,"watch");return _.dv(g)};
_.P.getPlayerFromShorts=function(){var g=a$(this.pagePool,"shorts");return _.dv(g)};
_.P.startLoadingWatch=function(){var g=this,u=a$(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Hv.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.w("web_watch_transition_enable_start_loading_watch_callsite")?EIZ(this.viewTransitionManager,function(){g.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(u,"watch");
if(_.w("enable_ai_companion")){var q;(q=_.Bk().resolve(_.xv(_.pl)))==null||_.CXt(q,this.getPersistentPanelSurface("watch"))}};
_.P.startLoadingShorts=function(){var g=a$(this.pagePool,"shorts");this.setActivePage(g,"shorts")};
_.P.startLoadingLearningJourney=function(){var g=a$(this.pagePool,"learning_journey_watch");this.setActivePage(g,"learning_journey_watch")};
_.P.getCurrentPage=function(){return this.currentPage};
_.P.getDestinationPageType=function(){return this.destinationPageType};
_.P.getCurrentData=function(){return this.data};
_.P.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.P.isOnShorts=function(){var g;return((g=this.currentPage)==null?void 0:g.is)==="ytd-shorts"};
_.P.isWatchPage=function(g){return!!g&&(g.is==="ytd-watch-flexy"||g.is==="ytd-watch-fixie"||g.is==="ytd-watch-grid")};
_.P.preparePage=function(g,u){var q=this,Q=function(){var E=q.pagePool.preparePage(g,q.currentPage,u);E&&q.attachPage(E)},L=function(E){_.iD(E,u);
_.Io(E)};
try{Q()}catch(E){L(E)}};
_.P.lazyPrepareCriticalPages=function(g,u){g=_.nU(u)||g;this.maybePrepareWatchPage(g)};
_.P.maybePrepareWatchPage=function(g){g==="watch"||g==="learning_journey_watch"&&_.w("web_watch_learning_journey_disable_lazy_pages")||_.M_(_.Hv,this.preparePage.bind(this,"watch"))};
_.P.renderPageLoadingState=function(g,u){this.preparePage(g,u);var q=a$(this.pagePool,g);q.loadingData&&(q.loadingData.endpoint=u);q.loading=!0;this.setActivePage(q,g);g!=="watch"&&g!=="learning_journey_watch"||_.hJ(this.hostElement,"yt-guide-close")};
_.P.prepareForNavigation=function(g,u){var q=this;if(this.currentPage&&this.data){var Q=_.nU(u)||g;this.destinationPageType=Q;mu(this.data)==Q&&_.hJ(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((g==="watch"||g==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Hv.cancelJob(this.renderLoadingStateJobId);_.Bk().resolve(_.RO).deactivate(u);_.gT(_.Hv,function(){var E=q.viewTransitionManager,y=q.currentPage;
if(E.isLockupToWatchTransitionEnabled&&E.isLockupThumbnailRegistrationEnabled&&y)if(E.registeredLockupThumbnail)E.lockupThumbnailRegisteredFromWatchEndpoint&&_.Io(new _.Ji("Lockup thumbnail already registered from watch endpoint."));else{a:{var v=_.c(u,_.l1);if(v==null?0:v.videoId){var J="yt-lockup-view-model ."+_.siq(v.videoId)+" yt-thumbnail-view-model";y=y.querySelectorAll(J);if(y.length===1){v=y[0];break a}y.length>1?_.Io(new _.Ji("Multiple LockupViewModel thumbnails found for videoId: "+v.videoId+
". Selector: "+J)):_.w("web_thumbnail_to_watch_transition_debug")&&_.Io(new _.Ji("No LockupViewModel thumbnail found for videoId: "+v.videoId+". Selector: "+J))}v=void 0}v&&(E.registeredLockupThumbnail=v,E.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.MaZ(E,v))}});
var L=this.data;this.renderLoadingStateJobId=_.gT(_.Hv,function(){EIZ(q.viewTransitionManager,function(){if(q.data!=L){var E=a$(q.pagePool,g);q.setActivePage(E)}else q.renderPageLoadingState(g,u);q.renderLoadingStateJobId=0})},150)}};
_.P.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var g=new _.bw(1);this.currentPage.pageDisposeJobs.forEach(function(u){_.dg(g,u)});
this.pageDisposeJobsets.set(this.currentPage,g)}};
_.P.flushPageDisposeJobset=function(g){var u=this.pageDisposeJobsets.get(g);u&&(u.flushJobs(),this.pageDisposeJobsets.delete(g))};
_.P.onYtStopOldPlayer=function(g,u){u=u===void 0?!1:u;var q,Q=_.U_("kevlar_new_stop_old_player_logic_pages");if(_.w("kevlar_check_current_page_on_stop_old_player")&&(Q.length===0||this.currentPage&&Q.includes(this.currentPage.is)))if(this.data&&(q=mu(this.data)),mu(g)===q&&this.currentPage&&mu(this.currentPage.data)!==q)var L=_.dv(this.currentPage);else q=mu(this.data),L=a$(this.pagePool,q),L=_.dv(L);else this.data&&(q=mu(this.data),L=a$(this.pagePool,q),L=_.dv(L));if(L){Q=mu(g);var E=a$(this.pagePool,
Q);E=_.dv(E);if(L==E)u&&!_.w("kevlar_disable_preemptive_player_reset")&&L.resetForNewPlayback();else if(u=q==="watch"&&Q!=="watch",!u||Q==="shorts"||_.II2()&&!NVb(this.data,g))g=_.Bk().resolve(_.RO),u&&g.isMiniplayerActive()&&g.pipController.getWindow()||L.stop()}};
_.P.isDifferentBrowseId=function(g,u){g=_.c(g,_.kZ);u=_.c(u,_.kZ);return(g==null?void 0:g.browseId)!==(u==null?void 0:u.browseId)};
_.P.getPersistentPanelSurface=function(g){switch(g){case "watch":return"WATCH";default:return"APP"}};
_.z3.Object.defineProperties(uc,{template:{configurable:!0,enumerable:!0,get:function(){return Ts9()}}});
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],uc.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-page-manager"})],uc);_.T(uc,"ytd-page-manager",function(){return Ts9()},{mode:_.hr("kevlar_poly_si_batch_j081")?1:2});var h7L;var Yjn;var qt=function(){var g=_.X.apply(this,arguments)||this;g.hasChipBar=!1;return g};
_.A(qt,_.X);qt.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}}};
qt.prototype.computeHasChipBar=function(g){return!(g==null||!g.chipBar)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qt.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.K("design:type",Object)],qt.prototype,"hasChipBar",void 0);_.Y([_.fE({is:"ytd-search-header-renderer",disableElementRegistration:!0})],qt);
_.T(qt,"ytd-search-header-renderer",function(){if(Yjn!==void 0)return Yjn;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Yjn=g},{mode:1});var ODx;var Qg=function(){return _.X.apply(this,arguments)||this};
_.A(Qg,_.X);Qg.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Qg.prototype.computeBlueBottomLink=function(g){return g};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Qg.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.bottomIcon)"}),_.K("design:type",String)],Qg.prototype,"bottomIcon",void 0);
_.Y([_.a({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Qg.prototype,"enableBlueBottomLink",void 0);_.Y([_.fE({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Qg);
_.T(Qg,"ytd-web-answer-renderer",function(){if(ODx!==void 0)return ODx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ODx=g},{mode:2});var Ktx;var Lk=function(){return _.X.apply(this,arguments)||this};
_.A(Lk,_.X);Lk.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Lk.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-page-continuation"})],Lk);
_.T(Lk,"ytd-page-continuation",function(){if(Ktx!==void 0)return Ktx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Ktx=g},{mode:1});var xL9;var Bs9;var z7f;var nPf=function(){return _.X.apply(this,arguments)||this};
_.A(nPf,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nPf.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],nPf.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],nPf);
_.T(nPf,"ytd-watch-card-one-vs-one-event",function(){if(z7f!==void 0)return z7f;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return z7f=g},{mode:1});var k1h=function(){return _.X.apply(this,arguments)||this};
_.A(k1h,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],k1h.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],k1h.prototype,"data",void 0);_.Y([_.fE({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],k1h);
_.T(k1h,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Bs9!==void 0)return Bs9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Bs9=g},{mode:1});var Sjf;var oPp=function(){return _.X.apply(this,arguments)||this};
_.A(oPp,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oPp.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],oPp.prototype,"data",void 0);_.Y([_.fE({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],oPp);
_.T(oPp,"ytd-banner-and-box-hero-image-renderer",function(){if(Sjf!==void 0)return Sjf;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Sjf=g},{mode:1});var ULL;var EN=function(){var g=_.X.apply(this,arguments)||this;g.modern=_.w("web_modern_buttons");return g};
_.A(EN,_.X);EN.prototype.computeIcon=function(){var g,u,q=(g=this.data)==null?void 0:(u=g.icon)==null?void 0:u.iconType;if(q)return _.x9(q)};
EN.prototype.computeButtonShape=function(){var g;return{buttonText:_.iR((g=this.data)==null?void 0:g.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.z3.Object.defineProperties(EN.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"}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],EN.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],EN.prototype,"modern",void 0);_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.C("data.style"),_.K("design:type",Object),_.K("design:paramtypes",[])],EN.prototype,"buttonColor",null);
_.Y([_.fE({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],EN);
_.T(EN,"ytd-call-to-action-button-renderer",function(){if(ULL!==void 0)return ULL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ULL=g},{mode:1});var gUC;var PP=function(){return _.X.apply(this,arguments)||this};
_.A(PP,_.X);PP.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Tr(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Fh(this.data.leftThumbnail.thumbnails,216)+")")};
PP.prototype.onLeftThumbnailChanged=PP.prototype.onLeftThumbnailChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],PP.prototype,"data",void 0);_.Y([_.k_("data.leftThumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PP.prototype,"onLeftThumbnailChanged",null);_.Y([_.fE({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],PP);
_.T(PP,"ytd-collage-hero-image-renderer",function(){if(gUC!==void 0)return gUC;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return gUC=g},{mode:1});var u3x;var Nt=function(){return _.X.apply(this,arguments)||this};
_.A(Nt,_.X);Nt.prototype.computeStyle=function(g){return g};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Nt.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],Nt.prototype,"componentStyle",void 0);_.Y([_.fE({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Nt);
_.T(Nt,"ytd-single-hero-image-renderer",function(){if(u3x!==void 0)return u3x;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return u3x=g},{mode:1});var qoL;var sN=function(){return _.X.apply(this,arguments)||this};
_.A(sN,_.X);_.P=sN.prototype;
_.P.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:_.w("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.P.computeSubtitle=function(g){if(this.data){var u;if(this.data.upcomingEventData){g=_.iR(g.subtitle);var q=Number(this.data.upcomingEventData.startTime);isNaN(q)||(u=_.I7(_.EI(g,q)))}else u=g.subtitle;return u}};
_.P.onHeroTap=function(g){g.preventDefault();var u=this.data&&this.data.navigationEndpoint;!u||!_.ia(_.C6(g),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.ia(_.C6(g),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.w("kevlar_watchcard_hero_video_renderer_killswitch")?_.hJ(this.hostElement,"yt-navigate",{navigationEndpoint:u}):this.ytComponentBehavior.resolveCommand(u))};
_.P.computeHeroTabIndex=function(g){return g&&g.simpleText?-1:0};
_.P.computeHeroRole=function(g){return g&&g.simpleText?"":"link"};
_.P.computeIsReminderButtonPresent=function(g){return!(!g||!g.reminderButton)};
_.P.computeHideBottomItems=function(g){return!(this.computeIsReminderButtonPresent(g)||g.subtitle)};
_.P.dataChanged=function(){var g=this.get("data.buttons.buttonRenderer.serviceEndpoint"),u;((u=_.c(g==null?void 0:g.commandMetadata,_.QP))==null?0:u.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(g)};
sN.prototype.dataChanged=sN.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],sN.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sN.prototype,"data",void 0);
_.Y([_.a({computed:"computeSubtitle(data)"}),_.K("design:type",String)],sN.prototype,"subtitle",void 0);_.Y([_.a({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],sN.prototype,"isReminderButtonPresent",void 0);_.Y([_.a({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],sN.prototype,"hideBottomItems",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sN.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],sN);
_.T(sN,"ytd-watch-card-hero-video-renderer",function(){if(qoL!==void 0)return qoL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return qoL=g},{mode:1});var Qth;var yg=function(){return _.X.apply(this,arguments)||this};
_.A(yg,_.X);_.P=yg.prototype;_.P.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"}}}};
_.P.computeTitleBadges=function(g){return g?[g]:[]};
_.P.computeHeaderStyle=function(g){return g?g.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.P.computeAvatarAriaLabel=function(g){if(g){var u,q,Q,L;return(L=(u=g.avatar)==null?void 0:(q=u.accessibility)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label)!=null?L:_.iR(g==null?void 0:g.title)}};
_.P.computeAvatarHeight=function(g){return g==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.P.computeBadgeRowClass=function(g){return(g==null?0:g[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yg.prototype,"data",void 0);_.Y([_.a({computed:"computeTitleBadges(data.titleBadge)"}),_.K("design:type",Array)],yg.prototype,"titleBadges",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.K("design:type",String)],yg.prototype,"headerStyle",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.K("design:type",String)],yg.prototype,"badgeRowClass",void 0);_.Y([_.fE({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],yg);
_.T(yg,"ytd-watch-card-rich-header-renderer",function(){if(Qth!==void 0)return Qth;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Qth=g},{mode:1});var LIH;var EUz;var vP=function(){return _.X.apply(this,arguments)||this};
_.A(vP,_.X);vP.prototype.onMetadataTap=function(g){var u=this.data&&this.data.navigationEndpoint;u&&!_.ia(_.C6(g),this.hostElement,["A".toString()])&&_.hJ(this.hostElement,"yt-navigate",{endpoint:u})};
_.z3.Object.defineProperties(vP.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 g;if(this.data.upcomingEventData){var u=_.iR(this.data.subtitle),q=Number(this.data.upcomingEventData.startTime);isNaN(q)||(g=_.I7(_.EI(u,q)))}else g=this.data.subtitle;return g}}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vP.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.style"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vP.prototype,"isCondensed",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vP.prototype,"subtitle",null);
_.Y([_.fE({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],vP);
_.T(vP,"ytd-watch-card-compact-video-renderer",function(){if(EUz!==void 0)return EUz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return EUz=g},{mode:1});var P_h;var Nkz=function(){return _.X.apply(this,arguments)||this};
_.A(Nkz,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Nkz.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Nkz.prototype,"data",void 0);_.Y([_.fE({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Nkz);
_.T(Nkz,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(P_h!==void 0)return P_h;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return P_h=g},{mode:1});var DJ=function(){return _.X.apply(this,arguments)||this};
_.A(DJ,_.X);DJ.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}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],DJ.prototype,"ytRendererStamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],DJ.prototype,"data",void 0);_.Y([_.fE({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],DJ);
_.T(DJ,"ytd-vertical-watch-card-list-renderer",function(){if(LIH!==void 0)return LIH;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return LIH=g},{mode:1});var stx;var pk=function(){var g=_.X.apply(this,arguments)||this;g.ariaExpanded="false";return g};
_.A(pk,_.X);_.P=pk.prototype;_.P.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.P.dataChanged=function(){var g;this.currentSeasonIndex=((g=this.data)==null?void 0:g.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.P.computeEpisodesInfo=function(g,u,q){if(g!==void 0&&u.length===g.length)return g[q]};
_.P.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.P.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.P.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.P.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.P.getUppercaseSimpleString=function(g){return this.ytRendererBehavior.getSimpleString(g).toUpperCase()};
_.P.updateCurrentSeasonIndexFromBinding=function(g){this.currentSeasonIndex=g.detail.value};
pk.prototype.onIronOverlayClosed=pk.prototype.onIronOverlayClosed;pk.prototype.currentSeasonIndexChanged=pk.prototype.currentSeasonIndexChanged;pk.prototype.dataChanged=pk.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pk.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",String)],pk.prototype,"label",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],pk.prototype,"currentSeasonIndex",void 0);_.Y([_.a({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.K("design:type",Object)],pk.prototype,"episodesInfo",void 0);_.Y([_.a({value:"false"}),_.K("design:type",Object)],pk.prototype,"ariaExpanded",void 0);_.Y([_.oE("#lists"),_.K("design:type",Object)],pk.prototype,"lists",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pk.prototype,"dataChanged",null);_.Y([_.qm("currentSeasonIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pk.prototype,"currentSeasonIndexChanged",null);_.Y([_.n6("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],pk.prototype,"onIronOverlayClosed",null);
_.Y([_.fE({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],pk);
_.T(pk,"ytd-watch-card-section-dropdown-renderer",function(){if(stx!==void 0)return stx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return stx=g},{mode:1});var yIC;var Jc=function(){var g=_.X.apply(this,arguments)||this;g.isSearch=!1;return g};
_.A(Jc,_.X);Jc.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}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Jc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Jc.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Jc.prototype,"isSearch",void 0);_.Y([_.fE({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Jc);
_.T(Jc,"ytd-watch-card-section-sequence-renderer",function(){if(yIC!==void 0)return yIC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return yIC=g},{mode:1});var vUb=_.r(function(g){return _.p("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.p(_.Up,{data:function(){return g.data().ctaButton}},{buttonViewModel:_.TT}),_.p(_.c2,{text:function(){return g.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"xk");
vUb.idomCompat=!0;_.dL(vUb,"ytd-button-banner-view-model",{props:{data:_.H2}});var j1=function(){var g=_.X.apply(this,arguments)||this;g.isSearch=!1;return g};
_.A(j1,_.X);
j1.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"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],j1.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],j1.prototype,"rounded",void 0);_.Y([_.a(),_.K("design:type",Object)],j1.prototype,"isSearch",void 0);
_.Y([_.fE({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],j1);
_.T(j1,"ytd-universal-watch-card-renderer",function(){if(xL9!==void 0)return xL9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return xL9=g},{mode:1});var D19;_.dL(_.r(function(g){var u=g.data;var q;g=!((q=_.Bk().resolve(_.xv(_.gy)))==null||!q());q={};return _.p("overview-message-view-model",{class:_.Ty("ytwOverviewMessageViewModelHost",(q.ytwOverviewMessageViewModelDarkBackground=g,q.ytwOverviewMessageViewModelLightBackground=!g,q))},_.p(_.M,{cond:function(){return u().primaryImage},
then:function(Q){return _.p(_.IT,{data:Q,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.p(_.M,{cond:function(){return u().primaryText},
then:function(){return _.p("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.p(_.c2,{text:function(){return u().primaryText}}))}}),_.p(_.M,{cond:function(){return u().secondaryText},
then:function(){return _.p("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.p(_.c2,{text:function(){return u().secondaryText}}))}}))},"yk"),"overview-message-view-model",{props:{data:_.H2}});_.dL(_.OZp,"ytd-overview-answer-view-model",{props:{data:_.H2}});var fk=function(){return _.X.apply(this,arguments)||this};
_.A(fk,_.X);fk.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"}}}};
fk.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.i5),_.K("design:type",Object)],fk.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],fk.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],fk.prototype,"isSearch",void 0);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],fk);
_.T(fk,"ytd-secondary-search-container-renderer",function(){if(D19!==void 0)return D19;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return D19=g},{mode:1});var p7L;var Mt=function(){var g=_.X.apply(this,arguments)||this;g.renderSecondarySearchContainer=!1;g.isSearch=!1;return g};
_.A(Mt,_.X);_.P=Mt.prototype;_.P.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"}}}};
_.P.created=function(){var g=this;this.boundStampSecondarySearchContainerIfFits=function(){g.stampSecondarySearchContainerIfFits()};
_.di("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.P.computeIsSearchFrictionPage=function(g){var u,q,Q,L,E;g=g==null?void 0:(u=g.primaryContents)==null?void 0:(q=u.sectionListRenderer)==null?void 0:(Q=q.contents)==null?void 0:(L=Q[0])==null?void 0:(E=L.itemSectionRenderer)==null?void 0:E.contents;if(!g)return!1;u=_.N(g);for(q=u.next();!q.done;q=u.next())if(Q=void 0,(Q=q.value)==null?0:Q.searchFrictionViewModel)return!0;return!1};
_.P.computeShowSecondaryColumn=function(g,u){return!!(u&&u.secondaryContents&&g)};
_.P.activeChanged=function(){var g=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.zr(this,this.debounceStampSecondarySearchContainerIfFits)),_.wO(function(){g.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.zr(this,this.debounceStampSecondarySearchContainerIfFits))};
_.P.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.P.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.P.debounceStampSecondarySearchContainerIfFits=function(){_.c$(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.P.onRetrieveLocation=function(g,u){u.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);g.stopPropagation()};
_.P.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Mt.prototype.dataChanged=Mt.prototype.dataChanged;Mt.prototype.onRetrieveLocation=Mt.prototype.onRetrieveLocation;Mt.prototype.persistentGuideChanged=Mt.prototype.persistentGuideChanged;Mt.prototype.activeChanged=Mt.prototype.activeChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Mt.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.LJ),_.K("design:type",Object)],Mt.prototype,"ironResizableBehavior",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Mt.prototype,"active",void 0);_.Y([_.a(),_.K("design:type",Object)],Mt.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],Mt.prototype,"useBiggerThumbs",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.o4("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],Mt.prototype,"biggerThumbsStyle",void 0);_.Y([_.a(),_.K("design:type",Object)],Mt.prototype,"renderSecondarySearchContainer",void 0);_.Y([_.a({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.K("design:type",Boolean)],Mt.prototype,"showSecondaryColumn",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.K("design:type",Boolean)],Mt.prototype,"isSearchFrictionPage",void 0);
_.Y([_.a(),_.K("design:type",Object)],Mt.prototype,"isSearch",void 0);_.Y([_.k_("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mt.prototype,"activeChanged",null);_.Y([_.k_("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mt.prototype,"persistentGuideChanged",null);
_.Y([_.n6("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Mt.prototype,"onRetrieveLocation",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mt.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Mt);
_.T(Mt,"ytd-two-column-search-results-renderer",function(){if(p7L!==void 0)return p7L;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return p7L=g},{mode:1});var tc=function(){var g=_.X.apply(this,arguments)||this;g.hasSearchHeader=!1;g.hasSecondaryContent=!1;g.hasBiggerThumbs=_.w("enable_desktop_search_bigger_thumbs");g.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return g};
_.A(tc,_.X);_.P=tc.prototype;_.P.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:yS(["aa","eocs"])}}};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.loadPage_=function(g){this.initCsi();g&&(this.data=g,_.di("REFINEMENTS_TUPLE",["FromSearchResponse",g.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.YO(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.P.initCsi=function(){JJb("results",["ol","cpt"])};
_.P.updateTitle=function(){var g=_.U7(window.location.href,"q");g||(g=_.U7(window.location.href,"search_query"));_.hJ(this.hostElement,"yt-update-title",g||"")};
_.P.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.P.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.w("web_srp_data_changed_terminate_imp_killswitch")||_.YJ(this.hostElement,"yt-terminate-video-preview-action")};
_.P.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.P.computeHasSearchHeader=function(g){var u;g=g==null?void 0:(u=g.header)==null?void 0:u.searchHeaderRenderer;return!!g&&(!!g.searchFilterButton||!!g.chipBar)};
_.P.computeHasSecondaryContent=function(g){var u,q;return!!(g==null?0:(u=g.contents)==null?0:(q=u.twoColumnSearchResultsRenderer)==null?0:q.secondaryContents)};
_.z3.Object.defineProperties(tc,{template:{configurable:!0,enumerable:!0,get:function(){if(h7L===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);h7L=g}g=h7L;return g}}});
tc.prototype.onReloadContinuationFinish=tc.prototype.onReloadContinuationFinish;tc.prototype.dataChanged=tc.prototype.dataChanged;_.Y([_.I(Ul.YtPageBehavior),_.K("design:type",Object)],tc.prototype,"ytPageBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],tc.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.i5),_.K("design:type",Object)],tc.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tc.prototype,"data",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],tc.prototype,"monitorScroll",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tc.prototype,"hasSearchHeader",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tc.prototype,"hasSecondaryContent",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],tc.prototype,"hasBiggerThumbs",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tc.prototype,"dataChanged",null);
_.Y([_.n6("yt-reload-continuation-finish"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tc.prototype,"onReloadContinuationFinish",null);_.Y([_.fE({is:"ytd-search"})],tc);var JIh;var jtE;var fDZ;var e1=function(){var g=_.X.apply(this,arguments)||this;g.ctaVisualElement=null;g.currentCsn=null;return g};
_.A(e1,_.X);_.P=e1.prototype;_.P.onDataChanged=function(){this.maybeLogShows()};
_.P.computeButtonShape=function(){var g=this;if(this.data)return{buttonText:_.iR(this.data.text),state:"active",onTap:function(){g.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.P.maybeCreateCtaVe=function(){var g;if((g=this.data)!=null&&g.badgeInteractionLogging){var u;if(g=(u=this.data.badgeInteractionLogging)==null?void 0:u.trackingParams)this.ctaVisualElement=_.Lr(g)}};
_.P.maybeLogClicks=function(){this.currentCsn=_.j_(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Ip(this.currentCsn,this.ctaVisualElement)};
_.P.maybeLogShows=function(){this.currentCsn=_.j_(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Z0(this.currentCsn,[this.ctaVisualElement])};
_.P.onTap=function(){var g;if((g=this.data)!=null&&g.onClickCommand){var u;this.ytComponentBehavior.resolveCommand((u=this.data)==null?void 0:u.onClickCommand);this.maybeLogClicks()}};
e1.prototype.onDataChanged=e1.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);_.Y([_.a({}),_.K("design:type",Object)],e1.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],e1.prototype,"onDataChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],e1);
_.T(e1,"ytd-shopping-overlay-badge-renderer",function(){if(fDZ!==void 0)return fDZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return fDZ=g},{mode:1});var MNE;var Ga=function(){return _.X.apply(this,arguments)||this};
_.A(Ga,_.X);Ga.prototype.computeShouldButtonBeVertical=function(g,u){return g||u};
Ga.prototype.onYtServiceRequestSent=function(g,u){(g=_.c(u.endpoint,_.sw))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.u2("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:g.status})):this.handleLikeEndpoint(g))};
Ga.prototype.computelikeStatusEntityKey=function(g){return g==null?void 0:g.likeStatusEntityKey};
Ga.prototype.handleLikeEndpoint=function(g){g.status==="LIKE"?this.JSC$22051_ytdDislikeToggleButtonRenderer.toggle(!1):g.status==="DISLIKE"?this.JSC$22051_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22051_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22051_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.z3.Object.defineProperties(Ga.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var g;return Rdh(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(g=this.likeStatusEntity)==null?void 0:g.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var g;if(this.data&&((g=this.data)==null||!g.hideDislikeButton)){var u;return Rdh(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(u=this.likeStatusEntity)==null?void 0:u.likeStatus)}}}});
Ga.prototype.onYtServiceRequestSent=Ga.prototype.onYtServiceRequestSent;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Ga.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ga.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ga.prototype,"vertical",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],Ga.prototype,"textTransform",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ga.prototype,"useShortsIcon",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ga.prototype,"underIconLabel",void 0);_.Y([_.a({value:"left"}),_.K("design:type",String)],Ga.prototype,"buttonTooltipPosition",void 0);_.Y([_.a(),_.K("design:type",Object)],Ga.prototype,"overrides",void 0);
_.Y([_.oE("#like-button"),_.K("design:type",Object)],Ga.prototype,"JSC$22051_ytdLikeToggleButtonRenderer",void 0);_.Y([_.oE("#dislike-button"),_.K("design:type",Object)],Ga.prototype,"JSC$22051_ytdDislikeToggleButtonRenderer",void 0);_.Y([_.C("data","likeStatusEntity.likeStatus","useShortsIcon"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ga.prototype,"likeButton",null);
_.Y([_.C("data","likeStatusEntity.likeStatus","useShortsIcon"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ga.prototype,"dislikeButton",null);_.Y([_.a({computed:"computelikeStatusEntityKey(data)"}),_.K("design:type",String)],Ga.prototype,"likeStatusEntityKey",void 0);_.Y([_.a({selectorArgs:["likeStatusEntityKey"],selector:_.jT}),_.K("design:type",Object)],Ga.prototype,"likeStatusEntity",void 0);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],Ga.prototype,"onYtServiceRequestSent",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Ga);
_.Te()(Ga,"ytd-like-button-renderer",function(){if(MNE===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);MNE=g}g=MNE;return g},{mode:1});_.dL(_.yMz,"reel-sound-metadata-view-model",{props:{data:_.iF,overlayDensity:_.iF}});_.dL(_.bvp,"player-disclosure-view-model",{props:{data:_.H2,extractOverlay:_.H2}});_.dL(_.RHb,"pivot-button-view-model",{props:{data:_.iF,className:_.iF}});_.dL(_.wPH,"reel-action-bar-view-model",{props:{data:_.H2,buttonShapeOverrideables:_.H2}});_.dL(_.D_Z,"yt-reel-metapanel-view-model",{props:{data:_.H2,overlayDensity:_.H2,extractOverlay:_.H2}});var tNp=_.r(function(g){var u=g.children;var q=g.region;g=_.N(_.jR(void 0,void 0,"flxBBc"));var Q=g.next().value,L=g.next().value;g=_.N(_.jR("0px",void 0,"IAR7k"));var E=g.next().value,y=g.next().value;g=_.N(_.jR("0px",void 0,"QV4iWb"));var v=g.next().value,J=g.next().value;g=_.N(_.jR(0,void 0,"Q2oK6b"));var f=g.next().value,t=g.next().value;g=_.N(_.jR(0,void 0,"hYKowe"));var e=g.next().value,G=g.next().value,R=function(){var z=Q();if(z){var O;if(((O=_.Ke())==null?void 0:O.getPlayerState())!==-1){z.style.display=
"inherit";var W;(W=_.Ke())==null||W.removeEventListener("onStateChange",R)}else z.style.display="none";l()}},H=function(){var z;
return(z=_.F0())==null?void 0:z.querySelector("video")},l=function(){var z=H();
if(z){t(z.getBoundingClientRect().width);G(z.getBoundingClientRect().height);var O;y((z==null?void 0:(O=z.style)==null?void 0:O.left)||"0px");var W;J((z==null?void 0:(W=z.style)==null?void 0:W.top)||"0px")}};
_.bX(function(){var z=Q();if(z){var O,W,x;if(((O=_.Ke())==null?void 0:O.getPlayerState())===-1&&Math.round(((x=(W=_.Ke())==null?void 0:W.getVideoAspectRatio())!=null?x:0)*100)!==Math.round(f()/e()*100)){z.style.display="none";var k,LZ;G(f()/((LZ=(k=_.Ke())==null?void 0:k.getVideoAspectRatio())!=null?LZ:1))}}},"N29KDe");
var d=function(){l()},F;
_.lL(function(){l();var z;if(!(q==null?0:(z=q())==null?0:z.transformationMatrix))throw Error("fm");var O;(O=_.Ke())==null||O.addEventListener("onStateChange",R);if(window.ResizeObserver){if(z=H())F=new ResizeObserver(d),F.observe(z)}else window.addEventListener("resize",l);_.dB(function(){var W;(W=_.Ke())==null||W.removeEventListener("onStateChange",R);F?F.disconnect():window.removeEventListener("resize",l)})});
var V=function(){var z,O,W=(O=q==null?void 0:(z=q())==null?void 0:z.transformationMatrix)!=null?O:[];z=f();O=e();for(var x=[],k=0,LZ=-1;k<W.length;k++)k%3===0&&(LZ++,x[LZ]=[]),x[LZ].push(W[k]);W=new y6(x);x=new y6([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);x=W.multiply(x);W=new y6([[0,0],[0,0],[0,0],[0,0]]);for(k=0;k<x.getSize().width;k++){LZ=E4(x,0,k);var sb=E4(x,1,k);if(LZ===null||sb===null)throw Error("em`"+(k+1).toString());uNh(W,k,0,LZ*z);uNh(W,k,1,sb*O)}z=E4(W,0,0);k=E4(W,1,0);O=E4(W,0,1);LZ=E4(W,1,1);
if(z===null||k===null||O===null||LZ===null)throw Error("cm");x=wMz(z,k,O,LZ);sb=E4(W,3,0);W=E4(W,3,1);if(sb===null||W===null)throw Error("dm");W=wMz(z,sb,O,W);LZ=(Number((LZ*-1).toFixed(2))-Number((O*-1).toFixed(2)))/(Number(k.toFixed(2))-Number(z.toFixed(2)));sb=Math.atan(LZ)*180/Math.PI;k=LZ===Number.POSITIVE_INFINITY?-90:LZ===Number.NEGATIVE_INFINITY?90:Object.is(LZ,-0)?180:LZ===0?0:LZ>0?sb*-1:z<k?sb*-1:Math.abs(sb)+180;return"left:calc("+z+"px + "+E()+"); top:calc("+(O+"px + "+v()+"); width:")+
(x+"px; height:")+(W+"px; transform:rotate(")+(k+"deg);\n        --sticker-width:"+x+";")};
return _.p(_.g6K,{root:"#sticker-layer"},function(){return _.p("yt-overlay-sticker",{el:_.lF(L),style:V,class:"ytOverlayStickerHost"},u)})},"Bk");var eWZ=_.r(function(g){function u(){var R,H,l,d,F=(H=_.c((R=J())==null?void 0:R.command,_.YGi))==null?void 0:(l=H.item)==null?void 0:(d=l.notificationTextRenderer)==null?void 0:d.successResponseText;if(F)R=_.FJ(F),_.YJ(Q.value,"yt-open-popup-action",[R,Q.value]);else if(f())Hph(f(),Q.value);else{var V;Hph((V=J())==null?void 0:V.command,Q.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var q=g.data;var Q=_.Hk("svg"),L=_.N(_.jR(!1,void 0,"e9onLe"));g=L.next().value;var E=L.next().value,y=_.N(_.jR(!1,void 0,"ptnIQd"));L=y.next().value;var v=y.next().value,J=function(){var R;return _.c((R=q())==null?void 0:R.popUp,mNC)},f=function(){var R;
return(R=q())==null?void 0:R.command},t=function(){return _.c(f(),_.q0)!==void 0};
y=_.YH(function(){u();return!1});
var e={},G={};return _.p("svg",{"on:mouseover":_.YH(function(){t()&&E(!0);v(!0);return!1}),
"on:mouseout":_.YH(function(){E(!1);v(!1);return!1}),
"on:keydown":_.YH(function(R){R.key==="Enter"&&u();return!1}),
"on:focus":_.YH(function(){t()&&E(!0);return!1}),
"on:blur":_.YH(function(){t()&&E(!1);return!1}),
el:Q,tabindex:0,"aria-label":function(){var R;return(R=q())==null?void 0:R.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Ty("ytPlayerOverlayInteractionInteractionsSvg",(e.ytPlayerOverlayInteractionInteractionsSvgHover=g,e),(G.ytPlayerOverlayInteractionInteractionsSvgHideOutline=L,G)),role:"button","on:click":y})},"Ek");_.dL(_.r(function(g){var u=g.data;_.lL(function(){var q;if((q=u())==null?0:q.trackingParams){var Q;_.gL().graftServerVe((Q=u().trackingParams)!=null?Q:"")}});
return _.p("yt-player-overlay-interaction",null,_.p(tNp,{region:function(){var q,Q;return(q=u())==null?void 0:(Q=q.regions)==null?void 0:Q[0]}},_.p(eWZ,Object.assign({},g))))},"Dk"),"yt-player-overlay-interaction",{props:{data:_.H2}});var GUb=_.r(function(g){var u=g.data;var q=g.index;var Q=g.selectedChoice;var L=function(){var E;return _.c((E=u())==null?void 0:E.renderer,oEh)};
g={};return _.p("yt-overlay-poll-sticker-choice",{class:_.Ty("ytOverlayPollStickerChoiceHost"),style:_.xH({"--displayed-percentage":function(){var E,y,v,J;return""+Math.ceil(Number((Q==null?void 0:Q())===q()?(E=L())==null?void 0:(y=E.selected)==null?void 0:y.progressBarWidth:(v=L())==null?void 0:(J=v.unselected)==null?void 0:J.progressBarWidth)*100)}})},_.p("div",{class:_.Ty("ytOverlayPollStickerChoicePollChoice",(g.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(Q==null?void 0:Q())!==
void 0},g.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(Q==null?void 0:Q())===q()},g))},_.p("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var E;
return((E=L())==null?void 0:E.text)||""}),_.p("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(Q==null?void 0:Q())==="undefined")var E="";
else{var y,v,J,f;E=(Q==null?void 0:Q())===q()?(y=L())==null?void 0:(v=y.selected)==null?void 0:v.votePercentage:(J=L())==null?void 0:(f=J.unselected)==null?void 0:f.votePercentage}return E})))},"Fk");var $1H=_.r(function(g){var u=g.data;var q=g.enableDebuggingFeatures;var Q=_.Sy(function(E){var y,v=((y=u())==null?void 0:y.postPollStateEntityKey)||"";E=_.BC(E.entities,"postPollStateEntity",v);var J;return((J=u())==null?0:J.viewerIsOwner)?Object.assign({},E,{selectedOptionId:-1,voted:!0}):E}),L=_.Bk().resolve(_.Gy);
g={};return _.p("yt-overlay-poll-sticker",null,_.p(tNp,{region:function(){var E,y;return(E=u())==null?void 0:(y=E.region)==null?void 0:y.interactionRegion}},_.p("div",{class:_.Ty("ytOverlayPollStickerHost",(g.ytOverlayPollStickerDebugStyle=function(){return q==null?void 0:q()},g)),
style:_.xH({"--original-height":function(){var E;return""+(((E=u())==null?void 0:E.mainBodyHeight)||1)},
"--original-width":function(){var E;return""+(((E=u())==null?void 0:E.mainBodyWidth)||1)},
"--scaled-width":function(){var E;return""+(((E=u())==null?void 0:E.mainBodyWidth)||1)},
"--primary-surface":function(){var E,y;return c2f(((E=u())==null?void 0:(y=E.theme)==null?void 0:y.primarySurface)||0)},
"--raised-surface":function(){var E,y;return c2f(((E=u())==null?void 0:(y=E.theme)==null?void 0:y.raisedSurface)||0)},
"--secondary-surface":function(){var E,y;return c2f(((E=u())==null?void 0:(y=E.theme)==null?void 0:y.secondarySurface)||0)},
"--primary-text":function(){var E,y;return c2f(((E=u())==null?void 0:(y=E.theme)==null?void 0:y.primaryText)||0)},
"--secondary-text":function(){var E,y;return c2f(((E=u())==null?void 0:(y=E.theme)==null?void 0:y.secondaryText)||0)}})},_.p("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return u().questionText}," "),_.p(_.R4,{each:function(){return u().pollChoiceConfigs||[]}},function(E,y){return _.p("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.YH(function(){var v=y(),J;if((J=u())==null||!J.viewerIsOwner){var f,t;J=(f=u())==null?void 0:(t=f.pollChoiceConfigs)==null?void 0:t[v];if(t=(J==null?0:J.renderer)?_.c(J.renderer,oEh):void 0){var e;f=((e=Q())==null?void 0:e.selectedOptionId)!==v;var G;if(e=(G=f?t.selectedPollCommand:t.deselectedPollCommand)==null?void 0:G.innertubeCommand){L.resolveCommand(e);var R,H;_.CE().dispatch(_.u2("postPollStateEntity",((R=Q())==null?void 0:R.key)||"",{key:((H=Q())==null?void 0:H.key)||"",selectedOptionId:f?
v:-1,voted:f}))}}}})},_.p(GUb,{data:E,
index:y,selectedChoice:function(){var v,J;return((v=Q())==null?0:v.voted)?(J=Q())==null?void 0:J.selectedOptionId:void 0}}))}),_.p("div",{class:"ytOverlayPollStickerVoteCount"},function(){var E,y;
return((E=Q())==null?0:E.voted)&&((y=Q())==null?void 0:y.selectedOptionId)!==-1?u().postVoteCountText:u().preVoteCountText}))))},"Gk");_.dL(_.r(function(g){var u=g.data;g=_.G9(function(){var q;return _.w("enable_shorts_poll_stickers_web")?(((q=u())==null?void 0:q.stickers)||[]).filter(function(Q){return Q.pollSticker}):[]},void 0,"Cflxwb");
return _.p("yt-stickers-layer",null,_.p(_.R4,{each:g},function(q){return _.p($1H,{data:q.pollSticker,enableDebuggingFeatures:function(){var Q;return(Q=u())==null?void 0:Q.enableDebuggingFeatures}})}))},"Hk"),"yt-stickers-layer",{props:{data:_.H2}});var $X=function(){var g=_.X.apply(this,arguments)||this;g.showScrubber=!1;g.isWatchWhileMode=!1;g.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");g.enablePollStickers=_.w("enable_shorts_poll_stickers_web");g.anchoredPanelActive=!1;g.enableLivingroomLayout=_.w("reels_enable_livingroom_layout");g.enablePlayerMetadataContainer=_.w("reels_web_enable_metadata_container");g.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");g.useAspectRatio=_.w("web_use_aspect_ratio");g.isSqueezebackActive=
!1;g.smallScreenSqueezeback=!1;g.isPlayerStarted=!1;g.overlayDensity=0;g.extractOverlay=!1;g.extractActionBar=!1;g.isOverlay=!1;g.isImmersive=!1;g.isImmersiveHorizontal=!1;g.isFullscreen=!1;g.onWindowResized=function(){var u;g.set("isImmersive",((u=window.getComputedStyle(g.hostElement))==null?void 0:u.getPropertyValue("--immersive-mode-on"))==="1");g.set("isImmersiveHorizontal",g.isImmersive&&g.enableLivingroomLayout&&!g.isWatchWhileMode)};
return g};
_.A($X,_.X);_.P=$X.prototype;_.P.updateIsOverlay=function(g){this.isOverlay=g.detail.value};
_.P.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.P.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.P.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.P.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.P.onOverlayDensityChange=function(){var g=_.Tr(this.hostElement).querySelector("ytd-info-panel-container-renderer");g&&(g.set("extractOverlay",this.extractOverlay),g.set("roundedContainer",this.extractOverlay))};
_.P.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.P.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.P.ready=function(){(_.w("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"))&&(!_.w("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.o4("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.o4("reels_action_justified_content")||"flex-start")};
_.P.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}}};
_.P.setFakeLoadingButtons=function(){_.w("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Ug("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Ug("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Ug("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Ug("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Ug("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()};
_.P.setEmptyOverlayMetadata=function(){_.w("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}))};
_.z3.Object.defineProperties($X.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.infoPanel)}}});
$X.prototype.onOverlayDensityChange=$X.prototype.onOverlayDensityChange;$X.prototype.onIsActiveChanged=$X.prototype.onIsActiveChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],$X.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],$X.prototype,"ytdReduxBehavior",void 0);
_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],$X.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],$X.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],$X.prototype,"isActive",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],$X.prototype,"hidden",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],$X.prototype,"useShortsIcon",void 0);
_.Y([_.a({value:"left"}),_.K("design:type",String)],$X.prototype,"buttonTooltipPosition",void 0);_.Y([_.a({value:_.w("reels_enable_livingroom_layout")?"top":"left"}),_.K("design:type",String)],$X.prototype,"likeButtonTooltipPosition",void 0);_.Y([_.a({value:"none"}),_.K("design:type",String)],$X.prototype,"textTransform",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"showScrubber",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"isWatchWhileMode",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.infoPanel"),_.K("design:type",Object),_.K("design:paramtypes",[])],$X.prototype,"hasInfoPanel",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"enableAnchoredPanel",void 0);_.Y([_.a(),_.K("design:type",Object)],$X.prototype,"enablePollStickers",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"anchoredPanelActive",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"enableLivingroomLayout",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],$X.prototype,"enablePlayerMetadataContainer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"enableSqueezebackPanels",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"useAspectRatio",void 0);_.Y([_.a({selector:_.qDJ,reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"isSqueezebackActive",void 0);_.Y([_.a({selector:$ZK,reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"smallScreenSqueezeback",void 0);_.Y([_.a({selector:RhK}),_.K("design:type",Object)],$X.prototype,"isPlayerStarted",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"overlayDensity",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"extractOverlay",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"extractActionBar",void 0);_.Y([_.a(),_.K("design:type",Object)],$X.prototype,"isOverlay",void 0);_.Y([_.a(),_.K("design:type",Object)],$X.prototype,"isImmersive",void 0);
_.Y([_.a(),_.K("design:type",Object)],$X.prototype,"isImmersiveHorizontal",void 0);_.Y([_.a({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.K("design:type",Boolean)],$X.prototype,"isShortsImmersive",void 0);_.Y([_.a({computed:"computeButtonOverride(extractActionBar)"}),_.K("design:type",Object)],$X.prototype,"buttonOverride",void 0);
_.Y([_.a({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.K("design:type",Object)],$X.prototype,"actionBarButtonOverride",void 0);_.Y([_.a({selector:_.ry,reflectToAttribute:!0}),_.K("design:type",Object)],$X.prototype,"isFullscreen",void 0);_.Y([_.k_("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$X.prototype,"onIsActiveChanged",null);
_.Y([_.k_("extractOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$X.prototype,"onOverlayDensityChange",null);_.Y([_.fE({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],$X);
_.T($X,"ytd-reel-player-overlay-renderer",function(){if(jtE!==void 0)return jtE;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return jtE=g},{mode:1});var RWC;var RZ=function(){var g=_.X.apply(this,arguments)||this;g.videoDuration=0;g.playedTime=0;g.isActive=!1;g.JSC$22076_playerEvents=new Map;return g};
_.A(RZ,_.X);_.P=RZ.prototype;_.P.created=function(){this.JSC$22076_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22076_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.P.attached=function(){this.getPlayerAndInitializeListeners()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22076_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.zr(this,this.onPageChanged))};
_.P.getPlayerAndInitializeListeners=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return u=_.F0(),u?q.yield(u.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.zr(g,g.onPageChanged)),q.jumpTo(0));g.player=q.yieldResult;g.initializePlayerListeners();_.Wx(q)})};
_.P.onPageChanged=function(g){var u=this;return _.D(function(q){if(q.nextAddress==1)return g.detail.newPageType!=="ytd-shorts"?q.return():q.yield(_.mH().getPlayerPromise(),2);u.player=q.yieldResult;u.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.zr(u,u.onPageChanged));_.Wx(q)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22076_playerEvents)};
_.P.onVideoDataChange=function(g){var u=this;return _.D(function(q){if(!u.player||g.type!=="newdata")return q.return();u.videoDuration=_.w("web_shorts_use_progress_state_for_gapless")?u.player.getProgressState(g.playertype).seekableEnd:u.player.getDuration(g.playertype);u.playedTime=0;_.Wx(q)})};
_.P.onVideoProgress=function(g){var u=this,q,Q;return _.D(function(L){if(!u.player)return L.return();q=u.player.getPresentingPlayerType();Q=u.player.getPlayerState();u.videoDuration=_.w("web_shorts_use_progress_state_for_gapless")?u.player.getProgressState(q).seekableEnd:u.player.getDuration(q);u.playedTime=Q===0?u.videoDuration:g;_.Wx(L)})};
_.P.getPercentPlayed=function(g,u){return g?_.tL(u/g,0,1):0};
_.z3.Object.defineProperties(RZ.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 g="";return g=this.videoDuration&&this.playedTime?g+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):g+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],RZ.prototype,"componentBehavior",void 0);_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],RZ.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],RZ.prototype,"player",void 0);_.Y([_.a(),_.K("design:type",Object)],RZ.prototype,"videoDuration",void 0);_.Y([_.a(),_.K("design:type",Object)],RZ.prototype,"playedTime",void 0);_.Y([_.a(),_.K("design:type",Object)],RZ.prototype,"isActive",void 0);
_.Y([_.C("videoDuration","playedTime"),_.K("design:type",Number),_.K("design:paramtypes",[])],RZ.prototype,"percentPlayed",null);_.Y([_.C("videoDuration","playedTime"),_.K("design:type",Object),_.K("design:paramtypes",[])],RZ.prototype,"percentPlayedStyle",null);_.Y([_.C("videoDuration","isActive"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],RZ.prototype,"hideProgressBar",null);
_.T(RZ,"ytd-progress-bar-line",function(){if(RWC===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);RWC=g}g=RWC;return g},{mode:2});var w7C;_.dL(s8C,"ytm-closed-captioning-button",{props:{captionIconType:_.H2,onClick:_.iF,ariaLabel:_.H2,ariaPressed:_.H2,isOverlay:_.iF}});_.dL(_.PDE,"volume-controls",{props:{orientation:_.H2}});var wY=function(){var g=_.X.apply(this,arguments)||this;g.playerState=null;g.isMuted=!1;g.volumeControlsOrientationState="horizontal_right";g.isOverlay=!0;g.isAdsOverlay=!1;g.captionIconType=-1;g.ariaLabel="";g.overlayDensity=0;g.JSC$22079_playerEvents=new Map;g.onClosedCaptionsButtonClick=function(){g.player&&ls9(g.player)&&(g.player.toggleSubtitles(),g.updateCaptionIconType())};
return g};
_.A(wY,_.X);_.P=wY.prototype;_.P.created=function(){this.JSC$22079_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22079_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.JSC$22079_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.P.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Yq(28662);this.playPauseButtonClientVE=_.Yq(36842);this.fullscreenButtonToggleOffClientVE=_.Yq(222256);this.fullscreenButtonToggleOnClientVE=_.Yq(222257);var g=_.j_(),u=_.JJ();g&&u&&(_.w("combine_ve_grafts")?(_.xl(_.gL(),this.muteButtonClientVE,u),_.xl(_.gL(),this.playPauseButtonClientVE,u)):_.HC(g,u,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22079_playerEvents),this.player=null)};
_.P.updateCaptionIconType=function(){var g=-1,u=void 0,q=_.Ug("CLOSED_CAPTIONS_DISABLED");this.player&&ls9(this.player)&&(IsC(this.player)?(u=!0,q=_.Ug("CLOSED_CAPTIONS_ON"),g=1):(u=!1,q=_.Ug("CLOSED_CAPTIONS_OFF"),g=0));this.captionIconType=g;this.ariaPressedState=u;this.ariaLabel=q};
_.P.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.P.getPlayerAndInitializeListeners=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return u=_.F0(),u?q.yield(u.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.zr(g,g.onPageChanged)),q.jumpTo(0));g.player=q.yieldResult;g.initializePlayerListeners();_.Wx(q)})};
_.P.onPageChanged=function(g){var u=this;return _.D(function(q){if(q.nextAddress==1)return g.detail.newPageType!=="ytd-shorts"?q.return():q.yield(_.mH().getPlayerPromise(),2);u.player=q.yieldResult;u.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.zr(u,u.onPageChanged));_.Wx(q)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22079_playerEvents);this.updateCaptionIconType()};
_.P.onPlayerStateChange=function(g){this.playerState=g};
_.P.onPlayerVolumeChange=function(g){this.isMuted=g.muted};
_.P.onPlayPauseButtonClick=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.mH().getPlayerPromise(),2);u=Q.yieldResult;(q=_.j_())&&g.playPauseButtonClientVE&&_.Ip(q,g.playPauseButtonClientVE);u.getPlayerState()!==1?u.playVideo():u.pauseVideo();_.Wx(Q)})};
_.P.computePlayPauseIcon=function(g){return g===2||g===-1||g===5?"PLAY_ARROW_FILLED":"PAUSE_FILLED"};
_.P.computeFullscreenLabel=function(g){return g?_.Ug("FULLSCREEN_EXIT_LABEL"):_.Ug("FULLSCREEN_ENTER_LABEL")};
_.P.computePlayPauseLabel=function(g){return g===1||g===3?_.Ug("PLAYER_LABEL_PAUSE"):_.Ug("PLAYER_LABEL_PLAY")};
_.P.onMuteButtonClick=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(_.mH().getPlayerPromise(),2);u=Q.yieldResult;(q=_.j_())&&g.muteButtonClientVE&&_.Ip(q,g.muteButtonClientVE);u.isMuted()?u.unMute(!0):u.mute(!0);_.Wx(Q)})};
_.P.computeMuteIcon=function(g){return g?"miniplayer:volume-off":"miniplayer:volume-up"};
_.P.computeMuteLabel=function(g){return g?_.Ug("PLAYER_LABEL_UNMUTE"):_.Ug("PLAYER_LABEL_MUTE")};
_.P.onFullscreenButtonClick=function(){var g=_.j_();g&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Ip(g,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Ip(g,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();TGt()};
_.z3.Object.defineProperties(wY.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var g=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(){g.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"}}});
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],wY.prototype,"componentBehavior",void 0);_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],wY.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],wY.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"player",void 0);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"playerState",void 0);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"isMuted",void 0);
_.Y([_.a({computed:"computePlayPauseIcon(playerState)"}),_.K("design:type",String)],wY.prototype,"playPauseIcon",void 0);_.Y([_.a({computed:"computeMuteIcon(isMuted)"}),_.K("design:type",String)],wY.prototype,"muteIcon",void 0);_.Y([_.a({selector:_.ry}),_.K("design:type",Boolean)],wY.prototype,"isFullscreen",void 0);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"volumeControlsOrientationState",void 0);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"isOverlay",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wY.prototype,"isAdsOverlay",void 0);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"captionIconType",void 0);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"ariaLabel",void 0);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"ariaPressedState",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],wY.prototype,"overlayDensity",void 0);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"data",void 0);
_.Y([_.a({computed:"computeActionBarButtonOverride()"}),_.K("design:type",Object)],wY.prototype,"actionBarButtonOverride",void 0);_.Y([_.C("playerState"),_.K("design:type",Object),_.K("design:paramtypes",[])],wY.prototype,"playPauseButtonData",null);_.Y([_.C("isFullscreen"),_.K("design:type",Object),_.K("design:paramtypes",[])],wY.prototype,"fullscreenButtonData",null);_.Y([_.a(),_.K("design:type",Object)],wY.prototype,"onClosedCaptionsButtonClick",void 0);
_.Y([_.C("isFullscreen"),_.K("design:type",String),_.K("design:paramtypes",[])],wY.prototype,"fullscreenIcon",null);
_.T(wY,"ytd-shorts-player-controls",function(){if(w7C===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);w7C=g}g=w7C;return g},{mode:1});var cIp;_.dL(_.wxn,"yt-interstitial-view-model",{props:{data:_.H2}});var HM9=_.r(function(g){var u=g.data;return _.p("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.p("h1",{class:"reelWatchBreakViewModelHostTitle"},_.p(_.c2,{text:function(){return u().title}})),_.p("h2",{class:"reelWatchBreakViewModelHostBody"},_.p(_.c2,{text:function(){return u().body},
isOverlay:!0})),_.p(_.Up,{data:function(){return u().buttons}},{buttonViewModel:function(q,Q){return _.p("div",{class:function(){return Q()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.p(_.TT,{data:q.data}))}}))},"Ik");
HM9.idomCompat=!0;_.dL(HM9,"reel-watch-break-view-model",{props:{data:_.H2}});var cP=function(){return _.X.apply(this,arguments)||this};
_.A(cP,_.X);cP.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}}};
_.z3.Object.defineProperties(cP.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.c((g=this.data)==null?void 0:g.renderer,aGb)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.c((g=this.data)==null?void 0:g.renderer,FDh)}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],cP.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],cP.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cP.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.renderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cP.prototype,"isSurvey",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.renderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cP.prototype,"isInterstitialViewModel",null);_.Y([_.fE({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],cP);
_.T(cP,"ytd-reel-non-video-content-renderer",function(){if(cIp!==void 0)return cIp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return cIp=g},{mode:2});var AIK;_.dL(_.E1p,"desktop-shorts-player-controls",{});var HP=function(){var g=_.X.apply(this,arguments)||this;g.isPlayerPaused=!1;g.isPlayerStarted=!1;g.showPlayerControls=!1;g.showScrubber=!1;g.autoHideJobId=0;g.overlayType=_.o4("web_shorts_expanded_overlay_type");g.panelData=void 0;g.isWatchWhileMode=!1;g.hasError=!1;g.panelShowDelayMs=1;g.scrubberComponent={};g.isFullscreen=!1;g.shouldHideOverlay=!1;g.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");g.enablePersistentAnchoredPanel=_.w("desktop_shorts_v2_persistent_anchored_panel");g.hideWatchWhilePanel=
_.w("web_shorts_hide_watch_while_panel");g.useAspectRatio=_.w("web_use_aspect_ratio");g.isPersistentPanelActive=!1;g.anchoredPanelActive=!1;g.isShortsPipActive=!1;g.smallScreenSqueezeback=!1;g.overlayDensity=0;g.extractOverlay=!1;g.extractActionBar=!1;g.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};g.onWindowResized=function(){_.c$(g,"calculateOverlayDensity",function(){g.calculateOverlayDensity()},
100)};
return g};
_.A(HP,_.X);_.P=HP.prototype;_.P.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.P.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.P.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var g=_.Bk().resolve(_.yH);this.isWatchWhileMode&&_.Hv.addJob(function(){g.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.P.handleShowReelsCommentsOverlayCommand=function(g){g=_.c(g,jSn);this.isActive&&(g==null?0:g.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))};
_.P.updateEngagementPanelVisibility=function(g,u){g&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:u?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:g}})};
_.P.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.P.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.Bk().resolve(_.gz).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.P.handleWatchWhilePanelScrimClick=function(){var g=_.Bk().resolve(_.yH);this.activeWatchWhilePanel&&(g.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.P.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.P.configureRendererStamper=function(){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:_.w("web_enable_shorts_no_idle_job")?8:0}}};
_.P.handlePlayerClick=function(g){var u=this,q,Q;if((Q=(q=window).matchMedia)!=null&&Q.call(q,"(any-pointer: coarse)").matches||!g)this.showPlayerControls=!0,_.Hv.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Hv.addJob(function(){u.showPlayerControls=!1},0,4E3)};
_.P.isFirstReel=function(){return this.index===0};
_.P.handleMouseenter=function(){_.Hv.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.P.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.P.handleScrubberEnter=function(){this.showScrubber=!0};
_.P.handleScrubberLeave=function(){this.showScrubber=!1};
_.P.maybeLogNonDefaultAspectRatio=function(){var g;(g=this.data)!=null&&g.thumbnail&&this.isActive&&.5625!==BF9(this.data.thumbnail)&&_.T3f("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.P.calculateOverlayDensity=function(){var g=document.querySelector("#shorts-container");if(g){var u=!1,q,Q=this.playerContainer.offsetWidth,L=this.playerContainer.offsetHeight;g=g.offsetWidth/2-Q/2;g>=368?(g=1,u=q=!0):g>=72?(g=0,q=!0):(g=2,q=!1);Q>=600&&L>=840?g=1:window.innerWidth<=599&&(g=2,q=u=!1);this.isPersistentPanelActive&&(g=0,u=!1);this.extractActionBar=q;this.overlayDensity=g;this.extractOverlay=u;var E;(E=this.onOverlayDensityChanged)==null||E.call(this,this.index,this.overlayDensity,
this.extractOverlay,this.extractActionBar)}};
_.P.onOverlayDensityChange=function(){var g;(g=this.onOverlayDensityChanged)==null||g.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(g=_.Tr(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))g.set("overlayDensity",this.overlayDensity),g.set("extractOverlay",this.extractOverlay),g.set("extractActionBar",this.extractActionBar);if(g=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))g.overlayDensity=this.overlayDensity,g.extractOverlay=
this.extractOverlay,g.extractActionBar=this.extractActionBar};
_.P.isVideoContent=function(g){_.Bk().resolve(_.gz);return!!_.c(g,_.g$)};
_.P.isNonVideoContent=function(g){_.Bk().resolve(_.gz);return!!_.c(g,_.M4)};
_.P.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.z3.Object.defineProperties(HP.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.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 g;return!this.isActive||!this.isPlayerStarted||(g=this.data)!=null&&g.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var g;if(((g=this.data)==null?0:g.command)&&this.isVideoContent(this.data.command)){var u,q;if(((u=this.data)==null?0:u.adsOverlay)&&Object.keys((q=this.data)==null?void 0:q.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var Q,L;if(((Q=this.data)==null?0:Q.reelPlayerOverlayRenderer)&&Object.keys((L=this.data)==null?void 0:L.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
HP.prototype.onOverlayDensityChange=HP.prototype.onOverlayDensityChange;HP.prototype.calculateOverlayDensity=HP.prototype.calculateOverlayDensity;HP.prototype.maybeLogNonDefaultAspectRatio=HP.prototype.maybeLogNonDefaultAspectRatio;HP.prototype.onEngagementPanelsChanged=HP.prototype.onEngagementPanelsChanged;HP.prototype.onScrubberDataChange=HP.prototype.onScrubberDataChange;HP.prototype.updateShouldHideOverlay=HP.prototype.updateShouldHideOverlay;
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],HP.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],HP.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],HP.prototype,"index",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],HP.prototype,"isActive",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],HP.prototype,"isHiddenInDom",void 0);_.Y([_.a(),_.K("design:type",Object)],HP.prototype,"isPlayerPaused",void 0);_.Y([_.a({selector:RhK}),_.K("design:type",Object)],HP.prototype,"isPlayerStarted",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"showPlayerControls",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"showScrubber",void 0);_.Y([_.a(),_.K("design:type",Object)],HP.prototype,"autoHideJobId",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"overlayType",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],HP.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],HP.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],HP.prototype,"watchWhileEngagementPanels",void 0);_.Y([_.a(),_.K("design:type",Object)],HP.prototype,"panelData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"isWatchWhileMode",void 0);_.Y([_.a(),_.K("design:type",String)],HP.prototype,"activeWatchWhilePanel",void 0);_.Y([_.a(),_.K("design:type",Object)],HP.prototype,"hasError",void 0);_.Y([_.a(),_.K("design:type",Object)],HP.prototype,"panelShowDelayMs",void 0);
_.Y([_.a(),_.K("design:type",Object)],HP.prototype,"scrubberComponent",void 0);_.Y([_.a({selector:_.ry,reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"isFullscreen",void 0);_.Y([_.a(),_.K("design:type",Object)],HP.prototype,"shouldHideOverlay",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"enableAnchoredPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"enablePersistentAnchoredPanel",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"hideWatchWhilePanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"useAspectRatio",void 0);_.Y([_.a({selector:_.qDJ,reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"isPersistentPanelActive",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"anchoredPanelActive",void 0);
_.Y([_.a({selector:_.WY,reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"isShortsPipActive",void 0);_.Y([_.a({selector:$ZK,reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"smallScreenSqueezeback",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data.adsOverlay"),_.K("design:type",Object),_.K("design:paramtypes",[])],HP.prototype,"isAdsOverlay",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"overlayDensity",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"extractOverlay",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],HP.prototype,"extractActionBar",void 0);_.Y([_.a(),_.K("design:type",Function)],HP.prototype,"onOverlayDensityChanged",void 0);_.Y([_.a(),_.C("isActive","hasError","isPlayerStarted"),_.K("design:type",Object),_.K("design:paramtypes",[])],HP.prototype,"shouldRenderPlayerElements",null);
_.Y([_.a(),_.C("isActive","isWatchWhileMode"),_.K("design:type",Object),_.K("design:paramtypes",[])],HP.prototype,"watchWhileOrPersistentActive",null);_.Y([_.k_("isActive","hasError","showingExpandedOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HP.prototype,"updateShouldHideOverlay",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("isActive","isPlayerStarted","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],HP.prototype,"shouldRenderScrubber",null);_.Y([_.k_("shouldRenderScrubber"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HP.prototype,"onScrubberDataChange",null);_.Y([_.C("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],HP.prototype,"overlayComponent",null);
_.Y([_.k_("watchWhileEngagementPanels"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HP.prototype,"onEngagementPanelsChanged",null);_.Y([_.oE("#player-container"),_.K("design:type",HTMLElement)],HP.prototype,"playerContainer",void 0);_.Y([_.oE("#cinematic-container"),_.K("design:type",HTMLElement)],HP.prototype,"cinematicContainer",void 0);
_.Y([_.k_("isPersistentPanelActive","data.thumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HP.prototype,"maybeLogNonDefaultAspectRatio",null);_.Y([_.k_("isPersistentPanelActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HP.prototype,"calculateOverlayDensity",null);
_.Y([_.k_("overlayDensity","extractOverlay","extractActionBar"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HP.prototype,"onOverlayDensityChange",null);_.Y([_.fE({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],HP);
_.T(HP,"ytd-reel-video-renderer",function(){if(AIK!==void 0)return AIK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return AIK=g},{mode:2});var Ac=function(){var g=_.X.apply(this,arguments)||this;g.isPreviousPageShorts=!1;g.index=0;g.delayedActiveIndex=0;g.playablePreviousIndex=null;g.isPlayerPaused=!1;g.isPlayerStarted=!1;g.intersectionObserverThreshold=.6;g.fitToVisibleBounds=!1;g.pageSubtype="shorts";g.enablePreviousContinuation=_.w("shorts_in_playlists_web");g.shortsPipEnabled=_.w("web_shorts_pip");g.isDark=document.documentElement.hasAttribute("dark");g.shortsViewTransitions=_.w("web_shorts_view_transitions");g.isFullscreen=!1;g.isShortsPipActive=
!1;g.buttonOverride={iconPosition:"icon-only",size:"XL"};g.anchoredPanelActive=!1;g.isActive=!1;g.smallScreenPersistentPanel=!1;g.isPersistentPanelActive=!1;g.smallScreenSqueezeBack=!1;g.enableScrollIntoViewCenter=_.w("web_scroll_into_view_center");g.extractOverlay=!1;g.useAspectRatio=_.w("web_use_aspect_ratio");g.enableShortsSequenceRefactorUnify=_.w("web_enable_shorts_sequence_refactor_unify");g.continuationRequestPending=!1;g.carouselContainers=[];g.isShortsInitialized=!1;g.shortsContentList=[];
g.hasDataUpdated=!1;g.playerInPosition=!1;g.hidePreviousButtonImmediately=!1;g.showPreviousButtonImmediately=!1;g.endOfNextContinuation=!1;g.currentPlayerIndex=0;g.nextReelVe=_.Yq(56921);g.prevReelVe=_.Yq(56922);g.loopToggleOffVe=_.Yq(198013);g.loopToggleOnVe=_.Yq(198014);g.ambientModeToggleVe=_.Yq(227860);g.reelPlayerPausedStateRendererVe=_.Yq(141313);g.storedPlaybackSpeed=null;g.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"};g.onOverlayDensityChanged=function(u,q,Q,L){u=g.getActiveReelVideo(u);g.extractOverlay=!!Q;u==null||u.setAttribute("overlay-density",String(q));Q===void 0||u!=null&&u.toggleAttribute("extract-overlay",Q);L===void 0||u!=null&&u.toggleAttribute("extract-action-bar",L)};
return g};
_.A(Ac,_.X);_.P=Ac.prototype;_.P.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.P.setShortsContentList=function(){var g=this;if(this.enableShortsSequenceRefactorUnify){var u=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.na(this.shortsContentList)):[],q=this.firstShortsData;if(q){var Q=this.reelWatchSequenceResponse;(q=this.shortsController==null?void 0:W$p(u,q,Q!=null?Q:null))&&q.newContentList&&(q=q.newContentList,q.length!==u.length&&(this.shortsContentList=q,_.xt(this,function(){g.observeShorts()})))}}};
_.P.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.P.onResize=function(){var g=_.bR(),u=g.dispatch,q=this.calculateIsSmallWidth();u.call(g,_.rF({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:q}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.P.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}}};
_.P.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var g=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,u=g,q=0;g<250&&(u=g+this.shortsInnerContainer.clientWidth,q=24);_.x_(this.hostElement,{"--ytd-shorts-header-width":u+"px","--ytd-shorts-top-spacing":q+"px"})}};
_.P.isFirstShorts=function(g){return g&&!this.enableShortsSequenceRefactorUnify?this.index===-g.length:this.index===0};
_.P.isActiveReel=function(g,u,q){q&&(u=this.calculatePrevIndex(u,q));return g===u};
_.P.onFullscreenChange=function(){_.w("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.Bk().resolve(_.RO).close(!0))};
_.P.engagementPanelsChanged=function(){var g;this.watchWhileEngagementPanels=(g=this.data)==null?void 0:g.engagementPanels};
_.P.unregisterPanels=function(){var g=_.Bk().resolve(_.yH);if(this.watchWhileEngagementPanels)for(var u=_.N(this.watchWhileEngagementPanels),q=u.next();!q.done;q=u.next()){var Q=q.value,L=void 0,E=void 0;q=(L=Q.engagementPanelSectionListRenderer)==null?void 0:(E=L.identifier)==null?void 0:E.tag;Q=this.getPanelIdentifier(Q.engagementPanelSectionListRenderer);g&&(q&&g.panelMap.delete(q),Q&&_.w("web_shorts_panel_caching_bugfix")&&(L=q=void 0,(L=(q=g).unregisterPanelContent)==null||L.call(q,Q)))}};
_.P.isVideoContent=function(g){return this.isVideoContentCommand(g==null?void 0:g.command)};
_.P.getActiveReelVideo=function(g){return _.Tr(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+g+'"]')};
_.P.calculatePrevIndex=function(g,u){return u?g-((u==null?void 0:u.length)||0):-1};
_.P.onKeydown=function(g){var u=_.C6(g)||[];if(!pMx(u))if(g.code==="ArrowUp")g.preventDefault(),this.handlePrevButtonClick();else if(g.code==="ArrowDown")g.preventDefault(),this.handleNextButtonClick();else if(g.code==="KeyM")this.toggleMuteUnmuteVideo();else if(g.code==="KeyK"||g.code==="Space")this.togglePlayPauseVideo();else if((g.code==="KeyA"||g.code==="ArrowLeft")&&_.w("web_shorts_keyboard_enable_seek_shortcuts")){var q;(q=this.player)==null||q.seekBy(-5)}else if((g.code==="KeyD"||g.code===
"ArrowRight")&&_.w("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var Q;(Q=this.player)==null||Q.seekBy(5)}};
_.P.onServiceRequestCompleted=function(g,u){g=u.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,g.continuationEndpoint||g.prevContinuationEndpoint)this.reelWatchSequenceResponse=g}else g.continuationEndpoint&&g.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:g.entries,continuationEndpoint:g.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=g):g.prevContinuationEndpoint&&
g.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:g.prevEntries,prevContinuationEndpoint:g.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.P.handleEngagementPanelVisibilityChanged=function(g,u){var q=_.Bk().resolve(_.yH);if(g&&q){var Q=this.getPanelIdentifier(g);if(u==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==Q){q.hidePanel({identifier:this.activePanel});var L;this.activePanel=((L=g.identifier)==null?void 0:L.tag)||g.panelIdentifier}else this.isPersistentPanelActive=!0,_.bR().dispatch(VeZ(!0)),this.anchoredPanelActive=!0,this.activePanel=Q;else u==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===Q&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.bR().dispatch(VeZ(!1)))}};
_.P.handlePanelScrimClick=function(){var g=_.Bk().resolve(_.yH);this.activePanel&&(g.hidePanel({identifier:this.activePanel}),_.bR().dispatch(VeZ(!1)))};
_.P.getShortsLoopSetting=function(){var g,u,q,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:return _.w("kevlar_shorts_auto_advance")?E.yield(_.yN.getInstance(),2):E.return(!0);case 2:return(g=E.yieldResult)?E.yield(g.get("sfvles"),3):E.return(!0);case 3:return q=(u=E.yieldResult)!=null?u:!1,E.yield(g.get("sfvle"),4);case 4:return L=(Q=E.yieldResult)!=null?Q:!0,q?E.return(L):E.return(!0)}})};
_.P.handleSignalActionToggleLoopShortsOff=function(){var g=this,u,q,Q;return _.D(function(L){switch(L.nextAddress){case 1:if(!g.player)return L.return();g.player.setLoopVideo(!1);u=_.gL();_.zZ(u,g.loopToggleOffVe);return L.yield(_.yN.getInstance(),2);case 2:return(q=L.yieldResult)?L.yield(q.set("sfvle",!1),3):L.return();case 3:return L.yield(q.set("sfvles",!0),4);case 4:Q=_.qf(),_.QX(0,203,!1),_.QX(0,204,!0),Q.save(),_.Wx(L)}})};
_.P.handleSignalActionToggleLoopShortsOn=function(){var g=this,u,q,Q;return _.D(function(L){switch(L.nextAddress){case 1:if(!g.player)return L.return();g.player.setLoopVideo(!0);u=_.gL();_.zZ(u,g.loopToggleOnVe);return L.yield(_.yN.getInstance(),2);case 2:return(q=L.yieldResult)?L.yield(q.set("sfvle",!0),3):L.return();case 3:return L.yield(q.set("sfvles",!0),4);case 4:Q=_.qf(),_.QX(0,203,!0),_.QX(0,204,!0),Q.save(),_.Wx(L)}})};
_.P.handleSignalActionToggleCinematicShortsOn=function(){Fch(!0);var g;(g=this.JSC$22104_cinematicController)==null||ljt(g,!0);_.zZ(_.gL(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.P.handleSignalActionToggleCinematicShortsOff=function(){Fch(!1);var g;(g=this.JSC$22104_cinematicController)==null||ljt(g,!1);_.zZ(_.gL(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.P.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.P.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.P.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var g=this.overlayContainer.querySelector("#experiment-overlay");g&&_.Hv.addLowPriorityJob(function(){g.style.display="unset"},100)}else if(this.overlayContainer){var u;
((u=this.playerElement.getPlayer())==null?void 0:u.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.P.getCurrentShort=function(){if(this.currentEndpoint){var g=this.currentEndpoint;if(this.isNonVideoContentCommand(g)){var u=_.c(g,_.M4);return{reelNonVideoContentRenderer:_.c(u==null?void 0:u.renderer,_.RV8),command:g}}if(this.data){var q;u=(q=_.c(this.currentEndpoint,_.g$))==null?void 0:q.thumbnail;var Q;q=(Q=this.data.overlay)==null?void 0:Q.reelPlayerOverlayRenderer;_.Bk().resolve(_.gz);g=this.data;var L,E;Q=(L=g.overlay)==null?void 0:(E=L.shortsAdsRenderer)==null?void 0:E.adSlots;if(Q!==void 0)Q.length===
0?(_.HY("Shorts ads returned no ad slots."),g=void 0):(Q.length>1&&_.HY("Shorts ads has more than one ad slots."),g=_.c(Q[0],_.ooZ));else{var y,v;g=_.c((y=g.overlay)==null?void 0:(v=y.shortsAdsRenderer)==null?void 0:v.overlay,_.ooZ)}y=g;g=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.c(this.currentEndpoint,_.g$),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var J;return{reelPlayerOverlayRenderer:q,thumbnail:u,command:g,adsOverlay:y,
videoId:(J=_.c(this.currentEndpoint,_.g$))==null?void 0:J.videoId}}}};
_.P.created=function(){var g=this;this.scrollToVideoThrottle=new _.Kr(function(u,q){q=q===void 0?"smooth":q;var Q;(Q=g.getActiveReelVideo(u))==null||Q.scrollIntoView({behavior:q,block:"nearest",inline:g.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.Bk().resolve(_.gz);this.maybeCreateIntersectionObserver()};
_.P.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.P.attached=function(){var g=this;_.Bk().resolve(_.gz).registerRootElement(this);this.pageScrollElement=_.Tr(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.zr(this,this.processResetAction));_.w("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){g.maybeCreateIntersectionObserver();g.scrollToVideoThrottle.fire(g.activeIndex,"instant");g.shortsContainer.style.overflowY=
"scroll"}))};
_.P.calculateSqueezebackPanelSize=function(){var g=this,u=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Hv.addLowPriorityJob(function(){u<360?(g.hostElement.style.setProperty("--anchored-panel-width","480px"),_.bR().dispatch(XNh(!0))):(g.hostElement.style.setProperty("--anchored-panel-width",Math.min(u,480)+"px"),_.bR().dispatch(XNh(!1)))})};
_.P.detached=function(){var g=_.Bk().resolve(_.gz);g.rootElement=void 0;var u;(u=g.unsubscribeFromStore)==null||u.call(g);g.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.zr(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.P.onResizeFinished=function(g,u){var q=this,Q=new ResizeObserver(function(){q.shortsContainer.style.overflowY="hidden";_.Hv.addLowPriorityJob(function(){u()},100)});
Q.observe(g);return Q};
_.P.resetDocumentScrollTop=function(){var g,u;if((g=document)==null?0:(u=g.scrollingElement)==null?0:u.scrollTop)document.scrollingElement.scrollTop=0};
_.P.loadPage_=function(g){var u=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),g){var q;if((q=_.c(this.currentEndpoint,_.g$))==null?0:q.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=g;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){u.isPlayerStarted&&
(u.handleOnPlaybackCommand(),u.afterPlayerStarted=function(){})};
this.registerPanel(g)}};
_.P.afterPlayerStarted=function(){};
_.P.handleOnPlaybackCommand=function(){if(_.w("web_shorts_comment_stickers")&&this.isPlayerStarted){var g,u=(g=_.c(this.currentEndpoint,_.g$))==null?void 0:g.onPlaybackCommand;u&&this.ytComponentBehavior.resolveCommand(u)}};
_.P.maybeCreateIntersectionObserver=function(){var g=this,u=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==u){this.intersectionObserverThreshold=u;var q={rootMargin:"0px",threshold:u},Q;(Q=this.intersectionObserver)==null||Q.disconnect();this.intersectionObserver=new IntersectionObserver(function(L){L=_.N(L);for(var E=L.next();!E.done;E=L.next())if(E=E.value,E.intersectionRatio>u){E=Number(E.target.id);if(isNaN(E))break;if(E===g.index)break;
_.OIq();g.loadVideo(E);_.tt("r_vtc")}},q);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.P.observeShorts=function(){var g,u,q,Q=this.enableShortsSequenceRefactorUnify?((g=this.shortsContentList)==null?void 0:g.length)||0:(((u=this.shortsProcessedPrevSequence)==null?void 0:u.length)||0)+(((q=this.shortsProcessedSequence)==null?void 0:q.length)||0);if(this.carouselContainers.length<Q&&(this.carouselContainers=[].concat(_.na(_.Tr(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(g=_.N(this.carouselContainers),u=g.next();!u.done;u=
g.next())u=u.value,q=void 0,(q=this.intersectionObserver)==null||q.observe(u);if(!this.enableShortsSequenceRefactorUnify)for(g=_.N(this.carouselContainers),u=g.next();!u.done;u=g.next())u=u.value,q=void 0,(q=this.intersectionObserver)==null||q.observe(u)};
_.P.initCsi=function(){JJb("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var g={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"}},u,q;if((u=this.playerData)==null?0:(q=u.cacheMetadata)==null?0:q.isCacheHit)g.isCacheHit=!0;var Q;if(u=(Q=_.c(this.currentEndpoint,_.g$))==null?void 0:
Q.prefetchTaskId)g.prefetchInfo={taskId:u};_.pW(g)};
_.P.isAd=function(){var g,u;return!!((g=_.c(this.currentEndpoint,_.g$))==null?0:(u=g.adClientParams)==null?0:u.isAd)};
_.P.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.P.getPlayerContainer=function(){var g;return(g=_.Tr(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:g.playerContainer};
_.P.onPlayerStateChange=function(g){var u=this;this.isPlayerPaused=g===2;g!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?g===1&&this.index===0&&(this.isPlayerStarted||_.bR().dispatch(rmK(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.bR().dispatch(rmK(!0)));this.player&&!this.player.getLoopVideo()&&_.Hv.addLowPriorityJob(function(){u.getShortsLoopSetting().then(function(q){var Q;(Q=u.player)==null||Q.setLoopVideo(q)})});
this.isPlayerPaused&&_.w("web_shorts_paused_state_logging")&&_.Z0(_.j_(),[this.reelPlayerPausedStateRendererVe])};
_.P.isShortPlayable=function(){if(_.w("kevlar_playable_short_killswitch"))return!0;var g;return(g=this.playerData)!=null&&g.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.P.setNormalPlaybackSpeed=function(){var g=this,u,q;return _.D(function(Q){if(Q.nextAddress==1)return Q.yield(g.getPlayer().getPlayerPromise(),2);u=Q.yieldResult;q=u.getPlaybackRate();q!==1&&(g.storedPlaybackSpeed=q,u.setPlaybackRate(1));_.Wx(Q)})};
_.P.restorePlaybackSpeed=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1)return g.storedPlaybackSpeed===null?q.jumpTo(0):q.yield(g.getPlayer().getPlayerPromise(),3);u=q.yieldResult;u.setPlaybackRate(g.storedPlaybackSpeed);g.storedPlaybackSpeed=null;_.Wx(q)})};
_.P.playerDataChanged=function(){var g=this,u,q,Q,L,E,y,v,J,f;return _.D(function(t){if(t.nextAddress==1){u=g.getPlayer();g.enableShortsSequenceRefactorUnify||(q=g.intersectionObserver)==null||q.disconnect();if(g.playerData){if(((Q=g.playerData.videoDetails)==null?void 0:Q.videoId)!==((L=u.getPlayer())==null?void 0:L.getVideoData().video_id)){E={};if(y=_.c(g.currentEndpoint,_.g$))E.watch_endpoint=y,y.endTimeSeconds&&(E.end=y.endTimeSeconds);u.loadVideoWithPlayerResponse(g.playerData,E)}}else return t.return();
return g.player?t.jumpTo(2):t.yield(u.getPlayerPromise(),3)}t.nextAddress!=2&&(g.player=t.yieldResult,g.JSC$22104_playerStateChangeListener=g.onPlayerStateChange.bind(g),g.player.addEventListener("onStateChange",g.JSC$22104_playerStateChangeListener),_.w("kevlar_client_enable_shorts_player_bootstrap")&&_.w_(),g.scrollToVideoThrottle.fire(g.index),g.movePlayerToVideo(g.index),_.Hv.addLowPriorityJob(function(){g.getShortsLoopSetting().then(function(e){var G;(G=g.player)==null||G.setLoopVideo(e)})}),
_.ewo.resolve(g.player),g.player.syncVolume(),g.getPlayer().focusOnPlayer());
_.Hv.addLowPriorityJob(function(){g.observeShorts()},100);
v=g.player.getPlayerState(g.player.getPresentingPlayerType());v!==1||g.isPlayerStarted||_.bR().dispatch(rmK(!0));g.updateBackNavContainerWidth();J=_.c(g.currentEndpoint,_.g$);((f=J)==null?0:f.startTimeSeconds)&&g.player.seekTo(J.startTimeSeconds);if(g.JSC$22104_cinematicController||g.cinematicsInitializeJobId)return t.return();g.cinematicsInitializeJobId=_.Hv.addLowPriorityJob(function(){g.initCinematicController();g.cinematicsInitializeJobId=void 0});
_.Wx(t)})};
_.P.onShortUndoDismiss=function(){var g=this,u=Xjx().pop();u!==void 0&&(_.xt(this,function(){g.showCardWithIndex(u)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.P.onShortsDismiss=function(g){if(g=g.detail.reelDismissalActionRenderer)(g=_.c(g.onDismissalCompletionRenderer,UoE))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:g}}}),this.scrollAndDismissCard()};
_.P.processReelNonVideoContentDismissalCommand=function(g){var u=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);g=_.c(g,J8p);this.activeDimissalTimeout=setTimeout(function(){u.scrollAndDismissCard()},Number(g==null?void 0:g.delayMs))};
_.P.scrollAndDismissCard=function(){var g=this,u=this.index;Xjx().push(u);_.xt(this,function(){var q=g.getPlayableNextIndex();q!==null&&(g.hideCardWithIndex(u),g.scrollToVideoThrottle.fire(q))})};
_.P.hideCardWithIndex=function(g){if(g=this.getActiveReelVideo(g))g.hidden=!0};
_.P.showCardWithIndex=function(g){if(g=this.getActiveReelVideo(g))g.hidden=!1};
_.P.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.P.activeChanged=function(g){_.bR().dispatch(_.rF({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:g}}));if(g)document.addEventListener("keydown",_.zr(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var u;(u=this.player)==null||u.sendAbandonmentPing()}var q;(q=this.player)==null||q.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.zr(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.P.graftClientVisualElements=function(){if(this.data){var g=_.gL();_.fIo(g,_.BX({response:this.reelWatchSequenceResponse}));_.xl(g,this.nextReelVe);_.xl(g,this.prevReelVe);_.w("kevlar_shorts_auto_advance")&&(_.xl(g,this.loopToggleOffVe),_.xl(g,this.loopToggleOnVe));_.xl(g,this.ambientModeToggleVe);_.Z0(_.j_(),[this.nextReelVe,this.prevReelVe]);_.w("web_shorts_paused_state_logging")&&_.xl(g,this.reelPlayerPausedStateRendererVe)}};
_.P.graftNvcRenderer=function(){var g,u,q,Q,L,E,y=this.enableShortsSequenceRefactorUnify?(g=this.shortsContentList)==null?void 0:(u=g[this.index])==null?void 0:u.command:this.index<0?(q=this.shortsProcessedPrevSequence)==null?void 0:(Q=q[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:Q.command:(L=this.shortsProcessedSequence)==null?void 0:(E=L[this.index])==null?void 0:E.command;if(y&&this.isNonVideoContentCommand(y)){g=_.c(y,_.M4);var v,J;(g=(v=_.c(g==null?void 0:g.renderer,_.RV8))==
null?void 0:(J=v.loggingDirectives)==null?void 0:J.trackingParams)&&_.gL().graftServerVe(g)}};
_.P.setActiveIndex=function(){_.Bk().resolve(_.gz).setActiveIndex(this.index)};
_.P.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.P.lazyUpdateMiniplayerData=function(){var g=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Hv.addLowPriorityJob(function(){g.updateMiniplayerData();g.updateMiniplayerDataJobId=void 0}))};
_.P.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Hv.cancelJob(this.updateMiniplayerDataJobId)};
_.P.updateMiniplayerData=function(){var g,u,q,Q=_.Bk().resolve(_.RO),L={shortsData:this.getCurrentShort(),previousButtonDisabled:!((g=this.prevButtonData)==null||!g.isDisabled),nextButtonDisabled:!((u=this.nextButtonData)==null||!u.isDisabled),playabilityStatus:(q=this.playerData)==null?void 0:q.playabilityStatus};_.lK(Q,L)};
_.P.resetPlayerLocation=function(){var g=this.getPlayer();this.initialPlayerContainer&&g.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.P.movePlayerToVideo=function(g,u){var q=this;u=u===void 0?!0:u;var Q=this.getActiveReelVideo(g),L=this.getPlayer();if(Q){this.overlayContainer?Q.appendChild(this.overlayContainer):(this.overlayContainer=_.Tr(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,Q.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||L.appendTo(this.overlayContainer.playerContainer,void 0,!0));var E;(E=this.player)==null||E.setSize(NaN,NaN);this.isActive||_.Hv.addJob(function(){q.isActive=
!0},0);
L.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.w("reels_web_disable_rtr_tick")||_.w("reels_web_use_pbs_first_shorts")&&g===0||_.fW("r_tr");this.currentPlayerIndex=g;Q.appendChild(this.errorScreenContainer);var y;(y=this.JSC$22104_cinematicController)==null||bLz(y)}else u?_.Hv.addLowPriorityJob(function(){q.movePlayerToVideo(q.index,!1)}):Math.random()<=_.S8("web_shorts_error_logging_threshold")&&_.lD(new _.Ji("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:u,
index:g}))};
_.P.getAspectRatio=function(g){return(g==null?0:g.thumbnail)&&BF9(g.thumbnail)?"--ytd-shorts-player-ratio: "+BF9(g.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.P.getBackgroundImage=function(g){if(g!=null&&g.thumbnail)return(g=_.my(g.thumbnail.thumbnails))?'background-image:url("'+g+'");':"background-color:black;"};
_.P.getBackgroundImageUrl=function(g){if(g!=null&&g.thumbnail)return _.my(g.thumbnail.thumbnails)};
_.P.onPersistentPanelActiveChanged=function(){var g,u=(g=_.c(this.currentEndpoint,_.g$))==null?void 0:g.thumbnail;if(u&&BF9(u)!==.5625){var q;(q=this.player)==null||q.setSize(NaN,NaN)}};
_.P.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.P.moveCinematicsToVideo=function(){var g=_.Tr(this.hostElement).querySelector("ytd-reel-video-renderer");(g==null?0:g.cinematicContainer)&&g.cinematicContainer!==this.shortsCinematicContainer.parentElement&&g.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.P.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.P.updatePrevButtonData=function(){var g=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);g?this.prevButtonData=g=Object.assign({},g,{accessibility:{label:_.Ug("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.Ug("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=g=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.P.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.P.updateNextButtonData=function(){var g=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);g&&(this.nextButtonData=g=Object.assign({},g,{accessibility:{label:_.Ug("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.Ug("NEXT_VIDEO_LABEL")||""}))};
_.P.getPlayablePreviousIndex=function(){for(var g,u=this.index-1;u>=-(((g=this.prevShortsSequence)==null?void 0:g.length)||0);u--)if(!Xjx().includes(u))return u;return null};
_.P.getIndexInSequence=function(g,u){return g.findIndex(function(q){var Q;return((Q=_.c(q.command,_.g$))==null?void 0:Q.videoId)===u})};
_.P.handlePrevButtonClick=function(g){var u=this,q,Q;return _.D(function(L){q=u.getPlayablePreviousIndex();if(q===null)return L.return();u.gestureType=((Q=g)==null?void 0:Q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";q===0&&(u.hidePreviousButtonImmediately=!0);if(u.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){u.scrollToVideoThrottle.fire(q,"auto")}),L.return();
u.scrollToVideoThrottle.fire(q);_.Wx(L)})};
_.P.getPlayableNextIndex=function(){for(var g,u,q=this.index+1;q<(this.enableShortsSequenceRefactorUnify?(g=this.shortsContentList)==null?void 0:g.length:((u=this.shortsProcessedSequence)==null?void 0:u.length)||0);q++)if(!Xjx().includes(q))return q;return null};
_.P.handleNextButtonClick=function(g,u){var q=this,Q,L;return _.D(function(E){Q=q.getPlayableNextIndex();if(Q===null)return E.return();Q===1&&(q.showPreviousButtonImmediately=!0);q.gestureType=((L=g)==null?void 0:L.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";u&&(q.gestureType=u);if(q.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){q.scrollToVideoThrottle.fire(Q,"auto")}),E.return();
q.scrollToVideoThrottle.fire(Q);_.Wx(E)})};
_.P.handleReelNavigateCommand=function(g,u,q){(g=_.c(g,pQp))&&u&&g.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(q)};
_.P.loadVideo=function(g,u){var q=this;u=u===void 0?!1:u;if(g!==this.currentPlayerIndex){_.bR().dispatch(rmK(!1));if(this.isAd()&&!u){var Q;(Q=this.player)==null||Q.notifyShortsAdSwipeEvent()}var L;(L=this.JSC$22104_cinematicController)==null||CIn(L);var E;(E=this.JSC$22104_cinematicController)==null||iLx(E);Q=g>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(Q));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var y,v,J,f,t,e;u=this.enableShortsSequenceRefactorUnify?(y=this.shortsContentList)==null?void 0:(v=y[g])==null?void 0:v.command:g<0?(J=this.shortsProcessedPrevSequence)==null?void 0:(f=J[this.shortsProcessedPrevSequence.length+g])==null?void 0:f.command:(t=this.shortsProcessedSequence)==null?void 0:(e=t[g])==null?void 0:e.command;this.index=g;this.gestureType||(this.gestureType=Q?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");u&&this.isVideoContentCommand(u)&&(this.ytComponentBehavior.resolveCommand(u,{form:{createScreenConfig:{clickedVisualElement:Q?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(u&&this.isNonVideoContentCommand(u)){this.currentEndpoint=u;this.data=void 0;y=_.gL();v=_.c(u,_.M4);var G,R;(v=(G=_.c(v==null?void 0:v.renderer,_.RV8))==null?void 0:(R=G.screenLoggingData)==null?void 0:R.screenVeType)&&_.Kq(y,
v);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(G=this.getActiveReelVideo(g))&&G.appendChild(this.overlayContainer)}var H,l;G=this.enableShortsSequenceRefactorUnify?((H=this.shortsContentList)==null?NaN:H.length)-3<=g:((l=this.reelWatchSequenceResponse)==null?void 0:l.entries)&&g===this.reelWatchSequenceResponse.entries.length-1;var d;if(((d=this.reelWatchSequenceResponse)==null?0:d.continuationEndpoint)&&G){var F,V,z={contentPlaybackContext:_.K3({},(V=
_.c((F=this.currentEndpoint)==null?void 0:F.commandMetadata,_.S_))==null?void 0:V.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.Hv.addJob(function(){q.ytComponentBehavior.resolveCommand(q.reelWatchSequenceResponse.continuationEndpoint,{form:z})},8),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:z})}var O,W;
g=this.enableShortsSequenceRefactorUnify?!1:g===-(((O=this.reelWatchSequenceResponse)==null?void 0:(W=O.prevEntries)==null?void 0:W.length)||0);var x,k;((x=this.reelWatchSequenceResponse)==null?0:x.prevContinuationEndpoint)&&((k=this.reelWatchSequenceResponse)==null?0:k.prevEntries)&&g&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.P.setMiniplayerPreview=function(g){g=(g===void 0?0:g)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var u,q,Q,L,E=_.Bk().resolve(_.RO),y={shortsData:void 0,shortsPreviewThumbnail:g?this.enableShortsSequenceRefactorUnify?(u=this.shortsContentList)==null?void 0:(q=u[g])==null?void 0:q.thumbnail:(Q=this.shortsProcessedSequence)==null?void 0:(L=Q[g])==null?void 0:L.thumbnail:void 0};_.lK(E,y)};
_.P.updateTitle=function(g){var u,q;g=(g==null?0:g.adSlots)?"":(q=g==null?void 0:(u=g.videoDetails)==null?void 0:u.title)!=null?q:"";_.hJ(this.hostElement,"yt-update-title",g)};
_.P.registerPanel=function(g){var u=_.Bk().resolve(_.yH);if(u){g=_.N(g.engagementPanels||[]);for(var q=g.next();!q.done;q=g.next()){q=q.value;var Q=this.getPanelIdentifier(q.engagementPanelSectionListRenderer),L=void 0,E=void 0;(E=(L=u).registerPanelContent)==null||E.call(L,Q,q)}}};
_.P.getPanelIdentifier=function(g){var u;return(g==null?void 0:(u=g.identifier)==null?void 0:u.tag)||(g==null?void 0:g.panelIdentifier)||(g==null?void 0:g.targetId)};
_.P.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.bR().dispatch(rmK(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.bR().dispatch(VeZ(!1));var g;(g=this.shortsController)!=null&&(g.dismissedIndices=[]);var u;(u=this.shortsController)!=null&&u.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.Bk().resolve(_.RO).close(!0)};
_.P.processAppendReelWatchSequenceContinuationEntriesAction=function(g){var u=this,q;(q=this.intersectionObserver)==null||q.disconnect();g=g.appendReelWatchSequenceContinuationEntriesAction;if(g==null?0:g.entries){var Q;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.na(((Q=this.reelWatchSequenceResponse)==null?void 0:Q.entries)||[]),_.na(g.entries)),continuationEndpoint:g.continuationEndpoint})}else if(g==null?0:g.prevEntries){var L;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.na(((L=this.reelWatchSequenceResponse)==null?void 0:L.prevEntries)||[]),_.na(g.prevEntries)),prevContinuationEndpoint:g.prevContinuationEndpoint});_.Hv.addLowPriorityJob(function(){u.movePlayerToVideo(u.index);u.scrollToVideoThrottle.fire(u.index,"instant")})}else return;
_.Hv.addLowPriorityJob(function(){u.observeShorts()},100)};
_.P.processWatchSequence=function(g){var u=this;return g.map(function(q){q=q.command;return u.isVideoContentCommand(q)?{thumbnail:_.c(q,_.g$).thumbnail,command:q}:{command:q}})};
_.P.calculateIntersectionObserverThreshold=function(){var g=_.Tr(this.hostElement).querySelector("ytd-reel-video-renderer"),u=1;(g==null?0:g.offsetHeight)&&(g==null?0:g.offsetWidth)&&(u=Math.min(g.offsetHeight,this.shortsContainer.offsetHeight)/g.offsetHeight*(Math.min(g.offsetWidth,this.shortsContainer.offsetWidth)/g.offsetWidth));return Math.round(u*.6*10)/10};
_.P.isVideoContentCommand=function(g){_.Bk().resolve(_.gz);return!!_.c(g,_.g$)};
_.P.isNonVideoContentCommand=function(g){_.Bk().resolve(_.gz);return!!_.c(g,_.M4)};
_.P.initCinematicController=function(){var g=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22104_cinematicController=new cf(this.shortsCinematicContainer,this.player);var u,q=_.c((u=this.data)==null?void 0:u.background,vB);Ijh(this.JSC$22104_cinematicController,q);ljt(this.JSC$22104_cinematicController,dZb(q));ZLC(this.JSC$22104_cinematicController);_.Hv.addLowPriorityJob(function(){g.moveCinematicsToVideo()})}};
_.P.handleMiniplayerNavigateShorts=function(g){g==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():g==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.P.handleSignalActionToggleShortsPictureInPicture=function(){if(_.Bk().resolve(_.RO).pictureInPictureSupported()){var g=_.Bk().resolve(_.gz);if(_.w("web_shorts_pip")){var u=_.Bk().resolve(_.RO);g.isShortsPipActive()?u.deactivate():u.isMiniplayerActive()||(_.Uw().shortsPipActivation=!0,_.fff(u))}}else(g=this.player)==null||g.togglePictureInPicture()};
_.z3.Object.defineProperties(Ac.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.reelWatchSequenceResponse)!=null&&g.prevEntries)return this.processWatchSequence([].concat(_.na(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(_.na(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.reelWatchSequenceResponse)!=null&&g.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var g=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var u;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((u=this.shortsProcessedSequence)==null?void 0:u.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var q;u=_.c((q=this.firstShortsData)==null?void 0:q.command,_.g$);if(u==null||!u.videoId)return this.shortsProcessedSequence;q=this.getIndexInSequence(this.shortsSequence,
u.videoId);if(q!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=q,_.Hv.addLowPriorityJob(function(){g.scrollToVideoThrottle.fire(g.index,"auto");g.movePlayerToVideo(g.index)}));
return[].concat(_.na(this.shortsSequence))}this.shortsProcessedPrevSequence||_.gT(_.Hv,function(){g.observeShorts()},100);
return[this.firstShortsData].concat(_.na(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var g=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;g&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(g)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var g;return this.index===((g=this.shortsContentList)==null?NaN:g.length)-1}if(this.endOfNextContinuation){var u,q;return this.index===((u=this.reelWatchSequenceResponse)==null?void 0:(q=u.entries)==null?void 0:q.length)}var Q;return!((Q=this.reelWatchSequenceResponse)==null?0:Q.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var g;(g=this.delayedActiveIndexUpdateDebouncer)==null||g.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return this.isShortPlayable()||((u=_.c((g=this.data)==null?void 0:g.watchStatus,_.bF$))==null?void 0:(q=u.style)==null?void 0:q.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var g=this,u=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),q;if((this.data||u)&&(((q=this.data)==null?0:q.engagementPanels)||this.isAd()||u)){u=!1;this.activePanel="shorts-comments-panel";var Q;q=_.N(((Q=this.data)==null?void 0:Q.engagementPanels)||[]);for(Q=q.next();!Q.done;Q=q.next())if(this.getPanelIdentifier(Q.value.engagementPanelSectionListRenderer)===this.activePanel){u=!0;break}if(this.isPersistentPanelActive){var L=
_.Bk().resolve(_.yH);_.Hv.addJob(function(){L.showPanel({identifier:g.activePanel,target:null})},0,100)}var E;
Q=[].concat(_.na(Object.values(((E=this.data)==null?void 0:E.engagementPanels)||{})));E=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);q=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return E===void 0&&q===void 0||(E==null?0:E.isDisabled)||(q==null?void 0:q.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!u?(u=Q==null?void 0:Q.findIndex(function(y){var v,J;return((v=y.engagementPanelSectionListRenderer)==null?void 0:(J=v.identifier)==null?void 0:J.tag)==="shorts-comments-panel"}),u===-1||u===void 0||Q!=null&&Q.splice(u,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Ug("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Ug("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:_.Ug("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Ug("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(_.na(Object.values(Q||
{})))):Q}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var g=this,u,q,Q;if((u=this.playerData)==null?0:(q=u.playabilityStatus)==null?0:(Q=q.errorScreen)==null?0:Q.playerInterstitialRenderer)return _.Hv.addLowPriorityJob(function(){g.movePlayerToVideo(g.index)}),this.playerData.playabilityStatus.errorScreen;
var L,E;return((L=this.data)==null?void 0:L.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((E=this.data)==null?0:E.watchStatus)&&_.c(this.data.watchStatus,_.z0x)?(_.Hv.addLowPriorityJob(function(){g.movePlayerToVideo(g.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.z3.Object.defineProperties(Ac,{template:{configurable:!0,enumerable:!0,get:function(){if(JIh===void 0){var g=document.createElement("template");_.Z(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n           <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);JIh=g}g=JIh;return g}}});
Ac.prototype.onNextButtonDataChange=Ac.prototype.onNextButtonDataChange;Ac.prototype.onPrevButtonDataChange=Ac.prototype.onPrevButtonDataChange;Ac.prototype.onPersistentPanelActiveChanged=Ac.prototype.onPersistentPanelActiveChanged;Ac.prototype.lazyUpdateMiniplayerData=Ac.prototype.lazyUpdateMiniplayerData;Ac.prototype.onShortsPipActiveChanged=Ac.prototype.onShortsPipActiveChanged;Ac.prototype.setActiveIndex=Ac.prototype.setActiveIndex;Ac.prototype.graftNvcRenderer=Ac.prototype.graftNvcRenderer;
Ac.prototype.graftClientVisualElements=Ac.prototype.graftClientVisualElements;Ac.prototype.onActiveChanged=Ac.prototype.onActiveChanged;Ac.prototype.onShortsDismiss=Ac.prototype.onShortsDismiss;Ac.prototype.onShortUndoDismiss=Ac.prototype.onShortUndoDismiss;Ac.prototype.playerDataChanged=Ac.prototype.playerDataChanged;Ac.prototype.afterPlayerStarted=Ac.prototype.afterPlayerStarted;Ac.prototype.unhideCurrentOverlay=Ac.prototype.unhideCurrentOverlay;Ac.prototype.onServiceRequestCompleted=Ac.prototype.onServiceRequestCompleted;
Ac.prototype.engagementPanelsChanged=Ac.prototype.engagementPanelsChanged;Ac.prototype.onFullscreenChange=Ac.prototype.onFullscreenChange;Ac.prototype.onResize=Ac.prototype.onResize;Ac.prototype.setShortsContentList=Ac.prototype.setShortsContentList;Ac.prototype.setFirstShortsData=Ac.prototype.setFirstShortsData;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Ac.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(Ul.YtPageBehavior),_.K("design:type",Object)],Ac.prototype,"ytPageBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Ac.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.LJ),_.K("design:type",Object)],Ac.prototype,"ironResizableBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M5),_.K("design:type",Object)],Ac.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Ac.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Ac.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"playerData",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"reelWatchSequenceResponse",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"cachedReelWatchSequenceResponse",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"currentEndpoint",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"nextButtonData",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"prevButtonData",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"isPreviousPageShorts",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"index",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"delayedActiveIndex",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"playablePreviousIndex",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"player",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"isPlayerPaused",void 0);_.Y([_.a({selector:RhK}),_.K("design:type",Object)],Ac.prototype,"isPlayerStarted",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"intersectionObserver",void 0);
_.Y([_.a(),_.K("design:type",Number)],Ac.prototype,"cinematicsInitializeJobId",void 0);_.Y([_.a(),_.K("design:type",Number)],Ac.prototype,"updateMiniplayerDataJobId",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"fitToVisibleBounds",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"pageSubtype",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ac.prototype,"enablePreviousContinuation",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"shortsPipEnabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"isDark",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"shortsViewTransitions",void 0);_.Y([_.a({selector:_.ry,reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"isFullscreen",void 0);
_.Y([_.a({selector:_.WY,reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"isShortsPipActive",void 0);_.Y([_.oE("#shorts-inner-container"),_.K("design:type",HTMLElement)],Ac.prototype,"shortsInnerContainer",void 0);_.Y([_.oE("#back-nav-button ytd-button-renderer"),_.K("design:type",_.m4)],Ac.prototype,"backNavButton",void 0);_.Y([_.oE("#shorts-container"),_.K("design:type",HTMLElement)],Ac.prototype,"shortsContainer",void 0);
_.Y([xM("error-screen"),_.K("design:type",HTMLElement)],Ac.prototype,"errorScreenContainer",void 0);_.Y([xM("player"),_.K("design:type",Object)],Ac.prototype,"playerElement",void 0);_.Y([xM("shorts-cinematic-container"),_.K("design:type",HTMLElement)],Ac.prototype,"shortsCinematicContainer",void 0);_.Y([xM("initial-player-container"),_.K("design:type",HTMLElement)],Ac.prototype,"initialPlayerContainer",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"buttonOverride",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"anchoredPanelActive",void 0);_.Y([_.a(),_.K("design:type",String)],Ac.prototype,"activePanel",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"isActive",void 0);_.Y([_.a({selector:$ZK,reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"smallScreenPersistentPanel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"isPersistentPanelActive",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"smallScreenSqueezeBack",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"enableScrollIntoViewCenter",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"extractOverlay",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"useAspectRatio",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ac.prototype,"enableShortsSequenceRefactorUnify",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"continuationRequestPending",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"shortsController",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"panelContainer",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"overlayContainer",void 0);_.Y([_.a(),_.K("design:type",Array)],Ac.prototype,"carouselContainers",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"isShortsInitialized",void 0);
_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"firstShortsData",void 0);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"firstShortsDataModel",void 0);_.Y([_.a(),_.K("design:type",Array)],Ac.prototype,"shortsContentList",void 0);_.Y([_.C("reelWatchSequenceResponse"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ac.prototype,"prevShortsSequence",null);
_.Y([_.C("data","prevShortsSequence"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ac.prototype,"shortsProcessedPrevSequence",null);_.Y([_.C("reelWatchSequenceResponse"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ac.prototype,"shortsSequence",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"setFirstShortsData",null);
_.Y([_.k_("reelWatchSequenceResponse","firstShortsData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"setShortsContentList",null);_.Y([_.C("data","shortsSequence","firstShortsData"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ac.prototype,"shortsProcessedSequence",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ac.prototype,"isUpArrowHidden",null);_.Y([_.a({reflectToAttribute:!0}),_.C("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ac.prototype,"isDownArrowHidden",null);
_.Y([_.a(),_.C("index"),_.K("design:type",Number),_.K("design:paramtypes",[])],Ac.prototype,"activeIndex",null);_.Y([_.C("isShortPlayable","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ac.prototype,"shouldRenderOfflineContent",null);_.Y([_.n6("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"onResize",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ac.prototype,"anchoredEngagementPanels",null);
_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"watchWhileEngagementPanels",void 0);_.Y([_.k_("isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"onFullscreenChange",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"engagementPanelsChanged",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],Ac.prototype,"onServiceRequestCompleted",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"unhideCurrentOverlay",null);_.Y([_.k_("isPlayerStarted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"afterPlayerStarted",null);
_.Y([_.C("playerData","reelWatchSequenceResponse","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ac.prototype,"errorScreen",null);_.Y([_.C("errorScreen"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ac.prototype,"hasError",null);_.Y([_.k_("playerData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],Ac.prototype,"playerDataChanged",null);
_.Y([_.n6("yt-dismissible-item-undo-feedback"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"onShortUndoDismiss",null);_.Y([_.n6("yt-disable-lockup-interaction"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],Ac.prototype,"onShortsDismiss",null);_.Y([_.qm("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"onActiveChanged",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"graftClientVisualElements",null);_.Y([_.k_("currentPlayerIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"graftNvcRenderer",null);_.Y([_.k_("index"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"setActiveIndex",null);
_.Y([_.k_("isShortsPipActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"onShortsPipActiveChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"lazyUpdateMiniplayerData",null);_.Y([_.a(),_.K("design:type",Object)],Ac.prototype,"onOverlayDensityChanged",void 0);
_.Y([_.k_("isPersistentPanelActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"onPersistentPanelActiveChanged",null);_.Y([_.k_("index","data","isUpArrowHidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"onPrevButtonDataChange",null);_.Y([_.k_("index","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ac.prototype,"onNextButtonDataChange",null);
_.Y([_.fE({is:"ytd-shorts"})],Ac);var ZMp;var lDx;var IDt;var ZJ=function(){return _.X.apply(this,arguments)||this};
_.A(ZJ,_.X);ZJ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ZJ.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],ZJ);
_.T(ZJ,"ytd-compact-tvfilm-entry-point-renderer",function(){if(IDt!==void 0)return IDt;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return IDt=g},{mode:1});var iMx;var C_b;var bMC;var lc=function(){return _.X.apply(this,arguments)||this};
_.A(lc,_.X);lc.prototype.ready=function(){this.initializeDefs()};
lc.prototype.initializeDefs=function(){var g=this.meta.byKey("yt-icons"),u=_.Tr(g).querySelector("#star"),q=_.Tr(g).querySelector("#star_half");g=_.Tr(g).querySelector("#star_border");u&&this.defs.appendChild(u.cloneNode(!0));q&&this.defs.appendChild(q.cloneNode(!0));g&&this.defs.appendChild(g.cloneNode(!0))};
lc.prototype.percentChanged=function(){for(var g=this.rating;g.firstChild;)g.removeChild(g.firstChild);var u=Math.round(this.percent/10);g=Math.floor(u/2);u%=2;var q=5-g-u;this.appendStars("star",g,0);this.appendStars("star_half",u,g);this.appendStars("star_border",q,g+u)};
lc.prototype.appendStars=function(g,u,q){for(var Q=0;Q<u;Q++){var L=(18+this.spacing)*(Q+q),E=document.createElementNS("http://www.w3.org/2000/svg","use");MZb(E,"#"+g);E.setAttribute("x",""+L);E.setAttribute("y","0");this.rating.appendChild(E)}};
lc.prototype.percentChanged=lc.prototype.percentChanged;_.Y([_.oE("#defs"),_.K("design:type",HTMLElement)],lc.prototype,"defs",void 0);_.Y([_.oE("#rating"),_.K("design:type",HTMLElement)],lc.prototype,"rating",void 0);_.Y([_.a(),_.K("design:type",Number)],lc.prototype,"percent",void 0);_.Y([_.a({value:6}),_.K("design:type",Number)],lc.prototype,"spacing",void 0);_.Y([_.a({value:_.qI.create("iron-meta",{type:"iconset"})}),_.K("design:type",_.g5)],lc.prototype,"meta",void 0);
_.Y([_.k_("percent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lc.prototype,"percentChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-ratings"})],lc);
_.T(lc,"ytd-ratings",function(){if(bMC!==void 0)return bMC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return bMC=g},{mode:1});var d1L=function(){return _.X.apply(this,arguments)||this};
_.A(d1L,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],d1L.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],d1L.prototype,"data",void 0);_.Y([_.fE({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],d1L);
_.T(d1L,"ytd-offer-review-renderer",function(){if(C_b!==void 0)return C_b;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return C_b=g},{mode:1});var IZ=function(){var g=_.X.apply(this,arguments)||this;g.badges=[{textBadge:{label:_.I7("CC")}}];return g};
_.A(IZ,_.X);_.P=IZ.prototype;_.P.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.P.dataChanged=function(){var g=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(g&&g.commandMetadata&&_.c(g.commandMetadata,_.QP)&&_.c(g.commandMetadata,_.QP).fireAutomatically)_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}});else{var u;g&&((u=_.c(g,_.QP))==null?0:u.fireAutomatically)&&_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}})}};
_.P.isEmptyContent=function(g){return this.isStorefrontEntryPointEmpty(g)&&this.shouldHideOfferModule(g)};
_.P.isStorefrontEntryPointEmpty=function(g){return!g||!g.storefrontEntryPoint};
_.P.shouldHideOfferModule=function(g){return!!g.hideVideoDetails};
_.P.isOfferModuleNavigationInactive=function(g){return!g.navigationEndpoint&&!g.serviceEndpoint};
_.P.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
IZ.prototype.dataChanged=IZ.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],IZ.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.K("design:type",Boolean)],IZ.prototype,"hidden",void 0);
_.Y([_.a(),_.K("design:type",Object)],IZ.prototype,"badges",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IZ.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],IZ);
_.T(IZ,"ytd-movie-offer-module-renderer",function(){if(iMx!==void 0)return iMx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return iMx=g},{mode:1});var FIb;var m1f=function(){return _.X.apply(this,arguments)||this};
_.A(m1f,_.X);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],m1f.prototype,"componentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],m1f.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],m1f);
_.T(m1f,"ytd-media-masthead-renderer",function(){if(FIb!==void 0)return FIb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return FIb=g},{mode:1});var aDf;_.dL(_.FJZ,"course-metadata-view-model",{props:{data:_.iF,isOverlay:_.iF}});var ic=function(){var g=_.X.apply(this,arguments)||this;g.isMetadataVisible=!1;g.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return g};
_.A(ic,_.X);_.P=ic.prototype;
_.P.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"}}}}};
_.P.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.P.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.P.expanderChanged=function(){var g;if((g=this.data)==null?0:g.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.P.isExpandButtonToggled=function(){var g,u;return(u=_.c((g=this.data)==null?void 0:g.expandMetadataButton,_.cF))==null?void 0:u.isToggled};
_.P.onVisibilityButtonClick=function(){var g;if((g=this.data)==null?0:g.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.P.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
ic.prototype.expanderChanged=ic.prototype.expanderChanged;ic.prototype.dataChanged=ic.prototype.dataChanged;ic.prototype.descriptionChanged=ic.prototype.descriptionChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I([_.xK.YtActionHandlerBehavior]),_.K("design:type",Object)],ic.prototype,"actionHandlerBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],ic.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],ic.prototype,"isMetadataVisible",void 0);_.Y([_.oE("#expander"),_.K("design:type",Object)],ic.prototype,"expander",void 0);_.Y([_.k_("data.description"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ic.prototype,"descriptionChanged",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ic.prototype,"dataChanged",null);_.Y([_.k_("isMetadataVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ic.prototype,"expanderChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],ic);
_.T(ic,"ytd-tvfilm-offer-module-renderer",function(){if(aDf!==void 0)return aDf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return aDf=g},{mode:2});var VNn;var Ck=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return g};
_.A(Ck,_.X);Ck.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Ck.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Ck.prototype.onThumbnailTap=function(g){this.data&&this.data.serviceEndpoint&&(_.Bk().resolve(_.Gy).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),g.stopPropagation())};
Ck.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Ck.prototype.dataChanged=Ck.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ck.prototype,"rendererBehaviors",void 0);_.Y([_.I([_.xK.YtActionHandlerBehavior]),_.K("design:type",Object)],Ck.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ck.prototype,"data",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ck.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Ck);
_.T(Ck,"ytd-unlimited-offer-module-renderer",function(){if(VNn!==void 0)return VNn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return VNn=g},{mode:1});var X7z;var rIb;var bc=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return g};
_.A(bc,_.X);bc.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
bc.prototype.handleRelatedChipCommand=function(g){g=_.c(g,r89);var u=g.contents;u?_.Og(this.hostElement,"yt-item-section-replace-action",[u,g.targetSectionIdentifier]):_.Og(this.hostElement,"yt-item-section-continuation-action",[g.continuationData,g.targetSectionIdentifier])};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],bc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],bc.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],bc.prototype,"data",void 0);_.Y([_.jP({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],bc);
_.T(bc,"yt-related-chip-cloud-renderer",function(){if(rIb===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;X7z===void 0&&(X7z=document.createElement("template"));var Q=X7z;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);rIb=g}g=rIb;return g},{mode:2});var dY=function(){var g=_.X.apply(this,arguments)||this;g.isTwoColumns=!0;g.watchFeedBigThumbs=_.w("kevlar_watch_feed_big_thumbs");g.watchFeedBigThumbsOnLockup=_.w("web_watch_next_big_thumbs");g.watchNextGridHideChips=_.w("kevlar_watch_grid_hide_chips");g.eligibleToSwitchToGrid=!0;g.disableShortsShelfHeightOverride=_.w("web_shorts_wn_shelf_ratio_tuning");g.isWatchNextGrid=!1;g.reuseComponents=!_.w("kevlar_watch_grid");g.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return g};
_.A(dY,_.X);_.P=dY.prototype;
_.P.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:!_.w("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}}};
_.P.getItemsPath=function(){return"data.results"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.P.created=function(){this.ytLazyListBehavior.initialCount=1};
_.P.ready=function(){_.x_(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.P.resultsChanged=function(){if(this.data&&this.data.results){for(var g=this.data.results,u=null,q=null,Q=0;Q<g.length;Q++)g[Q].relatedChipCloudRenderer?u=g[Q].relatedChipCloudRenderer:g[Q].itemSectionRenderer&&(q=g[Q].itemSectionRenderer);if(u&&q)for(this.set("data.continuations",[]),g=_.c(u.content,_.dJX).chips,u=0;u<g.length;u++)if(Q=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",g[u]),Q.loadCached||!Q.contents){Q.contents=q.contents;break}}};
_.P.dataChanged=function(){var g=this,u;if((u=this.data)!=null&&u.results&&this.hasAllowedInstreamAd(this.playerData)){if(u=this.data.results.filter(function(v){return!!v.promotedSparklesWebRenderer})){for(var q=0;q<u.length;q++){var Q=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",u[q]);
if(Q)for(var L=0;L<Q.length;L++)Q[L]&&Q[L].baseUrl&&_.VI(Q[L].baseUrl)}this.set("data.results",this.data.results.filter(function(v){return!v.promotedSparklesWebRenderer}))}if(u=this.data.results.filter(function(v){return!!g.getSparklesAd(v)})){u=_.N(u);
for(L=u.next();!L.done;L=u.next())if(Q=q=void 0,L=(q=this.getSparklesAd(L.value))==null?void 0:(Q=q.errorCommand)==null?void 0:Q.loggingUrls)for(q=_.N(L),Q=q.next();!Q.done;Q=q.next())(Q=Q.value)&&Q.baseUrl&&_.VI(Q.baseUrl);var E,y;this.set("data.results",(E=this.data)==null?void 0:(y=E.results)==null?void 0:y.filter(function(v){return!v.adSlotRenderer}))}}};
_.P.getSparklesAd=function(g){var u,q;g=_.c((u=g.adSlotRenderer)==null?void 0:(q=u.fulfillmentContent)==null?void 0:q.fulfilledLayout,_.kGW);return _.c(g==null?void 0:g.renderingContent,hCx)};
_.P.hasAllowedInstreamAd=function(g){g=this.get("adPlacements",g)||[];for(var u=0;u<g.length;u++){var q=this.get("adPlacementRenderer.config.adPlacementConfig",g[u]);if(q&&q.suppressDisplayAd)return!0}return!1};
_.P.computeHideUnlimitedOfferModule=function(g,u){return g&&g.offerModule&&u&&g.offerModule.unlimitedOfferModuleRenderer&&g.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(u)?!0:!1};
_.P.hideUnlimitedOfferModuleChanged=function(){var g=_.Tr(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");g&&(g.hidden=this.hideUnlimitedOfferModule)};
_.P.updateLockupContainerTypes=function(g){if(this.eligibleToSwitchToGrid){var u;(u=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||u.forEach(function(q){q.containerType=g})}};
_.P.computeHideTvfilmOfferModule=function(g,u){var q,Q;return!!((g==null?0:(q=g.offerModule)==null?0:(Q=q.tvfilmOfferModuleRenderer)==null?0:Q.clientShouldSuppressIfCompanionAdDisplayed)&&u&&this.hasCompanionAds(u))};
_.P.hideTvfilmOfferModuleChanged=function(){var g=_.Tr(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");g&&(g.hidden=this.hideTvfilmOfferModule)};
_.P.hasCompanionAds=function(g){g=this.get("adPlacements",g)||[];for(var u=0;u<g.length;u++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",g[u]))return!0;var q=void 0,Q=void 0,L=void 0;if(!_.w("web_watch_top_banner_companion_check_killswitch")&&((q=g[u])==null?0:(Q=q.adPlacementRenderer)==null?0:(L=Q.renderer)==null?0:L.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.P.hasSuppressedResults=function(g){return g==null?!0:g.filter(function(u){return!u.continuationItemRenderer&&!u.compactPromotedVideoRenderer&&!u.promotedSparklesWebRenderer}).length===0};
_.P.computeShowButton=function(g,u){return this.isWatchNextGrid?g:g||this.hasSuppressedResults(u)};
_.P.showButtonChanged=function(){if(this.isWatchNextGrid){var g=_.Tr(this.hostElement).querySelector("ytd-rich-grid-renderer");g&&this.showButton!==null&&(g.continuationShowButton=this.showButton)}else{g=_.Tr(this.hostElement).querySelector("yt-next-continuation");var u=_.Tr(this.hostElement).querySelector("ytd-continuation-item-renderer"),q=_.Tr(this.hostElement).querySelector("ytd-item-section-renderer");g&&(g.showButton=this.showButton);u&&(u.showButton=this.showButton);q&&(q.continuationShowButton=
this.showButton)}};
_.P.continuationTap=function(g){var u;if(((u=this.data)==null?void 0:u.continuations)!=null&&g.target.tagName==="TP-YT-PAPER-BUTTON")for(g=this.data.continuations,u=0;u<g.length;u++)g[u].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(g[u].nextContinuationData||{})};
_.P.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("shown-items-changed",this.shownItems))};
_.z3.Object.defineProperties(dY.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 g;return!((g=this.shownItems)==null||!g.some(function(u){return!!u.lockupViewModel||u.compactVideoRenderer}))}}});
dY.prototype.shownItemsChangedForBinding=dY.prototype.shownItemsChangedForBinding;dY.prototype.showButtonChanged=dY.prototype.showButtonChanged;dY.prototype.hideTvfilmOfferModuleChanged=dY.prototype.hideTvfilmOfferModuleChanged;dY.prototype.updateLockupContainerTypes=dY.prototype.updateLockupContainerTypes;dY.prototype.hideUnlimitedOfferModuleChanged=dY.prototype.hideUnlimitedOfferModuleChanged;dY.prototype.dataChanged=dY.prototype.dataChanged;dY.prototype.resultsChanged=dY.prototype.resultsChanged;
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],dY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.a_.YtLazyListBehavior),_.K("design:type",Object)],dY.prototype,"ytLazyListBehavior",void 0);_.Y([_.I(_.Cm.YtNextContinuationBehavior),_.K("design:type",Object)],dY.prototype,"ytNextContinuationBehavior",void 0);
_.Y([_.I(_.i5),_.K("design:type",Object)],dY.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],dY.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],dY.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],dY.prototype,"playerData",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],dY.prototype,"autoFill",void 0);_.Y([_.a({value:60}),_.K("design:type",Number)],dY.prototype,"targetFramerate",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dY.prototype,"isTwoColumns",void 0);_.Y([_.a(),_.K("design:type",Object)],dY.prototype,"shownItems",void 0);_.Y([_.a({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.K("design:type",Boolean)],dY.prototype,"hideUnlimitedOfferModule",void 0);_.Y([_.a({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.K("design:type",Boolean)],dY.prototype,"hideTvfilmOfferModule",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dY.prototype,"watchFeedBigThumbs",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dY.prototype,"watchFeedBigThumbsOnLockup",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dY.prototype,"watchNextGridHideChips",void 0);_.Y([_.a(),_.K("design:type",Object)],dY.prototype,"eligibleToSwitchToGrid",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dY.prototype,"disableShortsShelfHeightOverride",void 0);_.Y([_.a({selector:_.J9,reflectToAttribute:!0}),_.K("design:type",Object)],dY.prototype,"isGridViewEnabled",void 0);_.Y([_.a({selector:_.JGh,reflectToAttribute:!0}),_.K("design:type",Object)],dY.prototype,"isSwatcherooActive",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],dY.prototype,"showMoreButton",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],dY.prototype,"isWatchNextGrid",void 0);_.Y([_.a({computed:"computeShowButton(showMoreButton, data.results)"}),_.K("design:type",Boolean)],dY.prototype,"showButton",void 0);_.Y([_.qm("data.results.*"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dY.prototype,"resultsChanged",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dY.prototype,"dataChanged",null);_.Y([_.k_("hideUnlimitedOfferModule"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dY.prototype,"hideUnlimitedOfferModuleChanged",null);_.Y([_.C("isGridViewEnabled","containsLockups","data"),_.a({reflectToAttribute:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],dY.prototype,"lockupContainerType",null);
_.Y([_.k_("lockupContainerType","data"),_.K("design:type",Function),_.K("design:paramtypes",[Number]),_.K("design:returntype")],dY.prototype,"updateLockupContainerTypes",null);_.Y([_.k_("hideTvfilmOfferModule"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dY.prototype,"hideTvfilmOfferModuleChanged",null);_.Y([_.k_("showButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dY.prototype,"showButtonChanged",null);
_.Y([_.k_("shownItems"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dY.prototype,"shownItemsChangedForBinding",null);_.Y([_.C("shownItems"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],dY.prototype,"containsLockups",null);
_.T(dY,"ytd-watch-next-secondary-results-renderer",function(){if(lDx===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);lDx=g}g=lDx;return g},{mode:1});var WIK;var Fc=function(){var g=_.X.apply(this,arguments)||this;g.currentPageUrl="";g.baseUrl="";g.isHiddenByUser=null;g.hidden=!1;g.showAboveScrim=!1;g.watchNextGrid=_.w("kevlar_watch_grid");g.modernButtons=_.w("web_modern_buttons");g.roundedContainer=!0;g.noBorder=!1;g.roundBackground=!_.w("live_chat_round_background_killswitch");g.overflowHideChat=_.w("live_chat_overflow_hide_chat");g.forceDarkTheme=!1;g.theaterWatchWhile=!1;g.isListeningForPlayerProgress=!1;g.JSC$22157_playerEvents=new Map;g.isFrameReady=
!1;g.player=null;g.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 g};
_.A(Fc,_.X);_.P=Fc.prototype;_.P.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Og(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.P.created=function(){var g=this;this.handleIframeEventListener=function(u){g.handleIframeEvent(u)};
this.handleKeyboardEventListener=function(u){g.handleKeyboardEvent(u)};
this.JSC$22157_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22157_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22157_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22157_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22157_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.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()};
_.P.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};
_.P.computeBaseUrl=function(g){var u="/live_chat";this.isChatReplay()&&(u="/live_chat_replay");return _.Yk(_.hz(_.TA(_.X_(g),u),null),"").toString()};
_.P.dataChanged=function(){_.w("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.P.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var g=this.url;if(this.isChatReplay()&&this.player){var u=Math.floor(this.player.getProgressState().current*1E3);g=_.WD(_.X_(g),"playerOffsetMs",u.toString()).toString()}u=this.chatframe;try{var q=g==="about:blank"?_.LeX:_.SO(g),Q=u.contentDocument.location,L=_.gt(q);L!==void 0&&Q.replace(L)}catch(E){u.src=g}}};
_.P.collapsedChanged=function(){_.hJ(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.P.handleIframeEvent=function(g){if(g&&this.baseUrl.startsWith(g.origin)&&g.source===this.chatframe.contentWindow&&_.zM(g.data))if(g.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(g);else if(g.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(g.data["yt-show-feedback-dialog"]){var u=_.Bk().resolve(_.xv(_.fKE));if(u){var q=g.ports,Q;q&&q.length&&(Q=function(){q[0].postMessage({})});
g=g.data["yt-show-feedback-dialog"];u.showFeedbackDialog(g.customProductData,g.feedbackContent,Q,g.bucket)}}else if(g.data["yt-show-survey"])_.hJ(this.hostElement,"yt-show-survey",g.data["yt-show-survey"]);else if(g.data["yt-purchase-membership"])_.Bk().resolve(_.Gy).resolveCommand(g.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(g.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(g.data["yt-tunnel-out-live-service-request"]);else if(g.data["yt-user-activity"])_.zX();
else if(g.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(g.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(g.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(g.data["yt-open-popup"]);else if(g.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(g.data["yt-log-flow-logging-event-command"]);else if(g.data["yt-hide-live-chat"])this.onShowHideChat();else g.data["yt-report-moderation-state-log"]&&
this.player&&(u={cpn:this.player.getVideoData().cpn},_.H6("liveChatBeingModerated",u))};
_.P.attachLiveChatResponseVeTrackingParams=function(g){g=_.Lr(g);var u=_.j_(),q=_.ri("liveChatRenderer.trackingParams",this.data);u&&q&&_.cC(u,_.Lr(q),g)};
_.P.handleBuyflowMessages=function(g){var u=g.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,q=g.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,Q=g.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.qou(_.r_(_.id),u.replace(/-/g,"+").replace(/_/g,"/"),function(L){g.ports[0].postMessage({success:!0,buyFlowResponse:L})},void 0,function(L){g.ports[0].postMessage({success:!1,
error:L&&L.message||"Buyflow rejected without error."})},_.qf().get("hl"),void 0,function(){g.ports[0].postMessage({closed:!0})},q,Q)};
_.P.setupPlayerProgressRelay=function(){var g=this;if(!this.isListeningForPlayerProgress){var u=_.mH();u!=null&&u.getPlayerPromise&&(u.getPlayerPromise().then(function(q){g.playerApiReady(q)}),this.isListeningForPlayerProgress=!0)}};
_.P.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.P.playerApiReady=function(g){this.setPlayer(g)};
_.P.playerProgressHandler=function(){if(this.player){var g=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":g.current})}};
_.P.playerAdStartHandler=function(g){this.postToContentWindow({"yt-player-ad-start":g})};
_.P.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.P.playerStateChangeHandler=function(g){this.postToContentWindow({"yt-player-state-change":g})};
_.P.setPlayer=function(g){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22157_playerEvents);g&&(this.player=g,this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$22157_playerEvents),_.hJ(this.hostElement,"player-api-ready"))};
_.P.liveChatPageUrl=function(g,u,q,Q){return!q||u?"about:blank":q.liveChatRenderer?(u=_.X_(this.currentPageUrl).JSC$10339_queryData_,vop(u),g=_.X_(g),u.add("continuation",q.liveChatRenderer.continuations[0].reloadContinuationData.continuation),q=_.RE()==="USER_INTERFACE_THEME_DARK",(Q||q)&&u.add("dark_theme","true"),_.hz(g,u),Q=_.X_(g.toString()),q=Q.JSC$10339_queryData_,"SESSION_INDEX"in _.bL&&(q.add("authuser",_.FR("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.bL&&q.add("pageId",_.FR("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.bL&&q.add("sdc",_.FR("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),Q.toString()):""};
_.P.isCollapsed=function(g,u){return u!==null?u:this.isChatReplay()||g&&g.conversationBarRenderer&&g.conversationBarRenderer.availabilityMessage?!0:g?g.liveChatRenderer?g.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.w("live_chat_hide_premiere_replay_message")||g.conversationBarRenderer&&g.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.P.isHidden=function(g,u,q){var Q=u&&u.conversationBarRenderer&&u.conversationBarRenderer.availabilityMessage,L=u&&u.liveChatRenderer&&u.liveChatRenderer.showHideButton,E=u&&u.liveChatRenderer&&u.liveChatRenderer.showButton;return q&&g&&!Q&&!E||!q&&g&&!Q&&!L?!0:u&&u.liveChatRenderer&&u.liveChatRenderer.initialDisplayState?u.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.P.computeButtonOverride=function(g,u){if(g&&u)return{type:"outline"}};
_.P.setCollapsedState=function(g){_.c(g,_.glW)&&((this.isHiddenByUser=!!_.c(g,_.glW).collapsed)||_.YJ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.P.forwardReduxActionToIframe=function(g){this.postToContentWindow({"yt-live-chat-forward-redux-action":g})};
_.P.onLoopRangeChange=function(g){this.showAboveScrim=!(g==null||!g.postId)};
_.P.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.P.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.P.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.P.sendDarkThemePostMessage=function(g){this.postToContentWindow({"yt-live-chat-set-dark-theme":g})};
_.P.onLiveChatBuyFlowCallback=function(g){this.postToContentWindow({"yt-live-chat-buy-flow-callback":g})};
_.P.handleKeyboardEvent=function(g){(0,_.pH.containsValue)(i_h,g.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:g.type,keyCode:g.keyCode}})};
_.P.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.P.postToContentWindow=function(g){if(this.isFrameReady)try{var u=window.location.protocol+"//"+window.location.host,q;(q=this.chatframe)!=null&&q.contentWindow?this.chatframe.contentWindow.postMessage(g,u):_.Io(new _.Ji("Tried posting a message to an iframe with no content window",g))}catch(Q){_.Zf(Q)}};
_.P.shouldHideChatFrame=function(g){return g&&_.w("hide_live_chat_button_when_collapsed")};
_.z3.Object.defineProperties(Fc.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.w("live_chat_overflow_hide_chat")||_.w("web_watch_chat_hide_button_killswitch"))return _.w("live_chat_overflow_hide_chat");var g,u,q,Q;return!!((g=this.data)==null?0:(u=g.liveChatRenderer)==null?0:(q=u.header)==null?0:(Q=q.liveChatHeaderRenderer)==null?0:Q.collapseButton)}}});
Fc.prototype.collapsedChanged=Fc.prototype.collapsedChanged;Fc.prototype.urlChanged=Fc.prototype.urlChanged;Fc.prototype.dataChanged=Fc.prototype.dataChanged;Fc.prototype.onShowHideChat=Fc.prototype.onShowHideChat;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Fc.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Fc.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.AF.YtPlayerListenerBehavior),_.K("design:type",_.Zh)],Fc.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.I(_.Ov.YtOpenPopupBehavior),_.K("design:type",Object)],Fc.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Fc.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Fc.prototype,"currentPageUrl",void 0);
_.Y([_.a({computed:"computeBaseUrl(currentPageUrl,data)"}),_.K("design:type",Object)],Fc.prototype,"baseUrl",void 0);_.Y([_.a({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.K("design:type",String)],Fc.prototype,"url",void 0);_.Y([_.a(),_.K("design:type",Object)],Fc.prototype,"isHiddenByUser",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.K("design:type",Object)],Fc.prototype,"hidden",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.K("design:type",Boolean)],Fc.prototype,"collapsed",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.K("design:type",Boolean)],Fc.prototype,"hideChatFrame",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Fc.prototype,"showAboveScrim",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Fc.prototype,"watchNextGrid",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Fc.prototype,"modernButtons",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Fc.prototype,"roundedContainer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Fc.prototype,"noBorder",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Fc.prototype,"roundBackground",void 0);
_.Y([_.a({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.K("design:type",Object)],Fc.prototype,"toggleButtonOverride",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],Fc.prototype,"overflowHideChat",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Fc.prototype,"forceDarkTheme",void 0);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Fc.prototype,"enableShowWithoutHideChatButton",null);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Fc.prototype,"theaterWatchWhile",void 0);_.Y([_.oE("#chatframe"),_.K("design:type",HTMLIFrameElement)],Fc.prototype,"chatframe",void 0);_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fc.prototype,"onShowHideChat",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fc.prototype,"dataChanged",null);
_.Y([_.k_("url"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fc.prototype,"urlChanged",null);_.Y([_.k_("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fc.prototype,"collapsedChanged",null);_.Y([_.fE({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Fc);
_.T(Fc,"ytd-live-chat-frame",function(){if(WIK!==void 0)return WIK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return WIK=g},{mode:1});var TkZ;var ma=function(){var g=_.X.apply(this,arguments)||this;g.lastRenderedPanelIds=new Set;g.visiblePanels=[];g.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return g};
_.A(ma,_.X);_.P=ma.prototype;_.P.dataChanged=function(){if(this.data){for(var g=[],u=_.N(this.data),q=u.next();!q.done;q=u.next()){q=q.value;var Q=void 0,L=void 0,E=(Q=q)==null?void 0:(L=Q.engagementPanelSectionListRenderer)==null?void 0:L.visibility;L=Q=void 0;((Q=q)==null?0:(L=Q.engagementPanelSectionListRenderer)==null?0:L.targetId)&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&g.push(q)}this.visiblePanels=g}else this.visiblePanels=[]};
_.P.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}}};
_.P.withoutVisiblePanelById=function(g){return this.visiblePanels.filter(function(u){var q;return((q=u.engagementPanelSectionListRenderer)==null?void 0:q.targetId)!==g})};
_.P.onYtChangeEngagementPanelVisibilityAction=function(g){var u=this,q=_.c(g,_.u9X);if(this.data&&(q==null?0:q.targetId)&&(q==null?0:q.visibility)){var Q,L=(Q=this.data.find(function(y){var v;return((v=y.engagementPanelSectionListRenderer)==null?void 0:v.targetId)===q.targetId}))==null?void 0:Q.engagementPanelSectionListRenderer;
if(L){var E=this.withoutVisiblePanelById(q.targetId);q.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(g=this.data.find(function(y){var v;return((v=y.engagementPanelSectionListRenderer)==null?void 0:v.targetId)===q.targetId}))&&(E=[g].concat(_.na(E)));
this.hideDelayMs&&q.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&E.length===0?_.Hv.addJob(function(){L.visibility=q.visibility;u.visiblePanels=E},10,this.hideDelayMs):(L.visibility=q.visibility,this.visiblePanels=E);
_.Og(this.hostElement,"yt-engagement-panels-visible-changed",[E])}}};
_.P.onRendererstamperFinished=function(){var g=new Set(this.visiblePanels.map(function(u){var q;return(q=u.engagementPanelSectionListRenderer)==null?void 0:q.targetId}));
this.handlePanelVisibilityChange(g,this.lastRenderedPanelIds);this.lastRenderedPanelIds=g};
_.P.handlePanelVisibilityChange=function(g,u){g=g===void 0?new Set:g;u=u===void 0?new Set:u;if(this.data)for(var q=_.N(this.data),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var L=void 0,E=void 0,y=(L=Q)==null?void 0:(E=L.engagementPanelSectionListRenderer)==null?void 0:E.targetId;if(y&&(L=u.has(y),E=g.has(y),y=void 0,!L&&E?(E=L=void 0,y=(L=Q)==null?void 0:(E=L.engagementPanelSectionListRenderer)==null?void 0:E.onShowCommands):L&&!E&&(E=L=void 0,y=(L=Q)==null?void 0:(E=L.engagementPanelSectionListRenderer)==
null?void 0:E.onHideCommands),y))for(Q=_.N(y),y=Q.next();!y.done;y=Q.next())this.ytComponentBehavior.resolveCommand(y.value)}};
ma.prototype.onRendererstamperFinished=ma.prototype.onRendererstamperFinished;ma.prototype.dataChanged=ma.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ma.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ma.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ma.prototype,"lastRenderedPanelIds",void 0);_.Y([_.a(),_.K("design:type",Number)],ma.prototype,"hideDelayMs",void 0);_.Y([_.a(),_.K("design:type",Array)],ma.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Array)],ma.prototype,"visiblePanels",void 0);_.Y([_.a(),_.K("design:type",Boolean)],ma.prototype,"isWatchWhilePanel",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ma.prototype,"dataChanged",null);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ma.prototype,"onRendererstamperFinished",null);_.Y([_.fE({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],ma);
_.T(ma,"ytd-watch-engagement-panels",function(){if(TkZ!==void 0)return TkZ;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return TkZ=g},{mode:1});var hWh;var YoH;var OMp=function(){return _.X.apply(this,arguments)||this};
_.A(OMp,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],OMp.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],OMp.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],OMp);
_.T(OMp,"ytd-comments-entry-point-message-renderer",function(){if(YoH!==void 0)return YoH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return YoH=g},{mode:1});var KIb;var aZ=function(){return _.X.apply(this,arguments)||this};
_.A(aZ,_.X);_.z3.Object.defineProperties(aZ.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.teaserAvatar)}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],aZ.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],aZ.prototype,"hasAvatar",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],aZ);
_.T(aZ,"ytd-comments-entry-point-teaser-renderer",function(){if(KIb!==void 0)return KIb;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return KIb=g},{mode:1});var x1f;var BkZ=function(){return _.X.apply(this,arguments)||this};
_.A(BkZ,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BkZ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BkZ.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],BkZ);
_.T(BkZ,"ytd-comments-simplebox-renderer",function(){if(x1f!==void 0)return x1f;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return x1f=g},{mode:1});var Vg=function(){var g=_.X.apply(this,arguments)||this;g.fullHeight=!_.w("comment_teaser_full_height_kill_switch")&&_.w("kevlar_watch_grid");return g};
_.A(Vg,_.X);Vg.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"}}}};
Vg.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Vg.prototype.onTap=function(){var g=this.tapCommand;g&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(g))};
Vg.prototype.onKeyUp=function(g){if(g.keyCode===13)this.onTap()};
_.z3.Object.defineProperties(Vg.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null?0:g.onTap)return this.data.onTap}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)!=null&&g.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Vg.prototype.onKeyUp=Vg.prototype.onKeyUp;Vg.prototype.onTap=Vg.prototype.onTap;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Vg.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Vg.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Vg.prototype,"fullHeight",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vg.prototype,"tapCommand",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vg.prototype,"simpleboxPlaceholder",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vg.prototype,"hasSimpleboxPlaceholder",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vg.prototype,"simpleboxAvatar",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vg.prototype,"teaserContent",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vg.prototype,"hasTeaserContent",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vg.prototype,"teaserAvatar",null);
_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vg.prototype,"hasTeaserAvatar",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vg.prototype,"messageText",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vg.prototype,"contentRenderer",null);_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vg.prototype,"hasContents",null);
_.Y([_.C("data"),_.a({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vg.prototype,"hasContentRenderer",null);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vg.prototype,"onTap",null);_.Y([_.n6("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[_.sO]),_.K("design:returntype")],Vg.prototype,"onKeyUp",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Vg);
_.T(Vg,"ytd-comments-entry-point-header-renderer",function(){if(hWh!==void 0)return hWh;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return hWh=g},{mode:1});var zWb;_.dL(_.DXi,"yt-animated-rolling-number",{props:{numberText:_.H2,numberValue:_.H2,heightPx:_.H2,fontSizeMultiplier:_.H2,shouldAnimate:_.H2,forceRollUp:_.H2}});var nUZ=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),kUh={numberText:"",heightPx:2*nUZ,shouldAnimate:!1},Xc=function(){var g=_.X.apply(this,arguments)||this;g.usingAnimatedComponents=!0;g.wasDetailed=!1;g.JSC$22187_browserSupportsAnimation=_.w("web_supports_animations_api");g.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};g.detailed=!1;g.shouldAnimate=!1;g.viewCountProps=kUh;g.dateTextProps=
kUh;g.isEmpty=!1;g.metadataBadgesInDescription=_.w("web_metadata_badges_in_description");return g};
_.A(Xc,_.X);_.P=Xc.prototype;_.P.computeIsEmpty=function(g,u,q,Q,L,E,y,v){return!_.w("web_hide_watch_info_empty")||_.iR(g)?!1:u?!(_.iR(q)||Q||_.iR(L)||_.iR(E)||y||_.iR(v)):!0};
_.P.attached=function(){var g=this;_.Bk().resolve(_.xp).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(u){g.set("videoPrimaryInfoRenderer.subtitle",u)})};
_.P.detached=function(){_.Bk().resolve(_.xp).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.P.resetAnimationState=function(){this.shouldAnimate=!1};
_.P.updateDynamicMetadata=function(){if(this.JSC$22187_browserSupportsAnimation){if(!this.detailed){var g,u,q,Q;var L=(g=this.videoPrimaryInfoRenderer)==null?void 0:(u=g.viewCount)==null?void 0:(q=u.videoViewCountRenderer)==null?void 0:(Q=q.extraShortViewCount)==null?void 0:Q.simpleText;var E,y,v,J;var f=(E=this.videoPrimaryInfoRenderer)==null?void 0:(y=E.viewCount)==null?void 0:(v=y.videoViewCountRenderer)==null?void 0:(J=v.shortViewCount)==null?void 0:J.simpleText}if(!f){var t,e,G,R;L=(t=this.videoPrimaryInfoRenderer)==
null?void 0:(e=t.viewCount)==null?void 0:(G=e.videoViewCountRenderer)==null?void 0:(R=G.unlabeledViewCountValue)==null?void 0:R.simpleText;var H,l,d,F;f=(H=this.videoPrimaryInfoRenderer)==null?void 0:(l=H.viewCount)==null?void 0:(d=l.videoViewCountRenderer)==null?void 0:(F=d.viewCount)==null?void 0:F.simpleText}var V,z,O;g=Number((V=this.videoPrimaryInfoRenderer)==null?void 0:(z=V.viewCount)==null?void 0:(O=z.videoViewCountRenderer)==null?void 0:O.originalViewCount);var W,x;V=(W=this.videoPrimaryInfoRenderer)==
null?void 0:(x=W.relativeDateText)==null?void 0:x.simpleText;var k;W=!((k=this.videoPrimaryInfoRenderer)==null||!k.relativeDateText);if(L&&f&&g&&(V||!W)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;k=f.split(new RegExp("("+L+")"));L=_.I7(k[0]);var LZ;f={numberText:(LZ=k[1])!=null?LZ:"",numberValue:g,heightPx:2*nUZ,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var sb;LZ=((sb=k[2])!=null?sb:"")+"  ";this.setViewCount(f,L,_.I7(LZ));if(!this.detailed&&
W){L=V.split(/(\d+)/);sb=_.I7(L[0]);var Rm;LZ={numberText:(Rm=L[1])!=null?Rm:"",heightPx:2*nUZ,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var M3;Rm=((M3=L[2])!=null?M3:"")+"  ";this.setDateText(LZ,sb,_.I7(Rm))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.P.setViewCount=function(g,u,q){_.iR(u)!==_.iR(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=u);this.viewCountProps.numberText!==(g==null?void 0:g.numberText)&&(this.viewCountProps=g||kUh);_.iR(q)!==_.iR(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=q)};
_.P.setDateText=function(g,u,q){_.iR(u)!==_.iR(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=u);this.dateTextProps.numberText!==(g==null?void 0:g.numberText)&&(this.dateTextProps=g||kUh);_.iR(q)!==_.iR(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=q)};
_.P.onYtUpdateViewershipAction=function(g){this.videoPrimaryInfoRenderer&&(_.c(g,XQx).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.c(g,XQx).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.c(g,XQx).viewCount)))};
_.P.onYtUpdateDateTextAction=function(g){if(this.videoPrimaryInfoRenderer){g=_.c(g,adb).dateText;this.shouldAnimate=!0;var u;((u=this.videoPrimaryInfoRenderer)==null?0:u.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",g):this.set("videoPrimaryInfoRenderer.dateText",g)}};
_.z3.Object.defineProperties(Xc.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return ipC(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.iR(ipC(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.iR(this.viewCountPreNumberText),this.viewCountProps.numberText,_.iR(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.iR(this.dateTextPreNumberText),this.dateTextProps.numberText,_.iR(this.dateTextPostNumberText)].join("")}}});
Xc.prototype.updateDynamicMetadata=Xc.prototype.updateDynamicMetadata;Xc.prototype.resetAnimationState=Xc.prototype.resetAnimationState;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Xc.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Xc.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Xc.prototype,"videoPrimaryInfoRenderer",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xc.prototype,"detailed",void 0);_.Y([_.a(),_.K("design:type",Object)],Xc.prototype,"shouldAnimate",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xc.prototype,"viewCountPreNumberText",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xc.prototype,"viewCountProps",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xc.prototype,"viewCountPostNumberText",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xc.prototype,"dateTextPreNumberText",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xc.prototype,"dateTextProps",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xc.prototype,"dateTextPostNumberText",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeIsEmpty(infoText, usingAnimatedComponents, viewCountPreNumberText, viewCountProps.numberText, viewCountPostNumberText, dateTextPreNumberText, dateTextProps.numberText, dateTextPostNumberText)"}),_.K("design:type",Object)],Xc.prototype,"isEmpty",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Xc.prototype,"metadataBadgesInDescription",void 0);_.Y([_.C("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xc.prototype,"infoText",null);
_.Y([_.C("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.K("design:type",String),_.K("design:paramtypes",[])],Xc.prototype,"descriptionInfoTooltipText",null);_.Y([_.C("detailed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Xc.prototype,"showDescriptionInfoTooltip",null);
_.Y([_.C("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.K("design:type",String),_.K("design:paramtypes",[])],Xc.prototype,"animatedViewCountAccessibilityLabel",null);_.Y([_.C("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.K("design:type",String),_.K("design:paramtypes",[])],Xc.prototype,"animatedDateTextAccessibilityLabel",null);
_.Y([_.k_("videoPrimaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xc.prototype,"resetAnimationState",null);_.Y([_.k_("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xc.prototype,"updateDynamicMetadata",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Xc);
_.T(Xc,"ytd-watch-info-text",function(){if(zWb!==void 0)return zWb;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return zWb=g},{mode:1});var Soz;var oUp="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var U1E=_.r(function(g){var u=g.data;var q=g.setTapCommand;_.bX(function(){var Q=_.jy(u().onTap);q(Q)},"CLm0Xe");
return _.p("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.p(_.Up,{data:function(){return u().avatar}},{avatarViewModel:_.jv}),_.p("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.p("span",null,function(){return u().simpleboxText})))},"Kk");var gTH=_.r(function(g){return _.p("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.p(_.M,{cond:function(){return _.c(g.data().avatar,_.fn)},
then:function(u){return _.p(_.jv,{data:u,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.p("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.p(_.c2,{text:function(){return g.data().teaserText}})))},"Lk");var uDx=_.r(function(g){var u=g.data;var q=g.setTapCommand;_.bX(function(){var Q=_.jy(u().onTap);q(Q)},"qxjCCd");
return _.p("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.p(_.Up,{data:function(){return u().teasers}},{commentsEntryPointTeaserViewModel:gTH}))},"Nk");var qhz=_.r(function(g){var u=g.data;var q=g.setTapCommand;_.bX(function(){var Q=_.jy(u().onTap);q(Q)},"CRZByf");
return _.p("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.p(_.c2,{text:function(){return u().messageText}}))},"Pk");var QLh=_.r(function(g){var u=g.data;var q=g.setTapCommand;var Q=g.isDisabled;_.bX(function(){var L=(Q==null?0:Q())?void 0:_.jy(u().onTap);q(L)},"GZxRqd");
return _.p("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.p(_.B1,{icon:function(){return u().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.p(_.M,{cond:function(){return u().image},
then:function(L){return _.p(_.IT,{data:L,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.p(_.c2,{text:function(){return u().text},
className:function(){return u().image||u().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.p(_.Up,{data:function(){return u().button}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:Q==null?void 0:Q()}}})}}))},"Rk");var LNH=_.r(function(g){var u=g.data;var q=g.itemIndex;var Q=g.selectedIndex;var L=g.indexUpdatedCallback;var E=g.observer;g=g.title;var y=_.Hk("yt-carousel-item-view-model",function(e){E&&E().observe(e)}),v=function(e){q()===Q()&&L(e)},J=_.Sy(Lc9),f=_.Sy(_.MoF),t=function(){var e,G,R,H,l;
return((e=u())==null?void 0:e.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!J()||((G=u())==null?void 0:G.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((R=f())==null?void 0:R.includes("PAposts_by_host"))||((H=u())==null?void 0:H.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((l=f())==null?void 0:l.includes("PAyouchat"))};
return _.p("yt-carousel-item-view-model",{el:y,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":g},_.p(_.Up,{data:function(){var e,G;return(G=(e=_.c(u().carouselItem,SmK))==null?void 0:e.textCarousel)!=null?G:u().carouselItem}},{textCarouselItemViewModel:function(e){return _.p(QLh,{data:e.data,
setTapCommand:v,isDisabled:t})},
commentTeaserCarouselItemViewModel:function(e){return _.p(uDx,{data:e.data,setTapCommand:v})},
commentInputBoxCarouselItemViewModel:function(e){return _.p(U1E,{data:e.data,setTapCommand:v})},
commentsEntryPointMessageViewModel:function(e){return _.p(qhz,{data:e.data,setTapCommand:v})}}))},"Sk");var ETp=_.r(function(g){var u=g.numDots;var q=g.activeIndex;return _.p("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.p(_.R4,{each:function(){return Array.from({length:u()})},
keyBy:"INDEX"},function(Q,L){return _.p("div",{class:function(){var E={};return _.N0("ytCarouselDotsShapeDot",(E.ytCarouselDotsShapeDotActive=L===q(),E))}})}))},"Tk");var P9f=_.r(function(g){var u=g.data;var q=g.handleCarouselNavigation;var Q=g.numItems;var L=g.selectedIndex;var E=function(){return{disabled:L()===0}},y=function(){return{disabled:L()===Q()-1}};
return _.p("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.p("div",null,_.p("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return u().title}),_.p(_.M,{cond:function(){return u().subtitle},
then:function(v){return _.p("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return u().subtitleAccessibilityText}},v)}})),_.p(_.M,{cond:function(){return Q()>1},
then:function(){return _.p("div",{class:"ytCarouselTitleViewModelNavigation"},_.p(ETp,{numDots:Q,activeIndex:L}),_.p(_.M,{cond:function(){return u().previousButton},
then:function(v){return _.p(_.Up,{data:v},{buttonViewModel:function(J){return _.p(_.TT,{data:J.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return q(-1)},
buttonOverrides:E})}})}}),_.p(_.M,{cond:function(){return u().nextButton},
then:function(v){return _.p(_.Up,{data:v},{buttonViewModel:function(J){return _.p(_.TT,{data:J.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return q(1)},
buttonOverrides:y})}})}}))}}))},"Uk");_.dL(_.r(function(g){var u=g.data;var q,Q=_.Hk("yt-video-metadata-carousel-view-model"),L=_.Hk("div",function(W){var x=function(){var k=W.offsetWidth*l(),LZ=24*(l()-1);G(k+LZ)};
x();window.ResizeObserver&&(q=new ResizeObserver(x),q.observe(W))}),E=_.FR("HTML_DIR")==="rtl",y=!1,v=0,J=0;
g=_.N(_.jR(0,void 0,"M49TDf"));var f=g.next().value,t=g.next().value;g=_.N(_.jR(0,void 0,"zLIok"));var e=g.next().value,G=g.next().value;g=_.N(_.jR(!1,void 0,"bhelhc"));var R=g.next().value,H=g.next().value,l=function(){var W,x,k;return(k=(W=u())==null?void 0:(x=W.carouselTitles)==null?void 0:x.length)!=null?k:0},d=function(){L.value&&L.value.scrollLeft!==v&&t((E?L.value.scrollLeft<v:L.value.scrollLeft>v)?Math.min(f()+1,l()-1):Math.max(f()-1,0))},F;
window.IntersectionObserver&&(F=new IntersectionObserver(function(W){W=_.N(W);for(var x=W.next();!x.done;x=W.next())if(x.value.isIntersecting){if(y){y=!1;break}d()}else t(J)},{threshold:.2}));
_.bX(function(){if(L.value){var W=(E?-1:1)*(e()/l()+12)*(R()&&F?J:f());typeof L.value.scrollTo==="function"?L.value.scrollTo({left:W,behavior:"smooth"}):L.value.scrollLeft=W;v=W;J=R()&&F?J:f()}},"s9rbgc");
var V,z=function(W){V=W};
_.dB(function(){var W;(W=q)==null||W.disconnect();var x;(x=F)==null||x.disconnect()});
var O=function(W){W=f()+W;W>=0&&W<l()&&(y=!0,t(W))};
return _.p("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:Q,"on:click":_.YH(function(W){if(_.vY(_.y4(W),Q.value,["BUTTON".toString()])||!V)return!1;_.Bk().resolve(_.Gy).resolveCommand(V,{forceClickLogging:!0});return!1}),
"on:touchstart":_.YH(function(){H(!0);return!1}),
"on:touchend":_.YH(function(){F||d();H(!1);return!1}),
hidden:function(){var W,x;return!((W=u())==null?0:(x=W.carouselItems)==null?0:x.length)}},_.p("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.p(_.M,{cond:function(){return u().carouselTitles},
then:function(W){return _.p(_.Up,{data:function(){return W()[R()&&F?J:f()]}},{carouselTitleViewModel:function(x){return _.p(P9f,{data:x.data,
handleCarouselNavigation:O,numItems:l,selectedIndex:f})}})}})),_.p("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:L},_.p("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+e()+"px;"}},_.p(_.M,{cond:function(){return u().carouselItems},
then:function(W){return _.p(_.R4,{each:W},function(x,k){return _.p(_.Up,{data:function(){return x}},{carouselItemViewModel:function(LZ){return _.p(LNH,{data:LZ.data,
itemIndex:k,selectedIndex:f,indexUpdatedCallback:z,observer:F,title:function(){a:{var sb=k();var Rm,M3=(Rm=u())==null?void 0:Rm.carouselTitles;if(M3&&(sb=M3[sb])){var tT;sb=(tT=_.c(sb,kb9))==null?void 0:tT.title;break a}sb=void 0}return sb}})}})})}}))))},"Wk"),"yt-video-metadata-carousel-view-model",{props:{data:_.H2}});var rY=function(){var g=_.X.apply(this,arguments)||this;g.isHovering=!1;g.enableColorSampling=_.w("web_delhi_colorful_sd");g.metadataBadgesInDescription=_.w("web_metadata_badges_in_description");g.descriptionCollapsed=!0;g.useFadedScrimDescription=_.w("kevlar_enable_faded_scrim_on_description");g.skinnyMode=!1;g.playlist=!1;g.isDark=document.documentElement.hasAttribute("dark");g.disableVideoOwnerOnTap=_.w("swatchie_video_owner_on_tap_ks");g.swatcherooDelayLoad=_.w("swatcheroo_enable_ghost_cards");
g.primaryMenuWidth=0;g.videoId="";g.titleHeadlineXs=_.w("web_watch_typography_title_headline_xs");g.titleHeadlineS=_.w("web_watch_typography_title_headline_s");g.titleHeadlineM=_.w("web_watch_typography_title_headline_m");g.titleHashtagBlackLinkified=_.w("web_title_hashtag_black_linkified");g.titleHashtagGreyLinkified=_.w("web_title_hashtag_grey_linkified");g.actionButtonsUpdateOwnerWidth=!0;g.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction",
"yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};g.isFullscreen=!1;g.isTheaterMode=!1;return g};
_.A(rY,_.X);_.P=rY.prototype;_.P.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.P.updateOwnerAndDescriptionPosition=function(){_.w("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),eH(this.bottomRowElement,this.ownerElement)):(eH(this.bottomRowElement,this.descriptionElement),eH(this.topRowElement,this.ownerElement)))};
_.P.titleOnTap=function(g){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.ia(_.C6(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var u;((u=window.getSelection())==null?0:u.toString().length)||this.handleExpandDescriptionCommands()}};
_.P.videoOwnerOnTap=function(g){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.ia(_.C6(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.P.detached=function(){var g=this,u;return _.D(function(q){(u=g.resizeObserver)==null||u.disconnect();_.Wx(q)})};
_.P.maybeAttachResizeObserver=function(){var g=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Kr(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){g.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.P.maybeUpdateActionsOnSeparateLine=function(){this.skinnyMode?this.actionsOnSeparateLine=!0:this.primaryMenuWidth&&(this.actionsOnSeparateLine=this.primaryMenuWidth>this.hostElement.clientWidth-(this.ownerElement.clientWidth+32)?!0:!1)};
_.P.stripAttributedDescription=function(g){return{content:g.content.replace(/[\r\n]{2,}/g,"\n")}};
_.P.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("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"}}}};
_.P.videoPrimaryInfoRendererChanged=function(){var g;if((g=this.videoPrimaryInfoRenderer)==null?0:g.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.P.videoSecondaryInfoRendererChanged=function(){var g,u;(g=this.descriptionInlineExpander)==null||(u=g.collapse)==null||u.call(g);this.descriptionExpandClientVe=_.Yq(110509);this.descriptionCollapseClientVe=_.Yq(110510);g=_.j_();u=_.JJ();g&&u&&(_.w("combine_ve_grafts")?(_.xl(_.gL(),this.descriptionExpandClientVe,u),_.xl(_.gL(),this.descriptionCollapseClientVe,u)):_.HC(g,u,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.P.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.P.updateTopLevelIconsOnly=function(){var g=this;_.w("top_level_update_killswitch")||this.menu&&_.Hv.addLowPriorityJob(function(){g.menu.topLevelIconsOnly=g.skinnyMode},_.S8("swathceroo_delay_flexible_menu_update",100))};
_.P.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.P.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.P.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.P.onYtTextInlineExpanderExpandedChanged=function(){if(!_.w("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var g,u;(u=(g=this.structuredDescriptionContentRendererElement).resize)==null||u.call(g)}};
_.P.onRenderStamperFinished=function(g){(g==null?void 0:g.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.P.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.P.onYtExpanderLessTapped=function(){var g,u=(g=this.videoSecondaryInfoRenderer)==null?void 0:g.showLessCommand;u&&this.ytComponentBehavior.resolveCommand(u)};
_.P.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.P.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.P.onDescriptionClick=function(g){if(!_.ia(_.C6(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var u;((u=window.getSelection())==null?0:u.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.w("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.P.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.P.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.P.logCollapseClick=function(){var g=_.j_();g&&this.descriptionCollapseClientVe&&_.Ip(g,this.descriptionCollapseClientVe)};
_.P.logExpandClick=function(){var g=_.j_();g&&this.descriptionExpandClientVe&&_.Ip(g,this.descriptionExpandClientVe)};
_.P.collapseDescription=function(){this.descriptionCollapsed=!0};
_.P.scrollToTopOfContainer=function(){_.YJ(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.P.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.P.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.P.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.P.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var g,u;(u=(g=this.descriptionInlineExpander).resize)==null||u.call(g)}else _.Io(new _.Ji("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var q;(q=this.menu)==null||q.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.P.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var g,u,q=(u=(g=_.Tr(this.menu).querySelector("#button-shape"))==null?void 0:g.clientWidth)!=null?u:0,Q,L;g=((L=(Q=_.Tr(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:Q.clientWidth)!=null?L:0)+8+q;var E,y;q=(y=(E=_.Tr(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:E.children.length)!=null?y:2;g<=8*q||(this.primaryMenuWidth=g)}};
_.P.onYtUpdateTitleAction=function(g){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.c(g,Vuh).title)};
_.P.onYtUpdateDescriptionAction=function(g){if(g=_.c(g,_.Es5)){var u,q=!((u=this.videoSecondaryInfoRenderer)==null||!u.attributedDescription);g.isEmpty||!g.description&&!g.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):g.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",g.attributedDescription):g.description&&(q?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.v1(g.description)):this.set("videoSecondaryInfoRenderer.description",g.description))}};
_.P.onYtDarkModeToggledAction=function(g){this.isDark=g};
_.P.registerPanel=function(){if(!_.w("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var g=_.w("web_watch_imax_theater_mode")&&this.isTheaterMode;g=_.w("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||g;var u=_.Bk().resolve(_.yH);u&&!g&&u.registerPanel("engagement-panel-structured-description",this)}};
_.P.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.P.parseColorSamplingData=function(){var g;if(_.w("web_delhi_colorful_sd")&&((g=this.structuredDescriptionContentRenderer)==null?0:g.items)&&(g=this.structuredDescriptionContentRenderer.items.find(function(L){return!!_.c(L,p4)}))){var u,q;
this.hoverColor={lightTheme:(u=_.c(g,p4))==null?void 0:u.lightThemeColorPalette,darkTheme:(q=_.c(g,p4))==null?void 0:q.darkThemeColorPalette};var Q;this.hoverText=(Q=_.c(g,p4))==null?void 0:Q.colorSampledDescriptionBodyText}};
_.P.updateHoverColor=function(){if(_.w("web_delhi_colorful_sd")){var g=this.hoverColor,u={},q;g=(q=this.isDark?g==null?void 0:g.darkTheme:g==null?void 0:g.lightTheme)!=null?q:{};q=_.N(oUp);for(var Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var L=g[Q];u["--yt-saturated-"+_.SZ(Q)]=L?_.jh(L):"initial"}_.x_(this.hostElement,u)}};
_.P.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.P.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.P.showPanel=function(g){this.expandDescription();var u=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;u.resize();var q,Q=g==null?void 0:(q=g.sectionListEngagementPanelExtras)==null?void 0:q.scrollToItemSectionIdentifier;Q?_.Hv.addJob(function(){u==null||u.scrollToSection(Q)},8):this.scrollToTopOfContainer()};
_.P.isVisible=function(){return!this.descriptionCollapsed};
_.P.getReloadContinuation=function(){};
_.P.hidePanel=function(){};
_.P.updatePanel=function(){};
_.z3.Object.defineProperties(rY.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var g;return _.w("web_delhi_colorful_sd")&&(g=this.structuredDescriptionContentRenderer)!=null&&g.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(u){return!_.c(u,p4)&&!_.c(u,hiC)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.structuredDescriptionContentRendererComputed)!=null&&g.items){var u;g=_.N((u=this.structuredDescriptionContentRendererComputed)==null?void 0:u.items);for(u=g.next();!u.done;u=g.next())if(u=_.c(u.value,_.na$))return u}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.videoPrimaryInfoRenderer)==null?0:g.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return!!((g=this.videoSecondaryInfoRenderer)==null?0:(u=g.owner)==null?0:(q=u.videoOwnerRenderer)==null?0:q.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var g,u;if((g=this.videoSecondaryInfoRenderer)==null?0:(u=g.attributedDescription)==null?0:u.content){var q,Q;return(Q=this.stripAttributedDescription((q=this.videoSecondaryInfoRenderer)==null?void 0:q.attributedDescription))!=null?Q:{runs:[]}}}if(_.w("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var L,E,y,v;return(v=(y=(L=this.videoSecondaryInfoRenderer)==
null?void 0:L.description)!=null?y:(E=this.videoSecondaryInfoRenderer)==null?void 0:E.attributedDescription)!=null?v:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=(g=this.videoSecondaryInfoRenderer)==null?void 0:g.headerRuns)!=null?u:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.commentsEntryPointHeaderRenderer)==null||!g.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.videoMetadataCarousel)==null||!g.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.S8("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var g,u,q=Object.assign({},(g=this.videoSecondaryInfoRenderer)==null?void 0:(u=g.metadataRowContainer)==null?void 0:u.metadataRowContainerRenderer);if(q&&q.rows&&q.collapsedItemCount!==void 0&&!(q.rows.length<=q.collapsedItemCount))return q.rows=q.rows.slice(q.collapsedItemCount),q.collapsedItemCount=0,q}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var g,u,q=Object.assign({},(g=this.videoSecondaryInfoRenderer)==null?void 0:(u=g.metadataRowContainer)==null?void 0:u.metadataRowContainerRenderer);if(q&&q.rows&&q.collapsedItemCount!==void 0)return q.rows=q.rows.slice(0,q.collapsedItemCount),q.collapsedItemCount=q.rows.length,q}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var g,u;return!!((g=this.structuredDescriptionContentRendererComputed)==null?0:(u=g.items)==null?0:u.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 g;return(g=this.videoSecondaryInfoRenderer)==null?void 0:g.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.videoSecondaryInfoRenderer)==null?0:(u=g.owner)==null?0:(q=u.videoOwnerRenderer)==null?0:q.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var g,u,q,Q;return!!((g=this.videoPrimaryInfoRenderer)==null?0:(u=g.videoActions)==null?0:(q=u.menuRenderer)==null?0:(Q=q.flexibleItems)==null?0:Q.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.H1(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.H1(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var g=this;if(_.w("web_title_hashtag_grey_delinkified")){var u,q=_.pH.unsafeClone((u=this.videoPrimaryInfoRenderer)==null?void 0:u.title);(u=q==null?void 0:q.runs)&&u.forEach(function(Q){if(Q==null?0:Q.navigationEndpoint)Q.textColor=4284506208,g.isDark&&(Q.textColor=4289374890)});
return q}return(q=this.videoPrimaryInfoRenderer)==null?void 0:q.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.w("web_title_hashtag_black_delinkified")||_.w("web_title_hashtag_grey_delinkified")}}});
rY.prototype.updateHoverColor=rY.prototype.updateHoverColor;rY.prototype.parseColorSamplingData=rY.prototype.parseColorSamplingData;rY.prototype.resetDescriptionState=rY.prototype.resetDescriptionState;rY.prototype.registerPanel=rY.prototype.registerPanel;rY.prototype.onYtExpanderLessTapped=rY.prototype.onYtExpanderLessTapped;rY.prototype.onYtExpanderMoreTapped=rY.prototype.onYtExpanderMoreTapped;rY.prototype.onRenderStamperFinished=rY.prototype.onRenderStamperFinished;
rY.prototype.onYtTextInlineExpanderExpandedChanged=rY.prototype.onYtTextInlineExpanderExpandedChanged;rY.prototype.onYtTextInlineExpanderCollapseClicked=rY.prototype.onYtTextInlineExpanderCollapseClicked;rY.prototype.onYtTextInlineExpanderExpandClicked=rY.prototype.onYtTextInlineExpanderExpandClicked;rY.prototype.moveActionsElement=rY.prototype.moveActionsElement;rY.prototype.updateTopLevelIconsOnly=rY.prototype.updateTopLevelIconsOnly;rY.prototype.structuredDescriptionContentRendererChanged=rY.prototype.structuredDescriptionContentRendererChanged;
rY.prototype.videoSecondaryInfoRendererChanged=rY.prototype.videoSecondaryInfoRendererChanged;rY.prototype.videoPrimaryInfoRendererChanged=rY.prototype.videoPrimaryInfoRendererChanged;rY.prototype.maybeUpdateActionsOnSeparateLine=rY.prototype.maybeUpdateActionsOnSeparateLine;rY.prototype.updateOwnerAndDescriptionPosition=rY.prototype.updateOwnerAndDescriptionPosition;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],rY.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],rY.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],rY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],rY.prototype,"ytdReduxBehavior",void 0);
_.Y([_.oE("#above-the-fold"),_.K("design:type",HTMLElement)],rY.prototype,"aboveTheFoldContainer",void 0);_.Y([_.oE("#menu ytd-menu-renderer"),_.K("design:type",Object)],rY.prototype,"menu",void 0);_.Y([_.oE("#description-inline-expander"),_.K("design:type",Object)],rY.prototype,"descriptionInlineExpander",void 0);_.Y([_.oE("#faded-structured-description"),_.K("design:type",Object)],rY.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.Y([_.oE("#structured-description"),_.K("design:type",Object)],rY.prototype,"structuredDescriptionContentRendererElement",void 0);_.Y([_.oE("#title"),_.K("design:type",HTMLElement)],rY.prototype,"titleElement",void 0);_.Y([_.oE("#description"),_.K("design:type",HTMLElement)],rY.prototype,"descriptionElement",void 0);_.Y([_.oE("#description-interaction"),_.K("design:type",Object)],rY.prototype,"descriptionInteraction",void 0);
_.Y([_.oE("#owner"),_.K("design:type",HTMLElement)],rY.prototype,"ownerElement",void 0);_.Y([_.oE("#top-row"),_.K("design:type",HTMLElement)],rY.prototype,"topRowElement",void 0);_.Y([_.oE("#bottom-row"),_.K("design:type",HTMLElement)],rY.prototype,"bottomRowElement",void 0);_.Y([_.oE("#actions"),_.K("design:type",HTMLElement)],rY.prototype,"actionsElement",void 0);_.Y([_.oE("#bottom-actions"),_.K("design:type",HTMLElement)],rY.prototype,"bottomActionsElement",void 0);
_.Y([_.oE("#ytd-watch-info-text"),_.K("design:type",Object)],rY.prototype,"watchInfoTextElement",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"videoPrimaryInfoRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"videoSecondaryInfoRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"videoMetadataCarousel",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"structuredDescriptionContentRenderer",void 0);_.Y([_.C("structuredDescriptionContentRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"structuredDescriptionContentRendererComputed",null);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"videoSummary",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"merchShelf",void 0);
_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"infoPanelBelowMetadata",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"hoverColor",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"hoverText",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"isHovering",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"enableColorSampling",void 0);
_.Y([_.C("structuredDescriptionContentRendererComputed"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"productShelf",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"metadataBadgesInDescription",void 0);_.Y([_.C("videoPrimaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"shouldHideBadges",null);
_.Y([_.C("productShelf","descriptionCollapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rY.prototype,"shouldShowProductShelf",null);_.Y([_.a(),_.K("design:type",Boolean)],rY.prototype,"isWatchFlexy",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"descriptionCollapsed",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],rY.prototype,"useFadedScrimDescription",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"skinnyMode",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("videoSecondaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"largerItemWrap",null);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"playlist",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"clarifyBox",void 0);_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"playerAds",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],rY.prototype,"isDark",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],rY.prototype,"actionsOnSeparateLine",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"disableVideoOwnerOnTap",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"swatcherooDelayLoad",void 0);_.Y([_.a(),_.K("design:type",Boolean)],rY.prototype,"suppressTopLevelMetadataRows",void 0);
_.Y([_.a(),_.K("design:type",Object)],rY.prototype,"primaryMenuWidth",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"videoId",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"titleHeadlineXs",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"titleHeadlineS",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"titleHeadlineM",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"titleHashtagBlackLinkified",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"titleHashtagGreyLinkified",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.Y([_.qm("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"updateOwnerAndDescriptionPosition",null);
_.Y([_.qm("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"maybeUpdateActionsOnSeparateLine",null);_.Y([_.C("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"descriptionText",null);
_.Y([_.C("videoSecondaryInfoRenderer.headerRuns"),_.K("design:type",Array),_.K("design:paramtypes",[])],rY.prototype,"headerRuns",null);_.Y([_.a({value:!1}),_.C("commentsEntryPointHeaderRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"hasTeaser",null);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.C("videoMetadataCarousel"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"hasTeaserCarousel",null);
_.Y([_.a({value:3}),_.C("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"descriptionMaxLines",null);_.Y([_.C("videoSecondaryInfoRenderer.metadataRowContainer"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"collapsibleMetadataRows",null);
_.Y([_.C("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"alwaysVisibleMetadataRows",null);_.Y([_.C("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rY.prototype,"hasInlineStructuredDescription",null);
_.Y([_.C("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rY.prototype,"showInlineStructuredDescription",null);_.Y([_.C("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"descriptionExpandCommand",null);
_.Y([_.C("videoSecondaryInfoRenderer.owner"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"videoOwnerCommand",null);_.Y([_.a({reflectToAttribute:!0}),_.C("videoPrimaryInfoRenderer.videoActions"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rY.prototype,"flexMenuEnabled",null);_.Y([_.a({selector:_.pe,reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"isFullscreen",void 0);
_.Y([_.a({selector:_.Dc,reflectToAttribute:!0}),_.K("design:type",Object)],rY.prototype,"isTheaterMode",void 0);_.Y([_.C("descriptionText","useFadedScrimDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rY.prototype,"showAttributedStringDescription",null);_.Y([_.C("descriptionText","useFadedScrimDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rY.prototype,"showFormattedStringDescription",null);
_.Y([_.C("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rY.prototype,"showFadedStructuredDescription",null);_.Y([_.qm("videoPrimaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"videoPrimaryInfoRendererChanged",null);_.Y([_.C("videoPrimaryInfoRenderer.title"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"videoTitle",null);
_.Y([_.C("videoPrimaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],rY.prototype,"noEndpoints",null);_.Y([_.qm("videoSecondaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"videoSecondaryInfoRendererChanged",null);
_.Y([_.k_("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"structuredDescriptionContentRendererChanged",null);_.Y([_.k_("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"updateTopLevelIconsOnly",null);
_.Y([_.k_("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"moveActionsElement",null);_.Y([_.n6("yt-text-inline-expander-expand-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.Y([_.n6("yt-text-inline-expander-collapse-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.Y([_.n6("yt-text-inline-expander-expanded-changed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],rY.prototype,"onRenderStamperFinished",null);_.Y([_.n6("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"onYtExpanderMoreTapped",null);_.Y([_.n6("yt-expander-less-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"onYtExpanderLessTapped",null);
_.Y([_.k_("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"registerPanel",null);_.Y([_.k_("videoSecondaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"resetDescriptionState",null);
_.Y([_.k_("structuredDescriptionContentRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"parseColorSamplingData",null);_.Y([_.k_("hoverColor","isDark"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rY.prototype,"updateHoverColor",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-watch-metadata"})],rY);
_.T(rY,"ytd-watch-metadata",function(){if(Soz!==void 0)return Soz;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Soz=g},{mode:2});var WP=function(){var g=_.X.apply(this,arguments)||this;g.hidden=!1;g.errorScreen=null;g.playlistData={};return g};
_.A(WP,_.X);_.P=WP.prototype;_.P.getPlayer=function(){return this.ytdPlayer};
_.P.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:yS(["aa","eocs"])}}};
_.P.onActiveChanged=function(){_.bR().dispatch(O8K(this.ytPageBehavior.active))};
_.P.playerDataChanged=function(){var g;(g=this.watchController)==null||g.setPlayerResponse(this.playerData)};
_.P.dataChanged=function(){var g;(g=this.watchController)==null||g.setWatchNextResponse(this.data)};
_.P.sizeChanged=function(){var g,u;(u=(g=this.metadata).resize)==null||u.call(g)};
_.P.attached=function(){this.watchController=new dD(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.P.detached=function(){_.Fo(this.watchController);this.watchController=void 0};
_.P.getPlayerContainer=function(){return this.playerContainer};
_.P.getElement=function(g){switch(g){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.P.provideRenderingData=function(g,u){switch(g){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=u;break;case "ERROR_SCREEN":this.errorScreen=u!=null?u:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=u;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=u;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=u;break;case "RICH_METADATA":this.richMetadataRowContainer=u;break;case "CLARIFICATION":this.clarificationData=u;break;case "PLAYLIST":this.playlistData=
u!=null?u:{};break;case "MERCH_SHELF":this.merchShelf=u;break;case "TICKET_SHELF":this.ticketShelf=u;break;case "LIMITED_STATE":this.limitedState=u;break;case "DONATION_SHELF":this.donationShelf=u;break;case "ALERTS":this.alerts=u}};
_.z3.Object.defineProperties(WP.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return!this.hidden&&!!((g=this.data)==null?0:(u=g.contents)==null?0:(q=u.twoColumnWatchNextResults)==null?0:q.conversationBar)}}});
WP.prototype.sizeChanged=WP.prototype.sizeChanged;WP.prototype.dataChanged=WP.prototype.dataChanged;WP.prototype.playerDataChanged=WP.prototype.playerDataChanged;WP.prototype.onActiveChanged=WP.prototype.onActiveChanged;_.Y([_.I(Ul.YtPageBehavior),_.K("design:type",Object)],WP.prototype,"ytPageBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],WP.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],WP.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"playerData",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],WP.prototype,"hidden",void 0);_.Y([_.oE("#ytd-player"),_.K("design:type",HTMLElement)],WP.prototype,"ytdPlayer",void 0);_.Y([_.oE("#player-container"),_.K("design:type",HTMLElement)],WP.prototype,"playerContainer",void 0);_.Y([_.oE("#metadata"),_.K("design:type",Object)],WP.prototype,"metadata",void 0);_.Y([_.oE("#playlist"),_.K("design:type",HTMLElement)],WP.prototype,"playlistPanel",void 0);
_.Y([_.a({selector:Q7L,reflectToAttribute:!0}),_.K("design:type",Object)],WP.prototype,"fixie",void 0);_.Y([_.a({selector:_.fEJ,reflectToAttribute:!0}),_.K("design:type",Object)],WP.prototype,"singleColumn",void 0);_.Y([_.a({selector:function(g){return _.Dc(g)&&!_.pe(g)},
reflectToAttribute:!0}),_.K("design:type",Object)],WP.prototype,"theater",void 0);_.Y([_.a({selector:_.pe,reflectToAttribute:!0}),_.K("design:type",Object)],WP.prototype,"fullscreen",void 0);_.Y([_.a({selector:q3n}),_.K("design:type",Object)],WP.prototype,"windowSize",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"singleColumnContents",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"errorScreen",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"playlistData",void 0);
_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"videoPrimaryInfoRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"videoSecondaryInfoRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"richMetadataRowContainer",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"clarificationData",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"commentsEntryPointHeaderRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"ticketShelf",void 0);
_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"merchShelf",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"donationShelf",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"limitedState",void 0);_.Y([_.a(),_.K("design:type",Object)],WP.prototype,"alerts",void 0);_.Y([_.C("playlistData"),_.K("design:type",Object),_.K("design:paramtypes",[])],WP.prototype,"hasPlaylistData",null);
_.Y([_.C("data","hidden"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WP.prototype,"hasChat",null);_.Y([_.k_("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WP.prototype,"onActiveChanged",null);_.Y([_.k_("playerData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WP.prototype,"playerDataChanged",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WP.prototype,"dataChanged",null);_.Y([_.k_("windowSize","singleColumn"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WP.prototype,"sizeChanged",null);
_.T(WP,"ytd-watch-fixie",function(){if(ZMp===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);ZMp=g}g=ZMp;return g},{mode:1});var N8n;var Ta=function(){var g=_.X.apply(this,arguments)||this;g.viewTransitionEnabled=_.w("enable_player_resize_transition");g.smallerChatMinHeight=_.w("live_chat_smaller_min_height");g.isDarkTheme=document.documentElement.hasAttribute("dark");g.defaultCollapsePlaylist=_.w("web_watch_default_collapse_playlist");g.respectAspectRatio=_.w("web_enable_aspect_ratio_fix");g.retroModeReduxValue=!1;g.persistentPanelVisibleValue=!1;return g};
_.A(Ta,_.X);_.P=Ta.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateRetroModeReduxValue=function(){_.w("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.P.updatePersistentPanelVisibleValue=function(){_.w("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.P.ready=function(){var g=this,u=function(){g.onColumnScroll()};
this.primary.addEventListener("scroll",u);this.secondary.addEventListener("scroll",u)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(g){_.w("web_watch_update_narrow_width_killswitch")||_.bR().dispatch(Kmb(!g.detail.value));this.ytdWatchBehavior.isTwoColumns_=g.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(g){this.ytdWatchBehavior.flexySmallWindow_=g.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(g){this.ytdWatchBehavior.flexyLargeWindow_=g.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(g){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=g.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(g){this.ytdWatchBehavior.watchNextCanShowMore=g.detail.value};
_.P.updateShownItemsFromBinding=function(g){g.detail.path?this.set(g.detail.path,g.detail.value):this.ytdWatchBehavior.watchNextShownItems=g.detail.value};
_.P.getElement=function(g){switch(g){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22210_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22210_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}};
_.z3.Object.defineProperties(Ta.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.pageVisualEffects)return!1;for(var u=0;u<this.data.pageVisualEffects.length;u++)if(g=_.c(this.data.pageVisualEffects[u],vB))return u=void 0,(u=g.config)==null?void 0:u.enableInLightTheme;return!1}}});
_.z3.Object.defineProperties(Ta,{template:{configurable:!0,enumerable:!0,get:function(){if(N8n===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);N8n=g}g=N8n;return g}}});
Ta.prototype.updatePersistentPanelVisibleValue=Ta.prototype.updatePersistentPanelVisibleValue;Ta.prototype.updateRetroModeReduxValue=Ta.prototype.updateRetroModeReduxValue;Ta.prototype.updateScrollTopValue=Ta.prototype.updateScrollTopValue;Ta.prototype.updateFullscreenValue=Ta.prototype.updateFullscreenValue;Ta.prototype.updateTheaterValue=Ta.prototype.updateTheaterValue;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Ta.prototype,"ytComponentBehavior",void 0);_.Y([_.I(ccn.YtdWatchBehavior),_.K("design:type",Object)],Ta.prototype,"ytdWatchBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Ta.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ta.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Ta.prototype,"playerData",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"viewTransitionEnabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"smallerChatMinHeight",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"isDarkTheme",void 0);_.Y([_.a(),_.K("design:type",Object)],Ta.prototype,"defaultCollapsePlaylist",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"respectAspectRatio",void 0);
_.Y([_.a({selector:_.Dc}),_.K("design:type",Object)],Ta.prototype,"theaterValue",void 0);_.Y([_.a({selector:_.pe}),_.K("design:type",Object)],Ta.prototype,"fullscreenValue",void 0);_.Y([_.a({selector:Br}),_.K("design:type",Object)],Ta.prototype,"scrollTopValue",void 0);_.Y([_.a({selector:_.jb}),_.K("design:type",Object)],Ta.prototype,"miniplayerIsActive",void 0);_.Y([_.a({selector:function(g){return g.watch.isWatchRetroMode}}),
_.K("design:type",Object)],Ta.prototype,"retroModeReduxValue",void 0);_.Y([_.a({selector:_.wy.persistentPanelVisibleSelector}),_.K("design:type",Object)],Ta.prototype,"persistentPanelVisibleValue",void 0);_.Y([xM("ytd-player"),_.K("design:type",HTMLElement)],Ta.prototype,"ytdPlayer",void 0);_.Y([_.oE("#playlist"),_.K("design:type",HTMLElement)],Ta.prototype,"JSC$22210_ytdPlaylistPanelRenderer",void 0);_.Y([xM("ytd-comments"),_.K("design:type",HTMLElement)],Ta.prototype,"ytdComments",void 0);
_.Y([_.oE("#primary"),_.K("design:type",HTMLElement)],Ta.prototype,"primary",void 0);_.Y([_.oE("#secondary"),_.K("design:type",HTMLElement)],Ta.prototype,"secondary",void 0);_.Y([_.oE("#player-container"),_.K("design:type",HTMLElement)],Ta.prototype,"playerContainer",void 0);_.Y([_.oE("#below"),_.K("design:type",HTMLElement)],Ta.prototype,"below",void 0);_.Y([_.oE("#cinematics"),_.K("design:type",HTMLElement)],Ta.prototype,"JSC$22210_cinematics",void 0);
_.Y([_.oE("#persistent-panel-container"),_.K("design:type",HTMLElement)],Ta.prototype,"persistentPanelContainer",void 0);_.Y([_.k_("theaterValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ta.prototype,"updateTheaterValue",null);_.Y([_.k_("fullscreenValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ta.prototype,"updateFullscreenValue",null);
_.Y([_.k_("scrollTopValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ta.prototype,"updateScrollTopValue",null);_.Y([_.k_("retroModeReduxValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ta.prototype,"updateRetroModeReduxValue",null);_.Y([_.k_("persistentPanelVisibleValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ta.prototype,"updatePersistentPanelVisibleValue",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ta.prototype,"cinematicLightTheme",null);_.Y([_.fE({is:"ytd-watch-flexy"})],Ta);var sLh;var yCt;var vTn=function(){return _.X.apply(this,arguments)||this};
_.A(vTn,_.X);_.Y([_.fE({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],vTn);
_.T(vTn,"ytd-ghost-comments-renderer",function(){if(yCt===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);yCt=g}g=yCt;return g},{mode:1});var DgH;var pmt=function(){return _.X.apply(this,arguments)||this};
_.A(pmt,_.X);_.Y([_.fE({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],pmt);
_.T(pmt,"ytd-ghost-watch-metadata-renderer",function(){if(DgH===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);DgH=g}g=DgH;return g},{mode:1});var hc=function(){var g=_.X.apply(this,arguments)||this;g.ghostGridRenderer={rows:6};g.smallerChatMinHeight=_.w("live_chat_smaller_min_height");g.darkerPanels=_.w("web_watch_darker_panels");g.isDarkTheme=document.documentElement.hasAttribute("dark");return g};
_.A(hc,_.X);_.P=hc.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var g=this,u=function(){g.onColumnScroll()};
this.primary.addEventListener("scroll",u);this.secondary.addEventListener("scroll",u)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(g){this.ytdWatchBehavior.isTwoColumns_=g.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(g){this.ytdWatchBehavior.flexySmallWindow_=g.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(g){this.ytdWatchBehavior.flexyLargeWindow_=g.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(g){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=g.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(g){this.ytdWatchBehavior.watchNextCanShowMore=g.detail.value};
_.P.updateShownItemsFromBinding=function(g){_.w("swatcheroo_direct_use_rich_grid")||(g.detail.path?this.set(g.detail.path,g.detail.value):this.ytdWatchBehavior.watchNextShownItems=g.detail.value)};
_.P.getElement=function(g){switch(g){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22215_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22215_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.z3.Object.defineProperties(hc.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.pageVisualEffects)return!1;for(var u=0;u<this.data.pageVisualEffects.length;u++)if(g=_.c(this.data.pageVisualEffects[u],vB))return u=void 0,(u=g.config)==null?void 0:u.enableInLightTheme;return!1}}});
hc.prototype.updateMiniplayerIsActiveValue=hc.prototype.updateMiniplayerIsActiveValue;hc.prototype.updateScrollTopValue=hc.prototype.updateScrollTopValue;hc.prototype.updateFullscreenValue=hc.prototype.updateFullscreenValue;hc.prototype.updateTheaterValue=hc.prototype.updateTheaterValue;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],hc.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(ccn.YtdWatchBehavior),_.K("design:type",Object)],hc.prototype,"ytdWatchBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],hc.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],hc.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],hc.prototype,"ghostGridRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],hc.prototype,"playerData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],hc.prototype,"smallerChatMinHeight",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],hc.prototype,"darkerPanels",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],hc.prototype,"isDarkTheme",void 0);_.Y([_.a({selector:_.Dc}),_.K("design:type",Object)],hc.prototype,"theaterValue",void 0);_.Y([_.a({selector:_.pe}),_.K("design:type",Object)],hc.prototype,"fullscreenValue",void 0);_.Y([_.a({selector:Br}),_.K("design:type",Object)],hc.prototype,"scrollTopValue",void 0);
_.Y([_.a({selector:_.jb}),_.K("design:type",Object)],hc.prototype,"miniplayerIsActiveValue",void 0);_.Y([_.oE("#ytd-player"),_.K("design:type",HTMLElement)],hc.prototype,"ytdPlayer",void 0);_.Y([_.oE("#playlist"),_.K("design:type",HTMLElement)],hc.prototype,"JSC$22215_ytdPlaylistPanelRenderer",void 0);_.Y([_.oE("#ytd-comments"),_.K("design:type",HTMLElement)],hc.prototype,"ytdComments",void 0);_.Y([_.oE("#primary"),_.K("design:type",HTMLElement)],hc.prototype,"primary",void 0);
_.Y([_.oE("#secondary"),_.K("design:type",HTMLElement)],hc.prototype,"secondary",void 0);_.Y([_.oE("#player-container"),_.K("design:type",HTMLElement)],hc.prototype,"playerContainer",void 0);_.Y([_.oE("#cinematics"),_.K("design:type",HTMLElement)],hc.prototype,"JSC$22215_cinematics",void 0);_.Y([_.k_("theaterValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hc.prototype,"updateTheaterValue",null);
_.Y([_.k_("fullscreenValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hc.prototype,"updateFullscreenValue",null);_.Y([_.k_("scrollTopValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hc.prototype,"updateScrollTopValue",null);_.Y([_.k_("miniplayerIsActiveValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hc.prototype,"updateMiniplayerIsActiveValue",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],hc.prototype,"cinematicLightTheme",null);
_.T(hc,"ytd-watch-grid",function(){if(sLh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);sLh=g}g=sLh;return g},{mode:2});var JCt;var YX=function(){var g=_.X.apply(this,arguments)||this;g.flexy=!0;g.learningJourney=!0;g.viewTransitionEnabled=_.w("enable_player_resize_transition");g.smallerChatMinHeight=_.w("live_chat_smaller_min_height");g.isDarkTheme=document.documentElement.hasAttribute("dark");g.theaterLargerPlayer=_.w("web_watch_theater_larger_player");g.defaultCollapsePlaylist=_.w("web_watch_default_collapse_playlist");g.enableCanvasLayout=_.w("web_enable_canvas_on_learning_journey");return g};
_.A(YX,_.X);_.P=YX.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var g=this,u=function(){g.onColumnScroll()};
this.primary.addEventListener("scroll",u);this.secondary.addEventListener("scroll",u)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(g){_.w("web_watch_update_narrow_width_killswitch")||_.bR().dispatch(Kmb(!g.detail.value));this.ytdWatchBehavior.isTwoColumns_=g.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(g){this.ytdWatchBehavior.flexySmallWindow_=g.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(g){this.ytdWatchBehavior.flexyLargeWindow_=g.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(g){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=g.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(g){this.ytdWatchBehavior.watchNextCanShowMore=g.detail.value};
_.P.updateShownItemsFromBinding=function(g){g.detail.path?this.set(g.detail.path,g.detail.value):this.ytdWatchBehavior.watchNextShownItems=g.detail.value};
_.P.getElement=function(g){switch(g){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22218_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22218_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.z3.Object.defineProperties(YX.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 g;if((g=this.data)==null||!g.pageVisualEffects)return!1;for(var u=0;u<this.data.pageVisualEffects.length;u++)if(g=_.c(this.data.pageVisualEffects[u],vB))return u=void 0,(u=g.config)==null?void 0:u.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.learningJourneyEngagementPanels)==null?void 0:g.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var g,u=(g=this.learningJourneyEngagementPanels)==null?void 0:g.find(function(G){var R;return(G==null?void 0:(R=G.engagementPanelSectionListRenderer)==null?void 0:R.panelIdentifier)==="learning-journey-engagement-panel"});
if(u){var q,Q,L,E,y,v,J,f,t;if(g=(f=((J=(y=((E=u==null?void 0:(q=u.engagementPanelSectionListRenderer)==null?void 0:(Q=q.content)==null?void 0:(L=Q.sectionListRenderer)==null?void 0:L.contents)!=null?E:[])[0])==null?void 0:(v=y.itemSectionRenderer)==null?void 0:v.contents)!=null?J:[])[0])==null?void 0:(t=f.accordionViewModel)==null?void 0:t.onTitleTap){var e=_.jy(g);if(e)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.ze.instance.resolveCommand(e)}}}}}}});
_.z3.Object.defineProperties(YX,{template:{configurable:!0,enumerable:!0,get:function(){if(JCt===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);JCt=g}g=JCt;return g}}});
YX.prototype.updateMiniplayerIsActiveValue=YX.prototype.updateMiniplayerIsActiveValue;YX.prototype.updateScrollTopValue=YX.prototype.updateScrollTopValue;YX.prototype.updateFullscreenValue=YX.prototype.updateFullscreenValue;YX.prototype.updateTheaterValue=YX.prototype.updateTheaterValue;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],YX.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(UdH.YtdLearningJourneyWatchBehavior),_.K("design:type",Object)],YX.prototype,"ytdWatchBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],YX.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],YX.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],YX.prototype,"playerData",void 0);_.Y([_.a(),_.K("design:type",Object)],YX.prototype,"browseData",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],YX.prototype,"flexy",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],YX.prototype,"learningJourney",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],YX.prototype,"viewTransitionEnabled",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],YX.prototype,"smallerChatMinHeight",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],YX.prototype,"isDarkTheme",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],YX.prototype,"theaterLargerPlayer",void 0);_.Y([_.a(),_.K("design:type",Object)],YX.prototype,"defaultCollapsePlaylist",void 0);_.Y([_.a(),_.K("design:type",Object)],YX.prototype,"enableCanvasLayout",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("playerData","browseData","enableCanvasLayout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],YX.prototype,"showBrowseResponse",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("playerData","enableCanvasLayout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],YX.prototype,"showWatchResponse",null);_.Y([_.a({selector:_.Dc}),_.K("design:type",Object)],YX.prototype,"theaterValue",void 0);_.Y([_.a({selector:_.pe}),_.K("design:type",Object)],YX.prototype,"fullscreenValue",void 0);_.Y([_.a({selector:Br}),_.K("design:type",Object)],YX.prototype,"scrollTopValue",void 0);
_.Y([_.a({selector:_.jb}),_.K("design:type",Object)],YX.prototype,"miniplayerIsActiveValue",void 0);_.Y([_.oE("#ytd-plj-player"),_.K("design:type",HTMLElement)],YX.prototype,"ytdPlayer",void 0);_.Y([_.oE("#playlist"),_.K("design:type",HTMLElement)],YX.prototype,"JSC$22218_ytdPlaylistPanelRenderer",void 0);_.Y([xM("ytd-comments"),_.K("design:type",HTMLElement)],YX.prototype,"ytdComments",void 0);_.Y([_.oE("#primary"),_.K("design:type",HTMLElement)],YX.prototype,"primary",void 0);
_.Y([_.oE("#secondary"),_.K("design:type",HTMLElement)],YX.prototype,"secondary",void 0);_.Y([_.oE("#player-container"),_.K("design:type",HTMLElement)],YX.prototype,"playerContainer",void 0);_.Y([_.oE("#cinematics"),_.K("design:type",HTMLElement)],YX.prototype,"JSC$22218_cinematics",void 0);_.Y([_.k_("theaterValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YX.prototype,"updateTheaterValue",null);
_.Y([_.k_("fullscreenValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YX.prototype,"updateFullscreenValue",null);_.Y([_.k_("scrollTopValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YX.prototype,"updateScrollTopValue",null);_.Y([_.k_("miniplayerIsActiveValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YX.prototype,"updateMiniplayerIsActiveValue",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],YX.prototype,"cinematicLightTheme",null);_.Y([_.a({reflectToAttribute:!0}),_.C("learningJourneyEngagementPanels"),_.K("design:type",Object),_.K("design:paramtypes",[])],YX.prototype,"hasLearningJourneyPanels",null);_.Y([_.C("learningJourneyEngagementPanels"),_.K("design:type",Object),_.K("design:paramtypes",[])],YX.prototype,"backButtonData",null);_.Y([_.fE({is:"ytd-watch-learning-journey"})],YX);var jLp;var ON=function(){var g=_.X.apply(this,arguments)||this;g.systemIcons=_.w("kevlar_system_icons");return g};
_.A(ON,_.X);_.P=ON.prototype;_.P.ready=function(){this.hostElement.addEventListener("tap",_.zr(this,this.onEndpointTapExtra))};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var g;(g=_.Tr(this.hostElement).querySelector("tp-yt-paper-item"))==null||g.focus()};
_.P.onEndpointTapExtra=function(g){_.hJ(this.hostElement,"iron-activate");var u=this.data.navigationEndpoint;u&&_.c(u,_.VrJ)&&(g.stopPropagation(),_.xJ(this.hostElement,[u],this.hostElement))};
_.P.computeIcon=function(g){return g&&g.iconType?_.x9(g.iconType):""};
_.P.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.w("kevlar_legacy_browsers")&&_.x_(this.hostElement)};
ON.prototype.forceUpdateStylesOnLegacyBrowsers=ON.prototype.forceUpdateStylesOnLegacyBrowsers;ON.prototype.onFocus=ON.prototype.onFocus;_.Y([_.I(_.dx),_.K("design:type",Object)],ON.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.Lst.YtConditionalRendererBehavior),_.K("design:type",Object)],ON.prototype,"ytConditionalRendererBehavior",void 0);_.Y([_.I(_.KK.YtEndpointBehavior),_.K("design:type",Object)],ON.prototype,"ytEndpointBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],ON.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon(data.icon)",value:""}),_.K("design:type",String)],ON.prototype,"icon",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ON.prototype,"useIcons",void 0);_.Y([_.a({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ON.prototype,"hasSeparator",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ON.prototype,"systemIcons",void 0);_.Y([_.n6("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ON.prototype,"onFocus",null);_.Y([_.k_("useIcons","hasSeparator"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ON.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.T(ON,"ytd-menu-navigation-item-renderer",function(){if(jLp===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);jLp=g}g=jLp;return g},{mode:1});var fph;var M6f=_.I7(_.Ug("DOWNLOAD",{},"Download")),t6H=_.I7(_.Ug("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),e$x=_.I7(_.Ug("RETRY",{},"Retry")),GOh=_.I7(_.Ug("PAUSE_DOWNLOADING",{},"Pause downloading")),$gH=_.I7(_.Ug("RESUME_DOWNLOAD",{},"Resume download")),Kk=function(){var g=_.X.apply(this,arguments)||this;g.primaryText=M6f;g.primaryIconType="OFFLINE_DOWNLOAD";g.hasSecondaryContent=!1;g.hasSeparator=!1;g.transferState="TRANSFER_STATE_UNKNOWN";g.isVideoDeletedByUser=!1;g.isHidden=!1;g.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return g};
_.A(Kk,_.X);_.P=Kk.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){this.primaryEntry.focus()};
_.P.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.P.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.P.getRemoveAction=function(){return"ACTION_REMOVE"};
_.P.sendOfflineAction=function(g){var u=this.data.serviceEndpoint;if(u){var q=_.c(u,_.zc);q&&g&&(q.action=g);this.ytComponentBehavior.resolveCommand(u)}};
_.P.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=M6f,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=M6f;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=e$x;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=t6H;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=$gH;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=t6H;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
GOh;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=t6H;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=t6H;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=M6f,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.P.showHideButton=function(){var g;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((g=this.playerStateEntity)==null?void 0:g.adsState)==="ADS_STATE_PLAYING"};
_.P.isSecondaryEntryHidden=function(g,u){return g?!0:!u};
_.P.computeHasSeparator=function(){var g;return!((g=this.data)==null||!g.hasSeparator)};
_.P.computePlayerStateEntityKey=function(g){return g};
Kk.prototype.showHideButton=Kk.prototype.showHideButton;Kk.prototype.onTransferStateChange=Kk.prototype.onTransferStateChange;Kk.prototype.onFocus=Kk.prototype.onFocus;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Kk.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Kk.prototype,"ytComponentBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],Kk.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Kk.prototype,"primaryText",void 0);_.Y([_.a(),_.K("design:type",String)],Kk.prototype,"primaryIconType",void 0);_.Y([_.a(),_.K("design:type",String)],Kk.prototype,"primaryAction",void 0);_.Y([_.a(),_.K("design:type",Object)],Kk.prototype,"secondaryText",void 0);_.Y([_.a(),_.K("design:type",String)],Kk.prototype,"secondaryIconType",void 0);
_.Y([_.a(),_.K("design:type",String)],Kk.prototype,"secondaryAction",void 0);_.Y([_.a(),_.K("design:type",Object)],Kk.prototype,"hasSecondaryContent",void 0);_.Y([_.a({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.K("design:type",Object)],Kk.prototype,"hasSeparator",void 0);_.Y([_.a({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.K("design:type",String)],Kk.prototype,"playerStateEntityKey",void 0);
_.Y([_.a({selector:_.ho,selectorArgs:["playerStateEntityKey"]}),_.K("design:type",Object)],Kk.prototype,"playerStateEntity",void 0);_.Y([_.a({selector:_.tD,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.K("design:type",String)],Kk.prototype,"transferState",void 0);_.Y([_.a({selector:_.ToT,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.K("design:type",Object)],Kk.prototype,"isVideoDeletedByUser",void 0);
_.Y([_.a(),_.K("design:type",Object)],Kk.prototype,"isHidden",void 0);_.Y([_.a({selector:_.Ffm,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.K("design:type",Object)],Kk.prototype,"offlineabilityState",void 0);_.Y([_.oE("#primary-entry"),_.K("design:type",Object)],Kk.prototype,"primaryEntry",void 0);_.Y([_.n6("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kk.prototype,"onFocus",null);
_.Y([_.qm("transferState","isVideoDeletedByUser"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kk.prototype,"onTransferStateChange",null);_.Y([_.qm("offlineabilityState","playerStateEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kk.prototype,"showHideButton",null);
_.T(Kk,"ytd-menu-service-item-download-renderer",function(){if(fph===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);fph=g}g=fph;return g},{mode:1});var R$H;var xX=function(){var g=_.X.apply(this,arguments)||this;g.useIcons=!1;g.systemIcons=_.w("kevlar_system_icons");return g};
_.A(xX,_.X);_.P=xX.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var g;(g=_.Tr(this.hostElement).querySelector("tp-yt-paper-item"))==null||g.focus()};
_.P.onTap=function(){_.Og(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var g=this.data.serviceEndpoint,u=this.data.command;if(g){var q,Q=(q=this.data)==null?void 0:q.trackingParams;q=!!_.c(g,_.d8b);Q&&q&&_.bR().dispatch(_.rF({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:Q}}));this.ytComponentBehavior.resolveCommand(g)||_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}})}u&&(this.ytComponentBehavior.resolveCommand(u)||_.xJ(this.hostElement,
[u],this.hostElement))};
_.P.computeIcon=function(g){return g&&g.iconType?_.x9(g.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.computeHasSeparator=function(){var g;return!((g=this.data)==null||!g.hasSeparator)};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.w("kevlar_legacy_browsers")&&_.x_(this.hostElement)};
_.P.computeIsSelected=function(){var g;return!((g=this.data)==null||!g.isSelected)};
xX.prototype.forceUpdateStylesOnLegacyBrowsers=xX.prototype.forceUpdateStylesOnLegacyBrowsers;xX.prototype.onTap=xX.prototype.onTap;xX.prototype.onFocus=xX.prototype.onFocus;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],xX.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],xX.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(_.Lst.YtConditionalRendererBehavior),_.K("design:type",Object)],xX.prototype,"ytConditionalRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],xX.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon(data.icon)",value:""}),_.K("design:type",String)],xX.prototype,"icon",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],xX.prototype,"useIcons",void 0);
_.Y([_.a({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.K("design:type",Boolean)],xX.prototype,"hasSeparator",void 0);_.Y([_.a({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.K("design:type",Boolean)],xX.prototype,"isSelected",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],xX.prototype,"systemIcons",void 0);
_.Y([_.n6("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xX.prototype,"onFocus",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],xX.prototype,"onTap",null);_.Y([_.k_("useIcons","hasSeparator"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xX.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.T(xX,"ytd-menu-service-item-renderer",function(){if(R$H===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);R$H=g}g=R$H;return g},{mode:2});var wmC;var BP=function(){return _.X.apply(this,arguments)||this};
_.A(BP,_.X);_.P=BP.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var g=this;_.xt(this,function(){g.postbox.openDialog();g.focus();_.hJ(g.hostElement,"yt-refit")})};
_.P.focus=function(){this.postbox.focus()};
_.P.closePopup=function(){_.YJ(this.hostElement,"yt-close-popup-action")};
_.P.onYtCommentboxDismiss=function(){this.closePopup()};
BP.prototype.onYtCommentboxDismiss=BP.prototype.onYtCommentboxDismiss;BP.prototype.onDataChanged=BP.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],BP.prototype,"data",void 0);_.Y([_.a({value:function(){return _.Ug("SBOX_INAPPROPRIATE_CANCEL")}}),
_.K("design:type",String)],BP.prototype,"closeButtonAriaLabel",void 0);_.Y([_.oE("#postbox"),_.K("design:type",Object)],BP.prototype,"postbox",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BP.prototype,"onDataChanged",null);_.Y([_.n6("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BP.prototype,"onYtCommentboxDismiss",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],BP);
_.T(BP,"ytd-backstage-post-dialog-popup-renderer",function(){if(wmC!==void 0)return wmC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return wmC=g},{mode:1});var cCz;var za=function(){var g=_.X.apply(this,arguments)||this;g.modernModal=!0;return g};
_.A(za,_.X);za.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
za.prototype.computeShouldHideOldButtons=function(){var g;return!((g=this.data)==null?0:g.button)};
_.z3.Object.defineProperties(za.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var g,u;return(g=this.data)==null?void 0:(u=g.button)==null?void 0:u.buttonRenderer}}});
_.Y([_.a(),_.K("design:type",Object)],za.prototype,"data",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],za.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],za.prototype,"modernModal",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],za.prototype,"buttonRendererData",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],za);
_.T(za,"ytd-modal-with-title-and-button-renderer",function(){if(cCz!==void 0)return cCz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return cCz=g},{mode:1});var HCL;var nk=function(){return _.X.apply(this,arguments)||this};
_.A(nk,_.X);nk.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("page-changed",this.page))};
nk.prototype.pageChangedForBinding=nk.prototype.pageChangedForBinding;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],nk.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],nk.prototype,"page",void 0);_.Y([_.k_("page"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nk.prototype,"pageChangedForBinding",null);
_.Y([_.fE({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],nk);
_.T(nk,"ytd-account-item-section-header-renderer",function(){if(HCL!==void 0)return HCL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return HCL=g},{mode:1});var ACf;var kX=function(){return _.X.apply(this,arguments)||this};
_.A(kX,_.X);kX.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"}}}};
kX.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.i5),_.K("design:type",Object)],kX.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],kX.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!1}),_.K("design:type",Function)],kX.prototype,"onAccountItemTap",void 0);
_.Y([_.fE({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],kX);
_.T(kX,"ytd-account-item-section-renderer",function(){if(ACf!==void 0)return ACf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ACf=g},{mode:1});var ZCZ;var lpL;var IpH=function(){return _.X.apply(this,arguments)||this};
_.A(IpH,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],IpH.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],IpH.prototype,"data",void 0);_.Y([_.fE({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],IpH);
_.T(IpH,"ytd-accounts-dialog-header-renderer",function(){if(lpL!==void 0)return lpL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return lpL=g},{mode:1});var iCC;var S1=function(){return _.X.apply(this,arguments)||this};
_.A(S1,_.X);S1.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],S1.prototype,"data",void 0);_.Y([_.fE({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],S1);
_.T(S1,"ytd-google-account-header-renderer",function(){if(iCC!==void 0)return iCC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return iCC=g},{mode:1});var oZ=function(){return _.X.apply(this,arguments)||this};
_.A(oZ,_.X);oZ.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"}}}};
oZ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("page-changed",this.page))};
oZ.prototype.pageChangedForBinding=oZ.prototype.pageChangedForBinding;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],oZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],oZ.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],oZ.prototype,"page",void 0);
_.Y([_.k_("page"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oZ.prototype,"pageChangedForBinding",null);_.Y([_.fE({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],oZ);
_.Te()(oZ,"ytd-account-section-list-renderer",function(){if(ZCZ===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);ZCZ=g}g=ZCZ;return g},{allowedProps:["data"],
mode:1});var C9x;var UN=function(){var g=_.X.apply(this,arguments)||this;g.enableHandlesAccountMenuSwitcher=_.w("enable_handles_account_menu_switcher");return g};
_.A(UN,_.X);UN.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
UN.prototype.dataChanged=UN.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],UN.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],UN.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.Y([_.oE("#avatar"),_.K("design:type",Object)],UN.prototype,"avatar",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UN.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],UN);
_.Te()(UN,"ytd-active-account-header-renderer",function(){if(C9x===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);C9x=g}g=C9x;return g},{allowedProps:["data"],
mode:1});var bCE;var dgZ;var gM=function(){return _.X.apply(this,arguments)||this};
_.A(gM,_.X);gM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
gM.prototype.onBackTap=function(){_.hJ(this.hostElement,"yt-menu-back-tapped")};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],gM.prototype,"data",void 0);_.Y([_.fE({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],gM);
_.Te()(gM,"ytd-simple-menu-header-renderer",function(){if(dgZ===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);dgZ=g}g=dgZ;return g},{allowedProps:["data"],
mode:2});var FNx;var mgt=function(){return _.X.apply(this,arguments)||this};
_.A(mgt,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mgt.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],mgt.prototype,"data",void 0);_.Y([_.fE({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],mgt);
_.T(mgt,"ytd-comment-video-thumbnail-header-renderer",function(){if(FNx!==void 0)return FNx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return FNx=g},{mode:1});var apx;var V6C=function(){return _.X.apply(this,arguments)||this};
_.A(V6C,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],V6C.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],V6C.prototype,"data",void 0);_.Y([_.fE({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],V6C);
_.T(V6C,"ytd-abuse-type-selector-renderer",function(){if(apx!==void 0)return apx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return apx=g},{mode:1});var Xm9;var rCz=(0,_.EU8)(_.LIR.reportChannelAbuse,{isVideoIdSelectedSelector:function(g,u){return u in g.selectedVideoIds},
additionalContextSelector:function(g){return g.additionalContext},
impersonatedChannelUrlSelector:function(g){return g.impersonatedChannelUrl},
reportChannelAbuseSelector:function(g){return g}});var um=function(){return _.X.apply(this,arguments)||this};
_.A(um,_.X);um.prototype.attached=function(){var g=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){g.additionalContextInput.focusTextInput()})};
um.prototype.handleAdditionalContextChanged=function(){var g=this;_.c$(this,"ytd-report-channel-additional-context-update",function(){g.ytdReduxBehavior.dispatch(_.rF({type:"ADDITIONAL_CONTEXT_UPDATED",payload:g.additionalContext}))},300)};
um.prototype.updateAdditionalContextFromBinding=function(g){this.additionalContext=g.detail.value};
um.prototype.handleAdditionalContextChanged=um.prototype.handleAdditionalContextChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],um.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",String)],um.prototype,"additionalContext",void 0);_.Y([_.a({selector:rCz.additionalContextSelector}),_.K("design:type",String)],um.prototype,"additionalContextRedux",void 0);_.Y([_.a(),_.K("design:type",Object)],um.prototype,"data",void 0);
_.Y([_.oE("yt-text-input-form-field-renderer"),_.K("design:type",Object)],um.prototype,"additionalContextInput",void 0);_.Y([_.k_("additionalContext"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],um.prototype,"handleAdditionalContextChanged",null);_.Y([_.fE({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],um);
_.T(um,"ytd-report-channel-modal-additional-context-renderer",function(){if(Xm9!==void 0)return Xm9;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Xm9=g},{mode:1});var WNf;var q9=function(){var g=_.X.apply(this,arguments)||this;g.nextButtonDisabled=null;g.submitEndpoint=null;g.navigationEndpoint=null;g.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return g};
_.A(q9,_.X);_.P=q9.prototype;_.P.computeNextButtonData=function(g,u,q){var Q={};u&&(Q.navigationEndpoint=u);q&&(Q.serviceEndpoint=q);g&&g.buttonRenderer&&_.pH.extend(Q,g.buttonRenderer);return Q};
_.P.handleReportChannelModalDisableNextButtonAction=function(g){this.setNextButtonIsDisabled(g)};
_.P.handleReportFormEndpointUpdateAction=function(g){this.setNextButtonIsDisabled(!!g.disableSubmitButton);this.resetEndpointData();g.submitEndpoint?this.submitEndpoint=g.submitEndpoint:g.submitNavigationEndpoint&&(this.navigationEndpoint=g.submitNavigationEndpoint)};
_.P.handleSignalActionSubmitForm=function(){var g,u=Object.keys(((g=this.reportChannelAbuseForm)==null?void 0:g.selectedVideoIds)||{}),q;g=((q=this.reportChannelAbuseForm)==null?void 0:q.additionalContext)||"";var Q;q=((Q=this.reportChannelAbuseForm)==null?void 0:Q.impersonatedChannelUrl)||"";var L;if((L=this.data)==null?0:L.submitEndpoint){u={impersonated_channel_url:q,text:g,video_ids:u};var E;_.Bk().resolve(_.Gy).resolveCommand((E=this.data)==null?void 0:E.submitEndpoint,{form:Object.assign({},
u,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.P.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.P.onYtServiceRequestError=function(g){this.setNextButtonIsDisabled(!1);_.A7(this.hostElement,g.detail.error.message)};
_.P.setNextButtonIsDisabled=function(g){this.set("data.nextButton.buttonRenderer.isDisabled",g)};
_.P.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
q9.prototype.onYtServiceRequestError=q9.prototype.onYtServiceRequestError;q9.prototype.onYtServiceRequestCompleted=q9.prototype.onYtServiceRequestCompleted;_.Y([_.a(),_.K("design:type",Object)],q9.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],q9.prototype,"nextButtonDisabled",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],q9.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],q9.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],q9.prototype,"submitEndpoint",void 0);_.Y([_.a(),_.K("design:type",Object)],q9.prototype,"navigationEndpoint",void 0);_.Y([_.a({selector:rCz.reportChannelAbuseSelector}),_.K("design:type",Object)],q9.prototype,"reportChannelAbuseForm",void 0);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],q9.prototype,"onYtServiceRequestCompleted",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],q9.prototype,"onYtServiceRequestError",null);_.Y([_.fE({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],q9);
_.T(q9,"ytd-report-channel-modal-footer-renderer",function(){if(WNf!==void 0)return WNf;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return WNf=g},{mode:1});var T8t;var Q_=function(){var g=_.X.apply(this,arguments)||this;g.boundOnTapDismissButton=function(){g.closePopup()};
return g};
_.A(Q_,_.X);Q_.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Q_.prototype.handleDataChanged=function(){_.h6(this.hostElement)};
Q_.prototype.closePopup=function(){_.YJ(this.hostElement,"yt-close-popup-action")};
Q_.prototype.handleDataChanged=Q_.prototype.handleDataChanged;_.Y([_.a(),_.K("design:type",Object)],Q_.prototype,"boundOnTapDismissButton",void 0);_.Y([_.a(),_.K("design:type",Object)],Q_.prototype,"data",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q_.prototype,"handleDataChanged",null);_.Y([_.fE({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Q_);
_.T(Q_,"ytd-report-channel-modal-header-renderer",function(){if(T8t!==void 0)return T8t;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return T8t=g},{mode:1});var h$z;var L5=function(){var g=_.X.apply(this,arguments)||this;g.autoValidate=!1;g.invalid=!1;g.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return g};
_.A(L5,_.X);_.P=L5.prototype;_.P.attached=function(){var g=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){g.channelUrlInput.focusTextInput()})};
_.P.disableNextButton=function(g){_.YJ(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[g])};
_.P.handleImpersonatedChannelUrlChanged=function(){var g=this;this.disableNextButton(!0);this.invalid=!1;_.c$(this,"ytd-report-channel-impersonated-channel-update",function(){var u=g.impersonatedChannelUrl.trim();g.ytdReduxBehavior.dispatch(_.rF({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:u}));var q;((q=g.data)==null?0:q.submitEndpoint)&&u&&_.Bk().resolve(_.Gy).resolveCommand(g.data.submitEndpoint,{form:{impersonated_channel_url:u,element:g.hostElement}})},500)};
_.P.handleModifyReportFormCommand=function(g){this.invalid=this.get("modifyReportFormCommand.action",g)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.P.updateInvalidFromBinding=function(g){this.invalid=g.detail.value};
_.P.updateImpersonatedChannelUrlFromBinding=function(g){this.impersonatedChannelUrl=g.detail.value};
L5.prototype.handleImpersonatedChannelUrlChanged=L5.prototype.handleImpersonatedChannelUrlChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],L5.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],L5.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],L5.prototype,"autoValidate",void 0);_.Y([_.a(),_.K("design:type",Object)],L5.prototype,"invalid",void 0);
_.Y([_.a(),_.K("design:type",String)],L5.prototype,"impersonatedChannelUrl",void 0);_.Y([_.a({selector:rCz.impersonatedChannelUrlSelector}),_.K("design:type",String)],L5.prototype,"impersonatedChannelUrlRedux",void 0);_.Y([_.a(),_.K("design:type",Object)],L5.prototype,"data",void 0);_.Y([_.oE("#text-input"),_.K("design:type",Object)],L5.prototype,"channelUrlInput",void 0);
_.Y([_.k_("impersonatedChannelUrl"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L5.prototype,"handleImpersonatedChannelUrlChanged",null);_.Y([_.fE({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],L5);
_.T(L5,"ytd-report-channel-modal-impersonation-renderer",function(){if(h$z!==void 0)return h$z;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return h$z=g},{mode:1});var YhE;var OCK;var Es=function(){return _.X.apply(this,arguments)||this};
_.A(Es,_.X);Es.prototype.onCheckboxToggled=function(g){var u,q,Q=(q=_.c((u=this.data)==null?void 0:u.video,_.W4X))==null?void 0:q.videoId;Q&&this.ytdReduxBehavior.dispatch(g.target.checked?_.rF({type:"VIDEO_SELECTED",payload:Q}):_.rF({type:"VIDEO_UNSELECTED",payload:Q}))};
Es.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.z3.Object.defineProperties(Es.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var g,u=(g=this.data)==null?void 0:g.video;if(!u)return{};var q;g=(q=_.c(u,_.W4X))==null?void 0:q.navigationEndpoint;if(!g)return u;_.c(g==null?void 0:g.commandMetadata,_.S_)&&(_.c(g.commandMetadata,_.S_).ignoreNavigation=!0);return u}}});
_.Y([_.a({reflectToAttribute:!0,selector:rCz.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.K("design:type",Boolean)],Es.prototype,"checked",void 0);_.Y([_.a(),_.K("design:type",Object)],Es.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Es.prototype,"video",null);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Es.prototype,"ytdReduxBehavior",void 0);_.Y([_.fE({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Es);
_.T(Es,"ytd-selectable-video-renderer",function(){if(OCK!==void 0)return OCK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return OCK=g},{mode:1});var P0=function(){var g=_.X.apply(this,arguments)||this;g.monitorScroll=!0;return g};
_.A(P0,_.X);P0.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],P0.prototype,"data",void 0);_.Y([_.fE({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],P0);
_.T(P0,"ytd-selectable-video-list-renderer",function(){if(YhE!==void 0)return YhE;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return YhE=g},{mode:1});var KN9;_.Ny("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var N9=function(){return _.X.apply(this,arguments)||this};
_.A(N9,_.X);N9.prototype.onChange=function(g){if(g=_.bd(g).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.w("kevlar_command_handler_migration_killswitch"))_.xJ(this.hostElement,g,this.hostElement);else{g=_.N(g);for(var u=g.next();!u.done;u=g.next())this.ytComponentBehavior.resolveCommand(u.value)}};
N9.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
N9.prototype.updateDataToggledFromBinding=function(g){this.set("data.toggled",g.detail.value)};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],N9.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],N9.prototype,"data",void 0);_.Y([_.a({computed:"isEnabled(data)"}),_.K("design:type",Boolean)],N9.prototype,"enabled",void 0);_.Y([_.fE({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],N9);
_.T(N9,"ytd-toggle-item-renderer",function(){if(KN9!==void 0)return KN9;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return KN9=g},{mode:1});var xgn;var B8E;var z$z;var ss=function(){var g=_.X.apply(this,arguments)||this;g.setVisible=!1;g.boundOnSubmitButtonClick=function(){g.onSubmitButtonClick()};
g.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return g};
_.A(ss,_.X);ss.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}}}}}};
ss.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
ss.prototype.onSubmitButtonClick=function(){var g;((g=this.data)==null?0:g.submitEndpoint)&&!_.w("enable_ytc_refunds_submit_form_signal_action")&&_.KV(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
ss.prototype.handleSignalActionSubmitForm=function(){var g;((g=this.data)==null?0:g.submitEndpoint)&&_.KV(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.z3.Object.defineProperties(ss.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.hiddenByDefault)&&!this.setVisible}}});
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ss.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ss.prototype,"setVisible",void 0);_.Y([_.a(),_.K("design:type",Object)],ss.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],ss.prototype,"surveyFeedbackData",void 0);_.Y([_.a(),_.K("design:type",Object)],ss.prototype,"boundOnSubmitButtonClick",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data","setVisible"),_.K("design:type",Object),_.K("design:paramtypes",[])],ss.prototype,"visibilityHidden",null);_.Y([_.jP({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],ss);
_.T(ss,"yt-flow-footer-renderer",function(){if(z$z===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;B8E===void 0&&(B8E=document.createElement("template"));var Q=B8E;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);z$z=g}g=z$z;return g},{mode:2});var nTZ=(0,_.EU8)(_.LIR.ypc,{surveyFeedbackDataSelector:function(g){return g.surveyFeedbackData}});var y_=function(){return _.X.apply(this,arguments)||this};
_.A(y_,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],y_.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],y_.prototype,"data",void 0);_.Y([_.a({selector:nTZ.surveyFeedbackDataSelector}),_.K("design:type",Object)],y_.prototype,"surveyFeedbackData",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],y_);
_.T(y_,"ytd-flow-footer-renderer",function(){if(xgn!==void 0)return xgn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return xgn=g},{mode:2});var kOE;var Shf;var v0=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return g};
_.A(v0,_.X);_.P=v0.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.sp("multiPageMenuSectionItems")}}};
_.P.handleHideEnclosingAction_=function(g){if(this.data&&this.data.items)for(var u=0;u<this.data.items.length;u++){var q=this.data.items[u].notificationRenderer;if(q&&q.notificationId==g.hideEnclosingAction.notificationId){this.splice("data.items",u,1);_.YJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.P.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Ox(this.hostElement,"hidden",!0)};
_.P.updateMenu_=function(g){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&g&&!g.doNotRefreshInbox){g=this.data.continuations;for(var u=0;u<g.length;u++)if(g[u].invalidationContinuationData){var q=void 0;var Q=(q=g[u].invalidationContinuationData)==null?void 0:q.continuation;break}g=_.pH.clone(this.data.continuationUpdateEndpoint||null);g.continuation=Q;g.click_tracking_params=this.data.trackingParams;_.KV(this.hostElement,[g])}};
_.P.onServiceRequestCompleted_=function(g,u){if(this.data&&(g=u.actions)){u=0;for(var q=g.length;u<q;u++){var Q=_.c(g[u],_.gIi);if(!Q)break;if((Q.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||Q.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&Q.continuationItems&&this.data.items){var L=this.data.items.length-1;this.data.items[L].continuationItemRenderer&&(Q=["data.items",L,1].concat(Q.continuationItems),this.splice.apply(this,Q))}}}};
v0.prototype.onServiceRequestCompleted_=v0.prototype.onServiceRequestCompleted_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],v0.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],v0.prototype,"data",void 0);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],v0.prototype,"onServiceRequestCompleted_",null);_.Y([_.jP({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],v0);
_.Te()(v0,"yt-multi-page-menu-section-renderer",function(){if(Shf===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;kOE===void 0&&(kOE=document.createElement("template"));var Q=kOE;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Shf=g}g=Shf;return g},{allowedProps:["data"],
mode:2});var oTp;var UgL;var Dn=function(){return _.X.apply(this,arguments)||this};
_.A(Dn,_.X);Dn.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.z3.Object.defineProperties(Dn.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.progress)==null?0:this.data.progress*100}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Dn.prototype,"data",void 0);_.Y([_.C("data.progress"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Dn.prototype,"showProgressBar",null);
_.Y([_.C("data.progress"),_.K("design:type",Number),_.K("design:paramtypes",[])],Dn.prototype,"progress",null);_.Y([_.jP({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Dn);
_.T(Dn,"yt-flow-header-renderer",function(){if(UgL===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;oTp===void 0&&(oTp=document.createElement("template"));var Q=oTp;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);UgL=g}g=UgL;return g},{mode:2});var gRh;var u$C;var p5=function(){return _.X.apply(this,arguments)||this};
_.A(p5,_.X);p5.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],p5.prototype,"data",void 0);_.Y([_.jP({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],p5);
_.T(p5,"yt-post-confirmation-flow-step-renderer",function(){if(u$C===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;gRh===void 0&&(gRh=document.createElement("template"));var Q=gRh;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);u$C=g}g=u$C;return g},{mode:2});var qqn;var Qyf;var JU=function(){return _.X.apply(this,arguments)||this};
_.A(JU,_.X);
JU.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"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],JU.prototype,"data",void 0);_.Y([_.jP({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],JU);
_.T(JU,"yt-refund-confirmation-flow-step-renderer",function(){if(Qyf===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;qqn===void 0&&(qqn=document.createElement("template"));var Q=qqn;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Qyf=g}g=Qyf;return g},{mode:2});var LUC=_.r(function(g){var u=g.data;return _.p("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.p("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.p(_.IT,{data:function(){return{thumbnails:[{url:u().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.p("div",{class:"profileBadgeViewModelContent"},_.p("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return u().badgeDesc}),_.p(_.M,{cond:function(){return u().badgeSubtitle},
then:function(){return _.p("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return u().badgeSubtitle})}})))},"Xk");
LUC.idomCompat=!0;var ERz=_.r(function(g){var u=g.data;return _.p("yt-comment-interaction-view-model",{el:_.lF(_.J7(function(){return u().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.p("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return u().onTapA11yLabel},
"on:keydown":_.sI(),tabindex:0},_.p("div",{class:"ytCommentInteractionViewModelHeader"},_.p("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return u().headerPrefix},' "',function(){return u().videoTitle}),_.p("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.p("div",{class:"ytCommentInteractionViewModelContent"},_.p("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return u().commentContent}),_.p("div",{class:"ytCommentInteractionViewModelChevron"},
_.p(_.IT,{data:function(){return{thumbnails:[{url:u().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Yk");
ERz.idomCompat=!0;var PsK=_.r(function(g){var u=g.data;return _.p("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.p(_.Up,{data:function(){return u().avatar}},{avatarViewModel:_.jv}),_.p("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return u().channelName}))},"Zk");
PsK.idomCompat=!0;var DAb=_.r(function(g){var u=g.data;g={};return _.p("yt-profile-info-view-model",{class:_.Ty("ytProfileInfoViewModelHost",(g.ytProfileInfoViewModelWithVideoShelf=function(){return u().videosHorizontalShelf},g))},_.p(NIp,{profileInfo:u}),_.p(_.Up,{data:function(){return u().videosHorizontalShelf}},{horizontalShelfViewModel:function(q){return _.p("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.p(_.IS,{data:q.data}))}}),_.p(_.M,{cond:function(){return u().comments},
then:function(){return _.p(syC,{profileInfo:u})}}),_.p(_.M,{cond:function(){return u().sharedSubscriptionsTitle},
then:function(){return _.p(_.M,{cond:function(){return u().subscriptionsAccessButtonCommand},
then:function(){return _.p(ySt,{profileInfo:u})},
else:function(){return _.p(vRZ,{profileInfo:u})}})}}))},"$k");
DAb.idomCompat=!0;var syC=_.r(function(g){var u=g.profileInfo;return _.p("div",{class:"ytProfileInfoViewModelActivity"},_.p("div",{class:"ytProfileInfoViewModelHeader"},_.p("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return u().commentsInteractionTitle})),_.p(_.Up,{data:function(){return u().comments}},{commentInteractionViewModel:function(q){return _.p("div",{class:"ytProfileInfoViewModelActivity"},_.p(ERz,{data:q.data}))}}))},"al"),ySt=_.r(function(g){var u=g.profileInfo;
return _.p("div",{class:"ytProfileInfoViewModelSubSection"},_.p("div",{class:"ytProfileInfoViewModelSubHeader"},_.p(_.ag,{command:function(){return u().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.p("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return u().sharedSubscriptionsTitle}),_.p("div",null,_.p(_.Up,{data:function(){return u().subscriptionsAccessButton}},{buttonViewModel:_.TT})))),_.p(paK,{sharedSubscriptions:function(){var q;
return((q=u().sharedSubscriptions)==null?void 0:q.slice(0,5))||[]}}))},"bl"),vRZ=_.r(function(g){var u=g.profileInfo;
return _.p("div",{class:"ytProfileInfoViewModelSubSection"},_.p("div",{class:"ytProfileInfoViewModelSubHeader"},_.p("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return u().sharedSubscriptionsTitle})),_.p(paK,{sharedSubscriptions:function(){var q;
return((q=u().sharedSubscriptions)==null?void 0:q.slice(0,5))||[]}}))},"cl"),paK=_.r(function(g){return _.p("div",{class:"ytProfileInfoViewModelSubs"},_.p(_.Up,{data:g.sharedSubscriptions},{sharedSubscriptionViewModel:function(u){return _.p("div",{class:"ytProfileInfoViewModelSub"},_.p(PsK,{data:u.data}))}}))},"dl"),NIp=_.r(function(g){var u=g.profileInfo;
return _.p("div",{class:"ytProfileInfoViewModelActivity"},_.p(_.R4,{each:function(){return[u().profileBadgeInfoYtWide,u().profileBadgeInfoChannelWide].filter(function(q){return!!q})},
keyBy:"INDEX"},function(q){return _.p(_.U9,null,_.p("div",{class:"ytProfileInfoViewModelHeader"},_.p("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return q().profileSectionTitle}),_.p("div",{class:"ytProfileInfoViewModelSectionDesc"},_.p("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var Q;
return(Q=q().commentBadge)==null?void 0:Q.commentDesc}),_.p(_.M,{cond:function(){var Q;
return(Q=q().commentBadge)==null?void 0:Q.blackHeartDesc},
then:function(){return _.p("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.p("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.p(_.IT,{data:function(){var Q;
return{thumbnails:[{url:(Q=q().commentBadge)==null?void 0:Q.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.p("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var Q;return(Q=q().commentBadge)==null?void 0:Q.blackHeartDesc}))),_.p("div",{class:"ytProfileInfoViewModelBadge"},_.p(_.R4,{each:function(){return q().badges||[]}},function(Q){return _.p(LUC,{data:Q})})))}))},"el");var JSC=_.r(function(g){var u=g.data;var q=function(){return u().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.p("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.p(_.Up,{data:function(){return u().profileIdentityInfo}},{profileIdentityInfoViewModel:function(Q){return _.p(dDh,{data:Q.data,
hideDivider:q,isChannelInfoCard:q})},
profileInfoViewModel:DAb}),_.p(_.Up,{data:function(){return u().profileInfo}},{profileIdentityInfoViewModel:dDh,
profileInfoViewModel:DAb}))},"fl");
JSC.idomCompat=!0;_.dL(JSC,"yt-profile-card-view-model",{props:{data:_.H2}});var jD=function(){var g=_.X.apply(this,arguments)||this;g.enableFocusFix=_.w("music_web_enable_focus_on_setting_menu_fix")&&_.mW("IS_MOBILE_WEB",!1);g.covered=!1;g.hideMenu=!1;g.isCommentNotificationOnProfileCard=!1;g.scrolledByTouch=!1;g.disableBackdropFilter=_.w("web_disable_backdrop_filter");g.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return g};
_.A(jD,_.X);_.P=jD.prototype;
_.P.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"}}}};
_.P.ready=function(){var g=this;this.JSC$22325_containerElement.addEventListener("scroll",function(){g.ytRendererBehavior.markDirty()})};
_.P.attributeChanged=function(g,u){g==="menu-style"&&_.YJ(this.hostElement,"yt-multi-page-menu-closed-action",[u])};
_.P.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.zr(this,this.focusOnStampFinished))};
_.P.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.zr(this,this.focusOnStampFinished))};
_.P.reset=function(){this.closeJobId&&(_.Hv.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.P.focusOnStampFinished=function(g){g.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.zr(this,this.focusOnStampFinished)),this.doFocus())};
_.P.doFocus=function(){var g=_.U$X(this.sectionsElement);g.length&&g[0].focus()};
_.P.computeMenuStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.P.computeIsCommentNotificationOnProfileCard=function(g){return _.w("enable_profile_cards_on_comments")&&g.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.P.computeHideMenu=function(g,u){return g||!(!u||!u.showLoadingSpinner)};
_.P.onPopupClosed=function(){this.isPopUpOpen=!1;_.YJ(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.P.onPopupOpened=function(g,u){this.isPopUpOpen=!0;u.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.hJ(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.rF({type:"CHANNEL_REPORT_RESET"})))};
_.P.onYtNavigate=function(g,u){this.shouldCloseOnNavigateEvent(u.endpoint)&&_.YJ(this.hostElement,"yt-close-all-popups-action")};
_.P.handleEndpoint=function(g){g=_.c(g,_.jW);!this.isCommentNotificationOnProfileCard&&g&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22325_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.P.handleActions=function(g){for(var u=0,q=g.length;u<q;u++){var Q=_.c(g[u],Erh);Q&&this.handleGetMultiPageMenuAction(Q);(Q=_.c(g[u],_.gIi))&&this.handleAppendContinuationItemsAction(Q)}};
_.P.onServiceRequestSentOrCompleted=function(g,u){g.detail&&g.detail.endpoint&&this.handleEndpoint(g.detail.endpoint);u.actions&&this.handleActions(u.actions)};
_.P.handleGetMultiPageMenuAction=function(g){var u=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Tr(this.submenuElement).appendChild(u);(g=g.menu.multiPageMenuRenderer)&&this.logSubmenu(g);u.data=g;u.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.P.handleAppendContinuationItemsAction=function(g){if(this.data&&g.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&g.continuationItems&&this.data.sections){var u=this.data.sections.length-1;this.data.sections[u].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),u--);if(this.data.sections[u].multiPageMenuNotificationSectionRenderer&&g.continuationItems){g=_.N(g==null?void 0:g.continuationItems);for(var q=g.next();!q.done;q=g.next())if(q=q.value,_.c(q,gEZ)){var Q=
void 0,L=void 0,E=void 0,y=void 0,v=void 0;((Q=this)==null?0:(L=Q.data)==null?0:(E=L.sections)==null?0:(y=E[u])==null?0:(v=y.multiPageMenuNotificationSectionRenderer)==null?0:v.items)&&this.push("data.sections."+u+".multiPageMenuNotificationSectionRenderer.items",q)}else if(_.c(q,_.KmH)||_.c(q,_.V5))this.push("data.sections",q),u++}}};
_.P.logSubmenu=function(g){if(!_.w("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var u=this.ytRendererBehavior.getScreenLayer(),q=_.j_(u),Q=_.JJ(u);if((g=g.trackingParams)&&q&&Q){var L=_.Lr(g);_.w("combine_ve_grafts")?_.gL().graftServerVe(g,Q,u):_.cC(q,Q,L)}}};
_.P.emptySubmenuContainer=function(){for(var g=_.Tr(this.submenuElement);g.firstChild;)g.removeChild(g.firstChild)};
_.P.onMenuBackTap=function(g){_.hJ(this.hostElement,"yt-submenu-closed");g.stopPropagation()};
_.P.onSubmenuClosed=function(g){_.bd(g)!==this.hostElement&&(this.covered=!1,_.hJ(this.hostElement,"yt-refit"),g.stopPropagation())};
_.P.onRetrieveLocation=function(g,u){u.hasComments&&(u.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),g.stopPropagation())};
_.P.shouldCloseOnNavigateEvent=function(g){if(!g)return!0;if(_.c(g,_.Aai)||_.c(g,_.ZK5)||_.c(g,_.HKb)||_.c(g,_.ao))return!1;var u;return((u=_.c(g==null?void 0:g.commandMetadata,_.S_))==null?0:u.ignoreNavigation)?!1:!0};
_.P.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.P.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.P.refitAfterRender=function(){var g=this;_.xt(this,function(){_.hJ(g.hostElement,"yt-refit")})};
jD.prototype.refitAfterRender=jD.prototype.refitAfterRender;jD.prototype.onRetrieveLocation=jD.prototype.onRetrieveLocation;jD.prototype.onSubmenuClosed=jD.prototype.onSubmenuClosed;jD.prototype.onMenuBackTap=jD.prototype.onMenuBackTap;jD.prototype.onServiceRequestSentOrCompleted=jD.prototype.onServiceRequestSentOrCompleted;jD.prototype.onYtNavigate=jD.prototype.onYtNavigate;jD.prototype.onPopupOpened=jD.prototype.onPopupOpened;jD.prototype.onPopupClosed=jD.prototype.onPopupClosed;
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],jD.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],jD.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],jD.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],jD.prototype,"enableFocusFix",void 0);_.Y([_.a(),_.K("design:type",Object)],jD.prototype,"covered",void 0);_.Y([_.a({computed:"computeHideMenu(covered, data)"}),_.K("design:type",Object)],jD.prototype,"hideMenu",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.K("design:type",String)],jD.prototype,"menuStyle",void 0);
_.Y([_.a({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.K("design:type",Object)],jD.prototype,"isCommentNotificationOnProfileCard",void 0);_.Y([_.a(),_.K("design:type",Boolean)],jD.prototype,"isPopUpOpen",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],jD.prototype,"scrolledByTouch",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],jD.prototype,"disableBackdropFilter",void 0);
_.Y([_.oE("#sections"),_.K("design:type",HTMLElement)],jD.prototype,"sectionsElement",void 0);_.Y([_.oE("#spinner"),_.K("design:type",HTMLElement)],jD.prototype,"spinnerElement",void 0);_.Y([_.oE("#header"),_.K("design:type",HTMLElement)],jD.prototype,"headerElement",void 0);_.Y([_.oE("#container"),_.K("design:type",HTMLElement)],jD.prototype,"JSC$22325_containerElement",void 0);_.Y([_.oE("#submenu"),_.K("design:type",HTMLElement)],jD.prototype,"submenuElement",void 0);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jD.prototype,"onPopupClosed",null);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],jD.prototype,"onPopupOpened",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],jD.prototype,"onYtNavigate",null);
_.Y([_.n6("yt-service-request-completed"),_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],jD.prototype,"onServiceRequestSentOrCompleted",null);_.Y([_.n6("yt-menu-back-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],jD.prototype,"onMenuBackTap",null);
_.Y([_.n6("yt-submenu-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],jD.prototype,"onSubmenuClosed",null);_.Y([_.n6("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],jD.prototype,"onRetrieveLocation",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jD.prototype,"refitAfterRender",null);
_.Y([_.fE({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],jD);
_.T(jD,"ytd-multi-page-menu-renderer",function(){if(bCE!==void 0)return bCE;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return bCE=g},{mode:1});var jyh;var f5=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return g};
_.A(f5,_.X);_.P=f5.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.computeAccessibility_=function(g){return this.get("accessibility.accessibilityData",g)||null};
_.P.onTap=function(){var g=_.Og(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(g&&g.length===1&&g[0])_.YJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var u;if((u=this.data)==null?0:u.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var q;((q=this.data)==null?0:q.menuRequest)&&_.KV(this.hostElement,[this.data.menuRequest])}}};
_.P.handleTopbarMenuClosedAction=function(g){var u,q;(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(g)===((u=this.data)==null?void 0:(q=u.icon)==null?void 0:q.iconType)&&this.toggleIconState(!1)};
_.P.toggleIconState=function(g){_.w("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=g)};
_.P.handleUpdateTopbarAvatarAction=function(g){var u;g=(u=_.c(g,KwZ))==null?void 0:u.avatarUrl;var q,Q;u=(q=this.data)==null?void 0:(Q=q.avatar)==null?void 0:Q.thumbnails;g&&u&&(q={thumbnails:[Object.assign({},u[0],{url:g})]},this.set("data.avatar",q))};
_.z3.Object.defineProperties(f5.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Tr(this.hostElement).querySelector("#button")}}});
f5.prototype.onTap=f5.prototype.onTap;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],f5.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],f5.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.zpb.YtButtonBehavior),_.K("design:type",Object)],f5.prototype,"ytButtonBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],f5.prototype,"data",void 0);
_.Y([_.oE("yt-icon-button#button"),_.K("design:type",Object)],f5.prototype,"iconButton",void 0);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],f5.prototype,"onTap",null);_.Y([_.fE({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],f5);
_.Te()(f5,"ytd-topbar-menu-button-renderer",function(){if(jyh===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);jyh=g}g=jyh;return g},{allowedProps:["data"],
mode:1});var fT9;var M9=function(){return _.X.apply(this,arguments)||this};
_.A(M9,_.X);M9.prototype.getSelected=function(){return this.reasons.selected};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],M9.prototype,"data",void 0);_.Y([_.oE("#reasons"),_.K("design:type",Object)],M9.prototype,"reasons",void 0);_.Y([_.fE({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],M9);
_.T(M9,"ytd-ad-feedback-content",function(){if(fT9!==void 0)return fT9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return fT9=g},{mode:1});var M5E;var tU=function(){return _.X.apply(this,arguments)||this};
_.A(tU,_.X);_.P=tU.prototype;_.P.onPopupOpened=function(){_.YJ(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.P.computeConfirmButton=function(g){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:g.confirmLabel}};
_.P.computeCancelButton=function(g){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:g.cancelLabel}};
_.P.onConfirmTap=function(){var g=this.content.getSelected();g!==void 0&&(g=this.data.reasons[g].endpoint)&&(_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}}),_.YJ(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.P.sendFeedbackSubmitToastAction=function(){var g;(g=this.data)!=null&&g.completionMessage&&(g=_.FJ(this.data.completionMessage),_.YJ(this.hostElement,"yt-open-popup-action",[g,this]))};
_.P.onCancelTap=function(){_.YJ(this.hostElement,"yt-close-popup-action")};
tU.prototype.onPopupOpened=tU.prototype.onPopupOpened;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tU.prototype,"data",void 0);_.Y([_.oE("#content"),_.K("design:type",Object)],tU.prototype,"content",void 0);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],tU.prototype,"onPopupOpened",null);
_.Y([_.fE({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],tU);
_.T(tU,"ytd-ad-feedback-renderer",function(){if(M5E!==void 0)return M5E;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return M5E=g},{mode:1});var t5E;var elp=function(){return _.X.apply(this,arguments)||this};
_.A(elp,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],elp.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],elp.prototype,"data",void 0);_.Y([_.fE({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],elp);
_.T(elp,"ytd-ad-info-dialog-content",function(){if(t5E!==void 0)return t5E;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return t5E=g},{mode:1});var Gmp;var eD=function(){return _.X.apply(this,arguments)||this};
_.A(eD,_.X);eD.prototype.computeConfirmButton=function(g){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:g.confirmLabel}};
eD.prototype.onConfirmTap=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
eD.prototype.computeShouldShowTitle=function(){var g;return!((g=this.data)==null||!g.title)};
eD.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
eD.prototype.onPopupClosed=eD.prototype.onPopupClosed;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],eD.prototype,"data",void 0);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],eD.prototype,"onPopupClosed",null);_.Y([_.fE({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],eD);
_.T(eD,"ytd-ad-info-dialog-renderer",function(){if(Gmp!==void 0)return Gmp;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Gmp=g},{mode:1});var $A9;var GE=function(){var g=_.X.apply(this,arguments)||this;g.actionButtonClass="action-button";g.dismissButtonId="dismiss-button";g.dialogDismiss=!0;return g};
_.A(GE,_.X);_.P=GE.prototype;_.P.computeInPlayer=function(g){return(g==null?void 0:g.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.P.computedLogo=function(){var g,u;return this.isDarkTheme()?(g=this.data)==null?void 0:g.logoDark:(u=this.data)==null?void 0:u.logo};
_.P.computedHeaderImage=function(){var g,u;return this.isDarkTheme()?(g=this.data)==null?void 0:g.headerImageDark:(u=this.data)==null?void 0:u.headerImage};
_.P.computeLogoIconId=function(){var g,u,q,Q=(g=this.computedLogo())==null?void 0:(u=g.sources)==null?void 0:(q=u[0])==null?void 0:q.height;return Q&&Q%31===0?"logo-icon-with-padding":"logo-icon"};
_.P.computeLogoIconHeight=function(){var g,u,q,Q=(g=this.computedLogo())==null?void 0:(u=g.sources)==null?void 0:(q=u[0])==null?void 0:q.height;return Q&&Q%31===0?"31":"24"};
_.P.onPopupClosed=function(){_.Bk().resolve(_.pz).dispose()};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.P.onShow=function(){this.inPlayer&&_.zN(6);this.titleElement.focus()};
_.P.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var g=0;g<this.data.impressionEndpoints.length;g++){var u=_.c(this.data.impressionEndpoints[g],_.Jo);u&&this.ytComponentBehavior.resolveCommand(u)}};
_.P.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.YJ(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.z3.Object.defineProperties(GE.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var g,u;return!((g=this.data)==null||!g.headerImageDark)&&!((u=this.data)==null||!u.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.secondaryButton)}}});
GE.prototype.onPopupClosed=GE.prototype.onPopupClosed;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],GE.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.GT.YtVisibilityBehavior),_.K("design:type",Object)],GE.prototype,"ytVisibilityBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],GE.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],GE.prototype,"actionButtonClass",void 0);_.Y([_.a(),_.K("design:type",Object)],GE.prototype,"dismissButtonId",void 0);_.Y([_.a(),_.K("design:type",Object)],GE.prototype,"dialogDismiss",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],GE.prototype,"hasHeaderImage",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],GE.prototype,"hasPremiumButton",null);
_.Y([_.a({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.K("design:type",Boolean)],GE.prototype,"inPlayer",void 0);_.Y([_.oE("#dismiss-button"),_.K("design:type",HTMLElement)],GE.prototype,"dismissButton",void 0);_.Y([_.oE("#title"),_.K("design:type",HTMLElement)],GE.prototype,"titleElement",void 0);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],GE.prototype,"onPopupClosed",null);
_.Y([_.fE({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],GE);
_.T(GE,"ytd-enforcement-message-view-model",function(){if($A9!==void 0)return $A9;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return $A9=g},{mode:1});var Rlh;var waz;var $m=function(){var g=_.X.apply(this,arguments)||this;g.TEST_ONLY={immediateValidation:function(){g.immediateValidation()},
onValidationResponse:function(u){g.onValidationResponse(u)},
onGenerateHandleFromNameResponse:function(u){g.onGenerateHandleFromNameResponse(u)}};
return g};
_.A($m,_.X);_.P=$m.prototype;_.P.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.P.validate=function(){this.immediateValidation()};
_.P.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.P.setHandleInputValue=function(g){this.handleDir=this.getHandleDir(g);this.handleInput.value=g;this.validationState={status:"PENDING"};this.immediateValidation()};
_.P.getHandleDir=function(g){var u=g===""&&!1;return(u=_.a4$.test.call(_.a4$,g))?"rtl":"ltr"};
_.P.onDataChanged=function(){var g,u;this.handleDir=this.getHandleDir((u=(g=this.data)==null?void 0:g.handle)!=null?u:"");var q;this.validationState=((q=this.data)==null?0:q.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var Q;((Q=this.data)==null?0:Q.validateOnInit)&&this.immediateValidation()};
_.P.stopPropagation=function(g){g.stopPropagation()};
_.P.onInput=function(){var g;this.handleDir=this.getHandleDir((g=this.handleInput.value)!=null?g:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.P.onFocusout=function(g){this.handleInput.contains(g.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.P.delayedValidation=function(){var g,u;this.debouncedValidation((u=(g=this.data)==null?void 0:g.validationDelayMs)!=null?u:1E3)};
_.P.immediateValidation=function(){this.debouncedValidation(0)};
_.P.debouncedValidation=function(g){var u=this;_.c$(this,"debouncedValidation",function(){var q,Q=u.staticValidation((q=u.handleInput.value)!=null?q:"");if(Q!==void 0)u.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:Q};else{var L;if((L=u.data)!=null&&L.validateChannelHandleCommand){u.validationState={status:"LOADING"};var E;u.ytComponentBehavior.resolveCommand(u.data.validateChannelHandleCommand,{form:{handle:(E=u.handleInput.value)!=null?E:""},commandController:{onSuccess:function(y,
v){u.onValidationResponse(v)},
onServerError:function(y,v){u.onValidationServerError(v)}}})}else u.handleUnexpectedValidationError(new _.Ji("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",u.data))}},g)};
_.P.staticValidation=function(g){var u;if(((u=this.data)==null?void 0:u.channelHandleStaticValidationParams)!==void 0){u=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(g)&&u.validValueRegexpErrorMessage!==void 0)return u.validValueRegexpErrorMessage;if(u.minLength!==void 0&&g.length<u.minLength&&u.minLengthErrorMessage!==void 0)return u.minLengthErrorMessage;if(u.maxLength!==void 0&&g.length>u.maxLength&&u.maxLengthErrorMessage!==void 0)return u.maxLengthErrorMessage}};
_.P.onValidationResponse=function(g){var u=_.c(g.result,xUp);u===void 0?this.handleUnexpectedValidationError(new _.Ji("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",g)):this.handleValidationResultRenderer(u)};
_.P.onValidationServerError=function(g){this.handleUnexpectedValidationError(new _.Ji("ValidateChannelHandle request failed.",g))};
_.P.handleValidationResultRenderer=function(g){if(g.handle===void 0)this.handleUnexpectedValidationError(new _.Ji("ChannelHandleValidationResultRenderer does not contain handle.",g));else if(g.handle===this.handleInput.value)switch(g.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:g.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:g.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Ji("Unrecognized ChannelHandleValidationResult",g));break;default:_.qE(g.result)}};
_.P.handleUnexpectedValidationError=function(g){var u;this.validationState={status:"UNKNOWN",handle:(u=this.handleInput.value)!=null?u:""};_.Io(g)};
_.P.stopEventPropagation=function(g){g.stopPropagation()};
_.P.updateHandleOnChannelNameInputChange=function(g){if(!this.wasEdited){var u,q;this.debouncedGenerateHandleFromName(g,(q=(u=this.data)==null?void 0:u.validationDelayMs)!=null?q:1E3)}};
_.P.debouncedGenerateHandleFromName=function(g,u){var q=this;_.c$(this,"debouncedGenerateHandleFromName",function(){var Q;(Q=q.data)!=null&&Q.validateChannelHandleCommand?q.ytComponentBehavior.resolveCommand(q.data.validateChannelHandleCommand,{form:{name:g},commandController:{onSuccess:function(L,E){q.onGenerateHandleFromNameResponse(E)},
onServerError:function(L,E){_.Io(new _.Ji("Error calling GenerateHandleFromName",E))}}}):_.Io(new _.Ji("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",q.data))},u)};
_.P.onGenerateHandleFromNameResponse=function(g){this.wasEdited||((g=_.c(g.result,B7h))?this.setHandleInputValue(g.handle):_.Io(new _.Ji("Invalid results when generate handle from name")))};
_.z3.Object.defineProperties($m.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var g;if(g=this.validationState)g=this.validationState,g=g.status==="OK"||g.status==="UNKNOWN";if(g)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var g;if(((g=this.validationState)==null?void 0:g.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 g,u=(g=this.channelHandleEntity)==null?void 0:g.handleEdit;this.handleDir=this.getHandleDir(u!=null?u:"");return u}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var g,u;if(((g=this.data)==null?void 0:(u=g.channelHandleStaticValidationParams)==null?void 0:u.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
$m.prototype.stopEventPropagation=$m.prototype.stopEventPropagation;$m.prototype.onDataChanged=$m.prototype.onDataChanged;$m.prototype.applyHandleEdit=$m.prototype.applyHandleEdit;$m.prototype.onValueChanged=$m.prototype.onValueChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],$m.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],$m.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],$m.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],$m.prototype,"wasEdited",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],$m.prototype,"handleDir",void 0);_.Y([_.oE("#handle-input"),_.K("design:type",Object)],$m.prototype,"handleInput",void 0);_.Y([_.a(),_.C("validationState"),_.K("design:type",Object),_.K("design:paramtypes",[])],$m.prototype,"value",null);
_.Y([_.k_("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$m.prototype,"onValueChanged",null);_.Y([_.C("validationState"),_.K("design:type",Object),_.K("design:paramtypes",[])],$m.prototype,"errorIndicator",null);_.Y([_.a({reflectToAttribute:!0}),_.C("errorIndicator"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$m.prototype,"borderErrorIndicator",null);
_.Y([_.a({selectorArgs:["data.channelHandleEntityKey"],selector:function(g,u){return _.BC(g.entities,"channelHandle",u)}}),
_.K("design:type",Object)],$m.prototype,"channelHandleEntity",void 0);_.Y([_.C("channelHandleEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],$m.prototype,"handleEdit",null);_.Y([_.k_("handleEdit"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$m.prototype,"applyHandleEdit",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$m.prototype,"onDataChanged",null);
_.Y([_.C("data.channelHandleStaticValidationParams.validValueRegexp"),_.K("design:type",Object),_.K("design:paramtypes",[])],$m.prototype,"validValueRegexp",null);_.Y([_.n6("yt-service-request-sent"),_.n6("yt-service-request-completed"),_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],$m.prototype,"stopEventPropagation",null);_.Y([_.fE({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],$m);
_.T($m,"ytd-channel-handle-input-renderer",function(){if(waz!==void 0)return waz;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return waz=g},{mode:2});var Rf=function(){var g=_.X.apply(this,arguments)||this;g.data=null;g.errorMessage=null;g.isLoading=!0;g.enableNewChannelCreationOnIdForAll=_.w("enable_new_channel_creation_for_id4all");g.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction"};g.testOnly={setErrorMessage:function(u){g.resetErrorState();g.setErrorState(u)}};
return g};
_.A(Rf,_.X);_.P=Rf.prototype;_.P.created=function(){this.logScreenVe()};
_.P.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")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var g;((g=this.zeroStepErrorMessageEntity)==null?0:g.value)&&this.set("errorMessage",_.I7(this.zeroStepErrorMessageEntity.value))};
_.P.onCreateTap=function(){var g=this;if(this.data&&this.data.channelCreationEndpoint){var u,q;if(!((u=this.data.createChannelButton)==null?0:(q=u.buttonRenderer)==null?0:q.isDisabled)){var Q;if((Q=this.nameInput)!=null&&Q.value){this.setLoadingState();var L,E;u=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(L=this.handleInput)==null?void 0:L.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((E=this.handleInput)==null?void 0:E.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:u,commandController:{onSuccess:function(y,v){g.onChannelCreationEndpointSuccess(v);g.obakeImageSource&&_.H6("channelCreatedWithObakeImage",{imageSourceType:g.obakeImageSource})},
onServerError:function(){g.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.P.endpointRequiresServiceRequestAction=function(g){return!!_.c(g,_.fT)||!!_.c(g,KwZ)};
_.P.isNavigateAction=function(g){var u;return!!_.c(g,Vv9)||!!_.c((u=_.c(g,o4z))==null?void 0:u.command,Vv9)};
_.P.isPlaylistAction=function(g){return!!_.c(g,_.fq)||!!_.c(g,_.$l)};
_.P.onChannelCreationEndpointSuccess=function(g){if(g.createChannelError){var u;this.setErrorState((u=g.createChannelError)==null?void 0:u.errorMessage);this.handleInput&&this.handleInput.validate()}else{g.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(g.navigationEndpoint);if(g.actions){u=_.N(g.actions);for(var q=u.next();!q.done;q=u.next())if(q=q.value,this.endpointRequiresServiceRequestAction(q)&&this.ytComponentBehavior.resolveCommand(q),this.isNavigateAction(q)){var Q=void 0;q=_.c((Q=
_.c(q,o4z))==null?void 0:Q.command,Vv9);Q=void 0;this.isPlaylistAction((Q=q)==null?void 0:Q.endpoint)&&(_.YJ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),Q=void 0,this.ytComponentBehavior.resolveCommand((Q=q)==null?void 0:Q.endpoint))}}g.actions&&g.actions.some(function(L){var E;return _.c(L,Vv9)||_.c((E=_.c(L,o4z))==null?void 0:E.command,Vv9)})||_.YJ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.P.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.P.onCancelTap=function(){var g,u,q;if(!((g=this.data)==null?0:(u=g.cancelButton)==null?0:(q=u.buttonRenderer)==null?0:q.isDisabled)){var Q,L,E;g=(Q=this.data)==null?void 0:(L=Q.cancelButton)==null?void 0:(E=L.buttonRenderer)==null?void 0:E.command;if(!g||!_.c(g,_.aEb)){var y;this.nameInput&&((y=this.data)==null?0:y.name)&&(this.nameInput.value=this.data.name);var v;this.handleInput&&((v=this.data)==null?0:v.channelHandleInput)&&(this.handleInput.data=_.c(this.data.channelHandleInput,zCZ));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.P.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.P.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.P.onClearProfilePhotoTap=function(){var g,u,q;((g=this.data)==null?0:(u=g.clearProfilePhotoButton)==null?0:(q=u.buttonRenderer)==null?0:q.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.P.onEditAvatarTap=function(){var g,u,q;((g=this.data)==null?0:(u=g.editAvatarButton)==null?0:(q=u.buttonRenderer)==null?0:q.isDisabled)||this.openProfilePicturePicker()};
_.P.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)};
_.P.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var g;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((g=this.data)==null?0:g.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.P.setErrorState=function(g){this.resetErrorState();if(g)this.set("errorMessage",g);else{var u;if((u=this.zeroStepErrorMessageEntity)==null?0:u.value)this.set("errorMessage",_.I7(this.zeroStepErrorMessageEntity.value));else{var q;((q=this.data)==null?0:q.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.P.fetchImageBlobWithAlr=function(g,u){u=u===void 0?5:u;var q=this,Q,L,E,y,v;return _.D(function(J){switch(J.nextAddress){case 1:return J.yield(fetch(g,{method:"GET",mode:"cors"}),2);case 2:Q=J.yieldResult;if(Q.ok){J.jumpTo(3);break}if(u===0)throw Error();L=q.addJitter(Math.pow(2,5-u));return J.yield(new Promise(function(f){setTimeout(f,L*1E3)}),4);
case 4:return J.return(q.fetchImageBlobWithAlr(g,u-1));case 3:if(!Q.headers.get("content-type").split(";").some(function(f){return f.trim()==="text/plain"})){J.jumpTo(5);
break}E=q;y=E.fetchImageBlobWithAlr;return J.yield(Q.text(),6);case 6:return J.return(y.call(E,J.yieldResult,u-1));case 5:return J.yield(Q.blob(),7);case 7:return v=J.yieldResult,J.return(v)}})};
_.P.addJitter=function(g){var u=g*.3*Math.random();Math.random()>.5&&(u*=-1);return g+u};
_.P.openProfilePicturePicker=function(){var g=this,u,q,Q,L,E,y;return _.D(function(v){if(v.nextAddress==1){u=g.data.scottyUploadUrl;if(!u)return v.return();q=document.documentElement.hasAttribute("dark");Q=document.body.style.colorScheme;q&&(document.body.style.colorScheme="dark");L=Qzb(L4n(q6x(nKE(q?"dark":"light")),function(J){var f,t,e,G,R;return _.D(function(H){if(H.nextAddress==1)return f=_.oW(RVz(new PUh(J.photoUrl,!1)).build(),"alr","yes"),g.obakeImageSource=g.pictureChangeSourceToObakeImageSourceType(J.photoSource),
_.b8(H,2),g.setLoadingState(),H.yield(g.fetchImageBlobWithAlr(f),4);if(H.nextAddress!=2)return t=H.yieldResult,e=new FileReader,e.addEventListener("load",function(){var l,d,F,V,z,O;return _.D(function(W){if(W.nextAddress==1){if(t.size>15728640)return g.setErrorState((l=g.data)==null?void 0:l.imageSizeErrorMessage),_.Io(Error("jm")),W.return();if(!e.result)return g.setErrorState((d=g.data)==null?void 0:d.genericImageLoadErrorMessage),_.Io(Error("km")),W.return();F=e.result;_.b8(W,2);return W.yield(C$Z(t,
u),4)}if(W.nextAddress!=2)return V=W.yieldResult,g.handleImageUpdatedAction(F,V),g.resetErrorState(),_.Xx(W,0);z=_.rt(W);g.setErrorState((O=g.data)==null?void 0:O.uploadErrorMessage);if(z instanceof Error)_.Zf(z);else{var x=new _.Ji(JSON.stringify(z));_.Zf(x)}_.Wx(W)})}),e.readAsDataURL(t),_.Xx(H,0);
G=_.rt(H);g.setErrorState((R=g.data)==null?void 0:R.genericImageLoadErrorMessage);G instanceof Error?_.Zf(G):_.lD(new _.Ji(JSON.stringify(G)));_.Wx(H)})}),function(){document.body.style.colorScheme=Q});
_.b8(v,2);return((E=g.data)==null?0:E.shouldViewChannelCreationFormForSupex)?v.yield(L.openPicker("profile-picture/art-selection"),5):v.yield(L.openPicker(),5)}if(v.nextAddress!=2)return _.Xx(v,0);_.rt(v);g.setErrorState((y=g.data)==null?void 0:y.selectImageErrorMessage);_.Wx(v)})};
_.P.pictureChangeSourceToObakeImageSourceType=function(g){switch(g){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.P.logScreenVe=function(){_.Kq(_.gL(),124448)};
_.P.graftServerVe=function(){var g=_.JJ(),u,q,Q=(u=this.data)==null?void 0:(q=u.loggingDirectives)==null?void 0:q.trackingParams;Q&&g&&(this.channelCreationFormVe=_.gL().graftServerVe(Q,g),g={visualElement:this.channelCreationFormVe},_.o5().reportShown(g))};
_.P.isNameChanged=function(g){var u;return((u=this.data)==null?void 0:u.name)!==g};
_.P.isHandleChanged=function(g){var u,q=_.c((u=this.data)==null?void 0:u.channelHandleInput,zCZ);return q&&g?q.handle!==g:!1};
_.P.handleImageUpdatedAction=function(g,u){this.previewDataUrl=g;this.encryptedBlobId=u};
_.P.handleImageSelectionErrorAction=function(g){this.setErrorState(g)};
_.P.handleImageSelectionResetErrorAction=function(){this.resetErrorState()};
_.P.maybeWipeZeroStepErrorMessage=function(){var g,u=(g=this.data)==null?void 0:g.zeroStepErrorMessageEntityKey,q;u&&((q=this.zeroStepErrorMessageEntity)==null?0:q.value)&&this.ytdReduxBehavior.dispatch(_.u2("stringEntity",u,{key:u,value:""}))};
_.z3.Object.defineProperties(Rf.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 g;return((g=this.photoThumbnail)==null?0:g.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 g;return!((g=this.data)==null||!g.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.descriptionInfo}}});
Rf.prototype.dataChanged=Rf.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Rf.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Rf.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Rf.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Rf.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Rf.prototype,"errorMessage",void 0);
_.Y([_.a(),_.K("design:type",Object)],Rf.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",String)],Rf.prototype,"previewDataUrl",void 0);_.Y([_.a(),_.K("design:type",Number)],Rf.prototype,"obakeImageSource",void 0);_.Y([_.oE("#title-input"),_.K("design:type",Object)],Rf.prototype,"nameInput",void 0);_.Y([_.oE("#handle-input"),_.K("design:type",Object)],Rf.prototype,"handleInput",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Rf.prototype,"enableNewChannelCreationOnIdForAll",void 0);
_.Y([_.a({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.e1m}),_.K("design:type",Object)],Rf.prototype,"zeroStepErrorMessageEntity",void 0);_.Y([_.C("data","data.isDefaultProfilePhoto","previewDataUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rf.prototype,"photoThumbnail",null);_.Y([_.C("data","data.isDefaultProfilePhoto","photoThumbnail"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rf.prototype,"userSetPhotoThumbnailUrl",null);
_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Rf.prototype,"hideProfilePhotoButtonLayer",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Rf.prototype,"enableIdentityForAllChannelCreationDialog",null);_.Y([_.qm("data","zeroStepErrorMessageEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rf.prototype,"dataChanged",null);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.descriptionInfo","zeroStepErrorMessageEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rf.prototype,"description",null);_.Y([_.fE({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Rf);
_.T(Rf,"ytd-channel-creation-dialog-renderer",function(){if(Rlh!==void 0)return Rlh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Rlh=g},{mode:1});var cSL;var wM=function(){var g=_.X.apply(this,arguments)||this;g.isLoading=!1;g.isDisabled=!1;return g};
_.A(wM,_.X);wM.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
wM.prototype.updateDisabled=function(){var g;this.isDisabled=this.isLoading||((g=this.handleInput)==null?void 0:g.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
wM.prototype.onSaveClick=function(){var g=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var u;((u=this.data)==null?void 0:u.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 q;if((q=g.data)==null?0:q.nextEndpoint){var Q;g.ytComponentBehavior.resolveCommand((Q=g.data)==null?void 0:Q.nextEndpoint)}else g.isLoading=
!1,g.closeDialog()},
onServerError:function(){g.isLoading=!1;g.handleInput.validate();var q;g.errorMessage=(q=g.data)==null?void 0:q.errorMessage}}}))}};
wM.prototype.closeDialog=function(){_.YJ(this.hostElement,"yt-close-popup-action",[this.is])};
wM.prototype.updateDisabled=wM.prototype.updateDisabled;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],wM.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wM.prototype,"data",void 0);_.Y([_.oE("#handle-input"),_.K("design:type",Object)],wM.prototype,"handleInput",void 0);_.Y([_.k_("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wM.prototype,"updateDisabled",null);
_.Y([_.fE({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],wM);
_.T(wM,"ytd-channel-handle-edit-dialog-renderer",function(){if(cSL!==void 0)return cSL;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return cSL=g},{mode:1});var HRC;var c0=function(){return _.X.apply(this,arguments)||this};
_.A(c0,_.X);c0.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],c0.prototype,"data",void 0);_.Y([_.fE({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],c0);
_.T(c0,"ytd-channel-switcher-footer-renderer",function(){if(HRC!==void 0)return HRC;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return HRC=g},{mode:1});var ASx;var ZRx;var H0=function(){return _.X.apply(this,arguments)||this};
_.A(H0,_.X);H0.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
H0.prototype.onIronChange=H0.prototype.onIronChange;_.Y([_.a(),_.K("design:type",Object)],H0.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!1}),_.K("design:type",Function)],H0.prototype,"onDontAskAgainChanged",void 0);_.Y([_.oE("#checkbox"),_.K("design:type",Object)],H0.prototype,"checkbox",void 0);_.Y([_.n6("iron-change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H0.prototype,"onIronChange",null);
_.Y([_.fE({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],H0);
_.T(H0,"ytd-identity-prompt-footer-renderer",function(){if(ZRx!==void 0)return ZRx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ZRx=g},{mode:1});var AU=function(){var g=_.X.apply(this,arguments)||this;g.dontAskAgain=!1;g.showPopup=!1;g.boundDontAskAgainChanged=function(u){g.dontAskAgainChanged(u)};
g.boundOnAccountItemTap=function(u){g.onAccountItemTap(u)};
return g};
_.A(AU,_.X);_.P=AU.prototype;
_.P.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]]"}}}}}};
_.P.ready=function(){var g=this;_.Tr(this.hostElement).querySelector("#container").addEventListener("scroll",function(){g.ytRendererBehavior.markDirty()})};
_.P.dontAskAgainChanged=function(g){this.dontAskAgain=g};
_.P.onAccountItemTap=function(g){if(g){var u={};this.dontAskAgain&&(u={dont_ask_again:this.dontAskAgain});_.Gr(g,u)}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.P.redirectOnlyAccount=function(g){g.sections&&g.sections.length>0&&(g=_.c(g.sections[0],_.XtX),(g==null?0:g.contents)&&(g==null?void 0:g.contents.length)<=1?(g=_.Yv(window.location.href),(g==null?0:g.next)&&_.eNZ(g.next)?_.Gr(g.next):_.Gr("/")):this.showPopup=!0)};
AU.prototype.dataChanged=AU.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],AU.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!1}),_.K("design:type",Object)],AU.prototype,"dontAskAgain",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],AU.prototype,"showPopup",void 0);_.Y([_.a({reflectToAttribute:!1}),_.K("design:type",Object)],AU.prototype,"boundDontAskAgainChanged",void 0);_.Y([_.a({reflectToAttribute:!1}),_.K("design:type",Object)],AU.prototype,"boundOnAccountItemTap",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AU.prototype,"dataChanged",null);
_.Y([_.fE({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],AU);
_.T(AU,"ytd-channel-switcher-renderer",function(){if(ASx!==void 0)return ASx;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ASx=g},{mode:1});var lTp;var Zn=function(){return _.X.apply(this,arguments)||this};
_.A(Zn,_.X);_.z3.Object.defineProperties(Zn.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.Y([_.a(),_.K("design:type",Object)],Zn.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],Zn.prototype,"steps",null);_.Y([_.fE({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Zn);
_.T(Zn,"ytd-channel-transfer-stepper-renderer",function(){if(lTp!==void 0)return lTp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return lTp=g},{mode:1});var IT9;var lm=function(){var g=_.X.apply(this,arguments)||this;g.data=null;g.isError=!1;g.isLoading=!1;return g};
_.A(lm,_.X);_.P=lm.prototype;_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.P.computeProfileName=function(g){return g?g.givenNameValue+" "+g.familyNameValue:""};
_.P.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)};
_.P.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)};
lm.prototype.onYtServiceRequestError=lm.prototype.onYtServiceRequestError;lm.prototype.onYtServiceRequestSent=lm.prototype.onYtServiceRequestSent;lm.prototype.dataChanged=lm.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],lm.prototype,"data",void 0);
_.Y([_.a({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.K("design:type",String)],lm.prototype,"profileName",void 0);_.Y([_.a(),_.K("design:type",Object)],lm.prototype,"isError",void 0);_.Y([_.a(),_.K("design:type",Object)],lm.prototype,"isLoading",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lm.prototype,"dataChanged",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],lm.prototype,"onYtServiceRequestSent",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],lm.prototype,"onYtServiceRequestError",null);_.Y([_.fE({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],lm);
_.T(lm,"ytd-channel-warm-welcome-cont-renderer",function(){if(IT9!==void 0)return IT9;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return IT9=g},{mode:1});var iRn;var If=function(){var g=_.X.apply(this,arguments)||this;g.data=null;return g};
_.A(If,_.X);If.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
If.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],If.prototype,"data",void 0);_.Y([_.fE({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],If);
_.T(If,"ytd-channel-warm-welcome-renderer",function(){if(iRn!==void 0)return iRn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return iRn=g},{mode:1});var CsH;var im=function(){return _.X.apply(this,arguments)||this};
_.A(im,_.X);_.z3.Object.defineProperties(im.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.authorThumbnail)||{}}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],im.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],im.prototype,"thumbnailDetails",null);_.Y([_.fE({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],im);
_.T(im,"ytd-comment-preview-renderer",function(){if(CsH!==void 0)return CsH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return CsH=g},{mode:1});var bRZ;var C5=function(){return _.X.apply(this,arguments)||this};
_.A(C5,_.X);C5.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z3.Object.defineProperties(C5.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.submitButton}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],C5.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],C5.prototype,"submitButton",null);_.Y([_.fE({is:"ytd-notice-renderer",disableElementRegistration:!0})],C5);
_.T(C5,"ytd-notice-renderer",function(){if(bRZ!==void 0)return bRZ;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return bRZ=g},{mode:1});var dAt;var bm=function(){return _.X.apply(this,arguments)||this};
_.A(bm,_.X);bm.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],bm.prototype,"data",void 0);_.Y([_.fE({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],bm);
_.T(bm,"ytd-preview-comment-dialog-content",function(){if(dAt!==void 0)return dAt;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return dAt=g},{mode:1});var FUp;var dM=function(){return _.X.apply(this,arguments)||this};
_.A(dM,_.X);dM.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
dM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],dM.prototype,"data",void 0);_.Y([_.fE({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],dM);
_.T(dM,"ytd-preview-comment-dialog-renderer",function(){if(FUp!==void 0)return FUp;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return FUp=g},{mode:1});var mAz;var aTL=_.w("web_button_rework")&&_.mW("BUTTON_REWORK")||_.w("web_button_rework_with_live"),FZ=function(){var g=_.X.apply(this,arguments)||this;g.closeLabel=_.Ug("CLOSE");g.selectedAmountIndex=1;g.privacyCheckboxValue=!1;g.useAmsterdamStyle=aTL;g.amountPlaceholderIndex=-1;return g};
_.A(FZ,_.X);_.P=FZ.prototype;_.P.onAmountClick=function(g){this.selectedAmountIndex=_.Tr(this.hostElement).querySelector("#amounts").indexForElement(g.currentTarget)};
_.P.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.YJ(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.P.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.YJ(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.YJ(this.hostElement,"yt-close-popup-action",[this.is]);var g;(g=_.F0())==null||g.getPlayerPromise().then(function(u){u.pauseVideo()})}};
_.P.donationCallback=function(g){g.success?(this.hostElement.hasAttribute("live-chat")&&g.response&&g.response.data&&g.response.data.actions&&_.YJ(this.hostElement,"yt-live-chat-open-popup",[g.response.data.actions[0]]),_.YJ(this.hostElement,"yt-close-popup-action",[this.is]),_.YJ(this.hostElement,"yt-live-chat-close-buy-flow")):g.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(g.errorMessageRenderer)};
_.P.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Tr(this.hostElement).querySelector("#custom-amount-input").focus()};
_.P.updateConfirmationDialogTextWithAmount=function(g){var u=this.getConfirmDialogRuns();u&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(u),"text"],this.getFormattedAmount(g))};
_.P.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.P.getAmountPlaceholderIndex=function(g){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=g.findIndex(function(u){return u.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.P.getFormattedAmount=function(g){var u;return(new _.cc(4,((u=this.data)==null?void 0:u.currencyCode)||"")).format(g)};
_.P.isAmountValid=function(g){if(g==="")return!1;g=Number(g)*1E6;var u=this.get("minAmountMicros",this.data),q=this.get("maxAmountMicros",this.data);return u&&g<u||q&&g>q?!1:!0};
_.P.setInputError=function(){this.shouldShowValidationError?_.Tr(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Tr(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.P.setInitialCheckboxValue=function(){var g;this.privacyCheckboxValue=!((g=this.data)==null||!g.privacyCheckboxInitialState)};
_.P.updateCustomAmountInputFromBinding=function(g){this.customAmountInput=g.detail.value};
_.P.updatePrivacyCheckboxValueFromBinding=function(g){this.privacyCheckboxValue=g.detail.value};
_.z3.Object.defineProperties(FZ.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var g=this,u,q;return((u=this.data)==null?void 0:(q=u.suggestedAmounts)==null?void 0:q.map(function(Q,L){return{buttonRenderer:{style:g.selectedAmountIndex===L?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:Q.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 g;return!((g=this.data)==null||!g.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 g=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(g&&this.amountMicros!==null)return Object.assign({},g,{ypcGetCartEndpoint:Object.assign({},g.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 g=this.get("confirmLargeAmount",this.data);if(g&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),g}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g=this.get("donateButton.buttonRenderer",this.data);if(g)return Object.assign({},g,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
FZ.prototype.setInitialCheckboxValue=FZ.prototype.setInitialCheckboxValue;FZ.prototype.setInputError=FZ.prototype.setInputError;FZ.prototype.setFocusOnCustomAmountInput=FZ.prototype.setFocusOnCustomAmountInput;_.Y([_.I(Cfb),_.K("design:type",Object)],FZ.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],FZ.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],FZ.prototype,"closeLabel",void 0);_.Y([_.a(),_.K("design:type",Object)],FZ.prototype,"selectedAmountIndex",void 0);_.Y([_.a(),_.K("design:type",String)],FZ.prototype,"customAmountInput",void 0);_.Y([_.a(),_.K("design:type",Object)],FZ.prototype,"privacyCheckboxValue",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],FZ.prototype,"useAmsterdamStyle",void 0);_.Y([_.k_("customAmount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FZ.prototype,"setFocusOnCustomAmountInput",null);_.Y([_.C("data","selectedAmountIndex"),_.K("design:type",Array),_.K("design:paramtypes",[])],FZ.prototype,"suggestedAmountButtons",null);
_.Y([_.C("data","selectedAmountIndex"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FZ.prototype,"isCustomAmountSelected",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FZ.prototype,"showPrivacyCheckbox",null);_.Y([_.C("data","selectedAmountIndex","customAmount"),_.K("design:type",Object),_.K("design:paramtypes",[])],FZ.prototype,"amountMicros",null);
_.Y([_.C("isCustomAmountSelected","customAmountInput"),_.K("design:type",Object),_.K("design:paramtypes",[])],FZ.prototype,"customAmount",null);_.Y([_.C("customAmount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FZ.prototype,"shouldShowValidationError",null);_.Y([_.C("customAmount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FZ.prototype,"isDonateButtonEnabled",null);
_.Y([_.C("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.K("design:type",Object),_.K("design:paramtypes",[])],FZ.prototype,"donateCommand",null);_.Y([_.C("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.K("design:type",Object),_.K("design:paramtypes",[])],FZ.prototype,"donateCommandWithConfirmation",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FZ.prototype,"largeDonationThreshold",null);
_.Y([_.C("customAmount","donateCommand","amountMicros"),_.K("design:type",Object),_.K("design:paramtypes",[])],FZ.prototype,"confirmLargeAmountCommand",null);_.Y([_.C("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.K("design:type",Object),_.K("design:paramtypes",[])],FZ.prototype,"donateButtonRenderer",null);_.Y([_.k_("shouldShowValidationError"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FZ.prototype,"setInputError",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FZ.prototype,"setInitialCheckboxValue",null);_.Y([_.fE({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],FZ);
_.T(FZ,"ytd-donation-amount-picker-renderer",function(){if(mAz!==void 0)return mAz;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return mAz=g},{mode:1});var V5t;var Xaz=function(){return _.X.apply(this,arguments)||this};
_.A(Xaz,_.X);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Xaz.prototype,"ytComponentBehavior",void 0);_.Y([_.a({}),_.K("design:type",Object)],Xaz.prototype,"data",void 0);_.Y([_.fE({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Xaz);
_.T(Xaz,"ytd-donation-post-transaction-content",function(){if(V5t!==void 0)return V5t;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return V5t=g},{mode:1});var rSt;var mq=function(){return _.X.apply(this,arguments)||this};
_.A(mq,_.X);mq.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.Y([_.a({}),_.K("design:type",Object)],mq.prototype,"data",void 0);_.Y([_.fE({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],mq);
_.T(mq,"ytd-donation-post-transaction-renderer",function(){if(rSt!==void 0)return rSt;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return rSt=g},{mode:1});var WUn;var TIt;var af=function(){return _.X.apply(this,arguments)||this};
_.A(af,_.X);af.prototype.computeIsStreamingProvider=function(g){return!!g.isStreamingShelf};
af.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],af.prototype,"data",void 0);_.Y([_.a({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],af.prototype,"isStreamingProvider",void 0);
_.Y([_.fE({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],af);
_.T(af,"ytd-media-provider-renderer",function(){if(TIt!==void 0)return TIt;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return TIt=g},{mode:1});var hlh;var V_=function(){return _.X.apply(this,arguments)||this};
_.A(V_,_.X);V_.prototype.observeLightsourcePalette=function(){var g,u=(g=this.data)==null?void 0:g.vibrantsourceColorPaletteData;u&&_.Le(this.hostElement,u)};
V_.prototype.observeLightsourcePalette=V_.prototype.observeLightsourcePalette;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],V_.prototype,"data",void 0);
_.Y([_.k_("data.vibrantsourceColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],V_.prototype,"observeLightsourcePalette",null);_.Y([_.fE({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],V_);
_.T(V_,"ytd-streaming-pop-up-dialog",function(){if(hlh!==void 0)return hlh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return hlh=g},{mode:1});var XZ=function(){return _.X.apply(this,arguments)||this};
_.A(XZ,_.X);XZ.prototype.onPopupOpened_=function(){var g;((g=this.data)==null?0:g.serviceEndpoint)&&_.Bk().resolve(_.Gy).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
XZ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
XZ.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"}}}}};
XZ.prototype.onPopupOpened_=XZ.prototype.onPopupOpened_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.i5),_.K("design:type",Object)],XZ.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],XZ.prototype,"data",void 0);
_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XZ.prototype,"onPopupOpened_",null);_.Y([_.fE({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],XZ);
_.T(XZ,"ytd-brandconnect-popup-renderer",function(){if(WUn!==void 0)return WUn;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return WUn=g},{mode:1});var Yqp;var rM=function(){return _.X.apply(this,arguments)||this};
_.A(rM,_.X);_.P=rM.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){for(var g=0;g<this.getOptionRenderers().length;g++)this.notifyPath("data.options."+g+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+g+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.P.updateSubmitButton=function(g){this.set("data.submitButton.buttonRenderer.isDisabled",!g)};
_.P.computeAlt=function(g){return _.iR(g)};
_.P.onDismissTap=function(){_.YJ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.getOptionRenderers=function(g){return(g=g||this.data)&&g.options?g.options.reduce(function(u,q){q.checkboxSurveyOptionRenderer&&u.push(q.checkboxSurveyOptionRenderer);return u},[]):[]};
_.P.onOptionChange=function(g){var u=this,q=!1;if(g.detail.checked)for(var Q=this.getOptionRenderers().find(function(v){return v.value===g.detail.value}),L=this.getOptionRenderers(),E=0;E<L.length;E++){var y=L[E];
this.notifyPath("data.options."+E+".checkboxSurveyOptionRenderer.checked");y.checked&&((Q==null?0:Q.isExclusiveOption)?!y.isExclusiveOption:y.isExclusiveOption)?this.set("data.options."+E+".checkboxSurveyOptionRenderer.checked",!1):y.checked&&(q=!0)}else q=this.getOptionRenderers().some(function(v,J){u.notifyPath("data.options."+J+".checkboxSurveyOptionRenderer.checked");return v.checked});
this.updateSubmitButton(q)};
_.P.onSubmitTap=function(){var g=this.getOptionRenderers().filter(function(E){return E.checked});
if(g.length!==0){var u=g.map(function(E){return E.responseEndpoint});
g=[];for(var q=1;q<u.length;q++){var Q=void 0,L=(Q=_.c(u[q],_.MB))==null?void 0:Q.feedbackToken;L&&g.push(L)}u=[u[0]];g.length&&u.push({extra_feedback_tokens:g});_.KV(this.hostElement,u);_.YJ(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);g=this.data&&this.data.submitActions||[];if(_.w("kevlar_command_handler_migration_killswitch"))_.xJ(this.hostElement,g,this.hostElement);else for(g=_.N(g),u=g.next();!u.done;u=g.next())this.ytComponentBehavior.resolveCommand(u.value)}};
rM.prototype.onOptionChange=rM.prototype.onOptionChange;rM.prototype.dataChanged=rM.prototype.dataChanged;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],rM.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],rM.prototype,"ytComponentBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.Y([_.I(sbC),_.K("design:type",Object)],rM.prototype,"ytdHatsSurveyBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],rM.prototype,"data",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rM.prototype,"dataChanged",null);
_.Y([_.n6("ytd-checkbox-survey-option-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],rM.prototype,"onOptionChange",null);_.Y([_.fE({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],rM);
_.T(rM,"ytd-checkbox-survey-renderer",function(){if(Yqp!==void 0)return Yqp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Yqp=g},{mode:1});var ORf;var KUH;var W0=function(){return _.X.apply(this,arguments)||this};
_.A(W0,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.Y([_.I(Prh),_.K("design:type",Object)],W0.prototype,"ytdDismissalReasonBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],W0.prototype,"data",void 0);_.Y([_.fE({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],W0);
_.T(W0,"ytd-dismissal-reason-text-renderer",function(){if(KUH!==void 0)return KUH;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return KUH=g},{mode:1});var xAh;var TE=function(){return _.X.apply(this,arguments)||this};
_.A(TE,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.Y([_.I(Prh),_.K("design:type",Object)],TE.prototype,"ytdDismissalReasonBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],TE.prototype,"data",void 0);_.Y([_.fE({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],TE);
_.T(TE,"ytd-dismissal-reason-video-renderer",function(){if(xAh!==void 0)return xAh;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return xAh=g},{mode:1});var hU=function(){return _.X.apply(this,arguments)||this};
_.A(hU,_.X);_.P=hU.prototype;_.P.created=function(){this.selectedFeedbackTokens=new jo};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.P.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.P.onDismissalReasonSelected=function(g,u){_.hJ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(u);this.hasReasonsSelected=!0};
_.P.onDismissalReasonDeselected=function(g,u){_.hJ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(u);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.P.onCancelTap=function(){_.YJ(this.hostElement,"yt-close-popup-action")};
_.P.onSubmitTap=function(){var g=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(g={feedback_tokens:g},_.Bk().resolve(_.Gy).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},g,{element:this.hostElement})}));_.YJ(this.hostElement,"yt-close-popup-action")};
hU.prototype.onDismissalReasonDeselected=hU.prototype.onDismissalReasonDeselected;hU.prototype.onDismissalReasonSelected=hU.prototype.onDismissalReasonSelected;hU.prototype.dataChanged=hU.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],hU.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],hU.prototype,"hasReasonsSelected",void 0);_.Y([_.a(),_.K("design:type",jo)],hU.prototype,"selectedFeedbackTokens",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hU.prototype,"dataChanged",null);_.Y([_.n6("yt-dismissal-reason-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,String]),_.K("design:returntype")],hU.prototype,"onDismissalReasonSelected",null);
_.Y([_.n6("yt-dismissal-reason-deselected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,String]),_.K("design:returntype")],hU.prototype,"onDismissalReasonDeselected",null);_.Y([_.fE({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],hU);
_.T(hU,"ytd-dismissal-follow-up-renderer",function(){if(ORf!==void 0)return ORf;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ORf=g},{mode:1});var BIp;var Ej=function(){return _.X.apply(this,arguments)||this};
_.A(Ej,_.X);_.P=Ej.prototype;_.P.onCheckedChange=function(){this.multiselect||_.hJ(this.hostElement,"yt-feedback-single-select-changed");_.Tr(this.hostElement).querySelector("#freeform").focus();_.hJ(this.hostElement,"yt-refit")};
_.P.showTextBox=function(g,u){return g&&u};
_.P.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))};
_.P.updateDataCheckedFromBinding=function(g){this.set("data.checked",g.detail.value)};
_.P.updateDataResultTextFromBinding=function(g){this.set("data.resultText",g.detail.value)};
Ej.prototype.dataChanged=Ej.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ej.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],Ej.prototype,"multiselect",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ej.prototype,"dataChanged",null);
_.Y([_.fE({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Ej);
_.T(Ej,"ytd-feedback-option-renderer",function(){if(BIp!==void 0)return BIp;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return BIp=g},{mode:1});var zlC;var Pg=function(){return _.X.apply(this,arguments)||this};
_.A(Pg,_.X);Pg.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Pg.prototype.onSingleSelectCheckedChanged=function(g){g=_.bd(g);for(var u=0;u<this.data.options.length;u++)if(g.data!==_.c(this.data.options[u],Rif)){var q="data.options."+u+".feedbackOptionRenderer.checked";this.notifyPath(q);this.set(q,!1)}};
Pg.prototype.onSingleSelectCheckedChanged=Pg.prototype.onSingleSelectCheckedChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Pg.prototype,"data",void 0);
_.Y([_.n6("yt-feedback-single-select-changed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Pg.prototype,"onSingleSelectCheckedChanged",null);_.Y([_.fE({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Pg);
_.T(Pg,"ytd-feedback-question-renderer",function(){if(zlC!==void 0)return zlC;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return zlC=g},{mode:1});var nR9;var NL=function(){return _.X.apply(this,arguments)||this};
_.A(NL,_.X);NL.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
NL.prototype.getSelectedFeedbackResults=function(){for(var g={},u=0;u<this.data.questions.length;u++)for(var q=_.c(this.data.questions[u],$Np),Q=0;Q<q.options.length;Q++){var L=_.c(q.options[Q],Rif);L&&L.checked&&(g[L.optionKey]=L.resultText)}return g};
NL.prototype.onKeyUp=function(){var g=this;_.Xh(_.Hv,function(){_.hJ(g.hostElement,"yt-refit")});
_.Hv.start()};
NL.prototype.submitSurvey=function(){var g=this.getSelectedFeedbackResults();Object.keys(g).length>0&&this.data.submitFeedbackEndpoint&&(g={survey_results:g,is_feedback_token_unencrypted:!0},_.Bk().resolve(_.Gy).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},g,{element:this.hostElement})}))};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],NL.prototype,"data",void 0);_.Y([_.fE({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],NL);
_.T(NL,"ytd-feedback-survey-renderer",function(){if(nR9!==void 0)return nR9;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return nR9=g},{mode:1});var kmp;var SqK;var sj=function(){return _.X.apply(this,arguments)||this};
_.A(sj,_.X);sj.prototype.computeAlt=function(g){return _.iR(g)};
sj.prototype.submitResponse=function(){var g,u;(g=this.data)!=null&&g.feedbackToken&&((u=this.data)==null?void 0:u.nextStageIndex)!==void 0&&(_.Og(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Og(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
sj.prototype.onClick=function(){this.submitResponse()};
sj.prototype.onClick=sj.prototype.onClick;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sj.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],sj.prototype,"vertical",void 0);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sj.prototype,"onClick",null);
_.Y([_.fE({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],sj);
_.T(sj,"ytd-single-select-answer-option-renderer",function(){if(SqK!==void 0)return SqK;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return SqK=g},{mode:1});var oR9;var yJ=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return g};
_.A(yJ,_.X);yJ.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
yJ.prototype.dataChanged=function(){var g,u;this.vertical=((u=(g=this.data)==null?void 0:g.answerOrientation)!=null?u:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
yJ.prototype.submitFeedback=function(g){var u;((u=this.data)==null?0:u.responseEndpoint)&&g&&_.KV(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[g]}])};
yJ.prototype.dataChanged=yJ.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],yJ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],yJ.prototype,"eventForwardingBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],yJ.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],yJ.prototype,"vertical",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yJ.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],yJ);
_.T(yJ,"ytd-single-select-question-renderer",function(){if(oR9!==void 0)return oR9;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return oR9=g},{mode:1});var vg=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return g};
_.A(vg,_.X);_.P=vg.prototype;_.P.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"}}}};
_.P.dataChanged=function(){this.jumpToStage(0)};
_.P.jumpToStage=function(g){var u,q;if((u=this.data)==null?0:(q=u.stages)==null?0:q[g])this.currentStage=this.data.stages[g],this.refitAfterRender()};
_.P.computeAlt=function(g){return _.iR(g)};
_.P.computeSimpleMessage=function(g){var u;return(u=_.c(g,HXL))==null?void 0:u.messageText};
_.P.computeHideDismiss=function(g){var u;return(u=_.c(g,Hmz))==null?void 0:u.hideParentDismissButton};
_.P.onDismissTap=function(){_.YJ(this.hostElement,"yt-close-popup-action");_.c(this.currentStage,HXL)||this.data.dismissalEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.refitAfterRender=function(){var g=this;_.xt(this,function(){_.hJ(g.hostElement,"yt-refit")})};
vg.prototype.dataChanged=vg.prototype.dataChanged;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],vg.prototype,"eventForwardingBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],vg.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I(sbC),_.K("design:type",Object)],vg.prototype,"ytdHatsSurveyBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],vg.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],vg.prototype,"currentStage",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vg.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],vg);
_.T(vg,"ytd-multi-stage-survey-renderer",function(){if(kmp!==void 0)return kmp;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return kmp=g},{mode:1});var UAt;var DA=function(){return _.X.apply(this,arguments)||this};
_.A(DA,_.X);DA.prototype.computeAlt=function(g){return _.iR(g)};
DA.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.Bk().resolve(_.Gy).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.YJ(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(Tdp(!1)))};
DA.prototype.onTap=function(){this.vertical&&this.submitResponse()};
DA.prototype.onTap=DA.prototype.onTap;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],DA.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],DA.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],DA.prototype,"vertical",void 0);
_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DA.prototype,"onTap",null);_.Y([_.fE({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],DA);
_.T(DA,"ytd-single-option-survey-option-renderer",function(){if(UAt!==void 0)return UAt;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return UAt=g},{mode:1});var gu3;var pD=function(){return _.X.apply(this,arguments)||this};
_.A(pD,_.X);_.P=pD.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){var g,u;this.vertical=(((g=this.data)==null?void 0:(u=g.surveyOrientation)==null?void 0:u.type)||"HORIZONTAL")==="VERTICAL"};
_.P.computeAlt=function(g){return _.iR(g)};
_.P.onDismissTap=function(){_.YJ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Bk().resolve(_.Gy).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(Tdp(!1))};
pD.prototype.dataChanged=pD.prototype.dataChanged;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],pD.prototype,"eventForwardingBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(sbC),_.K("design:type",Object)],pD.prototype,"ytdHatsSurveyBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],pD.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pD.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],pD.prototype,"vertical",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pD.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],pD);
_.T(pD,"ytd-single-option-survey-renderer",function(){if(gu3!==void 0)return gu3;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return gu3=g},{mode:1});var ufe;var JN=function(){return _.X.apply(this,arguments)||this};
_.A(JN,_.X);JN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JN.prototype.onDismissTap=function(){_.YJ(this.hostElement,"yt-close-popup-action")};
JN.prototype.onNavigate=function(){_.YJ(this.hostElement,"yt-close-popup-action")};
JN.prototype.onNavigate=JN.prototype.onNavigate;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],JN.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],JN.prototype,"data",void 0);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JN.prototype,"onNavigate",null);
_.Y([_.fE({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],JN);
_.T(JN,"ytd-survey-follow-up-renderer",function(){if(ufe!==void 0)return ufe;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ufe=g},{mode:1});var qb3;var Qme;var LJe;var jw=function(){var g=_.X.apply(this,arguments)||this;g.polymer2="Element"in Polymer;return g};
_.A(jw,_.X);_.P=jw.prototype;_.P.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.P.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.P.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.P.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("minutes-changed",this.minutes))};
_.P.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("seconds-changed",this.seconds))};
_.P.updateMinutesFromBinding=function(g){this.minutes=g.detail.value};
_.P.updateSecondsFromBinding=function(g){this.seconds=g.detail.value};
jw.prototype.secondsChangedForBinding=jw.prototype.secondsChangedForBinding;jw.prototype.minutesChangedForBinding=jw.prototype.minutesChangedForBinding;jw.prototype.secondsChanged=jw.prototype.secondsChanged;_.Y([_.a(),_.K("design:type",String)],jw.prototype,"minutes",void 0);_.Y([_.a(),_.K("design:type",String)],jw.prototype,"seconds",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],jw.prototype,"polymer2",void 0);
_.Y([_.oE("#seconds"),_.K("design:type",Object)],jw.prototype,"secondsEl",void 0);_.Y([_.k_("seconds"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jw.prototype,"secondsChanged",null);_.Y([_.k_("minutes"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jw.prototype,"minutesChangedForBinding",null);
_.Y([_.k_("seconds"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jw.prototype,"secondsChangedForBinding",null);_.Y([_.jP({is:"yt-timestamp-input",disableElementRegistration:!0})],jw);
_.T(jw,"yt-timestamp-input",function(){if(LJe===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Qme===void 0&&(Qme=document.createElement("template"));var Q=Qme;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);LJe=g}g=LJe;return g},{mode:2});var fD=function(){return _.X.apply(this,arguments)||this};
_.A(fD,_.X);_.P=fD.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22497_scroller.dialogElement=this.hostElement.parentNode};
_.P.dataChanged=function(){var g=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.mH().getPlayerPromise().then(function(u){u=u.getCurrentTime();g.minutes=Math.floor(u/60).toString();g.seconds=(Math.floor(u)%60).toString()})};
_.P.onTapSubmit=function(g){g.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(g={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(g.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(g.minutes=this.minutes,g.seconds=this.seconds),_.Bk().resolve(_.Gy).resolveCommand(this.serviceEndpoint,{form:Object.assign({},g,{element:this.hostElement})}))};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.P.onYtServiceRequestCompleted=function(g,u){u=u.actions;if(Array.isArray(u))for(var q=0,Q=u.length;q<Q;q++)_.c(u[q],_.q4)&&(g.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(u[q]))};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.P.toggleSubmitButton=function(g){this.set("submitButton.isDisabled",!g)};
_.P.handleInput=function(){var g=this.issueType,u=this.affiliation,q=this.minutes,Q=this.seconds;q=!this.showTimestamp||!!q&&!!Q;this.toggleSubmitButton(!!this.descriptionText&&!!g&&!!u&&q)};
_.P.computeServiceEndpoint=function(g){return this.get("submitButton.buttonRenderer.serviceEndpoint",g)};
_.P.computeSubmitButton=function(g){(g=this.get("submitButton.buttonRenderer",g))&&(g=Object.assign({},g,{serviceEndpoint:void 0}));return g};
_.P.computeShowTimestamp=function(g){return!!g};
_.P.onValueChangedForIssueType=function(g){this.issueType=g.detail.value};
_.P.onValueChangedForAffiliation=function(g){this.affiliation=g.detail.value};
_.P.updateDescriptionTextFromBinding=function(g){this.descriptionText=g.detail.value};
_.P.updateFullNameTextFromBinding=function(g){this.fullNameText=g.detail.value};
_.P.updateMinutesFromBinding=function(g){this.minutes=g.detail.value};
_.P.updateSecondsFromBinding=function(g){this.seconds=g.detail.value};
fD.prototype.handleInput=fD.prototype.handleInput;fD.prototype.onYtServiceRequestError=fD.prototype.onYtServiceRequestError;fD.prototype.onYtServiceRequestCompleted=fD.prototype.onYtServiceRequestCompleted;fD.prototype.onYtServiceRequestSent=fD.prototype.onYtServiceRequestSent;fD.prototype.dataChanged=fD.prototype.dataChanged;_.Y([_.I(_.Ov.YtOpenPopupBehavior),_.K("design:type",Object)],fD.prototype,"ytOpenPopupBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.Y([_.oE("#scroller"),_.K("design:type",Object)],fD.prototype,"JSC$22497_scroller",void 0);_.Y([_.oE("#description"),_.K("design:type",HTMLInputElement)],fD.prototype,"description",void 0);_.Y([_.oE("#full-name"),_.K("design:type",Object)],fD.prototype,"fullName",void 0);_.Y([_.a(),_.K("design:type",Object)],fD.prototype,"data",void 0);
_.Y([_.a({computed:"computeShowTimestamp(data.timestampLabel)"}),_.K("design:type",Boolean)],fD.prototype,"showTimestamp",void 0);_.Y([_.a({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.K("design:type",Object)],fD.prototype,"serviceEndpoint",void 0);_.Y([_.a({computed:"computeSubmitButton(data)"}),_.K("design:type",Object)],fD.prototype,"submitButton",void 0);_.Y([_.a(),_.K("design:type",String)],fD.prototype,"descriptionText",void 0);
_.Y([_.a(),_.K("design:type",Number)],fD.prototype,"issueType",void 0);_.Y([_.a(),_.K("design:type",Number)],fD.prototype,"affiliation",void 0);_.Y([_.a(),_.K("design:type",String)],fD.prototype,"fullNameText",void 0);_.Y([_.a(),_.K("design:type",String)],fD.prototype,"minutes",void 0);_.Y([_.a(),_.K("design:type",String)],fD.prototype,"seconds",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fD.prototype,"dataChanged",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],fD.prototype,"onYtServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],fD.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],fD.prototype,"onYtServiceRequestError",null);_.Y([_.k_("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fD.prototype,"handleInput",null);_.Y([_.fE({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],fD);
_.T(fD,"ytd-legal-report-details-form-renderer",function(){if(qb3!==void 0)return qb3;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return qb3=g},{mode:1});var Euv;var ML=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return g};
_.A(ML,_.X);ML.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
ML.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var g=this.formRenderer.getForm();g&&this.data.submitEndpoint&&(_.Bk().resolve(_.Gy).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},g,{element:this.hostElement})}),_.YJ(this.hostElement,"yt-close-popup-action"))}};
ML.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.YJ(this.hostElement,"yt-close-popup-action"))};
ML.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
ML.prototype.onPopupClosed=ML.prototype.onPopupClosed;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],ML.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ML.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);
_.Y([_.oE("yt-form-renderer"),_.K("design:type",Object)],ML.prototype,"formRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],ML.prototype,"data",void 0);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ML.prototype,"onPopupClosed",null);_.Y([_.fE({is:"ytd-form-popup-content",disableElementRegistration:!0})],ML);
_.T(ML,"ytd-form-popup-content",function(){if(Euv!==void 0)return Euv;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Euv=g},{mode:1});var PhB;var tN=function(){return _.X.apply(this,arguments)||this};
_.A(tN,_.X);tN.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
tN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
tN.prototype.onPopupOpened=function(){_.hJ(this.hostElement,"yt-invalidate-popup-tabbables")};
tN.prototype.onYtServiceRequestCompleted=function(g,u){u.data&&u.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.hJ(this.hostElement,"yt-invalidate-popup-tabbables"))};
tN.prototype.onYtServiceRequestCompleted=tN.prototype.onYtServiceRequestCompleted;tN.prototype.onPopupOpened=tN.prototype.onPopupOpened;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],tN.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],tN.prototype,"data",void 0);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tN.prototype,"onPopupOpened",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],tN.prototype,"onYtServiceRequestCompleted",null);_.Y([_.fE({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],tN);
_.T(tN,"ytd-form-popup-renderer",function(){if(PhB!==void 0)return PhB;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return PhB=g},{mode:1});var Nq3;var ew=function(){var g=_.X.apply(this,arguments)||this;g.isLoading=!1;return g};
_.A(ew,_.X);_.P=ew.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");EJK(this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.isLoading=!0};
_.P.onYtServiceRequestCompleted=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.P.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.xJ(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.P.closePopupHandler=function(){this.fireOnCloseActions()};
_.P.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var g=this.get("data.headerImage.thumbnails");g&&(g=_.Fh(g,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+g+")")}};
_.P.onYtNavigate=function(g){(g=_.bd(g))&&g.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
ew.prototype.onYtNavigate=ew.prototype.onYtNavigate;ew.prototype.onHeaderImageChanged=ew.prototype.onHeaderImageChanged;ew.prototype.closePopupHandler=ew.prototype.closePopupHandler;ew.prototype.onYtServiceRequestCompleted=ew.prototype.onYtServiceRequestCompleted;ew.prototype.onYtServiceRequestSent=ew.prototype.onYtServiceRequestSent;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],ew.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ew.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],ew.prototype,"isLoading",void 0);_.Y([_.oE("#header"),_.K("design:type",HTMLDivElement)],ew.prototype,"header",void 0);_.Y([_.oE("#confirm-button"),_.K("design:type",_.gx)],ew.prototype,"confirmButton",void 0);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ew.prototype,"onYtServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ew.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],ew.prototype,"closePopupHandler",null);_.Y([_.k_("data.headerImage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ew.prototype,"onHeaderImageChanged",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ew.prototype,"onYtNavigate",null);
_.Y([_.fE({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],ew);
_.T(ew,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(Nq3!==void 0)return Nq3;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Nq3=g},{mode:1});var smO;var G1=function(){var g=_.X.apply(this,arguments)||this;g.isLoading=!1;return g};
_.A(G1,_.X);_.P=G1.prototype;_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);EJK(this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.P.onYtServiceRequestError=function(g){_.A7(this.hostElement,g.detail.error.message)};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.YJ(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.P.onDataChanged=function(){this.isLoading=!1;var g=this.get("data.headerImage.thumbnails");g&&(g=_.Fh(g,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+g+")");g=_.j_();var u=_.JJ(),q=this.get("data.trackingParams");q&&u&&g&&_.cC(g,u,_.Lr(q))};
_.z3.Object.defineProperties(G1.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
G1.prototype.onDataChanged=G1.prototype.onDataChanged;G1.prototype.onDomChange=G1.prototype.onDomChange;G1.prototype.onYtServiceRequestError=G1.prototype.onYtServiceRequestError;G1.prototype.onYtServiceRequestCompleted=G1.prototype.onYtServiceRequestCompleted;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],G1.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],G1.prototype,"isLoading",void 0);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],G1.prototype,"hasDescription",null);_.Y([_.oE("tp-yt-paper-dialog-scrollable"),_.K("design:type",Object)],G1.prototype,"scrollable",void 0);_.Y([_.oE("#header"),_.K("design:type",HTMLElement)],G1.prototype,"header",void 0);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],G1.prototype,"onYtServiceRequestCompleted",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],G1.prototype,"onYtServiceRequestError",null);
_.Y([_.n6("dom-change"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],G1.prototype,"onDomChange",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],G1.prototype,"onDataChanged",null);_.Y([_.fE({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],G1);
_.T(G1,"ytd-gaming-account-link-setting-renderer",function(){if(smO!==void 0)return smO;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return smO=g},{mode:1});var yTV;var vue;var $P=function(){var g=_.X.apply(this,arguments)||this;g.isHeader=!1;g.getEndpointForm=function(){return V$p(g.data)};
return g};
_.A($P,_.X);_.P=$P.prototype;_.P.triggerHintActions=function(){var g=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var u=_.Og(g.hostElement,"yt-get-opened-popups-action");!(u&&u.length===1?u[0]:[]).some(function(q){q=q.openPopupAction.popupType;return q==="SURVEY"||q==="MEALBAR"||q==="HINT"})&&g.data.hintActions&&g.guideOpened&&(_.xJ(g.hostElement,g.data.hintActions,g.hostElement),g.data.hintActions=void 0)})};
_.P.getBadgeIconType=function(g){return g&&g.liveBroadcasting?"live":null};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(g){if(this.data.serviceEndpoint){var u;_.w("shorts_controller_retrieve_seedless_sequence_v2")&&((u=_.c(this.data.serviceEndpoint,_.g$))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):aPh(this.data.serviceEndpoint,this);g.preventDefault()}else this.data.navigationEndpoint&&!_.ia(_.C6(g),this.hostElement,["A".toString()])&&_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.P.computeActive=function(g,u){if(!g)return!1;var q=g.navigationEndpoint;g=g.serviceEndpoint;if(!q&&!g||!u)return!1;if(q){g=(g=_.nU(u))&&["subscriptions","filteredsubscriptions"].includes(g);if(_.c(q,_.kZ)&&_.c(u,_.kZ)&&!g){var Q=_.c(q,_.kZ).browseId;u=_.c(u,_.kZ).browseId;return Q!==void 0&&u!==void 0&&(Q===u||Q==="VLWL"&&u==="FEwatch_later"||Q==="FEwatch_later"&&u==="VLWL")}var L;q=(L=_.c(q.commandMetadata,_.S_))==null?void 0:L.url;u=(Q=_.c(u.commandMetadata,_.S_))==null?void 0:Q.url;return!(!q||
!u||q!==u&&q!==_.YB(u))}return this.isActiveShortsTab(g,u)};
_.P.isActiveShortsTab=function(g,u){u=!!_.c(u,_.g$)||!!_.c(u,_.M4);return(!!_.c(g,_.g$)||!!_.c(g,_.M4))&&u};
_.P.computeIsPrimary=function(g){return!!g};
_.z3.Object.defineProperties($P.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 g=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&g)return g}}});
$P.prototype.onTap=$P.prototype.onTap;$P.prototype.onUp=$P.prototype.onUp;$P.prototype.onDown=$P.prototype.onDown;$P.prototype.triggerHintActions=$P.prototype.triggerHintActions;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],$P.prototype,"componentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],$P.prototype,"rendererBehavior",void 0);_.Y([_.I(_.iw.YtTaskEmitterBehavior),_.K("design:type",Object)],$P.prototype,"taskEmitterBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],$P.prototype,"activeEndpoint",void 0);_.Y([_.a(),_.K("design:type",Object)],$P.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],$P.prototype,"guideOpened",void 0);_.Y([_.a(),_.K("design:type",String)],$P.prototype,"type",void 0);_.Y([_.oE("yt-interaction"),_.K("design:type",Object)],$P.prototype,"interaction",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$P.prototype,"isHeader",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data","activeEndpoint"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$P.prototype,"active",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$P.prototype,"isPrimary",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.count","data.presentationStyle","data.badges.*"),_.K("design:type",String),_.K("design:paramtypes",[])],$P.prototype,"lineEndStyle",null);
_.Y([_.C("lineEndStyle"),_.K("design:type",Object),_.K("design:paramtypes",[])],$P.prototype,"ariaLabel",null);_.Y([_.k_("data.hintActions","guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$P.prototype,"triggerHintActions",null);_.Y([_.n6("down"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$P.prototype,"onDown",null);
_.Y([_.n6("up"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$P.prototype,"onUp",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$P.prototype,"onTap",null);_.Y([_.fE({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],$P);
_.T($P,"ytd-guide-entry-renderer",function(){if(vue!==void 0)return vue;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return vue=g},{mode:1});var Rj=function(){var g=_.X.apply(this,arguments)||this;g.userToggled=!1;return g};
_.A(Rj,_.X);_.P=Rj.prototype;_.P.getItemsPath=function(){return"data.expandableItems"};
_.P.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.P.onExpanderItemTapped=function(g){var u=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.w("kevlar_guide_expandable_items_killswitch")&&_.xt(this,function(){_.YO(u.expandableItems)});
g.preventDefault()};
_.P.onCollapserItemTapped=function(g){var u=this;this._setExpanded(!1);this.userToggled=!0;g.preventDefault();this.expandableItems&&!_.w("kevlar_guide_collapsible_items_killswitch")&&_.xt(this,function(){_.h6(u.hostElement)})};
_.P.observeActiveEndpoint=function(){for(var g=this.activeEndpoint,u=this.data,q=this.expandableItems.children,Q=0,L=q.length;Q<L;Q++)q[Q].activeEndpoint=g;u&&u.autoExpandCommand&&g&&!this.userToggled&&(q=this.data.autoExpandCommand,u=!(!_.c(q,_.kZ)||!_.c(g,_.kZ)||_.c(q,_.kZ).browseId!==_.c(g,_.kZ).browseId),g=this.get("commandMetadata.webCommandMetadata.url",g),q=this.get("commandMetadata.webCommandMetadata.url",q),u=u||!!(g&&q&&g.includes(q)),this._setExpanded(u),u&&this.ytLazyListBehavior.fillRemainingListItems())};
Rj.prototype.observeActiveEndpoint=Rj.prototype.observeActiveEndpoint;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.a_.YtLazyListBehavior),_.K("design:type",Object)],Rj.prototype,"ytLazyListBehavior",void 0);_.Y([_.oE("#expandable-items"),_.K("design:type",HTMLElement)],Rj.prototype,"expandableItems",void 0);
_.Y([_.a(),_.K("design:type",Object)],Rj.prototype,"data",void 0);_.Y([_.a({readOnly:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],Rj.prototype,"expanded",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],Rj.prototype,"initialCount",void 0);_.Y([_.a(),_.K("design:type",Object)],Rj.prototype,"activeEndpoint",void 0);_.Y([_.k_("data","activeEndpoint","canShowMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rj.prototype,"observeActiveEndpoint",null);
_.Y([_.fE({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Rj);
_.T(Rj,"ytd-guide-collapsible-entry-renderer",function(){if(yTV!==void 0)return yTV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return yTV=g},{mode:2});var D3O;var pSG;var ws=function(){var g=_.X.apply(this,arguments)||this;g.allVideosCount=0;g.renderGuideEntry=!1;return g};
_.A(ws,_.X);ws.prototype.observeRenderEntry=function(){var g;this.renderGuideEntry=!((g=this.data)==null||!g.alwaysShow)||!!this.allVideosCount};
ws.prototype.observeRenderEntry=ws.prototype.observeRenderEntry;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],ws.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ws.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],ws.prototype,"activeEndpoint",void 0);_.Y([_.a({selector:_.IhJ}),_.K("design:type",Object)],ws.prototype,"allVideosCount",void 0);
_.Y([_.a(),_.K("design:type",Object)],ws.prototype,"renderGuideEntry",void 0);_.Y([_.qm("allVideosCount","data.alwaysShow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ws.prototype,"observeRenderEntry",null);_.Y([_.fE({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],ws);
_.T(ws,"ytd-guide-downloads-entry-renderer",function(){if(pSG===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);pSG=g}g=pSG;return g},{mode:1});var cg=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return g};
_.A(cg,_.X);_.P=cg.prototype;_.P.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]]"}}}}}};
_.P.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var g=this.sectionItems.children,u=0,q=g.length;u<q;u++)g[u].activeEndpoint=this.activeEndpoint}};
_.P.handleAddToGuideSectionAction=function(g){var u=_.c(g,P5x);if(u&&this.data&&(g=u.items,u=u.handlerData,g&&u&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(u)>-1)){u=0;for(var q=g.length;u<q;u++)g[u].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,g[u])}};
_.P.handleRemoveFromGuideSectionAction=function(g){var u=_.c(g,NRb);u&&this.data&&(g=u.guideEntryId,u=u.handlerData,g&&u&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(u)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(g,this.data.sectionItems),this.removeFromCollapsedSection(g,this.data.sectionItems)))};
_.P.removeFromExpandedSection=function(g,u){g=this.getEntryIndexMatchingId(g,u);g!==-1&&this.splice("data.sectionItems",g,1)};
_.P.removeFromCollapsedSection=function(g,u){var q=u.findIndex(function(Q){return!!_.c(Q,r2x)});
q&&q!==-1&&u[q]&&_.c(u[q],r2x)&&(u=_.c(u[q],r2x).expandableItems)&&(g=this.getEntryIndexMatchingId(g,u),g!==-1&&this.splice("data.sectionItems."+q+".guideCollapsibleEntryRenderer.expandableItems",g,1))};
_.P.getEntryIndexMatchingId=function(g,u){var q=this;return u.findIndex(function(Q){return q.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Q)===g})};
cg.prototype.activeEndpointChanged=cg.prototype.activeEndpointChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],cg.prototype,"actionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.oE("#section-items"),_.K("design:type",HTMLDivElement)],cg.prototype,"sectionItems",void 0);
_.Y([_.oE("#header-entry"),_.K("design:type",Object)],cg.prototype,"headerEntry",void 0);_.Y([_.a(),_.K("design:type",Object)],cg.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],cg.prototype,"activeEndpoint",void 0);_.Y([_.k_("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cg.prototype,"activeEndpointChanged",null);_.Y([_.fE({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],cg);
_.T(cg,"ytd-guide-collapsible-section-entry-renderer",function(){if(D3O===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);D3O=g}g=D3O;return g},{mode:1});var JTO;var jmV;var Hg=function(){var g=_.X.apply(this,arguments)||this;g.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 g};
_.A(Hg,_.X);_.P=Hg.prototype;
_.P.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}}}}};
_.P.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var g=_.Og(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);g&&g.length===1&&g[0]&&_.Og(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.P.handleResetChannelUnreadCountCommand=function(g){var u;(g=(u=_.c(g,vrz))==null?void 0:u.channelId)&&this.data&&this.data.items&&(u=this.getPathToEntryMatchingId(g))&&(this.set(u+".guideEntryRenderer.count",0),this.set(u+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.handleResetSubscriptionsUnreadDotCommand=function(g){var u,q=(u=_.c(g,D2n))==null?void 0:u.targetId,Q;q&&(Q=this.data)!=null&&Q.items&&(g=this.data.items.findIndex(function(L){var E;return((E=L.guideEntryRenderer)==null?void 0:E.targetId)===q}),g<0||this.set("data.items."+g+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.getPathToEntryMatchingId=function(g){if(this.data&&this.data.items){var u=this.getEntryIndexMatchingId(g,this.data.items);if(u>-1)return"data.items."+u;for(var q=0;q<this.data.items.length;q++)if(u=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[q]))if(u=this.getEntryIndexMatchingId(g,u),u>-1)return"data.items."+q+".guideCollapsibleEntryRenderer.expandableItems."+u}};
_.P.handleAddToGuideSectionAction=function(g){var u=this;if(_.c(g,P5x)){var q=_.c(g,P5x).items;g=_.c(g,P5x).handlerData;var Q,L;if(q&&g&&((Q=this.data)==null?void 0:(L=Q.handlerDatas)==null?void 0:L.indexOf(g))>-1){q=q.filter(function(y){return(y=u.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y))&&!u.isGuideItemPresent(y)});
var E;if(g==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((E=this.data)==null?0:E.items)&&(Q=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),Q>-1)){this.splice.apply(this,["data.items",Q+1,0].concat(_.na(q)));return}this.unshift.apply(this,["data.items"].concat(_.na(q)))}}};
_.P.isGuideItemPresent=function(g){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(g,this.data.items)!==-1)return!0;var u=this.data.items.find(function(q){return!!q.guideCollapsibleEntryRenderer});
if((u==null?0:u.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(g,u.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.P.getEntryIndexMatchingId=function(g,u){var q=this;return u.findIndex(function(Q){return q.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Q)===g})};
_.P.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(g,u){var q=this;return u.findIndex(function(Q){return q.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",Q)===g})};
_.P.handleRemoveFromGuideSectionAction=function(g){if(_.c(g,NRb)){var u=_.c(g,NRb).guideEntryId;g=_.c(g,NRb).handlerData;var q,Q;u&&g&&((q=this.data)==null?void 0:(Q=q.handlerDatas)==null?void 0:Q.indexOf(g))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(u,this.data.items),this.removeFromCollapsedSection(u,this.data.items))}};
_.P.removeFromExpandedSection=function(g,u){g=this.getEntryIndexMatchingId(g,u);g!==-1&&this.splice("data.items",g,1)};
_.P.removeFromCollapsedSection=function(g,u){var q=u.findIndex(function(Q){return!!Q.guideCollapsibleEntryRenderer});
q!==-1&&(u=u[q].guideCollapsibleEntryRenderer.expandableItems)&&(g=this.getEntryIndexMatchingId(g,u),g!==-1&&this.splice("data.items."+q+".guideCollapsibleEntryRenderer.expandableItems",g,1))};
_.P.activeEndpointChanged=function(){for(var g=_.Tr(this.hostElement).querySelector("#items").children,u=0,q=g.length;u<q;u++)g[u].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.P.guideOpenedChanged=function(){for(var g=_.Tr(this.hostElement).querySelector("#items").children,u=0,q=g.length;u<q;u++)g[u].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Hg.prototype.guideOpenedChanged=Hg.prototype.guideOpenedChanged;Hg.prototype.activeEndpointChanged=Hg.prototype.activeEndpointChanged;Hg.prototype.persistentGuideChanged=Hg.prototype.persistentGuideChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Hg.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.a_.YtLazyListBehavior),_.K("design:type",Object)],Hg.prototype,"ytLazyListBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Hg.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Hg.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Hg.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",String)],Hg.prototype,"type",void 0);_.Y([_.a({value:20}),_.K("design:type",Number)],Hg.prototype,"initialCount",void 0);_.Y([_.a({value:10}),_.K("design:type",Number)],Hg.prototype,"targetFramerate",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],Hg.prototype,"autoFill",void 0);_.Y([_.a({value:50}),_.K("design:type",Number)],Hg.prototype,"renderDelay",void 0);
_.Y([_.k_("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hg.prototype,"persistentGuideChanged",null);_.Y([_.qm("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hg.prototype,"activeEndpointChanged",null);_.Y([_.qm("guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hg.prototype,"guideOpenedChanged",null);
_.Y([_.fE({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Hg);
_.T(Hg,"ytd-guide-section-renderer",function(){if(jmV!==void 0)return jmV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return jmV=g},{mode:2});var fkT;var AN=function(){return _.X.apply(this,arguments)||this};
_.A(AN,_.X);_.z3.Object.defineProperties(AN.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],AN.prototype,"rendererBehaviors",void 0);_.Y([_.a(),_.K("design:type",Object)],AN.prototype,"data",void 0);_.Y([_.a(),_.C("data.signInButton.buttonRenderer.style"),_.K("design:type",Object),_.K("design:paramtypes",[])],AN.prototype,"alignByText",null);_.Y([_.fE({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],AN);
_.T(AN,"ytd-guide-signin-promo-renderer",function(){if(fkT===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);fkT=g}g=fkT;return g},{mode:1});var ZA=function(){var g=_.X.apply(this,arguments)||this;g.showFooter=!1;return g};
_.A(ZA,_.X);ZA.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}}}}};
ZA.prototype.attached=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1){u=_.Bk().resolve(_.xv(_.Gu));if(!u)return q.jumpTo(0);u.setGuideData(g.hostElement);return q.yield(0,3)}g.ytLazyListBehavior.initialCount=2;return q.return()})};
ZA.prototype.onMouseExit=function(){_.w("web_guide_hover_expansion")&&_.Og(this.hostElement,"yt-guide-mouseleaved",[])};
ZA.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
ZA.prototype.dataChanged=ZA.prototype.dataChanged;ZA.prototype.onMouseExit=ZA.prototype.onMouseExit;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ZA.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.a_.YtLazyListBehavior),_.K("design:type",Object)],ZA.prototype,"ytLazyListBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ZA.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],ZA.prototype,"showFooter",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],ZA.prototype,"autoFill",void 0);_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZA.prototype,"onMouseExit",null);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZA.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-guide-renderer",disableElementRegistration:!0})],ZA);
_.T(ZA,"ytd-guide-renderer",function(){if(JTO!==void 0)return JTO;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return JTO=g},{mode:2});var MKB;var lV=function(){var g=_.X.apply(this,arguments)||this;g.systemIcons=_.w("kevlar_system_icons");g.frostedGlass=_.w("web_frosted_glass");g.onAllyMenuButtonClick=function(){var u=g.getShowSheetCommand();u&&g.ytComponentBehavior.resolveCommand(u)};
g.getEndpointForm=function(){return V$p(g.data)};
return g};
_.A(lV,_.X);_.P=lV.prototype;_.P.attached=function(){this.JSC$22550_sheetController=_.Bk().resolve(_.vy)};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var g;(g=this.JSC$22550_sheetController)==null||V2x(g,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.P.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.P.isSeedlessReelCommand=function(g){var u;return!!g&&((u=_.c(g,_.g$))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.P.isShowSheetCommand=function(g){return!!g&&!!_.c(g,_.q0)};
_.P.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.P.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.P.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(g){if(this.data.serviceEndpoint){if(_.w("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 u;(u=this.JSC$22550_sheetController)==null||V2x(u,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));g.preventDefault();
return}aPh(this.data.serviceEndpoint,this)}g.preventDefault()}else{var q;((q=this.data)==null?0:q.navigationEndpoint)&&!_.ia(_.C6(g),this.hostElement,["A".toString()])&&_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.P.computeActive=function(g,u){if(!g)return!1;var q=g.navigationEndpoint;g=g.serviceEndpoint;if(!q&&!g||!u)return!1;if(q){g=_.c(q,_.kZ);var Q=_.c(u,_.kZ);if(g&&Q)return g.browseId===Q.browseId&&g.params===Q.params;var L;q=(L=_.c(q.commandMetadata,_.S_))==null?void 0:L.url;var E;u=(E=_.c(u.commandMetadata,_.S_))==null?void 0:E.url;return!(!q||!u||q!==u&&q!==_.YB(u))}return this.isActiveShortsTab(g,u)};
_.P.isActiveShortsTab=function(g,u){u=!!_.c(u,_.g$)||!!_.c(u,_.M4);return(!!_.c(g,_.g$)||!!_.c(g,_.M4))&&u};
_.P.computeTitle=function(g,u){return u?"":_.iR(g)};
_.P.computeEndpoint=function(g){return this.isSeedlessReelCommand(g.serviceEndpoint)?g.serviceEndpoint:g.navigationEndpoint};
_.P.computeHref=function(g){g=this.isSeedlessReelCommand(g.serviceEndpoint)?g.serviceEndpoint:g.navigationEndpoint;return(g=this.ytComponentBehavior.computeHref_(g))?g:"#"};
_.P.computeAriaLabelTitle=function(g){return _.iR(g)};
_.P.computeAllyShowMenuOnTap=function(g){return this.isShowSheetCommand(g.mouseEnterEndpoint)||this.isShowSheetCommand(g.serviceEndpoint)};
_.z3.Object.defineProperties(lV.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
lV.prototype.onMouseLeave=lV.prototype.onMouseLeave;lV.prototype.onMouseEnter=lV.prototype.onMouseEnter;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],lV.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.PI),_.K("design:type",Object)],lV.prototype,"ironButtonState",void 0);_.Y([_.a(),_.K("design:type",Object)],lV.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],lV.prototype,"activeEndpoint",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],lV.prototype,"noLabels",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.K("design:type",Boolean)],lV.prototype,"isActive",void 0);_.Y([_.a({computed:"computeEndpoint(data)"}),_.K("design:type",Object)],lV.prototype,"computedEndpoint",void 0);
_.Y([_.a({computed:"computeHref(data)"}),_.K("design:type",String)],lV.prototype,"computedHref",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],lV.prototype,"systemIcons",void 0);_.Y([_.oE("yt-interaction"),_.K("design:type",Object)],lV.prototype,"interaction",void 0);_.Y([_.C("isActive"),_.K("design:type",Object),_.K("design:paramtypes",[])],lV.prototype,"ariaSelected",null);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],lV.prototype,"frostedGlass",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.K("design:type",Boolean)],lV.prototype,"allyShowMenuOnTap",void 0);_.Y([_.n6("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],lV.prototype,"onMouseEnter",null);_.Y([_.n6("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],lV.prototype,"onMouseLeave",null);
_.Y([_.fE({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],lV);
_.T(lV,"ytd-mini-guide-entry-renderer",function(){if(MKB!==void 0)return MKB;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return MKB=g},{mode:_.hr("kevlar_poly_si_batch_j063")?1:2});var tKe;var Ij=function(){var g=_.X.apply(this,arguments)||this;g.allVideosCount=0;g.noLabels=_.w("kevlar_mini_guide_no_labels");g.frostedGlass=_.w("web_frosted_glass");return g};
_.A(Ij,_.X);_.P=Ij.prototype;_.P.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.P.onMouseEnter=function(){_.w("web_guide_hover_expansion")&&_.Og(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.P.visibleChanged=function(){if(this.visible&&!this.data){var g=_.Bk().resolve(_.xv(_.Gu));g&&g.setGuideData(this.hostElement);_.xl(_.gL(),this.miniGuideVe);(g=_.j_())&&this.miniGuideVe&&_.At(g,this.miniGuideVe)}};
_.P.dataChanged=function(){var g=_.w("kevlar_guide_menu_on_hover")&&_.w("kevlar_modern_mini_guide"),u=_.w("kevlar_guide_menu_on_click")&&_.w("kevlar_modern_mini_guide"),q;var Q=(q=this.data)==null?void 0:q.items;q=this.allVideosCount;var L=[];g=g?0:u?1:void 0;u=g!==void 0;if(Q){for(var E=[],y=_.N(Q),v=y.next();!v.done;v=y.next())if(v=v.value,v.guideSubscriptionsSectionRenderer){var J=void 0;E=((J=v.guideSubscriptionsSectionRenderer)==null?void 0:J.items)||[]}Q=_.N(Q);for(y=Q.next();!y.done;y=Q.next())if(y=
y.value,v=void 0,(v=y.guideSectionRenderer)==null?0:v.items)for(v=void 0,y=_.N((v=y.guideSectionRenderer)==null?void 0:v.items),v=y.next();!v.done;v=y.next()){v=v.value;var f=void 0,t=void 0;J=v.guideEntryRenderer||_.c((f=v)==null?void 0:(t=f.guideCollapsibleSectionEntryRenderer)==null?void 0:t.headerEntry,XMh);f=[];t=[];var e=void 0;if(((e=J)==null?void 0:e.targetId)==="subscriptions-guide-item")f=E;else{var G=e=void 0;if((e=v)==null?0:(G=e.guideCollapsibleSectionEntryRenderer)==null?0:G.sectionItems)t=
f=v.guideCollapsibleSectionEntryRenderer.sectionItems}TmC(L,J,u?f:[],g);if(t.length>0)for(v=_.N(t),J=v.next();!J.done;J=v.next())J=J.value,t=_.c(J,lth),f=void 0,t=t&&(t.alwaysShow||q)?_.c((f=t)==null?void 0:f.entryRenderer,XMh):_.c(J,XMh),TmC(L,t,[])}}this.miniGuideItems=L};
_.P.activeEndpointChanged=function(){for(var g=this.items.children,u=0;u<g.length;u++)g[u].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.P.registerWithViewTransitionManager=function(){var g=this;_.M_(_.Hv,function(){var u=_.Bk().resolve(_.xv(_.LP));if(u&&u.isAnyTransitionEnabled){var q={};u.viewTransitionCoordinator.registerElement(g.hostElement,(q.slide="mini-guide-page-transition",q))}})};
Ij.prototype.activeEndpointChanged=Ij.prototype.activeEndpointChanged;Ij.prototype.dataChanged=Ij.prototype.dataChanged;Ij.prototype.visibleChanged=Ij.prototype.visibleChanged;Ij.prototype.onMouseEnter=Ij.prototype.onMouseEnter;_.Y([_.I(_.jB),_.K("design:type",Object)],Ij.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Ij.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Ij.prototype,"ytComponentBehavior",void 0);_.Y([_.oE("#items"),_.K("design:type",Object)],Ij.prototype,"items",void 0);_.Y([_.a(),_.K("design:type",Object)],Ij.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],Ij.prototype,"visible",void 0);_.Y([_.a(),_.K("design:type",Object)],Ij.prototype,"miniGuideItems",void 0);_.Y([_.a({selector:_.IhJ}),_.K("design:type",Object)],Ij.prototype,"allVideosCount",void 0);_.Y([_.a({value:_.Yq(283834)}),_.K("design:type",_.pV)],Ij.prototype,"miniGuideVe",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ij.prototype,"noLabels",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Ij.prototype,"frostedGlass",void 0);_.Y([_.n6("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ij.prototype,"onMouseEnter",null);_.Y([_.qm("visible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ij.prototype,"visibleChanged",null);
_.Y([_.qm("data","allVideosCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ij.prototype,"dataChanged",null);_.Y([_.qm("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ij.prototype,"activeEndpointChanged",null);_.Y([_.fE({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Ij);
_.T(Ij,"ytd-mini-guide-renderer",function(){if(tKe===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);tKe=g}g=tKe;return g},{mode:1});var eFO;var GMv=/^[\x00-\x7F]+$/,iV=function(){return _.X.apply(this,arguments)||this};
_.A(iV,_.X);_.z3.Object.defineProperties(iV.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var g,u=_.iR((g=this.data)==null?void 0:g.handle);if(u)return _.I7("@"+u)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var g=_.iR(this.displayHandle),u,q=_.iR((u=this.data)==null?void 0:u.handleUrl);if(g&&q)return _.I7(q+g)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var g=_.iR(this.displayHandle);if(g&&!GMv.test(g)){var u;return(u=this.data)==null?void 0:u.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var g=_.iR(this.displayHandleUrl),u,q=_.iR((u=this.data)==null?void 0:u.urlInfoText);if(g&&q)return _.I7(q+" "+g)}}});
_.Y([_.a(),_.K("design:type",Object)],iV.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],iV.prototype,"displayHandle",null);_.Y([_.C("displayHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],iV.prototype,"displayHandleUrl",null);_.Y([_.C("displayHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],iV.prototype,"warningText",null);
_.Y([_.C("displayHandleUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],iV.prototype,"urlInfoTextWithUrl",null);_.Y([_.fE({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],iV);
_.T(iV,"ytd-handles-claiming-confirm-dialog-content",function(){if(eFO!==void 0)return eFO;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return eFO=g},{mode:1});var $3O;var CD=function(){var g=_.X.apply(this,arguments)||this;g.okButtonOverride={style:"mono",type:"outline",size:"M"};return g};
_.A(CD,_.X);CD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
CD.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],CD.prototype,"okButtonOverride",void 0);_.Y([_.a(),_.K("design:type",Object)],CD.prototype,"data",void 0);_.Y([_.fE({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],CD);
_.T(CD,"ytd-handles-claiming-confirm-dialog-renderer",function(){if($3O!==void 0)return $3O;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return $3O=g},{mode:1});var RFe;var wSO=/^[\x00-\x7F]+$/,bV=function(){var g=_.X.apply(this,arguments)||this;g.isLoading=!1;return g};
_.A(bV,_.X);bV.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var g;this.selectedHandle=(g=this.handleInput)==null?void 0:g.value;this.onSelectedHandleChanged(this.selectedHandle);_.Og(this.hostElement,"yt-refit-popups-action")}};
_.z3.Object.defineProperties(bV.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.I7("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.I7(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!wSO.test(this.selectedHandle)){var g;return(g=this.data)==null?void 0:g.warningText}}}});
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],bV.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],bV.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],bV.prototype,"selectedHandle",void 0);_.Y([_.a(),_.K("design:type",Object)],bV.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",Function)],bV.prototype,"onSelectedHandleChanged",void 0);_.Y([_.oE("#channel-handle-input"),_.K("design:type",Object)],bV.prototype,"handleInput",void 0);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],bV.prototype,"handleUrlPrefix",null);_.Y([_.C("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],bV.prototype,"displayHandle",null);_.Y([_.C("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],bV.prototype,"displayHandleUrl",null);_.Y([_.C("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],bV.prototype,"warningText",null);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.Y([_.fE({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],bV);
_.T(bV,"ytd-handles-claiming-edit-dialog-content",function(){if(RFe!==void 0)return RFe;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return RFe=g},{mode:1});var cTV;var ds=function(){var g=_.X.apply(this,arguments)||this;g.actionButtonOverride={style:"mono",type:"filled",size:"M"};g.cancelButtonOverride={style:"mono",type:"text",size:"M"};g.selectButtonDisabled=!1;g.isLoading=!1;g.hasSelectedHandleEventListener=!1;g.selectedHandleChanged=function(u){g.selectedHandle=u};
return g};
_.A(ds,_.X);_.P=ds.prototype;_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.P.onDataChanged=function(){var g,u;this.selectedHandle=(u=_.c((g=this.data)==null?void 0:g.inputField,zCZ))==null?void 0:u.handle};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.selectedHandle="";_.YJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var g=this;if(this.selectedHandle!==void 0){var u;((u=this.data)==null?void 0:u.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(q,Q){if(Q.newHandleUpdateStatus!==void 0&&Q.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Q.newHandleUpdateStatus.errorMessage)_.A7(g.hostElement,_.iR(Q.newHandleUpdateStatus.errorMessage)),
g.isLoading=!1;else{var L;if((L=g.data)==null?0:L.onChannelUpdateSuccess){q=g.data.onChannelUpdateSuccess;var E,y;if(Q=(E=_.c(q,_.q4))==null?void 0:(y=E.popup)==null?void 0:y.handlesClaimingConfirmDialogRenderer)Q.handle=_.I7(g.selectedHandle);g.ytComponentBehavior.resolveCommand(q);_.YJ(g.hostElement,"yt-close-popup-action",[g.is])}else g.isLoading=!1}},
onServerError:function(){var q;g.content&&((q=g.content)==null?0:q.handleInput)&&g.content.handleInput.validate();g.isLoading=!1;_.A7(g.hostElement,_.Ug("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
ds.prototype.onDataChanged=ds.prototype.onDataChanged;ds.prototype.onSelectedHandleChanged=ds.prototype.onSelectedHandleChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],ds.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ds.prototype,"actionButtonOverride",void 0);_.Y([_.a(),_.K("design:type",Object)],ds.prototype,"cancelButtonOverride",void 0);_.Y([_.a(),_.K("design:type",Object)],ds.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",String)],ds.prototype,"selectedHandle",void 0);_.Y([_.a(),_.K("design:type",Object)],ds.prototype,"selectButtonDisabled",void 0);_.Y([_.a(),_.K("design:type",Object)],ds.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",Object)],ds.prototype,"hasSelectedHandleEventListener",void 0);_.Y([_.a(),_.K("design:type",Object)],ds.prototype,"handleInput",void 0);
_.Y([_.k_("selectedHandle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ds.prototype,"onSelectedHandleChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ds.prototype,"onDataChanged",null);_.Y([_.oE("ytd-handles-claiming-edit-dialog-content"),_.K("design:type",Object)],ds.prototype,"content",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.fE({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],ds);
_.T(ds,"ytd-handles-claiming-edit-dialog-renderer",function(){if(cTV!==void 0)return cTV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return cTV=g},{mode:1});var HZV;var Fb=function(){return _.X.apply(this,arguments)||this};
_.A(Fb,_.X);_.z3.Object.defineProperties(Fb.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null?0:g.handle){var u;return _.I7("@"+_.iR((u=this.data)==null?void 0:u.handle))}}}});
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Fb.prototype,"formattedHandle",null);_.Y([_.a(),_.K("design:type",Object)],Fb.prototype,"data",void 0);_.Y([_.fE({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Fb);
_.T(Fb,"ytd-handles-claiming-radio-option-renderer",function(){if(HZV!==void 0)return HZV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return HZV=g},{mode:1});var ATT;var ZZ0=/^[\x00-\x7F]+$/,mt=function(){var g=_.X.apply(this,arguments)||this;g.initialRadioIndex="-1";g.isLoading=!1;g.maybeSubmitFeedback=function(){g.feedbackSurveyRenderer.submitSurvey()};
return g};
_.A(mt,_.X);mt.prototype.updateSelectedHandleIndexFromBinding=function(g){this.selectedRadioIndex=+g.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(g)};
mt.prototype.selectedHandleChanged=function(g){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var u;this.selectedHandle=(u=this.handleInput)==null?void 0:u.value;this.onSelectedHandleChanged(g)}};
_.z3.Object.defineProperties(mt.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var g;return this.ytRendererBehavior.getSimpleString((g=this.data)==null?void 0:g.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.I7("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.I7(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!ZZ0.test(this.selectedHandle)){var g;return(g=this.data)==null?void 0:g.warningText}}}});
_.Y([_.a(),_.K("design:type",Object)],mt.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],mt.prototype,"initialRadioIndex",void 0);_.Y([_.a(),_.K("design:type",Number)],mt.prototype,"selectedRadioIndex",void 0);_.Y([_.a(),_.K("design:type",String)],mt.prototype,"selectedHandle",void 0);_.Y([_.a(),_.K("design:type",Object)],mt.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",Function)],mt.prototype,"onSelectedHandleChanged",void 0);
_.Y([_.a(),_.K("design:type",Function)],mt.prototype,"onSelectedRadioIndexChanged",void 0);_.Y([_.oE("#channel-handle-input"),_.K("design:type",Object)],mt.prototype,"handleInput",void 0);_.Y([_.oE("ytd-feedback-survey-renderer"),_.K("design:type",Object)],mt.prototype,"feedbackSurveyRenderer",void 0);_.Y([_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],mt.prototype,"radioButtonLength",null);
_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mt.prototype,"handleUrlPrefix",null);_.Y([_.C("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],mt.prototype,"displayHandle",null);_.Y([_.C("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],mt.prototype,"displayHandleUrl",null);_.Y([_.C("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],mt.prototype,"warningText",null);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.Y([_.fE({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],mt);
_.T(mt,"ytd-handles-claiming-select-dialog-content",function(){if(ATT!==void 0)return ATT;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ATT=g},{mode:1});var lkV;var aj=function(){var g=_.X.apply(this,arguments)||this;g.actionButtonOverride={style:"mono",type:"filled",size:"M"};g.cancelButtonOverride={style:"mono",type:"text",size:"M"};g.initialRadioIndex="-1";g.selectButtonDisabled=!1;g.isLoading=!1;g.selectedRadioIndexChanged=function(u){g.selectedRadioIndex=Number(u.detail.value)};
g.selectedHandleChanged=function(u){g.selectedHandle=u.detail.value};
return g};
_.A(aj,_.X);_.P=aj.prototype;_.P.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.P.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Og(this.hostElement,"yt-refit-popups-action")};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.YJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var g=this;if(this.selectedHandle!==void 0){var u;((u=this.data)==null?void 0:u.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(q,Q){if(Q.newHandleUpdateStatus!==void 0&&Q.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Q.newHandleUpdateStatus.errorMessage)_.A7(g.hostElement,_.iR(Q.newHandleUpdateStatus.errorMessage)),
g.isLoading=!1;else{var L;if((L=g.data)==null?0:L.onChannelUpdateSuccess){q=g.data.onChannelUpdateSuccess;Q=_.c(q,_.q4);var E;if(Q==null?0:(E=Q.popup)==null?0:E.handlesClaimingConfirmDialogRenderer)Q.popup.handlesClaimingConfirmDialogRenderer.handle=_.I7(g.selectedHandle);g.ytComponentBehavior.resolveCommand(q);_.YJ(g.hostElement,"yt-close-popup-action",[g.is])}else g.isLoading=!1}},
onServerError:function(){if(g.selectedRadioIndex===g.radioButtonLength){var q;g.content&&((q=g.content)==null?0:q.handleInput)&&g.content.handleInput.validate()}g.isLoading=!1;_.A7(g.hostElement,_.Ug("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var g,u;this.selectedHandle=(g=this.content)==null?void 0:(u=g.handleInput)==null?void 0:u.value}else this.selectedRadioIndex>=0&&((g=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(g==null?void 0:g.handle):this.selectedHandle=void 0)};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.P.getRadioItem=function(g){if(this.radioButtonLength>g&&g>=0)return _.c(this.data.radioButton[g],lGZ)};
_.z3.Object.defineProperties(aj.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.radioButton)||[]).length}}});
aj.prototype.onSelectedHandleChanged=aj.prototype.onSelectedHandleChanged;aj.prototype.onSelectedHandleIndexChanged=aj.prototype.onSelectedHandleIndexChanged;aj.prototype.onDataChanged=aj.prototype.onDataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],aj.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],aj.prototype,"actionButtonOverride",void 0);_.Y([_.a(),_.K("design:type",Object)],aj.prototype,"cancelButtonOverride",void 0);
_.Y([_.a(),_.K("design:type",Object)],aj.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],aj.prototype,"initialRadioIndex",void 0);_.Y([_.a(),_.K("design:type",Number)],aj.prototype,"selectedRadioIndex",void 0);_.Y([_.a(),_.K("design:type",String)],aj.prototype,"selectedHandle",void 0);_.Y([_.a(),_.K("design:type",Object)],aj.prototype,"selectButtonDisabled",void 0);_.Y([_.a(),_.K("design:type",Object)],aj.prototype,"isLoading",void 0);
_.Y([_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],aj.prototype,"radioButtonLength",null);_.Y([_.oE("ytd-handles-claiming-select-dialog-content"),_.K("design:type",Object)],aj.prototype,"content",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aj.prototype,"onDataChanged",null);
_.Y([_.k_("selectedRadioIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aj.prototype,"onSelectedHandleIndexChanged",null);_.Y([_.k_("selectedHandle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aj.prototype,"onSelectedHandleChanged",null);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.fE({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],aj);
_.T(aj,"ytd-handles-claiming-select-dialog-renderer",function(){if(lkV!==void 0)return lkV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return lkV=g},{mode:1});var IkV;var iZO;var VJ=function(){return _.X.apply(this,arguments)||this};
_.A(VJ,_.X);VJ.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],VJ.prototype,"data",void 0);_.Y([_.fE({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],VJ);
_.T(VJ,"ytd-hotkey-dialog-section-option-renderer",function(){if(iZO!==void 0)return iZO;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return iZO=g},{mode:1});var ChO;var Xb=function(){return _.X.apply(this,arguments)||this};
_.A(Xb,_.X);Xb.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Xb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Xb.prototype,"data",void 0);_.Y([_.fE({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Xb);
_.T(Xb,"ytd-hotkey-dialog-section-renderer",function(){if(ChO!==void 0)return ChO;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ChO=g},{mode:1});var rs=function(){return _.X.apply(this,arguments)||this};
_.A(rs,_.X);rs.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],rs.prototype,"data",void 0);_.Y([_.fE({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],rs);
_.T(rs,"ytd-hotkey-dialog-content",function(){if(IkV!==void 0)return IkV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return IkV=g},{mode:1});var bZT;var Wg=function(){return _.X.apply(this,arguments)||this};
_.A(Wg,_.X);Wg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var g=document.querySelector("ytd-hotkey-dialog-content #scrollable");g&&(g.dialogElement=this.hostElement.parentElement)};
Wg.prototype.onCloseTap=function(){_.YJ(this.hostElement,"yt-close-popup-action")};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Wg.prototype,"data",void 0);_.Y([_.fE({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Wg);
_.T(Wg,"ytd-hotkey-dialog-renderer",function(){if(bZT!==void 0)return bZT;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return bZT=g},{mode:1});var d3B;var T1=function(){return _.X.apply(this,arguments)||this};
_.A(T1,_.X);T1.prototype.onYtServiceRequestError=function(){if(this.blocked){var g;var u=(g=this.data)==null?void 0:g.defaultServiceEndpoint}else{var q;u=(q=this.data)==null?void 0:q.toggledServiceEndpoint}var Q;(u=(Q=_.c(u,_.koa))==null?void 0:Q.onFailureAction)&&this.ytComponentBehavior.resolveCommand(u);this.updateBlockState(!this.blocked)};
T1.prototype.onYtToggleButton=function(g){this.updateBlockState(g.detail.toggled)};
T1.prototype.updateBlockState=function(g){if(g!==this.blocked){var u=this.blockedEntityKey;u&&this.ytdReduxBehavior.dispatch(_.u2("blockStateEntity",u,{key:u,blocked:g}));this.set("data.isToggled",g)}};
_.z3.Object.defineProperties(T1.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)}}});
T1.prototype.onYtToggleButton=T1.prototype.onYtToggleButton;T1.prototype.onYtServiceRequestError=T1.prototype.onYtServiceRequestError;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],T1.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],T1.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],T1.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],T1.prototype,"blockedEntityKey",void 0);
_.Y([_.a({selectorArgs:["blockedEntityKey"],selector:function(g,u){return _.BC(g.entities,"blockStateEntity",u)}}),
_.K("design:type",Object)],T1.prototype,"blockStateEntity",void 0);_.Y([_.C("data","blockStateEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],T1.prototype,"blocked",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],T1.prototype,"onYtServiceRequestError",null);
_.Y([_.n6("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],T1.prototype,"onYtToggleButton",null);_.Y([_.fE({is:"ytd-block-button",disableElementRegistration:!0})],T1);
_.T(T1,"ytd-block-button",function(){if(d3B!==void 0)return d3B;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return d3B=g},
{mode:1});var FJT;var m3T;var hN=function(){return _.X.apply(this,arguments)||this};
_.A(hN,_.X);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],hN.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],hN.prototype,"data",void 0);_.Y([_.fE({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],hN);
_.T(hN,"ytd-kids-blocklist-picker-item-renderer",function(){if(m3T!==void 0)return m3T;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return m3T=g},{mode:1});var YP=function(){return _.X.apply(this,arguments)||this};
_.A(YP,_.X);YP.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],YP.prototype,"data",void 0);_.Y([_.fE({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],YP);
_.T(YP,"ytd-kids-blocklist-picker-content",function(){if(FJT!==void 0)return FJT;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return FJT=
g},{mode:2});var ak0;var Oj=function(){var g=_.X.apply(this,arguments)||this;g.hasAnyRequestSucceeded=!1;g.hasAnyRequestFailed=!1;g.numPendingRequests=0;return g};
_.A(Oj,_.X);_.P=Oj.prototype;_.P.attached=function(){this.hostElement.setAttribute("dialog","")};
_.P.onDoneButtonTap=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.P.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.P.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.P.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.P.onPopupClosed=function(g){var u,q;if(((u=g.detail)==null?void 0:(q=u.popup)==null?void 0:q.is)==="tp-yt-paper-dialog"){var Q;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((Q=this.data)==null?0:Q.successfulToastActionMessage)&&(g=_.FJ(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(g));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Oj.prototype.onPopupClosed=Oj.prototype.onPopupClosed;Oj.prototype.onYtServiceRequestError=Oj.prototype.onYtServiceRequestError;Oj.prototype.onYtServiceRequestCompleted=Oj.prototype.onYtServiceRequestCompleted;Oj.prototype.onYtServiceRequestSent=Oj.prototype.onYtServiceRequestSent;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Oj.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],Oj.prototype,"data",void 0);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Oj.prototype,"onYtServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Oj.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Oj.prototype,"onYtServiceRequestError",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Oj.prototype,"onPopupClosed",null);_.Y([_.fE({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Oj);
_.T(Oj,"ytd-kids-blocklist-picker-renderer",function(){if(ak0!==void 0)return ak0;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ak0=g},{mode:1});var VK0;var XSV;var KD=function(){return _.X.apply(this,arguments)||this};
_.A(KD,_.X);KD.prototype.setTip=function(g){var u=this;this.data&&(this.tip=kjK(zah.getInstance(),g,this.data),_.xt(this,function(){_.hJ(u.hostElement,"yt-refit")}))};
KD.prototype.clearTip=function(){this.tip=void 0};
KD.prototype.computeHidden=function(g){return!g};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],KD.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.K("design:type",Boolean)],KD.prototype,"hidden",void 0);_.Y([_.a(),_.K("design:type",Object)],KD.prototype,"tip",void 0);_.Y([_.fE({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],KD);
_.T(KD,"ytd-menu-popup-tip-renderer",function(){if(XSV!==void 0)return XSV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);
return XSV=g},{mode:1});var rTB;var xP=function(){var g=_.X.apply(this,arguments)||this;g.useIcons=!1;g.role="menuitem";g.systemIcons=_.w("kevlar_system_icons");return g};
_.A(xP,_.X);_.P=xP.prototype;_.P.onFocus=function(){var g;(g=_.Tr(this.hostElement).querySelector("tp-yt-paper-item"))==null||g.focus()};
_.P.onTap=function(){var g=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(g&&_.c(g,_.zg))this.componentBehavior.resolveCommand(g),this.updateToggledStateInEntity();else if(g){this.componentBehavior.resolveCommand(g)||_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}});var u;((u=_.c(g,_.kJ))==null?void 0:u.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.P.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.P.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.P.updateToggledStateInEntity=function(){var g=this.data.toggleMenuServiceItemEntityKey,u=!this.data.isToggled;g&&this.ytdReduxBehavior.dispatch(_.u2("toggleMenuServiceItemEntity",g,{key:g,isToggled:u}))};
_.P.computeIcon=function(g,u,q){return(g=g?q:u)&&g.iconType?_.x9(g.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.isIconActive=function(g){return!_.w("toggle_menu_active_icon_killswitch")&&g};
_.z3.Object.defineProperties(xP.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.data)==null?0:g.isToggled)?(u=this.data)==null?void 0:u.toggledText:(q=this.data)==null?void 0:q.defaultText}}});
xP.prototype.toggledStateEntityChanged=xP.prototype.toggledStateEntityChanged;xP.prototype.onYtServiceRequestCompleted=xP.prototype.onYtServiceRequestCompleted;xP.prototype.onTap=xP.prototype.onTap;xP.prototype.onFocus=xP.prototype.onFocus;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],xP.prototype,"componentBehavior",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],xP.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],xP.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],xP.prototype,"useIcons",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],xP.prototype,"role",void 0);_.Y([_.a({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.K("design:type",String)],xP.prototype,"icon",void 0);
_.Y([_.a({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.LF.toggleMenuServiceItemEntitySelector}),_.K("design:type",Object)],xP.prototype,"toggleMenuServiceItemEntity",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],xP.prototype,"systemIcons",void 0);_.Y([_.n6("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xP.prototype,"onFocus",null);
_.Y([_.C("data.isToggled"),_.K("design:type",Object),_.K("design:paramtypes",[])],xP.prototype,"toggleButtonText",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xP.prototype,"onTap",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xP.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.k_("toggleMenuServiceItemEntity.isToggled","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xP.prototype,"toggledStateEntityChanged",null);_.Y([_.fE({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],xP);
_.T(xP,"ytd-toggle-menu-service-item-renderer",function(){if(rTB!==void 0)return rTB;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return rTB=g},{mode:1});var WJG;var Bg=function(){return _.X.apply(this,arguments)||this};
_.A(Bg,_.X);Bg.prototype.onFocus=function(){var g;(g=_.Tr(this.hostElement).querySelector("tp-yt-paper-item"))==null||g.focus()};
_.z3.Object.defineProperties(Bg.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.SO(this.data.iconUrl)}}});
Bg.prototype.onFocus=Bg.prototype.onFocus;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Bg.prototype,"rendererBehavior",void 0);_.Y([_.I(_.KK.YtEndpointBehavior),_.K("design:type",Object)],Bg.prototype,"ytEndpointBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Bg.prototype,"data",void 0);_.Y([_.n6("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bg.prototype,"onFocus",null);
_.Y([_.C("data.iconUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],Bg.prototype,"imageSource",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Bg);
_.T(Bg,"ytd-menu-custom-icon-item-renderer",function(){if(WJG!==void 0)return WJG;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return WJG=g},{mode:2});_.dL(_.A8,"yt-list-item-view-model",{props:{data:_.H2,isMenuItem:_.H2,isCompact:_.H2,onTap:_.iF,trailingAccessory:_.iF,hideSelectionTextChevron:_.H2,disabled:_.H2,inPopup:_.H2,disableHorizontalPadding:_.H2,isOverlay:_.H2,isToggled:_.H2,ariaLabel:_.H2,ariaPressed:_.H2,shouldNotFillIcon:_.H2}});var z1=function(){var g=_.X.apply(this,arguments)||this;g.disableBackdropFilter=_.w("web_disable_backdrop_filter");return g};
_.A(z1,_.X);_.P=z1.prototype;
_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.P.computeAriaLabel=function(g){return g};
_.P.onPopupOpened=function(){this.items.selected=0;for(var g=_.N(_.Tr(this.items).children),u=g.next();!u.done;u=g.next())u.value.popupPositionTarget=this.positionTarget;if(g=this.popupTip||void 0)g.setTip(this.source||""),this.source=void 0;this.veData&&(g=_.j_())&&_.Z0(g,[this.veData])};
_.P.onPopupClosed=function(){var g=this.popupTip||void 0;g&&g.clearTip()};
_.P.onIronActivate=function(g){this.shouldPersist(g)||_.YJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(g=_.j_())&&_.Ip(g,this.veData)};
_.P.shouldPersist=function(g){var u,q;if(((u=g.detail)==null?void 0:u.selected)===void 0||(q=this.data)==null||!q.items)return!1;var Q,L;return!((L=(Q=this.data.items[g.detail.selected])==null?void 0:Q.toggleMenuServiceItemRenderer)==null||!L.persistentOnMenuPopup)};
_.P.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(g){return g.menuNavigationItemRenderer?!!g.menuNavigationItemRenderer.icon:g.menuServiceItemRenderer?!!g.menuServiceItemRenderer.icon:g.menuConditionalServiceItemRenderer?!!g.menuConditionalServiceItemRenderer.icon:g.menuConditionalNavigationItemRenderer?!!g.menuConditionalNavigationItemRenderer.icon:g.toggleMenuServiceItemRenderer?!!g.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
z1.prototype.onPopupClosed=z1.prototype.onPopupClosed;z1.prototype.onPopupOpened=z1.prototype.onPopupOpened;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],z1.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],z1.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],z1.prototype,"veData",void 0);_.Y([_.a({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.K("design:type",String)],z1.prototype,"ariaLabel",void 0);_.Y([_.a({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],z1.prototype,"useIcons",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],z1.prototype,"disableBackdropFilter",void 0);_.Y([_.oE("#items"),_.K("design:type",Object)],z1.prototype,"items",void 0);_.Y([_.oE("ytd-menu-popup-tip-renderer"),_.K("design:type",Object)],z1.prototype,"popupTip",void 0);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],z1.prototype,"onPopupOpened",null);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],z1.prototype,"onPopupClosed",null);_.Y([_.fE({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],z1);
_.T(z1,"ytd-menu-popup-renderer",function(){if(VK0!==void 0)return VK0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return VK0=g},{mode:1});var TqT;var hFB=_.r(function(g){g=_.FI(g,{icon:void 0});var u=g.data;g=g.icon;var q=function(){return u().iconBadgeText},Q={},L=_.Ty("yt-spec-icon-badge-shape",function(){a:switch(u().iconBadgeType){case "notification":var E="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":E="yt-spec-icon-badge-shape--type-cart";break a;default:E=""}return E},function(){a:switch(u().iconBadgeStyle){case "overlay":var E="yt-spec-icon-badge-shape--style-overlay";
break a;default:E=""}return E},(Q["yt-spec-icon-badge-shape--text-size-small"]=function(){var E=q();
return!!((E==null?0:E.length)&&E.length>2)},Q));
return _.p("yt-icon-badge-shape",null,_.p(_.M,{cond:g,then:function(E){return _.p("div",{class:L},_.p("div",{class:"yt-spec-icon-badge-shape__icon"},_.p(_.B1,{icon:E})),_.p(_.M,{cond:q,then:function(y){return _.p("div",{class:"yt-spec-icon-badge-shape__badge"},y)}}))}}))},"gl");
hFB.idomCompat=!0;_.dL(hFB,"yt-icon-badge-shape",{props:{data:_.H2,icon:_.H2}});var nD=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};g.unseenCount=0;g.isOverlay=!1;return g};
_.A(nD,_.X);_.P=nD.prototype;_.P.attached=function(){var g=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(u){g.onServiceWorkerMessage(u)})};
_.P.onDataChanged=function(){this.isAttached&&!this.JSC$22636_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22636_lastData=this.data};
_.P.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.computeIcon=function(){var g,u;return(g=this.data)==null?void 0:(u=g.icon)==null?void 0:u.iconType};
_.P.onServiceWorkerMessage=function(g){g.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.P.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.c(this.data.updateUnseenCountEndpoint,_.kJ)&&_.c(this.data.updateUnseenCountEndpoint,_.kJ).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.P.handleUpdateNotificationsUnseenCountAction=function(g){var u=this;g=_.c(g,yV9);g!=null&&g.unseenCount&&g.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(g.unseenCount),_.Hv.addLowPriorityJob(function(){u.data.updateUnseenCountEndpoint&&u.ytComponentBehavior.resolveCommand(u.data.updateUnseenCountEndpoint)},g.timeoutMs))};
_.P.onClick=function(){_.hJ(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var g=_.Og(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),u=this.data.menuRequest;g&&g.length===1&&g[0]?_.YJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):u&&this.ytComponentBehavior.resolveCommand(u)};
_.P.handleTopbarMenuClosedAction=function(g){g==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.P.toggleIconState=function(g){this.iconButton&&(this.iconButton.pressed=g)};
_.P.sendUnseenCountRequest=function(g){var u=this;_.M_(_.Hv,function(){u.ytComponentBehavior.resolveCommand(g)})};
_.P.updateCountUI=function(g){this.set("unseenCount",g<9?g:"9+")};
_.z3.Object.defineProperties(nD.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
nD.prototype.handleUpdateNotificationsUnseenCountAction=nD.prototype.handleUpdateNotificationsUnseenCountAction;nD.prototype.onDataChanged=nD.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],nD.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.dx),_.K("design:type",Object)],nD.prototype,"ytdOpenPopupBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],nD.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],nD.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],nD.prototype,"unseenCount",void 0);_.Y([_.a(),_.K("design:type",Object)],nD.prototype,"isOverlay",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],nD.prototype,"showTooltips",void 0);_.Y([_.oE("yt-icon-button"),_.K("design:type",Object)],nD.prototype,"iconButton",void 0);
_.Y([_.C("unseenCount"),_.K("design:type",Object),_.K("design:paramtypes",[])],nD.prototype,"showNotificationCount",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nD.prototype,"onDataChanged",null);_.Y([_.n6("yt-update-notifications-unseen-count-action"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],nD.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.Y([_.fE({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],nD);
_.T(nD,"ytd-notification-topbar-button-renderer",function(){if(TqT!==void 0)return TqT;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return TqT=g},{mode:2});var YbV;var kP=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return g};
_.A(kP,_.X);kP.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}}}}}};
kP.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
kP.prototype.onDarkModeToggled=function(g){this.dark=g};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],kP.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],kP.prototype,"data",void 0);_.Y([_.a({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],kP.prototype,"dark",void 0);
_.Y([_.fE({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],kP);
_.T(kP,"yt-pdg-buy-flow-header-renderer",function(){if(YbV!==void 0)return YbV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return YbV=g},{mode:1});var OZB;var KJO;var Sw=function(){var g=_.X.apply(this,arguments)||this;g.immediateValue=0;g.isDarkTheme=!1;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(Sw,_.X);_.P=Sw.prototype;_.P.created=function(){_.Ms.requestAvailability()};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.dataChanged=function(){var g=_.Tr(this.hostElement).querySelector("#color-slider");g.immediateValue&&this.updateSliderKnobAndGradientStyles(g.immediateValue);this.data.notches[0].knobColorArgb&&_.x_(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.jh(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.FR("HTML_DIR")==="rtl"&&_.Tr(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.P.onSliderImmediateChange=function(){var g=_.Tr(this.hostElement).querySelector("#color-slider");g.dragging&&(g.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(g.immediateValue),this.updateSliderKnobAndGradientStyles(g.immediateValue)),this.updateSliderAria())};
_.P.onSliderChange=function(){var g=_.Tr(this.hostElement).querySelector("#color-slider");g.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(g.immediateValue),this.updateSliderKnobAndGradientStyles(g.immediateValue));this.updateSliderAria()};
_.P.updateSliderAria=function(){var g=_.Tr(this.hostElement).querySelector("#color-slider"),u=_.Tr(this.hostElement).querySelector("#color-slider");u=_.iR(this.data.notches[u.immediateValue].tierValue);_.GMZ()&&_.hJ(this.hostElement,"iron-announce",{text:u});g.setAttribute("aria-valuetext",u)};
_.P.updateSuperThanksSelectedTierEntity=function(g){if(g!==this.immediateValue){var u,q,Q=this==null?void 0:(u=this.data)==null?void 0:(q=u.superThanksSelectedTierEntity)==null?void 0:q.key;Q&&Q.length>0&&this.ytdReduxBehavior.dispatch(_.u2("superThanksSelectedTierEntity",Q,{key:Q,index:g}))}};
_.P.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.P.updateSliderKnobAndGradientStyles=function(g){this.immediateValue=g;g=this.data.notches[g];if(g==null?0:g.knobColorArgb)var u={"--ytd-pdg-color-slider-knob-color":_.jh(g.knobColorArgb)};(g==null?0:g.linearGradientCssStyle)&&u!==null&&(u=Object.assign({},u,{"--ytd-pdg-color-slider-active-color":g==null?void 0:g.linearGradientCssStyle}));u!==null&&_.x_(this.hostElement,u)};
Sw.prototype.onSliderChange=Sw.prototype.onSliderChange;Sw.prototype.onSliderImmediateChange=Sw.prototype.onSliderImmediateChange;Sw.prototype.dataChanged=Sw.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],Sw.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Sw.prototype,"immediateValue",void 0);_.Y([_.a(),_.K("design:type",Number)],Sw.prototype,"maxMarkers",void 0);
_.Y([_.a({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:pcC}),_.K("design:type",Object)],Sw.prototype,"superThanksSelectedTierEntity",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Sw.prototype,"isDarkTheme",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Sw.prototype,"ytdReduxBehavior",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sw.prototype,"dataChanged",null);
_.Y([_.n6("immediate-value-change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sw.prototype,"onSliderImmediateChange",null);_.Y([_.n6("change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sw.prototype,"onSliderChange",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Sw);
_.T(Sw,"ytd-pdg-color-slider-renderer",function(){if(KJO!==void 0)return KJO;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return KJO=g},{mode:1});var x3s;var Bq0;var oj=null;
_.ys({is:"ytd-comment-input",_template:function(){if(Bq0!==void 0)return Bq0;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Bq0=g},
behaviors:[_.atZ.YtHostElementBehavior,_.n8,_.M8.YtComponentBehavior,_.FK.YtRendererstamperBehavior,_.is5.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 _.wx}},
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",_.zr(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;_.xx();this.focus()},
detached:function(){document.removeEventListener("tap",_.zr(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(g){g=g.detail;g=g.isCustomEmoji?g.shortcuts[0]:g.emojiId;var u=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(u,g);this.maybeUpdateTextDirection_();_.hJ(this.hostElement,"input")},
getInputRange_:function(){var g=_.QZ();if(g){g=g.getBrowserRangeObject();for(var u=g.commonAncestorContainer;u;){if(u===this.getEditableTextArea_())return g;u=u.parentNode}}g=this.getEditableTextArea_();g=_.PU(g,g.childNodes.length);g.select();return g.getBrowserRangeObject()},
insertTextWithEmojis_:function(g,u,q){(u=this.emojiManager.createDocumentFragment(u,!0,!1,q===void 0?!0:q))&&u.childNodes.length!==0&&(g.collapsed||g.deleteContents(),q=u.lastChild,g.insertNode(u),_.roa(q).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var g=_.QZ();if(g){var u=g.JSC$11657_getStartNode(),q=g.JSC$11657_getEndNode();if(hdb(u)&&hdb(q)){var Q=g.JSC$11657_getStartOffset(),L;if(_.zK&&u.nodeType===Node.ELEMENT_NODE&&(L=_.HH2(u)))_.PU(L,0).select();else{L=QS(u)?u:_.ep(u,QS);var E=QS(q)?q:_.ep(q,QS);if(L||E)if(g.isCollapsed()){if(u.nodeType===Node.TEXT_NODE){g=!0;Q===u.length&&(g=!1);if(oj==="end"||oj==="right")g=!1;u=u.parentNode;g=[].concat(_.na(u.parentNode.childNodes)).indexOf(u)+(g?0:1);_.PU(u.parentNode,
g).select()}}else L?L.previousSibling&&L.previousSibling.length>0?_.NM(q,g.JSC$11657_getEndOffset(),L.previousSibling,L.previousSibling.length-1).select():(u=document.createTextNode("\u200b"),L.parentNode.insertBefore(u,L),_.NM(q,g.JSC$11657_getEndOffset(),u,0).select()):E&&(E.nextSibling&&E.nextSibling.length>0?_.NM(u,g.JSC$11657_getStartOffset(),E.nextSibling,1).select():(q=document.createTextNode("\u200b"),E.parentNode.insertBefore(q,E.nextSibling),_.NM(u,g.JSC$11657_getStartOffset(),q,q.length).select()));
oj=null}}else oj=null}else oj=null},
leftKeyPressed_:function(){oj="left"},
rightKeyPressed_:function(){oj="right"},
endKeyPressed_:function(){oj="end"},
maybeDeleteChip_:function(){var g=n0x(!0);if(g){var u=_.QZ(),q=u.JSC$11657_getStartNode();u=u.JSC$11657_getStartOffset();_.EA(q,u,g,g.childNodes.length).select()}},
maybeBackspaceChip_:function(){var g=n0x(!1);if(g){var u=_.QZ(),q=u.JSC$11657_getStartNode();u=u.JSC$11657_getStartOffset();_.EA(q,u,g,0).select()}},
maybeBackspaceChipWordMode_:function(g){var u=_.QZ();if(u.isCollapsed()){var q=u.JSC$11657_getStartNode();u=u.JSC$11657_getStartOffset();var Q=kwZ(q,u,!0);Q&&(_.EA(q,u,Q,0).select(),document.execCommand("delete"),g.preventDefault(),g.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(g){var u=_.QZ();if(u.isCollapsed()){var q=u.JSC$11657_getStartNode();u=u.JSC$11657_getStartOffset();var Q=kwZ(q,u,!1);Q&&(_.EA(q,u,Q,Q.childNodes.length).select(),document.execCommand("delete"),g.preventDefault(),g.stopImmediatePropagation())}},
onContentClick:function(g){g.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(g){g.defaultPrevented||g.currentTarget.tagName==="YTD-COMMENT-INPUT"&&QS(g.target)&&g.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Tr(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Tr(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(g,u){g=OpE(g,this.emojiManager,u).cloneNode(!0);for(u=g.firstChild;u;)if(u.nodeType!==1)u=u.nextSibling;else switch(u.tagName){case "BR":var q=_.G0();_.diX(q,u);u=q.nextSibling;break;case "DIV":(q=u.lastChild)&&u.nextSibling&&_.cH(_.G0(),q);u.previousSibling&&(u.previousSibling.nodeType===1||u.previousSibling.nodeType===3&&!u.previousSibling.textContent.endsWith("\n"))&&_.wX(_.G0(),u);q&&q.nodeName==="BR"&&_.UU(q);q=u;u.hasChildNodes()?(u=u.firstChild,
_.FvZ(q)):(u=u.nextSibling,_.UU(q));break;default:u=u.nextSibling}return SaK(g)},
setTextAreaValue:function(g){g||(g="");var u=this.getEditableFormattedString_();u.text="";this.getEditableTextArea_().innerText="";typeof g==="string"&&(g={runs:[{text:g}]});u.text=g},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();oj=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var g=this.getEditableTextArea_();g&&(_.PU(g,g.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.FR("HTML_DIR")==="rtl"){var g=this.getEditableTextArea_(),u=this.getTextAreaValue()!==""?"auto":"rtl";g.setAttribute("dir",u)}},
handleInputEvent_:function(){var g=null;if(this.isEmojiButtonDisplayed){var u=this.getInputRange_();u&&(g=this.emojiInput.retrieveTextBeforeRange(u))}this.insertText_(g,!0);this.updateCharCount_();g=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=g.scrollHeight>g.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var g=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:g})},
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(g){this.isEmojiButtonDisplayed&&(g.preventDefault(),g.stopImmediatePropagation(),g=g.clipboardData.getData("text/plain"),this.insertText_(g,!1,!1),_.hJ(this.hostElement,"input"))},
insertText_:function(g,u,q){u=u===void 0?!1:u;q=q===void 0?!0:q;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&g){var Q=this.getInputRange_().cloneRange();this.emojiManager&&Q&&(u&&this.emojiInput.offsetStartOfRangeBy(Q,g.length),this.insertTextWithEmojis_(Q,g,q),Yaf(this.getEditableTextArea_().lastChild)||(Q=this.getInputRange_().cloneRange()),Q&&(this.emojiInput.updateSuggestions(Q,g),this.updateSuggestionOffset_(Q)))}},
getSimpleString:_.iR,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(g){return g?"focused":"not-focused"},
computePlaceholderText_:function(g){return this.getSimpleString(g)},
computeEditableText_:function(g){return this.getSimpleString(g)},
onPrefilledContentDismissed_:function(g){g.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(g,u){g?this.fire("yt-autonav-pause-focus"):u!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(g){var u=this.getEditableTextArea_();[].concat(_.na(g.dataTransfer.items)).forEach(function(q){q.kind==="string"&&q.type.match("^text/plain")&&q.getAsString(function(Q){u.appendChild(document.createTextNode(Q))})});
g.preventDefault()},
preventDefault_:function(g){g.preventDefault()},
onSuggestionInsert_:function(g){this.insertTextWithEmojis_(g.detail.range,g.detail.text)},
onEmojiSuggestionClick_:function(g){this.emojiInput.insertSuggestion(g.detail)},
updateSuggestionOffset_:function(g){if(this.emojiInput&&_.Tr(this.emojiInput).querySelector("#dropdown")){var u=this.getEditableTextArea_().getBoundingClientRect().bottom,q=g.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(u-q)+5;u=this.getEditableTextArea_().getBoundingClientRect().left;g=g.getBoundingClientRect().left-u;_.Tr(this.emojiInput).querySelector("#dropdown").style.marginLeft=g+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.CB("yt-post"));return this.localStorage}});var Uj=function(){var g=_.X.apply(this,arguments)||this;g.currentCommentOptionIndex=0;g.isEmojiPickerDisplayed=!1;g.emojiManager=_.wx;g.isUgcEmpty=!1;g.userGeneratedCommentChangedHandler=function(){_.hJ(g.hostElement,"ytd-pdg-user-generated-comment-changed");g.isEmojiYtdCommentInputEnabled&&(g.isUgcEmpty=!g.ytdCommentInputEl.getTextAreaValue())};
g.pasteHandler=function(u){u.preventDefault();u.stopImmediatePropagation();var q;if(u=(q=u.clipboardData)==null?void 0:q.getData("text/plain"))q=document.getSelection().getRangeAt(0),q.collapsed||q.deleteContents(),u=document.createTextNode(u),q.insertNode(u),q.selectNodeContents(u),q.collapse(!1),u=window.getSelection(),u.removeAllRanges(),u.addRange(q)};
g.onDocumentClick=function(u){if(g.isEmojiPickerDisplayed){var q,Q,L;!(u.target instanceof Node)||(q=u.composedPath())!=null&&q.includes(g.editableTextEl)||(Q=u.composedPath())!=null&&Q.includes(g.emojiButtonEl)||(L=u.composedPath())!=null&&L.includes(g.emojiPickerEl)||(g.isEmojiPickerDisplayed=!1)}};
return g};
_.A(Uj,_.X);_.P=Uj.prototype;_.P.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.P.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.P.detached=function(){var g;(g=this.contentEl)==null||g.removeEventListener("input",this.userGeneratedCommentChangedHandler);var u;(u=this.contentEl)==null||u.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.P.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.P.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var g;this.contentEl.textContent=this.rendererBehavior.getSimpleString((g=this.data)==null?void 0:g.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.P.reloadEmojis=function(){this.emojiPickerEl&&_.c(this.emojiPicker,_.CkZ)&&this.emojiPickerEl.updateEmojiCategories()};
_.P.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.x_(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.P.handleBackgroundColorStyling=function(){var g;if((g=this.currentCommentOption)==null?0:g.commentBackgroundColorArgb){var u;_.x_(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.jh((u=this.currentCommentOption)==null?void 0:u.commentBackgroundColorArgb)})}else _.x_(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.P.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var g;(g=this.contentEl)==null||g.focus()}};
_.P.onEditButtonClick=function(g){var u=document.getSelection();u&&this.contentEl&&(g.stopPropagation(),g.preventDefault(),u.selectAllChildren(this.contentEl),u.collapseToEnd())};
_.P.onContentDrop=function(g){var u=this;if(g.dataTransfer){g=_.N(g.dataTransfer.items);for(var q=g.next();!q.done;q=g.next())q=q.value,q.kind==="string"&&q.type.match("^text/plain")&&q.getAsString(function(Q){var L;(L=u.contentEl)==null||L.appendChild(document.createTextNode(Q))})}};
_.P.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.P.getUserGeneratedCommentText=function(){var g,u=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(g=this.contentEl)==null?void 0:g.textContent;return u?u.trim():""};
_.P.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.P.onEmojiSelect=function(g){this.ytdCommentInputEl.onEmojiSelect(g)};
_.z3.Object.defineProperties(Uj.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.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 g;return!((g=this.currentCommentOption)==null||!g.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var g;if(_.c((g=this.currentCommentOption)==null?void 0:g.chipRenderer,_.u68)){var u;return _.c((u=this.currentCommentOption)==null?void 0:u.chipRenderer,_.u68)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var g,u;return((g=this.data)==null?0:g.commentOptionRenderers)?_.c((u=this.data)==null?void 0:u.commentOptionRenderers[this.superThanksSelectedTierEntity.index],QSx):void 0}var q,Q;return((q=this.data)==null?0:q.commentOptionRenderers)?_.c((Q=this.data)==null?void 0:Q.commentOptionRenderers[this.currentCommentOptionIndex],QSx):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var g;return this.rendererBehavior.getSimpleString((g=this.data)==null?void 0:g.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var g;return this.rendererBehavior.getSimpleString((g=this.data)==null?void 0:g.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=_.c((g=this.data)==null?void 0:g.commentDialog,_.BGn))==null?void 0:u.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=_.c((g=this.data)==null?void 0:g.commentDialog,_.BGn))==null?void 0:u.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=_.c((g=this.data)==null?void 0:g.commentDialog,_.BGn))==null?void 0:u.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(u=_.c((g=this.data)==null?void 0:g.commentDialog,_.BGn))==null?void 0:u.emojiPicker;if(!_.c(q,_.CkZ)||!_.c(q,_.CkZ).categories)return!1;g=function(E){return E.emojiPickerCategoryRenderer?E.emojiPickerCategoryRenderer.emojiIds&&E.emojiPickerCategoryRenderer.emojiIds.length>0:E.emojiPickerUpsellCategoryRenderer?E.emojiPickerUpsellCategoryRenderer.emojis&&E.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var Q,L;return((Q=_.c(q,_.CkZ))==null?0:(L=Q.categories)==null?0:L.find(g))?!0:!1}}});
Uj.prototype.onEmojiSelect=Uj.prototype.onEmojiSelect;Uj.prototype.dataChanged=Uj.prototype.dataChanged;Uj.prototype.currentCommentOptionChanged=Uj.prototype.currentCommentOptionChanged;_.Y([_.I(_.jB),_.K("design:type",Object)],Uj.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Uj.prototype,"rendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.oE("#content-dom-if"),_.K("design:type",_.D3)],Uj.prototype,"contentDomIfEl",void 0);_.Y([_.oE("#content-no-emojis"),_.K("design:type",HTMLElement)],Uj.prototype,"contentEl",void 0);_.Y([_.oE("#container"),_.K("design:type",HTMLElement)],Uj.prototype,"containerEl",void 0);_.Y([_.oE("#comment-chip-container"),_.K("design:type",HTMLElement)],Uj.prototype,"paidCommentChipContainerEl",void 0);_.Y([_.oE("#text-input"),_.K("design:type",HTMLElement)],Uj.prototype,"editableTextEl",void 0);
_.Y([_.oE("#emoji-button"),_.K("design:type",HTMLElement)],Uj.prototype,"emojiButtonEl",void 0);_.Y([_.oE("#emoji-picker > yt-emoji-picker-renderer"),_.K("design:type",Object)],Uj.prototype,"emojiPickerEl",void 0);_.Y([_.oE("#text-input > ytd-comment-input"),_.K("design:type",Object)],Uj.prototype,"ytdCommentInputEl",void 0);_.Y([_.a(),_.K("design:type",Object)],Uj.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],Uj.prototype,"currentCommentOptionIndex",void 0);
_.Y([_.a({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:pcC}),_.K("design:type",Object)],Uj.prototype,"superThanksSelectedTierEntity",void 0);_.Y([_.a(),_.K("design:type",Object)],Uj.prototype,"isEmojiPickerDisplayed",void 0);_.Y([_.a(),_.K("design:type",Object)],Uj.prototype,"emojiManager",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],Uj.prototype,"isUgcEmpty",void 0);
_.Y([_.k_("currentCommentOption"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Uj.prototype,"currentCommentOptionChanged",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Uj.prototype,"dataChanged",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Uj.prototype,"isEmojiYtdCommentInputEnabled",null);
_.Y([_.C("data.title"),_.K("design:type",Object),_.K("design:paramtypes",[])],Uj.prototype,"title",null);_.Y([_.C("data.authorText"),_.K("design:type",Object),_.K("design:paramtypes",[])],Uj.prototype,"channelName",null);_.Y([_.C("data.commentOptionRenderers","currentCommentOption"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Uj.prototype,"shouldShowPaidCommentChipRenderer",null);
_.Y([_.C("data.commentOptionRenderers","currentCommentOption"),_.K("design:type",Object),_.K("design:paramtypes",[])],Uj.prototype,"paidCommentChipRenderer",null);_.Y([_.C("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Uj.prototype,"currentCommentOption",null);
_.Y([_.C("data.defaultCommentText","superThanksSelectedTierEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Uj.prototype,"commentText",null);_.Y([_.C("data.placeholderText"),_.K("design:type",Object),_.K("design:paramtypes",[])],Uj.prototype,"placeholderText",null);_.Y([_.C("data.commentDialog.commentDialogRenderer.editableText"),_.K("design:type",Object),_.K("design:paramtypes",[])],Uj.prototype,"editableText",null);
_.Y([_.C("data.commentDialog.commentDialogRenderer.emojiButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],Uj.prototype,"emojiButton",null);_.Y([_.C("data.commentDialog.commentDialogRenderer.emojiPicker"),_.K("design:type",Object),_.K("design:paramtypes",[])],Uj.prototype,"emojiPicker",null);
_.Y([_.C("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Uj.prototype,"isEmojiButtonDisplayed",null);_.Y([_.n6("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Uj.prototype,"onEmojiSelect",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Uj);
_.T(Uj,"ytd-pdg-comment-preview-renderer",function(){if(x3s!==void 0)return x3s;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return x3s=g},{mode:2});var zFe;var gk=function(){var g=_.X.apply(this,arguments)||this;g.selected=!1;return g};
_.A(gk,_.X);_.P=gk.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.P.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.P.dataChanged=function(){this.data&&(_.hR(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.x_(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.jh(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.jh(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.P.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.P.onClick=function(){this.logClick()};
_.P.onKeyboardSelect=function(){_.hJ(this.hostElement,"tap");this.onClick()};
_.P.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
gk.prototype.onClick=gk.prototype.onClick;gk.prototype.selectedChanged=gk.prototype.selectedChanged;gk.prototype.dataChanged=gk.prototype.dataChanged;_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],gk.prototype,"componentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],gk.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.n8),_.K("design:type",Object)],gk.prototype,"ironA11yKeysBehavior",void 0);
_.Y([_.I(_.Ar),_.K("design:type",Object)],gk.prototype,"ironSelectableBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],gk.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],gk.prototype,"shownThumbnail",void 0);_.Y([_.a(),_.K("design:type",Object)],gk.prototype,"basePriceText",void 0);_.Y([_.a(),_.K("design:type",Object)],gk.prototype,"purchaseCommand",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],gk.prototype,"selected",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gk.prototype,"dataChanged",null);_.Y([_.k_("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gk.prototype,"selectedChanged",null);_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gk.prototype,"onClick",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],gk);
_.T(gk,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(zFe!==void 0)return zFe;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return zFe=g},{mode:1});var u_=function(){var g=_.X.apply(this,arguments)||this;g.selectedItemIndex=0;g.buyButtonDisabled=!1;return g};
_.A(u_,_.X);_.P=u_.prototype;
_.P.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]]"}}}}}};
_.P.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var g;var u=(g=_.c(this.data.colorSlider,qWf))==null?void 0:g.notches[this.selectedItemIndex].purchaseCommand}else{var q;u=(q=_.c(this.data.selectableItemButtons[this.selectedItemIndex],EEn))==null?void 0:q.purchaseCommand}if(u){g=_.c(u,_.YmR);g.productData||(g.productData={});var Q;g.productData={pdgData:{commentMessageText:(Q=this.commentPreviewRenderer)==null?void 0:Q.getUserGeneratedCommentText()}};
_.hJ(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(u)}}};
_.P.dataChanged=function(){if(this.data){_.wx.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.PKi(_.wx,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.wx.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var g;this.buyButtonDisabled=!((g=_.c(this.data.commentPreview,L0h))==null||!g.placeholderText);this.updatePriceSelectorStatus();var u;if((u=this.data)==null?0:u.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;g=[];this.data.preloadImages&&(g=this.data.preloadImages);
g=g.map(function(q){return _.Fh(q.thumbnails,1920)});
g=_.N(g);for(u=g.next();!u.done;u=g.next())(u=u.value)&&_.BQb(u).thenCatch(function(){_.Io(Error("lm"))})}};
_.P.superThanksSelectedTierEntityChanged=function(){var g;(this==null?void 0:(g=this.superThanksSelectedTierEntity)==null?void 0:g.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.P.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.P.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Tr(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Tr(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Tr(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Tr(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.P.closeBuyFlow=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.P.onUserGeneratedContentChanged=function(){var g;this.buyButtonDisabled=!((g=this.commentPreviewRenderer)==null?0:g.getUserGeneratedCommentText())};
_.P.updateSelectedItemIndexFromBinding=function(g){this.selectedItemIndex=g.detail.value};
_.z3.Object.defineProperties(u_.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.disclaimerText)}}});
u_.prototype.onUserGeneratedContentChanged=u_.prototype.onUserGeneratedContentChanged;u_.prototype.closeBuyFlow=u_.prototype.closeBuyFlow;u_.prototype.selectedItemIndexChanged=u_.prototype.selectedItemIndexChanged;u_.prototype.superThanksSelectedTierEntityChanged=u_.prototype.superThanksSelectedTierEntityChanged;u_.prototype.dataChanged=u_.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],u_.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],u_.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],u_.prototype,"selectedItemIndex",void 0);_.Y([_.a(),_.K("design:type",Boolean)],u_.prototype,"isColorSlider",void 0);
_.Y([_.a(),_.K("design:type",Object)],u_.prototype,"buyButtonDisabled",void 0);_.Y([_.a({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:pcC}),_.K("design:type",Object)],u_.prototype,"superThanksSelectedTierEntity",void 0);_.Y([_.oE("ytd-pdg-comment-preview-renderer"),_.K("design:type",Object)],u_.prototype,"commentPreviewRenderer",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],u_.prototype,"ytdReduxBehavior",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u_.prototype,"dataChanged",null);_.Y([_.k_("superThanksSelectedTierEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u_.prototype,"superThanksSelectedTierEntityChanged",null);_.Y([_.k_("selectedItemIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u_.prototype,"selectedItemIndexChanged",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u_.prototype,"closeBuyFlow",null);_.Y([_.n6("ytd-pdg-user-generated-comment-changed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u_.prototype,"onUserGeneratedContentChanged",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],u_.prototype,"isDisclaimerTextShown",null);
_.Y([_.fE({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],u_);
_.T(u_,"yt-super-vod-buy-flow-content-renderer",function(){if(OZB!==void 0)return OZB;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return OZB=g},{mode:1});var nuO;var q1=function(){var g=_.X.apply(this,arguments)||this;g.lottieAnimationRef={};return g};
_.A(q1,_.X);_.P=q1.prototype;_.P.created=function(){_.Ms.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.zr(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.P.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.hJ(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.P.detached=function(){this.autoCloseJobId&&_.Hv.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.zr(this,this.onPopupIronOverlayOpened))};
_.P.dataChanged=function(){var g=this;this.data&&this.data.autoCloseDelay&&(_.YJ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Xh(_.Hv,function(){g.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.x_(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.P.onDOMLoadedLottie=function(){var g=this,u,q,Q=Number((u=this.data)==null?void 0:(q=u.autoCloseDelay)==null?void 0:q.seconds)||0;this.fadeOutJobId=_.Xh(_.Hv,function(){g.lottiePlayerEl.classList.add("fadeout")},(Q-.25)*1E3);
this.autoCloseJobId=_.Xh(_.Hv,function(){g.closePopup()},Q*1E3)};
_.P.openPopup=function(){this.ironOverlayBehavior.open()};
_.P.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.YJ(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.xJ(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.Bk().resolve(_.Gy).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Hv.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Hv.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.P.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var g,u;(g=this.lottieAnimationRef)==null||(u=g.lottieEl)==null||u.destroy();g=this.data.lottie;var q,Q;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:g.url+"_"+Math.random(),path:g.url,autoplay:!0,loop:(Q=(q=g.settings)==null?void 0:q.loop)!=null?Q:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.z3.Object.defineProperties(q1.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var g,u;return!!((g=this.data)==null?0:(u=g.lottie)==null?0:u.url)}}});
q1.prototype.maybeInitializeLottie=q1.prototype.maybeInitializeLottie;q1.prototype.dataChanged=q1.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],q1.prototype,"rendererBehavior",void 0);_.Y([_.I(_.RB),_.K("design:type",Object)],q1.prototype,"ironOverlayBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],q1.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],q1.prototype,"lottiePlayerProps",void 0);
_.Y([_.a(),_.K("design:type",Object)],q1.prototype,"lottieAnimationRef",void 0);_.Y([_.oE("ytd-lottie-player"),_.K("design:type",HTMLElement)],q1.prototype,"lottiePlayerEl",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q1.prototype,"dataChanged",null);_.Y([_.C("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],q1.prototype,"hasLottieAnimation",null);
_.Y([_.k_("data.lottie.url"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q1.prototype,"maybeInitializeLottie",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],q1);
_.T(q1,"ytd-desktop-image-overlay-renderer",function(){if(nuO!==void 0)return nuO;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return nuO=g},{mode:1});var kMe;var Qo=function(){return _.X.apply(this,arguments)||this};
_.A(Qo,_.X);_.P=Qo.prototype;_.P.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"}}}}};
_.P.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",_.zr(this,this.closePopup))};
_.P.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.zr(this,this.closePopup))};
_.P.dataChanged=function(){_.Og(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.c(this.data.header,uGh)&&(this.hasBackgroundBanner=!!_.c(this.data.header,uGh).backgroundBanner)};
_.P.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.zr(this,this.closePopup))};
_.P.closePopup=function(){this.data&&this.data.onCloseCommand&&_.KV(this.hostElement,[this.data.onCloseCommand])};
Qo.prototype.handleBuyflowSelectionSubmitted=Qo.prototype.handleBuyflowSelectionSubmitted;Qo.prototype.dataChanged=Qo.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Qo.prototype,"data",void 0);
_.Y([_.a({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],Qo.prototype,"hasBackgroundBanner",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qo.prototype,"dataChanged",null);_.Y([_.n6("yt-pdg-buy-flow-selection-submitted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qo.prototype,"handleBuyflowSelectionSubmitted",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Qo);
_.T(Qo,"ytd-pdg-buy-flow-renderer",function(){if(kMe!==void 0)return kMe;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return kMe=g},{mode:1});var SbO;var LM=function(){var g=_.X.apply(this,arguments)||this;g.isOpen=!1;g.isPlaylistCreated=!1;return g};
_.A(LM,_.X);_.P=LM.prototype;_.P.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.P.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.hJ(this.hostElement,"yt-refit")};
_.P.onCreateTap=function(){var g=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.KV(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(u,q){if(!_.w("killswitch_ep_in_create_playlist_response")&&(q==null?0:q.actions))for(u=_.N(q.actions),q=u.next();!q.done;q=u.next())q=q.value,_.c(q,_.fT)&&g.ytComponentBehavior.resolveCommand(q)}}]),this.isPlaylistCreated=!0)};
_.P.onKeydown=function(g){if(g.keyCode===13)this.onCreateTap()};
_.P.onServiceRequestCompleted=function(g){g.stopPropagation();_.YJ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.P.computePrivacyBadge=function(g){return g?[{metadataBadgeRenderer:g}]:[]};
LM.prototype.onServiceRequestCompleted=LM.prototype.onServiceRequestCompleted;LM.prototype.onKeydown=LM.prototype.onKeydown;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],LM.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],LM.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],LM.prototype,"isOpen",void 0);
_.Y([_.a(),_.K("design:type",Object)],LM.prototype,"isPlaylistCreated",void 0);_.Y([_.a({value:{REQUIRED_LABEL:_.Ug("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Ug("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.K("design:type",Object)],LM.prototype,"addToStrings",void 0);_.Y([_.a({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.K("design:type",Array)],LM.prototype,"privacyBadge",void 0);
_.Y([_.oE("#privacy-input"),_.K("design:type",Object)],LM.prototype,"privacyInput",void 0);_.Y([_.oE("#name-input"),_.K("design:type",Object)],LM.prototype,"nameInput",void 0);_.Y([_.n6("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],LM.prototype,"onKeydown",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],LM.prototype,"onServiceRequestCompleted",null);
_.Y([_.fE({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],LM);
_.T(LM,"ytd-add-to-playlist-create-renderer",function(){if(SbO!==void 0)return SbO;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return SbO=g},{mode:1});var ouV;var U3v;var Eo=function(){var g=_.X.apply(this,arguments)||this;g.transferState="TRANSFER_STATE_UNKNOWN";return g};
_.A(Eo,_.X);Eo.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Eo.prototype.onCheckboxChange=function(g){var u=this;this.data&&_.c$(this,"yt-playlist-checkbox-changed",function(){var q=_.bd(g).checked?u.data.addToPlaylistServiceEndpoint:u.data.removeFromPlaylistServiceEndpoint;q&&_.Bk().resolve(_.Gy).resolveCommand(q,{form:{element:u.hostElement}});_.w("dl_playlist_killswitch")||u.transferState!=="TRANSFER_STATE_UNKNOWN"&&u.transferState!=="TRANSFER_STATE_FAILED"&&u.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:u.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Eo.prototype.computeIconType=function(g){return g?"yt-icons:"+g.toLowerCase():null};
Eo.prototype.dataChanged=Eo.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Eo.prototype,"data",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],Eo.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Eo.prototype,"ytComponentBehavior",void 0);_.Y([_.oE("#checkbox"),_.K("design:type",HTMLInputElement)],Eo.prototype,"checkbox",void 0);
_.Y([_.a({selector:_.eb,selectorArgs:["data.playlistId"]}),_.K("design:type",String)],Eo.prototype,"transferState",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Eo.prototype,"dataChanged",null);_.Y([_.fE({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Eo);
_.T(Eo,"ytd-playlist-add-to-option-renderer",function(){if(U3v!==void 0)return U3v;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return U3v=g},{mode:1});var giv=_.r(function(g){var u=g.data;return _.p("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.p("div",null,_.p(_.c2,{text:function(){return u().title}})),_.p(_.M,{cond:function(){return u().subtitle},
then:function(q){return _.p("div",{class:"ytdMenuTitleRendererSubtitle"},_.p(_.c2,{text:q}))}}))},"hl");
giv.idomCompat=!0;_.dL(giv,"ytd-menu-title-renderer",{props:{data:_.H2}});var P7=function(){var g=_.X.apply(this,arguments)||this;g.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Ug("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};g.closeButtonAriaLabel=_.Ug("SBOX_INAPPROPRIATE_CANCEL");g.dialog=_.w("desktop_add_to_playlist_renderer_dialog_popup");return g};
_.A(P7,_.X);_.P=P7.prototype;_.P.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"}}}};
_.P.onPopupOpened=function(){_.Y_(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.P.onPopupClosed=function(){_.Y_(this.playlists,"scrollable",!1)};
_.P.computeAriaLabel=function(){var g;if(this==null?0:(g=this.data)==null?0:g.actions){g=_.N(this.data.actions);for(var u=g.next();!u.done;u=g.next())if(u=u.value,u.menuTitleRenderer)return _.iR(u.menuTitleRenderer.title)}};
_.P.onTapClose=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.z3.Object.defineProperties(P7.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var g;if(this==null?0:(g=this.data)==null?0:g.actions){g=_.N(this.data.actions);for(var u=g.next();!u.done;u=g.next())if(u=u.value,u.menuTitleRenderer)return u.menuTitleRenderer}return!1}}});
P7.prototype.onPopupClosed=P7.prototype.onPopupClosed;P7.prototype.onPopupOpened=P7.prototype.onPopupOpened;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],P7.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],P7.prototype,"ytRendererStamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],P7.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],P7.prototype,"addToStrings",void 0);_.Y([_.a({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.K("design:type",String)],P7.prototype,"ariaLabel",void 0);_.Y([_.a(),_.K("design:type",String)],P7.prototype,"closeButtonAriaLabel",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],P7.prototype,"dialog",void 0);
_.Y([_.oE("#playlists"),_.K("design:type",HTMLElement)],P7.prototype,"playlists",void 0);_.Y([_.oE("ytd-add-to-playlist-create-renderer"),_.K("design:type",Object)],P7.prototype,"createRenderer",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],P7.prototype,"menuTitleRenderer",null);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],P7.prototype,"onPopupOpened",null);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],P7.prototype,"onPopupClosed",null);_.Y([_.fE({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],P7);
_.T(P7,"ytd-add-to-playlist-renderer",function(){if(ouV!==void 0)return ouV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ouV=g},{mode:1});var uW0;var N1=function(){var g=_.X.apply(this,arguments)||this;g.isPlaylistEditComplete=!1;g.isCollabEngagementDisabled=!1;g.closeButtonAriaLabel=_.Ug("SBOX_INAPPROPRIATE_CANCEL");g.saveButton={title:_.Ug("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"};g.onValueChanged=function(){g.updateSaveButtonState();g.computeCollabEngagementDisabled()};
return g};
_.A(N1,_.X);_.P=N1.prototype;_.P.attached=function(){this.JSC$22690_scroller&&(this.JSC$22690_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22690_scroller.attached&&typeof this.JSC$22690_scroller.attached==="function"&&this.JSC$22690_scroller.attached())};
_.P.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.P.onPopupClosed=function(){this.reset()};
_.P.close=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.P.onClickSave=function(){var g=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var u=[];this.nameInput.value!==null&&u.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&u.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var q=Number(this.privacyInput.value);isNaN(q)||u.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:q})}this.votingInput.value!==null&&(q=this.votingInput.value)&&u.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:q});if(u.length>0){var Q;_.c((Q=this.data)==null?void 0:Q.updateSettingsEndpoint,_.fq).actions=u;var L;if((L=this.data)==null?0:L.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){g.close()}}}),this.isPlaylistEditComplete=!0}}};
_.P.computePrivacyBadge=function(g){return g?[{metadataBadgeRenderer:g}]:[]};
_.P.computeEditorData=function(g){var u,q;return g==null?void 0:(u=g.sections)==null?void 0:(q=u[0])==null?void 0:q.playlistSettingsEditorCasualSectionRenderer};
_.P.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.P.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}}}}}};
_.P.computeAriaLabel=function(){var g,u,q,Q=(g=this.data)==null?void 0:(u=g.sections)==null?void 0:(q=u[0])==null?void 0:q.playlistSettingsEditorCasualSectionRenderer;return _.iR(Q==null?void 0:Q.title)};
_.P.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"}))};
_.P.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.P.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.P.isNameChanged=function(){var g,u,q;return(((g=this.editorData)==null?void 0:(u=g.name)==null?void 0:(q=u.textInputFormFieldRenderer)==null?void 0:q.value)||"")!==(this.nameInput.value||"")};
_.P.isDescriptionChanged=function(){var g,u,q;return(((g=this.editorData)==null?void 0:(u=g.description)==null?void 0:(q=u.textInputFormFieldRenderer)==null?void 0:q.value)||"")!==(this.descriptionInput.value||"")};
_.P.isPrivacyChanged=function(){var g,u,q,Q,L,E,y,v;return((y=(g=this.editorData)==null?void 0:(u=g.privacy)==null?void 0:(q=u.dropdownFormFieldRenderer)==null?void 0:(Q=q.dropdown)==null?void 0:(L=Q.dropdownRenderer)==null?void 0:(E=L.entries)==null?void 0:E.find(function(J){var f;return J==null?void 0:(f=J.privacyDropdownItemRenderer)==null?void 0:f.isSelected}))==null?void 0:(v=y.privacyDropdownItemRenderer)==null?void 0:v.int32Value)!==this.privacyInput.value};
_.P.isVotingChanged=function(){var g,u,q,Q,L,E,y,v;return((y=(g=this.editorData)==null?void 0:(u=g.voting)==null?void 0:(q=u.dropdownFormFieldRenderer)==null?void 0:(Q=q.dropdown)==null?void 0:(L=Q.dropdownRenderer)==null?void 0:(E=L.entries)==null?void 0:E.find(function(J){var f;return J==null?void 0:(f=J.privacyDropdownItemRenderer)==null?void 0:f.isSelected}))==null?void 0:(v=y.privacyDropdownItemRenderer)==null?void 0:v.int32Value)!==this.votingInput.value};
N1.prototype.onPopupClosed=N1.prototype.onPopupClosed;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],N1.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],N1.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],N1.prototype,"ytRendererStamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],N1.prototype,"data",void 0);_.Y([_.a({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.K("design:type",Array)],N1.prototype,"privacyBadge",void 0);_.Y([_.a({computed:"computeEditorData(data)"}),_.K("design:type",Object)],N1.prototype,"editorData",void 0);_.Y([_.a(),_.K("design:type",Object)],N1.prototype,"isPlaylistEditComplete",void 0);_.Y([_.a(),_.K("design:type",Object)],N1.prototype,"isCollabEngagementDisabled",void 0);
_.Y([_.a({value:{REQUIRED_LABEL:_.Ug("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Ug("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.K("design:type",Object)],N1.prototype,"addToStrings",void 0);_.Y([_.a({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.K("design:type",String)],N1.prototype,"ariaLabel",void 0);_.Y([_.a(),_.K("design:type",String)],N1.prototype,"closeButtonAriaLabel",void 0);
_.Y([_.a(),_.K("design:type",Object)],N1.prototype,"saveButton",void 0);_.Y([_.oE("#name-input"),_.K("design:type",Object)],N1.prototype,"nameInput",void 0);_.Y([_.oE("#description-input"),_.K("design:type",Object)],N1.prototype,"descriptionInput",void 0);_.Y([_.oE("#privacy-input"),_.K("design:type",Object)],N1.prototype,"privacyInput",void 0);_.Y([_.oE("#voting-input"),_.K("design:type",Object)],N1.prototype,"votingInput",void 0);
_.Y([_.oE("#scroller"),_.K("design:type",Object)],N1.prototype,"JSC$22690_scroller",void 0);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N1.prototype,"onPopupClosed",null);_.Y([_.a(),_.K("design:type",Object)],N1.prototype,"onValueChanged",void 0);_.Y([_.fE({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],N1);
_.T(N1,"ytd-playlist-settings-editor-renderer",function(){if(uW0===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);uW0=g}g=uW0;return g},{mode:1});var q0s;_.Ny("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var so=function(){return _.X.apply(this,arguments)||this};
_.A(so,_.X);_.P=so.prototype;_.P.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}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.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 g=this.get("data.nextButton.buttonRenderer.navigationEndpoint");g&&(this.nextNavigationEndpoint=g,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.P.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 g={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",g)}}};
_.P.onPopupOpened=function(g){g.detail!==this&&g.detail!==this.hostElement||!_.w("enable_premium_voluntary_pause")||_.YJ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.P.onNextButtonTap=function(){var g=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);g&&this.ytdOpenPopupBehavior.openPopup(g)};
_.P.updateSelectedResponseIndexFromBinding=function(g){this.selectedResponseIndex=g.detail.value};
so.prototype.onPopupOpened=so.prototype.onPopupOpened;so.prototype.onSelectedResponseIndexChange=so.prototype.onSelectedResponseIndexChange;so.prototype.dataChanged=so.prototype.dataChanged;_.Y([_.I(_.dx),_.K("design:type",Object)],so.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],so.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],so.prototype,"selectedResponseIndex",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],so.prototype,"dataChanged",null);_.Y([_.k_("selectedResponseIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],so.prototype,"onSelectedResponseIndexChange",null);
_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],so.prototype,"onPopupOpened",null);_.Y([_.fE({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],so);
_.T(so,"ytd-red-cancel-survey-renderer",function(){if(q0s!==void 0)return q0s;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return q0s=g},{mode:1});var QRe;var yo=function(){var g=_.X.apply(this,arguments)||this;g.closeButtonAriaLabel=_.Ug("SBOX_INAPPROPRIATE_CANCEL");return g};
_.A(yo,_.X);yo.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
yo.prototype.onClickClose=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],yo.prototype,"rendererStamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],yo.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],yo.prototype,"closeButtonAriaLabel",void 0);_.Y([_.fE({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],yo);
_.T(yo,"ytd-search-filter-options-dialog-renderer",function(){if(QRe!==void 0)return QRe;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return QRe=g},{mode:1});var L8V;var g2p=function(){return function(g){g=g.availabilityType;return g===void 0||g==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||g==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var v7=function(){var g=_.X.apply(this,arguments)||this;g.qualityOptions=[];g.upsellOptions=[];g.showUpsellSection=!1;g.rememberSettingsChecked=!1;return g};
_.A(v7,_.X);_.P=v7.prototype;_.P.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}}}}};
_.P.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.P.updateQualityOptions=function(){if(this.formats===void 0)_.YJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var g=[],u=[];this.showUpsellSection=!1;for(var q=_.N(this.formats),Q=q.next();!Q.done;Q=q.next())(Q=Q.value)&&(Q.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?u.push(Q):g.push(Q));g.length&&(this.qualityOptions=U$f(g));u.length&&(this.showUpsellSection=!0,this.upsellOptions=U$f(u))}};
_.P.updateRememberString=function(){if(this.downloadQualityPickerEntity)var g=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var u;g=(u=this.data)==null?void 0:u.premiumRememberSettingString}else{var q;g=(q=this.data)==null?void 0:q.rememberSettingString}g=g===void 0?_.Ug("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):g;this.rememberSettingsCheckboxRenderer={title:_.ap(g),disabled:!1}};
_.P.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.z3.Object.defineProperties(v7.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var g;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(g=this.data)==null?void 0:g.qualityFormats}}});
v7.prototype.updateRememberString=v7.prototype.updateRememberString;v7.prototype.updateQualityOptions=v7.prototype.updateQualityOptions;v7.prototype.dataChanged=v7.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],v7.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],v7.prototype,"data",void 0);
_.Y([_.I(_.jB),_.K("design:type",Object)],v7.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Boolean)],v7.prototype,"selectedUpsellQuality",void 0);_.Y([_.a({computed:"computeIcon_(data.premiumIcon)",value:""}),_.K("design:type",String)],v7.prototype,"premiumIcon",void 0);_.Y([_.a({selector:$KL,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.K("design:type",Object)],v7.prototype,"downloadQualityPickerEntity",void 0);
_.Y([_.a(),_.K("design:type",Array)],v7.prototype,"qualityOptions",void 0);_.Y([_.a(),_.K("design:type",Array)],v7.prototype,"upsellOptions",void 0);_.Y([_.a(),_.K("design:type",Object)],v7.prototype,"showUpsellSection",void 0);_.Y([_.a(),_.K("design:type",Object)],v7.prototype,"rememberSettingsCheckboxRenderer",void 0);_.Y([_.oE("#remember-settings"),_.K("design:type",HTMLInputElement)],v7.prototype,"rememberSettingsCheckbox",void 0);
_.Y([_.a(),_.K("design:type",Object)],v7.prototype,"rememberSettingsChecked",void 0);_.Y([_.a(),_.K("design:type",Function)],v7.prototype,"onRememberSettingsCheckedChanged",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v7.prototype,"dataChanged",null);_.Y([_.k_("downloadQualityPickerEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v7.prototype,"updateQualityOptions",null);
_.Y([_.k_("selectedUpsellQuality"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v7.prototype,"updateRememberString",null);_.Y([_.fE({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],v7);
_.T(v7,"ytd-download-quality-selector-content",function(){if(L8V!==void 0)return L8V;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return L8V=g},{mode:1});var EiT;var DD=function(){var g=_.X.apply(this,arguments)||this;g.selectedUpsellQuality=!1;g.qualityOptions=[];g.useUpsellDismissAlternate=_.w("use_not_now_dl_upsell_dismiss_cta");g.shouldShowAlternateUpsellDimiss=!1;g.rememberSettings=!1;g.rememberSettingsChecked=!1;g.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};g.rememberSettingsCheckedChanged=function(u){g.rememberSettingsChecked=u};
return g};
_.A(DD,_.X);_.P=DD.prototype;
_.P.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ap(_.Ug("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ap(_.Ug("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ap(_.Ug("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ap(_.Ug("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.P.updateQualityOptions=function(){this.formats===void 0?_.YJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=U$f(this.formats)};
_.P.onQualityOptionsSelect=function(g){if(this.qualityOptions&&g){g!==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 u=_.N(this.qualityOptions.entries()),q=u.next();!q.done;q=
u.next()){q=_.N(q.value);var Q=q.next().value;q=q.next().value;var L=void 0,E=void 0;if(((L=q)==null?void 0:(E=L.settingsRadioOptionRenderer)==null?void 0:E.id)===g){this.selectedQualityIndex=Q;g=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((g=this.formats[Q])==null?void 0:g.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.P.onClickSubmit=function(){var g;if((g=this.downloadButtonRenderer)==null||!g.isDisabled){var u,q;g=(q=(u=this.data)==null?void 0:u.onSubmitEndpoint)!=null?q:{};var Q,L;if(this.formats&&(((Q=_.c(g,_.zc))==null?0:Q.videoId)||((L=_.c(g,_.ne))==null?0:L.playlistId))){var E,y,v,J,f,t;u={formatType:(J=(E=this.formats)==null?void 0:(y=E[(v=this.selectedQualityIndex)!=null?v:0])==null?void 0:y.format)!=null?J:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(f=this.getOfflineEndpoint(g))==null?void 0:(t=f.actionParams)==null?void 0:t.settingsAction)};this.getOfflineEndpoint(g).actionParams=u;this.ytComponentBehavior.resolveCommand(g)}_.YJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.P.onClickUpsell=function(){var g;if((g=this.upsellButtonRenderer)==null||!g.isDisabled){var u,q;g=(q=(u=this.data)==null?void 0:u.upsellEndpoint)!=null?q:{};this.ytComponentBehavior.resolveCommand(g);_.YJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);u="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var Q,L,E,y;u=(y=(Q=this.formats)==null?void 0:(L=Q[(E=this.selectedQualityIndex)!=null?E:0])==null?void 0:L.format)!=null?y:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:u}})}};
_.P.onClickClose=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.P.getOfflineSettingsAction=function(g,u){return g?u===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":u:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.P.getOfflineEndpoint=function(g){return _.c(g,_.zc)?_.c(g,_.zc):_.c(g,_.ne)};
_.z3.Object.defineProperties(DD.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.ap(_.Ug("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var g;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(g=this.data)==null?void 0:g.qualityFormats}}});
DD.prototype.updateQualityOptions=DD.prototype.updateQualityOptions;DD.prototype.dataChanged=DD.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],DD.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],DD.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],DD.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Number)],DD.prototype,"selectedQualityIndex",void 0);_.Y([_.a(),_.K("design:type",Object)],DD.prototype,"selectedUpsellQuality",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],DD.prototype,"ytdReduxBehavior",void 0);
_.Y([_.a({selector:$KL,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.K("design:type",Object)],DD.prototype,"downloadQualityPickerEntity",void 0);_.Y([_.a(),_.K("design:type",Array)],DD.prototype,"qualityOptions",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],DD.prototype,"useUpsellDismissAlternate",void 0);_.Y([_.a(),_.K("design:type",Object)],DD.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.Y([_.a(),_.K("design:type",Object)],DD.prototype,"downloadButtonRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],DD.prototype,"upsellButtonRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],DD.prototype,"cancelButtonRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],DD.prototype,"upsellCancelButtonRenderer",void 0);_.Y([_.a(),_.K("design:type",Object)],DD.prototype,"rememberSettings",void 0);_.Y([_.a(),_.K("design:type",Object)],DD.prototype,"rememberSettingsChecked",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DD.prototype,"dataChanged",null);_.Y([_.k_("downloadQualityPickerEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DD.prototype,"updateQualityOptions",null);_.Y([_.fE({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],DD);
_.T(DD,"ytd-download-quality-selector-renderer",function(){if(EiT!==void 0)return EiT;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return EiT=g},{mode:1});var PZV;var pM=function(){return _.X.apply(this,arguments)||this};
_.A(pM,_.X);pM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
pM.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"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],pM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pM.prototype,"data",void 0);_.Y([_.a({computed:"computeIcon_(data.infoIcon)"}),_.K("design:type",Object)],pM.prototype,"infoIcon",void 0);
_.Y([_.a({computed:"computeIcon_(data.warningIcon)"}),_.K("design:type",Object)],pM.prototype,"warningIcon",void 0);_.Y([_.fE({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],pM);
_.T(pM,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(PZV!==void 0)return PZV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return PZV=g},{mode:1});var Nas;var JI=function(){return _.X.apply(this,arguments)||this};
_.A(JI,_.X);JI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JI.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"}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],JI.prototype,"data",void 0);_.Y([_.fE({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],JI);
_.T(JI,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(Nas!==void 0)return Nas;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return Nas=g},{mode:1});var sRO;var jN=function(){return _.X.apply(this,arguments)||this};
_.A(jN,_.X);jN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jN.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"}}}}};
jN.prototype.onServiceRequestSentOrCompleted=function(g,u){u&&u.actions&&u.actions.length>0&&_.YJ(this.hostElement,"yt-close-popup-action",[this.is])};
jN.prototype.onServiceRequestSentOrCompleted=jN.prototype.onServiceRequestSentOrCompleted;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],jN.prototype,"data",void 0);
_.Y([_.n6("yt-service-request-completed"),_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],jN.prototype,"onServiceRequestSentOrCompleted",null);_.Y([_.fE({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],jN);
_.T(jN,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(sRO!==void 0)return sRO;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return sRO=g},{mode:1});var ybT;var fM=function(){var g=_.X.apply(this,arguments)||this;g.submitButtonDisabled=!0;return g};
_.A(fM,_.X);_.P=fM.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.P.onDataChanged=function(){var g,u,q;if(((g=this.data)==null?void 0:(u=g.confirmButton)==null?void 0:(q=u.buttonRenderer)==null?void 0:q.isDisabled)!==void 0){var Q,L,E;this.submitButtonDisabled=(Q=this.data)==null?void 0:(L=Q.confirmButton)==null?void 0:(E=L.buttonRenderer)==null?void 0:E.isDisabled}};
_.P.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.P.updateSubmitButtonDisabledFromBinding=function(g){this.submitButtonDisabled=g.detail.value};
_.P.updateSubmitButtonDisabledFromConfirmCheckbox=function(g){this.submitButtonDisabled=!g.detail.value};
fM.prototype.onDataChanged=fM.prototype.onDataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],fM.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],fM.prototype,"submitButtonDisabled",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fM.prototype,"onDataChanged",null);_.Y([_.fE({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],fM);
_.T(fM,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(ybT!==void 0)return ybT;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ybT=g},{mode:1});var vi0;var M1=function(){return _.X.apply(this,arguments)||this};
_.A(M1,_.X);_.z3.Object.defineProperties(M1.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var g,u,q;return((g=this.data)==null?void 0:g.title)+" "+((u=this.data)==null?void 0:u.metadataPrimary)+" "+((q=this.data)==null?void 0:q.metadataSecondary)}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],M1.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],M1.prototype,"data",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],M1.prototype,"ariaLabel",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],M1);
_.T(M1,"ytd-compact-product-list-item-renderer",function(){if(vi0!==void 0)return vi0;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return vi0=g},{mode:1});var DxG;var tI=function(){return _.X.apply(this,arguments)||this};
_.A(tI,_.X);tI.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]]"}}}}}};
_.z3.Object.defineProperties(tI.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],tI.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tI.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],tI);
_.T(tI,"ytd-compact-product-list-renderer",function(){if(DxG!==void 0)return DxG;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return DxG=g},{mode:1});var p5T;var eN=function(){return _.X.apply(this,arguments)||this};
_.A(eN,_.X);_.P=eN.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.getBackgroundUrl=function(){var g=this.get("data.headerImage.thumbnails");return g?"url("+_.Fh(g,this.hostElement.clientWidth)+")":""};
_.P.onDataChanged=function(){var g=this.getBackgroundUrl();g&&(this.header.style.backgroundImage=g);g=_.j_();var u=_.JJ(),q=this.get("data.trackingParams");q&&u&&g&&_.cC(g,u,_.Lr(q));g=_.N(this.hostElement.querySelectorAll("yt-img-shadow"));for(u=g.next();!u.done;u=g.next())u.value.onShow()};
_.P.onPopupClosed=function(g){_.bd(g).localName==="ytd-membership-post-cancel-renderer"&&_.YJ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
eN.prototype.onPopupClosed=eN.prototype.onPopupClosed;eN.prototype.onDataChanged=eN.prototype.onDataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],eN.prototype,"data",void 0);_.Y([_.oE("#header"),_.K("design:type",HTMLDivElement)],eN.prototype,"header",void 0);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eN.prototype,"onDataChanged",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],eN.prototype,"onPopupClosed",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],eN);
_.T(eN,"ytd-membership-post-cancel-renderer",function(){if(p5T!==void 0)return p5T;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return p5T=g},{mode:1});var JbO;var GU=function(){return _.X.apply(this,arguments)||this};
_.A(GU,_.X);GU.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
GU.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],GU.prototype,"data",void 0);_.Y([_.oE("ytd-feedback-survey-renderer"),_.K("design:type",Object)],GU.prototype,"feedbackSurveyRenderer",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],GU);
_.T(GU,"ytd-sponsorship-confirm-cancel-content",function(){if(JbO!==void 0)return JbO;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return JbO=g},{mode:1});var jRT;var $U=function(){var g=_.X.apply(this,arguments)||this;g.maybeSubmitFeedback=function(){g.content&&g.content.maybeSubmitFeedback()};
return g};
_.A($U,_.X);_.P=$U.prototype;_.P.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.P.onYtPopupOpened=function(g,u){u===this&&this.data&&this.data.onOpenCommands&&_.xJ(this.hostElement,this.data.onOpenCommands,this.hostElement);_.YJ(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.P.onYtPopupClosed=function(g,u){(u&&u.canceled===!0||u&&u.canceled===!1&&u.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.xJ(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.P.onYtServiceRequestError=function(g){_.A7(this.hostElement,g.detail.error.message)};
_.P.onDataChanged=function(){if(this.isAttached){var g=this.backgroundUrl;g&&(_.Tr(this.hostElement).querySelector("#header").style.backgroundImage=g)}};
_.z3.Object.defineProperties($U.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var g=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return g?"url("+_.Fh(g,this.hostElement.clientWidth)+")":""}}});
$U.prototype.onDataChanged=$U.prototype.onDataChanged;$U.prototype.onYtServiceRequestError=$U.prototype.onYtServiceRequestError;$U.prototype.onYtServiceRequestCompleted=$U.prototype.onYtServiceRequestCompleted;$U.prototype.onYtPopupClosed=$U.prototype.onYtPopupClosed;$U.prototype.onYtPopupOpened=$U.prototype.onYtPopupOpened;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],$U.prototype,"data",void 0);_.Y([_.a({value:function(){return _.Ug("SBOX_INAPPROPRIATE_CANCEL")}}),
_.K("design:type",String)],$U.prototype,"closeButtonAriaLabel",void 0);_.Y([_.oE("#scrollable"),_.K("design:type",Object)],$U.prototype,"scrollable",void 0);_.Y([_.oE("ytd-sponsorship-confirm-cancel-content"),_.K("design:type",Object)],$U.prototype,"content",void 0);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],$U.prototype,"onYtPopupOpened",null);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],$U.prototype,"onYtPopupClosed",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$U.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$U.prototype,"onYtServiceRequestError",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$U.prototype,"onDataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],$U);
_.T($U,"ytd-sponsorship-confirm-cancel-renderer",function(){if(jRT!==void 0)return jRT;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return jRT=g},{mode:2});var fHs;var Rt=function(){return _.X.apply(this,arguments)||this};
_.A(Rt,_.X);Rt.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Rt.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Rt);
_.T(Rt,"ytd-sponsorships-celebration-content",function(){if(fHs!==void 0)return fHs;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return fHs=
g},{mode:1});var MXG;var tXO=_.CT(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),wk=function(){var g=_.X.apply(this,arguments)||this;g.scriptsAppended=!1;g.useFullWidthPrimaryButton=!1;g.buttonOverrides={type:"tonal",style:"overlay-dark"};return g};
_.A(wk,_.X);_.P=wk.prototype;_.P.dataChanged=function(){var g;this.useFullWidthPrimaryButton=!((g=this.data)==null||!g.useFullWidthPrimaryButton)};
_.P.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:_.w("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var g;(g=this.header)==null||g.style.setProperty("background-color",this.backgroundColor);if(g=this.headerImageUrl){var u;(u=this.header)==null||u.style.setProperty("background-image",g)}u=_.j_(4);g=_.JJ(4);var q=this.get("data.trackingParams");if(q&&g&&u){var Q=_.Lr(q);_.cC(u,g,Q);_.w("combine_ve_grafts")?_.gL().graftServerVe(q,g,4):_.cC(u,g,Q)}u=_.N(this.hostElement.querySelectorAll("yt-img-shadow"));for(g=u.next();!g.done;g=u.next())g.value.onShow();if(u=this.get("data.gtmId"))_.QU(u,
_.FR("GL","")),this.setupConversionTracking()};
_.P.setupConversionTracking=function(){if(!this.scriptsAppended){var g=document.createElement("script");_.JB(g,_.DK(tXO.join("")));document.head.appendChild(g);g=document.createElement("noscript");g.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(g);this.scriptsAppended=!0}};
_.P.onPopupClosed=function(g){if(_.bd(g).localName==="ytd-sponsorships-celebration-renderer"){_.YJ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var u;this.data&&((u=this.data)==null?0:u.dismissCommand)&&_.ze.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.z3.Object.defineProperties(wk.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var g=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.jh(g)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var g=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return g?"url("+_.Fh(g,this.hostElement.getBoundingClientRect().width)+")":""}}});
wk.prototype.onPopupClosed=wk.prototype.onPopupClosed;wk.prototype.onDataChanged=wk.prototype.onDataChanged;wk.prototype.dataChanged=wk.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],wk.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],wk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],wk.prototype,"data",void 0);
_.Y([_.oE("#header"),_.K("design:type",HTMLElement)],wk.prototype,"header",void 0);_.Y([_.a(),_.K("design:type",Object)],wk.prototype,"scriptsAppended",void 0);_.Y([_.a({type:Boolean,reflectToAttribute:!0}),_.K("design:type",Object)],wk.prototype,"useFullWidthPrimaryButton",void 0);_.Y([_.a(),_.K("design:type",Object)],wk.prototype,"buttonOverrides",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wk.prototype,"dataChanged",null);
_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wk.prototype,"onDataChanged",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],wk.prototype,"onPopupClosed",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],wk);
_.T(wk,"ytd-sponsorships-celebration-renderer",function(){if(MXG!==void 0)return MXG;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return MXG=g},{mode:1});var ene;var c7=function(){return _.X.apply(this,arguments)||this};
_.A(c7,_.X);_.P=c7.prototype;_.P.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"}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.playerElement.stop()};
_.P.onYtServiceRequestCompleted=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.P.onYtServiceRequestError=function(g){_.A7(this.hostElement,g.detail.error.message)};
_.P.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.P.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.P.getTier=function(g,u){return!g||!g.tiers||u<0?null:_.c(g.tiers[u],wQC)};
_.P.moreThanOne=function(g){return!!(g&&g.length>1)};
_.P.tierOverviewTap=function(g){var u=this;this.selectedTier=g.model.index;_.xt(this,function(){_.hJ(u.hostElement,"yt-refit")})};
_.P.computeSelectedClass=function(g,u){return this.isSelected(g,u)?"selected":""};
_.P.computeButtonAriaPressed=function(g,u){return this.isSelected(g,u)?"true":"false"};
_.P.isSelected=function(g,u){return g===u};
_.P.onDataChanged=function(){_.Tr(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Tr(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 g=_.N(this.hostElement.querySelectorAll("yt-img-shadow")),
u=g.next();!u.done;u=g.next())u.value.onShow();var q;this.set("selectedTier",(q=this.get("data.targetTierIndex"))!=null?q:0);var Q;(g=(Q=this.data)==null?void 0:Q.onVisible)&&this.ytComponentBehavior.resolveCommand(g)};
_.P.initializeVe=function(g){var u=_.j_(),q=_.JJ(),Q=this.get("data.trackingParams");q&&u&&(this.screenLayer=4,u=_.V1(_.qvm)(void 0,69877,{clientScreenNonce:u,visualElement:q},void 0,void 0,void 0),_.MK(u,69877,4),q=_.JJ(4),Q&&q&&(Q=_.Lr(Q),_.cC(u,q,Q),g&&(this.offerVideoVe=_.Yq(74659),_.cC(u,Q,this.offerVideoVe))))};
_.P.setHeaderBackground=function(){var g=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Tr(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.jh(g);if(g=this.getHeaderImage())g=_.Fh(g,screen.width),_.Tr(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+g+")"};
_.P.getHeaderImage=function(){var g=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&g?g:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setupVideoPlayer=function(g){var u=this,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1)return q=u.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),Q=u.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.w("kevlar_player_update_killswitch")?u.playerElement.update({args:{autoplay:q,video_id:g,player_params:Q}}):u.playerElement.loadVideoWithPlayerVars({autoplay:q,video_id:g,player_params:Q}),
y.yield(u.playerElement.getPlayerPromise(),2);L=y.yieldResult;L.addEventListener("onStateChange",function(v){u.onPlayerStateChange(v)});
L.setScreenLayer(u.screenLayer);(E=_.j_(4))&&u.offerVideoVe&&_.At(E,u.offerVideoVe);q&&(u.pauseOtherPlayers(),u.playerElement.focusOnPlayer(),u.playerElement.getPlayer().hideControls(),_.M_(_.Hv,function(){u.fadeOutHeaderOverlay()},4E3));
_.Wx(y)})};
_.P.onPlayerStateChange=function(g){g===1?this.backgroundPlayerElement&&(g=this.backgroundPlayerElement.player_.getPlayerState(),g!==1&&g!==3||this.backgroundPlayerElement.pause()):g===0&&(_.Tr(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Tr(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.P.fadeOutHeaderOverlay=function(){_.Tr(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.P.onHeaderTap=function(){if(this.offerVideo){_.Tr(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var g;((g=this.playerElement.player_)==null?void 0:g.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(g=_.j_(4))&&this.offerVideoVe&&_.Ip(g,this.offerVideoVe)}};
_.P.getBackgroundImageLayerClass=function(g){return g?"background-image-layer-with-video":""};
_.P.getHeaderClass=function(g){return g?"header-with-video":""};
_.P.getHeaderOverlayClass=function(g){return g?"header-overlay-with-video":""};
_.P.getTitleContainerClass=function(g,u){return g?"title-container-with-video":u?"title-container-without-video-flexible":"title-container-without-video"};
_.P.tierTitleDisplayStatus=function(g){return this.moreThanOne(g)?"hide":"show"};
_.P.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.Bk().resolve(_.RO).getPlayerElement():this.backgroundPlayerElement=_.F0();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var g=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=g===1||g===3;this.backgroundPlayerElement.pause()}};
_.P.isMiniplayerActive=function(){return _.Bk().resolve(_.RO).isMiniplayerActive()};
_.P.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("selected-tier-changed",this.selectedTier))};
c7.prototype.selectedTierChangedForBinding=c7.prototype.selectedTierChangedForBinding;c7.prototype.onDataChanged=c7.prototype.onDataChanged;c7.prototype.onYtPopupClosed=c7.prototype.onYtPopupClosed;c7.prototype.onYtPopupOpened=c7.prototype.onYtPopupOpened;c7.prototype.onYtServiceRequestError=c7.prototype.onYtServiceRequestError;c7.prototype.onYtServiceRequestCompleted=c7.prototype.onYtServiceRequestCompleted;
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],c7.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],c7.prototype,"data",void 0);_.Y([_.a({value:0}),_.K("design:type",Number)],c7.prototype,"selectedTier",void 0);
_.Y([_.a({value:""}),_.K("design:type",String)],c7.prototype,"offerVideo",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],c7.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.Y([_.a({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.ku(this)}}),
_.K("design:type",String)],c7.prototype,"playerId",void 0);_.Y([_.oE("tp-yt-paper-dialog-scrollable"),_.K("design:type",Object)],c7.prototype,"scrollable",void 0);_.Y([_.oE("ytd-sponsorships-tier-renderer"),_.K("design:type",Object)],c7.prototype,"tierRenderer",void 0);_.Y([_.oE("#player"),_.K("design:type",Object)],c7.prototype,"playerElement",void 0);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],c7.prototype,"onYtServiceRequestCompleted",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],c7.prototype,"onYtServiceRequestError",null);
_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c7.prototype,"onYtPopupOpened",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c7.prototype,"onYtPopupClosed",null);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c7.prototype,"onDataChanged",null);
_.Y([_.k_("selectedTier"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c7.prototype,"selectedTierChangedForBinding",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],c7);
_.T(c7,"ytd-sponsorships-offer-renderer",function(){if(ene!==void 0)return ene;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return ene=g},{mode:2});var G2O;var H7=function(){var g=_.X.apply(this,arguments)||this;g.buttonOverrides={type:"filled",style:"mono"};return g};
_.A(H7,_.X);H7.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}}}}}};
H7.prototype.backgroundColorChanged=function(){var g,u,q,Q=(u=_.c((g=this.data)==null?void 0:g.content,c8z))==null?void 0:(q=u.backgroundColor)==null?void 0:q.backgroundColor;Q&&(g=_.JR(Q),_.Tr(this.hostElement).querySelector("#banner").style.backgroundColor=g,_.Tr(this.hostElement).querySelector("#abstract-art").style.backgroundColor=g)};
H7.prototype.attached=function(){this.JSC$22768_scroller&&(this.JSC$22768_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22768_scroller.attached&&typeof this.JSC$22768_scroller.attached==="function"&&this.JSC$22768_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
H7.prototype.backgroundColorChanged=H7.prototype.backgroundColorChanged;_.Y([_.a(),_.K("design:type",Object)],H7.prototype,"data",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.oE("#scroller"),_.K("design:type",Object)],H7.prototype,"JSC$22768_scroller",void 0);_.Y([_.a(),_.K("design:type",Object)],H7.prototype,"buttonOverrides",void 0);
_.Y([_.k_("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H7.prototype,"backgroundColorChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],H7);
_.T(H7,"ytd-sponsorships-promotion-celebration-renderer",function(){if(G2O!==void 0)return G2O;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return G2O=g},{mode:2});var $xV;var Rne;var AI=function(){return _.X.apply(this,arguments)||this};
_.A(AI,_.X);AI.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
AI.prototype.computeIsInitiallyChecked=function(g){return g===1};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],AI.prototype,"data",void 0);_.Y([_.oE("#checkbox"),_.K("design:type",Object)],AI.prototype,"checkbox",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],AI);
_.T(AI,"ytd-subscription-toggle-option-renderer",function(){if(Rne!==void 0)return Rne;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Rne=g},{mode:1});var ZD=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return g};
_.A(ZD,_.X);ZD.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"}}}};
ZD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ZD.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var g=_.Tr(this.hostElement).querySelector("#options").selected;g=this.data.options[g].subscriptionRadioOptionRenderer.serviceEndpoint;var u=_.Tr(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");u&&g&&g.modifyChannelNotificationPreferenceEndpoint&&(u=u.getValue())&&(g.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[u]);_.Bk().resolve(_.Gy).resolveCommand(g,{form:{element:this.hostElement}});
_.YJ(this.hostElement,"yt-close-popup-action")};
_.z3.Object.defineProperties(ZD.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var g=this.data.options,u=0;u<g.length;u++){var q=g[u].subscriptionRadioOptionRenderer;if(q&&q.selected)return u}return null}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ZD.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],ZD.prototype,"eventForwardingBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],ZD.prototype,"data",void 0);_.Y([_.C("data.options"),_.K("design:type",Object),_.K("design:paramtypes",[])],ZD.prototype,"initialIndex",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],ZD);
_.T(ZD,"ytd-subscription-notification-options-renderer",function(){if($xV!==void 0)return $xV;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return $xV=g},{mode:1});var w5G;var cbT=function(){return _.X.apply(this,arguments)||this};
_.A(cbT,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cbT.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cbT.prototype,"data",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],cbT);
_.T(cbT,"ytd-tvfilm-offer-groups-renderer",function(){if(w5G!==void 0)return w5G;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return w5G=g},{mode:1});var HoG;var l_=function(){return _.X.apply(this,arguments)||this};
_.A(l_,_.X);_.P=l_.prototype;_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.P.computeThumbnailClass=function(g){return g.thumbnailOverlays?g.isShow?"thumbnail-show":"thumbnail-movie":g.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.P.computeCommerceSectionClass=function(g){return g.offers&&g.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.P.computeTitleClass=function(g){return g.offers&&g.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.P.onDataChanged=function(){[].concat(_.na(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(g){g.onShow()})};
l_.prototype.onDataChanged=l_.prototype.onDataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],l_.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],l_.prototype,"onDataChanged",null);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],l_);
_.T(l_,"ytd-ypc-offers-overlay-renderer",function(){if(HoG!==void 0)return HoG;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return HoG=g},{mode:2});var AbG;var ZoV=function(){this.usedMethods=new Set};
ZoV.prototype.add=function(g){this.usedMethods.add(g)};
ZoV.prototype.reset=function(){this.usedMethods.clear()};var lHV,IHe;
_.ioe=function(g,u){this.query=g;this.previousSearchQuery=u;this.id=lHV++;if(!IHe){u=_.FR("SBOX_SETTINGS");g="https://"+((u==null?void 0:u.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var q=u==null?void 0:u.REQUEST_LANGUAGE;q&&(g+="&hl="+q);(q=u==null?void 0:u.REQUEST_DOMAIN)&&(g+="&gl="+q);g+="&client=youtube&gs_ri=youtube";(q=u==null?void 0:u.SUGG_EXP_ID)&&(g+="&sugexp="+encodeURIComponent(q));(q=u==null?void 0:u.PSUGGEST_TOKEN)&&(g+="&tok="+q);(u=u==
null?void 0:u.SESSION_INDEX)&&(g+="&authuser="+u);_.w("desktop_enable_visual_suggest")&&(g+="&h=180&w=320&ytvs=1");IHe=g}};
_.CZV=function(g){var u="q="+encodeURIComponent(g.query);g.previousSearchQuery&&(u+="&pq="+encodeURIComponent(g.previousSearchQuery));return u};
_.boV=function(){var g=_.FR("SBOX_SETTINGS"),u={};if(g==null?0:g.SEND_VISITOR_DATA)u["X-Goog-Visitor-Id"]=g==null?void 0:g.VISITOR_DATA;return u};
_.dxk=function(g){var u=IHe;u+="&gs_id="+g.id.toString(36);u+="&q="+encodeURIComponent(g.query);u+="&cp="+g.query.length;g.previousSearchQuery&&(u+="&pq="+encodeURIComponent(g.previousSearchQuery));(g=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(u+="&video_id="+g);return u};
lHV=0;IHe="";var F8O=$g.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,mxB=$g.SEARCH_ENTITY_SUGGESTION_MOVIE,aHO=$g.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,VXV=$g.SEARCH_ENTITY_SUGGESTION_TV_SHOW,X5V=function(g,u){this.text=g;this.bold=u},rbk=function(g,u,q){this.input=u;
this.index=q;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=g[0];this.type=g[1];this.subtypes=g[2];var Q;this.displayText=qQp((Q=g[3])==null?void 0:Q.b);var L;this.ignoredPrefix=qQp((L=g[3])==null?void 0:L.a);var E,y;this.hasNewVideo=((E=g[3])==null?void 0:(y=E.zam)==null?void 0:y.toString())==="true"?!0:!1;var v;this.visualSuggestUrl=(v=g[3])==null?void 0:v.zai;var J;this.entityType=qQp((J=g[3])==null?void 0:J.zap);var f;this.entityName=qQp((f=g[3])==null?void 0:f.zao);var t;u=
qQp((t=g[3])==null?void 0:t.zaf);var e;this.entityMid=(e=g[3])==null?void 0:e.zae;t=QAf(this.subtypes,this.entityMid);if(u&&t){if(u){e="";switch(t){case "YOUTUBE_ENTITY_TYPE_SONG":e=aHO;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":e=F8O;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":e=VXV;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":e=mxB}t=t==="YOUTUBE_ENTITY_TYPE_SONG"||t==="YOUTUBE_ENTITY_TYPE_ALBUM"?e+" \u2022  \u2022 "+u:u}else t="";this.entitySubtitle=t}var G;this.externalChannelId=(G=g[3])==null?void 0:G.zav;
var R;this.entityThumbnailAttributionUrl=(R=g[3])==null?void 0:R.zaq},TaO=function(g,u){var q=[],Q,L=(Q=g.displayText)!=null?Q:g.text;
(u==null?0:u.useEntityName)&&W80(g)&&g.entityName&&(L=g.entityName);if(g.type===33)return q.push(new X5V(L,!1)),q;if(L.length>=g.input.length&&L.substring(0,g.input.length)===g.input)q.push(new X5V(g.input,!1)),q.push(new X5V(L.substring(g.input.length),!0));else{var E=new Set(g.input.split(/\s/)),y=L.split(/\s/);q=y.map(function(v,J){return new X5V(v.trim()+(J===y.length-1?"":" "),!E.has(v))})}return q},W80=function(g){var u=!!QAf(g.subtypes);
g=!!g.entityMid;return u||g};_.hnO=function(g){this.rawResponse=["",[],{}];this.suggestions=[];try{var u=JSON.parse(LbZ(g));if(typeof u==="object"&&u!==null)this.rawResponse=u;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(Q){console.log("Suggest: Failed to parse SuggestResponse!");return}var q=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(Q,L){return new rbk(Q,q,L)})};var Y0O=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new ZoV;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22805_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Oo3,K8T=function(){Oo3||(Oo3=new Y0O);
return Oo3};
Y0O.prototype.updateSuggestions=function(g){var u=this;this.availableSuggestions.forEach(function(q){u.previousSuggestions[q]=!0});
this.availableSuggestions=g.map(function(q){var Q=q.type.toString();q.subtypes.length>0&&(Q+="i"+q.subtypes.join("i"),Q+="k"+q.suggestionSources.COMPLETE_SERVER.toString());return Q})};
var xxB=function(g,u){var q=Date.now();g.firstEditTime<0&&(g.firstEditTime=q);u&&(g.lastQueryBuildTime=q);g.lastEditTime=q};
Y0O.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22805_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Bak=function(g){var u="";g.availableSuggestions.forEach(function(L){delete g.previousSuggestions[L]});
for(var q=_.N(Object.keys(g.previousSuggestions)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,g.previousSuggestions[Q]&&(u+=(u?"j":"")+Q);return u},znv=function(g,u){var q=[];
u&&(q[1]=u.toString());q[0]="youtube";q[7]=Date.now()-g.startTime;q[6]=g.sessionNumber;g.zeroPrefixSuggestionCount>=0&&(q[33]=g.zeroPrefixSuggestionCount);q[13]=g.outOfSyncResponseCount;if(g.availableSuggestions.length>0){for(var Q=u="",L=0,E=_.N(g.availableSuggestions),y=E.next();!y.done;y=E.next())y=y.value,y!==Q&&(L>1&&(u+="l"+L),u+=(Q?"j":"")+y,L=0,Q=y),L+=1;L>1&&(u+="l"+L);q[3]=u}q[35]=Bak(g);g.selectedSuggestionIndex>=0&&(q[2]=g.selectedSuggestionIndex);var v;if(u=(v=_.FR("SBOX_SETTINGS"))==
null?void 0:v.SUGG_EXP_ID)q[19]=g.normalize(u),v=0,g.experimentTriggeredBeforeFinal&&(v|=1),g.experimentTriggeredFinal&&(v|=2),q[20]=v;q[26]=Array.from(g.inputMethodsTracker.usedMethods).join("j");if(g.JSC$22805_totalRoundTripTime>0){q[15]=g.JSC$22805_totalRoundTripTime;q[14]=g.maxRoundTripTime;v=[];for(L=u=0;L<10;L++)Q=g.roundTripTimeHistogram[L],Q===0?u++:(u>1?v.push(L+"-"+Q):u===1?v.push("0j"+Q):v.push(Q.toString()),u=0);v=v.join("j");q[16]=v}g.zeroPrefixRoundTripTime>0&&(q[36]=g.zeroPrefixRoundTripTime);
g.lastQueryBuildTime>0&&(q[18]=g.lastQueryBuildTime-g.startTime);g.firstEditTime>0&&(q[4]=g.firstEditTime-g.startTime);g.lastEditTime>0&&(q[5]=g.lastEditTime-g.startTime);return q.join(".")};
Y0O.prototype.normalize=function(g){return g.replaceAll(".","-")};
var niv=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var It=function(){var g=_.X.apply(this,arguments)||this;g.microphoneSpinnerActive=!1;g.noAnimations=!1;g.boundExitClick=function(){g.onExitButtonClick()};
g.speechOverlayClassName="";g.isLevelAnimating=!1;g.playCloseDialogAudioFeedback=!0;g.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return g};
_.A(It,_.X);_.P=It.prototype;_.P.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=BYE()};
_.P.dataChanged=function(){this.logDialog()};
_.P.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var g;(g=this.manager.audioPlayer)!=null&&(g.JSC$21662_audioEnabled=!1)}this.manager.stop();(g=this.manager.audioPlayer)!=null&&(g.JSC$21662_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.P.handleSpeechQueryCompleteAction=function(g){var u=g.navigationAction;u&&(g.trackingParams&&_.gL().graftServerVe(g.trackingParams,this.dialogVe,5),_.hJ(this.hostElement,"yt-navigate",{endpoint:u,tempData:this.getNavigationParams(u),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.P.onExitButtonClick=function(){this.closeDialog()};
_.P.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var g;if((g=this.manager)!=null){var u;(u=g.audioPlayer)==null||TD(u,"failure");g.setState("microphone-off");g.stop()}}else(g=this.manager)==null||g.start()};
_.P.transcriptionChanged=function(){var g,u;(((g=this.transcription)==null?0:g.low)||((u=this.transcription)==null?0:u.high))&&this.setState("transcribing",this.transcription)};
_.P.stateChanged=function(){this.setState(this.state,this.transcription)};
_.P.logDialog=function(){var g;(g=this.data)!=null&&g.trackingParams&&(g=_.gL(),_.Kq(g,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=g.graftServerVe(this.data.trackingParams,void 0,5))};
_.P.getNavigationParams=function(g){var u={};if(_.w("web_yt_searchbox")){var q=K8T();q.inputMethodsTracker.add(6);q=znv(q,15);u.gs_l=q;var Q;u.oq=((Q=_.c(g,_.Sb))==null?void 0:Q.query)||""}else if(g=window.ytvoicesearchloggingparams){if(g=g())u.oq=g.oq,u.gs_l=g.gs_l}else _.Wk(Error("mm"));return u};
_.P.closeDialog=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.P.setState=function(g,u){if(this.data){var q=this.data,Q={};switch(g){case "listening":Q={headerText:q.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:q.microphoneButtonAriaLabel};break;case "timeout":Q={headerText:q.promptHeader,microphoneState:"try-again",microphoneLabel:q.promptMicrophoneLabel,microphoneAriaLabel:q.promptMicrophoneLabel};break;case "microphone-off":Q={headerText:q.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:q.promptMicrophoneLabel,
microphoneAriaLabel:q.promptMicrophoneLabel};break;case "transcribing":(u==null?0:u.low)||(u==null?0:u.high)?Q={transcriptionLow:u==null?void 0:u.low,transcriptionHigh:u==null?void 0:u.high,microphoneState:"speaking",microphoneAriaLabel:q.microphoneButtonAriaLabel}:Q={headerText:q.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:q.microphoneButtonAriaLabel};break;case "processing":Q={headerText:q.loadingHeader,microphoneState:"processing",microphoneAriaLabel:q.microphoneButtonAriaLabel};
break;case "offline":Q={headerText:q.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:q.connectionErrorMicrophoneLabel,microphoneAriaLabel:q.connectionErrorMicrophoneLabel};break;case "permission":Q={headerText:q.permissionsHeader,bodyLine1:q.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:q.permissionsSubtext};break;case "permission-denied":Q={headerText:q.disabledHeader,bodyLine1:q.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:q.disabledSubtext}}Q.className=
g;this.speechOverlayState=Q;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.P.setMicrophoneState=function(g){var u=this.isLevelAnimating;this.isLevelAnimating=g==="speaking";!u&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=g==="processing"&&!this.noAnimations};
_.P.setClass=function(g){this.speechOverlayClassName&&_.Y_(this.hostElement,this.speechOverlayClassName,!1);g&&(this.speechOverlayClassName=g,_.Y_(this.hostElement,g,!0))};
_.P.runLevelAnimation=function(){var g=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var u=1+Math.random()*.75,q=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+q/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+u+")");_.Hv.addJob(function(){g.runLevelAnimation()},3,q)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
It.prototype.stateChanged=It.prototype.stateChanged;It.prototype.transcriptionChanged=It.prototype.transcriptionChanged;It.prototype.onPopupClosed=It.prototype.onPopupClosed;It.prototype.dataChanged=It.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],It.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],It.prototype,"rendererStamperBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],It.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],It.prototype,"eventForwardingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],It.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],It.prototype,"speechOverlayState",void 0);
_.Y([_.a(),_.K("design:type",Object)],It.prototype,"microphoneSpinnerActive",void 0);_.Y([_.a({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.K("design:type",Object)],It.prototype,"noAnimations",void 0);_.Y([_.a({selector:function(g){var u;return(u=g.voiceSearch)==null?void 0:u.transcription}}),
_.K("design:type",Object)],It.prototype,"transcription",void 0);_.Y([_.a({selector:function(g){var u;return(u=g.voiceSearch)==null?void 0:u.overlay}}),
_.K("design:type",String)],It.prototype,"state",void 0);_.Y([_.a(),_.K("design:type",Object)],It.prototype,"boundExitClick",void 0);_.Y([_.oE("#microphone-levels"),_.K("design:type",HTMLElement)],It.prototype,"level",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],It.prototype,"dataChanged",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],It.prototype,"onPopupClosed",null);
_.Y([_.qm("transcription"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],It.prototype,"transcriptionChanged",null);_.Y([_.qm("state"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],It.prototype,"stateChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],It);
_.T(It,"ytd-voice-search-dialog-renderer",function(){if(AbG!==void 0)return AbG;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return AbG=g},{mode:1});var k2T;var i_=function(){var g=_.X.apply(this,arguments)||this;g.isOverlay=!1;g.hidden=!1;return g};
_.A(i_,_.X);_.P=i_.prototype;_.P.onPopupClosed=function(){this.toggleIconState(!1)};
_.P.computeIcon=function(){var g,u,q;return(u=_.c((g=this.data)==null?void 0:g.icon,kI9))==null?void 0:(q=u.icon)==null?void 0:q.iconType};
_.P.computeIconBadgeShape=function(){var g;return{iconBadgeType:"cart",iconBadgeText:(g=this.iconBadgeEntity)==null?void 0:g.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.onClick=function(){var g;(g=this.data)!=null&&g.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.P.computeHidden=function(g){return!g};
_.P.toggleIconState=function(g){this.iconButton&&(this.iconButton.pressed=g)};
i_.prototype.onPopupClosed=i_.prototype.onPopupClosed;_.Y([_.I(_.jB),_.K("design:type",Object)],i_.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],i_.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],i_.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],i_.prototype,"isOverlay",void 0);
_.Y([_.a({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.K("design:type",Object)],i_.prototype,"hidden",void 0);_.Y([_.a({selectorArgs:["data.iconBadgeEntityKey"],selector:function(g,u){return _.BC(g.entities,"iconBadgeEntity",u)}}),
_.K("design:type",Object)],i_.prototype,"iconBadgeEntity",void 0);_.Y([_.oE("yt-icon-button"),_.K("design:type",HTMLButtonElement)],i_.prototype,"iconButton",void 0);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i_.prototype,"onPopupClosed",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],i_);
_.T(i_,"ytd-icon-badge-topbar-button-renderer",function(){if(k2T!==void 0)return k2T;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return k2T=g},{mode:1});var S0T;var CM=function(){var g=_.X.apply(this,arguments)||this;g.premiumOptions=[];return g};
_.A(CM,_.X);CM.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.z3.Object.defineProperties(CM.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],CM.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Array)],CM.prototype,"premiumOptions",void 0);_.Y([_.C("premiumOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],CM.prototype,"hasPremiumOptions",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],CM);
_.T(CM,"ytd-offline-promo-content",function(){if(S0T!==void 0)return S0T;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return S0T=g},{mode:1});var oiO;var b_=function(){var g=_.X.apply(this,arguments)||this;g.premiumOptions=[];return g};
_.A(b_,_.X);b_.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var g;this.premiumOptions=uA9((g=this.data)==null?void 0:g.formats)};
b_.prototype.onClickSubmit=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var g;(g=_.F0())==null||g.pause()};
b_.prototype.attached=function(){this.JSC$22825_scroller&&(this.JSC$22825_scroller.dialogElement=this.hostElement.parentNode)};
_.z3.Object.defineProperties(b_.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
b_.prototype.dataChanged=b_.prototype.dataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],b_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],b_.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],b_.prototype,"data",void 0);
_.Y([_.a({computed:"computeIcon_(data.headersIcon)",value:""}),_.K("design:type",String)],b_.prototype,"headersIcon",void 0);_.Y([_.a(),_.K("design:type",Array)],b_.prototype,"premiumOptions",void 0);_.Y([_.oE("#scroller"),_.K("design:type",Object)],b_.prototype,"JSC$22825_scroller",void 0);_.Y([_.C("headersIcon"),_.K("design:type",Object),_.K("design:paramtypes",[])],b_.prototype,"showIcon",null);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b_.prototype,"dataChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],b_);
_.T(b_,"ytd-offline-promo-renderer",function(){if(oiO!==void 0)return oiO;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return oiO=g},{mode:1});var UxB;var dk=function(){var g=_.X.apply(this,arguments)||this;g.playbackPauseInterval=NaN;g.isLoading=!1;g.hasError=!1;g.dialogClass="";g.youtubeLabel=_.Ug("LOGO_ALT_LABEL",{},"YouTube Home");g.logoName="yt-logos-ext:yt-logo-updated";g.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return g};
_.A(dk,_.X);_.P=dk.prototype;_.P.onDataChange=function(){var g;if(this.showEOMV1Text=!((g=this.data)==null||!g.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.P.attached=function(){this.pausePlayer()};
_.P.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.P.handleLangSelect=function(g){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[g.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.P.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.P.handleSaveConsent=function(g){var u=this;this.showLoadingSpinner();this.showLoadingSpinner();BVf(_.c(g,amC)).catch(function(q){_.Io(new _.Ji("Something went wrong when save consent "+(q.message?q.message:q)+"."));u.hideLoadingSpinner();u.showErrorMessage()})};
_.P.handleDisablePersonalization=function(g){var u=this;this.showLoadingSpinner();ztx(_.c(g,mUZ)).then(function(){u.dialog.close();u.resumePlayer()}).catch(function(q){_.Io(new _.Ji("Something went wrong when disable personalization "+(q.message?q.message:q)+"."));
u.hideLoadingSpinner();u.showErrorMessage()})};
_.P.showLoadingSpinner=function(){var g=this;this.showSpinnerJobId=_.Hv.addLowPriorityJob(function(){g.isLoading=!0},500)};
_.P.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Hv.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.P.showErrorMessage=function(){var g=this;this.hasError=!0;_.Hv.addLowPriorityJob(function(){g.hasError=!1},2E3)};
_.P.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.qu(function(){try{var g=_.F0();g&&g.pause()}catch(u){}},100))};
_.P.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var g=_.F0();g&&g.play()}catch(u){}};
_.z3.Object.defineProperties(dk.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.eomV1Text)return[];g=[];for(var u=["SHIELD","WARNING","BAR_CHART"],q=this.data.eomV1Text.essentialCookieMsg.items,Q=0;Q<u.length&&Q<q.length;Q++)g.push({icon:u[Q],text:q[Q]});return g}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.eomV1Text)return[];g=[];for(var u=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],q=this.data.eomV1Text.nonEssentialCookieMsg.items,Q=0;Q<u.length&&Q<q.length;Q++)g.push({icon:u[Q],text:q[Q]});return g}}});
dk.prototype.onDataChange=dk.prototype.onDataChange;_.Y([_.a(),_.K("design:type",Object)],dk.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],dk.prototype,"showEOMV1Text",void 0);_.Y([_.a(),_.K("design:type",Object)],dk.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",Object)],dk.prototype,"hasError",void 0);_.Y([_.a(),_.K("design:type",Number)],dk.prototype,"showSpinnerJobId",void 0);_.Y([_.a(),_.K("design:type",Object)],dk.prototype,"dialogClass",void 0);
_.Y([_.oE("#dialog"),_.K("design:type",Object)],dk.prototype,"dialog",void 0);_.Y([_.oE("#cb-header"),_.K("design:type",HTMLElement)],dk.prototype,"header",void 0);_.Y([_.oE("#lang-select"),_.K("design:type",HTMLElement)],dk.prototype,"langSelect",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],dk.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],dk.prototype,"ytComponentBehavior",void 0);
_.Y([_.a(),_.K("design:type",String)],dk.prototype,"youtubeLabel",void 0);_.Y([_.a(),_.K("design:type",Object)],dk.prototype,"logoName",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dk.prototype,"onDataChange",null);_.Y([_.C("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],dk.prototype,"eomEssentialCookieMsgItems",null);
_.Y([_.C("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],dk.prototype,"eomNonEssentialCookieMsgItems",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],dk);
_.T(dk,"ytd-consent-bump-v2-lightbox",function(){if(UxB!==void 0)return UxB;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return UxB=g},{mode:1});var gLT;var F3=function(){return _.X.apply(this,arguments)||this};
_.A(F3,_.X);F3.prototype.ready=function(){if(!_.vW()||mIh)var g=!0;else mIh=!0,g=!1;g||(g=document.querySelector("ytd-app"),g||(g=document.body),this.internalLightBox=_.Tr(g).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.Y([_.a(),_.K("design:type",Object)],F3.prototype,"data",void 0);_.Y([_.oE("#lightbox"),_.K("design:type",Object)],F3.prototype,"lightBox",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],F3);
_.T(F3,"ytd-consent-bump-v2-renderer",function(){if(gLT!==void 0)return gLT;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return gLT=g},{mode:1});var utV;var qZv;var QHV;var mI=function(){return _.X.apply(this,arguments)||this};
_.A(mI,_.X);_.P=mI.prototype;_.P.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&hJ9(this.toastManager,this.toastType)};
_.P.open=function(g){this.toast&&(this.ephemeralAction&&_.Bk().resolve(_.fg).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=g!=null?g:0,this.toastManager.enqueue(this.toast,g)):this.toast.open())};
_.P.close=function(g){var u;(u=this.toast)==null||u.close();this.toastManager&&g===1&&hJ9(this.toastManager,g)};
_.P.refit=function(){var g;(g=this.toast)==null||g.refit()};
_.P.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var g;(g=this.toast)==null||g.close()}};
_.P.setVerticalOffset=function(g){this.toast&&(this.toast.verticalOffset=g,this.toast.fit())};
_.P.computeButtonClass_=function(g){return g?"toast-button":""};
_.P.computeText_=function(g){return _.iR(g)};
_.P.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZC("toast-opened-changed",this.toastOpened))};
_.P.updateToastOpenedFromBinding=function(g){this.toastOpened=g.detail.value};
_.z3.Object.defineProperties(mI.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var g,u,q=(g=this.data)==null?void 0:(u=g.actionButton)==null?void 0:u.buttonRenderer;return(q==null?void 0:q.command)||(q==null?void 0:q.serviceEndpoint)||(q==null?void 0:q.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 g=[],u;((u=this.data)==null?0:u.responseText)&&g.push(_.iR(this.data.responseText));var q;((q=this.data)==null?0:q.subText)&&g.push(_.iR(this.data.subText));var Q,L;if((Q=this.data)==null?0:(L=Q.actionButton)==null?0:L.buttonRenderer){var E,y;g.push(((E=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(y=E.accessibilityData)==null?void 0:y.label)||_.iR(this.data.actionButton.buttonRenderer.text))}return g.filter(function(v){return v}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var g,u;return(u=(g=this.toast)==null?void 0:g.opened)!=null?u:!1}}});
mI.prototype.toastOpenedChangedForBinding=mI.prototype.toastOpenedChangedForBinding;mI.prototype.toastOpenedChanged=mI.prototype.toastOpenedChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],mI.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],mI.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],mI.prototype,"duration",void 0);
_.Y([_.a(),_.K("design:type",Number)],mI.prototype,"toastType",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],mI.prototype,"useCloseButton",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],mI.prototype,"closeToastOnActionButtonClick",void 0);_.Y([_.a({value:function(){return _.Ug("SBOX_INAPPROPRIATE_CANCEL")}}),
_.K("design:type",String)],mI.prototype,"closeButtonAriaLabel",void 0);_.Y([_.a(),_.K("design:type",Boolean)],mI.prototype,"toastOpened",void 0);_.Y([_.a(),_.K("design:type",Boolean)],mI.prototype,"hasOpened",void 0);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mI.prototype,"command",null);_.Y([_.C("labelText","command","duration"),_.K("design:type",Object),_.K("design:paramtypes",[])],mI.prototype,"ephemeralAction",null);
_.Y([_.C("ephemeralAction"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mI.prototype,"hasEphemeralAction",null);_.Y([_.oE("#toast"),_.K("design:type",Object)],mI.prototype,"toast",void 0);_.Y([_.a({value:function(){return{style:"call-to-action-inverse"}}}),
_.K("design:type",Object)],mI.prototype,"buttonOverrides",void 0);_.Y([_.a({value:{style:"mono-inverse"}}),_.K("design:type",Object)],mI.prototype,"closeButtonOverrides",void 0);_.Y([_.a({value:function(){return _.Bk().resolve(_.xv(_.Ju))}}),
_.K("design:type",Object)],mI.prototype,"toastManager",void 0);_.Y([_.C("data.responseText","data.subText","data.actionButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],mI.prototype,"labelText",null);_.Y([_.k_("toastOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mI.prototype,"toastOpenedChanged",null);
_.Y([_.k_("toastOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mI.prototype,"toastOpenedChangedForBinding",null);_.Y([_.jP({is:"yt-notification-action-renderer",disableElementRegistration:!0})],mI);
_.T(mI,"yt-notification-action-renderer",function(){if(QHV===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;qZv===void 0&&(qZv=document.createElement("template"));var Q=qZv;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);QHV=g}g=QHV;return g},{mode:2});var at=function(){var g=_.X.apply(this,arguments)||this;g.duration=4E3;g.downloadingCount=0;g.downloadedCount=0;g.downloadingOnlySmartDownloads=!1;g.sessionTotalDownloads=0;g.sessionDownloaded=0;g.previousSessionsDownloaded=0;g.totalDownloadPercentage=0;g.currentDownloadProgress=0;g.currentDownloadPercentage=0;g.isLeaderTab=!0;g.isFullScreen=!1;g.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};g.boundBeforeUnload=function(u){g.isLeaderTab&&g.downloadingCount>0&&(u.preventDefault(),
u.returnValue=!0)};
return g};
_.A(at,_.X);_.P=at.prototype;
_.P.open=function(){this.updateDownloadState();if(this.data){var g=this.sessionDownloaded+1,u=this.sessionTotalDownloads>1?_.Ug("VIDEOS_DOWNLOADING_RATIO",{downloaded:g.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+g+"/"+this.sessionTotalDownloads):_.Ug("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(u=this.sessionTotalDownloads>1?_.Ug("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:g.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
g+"/"+this.sessionTotalDownloads):_.Ug("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));g=this.isLeaderTab?_.Ug("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.iR(this.data.responseText)!==u||_.iR(this.data.subText)!==g)this.set("data.responseText",_.I7(u)),this.set("data.subText",_.I7(g)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.P.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.P.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.P.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.P.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var g=this.downloadedCount-this.previousSessionsDownloaded;g<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-g);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.P.handleFullscreenChange=function(g){(this.isFullScreen=g)||this.updatePopup()};
at.prototype.updateCurrentDownloadProgress=at.prototype.updateCurrentDownloadProgress;at.prototype.updatePopup=at.prototype.updatePopup;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],at.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],at.prototype,"ytEventForwardingBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],at.prototype,"actionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],at.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],at.prototype,"duration",void 0);_.Y([_.a({selector:function(g){return _.lCK(g.entities).length}}),
_.K("design:type",Object)],at.prototype,"downloadingCount",void 0);_.Y([_.a({selector:GgK}),_.K("design:type",Object)],at.prototype,"downloadedCount",void 0);_.Y([_.a({selector:function(g){var u=_.lCK(g.entities);return f4L(g.entities,u)}}),
_.K("design:type",Object)],at.prototype,"downloadingOnlySmartDownloads",void 0);_.Y([_.a(),_.K("design:type",Object)],at.prototype,"sessionTotalDownloads",void 0);_.Y([_.a(),_.K("design:type",Object)],at.prototype,"sessionDownloaded",void 0);_.Y([_.a(),_.K("design:type",Object)],at.prototype,"previousSessionsDownloaded",void 0);_.Y([_.a(),_.K("design:type",Object)],at.prototype,"totalDownloadPercentage",void 0);
_.Y([_.a({selector:function(g){var u;g=(u=_.lCK(g.entities))!=null?u:[];return g.length>0?_.MCM(g.slice(-1)):0}}),
_.K("design:type",Object)],at.prototype,"currentDownloadProgress",void 0);_.Y([_.a(),_.K("design:type",Object)],at.prototype,"currentDownloadPercentage",void 0);_.Y([_.a({selector:_.d5b}),_.K("design:type",Object)],at.prototype,"isLeaderTab",void 0);_.Y([_.oE("yt-notification-action-renderer"),_.K("design:type",Object)],at.prototype,"notificationActionRenderer",void 0);
_.Y([_.qm("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],at.prototype,"updatePopup",null);_.Y([_.qm("currentDownloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],at.prototype,"updateCurrentDownloadProgress",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],at);
_.T(at,"ytd-video-download-toast-renderer",function(){if(utV!==void 0)return utV;var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return utV=g},{mode:1});var Lzk;var ELV;var Vo=function(){return _.X.apply(this,arguments)||this};
_.A(Vo,_.X);Vo.prototype.computeIsRedLogo=function(g,u){!g&&u&&(g=u);return g==="YOUTUBE_RED_LOGO"||g==="YOUTUBE_PREMIUM_LOGO"};
Vo.prototype.computeLogoName=function(g){g=this.componentBehavior.computeIcon_(g);return g===""?"yt-logos-ext:yt-logo-updated":g};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Vo.prototype,"componentBehavior",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.K("design:type",Boolean)],Vo.prototype,"isRedLogo",void 0);_.Y([_.a({computed:"computeLogoName(data)"}),_.K("design:type",String)],Vo.prototype,"logoName",void 0);_.Y([_.a({value:{}}),_.K("design:type",Object)],Vo.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],Vo.prototype,"logoType",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-logo"})],Vo);
_.T(Vo,"ytd-logo",function(){if(ELV!==void 0)return ELV;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return ELV=g},{mode:2});var X3=function(){var g=_.X.apply(this,arguments)||this;g.animationRef={};return g};
_.A(X3,_.X);_.P=X3.prototype;_.P.attached=function(){document.addEventListener("yt-navigate-finish",_.zr(this,this.logYoodle))};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.zr(this,this.logYoodle))};
_.P.logYoodle=function(){var g,u;if((g=this.data)==null?0:(u=g.loggingDirectives)==null?0:u.trackingParams)this.ytRendererBehavior.markDirty(),_.gL().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.P.computeHideImg=function(g,u){return!!g||!!u};
_.P.computeHideYtdLogo=function(g,u){return!g||!!u};
_.P.computeHideLottie=function(g){return!g};
_.P.computeIsRedLogo=function(g){return g==="YOUTUBE_RED_LOGO"||g==="YOUTUBE_PREMIUM_LOGO"};
_.P.renderLogoEntity=function(){var g=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),u=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),q=this.getLogoTitleText(this.data),Q=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==g&&(this.url=g);this.animatedUrl!==u&&(this.animatedUrl=u);this.logoTitleText!==q&&(this.logoTitleText=q);this.lottieUrl!==Q&&(this.lottieUrl=Q,this.lottiePlayerProps=this.computeLottiePlayerProps(Q))};
_.P.getSanitizedThumbnail=function(g){return g&&g.thumbnails?_.q5k(g.thumbnails,122)||"":""};
_.P.getThumbnailUrl=function(g,u){if(!u)return"";var q,Q;g=g?(q=u.darkThemeLogo)==null?void 0:q.thumbnail:(Q=u.lightThemeLogo)==null?void 0:Q.thumbnail;return this.getSanitizedThumbnail(g)};
_.P.getAnimatedThumbnailUrl=function(g,u){return u?this.getSanitizedThumbnail(g?u.darkThemeAnimatedLogo:u.lightThemeAnimatedLogo):""};
_.P.getLogoTitleText=function(g){if(g)return _.iR(g.tooltipText)};
_.P.computeLogoIcon=function(g,u){if(u){var q,Q;return g?(q=u.darkThemeLogo)==null?void 0:q.icon:(Q=u.lightThemeLogo)==null?void 0:Q.icon}};
_.P.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.P.getLottieUrl=function(g,u){var q,Q,L,E;return g?u==null?void 0:(q=u.darkThemeLogo)==null?void 0:(Q=q.lottieAnimation)==null?void 0:Q.url:u==null?void 0:(L=u.lightThemeLogo)==null?void 0:(E=L.lottieAnimation)==null?void 0:E.url};
_.P.computeLottiePlayerProps=function(g){if(g){var u;if((u=this.animationRef)==null?0:u.lottieEl){var q;(q=this.animationRef)==null||q.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:g,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.P.onLottieError=function(){this.data&&this.lottieUrl&&_.hJ(this.hostElement,"yoodle-error")};
_.P.onImgError=function(){this.data&&!this.lottieUrl&&_.hJ(this.hostElement,"yoodle-error")};
X3.prototype.playAnimation=X3.prototype.playAnimation;X3.prototype.renderLogoEntity=X3.prototype.renderLogoEntity;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],X3.prototype,"data",void 0);_.Y([_.a({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.K("design:type",Boolean)],X3.prototype,"hideImg",void 0);
_.Y([_.a({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.K("design:type",Boolean)],X3.prototype,"hideYtdLogo",void 0);_.Y([_.a({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.K("design:type",Boolean)],X3.prototype,"hideLottie",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.K("design:type",Boolean)],X3.prototype,"isRedLogo",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],X3.prototype,"useDarkThemeYoodle",void 0);_.Y([_.a(),_.K("design:type",String)],X3.prototype,"url",void 0);_.Y([_.a(),_.K("design:type",String)],X3.prototype,"animatedUrl",void 0);_.Y([_.a(),_.K("design:type",String)],X3.prototype,"logoTitleText",void 0);_.Y([_.a({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.K("design:type",Object)],X3.prototype,"logoIcon",void 0);_.Y([_.a(),_.K("design:type",Object)],X3.prototype,"logoType",void 0);
_.Y([_.a(),_.K("design:type",String)],X3.prototype,"lottieUrl",void 0);_.Y([_.a(),_.K("design:type",Object)],X3.prototype,"lottiePlayerProps",void 0);_.Y([_.a(),_.K("design:type",Object)],X3.prototype,"animationRef",void 0);_.Y([_.k_("data"),_.k_("useDarkThemeYoodle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],X3.prototype,"renderLogoEntity",null);
_.Y([_.n6("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],X3.prototype,"playAnimation",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],X3);
_.T(X3,"ytd-yoodle-renderer",function(){if(Lzk!==void 0)return Lzk;var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Lzk=g},{mode:2});var PxG;var NCv;var sHV=_.wy.currentPageTypeSelector,yhe=_.wy.currentPageSubTypeSelector,rk=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return g};
_.A(rk,_.X);_.P=rk.prototype;_.P.onYoodleError=function(){_.w("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.P.computeLogoName=function(g){g=this.componentBehavior.computeIcon_(g);return g===""?"yt-logos-ext:yt-logo-updated":g};
_.P.computeTitle=function(g,u,q){return q&&(u==null?0:u.tooltipText)?_.iR(u.tooltipText):_.iR(g)};
_.P.computeAriaLabel=function(g,u,q){return q&&(u==null?0:u.tooltipText)?_.iR(g):""};
_.P.computeShowYoodle=function(g,u,q){return!g||!u&&!!q&&!_.pH.isEmpty(q)};
_.P.onNavigateHomeAction=function(){if(_.w("kevlar_miniplayer_navigate_home_from_app_killswitch")){var g;(g=_.Tr(this.hostElement).querySelector(".yt-simple-endpoint"))==null||g.click()}};
_.P.computeLogoHref=function(g,u,q){var Q;(q==null?0:q.onTapCommand)?Q=this.componentBehavior.computeHref_(q.onTapCommand):g&&(Q=this.componentBehavior.computeHref_(g));return Q?Q:u};
_.P.computeCommand=function(g,u){return(u==null?void 0:u.onTapCommand)||g};
_.P.getEndpointForm=function(){if(_.w("kevlar_topbar_disable_cache_only_home")){var g=_.Bk().resolve(_.Ja),u=sHV(g.getState())||"";g=yhe(g.getState())||"";return{disableCache:u==="ytd-browse"&&g==="home"}}return{disableCache:!0}};
rk.prototype.onYoodleError=rk.prototype.onYoodleError;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],rk.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],rk.prototype,"componentBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],rk.prototype,"ytdReduxBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],rk.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],rk.prototype,"countryCode",void 0);_.Y([_.a({selectorArgs:["data.overrideEntityKey"],selector:function(g,u){return _.BC(g.entities,"logoEntity",u)}}),
_.K("design:type",Object)],rk.prototype,"logoEntity",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.K("design:type",Boolean)],rk.prototype,"showYoodle",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],rk.prototype,"yoodleError",void 0);_.Y([_.a({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.K("design:type",String)],rk.prototype,"titleText",void 0);
_.Y([_.a({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.K("design:type",String)],rk.prototype,"ariaLabelText",void 0);_.Y([_.a({value:"/"}),_.K("design:type",String)],rk.prototype,"defaultEndpointUrl",void 0);_.Y([_.a({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.K("design:type",String)],rk.prototype,"endpointUrl",void 0);
_.Y([_.a({computed:"computeCommand(data.endpoint, logoEntity)"}),_.K("design:type",String)],rk.prototype,"command",void 0);_.Y([_.a(),_.K("design:type",Object)],rk.prototype,"logoType",void 0);_.Y([_.a({}),_.K("design:type",Boolean)],rk.prototype,"useDarkThemeYoodle",void 0);_.Y([_.n6("yoodle-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rk.prototype,"onYoodleError",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],rk);
_.T(rk,"ytd-topbar-logo-renderer",function(){if(NCv!==void 0)return NCv;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return NCv=g},{mode:2});var vLG=0;var DEO=$g.SEARCH_APPEND_LABEL,pnO=$g.SUGGESTION_NEW_VIDEOS_TEXT,Jh0=$g.SUGGESTION_THUMBNAIL_LABEL,jHe=$g.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,fbT=_.r(function(g){function u(B5){var ra,yp;return _.D(function(YV){if(YV.nextAddress==1)return ra=new Request(B5),_.b8(YV,2),YV.yield(fetch(ra,{credentials:"include"}),4);if(YV.nextAddress!=2)return fZ(!0),_.Xx(YV,0);yp=_.rt(YV);_.Io(yp);_.Wx(YV)})}
var q=g.isHighlighted;var Q=g.suggestion;var L=g.onClickCallback;var E=g.onHoverUpdateCallback;var y=g.labels;var v=g.queryBuilderFunction;var J=g.onRemoveCallback;var f=g.suggestionIndex;var t=g.generateUniqueId;var e=g.highlightedId;var G=g.useScrollMargin;var R=g.isKeyboardMode;var H=null,l=null,d=null,F=_.Hk("div"),V=_.Hk("span");g=_.N(_.jR(!1,void 0,"LafNkf"));var z=g.next().value,O=g.next().value,W=_.AM("a",function(B5){B5&&_.y5(237477,B5,l,function(ra){l=ra})}),x=_.AM("button",function(B5){B5&&
_.y5(237477,B5,l,function(ra){l=ra})}),k=_.AM("div",function(B5){B5&&_.y5(281939,B5,d,function(ra){d=ra})}),LZ=_.YH(function(B5){if((B5==null?void 0:B5.button)===2)return B5.preventDefault(),!1;
var ra=_.j_();ra&&H&&_.iH(ra,H,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var yp;L(B5,Q().text,Q().index,Q().entityMid,B5==null?void 0:(yp=B5.detail)==null?void 0:yp.wasSelectedByKeyboard);return!1}),sb=function(){return Q().type===35},Rm=function(){return _.w("desktop_enable_single_suggestion_highlight")},M3=function(){return _.S8("desktop_suggestions_panel_row_height")||0},tT=function(){var B5;
return _.w("desktop_enable_new_video_metadata")&&((B5=Q())==null?void 0:B5.hasNewVideo)===!0},mJ=function(){return _.w("desktop_enable_visual_suggest")},hT=function(){return _.w("desktop_enable_entity_suggest")&&W80(Q())},Yu=function(){return Q().entitySubtitle},Mx=function(){return Rm()?(q==null?void 0:q())||no()&&!(R==null?0:R()):(q==null?void 0:q())||no()},po=function(){var B5=_.FR("SBOX_SETTINGS");
return sb()&&!(B5==null?0:B5.HIDE_REMOVE_LINK)},KZ=function(){return TaO(Q(),{useEntityName:hT()})},G2,Ab=!((G2=_.Bk().resolve(_.xv(_.gy)))==null||!G2()),tb=function(){return sb()?_.w("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},lx=function(){return y==null?void 0:y().SUGGESTION_DISMISS_LABEL},NE=function(){return y==null?void 0:y().SUGGESTION_DISMISSED_LABEL};
g=_.N(_.jR(!1,void 0,"JyfUlf"));G2=g.next().value;var fZ=g.next().value;g=_.N(_.jR(!1,void 0,"QKfAGe"));var Xf=g.next().value,eX=g.next().value,no=Xf,Co=_.YH(function(){v(V.value.innerText);return!1}),gC=_.YH(function(B5){B5.preventDefault();
return!1}),Ca=_.YH(function(B5){var ra=Q().text,yp=_.FR("SBOX_SETTINGS"),YV="https://"+(yp.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
YV+="&delq="+encodeURIComponent(ra);(ra=yp==null?void 0:yp.PSUGGEST_TOKEN)&&(YV+="&tok="+ra);(yp=yp==null?void 0:yp.SESSION_INDEX)&&(YV+="&authuser="+yp);u(YV);B5.preventDefault();(B5=_.j_())&&l&&_.iH(B5,l,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");J(f==null?void 0:f());return!1}),oR=_.YH(function(){if(Rm()&&(R==null?0:R()))return!1;
eX(!0);E(!0);return!1}),jf=_.YH(function(){eX(!1);
E(!1);return!1}),Ko=_.YH(function(){O(!0);
return!1}),K9=_.YH(function(){O(!1);
return!1}),v5=_.YH(function(B5){B5.preventDefault();
if(Q().entityThumbnailAttributionUrl){d&&_.zZ(_.gL(),d);var ra=Q().entityThumbnailAttributionUrl;B5=Q().entityName;var yp={dismissDialogEndpoint:{}};ra={commandExecutorCommand:{commands:[yp,{urlEndpoint:{url:ra,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:ra}}}]}};yp={buttonViewModel:{title:_.Ug("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:yp}}};ra={buttonViewModel:{title:_.Ug("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:ra}}};B5={dialogHeaderViewModel:{headline:{content:B5!=null?B5:_.Ug("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var YV={basicContentViewModel:{paragraphs:[{text:{content:_.Ug("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};B5={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:B5,footer:{panelFooterViewModel:{primaryButton:ra,
secondaryButton:yp,shouldHideDivider:!0}},content:YV}}}}};_.Bk().resolve(_.Gy).resolveCommand(B5)}return!1});
g=_.N(_.jR("",void 0,"MvIBn"));var ME=g.next().value,fo=g.next().value;_.lL(function(){po()&&fo(t==null?void 0:t(f==null?void 0:f()));F.value&&_.y5(12453,F.value,H,function(B5){H=B5})});
return _.p(_.M,{cond:G2,then:function(){var B5={};return _.p("div",{class:_.Ty("ytSuggestionComponentRemovedText",(B5.ytSuggestionComponentLargerRemovedText=function(){return mJ()},B5)),
style:function(){return M3()>0?"height: "+M3()+"px;":""},
role:"button"},NE)},
else:function(){var B5={},ra={};return _.p("div",{class:_.Ty("ytSuggestionComponentSuggestion",(B5.ytSuggestionComponentSuggestionHover=function(){return!Rm()},B5.ytSuggestionComponentHighlighted=Mx,B5.ytSuggestionComponentPersonalizedSuggestion=sb,B5.ytSuggestionComponentMweb=!1,B5.ytSuggestionComponentLargerSuggestion=function(){return tT()||mJ()},B5.ytSuggestionComponentThumbnailSuggestion=function(){return mJ()},B5.ytSuggestionComponentRoundedSuggestion=function(){return _.w("desktop_enable_scrollable_suggestions_panel")&&
_.w("desktop_enable_suggestions_panel_padding")},B5.ytSuggestionComponentThumbnailPadding=function(){return mJ()&&!sb()},B5)),
style:function(){return M3()>0?"height: "+M3()+"px;":""},
role:"presentation","on:mousedown":LZ,"on:mouseover":oR,"on:mouseout":jf,el:F},_.p("div",{class:_.Ty("ytSuggestionComponentText",(ra.ytSuggestionComponentScrollMargin=G,ra)),"aria-label":function(){return tT()?Q().text+" "+pnO:Q().text},
id:function(){return t==null?void 0:t(f==null?void 0:f())},
"on:mousedown":LZ,role:"option"},_.p(_.M,{cond:function(){return Q().type!==33},
then:function(){return _.p(_.B1,{icon:tb,className:"ytSuggestionComponentIcon"})}}),_.p("div",{class:"ytSuggestionComponentLeftContainer"},_.p("span",{el:V,
role:"button",tabindex:0},_.p(_.R4,{each:KZ},function(yp){return yp.bold?_.p("span",{class:"ytSuggestionComponentBold"},yp.text):_.p("span",null,yp.text)})),_.p(_.M,{cond:function(){return hT()&&!!Q().entitySubtitle||tT()},
then:function(){return _.p("div",{class:"ytSuggestionComponentMetadataContainer"},_.p(_.M,{cond:function(){return hT()&&!!Q().entitySubtitle},
then:function(){return _.p("div",{class:"ytSuggestionComponentEntitySubtitle"},Yu)}}),_.p(_.M,{cond:function(){return tT()},
then:function(){return _.p("div",{class:"ytSuggestionComponentNewVideoContainer"},_.p("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.p("div",{class:"ytSuggestionComponentNewVideoText"},pnO))}}))}}))),_.p("div",{class:"ytSuggestionComponentRightContainer"},_.p(_.M,{cond:function(){return mJ()&&Q().visualSuggestUrl!==void 0},
then:function(){var yp={};return _.p("div",{class:"ytSuggestionComponentThumbnailContainer"},_.p("img",{"aria-label":Jh0,class:_.Ty("ytSuggestionComponentVisualSuggestThumbnail",(yp.ytSuggestionComponentCircularFrame=function(){return hT()&&Q().subtypes.includes(790)},yp.ytSuggestionComponentEntitySuggestThumbnail=function(){return hT()},yp)),
src:function(){return Q().visualSuggestUrl}}),_.p(_.M,{cond:function(){return hT()&&!!Q().entityThumbnailAttributionUrl},
then:function(){var YV={};return _.p("span",{title:jHe,role:"tooltip"},_.p("div",{el:k,"on:mouseover":Ko,"on:mouseout":K9,"on:mousedown":v5,class:_.Ty("ytSuggestionComponentThumbnailOverlay",(YV.ytSuggestionComponentThumbnailOverlayHidden=function(){return!z()},YV))},_.p(_.B1,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.p(_.wi,null,_.p(_.Gv,{when:function(){return mJ()&&po()}},function(){var yp={};
return _.p("button",{class:_.Ty("ytSuggestionComponentRemoveLinkClearButton",(yp.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return ME()&&ME()===(e==null?void 0:e())},yp.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Mx()},yp)),
el:x,"on:mousedown":Ca,"aria-label":lx,id:function(){return ME()}},_.p(_.B1,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.p(_.Gv,{when:function(){return!(mJ()&&Q().visualSuggestUrl!==void 0)&&po()}},function(){var yp={};
return _.p("a",{class:_.Ty("ytSuggestionComponentRemoveLink",(yp.ytSuggestionComponentRemoveLinkDark=Ab,yp.ytSuggestionComponentRemoveLinkSelected=function(){return ME()&&ME()===(e==null?void 0:e())},yp)),
el:W,"on:mousedown":Ca,"aria-label":lx,tabindex:0,role:"button",id:function(){return ME()}},lx)}),_.p(_.Gv,{when:function(){return!1}},function(){return _.p("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Co,"on:mousedown":gC,role:"button","aria-label":DEO},_.p(_.B1,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jl");var Mfk=_.CT(["//www.google.com/textinputassistant/","/","_tia.js"]),tfk=_.r(function(){return _.p("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.p("button",{class:"ytdTextInputAssistantButton","on:click":_.YH(function(){K8T().inputMethodsTracker.add(3);var g,u=(g=_.FR("SBOX_SETTINGS"))==null?void 0:g.REQUEST_LANGUAGE;if(u)return _.Rr(_.A1(Mfk,14,u)),!1})},_.p("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 Ghk;_.eKe=function(){this.cache=new Map};
Ghk=function(g){for(var u=_.N(g.cache.entries()),q=u.next();!q.done;q=u.next()){var Q=_.N(q.value);q=Q.next().value;Q=Q.next().value;Q.suggestions.some(function(L){return L.type===35})&&g.cache.delete(q)}};var $Ev=$g.SEARCH,RKT=$g.SEARCH_CLEAR_LABEL,wnV=new _.Fv("FAKE_SUGGEST_RESPONSE"),che=_.r(function(g){function u(){oR||(oR=setTimeout(function(){Ko()},1E3))}
function q(lZ,ZH,hh){if(lZ.trim()){Ca=lZ;_.di("REFINEMENTS_TUPLE",void 0);Co=!0;var Nk;ZH=znv(NE,ZH);var $i=(Nk=g.searchEndpoint)==null?void 0:Nk.call(g);_.PMp(lZ,ZH,$i,G2.value.value,hh);Ko();G2.value.value=lZ;G2.value.blur();NE.reset()}}
function Q(lZ){return _.D(function(ZH){return ZH.return(new Promise(function(hh){var Nk=new XMLHttpRequest;Nk.open("GET",_.dxk(lZ),!0);Nk.withCredentials=!0;var $i=_.FR("SBOX_SETTINGS");($i==null?0:$i.SEND_VISITOR_DATA)&&Nk.setRequestHeader("X-Goog-Visitor-Id",$i==null?void 0:$i.VISITOR_DATA);Nk.onload=function(){hh(Nk.responseText)};
Nk.onerror=function(){_.Io(Error("om"));hh(null)};
setTimeout(function(){Nk.abort()},1E4);
Nk.send(null)}))})}
function L(lZ){var ZH,hh,Nk,$i;return _.D(function(F4){switch(F4.nextAddress){case 1:return ZH={credentials:"include",headers:_.boV()},window.AbortController&&(hh=new AbortController,setTimeout(function(){hh.abort("ytsbox-suggest-timeout")},1E4),ZH.signal=hh.signal),_.b8(F4,2),F4.yield(fetch(_.dxk(lZ),ZH),4);
case 4:Nk=F4.yieldResult.text();_.Xx(F4,3);break;case 2:return $i=_.rt(F4),$i!=="ytsbox-abort-last"&&$i!=="ytsbox-suggest-timeout"&&_.Io($i),F4.return(null);case 3:return F4.return(Nk)}})}
function E(lZ){var ZH,hh,Nk;return _.D(function($i){switch($i.nextAddress){case 1:if(ZH=_.Bk().resolve(_.xv(wnV)))return $i.return(ZH);hh=Date.now();u();return _.w("yt_searchbox_xhr")?$i.yield(Q(lZ),5):$i.yield(L(lZ),4);case 4:Nk=$i.yieldResult;$i.jumpTo(3);break;case 5:Nk=$i.yieldResult;case 3:if(Nk){oR&&(clearTimeout(oR),oR=null);var F4=NE,R2=hh,OT=lZ.query.length===0;R2=Date.now()-R2;OT?F4.zeroPrefixRoundTripTime=R2:(F4.JSC$22805_totalRoundTripTime+=R2,F4.maxRoundTripTime=Math.max(F4.maxRoundTripTime,
R2),OT=Math.floor(R2/100),OT>=niv.length?++F4.roundTripTimeHistogram[9]:++F4.roundTripTimeHistogram[niv[OT]])}return $i.return(Nk)}})}
function y(lZ){var ZH,hh,Nk;return _.D(function($i){if($i.nextAddress==1)return(ZH=lx.cache.get(_.CZV(lZ)))?$i.return(ZH):$i.yield(E(lZ),2);hh=$i.yieldResult;if(hh===null)return $i.return(null);Nk=new _.hnO(hh);lZ.query.length===0&&Nk.suggestions.length===0||lx.cache.set(_.CZV(lZ),Nk);return $i.return(Nk)})}
function v(lZ){var ZH,hh;return _.D(function(Nk){if(Nk.nextAddress==1){gC=!1;var $i=Ca;$i=_.i2()==="search"?(_.U7(location.href,"search_query")||_.U7(location.href,"q"))===$i:!1;ZH=new _.ioe(lZ,$i?Ca:null);return Nk.yield(y(ZH),2)}hh=Nk.yieldResult;if(hh===null)return Nk.return();ZH.query.length===0&&(NE.zeroPrefixSuggestionCount=hh.suggestions.length);if(ZH.id<=jf)return NE.outOfSyncResponseCount++,Nk.return();if(document.activeElement!==G2.value)return Nk.return();jf=ZH.id;var F4=NE,R2=hh.rawResponse[2]||
{};F4.experimentTriggeredBeforeFinal||(F4.experimentTriggeredBeforeFinal=F4.experimentTriggeredFinal);F4.experimentTriggeredFinal=!!R2.e;NE.updateSuggestions(hh.suggestions);d(-1);Yu([]);hh.suggestions!==R()&&xF(hh.suggestions.length);H(hh.suggestions);LZ(hh.suggestions.length>0&&hh.suggestions[0].type===33);tb&&(tb.hidden=hh.suggestions.length===0,k()?(tb.style.minWidth="",F4=tb.style,R2=($i=R()[0])==null?void 0:$i.ignoredPrefix,F4.marginLeft=(R2?Math.min(R2.length*6,Ab.value.offsetWidth):0).toString()+
"px"):(tb.style.minWidth=Ab.value.offsetWidth+"px",tb.style.marginLeft="0"),TF());_.Wx(Nk)})}
function J(){if(!Co)return!1;var lZ=_.FR("REFINEMENTS_TUPLE"),ZH;return lZ&&((ZH=lZ[1])==null?0:ZH.length)?(lZ=lZ[1].map(function(hh,Nk){return new rbk([hh,0,[71]],G2.value.value,Nk)}),R()!==lZ&&xF(lZ.length),Yu([]),H(lZ),NE.updateSuggestions(lZ),Co=!1,tb.hidden=lZ.length===0,gC=lZ.length>0,!0):!1}
function f(){var lZ=G2.value.value;(typeof lZ==="string"||lZ instanceof String)&&lZ!==""?O(!0):O(!1)}
function t(){if(_.i2()==="search"){var lZ=window.location.href;try{var ZH=_.U7(lZ,"search_query")||_.U7(lZ,"q")||""}catch(hh){ZH=""}ZH&&(G2.value.value=ZH,O(!0))}}
var e=_.N(_.jR([],void 0,"OC8EPc")),G=e.next().value;e=e.next().value;var R=G,H=e;G=_.N(_.jR(-1,void 0,"t2tVQb"));var l=G.next().value,d=G.next().value;G=_.N(_.jR(-1,void 0,"v0RZCe"));var F=G.next().value,V=G.next().value;G=_.N(_.jR(!1,void 0,"rjAnI"));var z=G.next().value,O=G.next().value;G=_.N(_.jR(!1,void 0,"SyGLvb"));var W=G.next().value,x=G.next().value;e=_.N(_.jR(!1,void 0,"tL09Cb"));G=e.next().value;e=e.next().value;var k=G,LZ=e;e=_.N(_.jR(!1,void 0,"FlH7mc"));G=e.next().value;var sb=e.next().value;
e=_.N(_.jR(!1,void 0,"ea3fwe"));var Rm=e.next().value,M3=e.next().value;e=_.N(_.jR(1,void 0,"vSK1xe"));var tT=e.next().value,mJ=e.next().value;e=_.N(_.jR([],void 0,"ijlw4b"));var hT=e.next().value,Yu=e.next().value;e=_.N(_.jR(!1,void 0,"HcRey"));var Mx=e.next().value,po=e.next().value;e=_.w("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var KZ=_.Hk("yt-searchbox"),G2=_.Hk("input"),Ab=_.Hk("div"),tb,lx=
new _.eKe,NE=K8T(),fZ=_.Bk().resolve(_.xv(_.gy)),Xf=function(){var lZ;return((lZ=g.forceDarkMode)==null?void 0:lZ.call(g))||!(fZ==null||!fZ())},eX=function(){return _.w("desktop_enable_scrollable_suggestions_panel")},no="i"+vLG++,Co=!1,gC=!1,Ca="",oR=null,jf=-1,Ko=function(){Yu([]);
H([]);LZ(!1);tb&&(tb.hidden=!0);oR&&(clearTimeout(oR),oR=null);d(-1)},K9=function(lZ,ZH){lZ.preventDefault();
po(!0);tb&&(tb.hidden=!1);var hh=l();lZ=R();var Nk=hT();ZH=NXt(ZH);hh+=ZH;for(hh>=lZ.length?hh=-1:hh<-1&&(hh=lZ.length-1);hh!==-1&&(Nk.includes(hh)||hh>=lZ.length||hh<0);)hh+=ZH,hh>=lZ.length&&(hh=-1);d(hh);l()>=0&&(G2.value.value=R()[l()].text,V(0),f(),lZ=l(),Nk=F(),(Nk=document.getElementById(Pq[lZ][Nk]))&&eX()&&(lZ===R().length-1?tb.scrollTop=tb.scrollHeight:Nk.scrollIntoView({block:"nearest",inline:"start"})))},v5=_.YH(function(lZ){if(!(lZ.relatedTarget instanceof Element&&lZ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!0);
var ZH;(ZH=g.focusCallback)==null||ZH.call(g,!0);J()||(gC?tb.hidden=!1:(_.hJ(KZ.value,"yt-autonav-pause-focus",{}),v(lZ.target.value)))}}),ME=_.YH(function(lZ){if(!(lZ.relatedTarget instanceof Element&&lZ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!1);
var ZH;(ZH=g.focusCallback)==null||ZH.call(g,!1);tb.scrollTop=0;tb.hidden=!0;_.hJ(KZ.value,"yt-autonav-pause-blur",{})}}),fo=function(lZ){lZ=NXt(lZ);
var ZH;((ZH=Pq[l()])==null?0:ZH[F()+lZ])&&V(F()+lZ)},B5=_.YH(function(lZ){var ZH=lZ.keyCode,hh=lZ.target;
po(!0);switch(ZH){case 13:lZ.preventDefault();var Nk;if((Nk=Pq[l()])==null?0:Nk[F()]){var $i;($i=document.getElementById(Pq[l()][F()]))==null||$i.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}lZ=lZ.shiftKey?4:3;ZH=NE;Nk=l();ZH.selectedSuggestionIndex=Nk;q(hh.value,lZ);break;case 27:tb&&(tb.hidden=!0);break;case 40:K9(lZ,40);break;case 38:K9(lZ,38);break;case 39:fo(39);break;case 37:fo(37);break;case 229:NE.inputMethodsTracker.add(4);break;default:NE.inputMethodsTracker.add(1),
xxB(NE)}return!1}),ra=_.YH(function(lZ){v(lZ.target.value);
f();eX()&&tb&&(tb.scrollTop=0);return!1}),yp=_.YH(function(){NE.inputMethodsTracker.add(2);
xxB(NE);return!1});
_.lL(function(){if(tb){NE.reset();if(window.ResizeObserver){var lZ=new ResizeObserver(function(){k()||(tb.style.minWidth=Ab.value.offsetWidth+"px")});
lZ.observe(Ab.value);(new ResizeObserver(function(){TF()})).observe(tb);
_.dB(function(){lZ.disconnect()})}t();
window.addEventListener("yt-navigate-finish",t);window.addEventListener("yt-focus-searchbox",function(){G2.value.focus()});
var ZH;sb((ZH=_.FR("SBOX_SETTINGS"))==null?void 0:ZH.HAS_ON_SCREEN_KEYBOARD)}else _.Zf(new _.Ji("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var YV=_.YH(function(lZ){lZ.preventDefault();q(G2.value.value,12);return!1}),hb=_.YH(function(lZ){lZ.preventDefault();
var ZH,hh;(ZH=G2)==null||(hh=ZH.value)==null||hh.focus();var Nk,$i;((Nk=G2)==null?void 0:($i=Nk.value)==null?void 0:$i.value)!==""&&(G2.value.value="",G2.value.dispatchEvent(new Event("input")));return!1}),$L=_.YH(function(){var lZ=bUf(G2.value.value,R().filter(function(ZH){return ZH.type!==35}).map(function(ZH){return{label:ZH.text}}));
_.YJ(KZ.value,"yt-open-popup-action",[{openPopupAction:lZ},document.body]);return!1}),UZ=_.YH(function(){G2.value.focus();
return!1}),ET=function(lZ,ZH,hh,Nk,$i){NE.selectedSuggestionIndex=hh;
q(ZH,$i?3:1,Nk)},$F=function(lZ){G2.value.value=lZ;
G2.value.dispatchEvent(new Event("input"));NE.inputMethodsTracker.add(5);xxB(NE,!0)},Pq=[[]],du=function(lZ){var ZH="searchbox-suggestion"+_.M6(_.eu);
Pq[lZ].push(ZH);return ZH},xF=function(lZ){if(R()){Pq=[[]];
for(var ZH=0;ZH<lZ;ZH++)Pq.push([])}},TF=function(){if(eX()){var lZ=tb,ZH=lZ.scrollTop;
lZ=lZ.scrollHeight-lZ.clientHeight;M3(ZH>=lZ);ZH=Math.abs(lZ-ZH);ZH<=40?mJ(1-(40-ZH)/40):mJ(1)}},bP=function(){return"opacity: "+tT()*100+"%"},lh=_.YH(function(){TF();
return!1}),rq=_.YH(function(){po(!1);
return!1}),nZ,H5={},Hn={},I3={},ix={};
return _.p("yt-searchbox",{class:_.Ty("ytSearchboxComponentHost",(H5.ytSearchboxComponentMweb=!1,H5.ytSearchboxComponentDesktop=!0,H5["yt-searchbox-filled-query"]=function(){return z()},H5["ytd-masthead"]=function(){return!W()},H5.ytSearchboxComponentHostDark=Xf,H5)),
role:"search",el:KZ,"client-ve-type":10349},_.p("div",{el:Ab,"on:click":UZ,class:_.Ty("ytSearchboxComponentInputBox",(Hn.ytSearchboxComponentInputBoxDark=Xf,Hn.ytSearchboxComponentInputBoxHasFocus=W,Hn))},_.p("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":YV},_.p(_.M,{cond:W,then:function(){return _.p("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.p(_.B1,{icon:"SEARCH"}))}}),_.p("input",{el:G2,
class:_.Ty("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":no,"aria-expanded":!((nZ=tb)==null?0:nZ.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":ME,"on:focus":v5,"on:input":ra,"on:keydown":B5,"on:paste":yp,placeholder:g.placeholderText,"aria-activedescendant":function(){var lZ;return(lZ=Pq[l()])==null?void 0:lZ[F()]},
"aria-autocomplete":"list",role:"combobox"})),_.p(_.M,{cond:G,then:function(){return _.p("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.p(tfk,null))}}),_.p(_.M,{cond:z,
then:function(){return _.p("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.p("button",{class:"ytSearchboxComponentClearButton","on:click":hb,"aria-label":g.clearButtonAriaLabel||RKT},_.p(_.B1,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.p(_.VU,{model:{}})))}})),_.p("button",{class:_.Ty("ytSearchboxComponentSearchButton",(I3.ytSearchboxComponentSearchButtonDark=Xf,I3)),
"on:click":YV,"aria-label":$Ev,title:g.placeholderText},_.p(_.B1,{icon:"SEARCH"})),_.p(_.M,{cond:function(){if(s6L()&&_.w("mweb_voice_search")&&g.voiceSearchButton)return g.voiceSearchButton()},
then:function(lZ){var ZH={};return _.p("div",{class:_.Ty("ytSearchboxComponentVoiceSearchWrapper",(ZH.ytSearchboxComponentHideVoiceSearchButton=function(){return z()},ZH))},_.p(_.Up,{data:lZ},{buttonRenderer:function(hh){return _.p(_.CG,{data:hh.data,
onButtonClickCallback:function(){}})}}))}}),_.p("div",{el:_.lF(function(lZ){return void(tb=lZ)}),
id:no,class:_.Ty("ytSearchboxComponentSuggestionsContainer",(ix.ytSearchboxComponentSuggestionsContainerDark=Xf,ix["yt-searchbox-suggestions-container"]=!1,ix.ytSearchboxComponentSuggestionsContainerScrollable=eX(),ix.ytSearchboxComponentSuggestionsContainerAnimated=e,ix)),"on:scroll":lh,"on:mousemove":rq,role:"listbox",hidden:!0},_.p(_.R4,{each:R},function(lZ,ZH){return _.p(fbT,{suggestion:lZ,isHighlighted:function(){return ZH()===l()},
onClickCallback:ET,onHoverUpdateCallback:function(hh){if(_.w("desktop_enable_single_suggestion_highlight")){var Nk=ZH();hh&&(V(0),d(Nk))}},
onRemoveCallback:function(hh){Ghk(lx);hh===void 0||hh<0||hT().includes(hh)||Yu([].concat(_.na(hT()),[hh]))},
labels:g.labels,queryBuilderFunction:$F,suggestionIndex:ZH,generateUniqueId:du,highlightedId:function(){var hh;return(hh=Pq[l()])==null?void 0:hh[F()]},
useScrollMargin:eX(),isKeyboardMode:Mx})}),_.p(_.M,{cond:function(){return!k()&&R().find(function(lZ){return lZ.type!==35})&&_.w("searchbox_reporting")},
then:function(){return _.p("button",{class:"ytSearchboxComponentReportButton","on:mousedown":$L},_.Ug("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.p(_.M,{cond:function(){return!Rm()&&eX()},
then:function(){return _.p("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.p("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:bP}))}})))},"ml");
che.idomCompat={callbacks:{focusCallback:!0}};_.dL(che,"yt-searchbox",{props:{searchEndpoint:_.H2,placeholderText:_.H2,labels:_.H2,voiceSearchButton:_.H2,focusCallback:_.iF,clearButtonAriaLabel:_.H2,forceDarkMode:_.H2}});var W7=function(){var g=_.X.apply(this,arguments)||this;g.menuButtonTargetId="topbar-guide-menu";g.narrow=!1;g.menuStrings={BACK_ALT_LABEL:_.Ug("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Ug("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Ug("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Ug("SBOX_PLACEHOLDER",void 0,"Search")};g.pageDarkTheme=document.documentElement.hasAttribute("dark");g.watchPageScrollTop=0;g.theater=!1;g.fullscreen=!1;g.disableFrostedGlassDuringViewTransition=
!1;g.desktopUnifiedSearchPanelMode=_.w("desktop_enable_unified_search_panel");g.aiCompanionEnabled=_.w("enable_ai_companion");g.ytSearchboxFocused=!1;g.searchboxLabels=_.FR("SBOX_LABELS");g.topbarIsAboveChipbar=!1;g.isDarkThemeForced=!1;g.areGhostCardsHidden=!1;g.guideKeyboardToggle=!1;g.voiceSearchManager=BYE();g.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};g.setYtSearchboxFocused=function(u){g.ytSearchboxFocused=u};
g.toggleFrostedGlassDuringViewTransition=function(u){g.disableFrostedGlassDuringViewTransition=u};
return g};
_.A(W7,_.X);_.P=W7.prototype;_.P.computeSimpleText=function(g){return _.iR(g)};
_.P.onDarkChanged=function(){for(var g=_.N(this.buttons||[]),u=g.next();!u.done;u=g.next())u.value.isOverlay=!!this.dark;g=_.N(this.buttonRenderers||[]);for(u=g.next();!u.done;u=g.next())u.value.overrides=this.computeButtonOverride()};
_.P.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var g=_.ZV(_.A4(),"aa");_.Y_(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||g||(this.isDarkThemeForced=this.dark=!0);this.logoType?(g=this.hostElement.querySelector("#masthead-logo"))&&(_.w("polymer_on_demand_shady_dom")?g.setAttribute("slot","masthead-logo-old"):_.UU(g)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.zr(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.zr(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.P.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.zr(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.zr(this,this.onSetTheaterModeEnabled))};
_.P.dataChanged=function(){var g=this.data;g&&(this.voiceEnabled=g.voiceSearchButton?BYE().isSupported():!1,_.ka(_.S9(),this.menuButtonTargetId,this.guideButton),g.onReceivedActions&&g.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.xJ(this.hostElement,g.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&g&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Y_(this.hostElement,"dark",!1),_.Y_(this.hostElement,"theater",!1),(g=
this.hostElement.querySelector("#masthead-logo"))&&(_.w("polymer_on_demand_shady_dom")?g.setAttribute("slot","masthead-logo-old"):_.UU(g))))};
_.P.computeCenterHidden=function(){var g;return this.data&&!((g=this.data.searchbox)==null?0:g.fusionSearchboxRenderer)};
_.P.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Y_(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.P.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.P.onWatchScroll=function(g){this.watchPageScrollTop=g.detail||0;this.updateMastheadBackgroundOpacity()};
_.P.onFullscreenChangeAction=function(g){g||(this.watchPageScrollTop=0);this.fullscreen=g;this.updateMastheadBackgroundOpacity()};
_.P.onSetTheaterModeEnabled=function(g){this.theater=g.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.P.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.P.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.P.setBackgroundOpacity=function(g){g=this.calculateBackgroundOpacity(g);this.background.style.opacity=""+g};
_.P.calculateBackgroundOpacity=function(g){var u=this.theater?.6:0,q=this.hostElement.clientHeight/2;return Math.min(Math.max(g,0),q)/q*(1-u)+u};
_.P.shouldShowCinematicMastHead=function(){var g=_.w("kevlar_watch_grid")&&!_.w("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(g||this.pageDarkTheme)};
_.P.focusGuide=function(){this.guideButton.focus()};
_.P.onGuideToggleTap=function(){_.hJ(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.P.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.P.onGuideToggleHover=function(){_.hJ(this.hostElement,"yt-guide-hover")};
_.P.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.P.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.P.closeOnOutsideClickCondition=function(g){for(g=_.C6(g);g[0];){var u=g.shift();if(u instanceof Element&&u.id==="kbd")return!1}return!0};
_.P.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.P.pausePlayer=function(){var g;(g=_.F0())==null||g.pause();this.pauseMiniplayer()};
_.P.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var g;(g=_.Bk().resolve(_.RO).getPlayerElement())==null||g.pause()}};
_.P.isMiniplayerActive=function(){return _.Bk().resolve(_.RO).isMiniplayerActive()};
_.P.updateNarrowFromBinding=function(g){this.narrow=g.detail.value};
_.P.onYtSendFeedbackAction=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.registerWithViewTransitionManager=function(){qth(_.Bk().resolve(_.LP),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.z3.Object.defineProperties(W7.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("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 g;return!!(this.aiCompanionEnabled&&((g=this.data)==null?0:g.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var g;return(g=this.data)==null?void 0:g.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
W7.prototype.narrowChanged=W7.prototype.narrowChanged;W7.prototype.onWatchPageChange=W7.prototype.onWatchPageChange;W7.prototype.onRendererStamperFinished=W7.prototype.onRendererStamperFinished;W7.prototype.dataChanged=W7.prototype.dataChanged;W7.prototype.onDarkChanged=W7.prototype.onDarkChanged;_.Y([_.I(_.LJ),_.K("design:type",Object)],W7.prototype,"ironResizableBehavior",void 0);_.Y([_.I(NPL),_.K("design:type",Object)],W7.prototype,"ytdExpandableInputBehavior",void 0);
_.Y([_.I(_.$e.YtdGuideStateAwareBehavior),_.K("design:type",Object)],W7.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],W7.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],W7.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.jB),_.K("design:type",Object)],W7.prototype,"ytdReduxBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],W7.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],W7.prototype,"narrow",void 0);_.Y([_.a(),_.K("design:type",Object)],W7.prototype,"logoType",void 0);_.Y([_.a(),_.K("design:type",Boolean)],W7.prototype,"voiceEnabled",void 0);
_.Y([_.a(),_.K("design:type",Object)],W7.prototype,"menuStrings",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],W7.prototype,"dark",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],W7.prototype,"pageDarkTheme",void 0);_.Y([_.a(),_.K("design:type",Object)],W7.prototype,"watchPageScrollTop",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.$5q}),_.K("design:type",Boolean)],W7.prototype,"isWatchPage",void 0);
_.Y([_.a({reflectToAttribute:!0,selector:_.ROk}),_.K("design:type",Boolean)],W7.prototype,"isShortsPage",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],W7.prototype,"theater",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],W7.prototype,"fullscreen",void 0);_.Y([_.a({reflectToAttribute:!0,selector:_.AFS}),_.K("design:type",String)],W7.prototype,"frostedGlassMode",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],W7.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],W7.prototype,"aiCompanionEnabled",void 0);_.Y([_.a(),_.K("design:type",Object)],W7.prototype,"ytSearchboxFocused",void 0);_.Y([_.Ux("#buttons > *"),_.K("design:type",Array)],W7.prototype,"buttons",void 0);_.Y([_.Ux("ytd-button-renderer"),_.K("design:type",Array)],W7.prototype,"buttonRenderers",void 0);
_.Y([_.oE("#background"),_.K("design:type",HTMLDivElement)],W7.prototype,"background",void 0);_.Y([_.oE("#guide-button"),_.K("design:type",Object)],W7.prototype,"guideButton",void 0);_.Y([_.oE("#logo"),_.K("design:type",Object)],W7.prototype,"logo",void 0);_.Y([_.a({computed:"computeButtonOverride(dark)"}),_.K("design:type",Object)],W7.prototype,"buttonOverrides",void 0);
_.Y([_.qm("dark"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"onDarkChanged",null);_.Y([_.a({value:function(){return this.onVoiceTap.bind(this)}}),
_.K("design:type",Function)],W7.prototype,"boundOnTapVoiceButton",void 0);_.Y([_.a(),_.K("design:type",Object)],W7.prototype,"topbarIsAboveChipbar",void 0);_.Y([_.a(),_.K("design:type",String),_.K("design:paramtypes",[])],W7.prototype,"guideIcon",null);_.Y([_.C("voiceEnabled"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],W7.prototype,"shouldShowVoiceSearchButton",null);
_.Y([_.C("data.aiCompanionButton","aiCompanionEnabled"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],W7.prototype,"shouldShowAiCompanionButton",null);_.Y([_.C("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],W7.prototype,"voiceSearchButton",null);_.Y([_.C("aiCompanionEnabled"),_.K("design:type",String),_.K("design:paramtypes",[])],W7.prototype,"narrowQuery",null);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"dataChanged",null);_.Y([_.n6("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"onRendererStamperFinished",null);_.Y([_.qm("isWatchPage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"onWatchPageChange",null);
_.Y([_.qm("narrow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"narrowChanged",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-masthead"})],W7);
_.T(W7,"ytd-masthead",function(){if(PxG!==void 0)return PxG;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return PxG=g},{mode:2});var H93;var AhB={},Z9G={},lbG={},Ibv={},i9O=(Ibv.OFFLINE=(AhB["publicytnetworkstatus-online"]="BACK_ONLINE",AhB),Ibv.ONLINE=(Z9G["publicytnetworkstatus-offline"]="OFFLINE",Z9G),Ibv.BACK_ONLINE=(lbG["publicytnetworkstatus-offline"]="OFFLINE",lbG.TIMER_TRIGGER="ONLINE",lbG),Ibv),TU=function(){var g=_.X.apply(this,arguments)||this;g.currentState="ONLINE";g.scheduledJobId=0;g.bannerString="";g.bannerVe=null;g.networkStatusManagerInstance=new _.rN;return g};
_.A(TU,_.X);_.P=TU.prototype;_.P.attached=function(){var g=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){g.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){g.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.detached=function(){var g=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){g.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){g.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.enterState=function(g){var u=this;this.scheduledJobId&&_.Hv.cancelJob(this.scheduledJobId);g==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):g==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Ug("NO_INTERNET_CONNECTION",void 0,"No internet connection")):g==="BACK_ONLINE"&&(this.bannerString=_.Ug("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.M_(_.Hv,function(){u.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=g};
_.P.stateChangeHandler=function(g){(g=i9O[this.currentState][g])&&this.enterState(g)};
_.P.logVisibility=function(g){var u=_.j_();this.createBannerVe(g);u&&this.bannerVe&&(g?_.Z0(u,[this.bannerVe]):_.lH(u,[this.bannerVe]))};
_.P.createBannerVe=function(g){!this.bannerVe&&g&&(this.bannerVe=_.Yq(37929),_.BF(_.gL(),this.bannerVe))};
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",String)],TU.prototype,"currentState",void 0);_.Y([_.a(),_.K("design:type",Object)],TU.prototype,"scheduledJobId",void 0);_.Y([_.a(),_.K("design:type",Object)],TU.prototype,"bannerString",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-network-status-banner"})],TU);
_.T(TU,"ytd-network-status-banner",function(){if(H93!==void 0)return H93;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return H93=
g},{mode:1});var Cxe;var hI=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};g.hidden=!0;g.frostedGlass=_.w("web_frosted_glass");return g};
_.A(hI,_.X);hI.prototype.computeHidden=function(g){return g&&g.status?!1:!0};
hI.prototype.handleUpdatePermissionRoleCommand=function(g){if(g=_.c(g,_.QzH))if(g=_.c(g.renderer,_.q6Z))this.data=g};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],hI.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],hI.prototype,"componentBehavior",void 0);_.Y([_.a({value:!0,computed:"computeHidden(data)"}),_.K("design:type",Object)],hI.prototype,"hidden",void 0);_.Y([_.a(),_.K("design:type",Object)],hI.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],hI.prototype,"frostedGlass",void 0);
_.Y([_.fE({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],hI);
_.T(hI,"ytd-permission-role-bottom-bar-renderer",function(){if(Cxe!==void 0)return Cxe;var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);return Cxe=g},{mode:1});var b9V;var dEV;var sAb={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var YU=function(){return _.X.apply(this,arguments)||this};
_.A(YU,_.X);_.P=YU.prototype;_.P.attached=function(){this.JSC$22909_scroller&&(this.JSC$22909_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22909_scroller.attached&&typeof this.JSC$22909_scroller.attached==="function"&&this.JSC$22909_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(q){q.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var g=_.Tr(this.hostElement);g.querySelector("tp-yt-paper-radio-group").selected="";var u=g.querySelector("#reason-text");u&&(u.value="");g.querySelector("#description-text").value=""}};
_.P.canSubmit=function(g,u){_.hJ(this.hostElement,"yt-invalidate-popup-tabbables");return!(g&&u)};
_.P.onCancel=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.P.onSubmit=function(){var g=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(E){return E.active}).map(function(E){return E.innerText.trim()}),u=this.hostElement.querySelector("tp-yt-paper-radio-group"),q=u.selectedItem,Q=q.name;
q=q.innerText.trim();var L=u.querySelector("#reason-text");u=void 0;L&&(u=L.value);(L=this.descriptionText.value)&&(L=L.trim());yyx(this.data.searchQuery,g,Q,q,L,u);_.YJ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.P.sendFormSubmitToast=function(){var g=_.mc(_.Ug("SBOX_INAPPROPRIATE_TOAST"));_.YJ(this.hostElement,"yt-open-popup-action",[g,this])};
_.P.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(g){return g.active})};
_.P.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
YU.prototype.onIronSelect=YU.prototype.onIronSelect;YU.prototype.onIronChange=YU.prototype.onIronChange;YU.prototype.dataChanged=YU.prototype.dataChanged;_.Y([_.a(),_.K("design:type",Object)],YU.prototype,"data",void 0);_.Y([_.a({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.K("design:type",Boolean)],YU.prototype,"submitDisabled",void 0);_.Y([_.a(),_.K("design:type",Boolean)],YU.prototype,"suggestionSelected",void 0);
_.Y([_.a(),_.K("design:type",Boolean)],YU.prototype,"catagorySelected",void 0);_.Y([_.oE("#scroller"),_.K("design:type",Object)],YU.prototype,"JSC$22909_scroller",void 0);_.Y([_.oE("#description-text"),_.K("design:type",Object)],YU.prototype,"descriptionText",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YU.prototype,"dataChanged",null);
_.Y([_.n6("iron-change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YU.prototype,"onIronChange",null);_.Y([_.n6("iron-select"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YU.prototype,"onIronSelect",null);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],YU);
_.T(YU,"ytd-search-suggestion-report-dialog",function(){if(dEV!==void 0)return dEV;var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return dEV=g},{mode:1});var Oo=function(g){var u=g.openPopupAction;var q=g.target;var Q=g.container;var L=g.popupContainerConfig;var E=g.getElement;g=g.removeWhenClosed===void 0?!1:g.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=u;this.target=q;this.container=Q;this.popupContainerConfig=L;this.getElement=E;this.JSC$22915_popupConfig=this.popupContainerConfig.JSC$21597_popupConfig[this.openPopupAction.popupType];this.rendererName=(u=this.getName())?_.l7q(u,HkH(this.popupContainerConfig,
u)):"";_.w("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=g);this.createPopup()};
Oo.prototype.updatePopup=function(g){this.openPopupAction=g;this.JSC$22915_popupConfig=this.popupContainerConfig.JSC$21597_popupConfig[this.openPopupAction.popupType];Fz0(this);_.w("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Oo.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Vfe=function(g,u,q){(u=u&&g.JSC$22915_popupConfig.narrowProperties?g.JSC$22915_popupConfig.narrowProperties:g.JSC$22915_popupConfig.properties)&&q!==void 0&&(u.isAriaModal=q);mET(g,u);g.isRtl()&&mET(g,g.JSC$22915_popupConfig.rtlProperties);abG(g)};
Oo.prototype.createPopup=function(){var g=this.JSC$22915_popupConfig.component;if(this.popupContent=Xn3(this,this.rendererName)){if(g){this.popup=Xn3(this,g);var u=this.popupContent;_.w("web_enable_wrapper_for_cow_component_in_popup")&&(u=document.createElement("div"),u.appendChild(this.popupContent));_.w("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22915_popupConfig.slotName&&u.setAttribute("slot",this.JSC$22915_popupConfig.slotName);g=this.popup;var q=this.container.tagName.toLowerCase(),
Q=_.FT(u);_.XVk(_.aE(g),_.XT(u,q,Q));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.w("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Tr(this.container).appendChild(this.popup)}};
var Fz0=function(g){var u,q,Q=(u=g.openPopupAction.accessibilityData)==null?void 0:(q=u.accessibilityData)==null?void 0:q.label;Q&&(g.popup.ariaLabel=Q);var L;((L=g.popupContent.polymerController)!=null?L:g.popupContent).data=(0,_.pH.unsafeClone)(g.openPopupAction.popup[g.getName()]);g.popupContent.duration=rhe(g);g.popupContent.positionType=g.openPopupAction.position;var E=g.openPopupAction.properties;E&&Object.keys(E).forEach(function(y){g.popupContent[y]=E[y]})},mET=function(g,u){if(u)for(var q=
_.N(Object.keys(u)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,g.popup[Q]=u[Q]},abG=function(g){if(g.openPopupAction.position){var u=g.JSC$22915_popupConfig.positionalProperties&&g.JSC$22915_popupConfig.positionalProperties[g.openPopupAction.position],q=g.JSC$22915_popupConfig.rtlPositionalProperties&&g.JSC$22915_popupConfig.rtlPositionalProperties[g.openPopupAction.position];
u=g.isRtl()&&q?q:u;u.shiftedHorizontalOffset&&(q=g.popup.style.display,g.popup.style.display="block",g.popupContent&&g.popup.positionTarget&&g.popupContent.clientWidth>g.popup.positionTarget.clientWidth&&(u.horizontalOffset=g.popup.positionTarget.clientWidth/2-u.shiftedHorizontalOffset),g.popup.style.display=q);mET(g,u)}},Wzs=function(g,u,q){if(u){for(var Q=_.N(Object.keys(u)),L=Q.next();!L.done;L=Q.next())L=L.value,g.popup.style[L]=u[L];
if(q)for(u=_.N(Object.keys(q)),Q=u.next();!Q.done;Q=u.next())Q=Q.value,g.popup.style[Q]=q[Q]}};
Oo.prototype.getName=function(){return _.iL(this.openPopupAction.popup,"renderer")||_.iL(this.openPopupAction.popup,"dialog")||_.iL(this.openPopupAction.popup,"model")||void 0};
var rhe=function(g){g=g.openPopupAction.durationHintMs;return g===0?g:Math.max(4E3,g||4E3)};
Oo.prototype.isRtl=function(){return _.FR("HTML_DIR")==="rtl"};
var Xn3=function(g,u){g=g.getElement(u,g.target);g==null&&_.Io(new _.Ji("popup getElement returned null",u));return g};var TC0={};
TC0.YtPopupContainerBehavior=[_.M8.YtComponentBehavior,_.xK.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_);_.ar(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.VD(this.hostElement)},
closePopup:function(g){var u=this.createCacheKey(void 0,g);this.popups_[u]&&this.handleClosePopupAction_(void 0,g)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Hv.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Hv.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(g){g.opened&&g.keepBelowPlayer&&this.ensurePopupBelowPlayer(g)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var g in this.popups_){var u=this.popups_[g];if(u.popup.scrollAction==="refit"){var q=u.popup.positionTarget.getBoundingClientRect(),Q=u.popup;q=q.top;var L=u;if(!L.naturalHeight){L.popup.hidden=!1;L.popup.style.position="fixed";L.popup.style.top="0px";L.popup.style.left="0px";var E=L.popup.getBoundingClientRect();L.naturalHeight=E.bottom-E.top;L.popup.refit()}Q.hidden=!(q>=L.naturalHeight+60);u.popupContent.clientHeight===0&&u.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(g){this.popupContainerConfig=g},
handleOpenPopupAction:function(g,u,q){var Q=g.openPopupAction,L=_.Bk().resolve(_.xv(_.Ju))&&Q.popupType==="TOAST";L&&!Q.uniqueId&&(Q.uniqueId=XX());if(!_.w("popup_container_parent_target_killswitch")){var E;u=(E=this.getParentTarget(u))!=null?E:u}var y=this.ensurePopup_(Q,u);return new _.Ez(function(v){y.then(function(J){if(!J)return v();this.maybeCreateNarrowMediaQuery_();var f=this.createCacheKey(J.rendererName,J.openPopupAction.uniqueId);if(Q.showOncePerUniqueId){if(this.shownPopupKeys_.has(f))return v();
this.shownPopupKeys_.add(f)}f=this.popups_[f];var t=!(!f||!f.openPopupAction.beReused);t=!!Q.reusePopup||t;if(J.popup.opened&&!t){L&&!J.openPopupAction.replacePopup||this.handleClosePopupAction_(J.rendererName,J.openPopupAction.uniqueId);t=Q.popupType==="DIALOG"&&!_.w("popup_container_dialog_reopen_killswitch");if(!L&&!t&&f&&f.target==u&&(_.w("popup_container_event_target_check_killswitch")||f.target==q)&&!J.openPopupAction.replacePopup)return v();_.xt(J.popup,function(){this.completeOpenPopupAction_(Q,
u,J);v()}.bind(this))}else J.popup.opened?J.updatePopup(Q):this.completeOpenPopupAction_(Q,u,J),v()}.bind(this))}.bind(this))},
getParentTarget:function(g){if(g&&g instanceof HTMLElement)for(var u=_.N(Object.entries(this.popups_)),q=u.next();!q.done;q=u.next())if(q=_.N(q.value),q.next(),q=q.next().value,this.popupClosesOnClick(q)&&q.popup.contains(g))return q.target},
popupClosesOnClick:function(g){return g.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(g.rendererName.toUpperCase())},
completeOpenPopupAction_:function(g,u,q){q.updatePopup(g);var Q=this.narrowMediaQuery_.queryMatches,L=this.isAriaModal;g=this.expandToFullWidth;q.target=u;var E;u=((E=q.target.polymerController)!=null?E:q.target).popupPositionTarget||q.target;q.JSC$22915_popupConfig.targetContainer&&(u=q.container);q.popup.positionTarget=u;q.popupContent.positionTarget=u;abG(q);q.JSC$22915_popupConfig.forceFocus&&(q.popupContent.style.outline="none");q.popupContent.tabIndex=-1;q.JSC$22915_popupConfig.narrowProperties&&
(q.popup.style.position="static");q.JSC$22915_popupConfig.preventAutonav&&q.popup.setAttribute("prevent-autonav",!0);q.JSC$22915_popupConfig.forceCloseOnOutsideClick&&q.popup.setAttribute("force-close-on-outside-click",!0);Vfe(q,Q,L);E={};E.width=g?"100%":"";Wzs(q,q.JSC$22915_popupConfig.styles,E);q.isRtl()&&Wzs(q,q.JSC$22915_popupConfig.rtlStyles,E);if(!q.openPopupAction.shouldStopParentSignal){var y;g=(y=q.target.polymerController)!=null?y:q.target;(q.popupContent.startForwardingEvents||q.popupContainerConfig.forwardingEnabledPopups.has(q.rendererName))&&
g.parentComponent!==q.popupContent&&q.popupContent!==q.target&&q.target!==document.body&&(q.popupContent.startForwardingEvents?q.popupContent.startForwardingEvents(q.popupContainerConfig.forwardedEvents,q.target):(q.JSC$22915_eventForwarder||(q.JSC$22915_eventForwarder=new _.zx(q.popupContent)),q.JSC$22915_eventForwarder.start(q.popupContainerConfig.forwardedEvents,q.target)))}q=q.popup;q.addEventListener("iron-overlay-opened",_.zr(this,this.onPopupIronOverlayOpened_));q.addEventListener("iron-overlay-closed",
_.zr(this,this.onPopupIronOverlayClosed_));q.addEventListener("iron-overlay-canceled",_.zr(this,this.onPopupIronOverlayCanceled_));q.addEventListener("yt-refit",_.zr(this,this.refitPopup_));q.addEventListener("yt-invalidate-popup-tabbables",_.zr(this,this.handleInvalidatePopupTabbables_));q.open()},
getPopupDurationMs_:function(g){return g.durationHintMs===0?g.durationHintMs:Math.max(4E3,g.durationHintMs||4E3)},
handleClosePopupAction_:function(g,u){var q=_.w("web_popup_cache_key_killswitch")||!!u;if(g||q){var Q=this.createCacheKey(g,u);g=(g=this.popups_[Q])&&g.popup}else g=_.qQ$(_.Go);if(g&&g.close){if(u=_.Bk().resolve(_.xv(_.m5)))g.restoreFocusOnClose=u.isKeyBoardInUse();if(g&&g.positionTarget&&!_.w("ytpopup_close_sibling_popups_killswitch")){u=_.N(Object.entries(this.popups_));for(q=u.next();!q.done;q=u.next()){var L=_.N(q.value);q=L.next().value;L=L.next().value;var E=void 0,y=void 0,v=void 0,J=void 0,
f=void 0,t=void 0;g.positionTarget==((E=L)==null?void 0:(y=E.popupContent)==null?void 0:y.positionTarget)&&L.popup&&(!((v=L.popup)==null?0:(J=v.style)==null?0:J.display)||((f=L.popup)==null?void 0:(t=f.style)==null?void 0:t.display)!=="none")&&(E=void 0,(E=L.popup)==null?0:E.close)&&(L.popup.close(),this.removePopup_(L.popup,q))}g&&this.popups_[Q]&&(g.close(),this.removePopup_(g,Q))}else g.close(),this.removePopup_(g,Q)}},
handleClosePopupCommand_:function(g){g.closePopupCommand&&g.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,g.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(g){var u={},q;for(q in this.popups_)if(u={key$jscomp$1247:u.key$jscomp$1247},u.key$jscomp$1247=q,!g||!g.some(function(E){return function(y){return y==E.key$jscomp$1247}}(u))){var Q=this.popups_[u.key$jscomp$1247],L=Q.popup;
_.Bk().resolve(_.xv(_.Ju))&&Q.openPopupAction.popupType==="TOAST"||(L&&L.close&&L.close(),this.removePopup_(L,u.key$jscomp$1247))}},
handleClosePopupsAction_:function(g){g.forEach(function(u){var q=this.popups_[u];q&&((q=q.popup)&&q.close&&q.close(),this.removePopup_(q,u))}.bind(this))},
handleGetPopupOpenedAction_:function(g,u){return(u=this.createCacheKey(g,u))&&this.popups_[u]?this.popups_[g].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var g=[],u;for(u in this.popups_){var q=this.popups_[u];q.popup.opened&&g.push(q)}return g},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(g,u){_.w("ytpopup_disable_default_html_caching")&&g&&g.removeWhenClosed&&(_.Tr(this.hostElement).removeChild(g),u&&this.popups_[u]&&delete this.popups_[u])},
shouldReusePopup_:function(g){return!(!g||!g.reusePopup)||!(!g||!g.beReused)},
ensurePopup_:function(g,u){this.maybeCreateNarrowMediaQuery_();var q=_.iL(g.popup,"renderer")||_.iL(g.popup,"dialog")||_.iL(g.popup,"model");if(!q)return _.BX();q=_.l7q(q,HkH(this.popupContainerConfig,q));return _.BX(this.getAndMaybeCreatePopup_(g,q,u))},
getAndMaybeCreatePopup_:function(g,u,q){var Q=this.createCacheKey(u,g.uniqueId);if(this.popups_[Q])return this.popups_[Q];g=new Oo({openPopupAction:g,target:q,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(u)});return this.popups_[Q]=g},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(g){return _.w("ytpopup_disable_default_html_caching")?_.w("ytpopup_disable_cache_allowlist")?g&&this.doNotCacheList_.includes(g):g&&g.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",_.zr(this,this.openPopupQueryMatchesChanged_)),_.Tr(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(g){g=g.detail.value;for(var u in this.popups_)Vfe(this.popups_[u],g)},
onPopupIronOverlayClosed_:function(g){var u=g.currentTarget,q=_.LDS(u);q=q.length>0?q[0]:u;if(q.is!=="ytd-reel-watch-while-dialog-renderer"||g.target.is!=="tp-yt-iron-dropdown"){g.detail.popup=u;g.detail.popupRenderer=q;var Q,L={context:{openingElement:((Q=this.popups_[(q==null?void 0:q.is)||""])==null?void 0:Q.target)||void 0}};Object.assign(L,g.detail);var E;_.hJ((E=q.hostElement)!=null?E:q,"yt-popup-closed",L);u.removeEventListener("yt-refit",_.zr(this,this.refitPopup_));u.removeEventListener("yt-invalidate-popup-tabbables",
_.zr(this,this.handleInvalidatePopupTabbables_));u.removeEventListener("iron-overlay-canceled",_.zr(this,this.onPopupIronOverlayCanceled_));u.removeEventListener("iron-overlay-closed",_.zr(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(u)}},
onPopupIronOverlayCanceled_:function(g,u){var q=g.currentTarget,Q=_.LDS(q);Q=Q.length>0?Q[0]:q;if(Q.is!=="ytd-reel-watch-while-dialog-renderer"||g.target.is!=="tp-yt-iron-dropdown"){var L;_.hJ((L=Q.hostElement)!=null?L:Q,"yt-popup-canceled",g.detail);L=u?_.C6(u):null;(!u||["click","tap"].includes(u.type))&&!q.hasAttribute("force-close-on-outside-click")&&q.positionTarget&&L&&L.includes(q.positionTarget)&&g.preventDefault();q.restoreFocusOnClose=_.n8.keyboardEventMatchesKeys(u,"esc")}},
onPopupIronOverlayOpened_:function(g){g=g.currentTarget;var u=_.LDS(g);u=u.length>0?u[0]:g;var q,Q;_.hJ((q=u.hostElement)!=null?q:u,"yt-popup-opened",(Q=u.hostElement)!=null?Q:u);g.keepBelowPlayer&&(this.ensurePopupBelowPlayer(g,!0),this.dynamicallyPositionedElements_.add(g));q=_.Bk().resolve(_.xv(_.m5));Q=!!u.querySelector("#toast");q&&q.isKeyBoardInUse()&&!Q&&(typeof u.focusFirstItem==="function"?u.focusFirstItem():(u=_.U$X(g),u.length&&u[0].focus()));g.removeEventListener("iron-overlay-opened",
_.zr(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(g){g=g.currentTarget;g.refit&&g.refit()},
refitPopups_:function(){for(var g in this.popups_)this.popups_[g].refit()},
handleInvalidatePopupTabbables_:function(g){g=g.currentTarget;g.invalidateTabbables&&g.invalidateTabbables()},
createCacheKey:function(g,u){return _.w("web_popup_cache_key_killswitch")?u?g+"#"+u:g:u?"#"+u:g},
openSheet:function(g,u,q){var Q=g==null?void 0:g.openPopupActionCommand;if(!Q&&(g==null?0:g.viewModel)){if(g.sheetPosition)a:switch(g.sheetPosition){case "SHEET_POSITION_RIGHT":Q="OPEN_POPUP_POSITION_RIGHT";break a;default:Q="OPEN_POPUP_POSITION_UNKNOWN"}else Q=void 0;Q={openPopupAction:{popup:{sheetViewModel:g.viewModel},popupType:"CONTEXTUAL_SHEET",position:Q}}}if(Q){var L;this.expandToFullWidth=(L=g==null?void 0:g.expandToFullWidth)!=null?L:!1;this.handleOpenPopupAction(Q,u,q===void 0?u:q)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var g=this;return _.D(function(u){return u.return(g.handleGetOpenedPopupsAction_().filter(function(q){var Q;return((Q=q.openPopupAction)==null?void 0:Q.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(g,u,q){if(_.w("web_dialog_utils_killswitch")){var Q=g==null?void 0:g.openPopupActionCommand,L=(q==null?0:q.ariaLabel)?{accessibilityData:{accessibilityData:{label:q.ariaLabel}}}:void 0;!Q&&(g==null?0:g.viewModel)&&(Q={openPopupAction:Object.assign({},{popup:{dialogViewModel:g.viewModel},popupType:(q==null?0:q.isModal)?"MODAL":"DIALOG"},L&&L)});Q&&this.handleOpenPopupAction(Q,u)}else{if(L=g==null?void 0:g.viewModel){var E=q=q===void 0?{}:q;q=E.ariaLabel;L={popup:{dialogViewModel:L},
popupType:E.isModal?"MODAL":"DIALOG"};E={accessibilityData:{label:q}};q&&(L.accessibilityData=E);L={openPopupAction:L}}else L=void 0;if(L=(Q=L)!=null?Q:g==null?void 0:g.openPopupActionCommand)this.isAriaModal=_.w("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(L,u)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var g=this;return _.D(function(u){return u.return(g.handleGetOpenedPopupsAction_().filter(function(q){var Q;return((Q=q.openPopupAction)==null?void 0:Q.popupType)==="DIALOG"}).length>0)})}}];var hK0;var YZO;var O9B=_.CT(["about:blank"]),KM=function(){var g=_.X.apply(this,arguments)||this;g.isMuted=!1;g.pageLoadTimeoutId=void 0;g.enableA11yFocusFix=_.w("enable_a11y_focus_fix_for_mac_panel_on_desktop");g.moveFocusToContent=function(){g.iframe.focus()};
return g};
_.A(KM,_.X);_.P=KM.prototype;_.P.dataChanged=function(){var g=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var u=this.data.url,q=_.A6(u);_.w("enable_yt_ata_iframe_authuser")?(q=_.A6(u),_.Px(this.iframe,v2H(q))):_.Px(this.iframe,q);this.pageLoadTimeoutId=_.M_(_.pT(),function(){return void g.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.x0({destination:window,iframe:this.iframe,origin:_.k$M(q.toString()),channelName:"ataiframe",onMessage:_.Zaa(rWz,function(Q){Wwb(Q.data)?(Q=_.uO(Q.data,1,_.Db,_.Xo()),Q.length!==1?_.Io(Error("pm")):(Q=Q[0],Q===3?(g.isMuted=!0,g.logStateChanged({adMuteRequested:!0})):Q===1&&g.close())):_.Io(Error("qm"))}),
onEstablished:function(){g.cancelPageLoadTimeout();g.logStateChanged({pageLoadSucceeded:!0})}})}};
_.P.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.pT().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.P.logStateChanged=function(g){var u;if((u=this.data)==null?0:u.trackingParams)g={adsClientData:{aboutThisAdData:g}},_.gL().stateChanged(this.data.trackingParams,g)};
_.P.close=function(){_.YJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.handlesPopupClosed=function(g,u){var q=this,Q,L;return _.D(function(E){if(E.nextAddress==1)return _.FR("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.YJ(q.hostElement,"on-about-this-ad-popup-closed",[q.isMuted,u]),E.jumpTo(0)):g&&DH9(g)?E.yield(pHC(g),4):(q.isMuted&&_.YJ(q.hostElement,"yt-mute-ad-action",[q.is,q]),E.jumpTo(0));if(Q=E.yieldResult){var y=L=new _.DG(Q),v=q.isMuted;y.getOptions().includes("onAboutThisAdPopupClosed")?_.nWi(y,"onAboutThisAdPopupClosed",{isMuted:v,layoutId:u}):_.HY("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Wx(E)})};
_.P.onPopupClosed=function(g){var u=this,q,Q;return _.D(function(L){q=_.A1(O9B);_.Px(u.iframe,q);u.cancelPageLoadTimeout();if(!u.data)return L.jumpTo(0);u.ytRendererBehavior.markDirty();Q=g.detail.context.openingElement;return L.yield(u.handlesPopupClosed(Q,u.data.layoutId),0)})};
_.P.detached=function(){this.cancelPageLoadTimeout()};
_.P.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
KM.prototype.onPopupClosed=KM.prototype.onPopupClosed;KM.prototype.dataChanged=KM.prototype.dataChanged;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.Y([_.oE("#iframe"),_.K("design:type",HTMLIFrameElement)],KM.prototype,"iframe",void 0);_.Y([_.a(),_.K("design:type",Object)],KM.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KM.prototype,"dataChanged",null);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype",Promise)],KM.prototype,"onPopupClosed",null);_.Y([_.jP({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],KM);
_.T(KM,"yt-about-this-ad-renderer",function(){if(YZO===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;hK0===void 0&&(hK0=document.createElement("template"));var Q=hK0;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);YZO=g}g=YZO;return g},{mode:2});var Kz3;var xET;var BCO=function(g){var u=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=u.message;"stack"in u&&(this.stack=u.stack);this.maxFileSizeMB=g;Object.setPrototypeOf(this,BCO.prototype)};
_.A(BCO,Error);var zKs=function(g,u){var q=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=q.message;"stack"in q&&(this.stack=q.stack);this.minWidth=g;this.minHeight=u;Object.setPrototypeOf(this,zKs.prototype)};
_.A(zKs,Error);var nLe=function(g){this.requirements=g;this.JSC$22943_maxFileSize=g.maxFileSizeMB*1024*1024},khG=function(g,u){if(u.size>g.JSC$22943_maxFileSize)throw new BCO(g.requirements.maxFileSizeMB);
};var SZT=function(g,u){this.canvas=g;this.imageEditorBuilder=u};
SZT.prototype.addEventListeners=function(g){var u=function(L){oL3(g,L)};
this.JSC$22949_mouseDownEvent=u;var q=function(L){UET(g,L)};
this.JSC$22949_mouseMoveEvent=q;var Q=function(){gVV(g)};
this.JSC$22949_mouseUpEvent=Q;this.canvas.addEventListener("mousedown",u);this.canvas.addEventListener("mousemove",q);document.addEventListener("mouseup",Q)};
SZT.prototype.removeEventListeners=function(){this.JSC$22949_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22949_mouseDownEvent);this.JSC$22949_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22949_mouseMoveEvent);this.JSC$22949_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22949_mouseUpEvent)};
var uV0=function(g,u){g.removeEventListeners();return new Promise(function(q){var Q=new Image;Q.crossOrigin="anonymous";Q.onload=function(){var L=g.imageEditorBuilder(g.canvas,Q);g.addEventListeners(L);q(L)};
Q.src=u})},xU=function(g,u,q,Q,L,E,y,v){this.canvas=g;
this.image=u;this.requiredRatio=q;this.minImageCropDimension=Q;this.minOutputImageResolution=L;this.component=E;this.styleFocusedCorner=v===void 0?!0:v;this.action=2;this.focusedCorner=this.resizeCorner=0;g=this.canvas.getContext("2d");if(!g)throw Error("rm");this.ctx=g;this.canvasMargin=y!=null?y:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;y=this.image;g=this.canvasInnerWidth/y.width;y.height*g>912&&(g=y.width/y.height*912/y.width);y=g;this.scaledImageWidth=this.canvas.width%2?
jAz(this.image.width*y):JyE(this.image.width*y);this.scaledImageHeight=Math.round(this.image.height*y);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$22952_overlayMarginBottom=this.JSC$22952_overlayMarginTop=this.canvasMargin;this.JSC$22952_overlayMarginRight=this.JSC$22952_overlayMarginLeft=this.horizontalMargin;this.JSC$22952_overlayWidth=this.scaledImageWidth;this.JSC$22952_overlayHeight=this.scaledImageHeight;
g=this.image.width/this.image.height;g>this.requiredRatio?(this.JSC$22952_overlayWidth=this.canvas.width%2?jAz(this.scaledImageHeight*this.requiredRatio):JyE(this.scaledImageHeight*this.requiredRatio),this.JSC$22952_overlayMarginRight=this.JSC$22952_overlayMarginLeft=(this.canvas.width-this.JSC$22952_overlayWidth)/2):g<this.requiredRatio&&(this.JSC$22952_overlayHeight=this.canvas.height%2?jAz(this.scaledImageWidth/this.requiredRatio):JyE(this.scaledImageWidth/this.requiredRatio),this.JSC$22952_overlayMarginBottom=
this.JSC$22952_overlayMarginTop=(this.canvas.height-this.JSC$22952_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*y,this.scaledImageWidth);qTG(this)};
xU.prototype.getContext=function(){return this.ctx};
var oL3=function(g,u){u={x:Math.round(u.pageX-g.canvas.getBoundingClientRect().left),y:Math.round(u.pageY-g.canvas.getBoundingClientRect().top)};g.dragStart=u;Q3O(g,u)!==0?(g.action=1,LGO(g,u),g.resizeCorner=Q3O(g,u)):u.x>g.JSC$22952_overlayMarginLeft&&u.x<g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth&&u.y>g.JSC$22952_overlayMarginTop&&u.y<g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight&&(g.action=0)},EVs=function(g,u){switch(u){case 1:return{x:g.JSC$22952_overlayMarginLeft,
y:g.JSC$22952_overlayMarginTop};case 2:return{x:g.JSC$22952_overlayMarginLeft,y:g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight};case 3:return{x:g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth,y:g.JSC$22952_overlayMarginTop};case 4:return{x:g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth,y:g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight};default:throw Error("sm");}},N0G=function(g,u){if(g.focusedCorner!==0){g.dragStart=EVs(g,g.focusedCorner);
g.action=1;g.resizeCorner=g.focusedCorner;var q=g.dragStart.x,Q=g.dragStart.y;switch(u){case 0:g.focusedCorner===1||g.focusedCorner===4?(q-=10,Q-=10):(q-=10,Q+=10);break;case 1:g.focusedCorner===1||g.focusedCorner===4?(q+=10,Q+=10):(q+=10,Q-=10);break;case 2:q=g.focusedCorner===1||g.focusedCorner===4?q-10:q+10;Q-=10;break;case 3:q=g.focusedCorner===1||g.focusedCorner===4?q+10:q-10;Q+=10;break;default:throw Error("tm");}POv(g,{x:q,y:Q});qTG(g);g.action=2;g.dragStart=void 0}},UET=function(g,u){u={x:Math.round(u.pageX-
g.canvas.getBoundingClientRect().left),
y:Math.round(u.pageY-g.canvas.getBoundingClientRect().top)};LGO(g,u);switch(g.action){case 1:POv(g,u);break;case 0:g.dragStart&&(g.JSC$22952_overlayMarginLeft=Math.max(g.horizontalMargin,Math.min(g.JSC$22952_overlayMarginLeft-(g.dragStart.x-u.x),g.horizontalMargin+g.scaledImageWidth-g.JSC$22952_overlayWidth)),g.JSC$22952_overlayMarginRight=g.canvas.width-g.JSC$22952_overlayMarginLeft-g.JSC$22952_overlayWidth,g.JSC$22952_overlayMarginTop=Math.max(g.canvasMargin,Math.min(g.JSC$22952_overlayMarginTop-
(g.dragStart.y-u.y),g.scaledImageHeight-g.JSC$22952_overlayHeight+g.canvasMargin)),g.JSC$22952_overlayMarginBottom=g.canvas.height-(g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight));break;default:return}qTG(g);g.dragStart=u},gVV=function(g){g.action=2;
g.dragStart=void 0;document.body.style.cursor="auto"},LGO=function(g,u){switch(Q3O(g,u)){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:g.action!==1&&(document.body.style.cursor="auto")}},Q3O=function(g,u){var q=g.JSC$22952_overlayMarginLeft-5,Q=g.JSC$22952_overlayMarginTop-5,L=g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth-5;
g=g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight-5;return s3v(u,{x:q,y:Q})?1:s3v(u,{x:L,y:Q})?3:s3v(u,{x:q,y:g})?2:s3v(u,{x:L,y:g})?4:0},s3v=function(g,u){return g.x>=u.x&&g.x<=u.x+10&&g.y>=u.y&&g.y<=u.y+10},POv=function(g,u){if(g.dragStart)switch(g.resizeCorner){case 2:Math.abs((g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth-u.x)/(u.y-g.JSC$22952_overlayMarginTop))>=g.requiredRatio?yee(g,u.x):vVV(g,u.y);
break;case 1:Math.abs((g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth-u.x)/(g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight-u.y))>=g.requiredRatio?DkT(g,u.x):vVV(g,u.y);break;case 4:Math.abs((u.x-g.JSC$22952_overlayMarginLeft)/(u.y-g.JSC$22952_overlayMarginTop))>=g.requiredRatio?yee(g,u.x):pTV(g,u.y);break;case 3:Math.abs((u.x-g.JSC$22952_overlayMarginLeft)/(g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight-u.y))>=g.requiredRatio?DkT(g,u.x):pTV(g,u.y);break;default:throw Error("um");
}},yee=function(g,u){var q=g.JSC$22952_overlayMarginTop;
g.JSC$22952_overlayMarginBottom=JeO(g,u);g.JSC$22952_overlayHeight=g.canvas.height-g.JSC$22952_overlayMarginBottom-q;g.JSC$22952_overlayWidth=Math.round(g.JSC$22952_overlayHeight*g.requiredRatio);j30(g)},DkT=function(g,u){var q=g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight;
g.JSC$22952_overlayMarginTop=JeO(g,u);g.JSC$22952_overlayHeight=q-g.JSC$22952_overlayMarginTop;g.JSC$22952_overlayWidth=Math.round(g.JSC$22952_overlayHeight*g.requiredRatio);j30(g)},j30=function(g){switch(g.resizeCorner){case 2:case 1:g.JSC$22952_overlayMarginLeft=g.canvas.width-g.JSC$22952_overlayMarginRight-g.JSC$22952_overlayWidth;
break;case 4:case 3:g.JSC$22952_overlayMarginRight=g.canvas.width-g.JSC$22952_overlayMarginLeft-g.JSC$22952_overlayWidth;break;default:throw Error("um");}},vVV=function(g,u){var q=g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth;
g.JSC$22952_overlayMarginLeft=fOV(g,u);g.JSC$22952_overlayWidth=q-g.JSC$22952_overlayMarginLeft;g.JSC$22952_overlayHeight=Math.round(g.JSC$22952_overlayWidth/g.requiredRatio);MOk(g)},pTV=function(g,u){var q=g.JSC$22952_overlayMarginLeft;
g.JSC$22952_overlayMarginRight=fOV(g,u);g.JSC$22952_overlayWidth=g.canvas.width-g.JSC$22952_overlayMarginRight-q;g.JSC$22952_overlayHeight=Math.round(g.JSC$22952_overlayWidth/g.requiredRatio);MOk(g)},MOk=function(g){switch(g.resizeCorner){case 2:case 4:g.JSC$22952_overlayMarginBottom=g.canvas.height-g.JSC$22952_overlayMarginTop-g.JSC$22952_overlayHeight;
break;case 1:case 3:g.JSC$22952_overlayMarginTop=g.canvas.height-g.JSC$22952_overlayMarginBottom-g.JSC$22952_overlayHeight;break;default:throw Error("um");}},JeO=function(g,u){switch(g.resizeCorner){case 2:u=g.canvas.height-(g.JSC$22952_overlayMarginTop+tOT(g,u));
break;case 4:u=g.canvas.height-(g.JSC$22952_overlayMarginTop+ee3(g,u));break;case 1:u=g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight-tOT(g,u);break;case 3:u=g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight-ee3(g,u);break;default:throw Error("um");}return Math.max(u,g.canvasMargin)},tOT=function(g,u){u=g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth-Math.max(u,g.horizontalMargin);
u=u<0?g.JSC$22952_overlayWidth:Math.max(u,g.minOverlayWidth);return Math.round(u/g.requiredRatio)},ee3=function(g,u){u=g.canvas.width-Math.max(g.canvas.width-u,g.horizontalMargin)-g.JSC$22952_overlayMarginLeft;
u=u<0?g.JSC$22952_overlayWidth:Math.max(u,g.minOverlayWidth);return Math.round(u/g.requiredRatio)},fOV=function(g,u){switch(g.resizeCorner){case 2:u=g.canvas.width-g.JSC$22952_overlayMarginRight-GsO(g,u);
break;case 4:u=g.canvas.width-g.JSC$22952_overlayMarginLeft-GsO(g,u);break;case 1:u=g.canvas.width-g.JSC$22952_overlayMarginRight-$ks(g,u);break;case 3:u=g.canvas.width-g.JSC$22952_overlayMarginLeft-$ks(g,u);break;default:throw Error("um");}return Math.max(u,g.horizontalMargin)},GsO=function(g,u){u=g.canvas.height-Math.max(g.canvas.height-u,g.canvasMargin)-g.JSC$22952_overlayMarginTop;
return u<0?g.JSC$22952_overlayWidth:Math.max(Math.round(u*g.requiredRatio),g.minOverlayWidth)},$ks=function(g,u){u=g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight-Math.max(u,g.canvasMargin);
return u<0?g.JSC$22952_overlayWidth:Math.max(Math.round(u*g.requiredRatio),g.minOverlayWidth)},qTG=function(g){g.ctx.clearRect(0,0,g.canvas.width,g.canvas.height);
g.ctx.drawImage(g.image,0,0,g.image.width,g.image.height,g.horizontalMargin,g.canvasMargin,g.canvas.width-2*g.horizontalMargin,g.scaledImageHeight);g.ctx.fillStyle="rgba(0, 0, 0, 0.7)";g.ctx.fillRect(g.horizontalMargin,g.JSC$22952_overlayMarginTop,g.JSC$22952_overlayMarginLeft-g.horizontalMargin,g.JSC$22952_overlayHeight);g.ctx.fillRect(g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth,g.JSC$22952_overlayMarginTop,g.JSC$22952_overlayMarginRight-g.horizontalMargin,g.JSC$22952_overlayHeight);g.ctx.fillRect(g.horizontalMargin,
g.canvasMargin,g.scaledImageWidth,g.JSC$22952_overlayMarginTop-g.canvasMargin);g.ctx.fillRect(g.horizontalMargin,g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight,g.scaledImageWidth,g.JSC$22952_overlayMarginBottom-g.canvasMargin);g.drawOverlay();g.component&&_.hJ(g.component,"image-updated")};
xU.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22952_overlayMarginLeft,this.JSC$22952_overlayMarginTop,this.JSC$22952_overlayWidth,this.JSC$22952_overlayHeight);ReV(this)};
var ReV=function(g){var u=g.JSC$22952_overlayMarginLeft-5,q=g.JSC$22952_overlayMarginTop-5,Q=g.JSC$22952_overlayMarginLeft+g.JSC$22952_overlayWidth-5,L=g.JSC$22952_overlayMarginTop+g.JSC$22952_overlayHeight-5;g.ctx.fillStyle="#FFF";g.ctx.fillRect(u,q,10,10);g.ctx.strokeRect(u,q,10,10);g.ctx.fillRect(Q,q,10,10);g.ctx.strokeRect(Q,q,10,10);g.ctx.fillRect(u,L,10,10);g.ctx.strokeRect(u,L,10,10);g.ctx.fillRect(Q,L,10,10);g.ctx.strokeRect(Q,L,10,10);if(g.focusedCorner!==0&&g.styleFocusedCorner){g.ctx.lineWidth=
4;g.ctx.strokeStyle="#3EA6FF";switch(g.focusedCorner){case 1:--u;--q;break;case 2:--u;q=L-1;break;case 3:u=Q-1;--q;break;case 4:u=Q-1;q=L-1;break;default:return}g.ctx.strokeRect(u,q,12,12)}};
xU.prototype.crop=function(g,u){u=u===void 0?!0:u;var q=this.image.width/this.scaledImageWidth,Q=document.createElement("canvas"),L=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],E=this.JSC$22952_overlayWidth*q,y=this.JSC$22952_overlayHeight*q;Q.width=Math.max(E,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);Q.height=Math.max(y,L);g&&(Q.width=Math.min(Q.width,Q.height),Q.height=Math.min(Q.width,Q.height));
g=Q.getContext("2d");if(!g)throw Error("im");L=(this.JSC$22952_overlayMarginLeft-this.horizontalMargin)*q;q*=this.JSC$22952_overlayMarginTop-this.canvasMargin;u||(g.fillStyle="white",g.fillRect(0,0,Q.width,Q.height));g.drawImage(this.image,L,q,E,y,0,0,Q.width,Q.height);return Q};var wTO=function(g,u,q,Q,L){xU.call(this,g,u,q,Q,void 0,L,8,!1)};
_.A(wTO,xU);wTO.prototype.drawOverlay=function(){var g=this.getContext(),u=this.JSC$22952_overlayWidth,q=this.JSC$22952_overlayHeight,Q=this.JSC$22952_overlayMarginTop,L=this.JSC$22952_overlayMarginLeft;g.lineWidth=2;g.strokeStyle="#3EA6FF";g.beginPath();g.arc(L+u/2,Q+q/2,u/2,0,2*Math.PI);g.stroke();g.strokeRect(L,Q,u,q);ReV(this)};
var ces={maxFileSizeMB:15,minWidth:98,minHeight:98},HvO=["image/png","image/jpeg","image/gif"],B7=function(){var g=_.X.apply(this,arguments)||this;g.fileSelectorFocusListener=null;g.errorMessage=null;g.isLoading=!0;g.hideContainer=!0;g.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return g};
_.A(B7,_.X);_.P=B7.prototype;_.P.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.P.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.P.computePlaylistThumbnail=function(g){return g==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.P.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.YJ(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.P.setErrorState=function(g){this.resetErrorState();g&&(this.errorMessage=g)};
_.P.showPopup=function(){var g=this;this.hideContainer=!1;_.M_(_.Hv,function(){_.hJ(g.hostElement,"yt-refit")});
this.isLoading=!1};
_.P.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.P.closePopup=function(){this.resetFileSelector();_.YJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onCancelTap=function(){this.isPlaylistThumbnail||_.YJ(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.P.openFileSelector=function(){var g=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.M_(_.Hv,function(){setTimeout(function(){if(!g.fileSelector.files||g.fileSelector.files.length===0)g.onCancelTap();g.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(u){u instanceof Error?_.Zf(u):_.lD(new _.Ji(JSON.stringify(u)))}};
_.P.handleFileSelection=function(){var g=this,u,q,Q,L,E,y;return _.D(function(v){switch(v.nextAddress){case 1:_.b8(v,2);if(!g.fileSelector.files||!g.imageEditorCanvas)return g.onCancelTap(),v.return();u=g.fileSelector.files[0];khG(g.imageChecker,u);_.b8(v,4);return v.yield(d$z(u),6);case 6:g.mimeType=v.yieldResult;_.Xx(v,5,2);break;case 4:_.rt(v,2),_.YJ(g.hostElement,"yt-image-selection-error-action",[(q=g.data)==null?void 0:q.genericImageLoadErrorMessage]),g.onCancelTap();case 5:Q=new FileReader;
Q.addEventListener("load",function(){var J,f;return _.D(function(t){if(t.nextAddress==1){if(!Q.result)return _.Io(Error("km")),t.return();J=Q.result;f=new Image;f.src=J;f.onload=function(){try{var e=g.imageChecker;if(f.width<e.requirements.minWidth||f.height<e.requirements.minHeight)throw new zKs(e.requirements.minWidth,e.requirements.minHeight);}catch(R){if(R instanceof zKs){var G;_.YJ(g.hostElement,"yt-image-selection-error-action",[(G=g.data)==null?void 0:G.imageDimensionErrorMessage]);g.logImageDimensionErrorVe()}else R instanceof
Error?_.Zf(R):(e=new _.Ji(JSON.stringify(R)),_.Zf(e));g.onCancelTap()}g.showPopup()};
f.onerror=function(){var e;_.YJ(g.hostElement,"yt-image-selection-error-action",[(e=g.data)==null?void 0:e.genericImageLoadErrorMessage]);g.onCancelTap()};
return t.yield(uV0(g.imageEditorCanvas,J),2)}g.imageEditor=t.yieldResult;g.updatePositionOfAllCorners();g.addEventListeners(g.imageEditor);_.Wx(t)})},!1);
Q.readAsDataURL(u);_.Xx(v,0);break;case 2:L=_.rt(v),L instanceof BCO?_.YJ(g.hostElement,"yt-image-selection-error-action",[(E=g.data)==null?void 0:E.imageSizeErrorMessage]):(L instanceof Error?_.Zf(L):_.lD(new _.Ji(JSON.stringify(L))),_.YJ(g.hostElement,"yt-image-selection-error-action",[(y=g.data)==null?void 0:y.genericImageLoadErrorMessage])),g.onCancelTap(),_.Wx(v)}})};
_.P.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var g=_.Ui(_.gL(),{veType:232707,visualElement:_.Yq(232707)});g&&(g={visualElement:g},_.o5().reportShown(g))}};
_.P.handleImageSelectionErrorAction=function(g){this.isPlaylistThumbnail&&_.Avq(this.hostElement,g)};
_.P.convertToImageFormatBundle=function(g){var u=this,q,Q,L;return _.D(function(E){switch(E.nextAddress){case 1:return q=g.toDataURL(u.outputMimeType,1),E.yield(FEn(q),2);case 2:Q=E.yieldResult;_.b8(E,3);khG(u.imageChecker,Q);_.Xx(E,4);break;case 3:L=_.rt(E);if(!(L instanceof BCO))throw L;_.Io(new _.Ji("Output size is bigger than input size for image",u.mimeType,u.outputMimeType,Q.size));q=g.toDataURL("image/jpeg",.95);return E.yield(FEn(q),6);case 6:Q=E.yieldResult;case 4:return E.return({dataUrl:q,
imageFile:Q})}})};
_.P.handleUploadImageToScottyCommand=function(g){var u=this,q,Q,L,E,y,v,J,f,t,e;return _.D(function(G){switch(G.nextAddress){case 1:if(!u.imageEditor||!_.c(g,tmK))return G.return();q=_.c(g,tmK).scottyUploadUrl;if(!q){var R=new _.Ji("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Zf(R);return G.return()}_.b8(G,2);u.setLoadingState();Q=u.imageEditor.crop(!1,!1);return G.yield(u.convertToImageFormatBundle(Q),4);case 4:return L=G.yieldResult,G.yield(C$Z(L.imageFile,q),5);
case 5:E=G.yieldResult;((y=u.data)==null?0:y.onUploadEndpoint)?(v=u.buildUploadServiceEndpoint(E),u.ytComponentBehavior.resolveCommand(v),J=_.c(v,_.fq),((f=J)==null?0:f.params)?u.closePopup():u.resetFileSelector()):(_.YJ(u.hostElement,"yt-image-updated-action",[L.dataUrl,E]),u.closePopup());_.Xx(G,0);break;case 2:t=_.rt(G),u.setErrorState((e=u.data)==null?void 0:e.uploadErrorMessage),t instanceof Error?_.Zf(t):(R=new _.Ji(JSON.stringify(t)),_.Zf(R)),_.Wx(G)}})};
_.P.buildUploadServiceEndpoint=function(g){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",g),this.data.onUploadEndpoint):null};
_.P.dataChanged=function(){var g=this,u;return _.D(function(q){if(q.nextAddress==1){if(!g.data||!g.canvasElement)return q.return();g.data.imageRatio&&g.data.minImageCropWidth||_.lD(new _.Ji("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));u=function(Q,L){return g.data.imageType==="IMAGE_TYPE_AVATAR"?new wTO(Q,L,g.data.imageRatio,[g.data.minImageCropWidth,g.data.minImageCropWidth/g.data.imageRatio],g.hostElement):new xU(Q,L,g.data.imageRatio,[g.data.minImageCropWidth,
g.data.minImageCropWidth/g.data.imageRatio],void 0,g.hostElement,8,!1)};
g.imageEditorCanvas=new SZT(g.canvasElement,u);return g.data.url?q.yield(uV0(g.imageEditorCanvas,g.data.url),3):(g.hideContainer=!0,g.openFileSelector(),q.jumpTo(0))}g.imageEditor=q.yieldResult;g.showPopup();g.addEventListeners(g.imageEditor);_.Wx(q)})};
_.P.addEventListeners=function(g){this.removeEventListeners();var u=function(L){oL3(g,L)};
this.JSC$22960_mouseDownEvent=u;var q=function(L){UET(g,L)};
this.JSC$22960_mouseMoveEvent=q;var Q=function(){gVV(g)};
this.JSC$22960_mouseUpEvent=Q;this.topLeftCorner.addEventListener("mousedown",u);this.topLeftCorner.addEventListener("mousemove",q);this.topLeftCorner.addEventListener("mouseup",Q);this.topRightCorner.addEventListener("mousedown",u);this.topRightCorner.addEventListener("mousemove",q);this.topRightCorner.addEventListener("mouseup",Q);this.bottomLeftCorner.addEventListener("mousedown",u);this.bottomLeftCorner.addEventListener("mousemove",q);this.bottomLeftCorner.addEventListener("mouseup",Q);this.bottomRightCorner.addEventListener("mousedown",
u);this.bottomRightCorner.addEventListener("mousemove",q);this.bottomRightCorner.addEventListener("mouseup",Q)};
_.P.removeEventListeners=function(){this.JSC$22960_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22960_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22960_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22960_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22960_mouseDownEvent));this.JSC$22960_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22960_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22960_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22960_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22960_mouseMoveEvent));this.JSC$22960_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22960_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22960_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22960_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22960_mouseUpEvent))};
_.P.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var g=document.activeElement;g&&g.shadowRoot&&g.shadowRoot.activeElement;)g=g.shadowRoot.activeElement;switch(g){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};
_.P.updatePositionOfCorner=function(g,u){var q=g.y-u.offsetHeight/2+4;u.style.left=g.x-u.offsetWidth/2+16+"px";u.style.top=q+"px"};
_.P.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var g=_.N([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),u=g.next();!u.done;u=g.next()){u=u.value;var q=EVs(this.imageEditor,u.corner);this.updatePositionOfCorner(q,u.div)}};
_.P.onLeft=function(g){this.imageEditor&&this.setFocusInImageEditor()&&(N0G(this.imageEditor,0),this.updatePositionOfAllCorners(),g.preventDefault())};
_.P.onRight=function(g){this.imageEditor&&this.setFocusInImageEditor()&&(N0G(this.imageEditor,1),this.updatePositionOfAllCorners(),g.preventDefault())};
_.P.onUp=function(g){this.imageEditor&&this.setFocusInImageEditor()&&(N0G(this.imageEditor,2),this.updatePositionOfAllCorners(),g.preventDefault())};
_.P.onDown=function(g){this.imageEditor&&this.setFocusInImageEditor()&&(N0G(this.imageEditor,3),this.updatePositionOfAllCorners(),g.preventDefault())};
_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.z3.Object.defineProperties(B7.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&HvO.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var g,u,q;((u=this.data)==null?0:u.imageRatio)&&((q=this.data)==null?0:q.minImageCropWidth)?g={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:g=ces;return new nLe(g)}}});
B7.prototype.updatePositionOfAllCorners=B7.prototype.updatePositionOfAllCorners;B7.prototype.dataChanged=B7.prototype.dataChanged;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],B7.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],B7.prototype,"ytComponentBehavior",void 0);_.Y([_.I(_.n8),_.K("design:type",Object)],B7.prototype,"ironA11yKeysBehavior",void 0);
_.Y([_.oE("#canvas"),_.K("design:type",HTMLCanvasElement)],B7.prototype,"canvasElement",void 0);_.Y([_.oE("#file-selector"),_.K("design:type",HTMLInputElement)],B7.prototype,"fileSelector",void 0);_.Y([_.oE("#top-left-corner"),_.K("design:type",HTMLDivElement)],B7.prototype,"topLeftCorner",void 0);_.Y([_.oE("#top-right-corner"),_.K("design:type",HTMLDivElement)],B7.prototype,"topRightCorner",void 0);
_.Y([_.oE("#bottom-left-corner"),_.K("design:type",HTMLDivElement)],B7.prototype,"bottomLeftCorner",void 0);_.Y([_.oE("#bottom-right-corner"),_.K("design:type",HTMLDivElement)],B7.prototype,"bottomRightCorner",void 0);_.Y([_.a(),_.K("design:type",Object)],B7.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],B7.prototype,"errorMessage",void 0);_.Y([_.a(),_.K("design:type",Object)],B7.prototype,"isLoading",void 0);_.Y([_.a(),_.K("design:type",Object)],B7.prototype,"hideContainer",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.K("design:type",Boolean)],B7.prototype,"isPlaylistThumbnail",void 0);_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],B7.prototype,"dataChanged",null);_.Y([_.n6("image-updated"),_.n6("yt-refit"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],B7.prototype,"updatePositionOfAllCorners",null);
_.Y([_.jP({is:"yt-image-editor-renderer",disableElementRegistration:!0})],B7);
_.T(B7,"yt-image-editor-renderer",function(){if(xET===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Kz3===void 0&&(Kz3=document.createElement("template"));var Q=Kz3;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);xET=g}g=xET;return g},{mode:2});var Aev;var ZvV;var zU=function(){return _.X.apply(this,arguments)||this};
_.A(zU,_.X);zU.prototype.updateMinutesFromBinding=function(g){this.handleMinutesChanged&&this.handleMinutesChanged(g)};
zU.prototype.updateSecondsFromBinding=function(g){this.handleSecondsChanged&&this.handleSecondsChanged(g)};
zU.prototype.updateDescriptionFromBinding=function(g){this.handleDescriptionChanged&&this.handleDescriptionChanged(g)};
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],zU.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],zU.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",String)],zU.prototype,"minutes",void 0);_.Y([_.a(),_.K("design:type",String)],zU.prototype,"seconds",void 0);_.Y([_.a(),_.K("design:type",String)],zU.prototype,"description",void 0);_.Y([_.a(),_.K("design:type",Function)],zU.prototype,"handleMinutesChanged",void 0);
_.Y([_.a(),_.K("design:type",Function)],zU.prototype,"handleSecondsChanged",void 0);_.Y([_.a(),_.K("design:type",Function)],zU.prototype,"handleDescriptionChanged",void 0);_.Y([_.a(),_.K("design:type",Number)],zU.prototype,"characterLimit",void 0);_.Y([_.a(),_.K("design:type",Number)],zU.prototype,"textNumRows",void 0);_.Y([_.jP({is:"yt-report-details-form-content",disableElementRegistration:!0})],zU);
_.T(zU,"yt-report-details-form-content",function(){if(ZvV===void 0){var g=document.createElement("template");_.Z(g,'\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>');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Aev===void 0&&(Aev=document.createElement("template"));var Q=Aev;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ZvV=g}g=ZvV;return g},{mode:2});var lOe;var IOT;var nM=function(){var g=_.X.apply(this,arguments)||this;g.updateMinutesFromBinding=function(u){g.minutes=u.detail.value};
g.updateSecondsFromBinding=function(u){g.seconds=u.detail.value};
g.updateDescriptionFromBinding=function(u){g.description=u.detail.value};
return g};
_.A(nM,_.X);_.P=nM.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.P.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"}}}};
_.P.ready=function(){_.Tr(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.P.onSubmitYtAction=function(g){var u=g.detail;u.actionName==="yt-service-request"&&(u=u.args[1],u.flagEndpoint&&(g.stopPropagation(),this.refireAction(u)))};
_.P.refireAction=function(g){var u={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(u.vss_id=this.vssId);_.KV(this.hostElement,[g,u]);this.submitDisabled=!0};
_.P.dataChanged=function(){var g=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var u=_.F0();u&&u.getPlayerPromise().then(function(q){var Q=q.getOption("cc","track")||q.getOption("captions","track");Q&&(g.vssId=Q.vss_id);q=q.getCurrentTime();g.minutes=Math.floor(q/60).toString();g.seconds=(Math.floor(q)%60).toString()})};
_.P.updateSubmitButtonState=function(){var g;((g=this.data)==null?0:g.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==="")};
_.P.onYtServiceRequestCompleted=function(){_.YJ(this.hostElement,"yt-close-popup-action")};
_.P.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.z3.Object.defineProperties(nM.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.textNumRows)||4}}});
nM.prototype.onYtServiceRequestError=nM.prototype.onYtServiceRequestError;nM.prototype.onYtServiceRequestCompleted=nM.prototype.onYtServiceRequestCompleted;nM.prototype.updateSubmitButtonState=nM.prototype.updateSubmitButtonState;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);
_.Y([_.a({observer:"dataChanged"}),_.K("design:type",Object)],nM.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Boolean)],nM.prototype,"submitDisabled",void 0);_.Y([_.a(),_.K("design:type",String)],nM.prototype,"minutes",void 0);_.Y([_.a(),_.K("design:type",String)],nM.prototype,"seconds",void 0);_.Y([_.a(),_.K("design:type",String)],nM.prototype,"description",void 0);_.Y([_.a(),_.K("design:type",String)],nM.prototype,"vssId",void 0);
_.Y([_.a({value:_.FR("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.K("design:type",Boolean)],nM.prototype,"isMusic",void 0);_.Y([_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],nM.prototype,"characterLimit",null);_.Y([_.C("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],nM.prototype,"textNumRows",null);
_.Y([_.qm("minutes","seconds","description","submitDisabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nM.prototype,"updateSubmitButtonState",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nM.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nM.prototype,"onYtServiceRequestError",null);_.Y([_.jP({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],nM);
_.T(nM,"yt-report-details-form-renderer",function(){if(IOT===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;lOe===void 0&&(lOe=document.createElement("template"));var Q=lOe;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);IOT=g}g=IOT;return g});var ivO;var COB;var bvB;var dkv;var kU=function(){return _.X.apply(this,arguments)||this};
_.A(kU,_.X);
kU.prototype.onCheckedChanged_=function(){if(this.data){var g=_.Tr(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.YJ(this.hostElement,"yt-additional-detail-checkbox-update",[g]):this.data.identifier==="yt-hide-user-checkbox"?_.YJ(this.hostElement,"yt-hide-user-checkbox-update",[g]):g&&this.data.enableCommand?_.YJ(this.hostElement,"yt-modify-report-form-command",[_.c(this.data.enableCommand,WFz)]):!g&&this.data.disableCommand&&_.YJ(this.hostElement,
"yt-modify-report-form-command",[_.c(this.data.enableCommand,WFz)])}};
kU.prototype.onLabelTap_=function(g){g.target.tagName!="A"&&(_.Tr(this.hostElement).querySelector("#checkbox").checked=!_.Tr(this.hostElement).querySelector("#checkbox").checked)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],kU.prototype,"data",void 0);_.Y([_.jP({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],kU);
_.T(kU,"yt-boolean-form-field-v2-renderer",function(){if(dkv===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;bvB===void 0&&(bvB=document.createElement("template"));var Q=bvB;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);dkv=g}g=dkv;return g});var SN=function(){var g=_.X.apply(this,arguments)||this;g.canShowAdditionalDetailCheckbox=!1;g.canShowCheckbox=!1;g.keepDropdownFocusedAfterSelection=!0;return g};
_.A(SN,_.X);SN.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}}}}};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],SN.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],SN.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Y([_.a(),_.K("design:type",Object)],SN.prototype,"canShowCheckbox",void 0);_.Y([_.a(),_.K("design:type",Object)],SN.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.Y([_.jP({is:"yt-report-form-modal-content",disableElementRegistration:!0})],SN);
_.T(SN,"yt-report-form-modal-content",function(){if(COB===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;ivO===void 0&&(ivO=document.createElement("template"));var Q=ivO;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);COB=g}g=COB;return g},{mode:2});var FGO;var mkV;var ot=function(){var g=_.X.apply(this,arguments)||this;g.submitting=!1;g.submitButtonDisabled=!0;g.command=null;g.canShowCheckbox=!1;g.canShowAdditionalDetailCheckbox=!1;g.canShowNextButton=!1;g.additionalDetailCheckboxChecked=!1;g.refitJob=0;g.keepDropdownFocusedAfterSelection=!0;g.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 g};
_.A(ot,_.X);_.P=ot.prototype;_.P.created=function(){this.refitJob=0};
_.P.attached=function(){this.JSC$22983_scroller&&(this.JSC$22983_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22983_scroller.attached&&typeof this.JSC$22983_scroller.attached==="function"&&this.JSC$22983_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(g){g&&(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,g.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),g.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.P.onYtPopupOpened=function(){var g=_.F0();g&&g.getPlayerPromise().then(function(u){u.pauseVideo()})};
_.P.onYtNavigate=function(g){_.c(g.detail.endpoint,_.$cZ)&&(g.stopPropagation(),this.hideReportForm=!0)};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.P.onYtServiceRequestCompleted=function(g,u){var q=u.actions;if(q){if(q.length===1&&_.c(q[0],_.zg)){var Q;q=((Q=_.c(q[0],_.zg))==null?void 0:Q.commands)||[]}Q=0;for(var L=q.length;Q<L;Q++)_.c(q[Q],_.q4)&&(g.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(q[Q]))}if(u.data&&(g=this.get("feedbackResponses",u.data)))for(u=0;u<g.length;u++)if(g[u].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.P._onDescendantIronResize=function(g){g.stopPropagation();return!1};
_.P.handleReportFormEndpointUpdateAction=function(g){if(g.submitEndpoint){var u=this.command=g.submitEndpoint;u=_.c(u,_.Gon);if(u==null?0:u.additionalDetailCheckboxChecked)u.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else g.submitNavigationEndpoint?(this.command=g.submitNavigationEndpoint,this.toggleSubmitButton(!1)):g.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:g.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;g.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",g));this.refit()};
_.P.handleConfirmDialogCloseAction=function(g){g.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.P.submitButtonDisabledChanged=function(){var g=this.hostElement.parentElement;g&&g.invalidateTabbables&&g.invalidateTabbables()};
_.P.handleModifyReportFormCommand=function(g){g=this.get("action",g);g==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:g==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:g==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:g==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:g==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:g==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.P.updateDialogStyling=function(){var g,u,q,Q,L,E=((L=(g=this.data)==null?void 0:(u=g.optionsSupportedRenderers)==null?void 0:(q=u.optionsRenderer)==null?void 0:(Q=q.items)==null?void 0:Q.length)!=null?L:0)<=2?0:240;_.x_(this.hostElement,{"--yt-report-form-modal-renderer-min-width":E+"px"})};
_.P.toggleSubmitButton=function(g){this.submitButtonDisabled=!g;this.submitButtonDisabled=g};
_.P.computeSubmitButtonData=function(g,u){var q={};_.c(u,_.$cZ)?q.navigationEndpoint=u:q.command=u||void 0;g&&g.buttonRenderer&&_.pH.extend(q,g.buttonRenderer);return q};
_.P.computeNextButtonData=function(g,u){var q={};if(!g||!g.buttonRenderer)return q;_.pH.extend(q,g.buttonRenderer);if(!u)return q;if(_.c(u,_.$cZ))q.navigationEndpoint=Jmx(u);else if(q.command=Jmx(u),g=_.c(q.command,_.Gon))g.legalCheckboxChecked=!0;return q};
_.P.computeShowNextButton=function(g,u,q){return!!g&&u&&q};
_.P.refit=function(){var g=this;this.refitJob||(this.refitJob=_.Hv.addLowPriorityJob(function(){_.hJ(g.hostElement,"yt-refit");g.refitJob=0}))};
_.P.handleAdditionalDetailCheckboxUpdateAction=function(g){this.additionalDetailCheckboxChecked=g;_.c(this.command,_.Gon).additionalDetailCheckboxChecked=g};
_.z3.Object.defineProperties(ot,{template:{configurable:!0,enumerable:!0,get:function(){if(mkV===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;FGO===void 0&&(FGO=document.createElement("template"));var Q=FGO;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);mkV=g}g=mkV;return g}}});
ot.prototype.onYtServiceRequestError=ot.prototype.onYtServiceRequestError;ot.prototype.onYtServiceRequestCompleted=ot.prototype.onYtServiceRequestCompleted;ot.prototype.onYtServiceRequestSent=ot.prototype.onYtServiceRequestSent;ot.prototype.onYtNavigate=ot.prototype.onYtNavigate;ot.prototype.onYtPopupOpened=ot.prototype.onYtPopupOpened;_.Y([_.I(_.Ov.YtOpenPopupBehavior),_.K("design:type",Object)],ot.prototype,"openPopupBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ot.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],ot.prototype,"eventForwardingBehavior",void 0);_.Y([_.I(_.LJ),_.K("design:type",Object)],ot.prototype,"ironResizableBehavior",void 0);_.Y([_.a({observer:"dataChanged"}),_.K("design:type",Object)],ot.prototype,"data",void 0);
_.Y([_.a(),_.K("design:type",Object)],ot.prototype,"submitting",void 0);_.Y([_.a({observer:"submitButtonDisabledChanged"}),_.K("design:type",Object)],ot.prototype,"submitButtonDisabled",void 0);_.Y([_.a(),_.K("design:type",Object)],ot.prototype,"command",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],ot.prototype,"hideReportForm",void 0);_.Y([_.a(),_.K("design:type",Object)],ot.prototype,"canShowCheckbox",void 0);
_.Y([_.a(),_.K("design:type",Object)],ot.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Y([_.a(),_.K("design:type",Object)],ot.prototype,"canShowNextButton",void 0);_.Y([_.a(),_.K("design:type",Object)],ot.prototype,"additionalDetailCheckboxChecked",void 0);_.Y([_.a(),_.K("design:type",Object)],ot.prototype,"refitJob",void 0);_.Y([_.a(),_.K("design:type",Object)],ot.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.Y([_.oE("#scroller"),_.K("design:type",Object)],ot.prototype,"JSC$22983_scroller",void 0);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ot.prototype,"onYtPopupOpened",null);_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ot.prototype,"onYtNavigate",null);
_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],ot.prototype,"onYtServiceRequestSent",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],ot.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ot.prototype,"onYtServiceRequestError",null);_.Y([_.jP({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],ot);var aOO;var VO0;var Uo=function(){return _.X.apply(this,arguments)||this};
_.A(Uo,_.X);_.P=Uo.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.P.onVisible=function(){var g,u;(u=_.Bk().resolve(_.xv(_.fg)))==null||u.enqueue({label:_.iR((g=this.data)==null?void 0:g.messageTitle),elementToFocus:this.hostElement})};
_.P.onThumbnailLoaded=function(){_.hJ(this.hostElement,"yt-refit")};
_.P.onDismissTap=function(){_.YJ(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.P.computeAlternateIcon=function(g){return g?g==="BACKSTAGE_ARTWORK"?"backstage:artwork":g:null};
_.P.computeFontFamily=function(g){return g==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.P.computeBackgroundStyle=function(g,u){if(g=this.computeBackgroundImage(g,u))if(g=_.my(g.thumbnails))return'background-image: url("'+g+'");'};
_.P.computeHasFullHeightImage=function(g){return!(!(g&&g.thumbnails&&g.thumbnails.length>0)||this.modern)};
_.P.isModernStyle=function(g){return g.style==="STYLE_MODERN"};
_.P.computeIcon=function(g,u){if(g&&g.icon)return u?g.iconDark:g.icon};
_.P.computeBackgroundImage=function(g,u){if(g&&g.backgroundImage)return u?g.backgroundImageDark:g.backgroundImage};
_.P.computeLogo=function(g,u){if(g&&g.logo)return u?g.logoDark:g.logo};
_.P.computeShouldShowModernIcon=function(g,u){return g&&!!u};
_.P.getLogoContainerClassName=function(g){return this.logoWithPadding(g)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.P.getLogoImageId=function(g){return this.logoWithPadding(g)?"mealbar-logo-with-padding":"mealbar-logo"};
_.P.logoWithPadding=function(g){var u,q,Q;return(g=(u=this.computeLogo(g,this.isDarkTheme))==null?void 0:(q=u.thumbnails)==null?void 0:(Q=q[0])==null?void 0:Q.height)&&g%31===0?!0:!1};
Uo.prototype.onThumbnailLoaded=Uo.prototype.onThumbnailLoaded;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.Y([_.a({}),_.K("design:type",Object)],Uo.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.K("design:type",Boolean)],Uo.prototype,"modern",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],Uo.prototype,"isDarkTheme",void 0);
_.Y([_.a({computed:"computeIcon(data, isDarkTheme)"}),_.K("design:type",Object)],Uo.prototype,"icon",void 0);_.Y([_.a({computed:"computeLogo(data, isDarkTheme)"}),_.K("design:type",Object)],Uo.prototype,"logo",void 0);_.Y([_.a({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.K("design:type",Object)],Uo.prototype,"backgroundStyle",void 0);_.Y([_.a({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.K("design:type",Object)],Uo.prototype,"alternateIcon",void 0);
_.Y([_.a({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.K("design:type",Boolean)],Uo.prototype,"hasFullHeightImage",void 0);_.Y([_.a({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.K("design:type",Boolean)],Uo.prototype,"useYoutubeSans",void 0);_.Y([_.a({computed:"computeShouldShowModernIcon(modern, icon)"}),_.K("design:type",Boolean)],Uo.prototype,"shouldShowModernIcon",void 0);
_.Y([_.n6("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Uo.prototype,"onThumbnailLoaded",null);_.Y([_.jP({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Uo);
_.T(Uo,"yt-mealbar-promo-renderer",function(){if(VO0===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;aOO===void 0&&(aOO=document.createElement("template"));var Q=aOO;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);VO0=g}g=VO0;return g},{mode:2});var XTV;var reG;var g8=function(){return _.X.apply(this,arguments)||this};
_.A(g8,_.X);_.P=g8.prototype;_.P.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]]"}}}}}};
_.P.computeHasButtons_=function(g){return!(!g.dismissButton&&!g.acceptButton)};
_.P.computeStyle_=function(g){return g||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.P.observeImpressionEndpoints_=function(){var g=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(u){u.clickTrackingParams&&delete u.clickTrackingParams;_.KV(g.hostElement,[u])})};
_.P.onTap_=function(){_.YJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
g8.prototype.observeImpressionEndpoints_=g8.prototype.observeImpressionEndpoints_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],g8.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],g8.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],g8.prototype,"positionType",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.K("design:type",Boolean)],g8.prototype,"hasButtons_",void 0);_.Y([_.a({value:function(){return this.onTap_.bind(this)}}),
_.K("design:type",Function)],g8.prototype,"boundOnTap_",void 0);_.Y([_.a({value:{style:"mono-inverse"}}),_.K("design:type",Object)],g8.prototype,"buttonOverride",void 0);_.Y([_.k_("data.promoConfig.impressionEndpoints"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g8.prototype,"observeImpressionEndpoints_",null);_.Y([_.jP({is:"yt-tooltip-renderer",disableElementRegistration:!0})],g8);
_.T(g8,"yt-tooltip-renderer",function(){if(reG===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;XTV===void 0&&(XTV=document.createElement("template"));var Q=XTV;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);reG=g}g=reG;return g},{mode:2});var WGe;var T0O;var he3;var YTO;var u9=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-open-popup-action":"onOpen"};return g};
_.A(u9,_.X);_.P=u9.prototype;_.P.attached=function(){this.onOpen()};
_.P.updateTimeSecs=function(g){this.currentTimeSecs=g};
_.P.computeTimeString=function(g){g=g.toString();var u=Math.floor(Number(g)/3600),q=Math.floor(Number(g)%3600%60);return(u>0?u+":":"")+_.np(Math.floor(Number(g)%3600/60),u>0?2:1)+":"+_.np(q,2)};
_.P.computeTimeStringA11y=function(g){return _.zOb({seconds:g})};
_.P.getTimeParam=function(){return fXL(this.timeString)};
_.P.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var g={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},u;_.nq(_.gL(),(u=this.data)==null?void 0:u.trackingParams,g,7)};
_.P.onChangeStartAtTimestamp=function(){for(var g=this.startAtTimestamp.value.split(":"),u=0,q=1,Q=g.length-1;Q>=0;Q--)u+=Number(g[Q])*q,q*=60;this.updateTimeSecs(u);this.setTimestamp()};
_.P.onOpen=function(){var g=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var u=_.F0();u?u.getPlayerPromise().then(function(q){q=q.getCurrentTime();g.updateTimeSecs(q)}):PRh()&&this.updateTimeSecs(PRh())};
_.P.setTimestamp=function(){var g=Math.floor(this.currentTimeSecs);_.YJ(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!g,timestamp:g||""}])};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],u9.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],u9.prototype,"data",void 0);_.Y([_.a({value:!1,notify:!0}),_.K("design:type",Boolean)],u9.prototype,"isStartAtChecked",void 0);_.Y([_.a(),_.K("design:type",Number)],u9.prototype,"currentTimeSecs",void 0);
_.Y([_.a({computed:"computeTimeString(currentTimeSecs)"}),_.K("design:type",String)],u9.prototype,"timeString",void 0);_.Y([_.a({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.K("design:type",String)],u9.prototype,"timeStringA11y",void 0);_.Y([_.oE("#start-at-timestamp"),_.K("design:type",Object)],u9.prototype,"startAtTimestamp",void 0);_.Y([_.jP({is:"yt-start-at-renderer",disableElementRegistration:!0})],u9);
_.T(u9,"yt-start-at-renderer",function(){if(YTO===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;he3===void 0&&(he3=document.createElement("template"));var Q=he3;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);YTO=g}g=YTO;return g},{mode:2});var OvB={},KGv=(OvB.WEB_REMIX="music.youtube.com",OvB),qg=function(){var g=_.X.apply(this,arguments)||this;g.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return g};
_.A(qg,_.X);_.P=qg.prototype;_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.created=function(){this.embedHost_=KGv[_.FR("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.P.ready=function(){_.Tr(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.P.computeEmbedCode_=function(g,u,q,Q,L){if(!g)return"";var E=g.videoId,y=g.fullListId,v=[];g.attributionId&&v.push("si="+g.attributionId);Q||v.push("controls=0");q&&Number(u)>0&&v.push("start="+u);y&&(E="videoseries",v.push("list="+y));q="https://"+(L?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+E;g.clipId&&(v.push("clip="+g.clipId),v.push("clipt="+g.clipTiming));u=v.length>0?q+"?"+v.join("&amp;"):q;g.encryptedEmbedConfig&&v.push("embed_config="+JSON.stringify({enc:g.encryptedEmbedConfig}));
v=v.length>0?q+"?"+v.join("&amp;"):q;_.w("web_sharing_embed_preview_killswitch")?_.Tr(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(v,g.previewWidth||854,g.previewHeight||480):(_.RA(this.videoPreviewContainer),_.Tr(this.videoPreviewContainer).appendChild(this.buildIframeElement(v)));return this.getEmbedCode_(u,g.width||560,g.height||315)};
_.P.buildIframeElement=function(g){var u=document.createElement("iframe"),q,Q;u.width=""+((Q=(q=this.data)==null?void 0:q.previewWidth)!=null?Q:854);var L,E;u.height=""+((E=(L=this.data)==null?void 0:L.previewHeight)!=null?E:480);_.Na(u,2,g);u.title="YouTube video player";u.frameBorder="0";u.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";u.referrerPolicy="strict-origin-when-cross-origin";u.allowFullscreen=!0;return u};
_.P.computeIsSquareAspectRatio_=function(g){return g.previewHeight&&g.previewWidth?g.previewHeight==g.previewWidth:!1};
_.P.computeShowEmbedOptions_=function(g){return!!g.enablePrivacyModeOptionLabel||!!g.showPlayerControlsOptionLabel};
_.P.getEmbedCode_=function(g,u,q){return'<iframe width="'+u+'" height="'+q+'" src="'+g+'" 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>'};
_.P.handleSignalActionCopyShareEmbedUrl_=function(){_.Tr(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.P.handleSetTimestamp_=function(g){this.startAtTimeStamp_=(this.startAtChecked_=g.isSet)?g.timestamp:0};
_.P.closePanel_=function(){_.YJ(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.P.onEmbedCode_=function(){_.Tr(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.P.onYtPopupClosed_=function(){_.RA(_.Tr(this.hostElement).querySelector("#video-preview"))};
_.P.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.c(this.data.actionButtons[0],_.eW)&&this.ytRendererBehavior.logExplicitClick(_.c(this.data.actionButtons[0],_.eW))};
qg.prototype.onYtPopupClosed_=qg.prototype.onYtPopupClosed_;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],qg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],qg.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qg.prototype,"data",void 0);
_.Y([_.a({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.K("design:type",String)],qg.prototype,"embedCode_",void 0);_.Y([_.a({value:!0}),_.K("design:type",Boolean)],qg.prototype,"isPlayerControlsOptionChecked_",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],qg.prototype,"isPrivacyModeOptionChecked_",void 0);_.Y([_.a({value:!1,notify:!0}),_.K("design:type",Boolean)],qg.prototype,"startAtChecked_",void 0);
_.Y([_.a({value:0}),_.K("design:type",Number)],qg.prototype,"startAtTimeStamp_",void 0);_.Y([_.a({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],qg.prototype,"isSquareAspectRatio_",void 0);_.Y([_.oE("#video-preview"),_.K("design:type",HTMLElement)],qg.prototype,"videoPreviewContainer",void 0);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qg.prototype,"onYtPopupClosed_",null);
_.Y([_.jP({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],qg);
_.T(qg,"yt-sharing-embed-renderer",function(){if(T0O===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;WGe===void 0&&(WGe=document.createElement("template"));var Q=WGe;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);T0O=g}g=T0O;return g},{mode:2});var xkv;var B0B=function(){return _.X.apply(this,arguments)||this};
_.A(B0B,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],B0B.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],B0B.prototype,"data",void 0);_.Y([_.jP({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],B0B);
_.T(B0B,"yt-sender-id-section-renderer",function(){if(xkv===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);xkv=g}g=
xkv;return g},{mode:1});var zeO;var nV0;var Qe=function(){return _.X.apply(this,arguments)||this};
_.A(Qe,_.X);Qe.prototype.closePopup=function(){_.YJ(this.hostElement,"yt-close-popup-action")};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Qe.prototype,"data",void 0);_.Y([_.jP({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Qe);
_.T(Qe,"yt-community-post-section-renderer",function(){if(nV0===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;zeO===void 0&&(zeO=document.createElement("template"));var Q=zeO;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);nV0=g}g=nV0;return g},{mode:2});var ksk;var ST0;var oVV;var Uk0;var gAk;var urB;var qPk=function(){return _.X.apply(this,arguments)||this};
_.A(qPk,_.X);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],qPk.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],qPk.prototype,"data",void 0);_.Y([_.jP({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],qPk);
_.T(qPk,"yt-share-start-time-with-context-renderer",function(){if(urB===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;gAk===void 0&&(gAk=document.createElement("template"));var Q=gAk;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);urB=g}g=urB;return g},{mode:2});var LC=function(){return _.X.apply(this,arguments)||this};
_.A(LC,_.X);LC.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],LC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],LC.prototype,"data",void 0);_.Y([_.jP({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],LC);
_.T(LC,"yt-share-panel-title-v15-renderer",function(){if(Uk0===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;oVV===void 0&&(oVV=document.createElement("template"));var Q=oVV;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Uk0=g}g=Uk0;return g},{mode:2});var Eh=function(){return _.X.apply(this,arguments)||this};
_.A(Eh,_.X);Eh.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Eh.prototype,"data",void 0);_.Y([_.jP({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Eh);
_.T(Eh,"yt-share-panel-header-renderer",function(){if(ST0===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;ksk===void 0&&(ksk=document.createElement("template"));var Q=ksk;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ST0=g}g=ST0;return g},{mode:2});var QuB;var LsV;var EA3={};EA3.YtBindingExpressionsBehavior={identity:_.am,msg:function(g,u){u=u===void 0?{}:u;return _.Ug(g,u,g)},
msgPlural:function(g,u){return _.gF(g,u)},
getMusicIconFromType:function(g){return _.x9(g)}};var P8T;var Nte;var su3;var yBB=document.head,vAB=yBB.appendChild,Da0;
if(su3===void 0){var pxk=document.createElement("template");_.Z(pxk,'\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>');su3=pxk}Da0=su3;
vAB.call(yBB,Da0.content);var Pm=function(){var g=_.X.apply(this,arguments)||this;g.screenLayer=7;return g};
_.A(Pm,_.X);Pm.prototype.getScreenLayer=function(){return this.screenLayer};
Pm.prototype.onTap=function(g){g&&g.detail&&(g.detail.x||g.detail.y)&&_.Tr(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.KV(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(g=this.getScreenLayer(),_.hJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:g}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.z3.Object.defineProperties(Pm.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()}}});
Pm.prototype.onTap=Pm.prototype.onTap;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],Pm.prototype,"ytComponentBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Pm.prototype,"data",void 0);_.Y([_.C("data.title"),_.K("design:type",Object),_.K("design:paramtypes",[])],Pm.prototype,"title",null);
_.Y([_.C("data.serviceName"),_.K("design:type",String),_.K("design:paramtypes",[])],Pm.prototype,"icon",null);_.Y([_.n6("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Pm.prototype,"onTap",null);_.Y([_.jP({is:"yt-share-target-renderer",disableElementRegistration:!0})],Pm);
_.T(Pm,"yt-share-target-renderer",function(){if(Nte===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;P8T===void 0&&(P8T=document.createElement("template"));var Q=P8T;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Nte=g}g=Nte;return g},{mode:2});var JBv;var juG;var Ng=function(){var g=_.X.apply(this,arguments)||this;g.SHARE_TARGET_WIDTH=70;g.SHARE_TARGET_MARGIN_RIGHT=8;g.PAGE_SCROLL_SPEED=9;g.actionMap={"yt-share-panel-reset-action":"onReset_"};return g};
_.A(Ng,_.X);_.P=Ng.prototype;_.P.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.P.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Tr(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Tr(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.P.onReset_=function(){if(_.Tr(this.hostElement).querySelector("#list")){var g=_.Tr(this.hostElement).querySelector("#list");var u=_.Tr(this.hostElement).querySelector("#list");var q=u.offsetLeft,Q=u.offsetParent;Q||_.k$2(u)!="fixed"||(Q=_.fH(u).documentElement);if(Q){if(_.qM&&!_.BK(58)){var L=_.LRi(Q);q+=L.left}else Number(_.RK0)>=8&&!(Number(_.RK0)>=9)&&(L=_.LRi(Q),q-=L.left);u=_.qHH(Q)?Q.clientWidth-(q+u.offsetWidth):q}else u=q;wUK(g,u);this.updateScrollButtons_()}};
_.P.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.P.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.P.onScrollWheel_=function(g){g.stopPropagation();g.preventDefault();var u=Rtt(_.Tr(this.hostElement).querySelector("#list"));g=Math.abs(g.deltaX)>Math.abs(g.deltaY)?g.deltaX:g.deltaY;wUK(_.Tr(this.hostElement).querySelector("#list"),u+g);this.updateScrollButtons_()};
_.P.smoothScrollByOnePage_=function(g){var u=_.Tr(this.hostElement).querySelector("#list"),q=(Math.floor(u.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,Q=Rtt(u),L=q*(g?1:-1),E=this.PAGE_SCROLL_SPEED,y=this.updateScrollButtons_.bind(this),v=0,J;(function t(){v+=E;J=v/q*2;wUK(u,Q+L*(J<1?J*J:-J*J+4*J-2));v<q?window.requestAnimationFrame(t):y()})()};
_.P.updateScrollButtons_=function(){var g=Rtt(_.Tr(this.hostElement).querySelector("#list")),u=_.Tr(this.hostElement).querySelector("#list").scrollWidth-_.Tr(this.hostElement).querySelector("#list").clientWidth;_.Tr(this.hostElement).querySelector("#scroll-button-back").hidden=g<=0;_.Tr(this.hostElement).querySelector("#scroll-button-forward").hidden=g>=u};
Ng.prototype.onScrollWheel_=Ng.prototype.onScrollWheel_;Ng.prototype.onDataChanged_=Ng.prototype.onDataChanged_;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Ng.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Ng.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(EA3.YtBindingExpressionsBehavior),_.K("design:type",Object)],Ng.prototype,"ytBindingExpressionsBehavior",void 0);
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Ng.prototype,"data",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ng.prototype,"onDataChanged_",null);_.Y([_.n6("wheel"),_.K("design:type",Function),_.K("design:paramtypes",[WheelEvent]),_.K("design:returntype")],Ng.prototype,"onScrollWheel_",null);
_.Y([_.jP({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Ng);
_.T(Ng,"yt-third-party-share-target-section-renderer",function(){if(juG===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;JBv===void 0&&(JBv=document.createElement("template"));var Q=JBv;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);juG=g}g=juG;return g},{mode:2});var sh=function(){return _.X.apply(this,arguments)||this};
_.A(sh,_.X);sh.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"}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],sh.prototype,"data",void 0);_.Y([_.jP({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],sh);
_.T(sh,"yt-third-party-network-section-renderer",function(){if(LsV===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;QuB===void 0&&(QuB=document.createElement("template"));var Q=QuB;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);LsV=g}g=LsV;return g},{mode:2});var fKk;_.dL(_.r(function(g){return _.p("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.p("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.p(_.Up,{data:function(){return g.data().firstPartyItems}},{listItemViewModel:_.A8})))},"nl"),"first-party-network-section-view-model",{props:{data:_.H2}});var MxG=_.CT(["data:image/svg+xml;charset=UTF-8;base64,",""]),ye=function(){var g=_.X.apply(this,arguments)||this;g.screenLayer=7;g.qrCodeEnabled=_.w("web_enable_sharing_qr_code");g.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return g};
_.A(ye,_.X);_.P=ye.prototype;_.P.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"}}}};
_.P.attached=function(){this.JSC$23034_scroller&&(this.JSC$23034_scroller.dialogElement=this.hostElement.parentNode,this.JSC$23034_scroller.attached&&typeof this.JSC$23034_scroller.attached==="function"&&this.JSC$23034_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.P.onDataChanged=function(){var g=this,u;(u=this.data)!=null&&u.contents&&(this.hostElement.setAttribute("links-only","true"),_.Ox(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.xt(this,function(){_.hJ(g.hostElement,"yt-refit");g.focusSharePanelHeader()}))};
_.P.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.P.handleSetTimestamp=function(g){var u=this.shortUrl();g.isSet&&(u=_.oW(u,"t",g.timestamp));this.maybeRenderQrCode(u)};
_.P.shortUrl=function(){var g,u=(g=this.data)==null?void 0:g.contents;if(u)for(g=0;g<u.length;g++){var q=void 0,Q=void 0;if((q=u[g])==null?0:(Q=q.thirdPartyNetworkSection)==null?0:Q.copyLinkContainer){var L=Q=q=void 0;return(L=_.c((q=u[g])==null?void 0:(Q=q.thirdPartyNetworkSection)==null?void 0:Q.copyLinkContainer,n49))==null?void 0:L.shortUrl}}};
_.P.maybeRenderQrCode=function(g){var u=this,q,Q,L,E,y,v,J,f,t;return _.D(function(e){if(e.nextAddress==1){q=_.Tr(u.hostElement).querySelector("#qr-code");if(!u.qrCodeEnabled||!g)return q&&(q.style.display="none"),e.return();Q=_.S83(_.Bk().resolve(_.B$),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});L=document.createElement("div");return typeof Q==="function"?(Q(L),e.jumpTo(2)):e.yield(Q,3)}e.nextAddress!=2&&(E=e.yieldResult,E(L));J=(y=L)==null?void 0:(v=y.firstChild)==null?void 0:v.firstChild;
f=document.createElement("img");t=_.Hah(MxG,btoa(J.outerHTML));f.onload=function(){var G={canvas:q,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:f},R=new s5f;j5E(R,g);f3Z(R,!1,MPZ(R));var H=R.modules,l=Object.assign({},S6f,G);H=structuredClone(H);G=H.length;var d,F=(d=l.canvas)!=null?d:document.createElement("canvas");d=l.cellSize;R=l.logo;var V,z=(V=l.logoSize)!=null?V:Math.floor(G/4);G%2!==z%2&&z++;var O=l.logoPadding,W=l.backgroundColor;V=G*d;var x=
l.width,k=0;x&&(k=l.padding,k=Math.ceil(k*V/(x-k*2)),F.style.width=x+"px",F.style.height=x+"px");F.width!==V+k*2&&(F.width=V+k*2);F.height!==V+k*2&&(F.height=V+k*2);V=F.getContext("2d");l.autoClear&&V.clearRect(0,0,F.width,F.height);V.fillStyle=W;V.beginPath();V.roundRect(0,0,F.width,F.height,l.borderRadius);V.fill();V.save();V.translate(k,k);if(R)for(F=Math.floor(G-z)/2-O,O=Math.floor(G+z)/2+O,W=F;W<O;W++)for(x=F;x<O;x++)H[W][x]=!1;for(F=0;F<G;F++)for(O=0;O<G;O++)(F<7&&O<7||F<7&&O>=G-7||F>=G-7&&
O<7)&&(H[F][O]=!1);var LZ;F=(LZ=l.markerColor)!=null?LZ:l.color;eqb(V,0,0,d,F);eqb(V,d*(G-7),0,d,F);eqb(V,0,d*(G-7),d,F);switch(l.cellStyle){case 0:LZ=H;H=LZ.length;F=l.cellSize;V.beginPath();for(O=0;O<H;O++)for(W=0;W<H;W++)LZ[O][W]&&V.rect(O*F,W*F,F,F);V.fillStyle=l.color;V.fill();break;case 1:LZ=H;H=LZ.length;F=l.cellSize;O=F*l.relativeCircleSize;V.fillStyle=l.color;V.beginPath();for(l=0;l<H;l++)for(W=0;W<H;W++)LZ[l][W]&&(V.beginPath(),V.ellipse((l+.5)*F,(W+.5)*F,O/2,O/2,0,0,2*Math.PI),V.fill());
V.fill();break;case 2:LZ=H;H=LZ.length;F=l.cellSize;V.fillStyle=l.color;l=[[1,1],[-1,1],[-1,-1],[1,-1]];V.beginPath();for(O=0;O<H;O++)for(W=0;W<H;W++)if(LZ[O][W])V.roundRect(O*F,W*F,F,F,F/2),O+1<H&&LZ[O+1][W]&&V.rect(O*F+F/2,W*F,F,F),W+1<H&&LZ[O][W+1]&&V.rect(O*F,W*F+F/2,F,F);else{x=O*F+F/2;k=W*F+F/2;for(var sb=0;sb<4;sb++){var Rm=_.N(l[sb]),M3=Rm.next().value;Rm=Rm.next().value;O+M3>=0&&O+M3<H&&W+Rm>=0&&W+Rm<H&&LZ[O+M3][W]&&LZ[O][W+Rm]&&LZ[O+M3][W+Rm]&&(M3=sb*Math.PI/2,Rm=F/2,V.moveTo(x+Rm*Math.cos(M3),
k+Rm*Math.sin(M3)),V.arc(x,k,F/2,M3,M3+Math.PI/2,!1),V.lineTo(x+Rm*(Math.cos(M3)-Math.sin(M3)),k+Rm*(Math.cos(M3)+Math.sin(M3))),V.lineTo(x+Rm*Math.cos(M3),k+Rm*Math.sin(M3)))}}V.fill()}R&&V.drawImage(R,(G-z)*d/2,(G-z)*d/2,z*d,z*d);V.restore();q.style.removeProperty("display")};
f.src=_.BT(t);_.Wx(e)})};
_.P.hasCommunityPostRenderer=function(){var g,u,q,Q;return!!((g=this.data)==null?0:(u=g.header)==null?0:(q=u.sharePanelHeaderRenderer)==null?0:(Q=q.communityPost)==null?0:Q.communityPostSectionRenderer)};
_.P.onTapClose=function(){_.YJ(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.P.getScreenLayer=function(){return this.screenLayer};
ye.prototype.onDataChanged=ye.prototype.onDataChanged;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],ye.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],ye.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],ye.prototype,"data",void 0);
_.Y([_.a({value:_.Ug("SBOX_INAPPROPRIATE_CANCEL")}),_.K("design:type",String)],ye.prototype,"closeButtonAriaLabel",void 0);_.Y([_.oE("yt-share-panel-header-renderer"),_.K("design:type",HTMLElement)],ye.prototype,"header",void 0);_.Y([_.a(),_.K("design:type",Object)],ye.prototype,"qrCodeEnabled",void 0);_.Y([_.oE("#scroller"),_.K("design:type",Object)],ye.prototype,"JSC$23034_scroller",void 0);
_.Y([_.qm("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ye.prototype,"onDataChanged",null);_.Y([_.jP({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],ye);
_.T(ye,"yt-unified-share-panel-renderer",function(){if(fKk===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);fKk=g}g=fKk;return g},{mode:1});var txB={};
txB.YtUnlimitedFamilyInterstitialBehavior=[_.Ov.YtOpenPopupBehavior,_.xK.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(g){g=_.B6W(_.bd(g),"yt-button-renderer");return g?g.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(g){this.dialogHistory_.push(g)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var g=this.popFromHistory();if(g){var u={openPopupAction:{popupType:"DIALOG",popup:{}}};u.openPopupAction.popup[g.renderer]=g.data;this.showingPreviousDialog_=!0;this.openPopup(u)}},
handleOpenPopupAction_:function(g){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var u=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(Q){return!!g.openPopupAction.popup[Q]}),q=this.getElementName_();
u&&this.data&&(this.pushToHistory({renderer:q,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(g){if(g=_.c(g,ziH))this.loading=!0,_.YJ(this.hostElement,"yt-open-create-family-dialog",[g,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var g=this.hostElement.nodeName.split("-").slice(1).map(function(u){return""+u[0].toUpperCase()+u.slice(1).toLowerCase()}).join("");
return g[0].toLowerCase()+g.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var emG;var GF3;var Dp=function(){return _.X.apply(this,arguments)||this};
_.A(Dp,_.X);_.P=Dp.prototype;_.P.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}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.YJ(this.hostElement,"yt-register-create-family-dialog");_.Tr(this.hostElement).querySelector("#thumbnail").onShow()};
_.P.fireOnCloseCommand_=function(){var g;((g=this.data)==null?0:g.onCloseCommand)&&_.xJ(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.P.onYtServiceRequestSent_=function(g,u){u&&u.endpoint&&_.c(u.endpoint,_.kJ)||(this.loading=!0)};
_.P.onYtServiceRequestCompleted_=function(){var g=this.hostElement.parentElement;g.close&&g.close();this.loading=!1};
_.P.openPopupHandler_=function(g){if(g.detail==this){var u;((u=this.data)==null?0:u.onOpenCommands)&&_.xJ(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.P.closePopupHandler_=function(g,u){this.fireOnCloseCommand_();if(u&&u.canceled===!0||u&&u.canceled===!1&&u.confirmed===!1){var q;((q=this.data)==null?0:q.onDismissCommands)&&_.xJ(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.P.dataChanged_=function(){this.loading=!1};
Dp.prototype.dataChanged_=Dp.prototype.dataChanged_;Dp.prototype.closePopupHandler_=Dp.prototype.closePopupHandler_;Dp.prototype.openPopupHandler_=Dp.prototype.openPopupHandler_;Dp.prototype.onYtServiceRequestCompleted_=Dp.prototype.onYtServiceRequestCompleted_;Dp.prototype.onYtServiceRequestSent_=Dp.prototype.onYtServiceRequestSent_;_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],Dp.prototype,"ytEventForwardingBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Dp.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(txB.YtUnlimitedFamilyInterstitialBehavior),_.K("design:type",Object)],Dp.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Dp.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Dp.prototype,"loading",void 0);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],Dp.prototype,"onYtServiceRequestSent_",null);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],Dp.prototype,"onYtServiceRequestCompleted_",null);
_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Dp.prototype,"openPopupHandler_",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Dp.prototype,"closePopupHandler_",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dp.prototype,"dataChanged_",null);
_.Y([_.jP({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Dp);
_.T(Dp,"yt-unlimited-family-message-interstitial-renderer",function(){if(GF3===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;emG===void 0&&(emG=document.createElement("template"));var Q=emG;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);GF3=g}g=GF3;return g},{mode:2});var $a0;var RmB;var pC=function(){return _.X.apply(this,arguments)||this};
_.A(pC,_.X);pC.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"}}}};
pC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Tr(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(g){g.onShow()});
_.Tr(this.hostElement).querySelector("#main-thumbnail").onShow()};
pC.prototype.onButtonTap_=function(g){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(g)};
pC.prototype.computeMainThumbnailWidth_=function(g){return g&&g.length!==0?72:96};
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(txB.YtUnlimitedFamilyInterstitialBehavior),_.K("design:type",Object)],pC.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],pC.prototype,"data",void 0);
_.Y([_.a({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.K("design:type",Number)],pC.prototype,"mainThumbnailWidth_",void 0);_.Y([_.a({value:function(){return this.onButtonTap_.bind(this)}}),
_.K("design:type",Function)],pC.prototype,"boundButtonTap_",void 0);_.Y([_.jP({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],pC);
_.T(pC,"yt-unlimited-family-profile-interstitial-renderer",function(){if(RmB===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;$a0===void 0&&($a0=document.createElement("template"));var Q=$a0;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);RmB=g}g=RmB;return g},{mode:2});var wxT;var cBk;var JC=function(){var g=_.X.apply(this,arguments)||this;g.sliderAriaValueText_=null;g.selectedIndex_=0;g.messages={PAUSE_SLIDER:_.Ug("PAUSE_SLIDER",void 0,"Pause Duration")};return g};
_.A(JC,_.X);_.P=JC.prototype;_.P.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_]]"}}}}}};
_.P.onPopupOpened_=function(g){g.detail==this&&_.w("enable_premium_voluntary_pause")&&(_.YJ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.setDialogData=function(g){this.data=g;this.resetSlider_()};
_.P.dataChanged_=function(){this.data&&this.resetSlider_()};
_.P.onSubmitTap_=function(){if(this.data.confirmCommand){var g=this.data.confirmCommand;_.c(g,_.APi)&&_.KV(this.hostElement,[g,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.P.onExitButtonTap_=function(){_.YJ(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.P.closePopupHandler_=function(g,u){(u&&u.canceled===!0||u.canceled===!1&&u.confirmed===!1)&&this.handleOnDismissCommands_()};
_.P.onSliderChange_=function(){this.selectedIndex_=_.Tr(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.P.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.P.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.P.resetSlider_=function(){if(this.data){var g=this.data.defaultEndOptionIndex||0,u=_.Tr(this.hostElement).querySelector("#id-pause-slider");if(u.immediateValue<g)for(;u.immediateValue!=g;)u.increment();else if(g<u.immediateValue)for(;u.immediateValue!=g;)u.decrement();this.selectedIndex_=g;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.P.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.xJ(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.xJ(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.loading=!0};
_.P.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
JC.prototype.onYtServiceRequestCompleted=JC.prototype.onYtServiceRequestCompleted;JC.prototype.onYtServiceRequestSent=JC.prototype.onYtServiceRequestSent;JC.prototype.closePopupHandler_=JC.prototype.closePopupHandler_;JC.prototype.dataChanged_=JC.prototype.dataChanged_;JC.prototype.onPopupOpened_=JC.prototype.onPopupOpened_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],JC.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],JC.prototype,"loading",void 0);_.Y([_.a(),_.K("design:type",Number)],JC.prototype,"selectIndexMax_",void 0);_.Y([_.a(),_.K("design:type",Object)],JC.prototype,"selectedData_",void 0);
_.Y([_.a(),_.K("design:type",Object)],JC.prototype,"sliderAriaValueText_",void 0);_.Y([_.a({value:function(){return this.onSubmitTap_.bind(this)}}),
_.K("design:type",Function)],JC.prototype,"onButtonTap_",void 0);_.Y([_.a({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.K("design:type",Function)],JC.prototype,"onSecondaryTap_",void 0);_.Y([_.a(),_.K("design:type",Object)],JC.prototype,"messages",void 0);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],JC.prototype,"onPopupOpened_",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JC.prototype,"dataChanged_",null);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],JC.prototype,"closePopupHandler_",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],JC.prototype,"onYtServiceRequestSent",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],JC.prototype,"onYtServiceRequestCompleted",null);_.Y([_.jP({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],JC);
_.T(JC,"yt-unplugged-pause-membership-dialog-renderer",function(){if(cBk===void 0){var g=document.createElement("template");_.Z(g,'\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>');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;wxT===void 0&&(wxT=document.createElement("template"));var Q=wxT;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);cBk=g}g=cBk;return g},{mode:2});var HaO;var ABs;var j6=function(){return _.X.apply(this,arguments)||this};
_.A(j6,_.X);j6.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.sp("vcBalanceRenderer")}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],j6.prototype,"data",void 0);_.Y([_.jP({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],j6);
_.T(j6,"yt-vc-offer-layout-header-renderer",function(){if(ABs===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;HaO===void 0&&(HaO=document.createElement("template"));var Q=HaO;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ABs=g}g=ABs;return g},{mode:2});var Za0;var lK0;var IKV;var ia0;var fC=function(){return _.X.apply(this,arguments)||this};
_.A(fC,_.X);fC.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.z3.Object.defineProperties(fC.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)}}});
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.QHt.YtTappableItemBehavior),_.K("design:type",Object)],fC.prototype,"ytTappableItemBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],fC.prototype,"data",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.C("data.accessibilityText"),_.K("design:type",String),_.K("design:paramtypes",[])],fC.prototype,"ariaLabel",null);_.Y([_.a({reflectToAttribute:!0}),_.C("data.style"),_.K("design:type",String),_.K("design:paramtypes",[])],fC.prototype,"vcOfferStyle",null);_.Y([_.C("data.style","data.titleText"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],fC.prototype,"showTitleText",null);_.Y([_.jP({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],fC);
_.T(fC,"yt-vc-offer-renderer",function(){if(ia0===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;IKV===void 0&&(IKV=document.createElement("template"));var Q=IKV;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);ia0=g}g=ia0;return g},{mode:2});var Mg=function(){return _.X.apply(this,arguments)||this};
_.A(Mg,_.X);Mg.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}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Mg.prototype,"data",void 0);_.Y([_.jP({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Mg);
_.T(Mg,"yt-vc-offer-layout-renderer",function(){if(lK0===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Za0===void 0&&(Za0=document.createElement("template"));var Q=Za0;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);lK0=g}g=lK0;return g},{mode:2});var C8s;var baG;var dav;var FsV;var tC=function(){return _.X.apply(this,arguments)||this};
_.A(tC,_.X);tC.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}}}}}};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],tC.prototype,"data",void 0);_.Y([_.jP({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],tC);
_.T(tC,"yt-ypc-offers-modal-top-bar-renderer",function(){if(FsV===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;dav===void 0&&(dav=document.createElement("template"));var Q=dav;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);FsV=g}g=FsV;return g},{mode:2});var e6=function(){return _.X.apply(this,arguments)||this};
_.A(e6,_.X);e6.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"}}}}};
e6.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
e6.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var g=this.scrollable;g.attached&&typeof g.attached==="function"&&g.attached()};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.oE("#scrollable"),_.K("design:type",Object)],e6.prototype,"scrollable",void 0);_.Y([_.a(),_.K("design:type",Object)],e6.prototype,"data",void 0);_.Y([_.jP({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],e6);
_.T(e6,"yt-ypc-offers-modal-renderer",function(){if(baG===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;C8s===void 0&&(C8s=document.createElement("template"));var Q=C8s;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);baG=g}g=baG;return g},{mode:2});var maO;var aKO;var GO=function(){return _.X.apply(this,arguments)||this};
_.A(GO,_.X);_.P=GO.prototype;_.P.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}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Tr(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.P.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.YJ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.P.onYtPopupOpened_=function(g,u){(u==null?void 0:u.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.xJ(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.onYtPopupClosed_=function(g,u){this.continueButtonTapped||u&&(u.canceled===!0||u.canceled===!1&&u.confirmed===!1)&&this.data.onDismissCommands&&_.xJ(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestError_=function(g){this.set("showSpinner",!1);_.A7(this.hostElement,g.detail.error.message)};
_.P.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.w("enable_ypc_spinners")?_.YJ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
GO.prototype.onYtServiceRequestError_=GO.prototype.onYtServiceRequestError_;GO.prototype.onYtPopupClosed_=GO.prototype.onYtPopupClosed_;GO.prototype.onYtPopupOpened_=GO.prototype.onYtPopupOpened_;GO.prototype.onYtServiceRequestCompleted_=GO.prototype.onYtServiceRequestCompleted_;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.a(),_.K("design:type",Object)],GO.prototype,"data",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],GO.prototype,"showSpinner",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],GO.prototype,"continueButtonTapped",void 0);_.Y([_.a({value:function(){return this.onContinueTapped_.bind(this)}}),
_.K("design:type",Function)],GO.prototype,"bindOnContinueTapped_",void 0);_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],GO.prototype,"onYtServiceRequestCompleted_",null);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],GO.prototype,"onYtPopupOpened_",null);
_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],GO.prototype,"onYtPopupClosed_",null);_.Y([_.n6("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],GO.prototype,"onYtServiceRequestError_",null);_.Y([_.jP({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],GO);
_.T(GO,"yt-ypc-upgrade-dialog-renderer",function(){if(aKO===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;maO===void 0&&(maO=document.createElement("template"));var Q=maO;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);aKO=g}g=aKO;return g},{mode:2});var Vxs;var Xxv;var $T=function(){return _.X.apply(this,arguments)||this};
_.A($T,_.X);$T.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
$T.prototype.computeHasButtons_=function(g){return!(!g.dismissButton&&!g.confirmButton)};
$T.prototype.computeStyle_=function(g){return g||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],$T.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],$T.prototype,"data",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],$T.prototype,"positionType",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.K("design:type",Boolean)],$T.prototype,"hasButtons_",void 0);_.Y([_.a({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.K("design:type",Boolean)],$T.prototype,"style_",void 0);_.Y([_.jP({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],$T);
_.T($T,"yt-bubble-hint-renderer",function(){if(Xxv===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Vxs===void 0&&(Vxs=document.createElement("template"));var Q=Vxs;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Xxv=g}g=Xxv;return g},{mode:2});var rB0;var WsG;var RL=function(){var g=_.nf.apply(this,arguments)||this;g.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return g};
_.A(RL,_.nf);_.P=RL.prototype;_.P.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.P.attached=function(){var g=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){g.$.thumbnail.onShow();g.$["header-image"].onShow()})};
_.P.handleCheckBoxUpdateAction_=function(g){this.canShowCheckboxEnabledConfirmButton=g};
_.P.computeUseOverlayForSpinner_=function(g,u){return!!g&&u};
_.P.computeShowSpinner_=function(g,u){return g||!!u};
_.P.fireOnCloseActions_=function(){var g,u=_.N(((g=this.data)==null?void 0:g.onClosedActions)||[]);for(g=u.next();!g.done;g=u.next())this.ytRendererBehavior.resolveCommand(g.value)};
_.P.fireOnOpenCommands_=function(g){var u,q=(u=this.data)==null?void 0:u.onOpenCommands;if(q)for(g.stopImmediatePropagation(),g=_.N(q),u=g.next();!u.done;u=g.next())this.ytRendererBehavior.resolveCommand(u.value)};
_.P.fireOnDismissCommands_=function(g){var u,q=(u=this.data)==null?void 0:u.onDismissCommands;if(q)for(g.stopImmediatePropagation(),g=_.N(q),u=g.next();!u.done;u=g.next())this.ytRendererBehavior.resolveCommand(u.value)};
_.P.openPopupHandler_=function(g){g.detail==this&&this.fireOnOpenCommands_(g)};
_.P.closePopupHandler_=function(g,u){_.Og(this,"yt-confirm-dialog-close-action",[u]);this.fireOnCloseActions_();(u&&u.canceled===!0||u&&u.canceled===!1&&u.confirmed===!1)&&this.fireOnDismissCommands_(g)};
_.P.onHeaderImageChanged_=function(){var g;((g=this.data)==null?0:g.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.P.computeHasHeaderImageWidth_=function(g){return g!=void 0};
_.P.computeHasLoadingMessage=function(g){return!!g};
_.P.onHeaderImageWidthChanged_=function(){var g,u=(g=this.data)==null?void 0:g.headerImageWidth;if(u){if(g=1.25*u*2+u,this.$.main.style.width=g+"px",u=this.$.scroller.firstElementChild)u.style.minWidth=g+"px"}else this.$.main.style.width="100%"};
_.P.onThumbnailChanged_=function(){var g;((g=this.data)==null?0:g.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")};
_.P.onYtNavigate_=function(g){g=_.bd(g);g instanceof Node&&_.hR(this.$["confirm-button"]).contains(g)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.P.computePrimaryIsCancel_=function(g){return g};
_.P.computeIsCancelButtonHidden_=function(g){return g.skipCancelButton||!g.cancelButton};
_.P.computeIsCheckboxHidden_=function(g){return!g.checkbox};
_.P.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.P.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.P.onYtServiceRequestCompleted_=function(){var g;((g=this.data)==null?0:g.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.z3.Object.defineProperties(RL,{template:{configurable:!0,enumerable:!0,get:function(){if(WsG===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;rB0===void 0&&(rB0=document.createElement("template"));var Q=rB0;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);WsG=g}g=WsG;return g}}});
RL.prototype.onYtServiceRequestCompleted_=RL.prototype.onYtServiceRequestCompleted_;RL.prototype.onYtServiceRequestSent_=RL.prototype.onYtServiceRequestSent_;RL.prototype.onThumbnailLoaded_=RL.prototype.onThumbnailLoaded_;RL.prototype.onYtNavigate_=RL.prototype.onYtNavigate_;RL.prototype.onThumbnailChanged_=RL.prototype.onThumbnailChanged_;RL.prototype.onHeaderImageWidthChanged_=RL.prototype.onHeaderImageWidthChanged_;RL.prototype.onHeaderImageChanged_=RL.prototype.onHeaderImageChanged_;
RL.prototype.closePopupHandler_=RL.prototype.closePopupHandler_;RL.prototype.openPopupHandler_=RL.prototype.openPopupHandler_;_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],RL.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);
_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],RL.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],RL.prototype,"data",void 0);_.Y([_.a({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.K("design:type",Boolean)],RL.prototype,"primaryIsCancel",void 0);_.Y([_.a({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.K("design:type",Boolean)],RL.prototype,"isCancelButtonHidden",void 0);
_.Y([_.a({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.K("design:type",Boolean)],RL.prototype,"isCheckboxHidden",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],RL.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.Y([_.a({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.K("design:type",Boolean)],RL.prototype,"useOverlayForSpinner_",void 0);
_.Y([_.a({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.K("design:type",Boolean)],RL.prototype,"showSpinner_",void 0);_.Y([_.a({value:!1}),_.K("design:type",Boolean)],RL.prototype,"isActionInProgress_",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.K("design:type",Boolean)],RL.prototype,"hasHeaderImageWidth_",void 0);
_.Y([_.a({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.K("design:type",Boolean)],RL.prototype,"hasLoadingMessage",void 0);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],RL.prototype,"openPopupHandler_",null);_.Y([_.n6("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],RL.prototype,"closePopupHandler_",null);
_.Y([_.k_("data.headerImage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RL.prototype,"onHeaderImageChanged_",null);_.Y([_.k_("data.headerImageWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RL.prototype,"onHeaderImageWidthChanged_",null);_.Y([_.k_("data.thumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RL.prototype,"onThumbnailChanged_",null);
_.Y([_.n6("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],RL.prototype,"onYtNavigate_",null);_.Y([_.n6("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RL.prototype,"onThumbnailLoaded_",null);_.Y([_.n6("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Gc]),_.K("design:returntype")],RL.prototype,"onYtServiceRequestSent_",null);
_.Y([_.n6("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.la]),_.K("design:returntype")],RL.prototype,"onYtServiceRequestCompleted_",null);_.Y([_.jP({is:"yt-confirm-dialog-renderer",noInjection:!0})],RL);var Tte;var hmG;var w8=function(){return _.X.apply(this,arguments)||this};
_.A(w8,_.X);w8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Tr(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
w8.prototype.computeConfirmButton_=function(g){var u={text:g.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};g.confirmNavigationEndpoint?u.navigationEndpoint=g.confirmNavigationEndpoint:g.confirmServiceEndpoint&&(u.serviceEndpoint=g.confirmServiceEndpoint);return u};
w8.prototype.computeShowTitle_=function(g){return!(g==null||!g.title)};
_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],w8.prototype,"data",void 0);_.Y([_.a({computed:"computeShowTitle_(data)"}),_.K("design:type",Boolean)],w8.prototype,"showTitle",void 0);_.Y([_.jP({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],w8);
_.T(w8,"yt-fancy-dismissible-dialog-renderer",function(){if(hmG===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Tte===void 0&&(Tte=document.createElement("template"));var Q=Tte;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);hmG=g}g=hmG;return g});var YPe;var Oav;var cm=function(){var g=_.X.apply(this,arguments)||this;g.spinnerActive=!1;return g};
_.A(cm,_.X);cm.prototype.created=function(){J$f(2201)};
cm.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
cm.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
cm.prototype.onIronOverlayClosed=cm.prototype.onIronOverlayClosed;cm.prototype.onIronOverlayOpened=cm.prototype.onIronOverlayOpened;_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.RB),_.K("design:type",Object)],cm.prototype,"tpYtIronOverlayBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],cm.prototype,"data",void 0);_.Y([_.a(),_.K("design:type",Object)],cm.prototype,"spinnerActive",void 0);
_.Y([_.n6("iron-overlay-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cm.prototype,"onIronOverlayOpened",null);_.Y([_.n6("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cm.prototype,"onIronOverlayClosed",null);_.Y([_.jP({is:"yt-loading-renderer",disableElementRegistration:!0})],cm);
_.T(cm,"yt-loading-renderer",function(){if(Oav===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;YPe===void 0&&(YPe=document.createElement("template"));var Q=YPe;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);Oav=g}g=Oav;return g},{mode:2});var Kss;var xae;var Hm=function(){var g=_.X.apply(this,arguments)||this;g.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);g.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);g.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.A(Hm,_.X);_.P=Hm.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.P.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.P.openPopupHandler_=function(g){g.detail===this.hostElement&&this.hostElement.hidden&&_.YJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.P.onDismissButtonTap_=function(){var g;this.closeOnDismissButton_.has(((g=this.data)==null?void 0:g.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.YJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.onAcceptButtonTap_=function(){var g;this.closeOnAcceptButton_.has(((g=this.data)==null?void 0:g.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.YJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.computeHasHeader_=function(g){return!!g.headerBackgroundImage};
_.P.computeLayoutStyle_=function(g){return g};
_.P.computePopupSize_=function(g){return g};
_.P.computeIconType_=function(g){return g.dialogIcon&&g.dialogIcon.iconType?g.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":g.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":g.dialogIcon.iconType:""};
_.P.computeIsLogo_=function(g){return!!g.dialogIcon&&!!g.dialogIcon.iconType&&(g.dialogIcon.iconType==="YOUTUBE_LOGO"||g.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||g.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.P.computeHasCustomLogo=function(g){return!(g==null||!g.headerForegroundImage)};
_.P.computeCustomLogo=function(g,u){if(g!=null&&g.headerForegroundImage)return g.headerForegroundImageDark?u?g.headerForegroundImageDark:g.headerForegroundImage:g.headerForegroundImage};
_.P.computeHeaderBackgroundImage=function(g,u){if(g!=null&&g.headerBackgroundImage)return u&&(g==null?0:g.headerBackgroundImageDark)?g.headerBackgroundImageDark:g.headerBackgroundImage};
_.P.shouldShowIconContainer=function(g,u){return g&&!u};
_.P.shouldShowNonYouTubeIcon=function(g,u){return!g&&!u};
_.P.getLogoImageId=function(g){var u,q,Q;return(g=(u=this.computeCustomLogo(g,this.isDarkTheme))==null?void 0:(q=u.thumbnails)==null?void 0:(Q=q[0])==null?void 0:Q.height)&&g%31===0?"custom-logo-with-padding":"custom-logo"};
Hm.prototype.openPopupHandler_=Hm.prototype.openPopupHandler_;Hm.prototype.dataChanged_=Hm.prototype.dataChanged_;_.Y([_.I(_.FK.YtRendererstamperBehavior),_.K("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Hm.prototype,"isDarkTheme",void 0);
_.Y([_.a({computed:"computeCustomLogo(data, isDarkTheme)"}),_.K("design:type",Object)],Hm.prototype,"customLogo",void 0);_.Y([_.a({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.K("design:type",Object)],Hm.prototype,"headerBackgroundImage",void 0);_.Y([_.a(),_.K("design:type",Object)],Hm.prototype,"data",void 0);_.Y([_.a({computed:"computeHasHeader_(data)"}),_.K("design:type",Boolean)],Hm.prototype,"hasHeader",void 0);
_.Y([_.a({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.K("design:type",Object)],Hm.prototype,"layoutStyle",void 0);_.Y([_.a({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.K("design:type",Object)],Hm.prototype,"popupSize",void 0);_.Y([_.a({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Hm.prototype,"hasLogo",void 0);
_.Y([_.a({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Hm.prototype,"hasCustomLogo",void 0);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hm.prototype,"dataChanged_",null);_.Y([_.n6("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Hm.prototype,"openPopupHandler_",null);
_.Y([_.jP({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Hm);
_.T(Hm,"yt-upsell-dialog-renderer",function(){if(xae===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;Kss===void 0&&(Kss=document.createElement("template"));var Q=Kss;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);xae=g}g=xae;return g},{mode:2});var Btk=_.r(function(g){return _.p("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.p(_.M,{cond:g.title,then:function(u){return _.p("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},u)}}))},"ol"),zm0=_.r(function(g){return _.p("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.p(_.Up,{data:g.closeButton},{buttonViewModel:function(u){return _.p("div",null,_.p(_.TT,{data:u.data}))}}))},"pl"),nAO=_.r(function(g){var u=g.data;
return _.p(_.U9,null,_.p("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.p("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.p(_.M,{cond:function(){return!!u().image&&!!u().title},
then:function(){return _.p(_.IT,{data:function(){return u().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.p("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.p(_.M,{cond:function(){return u().title},
then:function(q){return _.p("h3",{class:"miniAppGameInfoDialogViewModelTitle"},q)}}),_.p(_.M,{cond:function(){return u().primaryGenre},
then:function(q){return _.p("span",{class:"miniAppGameInfoDialogViewModelGenre"},q)}}))),_.p(_.M,{cond:function(){var q=u().description;
return q&&q.length<=150},
then:function(){return _.p("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.p("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return u().description}))}}))},"ql"),kFT=_.r(function(g){var u=g.ageRating;
return _.p("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.p(_.IT,{data:function(){return{sources:[{url:u().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.p("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.p(_.c2,{text:function(){return u().attributedLabel},
noPreWrap:!0})))},"rl"),SPe=_.r(function(g){g=g.infoRows;
var u=_.Bk().resolve(_.mK),q=_.w("enable_displaying_ppn");return _.p("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.p(_.R4,{each:g},function(Q){return _.p("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.p(_.M,{cond:function(){return Q.label},
then:function(L){return _.p("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},L)}}),_.p(_.M,{cond:function(){return Q.attributedLabel},
then:function(L){return _.p("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.p(_.c2,{text:L,noPreWrap:!0}))}}),_.p(_.M,{cond:function(){return Q.value},
then:function(L){return _.p("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},L)}}),_.p(_.M,{cond:function(){return Q.attributedValue},
then:function(L){return _.p("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.p(_.c2,{text:L,noPreWrap:!0}))}}),_.p(_.M,{cond:function(){return Q.ageRating},
then:function(L){return _.p(kFT,{ageRating:L})}}))}),_.p(_.M,{cond:function(){return q&&u.clientData.has("post_play_nonce")},
then:function(){return _.p("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.p("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.p("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},u.getData("post_play_nonce")))}}))},"sl"),oAv=_.r(function(g){var u=g.data;
return _.p("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.p(Btk,{title:function(){return u().dialogTitle}}),_.p(nAO,{data:u}),_.p(_.M,{cond:function(){return u().infoRow},
then:function(q){return _.p(SPe,{infoRows:q})}}),_.p(zm0,{closeButton:function(){return u().closeButton}}))},"tl");
oAv.idomCompat=!0;_.dL(oAv,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;return _.p("yt-gulp-triggering-dialog-view-model",{class:_.Ty("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.p(_.IT,{data:function(){return u().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.p("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.p("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.p("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.p(_.c2,{text:function(){return u().title}})),_.p(_.M,{cond:function(){return u().bodyText},
then:function(q){return _.p(_.R4,{each:q},function(Q){return _.p("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.p(_.c2,{text:Q}))})}})),_.p("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.p(_.Up,{data:function(){return u().dismissButton}},{buttonViewModel:function(q){return _.p("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.p(_.TT,{data:q.data}))}}),_.p(_.Up,{data:function(){return u().actionButton}},{buttonViewModel:function(q){return _.p("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.p(_.TT,{data:q.data}))}}))))},"ul"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.H2}});var UaV=_.r(function(g){var u=g.data;g=_.dO(function(){return u().agreements},[]);
return _.p("installment-agreements-view-model",{class:_.Ty("ytInstallmentAgreementsViewModelHost")},_.p(_.R4,{each:g},function(q){return _.p("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.p("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.p(_.c2,{text:q.label})),_.p("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.p(_.Up,{data:function(){return q.openButton}},{buttonViewModel:_.TT})))}))},"vl");
UaV.idomCompat=!0;var gB0=_.r(function(g){var u=_.N(_.mX(function(){var x,k;return((x=g.data().createPlaylistDialogFormSchema)==null?0:(k=x.initialValues)==null?0:k.title)?g.data().createPlaylistDialogFormSchema.initialValues.title:""})),q=u.next().value,Q=u.next().value;
u=_.N(_.mX(function(){g.data();return!1}));
var L=u.next().value,E=u.next().value;u=_.N(_.mX(function(){g.data();return!1}));
var y=u.next().value,v=u.next().value;u=_.N(_.mX(function(){var x,k;return(x=g.data().createPlaylistDialogFormSchema)==null?void 0:(k=x.initialValues)==null?void 0:k.visibility}));
var J=u.next().value,f=u.next().value;u=_.N(_.mX(function(){g.data();return!1}));
var t=u.next().value,e=u.next().value;u=_.N(_.mX(function(){var x,k;return(x=g.data().createPlaylistDialogFormSchema)==null?void 0:(k=x.initialValues)==null?void 0:k.isCollaborative}));
var G=u.next().value,R=u.next().value,H=_.Hk("div");_.bX(function(){var x=H.value.querySelector("textarea");x&&(x.value=q())},"axFRaf");
_.I4(function(){var x;DZH((x=g.data().createPlaylistDialogFormSchema)==null?void 0:x.id,{onSubmit:function(){var k=q();var LZ=J(),sb=G(),Rm=g.data();k={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:k,privacyStatus:LZ,videoIds:Rm.videoIds,sourcePlaylistId:Rm.sourcePlaylistId,params:sb?Rm.createPlaylistParamsCollaborationEnabled:Rm.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.Bk().resolve(_.Gy).resolveCommand(k)},
isValid:function(){return L()&&!y()&&!t()}})});
var l=function(x){if(x!==void 0&&(Q(x),!L()&&x.length>0&&E(!0),L())){var k=M0b(g.data());if(k){var LZ=k.minLength;k=k.maxLength;LZ&&x.length<LZ?v(!0):k&&x.length>k?v(!0):v(!1)}}},d=function(){var x=!(!G()||J()!=="PRIVATE");
e(x)},F=function(x){x!==void 0&&(f(x),d())},V=function(){if(t())return exx(g.data())},z=function(){R(!G());
d()},O=function(){return{validate:function(x){if(L()){var k=M0b(g.data());
if(k){var LZ=k.minLength;k=k.translations;if(LZ&&x.length<LZ)return k==null?void 0:k.minLengthErrorMessage}}}}},W=function(){var x=M0b(g.data()),k=x==null?void 0:x.maxLength,LZ;
x=x==null?void 0:(LZ=x.translations)==null?void 0:LZ.maxLengthErrorMessage;if(k&&x)return{maxChars:k,errorMessage:x}};
return _.p("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.p("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:H},_.p(_.Up,{data:function(){return g.data().playlistTitle}},{textFormFieldViewModel:function(x){return _.p(X3z,{data:x.data,
text:q,onInput:l,validation:O,characterLimit:W})},
textFieldViewModel:function(x){return _.p(VHx,{data:x.data,text:q,controlledMode:!0,onInput:l,validation:O,characterLimit:W})}})),_.p("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.p(_.Up,{data:function(){return g.data().playlistVisibility}},{dropdownViewModel:function(x){return _.p(z39,{data:x.data,
onSelected:F,error:V})}})),_.p(_.M,{cond:function(){return!!g.data().playlistCollaborate},
then:function(){return _.p("div",null,_.p(_.Up,{data:function(){return g.data().playlistCollaborate}},{switchListItemViewModel:function(x){return _.p(_.Sqn,{data:x.data,
onTap:z})}}))}}))},"xl");var u4s=_.r(function(g){var u=g.data;return _.p("upsell-offer-table-cell-content-view-model",null,_.p("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.p(_.wi,null,_.p(_.Gv,{when:function(){var q;return(q=u().icon)==null?void 0:q.iconType}},function(){return _.p("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.p(_.B1,{icon:function(){var q;
return(q=u().icon)==null?void 0:q.iconType.toString()}}))}),_.p(_.Gv,{when:function(){return u().title}},function(){return _.p(_.c2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return u().title}})}),_.p(_.Gv,{when:function(){return u().subtitle}},function(){return _.p(_.c2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return u().subtitle}})}),_.p(_.Gv,{when:function(){return u().infoText}},function(){return _.p(_.c2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return u().infoText}})}),_.p(_.Gv,{when:function(){return u().featureDescription}},function(){return _.p(_.c2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return u().featureDescription}})}),_.p(_.Gv,{when:function(){return u().note}},function(){return _.p(_.c2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return u().note}})})),_.p(_.M,{cond:function(){var q;
return(q=u().icon)==null?void 0:q.iconAccessibilityText},
then:function(){return _.p("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var q;return(q=u().icon)==null?void 0:q.iconAccessibilityText})}})))},"yl");
u4s.idomCompat=!0;var q7s=_.r(function(g){var u=g.data;var q=g.cellIndex;var Q=g.rowIndex;return _.p("upsell-offer-table-cell-view-model",null,_.p("div",{class:_.Ty("ytUpsellOfferTableCellViewModelCellWrapper",function(){return u().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":u().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var L,E;return"cell-"+((L=Q==null?void 0:Q())!=null?L:0)+"-"+((E=q==null?void 0:q())!=null?E:0)},
role:function(){return u().isFirstRow?"columnHeader":u().isFirstColumn?"rowheader":"gridcell"}},_.p(_.Up,{data:function(){return u().contents}},{upsellOfferTableCellContentViewModel:u4s})))},"zl");
q7s.idomCompat=!0;var QWe=_.r(function(g){var u=g.data;var q=g.upsellTableIsFirstRow;var Q=g.rowIndex;var L=function(){return(q==null?0:q())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},E=function(){return(q==null?0:q())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.p("ytm-upsell-offer-table-row-view-model",null,_.p("div",{class:function(){return(q==null?0:q())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(Q==null?void 0:Q())+"-1 cell-"+(Q==null?void 0:Q())+"-2"}},_.p(_.Up,{data:function(){return u().rowHeaderCell}},{upsellOfferTableCellViewModel:function(y){return _.p("div",{class:L},_.p(q7s,{data:y.data,
cellIndex:0,rowIndex:Q}))}}),_.p("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.p(_.Up,{data:function(){return u().contentCells}},{upsellOfferTableCellViewModel:function(y,v){return _.p("div",{class:E},_.p(q7s,{data:y.data,
cellIndex:function(){return v()+1},
rowIndex:Q}))}}))))},"Al");
QWe.idomCompat=!0;var LeO=_.r(function(g){var u=g.data;return _.p("ytm-upsell-offer-table-view-model",null,_.p("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.p("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.p(_.Up,{data:function(){return u().rows}},{upsellOfferTableRowViewModel:function(q,Q){return _.p(QWe,{data:q.data,
upsellTableIsFirstRow:function(){return Q()===0},
rowIndex:Q})}}))))},"Bl");
LeO.idomCompat=!0;var EB3=_.r(function(g){var u=function(){return g.data()},q=_.dO(g.noPadding,!1),Q=function(){var E,y;
return(y=(E=u().logo.accessibilityData)==null?void 0:E.label)!=null?y:""},L={};
return _.p("upsell-view-model",{class:_.Ty("ytUpsellViewModelHost",(L.ytUpsellViewModelHostNoPadding=function(){return q()},L.ytUpsellViewModelHostWide=function(){return u().offerTable!==void 0},L))},_.p("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.p(_.M,{cond:function(){return _.Rs(u().logo)},
then:function(E){return _.p(_.IT,{data:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:Q})}})),_.p("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.p(_.c2,{text:function(){return u().title}})),_.p("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.p(_.R4,{each:function(){var E;
return(E=u().subtitles)!=null?E:[]},
keyBy:"INDEX"},function(E){var y={};return _.p("div",{class:_.Ty("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(y.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return u().offerTable!==void 0},y))},_.p(_.c2,{text:E}))})),_.p("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.p(_.R4,{each:function(){var E;
return(E=u().benefitInfos)!=null?E:[]},
keyBy:"INDEX"},function(E){return _.p(_.M,{cond:function(){return E().info},
then:function(y){return _.p("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.p(_.B1,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.p(_.c2,{text:y}))}})})),_.p(_.M,{cond:function(){return u().offerTable!==void 0},
then:function(){return _.p("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.p(_.Up,{data:function(){return u().offerTable}},{upsellOfferTableViewModel:function(E){return _.p(LeO,{data:E.data})}}))}}),_.p("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.p(_.R4,{each:function(){var E;
return(E=u().legalInfos)!=null?E:[]},
keyBy:"INDEX"},function(E){var y={};return _.p("div",{class:_.Ty("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(y.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return u().offerTable!==void 0},y))},_.p(_.c2,{text:E}))})))},"Cl");var P7T=_.r(function(g){var u=g.data;g={};g=(g.ytMiniAppScoreChallengeViewModelScoreRadial=!0,g.ytMiniAppScoreChallengeViewModelDarkScoreRadial=G0p(),g);return _.p("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.p("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return u().title}),_.p("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return u().subtitle}),_.p("div",{class:_.N0(g)},_.p("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return u().score})),_.p("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return u().prompt}))},"Dl");var Njv=function(){this.store=_.CE();this.formId=""};
Njv.prototype.onInit=function(g){g.formId&&(this.formId=g.formId,this.store.dispatch(_.rF({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
Njv.prototype.cleanup=function(){this.store.dispatch(_.rF({type:"RESET_COMMAND_MAP"}))};var sWs=_.r(function(g){function u(v){if(v&&(v=_.c(v,_.Q4)))return Object.assign({},v,{isSelected:E()})}
var q=_.N(_.mX(function(){var v,J;return(J=(v=_.c(g.data().option,_.Q4))==null?void 0:v.isSelected)!=null?J:!1})),Q=q.next().value,L=q.next().value,E=Q;
_.I4(function(){var v;DZH((v=g.data().formSchema)==null?void 0:v.id,{onSubmit:function(){var J=_.Bk().resolve(_.Gy),f=!!g.data().selectedCommand,t=!!g.data().unselectedCommand;if(E()){if(f)var e=g.data().selectedCommand}else t&&(e=g.data().unselectedCommand);e=_.jy(e);u(g.data().option)&&!e?(J="",!f&&t?J="selected ":f&&!t&&(J="unselected "),f=new _.Ji("No "+J+"command found for SelectionListItemFormViewModel"),_.Zf(f)):e&&J.resolveCommand(e)},
isValid:function(){return!0}})});
var y=function(){L(!E())};
_.dB(function(){var v,J,f=(v=g.data())==null?void 0:(J=v.formSchema)==null?void 0:J.id;f&&_.ST()().delete(f)});
return _.p("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.p("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.p(_.c2,{text:function(){return g.data().paragraph}})),_.p(_.M,{cond:function(){return u(g.data().option)},
then:function(v){return _.p(_.A8,{data:v,isCompact:!0,hideSelectionTextChevron:!0,onTap:y,disableHorizontalPadding:!0})}}))},"El");var y1V=_.r(function(g){var u=g.data;var q=g.disablePadding;var Q=g.className;var L=_.Hk("yt-dialog-header-view-model"),E=function(){var J=u().imageBanner;a:switch(u().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var f="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:f="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:J,style:f,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},y=function(){return u().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
v=function(){return u().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.I4(function(){var J=function(){_.YJ(L.value,"yt-refit-popups-action")},f;
(f=L.value)==null||f.addEventListener("image-loaded",J);_.dB(function(){var t;(t=L.value)==null||t.removeEventListener("image-loaded",J)})});
g={};return _.p("yt-dialog-header-view-model",{el:L,class:_.Ty(Q,(g.ytDialogHeaderViewModelHost=!0,g.ytDialogHeaderViewModelHostDisablePadding=q,g.ytDialogHeaderViewModelHostCentered=v,g))},_.p(_.M,{cond:function(){return u().imageBanner},
then:function(){var J={};return _.p("div",{class:_.Ty(Q,(J.ytDialogHeaderViewModelBanner=!0,J.ytDialogHeaderViewModelBannerFullBleed=y,J)),style:_.xH({"max-height":function(){return u().assetContainerMaxHeight!==void 0?u().assetContainerMaxHeight+"px":void 0}})},_.p(_.hW,{data:E,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.p(_.M,{cond:function(){return u().headerBlock},
then:function(){var J={};return _.p("div",{class:_.Ty("ytDialogHeaderViewModelHeaderBlock",(J.ytDialogHeaderViewModelHeaderBlockCentered=v,J))},_.p(_.Up,{data:function(){return u().headerBlock}},{contentPreviewImageViewModel:function(f){return _.p(_.hW,{data:f.data,
notifyOnLoaded:!0})}}))}}),_.p(_.M,{cond:function(){return u().customBanner},
then:function(J){var f={};return _.p("div",{class:_.Ty("ytDialogHeaderViewModelCustomAssetContainer",(f.ytDialogHeaderViewModelCustomAssetContainerCentered=v,f))},_.p(_.Up,{data:J},{avatarStackViewModel:_.MU}))}}),_.p(_.M,{cond:function(){return u().headline},
then:function(J){return _.p("h2",null,_.p(_.c2,{text:J,className:"ytDialogHeaderViewModelText"}))}}))},"Fl");
y1V.idomCompat=!0;var vBV=_.r(function(g){var u=_.wBh(function(){return g.data().formId}),q=u.submitForm,Q=u.isValid;
return _.p("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.p(_.Up,{data:function(){return g.data().panelFooter}},{panelFooterViewModel:function(L){return _.p(jS,{data:L.data,
disablePadding:!0,disablePrimaryButton:function(){return!Q()},
onClickPrimaryButton:function(){q()}})}}))},"Gl");var DSk=_.r(function(g){var u=function(){var q,Q;return(Q=(q=_.c(g.data().rendererContext,_.L3))==null?void 0:q.label)!=null?Q:""};
return _.p("yt-dialog-image-content-view-model",{class:_.Ty("ytDialogImageContentViewModelHost",g.className)},_.p(_.M,{cond:function(){return _.Rs(g.data().image)},
then:function(q){var Q={};return _.p("div",{style:_.xH((Q.width=(0,_.GI)(function(){var L;return(L=g.data().imageMaxWidth)!=null?L:""}),Q)),
class:"ytDialogImageContentViewModelImage"},_.p(_.IT,{data:q,alt:u,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.p(_.c2,{text:function(){return g.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Hl");var jWG=_.r(function(g){var u=_.FI(g,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),q=u.elRefCallback;g=u.Icon;var Q=u.Asset,L=u.assetType,E=u.Title,y=u.LeadingActionHeader,v=u.TrailingActionHeader,J=u.headerPosition,f=u.Content,t=u.buttonLayout,e=u.buttonStyle,G=u.primaryButtonWiz,R=u.secondaryButtonWiz,H=u.contentAlignment,l=u.isFullscreen,d=u.width,F=u.maxHeight,V=u.isHeaderWizDefined,z=u.Header,O=u.isFooterWizDefined,
W=u.Footer;u=_.Hk("dialog-layout",function(mJ){q==null||q(mJ)});
var x=G?function(){var mJ={};return G({buttonOverrides:function(){return{style:(e==null?void 0:e())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Ty((mJ["yt-spec-dialog-layout__dialog-layout-button"]=!0,mJ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(t==null?void 0:t())===0||(t==null?void 0:t())===2},mJ))})}:void 0,k=R?function(){var mJ={};
return R({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Ty((mJ["yt-spec-dialog-layout__dialog-layout-button"]=!0,mJ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(t==null?void 0:t())===0||(t==null?void 0:t())===2},mJ))})}:void 0,LZ=function(){return(!!E||!!y||!!v)&&J()===0},sb={},Rm={},M3={},tT={};
return _.p("dialog-layout",{el:u,class:_.Ty((sb["yt-spec-dialog-layout"]=!0,sb["yt-spec-dialog-layout--dialog-layout-fullscreen"]=l,sb["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!l()},sb["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return F()===1},sb["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(L==null?void 0:L())===1},sb)),
style:function(){return(d==null?void 0:d())!==void 0?"width: "+d()+"px;":""}},g?_.p("div",{class:_.Ty((Rm["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Rm["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!Q&&J()===1},Rm["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return H()===1},Rm))},_.p(g,null)):null,_.p(_.M,{cond:V,
then:function(){return z?_.p("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.p(z,null)):null},
else:function(){return _.p(_.U9,null,_.p(_.M,{cond:LZ,then:function(){return _.p(pqv,{contentAlignment:H,LeadingActionHeader:y,TrailingActionHeader:v,Title:E,isAboveAsset:!!Q})}}),Q?_.p("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.p(Q,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.p("div",{class:_.Ty((M3["yt-spec-dialog-layout__dialog-layout-container"]=!0,M3["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(H==null?void 0:H())===1},
M3["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!E&&!(z&&V())||!!Q&&(J==null?void 0:J())===0},M3))},_.p(_.M,{cond:function(){return E&&!z&&(J==null?void 0:J())===1},
then:function(){return _.p(pqv,{contentAlignment:H,LeadingActionHeader:y,TrailingActionHeader:v,Title:E,isAboveAsset:!1})}}),f?_.p("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.p("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.p(f,null))):null,_.p(_.M,{cond:O,
then:function(){return W?_.p("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.p(W,null)):null}}),x||k?_.p(J1T,{footerClasses:_.Ty((tT["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,tT["yt-spec-dialog-layout__dialog-layout-footer"]=!0,tT["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(t==null?void 0:t())===2},tT["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(t==null?void 0:t())===1},tT)),
PrimaryButton:x,SecondaryButton:k}):null))},"Il"),pqv=_.r(function(g){var u=_.FI(g,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),q=u.contentAlignment,Q=u.LeadingActionHeader;g=u.Title;var L=u.TrailingActionHeader,E=u.isAboveAsset,y=u.enableLeadingActionHeader;u={};return _.p("div",{class:_.Ty((u["yt-spec-dialog-layout__dialog-header-container"]=!0,u["yt-spec-dialog-layout__dialog-header"]=!0,u["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=E,u["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(q==null?void 0:q())===1&&y()},u))},_.p(_.M,{cond:function(){return y()},
then:function(){return Q?_.p("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.p(Q,null)):null}}),g?_.p("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.p(g,null)):null,L?_.p("div",null,_.p(L,null)):null)},"Jl"),J1T=_.r(function(g){var u=g.footerClasses;
var q=g.PrimaryButton;g=g.SecondaryButton;return _.p("div",{class:u},g?_.p(g,null):null,q?_.p(q,null):null)},"Kl");var fiO=new _.Fv("TIME_PICKER_VIEW_MODEL_TOKEN");var Mge=_.r(function(g){var u=g.data;return _.p("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.p("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.p(_.Up,{data:function(){return u().avatar}},{avatarViewModel:_.jv})),_.p("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.p(_.c2,{text:function(){return u().title}})),_.p(_.c2,{text:function(){return u().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ll");var tgV=_.r(function(g){return _.p("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.p(_.c2,{text:function(){return g.data().inviteMessage}})),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.p(_.c2,{text:function(){return g.data().attributedAccountSectionHeaderText}})),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.p(_.Up,{data:function(){return g.data().accountAvatar}},{avatarViewModel:_.jv}),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.p(_.c2,{text:function(){return g.data().accountName}}),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.p(_.c2,{text:function(){return g.data().handle}}))),_.p(_.Up,{data:function(){return g.data().trailingButton}},{buttonViewModel:_.TT})),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.p(_.c2,{text:function(){return g.data().termsOfService}})))},"Ml");var esB=_.r(function(g){var u=g.data;return _.p("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.p("div",{class:"ytAccessConfirmationViewModelContent"},_.p(_.Up,{data:function(){var q;return(q=u().avatar)!=null?q:u().dualAvatar}},{dualAvatarViewModel:function(q){return _.p(_.Ovp,{data:q.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(q){return _.p(_.fG,{data:q.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.p("h2",{class:"ytAccessConfirmationViewModelTitle"},_.p(_.c2,{text:function(){return u().title}})),_.p(_.c2,{text:function(){return u().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Nl");var GWs=_.r(function(g){var u=function(){var v,J;return(v=g.data().formSchema)==null?void 0:(J=v.initialValues)==null?void 0:J.selectedLanguages},q=_.N(_.mX(function(){return u()})),Q=q.next().value,L=q.next().value,E={};
_.bX(function(){var v=g.data().formSchema,J=v==null?void 0:v.submitConfig;g.data()!==E&&(E=g.data(),v&&J&&vZK(v.id,{isValid:function(){var f,t=(f=Q())!=null?f:[],e;f=(e=u())!=null?e:[];if(t.length!==f.length)return!0;e=new Set(f);t=_.N(t);for(f=t.next();!f.done;f=t.next())if(!e.has(f.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:Q()||[]}}},
submitConfig:J}))},"iCaJcc");
var y=function(v){var J=v.key;if(J){var f;if(J&&((f=Q())==null?0:f.includes(J))){var t;L((t=Q())==null?void 0:t.filter(function(e){return e!==J}))}else L([].concat(_.na(Q()||[]),[J]))}};
return _.p("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.p(_.Up,{data:function(){return g.data().checkboxGroup}},{checkboxGroupViewModel:function(v){return _.p(dnz,{data:v.data,
onItemTap:y,selectedKeys:Q,controlledMode:!0,disableHorizontalPadding:g.disableHorizontalPadding})}}))},"Pl");var $S3=_.r(function(g){var u=g.data;var q=void 0;g=_.N(_.mX(function(){var t;return((t=_.c(u().content,ZXt))==null?void 0:t.defaultSelectedKey)||""}));
var Q=g.next().value,L=g.next().value,E,y=function(){L("");var t;(t=q)==null||t.cleanup()};
_.I4(function(){q=new Njv;window.addEventListener("yt-popup-closed",y)});
_.bX(function(){if(q&&E!==u().formId&&(q.onInit(u()),(E=u().formId)&&Q())){var t=q,e={key:Q()};e.command&&t.store.dispatch(aSK(E,e.command))}},"bo7oA");
_.dB(function(){window.removeEventListener("yt-popup-closed",y)});
var v=function(t,e,G){e.key&&G&&e.key!==Q()&&(L(e.key),q&&e.command&&q.store.dispatch(aSK(G,e.command)))},J=function(){if(_.c(u().content,ZXt))return!(Q==null?0:Q())},f=_.Bk().resolve(_.xv(fiO));
return _.p("yt-dialog-view-model",{class:_.Ty("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.p(jWG,{Header:function(){return _.p(_.Up,{data:function(){return u().header}},{dialogHeaderViewModel:function(t){return _.p(y1V,{data:t.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!u().header},
Content:function(){return _.p(_.Up,{data:function(){return u().customContent?u().customContent:u().content}},Object.assign({},{basicContentViewModel:_.cQ,
createPlaylistDialogFormViewModel:gB0,collaborativePlaylistInviteMessageViewModel:tgV,preferredLanguageSettingsPanelViewModel:function(t){return _.p(GWs,{data:t.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:P7T,radioButtonGroupViewModel:function(t){var e=t.data;return _.p(CNx,{data:e,selectedKey:Q,onSelected:v,groupName:function(){return e().formId}})},
selectionListItemFormViewModel:sWs,upsellViewModel:function(t){return _.p(EB3,{data:t.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Mge,installmentAgreementsViewModel:UaV,accessConfirmationViewModel:esB,listViewModel:function(t){return _.p(_.Eu9,{data:t.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:DSk},f&&{timePickerViewModel:f}))},
Footer:function(){return _.p(_.Up,{data:function(){return u().footer}},{panelFooterViewModel:function(t){return _.p(jS,{data:t.data,
disablePadding:!0,disablePrimaryButton:J})},
formPanelFooterViewModel:vBV,formFooterViewModel:function(t){return _.p(Hst,{data:t.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!u().footer}}))},"Rl");
$S3.idomCompat=!0;_.dL($S3,"yt-dialog-view-model",{props:{data:_.H2},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var RsO=_.r(function(g){var u=g.data;return _.p("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.p(_.M,{cond:function(){return u().title},
then:function(q){return _.p("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.p(_.c2,{text:q,className:"ytPanelHeaderViewModelTitle"}))}}),_.p(_.M,{cond:function(){return u().subtitle},
then:function(q){return _.p(_.c2,{text:q,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Sl"),wqO=_.r(function(g){var u=g.data;
var q=_.qNS(function(){return u().rendererContext});
g={};return _.p("yt-panel-header-view-model",{class:_.Ty("ytPanelHeaderViewModelHost",(g.ytPanelHeaderViewModelHostHideDivider=function(){return!!u().shouldHideDivider},g.ytPanelHeaderViewModelHostCompact=function(){return!!u().subtitle},g)),
"aria-label":function(){var Q;return(Q=q())==null?void 0:Q.label}},_.p(_.M,{cond:function(){return _.pn(u().rendererContext)},
then:function(){return _.p(_.hlb,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.D7(u().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.p(RsO,{data:u}))},
else:function(){return _.p(RsO,{data:u})}}),_.p("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.p(_.Up,{data:function(){return u().trailingButtons}},{buttonViewModel:function(Q){return _.p(_.TT,{data:Q.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Tl");
wqO.idomCompat=!0;var c13=_.r(function(g){var u=_.YH(function(E){var y;if((y=g.skipContentClick)==null?0:y.call(g))return!1;g.onContentWrapperClick(E);return!0}),q,Q,L;
return _.p("div",{class:_.Ty("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return g.isAnimating()?"transform: translateY("+g.currentY()+"px);transition: 0.2s":""}},(q=g.header)==null?void 0:q.call(g),_.p("div",{id:g.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.xH({"max-height":(0,_.GI)(g.maxHeightForContentWrapper)}),"on:scroll":_.YH(function(E){return g.onScroll(E),!1}),
"on:touchmove":_.YH(function(E){return E.stopPropagation(),!1})},_.p("div",{el:_.lF(g.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":u},(Q=g.body)==null?void 0:Q.call(g))),(L=g.footer)==null?void 0:L.call(g))},"Ul");
c13.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var HO0=_.r(function(g){var u=_.dO(g.leadingLabel),q=_.dO(g.trailingLabel),Q=_.dO(g.footerButtonType),L=function(){return u()||q()||g.hasPrimaryButton()||g.hasSecondaryButton()},E={},y=_.Ty("yt-spec-bottom-sheet-layout__primary-button",(E["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return Q()===0&&g.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return Q()===1&&g.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return Q()===2&&g.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return Q()===3&&g.hasPrimaryButton()},E));
E={};var v=_.Ty("yt-spec-bottom-sheet-layout__secondary-button",(E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return Q()===1&&g.hasSecondaryButton()},E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return Q()===2&&g.hasSecondaryButton()},E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return Q()===3&&g.hasPrimaryButton()},E));
return _.p(_.M,{cond:g.hasFooterOverride,then:function(){var J;return _.p(_.U9,null,(J=g.footerOverride)==null?void 0:J.call(g))},
else:function(){return _.p(_.M,{cond:L,then:function(){return _.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.p(_.M,{cond:function(){return u()||q()},
then:function(){var J={};return _.p("div",{class:_.Ty("yt-spec-bottom-sheet-layout__footer-label-wrapper",(J["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!g.hasPrimaryButton()},J))},_.p(_.M,{cond:u,
then:function(){return _.p("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},u)}}),_.p(_.M,{cond:q,
then:function(){return _.p("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},q)}}))}}),_.p(_.M,{cond:function(){return g.hasPrimaryButton()||g.hasSecondaryButton()},
then:function(){var J={};return _.p("div",{class:_.Ty("yt-spec-bottom-sheet-layout__footer-button-wrapper",(J["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.b_R,J))},_.p(_.M,{cond:function(){return g.hasSecondaryButton()&&Q()!==0},
then:function(){var f;return _.p("div",{class:v},(f=g.secondaryButton)==null?void 0:f.call(g))}}),_.p(_.M,{cond:g.hasPrimaryButton,
then:function(){var f;return _.p("div",{class:y},(f=g.primaryButton)==null?void 0:f.call(g))}}))}}))}})}})},"Vl");
HO0.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var A1O=_.r(function(g){var u=_.dO(g.title),q=_.dO(g.subtitle);return _.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:g.headerId,"on:touchstart":_.YH(function(Q){var L;(L=g.touchstart)==null||L.call(g,Q);return!1}),
"on:touchmove":_.YH(function(Q){var L;(L=g.touchmove)==null||L.call(g,Q);return!1}),
"on:touchend":_.YH(function(Q){var L;(L=g.touchend)==null||L.call(g,Q);return!1})},_.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.p(_.M,{cond:g.hasHeaderOverride,
then:function(){var Q;return _.p(_.U9,null,(Q=g.headerOverride)==null?void 0:Q.call(g))},
else:function(){var Q={};return _.p("div",{class:_.Ty((Q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=u,Q))},_.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.p(_.M,{cond:u,then:function(){return _.p(_.U9,null,_.p("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},u),_.p(_.M,{cond:q,then:function(){return _.p("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
q)}}))}})),_.p(_.M,{cond:function(){return u()&&g.hasActionHeader()},
then:function(){var L;return _.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(L=g.actionHeader)==null?void 0:L.call(g))}}))}}))},"Wl");
A1O.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.r(function(g){function u(LZ){if(!z&&typeof MutationObserver!=="undefined"){var sb={childList:!0};"MutationObserver"in window&&(z=new MutationObserver(q.bind(void 0,LZ)),z.observe(LZ,sb))}}
function q(LZ){typeof z!=="undefined"&&(O["content-wrapper"]===void 0&&(O["content-wrapper"]=LZ.children[0].clientHeight),l(O["content-wrapper"]),H()>d()||F(H()))}
function Q(){R(window.innerHeight);H()>d()||F(H());W.isFullScreen[0]()&&H()>d()?x().dispatch("Snap To Full Screen",{maxHeight:V()}):x().dispatch("Snap To Neutral Position",{maxHeight:d()})}
function L(LZ){document.body.style.overscrollBehavior="none";LZ.preventDefault();x().dispatch("Touch Start",{event:LZ})}
function E(LZ){LZ.preventDefault();x().dispatch("Touch Move",{event:LZ,contentScrollable:H()>d(),fullContentWrapperHeight:V(),contentWrapperHeight:d(),heightMap:O,contentWrapperId:"content-wrapper",header:HNn(g),footer:HNn(g),headerDivHeight:O["bottom-sheet-header"],footerDivHeight:O["bottom-sheet-footer"]})}
function y(){document.body.style.overscrollBehavior="";W.isFullScreen[0]()?W.currentY[0]()>=60?x().dispatch("Snap To Neutral Position",{maxHeight:d()}):x().dispatch("Snap To Full Screen",{maxHeight:V()}):W.currentY[0]()>=60?v():W.currentY[0]()<=-60&&H()>d()?x().dispatch("Snap To Full Screen",{maxHeight:V()}):x().dispatch("Snap To Neutral Position",{maxHeight:d()})}
function v(){x().dispatch("Close Sheet",{clientHeight:G(),maxHeight:0});setTimeout(function(){cyn()},250)}
var J=_.Hk("div"),f=_.Hk("div"),t=_.N(_.jR(window.innerHeight,void 0,"CmOsU")),e=t.next().value;t=t.next().value;var G=e,R=t;t=_.N(_.jR(0,void 0,"p0Flhb"));e=t.next().value;t=t.next().value;var H=e,l=t;t=_.N(_.mX(function(){var LZ=HNn(g);return.6*G()-$H9(LZ)-Rxp(LZ)}));
e=t.next().value;t=t.next().value;var d=e,F=t,V=function(){var LZ=HNn(g),sb=G(),Rm=O["bottom-sheet-header"],M3=O["bottom-sheet-footer"];return sb-(LZ.hasHeaderFn&&Rm!==void 0?Rm:$H9(LZ))-(LZ.hasFooterFn&&M3!==void 0?M3:Rxp(LZ))-24-24},z=null,O={},W={initialY:_.jR(0,void 0,"sxdESd"),
currentY:_.jR(0,void 0,"GZzqeb"),isAnimating:_.jR(!1,void 0,"vJBupc"),isFullScreen:_.jR(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.mX(d)},x=function(){var LZ=null;return function(){if(!LZ){var sb={initialY:W.initialY[0](),currentY:W.currentY[0](),isAnimating:W.isAnimating[0](),isFullScreen:W.isFullScreen[0](),maxHeightForContentWrapper:W.maxHeightForContentWrapper[0]()};LZ=wHH(sb)}return LZ}}();
_.I4(function(){window.addEventListener("resize",Q);x().subscribe(function(LZ){W.initialY[1](LZ.initialY);W.currentY[1](LZ.currentY);W.isAnimating[1](LZ.isAnimating);W.isFullScreen[1](LZ.isFullScreen);W.maxHeightForContentWrapper[1](LZ.maxHeightForContentWrapper)});
requestAnimationFrame(function(){J.value&&(O["bottom-sheet-header"]=J.value.clientHeight);f.value&&(O["bottom-sheet-footer"]=f.value.clientHeight)})});
_.dB(function(){window.removeEventListener("resize",Q);z&&(z.disconnect(),z=null)});
var k=_.Ty({"bottom-sheet-content-without-icon":function(){var LZ;return!((LZ=g.shouldShowIcons)==null?0:LZ.call(g))}});
return _.p("bottom-sheet-layout",null,_.p(c13,{contentWrapperId:"content-wrapper",isAnimating:function(){return W.isAnimating[0]()},
currentY:function(){return W.currentY[0]()},
maxHeightForContentWrapper:function(){return W.maxHeightForContentWrapper[0]()},
shouldShowIcons:g.shouldShowIcons,skipContentClick:g.skipContentClick,onScroll:function(){var LZ=document.getElementById("bottom-sheet-header"),sb=document.getElementById("content-wrapper");if(LZ&&sb){var Rm={};Rm=(Rm["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Rm["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Rm);LZ.className=sb.scrollTop>1?_.N0(Rm):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:cyn,contentWrapperEl:function(LZ){u(LZ);requestAnimationFrame(function(){q(LZ)})},
header:function(){return _.p("div",{el:J},_.p(A1O,{touchstart:L,touchmove:E,touchend:y,title:g.headerTitle,subtitle:g.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:g.headerFn,hasHeaderOverride:g.hasHeaderFn,actionHeader:g.headerActionHeader,hasActionHeader:g.hasHeaderActionHeader}))},
footer:function(){return _.p("div",{el:f},_.p(HO0,{footerButtonType:g.footerButtonType,leadingLabel:g.footerLeadingLabel,trailingLabel:g.footerTrailingLabel,primaryButton:g.footerPrimaryButton,hasPrimaryButton:g.hasFooterPrimaryButton,secondaryButton:g.footerSecondaryButton,hasSecondaryButton:g.hasFooterSecondaryButton,footerOverride:g.footerFn,hasFooterOverride:g.hasFooterFn}))},
body:function(){return _.p(_.M,{cond:g.hasContentFn,then:function(){var LZ;return _.p("div",{class:k},(LZ=g.contentFn)==null?void 0:LZ.call(g))}})}}))},"Xl").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var ZOO=_.r(function(g){var u=_.Bk().resolve(_.vy);return _.p("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.YH(function(){return void u.closeSheet()})},_.p(_.M,{cond:function(){return!!g.header},
then:function(){return _.p("div",{class:"ytContextualSheetLayoutHeaderContainer"},g.header())}}),_.p(_.M,{cond:function(){return!!g.content},
then:function(){return _.p("div",{class:"ytContextualSheetLayoutContentContainer"},g.content())}}),_.p(_.M,{cond:function(){return!!g.footer},
then:function(){return _.p("div",{class:"ytContextualSheetLayoutFooterContainer"},g.footer())}}))},"Yl");
ZOO.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var liT=_.r(function(g){var u=g.data;var q=_.Bk().resolve(_.Gy),Q=_.Hk("yt-sheet-view-model",function(L){if(_.w("web_focus_first_element_sheet")||!_.w("sheet_focus_first_killswitch"))return L.addEventListener("focus",function(){sML(L)}),function(){L.removeEventListener("focus",function(){sML(L)})}});
g={};return _.p("yt-sheet-view-model",{"on:mousedown":_.YH(function(L){_.w("sheet_focus_first_killswitch")||L.currentTarget!==L.target&&L.preventDefault()}),
"on:focus":_.YH(function(){_.w("sheet_focus_first_killswitch")||sML(Q.value)}),
"on:mouseleave":_.YH(function(){var L,E=u==null?void 0:(L=u())==null?void 0:L.rendererContext,y;(L=(y=_.c(E,_.jJ))==null?void 0:y.onHoverEnd)&&q.resolveCommand(L)}),
class:_.Ty("ytSheetViewModelHost",(g.ytSheetViewModelContextual=!0,g.ytSheetViewModelDisableBackdropFilter=_.w("web_disable_backdrop_filter"),g)),el:Q,tabindex:-1},_.p(_.M,{cond:u,then:function(L){return _.p(ZOO,{header:function(){return _.p(_.Up,{data:function(){return L().header}},{panelHeaderViewModel:wqO})},
content:function(){return _.p(_.Up,{data:function(){return L().content}},{listViewModel:function(E){return _.p(_.Eu9,{data:E.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:EB3,miniAppScoreChallengeViewModel:P7T})},
footer:function(){return _.p(_.Up,{data:function(){return L().footer}},{panelFooterViewModel:jS})}})}}))},"Zl");
liT.idomCompat=!0;_.dL(liT,"yt-sheet-view-model",{props:{data:_.H2}});var iOO=_.r(function(g){var u=function(){var q;return(q=g.data().enableDebuggingFeatures)!=null?q:!1};
return _.p("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.p(_.R4,{each:function(){var q;return(q=g.data().stickers)!=null?q:[]}},function(q){return _.p(Iis,{data:function(){return q},
debugMode:u})}))},"$l"),Iis=_.r(function(g){var u=_.FI(g,{debugMode:!1}).debugMode,q=_.dO(function(){var J;
return(J=g.data().region)==null?void 0:J.w},0),Q=_.dO(function(){var J;
return(J=g.data().region)==null?void 0:J.h},0),L=_.dO(function(){var J;
return(J=g.data().region)==null?void 0:J.x},0),E=_.dO(function(){var J;
return(J=g.data().region)==null?void 0:J.y},0),y=_.YH(function(){var J=g.data().onTap;
J&&_.ey(J)}),v={};
return _.p("div",{class:_.Ty("ytStoriesStickerLayerViewModelSticker",(v.ytStoriesStickerLayerViewModelDebugMode=u,v)),style:_.xH({width:function(){return 100*q()+"%"},
height:function(){return 100*Q()+"%"},
left:function(){return 100*L()+"%"},
top:function(){return 100*E()+"%"},
"flex-direction":function(){return Ayn(g.data().flexDirection)},
"justify-content":function(){return ZNf(g.data().justifyContent)},
"align-items":function(){return lXC(g.data().alignItems)}}),
"on:click":y},_.p(_.Up,{data:function(){return g.data().button||g.data().toggleButton}},{buttonViewModel:function(J){return _.p(_.TT,{data:J.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(J){return _.p(_.E6,{data:J.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"am");var bO3=_.r(function(g){var u=function(){return g.data()},q={},Q=_.N(_.jR(!1,void 0,"LkwKDb")),L=Q.next().value,E=Q.next().value,y=_.dO(function(){return u().backgroundColor},0);
Q=_.dO(function(){return u().actionButtons},[]);
var v=_.dO(function(){return u().stickerLayer},{}),J=_.qNS(function(){return u().rendererContext}),f=function(){var e,G;
return{animationRef:q,animationConfig:{autoplay:!1,loop:!1,path:(G=(e=u().foregroundAnimation)==null?void 0:e.url)!=null?G:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){E(!0)},
complete:function(){g.navigateToNextItemOnLottieComplete()}}}},t=function(){var e,G,R,H,l,d,F,V;
return{animationConfig:{autoplay:(d=(e=u().backgroundAnimation)==null?void 0:(G=e.settings)==null?void 0:G.autoplay)!=null?d:!1,loop:(F=(R=u().backgroundAnimation)==null?void 0:(H=R.settings)==null?void 0:H.loop)!=null?F:!1,path:(V=(l=u().backgroundAnimation)==null?void 0:l.url)!=null?V:"",name:"stories_item_background_animation"}}};
_.bX(function(){if(g.isVisible()&&L()){var e;(e=q.lottieEl)==null||e.play();g.animationRef()&&(g.animationRef().lottieEl=q.lottieEl)}else{var G;(G=q.lottieEl)==null||G.stop()}},"dlAj1b");
return _.p("yt-stories-item-view-model",{"aria-label":function(){var e;return(e=J())==null?void 0:e.label},
class:"ytStoriesItemViewModelHost",style:_.xH({"background-color":function(){return _.jh(y())+";"}})},_.p("div",{class:"ytStoriesItemViewModelAssetContent"},_.p(_.M,{cond:function(){return!!u().backgroundAnimation},
then:function(){return _.p(_.B2,{data:t,animationName:function(){return t().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.p(_.M,{cond:function(){return!!u().backgroundImage},
then:function(){return _.p(_.IT,{data:function(){return u().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.p(_.M,{cond:function(){return!!u().foregroundAnimation},
then:function(){return _.p(_.B2,{data:f,animationName:function(){return f().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.p(_.M,{cond:function(){return!!u().foregroundImage},
then:function(){return _.p(_.IT,{data:function(){return u().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.p("div",{class:"ytStoriesItemViewModelTopShadow"}),_.p(_.Up,{data:function(){return v()}},{storiesStickerLayerViewModel:iOO})),_.p("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.xH({"background-color":function(){return _.jh(y())}})},_.p("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.p(_.R4,{each:Q},function(e){return _.p(C7e,{data:function(){return e},
pauseAutoNavigation:g.pauseAutoNavigation})}))))},"cm"),dSv={style:"overlay",
type:"outline"},C7e=_.r(function(g){var u={};return _.p("div",{class:_.Ty("ytStoriesItemViewModelActionButton",(u.ytStoriesItemViewModelStretchedActionButton=function(){return g.data().size==="STORIES_BUTTON_SIZE_STRETCH"},u)),
"on:click":_.YH(g.pauseAutoNavigation)},_.p(_.Up,{data:function(){return g.data().button}},{buttonViewModel:function(q){return _.p(_.TT,{data:q.data,
buttonOverrides:dSv})}}))},"dm");var FeO={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.dL(_.r(function(g){var u=function(){var M3;return(M3=g.data().startIndex)!=null?M3:0},q=_.N(_.mX(u)),Q=q.next().value,L=q.next().value;
q=_.N(_.jR(!1,void 0,"sjy7s"));var E=q.next().value,y=q.next().value,v=function(){var M3;return(M3=g.data().storyItems)!=null?M3:[]},J={},f=_.Hk("yt-stories-viewer-view-model"),t=function(){return g.data().dismissButton},e=function(){var M3;
return _.jy((M3=_.c(t(),_.Rn))==null?void 0:M3.onTap)},G=_.Hk("div"),R,H,l=!1,d=function(){var M3;
(M3=R)==null||M3.cancel();R=F(Q()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});R.onfinish=function(){var tT=_.c(v()[Q()],TWL),mJ,hT;tT!=null&&tT.foregroundAnimation&&((tT==null?0:(mJ=tT.foregroundAnimation)==null?0:mJ.url)||(tT==null?0:(hT=tT.foregroundAnimation)==null?0:hT.payload))||(Q()!==v().length-1?(L(Q()+1),d()):e()&&_.fr(e()))}},F=function(M3){return G.value.children[M3].children[0]},V=function(){for(var M3=0;M3<Q();M3++)F(M3).style.transform=
"scaleX(1)"},z=function(){l||(E()?y(!1):(Q()===v().length-1&&e()&&_.fr(e()),F(Q()).style.transform="scaleX(1)",Q()!==v().length-1&&(L(Q()+1),d())))},O=function(){l||(E()?y(!1):(F(Q()).style.transform="scaleX(0)",Q()!==0&&L(Q()-1),d()))},W=function(){y(!0)},x=function(){F(Q()).style.transform="scaleX(1)";
Q()!==v().length-1?(L(Q()+1),d()):e()&&_.fr(e())};
q=function(){l=!1;H=setTimeout(function(){y(!0);l=!0},300)};
var k=function(){clearTimeout(H);l&&E()&&y(!1)};
_.bX(function(){if(E()){var M3;(M3=R)==null||M3.pause();var tT;(tT=J.lottieEl)==null||tT.pause()}else{var mJ;(mJ=R)==null||mJ.play();var hT;(hT=J.lottieEl)==null||hT.play()}},"vAvZob");
_.bX(function(){V();var M3;(M3=f.value)==null||M3.focus();Q()===u()&&d()},"uSlfE");
var LZ=function(M3){M3.key==="ArrowLeft"?O():M3.key==="ArrowRight"&&z()},sb=function(M3){if(M3.target===f.value){(M3=e())&&_.fr(M3);
clearTimeout(H);var tT;(tT=R)==null||tT.cancel();var mJ;(mJ=J.lottieEl)==null||mJ.stop();window.removeEventListener("keydown",LZ);window.removeEventListener("yt-popup-closed",sb)}},Rm=function(M3){if(M3.target===f.value){var tT;
(tT=f.value)==null||tT.focus();var mJ;(mJ=J.lottieEl)==null||mJ.play();window.addEventListener("keydown",LZ);window.addEventListener("yt-popup-closed",sb)}};
_.I4(function(){V();d();window.addEventListener("yt-popup-opened",Rm)});
return _.p("yt-stories-viewer-view-model",{el:f,class:_.Ty("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.p("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.p("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.YH(O),"on:mousedown":_.YH(q),"on:mouseup":_.YH(k),"on:mouseleave":_.YH(k)}),_.p("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.YH(z),"on:mousedown":_.YH(q),"on:mouseup":_.YH(k),"on:mouseleave":_.YH(k)})),
_.p("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.p(_.Up,{data:v},{storiesItemViewModel:function(M3,tT){var mJ=M3.data;return _.p(_.M,{cond:function(){return Math.abs(tT()-Q())<=1},
then:function(){var hT={};return _.p("div",{class:_.Ty("ytStoriesViewerViewModelStoryItem",(hT.ytStoriesViewerViewModelActiveStoryItem=function(){return tT()===Q()},hT))},_.p(bO3,{data:mJ,
pauseAutoNavigation:W,navigateToNextItemOnLottieComplete:x,isVisible:function(){return tT()===Q()},
animationRef:J}))}})}})),_.p("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:G},_.p(_.R4,{each:v},function(){return _.p("div",{class:"ytStoriesViewerViewModelProgressBar"},_.p("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.p("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.p(_.IT,{data:FeO,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.p("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.p(_.Up,{data:function(){return g.data().menuButton}},{buttonViewModel:function(M3){return _.p(_.TT,{data:M3.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.p(_.Up,{data:function(){return g.data().muteButton}},{toggleButtonViewModel:function(M3){return _.p(_.E6,{data:M3.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.p(_.Up,{data:t},{buttonViewModel:function(M3){return _.p(_.TT,{data:M3.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"gm"),"yt-stories-viewer-view-model",{props:{data:_.H2}});_.dL(_.r(function(g){var u=g.data;var q=_.Hk("yt-gen-ai-feedback-form-view-model"),Q=[];return _.p("yt-gen-ai-feedback-form-view-model",{el:q,class:"ytGenAiFeedbackFormViewModelHost"},_.p(_.c2,{text:function(){return u().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.p("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.p(_.Up,{data:function(){return u().feedbackChips}},{toggleButtonViewModel:function(L){var E=L.data;
return _.p(_.E6,{data:E,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(y){var v=E();v=_.c(v,_.cF);v=_.c(v==null?void 0:v.defaultButtonViewModel,_.Rn).trackingParams;y?Q.push(v):(y=Q.indexOf(v),y>-1&&Q.splice(y,1))}})}})),_.p(_.c2,{text:function(){return u().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.p("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.p(_.Up,{data:function(){return u().submitButton}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){IXb(q.value,Q,u().uniqueId)}})}}),_.p(_.Up,{data:function(){return u().moreFeedbackButton}},{buttonViewModel:function(L){return _.p(_.TT,{data:L.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"hm"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.H2},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var AC=function(){return _.X.apply(this,arguments)||this};
_.A(AC,_.X);AC.prototype.created=function(){J$f(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Zkh);var g=_.Bk().resolve(_.Z2Z);g&&(g.container=this.ytPopupContainerBehavior);if(g=_.Bk().resolve(_.vy))g.container=this.ytPopupContainerBehavior;if(g=_.Bk().resolve(_.D5)){var u=this.ytPopupContainerBehavior;g.containerWasInjected?_.Io(Error("vj")):g.container=u}};
AC.prototype.ensurePopupBelowPlayer=function(g,u){var q=_.Bk().resolve(_.xv(_.ba));if(!q||!q.isOnWatch()||!_.F0())return!1;q=q.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.U3().height>q+this.getPopupHeight(g,u)?(g.style.top="auto",g.style.bottom="0px"):(g.style.top=q+"px",g.style.bottom="auto");return!0};
AC.prototype.getPopupHeight=function(g,u){u&&(g.cachedPopupHeight=0);if(!g.cachedPopupHeight){u=0;var q=g.clientHeight,Q=window.getComputedStyle(g);u+=parseInt(Q.marginTop,10);u+=parseInt(Q.marginBottom,10);g.cachedPopupHeight=q+u}return g.cachedPopupHeight};
AC.prototype.getElement=function(g){return document.createElement(g)};
_.Y([_.I(TC0.YtPopupContainerBehavior),_.K("design:type",Object)],AC.prototype,"ytPopupContainerBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],AC.prototype,"ytComponentBehavior",void 0);_.Y([_.fE({disableElementRegistration:!0,is:"ytd-popup-container"})],AC);
_.T(AC,"ytd-popup-container",function(){if(b9V!==void 0)return b9V;var g=document.createElement("template");_.Z(g,"\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");g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);return b9V=g},{mode:1});var mSk;var aie={};aie.YtLogYpcFlowCommandsBehavior=[_.xK.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(g){_.c(g,K0C)&&(g=_.c(g,K0C))&&(g.serializedTransactionFlowLoggingParams?_.udS(g.serializedTransactionFlowLoggingParams):g.serializedYpcCancelFlowLoggingParams?(g=g.serializedYpcCancelFlowLoggingParams)&&Kg("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",g):g.serializedYpcResumeFlowLoggingParams?(g=g.serializedYpcResumeFlowLoggingParams)&&Kg("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",g):g.serializedYpcPauseFlowLoggingParams?(g=g.serializedYpcPauseFlowLoggingParams)&&
Kg("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",g):g.serializedYpcRefundFlowLoggingParams?(g=g.serializedYpcRefundFlowLoggingParams)&&TFC("YPC_EVENT_TYPE_START",g):g.serializedYpcDeactivateFlowLoggingParams?(g=g.serializedYpcDeactivateFlowLoggingParams)&&Kg("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",g):g.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(g=g.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&Kg("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",g))},
handleLogYpcFlowDismiss_:function(g){_.c(g,OXL)&&(g=_.c(g,OXL),g.serializedTransactionFlowLoggingParams?_.qJu(g.serializedTransactionFlowLoggingParams):g.serializedYpcCancelFlowLoggingParams?(g=g.serializedYpcCancelFlowLoggingParams)&&Kg("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",g):g.serializedYpcResumeFlowLoggingParams?(g=g.serializedYpcResumeFlowLoggingParams)&&Kg("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",g):g.serializedYpcPauseFlowLoggingParams?(g=g.serializedYpcPauseFlowLoggingParams)&&
Kg("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",g):g.serializedYpcRefundFlowLoggingParams&&(g=g.serializedYpcRefundFlowLoggingParams)&&TFC("YPC_EVENT_TYPE_CANCEL",g))}}];var Vgk={};Vgk.YtCancelRecurrenceBehavior=[_.M8.YtComponentBehavior,_.lRR,{attached:function(){var g=this;oox(this,function(u,q){return g.ypcCancelRecurrenceHandler(u,q)})},
ypcCancelRecurrenceHandler:function(g,u){var q=this;if(!u||!u.ypcCancelRecurrenceEndpoint)return!1;if(!u.ypcCancelRecurrenceEndpoint.params)return _.a4(Error("vm")),!0;_.$b(this.hostElement);var Q=_.R9.instance,L=_.Bk().resolve(_.xv(_.qR));Q&&_.wv(Q,u)?_.ce(Q,u).then(function(E){q.ypcCancelRecurrenceSuccess_(g,u,{data:E})},function(E){q.ypcCancelRecurrenceFailure_(g,u,E)}).thenCatch(function(){_.a4(Error("wm"))}):L?L.requestDataForServiceEndpoint(u).then(function(E){q.ypcCancelRecurrenceSuccess_(g,
u,E)},function(E){q.ypcCancelRecurrenceFailure_(g,u,E)}).thenCatch(function(){_.a4(Error("wm"))}):_.a4(Error("xm"));
return!0},
ypcCancelRecurrenceSuccess_:function(g,u,q){_.R1(this.hostElement);q.data||(q={data:q});q.data&&q.data.actions&&_.xJ(this.hostElement,q.data.actions,this.hostElement);q.data.messageRenderer?K7E(u.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(u=u.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&Kg("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",u);_.hJ(g,"yt-service-request-completed",q)},
ypcCancelRecurrenceFailure_:function(g,u,q){_.R1(this.hostElement);K7E(u.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.hJ(g,"yt-service-request-error",{error:q,params:[g,u]})}}];var XqV=function(g,u){_.gq.call(this,u)};
_.A(XqV,EfZ);var r10={};r10.YtCompleteTransactionBehavior=[_.M8.YtComponentBehavior,_.lRR,{attached:function(){var g=this;oox(this,function(u,q){return g.ypcCompleteTransactionHandler(u,q)})},
completeTransaction:function(g,u){var q=this;u={payments_payload:window.btoa(u.integratorData),buybucket_params:g.data.buybucketParams,offer_params:g.data.offerParams};var Q=_.Bk().resolve(_.qR),L=g.data.completeTransactionEndpoint,E=this.get("ypcCompleteTransactionEndpoint.actions",L);E&&_.xJ(this.hostElement,E,this.hostElement);return(E=_.R9.instance)&&_.wv(E,L)?_.ce(E,L,u).then(function(y){return!y||(y==null?0:y.error)?(y=q.get("data.serializedTransactionFlowLoggingParams",g),_.NY(new Ls("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
y))):{data:y}}).then(function(y){return q.handleCompleteTransactionSuccess_(y,g)},function(){return q.handleCompleteTransactionFailure_(g)}):Q.requestDataForServiceEndpoint(L,u).then(function(y){return q.handleCompleteTransactionSuccess_(y,g)},function(){return q.handleCompleteTransactionFailure_(g)})},
handleCompleteTransactionSuccess_:function(g,u){g.data||(g={data:g});if(g.data.messageRenderer)return _.NY(new XqV(g.data.messageRenderer));if(g.data.trackingParams){var q=_.j_(),Q=_.JJ();q&&Q&&_.cC(q,Q,_.Lr(g.data.trackingParams))}u=this.get("data.serializedTransactionFlowLoggingParams",u);hN9(u);return _.BX(g)},
handleCompleteTransactionFailure_:function(g){g=this.get("data.serializedTransactionFlowLoggingParams",g);_.IE("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g);return _.NY(new Ls("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g))},
ypcCompleteTransactionHandler:function(g,u){var q=this;if(!u.ypcCompleteTransactionEndpoint)return!1;if(!u.ypcCompleteTransactionEndpoint.transactionParams)return _.a4(Error("ym")),!0;u.ypcCompleteTransactionEndpoint&&u.ypcCompleteTransactionEndpoint.gtmData&&_.LK(u.ypcCompleteTransactionEndpoint.gtmData);var Q=_.Bk().resolve(_.xv(_.qR));if(Q){_.$b(this.hostElement);var L=_.R9.instance;L&&_.wv(L,u)?_.ce(L,u).then(function(E){return!E||(E==null?0:E.error)?(E=q.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
u),_.NY(new Ls("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",E))):{data:E}}).then(function(E){_.hJ(g,"yt-service-request-completed");
q.ypcCompleteTransactionSuccess_(u,E)},function(){return q.ypcCompleteTransactionFailure_(u)}):Q.requestDataForServiceEndpoint(u).then(function(E){_.hJ(g,"yt-service-request-completed");
q.ypcCompleteTransactionSuccess_(u,E)},function(){return q.ypcCompleteTransactionFailure_(u)})}return!0},
ypcCompleteTransactionSuccess_:function(g,u){_.R1(this.hostElement);u.data||(u={data:u});_.YJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);u.data.messageRenderer||u.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(g):(_.LK('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",g));u.data.actions&&(g=Spp(u.data.actions),u=oqb(u.data.actions),g.length&&_.KV(this.hostElement,
g),u.length&&_.xJ(this.hostElement,u,this.hostElement))},
ypcCompleteTransactionFailure_:function(g){_.R1(this.hostElement);_.YJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",g,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(g,u,q){if(u=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",u))u={serializedTransactionFlowLoggingParams:u},q&&(u.errorType=q),_.H6(g,u),_.A_()}}];var WeO={};WeO.YtEndpointHandlerWithYpcBehavior=[_.lRR,_.xK.YtActionHandlerBehavior,[{openWalletDialog:function(g,u,q,Q,L,E,y){var v=this,J=_.A9();u=u.replace(/-/g,"+").replace(/_/g,"/");var f=_.qf().get("hl");_.qou(_.r_(_.id),u,J.resolve,L,function(t){E&&E();J.reject(t)},f,function(t){return v.onServerBackendAnalyticEvent_(g,q,t)},this.onDialogClose_.bind(this),Q,y);
return J.promise},
openFixFlowDialog:function(g,u,q,Q){g=g.replace(/-/g,"+").replace(/_/g,"/");_.r_(_.id).openFixFlowDialog(g,u,q,Q)},
onDialogClose_:function(){_.YJ(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(g,u,q){_.hJ(g,"yt-commerce-action-init-done");u&&_.KV(this.hostElement,[u,{backend_analytics:q}])}}],
_.Ov.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(g,u){g=this.get("data.nativeFlowEndpoint",u);u=this.get("data.fallbackEndpoint",u);g?_.KV(this.hostElement,[g]):u&&_.hJ(this.hostElement,"yt-navigate",{endpoint:u})}}],
Vgk.YtCancelRecurrenceBehavior,r10.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 g=this;oox(this,function(u,q,Q){return g.handleYPCEndpoint(u,q,Q)});
this.ypcRegisterActionMapJobId_=_.M_(_.Hv,function(){g.registerActionMap(g.buyFlowActionMap_)})},
detached:function(){var g=this;_.Hv.cancelJob(this.ypcRegisterActionMapJobId_);_.M_(_.Hv,function(){g.unregisterActionMap(g.buyFlowActionMap_)})},
handleYPCEndpoint:function(g,u,q){var Q=u.ypcGetCartEndpoint;if(Q){_.jF("commerce_transaction");var L=Q.gtmId;L&&_.QU(L);(Q=Q.gtmData)&&_.LK(Q)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",u)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(g,u),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",u)!=null?(this.handleYPCFixInstrumentEndpoint_(g,u),!0):u.ypcPauseSubscriptionCommand?(XHZ(this.hostElement,g,u,q),
!0):u.ypcResumeSubscriptionCommand?(TXK(this.hostElement,g,u),!0):u.getPaymentInstrumentsParamsCommand?(mHb(this.hostElement,g,u),!0):u.ypcHandleTransactionEndpoint?(dHp(this.hostElement,g,u,q),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(g,u){var q=this;_.fW("ttcr",void 0,"commerce_transaction");u=u.ypcGetCartEndpoint;var Q=u.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,L=Q.encryptedPurchaseParams,E=Q.serializedTransactionFlowLoggingParams,y=Q.serializedPaymentsClientParams,v=this.createGetCartResponseFromParams_(Q,u.offerParams,E);this.changeButtonState(g,!0);_.fY(this.openWalletDialog(g,L,Q.ypcLogWalletAnalyticDataEndpoint,E,function(){q.changeButtonState(g,!1)},function(){q.changeButtonState(g,
!1)},y).then(function(J){return q.handleBuyFlowCompleteCallback_(g,v,J)},function(){return q.handleOnLoadError(v)}).then(function(J){return void q.handlePostPurchaseSuccess_(g,v,J)},function(J){return void q.handlePostPurchaseError_(J)}),function(){q.changeButtonState(g,!1);
g instanceof Element&&_.hJ(g,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(g,u,q){var Q=g.completeTransactionEndpoint,L=g.handleTransactionEndpoint;u={data:{offerParams:window.btoa(u),serializedTransactionFlowLoggingParams:q}};L?u.data.handleTransactionEndpoint=L:u.data.completeTransactionEndpoint=Q;g.onCartDismissCommand&&(u.data.onCartDismissCommand=g.onCartDismissCommand);return u},
onGetCartServiceRequestCompleted_:function(g,u){var q=this,Q=g.target;if(u&&u.data&&u.data.messageRenderer)_.R1(this.hostElement),this.handleMessageRenderer_(u.data.messageRenderer),this.changeButtonState(Q,!1);else{var L=this.get("data.encryptedPurchaseParams",u),E=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",u),y=this.get("data.ypcLogWalletAnalyticDataEndpoint",u),v=this.get("data.serializedPaymentsClientParams",u),J=this.getLoggingParams_(u);if(J||L||E)g.stopPropagation(),_.fW("ttcr",
void 0,"commerce_transaction"),L||_.R1(this.hostElement),this.changeButtonState(Q,!1),E?_.YJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.FR("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:E}}},this]):L&&(this.changeButtonState(Q,!0),g=null,g=this.openWalletDialog(Q,L,y,J,function(){_.R1(q.hostElement);q.changeButtonState(Q,!1)},function(){_.R1(q.hostElement);
q.changeButtonState(Q,!1)},v),_.fY(g.then(function(f){return q.handleBuyFlowCompleteCallback_(Q,u,f)},function(){return q.handleOnLoadError(u)}).then(function(f){return q.handlePostPurchaseSuccess_(Q,u,f)},function(f){return q.handlePostPurchaseError_(f)}),function(){q.changeButtonState(Q,!1);
_.hJ(Q,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(g,u){u&&u.endpoint&&u.endpoint.ypcGetCartEndpoint&&!u.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",u.endpoint.ypcGetCartEndpoint)&&_.xJ(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",u.endpoint.ypcGetCartEndpoint)],g.target),_.$b(this.hostElement),this.changeButtonState(g.target,!0))},
onServiceRequestError_:function(g,u){if(u&&u.params&&u.params.length){u=_.N(u.params);for(var q=u.next();!q.done;q=u.next())if((q=q.value)&&q.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",q.ypcGetCartEndpoint)&&_.xJ(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",q.ypcGetCartEndpoint)],g.target);_.R1(this.hostElement);this.changeButtonState(g.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(g,u,q){var Q=q.integratorData;return Q==null||Q===""||q.error!=null?(Q=this.getLoggingParams_(u),String(q.error)==="-1"?(u.data.onCartDismissCommand&&_.xJ(this.hostElement,[u.data.onCartDismissCommand],g),_.NY(new Ls("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Q,!0))):_.NY(new Ls("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Q))):u.data.handleTransactionEndpoint?Fbh(this.hostElement,u.data.handleTransactionEndpoint,{payments_payload:Q,funds_guarantee_callback_client_data:q.integratorClientCallbackData}):
this.completeTransaction(u,q)},
handlePostPurchaseSuccess_:function(g,u,q){u=q.data;var Q=!1,L,E;if(u&&((L=u.command)==null?0:(E=L.commandExecutorCommand)==null?0:E.commands)){var y,v;L=(y=u.command)==null?void 0:(v=y.commandExecutorCommand)==null?void 0:v.commands;for(y=0;y<L.length;y++)if(_.c(L[y],_.cP2)){Q=!0;break}}Q||(u&&u.gtmDatas&&u.gtmDatas.length?_.LK(u.gtmDatas[0]):_.LK('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));q.data&&q.data.actions&&(u=Spp(q.data.actions),q=oqb(q.data.actions),u.length&&
_.KV(this.hostElement,u),q.length&&_.xJ(this.hostElement,q,g))},
handlePostPurchaseError_:function(g){g&&g.payload&&g.payload.isUserDismiss||_.Zf(Error("Am"))},
handleOnLoadError:function(g){g=this.getLoggingParams_(g);return _.NY(new Ls("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",g))},
getLoggingParams_:function(g){return this.get("data.serializedTransactionFlowLoggingParams",g)},
handleMessageRenderer_:function(g){var u=_.iL(g,"renderer"),q=_.FR("openPopupConfig");u==="confirmDialogRenderer"&&q&&_.YJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:q.popupTypeMap[u],popup:g}},this])},
handleYPCFixInstrumentEndpoint_:function(g,u){var q=this,Q=u.ypcFixInstrumentEndpoint;u=Q.encryptedFixInstrumentParameters;this.logFixFopEvent_(Q,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(g,!0);this.openFixFlowDialog(u,function(L,E){q.onFixFlowCompleteCallback_(Q,L,E)},function(){return q.changeButtonState(g,!1)},function(){q.changeButtonState(g,!1);
q.logFixFopEvent_(Q,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(g,u,q){var Q=_.ri("payments.business.integration.scenario.FixInstrument");if(u==Q.IntegratorCallbackType.ON_COMPLETE){u="FIX_FOP_EVENT_TYPE_CANCEL";var L=null;q.error!=null?q.error!=Q.OnCompleteCallbackError.USER_CANCELLED&&(_.xJ(this.hostElement,[g.errorAction],this.hostElement),u="FIX_FOP_EVENT_TYPE_FAILURE",L="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.xJ(this.hostElement,[g.successAction],this.hostElement),u="FIX_FOP_EVENT_TYPE_SUCCESS");_.xJ(this.hostElement,[g.onFinishAction],
this.hostElement);this.logFixFopEvent_(g,u,L)}},
logFixFopEvent_:function(g,u,q){(g=g.serializedFixFopLoggingParams)?(u={eventType:u,serializedFixFopLoggingParams:g},q!=null&&(u.errorType=q),_.H6("fixFopFlow",u),_.A_()):_.Zf(Error("Bm"))},
changeButtonState:function(g,u){_.w("enable_ypc_spinners")&&g&&(g.is==="yt-button-renderer"||g.is==="ytd-button-renderer")&&(g.disabled=u)}}];var Tj3=function(g){this.JSC$33937_clientRoot=g;this.feedbackCollectorActionMap={"yt-help-dialog-requested":YQp,"yt-feedback-dialog-requested":hxZ,"yt-signal-action-help":ONf,"yt-signal-action-send-feedback":KbZ,"yt-send-feedback-action":BX9,"yt-user-feedback-endpoint":zxz};_.XU(_.VC.getInstance(),this.feedbackCollectorActionMap,this.JSC$33937_clientRoot)},hsT;var Y7k=function(g){this.JSC$33942_clientRoot=g;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":n2Z.bind(null,this.JSC$33942_clientRoot),"yt-signal-action-delete-all-downloads":SQK,"yt-signal-action-delete-download":o2p,"yt-signal-action-delete-playlist-download":gkK,"yt-signal-action-install-pwa":PJK,"yt-signal-action-refresh-downloads":L2K,"yt-offline-video-endpoint":sVn,"yt-offline-playlist-endpoint":vkZ,"yt-update-local-app-setting-command":plE,"yt-offline-orchestration-action-command":jVb,
"yt-signal-action-undo-delete-download":qOE,"yt-local-watch-history-command":tkb,"yt-signal-action-mark-download-to-mobile-edu-shown":GAz};_.XU(_.VC.getInstance(),this.downloadManagerActionMap,this.JSC$33942_clientRoot);_.c9.instance=new _.c9},OOv;var Zp=function(){var g=_.X.apply(this,arguments)||this;g.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_"};g.remoteApi_=null;return g};
_.A(Zp,_.X);_.P=Zp.prototype;
_.P.ready=function(){_.w("polymer_enable_mdx")&&(J9h({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.w("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.w("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.w("enable_cast_short_lived_lounge_token")}),_.Ur("yt-remote-connection-change",this.handleConnectionChange_,this),_.Ur("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=RGf())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.P.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.P.handleConnectionChange_=function(g){(this.mdxConnected=g)?(g=MTx(),!g&&kyf()&&SEZ()&&(g={key:"cast-selector-receiver",name:SEZ()}),g=g.name):g=null;this.receiverName=g;_.Fo(this.remoteApi_);(this.remoteApi_=RGf())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.P.handleReceiverAvailabilityChange_=function(){var g=fc9();kyf()&&_.P9("yt-remote-cast-available")&&g.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=g.length>0};
_.P.handleRemoteQueueChange_=function(){var g=this.currentVideoId_,u=this.currentListId_,q=HB(this.remoteApi_);this.currentVideoId_=q.videoId;this.currentListId_=q.listId;this.currentVideoId_&&_.YJ(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.w("polymer_enable_mdx_queue")?this.currentListId_:null,g,u])};
_.P.handleAddToQueueAction_=function(g){g=_.c(g,OPL);this.remoteApi_&&(g.videoId?this.remoteApi_.addVideo(g.videoId):g.playlistId&&this.remoteApi_.addPlaylist(g.playlistId))};
_.P.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.P.handleInsertInQueueAction_=function(g){g=_.c(g,KDb);this.remoteApi_&&g.videoId&&this.remoteApi_.JSC$20144_insertVideo(g.videoId)};
_.P.handleRemoveFromQueueAction_=function(g){g=_.c(g,xoz);this.remoteApi_&&g.videoId&&this.remoteApi_.JSC$20144_removeVideo(g.videoId)};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],Zp.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a(),_.K("design:type",Object)],Zp.prototype,"appId",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Zp.prototype,"mdxConnected",void 0);_.Y([_.a(),_.K("design:type",Boolean)],Zp.prototype,"receiverAvailable",void 0);_.Y([_.a(),_.K("design:type",Object)],Zp.prototype,"receiverName",void 0);_.Y([_.a(),_.K("design:type",Object)],Zp.prototype,"currentVideoId_",void 0);
_.Y([_.a(),_.K("design:type",Object)],Zp.prototype,"currentListId_",void 0);_.Y([_.jP({is:"yt-mdx-manager",disableElementRegistration:!0})],Zp);_.T(Zp,"yt-mdx-manager",void 0,{mode:2});var Ke3;var xSO;var l9=function(){var g=_.X.apply(this,arguments)||this;g.APP_IDS={ytr:3,ytm:5};g.JSC$23225_timeoutId_=0;g.actionMap={"yt-open-create-family-dialog":"open"};return g};
_.A(l9,_.X);_.P=l9.prototype;_.P.created=function(){J$f(2200)};
_.P.detached=function(){this.observer_&&this.observer_.disconnect()};
_.P.open=function(g,u){var q=this,Q=g.serializedYpcFamilyCreateLoggingParams;this.JSC$23225_timeoutId_=setTimeout(this.abort_.bind(this,g.postFlowErrorEndpoint,Q),3E4);u&&(this.onReadyCallback_=u);var L=_.Tr(this.hostElement).querySelector("#unicorn-iframe");Q&&Q&&W7f("ypcFamilyCreateFlowStarted",Q);_.EaZ("family_creation",function(){var E=_.ri("gapi.family_creation.render");_.ri("gapi.config.update")("iframes/family_creation/url",q.getFamilyCreationUrlWithUnicornParams_());var y=3;g.appId&&g.appId in
q.APP_IDS&&(y=q.APP_IDS[g.appId]);y={authUser:_.FR("SESSION_INDEX")||0,clientId:y,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.FR("HL"),initialflow:[4,5,6,7],m:q.isMobile?1:0,onFlowComplete:q.onUnicornFlowComplete_.bind(q,g.postFlowSuccessEndpoint,Q),onError:q.onUnicornFlowError_.bind(q,g.postFlowErrorEndpoint,Q),onReady:q.onUnicornFlowReady_.bind(q,g.referencePcidParams)};E(L,y)})};
_.P.close=function(){_.Tr(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.P.onUnicornFlowComplete_=function(g,u){this.close();u&&u&&W7f("ypcFamilyCreateFlowSucceeded",u);_.hJ(this.hostElement,"yt-navigate",{endpoint:g})};
_.P.onUnicornFlowError_=function(g,u){this.close();u&&W7f("ypcFamilyCreateFlowCancelled",u);_.hJ(this.hostElement,"yt-navigate",{endpoint:g})};
_.P.onUnicornFlowReady_=function(g){var u=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();g&&_.ri("gapi.family_creation.setConfig")(0,g);this.observer_=new MutationObserver(function(){_.Tr(u.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Tr(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Tr(this.hostElement).querySelector("#dialog").open()};
_.P.getFamilyCreationUrlWithUnicornParams_=function(){return _.FR("YTR_FAMILY_CREATION_URL")};
_.P.getCurrentUrl_=function(){return document.location.href};
_.P.abort_=function(g,u){this.clearTimeout_();this.onUnicornFlowError_(g,u)};
_.P.clearTimeout_=function(){clearTimeout(this.JSC$23225_timeoutId_)};
_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],l9.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],l9.prototype,"isMobile",void 0);_.Y([_.a(),_.K("design:type",Object)],l9.prototype,"onReadyCallback_",void 0);_.Y([_.a(),_.K("design:type",Object)],l9.prototype,"observer_",void 0);_.Y([_.jP({is:"yt-create-family-dialog",disableElementRegistration:!0})],l9);
_.T(l9,"yt-create-family-dialog",function(){if(xSO===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);var u=g.content,q=u.insertBefore;Ke3===void 0&&(Ke3=document.createElement("template"));var Q=Ke3;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);xSO=g}g=xSO;return g},{mode:2});var BjO;var zsO;var IL=function(){var g=_.X.apply(this,arguments)||this;g.STEP=1;g.BLOCK_ON=80;g.MIN_PROGESS=0;g.MAX_PROGESS=100;return g};
_.A(IL,_.X);_.P=IL.prototype;_.P.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.P.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));_.Bk().addProvider({provide:Bzh,useValue:this})};
_.P.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.P.finish=function(){var g=this;this.progress=this.MAX_PROGESS;$PC(function(){g.progress==g.MAX_PROGESS&&(g.hostElement.hidden=!0)})};
_.P.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.z3.Object.defineProperties(IL.prototype,{progress:{configurable:!0,enumerable:!0,set:function(g){this.progress_=g;var u="scaleX("+g/this.MAX_PROGESS+")",q=_.Tr(this.hostElement).querySelector("#progress").style;q.transform=u;q.webkitTransform=u;this.hostElement.setAttribute("aria-valuenow",String(g))},
get:function(){return this.progress_}}});
_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],IL.prototype,"ytComponentBehavior",void 0);_.Y([_.jP({is:"yt-page-navigation-progress",disableElementRegistration:!0})],IL);
_.T(IL,"yt-page-navigation-progress",function(){if(zsO===void 0){var g=document.createElement("template");_.Z(g,'\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');g.content.insertBefore(_.B().content.cloneNode(!0),
g.content.firstChild);var u=g.content,q=u.insertBefore;BjO===void 0&&(BjO=document.createElement("template"));var Q=BjO;q.call(u,Q.content.cloneNode(!0),g.content.firstChild);zsO=g}g=zsO;return g},{mode:2});var nB3={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"},kWO={"font-size":"12px","font-style":"italic"},S7B={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.HYx=function(){return _.D(function(g){_.Wx(g)})};var oB0=_.r(function(g){var u=function(){return g.data().subtext},q={};
return _.p("snackbar-view-model",{class:_.Ty("snackbarViewModelHost",g.className)},_.p("div",{class:_.Ty("snackbarViewModelEngagementBarWrapper",g.className)},_.p(_.M,{cond:function(){return g.data().image},
then:function(Q){return _.p(_.IT,{data:Q,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.p(_.M,{cond:function(){return g.data().imageContent},
then:function(){return _.p("div",{class:"snackbarViewModelAvatarContainer"},_.p(_.Up,{data:function(){return g.data().imageContent}},{decoratedAvatarViewModel:_.fG}))}}),_.p("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.p("div",{class:_.Ty((q.snackbarViewModelTitle=!0,q.snackbarViewModelTitleWithSubtext=u,q))},_.p(_.c2,{text:function(){return g.data().text}})),_.p(_.M,{cond:u,
then:function(){return _.p("div",{class:"snackbarViewModelSubtext"},_.p(_.c2,{text:function(){return u()}}))}})),_.p(_.M,{cond:function(){return g.data().buttons},
then:function(){return _.p("div",{class:"snackbarViewModelButtonClassWrapper"},_.p(_.Up,{data:function(){return g.data().buttons}},{buttonViewModel:function(Q){return _.p(_.TT,{data:Q.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:g.target})}}))}})))},"im");_.dL(_.r(function(){function g(V,z,O){H(V);d(O);G("in");t(!0);u(V,z);y=setTimeout(function(){q()},z)}
function u(V,z){var O,W=(O=V.text)==null?void 0:O.content;V=_.D7(V.rendererContext);W&&(z={label:W,command:V,durationMs:z},_.Bk().resolve(_.fg).enqueue(z))}
function q(V){G("out");V&&clearTimeout(y)}
function Q(){q(!0)}
function L(V){if(V){var z=V.snackbarViewModel,O=V.durationMs,W=V.target;O||(O=3E3);z&&(V=_.Bk().resolve(_.xv(_.Ju)))&&V.enqueue({isOpened:f,open:function(){g(z,O,W)},
close:q},0)}}
var E=_.AM("snackbar-container"),y=void 0,v=_.N(_.jR(!1,void 0,"mDc5N")),J=v.next().value;v=v.next().value;var f=J,t=v;J=_.N(_.jR("out",void 0,"FpOs5e"));var e=J.next().value,G=J.next().value;J=_.N(_.jR(void 0,void 0,"jIDRob"));var R=J.next().value,H=J.next().value;J=_.N(_.jR(void 0,void 0,"kOA3Mb"));var l=J.next().value,d=J.next().value,F=_.YH(function(){if(e()==="out"){t(!1);H(void 0);d(void 0);var V=_.Bk().resolve(_.xv(_.Ju));V&&hJ9(V,0)}});
_.I4(function(){var V=_.Bk().resolve(_.xv(_.QGn));V&&(V.showSnackbarFn=L,V.closeSnackbarFn=Q)});
return _.p("snackbar-container",{class:"ytSnackbarContainerHost",el:E},_.p(_.M,{cond:function(){return f()&&!!R()},
then:function(){var V={};return _.p("div",{class:_.Ty("ytSnackbarContainerSnackbarContainer",(V.ytSnackbarContainerMobile=!1,V.ytSnackbarContainerPivotBar=function(){var z;return!((z=_.Bk().resolve(_.xv(_.LvK)))==null||!z())},V.ytSnackbarContainerOpened=function(){return f()&&e()==="in"},V.ytSnackbarContainerClosed=function(){return f()&&e()==="out"},V)),
"on:animationend":F},_.p(oB0,{data:function(){return R()},
target:function(){return l()}}))}}))},"jm"),"snackbar-container");_.dL(_.cqZ,"yt-tooltip");var USV=_.QYK.ephemeralActionSelector;_.dL(_.r(function(){var g=_.Sy(USV);return _.p("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var u;return(u=g())==null?void 0:u.announcement})},"km"),"yt-ephemeral-actions");var K2f=new Map;var lMf=function(g,u){var q=this;this.handleError=g;this.logEventInternal=u;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){q.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
lMf.prototype.logError=function(g){this.handleError(g)};
lMf.prototype.logEvent=function(g,u){switch(g){case "IDB_DATA_CORRUPTED":_.w("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",u);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",u);break;case "IS_SUPPORTED_COMPLETED":_.w("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",u);break;case "QUOTA_EXCEEDED":g$G(this,u);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",u);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":g=Object.assign({},u,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",g)}};
var g$G=function(g,u){_.tu.getInstance().estimate().then(function(q){q=Object.assign({},u,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:BJ9(q==null?void 0:q.usage),deviceStorageQuotaMbytes:BJ9(q==null?void 0:q.quota)});g.logEventInternal("idbQuotaExceeded",q)})};var uoT=_.r(function(g){var u=_.Hk("yt-draggable"),q=g.onDrag,Q=g.onDragStart,L=g.onDragEnd,E=_.FI(g,{allowClicks:!1,dragThreshold:5}),y=E.dragThreshold,v=E.allowClicks;g=E.children;E=E.className;var J=void 0,f=void 0,t=new _.l7(0,0),e=!1;_.I4(function(){J=new _.GG(u.value);f=new _.S7(R);G(J,f);if(v()){_.cgW(J,y());var l;(l=u.value)==null||l.addEventListener("click",H,{capture:!0})}_.dB(function(){var d;(d=J)==null||d.dispose();if(v()){var F;(F=u.value)==null||F.removeEventListener("click",H,{capture:!0})}})});
var G=function(l,d){_.Z1(l,"earlycancel",function(){v()&&(e=!1)});
_.Z1(l,"start",function(F){Q==null||Q(F);F.defaultPrevented||v()&&(e=!0)});
_.Z1(l,"beforedrag",function(F){J&&f&&(F.preventDefault(),t=new _.l7(F.clientX-J.startX,F.clientY-J.startY),f.start())});
_.Z1(l,"end",function(){d.stop();L==null||L();t=new _.l7(0,0)})},R=function(){t&&q(t)},H=function(l){e&&(e=!1,l.stopPropagation(),l.preventDefault())};
return _.p("yt-draggable",{el:u,class:_.Ty("ytDraggableComponentHost",E)},g)},"lm");var qUO=_.r(function(g){var u=_.N(_.jR(0,void 0,"Qf0tbc")),q=u.next().value,Q=u.next().value;u=function(L){var E={},y={};return _.p(uoT,{className:_.Ty("ytdMiniplayerComponentResizer",(E.ytdMiniplayerComponentResizerDisabled=function(){return L===g.horizontalAlignment()||L===g.verticalAlignment()},E.ytdMiniplayerComponentResizerNorth=L==="north",E.ytdMiniplayerComponentResizerEast=L==="east",E.ytdMiniplayerComponentResizerSouth=L==="south",E.ytdMiniplayerComponentResizerWest=L==="west",E)),
onDragStart:function(){Q(g.currentMiniplayerSize());if(g.onResizeStart)g.onResizeStart()},
onDrag:function(v){L!=="north"&&L!=="west"||v.scale(-1);var J;v=(J=L==="north"||L==="south")?v.y:v.x;var f=g.currentAspectRatio();J&&f>=1?v*=f:!J&&f<1&&(v/=f);J=v;g.onResize(q()+J)}},_.p("div",{class:_.Ty("ytdMiniplayerComponentResizerCorner",(y.ytdMiniplayerComponentResizerNorthCorner=L==="north",y.ytdMiniplayerComponentResizerEastCorner=L==="east",y.ytdMiniplayerComponentResizerSouthCorner=L==="south",y.ytdMiniplayerComponentResizerWestCorner=L==="west",y))}))};
return _.p("div",{class:"ytdMiniplayerComponentResizers"},u("north"),u("east"),u("south"),u("west"))},"mm");var QGT=16/9;_.dL(_.r(function(){var g=_.Hk("ytd-miniplayer"),u=_.N(_.jR(new _.IW(NaN,NaN),void 0,"i8Divd")),q=u.next().value,Q=u.next().value;u=_.N(_.jR(!1,void 0,"M0mb9d"));var L=u.next().value,E=u.next().value;u=_.N(_.jR(!1,void 0,"U2besf"));var y=u.next().value,v=u.next().value;u=_.N(_.jR(!1,void 0,"oMkCO"));var J=u.next().value,f=u.next().value;u=_.N(_.jR(!1,void 0,"LLG3Bf"));var t=u.next().value,e=u.next().value;u=_.N(_.jR(!1,void 0,"m7HPQe"));var G=u.next().value,R=u.next().value;u=_.N(_.jR(!1,void 0,"jUGfuc"));
var H=u.next().value,l=u.next().value;u=_.N(_.jR(QGT,void 0,"LkUsDe"));var d=u.next().value,F=u.next().value,V=_.N(_.jR(!1,void 0,"xKE3oe"));u=V.next().value;var z=V.next().value;V=_.N(_.jR(!1,void 0,"QQ32Je"));var O=V.next().value,W=V.next().value;V=_.N(_.jR(void 0,void 0,"LRAn3"));var x=V.next().value,k=V.next().value;V=_.N(_.jR(sV()?"west":"east",void 0,"ZPTxkd"));var LZ=V.next().value,sb=V.next().value;V=_.N(_.jR("south",void 0,"XYTr4"));var Rm=V.next().value,M3=V.next().value;V=_.N(_.jR(400,
void 0,"hJycJe"));var tT=V.next().value,mJ=V.next().value;V=_.Bk().resolve(_.RO).miniplayerPropSignalMap[0];var hT=V.data,Yu=V.externalPlaylistData,Mx=V.playabilityStatus,po=V.isReadyToResume,KZ=V.isDisabled,G2=V.watchWhile,Ab=V.playerVe,tb=V.expandVe,lx=V.closeVe,NE=V.readyToResumeVe,fZ=V.readyToResumeCloseVe,Xf=V.repositionVe,eX=V.resizeVe;V=_.N(_.mX(po));var no=V.next().value,Co=V.next().value,gC=_.Sy(_.wy.persistentPanelVisibleSelector),Ca=!1,oR=!1,jf;_.I4(function(){Q(_.U3());g.value.addEventListener("animationend",
function(hb){hb.target===g.value&&(R(!1),l(!1))});
UPn(g.value)});
_.W6("yt-window-resized",function(hb){hb&&Q(hb)});
var Ko=function(){jf&&F(jf.getVideoAspectRatio())},K9=function(){if(jf){var hb=jf.getPlayerState()===1;
no()&&hb&&Co(!1)}},v5=function(){var hb=tb();
if(hb){var $L=_.j_(3);$L&&_.Ip($L,hb)}},ME=function(){var hb=lx(),$L=fZ();
hb&&_.Ip(_.j_(3),hb);po()&&$L&&_.Ip(_.j_(3),$L)};
_.W6("yt-activate-miniplayer",function(hb){var $L;return _.D(function(UZ){if(UZ.nextAddress==1)return L()?UZ.return():UZ.yield(($L=_.Bk().resolve(_.RO).getPlayerElement())==null?void 0:$L.getPlayerPromise(),2);jf=UZ.yieldResult;if(!jf)return UZ.return();!O()&&_.w("kevlar_watch_while_v2")&&(M3(hb&&!_.w("kevlar_watch_while_bottom_align")?"north":"south"),sb(sV()?"west":"east"));var ET=jf;ET.addEventListener("onVideoDataChange",Ko);ET.addEventListener("onStateChange",K9);ET.addEventListener("onExpandMiniplayer",
v5);ET.addEventListener("onCloseMiniplayer",ME);F(jf.getVideoAspectRatio());E(!0);okL()||R(!0);_.Wx(UZ)})});
_.W6("yt-deactivate-miniplayer",function(hb,$L){return _.D(function(UZ){if(!L())return UZ.return();E(!1);Co(!1);l(hb);e(!1);v(!1);if(jf){var ET=jf;ET.removeEventListener("onVideoDataChange",Ko);ET.removeEventListener("onStateChange",K9);ET.removeEventListener("onExpandMiniplayer",v5);ET.removeEventListener("onCloseMiniplayer",ME)}okL()||$L?$L&&R(!1):R(!0);_.Wx(UZ)})});
var fo=function(){return!(G2()&&_.w("kevlar_watch_while_modern"))},B5=function(){var hb;
return!((hb=Yu())==null||!hb.contents)},ra=function(){var hb=tT();
var $L=q();$L=Math.min(Math.min($L.width,$L.height)-32,720);var UZ=d(),ET=fo(),$F=B5()&&y(),Pq=Math.min(hb,$L);hb=new _.IW(192,ET?116:192);UZ=new _.IW($F?QGT:UZ,1);Pq=new _.IW(Pq,ET?Pq-76:Pq);Pq=UZ.aspectRatio()>Pq.aspectRatio()?Pq.width/UZ.width:Pq.height/UZ.height;UZ=UZ.scale(Pq);hb.width<=UZ.width&&hb.height<=UZ.height||(hb=UZ.aspectRatio()<=hb.aspectRatio()?hb.width/UZ.width:hb.height/UZ.height,UZ.scale(hb),UZ.width=Math.min(UZ.width,$L),UZ.height=Math.min(UZ.height,$L));return new _.IW(UZ.width,
_.tL(192,UZ.height+QQh(ET,$F),720))},yp=function(){var hb=ra(),$L=fo(),UZ=B5()&&y();
return new _.IW(hb.width,hb.height-QQh($L,UZ))},YV=function(){var hb=function($L){$L.target===g.value&&t()&&(e(!1),g.value.removeEventListener("transitionend",hb))};
okL()||(g.value.addEventListener("transitionend",hb),e(!0));v(!y())};
_.bX(function(){var hb=Ab(),$L=_.j_(3),UZ=_.JJ(3);if($L&&UZ&&hb){_.cC($L,UZ,hb);UZ=Xf();var ET=eX(),$F=tb(),Pq=lx(),du=fZ();$F&&Pq&&du&&(_.HC($L,hb,[$F,Pq,du]),_.Z0($L,[$F,Pq]));UZ&&ET&&_.HC($L,hb,[UZ,ET])}},"UatZXe");
_.bX(function(){var hb=NE();if(hb){var $L=_.j_(0),UZ=_.JJ(0);$L&&UZ&&(_.cC($L,UZ,hb),_.Z0($L,[hb]))}},"kTR4R");
V={};return _.p("ytd-miniplayer",{el:g,class:_.Ty("ytdMiniplayerComponentHost",(V.ytdMiniplayerComponentVisible=function(){return(L()||G())&&!(G2()&&_.w("kevlar_watch_while_counterfactual"))},V.ytdMiniplayerComponentAnimatingSnap=J,V.ytdMiniplayerComponentAnimatingPlaylistExpand=t,V.ytdMiniplayerComponentAnimatingFade=G,V),function(){if(G()){var hb=Rm();
var $L=L(),UZ=H();hb=$L?hb==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":UZ?hb==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":hb==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else hb="";return hb}),
style:_.xH({top:function(){return Rm()==="north"?"16px":""},
right:function(){var hb=LZ(),$L=gC();$L=($L===void 0?0:$L)&&!sV()?400:0;return hb==="east"?16+$L+"px":""},
bottom:function(){return Rm()==="south"?"16px":""},
left:function(){var hb=LZ(),$L=gC();$L=($L===void 0?0:$L)&&sV()?400:0;return hb==="west"?16+$L+"px":""},
width:function(){return ra().width+"px"},
height:function(){return ra().height+"px"},
transform:function(){var hb=x();return hb?"translate("+hb.x+"px, "+hb.y+"px)":""}})},_.p("div",{class:"ytdMiniplayerComponentContent"},_.p(uoT,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(hb){var $L=qGf(LZ(),Rm(),q(),ra(),x()),UZ=yp();Math.abs(hb.clientY-($L.y+UZ.height))>15?(z(!0),hb=_.j_(3),$L=Xf(),Ca||(Ca=!0,hb&&$L&&_.Z0(hb,[$L])),hb&&$L&&_.Ip(hb,$L)):hb.preventDefault()},
onDrag:function(hb){k(hb)},
onDragEnd:function(){var hb=got(qGf(LZ(),Rm(),q(),ra(),x()),q(),ra()),$L=uvK(LZ(),Rm(),q(),ra(),gC()),UZ=uvK(hb.horizontalAlignment,hb.verticalAlignment,q(),ra(),gC());UZ=new _.l7(UZ.x-$L.x,UZ.y-$L.y);var ET;$L=$L.y+(((ET=x())==null?void 0:ET.y)||0)+ra().height/2;var $F=function(){LZ()===hb.horizontalAlignment&&Rm()===hb.verticalAlignment||W(!0);sb(hb.horizontalAlignment);M3(hb.verticalAlignment);k(void 0)},Pq=function(du){du.target===g.value&&J()&&(f(!1),$F(),g.value.removeEventListener("transitionend",
Pq))};
z(!1);Rm()==="south"&&$L>q().height?($F(),_.Bk().resolve(_.RO).close()):(g.value.addEventListener("transitionend",Pq),f(!0),k(UZ))}},_.p(_.M,{cond:L,
then:function(){return _.p(_.$Th,{isDisabled:KZ,playabilityStatus:Mx,size:yp})}}),_.p(_.M,{cond:fo,
then:function(){return _.p(_.eMC,{isReadyToResume:no,data:hT,expanded:y,onExpandClick:YV,playlistData:Yu})}}),_.p(_.M,{cond:u,
then:function(){return _.p("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.p(_.M,{cond:function(){return B5()&&y()||t()},
then:function(){return _.p(_.Qup,{className:"ytdMiniplayerComponentPlaylistPanel",data:Yu,hideHeaderText:!0,withinMiniplayer:!0})}})),_.p(qUO,{onResize:function(hb){mJ(_.tL(192,hb,720))},
onResizeStart:function(){var hb=_.j_(3),$L=eX();oR||(oR=!0,hb&&$L&&_.Z0(hb,[$L]));hb&&$L&&_.Ip(hb,$L)},
currentAspectRatio:d,currentMiniplayerSize:tT,horizontalAlignment:LZ,verticalAlignment:Rm}))},"pm"),"ytd-miniplayer",{});var Lve=_.wy.persistentPanelVisibleSelector,i9=function(){var g=_.X.apply(this,arguments)||this;g.tabGesturesIsActive=!1;g.persistentPanelEnabled=_.w("enable_ai_companion");g.hasDelegation=!1;g.isFrostedGlassInitialized=!1;g.frostedGlassExp=_.w("web_frosted_glass");g.hasPendingWatchNavigation=!1;g.mastheadHiddenFocusWithinKillswitch=_.w("web_masthead_hidden_focus_within_killswitch");g.clientOnlyWizTooltipsEnabled=_.w("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
g.scrollAtTopInternal=!0;g.guideScrollTop=0;g.isTheaterModeSession=_.mW("START_IN_THEATER_MODE");g.iMaxTheaterMode=_.w("web_watch_imax_theater_mode");g.isFullWindowSession=_.mW("START_IN_FULL_WINDOW_MODE");g.hasCreateFamilyDialog=!1;g.mastheadHeight=56;g.networkStatusManager=new _.rN;g.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"};g.dynamicActionMap={"yt-run-attestation-command":function(u){var q=_.YPK.instance,Q=_.c(u,_.FpW);return Q?_.w("use_rta_manager_for_async")&&
(_.w("attmusi")&&_.w("attmusi_ue")?window.attmp:qA9())?Dcb(q,Q,u.clickTrackingParams):vxx(q,Q,u.clickTrackingParams):_.NY(Error("ti"))}};
g.isFrostedGlassDisabled=!1;g.isChannelOrPlaylistPage=!1;return g};
_.A(i9,_.X);_.P=i9.prototype;_.P.created=function(){var g=_.Bk();_.w("kevlar_clear_duplicate_pref_cookie")&&_.M_(_.Hv,function(){var u=_.sk.get("PREF");u&&!/f\d=/.test(u)&&(u=_.o4("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=u?"PREF=null;domain="+u+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.w("gzip_gel_with_worker")&&_.ZEk();_.w("jspb_serialize_with_worker")&&XUz();_.w("web_worker_availability_check")&&xPL();_.w("nwl_init_killswitch")||aMf().then(function(){_.Hv.addLowPriorityJob(ZeZ)});
this.pageManagerAttachedPromise=_.A9();this.ytdAppBehavior.loadDepsPromise=_.jk([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Kr(this.onThrottledScroll,200,this);_.w("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);IML();QBC=!!_.ri("ytappsettings.initialized");Gzt=_.ri("ytappsettings.previousValue");$fh=_.ri("ytappsettings.previousSnapshotTime");QBC||(QBC=!0,RNh());zGn();nqK();_.di("DEFERRED_DETACH",
_.w("kevlar_tuner_should_defer_detach"));_.di("REUSE_COMPONENTS",!0);_.di("STAMPER_STABLE_LIST",!0);_.di("SCHEDULED_LAZY_LIST",!0);_.di("openPopupConfig",Acn);_.di("useClickHandler",!0);_.w("kevlar_shell_cleanup")&&_.Hv.addLowPriorityJob(qRC.bind(this,_.Qq.caches));_.mW("IS_SHELL_LOAD")&&_.pW({shellStartupDurationMs:Math.round((0,_.n0)()-rh())});IBE(this.networkStatusManager);_.w("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Ryh(nB3)),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!",
Ryh(kWO)),console.log("%cVisit http://go/join-youtube-web to apply today.",Ryh(S7B)));oxt(g.resolve(_.AMx),1E3)};
_.P.ready=function(){var g=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var u=LgZ();u&&!_.w("external_fullscreen_killswitch")&&document.addEventListener(u,this.setFullscreen.bind(this));(u=window.matchMedia("(prefers-color-scheme: dark)"))&&u.addEventListener&&u.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(u=_.Bk().resolve(_.xv(_.T15)))u.subscribe("navigation-start",
function(q){q.destinationPageSubtype==="watch"&&(g.hasPendingWatchNavigation=!0)}),u.subscribe("navigation-end",function(q){q.destinationPageSubtype==="watch"&&(g.hasPendingWatchNavigation=!1)})};
_.P.attached=function(){var g=this;_.A4().processSignal("ci");_.w("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.$aa?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.o1(_.MWb(),"SUCCESS");this.updateIconSet();_.ar(this.guideInnerContent,!1);_.S9().initVisibilityObserver();this.guideService.guideElement=this.guide;var u=document.createElement("ytd-miniplayer"),q=_.Tr(this.hostElement).querySelector("#content");
_.Tr(this.hostElement).insertBefore(u,q);_.A4().processSignal("ma");_.Bk().resolve(_.RO).init(u);this.persistentPanelEnabled&&arx(this.persistentPanelContainer,"APP");_.mW("IS_SHELL_LOAD")&&(q=document.createElement("ytd-network-status-banner"),_.Tr(this.hostElement).insertBefore(q,u));_.w("kevlar_right_click_on_lockups")&&_.Go._onCaptureClick&&document.addEventListener("contextmenu",_.Go._onCaptureClick.bind(_.Go),!0);var Q=function(){var L=_.CK("yt-page-navigation-progress");_.Tr(g.hostElement).appendChild(L)};
setTimeout(function(){_.A4().parkOrScheduleJob(Q,0,"eocs",16)},0);
_.w("service_worker_push_enabled")&&_.M_(_.Hv,rtf);_.XU(_.VC.getInstance(),this.dynamicActionMap,this.hostElement);_.hJ(this.hostElement,"ytd-app-attached");_.A4().processSignal("aa");Ygp(this.hostElement);_.xQ("gapi.load",_.EaZ);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.M_(_.Hv,
function(){var L=document.createElement("ytd-video-preview");_.Tr(_.Tr(g.hostElement).querySelector("#video-preview")).appendChild(L)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.M_(_.Hv,function(){Azz();g.registerWithViewTransitionManager()});
if(_.w$()&&this.isAppDarkTheme()!==_.$_())this.onDarkModeToggledAction();else u=_.RE()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==u&&(_.w("enable_dark_theme_only_on_shorts")?_.Gr(_.w("enable_dark_theme_only_on_shorts_control")?window.location.href:_.O_(window.location.href,{theme:"dark"})):_.Io(new _.Ji("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(ikn=new IJf(this.hostElement)),OOv=new Y7k(this.hostElement),hsT=new Tj3(this.hostElement),nXH=new zHh(this.hostElement)};
_.P.getThemeSettingsToLog=function(){var g=_.RE()==="USER_INTERFACE_THEME_DARK";g=_.w$()?_.$_()?"os-dark":"os-light":g?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:g,cookiesEnabled:_.vW()}};
_.P.detached=function(){_.VD(this.guideInnerContent);_.Hv.cancelJob(Fgh);Fgh=0;_.Hv.cancelJob(XXt);XXt=0;_.roq(hfH);hfH.length=0;rJh=_.BR3=null;_.S9().dispose();_.w("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.r9(_.VC.getInstance(),ikn.playlistHandlerActionMap,ikn.JSC$33497_clientRoot);_.r9(_.VC.getInstance(),OOv.downloadManagerActionMap,OOv.JSC$33942_clientRoot);_.r9(_.VC.getInstance(),hsT.feedbackCollectorActionMap,hsT.JSC$33937_clientRoot);
for(var g=_.N(nXH.eventListeners),u=g.next();!u.done;u=g.next()){var q=_.N(u.value);u=q.next().value;q=q.next().value;q=_.N(q);for(var Q=q.next();!Q.done;Q=q.next()){var L=_.N(Q.value);Q=L.next().value;L=L.next().value;u.removeEventListener(Q,L)}}_.r9(_.VC.getInstance(),nXH.autonavPauseActionMap,nXH.JSC$21684_clientRoot)};
_.P.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.qf().getFlag(186)};
_.P.computeIsInlinePreviewEnabled=function(g,u,q){return!q&&uip({miniplayerIsActive:g,miniplayerPlaybackState:u})};
_.P.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.rF({type:"SET_FROSTED_GLASS_MODE",payload:!_.w("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"}))};
_.P.computeIsFrostedGlassDisabled=function(g,u,q,Q){return g||u||q||Q&&_.w("web_frosted_glass_disable_watch")};
_.P.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.w("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.P.computeIsHomePage=function(g,u){if(!g||u==null||!u.endpoint)return!1;var q;return((q=_.c(u.endpoint,_.kZ))==null?void 0:q.browseId)==="FEwhat_to_watch"};
_.P.updateIsChannelOrPlaylistPage=function(){if(_.w("web_frosted_glass")){var g,u,q=(u=(g=_.Bk().resolve(_.xv(_.ba)))==null?void 0:g.getCurrentPage())==null?void 0:u.pageSubtype;this.isChannelOrPlaylistPage=q?["channel","channels","playlist"].includes(q):!1}};
_.P.scheduleFrostedGlassInitialization=function(){var g=this;_.w("web_frosted_glass")&&_.A4().parkOrScheduleJob(function(){g.isFrostedGlassInitialized=!0},0,yS(["eocs",
"cr"]),300)};
_.P.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.lt2(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.rF({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.rF({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.P.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(YtC(!0))};
_.P.onYtSignalActionRequestPersistentStorage=function(){if(!_.w("request_persistent_storage_killswitch")){var g=_.Bk().resolve(_.nGz);g.cachedPersistStatePromise||(g.cachedPersistStatePromise=u9f())}};
_.P.handleYtChannelCreationFormEndpoints=function(g){g&&this.ytComponentBehavior.resolveCommand(g)};
_.P.handleShowEngagementPanelEndpoint=function(g){g&&this.ytComponentBehavior.resolveCommand(g)};
_.P.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(YtC(!1))};
_.P.initIconDefs=function(g,u){var q=document.createElement("iron-iconset-svg");q.name=g;g=document.createElementNS("http://www.w3.org/2000/svg","svg");q.appendChild(g);g.appendChild(u);document.body.appendChild(q);return q};
_.P.onWindowResized=function(){_.YJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var g=_.h4.getInstance();g.documentWidth_=document.body.clientWidth;I9L(g)};
_.P.onWindowScrolled=function(){var g=_.Bk().resolve(_.ba).getCurrentPage();if(g!=null&&g.getScrollTop){var u=this.ytdReduxBehavior,q=u.dispatch;g=g.getScrollTop()<=0;q.call(u,_.rF({type:"SET_SCROLL_AT_TOP",payload:g}))}};
_.P.guideIsVisibleButNotPersistentSelectorChanged=function(){var g=_.Bk().resolve(_.ba).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=g.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"),
g.setScrollTop(this.guideScrollTop));_.Og(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.P.getCurrentPageScrollableElementType=function(){var g=_.Bk().resolve(_.ba).getCurrentPage();if(g&&g.getPageScrollingElement())return g.getPageScrollingElement().nodeName};
_.P.observeGuideVisibility=function(){var g=_.h4.getInstance(),u=this.miniGuideVisible;g.guidePersistentAndVisible_=this.guidePersistentAndVisible;g.miniGuideVisible_=u;I9L(g)};
_.P.observePersistentPanelVisibility=function(){var g=_.h4.getInstance();g.persistentPanelVisible_=this.persistentPanelVisible;I9L(g)};
_.P.handleEduDismissAction=function(g){g&&g.eduDismissAction&&(_.YJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.CCn.getInstance(),_.Wd.set(g.eduDismissAction.key+"-dismissed",!0))};
_.P.handleEduImpressionAction=function(g){if(g&&g.eduImpressionAction){var u=_.CCn.getInstance();g=g.eduImpressionAction.key;u.JSC$13497_eduDisplayedThisLoad_[_.iX8[g].setKey||g]=!0;_.Wd.set(g+"-impression",parseInt(_.Wd.get(g+"-impression")||0,10)+1)}};
_.P.onYtSignalActionConfirmMentionsEdu=function(){_.YJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.O1.getInstance();_.Ya.set("edu-dismissed",!0)};
_.P.onYtSignalActionRecordMentionsEduImpression=function(){_.O1.getInstance();var g=_.Ya.set,u=parseInt(_.Ya.get("edu-impressions"),10);g.call(_.Ya,"edu-impressions",(isFinite(u)?u:0)+1)};
_.P.onYtPageManagerAttached=function(g){var u;((u=_.bd(g))==null?void 0:u.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.P.onInvokeInstrumentManagerAction=function(g,u){SOL(u,g)};
_.P.updateIconSet=function(){var g=this.hostElement.querySelector("#masthead");if(g){var u=_.hR(g),q=u.querySelector("g#yt-logo-updated");q&&(g=document.createElementNS("http://www.w3.org/2000/svg","defs"),g.appendChild(q.cloneNode(!0)),(u=u.querySelector("g#yt-logo-red-updated"))&&g.appendChild(u.cloneNode(!0)),this.initIconDefs("yt-logos-ext",g))}};
_.P.updateMastheadData=function(){var g=this,u,q,Q,L,E;return _.D(function(y){if(y.nextAddress==1){u=g.data;q=g.hostElement.querySelector("#masthead");if(!q)return y.return();_.xt(g,function(){q.data=g.topbarData});
if(!g.get("response.topbar",u)||g.get("response.topbar.responseContext.maxAgeSeconds",u)===0)return y.jumpTo(0);if(Q=_.Bk().resolve(_.QO))return y.yield(Q(),6);L=_.Bk().resolve(_.xe);return y.yield(L.put("service:topbar:fallback",new _.B_({innertubeResponse:g.get("response.topbar",u)})),0)}return(E=y.yieldResult)?y.yield(E.put("service:topbar:fallback",new _.B_({innertubeResponse:g.get("response.topbar",u)})),0):y.jumpTo(0)})};
_.P.computeTopbarData=function(g){if(!g)return null;var u;return this.isShortsPage&&this.topbarData&&!_.c((u=g.response)==null?void 0:u.topbar,cVC)?this.topbarData:g.response&&"topbar"in g.response?_.c(g.response.topbar,cVC)||null:null};
_.P.onSetTheaterModeEnabled=function(g,u){this.isTheaterModeSession=u.enabled;this.setTheaterModeStyles(u.enabled)};
_.P.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.P.onDarkModeToggledAction=function(){var g=_.YB(window.location.href);if(!_.x7Z(g)){(g=!!_.Yv(window.location.href).themeRefresh)&&_.Io(new _.Ji("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!g){RNh();g={themeRefresh:1};var u=_.Bk().resolve(_.ba);if(u.isOnWatch()){var q,Q;u=((q=u.getPlayerFromWatch())==null?void 0:(Q=q.getPlayer())==null?void 0:Q.getCurrentTime())||0;u>=1&&(g.time_continue=Math.floor(u))}_.vW()||_.RE()!=="USER_INTERFACE_THEME_DARK"||(g.theme="dark");_.Gr(_.O_(window.location.href,
g))}_.w("web_appshell_refresh_trigger")&&_.Qq.caches&&this.refreshAppShellResponse();q=_.KO(window.location.href);_.ke(_.Bk().resolve(_.SB),_.g6(q,"theme"))}};
_.P.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.P.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.P.onPlayerFullscreen=function(g){_.b1();this.playerFullscreen=g};
_.P.setRestrictedMode=function(g){var u=_.qf();_.QX(0,58,g);u.save();_.Bk().resolve(_.zL).reload()};
_.P.onPageChanged=function(g){g.detail.newPageType==="ytd-watch-flexy"||g.detail.newPageType==="ytd-watch-fixie"||g.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.JL("WEB_PAGE_TYPE_WATCH")):g.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.JL("WEB_PAGE_TYPE_SHORTS")):g.detail.newPageType==="ytd-browse"&&g.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.JL("WEB_PAGE_TYPE_MINI_APP")):_.w("web_frosted_glass")&&g.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.JL("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.JL("WEB_PAGE_TYPE_UNKNOWN"));g.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.P.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.P.onGuideToggleTap=function(){_.hJ(this.hostElement,"yt-guide-toggle")};
_.P.onGuideToggleHover=function(){_.hJ(this.hostElement,"yt-guide-hover")};
_.P.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setMastheadTheme=function(){var g=_.hR(this.hostElement).querySelector("#masthead");g&&(g.dark=g.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),g.isDarkThemeForced=!1)};
_.P.onRequestPanelModeChange=function(g,u){this.hideHeaderShadow=u.mode!=="seamed"};
_.P.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.P.onDrawerIronSelect=function(g){_.bd(g).id==="guide"&&this.processDrawerIronSelect()};
_.P.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var g="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(g="opened"));_.hJ(this.hostElement,"yt-autonav-pause-guide-"+g)};
_.P.onAddElementToApp=function(g){_.Tr(this.hostElement).appendChild(g.detail)};
_.P.onThrottledScroll=function(){var g=_.Bk().resolve(_.ba).getCurrentPage();g&&(this.scrollAtTopInternal=g.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.P.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.P.setFullscreen=function(){if(_.w("external_fullscreen")||!this.isWatchPage){var g=_.w("kevlar_fullerscreen_root_only_killswitch")?!!_.b1():!!_.b1()&&_.b1()===document.documentElement;g=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(g||this.isFullWindowSession);this.fullscreen!==g&&((this.fullscreen=g)&&_.Og(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.bR().dispatch(_.ft5(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.YJ(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.P.setFullscreenLoggingForShorts=function(g){var u,q,Q;return _.D(function(L){if(L.nextAddress==1)return L.yield((u=_.F0())==null?void 0:u.getPlayerPromise(),2);q=L.yieldResult;(Q=q)==null||Q.setAppFullscreen(g);_.Wx(L)})};
_.P.updateMastheadCssHeight=function(){var g=this.mastheadHeight;this.fullscreen&&(g=0);_.x_(this.hostElement,{"--ytd-masthead-height":g+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.P.updateNetworkStatusBannerDisplayStatus=function(){var g="unset";this.fullscreen&&(g="none");_.x_(this.hostElement,{"--ytd-network-status-banner-display":g})};
_.P.updateNetworkStatusBannerCssHeight=function(){var g="unset";this.fullscreen&&(g="0px");_.x_(this.hostElement,{"--ytd-network-status-banner-max-height":g})};
_.P.updateScrollAndMasthead=function(g,u,q,Q){this.iMaxTheaterMode||(Q=!1);var L=_.Bk().resolve(_.ba).getCurrentPage();g||u||Q?(document.body.classList.add("no-scroll"),L.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.zr(this,this.onScroll)),L.setScrollTop(0),_.x_(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":Ti()+"px"})):q?_.hJ(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.hJ(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
L.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.zr(this,this.onScroll)));this.mastheadHidden=g||u||q;this.updateMastheadCssHeight();_.w("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.P.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.P.onYtNavigateAction=function(g){g=this.get("navigateAction.endpoint",g);_.hJ(this.hostElement,"yt-navigate",{endpoint:g})};
_.P.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var g=document.createElement("yt-create-family-dialog");_.Tr(this.hostElement).appendChild(g);this.hasCreateFamilyDialog=!0}};
_.P.onSetPushNotificationsEnabledCommand=function(g){var u=this,q=_.c(g,RDp);q&&typeof q.enabled==="boolean"&&(Notification.permission!=="granted"?F7E().then(function(){Notification.permission==="granted"?(Dfz(!q.enabled).then(f0K),q.successAction&&_.KV(u.hostElement,[q.successAction])):q.failureAction&&_.KV(u.hostElement,[q.failureAction])}):(Dfz(!q.enabled).then(f0K),q.successAction&&_.KV(this.hostElement,[q.successAction])))};
_.P.onYtSignalActionEnableChromeNotifications=function(){mfz(!0)};
_.P.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.c(this.topbarData.hotkeyDialog,IGZ)}}})};
_.P.onYtSignalActionShowKeyboardShortcutDialog=function(){_.YJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.P.onYtEndpointChangeHandler=function(g,u){var q=_.r_(_.Bd);q.pendingPrefetchJob_&&(u=!(!u||u.autonav!="1"),q.pendingPrefetchJob_.resolve(g&&_.zDS(g)?_.nrm(g,u):""),q.pendingPrefetchJob_=null);_.YJ(this.hostElement,"yt-pause-active-page-context");_.YJ(this.hostElement,"ytd-log-youthere-nav");_.YJ(this.hostElement,"yt-prepare-page-dispose")};
_.P.handleCommandWithCommandHandler=function(g,u){_.ze.instance.resolveCommand(g,{form:{element:u}})};
_.P.onYtTimedCommand=function(g){var u=this;g=_.c(g,o4z);var q=g.command;q&&_.gT(_.Hv,function(){var Q=_.c(q,_.Y6i);Q?(_.ze.instance.resolveCommand(q),u.maybeLogGetAnswerRequestTick(Q)):_.xJ(u.hostElement,[q],u.hostElement)},g.timeoutMs||0)};
_.P.maybeLogGetAnswerRequestTick=function(g){g&&g.isFirstRequest&&(_.jF("search_overview_answer"),_.fW("so_rq",void 0,"search_overview_answer"))};
_.P.onYtSignalActionSkipNavigation=function(){var g=_.Bk().resolve(_.ba).getCurrentPage();_.YO(g)};
_.P.onYtSignalActionCopyDebugData=function(){yD9()};
_.P.handleEntityUpdateCommand=function(g){_.op(_.c(g,_.Ef0).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.P.logFlowLoggingEventCommand=function(g){if(g=_.c(g,_.RQK))if(g.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var u=g.flowEventNamespace,q=g.flowEventType,Q=g.flowType;Q&&u&&q&&_.WFJ(_.xZ(u,q,g.flowEventMetadata),Q)}else{u=_.Bc();q=g.flowEventNamespace;Q=g.flowEventType;var L=g.flowType;L&&q&&Q&&u.logFlowEvent(_.xZ(q,Q,g.flowEventMetadata),L,g.flowNonce)}};
_.P.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.P.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.P.onTouchStart=function(){var g=_.oc();_.j_()&&_.$q(g.JSC$13619_screenManager,{visualElement:g.ve})};
_.P.handleSelectLanguageCommand=function(g){if(g=_.c(g,pwH).hl){var u=_.qf();u.set("hl",g);u.save();_.Bk().resolve(_.zL).reload()}};
_.P.handleConfirmDialogEndpoint=function(g){(g=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(g))&&this.ytOpenPopupBehavior.openPopup(g)};
_.P.handleOpenPopupNavigationEndpoints=function(g,u){(g=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(g))&&this.ytOpenPopupBehavior.openPopup(g,u)};
_.P.handleSaveCommandToSessionStorage=function(g){if(g=_.c(g,_.WpZ)){var u=g.key;u&&g.command&&window.sessionStorage.setItem(u,JSON.stringify(g.command))}};
_.P.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(g){g&&g.active&&g.active.postMessage({type:"refresh_shell"})}).catch(function(g){g.name!=="SecurityError"&&_.Zf(g)})};
_.P.onDeviceThemeChanged=function(){var g=_.$_();_.QX(_.qf(),185,g);_.qf().save()};
_.P.handleYtRegisterPromoCommand=function(g){if(_.c(g,$2h)){var u=_.Bk().resolve(_.ba).getCurrentPage()||this.hostElement;Jpf().registerPromoCommand(_.c(g,$2h),u)}};
_.P.onYtNavigateHomeAction=function(){if(!_.w("kevlar_miniplayer_navigate_home_from_app_killswitch")){var g,u,q,Q,L=(Q=(g=this.topbarData)==null?void 0:(u=g.logo)==null?void 0:(q=u.topbarLogoRenderer)==null?void 0:q.endpoint)!=null?Q:_.uo;this.ytComponentBehavior.resolveCommand(L)}};
_.P.onYtLocationCollectionCommand=function(g){czx(_.c(g,XEh))};
_.P.onYtGetLocationCommand=function(g){UBh(_.c(g,Vcb),this)};
_.P.updateRenderGuideFromBinding=function(g){this.renderGuide=g.detail.value};
_.P.updateGuidePersistentAndVisibleFromBinding=function(g){this.guidePersistentAndVisible=g.detail.value};
_.P.updateMiniGuideVisibleFromBinding=function(g){this.miniGuideVisible=g.detail.value};
_.P.onThemeSelected=function(g,u){var q=_.qf(),Q=g||u?g:_.$_(),L=(Q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.x7Z(_.YB(window.location.href));_.QX(0,165,g);_.QX(0,174,u);q.save();L&&_.YJ(this.hostElement,"yt-dark-mode-toggled-action",[Q]);_.YJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.getCurrentTheme=function(){return _.w$()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.RE()};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.P.handleShowConsentPrimitive=function(g){var u=this,q,Q;return _.D(function(L){if(L.nextAddress==1){try{q=(Q=_.F0())==null?void 0:Q.getPlayerPromise()}catch(E){}return L.yield(OYp(g,q),2)}_.YJ(u.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Wx(L)})};
_.P.handleSelectActiveIdentityEndpointInternal=function(g){_.tR();g=_.c(g,_.Eeb);if(g!=null&&g.supportedTokens){g=_.N(g.supportedTokens);for(var u=g.next();!u.done;u=g.next())u=u.value,u.accountSigninToken&&_.Gr(u.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.P.handleUpdatePermissionRoleCommand=function(g){if(g=_.c(g,_.QzH)){var u;this.hasDelegation=!((u=_.c(g.renderer,_.q6Z))==null||!u.status)}};
_.P.registerWithViewTransitionManager=function(){var g=_.Bk().resolve(_.xv(_.LP));if(g){var u,q=(u=this.guide)==null?void 0:u.querySelector("#scrim"),Q;u=(Q=this.guide)==null?void 0:Q.querySelector("#contentContainer");q&&u&&g.isAnyTransitionEnabled&&(Q={},g.viewTransitionCoordinator.registerElement(q,(Q.slide="app-drawer-scrim-page-transition",Q["lockup-to-watch"]="app-drawer-scrim-page-transition",Q["learning-journey"]="app-drawer-scrim-page-transition",Q)),q={},g.viewTransitionCoordinator.registerElement(u,
(q.slide="app-drawer-container-page-transition",q["lockup-to-watch"]="app-drawer-container-page-transition",q["learning-journey"]="app-drawer-container-page-transition",q)))}};
_.z3.Object.defineProperties(i9.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.w("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.w("kevlar_show_chips_on_scroll"))}}});
_.z3.Object.defineProperties(i9,{template:{configurable:!0,enumerable:!0,get:function(){if(mSk===void 0){var g=document.createElement("template");_.Z(g,'\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');
g.content.insertBefore(_.B().content.cloneNode(!0),g.content.firstChild);mSk=g}g=mSk;return g}}});
i9.prototype.onOpenHotkeyDialog=i9.prototype.onOpenHotkeyDialog;i9.prototype.setFullscreen=i9.prototype.setFullscreen;i9.prototype.onAddElementToApp=i9.prototype.onAddElementToApp;i9.prototype.onDrawerIronSelect=i9.prototype.onDrawerIronSelect;i9.prototype.onGuideOpenButtonHover=i9.prototype.onGuideOpenButtonHover;i9.prototype.onRequestPanelModeChange=i9.prototype.onRequestPanelModeChange;i9.prototype.onPageDataUpdated=i9.prototype.onPageDataUpdated;i9.prototype.onPageChanged=i9.prototype.onPageChanged;
i9.prototype.onSetTheaterModeEnabled=i9.prototype.onSetTheaterModeEnabled;i9.prototype.updateMastheadData=i9.prototype.updateMastheadData;i9.prototype.onYtPageManagerAttached=i9.prototype.onYtPageManagerAttached;i9.prototype.observePersistentPanelVisibility=i9.prototype.observePersistentPanelVisibility;i9.prototype.observeGuideVisibility=i9.prototype.observeGuideVisibility;i9.prototype.guideIsVisibleButNotPersistentSelectorChanged=i9.prototype.guideIsVisibleButNotPersistentSelectorChanged;
i9.prototype.isInlinePreviewEnabledChanged=i9.prototype.isInlinePreviewEnabledChanged;i9.prototype.isWatchPageChanged=i9.prototype.isWatchPageChanged;i9.prototype.dispatchFrostedGlassMode=i9.prototype.dispatchFrostedGlassMode;_.Y([_.I(_.jB),_.K("design:type",Object)],i9.prototype,"ytdReduxBehavior",void 0);_.Y([_.I(_.Em.YtEventForwardingBehavior),_.K("design:type",Object)],i9.prototype,"ytEventForwardingBehavior",void 0);
_.Y([_.I(_.Ov.YtOpenPopupBehavior),_.K("design:type",Object)],i9.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.I(_.xK.YtActionHandlerBehavior),_.K("design:type",Object)],i9.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.I({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.VC.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.w("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var g;((g=this.actionRouterNode.hostElement)!=null?g:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var g;((g=this.actionRouterNode.hostElement)!=null?g:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(g){this.actionRouter_.handleAction(g.detail)}}),
_.K("design:type",Object)],i9.prototype,"ytActionRouterBehavior",void 0);_.Y([_.I(zph.YtdAppBehavior),_.K("design:type",Object)],i9.prototype,"ytdAppBehavior",void 0);_.Y([_.I(_.KK.YtEndpointBehavior),_.K("design:type",Object)],i9.prototype,"ytEndpointBehavior",void 0);_.Y([_.I(WeO.YtEndpointHandlerWithYpcBehavior),_.K("design:type",Object)],i9.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.Y([_.I(aie.YtLogYpcFlowCommandsBehavior),_.K("design:type",Object)],i9.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.Y([_.I(_.n.YtRendererBehavior),_.K("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.Y([_.I(_.M8.YtComponentBehavior),_.K("design:type",Object)],i9.prototype,"ytComponentBehavior",void 0);_.Y([_.a({selector:efh}),_.K("design:type",Object)],i9.prototype,"tabGesturesIsActive",void 0);_.Y([_.a(),_.K("design:type",Boolean)],i9.prototype,"renderGuide",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"guidePersistentAndVisible",void 0);_.Y([_.a({selector:M_Z}),_.K("design:type",Boolean)],i9.prototype,"guideIsVisibleButNotPersistent",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"standalone",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"miniGuideVisible",void 0);
_.Y([_.a(),_.K("design:type",Object)],i9.prototype,"persistentPanelEnabled",void 0);_.Y([_.a({selector:Lve,reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"persistentPanelVisible",void 0);_.Y([_.a({selector:_.H1m}),_.K("design:type",Number)],i9.prototype,"miniplayerPlaybackState",void 0);_.Y([_.a({selector:_.jb,reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"miniplayerIsActive",void 0);
_.Y([_.a({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.K("design:type",Boolean)],i9.prototype,"isInlinePreviewEnabled",void 0);_.Y([_.a(),_.K("design:type",Boolean)],i9.prototype,"isInlinePreviewDisabled",void 0);_.Y([_.a({reflectToAttribute:!0,value:function(){return _.mW("START_IN_FULL_WINDOW_MODE")}}),
_.K("design:type",Boolean)],i9.prototype,"mastheadHidden",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"playerFullscreen",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"fullscreen",void 0);_.Y([_.a({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"hideHeaderShadow",void 0);
_.Y([_.a({value:{GUIDE_ALT_LABEL:_.Ug("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.K("design:type",Object)],i9.prototype,"menuStrings",void 0);_.Y([_.a({computed:"computeTopbarData(data)"}),_.K("design:type",Object)],i9.prototype,"topbarData",void 0);_.Y([_.a({selector:_.$5q,reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"isWatchPage",void 0);_.Y([_.a({selector:_.ROk,reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"isShortsPage",void 0);
_.Y([_.a({selector:function(g){return _.fU(g)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.K("design:type",Boolean)],i9.prototype,"isMiniAppPage",void 0);_.Y([_.a({selector:function(g){return _.fU(g)==="WEB_PAGE_TYPE_BROWSE"}}),
_.K("design:type",Boolean)],i9.prototype,"isBrowsePage",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Boolean)],i9.prototype,"scrolling",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],i9.prototype,"hasDelegation",void 0);_.Y([_.a({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],i9.prototype,"guideScrolledByTouch",void 0);_.Y([_.a(),_.K("design:type",Object)],i9.prototype,"isFrostedGlassInitialized",void 0);
_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],i9.prototype,"frostedGlassExp",void 0);_.Y([_.a({selector:function(g){return g.ui.chipBarIsSticky}}),
_.K("design:type",Boolean)],i9.prototype,"chipBarIsSticky",void 0);_.Y([_.a({selector:t_t}),_.K("design:type",Boolean)],i9.prototype,"scrollAtTop",void 0);_.Y([_.a({computed:"computeIsHomePage(isBrowsePage, data)"}),_.K("design:type",Boolean)],i9.prototype,"isHomePage",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],i9.prototype,"hasPendingWatchNavigation",void 0);_.Y([_.a({reflectToAttribute:!0}),_.K("design:type",Object)],i9.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.Y([_.a(),_.K("design:type",Object)],i9.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.Y([xM("guide"),_.K("design:type",Object)],i9.prototype,"guide",void 0);_.Y([xM("guide-service"),_.K("design:type",gmL)],i9.prototype,"guideService",void 0);_.Y([xM("guide-inner-content"),_.K("design:type",HTMLDivElement)],i9.prototype,"guideInnerContent",void 0);_.Y([_.oE("#persistent-panel-container"),_.K("design:type",HTMLElement)],i9.prototype,"persistentPanelContainer",void 0);
_.Y([_.a({selector:_.AFS}),_.K("design:type",String)],i9.prototype,"frostedGlassMode",void 0);_.Y([_.k_("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"dispatchFrostedGlassMode",null);_.Y([_.a({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.K("design:type",Object)],i9.prototype,"isFrostedGlassDisabled",void 0);
_.Y([_.k_("isWatchPage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"isWatchPageChanged",null);_.Y([_.C("isHomePage","chipBarIsSticky","scrollAtTop"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],i9.prototype,"applyFrostedGlassToChipBar",null);_.Y([_.a(),_.K("design:type",Object)],i9.prototype,"isChannelOrPlaylistPage",void 0);
_.Y([_.qm("isInlinePreviewEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"isInlinePreviewEnabledChanged",null);_.Y([_.k_("guideIsVisibleButNotPersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.Y([_.k_("guidePersistentAndVisible","miniGuideVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"observeGuideVisibility",null);_.Y([_.k_("persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"observePersistentPanelVisibility",null);
_.Y([_.n6("attached"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],i9.prototype,"onYtPageManagerAttached",null);_.Y([_.k_("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],i9.prototype,"updateMastheadData",null);_.Y([_.n6("yt-set-theater-mode-enabled"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],i9.prototype,"onSetTheaterModeEnabled",null);
_.Y([_.n6("yt-page-type-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],i9.prototype,"onPageChanged",null);_.Y([_.n6("yt-page-data-updated"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"onPageDataUpdated",null);_.Y([_.n6("yt-request-panel-mode-change"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Object]),_.K("design:returntype")],i9.prototype,"onRequestPanelModeChange",null);
_.Y([_.n6("yt-guide-hover"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"onGuideOpenButtonHover",null);_.Y([_.n6("app-drawer-transitioned"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],i9.prototype,"onDrawerIronSelect",null);_.Y([_.n6("yt-add-element-to-app"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],i9.prototype,"onAddElementToApp",null);
_.Y([_.n6("yt-set-fullerscreen-styles"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"setFullscreen",null);_.Y([_.n6("yt-open-hotkey-dialog"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"onOpenHotkeyDialog",null);_.Y([_.fE({is:"ytd-app"})],i9);_.A4().processSignal("eor");

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